@fluentui/react-migration-v8-v9 9.2.1 → 9.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +52 -1
  3. package/CHANGELOG.md +17 -2
  4. package/lib/components/Button/ActionButtonShim.js.map +1 -1
  5. package/lib/components/Button/ButtonShim.js +4 -8
  6. package/lib/components/Button/ButtonShim.js.map +1 -1
  7. package/lib/components/Button/CommandButtonShim.js +1 -2
  8. package/lib/components/Button/CommandButtonShim.js.map +1 -1
  9. package/lib/components/Button/CompoundButtonShim.js +2 -2
  10. package/lib/components/Button/CompoundButtonShim.js.map +1 -1
  11. package/lib/components/Button/DefaultButtonShim.js.map +1 -1
  12. package/lib/components/Button/MenuButtonShim.js +4 -10
  13. package/lib/components/Button/MenuButtonShim.js.map +1 -1
  14. package/lib/components/Button/PrimaryButtonShim.js.map +1 -1
  15. package/lib/components/Button/ToggleButtonShim.js.map +1 -1
  16. package/lib/components/Button/index.js.map +1 -1
  17. package/lib/components/Button/shimButtonProps.js +3 -5
  18. package/lib/components/Button/shimButtonProps.js.map +1 -1
  19. package/lib/components/Menu/MenuShim.js +12 -23
  20. package/lib/components/Menu/MenuShim.js.map +1 -1
  21. package/lib/components/Menu/index.js.map +1 -1
  22. package/lib/components/Menu/shimMenuProps.js +3 -5
  23. package/lib/components/Menu/shimMenuProps.js.map +1 -1
  24. package/lib/components/Stack/StackItemShim.js.map +1 -1
  25. package/lib/components/Stack/StackShim.js.map +1 -1
  26. package/lib/components/Stack/index.js.map +1 -1
  27. package/lib/components/Stack/stackUtils.js.map +1 -1
  28. package/lib/components/Theme/index.js.map +1 -1
  29. package/lib/components/Theme/themeDuplicates.js +1 -2
  30. package/lib/components/Theme/themeDuplicates.js.map +1 -1
  31. package/lib/components/Theme/v8ThemeShim.js +0 -12
  32. package/lib/components/Theme/v8ThemeShim.js.map +1 -1
  33. package/lib/components/Theme/v9BrandVariantsShim.js.map +1 -1
  34. package/lib/components/Theme/v9ThemeShim.js.map +1 -1
  35. package/lib/index.js.map +1 -1
  36. package/lib-commonjs/components/Button/ActionButtonShim.js +21 -20
  37. package/lib-commonjs/components/Button/ActionButtonShim.js.map +1 -1
  38. package/lib-commonjs/components/Button/ButtonShim.js +25 -25
  39. package/lib-commonjs/components/Button/ButtonShim.js.map +1 -1
  40. package/lib-commonjs/components/Button/CommandButtonShim.js +9 -12
  41. package/lib-commonjs/components/Button/CommandButtonShim.js.map +1 -1
  42. package/lib-commonjs/components/Button/CompoundButtonShim.js +24 -23
  43. package/lib-commonjs/components/Button/CompoundButtonShim.js.map +1 -1
  44. package/lib-commonjs/components/Button/DefaultButtonShim.js +14 -13
  45. package/lib-commonjs/components/Button/DefaultButtonShim.js.map +1 -1
  46. package/lib-commonjs/components/Button/MenuButtonShim.js +24 -27
  47. package/lib-commonjs/components/Button/MenuButtonShim.js.map +1 -1
  48. package/lib-commonjs/components/Button/PrimaryButtonShim.js +15 -14
  49. package/lib-commonjs/components/Button/PrimaryButtonShim.js.map +1 -1
  50. package/lib-commonjs/components/Button/ToggleButtonShim.js +24 -23
  51. package/lib-commonjs/components/Button/ToggleButtonShim.js.map +1 -1
  52. package/lib-commonjs/components/Button/index.js +13 -12
  53. package/lib-commonjs/components/Button/index.js.map +1 -1
  54. package/lib-commonjs/components/Button/shimButtonProps.js +33 -28
  55. package/lib-commonjs/components/Button/shimButtonProps.js.map +1 -1
  56. package/lib-commonjs/components/Menu/MenuShim.js +42 -52
  57. package/lib-commonjs/components/Menu/MenuShim.js.map +1 -1
  58. package/lib-commonjs/components/Menu/index.js +6 -5
  59. package/lib-commonjs/components/Menu/index.js.map +1 -1
  60. package/lib-commonjs/components/Menu/shimMenuProps.js +44 -38
  61. package/lib-commonjs/components/Menu/shimMenuProps.js.map +1 -1
  62. package/lib-commonjs/components/Stack/StackItemShim.js +195 -157
  63. package/lib-commonjs/components/Stack/StackItemShim.js.map +1 -1
  64. package/lib-commonjs/components/Stack/StackShim.js +273 -230
  65. package/lib-commonjs/components/Stack/StackShim.js.map +1 -1
  66. package/lib-commonjs/components/Stack/index.js +6 -5
  67. package/lib-commonjs/components/Stack/index.js.map +1 -1
  68. package/lib-commonjs/components/Stack/stackUtils.js +145 -151
  69. package/lib-commonjs/components/Stack/stackUtils.js.map +1 -1
  70. package/lib-commonjs/components/Theme/index.js +8 -7
  71. package/lib-commonjs/components/Theme/index.js.map +1 -1
  72. package/lib-commonjs/components/Theme/themeDuplicates.js +810 -786
  73. package/lib-commonjs/components/Theme/themeDuplicates.js.map +1 -1
  74. package/lib-commonjs/components/Theme/v8ThemeShim.js +285 -307
  75. package/lib-commonjs/components/Theme/v8ThemeShim.js.map +1 -1
  76. package/lib-commonjs/components/Theme/v9BrandVariantsShim.js +56 -61
  77. package/lib-commonjs/components/Theme/v9BrandVariantsShim.js.map +1 -1
  78. package/lib-commonjs/components/Theme/v9ThemeShim.js +183 -188
  79. package/lib-commonjs/components/Theme/v9ThemeShim.js.map +1 -1
  80. package/lib-commonjs/index.js +48 -200
  81. package/lib-commonjs/index.js.map +1 -1
  82. package/package.json +11 -10
@@ -1,201 +1,196 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "createV9Theme", {
6
+ enumerable: true,
7
+ get: ()=>createV9Theme
5
8
  });
