@fluentui/react-migration-v8-v9 9.4.9 → 9.4.11

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.
Files changed (76) hide show
  1. package/CHANGELOG.json +61 -1
  2. package/CHANGELOG.md +25 -2
  3. package/lib/components/Button/ActionButtonShim.js.map +1 -1
  4. package/lib/components/Button/ButtonShim.js +2 -2
  5. package/lib/components/Button/ButtonShim.js.map +1 -1
  6. package/lib/components/Button/CompoundButtonShim.js +2 -2
  7. package/lib/components/Button/CompoundButtonShim.js.map +1 -1
  8. package/lib/components/Button/DefaultButtonShim.js.map +1 -1
  9. package/lib/components/Button/MenuButtonShim.js.map +1 -1
  10. package/lib/components/Button/PrimaryButtonShim.js.map +1 -1
  11. package/lib/components/Button/ToggleButtonShim.js.map +1 -1
  12. package/lib/components/Button/shimButtonProps.js.map +1 -1
  13. package/lib/components/Menu/MenuShim.js.map +1 -1
  14. package/lib/components/Menu/shimMenuProps.js +3 -2
  15. package/lib/components/Menu/shimMenuProps.js.map +1 -1
  16. package/lib/components/Stack/StackItemShim.js +1 -1
  17. package/lib/components/Stack/StackItemShim.js.map +1 -1
  18. package/lib/components/Stack/StackShim.js +1 -1
  19. package/lib/components/Stack/StackShim.js.map +1 -1
  20. package/lib/components/Stack/stackUtils.js +2 -2
  21. package/lib/components/Stack/stackUtils.js.map +1 -1
  22. package/lib/components/Theme/v8ThemeShim.js +2 -1
  23. package/lib/components/Theme/v8ThemeShim.js.map +1 -1
  24. package/lib/components/Theme/v9BrandVariantsShim.js.map +1 -1
  25. package/lib/components/Theme/v9ThemeShim.js.map +1 -1
  26. package/lib-commonjs/components/Button/ActionButtonShim.js +7 -5
  27. package/lib-commonjs/components/Button/ActionButtonShim.js.map +1 -1
  28. package/lib-commonjs/components/Button/ButtonShim.js +13 -11
  29. package/lib-commonjs/components/Button/ButtonShim.js.map +1 -1
  30. package/lib-commonjs/components/Button/CommandButtonShim.js +4 -2
  31. package/lib-commonjs/components/Button/CommandButtonShim.js.map +1 -1
  32. package/lib-commonjs/components/Button/CompoundButtonShim.js +9 -7
  33. package/lib-commonjs/components/Button/CompoundButtonShim.js.map +1 -1
  34. package/lib-commonjs/components/Button/DefaultButtonShim.js +7 -5
  35. package/lib-commonjs/components/Button/DefaultButtonShim.js.map +1 -1
  36. package/lib-commonjs/components/Button/MenuButtonShim.js +7 -5
  37. package/lib-commonjs/components/Button/MenuButtonShim.js.map +1 -1
  38. package/lib-commonjs/components/Button/PrimaryButtonShim.js +7 -5
  39. package/lib-commonjs/components/Button/PrimaryButtonShim.js.map +1 -1
  40. package/lib-commonjs/components/Button/ToggleButtonShim.js +7 -5
  41. package/lib-commonjs/components/Button/ToggleButtonShim.js.map +1 -1
  42. package/lib-commonjs/components/Button/index.js +10 -10
  43. package/lib-commonjs/components/Button/index.js.map +1 -1
  44. package/lib-commonjs/components/Button/shimButtonProps.js +5 -3
  45. package/lib-commonjs/components/Button/shimButtonProps.js.map +1 -1
  46. package/lib-commonjs/components/Menu/MenuShim.js +12 -10
  47. package/lib-commonjs/components/Menu/MenuShim.js.map +1 -1
  48. package/lib-commonjs/components/Menu/index.js +3 -3
  49. package/lib-commonjs/components/Menu/index.js.map +1 -1
  50. package/lib-commonjs/components/Menu/shimMenuProps.js +17 -8
  51. package/lib-commonjs/components/Menu/shimMenuProps.js.map +1 -1
  52. package/lib-commonjs/components/Stack/StackItemShim.js +12 -10
  53. package/lib-commonjs/components/Stack/StackItemShim.js.map +1 -1
  54. package/lib-commonjs/components/Stack/StackItemShim.styles.js +20 -10
  55. package/lib-commonjs/components/Stack/StackItemShim.styles.js.map +1 -1
  56. package/lib-commonjs/components/Stack/StackShim.js +11 -9
  57. package/lib-commonjs/components/Stack/StackShim.js.map +1 -1
  58. package/lib-commonjs/components/Stack/StackShim.styles.js +16 -8
  59. package/lib-commonjs/components/Stack/StackShim.styles.js.map +1 -1
  60. package/lib-commonjs/components/Stack/index.js +3 -3
  61. package/lib-commonjs/components/Stack/index.js.map +1 -1
  62. package/lib-commonjs/components/Stack/stackUtils.js +11 -5
  63. package/lib-commonjs/components/Stack/stackUtils.js.map +1 -1
  64. package/lib-commonjs/components/Theme/index.js +5 -5
  65. package/lib-commonjs/components/Theme/index.js.map +1 -1
  66. package/lib-commonjs/components/Theme/themeDuplicates.js +54 -18
  67. package/lib-commonjs/components/Theme/themeDuplicates.js.map +1 -1
  68. package/lib-commonjs/components/Theme/v8ThemeShim.js +7 -4
  69. package/lib-commonjs/components/Theme/v8ThemeShim.js.map +1 -1
  70. package/lib-commonjs/components/Theme/v9BrandVariantsShim.js +3 -1
  71. package/lib-commonjs/components/Theme/v9BrandVariantsShim.js.map +1 -1
  72. package/lib-commonjs/components/Theme/v9ThemeShim.js +5 -3
  73. package/lib-commonjs/components/Theme/v9ThemeShim.js.map +1 -1
  74. package/lib-commonjs/index.js +96 -32
  75. package/lib-commonjs/index.js.map +1 -1
  76. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"sources":["v8ThemeShim.ts"],"sourcesContent":["import type { IPalette, ISemanticColors, IFontStyles, IFontWeight, IEffects, Theme as ThemeV8 } from '@fluentui/react';\nimport { createTheme, DefaultPalette } from '@fluentui/react';\nimport { fluent2ComponentStyles } from '@fluentui/fluent2-theme';\n\nimport { BrandVariants, Theme as ThemeV9 } from '@fluentui/react-components';\n\nimport { black, blackAlpha, grey, sharedColors, white, whiteAlpha } from './themeDuplicates';\n\nconst mappedNeutrals = {\n black,\n blackTranslucent40: blackAlpha[40],\n neutralDark: grey[8],\n neutralPrimary: grey[14],\n neutralPrimaryAlt: grey[22],\n neutralSecondary: grey[36],\n neutralSecondaryAlt: grey[52],\n neutralTertiary: grey[62],\n neutralTertiaryAlt: grey[78],\n neutralQuaternary: grey[82],\n neutralQuaternaryAlt: grey[88],\n neutralLight: grey[92],\n neutralLighter: grey[96],\n neutralLighterAlt: grey[98],\n white,\n whiteTranslucent40: whiteAlpha[40],\n};\n\nconst invertedMappedNeutrals = {\n black: white,\n blackTranslucent40: whiteAlpha[40],\n neutralDark: grey[98],\n neutralPrimary: grey[96],\n neutralPrimaryAlt: grey[84],\n neutralSecondary: grey[82],\n neutralSecondaryAlt: grey[74],\n neutralTertiary: grey[44],\n neutralTertiaryAlt: grey[26],\n neutralQuaternary: grey[24],\n neutralQuaternaryAlt: grey[18],\n neutralLight: grey[16],\n neutralLighter: grey[14],\n neutralLighterAlt: grey[10],\n white: black,\n whiteTranslucent40: blackAlpha[40],\n};\n\nconst mappedSharedColors = {\n yellowDark: sharedColors.marigold.shade10,\n yellow: sharedColors.yellow.primary,\n yellowLight: sharedColors.yellow.tint40,\n orange: sharedColors.orange.primary,\n orangeLight: sharedColors.orange.tint20,\n orangeLighter: sharedColors.orange.tint40,\n redDark: sharedColors.darkRed.primary,\n red: sharedColors.red.primary,\n magentaDark: sharedColors.magenta.shade30,\n magenta: sharedColors.magenta.primary,\n magentaLight: sharedColors.magenta.tint30,\n purpleDark: sharedColors.darkPurple.primary,\n purple: sharedColors.purple.primary,\n purpleLight: sharedColors.purple.tint40,\n blueDark: sharedColors.darkBlue.primary,\n blueMid: sharedColors.royalBlue.primary,\n blue: sharedColors.blue.primary,\n blueLight: sharedColors.lightBlue.primary,\n tealDark: sharedColors.darkTeal.primary,\n teal: sharedColors.teal.primary,\n tealLight: sharedColors.lightTeal.primary,\n greenDark: sharedColors.darkGreen.primary,\n green: sharedColors.green.primary,\n greenLight: sharedColors.lightGreen.primary,\n};\n\n/**\n * Creates a v8 palette given a brand ramp\n */\nconst mapPalette = (brandColors: BrandVariants, inverted: boolean): IPalette => {\n const neutrals = inverted ? invertedMappedNeutrals : mappedNeutrals;\n const brands = inverted\n ? {\n themeDarker: brandColors[110],\n themeDark: brandColors[100],\n themeDarkAlt: brandColors[100],\n themePrimary: brandColors[90],\n themeSecondary: brandColors[90],\n themeTertiary: brandColors[60],\n themeLight: brandColors[50],\n themeLighter: brandColors[40],\n themeLighterAlt: brandColors[30],\n }\n : {\n themeDarker: brandColors[40],\n themeDark: brandColors[60],\n themeDarkAlt: brandColors[70],\n themePrimary: brandColors[80],\n themeSecondary: brandColors[90],\n themeTertiary: brandColors[120],\n themeLight: brandColors[140],\n themeLighter: brandColors[150],\n themeLighterAlt: brandColors[160],\n };\n\n return {\n ...DefaultPalette,\n ...neutrals,\n accent: brands.themePrimary,\n ...mappedSharedColors,\n ...brands,\n };\n};\n\n/**\n * Returns v9 theme colors overlaid on a base set of v8 semantic colors\n */\nconst mapSemanticColors = (baseColors: ISemanticColors, theme: ThemeV9): ISemanticColors => {\n return {\n ...baseColors,\n accentButtonBackground: theme.colorBrandBackground,\n accentButtonText: theme.colorNeutralForegroundOnBrand,\n actionLink: theme.colorNeutralForeground1,\n actionLinkHovered: theme.colorNeutralForeground1Hover,\n // blockingBackground,\n // blockingIcon,\n bodyBackground: theme.colorNeutralBackground1,\n bodyBackgroundChecked: theme.colorNeutralBackground1Selected,\n bodyBackgroundHovered: theme.colorNeutralBackground1Hover,\n bodyDivider: theme.colorNeutralStroke2,\n bodyFrameBackground: theme.colorNeutralBackground1,\n bodyFrameDivider: theme.colorNeutralStroke2,\n bodyStandoutBackground: theme.colorNeutralBackground2,\n bodySubtext: theme.colorNeutralForeground2,\n bodyText: theme.colorNeutralForeground1,\n bodyTextChecked: theme.colorNeutralForeground1Selected,\n buttonBackground: theme.colorNeutralBackground1,\n buttonBackgroundChecked: theme.colorNeutralBackground1Selected,\n buttonBackgroundCheckedHovered: theme.colorNeutralBackground1Hover,\n buttonBackgroundDisabled: theme.colorNeutralBackgroundDisabled,\n buttonBackgroundHovered: theme.colorNeutralBackground1Hover,\n buttonBackgroundPressed: theme.colorNeutralBackground1Pressed,\n buttonBorder: theme.colorNeutralStroke1,\n buttonBorderDisabled: theme.colorNeutralStrokeDisabled,\n buttonText: theme.colorNeutralForeground1,\n buttonTextChecked: theme.colorNeutralForeground1,\n buttonTextCheckedHovered: theme.colorNeutralForeground1,\n buttonTextDisabled: theme.colorNeutralForegroundDisabled,\n buttonTextHovered: theme.colorNeutralForeground1,\n buttonTextPressed: theme.colorNeutralForeground1,\n cardShadow: theme.shadow4,\n cardShadowHovered: theme.shadow8,\n cardStandoutBackground: theme.colorNeutralBackground1,\n defaultStateBackground: theme.colorNeutralBackground2,\n disabledBackground: theme.colorNeutralBackgroundDisabled,\n disabledBodySubtext: theme.colorNeutralForegroundDisabled,\n disabledBodyText: theme.colorNeutralForegroundDisabled,\n disabledBorder: theme.colorNeutralStrokeDisabled,\n disabledSubtext: theme.colorNeutralForegroundDisabled,\n disabledText: theme.colorNeutralForegroundDisabled,\n // errorBackground,\n // errorIcon,\n // errorText: ,\n focusBorder: theme.colorStrokeFocus2,\n // infoBackground,\n // infoIcon,\n inputBackground: theme.colorNeutralBackground1,\n inputBackgroundChecked: theme.colorBrandBackground,\n inputBackgroundCheckedHovered: theme.colorBrandBackgroundHover,\n inputBorder: theme.colorNeutralStrokeAccessible,\n inputBorderHovered: theme.colorNeutralStrokeAccessibleHover,\n inputFocusBorderAlt: theme.colorBrandStroke1,\n inputForegroundChecked: theme.colorNeutralForegroundOnBrand,\n inputIcon: theme.colorNeutralForeground3,\n inputIconDisabled: theme.colorNeutralForegroundDisabled,\n inputIconHovered: theme.colorNeutralForeground3,\n inputPlaceholderBackgroundChecked: theme.colorBrandBackgroundInvertedSelected,\n inputPlaceholderText: theme.colorNeutralForeground4,\n inputText: theme.colorNeutralForeground1,\n inputTextHovered: theme.colorNeutralForeground1Hover,\n link: theme.colorBrandForegroundLink,\n linkHovered: theme.colorBrandForegroundLinkHover,\n listBackground: theme.colorNeutralBackground1,\n listHeaderBackgroundHovered: theme.colorNeutralBackground1Hover,\n listHeaderBackgroundPressed: theme.colorNeutralBackground1Pressed,\n listItemBackgroundChecked: theme.colorNeutralBackground1Selected,\n listItemBackgroundCheckedHovered: theme.colorNeutralBackground1Selected,\n listItemBackgroundHovered: theme.colorNeutralBackground1Hover,\n listText: theme.colorNeutralForeground1,\n listTextColor: theme.colorNeutralForeground1,\n menuBackground: theme.colorNeutralBackground1,\n menuDivider: theme.colorNeutralStroke2,\n menuHeader: theme.colorNeutralForeground3,\n menuIcon: theme.colorNeutralForeground1,\n menuItemBackgroundChecked: theme.colorNeutralBackground1,\n menuItemBackgroundHovered: theme.colorNeutralBackground1Hover,\n menuItemBackgroundPressed: theme.colorNeutralBackground1Hover,\n menuItemText: theme.colorNeutralForeground1,\n menuItemTextHovered: theme.colorNeutralForeground1Hover,\n messageLink: theme.colorBrandForegroundLink,\n messageLinkHovered: theme.colorBrandForegroundLinkHover,\n messageText: theme.colorNeutralForeground1,\n primaryButtonBackground: theme.colorBrandBackground,\n primaryButtonBackgroundDisabled: theme.colorNeutralBackgroundDisabled,\n primaryButtonBackgroundHovered: theme.colorBrandBackgroundHover,\n primaryButtonBackgroundPressed: theme.colorBrandBackgroundPressed,\n primaryButtonBorder: theme.colorTransparentStroke,\n primaryButtonText: theme.colorNeutralForegroundOnBrand,\n primaryButtonTextDisabled: theme.colorNeutralForegroundDisabled,\n primaryButtonTextHovered: theme.colorNeutralForegroundOnBrand,\n primaryButtonTextPressed: theme.colorNeutralForegroundOnBrand,\n // severeWarningBackground,\n // severeWarningIcon,\n // smallInputBorder,\n // successBackground,\n // successIcon,\n // successText: ,\n // variantBorder,\n // variantBorderHovered,\n // warningBackground,\n // warningHighlight,\n // warningIcon,\n // warningText: ,\n };\n};\n\n/**\n * Overlays v9 fonts on a set of base v8 fonts.\n */\nconst mapFonts = (baseFonts: IFontStyles, theme: ThemeV9): IFontStyles => {\n return {\n ...baseFonts,\n tiny: {\n ...baseFonts.tiny,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase100,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n xSmall: {\n ...baseFonts.xSmall,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase100,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n small: {\n ...baseFonts.small,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase200,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n smallPlus: {\n ...baseFonts.smallPlus,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase200,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n medium: {\n ...baseFonts.medium,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase300,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n mediumPlus: {\n ...baseFonts.mediumPlus,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase400,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n large: {\n ...baseFonts.large,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase400,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n xLarge: {\n ...baseFonts.xxLarge,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase500,\n fontWeight: theme.fontWeightSemibold as IFontWeight,\n },\n xxLarge: {\n ...baseFonts.xxLarge,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeHero700,\n fontWeight: theme.fontWeightSemibold as IFontWeight,\n },\n superLarge: {\n ...baseFonts.superLarge,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeHero900,\n fontWeight: theme.fontWeightSemibold as IFontWeight,\n },\n mega: {\n ...baseFonts.mega,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeHero1000,\n fontWeight: theme.fontWeightSemibold as IFontWeight,\n },\n };\n};\n\n/**\n * Overlays v9 shadows and border radii on a base set of v8 effects.\n */\nconst mapEffects = (baseEffects: IEffects, theme: ThemeV9): IEffects => {\n return {\n ...baseEffects,\n elevation4: theme.shadow4,\n elevation8: theme.shadow8,\n elevation16: theme.shadow16,\n elevation64: theme.shadow64,\n roundedCorner2: theme.borderRadiusSmall,\n roundedCorner4: theme.borderRadiusMedium,\n roundedCorner6: theme.borderRadiusLarge,\n };\n};\n\n/**\n * Creates a v8 theme from v9 brand colors and theme.\n * You can optionally pass a v8 base theme.\n * Otherwise the default v8 theme is used.\n *\n * The v9 colors, fonts, and effects are applied on top of the v8 theme\n * to allow v8 components to look as much like v9 components as possible.\n */\nexport const createV8Theme = (\n brandColors: BrandVariants,\n themeV9: ThemeV9,\n isDarkTheme: boolean = false,\n themeV8?: ThemeV8,\n): ThemeV8 => {\n const baseTheme = themeV8 || createTheme({ isInverted: isDarkTheme });\n\n return {\n ...baseTheme,\n palette: mapPalette(brandColors, isDarkTheme),\n components: fluent2ComponentStyles,\n semanticColors: mapSemanticColors(baseTheme.semanticColors, themeV9),\n fonts: mapFonts(baseTheme.fonts, themeV9),\n effects: mapEffects(baseTheme.effects, themeV9),\n isInverted: isDarkTheme || themeV8?.isInverted === true,\n };\n};\n"],"names":["createTheme","DefaultPalette","fluent2ComponentStyles","black","blackAlpha","grey","sharedColors","white","whiteAlpha","mappedNeutrals","blackTranslucent40","neutralDark","neutralPrimary","neutralPrimaryAlt","neutralSecondary","neutralSecondaryAlt","neutralTertiary","neutralTertiaryAlt","neutralQuaternary","neutralQuaternaryAlt","neutralLight","neutralLighter","neutralLighterAlt","whiteTranslucent40","invertedMappedNeutrals","mappedSharedColors","yellowDark","marigold","shade10","yellow","primary","yellowLight","tint40","orange","orangeLight","tint20","orangeLighter","redDark","darkRed","red","magentaDark","magenta","shade30","magentaLight","tint30","purpleDark","darkPurple","purple","purpleLight","blueDark","darkBlue","blueMid","royalBlue","blue","blueLight","lightBlue","tealDark","darkTeal","teal","tealLight","lightTeal","greenDark","darkGreen","green","greenLight","lightGreen","mapPalette","brandColors","inverted","neutrals","brands","themeDarker","themeDark","themeDarkAlt","themePrimary","themeSecondary","themeTertiary","themeLight","themeLighter","themeLighterAlt","accent","mapSemanticColors","baseColors","theme","accentButtonBackground","colorBrandBackground","accentButtonText","colorNeutralForegroundOnBrand","actionLink","colorNeutralForeground1","actionLinkHovered","colorNeutralForeground1Hover","bodyBackground","colorNeutralBackground1","bodyBackgroundChecked","colorNeutralBackground1Selected","bodyBackgroundHovered","colorNeutralBackground1Hover","bodyDivider","colorNeutralStroke2","bodyFrameBackground","bodyFrameDivider","bodyStandoutBackground","colorNeutralBackground2","bodySubtext","colorNeutralForeground2","bodyText","bodyTextChecked","colorNeutralForeground1Selected","buttonBackground","buttonBackgroundChecked","buttonBackgroundCheckedHovered","buttonBackgroundDisabled","colorNeutralBackgroundDisabled","buttonBackgroundHovered","buttonBackgroundPressed","colorNeutralBackground1Pressed","buttonBorder","colorNeutralStroke1","buttonBorderDisabled","colorNeutralStrokeDisabled","buttonText","buttonTextChecked","buttonTextCheckedHovered","buttonTextDisabled","colorNeutralForegroundDisabled","buttonTextHovered","buttonTextPressed","cardShadow","shadow4","cardShadowHovered","shadow8","cardStandoutBackground","defaultStateBackground","disabledBackground","disabledBodySubtext","disabledBodyText","disabledBorder","disabledSubtext","disabledText","focusBorder","colorStrokeFocus2","inputBackground","inputBackgroundChecked","inputBackgroundCheckedHovered","colorBrandBackgroundHover","inputBorder","colorNeutralStrokeAccessible","inputBorderHovered","colorNeutralStrokeAccessibleHover","inputFocusBorderAlt","colorBrandStroke1","inputForegroundChecked","inputIcon","colorNeutralForeground3","inputIconDisabled","inputIconHovered","inputPlaceholderBackgroundChecked","colorBrandBackgroundInvertedSelected","inputPlaceholderText","colorNeutralForeground4","inputText","inputTextHovered","link","colorBrandForegroundLink","linkHovered","colorBrandForegroundLinkHover","listBackground","listHeaderBackgroundHovered","listHeaderBackgroundPressed","listItemBackgroundChecked","listItemBackgroundCheckedHovered","listItemBackgroundHovered","listText","listTextColor","menuBackground","menuDivider","menuHeader","menuIcon","menuItemBackgroundChecked","menuItemBackgroundHovered","menuItemBackgroundPressed","menuItemText","menuItemTextHovered","messageLink","messageLinkHovered","messageText","primaryButtonBackground","primaryButtonBackgroundDisabled","primaryButtonBackgroundHovered","primaryButtonBackgroundPressed","colorBrandBackgroundPressed","primaryButtonBorder","colorTransparentStroke","primaryButtonText","primaryButtonTextDisabled","primaryButtonTextHovered","primaryButtonTextPressed","mapFonts","baseFonts","tiny","fontFamily","fontFamilyBase","fontSize","fontSizeBase100","fontWeight","fontWeightRegular","xSmall","small","fontSizeBase200","smallPlus","medium","fontSizeBase300","mediumPlus","fontSizeBase400","large","xLarge","xxLarge","fontSizeBase500","fontWeightSemibold","fontSizeHero700","superLarge","fontSizeHero900","mega","fontSizeHero1000","mapEffects","baseEffects","elevation4","elevation8","elevation16","shadow16","elevation64","shadow64","roundedCorner2","borderRadiusSmall","roundedCorner4","borderRadiusMedium","roundedCorner6","borderRadiusLarge","createV8Theme","themeV9","isDarkTheme","themeV8","baseTheme","isInverted","palette","components","semanticColors","fonts","effects"],"mappings":"AACA,SAASA,WAAW,EAAEC,cAAc,QAAQ,kBAAkB;AAC9D,SAASC,sBAAsB,QAAQ,0BAA0B;AAIjE,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,EAAEC,YAAY,EAAEC,KAAK,EAAEC,UAAU,QAAQ,oBAAoB;AAE7F,MAAMC,iBAAiB;IACrBN;IACAO,oBAAoBN,UAAU,CAAC,GAAG;IAClCO,aAAaN,IAAI,CAAC,EAAE;IACpBO,gBAAgBP,IAAI,CAAC,GAAG;IACxBQ,mBAAmBR,IAAI,CAAC,GAAG;IAC3BS,kBAAkBT,IAAI,CAAC,GAAG;IAC1BU,qBAAqBV,IAAI,CAAC,GAAG;IAC7BW,iBAAiBX,IAAI,CAAC,GAAG;IACzBY,oBAAoBZ,IAAI,CAAC,GAAG;IAC5Ba,mBAAmBb,IAAI,CAAC,GAAG;IAC3Bc,sBAAsBd,IAAI,CAAC,GAAG;IAC9Be,cAAcf,IAAI,CAAC,GAAG;IACtBgB,gBAAgBhB,IAAI,CAAC,GAAG;IACxBiB,mBAAmBjB,IAAI,CAAC,GAAG;IAC3BE;IACAgB,oBAAoBf,UAAU,CAAC,GAAG;AACpC;AAEA,MAAMgB,yBAAyB;IAC7BrB,OAAOI;IACPG,oBAAoBF,UAAU,CAAC,GAAG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;QAC3BC,gBAAgBtJ,MAAMuJ,iBAAiB;QACvCC,gBAAgBxJ,MAAMyJ,kBAAkB;QACxCC,gBAAgB1J,MAAM2J,iBAAiB;IACzC;AACF;AAEA;;;;;;;CAOC,GACD,OAAO,MAAMC,gBAAgB,CAC3B5K,aACA6K,SACAC,cAAuB,KAAK,EAC5BC,UACY;IACZ,MAAMC,YAAYD,WAAWlP,YAAY;QAAEoP,YAAYH;IAAY;IAEnE,OAAO;QACL,GAAGE,SAAS;QACZE,SAASnL,WAAWC,aAAa8K;QACjCK,YAAYpP;QACZqP,gBAAgBtK,kBAAkBkK,UAAUI,cAAc,EAAEP;QAC5DQ,OAAOlD,SAAS6C,UAAUK,KAAK,EAAER;QACjCS,SAASxB,WAAWkB,UAAUM,OAAO,EAAET;QACvCI,YAAYH,eAAeC,CAAAA,oBAAAA,qBAAAA,KAAAA,IAAAA,QAASE,UAAU,AAAD,MAAM,IAAI;IACzD;AACF,EAAE"}
