-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f15afa7
commit 8d355c3
Showing
27 changed files
with
241 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
export * from './TestWrapperDecorator'; | ||
export * from './getStoryVariant'; | ||
export * from './withStoryWrightSteps'; | ||
export { | ||
TestWrapperDecorator, | ||
TestWrapperDecoratorFixedWidth, | ||
TestWrapperDecoratorFullWidth, | ||
TestWrapperDecoratorTall, | ||
TestWrapperDecoratorTallFixedWidth, | ||
} from './TestWrapperDecorator'; | ||
export { DARK_MODE, HIGH_CONTRAST, RTL, getStoryVariant } from './getStoryVariant'; | ||
export { withStoryWrightSteps } from './withStoryWrightSteps'; |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-codemods-64d49103-6d6d-4ef0-93f0-2339233931e5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/codemods", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-eslint-plugin-75e61142-a4e1-4046-9076-316b44c873ca.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/eslint-plugin", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-conformance-33c0a62b-e18c-45a1-9fbd-bfd7089f997c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/react-conformance", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-icon-provider-a7f6eac5-5e7c-40b4-ae8c-4b3dab5bc372.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/react-icon-provider", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-theme-576e3635-ea2b-48cd-b8bd-f35566e66189.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/theme", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
export * from './Button/buttonBehaviorDefinition'; | ||
export * from './Button/buttonGroupBehaviorDefinition'; | ||
export * from './Button/toggleButtonBehaviorDefinition'; | ||
export * from './Link/linkBehaviorDefinition'; | ||
export * from './MenuButton/menuButtonBehaviorDefinition'; | ||
export * from './Pill/pillActionBehaviorDefinition'; | ||
export * from './Pill/pillBehaviorDefinition'; | ||
export * from './Pill/pillOptionBehaviorDefinition'; | ||
export * from './Pill/pillGroupBehaviorDefinition'; | ||
export * from './Popup/popupBehaviorDefinition'; | ||
|
||
export * from './react-button/buttonAccessibilityBehaviorDefinition'; | ||
export { buttonBehaviorDefinition } from './Button/buttonBehaviorDefinition'; | ||
export { buttonGroupBehaviorDefinition } from './Button/buttonGroupBehaviorDefinition'; | ||
export { toggleButtonBehaviorDefinition } from './Button/toggleButtonBehaviorDefinition'; | ||
export { linkBehaviorDefinition } from './Link/linkBehaviorDefinition'; | ||
export { | ||
menuButtonBehaviorDefinition, | ||
menuButtonBehaviorDefinitionMenuSlot, | ||
menuButtonBehaviorDefinitionMenuSlotWithoutID, | ||
menuButtonBehaviorDefinitionTriggerSlotNotTabbable, | ||
menuButtonBehaviorDefinitionTriggerSlotTabbable, | ||
menuButtonBehaviorDefinitionTriggerSlotWithoutID, | ||
menuButtonBehaviorDefinitionTriggerWithTabIndex, | ||
} from './MenuButton/menuButtonBehaviorDefinition'; | ||
export { pillActionBehaviorDefinition } from './Pill/pillActionBehaviorDefinition'; | ||
export { pillBehaviorDefinition } from './Pill/pillBehaviorDefinition'; | ||
export { pillOptionBehaviorDefinition } from './Pill/pillOptionBehaviorDefinition'; | ||
export { pillGroupBehaviorDefinition } from './Pill/pillGroupBehaviorDefinition'; | ||
export { | ||
popupBehaviorDefinition, | ||
popupBehaviorDefinitionPopupSlot, | ||
popupBehaviorDefinitionTriggerSlotNotTabbable, | ||
popupBehaviorDefinitionTriggerSlotTabbable, | ||
popupBehaviorDefinitionTriggerSlotWithTabIndex, | ||
} from './Popup/popupBehaviorDefinition'; | ||
export { buttonAccessibilityBehaviorDefinition } from './react-button/buttonAccessibilityBehaviorDefinition'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './ComponentTestFacade'; | ||
export { ComponentTestFacade } from './ComponentTestFacade'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
export * from './types'; | ||
export * from './validators/index'; | ||
export * from './facades/index'; | ||
export * from './rules/index'; | ||
export * from './definitions/index'; | ||
export type { AccessibilityBehavior, PropValue, Props, Rule, Slot, TestFacade } from './types'; | ||
export { validateBehavior, validateSlot } from './validators/index'; | ||
export { ComponentTestFacade } from './facades/index'; | ||
export { BehaviorRule, SlotRule } from './rules/index'; | ||
export { | ||
buttonAccessibilityBehaviorDefinition, | ||
buttonBehaviorDefinition, | ||
buttonGroupBehaviorDefinition, | ||
linkBehaviorDefinition, | ||
menuButtonBehaviorDefinition, | ||
menuButtonBehaviorDefinitionMenuSlot, | ||
menuButtonBehaviorDefinitionMenuSlotWithoutID, | ||
menuButtonBehaviorDefinitionTriggerSlotNotTabbable, | ||
menuButtonBehaviorDefinitionTriggerSlotTabbable, | ||
menuButtonBehaviorDefinitionTriggerSlotWithoutID, | ||
menuButtonBehaviorDefinitionTriggerWithTabIndex, | ||
pillActionBehaviorDefinition, | ||
pillBehaviorDefinition, | ||
pillGroupBehaviorDefinition, | ||
pillOptionBehaviorDefinition, | ||
popupBehaviorDefinition, | ||
popupBehaviorDefinitionPopupSlot, | ||
popupBehaviorDefinitionTriggerSlotNotTabbable, | ||
popupBehaviorDefinitionTriggerSlotTabbable, | ||
popupBehaviorDefinitionTriggerSlotWithTabIndex, | ||
toggleButtonBehaviorDefinition, | ||
} from './definitions/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './rules'; | ||
export { BehaviorRule, SlotRule } from './rules'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './validate'; | ||
export { validateBehavior, validateSlot } from './validate'; |
4 changes: 2 additions & 2 deletions
4
packages/codemods/src/codeMods/tests/mock/compat/mockIndex.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './Button'; | ||
export * from './DefaultButton'; | ||
export { Button, OtherButton } from './Button'; | ||
export { DefaultButton } from './DefaultButton'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './jsx'; | ||
export * from './imports'; | ||
export * from './props'; | ||
export * from './transforms'; | ||
export { findJsxTag } from './jsx'; | ||
export { appendOrCreateNamedImport, getImportsByPath, renameImport, repathImport } from './imports'; | ||
export { renameProp } from './props'; | ||
export { boolTransform, enumTransform, numberTransform, stringTransform } from './transforms'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 74 additions & 5 deletions
79
packages/react-components/theme-designer/src/colors/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,74 @@ | ||
export * from './csswg'; | ||
export * from './geometry'; | ||
export * from './palettes'; | ||
export * from './templates'; | ||
export * from './types'; | ||
export { | ||
D50_to_D65, | ||
D65_to_D50, | ||
LAB_to_sRGB, | ||
LCH_to_Lab, | ||
LCH_to_P3, | ||
LCH_to_r2020, | ||
LCH_to_sRGB, | ||
Lab_to_LCH, | ||
Lab_to_XYZ, | ||
P3_to_LCH, | ||
XYZ_to_Lab, | ||
XYZ_to_lin_2020, | ||
XYZ_to_lin_P3, | ||
XYZ_to_lin_ProPhoto, | ||
XYZ_to_lin_a98rgb, | ||
XYZ_to_lin_sRGB, | ||
XYZ_to_uv, | ||
XYZ_to_xy, | ||
contrast, | ||
gam_2020, | ||
gam_P3, | ||
gam_ProPhoto, | ||
gam_a98rgb, | ||
gam_sRGB, | ||
hslToRgb, | ||
hueToChannel, | ||
lin_2020, | ||
lin_2020_to_XYZ, | ||
lin_P3, | ||
lin_P3_to_XYZ, | ||
lin_ProPhoto, | ||
lin_ProPhoto_to_XYZ, | ||
lin_a98rgb, | ||
lin_a98rgb_to_XYZ, | ||
lin_sRGB, | ||
lin_sRGB_to_XYZ, | ||
naive_CMYK_to_sRGB, | ||
naive_sRGB_to_CMYK, | ||
r2020_to_LCH, | ||
rgbToHsv, | ||
sRGB_to_LAB, | ||
sRGB_to_LCH, | ||
sRGB_to_luminance, | ||
snap_into_gamut, | ||
xy_to_uv, | ||
} from './csswg'; | ||
export { getPointOnCurvePath, getPointsOnCurvePath } from './geometry'; | ||
export { | ||
Lab_to_hex, | ||
curvePathFromPalette, | ||
hexColorsFromPalette, | ||
hex_to_LCH, | ||
hex_to_sRGB, | ||
paletteShadesFromCurve, | ||
sRGB_to_hex, | ||
} from './palettes'; | ||
export { paletteTemplate, themeTemplate } from './templates'; | ||
export type { | ||
Curve, | ||
CurvePath, | ||
CurvedHelixPath, | ||
NamedPalette, | ||
NamedTheme, | ||
Palette, | ||
PaletteConfig, | ||
Theme, | ||
ThemeCollectionInclude, | ||
TokenPackageConfig, | ||
TokenPackageType, | ||
Vec2, | ||
Vec3, | ||
Vec4, | ||
} from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './errorMessages'; | ||
export * from './getCallbackArguments'; | ||
export { errorMessageColors, getErrorMessage, formatErrors, formatArray } from './errorMessages'; | ||
export { type ArgumentName, getCallbackArguments } from './getCallbackArguments'; | ||
export { getPackagePath } from './getPackagePath'; | ||
export * from './validateCallbackArguments'; | ||
export { validateCallbackArguments } from './validateCallbackArguments'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import './version'; | ||
|
||
export * from './IconProvider'; | ||
export * from './IconProvider.types'; | ||
export { | ||
// eslint-disable-next-line @fluentui/ban-context-export | ||
IconContext, | ||
IconProvider, | ||
useIconSubset, | ||
} from './IconProvider'; | ||
export type { IconProviderProps } from './IconProvider.types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './withKeytipLayer'; | ||
export * from './withStrictMode'; | ||
export { KeytipLayerWrapper, withKeytipLayer } from './withKeytipLayer'; | ||
export { withStrictMode } from './withStrictMode'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './FluentColors'; | ||
export { CommunicationColors, NeutralColors, SharedColors } from './FluentColors'; | ||
export { DefaultPalette } from './DefaultPalette'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './FluentFonts'; | ||
export { FontSizes, FontWeights, IconFontSizes, LocalizedFontFamilies, LocalizedFontNames } from './FluentFonts'; | ||
export { createFontStyles } from './createFontStyles'; | ||
export { DefaultFontStyles, registerDefaultFontFaces } from './DefaultFontStyles'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
export * from './mergeThemes'; | ||
export * from './types/index'; | ||
export * from './colors/index'; | ||
export * from './effects/index'; | ||
export * from './spacing/index'; | ||
export * from './motion/index'; | ||
export * from './fonts/index'; | ||
export * from './createTheme'; | ||
export { mergeThemes } from './mergeThemes'; | ||
export type { | ||
ComponentStyles, | ||
ComponentsStyles, | ||
IAnimationStyles, | ||
IAnimationVariables, | ||
IEffects, | ||
IFontStyles, | ||
IPalette, | ||
IPartialTheme, | ||
IScheme, | ||
ISchemeNames, | ||
ISemanticColors, | ||
ISemanticTextColors, | ||
ISpacing, | ||
ITheme, | ||
PartialTheme, | ||
Theme, | ||
} from './types/index'; | ||
export { CommunicationColors, DefaultPalette, NeutralColors, SharedColors } from './colors/index'; | ||
export { DefaultEffects, Depths } from './effects/index'; | ||
export { DefaultSpacing } from './spacing/index'; | ||
export { AnimationStyles, AnimationVariables, MotionAnimations, MotionDurations, MotionTimings } from './motion/index'; | ||
export { | ||
DefaultFontStyles, | ||
FontSizes, | ||
FontWeights, | ||
IconFontSizes, | ||
LocalizedFontFamilies, | ||
LocalizedFontNames, | ||
createFontStyles, | ||
registerDefaultFontFaces, | ||
} from './fonts/index'; | ||
export { createTheme } from './createTheme'; | ||
export { FluentTheme } from './FluentTheme'; | ||
|
||
import './version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './FluentMotion'; | ||
export * from './AnimationStyles'; | ||
export { MotionAnimations, MotionDurations, MotionTimings } from './FluentMotion'; | ||
export { AnimationStyles, AnimationVariables } from './AnimationStyles'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
scripts/dangerjs/src/detectNonApprovedDependencies/utils/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export { default as getVersionConstraints } from './getVersionConstraints'; | ||
export { default as getRuntimeDependencies } from './getRuntimeDependencies'; | ||
export { default as getFailedPackageVersionConstraints } from './getFailedPackageVersionConstraints'; | ||
export * from './getFailedPackageVersionConstraints'; | ||
export * from './packageNameUtils'; | ||
export type { FailedConstraintsExplanation } from './getFailedPackageVersionConstraints'; | ||
export { getPackageName, getPackageVersion } from './packageNameUtils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './constants'; | ||
export * from './pullRequests'; | ||
export * from './types'; | ||
export { fluentRepoDetails } from './constants'; | ||
export type { IGetPullRequestFromCommitParams } from './pullRequests'; | ||
export { getPullRequestForCommit, processPullRequestApiResponse } from './pullRequests'; | ||
export type { IPullRequest, IRepoDetails, IUser } from './types'; |