6
- exports.createV9Theme = void 0;
7
- const react_components_1 = /*#__PURE__*/require("@fluentui/react-components");
8
- const themeDuplicates_1 = /*#__PURE__*/require("./themeDuplicates");
9
+ const _reactComponents = require("@fluentui/react-components");
10
+ const _themeDuplicates = require("./themeDuplicates");
9
11
  /**
10
12
  * Creates v9 color tokens from a v8 palette.
11
- */
12
- const mapAliasColors = (palette, inverted) => {
13
- return {
14
- colorNeutralForeground1: palette.neutralPrimary,
15
- colorNeutralForeground1Hover: palette.neutralPrimary,
16
- colorNeutralForeground1Pressed: palette.neutralPrimary,
17
- colorNeutralForeground1Selected: palette.neutralPrimary,
18
- colorNeutralForeground2: palette.neutralSecondary,
19
- colorNeutralForeground2Hover: palette.neutralPrimary,
20
- colorNeutralForeground2Pressed: palette.neutralPrimary,
21
- colorNeutralForeground2Selected: palette.neutralPrimary,
22
- colorNeutralForeground2BrandHover: palette.themePrimary,
23
- colorNeutralForeground2BrandPressed: palette.themeDarkAlt,
24
- colorNeutralForeground2BrandSelected: palette.themePrimary,
25
- colorNeutralForeground3: palette.neutralTertiary,
26
- colorNeutralForeground3Hover: palette.neutralSecondary,
27
- colorNeutralForeground3Pressed: palette.neutralSecondary,
28
- colorNeutralForeground3Selected: palette.neutralSecondary,
29
- colorNeutralForeground3BrandHover: palette.themePrimary,
30
- colorNeutralForeground3BrandPressed: palette.themeDarkAlt,
31
- colorNeutralForeground3BrandSelected: palette.themePrimary,
32
- colorNeutralForeground4: palette.neutralQuaternary,
33
- colorNeutralForegroundDisabled: palette.neutralTertiaryAlt,
34
- colorNeutralForegroundInvertedDisabled: themeDuplicates_1.whiteAlpha[40],
35
- colorBrandForegroundLink: palette.themeDarkAlt,
36
- colorBrandForegroundLinkHover: palette.themeDark,
37
- colorBrandForegroundLinkPressed: palette.themeDarker,
38
- colorBrandForegroundLinkSelected: palette.themeDarkAlt,
39
- colorNeutralForeground2Link: palette.neutralSecondary,
40
- colorNeutralForeground2LinkHover: palette.neutralPrimary,
41
- colorNeutralForeground2LinkPressed: palette.neutralPrimary,
42
- colorNeutralForeground2LinkSelected: palette.neutralPrimary,
43
- colorCompoundBrandForeground1: palette.themePrimary,
44
- colorCompoundBrandForeground1Hover: palette.themeDarkAlt,
45
- colorCompoundBrandForeground1Pressed: palette.themeDark,
46
- colorBrandForeground1: palette.themePrimary,
47
- colorBrandForeground2: palette.themeDarkAlt,
48
- colorNeutralForeground1Static: palette.neutralPrimary,
49
- colorNeutralForegroundInverted: palette.white,
50
- colorNeutralForegroundInvertedHover: palette.white,
51
- colorNeutralForegroundInvertedPressed: palette.white,
52
- colorNeutralForegroundInvertedSelected: palette.white,
53
- colorNeutralForegroundOnBrand: palette.white,
54
- colorNeutralForegroundStaticInverted: palette.white,
55
- colorNeutralForegroundInvertedLink: palette.white,
56
- colorNeutralForegroundInvertedLinkHover: palette.white,
57
- colorNeutralForegroundInvertedLinkPressed: palette.white,
58
- colorNeutralForegroundInvertedLinkSelected: palette.white,
59
- colorNeutralForegroundInverted2: palette.white,
60
- colorBrandForegroundInverted: palette.themeSecondary,
61
- colorBrandForegroundInvertedHover: palette.themeTertiary,
62
- colorBrandForegroundInvertedPressed: palette.themeSecondary,
63
- colorBrandForegroundOnLight: palette.themePrimary,
64
- colorBrandForegroundOnLightHover: palette.themeDarkAlt,
65
- colorBrandForegroundOnLightPressed: palette.themeDark,
66
- colorBrandForegroundOnLightSelected: palette.themeDark,
67
- colorNeutralBackground1: palette.white,
68
- colorNeutralBackground1Hover: palette.neutralLighter,
69
- colorNeutralBackground1Pressed: palette.neutralQuaternaryAlt,
70
- colorNeutralBackground1Selected: palette.neutralLight,
71
- colorNeutralBackground2: palette.neutralLighterAlt,
72
- colorNeutralBackground2Hover: palette.neutralLighter,
73
- colorNeutralBackground2Pressed: palette.neutralQuaternaryAlt,
74
- colorNeutralBackground2Selected: palette.neutralLight,
75
- colorNeutralBackground3: palette.neutralLighter,
76
- colorNeutralBackground3Hover: palette.neutralLight,
77
- colorNeutralBackground3Pressed: palette.neutralQuaternary,
78
- colorNeutralBackground3Selected: palette.neutralQuaternaryAlt,
79
- colorNeutralBackground4: palette.neutralLighter,
80
- colorNeutralBackground4Hover: palette.neutralLighterAlt,
81
- colorNeutralBackground4Pressed: palette.neutralLighter,
82
- colorNeutralBackground4Selected: palette.white,
83
- colorNeutralBackground5: palette.neutralLight,
84
- colorNeutralBackground5Hover: palette.neutralLighter,
85
- colorNeutralBackground5Pressed: palette.neutralLighter,
86
- colorNeutralBackground5Selected: palette.neutralLighterAlt,
87
- colorNeutralBackground6: palette.neutralLight,
88
- colorNeutralBackgroundStatic: themeDuplicates_1.grey[20],
89
- colorNeutralBackgroundInverted: palette.neutralSecondary,
90
- colorNeutralBackgroundAlpha: inverted ? themeDuplicates_1.grey10Alpha[50] : themeDuplicates_1.whiteAlpha[50],
91
- colorNeutralBackgroundAlpha2: inverted ? themeDuplicates_1.grey12Alpha[70] : themeDuplicates_1.whiteAlpha[80],
92
- colorSubtleBackground: 'transparent',
93
- colorSubtleBackgroundHover: palette.neutralLighter,
94
- colorSubtleBackgroundPressed: palette.neutralQuaternaryAlt,
95
- colorSubtleBackgroundSelected: palette.neutralLight,
96
- colorSubtleBackgroundLightAlphaHover: inverted ? themeDuplicates_1.whiteAlpha[10] : themeDuplicates_1.whiteAlpha[80],
97
- colorSubtleBackgroundLightAlphaPressed: inverted ? themeDuplicates_1.whiteAlpha[5] : themeDuplicates_1.whiteAlpha[50],
98
- colorSubtleBackgroundLightAlphaSelected: 'transparent',
99
- colorSubtleBackgroundInverted: 'transparent',
100
- colorSubtleBackgroundInvertedHover: themeDuplicates_1.blackAlpha[10],
101
- colorSubtleBackgroundInvertedPressed: themeDuplicates_1.blackAlpha[30],
102
- colorSubtleBackgroundInvertedSelected: themeDuplicates_1.blackAlpha[20],
103
- colorTransparentBackground: 'transparent',
104
- colorTransparentBackgroundHover: 'transparent',
105
- colorTransparentBackgroundPressed: 'transparent',
106
- colorTransparentBackgroundSelected: 'transparent',
107
- colorNeutralBackgroundDisabled: palette.neutralLighter,
108
- colorNeutralBackgroundInvertedDisabled: themeDuplicates_1.whiteAlpha[10],
109
- colorNeutralStencil1: palette.neutralLight,
110
- colorNeutralStencil2: palette.neutralLighterAlt,
111
- colorNeutralStencil1Alpha: inverted ? themeDuplicates_1.whiteAlpha[10] : themeDuplicates_1.blackAlpha[10],
112
- colorNeutralStencil2Alpha: inverted ? themeDuplicates_1.whiteAlpha[5] : themeDuplicates_1.blackAlpha[5],
113
- colorBackgroundOverlay: themeDuplicates_1.blackAlpha[40],
114
- colorScrollbarOverlay: themeDuplicates_1.blackAlpha[50],
115
- colorBrandBackground: palette.themePrimary,
116
- colorBrandBackgroundHover: palette.themeDarkAlt,
117
- colorBrandBackgroundPressed: palette.themeDarker,
118
- colorBrandBackgroundSelected: palette.themeDark,
119
- colorCompoundBrandBackground: palette.themePrimary,
120
- colorCompoundBrandBackgroundHover: palette.themeDarkAlt,
121
- colorCompoundBrandBackgroundPressed: palette.themeDark,
122
- colorBrandBackgroundStatic: palette.themePrimary,
123
- colorBrandBackground2: palette.themeLighterAlt,
124
- colorBrandBackgroundInverted: palette.white,
125
- colorBrandBackgroundInvertedHover: palette.themeLighterAlt,
126
- colorBrandBackgroundInvertedPressed: palette.themeLight,
127
- colorBrandBackgroundInvertedSelected: palette.themeLighter,
128
- colorNeutralStrokeAccessible: palette.neutralSecondary,
129
- colorNeutralStrokeAccessibleHover: palette.neutralSecondary,
130
- colorNeutralStrokeAccessiblePressed: palette.neutralSecondary,
131
- colorNeutralStrokeAccessibleSelected: palette.themePrimary,
132
- colorNeutralStroke1: palette.neutralQuaternary,
133
- colorNeutralStroke1Hover: palette.neutralTertiaryAlt,
134
- colorNeutralStroke1Pressed: palette.neutralTertiaryAlt,
135
- colorNeutralStroke1Selected: palette.neutralTertiaryAlt,
136
- colorNeutralStroke2: palette.neutralQuaternaryAlt,
137
- colorNeutralStroke3: palette.neutralLighter,
138
- colorNeutralStrokeOnBrand: palette.white,
139
- colorNeutralStrokeOnBrand2: palette.white,
140
- colorNeutralStrokeOnBrand2Hover: palette.white,
141
- colorNeutralStrokeOnBrand2Pressed: palette.white,
142
- colorNeutralStrokeOnBrand2Selected: palette.white,
143
- colorBrandStroke1: palette.themePrimary,
144
- colorBrandStroke2: palette.themeLight,
145
- colorCompoundBrandStroke: palette.themePrimary,
146
- colorCompoundBrandStrokeHover: palette.themeDarkAlt,
147
- colorCompoundBrandStrokePressed: palette.themeDark,
148
- colorNeutralStrokeDisabled: palette.neutralQuaternaryAlt,
149
- colorNeutralStrokeInvertedDisabled: themeDuplicates_1.whiteAlpha[40],
150
- colorTransparentStroke: 'transparent',
151
- colorTransparentStrokeInteractive: 'transparent',
152
- colorTransparentStrokeDisabled: 'transparent',
153
- colorNeutralStrokeAlpha: inverted ? themeDuplicates_1.whiteAlpha[10] : themeDuplicates_1.blackAlpha[5],
154
- colorStrokeFocus1: palette.white,
155
- colorStrokeFocus2: palette.black,
156
- colorNeutralShadowAmbient: 'rgba(0,0,0,0.12)',
157
- colorNeutralShadowKey: 'rgba(0,0,0,0.14)',
158
- colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.06)',
159
- colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.07)',
160
- colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.20)',
161
- colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.24)',
162
- colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',
163
- colorBrandShadowKey: 'rgba(0,0,0,0.25)'
164
- };
13
+ */ const mapAliasColors = (palette, inverted)=>{
14
+ return {
15
+ colorNeutralForeground1: palette.neutralPrimary,
16
+ colorNeutralForeground1Hover: palette.neutralPrimary,
17
+ colorNeutralForeground1Pressed: palette.neutralPrimary,
18
+ colorNeutralForeground1Selected: palette.neutralPrimary,
19
+ colorNeutralForeground2: palette.neutralSecondary,
20
+ colorNeutralForeground2Hover: palette.neutralPrimary,
21
+ colorNeutralForeground2Pressed: palette.neutralPrimary,
22
+ colorNeutralForeground2Selected: palette.neutralPrimary,
23
+ colorNeutralForeground2BrandHover: palette.themePrimary,
24
+ colorNeutralForeground2BrandPressed: palette.themeDarkAlt,
25
+ colorNeutralForeground2BrandSelected: palette.themePrimary,
26
+ colorNeutralForeground3: palette.neutralTertiary,
27
+ colorNeutralForeground3Hover: palette.neutralSecondary,
28
+ colorNeutralForeground3Pressed: palette.neutralSecondary,
29
+ colorNeutralForeground3Selected: palette.neutralSecondary,
30
+ colorNeutralForeground3BrandHover: palette.themePrimary,
31
+ colorNeutralForeground3BrandPressed: palette.themeDarkAlt,
32
+ colorNeutralForeground3BrandSelected: palette.themePrimary,
33
+ colorNeutralForeground4: palette.neutralQuaternary,
34
+ colorNeutralForegroundDisabled: palette.neutralTertiaryAlt,
35
+ colorNeutralForegroundInvertedDisabled: _themeDuplicates.whiteAlpha[40],
36
+ colorBrandForegroundLink: palette.themeDarkAlt,
37
+ colorBrandForegroundLinkHover: palette.themeDark,
38
+ colorBrandForegroundLinkPressed: palette.themeDarker,
39
+ colorBrandForegroundLinkSelected: palette.themeDarkAlt,
40
+ colorNeutralForeground2Link: palette.neutralSecondary,
41
+ colorNeutralForeground2LinkHover: palette.neutralPrimary,
42
+ colorNeutralForeground2LinkPressed: palette.neutralPrimary,
43
+ colorNeutralForeground2LinkSelected: palette.neutralPrimary,
44
+ colorCompoundBrandForeground1: palette.themePrimary,
45
+ colorCompoundBrandForeground1Hover: palette.themeDarkAlt,
46
+ colorCompoundBrandForeground1Pressed: palette.themeDark,
47
+ colorBrandForeground1: palette.themePrimary,
48
+ colorBrandForeground2: palette.themeDarkAlt,
49
+ colorNeutralForeground1Static: palette.neutralPrimary,
50
+ colorNeutralForegroundInverted: palette.white,
51
+ colorNeutralForegroundInvertedHover: palette.white,
52
+ colorNeutralForegroundInvertedPressed: palette.white,
53
+ colorNeutralForegroundInvertedSelected: palette.white,
54
+ colorNeutralForegroundOnBrand: palette.white,
55
+ colorNeutralForegroundStaticInverted: palette.white,
56
+ colorNeutralForegroundInvertedLink: palette.white,
57
+ colorNeutralForegroundInvertedLinkHover: palette.white,
58
+ colorNeutralForegroundInvertedLinkPressed: palette.white,
59
+ colorNeutralForegroundInvertedLinkSelected: palette.white,
60
+ colorNeutralForegroundInverted2: palette.white,
61
+ colorBrandForegroundInverted: palette.themeSecondary,
62
+ colorBrandForegroundInvertedHover: palette.themeTertiary,
63
+ colorBrandForegroundInvertedPressed: palette.themeSecondary,
64
+ colorBrandForegroundOnLight: palette.themePrimary,
65
+ colorBrandForegroundOnLightHover: palette.themeDarkAlt,
66
+ colorBrandForegroundOnLightPressed: palette.themeDark,
67
+ colorBrandForegroundOnLightSelected: palette.themeDark,
68
+ colorNeutralBackground1: palette.white,
69
+ colorNeutralBackground1Hover: palette.neutralLighter,
70
+ colorNeutralBackground1Pressed: palette.neutralQuaternaryAlt,
71
+ colorNeutralBackground1Selected: palette.neutralLight,
72
+ colorNeutralBackground2: palette.neutralLighterAlt,
73
+ colorNeutralBackground2Hover: palette.neutralLighter,
74
+ colorNeutralBackground2Pressed: palette.neutralQuaternaryAlt,
75
+ colorNeutralBackground2Selected: palette.neutralLight,
76
+ colorNeutralBackground3: palette.neutralLighter,
77
+ colorNeutralBackground3Hover: palette.neutralLight,
78
+ colorNeutralBackground3Pressed: palette.neutralQuaternary,
79
+ colorNeutralBackground3Selected: palette.neutralQuaternaryAlt,
80
+ colorNeutralBackground4: palette.neutralLighter,
81
+ colorNeutralBackground4Hover: palette.neutralLighterAlt,
82
+ colorNeutralBackground4Pressed: palette.neutralLighter,
83
+ colorNeutralBackground4Selected: palette.white,
84
+ colorNeutralBackground5: palette.neutralLight,
85
+ colorNeutralBackground5Hover: palette.neutralLighter,
86
+ colorNeutralBackground5Pressed: palette.neutralLighter,
87
+ colorNeutralBackground5Selected: palette.neutralLighterAlt,
88
+ colorNeutralBackground6: palette.neutralLight,
89
+ colorNeutralBackgroundStatic: _themeDuplicates.grey[20],
90
+ colorNeutralBackgroundInverted: palette.neutralSecondary,
91
+ colorNeutralBackgroundAlpha: inverted ? _themeDuplicates.grey10Alpha[50] : _themeDuplicates.whiteAlpha[50],
92
+ colorNeutralBackgroundAlpha2: inverted ? _themeDuplicates.grey12Alpha[70] : _themeDuplicates.whiteAlpha[80],
93
+ colorSubtleBackground: 'transparent',
94
+ colorSubtleBackgroundHover: palette.neutralLighter,
95
+ colorSubtleBackgroundPressed: palette.neutralQuaternaryAlt,
96
+ colorSubtleBackgroundSelected: palette.neutralLight,
97
+ colorSubtleBackgroundLightAlphaHover: inverted ? _themeDuplicates.whiteAlpha[10] : _themeDuplicates.whiteAlpha[80],
98
+ colorSubtleBackgroundLightAlphaPressed: inverted ? _themeDuplicates.whiteAlpha[5] : _themeDuplicates.whiteAlpha[50],
99
+ colorSubtleBackgroundLightAlphaSelected: 'transparent',
100
+ colorSubtleBackgroundInverted: 'transparent',
101
+ colorSubtleBackgroundInvertedHover: _themeDuplicates.blackAlpha[10],
102
+ colorSubtleBackgroundInvertedPressed: _themeDuplicates.blackAlpha[30],
103
+ colorSubtleBackgroundInvertedSelected: _themeDuplicates.blackAlpha[20],
104
+ colorTransparentBackground: 'transparent',
105
+ colorTransparentBackgroundHover: 'transparent',
106
+ colorTransparentBackgroundPressed: 'transparent',
107
+ colorTransparentBackgroundSelected: 'transparent',
108
+ colorNeutralBackgroundDisabled: palette.neutralLighter,
109
+ colorNeutralBackgroundInvertedDisabled: _themeDuplicates.whiteAlpha[10],
110
+ colorNeutralStencil1: palette.neutralLight,
111
+ colorNeutralStencil2: palette.neutralLighterAlt,
112
+ colorNeutralStencil1Alpha: inverted ? _themeDuplicates.whiteAlpha[10] : _themeDuplicates.blackAlpha[10],
113
+ colorNeutralStencil2Alpha: inverted ? _themeDuplicates.whiteAlpha[5] : _themeDuplicates.blackAlpha[5],
114
+ colorBackgroundOverlay: _themeDuplicates.blackAlpha[40],
115
+ colorScrollbarOverlay: _themeDuplicates.blackAlpha[50],
116
+ colorBrandBackground: palette.themePrimary,
117
+ colorBrandBackgroundHover: palette.themeDarkAlt,
118
+ colorBrandBackgroundPressed: palette.themeDarker,
119
+ colorBrandBackgroundSelected: palette.themeDark,
120
+ colorCompoundBrandBackground: palette.themePrimary,
121
+ colorCompoundBrandBackgroundHover: palette.themeDarkAlt,
122
+ colorCompoundBrandBackgroundPressed: palette.themeDark,
123
+ colorBrandBackgroundStatic: palette.themePrimary,
124
+ colorBrandBackground2: palette.themeLighterAlt,
125
+ colorBrandBackgroundInverted: palette.white,
126
+ colorBrandBackgroundInvertedHover: palette.themeLighterAlt,
127
+ colorBrandBackgroundInvertedPressed: palette.themeLight,
128
+ colorBrandBackgroundInvertedSelected: palette.themeLighter,
129
+ colorNeutralStrokeAccessible: palette.neutralSecondary,
130
+ colorNeutralStrokeAccessibleHover: palette.neutralSecondary,
131
+ colorNeutralStrokeAccessiblePressed: palette.neutralSecondary,
132
+ colorNeutralStrokeAccessibleSelected: palette.themePrimary,
133
+ colorNeutralStroke1: palette.neutralQuaternary,
134
+ colorNeutralStroke1Hover: palette.neutralTertiaryAlt,
135
+ colorNeutralStroke1Pressed: palette.neutralTertiaryAlt,
136
+ colorNeutralStroke1Selected: palette.neutralTertiaryAlt,
137
+ colorNeutralStroke2: palette.neutralQuaternaryAlt,
138
+ colorNeutralStroke3: palette.neutralLighter,
139
+ colorNeutralStrokeOnBrand: palette.white,
140
+ colorNeutralStrokeOnBrand2: palette.white,
141
+ colorNeutralStrokeOnBrand2Hover: palette.white,
142
+ colorNeutralStrokeOnBrand2Pressed: palette.white,
143
+ colorNeutralStrokeOnBrand2Selected: palette.white,
144
+ colorBrandStroke1: palette.themePrimary,
145
+ colorBrandStroke2: palette.themeLight,
146
+ colorCompoundBrandStroke: palette.themePrimary,
147
+ colorCompoundBrandStrokeHover: palette.themeDarkAlt,
148
+ colorCompoundBrandStrokePressed: palette.themeDark,
149
+ colorNeutralStrokeDisabled: palette.neutralQuaternaryAlt,
150
+ colorNeutralStrokeInvertedDisabled: _themeDuplicates.whiteAlpha[40],
151
+ colorTransparentStroke: 'transparent',
152
+ colorTransparentStrokeInteractive: 'transparent',
153
+ colorTransparentStrokeDisabled: 'transparent',
154
+ colorNeutralStrokeAlpha: inverted ? _themeDuplicates.whiteAlpha[10] : _themeDuplicates.blackAlpha[5],
155
+ colorStrokeFocus1: palette.white,
156
+ colorStrokeFocus2: palette.black,
157
+ colorNeutralShadowAmbient: 'rgba(0,0,0,0.12)',
158
+ colorNeutralShadowKey: 'rgba(0,0,0,0.14)',
159
+ colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.06)',
160
+ colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.07)',
161
+ colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.20)',
162
+ colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.24)',
163
+ colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',
164
+ colorBrandShadowKey: 'rgba(0,0,0,0.25)'
165
+ };
165
166
  };
