@fluentui/react-migration-v8-v9 9.2.0 → 9.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.swcrc +30 -0
- package/CHANGELOG.json +73 -1
- package/CHANGELOG.md +27 -2
- package/lib/components/Button/ActionButtonShim.js.map +1 -1
- package/lib/components/Button/ButtonShim.js +4 -8
- package/lib/components/Button/ButtonShim.js.map +1 -1
- package/lib/components/Button/CommandButtonShim.js +1 -2
- package/lib/components/Button/CommandButtonShim.js.map +1 -1
- package/lib/components/Button/CompoundButtonShim.js +2 -2
- package/lib/components/Button/CompoundButtonShim.js.map +1 -1
- package/lib/components/Button/DefaultButtonShim.js.map +1 -1
- package/lib/components/Button/MenuButtonShim.js +4 -10
- package/lib/components/Button/MenuButtonShim.js.map +1 -1
- package/lib/components/Button/PrimaryButtonShim.js.map +1 -1
- package/lib/components/Button/ToggleButtonShim.js.map +1 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/shimButtonProps.js +3 -5
- package/lib/components/Button/shimButtonProps.js.map +1 -1
- package/lib/components/Menu/MenuShim.js +12 -23
- package/lib/components/Menu/MenuShim.js.map +1 -1
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/Menu/shimMenuProps.js +3 -5
- package/lib/components/Menu/shimMenuProps.js.map +1 -1
- package/lib/components/Stack/StackItemShim.js.map +1 -1
- package/lib/components/Stack/StackShim.js.map +1 -1
- package/lib/components/Stack/index.js.map +1 -1
- package/lib/components/Stack/stackUtils.js.map +1 -1
- package/lib/components/Theme/index.js.map +1 -1
- package/lib/components/Theme/themeDuplicates.js +1 -2
- package/lib/components/Theme/themeDuplicates.js.map +1 -1
- package/lib/components/Theme/v8ThemeShim.js +0 -12
- package/lib/components/Theme/v8ThemeShim.js.map +1 -1
- package/lib/components/Theme/v9BrandVariantsShim.js.map +1 -1
- package/lib/components/Theme/v9ThemeShim.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Button/ActionButtonShim.js +21 -20
- package/lib-commonjs/components/Button/ActionButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/ButtonShim.js +25 -25
- package/lib-commonjs/components/Button/ButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/CommandButtonShim.js +9 -12
- package/lib-commonjs/components/Button/CommandButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/CompoundButtonShim.js +24 -23
- package/lib-commonjs/components/Button/CompoundButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/DefaultButtonShim.js +14 -13
- package/lib-commonjs/components/Button/DefaultButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/MenuButtonShim.js +24 -27
- package/lib-commonjs/components/Button/MenuButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/PrimaryButtonShim.js +15 -14
- package/lib-commonjs/components/Button/PrimaryButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/ToggleButtonShim.js +24 -23
- package/lib-commonjs/components/Button/ToggleButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/index.js +13 -12
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/shimButtonProps.js +33 -28
- package/lib-commonjs/components/Button/shimButtonProps.js.map +1 -1
- package/lib-commonjs/components/Menu/MenuShim.js +42 -52
- package/lib-commonjs/components/Menu/MenuShim.js.map +1 -1
- package/lib-commonjs/components/Menu/index.js +6 -5
- package/lib-commonjs/components/Menu/index.js.map +1 -1
- package/lib-commonjs/components/Menu/shimMenuProps.js +44 -38
- package/lib-commonjs/components/Menu/shimMenuProps.js.map +1 -1
- package/lib-commonjs/components/Stack/StackItemShim.js +195 -157
- package/lib-commonjs/components/Stack/StackItemShim.js.map +1 -1
- package/lib-commonjs/components/Stack/StackShim.js +273 -230
- package/lib-commonjs/components/Stack/StackShim.js.map +1 -1
- package/lib-commonjs/components/Stack/index.js +6 -5
- package/lib-commonjs/components/Stack/index.js.map +1 -1
- package/lib-commonjs/components/Stack/stackUtils.js +145 -151
- package/lib-commonjs/components/Stack/stackUtils.js.map +1 -1
- package/lib-commonjs/components/Theme/index.js +8 -7
- package/lib-commonjs/components/Theme/index.js.map +1 -1
- package/lib-commonjs/components/Theme/themeDuplicates.js +810 -786
- package/lib-commonjs/components/Theme/themeDuplicates.js.map +1 -1
- package/lib-commonjs/components/Theme/v8ThemeShim.js +285 -307
- package/lib-commonjs/components/Theme/v8ThemeShim.js.map +1 -1
- package/lib-commonjs/components/Theme/v9BrandVariantsShim.js +56 -61
- package/lib-commonjs/components/Theme/v9BrandVariantsShim.js.map +1 -1
- package/lib-commonjs/components/Theme/v9ThemeShim.js +183 -188
- package/lib-commonjs/components/Theme/v9ThemeShim.js.map +1 -1
- package/lib-commonjs/index.js +48 -200
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +11 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["webLightTheme","blackAlpha","whiteAlpha","grey","grey10Alpha","grey12Alpha","mapAliasColors","palette","inverted","colorNeutralForeground1","neutralPrimary","colorNeutralForeground1Hover","colorNeutralForeground1Pressed","colorNeutralForeground1Selected","colorNeutralForeground2","neutralSecondary","colorNeutralForeground2Hover","colorNeutralForeground2Pressed","colorNeutralForeground2Selected","colorNeutralForeground2BrandHover","themePrimary","colorNeutralForeground2BrandPressed","themeDarkAlt","colorNeutralForeground2BrandSelected","colorNeutralForeground3","neutralTertiary","colorNeutralForeground3Hover","colorNeutralForeground3Pressed","colorNeutralForeground3Selected","colorNeutralForeground3BrandHover","colorNeutralForeground3BrandPressed","colorNeutralForeground3BrandSelected","colorNeutralForeground4","neutralQuaternary","colorNeutralForegroundDisabled","neutralTertiaryAlt","colorNeutralForegroundInvertedDisabled","colorBrandForegroundLink","colorBrandForegroundLinkHover","themeDark","colorBrandForegroundLinkPressed","themeDarker","colorBrandForegroundLinkSelected","colorNeutralForeground2Link","colorNeutralForeground2LinkHover","colorNeutralForeground2LinkPressed","colorNeutralForeground2LinkSelected","colorCompoundBrandForeground1","colorCompoundBrandForeground1Hover","colorCompoundBrandForeground1Pressed","colorBrandForeground1","colorBrandForeground2","colorNeutralForeground1Static","colorNeutralForegroundInverted","white","colorNeutralForegroundInvertedHover","colorNeutralForegroundInvertedPressed","colorNeutralForegroundInvertedSelected","colorNeutralForegroundOnBrand","colorNeutralForegroundStaticInverted","colorNeutralForegroundInvertedLink","colorNeutralForegroundInvertedLinkHover","colorNeutralForegroundInvertedLinkPressed","colorNeutralForegroundInvertedLinkSelected","colorNeutralForegroundInverted2","colorBrandForegroundInverted","themeSecondary","colorBrandForegroundInvertedHover","themeTertiary","colorBrandForegroundInvertedPressed","colorBrandForegroundOnLight","colorBrandForegroundOnLightHover","colorBrandForegroundOnLightPressed","colorBrandForegroundOnLightSelected","colorNeutralBackground1","colorNeutralBackground1Hover","neutralLighter","colorNeutralBackground1Pressed","neutralQuaternaryAlt","colorNeutralBackground1Selected","neutralLight","colorNeutralBackground2","neutralLighterAlt","colorNeutralBackground2Hover","colorNeutralBackground2Pressed","colorNeutralBackground2Selected","colorNeutralBackground3","colorNeutralBackground3Hover","colorNeutralBackground3Pressed","colorNeutralBackground3Selected","colorNeutralBackground4","colorNeutralBackground4Hover","colorNeutralBackground4Pressed","colorNeutralBackground4Selected","colorNeutralBackground5","colorNeutralBackground5Hover","colorNeutralBackground5Pressed","colorNeutralBackground5Selected","colorNeutralBackground6","colorNeutralBackgroundStatic","colorNeutralBackgroundInverted","colorNeutralBackgroundAlpha","colorNeutralBackgroundAlpha2","colorSubtleBackground","colorSubtleBackgroundHover","colorSubtleBackgroundPressed","colorSubtleBackgroundSelected","colorSubtleBackgroundLightAlphaHover","colorSubtleBackgroundLightAlphaPressed","colorSubtleBackgroundLightAlphaSelected","colorSubtleBackgroundInverted","colorSubtleBackgroundInvertedHover","colorSubtleBackgroundInvertedPressed","colorSubtleBackgroundInvertedSelected","colorTransparentBackground","colorTransparentBackgroundHover","colorTransparentBackgroundPressed","colorTransparentBackgroundSelected","colorNeutralBackgroundDisabled","colorNeutralBackgroundInvertedDisabled","colorNeutralStencil1","colorNeutralStencil2","colorNeutralStencil1Alpha","colorNeutralStencil2Alpha","colorBackgroundOverlay","colorScrollbarOverlay","colorBrandBackground","colorBrandBackgroundHover","colorBrandBackgroundPressed","colorBrandBackgroundSelected","colorCompoundBrandBackground","colorCompoundBrandBackgroundHover","colorCompoundBrandBackgroundPressed","colorBrandBackgroundStatic","colorBrandBackground2","themeLighterAlt","colorBrandBackgroundInverted","colorBrandBackgroundInvertedHover","colorBrandBackgroundInvertedPressed","themeLight","colorBrandBackgroundInvertedSelected","themeLighter","colorNeutralStrokeAccessible","colorNeutralStrokeAccessibleHover","colorNeutralStrokeAccessiblePressed","colorNeutralStrokeAccessibleSelected","colorNeutralStroke1","colorNeutralStroke1Hover","colorNeutralStroke1Pressed","colorNeutralStroke1Selected","colorNeutralStroke2","colorNeutralStroke3","colorNeutralStrokeOnBrand","colorNeutralStrokeOnBrand2","colorNeutralStrokeOnBrand2Hover","colorNeutralStrokeOnBrand2Pressed","colorNeutralStrokeOnBrand2Selected","colorBrandStroke1","colorBrandStroke2","colorCompoundBrandStroke","colorCompoundBrandStrokeHover","colorCompoundBrandStrokePressed","colorNeutralStrokeDisabled","colorNeutralStrokeInvertedDisabled","colorTransparentStroke","colorTransparentStrokeInteractive","colorTransparentStrokeDisabled","colorNeutralStrokeAlpha","colorStrokeFocus1","colorStrokeFocus2","black","colorNeutralShadowAmbient","colorNeutralShadowKey","colorNeutralShadowAmbientLighter","colorNeutralShadowKeyLighter","colorNeutralShadowAmbientDarker","colorNeutralShadowKeyDarker","colorBrandShadowAmbient","colorBrandShadowKey","mapShadowTokens","effects","shadow4","elevation4","shadow8","elevation8","shadow16","elevation16","shadow64","elevation64","mapBorderRadiusTokens","borderRadiusSmall","roundedCorner2","borderRadiusMedium","roundedCorner4","borderRadiusLarge","roundedCorner6","createV9Theme","themeV8","baseThemeV9","baseTheme","isInverted"],"sources":["../src/packages/react-components/react-migration-v8-v9/src/components/Theme/v9ThemeShim.ts"],"sourcesContent":["import { Theme as ThemeV8 } from '@fluentui/react';\nimport type { IEffects, IPalette } from '@fluentui/react';\nimport { Theme as ThemeV9, webLightTheme } from '@fluentui/react-components';\nimport type { BorderRadiusTokens, ColorTokens, ShadowTokens } from '@fluentui/react-components';\nimport { blackAlpha, whiteAlpha, grey, grey10Alpha, grey12Alpha } from './themeDuplicates';\n\n/**\n * Creates v9 color tokens from a v8 palette.\n */\nconst mapAliasColors = (palette: IPalette, inverted: boolean): ColorTokens => {\n return {\n colorNeutralForeground1: palette.neutralPrimary,\n colorNeutralForeground1Hover: palette.neutralPrimary,\n colorNeutralForeground1Pressed: palette.neutralPrimary,\n colorNeutralForeground1Selected: palette.neutralPrimary,\n colorNeutralForeground2: palette.neutralSecondary,\n colorNeutralForeground2Hover: palette.neutralPrimary,\n colorNeutralForeground2Pressed: palette.neutralPrimary,\n colorNeutralForeground2Selected: palette.neutralPrimary,\n colorNeutralForeground2BrandHover: palette.themePrimary,\n colorNeutralForeground2BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground2BrandSelected: palette.themePrimary,\n colorNeutralForeground3: palette.neutralTertiary,\n colorNeutralForeground3Hover: palette.neutralSecondary,\n colorNeutralForeground3Pressed: palette.neutralSecondary,\n colorNeutralForeground3Selected: palette.neutralSecondary,\n colorNeutralForeground3BrandHover: palette.themePrimary,\n colorNeutralForeground3BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground3BrandSelected: palette.themePrimary,\n colorNeutralForeground4: palette.neutralQuaternary,\n colorNeutralForegroundDisabled: palette.neutralTertiaryAlt,\n colorNeutralForegroundInvertedDisabled: whiteAlpha[40],\n colorBrandForegroundLink: palette.themeDarkAlt,\n colorBrandForegroundLinkHover: palette.themeDark,\n colorBrandForegroundLinkPressed: palette.themeDarker,\n colorBrandForegroundLinkSelected: palette.themeDarkAlt,\n colorNeutralForeground2Link: palette.neutralSecondary,\n colorNeutralForeground2LinkHover: palette.neutralPrimary,\n colorNeutralForeground2LinkPressed: palette.neutralPrimary,\n colorNeutralForeground2LinkSelected: palette.neutralPrimary,\n colorCompoundBrandForeground1: palette.themePrimary,\n colorCompoundBrandForeground1Hover: palette.themeDarkAlt,\n colorCompoundBrandForeground1Pressed: palette.themeDark,\n colorBrandForeground1: palette.themePrimary,\n colorBrandForeground2: palette.themeDarkAlt,\n colorNeutralForeground1Static: palette.neutralPrimary,\n colorNeutralForegroundInverted: palette.white,\n colorNeutralForegroundInvertedHover: palette.white,\n colorNeutralForegroundInvertedPressed: palette.white,\n colorNeutralForegroundInvertedSelected: palette.white,\n colorNeutralForegroundOnBrand: palette.white,\n colorNeutralForegroundStaticInverted: palette.white,\n colorNeutralForegroundInvertedLink: palette.white,\n colorNeutralForegroundInvertedLinkHover: palette.white,\n colorNeutralForegroundInvertedLinkPressed: palette.white,\n colorNeutralForegroundInvertedLinkSelected: palette.white,\n colorNeutralForegroundInverted2: palette.white,\n colorBrandForegroundInverted: palette.themeSecondary,\n colorBrandForegroundInvertedHover: palette.themeTertiary,\n colorBrandForegroundInvertedPressed: palette.themeSecondary,\n colorBrandForegroundOnLight: palette.themePrimary,\n colorBrandForegroundOnLightHover: palette.themeDarkAlt,\n colorBrandForegroundOnLightPressed: palette.themeDark,\n colorBrandForegroundOnLightSelected: palette.themeDark,\n colorNeutralBackground1: palette.white,\n colorNeutralBackground1Hover: palette.neutralLighter,\n colorNeutralBackground1Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground1Selected: palette.neutralLight,\n colorNeutralBackground2: palette.neutralLighterAlt,\n colorNeutralBackground2Hover: palette.neutralLighter,\n colorNeutralBackground2Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground2Selected: palette.neutralLight,\n colorNeutralBackground3: palette.neutralLighter,\n colorNeutralBackground3Hover: palette.neutralLight,\n colorNeutralBackground3Pressed: palette.neutralQuaternary,\n colorNeutralBackground3Selected: palette.neutralQuaternaryAlt,\n colorNeutralBackground4: palette.neutralLighter,\n colorNeutralBackground4Hover: palette.neutralLighterAlt,\n colorNeutralBackground4Pressed: palette.neutralLighter,\n colorNeutralBackground4Selected: palette.white,\n colorNeutralBackground5: palette.neutralLight,\n colorNeutralBackground5Hover: palette.neutralLighter,\n colorNeutralBackground5Pressed: palette.neutralLighter,\n colorNeutralBackground5Selected: palette.neutralLighterAlt,\n colorNeutralBackground6: palette.neutralLight,\n colorNeutralBackgroundStatic: grey[20],\n colorNeutralBackgroundInverted: palette.neutralSecondary,\n colorNeutralBackgroundAlpha: inverted ? grey10Alpha[50] : whiteAlpha[50],\n colorNeutralBackgroundAlpha2: inverted ? grey12Alpha[70] : whiteAlpha[80],\n colorSubtleBackground: 'transparent',\n colorSubtleBackgroundHover: palette.neutralLighter,\n colorSubtleBackgroundPressed: palette.neutralQuaternaryAlt,\n colorSubtleBackgroundSelected: palette.neutralLight,\n colorSubtleBackgroundLightAlphaHover: inverted ? whiteAlpha[10] : whiteAlpha[80],\n colorSubtleBackgroundLightAlphaPressed: inverted ? whiteAlpha[5] : whiteAlpha[50],\n colorSubtleBackgroundLightAlphaSelected: 'transparent',\n colorSubtleBackgroundInverted: 'transparent',\n colorSubtleBackgroundInvertedHover: blackAlpha[10],\n colorSubtleBackgroundInvertedPressed: blackAlpha[30],\n colorSubtleBackgroundInvertedSelected: blackAlpha[20],\n colorTransparentBackground: 'transparent',\n colorTransparentBackgroundHover: 'transparent',\n colorTransparentBackgroundPressed: 'transparent',\n colorTransparentBackgroundSelected: 'transparent',\n colorNeutralBackgroundDisabled: palette.neutralLighter,\n colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],\n colorNeutralStencil1: palette.neutralLight,\n colorNeutralStencil2: palette.neutralLighterAlt,\n colorNeutralStencil1Alpha: inverted ? whiteAlpha[10] : blackAlpha[10],\n colorNeutralStencil2Alpha: inverted ? whiteAlpha[5] : blackAlpha[5],\n colorBackgroundOverlay: blackAlpha[40],\n colorScrollbarOverlay: blackAlpha[50],\n colorBrandBackground: palette.themePrimary,\n colorBrandBackgroundHover: palette.themeDarkAlt,\n colorBrandBackgroundPressed: palette.themeDarker,\n colorBrandBackgroundSelected: palette.themeDark,\n colorCompoundBrandBackground: palette.themePrimary,\n colorCompoundBrandBackgroundHover: palette.themeDarkAlt,\n colorCompoundBrandBackgroundPressed: palette.themeDark,\n colorBrandBackgroundStatic: palette.themePrimary,\n colorBrandBackground2: palette.themeLighterAlt,\n colorBrandBackgroundInverted: palette.white,\n colorBrandBackgroundInvertedHover: palette.themeLighterAlt,\n colorBrandBackgroundInvertedPressed: palette.themeLight,\n colorBrandBackgroundInvertedSelected: palette.themeLighter,\n colorNeutralStrokeAccessible: palette.neutralSecondary,\n colorNeutralStrokeAccessibleHover: palette.neutralSecondary,\n colorNeutralStrokeAccessiblePressed: palette.neutralSecondary,\n colorNeutralStrokeAccessibleSelected: palette.themePrimary,\n colorNeutralStroke1: palette.neutralQuaternary,\n colorNeutralStroke1Hover: palette.neutralTertiaryAlt,\n colorNeutralStroke1Pressed: palette.neutralTertiaryAlt,\n colorNeutralStroke1Selected: palette.neutralTertiaryAlt,\n colorNeutralStroke2: palette.neutralQuaternaryAlt,\n colorNeutralStroke3: palette.neutralLighter,\n colorNeutralStrokeOnBrand: palette.white,\n colorNeutralStrokeOnBrand2: palette.white,\n colorNeutralStrokeOnBrand2Hover: palette.white,\n colorNeutralStrokeOnBrand2Pressed: palette.white,\n colorNeutralStrokeOnBrand2Selected: palette.white,\n colorBrandStroke1: palette.themePrimary,\n colorBrandStroke2: palette.themeLight,\n colorCompoundBrandStroke: palette.themePrimary,\n colorCompoundBrandStrokeHover: palette.themeDarkAlt,\n colorCompoundBrandStrokePressed: palette.themeDark,\n colorNeutralStrokeDisabled: palette.neutralQuaternaryAlt,\n colorNeutralStrokeInvertedDisabled: whiteAlpha[40],\n colorTransparentStroke: 'transparent',\n colorTransparentStrokeInteractive: 'transparent',\n colorTransparentStrokeDisabled: 'transparent',\n colorNeutralStrokeAlpha: inverted ? whiteAlpha[10] : blackAlpha[5],\n colorStrokeFocus1: palette.white,\n colorStrokeFocus2: palette.black,\n colorNeutralShadowAmbient: 'rgba(0,0,0,0.12)',\n colorNeutralShadowKey: 'rgba(0,0,0,0.14)',\n colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.06)',\n colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.07)',\n colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.20)',\n colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.24)',\n colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',\n colorBrandShadowKey: 'rgba(0,0,0,0.25)',\n };\n};\n\n/**\n * Creates v9 shadow tokens from v8 effects.\n */\nconst mapShadowTokens = (effects: IEffects): Partial<ShadowTokens> => {\n return {\n shadow4: effects.elevation4,\n shadow8: effects.elevation8,\n shadow16: effects.elevation16,\n shadow64: effects.elevation64,\n };\n};\n\n/**\n * Creates v9 border radius tokens from v8 effects\n */\nconst mapBorderRadiusTokens = (effects: IEffects): Partial<BorderRadiusTokens> => {\n return {\n borderRadiusSmall: effects.roundedCorner2,\n borderRadiusMedium: effects.roundedCorner4,\n borderRadiusLarge: effects.roundedCorner6,\n };\n};\n\n/**\n * Creates a v9 theme from a v8 theme.\n * You can optional pass a base v9 theme; otherwise webLightTheme is used.\n */\nexport const createV9Theme = (themeV8: ThemeV8, baseThemeV9?: ThemeV9): ThemeV9 => {\n const baseTheme = baseThemeV9 ?? webLightTheme;\n\n return {\n ...baseTheme,\n ...mapAliasColors(themeV8.palette, themeV8.isInverted),\n ...mapShadowTokens(themeV8.effects),\n ...mapBorderRadiusTokens(themeV8.effects),\n };\n};\n"],"mappings":"AAEA,SAA2BA,aAAa,QAAQ,4BAA4B;AAE5E,SAASC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,WAAW,EAAEC,WAAW,QAAQ,mBAAmB;AAE1F;;;AAGA,MAAMC,cAAc,GAAGA,CAACC,OAAiB,EAAEC,QAAiB,KAAiB;EAC3E,OAAO;IACL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M,aAAa;EAE9C,OAAO;IACL,GAAGuM,SAAS;IACZ,GAAGjM,cAAc,CAAC+L,OAAO,CAAC9L,OAAO,EAAE8L,OAAO,CAACG,UAAU,CAAC;IACtD,GAAGrB,eAAe,CAACkB,OAAO,CAACjB,OAAO,CAAC;IACnC,GAAGS,qBAAqB,CAACQ,OAAO,CAACjB,OAAO;GACzC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"names":["webLightTheme","blackAlpha","whiteAlpha","grey","grey10Alpha","grey12Alpha","mapAliasColors","palette","inverted","colorNeutralForeground1","neutralPrimary","colorNeutralForeground1Hover","colorNeutralForeground1Pressed","colorNeutralForeground1Selected","colorNeutralForeground2","neutralSecondary","colorNeutralForeground2Hover","colorNeutralForeground2Pressed","colorNeutralForeground2Selected","colorNeutralForeground2BrandHover","themePrimary","colorNeutralForeground2BrandPressed","themeDarkAlt","colorNeutralForeground2BrandSelected","colorNeutralForeground3","neutralTertiary","colorNeutralForeground3Hover","colorNeutralForeground3Pressed","colorNeutralForeground3Selected","colorNeutralForeground3BrandHover","colorNeutralForeground3BrandPressed","colorNeutralForeground3BrandSelected","colorNeutralForeground4","neutralQuaternary","colorNeutralForegroundDisabled","neutralTertiaryAlt","colorNeutralForegroundInvertedDisabled","colorBrandForegroundLink","colorBrandForegroundLinkHover","themeDark","colorBrandForegroundLinkPressed","themeDarker","colorBrandForegroundLinkSelected","colorNeutralForeground2Link","colorNeutralForeground2LinkHover","colorNeutralForeground2LinkPressed","colorNeutralForeground2LinkSelected","colorCompoundBrandForeground1","colorCompoundBrandForeground1Hover","colorCompoundBrandForeground1Pressed","colorBrandForeground1","colorBrandForeground2","colorNeutralForeground1Static","colorNeutralForegroundInverted","white","colorNeutralForegroundInvertedHover","colorNeutralForegroundInvertedPressed","colorNeutralForegroundInvertedSelected","colorNeutralForegroundOnBrand","colorNeutralForegroundStaticInverted","colorNeutralForegroundInvertedLink","colorNeutralForegroundInvertedLinkHover","colorNeutralForegroundInvertedLinkPressed","colorNeutralForegroundInvertedLinkSelected","colorNeutralForegroundInverted2","colorBrandForegroundInverted","themeSecondary","colorBrandForegroundInvertedHover","themeTertiary","colorBrandForegroundInvertedPressed","colorBrandForegroundOnLight","colorBrandForegroundOnLightHover","colorBrandForegroundOnLightPressed","colorBrandForegroundOnLightSelected","colorNeutralBackground1","colorNeutralBackground1Hover","neutralLighter","colorNeutralBackground1Pressed","neutralQuaternaryAlt","colorNeutralBackground1Selected","neutralLight","colorNeutralBackground2","neutralLighterAlt","colorNeutralBackground2Hover","colorNeutralBackground2Pressed","colorNeutralBackground2Selected","colorNeutralBackground3","colorNeutralBackground3Hover","colorNeutralBackground3Pressed","colorNeutralBackground3Selected","colorNeutralBackground4","colorNeutralBackground4Hover","colorNeutralBackground4Pressed","colorNeutralBackground4Selected","colorNeutralBackground5","colorNeutralBackground5Hover","colorNeutralBackground5Pressed","colorNeutralBackground5Selected","colorNeutralBackground6","colorNeutralBackgroundStatic","colorNeutralBackgroundInverted","colorNeutralBackgroundAlpha","colorNeutralBackgroundAlpha2","colorSubtleBackground","colorSubtleBackgroundHover","colorSubtleBackgroundPressed","colorSubtleBackgroundSelected","colorSubtleBackgroundLightAlphaHover","colorSubtleBackgroundLightAlphaPressed","colorSubtleBackgroundLightAlphaSelected","colorSubtleBackgroundInverted","colorSubtleBackgroundInvertedHover","colorSubtleBackgroundInvertedPressed","colorSubtleBackgroundInvertedSelected","colorTransparentBackground","colorTransparentBackgroundHover","colorTransparentBackgroundPressed","colorTransparentBackgroundSelected","colorNeutralBackgroundDisabled","colorNeutralBackgroundInvertedDisabled","colorNeutralStencil1","colorNeutralStencil2","colorNeutralStencil1Alpha","colorNeutralStencil2Alpha","colorBackgroundOverlay","colorScrollbarOverlay","colorBrandBackground","colorBrandBackgroundHover","colorBrandBackgroundPressed","colorBrandBackgroundSelected","colorCompoundBrandBackground","colorCompoundBrandBackgroundHover","colorCompoundBrandBackgroundPressed","colorBrandBackgroundStatic","colorBrandBackground2","themeLighterAlt","colorBrandBackgroundInverted","colorBrandBackgroundInvertedHover","colorBrandBackgroundInvertedPressed","themeLight","colorBrandBackgroundInvertedSelected","themeLighter","colorNeutralStrokeAccessible","colorNeutralStrokeAccessibleHover","colorNeutralStrokeAccessiblePressed","colorNeutralStrokeAccessibleSelected","colorNeutralStroke1","colorNeutralStroke1Hover","colorNeutralStroke1Pressed","colorNeutralStroke1Selected","colorNeutralStroke2","colorNeutralStroke3","colorNeutralStrokeOnBrand","colorNeutralStrokeOnBrand2","colorNeutralStrokeOnBrand2Hover","colorNeutralStrokeOnBrand2Pressed","colorNeutralStrokeOnBrand2Selected","colorBrandStroke1","colorBrandStroke2","colorCompoundBrandStroke","colorCompoundBrandStrokeHover","colorCompoundBrandStrokePressed","colorNeutralStrokeDisabled","colorNeutralStrokeInvertedDisabled","colorTransparentStroke","colorTransparentStrokeInteractive","colorTransparentStrokeDisabled","colorNeutralStrokeAlpha","colorStrokeFocus1","colorStrokeFocus2","black","colorNeutralShadowAmbient","colorNeutralShadowKey","colorNeutralShadowAmbientLighter","colorNeutralShadowKeyLighter","colorNeutralShadowAmbientDarker","colorNeutralShadowKeyDarker","colorBrandShadowAmbient","colorBrandShadowKey","mapShadowTokens","effects","shadow4","elevation4","shadow8","elevation8","shadow16","elevation16","shadow64","elevation64","mapBorderRadiusTokens","borderRadiusSmall","roundedCorner2","borderRadiusMedium","roundedCorner4","borderRadiusLarge","roundedCorner6","createV9Theme","themeV8","baseThemeV9","baseTheme","isInverted"],"sources":["../../../src/components/Theme/v9ThemeShim.ts"],"sourcesContent":["import { Theme as ThemeV8 } from '@fluentui/react';\nimport type { IEffects, IPalette } from '@fluentui/react';\nimport { Theme as ThemeV9, webLightTheme } from '@fluentui/react-components';\nimport type { BorderRadiusTokens, ColorTokens, ShadowTokens } from '@fluentui/react-components';\nimport { blackAlpha, whiteAlpha, grey, grey10Alpha, grey12Alpha } from './themeDuplicates';\n\n/**\n * Creates v9 color tokens from a v8 palette.\n */\nconst mapAliasColors = (palette: IPalette, inverted: boolean): ColorTokens => {\n return {\n colorNeutralForeground1: palette.neutralPrimary,\n colorNeutralForeground1Hover: palette.neutralPrimary,\n colorNeutralForeground1Pressed: palette.neutralPrimary,\n colorNeutralForeground1Selected: palette.neutralPrimary,\n colorNeutralForeground2: palette.neutralSecondary,\n colorNeutralForeground2Hover: palette.neutralPrimary,\n colorNeutralForeground2Pressed: palette.neutralPrimary,\n colorNeutralForeground2Selected: palette.neutralPrimary,\n colorNeutralForeground2BrandHover: palette.themePrimary,\n colorNeutralForeground2BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground2BrandSelected: palette.themePrimary,\n colorNeutralForeground3: palette.neutralTertiary,\n colorNeutralForeground3Hover: palette.neutralSecondary,\n colorNeutralForeground3Pressed: palette.neutralSecondary,\n colorNeutralForeground3Selected: palette.neutralSecondary,\n colorNeutralForeground3BrandHover: palette.themePrimary,\n colorNeutralForeground3BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground3BrandSelected: palette.themePrimary,\n colorNeutralForeground4: palette.neutralQuaternary,\n colorNeutralForegroundDisabled: palette.neutralTertiaryAlt,\n colorNeutralForegroundInvertedDisabled: whiteAlpha[40],\n colorBrandForegroundLink: palette.themeDarkAlt,\n colorBrandForegroundLinkHover: palette.themeDark,\n colorBrandForegroundLinkPressed: palette.themeDarker,\n colorBrandForegroundLinkSelected: palette.themeDarkAlt,\n colorNeutralForeground2Link: palette.neutralSecondary,\n colorNeutralForeground2LinkHover: palette.neutralPrimary,\n colorNeutralForeground2LinkPressed: palette.neutralPrimary,\n colorNeutralForeground2LinkSelected: palette.neutralPrimary,\n colorCompoundBrandForeground1: palette.themePrimary,\n colorCompoundBrandForeground1Hover: palette.themeDarkAlt,\n colorCompoundBrandForeground1Pressed: palette.themeDark,\n colorBrandForeground1: palette.themePrimary,\n colorBrandForeground2: palette.themeDarkAlt,\n colorNeutralForeground1Static: palette.neutralPrimary,\n colorNeutralForegroundInverted: palette.white,\n colorNeutralForegroundInvertedHover: palette.white,\n colorNeutralForegroundInvertedPressed: palette.white,\n colorNeutralForegroundInvertedSelected: palette.white,\n colorNeutralForegroundOnBrand: palette.white,\n colorNeutralForegroundStaticInverted: palette.white,\n colorNeutralForegroundInvertedLink: palette.white,\n colorNeutralForegroundInvertedLinkHover: palette.white,\n colorNeutralForegroundInvertedLinkPressed: palette.white,\n colorNeutralForegroundInvertedLinkSelected: palette.white,\n colorNeutralForegroundInverted2: palette.white,\n colorBrandForegroundInverted: palette.themeSecondary,\n colorBrandForegroundInvertedHover: palette.themeTertiary,\n colorBrandForegroundInvertedPressed: palette.themeSecondary,\n colorBrandForegroundOnLight: palette.themePrimary,\n colorBrandForegroundOnLightHover: palette.themeDarkAlt,\n colorBrandForegroundOnLightPressed: palette.themeDark,\n colorBrandForegroundOnLightSelected: palette.themeDark,\n colorNeutralBackground1: palette.white,\n colorNeutralBackground1Hover: palette.neutralLighter,\n colorNeutralBackground1Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground1Selected: palette.neutralLight,\n colorNeutralBackground2: palette.neutralLighterAlt,\n colorNeutralBackground2Hover: palette.neutralLighter,\n colorNeutralBackground2Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground2Selected: palette.neutralLight,\n colorNeutralBackground3: palette.neutralLighter,\n colorNeutralBackground3Hover: palette.neutralLight,\n colorNeutralBackground3Pressed: palette.neutralQuaternary,\n colorNeutralBackground3Selected: palette.neutralQuaternaryAlt,\n colorNeutralBackground4: palette.neutralLighter,\n colorNeutralBackground4Hover: palette.neutralLighterAlt,\n colorNeutralBackground4Pressed: palette.neutralLighter,\n colorNeutralBackground4Selected: palette.white,\n colorNeutralBackground5: palette.neutralLight,\n colorNeutralBackground5Hover: palette.neutralLighter,\n colorNeutralBackground5Pressed: palette.neutralLighter,\n colorNeutralBackground5Selected: palette.neutralLighterAlt,\n colorNeutralBackground6: palette.neutralLight,\n colorNeutralBackgroundStatic: grey[20],\n colorNeutralBackgroundInverted: palette.neutralSecondary,\n colorNeutralBackgroundAlpha: inverted ? grey10Alpha[50] : whiteAlpha[50],\n colorNeutralBackgroundAlpha2: inverted ? grey12Alpha[70] : whiteAlpha[80],\n colorSubtleBackground: 'transparent',\n colorSubtleBackgroundHover: palette.neutralLighter,\n colorSubtleBackgroundPressed: palette.neutralQuaternaryAlt,\n colorSubtleBackgroundSelected: palette.neutralLight,\n colorSubtleBackgroundLightAlphaHover: inverted ? whiteAlpha[10] : whiteAlpha[80],\n colorSubtleBackgroundLightAlphaPressed: inverted ? whiteAlpha[5] : whiteAlpha[50],\n colorSubtleBackgroundLightAlphaSelected: 'transparent',\n colorSubtleBackgroundInverted: 'transparent',\n colorSubtleBackgroundInvertedHover: blackAlpha[10],\n colorSubtleBackgroundInvertedPressed: blackAlpha[30],\n colorSubtleBackgroundInvertedSelected: blackAlpha[20],\n colorTransparentBackground: 'transparent',\n colorTransparentBackgroundHover: 'transparent',\n colorTransparentBackgroundPressed: 'transparent',\n colorTransparentBackgroundSelected: 'transparent',\n colorNeutralBackgroundDisabled: palette.neutralLighter,\n colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],\n colorNeutralStencil1: palette.neutralLight,\n colorNeutralStencil2: palette.neutralLighterAlt,\n colorNeutralStencil1Alpha: inverted ? whiteAlpha[10] : blackAlpha[10],\n colorNeutralStencil2Alpha: inverted ? whiteAlpha[5] : blackAlpha[5],\n colorBackgroundOverlay: blackAlpha[40],\n colorScrollbarOverlay: blackAlpha[50],\n colorBrandBackground: palette.themePrimary,\n colorBrandBackgroundHover: palette.themeDarkAlt,\n colorBrandBackgroundPressed: palette.themeDarker,\n colorBrandBackgroundSelected: palette.themeDark,\n colorCompoundBrandBackground: palette.themePrimary,\n colorCompoundBrandBackgroundHover: palette.themeDarkAlt,\n colorCompoundBrandBackgroundPressed: palette.themeDark,\n colorBrandBackgroundStatic: palette.themePrimary,\n colorBrandBackground2: palette.themeLighterAlt,\n colorBrandBackgroundInverted: palette.white,\n colorBrandBackgroundInvertedHover: palette.themeLighterAlt,\n colorBrandBackgroundInvertedPressed: palette.themeLight,\n colorBrandBackgroundInvertedSelected: palette.themeLighter,\n colorNeutralStrokeAccessible: palette.neutralSecondary,\n colorNeutralStrokeAccessibleHover: palette.neutralSecondary,\n colorNeutralStrokeAccessiblePressed: palette.neutralSecondary,\n colorNeutralStrokeAccessibleSelected: palette.themePrimary,\n colorNeutralStroke1: palette.neutralQuaternary,\n colorNeutralStroke1Hover: palette.neutralTertiaryAlt,\n colorNeutralStroke1Pressed: palette.neutralTertiaryAlt,\n colorNeutralStroke1Selected: palette.neutralTertiaryAlt,\n colorNeutralStroke2: palette.neutralQuaternaryAlt,\n colorNeutralStroke3: palette.neutralLighter,\n colorNeutralStrokeOnBrand: palette.white,\n colorNeutralStrokeOnBrand2: palette.white,\n colorNeutralStrokeOnBrand2Hover: palette.white,\n colorNeutralStrokeOnBrand2Pressed: palette.white,\n colorNeutralStrokeOnBrand2Selected: palette.white,\n colorBrandStroke1: palette.themePrimary,\n colorBrandStroke2: palette.themeLight,\n colorCompoundBrandStroke: palette.themePrimary,\n colorCompoundBrandStrokeHover: palette.themeDarkAlt,\n colorCompoundBrandStrokePressed: palette.themeDark,\n colorNeutralStrokeDisabled: palette.neutralQuaternaryAlt,\n colorNeutralStrokeInvertedDisabled: whiteAlpha[40],\n colorTransparentStroke: 'transparent',\n colorTransparentStrokeInteractive: 'transparent',\n colorTransparentStrokeDisabled: 'transparent',\n colorNeutralStrokeAlpha: inverted ? whiteAlpha[10] : blackAlpha[5],\n colorStrokeFocus1: palette.white,\n colorStrokeFocus2: palette.black,\n colorNeutralShadowAmbient: 'rgba(0,0,0,0.12)',\n colorNeutralShadowKey: 'rgba(0,0,0,0.14)',\n colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.06)',\n colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.07)',\n colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.20)',\n colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.24)',\n colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',\n colorBrandShadowKey: 'rgba(0,0,0,0.25)',\n };\n};\n\n/**\n * Creates v9 shadow tokens from v8 effects.\n */\nconst mapShadowTokens = (effects: IEffects): Partial<ShadowTokens> => {\n return {\n shadow4: effects.elevation4,\n shadow8: effects.elevation8,\n shadow16: effects.elevation16,\n shadow64: effects.elevation64,\n };\n};\n\n/**\n * Creates v9 border radius tokens from v8 effects\n */\nconst mapBorderRadiusTokens = (effects: IEffects): Partial<BorderRadiusTokens> => {\n return {\n borderRadiusSmall: effects.roundedCorner2,\n borderRadiusMedium: effects.roundedCorner4,\n borderRadiusLarge: effects.roundedCorner6,\n };\n};\n\n/**\n * Creates a v9 theme from a v8 theme.\n * You can optional pass a base v9 theme; otherwise webLightTheme is used.\n */\nexport const createV9Theme = (themeV8: ThemeV8, baseThemeV9?: ThemeV9): ThemeV9 => {\n const baseTheme = baseThemeV9 ?? webLightTheme;\n\n return {\n ...baseTheme,\n ...mapAliasColors(themeV8.palette, themeV8.isInverted),\n ...mapShadowTokens(themeV8.effects),\n ...mapBorderRadiusTokens(themeV8.effects),\n };\n};\n"],"mappings":"AAEA,SAA2BA,aAAa,QAAQ;AAEhD,SAASC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,WAAW,EAAEC,WAAW,QAAQ;AAEvE;;;AAGA,MAAMC,cAAA,GAAiBA,CAACC,OAAA,EAAmBC,QAAA,KAAmC;EAC5E,OAAO;IACLC,uBAAA,EAAyBF,OAAA,CAAQG,cAAc;IAC/CC,4BAAA,EAA8BJ,OAAA,CAAQG,cAAc;IACpDE,8BAAA,EAAgCL,OAAA,CAAQG,cAAc;IACtDG,+BAAA,EAAiCN,OAAA,CAAQG,cAAc;IACvDI,uBAAA,EAAyBP,OAAA,CAAQQ,gBAAgB;IACjDC,4BAAA,EAA8BT,OAAA,CAAQG,cAAc;IACpDO,8BAAA,EAAgCV,OAAA,CAAQG,cAAc;IACtDQ,+BAAA,EAAiCX,OAAA,CAA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AA,EAAmBlK,OAAA,CAAQmK,KAAK;IAChCC,yBAAA,EAA2B;IAC3BC,qBAAA,EAAuB;IACvBC,gCAAA,EAAkC;IAClCC,4BAAA,EAA8B;IAC9BC,+BAAA,EAAiC;IACjCC,2BAAA,EAA6B;IAC7BC,uBAAA,EAAyB;IACzBC,mBAAA,EAAqB;EACvB;AACF;AAEA;;;AAGA,MAAMC,eAAA,GAAmBC,OAAA,IAA6C;EACpE,OAAO;IACLC,OAAA,EAASD,OAAA,CAAQE,UAAU;IAC3BC,OAAA,EAASH,OAAA,CAAQI,UAAU;IAC3BC,QAAA,EAAUL,OAAA,CAAQM,WAAW;IAC7BC,QAAA,EAAUP,OAAA,CAAQQ;EACpB;AACF;AAEA;;;AAGA,MAAMC,qBAAA,GAAyBT,OAAA,IAAmD;EAChF,OAAO;IACLU,iBAAA,EAAmBV,OAAA,CAAQW,cAAc;IACzCC,kBAAA,EAAoBZ,OAAA,CAAQa,cAAc;IAC1CC,iBAAA,EAAmBd,OAAA,CAAQe;EAC7B;AACF;AAEA;;;;AAIA,OAAO,MAAMC,aAAA,GAAgBA,CAACC,OAAA,EAAkBC,WAAA,KAAmC;EACjF,MAAMC,SAAA,GAAYD,WAAA,aAAAA,WAAA,cAAAA,WAAA,GAAetM,aAAa;EAE9C,OAAO;IACL,GAAGuM,SAAS;IACZ,GAAGjM,cAAA,CAAe+L,OAAA,CAAQ9L,OAAO,EAAE8L,OAAA,CAAQG,UAAU,CAAC;IACtD,GAAGrB,eAAA,CAAgBkB,OAAA,CAAQjB,OAAO,CAAC;IACnC,GAAGS,qBAAA,CAAsBQ,OAAA,CAAQjB,OAAO;EAC1C;AACF"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ActionButtonShim","ButtonShim","CommandButtonShim","CompoundButtonShim","DefaultButtonShim","MenuButtonShim","PrimaryButtonShim","shimButtonProps","ToggleButtonShim","MenuItemShim","shimMenuProps","StackItemShim","StackShim","black","blackAlpha","brandWeb","createBrandVariants","createV8Theme","createV9Theme","grey","grey14Alpha","hcButtonFace","hcButtonText","hcCanvas","hcCanvasText","hcDisabled","hcHighlight","hcHighlightText","hcHyperlink","sharedColors","white","whiteAlpha"],"sources":["../src/
|
|
1
|
+
{"version":3,"names":["ActionButtonShim","ButtonShim","CommandButtonShim","CompoundButtonShim","DefaultButtonShim","MenuButtonShim","PrimaryButtonShim","shimButtonProps","ToggleButtonShim","MenuItemShim","shimMenuProps","StackItemShim","StackShim","black","blackAlpha","brandWeb","createBrandVariants","createV8Theme","createV9Theme","grey","grey14Alpha","hcButtonFace","hcButtonText","hcCanvas","hcCanvasText","hcDisabled","hcHighlight","hcHighlightText","hcHyperlink","sharedColors","white","whiteAlpha"],"sources":["../src/index.ts"],"sourcesContent":["export {\n ActionButtonShim,\n ButtonShim,\n CommandButtonShim,\n CompoundButtonShim,\n DefaultButtonShim,\n MenuButtonShim,\n PrimaryButtonShim,\n shimButtonProps,\n ToggleButtonShim,\n} from './components/Button/index';\n\nexport { MenuItemShim, shimMenuProps } from './components/Menu/index';\n\nexport { StackItemShim, StackShim } from './components/Stack/index';\n\nexport {\n black,\n blackAlpha,\n brandWeb,\n createBrandVariants,\n createV8Theme,\n createV9Theme,\n grey,\n grey14Alpha,\n hcButtonFace,\n hcButtonText,\n hcCanvas,\n hcCanvasText,\n hcDisabled,\n hcHighlight,\n hcHighlightText,\n hcHyperlink,\n sharedColors,\n white,\n whiteAlpha,\n} from './components/Theme/index';\n\nexport type {\n AlphaColors,\n ColorVariants,\n GlobalSharedColors,\n Greys,\n TextAlignment,\n TextAlignments,\n} from './components/Theme/index';\n"],"mappings":"AAAA,SACEA,gBAAgB,EAChBC,UAAU,EACVC,iBAAiB,EACjBC,kBAAkB,EAClBC,iBAAiB,EACjBC,cAAc,EACdC,iBAAiB,EACjBC,eAAe,EACfC,gBAAgB,QACX;AAEP,SAASC,YAAY,EAAEC,aAAa,QAAQ;AAE5C,SAASC,aAAa,EAAEC,SAAS,QAAQ;AAEzC,SACEC,KAAK,EACLC,UAAU,EACVC,QAAQ,EACRC,mBAAmB,EACnBC,aAAa,EACbC,aAAa,EACbC,IAAI,EACJC,WAAW,EACXC,YAAY,EACZC,YAAY,EACZC,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,WAAW,EACXC,eAAe,EACfC,WAAW,EACXC,YAAY,EACZC,KAAK,EACLC,UAAU,QACL"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const shimButtonProps_1 = /*#__PURE__*/require("./shimButtonProps");
|
|
10
|
-
/**
|
|
11
|
-
* Shims a v8 ActionButton to render a v9 Button
|
|
12
|
-
*/
|
|
13
|
-
exports.ActionButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
14
|
-
const variantProps = {
|
|
15
|
-
...props,
|
|
16
|
-
variantClassName: 'ms-Button--action ms-Button--command'
|
|
17
|
-
};
|
|
18
|
-
const shimProps = shimButtonProps_1.shimButtonProps(variantProps);
|
|
19
|
-
return React.createElement(react_components_1.Button, {
|
|
20
|
-
...props,
|
|
21
|
-
...shimProps,
|
|
22
|
-
appearance: "transparent"
|
|
23
|
-
});
|
|
5
|
+
Object.defineProperty(exports, "ActionButtonShim", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>ActionButtonShim
|
|
24
8
|
});
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactComponents = require("@fluentui/react-components");
|
|
12
|
+
const _shimButtonProps = require("./shimButtonProps");
|
|
13
|
+
const ActionButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
|
|
14
|
+
const variantProps = {
|
|
15
|
+
...props,
|
|
16
|
+
variantClassName: 'ms-Button--action ms-Button--command'
|
|
17
|
+
};
|
|
18
|
+
const shimProps = (0, _shimButtonProps.shimButtonProps)(variantProps);
|
|
19
|
+
return /*#__PURE__*/ _react.createElement(_reactComponents.Button, {
|
|
20
|
+
...props,
|
|
21
|
+
...shimProps,
|
|
22
|
+
appearance: "transparent"
|
|
23
|
+
});
|
|
24
|
+
}); //# sourceMappingURL=ActionButtonShim.js.map
|
|
25
|
+
|
|
25
26
|
//# sourceMappingURL=ActionButtonShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Button/ActionButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { Button } from '@fluentui/react-components';\nimport { shimButtonProps } from './shimButtonProps';\n/**\n * Shims a v8 ActionButton to render a v9 Button\n */\nexport const ActionButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {\n const variantProps = {\n ...props,\n variantClassName: 'ms-Button--action ms-Button--command'\n };\n const shimProps = shimButtonProps(variantProps);\n return /*#__PURE__*/React.createElement(Button, {\n ...props,\n ...shimProps,\n appearance: \"transparent\"\n });\n});\n//# sourceMappingURL=ActionButtonShim.js.map"],"names":["ActionButtonShim","React","forwardRef","props","_ref","variantProps","variantClassName","shimProps","shimButtonProps","createElement","Button","appearance"],"mappings":";;;;+BAMaA;;aAAAA;;;6DANU;iCACA;iCACS;AAIzB,MAAMA,mBAAmB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAS;IAC7E,MAAMC,eAAe;QACnB,GAAGF,KAAK;QACRG,kBAAkB;IACpB;IACA,MAAMC,YAAYC,IAAAA,gCAAe,EAACH;IAClC,OAAO,WAAW,GAAEJ,OAAMQ,aAAa,CAACC,uBAAM,EAAE;QAC9C,GAAGP,KAAK;QACR,GAAGI,SAAS;QACZI,YAAY;IACd;AACF,IACA,4CAA4C"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const shimButtonProps_1 = /*#__PURE__*/require("./shimButtonProps");
|
|
10
|
-
const ToggleButtonShim_1 = /*#__PURE__*/require("./ToggleButtonShim");
|
|
11
|
-
const CompoundButtonShim_1 = /*#__PURE__*/require("./CompoundButtonShim");
|
|
12
|
-
exports.ButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
13
|
-
var _a;
|
|
14
|
-
const shimProps = shimButtonProps_1.shimButtonProps(props);
|
|
15
|
-
if (props.toggle) {
|
|
16
|
-
return React.createElement(ToggleButtonShim_1.ToggleButtonShim, {
|
|
17
|
-
...props
|
|
18
|
-
}, props.children);
|
|
19
|
-
}
|
|
20
|
-
if (props.secondaryText || ((_a = props.onRenderDescription) === null || _a === void 0 ? void 0 : _a.call(props, props))) {
|
|
21
|
-
return React.createElement(CompoundButtonShim_1.CompoundButtonShim, {
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return React.createElement(react_components_1.Button, {
|
|
26
|
-
...props,
|
|
27
|
-
...shimProps
|
|
28
|
-
});
|
|
5
|
+
Object.defineProperty(exports, "ButtonShim", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>ButtonShim
|
|
29
8
|
});
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactComponents = require("@fluentui/react-components");
|
|
12
|
+
const _shimButtonProps = require("./shimButtonProps");
|
|
13
|
+
const _toggleButtonShim = require("./ToggleButtonShim");
|
|
14
|
+
const _compoundButtonShim = require("./CompoundButtonShim");
|
|
15
|
+
const ButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
|
|
16
|
+
var _props_onRenderDescription;
|
|
17
|
+
const shimProps = (0, _shimButtonProps.shimButtonProps)(props);
|
|
18
|
+
if (props.toggle) {
|
|
19
|
+
return /*#__PURE__*/ _react.createElement(_toggleButtonShim.ToggleButtonShim, props, props.children);
|
|
20
|
+
}
|
|
21
|
+
if (props.secondaryText || ((_props_onRenderDescription = props.onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(props, props))) {
|
|
22
|
+
return /*#__PURE__*/ _react.createElement(_compoundButtonShim.CompoundButtonShim, props);
|
|
23
|
+
}
|
|
24
|
+
return /*#__PURE__*/ _react.createElement(_reactComponents.Button, {
|
|
25
|
+
...props,
|
|
26
|
+
...shimProps
|
|
27
|
+
});
|
|
28
|
+
}); //# sourceMappingURL=ButtonShim.js.map
|
|
29
|
+
|
|
30
30
|
//# sourceMappingURL=ButtonShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Button/ButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { Button } from '@fluentui/react-components';\nimport { shimButtonProps } from './shimButtonProps';\nimport { ToggleButtonShim } from './ToggleButtonShim';\nimport { CompoundButtonShim } from './CompoundButtonShim';\nexport const ButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {\n var _props_onRenderDescription;\n const shimProps = shimButtonProps(props);\n if (props.toggle) {\n return /*#__PURE__*/React.createElement(ToggleButtonShim, props, props.children);\n }\n if (props.secondaryText || ((_props_onRenderDescription = props.onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(props, props))) {\n return /*#__PURE__*/React.createElement(CompoundButtonShim, props);\n }\n return /*#__PURE__*/React.createElement(Button, {\n ...props,\n ...shimProps\n });\n});\n//# sourceMappingURL=ButtonShim.js.map"],"names":["ButtonShim","React","forwardRef","props","_ref","_props_onRenderDescription","shimProps","shimButtonProps","toggle","createElement","ToggleButtonShim","children","secondaryText","onRenderDescription","call","CompoundButtonShim","Button"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;iCACA;iCACS;kCACC;oCACE;AAC5B,MAAMA,aAAa,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAS;IACvE,IAAIC;IACJ,MAAMC,YAAYC,IAAAA,gCAAe,EAACJ;IAClC,IAAIA,MAAMK,MAAM,EAAE;QAChB,OAAO,WAAW,GAAEP,OAAMQ,aAAa,CAACC,kCAAgB,EAAEP,OAAOA,MAAMQ,QAAQ;IACjF,CAAC;IACD,IAAIR,MAAMS,aAAa,IAAK,CAAA,AAACP,CAAAA,6BAA6BF,MAAMU,mBAAmB,AAAD,MAAO,IAAI,IAAIR,+BAA+B,KAAK,IAAI,KAAK,IAAIA,2BAA2BS,IAAI,CAACX,OAAOA,MAAM,AAAD,GAAI;QAChM,OAAO,WAAW,GAAEF,OAAMQ,aAAa,CAACM,sCAAkB,EAAEZ;IAC9D,CAAC;IACD,OAAO,WAAW,GAAEF,OAAMQ,aAAa,CAACO,uBAAM,EAAE;QAC9C,GAAGb,KAAK;QACR,GAAGG,SAAS;IACd;AACF,IACA,sCAAsC"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CommandButtonShim = void 0;
|
|
7
1
|
/**
|
|
8
2
|
* Shims v8 CommandButtonShim to render a v9 Button
|
|
9
|
-
*/
|
|
10
|
-
|
|
3
|
+
*/ "use strict";
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
11
7
|
Object.defineProperty(exports, "CommandButtonShim", {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return ActionButtonShim_1.ActionButtonShim;
|
|
15
|
-
}
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: ()=>_actionButtonShim.ActionButtonShim
|
|
16
10
|
});
|
|
11
|
+
const _actionButtonShim = require("./ActionButtonShim");
|
|
12
|
+
//# sourceMappingURL=CommandButtonShim.js.map
|
|
13
|
+
|
|
17
14
|
//# sourceMappingURL=CommandButtonShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Button/CommandButtonShim.js"],"sourcesContent":["/**\n * Shims v8 CommandButtonShim to render a v9 Button\n */export { ActionButtonShim as CommandButtonShim } from './ActionButtonShim';\n//# sourceMappingURL=CommandButtonShim.js.map"],"names":["CommandButtonShim","ActionButtonShim"],"mappings":"AAAA;;CAEC;;;;+BAA+BA;;aAApBC,kCAAgB;;kCAA6B;CACzD,6CAA6C"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const shimButtonProps_1 = /*#__PURE__*/require("./shimButtonProps");
|
|
10
|
-
/**
|
|
11
|
-
* Shims v8 CompoundButton to render a v9 CompoundButton
|
|
12
|
-
*/
|
|
13
|
-
exports.CompoundButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
14
|
-
var _a;
|
|
15
|
-
const variantProps = {
|
|
16
|
-
...props,
|
|
17
|
-
variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'
|
|
18
|
-
};
|
|
19
|
-
const shimProps = {
|
|
20
|
-
...shimButtonProps_1.shimButtonProps(variantProps),
|
|
21
|
-
secondaryContent: props.secondaryText || ((_a = props.onRenderDescription) === null || _a === void 0 ? void 0 : _a.call(props, props))
|
|
22
|
-
};
|
|
23
|
-
return React.createElement(react_components_1.CompoundButton, {
|
|
24
|
-
...props,
|
|
25
|
-
...shimProps
|
|
26
|
-
});
|
|
5
|
+
Object.defineProperty(exports, "CompoundButtonShim", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>CompoundButtonShim
|
|
27
8
|
});
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactComponents = require("@fluentui/react-components");
|
|
12
|
+
const _shimButtonProps = require("./shimButtonProps");
|
|
13
|
+
const CompoundButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
|
|
14
|
+
var _props_onRenderDescription;
|
|
15
|
+
const variantProps = {
|
|
16
|
+
...props,
|
|
17
|
+
variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'
|
|
18
|
+
};
|
|
19
|
+
const shimProps = {
|
|
20
|
+
...(0, _shimButtonProps.shimButtonProps)(variantProps),
|
|
21
|
+
secondaryContent: props.secondaryText || ((_props_onRenderDescription = props.onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(props, props))
|
|
22
|
+
};
|
|
23
|
+
return /*#__PURE__*/ _react.createElement(_reactComponents.CompoundButton, {
|
|
24
|
+
...props,
|
|
25
|
+
...shimProps
|
|
26
|
+
});
|
|
27
|
+
}); //# sourceMappingURL=CompoundButtonShim.js.map
|
|
28
|
+
|
|
28
29
|
//# sourceMappingURL=CompoundButtonShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Button/CompoundButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { CompoundButton } from '@fluentui/react-components';\nimport { shimButtonProps } from './shimButtonProps';\n/**\n * Shims v8 CompoundButton to render a v9 CompoundButton\n */\nexport const CompoundButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {\n var _props_onRenderDescription;\n const variantProps = {\n ...props,\n variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'\n };\n const shimProps = {\n ...shimButtonProps(variantProps),\n secondaryContent: props.secondaryText || ((_props_onRenderDescription = props.onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(props, props))\n };\n return /*#__PURE__*/React.createElement(CompoundButton, {\n ...props,\n ...shimProps\n });\n});\n//# sourceMappingURL=CompoundButtonShim.js.map"],"names":["CompoundButtonShim","React","forwardRef","props","_ref","_props_onRenderDescription","variantProps","variantClassName","primary","shimProps","shimButtonProps","secondaryContent","secondaryText","onRenderDescription","call","createElement","CompoundButton"],"mappings":";;;;+BAMaA;;aAAAA;;;6DANU;iCACQ;iCACC;AAIzB,MAAMA,qBAAqB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAS;IAC/E,IAAIC;IACJ,MAAMC,eAAe;QACnB,GAAGH,KAAK;QACRI,kBAAkBJ,MAAMK,OAAO,GAAG,+BAA+B,qBAAqB;IACxF;IACA,MAAMC,YAAY;QAChB,GAAGC,IAAAA,gCAAe,EAACJ,aAAa;QAChCK,kBAAkBR,MAAMS,aAAa,IAAK,CAAA,AAACP,CAAAA,6BAA6BF,MAAMU,mBAAmB,AAAD,MAAO,IAAI,IAAIR,+BAA+B,KAAK,IAAI,KAAK,IAAIA,2BAA2BS,IAAI,CAACX,OAAOA,MAAM,AAAD;IAC9M;IACA,OAAO,WAAW,GAAEF,OAAMc,aAAa,CAACC,+BAAc,EAAE;QACtD,GAAGb,KAAK;QACR,GAAGM,SAAS;IACd;AACF,IACA,8CAA8C"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Shims a v8 DefaultButton to render a v9 Button
|
|
11
|
-
*/
|
|
12
|
-
exports.DefaultButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
13
|
-
return React.createElement(ButtonShim_1.ButtonShim, {
|
|
14
|
-
...props,
|
|
15
|
-
variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default'
|
|
16
|
-
});
|
|
5
|
+
Object.defineProperty(exports, "DefaultButtonShim", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>DefaultButtonShim
|
|
17
8
|
});
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _buttonShim = require("./ButtonShim");
|
|
12
|
+
const DefaultButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
|
|
13
|
+
return /*#__PURE__*/ _react.createElement(_buttonShim.ButtonShim, {
|
|
14
|
+
...props,
|
|
15
|
+
variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default'
|
|
16
|
+
});
|
|
17
|
+
}); //# sourceMappingURL=DefaultButtonShim.js.map
|
|
18
|
+
|
|
18
19
|
//# sourceMappingURL=DefaultButtonShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Button/DefaultButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { ButtonShim } from './ButtonShim';\n/**\n * Shims a v8 DefaultButton to render a v9 Button\n */\nexport const DefaultButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {\n return /*#__PURE__*/React.createElement(ButtonShim, {\n ...props,\n variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default'\n });\n});\n//# sourceMappingURL=DefaultButtonShim.js.map"],"names":["DefaultButtonShim","React","forwardRef","props","_ref","createElement","ButtonShim","variantClassName","primary"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;4BACI;AAIpB,MAAMA,oBAAoB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAS;IAC9E,OAAO,WAAW,GAAEH,OAAMI,aAAa,CAACC,sBAAU,EAAE;QAClD,GAAGH,KAAK;QACRI,kBAAkBJ,MAAMK,OAAO,GAAG,uBAAuB,oBAAoB;IAC/E;AACF,IACA,6CAA6C"}
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const index_1 = /*#__PURE__*/require("../Menu/index");
|
|
10
|
-
const shimButtonProps_1 = /*#__PURE__*/require("./shimButtonProps");
|
|
11
|
-
exports.MenuButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
12
|
-
var _a;
|
|
13
|
-
const variantProps = {
|
|
14
|
-
...props,
|
|
15
|
-
variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default'
|
|
16
|
-
};
|
|
17
|
-
const shimProps = {
|
|
18
|
-
...shimButtonProps_1.shimButtonProps(variantProps)
|
|
19
|
-
};
|
|
20
|
-
const shimmedMenuProps = props.menuProps ? index_1.shimMenuProps(props.menuProps) : {};
|
|
21
|
-
return React.createElement(react_components_1.Menu, {
|
|
22
|
-
...shimmedMenuProps
|
|
23
|
-
}, React.createElement(react_components_1.MenuTrigger, null, React.createElement(react_components_1.MenuButton, {
|
|
24
|
-
...shimProps
|
|
25
|
-
})), React.createElement(react_components_1.MenuPopover, null, React.createElement(react_components_1.MenuList, null, (_a = props.menuProps) === null || _a === void 0 ? void 0 : _a.items.map(item =>
|
|
26
|
-
// key is added through item spread
|
|
27
|
-
// eslint-disable-next-line react/jsx-key
|
|
28
|
-
React.createElement(index_1.MenuItemShim, {
|
|
29
|
-
...item
|
|
30
|
-
})))));
|
|
5
|
+
Object.defineProperty(exports, "MenuButtonShim", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>MenuButtonShim
|
|
31
8
|
});
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactComponents = require("@fluentui/react-components");
|
|
12
|
+
const _index = require("../Menu/index");
|
|
13
|
+
const _shimButtonProps = require("./shimButtonProps");
|
|
14
|
+
const MenuButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
|
|
15
|
+
var _props_menuProps;
|
|
16
|
+
const variantProps = {
|
|
17
|
+
...props,
|
|
18
|
+
variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default'
|
|
19
|
+
};
|
|
20
|
+
const shimProps = {
|
|
21
|
+
...(0, _shimButtonProps.shimButtonProps)(variantProps)
|
|
22
|
+
};
|
|
23
|
+
const shimmedMenuProps = props.menuProps ? (0, _index.shimMenuProps)(props.menuProps) : {};
|
|
24
|
+
return /*#__PURE__*/ _react.createElement(_reactComponents.Menu, shimmedMenuProps, /*#__PURE__*/ _react.createElement(_reactComponents.MenuTrigger, null, /*#__PURE__*/ _react.createElement(_reactComponents.MenuButton, shimProps)), /*#__PURE__*/ _react.createElement(_reactComponents.MenuPopover, null, /*#__PURE__*/ _react.createElement(_reactComponents.MenuList, null, (_props_menuProps = props.menuProps) === null || _props_menuProps === void 0 ? void 0 : _props_menuProps.items.map((item)=>// key is added through item spread
|
|
25
|
+
// eslint-disable-next-line react/jsx-key
|
|
26
|
+
/*#__PURE__*/ _react.createElement(_index.MenuItemShim, item)))));
|
|
27
|
+
}); //# sourceMappingURL=MenuButtonShim.js.map
|
|
28
|
+
|
|
32
29
|
//# sourceMappingURL=MenuButtonShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Button/MenuButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { MenuButton, Menu, MenuList, MenuPopover, MenuTrigger } from '@fluentui/react-components';\nimport { MenuItemShim, shimMenuProps } from '../Menu/index';\nimport { shimButtonProps } from './shimButtonProps';\nexport const MenuButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {\n var _props_menuProps;\n const variantProps = {\n ...props,\n variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default'\n };\n const shimProps = {\n ...shimButtonProps(variantProps)\n };\n const shimmedMenuProps = props.menuProps ? shimMenuProps(props.menuProps) : {};\n return /*#__PURE__*/React.createElement(Menu, shimmedMenuProps, /*#__PURE__*/React.createElement(MenuTrigger, null, /*#__PURE__*/React.createElement(MenuButton, shimProps)), /*#__PURE__*/React.createElement(MenuPopover, null, /*#__PURE__*/React.createElement(MenuList, null, (_props_menuProps = props.menuProps) === null || _props_menuProps === void 0 ? void 0 : _props_menuProps.items.map(item =>\n // key is added through item spread\n // eslint-disable-next-line react/jsx-key\n /*#__PURE__*/\n React.createElement(MenuItemShim, item)))));\n});\n//# sourceMappingURL=MenuButtonShim.js.map"],"names":["MenuButtonShim","React","forwardRef","props","_ref","_props_menuProps","variantProps","variantClassName","primary","shimProps","shimButtonProps","shimmedMenuProps","menuProps","shimMenuProps","createElement","Menu","MenuTrigger","MenuButton","MenuPopover","MenuList","items","map","item","MenuItemShim"],"mappings":";;;;+BAIaA;;aAAAA;;;6DAJU;iCAC8C;uBACzB;iCACZ;AACzB,MAAMA,iBAAiB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAS;IAC3E,IAAIC;IACJ,MAAMC,eAAe;QACnB,GAAGH,KAAK;QACRI,kBAAkBJ,MAAMK,OAAO,GAAG,uBAAuB,oBAAoB;IAC/E;IACA,MAAMC,YAAY;QAChB,GAAGC,IAAAA,gCAAe,EAACJ,aAAa;IAClC;IACA,MAAMK,mBAAmBR,MAAMS,SAAS,GAAGC,IAAAA,oBAAa,EAACV,MAAMS,SAAS,IAAI,CAAC,CAAC;IAC9E,OAAO,WAAW,GAAEX,OAAMa,aAAa,CAACC,qBAAI,EAAEJ,kBAAkB,WAAW,GAAEV,OAAMa,aAAa,CAACE,4BAAW,EAAE,IAAI,EAAE,WAAW,GAAEf,OAAMa,aAAa,CAACG,2BAAU,EAAER,aAAa,WAAW,GAAER,OAAMa,aAAa,CAACI,4BAAW,EAAE,IAAI,EAAE,WAAW,GAAEjB,OAAMa,aAAa,CAACK,yBAAQ,EAAE,IAAI,EAAE,AAACd,CAAAA,mBAAmBF,MAAMS,SAAS,AAAD,MAAO,IAAI,IAAIP,qBAAqB,KAAK,IAAI,KAAK,IAAIA,iBAAiBe,KAAK,CAACC,GAAG,CAACC,CAAAA,OACtY,mCAAmC;QACnC,yCAAyC;QACzC,WAAW,GACXrB,OAAMa,aAAa,CAACS,mBAAY,EAAED,MAAM;AAC1C,IACA,0CAA0C"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Shims v8 PrimaryButton to render a v9 Button
|
|
11
|
-
*/
|
|
12
|
-
exports.PrimaryButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
13
|
-
return React.createElement(ButtonShim_1.ButtonShim, {
|
|
14
|
-
...props,
|
|
15
|
-
primary: true,
|
|
16
|
-
variantClassName: "ms-Button--primary"
|
|
17
|
-
});
|
|
5
|
+
Object.defineProperty(exports, "PrimaryButtonShim", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>PrimaryButtonShim
|
|
18
8
|
});
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _buttonShim = require("./ButtonShim");
|
|
12
|
+
const PrimaryButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
|
|
13
|
+
return /*#__PURE__*/ _react.createElement(_buttonShim.ButtonShim, {
|
|
14
|
+
...props,
|
|
15
|
+
primary: true,
|
|
16
|
+
variantClassName: "ms-Button--primary"
|
|
17
|
+
});
|
|
18
|
+
}); //# sourceMappingURL=PrimaryButtonShim.js.map
|
|
19
|
+
|
|
19
20
|
//# sourceMappingURL=PrimaryButtonShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Button/PrimaryButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { ButtonShim } from './ButtonShim';\n/**\n * Shims v8 PrimaryButton to render a v9 Button\n */\nexport const PrimaryButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {\n return /*#__PURE__*/React.createElement(ButtonShim, {\n ...props,\n primary: true,\n variantClassName: \"ms-Button--primary\"\n });\n});\n//# sourceMappingURL=PrimaryButtonShim.js.map"],"names":["PrimaryButtonShim","React","forwardRef","props","_ref","createElement","ButtonShim","primary","variantClassName"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;4BACI;AAIpB,MAAMA,oBAAoB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAS;IAC9E,OAAO,WAAW,GAAEH,OAAMI,aAAa,CAACC,sBAAU,EAAE;QAClD,GAAGH,KAAK;QACRI,SAAS,IAAI;QACbC,kBAAkB;IACpB;AACF,IACA,6CAA6C"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const shimButtonProps_1 = /*#__PURE__*/require("./shimButtonProps");
|
|
10
|
-
/**
|
|
11
|
-
* Shims v8 ToggleButton to render a v9 ToggleButton
|
|
12
|
-
*/
|
|
13
|
-
exports.ToggleButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
14
|
-
const variantProps = {
|
|
15
|
-
...props,
|
|
16
|
-
variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'
|
|
17
|
-
};
|
|
18
|
-
const shimProps = {
|
|
19
|
-
...shimButtonProps_1.shimButtonProps(variantProps),
|
|
20
|
-
checked: props.checked,
|
|
21
|
-
defaultChecked: props.defaultChecked
|
|
22
|
-
};
|
|
23
|
-
return React.createElement(react_components_1.ToggleButton, {
|
|
24
|
-
...props,
|
|
25
|
-
...shimProps
|
|
26
|
-
});
|
|
5
|
+
Object.defineProperty(exports, "ToggleButtonShim", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>ToggleButtonShim
|
|
27
8
|
});
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactComponents = require("@fluentui/react-components");
|
|
12
|
+
const _shimButtonProps = require("./shimButtonProps");
|
|
13
|
+
const ToggleButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
|
|
14
|
+
const variantProps = {
|
|
15
|
+
...props,
|
|
16
|
+
variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'
|
|
17
|
+
};
|
|
18
|
+
const shimProps = {
|
|
19
|
+
...(0, _shimButtonProps.shimButtonProps)(variantProps),
|
|
20
|
+
checked: props.checked,
|
|
21
|
+
defaultChecked: props.defaultChecked
|
|
22
|
+
};
|
|
23
|
+
return /*#__PURE__*/ _react.createElement(_reactComponents.ToggleButton, {
|
|
24
|
+
...props,
|
|
25
|
+
...shimProps
|
|
26
|
+
});
|
|
27
|
+
}); //# sourceMappingURL=ToggleButtonShim.js.map
|
|
28
|
+
|
|
28
29
|
//# sourceMappingURL=ToggleButtonShim.js.map
|