1
+ {"version":3,"sources":["v8ThemeShim.ts"],"sourcesContent":["import type { IPalette, ISemanticColors, IFontStyles, IFontWeight, IEffects, Theme as ThemeV8 } from '@fluentui/react';\nimport { createTheme, DefaultPalette } from '@fluentui/react';\nimport { fluent2ComponentStyles } from '@fluentui/fluent2-theme';\n\nimport { BrandVariants, Theme as ThemeV9 } from '@fluentui/react-components';\n\nimport { black, blackAlpha, grey, sharedColors, white, whiteAlpha } from './themeDuplicates';\n\nconst mappedNeutrals = {\n black,\n blackTranslucent40: blackAlpha[40],\n neutralDark: grey[8],\n neutralPrimary: grey[14],\n neutralPrimaryAlt: grey[22],\n neutralSecondary: grey[36],\n neutralSecondaryAlt: grey[52],\n neutralTertiary: grey[62],\n neutralTertiaryAlt: grey[78],\n neutralQuaternary: grey[82],\n neutralQuaternaryAlt: grey[88],\n neutralLight: grey[92],\n neutralLighter: grey[96],\n neutralLighterAlt: grey[98],\n white,\n whiteTranslucent40: whiteAlpha[40],\n};\n\nconst invertedMappedNeutrals = {\n black: white,\n blackTranslucent40: whiteAlpha[40],\n neutralDark: grey[98],\n neutralPrimary: grey[96],\n neutralPrimaryAlt: grey[84],\n neutralSecondary: grey[82],\n neutralSecondaryAlt: grey[74],\n neutralTertiary: grey[44],\n neutralTertiaryAlt: grey[26],\n neutralQuaternary: grey[24],\n neutralQuaternaryAlt: grey[18],\n neutralLight: grey[16],\n neutralLighter: grey[14],\n neutralLighterAlt: grey[10],\n white: black,\n whiteTranslucent40: blackAlpha[40],\n};\n\nconst mappedSharedColors = {\n yellowDark: sharedColors.marigold.shade10,\n yellow: sharedColors.yellow.primary,\n yellowLight: sharedColors.yellow.tint40,\n orange: sharedColors.orange.primary,\n orangeLight: sharedColors.orange.tint20,\n orangeLighter: sharedColors.orange.tint40,\n redDark: sharedColors.darkRed.primary,\n red: sharedColors.red.primary,\n magentaDark: sharedColors.magenta.shade30,\n magenta: sharedColors.magenta.primary,\n magentaLight: sharedColors.magenta.tint30,\n purpleDark: sharedColors.darkPurple.primary,\n purple: sharedColors.purple.primary,\n purpleLight: sharedColors.purple.tint40,\n blueDark: sharedColors.darkBlue.primary,\n blueMid: sharedColors.royalBlue.primary,\n blue: sharedColors.blue.primary,\n blueLight: sharedColors.lightBlue.primary,\n tealDark: sharedColors.darkTeal.primary,\n teal: sharedColors.teal.primary,\n tealLight: sharedColors.lightTeal.primary,\n greenDark: sharedColors.darkGreen.primary,\n green: sharedColors.green.primary,\n greenLight: sharedColors.lightGreen.primary,\n};\n\n/**\n * Creates a v8 palette given a brand ramp\n */\nconst mapPalette = (brandColors: BrandVariants, inverted: boolean): IPalette => {\n const neutrals = inverted ? invertedMappedNeutrals : mappedNeutrals;\n const brands = inverted\n ? {\n themeDarker: brandColors[110],\n themeDark: brandColors[100],\n themeDarkAlt: brandColors[100],\n themePrimary: brandColors[90],\n themeSecondary: brandColors[90],\n themeTertiary: brandColors[60],\n themeLight: brandColors[50],\n themeLighter: brandColors[40],\n themeLighterAlt: brandColors[30],\n }\n : {\n themeDarker: brandColors[40],\n themeDark: brandColors[60],\n themeDarkAlt: brandColors[70],\n themePrimary: brandColors[80],\n themeSecondary: brandColors[90],\n themeTertiary: brandColors[120],\n themeLight: brandColors[140],\n themeLighter: brandColors[150],\n themeLighterAlt: brandColors[160],\n };\n\n return {\n ...DefaultPalette,\n ...neutrals,\n accent: brands.themePrimary,\n ...mappedSharedColors,\n ...brands,\n };\n};\n\n/**\n * Returns v9 theme colors overlaid on a base set of v8 semantic colors\n */\nconst mapSemanticColors = (baseColors: ISemanticColors, theme: ThemeV9): ISemanticColors => {\n return {\n ...baseColors,\n accentButtonBackground: theme.colorBrandBackground,\n accentButtonText: theme.colorNeutralForegroundOnBrand,\n actionLink: theme.colorNeutralForeground1,\n actionLinkHovered: theme.colorNeutralForeground1Hover,\n // blockingBackground,\n // blockingIcon,\n bodyBackground: theme.colorNeutralBackground1,\n bodyBackgroundChecked: theme.colorNeutralBackground1Selected,\n bodyBackgroundHovered: theme.colorNeutralBackground1Hover,\n bodyDivider: theme.colorNeutralStroke2,\n bodyFrameBackground: theme.colorNeutralBackground1,\n bodyFrameDivider: theme.colorNeutralStroke2,\n bodyStandoutBackground: theme.colorNeutralBackground2,\n bodySubtext: theme.colorNeutralForeground2,\n bodyText: theme.colorNeutralForeground1,\n bodyTextChecked: theme.colorNeutralForeground1Selected,\n buttonBackground: theme.colorNeutralBackground1,\n buttonBackgroundChecked: theme.colorNeutralBackground1Selected,\n buttonBackgroundCheckedHovered: theme.colorNeutralBackground1Hover,\n buttonBackgroundDisabled: theme.colorNeutralBackgroundDisabled,\n buttonBackgroundHovered: theme.colorNeutralBackground1Hover,\n buttonBackgroundPressed: theme.colorNeutralBackground1Pressed,\n buttonBorder: theme.colorNeutralStroke1,\n buttonBorderDisabled: theme.colorNeutralStrokeDisabled,\n buttonText: theme.colorNeutralForeground1,\n buttonTextChecked: theme.colorNeutralForeground1,\n buttonTextCheckedHovered: theme.colorNeutralForeground1,\n buttonTextDisabled: theme.colorNeutralForegroundDisabled,\n buttonTextHovered: theme.colorNeutralForeground1,\n buttonTextPressed: theme.colorNeutralForeground1,\n cardShadow: theme.shadow4,\n cardShadowHovered: theme.shadow8,\n cardStandoutBackground: theme.colorNeutralBackground1,\n defaultStateBackground: theme.colorNeutralBackground2,\n disabledBackground: theme.colorNeutralBackgroundDisabled,\n disabledBodySubtext: theme.colorNeutralForegroundDisabled,\n disabledBodyText: theme.colorNeutralForegroundDisabled,\n disabledBorder: theme.colorNeutralStrokeDisabled,\n disabledSubtext: theme.colorNeutralForegroundDisabled,\n disabledText: theme.colorNeutralForegroundDisabled,\n // errorBackground,\n // errorIcon,\n // errorText: ,\n focusBorder: theme.colorStrokeFocus2,\n // infoBackground,\n // infoIcon,\n inputBackground: theme.colorNeutralBackground1,\n inputBackgroundChecked: theme.colorBrandBackground,\n inputBackgroundCheckedHovered: theme.colorBrandBackgroundHover,\n inputBorder: theme.colorNeutralStrokeAccessible,\n inputBorderHovered: theme.colorNeutralStrokeAccessibleHover,\n inputFocusBorderAlt: theme.colorBrandStroke1,\n inputForegroundChecked: theme.colorNeutralForegroundOnBrand,\n inputIcon: theme.colorNeutralForeground3,\n inputIconDisabled: theme.colorNeutralForegroundDisabled,\n inputIconHovered: theme.colorNeutralForeground3,\n inputPlaceholderBackgroundChecked: theme.colorBrandBackgroundInvertedSelected,\n inputPlaceholderText: theme.colorNeutralForeground4,\n inputText: theme.colorNeutralForeground1,\n inputTextHovered: theme.colorNeutralForeground1Hover,\n link: theme.colorBrandForegroundLink,\n linkHovered: theme.colorBrandForegroundLinkHover,\n listBackground: theme.colorNeutralBackground1,\n listHeaderBackgroundHovered: theme.colorNeutralBackground1Hover,\n listHeaderBackgroundPressed: theme.colorNeutralBackground1Pressed,\n listItemBackgroundChecked: theme.colorNeutralBackground1Selected,\n listItemBackgroundCheckedHovered: theme.colorNeutralBackground1Selected,\n listItemBackgroundHovered: theme.colorNeutralBackground1Hover,\n listText: theme.colorNeutralForeground1,\n listTextColor: theme.colorNeutralForeground1,\n menuBackground: theme.colorNeutralBackground1,\n menuDivider: theme.colorNeutralStroke2,\n menuHeader: theme.colorNeutralForeground3,\n menuIcon: theme.colorNeutralForeground1,\n menuItemBackgroundChecked: theme.colorNeutralBackground1,\n menuItemBackgroundHovered: theme.colorNeutralBackground1Hover,\n menuItemBackgroundPressed: theme.colorNeutralBackground1Hover,\n menuItemText: theme.colorNeutralForeground1,\n menuItemTextHovered: theme.colorNeutralForeground1Hover,\n messageLink: theme.colorBrandForegroundLink,\n messageLinkHovered: theme.colorBrandForegroundLinkHover,\n messageText: theme.colorNeutralForeground1,\n primaryButtonBackground: theme.colorBrandBackground,\n primaryButtonBackgroundDisabled: theme.colorNeutralBackgroundDisabled,\n primaryButtonBackgroundHovered: theme.colorBrandBackgroundHover,\n primaryButtonBackgroundPressed: theme.colorBrandBackgroundPressed,\n primaryButtonBorder: theme.colorTransparentStroke,\n primaryButtonText: theme.colorNeutralForegroundOnBrand,\n primaryButtonTextDisabled: theme.colorNeutralForegroundDisabled,\n primaryButtonTextHovered: theme.colorNeutralForegroundOnBrand,\n primaryButtonTextPressed: theme.colorNeutralForegroundOnBrand,\n // severeWarningBackground,\n // severeWarningIcon,\n // smallInputBorder,\n // successBackground,\n // successIcon,\n // successText: ,\n // variantBorder,\n // variantBorderHovered,\n // warningBackground,\n // warningHighlight,\n // warningIcon,\n // warningText: ,\n };\n};\n\n/**\n * Overlays v9 fonts on a set of base v8 fonts.\n */\nconst mapFonts = (baseFonts: IFontStyles, theme: ThemeV9): IFontStyles => {\n return {\n ...baseFonts,\n tiny: {\n ...baseFonts.tiny,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase100,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n xSmall: {\n ...baseFonts.xSmall,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase100,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n small: {\n ...baseFonts.small,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase200,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n smallPlus: {\n ...baseFonts.smallPlus,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase200,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n medium: {\n ...baseFonts.medium,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase300,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n mediumPlus: {\n ...baseFonts.mediumPlus,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase400,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n large: {\n ...baseFonts.large,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase400,\n fontWeight: theme.fontWeightRegular as IFontWeight,\n },\n xLarge: {\n ...baseFonts.xxLarge,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeBase500,\n fontWeight: theme.fontWeightSemibold as IFontWeight,\n },\n xxLarge: {\n ...baseFonts.xxLarge,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeHero700,\n fontWeight: theme.fontWeightSemibold as IFontWeight,\n },\n superLarge: {\n ...baseFonts.superLarge,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeHero900,\n fontWeight: theme.fontWeightSemibold as IFontWeight,\n },\n mega: {\n ...baseFonts.mega,\n fontFamily: theme.fontFamilyBase,\n fontSize: theme.fontSizeHero1000,\n fontWeight: theme.fontWeightSemibold as IFontWeight,\n },\n };\n};\n\n/**\n * Overlays v9 shadows and border radii on a base set of v8 effects.\n */\nconst mapEffects = (baseEffects: IEffects, theme: ThemeV9): IEffects => {\n return {\n ...baseEffects,\n elevation4: theme.shadow4,\n elevation8: theme.shadow8,\n elevation16: theme.shadow16,\n elevation64: theme.shadow64,\n roundedCorner2: theme.borderRadiusSmall,\n roundedCorner4: theme.borderRadiusMedium,\n roundedCorner6: theme.borderRadiusLarge,\n };\n};\n\n/**\n * Creates a v8 theme from v9 brand colors and theme.\n * You can optionally pass a v8 base theme.\n * Otherwise the default v8 theme is used.\n *\n * The v9 colors, fonts, and effects are applied on top of the v8 theme\n * to allow v8 components to look as much like v9 components as possible.\n */\nexport const createV8Theme = (\n brandColors: BrandVariants,\n themeV9: ThemeV9,\n isDarkTheme: boolean = false,\n themeV8?: ThemeV8,\n): ThemeV8 => {\n const baseTheme = themeV8 || createTheme({ isInverted: isDarkTheme });\n\n return {\n ...baseTheme,\n palette: mapPalette(brandColors, isDarkTheme),\n components: fluent2ComponentStyles,\n semanticColors: mapSemanticColors(baseTheme.semanticColors, themeV9),\n fonts: mapFonts(baseTheme.fonts, themeV9),\n effects: mapEffects(baseTheme.effects, themeV9),\n isInverted: isDarkTheme || themeV8?.isInverted === true,\n };\n};\n"],"names":["createTheme","DefaultPalette","fluent2ComponentStyles","black","blackAlpha","grey","sharedColors","white","whiteAlpha","mappedNeutrals","blackTranslucent40","neutralDark","neutralPrimary","neutralPrimaryAlt","neutralSecondary","neutralSecondaryAlt","neutralTertiary","neutralTertiaryAlt","neutralQuaternary","neutralQuaternaryAlt","neutralLight","neutralLighter","neutralLighterAlt","whiteTranslucent40","invertedMappedNeutrals","mappedSharedColors","yellowDark","marigold","shade10","yellow","primary","yellowLight","tint40","orange","orangeLight","tint20","orangeLighter","redDark","darkRed","red","magentaDark","magenta","shade30","magentaLight","tint30","purpleDark","darkPurple","purple","purpleLight","blueDark","darkBlue","blueMid","royalBlue","blue","blueLight","lightBlue","tealDark","darkTeal","teal","tealLight","lightTeal","greenDark","darkGreen","green","greenLight","lightGreen","mapPalette","brandColors","inverted","neutrals","brands","themeDarker","themeDark","themeDarkAlt","themePrimary","themeSecondary","themeTertiary","themeLight","themeLighter","themeLighterAlt","accent","mapSemanticColors","baseColors","theme","accentButtonBackground","colorBrandBackground","accentButtonText","colorNeutralForegroundOnBrand","actionLink","colorNeutralForeground1","actionLinkHovered","colorNeutralForeground1Hover","bodyBackground","colorNeutralBackground1","bodyBackgroundChecked","colorNeutralBackground1Selected","bodyBackgroundHovered","colorNeutralBackground1Hover","bodyDivider","colorNeutralStroke2","bodyFrameBackground","bodyFrameDivider","bodyStandoutBackground","colorNeutralBackground2","bodySubtext","colorNeutralForeground2","bodyText","bodyTextChecked","colorNeutralForeground1Selected","buttonBackground","buttonBackgroundChecked","buttonBackgroundCheckedHovered","buttonBackgroundDisabled","colorNeutralBackgroundDisabled","buttonBackgroundHovered","buttonBackgroundPressed","colorNeutralBackground1Pressed","buttonBorder","colorNeutralStroke1","buttonBorderDisabled","colorNeutralStrokeDisabled","buttonText","buttonTextChecked","buttonTextCheckedHovered","buttonTextDisabled","colorNeutralForegroundDisabled","buttonTextHovered","buttonTextPressed","cardShadow","shadow4","cardShadowHovered","shadow8","cardStandoutBackground","defaultStateBackground","disabledBackground","disabledBodySubtext","disabledBodyText","disabledBorder","disabledSubtext","disabledText","focusBorder","colorStrokeFocus2","inputBackground","inputBackgroundChecked","inputBackgroundCheckedHovered","colorBrandBackgroundHover","inputBorder","colorNeutralStrokeAccessible","inputBorderHovered","colorNeutralStrokeAccessibleHover","inputFocusBorderAlt","colorBrandStroke1","inputForegroundChecked","inputIcon","colorNeutralForeground3","inputIconDisabled","inputIconHovered","inputPlaceholderBackgroundChecked","colorBrandBackgroundInvertedSelected","inputPlaceholderText","colorNeutralForeground4","inputText","inputTextHovered","link","colorBrandForegroundLink","linkHovered","colorBrandForegroundLinkHover","listBackground","listHeaderBackgroundHovered","listHeaderBackgroundPressed","listItemBackgroundChecked","listItemBackgroundCheckedHovered","listItemBackgroundHovered","listText","listTextColor","menuBackground","menuDivider","menuHeader","menuIcon","menuItemBackgroundChecked","menuItemBackgroundHovered","menuItemBackgroundPressed","menuItemText","menuItemTextHovered","messageLink","messageLinkHovered","messageText","primaryButtonBackground","primaryButtonBackgroundDisabled","primaryButtonBackgroundHovered","primaryButtonBackgroundPressed","colorBrandBackgroundPressed","primaryButtonBorder","colorTransparentStroke","primaryButtonText","primaryButtonTextDisabled","primaryButtonTextHovered","primaryButtonTextPressed","mapFonts","baseFonts","tiny","fontFamily","fontFamilyBase","fontSize","fontSizeBase100","fontWeight","fontWeightRegular","xSmall","small","fontSizeBase200","smallPlus","medium","fontSizeBase300","mediumPlus","fontSizeBase400","large","xLarge","xxLarge","fontSizeBase500","fontWeightSemibold","fontSizeHero700","superLarge","fontSizeHero900","mega","fontSizeHero1000","mapEffects","baseEffects","elevation4","elevation8","elevation16","shadow16","elevation64","shadow64","roundedCorner2","borderRadiusSmall","roundedCorner4","borderRadiusMedium","roundedCorner6","borderRadiusLarge","createV8Theme","themeV9","isDarkTheme","themeV8","baseTheme","isInverted","palette","components","semanticColors","fonts","effects"],"mappings":"AACA,SAASA,WAAW,EAAEC,cAAc,QAAQ,kBAAkB;AAC9D,SAASC,sBAAsB,QAAQ,0BAA0B;AAIjE,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,EAAEC,YAAY,EAAEC,KAAK,EAAEC,UAAU,QAAQ,oBAAoB;AAE7F,MAAMC,iBAAiB;IACrBN;IACAO,oBAAoBN,UAAU,CAAC,GAAG;IAClCO,aAAaN,IAAI,CAAC,EAAE;IACpBO,gBAAgBP,IAAI,CAAC,GAAG;IACxBQ,mBAAmBR,IAAI,CAAC,GAAG;IAC3BS,kBAAkBT,IAAI,CAAC,GAAG;IAC1BU,qBAAqBV,IAAI,CAAC,GAAG;IAC7BW,iBAAiBX,IAAI,CAAC,GAAG;IACzBY,oBAAoBZ,IAAI,CAAC,GAAG;IAC5Ba,mBAAmBb,IAAI,CAAC,GAAG;IAC3Bc,sBAAsBd,IAAI,CAAC,GAAG;IAC9Be,cAAcf,IAAI,CAAC,GAAG;IACtBgB,gBAAgBhB,IAAI,CAAC,GAAG;IACxBiB,mBAAmBjB,IAAI,CAAC,GAAG;IAC3BE;IACAgB,oBAAoBf,UAAU,CAAC,GAAG;AACpC;AAEA,MAAMgB,yBAAyB;IAC7BrB,OAAOI;IACPG,oBAAoBF,UAAU,CAAC,GAAG;IAClC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gBAAgBxJ,MAAMyJ,kBAAkB;QACxCC,gBAAgB1J,MAAM2J,iBAAiB;IACzC;AACF;AAEA;;;;;;;CAOC,GACD,OAAO,MAAMC,gBAAgB,CAC3B5K,aACA6K,SACAC,cAAuB,KAAK,EAC5BC;QAW6BA;IAT7B,MAAMC,YAAYD,WAAWlP,YAAY;QAAEoP,YAAYH;IAAY;IAEnE,OAAO;QACL,GAAGE,SAAS;QACZE,SAASnL,WAAWC,aAAa8K;QACjCK,YAAYpP;QACZqP,gBAAgBtK,kBAAkBkK,UAAUI,cAAc,EAAEP;QAC5DQ,OAAOlD,SAAS6C,UAAUK,KAAK,EAAER;QACjCS,SAASxB,WAAWkB,UAAUM,OAAO,EAAET;QACvCI,YAAYH,eAAeC,EAAAA,WAAAA,qBAAAA,+BAAAA,SAASE,UAAU,MAAK;IACrD;AACF,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["v9BrandVariantsShim.ts"],"sourcesContent":["import type { IPalette } from '@fluentui/react';\nimport type { BrandVariants } from '@fluentui/react-components';\nimport { TinyColor } from '@ctrl/tinycolor';\nimport type { ColorInput } from '@ctrl/tinycolor';\n\n/**\n * A helper to mix colors using tiny color by an amount and get back a hex string.\n */\nconst mixColors = (colorA: ColorInput, colorB: ColorInput, amount?: number) => {\n return new TinyColor(colorA).mix(new TinyColor(colorB), amount).toHexString();\n};\n\n/**\n * Creates a v9 brand ramp by pairwise mixing v8 palette colors.\n */\nconst mixByPairs = (palette: IPalette): BrandVariants => {\n return {\n 10: palette.themeDarker,\n 20: mixColors(palette.themeDarker, palette.themeDark),\n 30: palette.themeDark,\n 40: mixColors(palette.themeDark, palette.themeDarkAlt),\n 50: palette.themeDarkAlt,\n 60: mixColors(palette.themeDarkAlt, palette.themePrimary),\n 70: palette.themePrimary,\n 80: mixColors(palette.themePrimary, palette.themeSecondary),\n 90: palette.themeSecondary,\n 100: mixColors(palette.themeSecondary, palette.themeTertiary),\n 110: palette.themeTertiary,\n 120: mixColors(palette.themeTertiary, palette.themeLight),\n 130: palette.themeLight,\n 140: mixColors(palette.themeLight, palette.themeLighter),\n 150: palette.themeLighter,\n 160: mixColors(palette.themeLighter, palette.themeLighterAlt),\n };\n};\n\n/**\n * Creates a v9 brand ramp by mixing v8 palette colors\n * using steps between themeDarker and themePrimary and\n * between themePrimary and themeLighterAlt.\n */\nconst mixPrimaryAndEnds = (palette: IPalette): BrandVariants => {\n return {\n 10: palette.themeDarker,\n 20: mixColors(palette.themeDarker, palette.themePrimary, 20),\n 30: mixColors(palette.themeDarker, palette.themePrimary, 30),\n 40: mixColors(palette.themeDarker, palette.themePrimary, 40),\n 50: mixColors(palette.themeDarker, palette.themePrimary, 50),\n 60: mixColors(palette.themeDarker, palette.themePrimary, 60),\n 70: mixColors(palette.themeDarker, palette.themePrimary, 70),\n 80: palette.themePrimary,\n 90: mixColors(palette.themePrimary, palette.themeLighterAlt, 10),\n 100: mixColors(palette.themePrimary, palette.themeLighterAlt, 20),\n 110: mixColors(palette.themePrimary, palette.themeLighterAlt, 30),\n 120: mixColors(palette.themePrimary, palette.themeLighterAlt, 40),\n 130: mixColors(palette.themePrimary, palette.themeLighterAlt, 50),\n 140: mixColors(palette.themePrimary, palette.themeLighterAlt, 60),\n 150: mixColors(palette.themePrimary, palette.themeLighterAlt, 70),\n 160: palette.themeLighterAlt,\n };\n};\n\ntype Interpolation = 'pairs' | 'primaryAndEnds';\n\n/**\n * Creates v9 brand colors from a v8 palette using interpolation\n * A v8 palette has nine colors and v9 has sixteen colors.\n */\nexport const createBrandVariants = (palette: IPalette, interpolation: Interpolation = 'pairs'): BrandVariants => {\n switch (interpolation) {\n case 'primaryAndEnds':\n return mixPrimaryAndEnds(palette);\n case 'pairs':\n default:\n return mixByPairs(palette);\n }\n};\n"],"names":["TinyColor","mixColors","colorA","colorB","amount","mix","toHexString","mixByPairs","palette","themeDarker","themeDark","themeDarkAlt","themePrimary","themeSecondary","themeTertiary","themeLight","themeLighter","themeLighterAlt","mixPrimaryAndE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,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIX,UAAUO,QAAQC,WAAW,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIX,UAAUO,QAAQC,WAAW,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIJ,QAAQI,YAAY;QACxB,IAAIX,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC7D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKT,QAAQS,eAAe;IAC9B;AACF;AAIA;;;CAGC,GACD,OAAO,MAAME,sBAAsB,CAACX,SAAmBY,gBAA+B,OAAO,GAAoB;IAC/G,OAAQA;QACN,KAAK;YACH,OAAOF,kBAAkBV;QAC3B,KAAK;QACL;YACE,OAAOD,WAAWC;IACtB;AACF,EAAE"}
1
+ {"version":3,"sources":["v9BrandVariantsShim.ts"],"sourcesContent":["import type { IPalette } from '@fluentui/react';\nimport type { BrandVariants } from '@fluentui/react-components';\nimport { TinyColor } from '@ctrl/tinycolor';\nimport type { ColorInput } from '@ctrl/tinycolor';\n\n/**\n * A helper to mix colors using tiny color by an amount and get back a hex string.\n */\nconst mixColors = (colorA: ColorInput, colorB: ColorInput, amount?: number) => {\n return new TinyColor(colorA).mix(new TinyColor(colorB), amount).toHexString();\n};\n\n/**\n * Creates a v9 brand ramp by pairwise mixing v8 palette colors.\n */\nconst mixByPairs = (palette: IPalette): BrandVariants => {\n return {\n 10: palette.themeDarker,\n 20: mixColors(palette.themeDarker, palette.themeDark),\n 30: palette.themeDark,\n 40: mixColors(palette.themeDark, palette.themeDarkAlt),\n 50: palette.themeDarkAlt,\n 60: mixColors(palette.themeDarkAlt, palette.themePrimary),\n 70: palette.themePrimary,\n 80: mixColors(palette.themePrimary, palette.themeSecondary),\n 90: palette.themeSecondary,\n 100: mixColors(palette.themeSecondary, palette.themeTertiary),\n 110: palette.themeTertiary,\n 120: mixColors(palette.themeTertiary, palette.themeLight),\n 130: palette.themeLight,\n 140: mixColors(palette.themeLight, palette.themeLighter),\n 150: palette.themeLighter,\n 160: mixColors(palette.themeLighter, palette.themeLighterAlt),\n };\n};\n\n/**\n * Creates a v9 brand ramp by mixing v8 palette colors\n * using steps between themeDarker and themePrimary and\n * between themePrimary and themeLighterAlt.\n */\nconst mixPrimaryAndEnds = (palette: IPalette): BrandVariants => {\n return {\n 10: palette.themeDarker,\n 20: mixColors(palette.themeDarker, palette.themePrimary, 20),\n 30: mixColors(palette.themeDarker, palette.themePrimary, 30),\n 40: mixColors(palette.themeDarker, palette.themePrimary, 40),\n 50: mixColors(palette.themeDarker, palette.themePrimary, 50),\n 60: mixColors(palette.themeDarker, palette.themePrimary, 60),\n 70: mixColors(palette.themeDarker, palette.themePrimary, 70),\n 80: palette.themePrimary,\n 90: mixColors(palette.themePrimary, palette.themeLighterAlt, 10),\n 100: mixColors(palette.themePrimary, palette.themeLighterAlt, 20),\n 110: mixColors(palette.themePrimary, palette.themeLighterAlt, 30),\n 120: mixColors(palette.themePrimary, palette.themeLighterAlt, 40),\n 130: mixColors(palette.themePrimary, palette.themeLighterAlt, 50),\n 140: mixColors(palette.themePrimary, palette.themeLighterAlt, 60),\n 150: mixColors(palette.themePrimary, palette.themeLighterAlt, 70),\n 160: palette.themeLighterAlt,\n };\n};\n\ntype Interpolation = 'pairs' | 'primaryAndEnds';\n\n/**\n * Creates v9 brand colors from a v8 palette using interpolation\n * A v8 palette has nine colors and v9 has sixteen colors.\n */\nexport const createBrandVariants = (palette: IPalette, interpolation: Interpolation = 'pairs'): BrandVariants => {\n switch (interpolation) {\n case 'primaryAndEnds':\n return mixPrimaryAndEnds(palette);\n case 'pairs':\n default:\n return mixByPairs(palette);\n }\n};\n"],"names":["TinyColor","mixColors","colorA","colorB","amount","mix","toHexString","mixByPairs","palette","themeDarker","themeDark","themeDarkAlt","themePrimary","themeSecondary","themeTertiary","themeLight","themeLighter","themeLighterAlt","mixPrimaryAndEnds","createBrandVariants","interpolation"],"mappings":"AAEA,SAASA,SAAS,QAAQ,kBAAkB;AAG5C;;CAEC,GACD,MAAMC,YAAY,CAACC,QAAoBC,QAAoBC;IACzD,OAAO,IAAIJ,UAAUE,QAAQG,GAAG,CAAC,IAAIL,UAAUG,SAASC,QAAQE,WAAW;AAC7E;AAEA;;CAEC,GACD,MAAMC,aAAa,CAACC;IAClB,OAAO;QACL,IAAIA,QAAQC,WAAW;QACvB,IAAIR,UAAUO,QAAQC,WAAW,EAAED,QAAQE,SAAS;QACpD,IAAIF,QAAQE,SAAS;QACrB,IAAIT,UAAUO,QAAQE,SAAS,EAAEF,QAAQG,YAAY;QACrD,IAAIH,QAAQG,YAAY;QACxB,IAAIV,UAAUO,QAAQG,YAAY,EAAEH,QAAQI,YAAY;QACxD,IAAIJ,QAAQI,YAAY;QACxB,IAAIX,UAAUO,QAAQI,YAAY,EAAEJ,QAAQK,cAAc;QAC1D,IAAIL,QAAQK,cAAc;QAC1B,KAAKZ,UAAUO,QAAQK,cAAc,EAAEL,QAAQM,aAAa;QAC5D,KAAKN,QAAQM,aAAa;QAC1B,KAAKb,UAAUO,QAAQM,aAAa,EAAEN,QAAQO,UAAU;QACxD,KAAKP,QAAQO,UAAU;QACvB,KAAKd,UAAUO,QAAQO,UAAU,EAAEP,QAAQQ,YAAY;QACvD,KAAKR,QAAQQ,YAAY;QACzB,KAAKf,UAAUO,QAAQQ,YAAY,EAAER,QAAQS,eAAe;IAC9D;AACF;AAEA;;;;CAIC,GACD,MAAMC,oBAAoB,CAACV;IACzB,OAAO;QACL,IAAIA,QAAQC,WAAW;QACvB,IAAIR,UAAUO,QAAQC,WAAW,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIX,UAAUO,QAAQC,WAAW,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIX,UAAUO,QAAQC,WAAW,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIX,UAAUO,QAAQC,WAAW,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIX,UAAUO,QAAQC,WAAW,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIX,UAAUO,QAAQC,WAAW,EAAED,QAAQI,YAAY,EAAE;QACzD,IAAIJ,QAAQI,YAAY;QACxB,IAAIX,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC7D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKhB,UAAUO,QAAQI,YAAY,EAAEJ,QAAQS,eAAe,EAAE;QAC9D,KAAKT,QAAQS,eAAe;IAC9B;AACF;AAIA;;;CAGC,GACD,OAAO,MAAME,sBAAsB,CAACX,SAAmBY,gBAA+B,OAAO;IAC3F,OAAQA;QACN,KAAK;YACH,OAAOF,kBAAkBV;QAC3B,KAAK;QACL;YACE,OAAOD,WAAWC;IACtB;AACF,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["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 colorBrandForeground2Hover: palette.themeDarkAlt,\n colorBrandForeground2Pressed: 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 colorBrandBackground2Hover: palette.themeLighterAlt,\n colorBrandBackground2Pressed: 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 colorNeutralStrokeSubtle: palette.neutralQuaternaryAlt,\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 colorBrandStroke2Hover: palette.themeLight,\n colorBrandStroke2Pressed: palette.themeLight,\n colorBrandStroke2Contrast: 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 colorNeutralStrokeAlpha2: whiteAlpha[20],\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"],"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","colorBrandForeground2Hover","colorBrandForeground2Pressed","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","colorBrandBackground2Hover","colorBrandBackground2Pressed","colorBrandBackgroundInverted","colorBrandBackgroundInvertedHover","colorBrandBackgroundInvertedPressed","themeLight","colorBrandBackgroundInvertedSelected","themeLighter","colorNeutralStrokeAccessible","colorNeutralStrokeAccessibleHover","colorNeutralStrokeAccessiblePressed","colorNeutralStrokeAccessibleSelected","colorNeutralStroke1","colorNeutralStroke1Hover","colorNeutralStroke1Pressed","colorNeutralStroke1Selected","colorNeutralStroke2","colorNeutralStroke3","colorNeutralStrokeSubtle","colorNeutralStrokeOnBrand","colorNeutralStrokeOnBrand2","colorNeutralStrokeOnBrand2Hover","colorNeutralStrokeOnBrand2Pressed","colorNeutralStrokeOnBrand2Selected","colorBrandStroke1","colorBrandStroke2","colorBrandStroke2Hover","colorBrandStroke2Pressed","colorBrandStroke2Contrast","colorCompoundBrandStroke","colorCompoundBrandStrokeHover","colorCompoundBrandStrokePressed","colorNeutralStrokeDisabled","colorNeutralStrokeInvertedDisabled","colorTransparentStroke","colorTransparentStrokeInteractive","colorTransparentStrokeDisabled","colorNeutralStrokeAlpha","colorNeutralStrokeAlpha2","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"],"mappings":"AAEA,SAA2BA,aAAa,QAAQ,6BAA6B;AAE7E,SAASC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,WAAW,EAAEC,WAAW,QAAQ,oBAAoB;AAE3F;;CAEC,GACD,MAAMC,iBAAiB,CAACC,SAAmBC,WAAmC;IAC5E,OAAO;QACLC,yBAAyBF,QAAQG,cAAc;QAC/CC,8BAA8BJ,QAAQG,cAAc;QACpDE,gCAAgCL,QAAQG,cAAc;QACtDG,iCAAiCN,QAAQG,cAAc;QACvDI,yBAAyBP,QAAQQ,gBAAgB;QACjDC,8BAA8BT,QAAQG,cAAc;QACpDO,gCAAgCV,QAAQG,cAAc;QACtDQ,iCAAiCX,QAAQG,cAAc;QACvDS,mCAAmCZ,QAAQa,YAAY;QAC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B3K,QAAQ4K,KAAK;QAChCC,2BAA2B;QAC3BC,uBAAuB;QACvBC,kCAAkC;QAClCC,8BAA8B;QAC9BC,iCAAiC;QACjCC,6BAA6B;QAC7BC,yBAAyB;QACzBC,qBAAqB;IACvB;AACF;AAEA;;CAEC,GACD,MAAMC,kBAAkB,CAACC,UAA6C;IACpE,OAAO;QACLC,SAASD,QAAQE,UAAU;QAC3BC,SAASH,QAAQI,UAAU;QAC3BC,UAAUL,QAAQM,WAAW;QAC7BC,UAAUP,QAAQQ,WAAW;IAC/B;AACF;AAEA;;CAEC,GACD,MAAMC,wBAAwB,CAACT,UAAmD;IAChF,OAAO;QACLU,mBAAmBV,QAAQW,cAAc;QACzCC,oBAAoBZ,QAAQa,cAAc;QAC1CC,mBAAmBd,QAAQe,cAAc;IAC3C;AACF;AAEA;;;CAGC,GACD,OAAO,MAAMC,gBAAgB,CAACC,SAAkBC,cAAmC;IACjF,MAAMC,YAAYD,wBAAAA,yBAAAA,cAAe/M,aAAa;IAE9C,OAAO;QACL,GAAGgN,SAAS;QACZ,GAAG1M,eAAewM,QAAQvM,OAAO,EAAEuM,QAAQG,UAAU,CAAC;QACtD,GAAGrB,gBAAgBkB,QAAQjB,OAAO,CAAC;QACnC,GAAGS,sBAAsBQ,QAAQjB,OAAO,CAAC;IAC3C;AACF,EAAE"}
1
+ {"version":3,"sources":["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 colorBrandForeground2Hover: palette.themeDarkAlt,\n colorBrandForeground2Pressed: 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 colorBrandBackground2Hover: palette.themeLighterAlt,\n colorBrandBackground2Pressed: 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 colorNeutralStrokeSubtle: palette.neutralQuaternaryAlt,\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 colorBrandStroke2Hover: palette.themeLight,\n colorBrandStroke2Pressed: palette.themeLight,\n colorBrandStroke2Contrast: 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 colorNeutralStrokeAlpha2: whiteAlpha[20],\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"],"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","colorBrandForeground2Hover","colorBrandForeground2Pressed","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","colorBrandBackground2Hover","colorBrandBackground2Pressed","colorBrandBackgroundInverted","colorBrandBackgroundInvertedHover","colorBrandBackgroundInvertedPressed","themeLight","colorBrandBackgroundInvertedSelected","themeLighter","colorNeutralStrokeAccessible","colorNeutralStrokeAccessibleHover","colorNeutralStrokeAccessiblePressed","colorNeutralStrokeAccessibleSelected","colorNeutralStroke1","colorNeutralStroke1Hover","colorNeutralStroke1Pressed","colorNeutralStroke1Selected","colorNeutralStroke2","colorNeutralStroke3","colorNeutralStrokeSubtle","colorNeutralStrokeOnBrand","colorNeutralStrokeOnBrand2","colorNeutralStrokeOnBrand2Hover","colorNeutralStrokeOnBrand2Pressed","colorNeutralStrokeOnBrand2Selected","colorBrandStroke1","colorBrandStroke2","colorBrandStroke2Hover","colorBrandStroke2Pressed","colorBrandStroke2Contrast","colorCompoundBrandStroke","colorCompoundBrandStrokeHover","colorCompoundBrandStrokePressed","colorNeutralStrokeDisabled","colorNeutralStrokeInvertedDisabled","colorTransparentStroke","colorTransparentStrokeInteractive","colorTransparentStrokeDisabled","colorNeutralStrokeAlpha","colorNeutralStrokeAlpha2","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"],"mappings":"AAEA,SAA2BA,aAAa,QAAQ,6BAA6B;AAE7E,SAASC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,WAAW,EAAEC,WAAW,QAAQ,oBAAoB;AAE3F;;CAEC,GACD,MAAMC,iBAAiB,CAACC,SAAmBC;IACzC,OAAO;QACLC,yBAAyBF,QAAQG,cAAc;QAC/CC,8BAA8BJ,QAAQG,cAAc;QACpDE,gCAAgCL,QAAQG,cAAc;QACtDG,iCAAiCN,QAAQG,cAAc;QACvDI,yBAAyBP,QAAQQ,gBAAgB;QACjDC,8BAA8BT,QAAQG,cAAc;QACpDO,gCAAgCV,QAAQG,cAAc;QACtDQ,iCAAiCX,QAAQG,cAAc;QACvDS,mCAAmCZ,QAAQa,YAAY;QACvDC,qCAAqCd,QAAQe,YAAY;QACzDC,sCAAsChB,QAAQa,YAAY;QAC1DI,yBAAyBjB,QAAQkB,eAAe;QAChDC,8BAA8BnB,QAAQQ,gBAAgB;QACtDY,gCAAgCpB,QAAQQ,gBAAgB;QACxDa,iCAAiCrB,QAAQQ,gBAAgB;QACzDc,mCAAmCtB,QAAQa,YAAY;QACvDU,qCAAqCvB,QAAQe,YAAY;QACzDS,sCAAsCxB,QAAQa,Y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M,WAAW;QAC7BC,UAAUP,QAAQQ,WAAW;IAC/B;AACF;AAEA;;CAEC,GACD,MAAMC,wBAAwB,CAACT;IAC7B,OAAO;QACLU,mBAAmBV,QAAQW,cAAc;QACzCC,oBAAoBZ,QAAQa,cAAc;QAC1CC,mBAAmBd,QAAQe,cAAc;IAC3C;AACF;AAEA;;;CAGC,GACD,OAAO,MAAMC,gBAAgB,CAACC,SAAkBC;IAC9C,MAAMC,YAAYD,wBAAAA,yBAAAA,cAAe/M;IAEjC,OAAO;QACL,GAAGgN,SAAS;QACZ,GAAG1M,eAAewM,QAAQvM,OAAO,EAAEuM,QAAQG,UAAU,CAAC;QACtD,GAAGrB,gBAAgBkB,QAAQjB,OAAO,CAAC;QACnC,GAAGS,sBAAsBQ,QAAQjB,OAAO,CAAC;IAC3C;AACF,EAAE"}
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "ActionButtonShim", {
6
6
  enumerable: true,
7
- get: ()=>ActionButtonShim
7
+ get: function() {
8
+ return ActionButtonShim;
9
+ }
8
10
  });
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");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactcomponents = require("@fluentui/react-components");
12
14
  const _shimButtonProps = require("./shimButtonProps");