166
167
  /**
167
168
  * Creates v9 shadow tokens from v8 effects.
168
- */
169
- const mapShadowTokens = effects => {
170
- return {
171
- shadow4: effects.elevation4,
172
- shadow8: effects.elevation8,
173
- shadow16: effects.elevation16,
174
- shadow64: effects.elevation64
175
- };
169
+ */ const mapShadowTokens = (effects)=>{
170
+ return {
171
+ shadow4: effects.elevation4,
172
+ shadow8: effects.elevation8,
173
+ shadow16: effects.elevation16,
174
+ shadow64: effects.elevation64
175
+ };
176
176
  };
177
177
  /**
178
178
  * Creates v9 border radius tokens from v8 effects
179
- */
180
- const mapBorderRadiusTokens = effects => {
181
- return {
182
- borderRadiusSmall: effects.roundedCorner2,
183
- borderRadiusMedium: effects.roundedCorner4,
184
- borderRadiusLarge: effects.roundedCorner6
185
- };
179
+ */ const mapBorderRadiusTokens = (effects)=>{
180
+ return {
181
+ borderRadiusSmall: effects.roundedCorner2,
182
+ borderRadiusMedium: effects.roundedCorner4,
183
+ borderRadiusLarge: effects.roundedCorner6
184
+ };
186
185
  };
187
- /**
188
- * Creates a v9 theme from a v8 theme.
189
- * You can optional pass a base v9 theme; otherwise webLightTheme is used.
190
- */
191
- const createV9Theme = (themeV8, baseThemeV9) => {
192
- const baseTheme = baseThemeV9 !== null && baseThemeV9 !== void 0 ? baseThemeV9 : react_components_1.webLightTheme;
193
- return {
194
- ...baseTheme,
195
- ...mapAliasColors(themeV8.palette, themeV8.isInverted),
196
- ...mapShadowTokens(themeV8.effects),
197
- ...mapBorderRadiusTokens(themeV8.effects)
198
- };
199
- };
200
- exports.createV9Theme = createV9Theme;
186
+ const createV9Theme = (themeV8, baseThemeV9)=>{
187
+ const baseTheme = baseThemeV9 !== null && baseThemeV9 !== void 0 ? baseThemeV9 : _reactComponents.webLightTheme;
188
+ return {
189
+ ...baseTheme,
190
+ ...mapAliasColors(themeV8.palette, themeV8.isInverted),
191
+ ...mapShadowTokens(themeV8.effects),
192
+ ...mapBorderRadiusTokens(themeV8.effects)
193
+ };
194
+ }; //# sourceMappingURL=v9ThemeShim.js.map
195
+
201
196
  //# sourceMappingURL=v9ThemeShim.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_components_1","require","themeDuplicates_1","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","whiteAlpha","colorBrandForegroundLink","colorBrandForegroundLinkHover","themeDark","colorBrandForegroundLinkPressed","themeDarker","colorBrandForegroundLinkSelected","colorNeutralForeground2Link","colorNeutralForeground2LinkHover","colorNeutralForeground2LinkPressed","colorNeutralForeground2LinkSelected","colorCompoundBrandForeground1","colorCompoundBrandForeground1Hover","colorCompoundBrandForeground1Pressed","colorBrandForeground1","colorBrandForeground2","colorNeutralForeground1Static","colorNeutralForegroundInverted","white","colorNeutralForegroundInvertedHover","colorNeutralForegroundInvertedPressed","colorNeutralForegroundInvertedSelected","colorNeutralForegroundOnBrand","colorNeutralForegroundStaticInverted","colorNeutralForegroundInvertedLink","colorNeutralForegroundInvertedLinkHover","colorNeutralForegroundInvertedLinkPressed","colorNeutralForegroundInvertedLinkSelected","colorNeutralForegroundInverted2","colorBrandForegroundInverted","themeSecondary","colorBrandForegroundInvertedHover","themeTertiary","colorBrandForegroundInvertedPressed","colorBrandForegroundOnLight","colorBrandForegroundOnLightHover","colorBrandForegroundOnLightPressed","colorBrandForegroundOnLightSelected","colorNeutralBackground1","colorNeutralBackground1Hover","neutralLighter","colorNeutralBackground1Pressed","neutralQuaternaryAlt","colorNeutralBackground1Selected","neutralLight","colorNeutralBackground2","neutralLighterAlt","colorNeutralBackground2Hover","colorNeutralBackground2Pressed","colorNeutralBackground2Selected","colorNeutralBackground3","colorNeutralBackground3Hover","colorNeutralBackground3Pressed","colorNeutralBackground3Selected","colorNeutralBackground4","colorNeutralBackground4Hover","colorNeutralBackground4Pressed","colorNeutralBackground4Selected","colorNeutralBackground5","colorNeutralBackground5Hover","colorNeutralBackground5Pressed","colorNeutralBackground5Selected","colorNeutralBackground6","colorNeutralBackgroundStatic","grey","colorNeutralBackgroundInverted","colorNeutralBackgroundAlpha","grey10Alpha","colorNeutralBackgroundAlpha2","grey12Alpha","colorSubtleBackground","colorSubtleBackgroundHover","colorSubtleBackgroundPressed","colorSubtleBackgroundSelected","colorSubtleBackgroundLightAlphaHover","colorSubtleBackgroundLightAlphaPressed","colorSubtleBackgroundLightAlphaSelected","colorSubtleBackgroundInverted","colorSubtleBackgroundInvertedHover","blackAlpha","colorSubtleBackgroundInvertedPressed","colorSubtleBackgroundInvertedSelected","colorTransparentBackground","colorTransparentBackgroundHover","colorTransparentBackgroundPressed","colorTransparentBackgroundSelected","colorNeutralBackgroundDisabled","colorNeutralBackgroundInvertedDisabled","colorNeutralStencil1","colorNeutralStencil2","colorNeutralStencil1Alpha","colorNeutralStencil2Alpha","colorBackgroundOverlay","colorScrollbarOverlay","colorBrandBackground","colorBrandBackgroundHover","colorBrandBackgroundPressed","colorBrandBackgroundSelected","colorCompoundBrandBackground","colorCompoundBrandBackgroundHover","colorCompoundBrandBackgroundPressed","colorBrandBackgroundStatic","colorBrandBackground2","themeLighterAlt","colorBrandBackgroundInverted","colorBrandBackgroundInvertedHover","colorBrandBackgroundInvertedPressed","themeLight","colorBrandBackgroundInvertedSelected","themeLighter","colorNeutralStrokeAccessible","colorNeutralStrokeAccessibleHover","colorNeutralStrokeAccessiblePressed","colorNeutralStrokeAccessibleSelected","colorNeutralStroke1","colorNeutralStroke1Hover","colorNeutralStroke1Pressed","colorNeutralStroke1Selected","colorNeutralStroke2","colorNeutralStroke3","colorNeutralStrokeOnBrand","colorNeutralStrokeOnBrand2","colorNeutralStrokeOnBrand2Hover","colorNeutralStrokeOnBrand2Pressed","colorNeutralStrokeOnBrand2Selected","colorBrandStroke1","colorBrandStroke2","colorCompoundBrandStroke","colorCompoundBrandStrokeHover","colorCompoundBrandStrokePressed","colorNeutralStrokeDisabled","colorNeutralStrokeInvertedDisabled","colorTransparentStroke","colorTransparentStrokeInteractive","colorTransparentStrokeDisabled","colorNeutralStrokeAlpha","colorStrokeFocus1","colorStrokeFocus2","black","colorNeutralShadowAmbient","colorNeutralShadowKey","colorNeutralShadowAmbientLighter","colorNeutralShadowKeyLighter","colorNeutralShadowAmbientDarker","colorNeutralShadowKeyDarker","colorBrandShadowAmbient","colorBrandShadowKey","mapShadowTokens","effects","shadow4","elevation4","shadow8","elevation8","shadow16","elevation16","shadow64","elevation64","mapBorderRadiusTokens","borderRadiusSmall","roundedCorner2","borderRadiusMedium","roundedCorner4","borderRadiusLarge","roundedCorner6","createV9Theme","themeV8","baseThemeV9","baseTheme","webLightTheme","isInverted","exports"],"sources":["../src/packages/react-components/react-migration-v8-v9/src/components/Theme/v9ThemeShim.ts"],"sourcesContent":["import { Theme as ThemeV8 } from '@fluentui/react';\nimport type { IEffects, IPalette } from '@fluentui/react';\nimport { Theme as ThemeV9, webLightTheme } from '@fluentui/react-components';\nimport type { BorderRadiusTokens, ColorTokens, ShadowTokens } from '@fluentui/react-components';\nimport { blackAlpha, whiteAlpha, grey, grey10Alpha, grey12Alpha } from './themeDuplicates';\n\n/**\n * Creates v9 color tokens from a v8 palette.\n */\nconst mapAliasColors = (palette: IPalette, inverted: boolean): ColorTokens => {\n return {\n colorNeutralForeground1: palette.neutralPrimary,\n colorNeutralForeground1Hover: palette.neutralPrimary,\n colorNeutralForeground1Pressed: palette.neutralPrimary,\n colorNeutralForeground1Selected: palette.neutralPrimary,\n colorNeutralForeground2: palette.neutralSecondary,\n colorNeutralForeground2Hover: palette.neutralPrimary,\n colorNeutralForeground2Pressed: palette.neutralPrimary,\n colorNeutralForeground2Selected: palette.neutralPrimary,\n colorNeutralForeground2BrandHover: palette.themePrimary,\n colorNeutralForeground2BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground2BrandSelected: palette.themePrimary,\n colorNeutralForeground3: palette.neutralTertiary,\n colorNeutralForeground3Hover: palette.neutralSecondary,\n colorNeutralForeground3Pressed: palette.neutralSecondary,\n colorNeutralForeground3Selected: palette.neutralSecondary,\n colorNeutralForeground3BrandHover: palette.themePrimary,\n colorNeutralForeground3BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground3BrandSelected: palette.themePrimary,\n colorNeutralForeground4: palette.neutralQuaternary,\n colorNeutralForegroundDisabled: palette.neutralTertiaryAlt,\n colorNeutralForegroundInvertedDisabled: whiteAlpha[40],\n colorBrandForegroundLink: palette.themeDarkAlt,\n colorBrandForegroundLinkHover: palette.themeDark,\n colorBrandForegroundLinkPressed: palette.themeDarker,\n colorBrandForegroundLinkSelected: palette.themeDarkAlt,\n colorNeutralForeground2Link: palette.neutralSecondary,\n colorNeutralForeground2LinkHover: palette.neutralPrimary,\n colorNeutralForeground2LinkPressed: palette.neutralPrimary,\n colorNeutralForeground2LinkSelected: palette.neutralPrimary,\n colorCompoundBrandForeground1: palette.themePrimary,\n colorCompoundBrandForeground1Hover: palette.themeDarkAlt,\n colorCompoundBrandForeground1Pressed: palette.themeDark,\n colorBrandForeground1: palette.themePrimary,\n colorBrandForeground2: palette.themeDarkAlt,\n colorNeutralForeground1Static: palette.neutralPrimary,\n colorNeutralForegroundInverted: palette.white,\n colorNeutralForegroundInvertedHover: palette.white,\n colorNeutralForegroundInvertedPressed: palette.white,\n colorNeutralForegroundInvertedSelected: palette.white,\n colorNeutralForegroundOnBrand: palette.white,\n colorNeutralForegroundStaticInverted: palette.white,\n colorNeutralForegroundInvertedLink: palette.white,\n colorNeutralForegroundInvertedLinkHover: palette.white,\n colorNeutralForegroundInvertedLinkPressed: palette.white,\n colorNeutralForegroundInvertedLinkSelected: palette.white,\n colorNeutralForegroundInverted2: palette.white,\n colorBrandForegroundInverted: palette.themeSecondary,\n colorBrandForegroundInvertedHover: palette.themeTertiary,\n colorBrandForegroundInvertedPressed: palette.themeSecondary,\n colorBrandForegroundOnLight: palette.themePrimary,\n colorBrandForegroundOnLightHover: palette.themeDarkAlt,\n colorBrandForegroundOnLightPressed: palette.themeDark,\n colorBrandForegroundOnLightSelected: palette.themeDark,\n colorNeutralBackground1: palette.white,\n colorNeutralBackground1Hover: palette.neutralLighter,\n colorNeutralBackground1Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground1Selected: palette.neutralLight,\n colorNeutralBackground2: palette.neutralLighterAlt,\n colorNeutralBackground2Hover: palette.neutralLighter,\n colorNeutralBackground2Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground2Selected: palette.neutralLight,\n colorNeutralBackground3: palette.neutralLighter,\n colorNeutralBackground3Hover: palette.neutralLight,\n colorNeutralBackground3Pressed: palette.neutralQuaternary,\n colorNeutralBackground3Selected: palette.neutralQuaternaryAlt,\n colorNeutralBackground4: palette.neutralLighter,\n colorNeutralBackground4Hover: palette.neutralLighterAlt,\n colorNeutralBackground4Pressed: palette.neutralLighter,\n colorNeutralBackground4Selected: palette.white,\n colorNeutralBackground5: palette.neutralLight,\n colorNeutralBackground5Hover: palette.neutralLighter,\n colorNeutralBackground5Pressed: palette.neutralLighter,\n colorNeutralBackground5Selected: palette.neutralLighterAlt,\n colorNeutralBackground6: palette.neutralLight,\n colorNeutralBackgroundStatic: grey[20],\n colorNeutralBackgroundInverted: palette.neutralSecondary,\n colorNeutralBackgroundAlpha: inverted ? grey10Alpha[50] : whiteAlpha[50],\n colorNeutralBackgroundAlpha2: inverted ? grey12Alpha[70] : whiteAlpha[80],\n colorSubtleBackground: 'transparent',\n colorSubtleBackgroundHover: palette.neutralLighter,\n colorSubtleBackgroundPressed: palette.neutralQuaternaryAlt,\n colorSubtleBackgroundSelected: palette.neutralLight,\n colorSubtleBackgroundLightAlphaHover: inverted ? whiteAlpha[10] : whiteAlpha[80],\n colorSubtleBackgroundLightAlphaPressed: inverted ? whiteAlpha[5] : whiteAlpha[50],\n colorSubtleBackgroundLightAlphaSelected: 'transparent',\n colorSubtleBackgroundInverted: 'transparent',\n colorSubtleBackgroundInvertedHover: blackAlpha[10],\n colorSubtleBackgroundInvertedPressed: blackAlpha[30],\n colorSubtleBackgroundInvertedSelected: blackAlpha[20],\n colorTransparentBackground: 'transparent',\n colorTransparentBackgroundHover: 'transparent',\n colorTransparentBackgroundPressed: 'transparent',\n colorTransparentBackgroundSelected: 'transparent',\n colorNeutralBackgroundDisabled: palette.neutralLighter,\n colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],\n colorNeutralStencil1: palette.neutralLight,\n colorNeutralStencil2: palette.neutralLighterAlt,\n colorNeutralStencil1Alpha: inverted ? whiteAlpha[10] : blackAlpha[10],\n colorNeutralStencil2Alpha: inverted ? whiteAlpha[5] : blackAlpha[5],\n colorBackgroundOverlay: blackAlpha[40],\n colorScrollbarOverlay: blackAlpha[50],\n colorBrandBackground: palette.themePrimary,\n colorBrandBackgroundHover: palette.themeDarkAlt,\n colorBrandBackgroundPressed: palette.themeDarker,\n colorBrandBackgroundSelected: palette.themeDark,\n colorCompoundBrandBackground: palette.themePrimary,\n colorCompoundBrandBackgroundHover: palette.themeDarkAlt,\n colorCompoundBrandBackgroundPressed: palette.themeDark,\n colorBrandBackgroundStatic: palette.themePrimary,\n colorBrandBackground2: palette.themeLighterAlt,\n colorBrandBackgroundInverted: palette.white,\n colorBrandBackgroundInvertedHover: palette.themeLighterAlt,\n colorBrandBackgroundInvertedPressed: palette.themeLight,\n colorBrandBackgroundInvertedSelected: palette.themeLighter,\n colorNeutralStrokeAccessible: palette.neutralSecondary,\n colorNeutralStrokeAccessibleHover: palette.neutralSecondary,\n colorNeutralStrokeAccessiblePressed: palette.neutralSecondary,\n colorNeutralStrokeAccessibleSelected: palette.themePrimary,\n colorNeutralStroke1: palette.neutralQuaternary,\n colorNeutralStroke1Hover: palette.neutralTertiaryAlt,\n colorNeutralStroke1Pressed: palette.neutralTertiaryAlt,\n colorNeutralStroke1Selected: palette.neutralTertiaryAlt,\n colorNeutralStroke2: palette.neutralQuaternaryAlt,\n colorNeutralStroke3: palette.neutralLighter,\n colorNeutralStrokeOnBrand: palette.white,\n colorNeutralStrokeOnBrand2: palette.white,\n colorNeutralStrokeOnBrand2Hover: palette.white,\n colorNeutralStrokeOnBrand2Pressed: palette.white,\n colorNeutralStrokeOnBrand2Selected: palette.white,\n colorBrandStroke1: palette.themePrimary,\n colorBrandStroke2: palette.themeLight,\n colorCompoundBrandStroke: palette.themePrimary,\n colorCompoundBrandStrokeHover: palette.themeDarkAlt,\n colorCompoundBrandStrokePressed: palette.themeDark,\n colorNeutralStrokeDisabled: palette.neutralQuaternaryAlt,\n colorNeutralStrokeInvertedDisabled: whiteAlpha[40],\n colorTransparentStroke: 'transparent',\n colorTransparentStrokeInteractive: 'transparent',\n colorTransparentStrokeDisabled: 'transparent',\n colorNeutralStrokeAlpha: inverted ? whiteAlpha[10] : blackAlpha[5],\n colorStrokeFocus1: palette.white,\n colorStrokeFocus2: palette.black,\n colorNeutralShadowAmbient: 'rgba(0,0,0,0.12)',\n colorNeutralShadowKey: 'rgba(0,0,0,0.14)',\n colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.06)',\n colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.07)',\n colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.20)',\n colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.24)',\n colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',\n colorBrandShadowKey: 'rgba(0,0,0,0.25)',\n };\n};\n\n/**\n * Creates v9 shadow tokens from v8 effects.\n */\nconst mapShadowTokens = (effects: IEffects): Partial<ShadowTokens> => {\n return {\n shadow4: effects.elevation4,\n shadow8: effects.elevation8,\n shadow16: effects.elevation16,\n shadow64: effects.elevation64,\n };\n};\n\n/**\n * Creates v9 border radius tokens from v8 effects\n */\nconst mapBorderRadiusTokens = (effects: IEffects): Partial<BorderRadiusTokens> => {\n return {\n borderRadiusSmall: effects.roundedCorner2,\n borderRadiusMedium: effects.roundedCorner4,\n borderRadiusLarge: effects.roundedCorner6,\n };\n};\n\n/**\n * Creates a v9 theme from a v8 theme.\n * You can optional pass a base v9 theme; otherwise webLightTheme is used.\n */\nexport const createV9Theme = (themeV8: ThemeV8, baseThemeV9?: ThemeV9): ThemeV9 => {\n const baseTheme = baseThemeV9 ?? webLightTheme;\n\n return {\n ...baseTheme,\n ...mapAliasColors(themeV8.palette, themeV8.isInverted),\n ...mapShadowTokens(themeV8.effects),\n ...mapBorderRadiusTokens(themeV8.effects),\n };\n};\n"],"mappings":";;;;;;AAEA,MAAAA,kBAAA,gBAAAC,OAAA;AAEA,MAAAC,iBAAA,gBAAAD,OAAA;AAEA;;;AAGA,MAAME,cAAc,GAAGA,CAACC,OAAiB,EAAEC,QAAiB,KAAiB;EAC3E,OAAO;IACLC,uBAAuB,EAAEF,OAAO,CAACG,cAAc;IAC/CC,4BAA4B,EAAEJ,OAAO,CAACG,cAAc;IACpDE,8BAA8B,EAAEL,OAAO,CAACG,cAAc;IACtDG,+BAA+B,EAAEN,OAAO,CAACG,cAAc;IACvDI,uBAAuB,EAAEP,OAAO,CAACQ,gBAAgB;IACjDC,4BAA4B,EAAET,OAAO,CAACG,cAAc;IACpDO,8BAA8B,EAA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,WAAqB,KAAa;EAChF,MAAMC,SAAS,GAAGD,WAAW,aAAXA,WAAW,cAAXA,WAAW,GAAIxM,kBAAA,CAAA0M,aAAa;EAE9C,OAAO;IACL,GAAGD,SAAS;IACZ,GAAGtM,cAAc,CAACoM,OAAO,CAACnM,OAAO,EAAEmM,OAAO,CAACI,UAAU,CAAC;IACtD,GAAGtB,eAAe,CAACkB,OAAO,CAACjB,OAAO,CAAC;IACnC,GAAGS,qBAAqB,CAACQ,OAAO,CAACjB,OAAO;GACzC;AACH,CAAC;AATYsB,OAAA,CAAAN,aAAa,GAAAA,aAAA"}
1
+ {"version":3,"sources":["../../../lib/components/Theme/v9ThemeShim.js"],"sourcesContent":["import { webLightTheme } from '@fluentui/react-components';\nimport { blackAlpha, whiteAlpha, grey, grey10Alpha, grey12Alpha } from './themeDuplicates';\n/**\n * Creates v9 color tokens from a v8 palette.\n */\nconst mapAliasColors = (palette, inverted) => {\n return {\n colorNeutralForeground1: palette.neutralPrimary,\n colorNeutralForeground1Hover: palette.neutralPrimary,\n colorNeutralForeground1Pressed: palette.neutralPrimary,\n colorNeutralForeground1Selected: palette.neutralPrimary,\n colorNeutralForeground2: palette.neutralSecondary,\n colorNeutralForeground2Hover: palette.neutralPrimary,\n colorNeutralForeground2Pressed: palette.neutralPrimary,\n colorNeutralForeground2Selected: palette.neutralPrimary,\n colorNeutralForeground2BrandHover: palette.themePrimary,\n colorNeutralForeground2BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground2BrandSelected: palette.themePrimary,\n colorNeutralForeground3: palette.neutralTertiary,\n colorNeutralForeground3Hover: palette.neutralSecondary,\n colorNeutralForeground3Pressed: palette.neutralSecondary,\n colorNeutralForeground3Selected: palette.neutralSecondary,\n colorNeutralForeground3BrandHover: palette.themePrimary,\n colorNeutralForeground3BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground3BrandSelected: palette.themePrimary,\n colorNeutralForeground4: palette.neutralQuaternary,\n colorNeutralForegroundDisabled: palette.neutralTertiaryAlt,\n colorNeutralForegroundInvertedDisabled: whiteAlpha[40],\n colorBrandForegroundLink: palette.themeDarkAlt,\n colorBrandForegroundLinkHover: palette.themeDark,\n colorBrandForegroundLinkPressed: palette.themeDarker,\n colorBrandForegroundLinkSelected: palette.themeDarkAlt,\n colorNeutralForeground2Link: palette.neutralSecondary,\n colorNeutralForeground2LinkHover: palette.neutralPrimary,\n colorNeutralForeground2LinkPressed: palette.neutralPrimary,\n colorNeutralForeground2LinkSelected: palette.neutralPrimary,\n colorCompoundBrandForeground1: palette.themePrimary,\n colorCompoundBrandForeground1Hover: palette.themeDarkAlt,\n colorCompoundBrandForeground1Pressed: palette.themeDark,\n colorBrandForeground1: palette.themePrimary,\n colorBrandForeground2: palette.themeDarkAlt,\n colorNeutralForeground1Static: palette.neutralPrimary,\n colorNeutralForegroundInverted: palette.white,\n colorNeutralForegroundInvertedHover: palette.white,\n colorNeutralForegroundInvertedPressed: palette.white,\n colorNeutralForegroundInvertedSelected: palette.white,\n colorNeutralForegroundOnBrand: palette.white,\n colorNeutralForegroundStaticInverted: palette.white,\n colorNeutralForegroundInvertedLink: palette.white,\n colorNeutralForegroundInvertedLinkHover: palette.white,\n colorNeutralForegroundInvertedLinkPressed: palette.white,\n colorNeutralForegroundInvertedLinkSelected: palette.white,\n colorNeutralForegroundInverted2: palette.white,\n colorBrandForegroundInverted: palette.themeSecondary,\n colorBrandForegroundInvertedHover: palette.themeTertiary,\n colorBrandForegroundInvertedPressed: palette.themeSecondary,\n colorBrandForegroundOnLight: palette.themePrimary,\n colorBrandForegroundOnLightHover: palette.themeDarkAlt,\n colorBrandForegroundOnLightPressed: palette.themeDark,\n colorBrandForegroundOnLightSelected: palette.themeDark,\n colorNeutralBackground1: palette.white,\n colorNeutralBackground1Hover: palette.neutralLighter,\n colorNeutralBackground1Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground1Selected: palette.neutralLight,\n colorNeutralBackground2: palette.neutralLighterAlt,\n colorNeutralBackground2Hover: palette.neutralLighter,\n colorNeutralBackground2Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground2Selected: palette.neutralLight,\n colorNeutralBackground3: palette.neutralLighter,\n colorNeutralBackground3Hover: palette.neutralLight,\n colorNeutralBackground3Pressed: palette.neutralQuaternary,\n colorNeutralBackground3Selected: palette.neutralQuaternaryAlt,\n colorNeutralBackground4: palette.neutralLighter,\n colorNeutralBackground4Hover: palette.neutralLighterAlt,\n colorNeutralBackground4Pressed: palette.neutralLighter,\n colorNeutralBackground4Selected: palette.white,\n colorNeutralBackground5: palette.neutralLight,\n colorNeutralBackground5Hover: palette.neutralLighter,\n colorNeutralBackground5Pressed: palette.neutralLighter,\n colorNeutralBackground5Selected: palette.neutralLighterAlt,\n colorNeutralBackground6: palette.neutralLight,\n colorNeutralBackgroundStatic: grey[20],\n colorNeutralBackgroundInverted: palette.neutralSecondary,\n colorNeutralBackgroundAlpha: inverted ? grey10Alpha[50] : whiteAlpha[50],\n colorNeutralBackgroundAlpha2: inverted ? grey12Alpha[70] : whiteAlpha[80],\n colorSubtleBackground: 'transparent',\n colorSubtleBackgroundHover: palette.neutralLighter,\n colorSubtleBackgroundPressed: palette.neutralQuaternaryAlt,\n colorSubtleBackgroundSelected: palette.neutralLight,\n colorSubtleBackgroundLightAlphaHover: inverted ? whiteAlpha[10] : whiteAlpha[80],\n colorSubtleBackgroundLightAlphaPressed: inverted ? whiteAlpha[5] : whiteAlpha[50],\n colorSubtleBackgroundLightAlphaSelected: 'transparent',\n colorSubtleBackgroundInverted: 'transparent',\n colorSubtleBackgroundInvertedHover: blackAlpha[10],\n colorSubtleBackgroundInvertedPressed: blackAlpha[30],\n colorSubtleBackgroundInvertedSelected: blackAlpha[20],\n colorTransparentBackground: 'transparent',\n colorTransparentBackgroundHover: 'transparent',\n colorTransparentBackgroundPressed: 'transparent',\n colorTransparentBackgroundSelected: 'transparent',\n colorNeutralBackgroundDisabled: palette.neutralLighter,\n colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],\n colorNeutralStencil1: palette.neutralLight,\n colorNeutralStencil2: palette.neutralLighterAlt,\n colorNeutralStencil1Alpha: inverted ? whiteAlpha[10] : blackAlpha[10],\n colorNeutralStencil2Alpha: inverted ? whiteAlpha[5] : blackAlpha[5],\n colorBackgroundOverlay: blackAlpha[40],\n colorScrollbarOverlay: blackAlpha[50],\n colorBrandBackground: palette.themePrimary,\n colorBrandBackgroundHover: palette.themeDarkAlt,\n colorBrandBackgroundPressed: palette.themeDarker,\n colorBrandBackgroundSelected: palette.themeDark,\n colorCompoundBrandBackground: palette.themePrimary,\n colorCompoundBrandBackgroundHover: palette.themeDarkAlt,\n colorCompoundBrandBackgroundPressed: palette.themeDark,\n colorBrandBackgroundStatic: palette.themePrimary,\n colorBrandBackground2: palette.themeLighterAlt,\n colorBrandBackgroundInverted: palette.white,\n colorBrandBackgroundInvertedHover: palette.themeLighterAlt,\n colorBrandBackgroundInvertedPressed: palette.themeLight,\n colorBrandBackgroundInvertedSelected: palette.themeLighter,\n colorNeutralStrokeAccessible: palette.neutralSecondary,\n colorNeutralStrokeAccessibleHover: palette.neutralSecondary,\n colorNeutralStrokeAccessiblePressed: palette.neutralSecondary,\n colorNeutralStrokeAccessibleSelected: palette.themePrimary,\n colorNeutralStroke1: palette.neutralQuaternary,\n colorNeutralStroke1Hover: palette.neutralTertiaryAlt,\n colorNeutralStroke1Pressed: palette.neutralTertiaryAlt,\n colorNeutralStroke1Selected: palette.neutralTertiaryAlt,\n colorNeutralStroke2: palette.neutralQuaternaryAlt,\n colorNeutralStroke3: palette.neutralLighter,\n colorNeutralStrokeOnBrand: palette.white,\n colorNeutralStrokeOnBrand2: palette.white,\n colorNeutralStrokeOnBrand2Hover: palette.white,\n colorNeutralStrokeOnBrand2Pressed: palette.white,\n colorNeutralStrokeOnBrand2Selected: palette.white,\n colorBrandStroke1: palette.themePrimary,\n colorBrandStroke2: palette.themeLight,\n colorCompoundBrandStroke: palette.themePrimary,\n colorCompoundBrandStrokeHover: palette.themeDarkAlt,\n colorCompoundBrandStrokePressed: palette.themeDark,\n colorNeutralStrokeDisabled: palette.neutralQuaternaryAlt,\n colorNeutralStrokeInvertedDisabled: whiteAlpha[40],\n colorTransparentStroke: 'transparent',\n colorTransparentStrokeInteractive: 'transparent',\n colorTransparentStrokeDisabled: 'transparent',\n colorNeutralStrokeAlpha: inverted ? whiteAlpha[10] : blackAlpha[5],\n colorStrokeFocus1: palette.white,\n colorStrokeFocus2: palette.black,\n colorNeutralShadowAmbient: 'rgba(0,0,0,0.12)',\n colorNeutralShadowKey: 'rgba(0,0,0,0.14)',\n colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.06)',\n colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.07)',\n colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.20)',\n colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.24)',\n colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',\n colorBrandShadowKey: 'rgba(0,0,0,0.25)'\n };\n};\n/**\n * Creates v9 shadow tokens from v8 effects.\n */\nconst mapShadowTokens = effects => {\n return {\n shadow4: effects.elevation4,\n shadow8: effects.elevation8,\n shadow16: effects.elevation16,\n shadow64: effects.elevation64\n };\n};\n/**\n * Creates v9 border radius tokens from v8 effects\n */\nconst mapBorderRadiusTokens = effects => {\n return {\n borderRadiusSmall: effects.roundedCorner2,\n borderRadiusMedium: effects.roundedCorner4,\n borderRadiusLarge: effects.roundedCorner6\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, baseThemeV9) => {\n const baseTheme = baseThemeV9 !== null && baseThemeV9 !== void 0 ? baseThemeV9 : webLightTheme;\n return {\n ...baseTheme,\n ...mapAliasColors(themeV8.palette, themeV8.isInverted),\n ...mapShadowTokens(themeV8.effects),\n ...mapBorderRadiusTokens(themeV8.effects)\n };\n};\n//# sourceMappingURL=v9ThemeShim.js.map"],"names":["createV9Theme","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","whiteAlpha","colorBrandForegroundLink","colorBrandForegroundLinkHover","themeDark","colorBrandForegroundLinkPressed","themeDarker","colorBrandForegroundLinkSelected","colorNeutralForeground2Link","colorNeutralForeground2LinkHover","colorNeutralForeground2LinkPressed","colorNeutralForeground2LinkSelected","colorCompoundBrandForeground1","colorCompoundBrandForeground1Hover","colorCompoundBrandForeground1Pressed","colorBrandForeground1","colorBrandForeground2","colorNeutralForeground1Static","colorNeutralForegroundInverted","white","colorNeutralForegroundInvertedHover","colorNeutralForegroundInvertedPressed","colorNeutralForegroundInvertedSelected","colorNeutralForegroundOnBrand","colorNeutralForegroundStaticInverted","colorNeutralForegroundInvertedLink","colorNeutralForegroundInvertedLinkHover","colorNeutralForegroundInvertedLinkPressed","colorNeutralForegroundInvertedLinkSelected","colorNeutralForegroundInverted2","colorBrandForegroundInverted","themeSecondary","colorBrandForegroundInvertedHover","themeTertiary","colorBrandForegroundInvertedPressed","colorBrandForegroundOnLight","colorBrandForegroundOnLightHover","colorBrandForegroundOnLightPressed","colorBrandForegroundOnLightSelected","colorNeutralBackground1","colorNeutralBackground1Hover","neutralLighter","colorNeutralBackground1Pressed","neutralQuaternaryAlt","colorNeutralBackground1Selected","neutralLight","colorNeutralBackground2","neutralLighterAlt","colorNeutralBackground2Hover","colorNeutralBackground2Pressed","colorNeutralBackground2Selected","colorNeutralBackground3","colorNeutralBackground3Hover","colorNeutralBackground3Pressed","colorNeutralBackground3Selected","colorNeutralBackground4","colorNeutralBackground4Hover","colorNeutralBackground4Pressed","colorNeutralBackground4Selected","colorNeutralBackground5","colorNeutralBackground5Hover","colorNeutralBackground5Pressed","colorNeutralBackground5Selected","colorNeutralBackground6","colorNeutralBackgroundStatic","grey","colorNeutralBackgroundInverted","colorNeutralBackgroundAlpha","grey10Alpha","colorNeutralBackgroundAlpha2","grey12Alpha","colorSubtleBackground","colorSubtleBackgroundHover","colorSubtleBackgroundPressed","colorSubtleBackgroundSelected","colorSubtleBackgroundLightAlphaHover","colorSubtleBackgroundLightAlphaPressed","colorSubtleBackgroundLightAlphaSelected","colorSubtleBackgroundInverted","colorSubtleBackgroundInvertedHover","blackAlpha","colorSubtleBackgroundInvertedPressed","colorSubtleBackgroundInvertedSelected","colorTransparentBackground","colorTransparentBackgroundHover","colorTransparentBackgroundPressed","colorTransparentBackgroundSelected","colorNeutralBackgroundDisabled","colorNeutralBackgroundInvertedDisabled","colorNeutralStencil1","colorNeutralStencil2","colorNeutralStencil1Alpha","colorNeutralStencil2Alpha","colorBackgroundOverlay","colorScrollbarOverlay","colorBrandBackground","colorBrandBackgroundHover","colorBrandBackgroundPressed","colorBrandBackgroundSelected","colorCompoundBrandBackground","colorCompoundBrandBackgroundHover","colorCompoundBrandBackgroundPressed","colorBrandBackgroundStatic","colorBrandBackground2","themeLighterAlt","colorBrandBackgroundInverted","colorBrandBackgroundInvertedHover","colorBrandBackgroundInvertedPressed","themeLight","colorBrandBackgroundInvertedSelected","themeLighter","colorNeutralStrokeAccessible","colorNeutralStrokeAccessibleHover","colorNeutralStrokeAccessiblePressed","colorNeutralStrokeAccessibleSelected","colorNeutralStroke1","colorNeutralStroke1Hover","colorNeutralStroke1Pressed","colorNeutralStroke1Selected","colorNeutralStroke2","colorNeutralStroke3","colorNeutralStrokeOnBrand","colorNeutralStrokeOnBrand2","colorNeutralStrokeOnBrand2Hover","colorNeutralStrokeOnBrand2Pressed","colorNeutralStrokeOnBrand2Selected","colorBrandStroke1","colorBrandStroke2","colorCompoundBrandStroke","colorCompoundBrandStrokeHover","colorCompoundBrandStrokePressed","colorNeutralStrokeDisabled","colorNeutralStrokeInvertedDisabled","colorTransparentStroke","colorTransparentStrokeInteractive","colorTransparentStrokeDisabled","colorNeutralStrokeAlpha","colorStrokeFocus1","colorStrokeFocus2","black","colorNeutralShadowAmbient","colorNeutralShadowKey","colorNeutralShadowAmbientLighter","colorNeutralShadowKeyLighter","colorNeutralShadowAmbientDarker","colorNeutralShadowKeyDarker","colorBrandShadowAmbient","colorBrandShadowKey","mapShadowTokens","effects","shadow4","elevation4","shadow8","elevation8","shadow16","elevation16","shadow64","elevation64","mapBorderRadiusTokens","borderRadiusSmall","roundedCorner2","borderRadiusMedium","roundedCorner4","borderRadiusLarge","roundedCorner6","themeV8","baseThemeV9","baseTheme","webLightTheme","isInverted"],"mappings":";;;;+BAwLaA;;aAAAA;;iCAxLiB;iCACyC;AACvE;;CAEC,GACD,MAAMC,iBAAiB,CAACC,SAASC,WAAa;IAC5C,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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