13
15
  const ActionButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
14
16
  const variantProps = {
@@ -16,7 +18,7 @@ const ActionButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
16
18
  variantClassName: 'ms-Button--action ms-Button--command'
17
19
  };
18
20
  const shimProps = (0, _shimButtonProps.shimButtonProps)(variantProps);
19
- return /*#__PURE__*/ _react.createElement(_reactComponents.Button, {
21
+ return /*#__PURE__*/ _react.createElement(_reactcomponents.Button, {
20
22
  ...props,
21
23
  ...shimProps,
22
24
  appearance: "transparent"
@@ -1 +1 @@
1
- {"version":3,"sources":["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 */ export 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"],"names":["ActionButtonShim","React","forwardRef","props","_ref","variantProps","variantClassName","shimProps","shimButtonProps","createElement","Button","appearance"],"mappings":";;;;+BAKiBA;;aAAAA;;;6DALM;iCACA;iCACS;AAGrB,MAAMA,mBAAmB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAO;IAC9E,MAAMC,eAAe;QACjB,GAAGF,KAAK;QACRG,kBAAkB;IACtB;IACA,MAAMC,YAAYC,IAAAA,gCAAe,EAACH;IAClC,OAAO,WAAW,GAAGJ,OAAMQ,aAAa,CAACC,uBAAM,EAAE;QAC7C,GAAGP,KAAK;QACR,GAAGI,SAAS;QACZI,YAAY;IAChB;AACJ"}
1
+ {"version":3,"sources":["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 */ export 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"],"names":["ActionButtonShim","React","forwardRef","props","_ref","variantProps","variantClassName","shimProps","shimButtonProps","createElement","Button","appearance"],"mappings":";;;;+BAKiBA;;;eAAAA;;;;iEALM;iCACA;iCACS;AAGrB,MAAMA,mBAAmB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACvE,MAAMC,eAAe;QACjB,GAAGF,KAAK;QACRG,kBAAkB;IACtB;IACA,MAAMC,YAAYC,IAAAA,gCAAe,EAACH;IAClC,OAAO,WAAW,GAAGJ,OAAMQ,aAAa,CAACC,uBAAM,EAAE;QAC7C,GAAGP,KAAK;QACR,GAAGI,SAAS;QACZI,YAAY;IAChB;AACJ"}
@@ -4,24 +4,26 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "ButtonShim", {
6
6
  enumerable: true,
7
- get: ()=>ButtonShim
7
+ get: function() {
8
+ return ButtonShim;
9
+ }
8
10
  });
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");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactcomponents = require("@fluentui/react-components");
12
14
  const _shimButtonProps = require("./shimButtonProps");
13
- const _toggleButtonShim = require("./ToggleButtonShim");
14
- const _compoundButtonShim = require("./CompoundButtonShim");
15
+ const _ToggleButtonShim = require("./ToggleButtonShim");
16
+ const _CompoundButtonShim = require("./CompoundButtonShim");
15
17
  const ButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
16
- var _props_onRenderDescription;
18
+ var _props_onRenderDescription, _props;
17
19
  const shimProps = (0, _shimButtonProps.shimButtonProps)(props);
18
20
  if (props.toggle) {
19
- return /*#__PURE__*/ _react.createElement(_toggleButtonShim.ToggleButtonShim, props, props.children);
21
+ return /*#__PURE__*/ _react.createElement(_ToggleButtonShim.ToggleButtonShim, props, props.children);
20
22
  }
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
+ if (props.secondaryText || ((_props_onRenderDescription = (_props = props).onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(_props, props))) {
24
+ return /*#__PURE__*/ _react.createElement(_CompoundButtonShim.CompoundButtonShim, props);
23
25
  }
24
- return /*#__PURE__*/ _react.createElement(_reactComponents.Button, {
26
+ return /*#__PURE__*/ _react.createElement(_reactcomponents.Button, {
25
27
  ...props,
26
28
  ...shimProps
27
29
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["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"],"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,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAO;IACpE,IAAIC;IACJ,MAAMC,YAAYC,IAAAA,gCAAe,EAACJ;IAClC,IAAIA,MAAMK,MAAM,EAAE;QACd,OAAO,WAAW,GAAGP,OAAMQ,aAAa,CAACC,kCAAgB,EAAEP,OAAOA,MAAMQ,QAAQ;IACpF,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;QAC9L,OAAO,WAAW,GAAGF,OAAMQ,aAAa,CAACM,sCAAkB,EAAEZ;IACjE,CAAC;IACD,OAAO,WAAW,GAAGF,OAAMQ,aAAa,CAACO,uBAAM,EAAE;QAC7C,GAAGb,KAAK;QACR,GAAGG,SAAS;IAChB;AACJ"}
1
+ {"version":3,"sources":["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, _props;\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 = 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"],"names":["ButtonShim","React","forwardRef","props","_ref","_props_onRenderDescription","_props","shimProps","shimButtonProps","toggle","createElement","ToggleButtonShim","children","secondaryText","onRenderDescription","call","CompoundButtonShim","Button"],"mappings":";;;;+BAKaA;;;eAAAA;;;;iEALU;iCACA;iCACS;kCACC;oCACE;AAC5B,MAAMA,aAAa,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC7D,IAAIC,4BAA4BC;IAChC,MAAMC,YAAYC,IAAAA,gCAAe,EAACL;IAClC,IAAIA,MAAMM,MAAM,EAAE;QACd,OAAO,WAAW,GAAGR,OAAMS,aAAa,CAACC,kCAAgB,EAAER,OAAOA,MAAMS,QAAQ;IACpF;IACA,IAAIT,MAAMU,aAAa,IAAK,CAAA,AAACR,CAAAA,6BAA6B,AAACC,CAAAA,SAASH,KAAI,EAAGW,mBAAmB,AAAD,MAAO,QAAQT,+BAA+B,KAAK,IAAI,KAAK,IAAIA,2BAA2BU,IAAI,CAACT,QAAQH,MAAK,GAAI;QAC1M,OAAO,WAAW,GAAGF,OAAMS,aAAa,CAACM,sCAAkB,EAAEb;IACjE;IACA,OAAO,WAAW,GAAGF,OAAMS,aAAa,CAACO,uBAAM,EAAE;QAC7C,GAAGd,KAAK;QACR,GAAGI,SAAS;IAChB;AACJ"}
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  Object.defineProperty(exports, "CommandButtonShim", {
8
8
  enumerable: true,
9
- get: ()=>_actionButtonShim.ActionButtonShim
9
+ get: function() {
10
+ return _ActionButtonShim.ActionButtonShim;
11
+ }
10
12
  });
11
- const _actionButtonShim = require("./ActionButtonShim");
13
+ const _ActionButtonShim = require("./ActionButtonShim");
@@ -1 +1 @@
1
- {"version":3,"sources":["CommandButtonShim.js"],"sourcesContent":["/**\n * Shims v8 CommandButtonShim to render a v9 Button\n */ export { ActionButtonShim as CommandButtonShim } from './ActionButtonShim';\n"],"names":["CommandButtonShim","ActionButtonShim"],"mappings":"AAAA;;CAEC;;;;+BAAgCA;;aAApBC,kCAAgB;;kCAA6B"}
1
+ {"version":3,"sources":["CommandButtonShim.js"],"sourcesContent":["/**\n * Shims v8 CommandButtonShim to render a v9 Button\n */ export { ActionButtonShim as CommandButtonShim } from './ActionButtonShim';\n"],"names":["CommandButtonShim","ActionButtonShim"],"mappings":"AAAA;;CAEC;;;;+BAAgCA;;;eAApBC,kCAAgB;;;kCAA6B"}
@@ -4,23 +4,25 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "CompoundButtonShim", {
6
6
  enumerable: true,
7
- get: ()=>CompoundButtonShim
7
+ get: function() {
8
+ return CompoundButtonShim;
9
+ }
8
10
  });
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");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactcomponents = require("@fluentui/react-components");
12
14
  const _shimButtonProps = require("./shimButtonProps");
13
15
  const CompoundButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
14
- var _props_onRenderDescription;
16
+ var _props_onRenderDescription, _props;
15
17
  const variantProps = {
16
18
  ...props,
17
19
  variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'
18
20
  };
19
21
  const shimProps = {
20
22
  ...(0, _shimButtonProps.shimButtonProps)(variantProps),
21
- secondaryContent: props.secondaryText || ((_props_onRenderDescription = props.onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(props, props))
23
+ secondaryContent: props.secondaryText || ((_props_onRenderDescription = (_props = props).onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(_props, props))
22
24
  };
23
- return /*#__PURE__*/ _react.createElement(_reactComponents.CompoundButton, {
25
+ return /*#__PURE__*/ _react.createElement(_reactcomponents.CompoundButton, {
24
26
  ...props,
25
27
  ...shimProps
26
28
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["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 */ export 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"],"names":["CompoundButtonShim","React","forwardRef","props","_ref","_props_onRenderDescription","variantProps","variantClassName","primary","shimProps","shimButtonProps","secondaryContent","secondaryText","onRenderDescription","call","createElement","CompoundButton"],"mappings":";;;;+BAKiBA;;aAAAA;;;6DALM;iCACQ;iCACC;AAGrB,MAAMA,qBAAqB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAO;IAChF,IAAIC;IACJ,MAAMC,eAAe;QACjB,GAAGH,KAAK;QACRI,kBAAkBJ,MAAMK,OAAO,GAAG,+BAA+B,qBAAqB;IAC1F;IACA,MAAMC,YAAY;QACd,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;IAChN;IACA,OAAO,WAAW,GAAGF,OAAMc,aAAa,CAACC,+BAAc,EAAE;QACrD,GAAGb,KAAK;QACR,GAAGM,SAAS;IAChB;AACJ"}
1
+ {"version":3,"sources":["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 */ export const CompoundButtonShim = /*#__PURE__*/ React.forwardRef((props, _ref)=>{\n var _props_onRenderDescription, _props;\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 = 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"],"names":["CompoundButtonShim","React","forwardRef","props","_ref","_props_onRenderDescription","_props","variantProps","variantClassName","primary","shimProps","shimButtonProps","secondaryContent","secondaryText","onRenderDescription","call","createElement","CompoundButton"],"mappings":";;;;+BAKiBA;;;eAAAA;;;;iEALM;iCACQ;iCACC;AAGrB,MAAMA,qBAAqB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACzE,IAAIC,4BAA4BC;IAChC,MAAMC,eAAe;QACjB,GAAGJ,KAAK;QACRK,kBAAkBL,MAAMM,OAAO,GAAG,+BAA+B;IACrE;IACA,MAAMC,YAAY;QACd,GAAGC,IAAAA,gCAAe,EAACJ,aAAa;QAChCK,kBAAkBT,MAAMU,aAAa,IAAK,CAAA,AAACR,CAAAA,6BAA6B,AAACC,CAAAA,SAASH,KAAI,EAAGW,mBAAmB,AAAD,MAAO,QAAQT,+BAA+B,KAAK,IAAI,KAAK,IAAIA,2BAA2BU,IAAI,CAACT,QAAQH,MAAK;IAC5N;IACA,OAAO,WAAW,GAAGF,OAAMe,aAAa,CAACC,+BAAc,EAAE;QACrD,GAAGd,KAAK;QACR,GAAGO,SAAS;IAChB;AACJ"}
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "DefaultButtonShim", {
6
6
  enumerable: true,
7
- get: ()=>DefaultButtonShim
7
+ get: function() {
8
+ return DefaultButtonShim;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _buttonShim = require("./ButtonShim");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _ButtonShim = require("./ButtonShim");
12
14
  const DefaultButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
13
- return /*#__PURE__*/ _react.createElement(_buttonShim.ButtonShim, {
15
+ return /*#__PURE__*/ _react.createElement(_ButtonShim.ButtonShim, {
14
16
  ...props,
15
17
  variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default'
16
18
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["DefaultButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { ButtonShim } from './ButtonShim';\n/**\n * Shims a v8 DefaultButton to render a v9 Button\n */ export 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"],"names":["DefaultButtonShim","React","forwardRef","props","_ref","createElement","ButtonShim","variantClassName","primary"],"mappings":";;;;+BAIiBA;;aAAAA;;;6DAJM;4BACI;AAGhB,MAAMA,oBAAoB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAO;IAC/E,OAAO,WAAW,GAAGH,OAAMI,aAAa,CAACC,sBAAU,EAAE;QACjD,GAAGH,KAAK;QACRI,kBAAkBJ,MAAMK,OAAO,GAAG,uBAAuB,oBAAoB;IACjF;AACJ"}
1
+ {"version":3,"sources":["DefaultButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { ButtonShim } from './ButtonShim';\n/**\n * Shims a v8 DefaultButton to render a v9 Button\n */ export 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"],"names":["DefaultButtonShim","React","forwardRef","props","_ref","createElement","ButtonShim","variantClassName","primary"],"mappings":";;;;+BAIiBA;;;eAAAA;;;;iEAJM;4BACI;AAGhB,MAAMA,oBAAoB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACxE,OAAO,WAAW,GAAGH,OAAMI,aAAa,CAACC,sBAAU,EAAE;QACjD,GAAGH,KAAK;QACRI,kBAAkBJ,MAAMK,OAAO,GAAG,uBAAuB;IAC7D;AACJ"}
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "MenuButtonShim", {
6
6
  enumerable: true,
7
- get: ()=>MenuButtonShim
7
+ get: function() {
8
+ return MenuButtonShim;
9
+ }
8
10
  });
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");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactcomponents = require("@fluentui/react-components");
12
14
  const _index = require("../Menu/index");
13
15
  const _shimButtonProps = require("./shimButtonProps");
14
16
  const MenuButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
@@ -21,6 +23,6 @@ const MenuButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
21
23
  ...(0, _shimButtonProps.shimButtonProps)(variantProps)
22
24
  };
23
25
  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)=>// eslint-disable-next-line react/jsx-key
26
+ 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)=>// eslint-disable-next-line react/jsx-key
25
27
  /*#__PURE__*/ _react.createElement(_index.MenuItemShim, item)))));
26
28
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["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)=>// key is added through item spread\n // eslint-disable-next-line react/jsx-key\n /*#__PURE__*/ React.createElement(MenuItemShim, item)))));\n});\n"],"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,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAO;IACxE,IAAIC;IACJ,MAAMC,eAAe;QACjB,GAAGH,KAAK;QACRI,kBAAkBJ,MAAMK,OAAO,GAAG,uBAAuB,oBAAoB;IACjF;IACA,MAAMC,YAAY;QACd,GAAGC,IAAAA,gCAAe,EAACJ,aAAa;IACpC;IACA,MAAMK,mBAAmBR,MAAMS,SAAS,GAAGC,IAAAA,oBAAa,EAACV,MAAMS,SAAS,IAAI,CAAC,CAAC;IAC9E,OAAO,WAAW,GAAGX,OAAMa,aAAa,CAACC,qBAAI,EAAEJ,kBAAkB,WAAW,GAAGV,OAAMa,aAAa,CAACE,4BAAW,EAAE,IAAI,EAAE,WAAW,GAAGf,OAAMa,aAAa,CAACG,2BAAU,EAAER,aAAa,WAAW,GAAGR,OAAMa,aAAa,CAACI,4BAAW,EAAE,IAAI,EAAE,WAAW,GAAGjB,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,CAAC,CAACC,OACxY,yCAAyC;QACzC,WAAW,GAAGrB,OAAMa,aAAa,CAACS,mBAAY,EAAED,MAAM;AAC9D"}
1
+ {"version":3,"sources":["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)=>// key is added through item spread\n // eslint-disable-next-line react/jsx-key\n /*#__PURE__*/ React.createElement(MenuItemShim, item)))));\n});\n"],"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;;;eAAAA;;;;iEAJU;iCAC8C;uBACzB;iCACZ;AACzB,MAAMA,iBAAiB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjE,IAAIC;IACJ,MAAMC,eAAe;QACjB,GAAGH,KAAK;QACRI,kBAAkBJ,MAAMK,OAAO,GAAG,uBAAuB;IAC7D;IACA,MAAMC,YAAY;QACd,GAAGC,IAAAA,gCAAe,EAACJ,aAAa;IACpC;IACA,MAAMK,mBAAmBR,MAAMS,SAAS,GAAGC,IAAAA,oBAAa,EAACV,MAAMS,SAAS,IAAI,CAAC;IAC7E,OAAO,WAAW,GAAGX,OAAMa,aAAa,CAACC,qBAAI,EAAEJ,kBAAkB,WAAW,GAAGV,OAAMa,aAAa,CAACE,4BAAW,EAAE,MAAM,WAAW,GAAGf,OAAMa,aAAa,CAACG,2BAAU,EAAER,aAAa,WAAW,GAAGR,OAAMa,aAAa,CAACI,4BAAW,EAAE,MAAM,WAAW,GAAGjB,OAAMa,aAAa,CAACK,yBAAQ,EAAE,MAAM,AAACd,CAAAA,mBAAmBF,MAAMS,SAAS,AAAD,MAAO,QAAQP,qBAAqB,KAAK,IAAI,KAAK,IAAIA,iBAAiBe,KAAK,CAACC,GAAG,CAAC,CAACC,OACxY,yCAAyC;QACzC,WAAW,GAAGrB,OAAMa,aAAa,CAACS,mBAAY,EAAED;AACxD"}
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "PrimaryButtonShim", {
6
6
  enumerable: true,
7
- get: ()=>PrimaryButtonShim
7
+ get: function() {
8
+ return PrimaryButtonShim;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _buttonShim = require("./ButtonShim");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _ButtonShim = require("./ButtonShim");
12
14
  const PrimaryButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
13
- return /*#__PURE__*/ _react.createElement(_buttonShim.ButtonShim, {
15
+ return /*#__PURE__*/ _react.createElement(_ButtonShim.ButtonShim, {
14
16
  ...props,
15
17
  primary: true,
16
18
  variantClassName: "ms-Button--primary"
@@ -1 +1 @@
1
- {"version":3,"sources":["PrimaryButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { ButtonShim } from './ButtonShim';\n/**\n * Shims v8 PrimaryButton to render a v9 Button\n */ export 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"],"names":["PrimaryButtonShim","React","forwardRef","props","_ref","createElement","ButtonShim","primary","variantClassName"],"mappings":";;;;+BAIiBA;;aAAAA;;;6DAJM;4BACI;AAGhB,MAAMA,oBAAoB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAO;IAC/E,OAAO,WAAW,GAAGH,OAAMI,aAAa,CAACC,sBAAU,EAAE;QACjD,GAAGH,KAAK;QACRI,SAAS,IAAI;QACbC,kBAAkB;IACtB;AACJ"}
1
+ {"version":3,"sources":["PrimaryButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { ButtonShim } from './ButtonShim';\n/**\n * Shims v8 PrimaryButton to render a v9 Button\n */ export 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"],"names":["PrimaryButtonShim","React","forwardRef","props","_ref","createElement","ButtonShim","primary","variantClassName"],"mappings":";;;;+BAIiBA;;;eAAAA;;;;iEAJM;4BACI;AAGhB,MAAMA,oBAAoB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACxE,OAAO,WAAW,GAAGH,OAAMI,aAAa,CAACC,sBAAU,EAAE;QACjD,GAAGH,KAAK;QACRI,SAAS;QACTC,kBAAkB;IACtB;AACJ"}
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "ToggleButtonShim", {
6
6
  enumerable: true,
7
- get: ()=>ToggleButtonShim
7
+ get: function() {
8
+ return ToggleButtonShim;
9
+ }
8
10
  });
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");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactcomponents = require("@fluentui/react-components");
12
14
  const _shimButtonProps = require("./shimButtonProps");
13
15
  const ToggleButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
14
16
  const variantProps = {
@@ -20,7 +22,7 @@ const ToggleButtonShim = /*#__PURE__*/ _react.forwardRef((props, _ref)=>{
20
22
  checked: props.checked,
21
23
  defaultChecked: props.defaultChecked
22
24
  };
23
- return /*#__PURE__*/ _react.createElement(_reactComponents.ToggleButton, {
25
+ return /*#__PURE__*/ _react.createElement(_reactcomponents.ToggleButton, {
24
26
  ...props,
25
27
  ...shimProps
26
28
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["ToggleButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { ToggleButton } from '@fluentui/react-components';\nimport { shimButtonProps } from './shimButtonProps';\n/**\n * Shims v8 ToggleButton to render a v9 ToggleButton\n */ export const ToggleButtonShim = /*#__PURE__*/ React.forwardRef((props, _ref)=>{\n const variantProps = {\n ...props,\n variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'\n };\n const shimProps = {\n ...shimButtonProps(variantProps),\n checked: props.checked,\n defaultChecked: props.defaultChecked\n };\n return /*#__PURE__*/ React.createElement(ToggleButton, {\n ...props,\n ...shimProps\n });\n});\n"],"names":["ToggleButtonShim","React","forwardRef","props","_ref","variantProps","variantClassName","primary","shimProps","shimButtonProps","checked","defaultChecked","createElement","ToggleButton"],"mappings":";;;;+BAKiBA;;aAAAA;;;6DALM;iCACM;iCACG;AAGrB,MAAMA,mBAAmB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,OAAO;IAC9E,MAAMC,eAAe;QACjB,GAAGF,KAAK;QACRG,kBAAkBH,MAAMI,OAAO,GAAG,+BAA+B,qBAAqB;IAC1F;IACA,MAAMC,YAAY;QACd,GAAGC,IAAAA,gCAAe,EAACJ,aAAa;QAChCK,SAASP,MAAMO,OAAO;QACtBC,gBAAgBR,MAAMQ,cAAc;IACxC;IACA,OAAO,WAAW,GAAGV,OAAMW,aAAa,CAACC,6BAAY,EAAE;QACnD,GAAGV,KAAK;QACR,GAAGK,SAAS;IAChB;AACJ"}
1
+ {"version":3,"sources":["ToggleButtonShim.js"],"sourcesContent":["import * as React from 'react';\nimport { ToggleButton } from '@fluentui/react-components';\nimport { shimButtonProps } from './shimButtonProps';\n/**\n * Shims v8 ToggleButton to render a v9 ToggleButton\n */ export const ToggleButtonShim = /*#__PURE__*/ React.forwardRef((props, _ref)=>{\n const variantProps = {\n ...props,\n variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'\n };\n const shimProps = {\n ...shimButtonProps(variantProps),\n checked: props.checked,\n defaultChecked: props.defaultChecked\n };\n return /*#__PURE__*/ React.createElement(ToggleButton, {\n ...props,\n ...shimProps\n });\n});\n"],"names":["ToggleButtonShim","React","forwardRef","props","_ref","variantProps","variantClassName","primary","shimProps","shimButtonProps","checked","defaultChecked","createElement","ToggleButton"],"mappings":";;;;+BAKiBA;;;eAAAA;;;;iEALM;iCACM;iCACG;AAGrB,MAAMA,mBAAmB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACvE,MAAMC,eAAe;QACjB,GAAGF,KAAK;QACRG,kBAAkBH,MAAMI,OAAO,GAAG,+BAA+B;IACrE;IACA,MAAMC,YAAY;QACd,GAAGC,IAAAA,gCAAe,EAACJ,aAAa;QAChCK,SAASP,MAAMO,OAAO;QACtBC,gBAAgBR,MAAMQ,cAAc;IACxC;IACA,OAAO,WAAW,GAAGV,OAAMW,aAAa,CAACC,6BAAY,EAAE;QACnD,GAAGV,KAAK;QACR,GAAGK,SAAS;IAChB;AACJ"}