@fluentui/react-theme 9.0.0-nightly.d730088d7f.0 → 9.0.0-rc.10

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 (229) hide show
  1. package/CHANGELOG.json +349 -10
  2. package/CHANGELOG.md +157 -40
  3. package/dist/index.d.ts +433 -0
  4. package/{lib → dist}/tsdoc-metadata.json +0 -0
  5. package/lib/alias/darkColor.js +147 -0
  6. package/lib/alias/darkColor.js.map +1 -0
  7. package/lib/alias/darkColorPalette.js +33 -0
  8. package/lib/alias/darkColorPalette.js.map +1 -0
  9. package/lib/alias/highContrastColor.js +147 -0
  10. package/lib/alias/highContrastColor.js.map +1 -0
  11. package/lib/alias/highContrastColorPalette.js +33 -0
  12. package/lib/alias/highContrastColorPalette.js.map +1 -0
  13. package/lib/alias/lightColor.js +147 -0
  14. package/lib/alias/lightColor.js.map +1 -0
  15. package/lib/alias/lightColorPalette.js +33 -0
  16. package/lib/alias/lightColorPalette.js.map +1 -0
  17. package/lib/alias/teamsDarkColor.js +147 -0
  18. package/lib/alias/teamsDarkColor.js.map +1 -0
  19. package/lib/alias/teamsDarkColorPalette.js +33 -0
  20. package/lib/alias/teamsDarkColorPalette.js.map +1 -0
  21. package/lib/global/borderRadius.js +1 -1
  22. package/lib/global/borderRadius.js.map +1 -1
  23. package/lib/global/brandColors.js +53 -31
  24. package/lib/global/brandColors.js.map +1 -1
  25. package/lib/global/colors.js +148 -130
  26. package/lib/global/colors.js.map +1 -1
  27. package/lib/global/curves.js +12 -0
  28. package/lib/global/curves.js.map +1 -0
  29. package/lib/global/durations.js +10 -0
  30. package/lib/global/durations.js.map +1 -0
  31. package/lib/global/fonts.js +4 -4
  32. package/lib/global/fonts.js.map +1 -1
  33. package/lib/global/index.js +5 -0
  34. package/lib/global/index.js.map +1 -1
  35. package/lib/global/spacings.js +40 -0
  36. package/lib/global/spacings.js.map +1 -0
  37. package/lib/global/strokeWidths.js +1 -1
  38. package/lib/global/strokeWidths.js.map +1 -1
  39. package/lib/global/typographyStyles.js +104 -0
  40. package/lib/global/typographyStyles.js.map +1 -0
  41. package/lib/index.js +5 -2
  42. package/lib/index.js.map +1 -1
  43. package/lib/themeToTokensObject.js +19 -0
  44. package/lib/themeToTokensObject.js.map +1 -0
  45. package/lib/themes/index.js.map +1 -1
  46. package/lib/themes/teams/darkTheme.js +1 -1
  47. package/lib/themes/teams/darkTheme.js.map +1 -1
  48. package/lib/themes/teams/highContrastTheme.js +1 -1
  49. package/lib/themes/teams/highContrastTheme.js.map +1 -1
  50. package/lib/themes/teams/index.js.map +1 -1
  51. package/lib/themes/teams/lightTheme.js +1 -1
  52. package/lib/themes/teams/lightTheme.js.map +1 -1
  53. package/lib/themes/web/darkTheme.js +1 -1
  54. package/lib/themes/web/darkTheme.js.map +1 -1
  55. package/lib/themes/web/index.js +0 -1
  56. package/lib/themes/web/index.js.map +1 -1
  57. package/lib/themes/web/lightTheme.js +1 -1
  58. package/lib/themes/web/lightTheme.js.map +1 -1
  59. package/lib/tokens.js +426 -0
  60. package/lib/tokens.js.map +1 -0
  61. package/lib/types.js.map +1 -1
  62. package/lib/utils/createDarkTheme.js +22 -5
  63. package/lib/utils/createDarkTheme.js.map +1 -1
  64. package/lib/utils/createHighContrastTheme.js +22 -5
  65. package/lib/utils/createHighContrastTheme.js.map +1 -1
  66. package/lib/utils/createLightTheme.js +22 -5
  67. package/lib/utils/createLightTheme.js.map +1 -1
  68. package/lib/utils/createTeamsDarkTheme.js +22 -5
  69. package/lib/utils/createTeamsDarkTheme.js.map +1 -1
  70. package/lib/utils/index.js +0 -2
  71. package/lib/utils/index.js.map +1 -1
  72. package/lib/utils/shadows.js +7 -7
  73. package/lib/utils/shadows.js.map +1 -1
  74. package/lib-commonjs/alias/darkColor.js +157 -0
  75. package/lib-commonjs/alias/darkColor.js.map +1 -0
  76. package/lib-commonjs/alias/darkColorPalette.js +41 -0
  77. package/lib-commonjs/alias/darkColorPalette.js.map +1 -0
  78. package/lib-commonjs/alias/highContrastColor.js +157 -0
  79. package/lib-commonjs/alias/highContrastColor.js.map +1 -0
  80. package/lib-commonjs/alias/highContrastColorPalette.js +41 -0
  81. package/lib-commonjs/alias/highContrastColorPalette.js.map +1 -0
  82. package/lib-commonjs/alias/lightColor.js +157 -0
  83. package/lib-commonjs/alias/lightColor.js.map +1 -0
  84. package/lib-commonjs/alias/lightColorPalette.js +41 -0
  85. package/lib-commonjs/alias/lightColorPalette.js.map +1 -0
  86. package/lib-commonjs/alias/teamsDarkColor.js +157 -0
  87. package/lib-commonjs/alias/teamsDarkColor.js.map +1 -0
  88. package/lib-commonjs/alias/teamsDarkColorPalette.js +41 -0
  89. package/lib-commonjs/alias/teamsDarkColorPalette.js.map +1 -0
  90. package/lib-commonjs/global/borderRadius.js.map +1 -1
  91. package/lib-commonjs/global/brandColors.js +52 -30
  92. package/lib-commonjs/global/brandColors.js.map +1 -1
  93. package/lib-commonjs/global/colors.js +138 -120
  94. package/lib-commonjs/global/colors.js.map +1 -1
  95. package/lib-commonjs/global/curves.js +18 -0
  96. package/lib-commonjs/global/curves.js.map +1 -0
  97. package/lib-commonjs/global/durations.js +16 -0
  98. package/lib-commonjs/global/durations.js.map +1 -0
  99. package/lib-commonjs/global/fonts.js.map +1 -1
  100. package/lib-commonjs/global/index.js +11 -1
  101. package/lib-commonjs/global/index.js.map +1 -1
  102. package/lib-commonjs/global/spacings.js +46 -0
  103. package/lib-commonjs/global/spacings.js.map +1 -0
  104. package/lib-commonjs/global/strokeWidths.js.map +1 -1
  105. package/lib-commonjs/global/typographyStyles.js +112 -0
  106. package/lib-commonjs/global/typographyStyles.js.map +1 -0
  107. package/lib-commonjs/index.js +85 -3
  108. package/lib-commonjs/index.js.map +1 -1
  109. package/lib-commonjs/themeToTokensObject.js +28 -0
  110. package/lib-commonjs/themeToTokensObject.js.map +1 -0
  111. package/lib-commonjs/themes/index.js +1 -1
  112. package/lib-commonjs/themes/index.js.map +1 -1
  113. package/lib-commonjs/themes/teams/darkTheme.js +2 -2
  114. package/lib-commonjs/themes/teams/darkTheme.js.map +1 -1
  115. package/lib-commonjs/themes/teams/highContrastTheme.js +1 -1
  116. package/lib-commonjs/themes/teams/highContrastTheme.js.map +1 -1
  117. package/lib-commonjs/themes/teams/index.js +1 -1
  118. package/lib-commonjs/themes/teams/index.js.map +1 -1
  119. package/lib-commonjs/themes/teams/lightTheme.js +2 -2
  120. package/lib-commonjs/themes/teams/lightTheme.js.map +1 -1
  121. package/lib-commonjs/themes/web/darkTheme.js +2 -2
  122. package/lib-commonjs/themes/web/darkTheme.js.map +1 -1
  123. package/lib-commonjs/themes/web/index.js +1 -3
  124. package/lib-commonjs/themes/web/index.js.map +1 -1
  125. package/lib-commonjs/themes/web/lightTheme.js +2 -2
  126. package/lib-commonjs/themes/web/lightTheme.js.map +1 -1
  127. package/lib-commonjs/tokens.js +432 -0
  128. package/lib-commonjs/tokens.js.map +1 -0
  129. package/lib-commonjs/types.js.map +1 -1
  130. package/lib-commonjs/utils/createDarkTheme.js +27 -7
  131. package/lib-commonjs/utils/createDarkTheme.js.map +1 -1
  132. package/lib-commonjs/utils/createHighContrastTheme.js +27 -7
  133. package/lib-commonjs/utils/createHighContrastTheme.js.map +1 -1
  134. package/lib-commonjs/utils/createLightTheme.js +27 -7
  135. package/lib-commonjs/utils/createLightTheme.js.map +1 -1
  136. package/lib-commonjs/utils/createTeamsDarkTheme.js +27 -7
  137. package/lib-commonjs/utils/createTeamsDarkTheme.js.map +1 -1
  138. package/lib-commonjs/utils/index.js +1 -13
  139. package/lib-commonjs/utils/index.js.map +1 -1
  140. package/lib-commonjs/utils/shadows.js +7 -7
  141. package/lib-commonjs/utils/shadows.js.map +1 -1
  142. package/package.json +16 -12
  143. package/dist/react-theme.d.ts +0 -326
  144. package/lib/alias/dark.d.ts +0 -3
  145. package/lib/alias/dark.js +0 -117
  146. package/lib/alias/dark.js.map +0 -1
  147. package/lib/alias/highContrast.d.ts +0 -3
  148. package/lib/alias/highContrast.js +0 -117
  149. package/lib/alias/highContrast.js.map +0 -1
  150. package/lib/alias/light.d.ts +0 -3
  151. package/lib/alias/light.js +0 -117
  152. package/lib/alias/light.js.map +0 -1
  153. package/lib/alias/teamsDark.d.ts +0 -3
  154. package/lib/alias/teamsDark.js +0 -117
  155. package/lib/alias/teamsDark.js.map +0 -1
  156. package/lib/global/borderRadius.d.ts +0 -2
  157. package/lib/global/brandColors.d.ts +0 -3
  158. package/lib/global/colors.d.ts +0 -15
  159. package/lib/global/fonts.d.ts +0 -5
  160. package/lib/global/index.d.ts +0 -4
  161. package/lib/global/strokeWidths.d.ts +0 -2
  162. package/lib/index.d.ts +0 -3
  163. package/lib/themes/index.d.ts +0 -2
  164. package/lib/themes/teams/darkTheme.d.ts +0 -2
  165. package/lib/themes/teams/highContrastTheme.d.ts +0 -2
  166. package/lib/themes/teams/index.d.ts +0 -3
  167. package/lib/themes/teams/lightTheme.d.ts +0 -2
  168. package/lib/themes/web/darkTheme.d.ts +0 -2
  169. package/lib/themes/web/highContrastTheme.d.ts +0 -2
  170. package/lib/themes/web/highContrastTheme.js +0 -3
  171. package/lib/themes/web/highContrastTheme.js.map +0 -1
  172. package/lib/themes/web/index.d.ts +0 -3
  173. package/lib/themes/web/lightTheme.d.ts +0 -2
  174. package/lib/types.d.ts +0 -327
  175. package/lib/utils/createDarkTheme.d.ts +0 -2
  176. package/lib/utils/createHighContrastTheme.d.ts +0 -2
  177. package/lib/utils/createLightTheme.d.ts +0 -2
  178. package/lib/utils/createTeamsDarkTheme.d.ts +0 -2
  179. package/lib/utils/index.d.ts +0 -6
  180. package/lib/utils/mergeThemes.d.ts +0 -2
  181. package/lib/utils/mergeThemes.js +0 -14
  182. package/lib/utils/mergeThemes.js.map +0 -1
  183. package/lib/utils/shadows.d.ts +0 -2
  184. package/lib/utils/themeToCSSVariables.d.ts +0 -2
  185. package/lib/utils/themeToCSSVariables.js +0 -12
  186. package/lib/utils/themeToCSSVariables.js.map +0 -1
  187. package/lib-commonjs/alias/dark.d.ts +0 -3
  188. package/lib-commonjs/alias/dark.js +0 -128
  189. package/lib-commonjs/alias/dark.js.map +0 -1
  190. package/lib-commonjs/alias/highContrast.d.ts +0 -3
  191. package/lib-commonjs/alias/highContrast.js +0 -128
  192. package/lib-commonjs/alias/highContrast.js.map +0 -1
  193. package/lib-commonjs/alias/light.d.ts +0 -3
  194. package/lib-commonjs/alias/light.js +0 -128
  195. package/lib-commonjs/alias/light.js.map +0 -1
  196. package/lib-commonjs/alias/teamsDark.d.ts +0 -3
  197. package/lib-commonjs/alias/teamsDark.js +0 -128
  198. package/lib-commonjs/alias/teamsDark.js.map +0 -1
  199. package/lib-commonjs/global/borderRadius.d.ts +0 -2
  200. package/lib-commonjs/global/brandColors.d.ts +0 -3
  201. package/lib-commonjs/global/colors.d.ts +0 -15
  202. package/lib-commonjs/global/fonts.d.ts +0 -5
  203. package/lib-commonjs/global/index.d.ts +0 -4
  204. package/lib-commonjs/global/strokeWidths.d.ts +0 -2
  205. package/lib-commonjs/index.d.ts +0 -3
  206. package/lib-commonjs/themes/index.d.ts +0 -2
  207. package/lib-commonjs/themes/teams/darkTheme.d.ts +0 -2
  208. package/lib-commonjs/themes/teams/highContrastTheme.d.ts +0 -2
  209. package/lib-commonjs/themes/teams/index.d.ts +0 -3
  210. package/lib-commonjs/themes/teams/lightTheme.d.ts +0 -2
  211. package/lib-commonjs/themes/web/darkTheme.d.ts +0 -2
  212. package/lib-commonjs/themes/web/highContrastTheme.d.ts +0 -2
  213. package/lib-commonjs/themes/web/highContrastTheme.js +0 -11
  214. package/lib-commonjs/themes/web/highContrastTheme.js.map +0 -1
  215. package/lib-commonjs/themes/web/index.d.ts +0 -3
  216. package/lib-commonjs/themes/web/lightTheme.d.ts +0 -2
  217. package/lib-commonjs/types.d.ts +0 -327
  218. package/lib-commonjs/utils/createDarkTheme.d.ts +0 -2
  219. package/lib-commonjs/utils/createHighContrastTheme.d.ts +0 -2
  220. package/lib-commonjs/utils/createLightTheme.d.ts +0 -2
  221. package/lib-commonjs/utils/createTeamsDarkTheme.d.ts +0 -2
  222. package/lib-commonjs/utils/index.d.ts +0 -6
  223. package/lib-commonjs/utils/mergeThemes.d.ts +0 -2
  224. package/lib-commonjs/utils/mergeThemes.js +0 -24
  225. package/lib-commonjs/utils/mergeThemes.js.map +0 -1
  226. package/lib-commonjs/utils/shadows.d.ts +0 -2
  227. package/lib-commonjs/utils/themeToCSSVariables.d.ts +0 -2
  228. package/lib-commonjs/utils/themeToCSSVariables.js +0 -21
  229. package/lib-commonjs/utils/themeToCSSVariables.js.map +0 -1
@@ -1,327 +0,0 @@
1
- /**
2
- * Design tokens for alias colors
3
- */
4
- export declare type ColorTokens = {
5
- colorNeutralForeground1: string;
6
- colorNeutralForeground2: string;
7
- colorNeutralForeground2Hover: string;
8
- colorNeutralForeground2Pressed: string;
9
- colorNeutralForeground2Selected: string;
10
- colorNeutralForeground2BrandHover: string;
11
- colorNeutralForeground2BrandPressed: string;
12
- colorNeutralForeground2BrandSelected: string;
13
- colorNeutralForeground3: string;
14
- colorNeutralForeground3Hover: string;
15
- colorNeutralForeground3Pressed: string;
16
- colorNeutralForeground3Selected: string;
17
- colorNeutralForeground3BrandHover: string;
18
- colorNeutralForeground3BrandPressed: string;
19
- colorNeutralForeground3BrandSelected: string;
20
- colorNeutralForeground4: string;
21
- colorNeutralForegroundDisabled: string;
22
- colorBrandForegroundLink: string;
23
- colorBrandForegroundLinkHover: string;
24
- colorBrandForegroundLinkPressed: string;
25
- colorBrandForegroundLinkSelected: string;
26
- colorCompoundBrandForeground1: string;
27
- colorCompoundBrandForeground1Hover: string;
28
- colorCompoundBrandForeground1Pressed: string;
29
- colorBrandForeground1: string;
30
- colorBrandForeground2: string;
31
- colorNeutralForegroundInverted: string;
32
- colorNeutralForegroundOnBrand: string;
33
- colorNeutralForegroundInvertedLink: string;
34
- colorNeutralForegroundInvertedLinkHover: string;
35
- colorNeutralForegroundInvertedLinkPressed: string;
36
- colorNeutralForegroundInvertedLinkSelected: string;
37
- colorNeutralBackground1: string;
38
- colorNeutralBackground1Hover: string;
39
- colorNeutralBackground1Pressed: string;
40
- colorNeutralBackground1Selected: string;
41
- colorNeutralBackground2: string;
42
- colorNeutralBackground2Hover: string;
43
- colorNeutralBackground2Pressed: string;
44
- colorNeutralBackground2Selected: string;
45
- colorNeutralBackground3: string;
46
- colorNeutralBackground3Hover: string;
47
- colorNeutralBackground3Pressed: string;
48
- colorNeutralBackground3Selected: string;
49
- colorNeutralBackground4: string;
50
- colorNeutralBackground4Hover: string;
51
- colorNeutralBackground4Pressed: string;
52
- colorNeutralBackground4Selected: string;
53
- colorNeutralBackground5: string;
54
- colorNeutralBackground5Hover: string;
55
- colorNeutralBackground5Pressed: string;
56
- colorNeutralBackground5Selected: string;
57
- colorNeutralBackground6: string;
58
- colorNeutralBackgroundInverted: string;
59
- colorSubtleBackground: string;
60
- colorSubtleBackgroundHover: string;
61
- colorSubtleBackgroundPressed: string;
62
- colorSubtleBackgroundSelected: string;
63
- colorTransparentBackground: string;
64
- colorTransparentBackgroundHover: string;
65
- colorTransparentBackgroundPressed: string;
66
- colorTransparentBackgroundSelected: string;
67
- colorNeutralBackgroundDisabled: string;
68
- colorNeutralStencil1: string;
69
- colorNeutralStencil2: string;
70
- colorBrandBackground: string;
71
- colorBrandBackgroundHover: string;
72
- colorBrandBackgroundPressed: string;
73
- colorBrandBackgroundSelected: string;
74
- colorCompoundBrandBackground: string;
75
- colorCompoundBrandBackgroundHover: string;
76
- colorCompoundBrandBackgroundPressed: string;
77
- colorBrandBackgroundStatic: string;
78
- colorBrandBackground2: string;
79
- colorNeutralStrokeAccessible: string;
80
- colorNeutralStrokeAccessibleHover: string;
81
- colorNeutralStrokeAccessiblePressed: string;
82
- colorNeutralStrokeAccessibleSelected: string;
83
- colorNeutralStroke1: string;
84
- colorNeutralStroke1Hover: string;
85
- colorNeutralStroke1Pressed: string;
86
- colorNeutralStroke1Selected: string;
87
- colorNeutralStroke2: string;
88
- colorNeutralStroke3: string;
89
- colorBrandStroke1: string;
90
- colorBrandStroke2: string;
91
- colorCompoundBrandStroke: string;
92
- colorCompoundBrandStrokeHover: string;
93
- colorCompoundBrandStrokePressed: string;
94
- colorNeutralStrokeDisabled: string;
95
- colorTransparentStroke: string;
96
- colorTransparentStrokeInteractive: string;
97
- colorTransparentStrokeDisabled: string;
98
- colorStrokeFocus1: string;
99
- colorStrokeFocus2: string;
100
- colorNeutralShadowAmbient: string;
101
- colorNeutralShadowKey: string;
102
- colorNeutralShadowAmbientLighter: string;
103
- colorNeutralShadowKeyLighter: string;
104
- colorNeutralShadowAmbientDarker: string;
105
- colorNeutralShadowKeyDarker: string;
106
- colorBrandShadowAmbient: string;
107
- colorBrandShadowKey: string;
108
- };
109
- export declare type ColorPaletteDarkRed = 'colorPaletteDarkRedBackground1' | 'colorPaletteDarkRedBackground2' | 'colorPaletteDarkRedBackground3' | 'colorPaletteDarkRedForeground1' | 'colorPaletteDarkRedForeground2' | 'colorPaletteDarkRedForeground3' | 'colorPaletteDarkRedBorderActive' | 'colorPaletteDarkRedBorder2';
110
- export declare type ColorPaletteBurgundy = 'colorPaletteBurgundyBackground1' | 'colorPaletteBurgundyBackground2' | 'colorPaletteBurgundyBackground3' | 'colorPaletteBurgundyForeground1' | 'colorPaletteBurgundyForeground2' | 'colorPaletteBurgundyForeground3' | 'colorPaletteBurgundyBorderActive' | 'colorPaletteBurgundyBorder2';
111
- export declare type ColorPaletteCranberry = 'colorPaletteCranberryBackground1' | 'colorPaletteCranberryBackground2' | 'colorPaletteCranberryBackground3' | 'colorPaletteCranberryForeground1' | 'colorPaletteCranberryForeground2' | 'colorPaletteCranberryForeground3' | 'colorPaletteCranberryBorderActive' | 'colorPaletteCranberryBorder2';
112
- export declare type ColorPaletteRed = 'colorPaletteRedBackground1' | 'colorPaletteRedBackground2' | 'colorPaletteRedBackground3' | 'colorPaletteRedForeground1' | 'colorPaletteRedForeground2' | 'colorPaletteRedForeground3' | 'colorPaletteRedBorderActive' | 'colorPaletteRedBorder2';
113
- export declare type ColorPaletteDarkOrange = 'colorPaletteDarkOrangeBackground1' | 'colorPaletteDarkOrangeBackground2' | 'colorPaletteDarkOrangeBackground3' | 'colorPaletteDarkOrangeForeground1' | 'colorPaletteDarkOrangeForeground2' | 'colorPaletteDarkOrangeForeground3' | 'colorPaletteDarkOrangeBorderActive' | 'colorPaletteDarkOrangeBorder2';
114
- export declare type ColorPaletteBronze = 'colorPaletteBronzeBackground1' | 'colorPaletteBronzeBackground2' | 'colorPaletteBronzeBackground3' | 'colorPaletteBronzeForeground1' | 'colorPaletteBronzeForeground2' | 'colorPaletteBronzeForeground3' | 'colorPaletteBronzeBorderActive' | 'colorPaletteBronzeBorder2';
115
- export declare type ColorPalettePumpkin = 'colorPalettePumpkinBackground1' | 'colorPalettePumpkinBackground2' | 'colorPalettePumpkinBackground3' | 'colorPalettePumpkinForeground1' | 'colorPalettePumpkinForeground2' | 'colorPalettePumpkinForeground3' | 'colorPalettePumpkinBorderActive' | 'colorPalettePumpkinBorder2';
116
- export declare type ColorPaletteOrange = 'colorPaletteOrangeBackground1' | 'colorPaletteOrangeBackground2' | 'colorPaletteOrangeBackground3' | 'colorPaletteOrangeForeground1' | 'colorPaletteOrangeForeground2' | 'colorPaletteOrangeForeground3' | 'colorPaletteOrangeBorderActive' | 'colorPaletteOrangeBorder2';
117
- export declare type ColorPalettePeach = 'colorPalettePeachBackground1' | 'colorPalettePeachBackground2' | 'colorPalettePeachBackground3' | 'colorPalettePeachForeground1' | 'colorPalettePeachForeground2' | 'colorPalettePeachForeground3' | 'colorPalettePeachBorderActive' | 'colorPalettePeachBorder2';
118
- export declare type ColorPaletteMarigold = 'colorPaletteMarigoldBackground1' | 'colorPaletteMarigoldBackground2' | 'colorPaletteMarigoldBackground3' | 'colorPaletteMarigoldForeground1' | 'colorPaletteMarigoldForeground2' | 'colorPaletteMarigoldForeground3' | 'colorPaletteMarigoldBorderActive' | 'colorPaletteMarigoldBorder2';
119
- export declare type ColorPaletteYellow = 'colorPaletteYellowBackground1' | 'colorPaletteYellowBackground2' | 'colorPaletteYellowBackground3' | 'colorPaletteYellowForeground1' | 'colorPaletteYellowForeground2' | 'colorPaletteYellowForeground3' | 'colorPaletteYellowBorderActive' | 'colorPaletteYellowBorder2';
120
- export declare type ColorPaletteGold = 'colorPaletteGoldBackground1' | 'colorPaletteGoldBackground2' | 'colorPaletteGoldBackground3' | 'colorPaletteGoldForeground1' | 'colorPaletteGoldForeground2' | 'colorPaletteGoldForeground3' | 'colorPaletteGoldBorderActive' | 'colorPaletteGoldBorder2';
121
- export declare type ColorPaletteBrass = 'colorPaletteBrassBackground1' | 'colorPaletteBrassBackground2' | 'colorPaletteBrassBackground3' | 'colorPaletteBrassForeground1' | 'colorPaletteBrassForeground2' | 'colorPaletteBrassForeground3' | 'colorPaletteBrassBorderActive' | 'colorPaletteBrassBorder2';
122
- export declare type ColorPaletteBrown = 'colorPaletteBrownBackground1' | 'colorPaletteBrownBackground2' | 'colorPaletteBrownBackground3' | 'colorPaletteBrownForeground1' | 'colorPaletteBrownForeground2' | 'colorPaletteBrownForeground3' | 'colorPaletteBrownBorderActive' | 'colorPaletteBrownBorder2';
123
- export declare type ColorPaletteDarkBrown = 'colorPaletteDarkBrownBackground1' | 'colorPaletteDarkBrownBackground2' | 'colorPaletteDarkBrownBackground3' | 'colorPaletteDarkBrownForeground1' | 'colorPaletteDarkBrownForeground2' | 'colorPaletteDarkBrownForeground3' | 'colorPaletteDarkBrownBorderActive' | 'colorPaletteDarkBrownBorder2';
124
- export declare type ColorPaletteLime = 'colorPaletteLimeBackground1' | 'colorPaletteLimeBackground2' | 'colorPaletteLimeBackground3' | 'colorPaletteLimeForeground1' | 'colorPaletteLimeForeground2' | 'colorPaletteLimeForeground3' | 'colorPaletteLimeBorderActive' | 'colorPaletteLimeBorder2';
125
- export declare type ColorPaletteForest = 'colorPaletteForestBackground1' | 'colorPaletteForestBackground2' | 'colorPaletteForestBackground3' | 'colorPaletteForestForeground1' | 'colorPaletteForestForeground2' | 'colorPaletteForestForeground3' | 'colorPaletteForestBorderActive' | 'colorPaletteForestBorder2';
126
- export declare type ColorPaletteSeafoam = 'colorPaletteSeafoamBackground1' | 'colorPaletteSeafoamBackground2' | 'colorPaletteSeafoamBackground3' | 'colorPaletteSeafoamForeground1' | 'colorPaletteSeafoamForeground2' | 'colorPaletteSeafoamForeground3' | 'colorPaletteSeafoamBorderActive' | 'colorPaletteSeafoamBorder2';
127
- export declare type ColorPaletteLightGreen = 'colorPaletteLightGreenBackground1' | 'colorPaletteLightGreenBackground2' | 'colorPaletteLightGreenBackground3' | 'colorPaletteLightGreenForeground1' | 'colorPaletteLightGreenForeground2' | 'colorPaletteLightGreenForeground3' | 'colorPaletteLightGreenBorderActive' | 'colorPaletteLightGreenBorder2';
128
- export declare type ColorPaletteGreen = 'colorPaletteGreenBackground1' | 'colorPaletteGreenBackground2' | 'colorPaletteGreenBackground3' | 'colorPaletteGreenForeground1' | 'colorPaletteGreenForeground2' | 'colorPaletteGreenForeground3' | 'colorPaletteGreenBorderActive' | 'colorPaletteGreenBorder2';
129
- export declare type ColorPaletteDarkGreen = 'colorPaletteDarkGreenBackground1' | 'colorPaletteDarkGreenBackground2' | 'colorPaletteDarkGreenBackground3' | 'colorPaletteDarkGreenForeground1' | 'colorPaletteDarkGreenForeground2' | 'colorPaletteDarkGreenForeground3' | 'colorPaletteDarkGreenBorderActive' | 'colorPaletteDarkGreenBorder2';
130
- export declare type ColorPaletteLightTeal = 'colorPaletteLightTealBackground1' | 'colorPaletteLightTealBackground2' | 'colorPaletteLightTealBackground3' | 'colorPaletteLightTealForeground1' | 'colorPaletteLightTealForeground2' | 'colorPaletteLightTealForeground3' | 'colorPaletteLightTealBorderActive' | 'colorPaletteLightTealBorder2';
131
- export declare type ColorPaletteTeal = 'colorPaletteTealBackground1' | 'colorPaletteTealBackground2' | 'colorPaletteTealBackground3' | 'colorPaletteTealForeground1' | 'colorPaletteTealForeground2' | 'colorPaletteTealForeground3' | 'colorPaletteTealBorderActive' | 'colorPaletteTealBorder2';
132
- export declare type ColorPaletteDarkTeal = 'colorPaletteDarkTealBackground1' | 'colorPaletteDarkTealBackground2' | 'colorPaletteDarkTealBackground3' | 'colorPaletteDarkTealForeground1' | 'colorPaletteDarkTealForeground2' | 'colorPaletteDarkTealForeground3' | 'colorPaletteDarkTealBorderActive' | 'colorPaletteDarkTealBorder2';
133
- export declare type ColorPaletteCyan = 'colorPaletteCyanBackground1' | 'colorPaletteCyanBackground2' | 'colorPaletteCyanBackground3' | 'colorPaletteCyanForeground1' | 'colorPaletteCyanForeground2' | 'colorPaletteCyanForeground3' | 'colorPaletteCyanBorderActive' | 'colorPaletteCyanBorder2';
134
- export declare type ColorPaletteSteel = 'colorPaletteSteelBackground1' | 'colorPaletteSteelBackground2' | 'colorPaletteSteelBackground3' | 'colorPaletteSteelForeground1' | 'colorPaletteSteelForeground2' | 'colorPaletteSteelForeground3' | 'colorPaletteSteelBorderActive' | 'colorPaletteSteelBorder2';
135
- export declare type ColorPaletteLightBlue = 'colorPaletteLightBlueBackground1' | 'colorPaletteLightBlueBackground2' | 'colorPaletteLightBlueBackground3' | 'colorPaletteLightBlueForeground1' | 'colorPaletteLightBlueForeground2' | 'colorPaletteLightBlueForeground3' | 'colorPaletteLightBlueBorderActive' | 'colorPaletteLightBlueBorder2';
136
- export declare type ColorPaletteBlue = 'colorPaletteBlueBackground1' | 'colorPaletteBlueBackground2' | 'colorPaletteBlueBackground3' | 'colorPaletteBlueForeground1' | 'colorPaletteBlueForeground2' | 'colorPaletteBlueForeground3' | 'colorPaletteBlueBorderActive' | 'colorPaletteBlueBorder2';
137
- export declare type ColorPaletteRoyalBlue = 'colorPaletteRoyalBlueBackground1' | 'colorPaletteRoyalBlueBackground2' | 'colorPaletteRoyalBlueBackground3' | 'colorPaletteRoyalBlueForeground1' | 'colorPaletteRoyalBlueForeground2' | 'colorPaletteRoyalBlueForeground3' | 'colorPaletteRoyalBlueBorderActive' | 'colorPaletteRoyalBlueBorder2';
138
- export declare type ColorPaletteDarkBlue = 'colorPaletteDarkBlueBackground1' | 'colorPaletteDarkBlueBackground2' | 'colorPaletteDarkBlueBackground3' | 'colorPaletteDarkBlueForeground1' | 'colorPaletteDarkBlueForeground2' | 'colorPaletteDarkBlueForeground3' | 'colorPaletteDarkBlueBorderActive' | 'colorPaletteDarkBlueBorder2';
139
- export declare type ColorPaletteCornflower = 'colorPaletteCornflowerBackground1' | 'colorPaletteCornflowerBackground2' | 'colorPaletteCornflowerBackground3' | 'colorPaletteCornflowerForeground1' | 'colorPaletteCornflowerForeground2' | 'colorPaletteCornflowerForeground3' | 'colorPaletteCornflowerBorderActive' | 'colorPaletteCornflowerBorder2';
140
- export declare type ColorPaletteNavy = 'colorPaletteNavyBackground1' | 'colorPaletteNavyBackground2' | 'colorPaletteNavyBackground3' | 'colorPaletteNavyForeground1' | 'colorPaletteNavyForeground2' | 'colorPaletteNavyForeground3' | 'colorPaletteNavyBorderActive' | 'colorPaletteNavyBorder2';
141
- export declare type ColorPaletteLavender = 'colorPaletteLavenderBackground1' | 'colorPaletteLavenderBackground2' | 'colorPaletteLavenderBackground3' | 'colorPaletteLavenderForeground1' | 'colorPaletteLavenderForeground2' | 'colorPaletteLavenderForeground3' | 'colorPaletteLavenderBorderActive' | 'colorPaletteLavenderBorder2';
142
- export declare type ColorPalettePurple = 'colorPalettePurpleBackground1' | 'colorPalettePurpleBackground2' | 'colorPalettePurpleBackground3' | 'colorPalettePurpleForeground1' | 'colorPalettePurpleForeground2' | 'colorPalettePurpleForeground3' | 'colorPalettePurpleBorderActive' | 'colorPalettePurpleBorder2';
143
- export declare type ColorPaletteDarkPurple = 'colorPaletteDarkPurpleBackground1' | 'colorPaletteDarkPurpleBackground2' | 'colorPaletteDarkPurpleBackground3' | 'colorPaletteDarkPurpleForeground1' | 'colorPaletteDarkPurpleForeground2' | 'colorPaletteDarkPurpleForeground3' | 'colorPaletteDarkPurpleBorderActive' | 'colorPaletteDarkPurpleBorder2';
144
- export declare type ColorPaletteOrchid = 'colorPaletteOrchidBackground1' | 'colorPaletteOrchidBackground2' | 'colorPaletteOrchidBackground3' | 'colorPaletteOrchidForeground1' | 'colorPaletteOrchidForeground2' | 'colorPaletteOrchidForeground3' | 'colorPaletteOrchidBorderActive' | 'colorPaletteOrchidBorder2';
145
- export declare type ColorPaletteGrape = 'colorPaletteGrapeBackground1' | 'colorPaletteGrapeBackground2' | 'colorPaletteGrapeBackground3' | 'colorPaletteGrapeForeground1' | 'colorPaletteGrapeForeground2' | 'colorPaletteGrapeForeground3' | 'colorPaletteGrapeBorderActive' | 'colorPaletteGrapeBorder2';
146
- export declare type ColorPaletteBerry = 'colorPaletteBerryBackground1' | 'colorPaletteBerryBackground2' | 'colorPaletteBerryBackground3' | 'colorPaletteBerryForeground1' | 'colorPaletteBerryForeground2' | 'colorPaletteBerryForeground3' | 'colorPaletteBerryBorderActive' | 'colorPaletteBerryBorder2';
147
- export declare type ColorPaletteLilac = 'colorPaletteLilacBackground1' | 'colorPaletteLilacBackground2' | 'colorPaletteLilacBackground3' | 'colorPaletteLilacForeground1' | 'colorPaletteLilacForeground2' | 'colorPaletteLilacForeground3' | 'colorPaletteLilacBorderActive' | 'colorPaletteLilacBorder2';
148
- export declare type ColorPalettePink = 'colorPalettePinkBackground1' | 'colorPalettePinkBackground2' | 'colorPalettePinkBackground3' | 'colorPalettePinkForeground1' | 'colorPalettePinkForeground2' | 'colorPalettePinkForeground3' | 'colorPalettePinkBorderActive' | 'colorPalettePinkBorder2';
149
- export declare type ColorPaletteHotPink = 'colorPaletteHotPinkBackground1' | 'colorPaletteHotPinkBackground2' | 'colorPaletteHotPinkBackground3' | 'colorPaletteHotPinkForeground1' | 'colorPaletteHotPinkForeground2' | 'colorPaletteHotPinkForeground3' | 'colorPaletteHotPinkBorderActive' | 'colorPaletteHotPinkBorder2';
150
- export declare type ColorPaletteMagenta = 'colorPaletteMagentaBackground1' | 'colorPaletteMagentaBackground2' | 'colorPaletteMagentaBackground3' | 'colorPaletteMagentaForeground1' | 'colorPaletteMagentaForeground2' | 'colorPaletteMagentaForeground3' | 'colorPaletteMagentaBorderActive' | 'colorPaletteMagentaBorder2';
151
- export declare type ColorPalettePlum = 'colorPalettePlumBackground1' | 'colorPalettePlumBackground2' | 'colorPalettePlumBackground3' | 'colorPalettePlumForeground1' | 'colorPalettePlumForeground2' | 'colorPalettePlumForeground3' | 'colorPalettePlumBorderActive' | 'colorPalettePlumBorder2';
152
- export declare type ColorPaletteBeige = 'colorPaletteBeigeBackground1' | 'colorPaletteBeigeBackground2' | 'colorPaletteBeigeBackground3' | 'colorPaletteBeigeForeground1' | 'colorPaletteBeigeForeground2' | 'colorPaletteBeigeForeground3' | 'colorPaletteBeigeBorderActive' | 'colorPaletteBeigeBorder2';
153
- export declare type ColorPaletteMink = 'colorPaletteMinkBackground1' | 'colorPaletteMinkBackground2' | 'colorPaletteMinkBackground3' | 'colorPaletteMinkForeground1' | 'colorPaletteMinkForeground2' | 'colorPaletteMinkForeground3' | 'colorPaletteMinkBorderActive' | 'colorPaletteMinkBorder2';
154
- export declare type ColorPaletteSilver = 'colorPaletteSilverBackground1' | 'colorPaletteSilverBackground2' | 'colorPaletteSilverBackground3' | 'colorPaletteSilverForeground1' | 'colorPaletteSilverForeground2' | 'colorPaletteSilverForeground3' | 'colorPaletteSilverBorderActive' | 'colorPaletteSilverBorder2';
155
- export declare type ColorPalettePlatinum = 'colorPalettePlatinumBackground1' | 'colorPalettePlatinumBackground2' | 'colorPalettePlatinumBackground3' | 'colorPalettePlatinumForeground1' | 'colorPalettePlatinumForeground2' | 'colorPalettePlatinumForeground3' | 'colorPalettePlatinumBorderActive' | 'colorPalettePlatinumBorder2';
156
- export declare type ColorPaletteAnchor = 'colorPaletteAnchorBackground1' | 'colorPaletteAnchorBackground2' | 'colorPaletteAnchorBackground3' | 'colorPaletteAnchorForeground1' | 'colorPaletteAnchorForeground2' | 'colorPaletteAnchorForeground3' | 'colorPaletteAnchorBorderActive' | 'colorPaletteAnchorBorder2';
157
- export declare type ColorPaletteCharcoal = 'colorPaletteCharcoalBackground1' | 'colorPaletteCharcoalBackground2' | 'colorPaletteCharcoalBackground3' | 'colorPaletteCharcoalForeground1' | 'colorPaletteCharcoalForeground2' | 'colorPaletteCharcoalForeground3' | 'colorPaletteCharcoalBorderActive' | 'colorPaletteCharcoalBorder2';
158
- export declare type ColorPaletteTokens = Record<ColorPaletteDarkRed | ColorPaletteBurgundy | ColorPaletteCranberry | ColorPaletteRed | ColorPaletteDarkOrange | ColorPaletteBronze | ColorPalettePumpkin | ColorPaletteOrange | ColorPalettePeach | ColorPaletteMarigold | ColorPaletteYellow | ColorPaletteGold | ColorPaletteBrass | ColorPaletteBrown | ColorPaletteDarkBrown | ColorPaletteLime | ColorPaletteForest | ColorPaletteSeafoam | ColorPaletteLightGreen | ColorPaletteGreen | ColorPaletteDarkGreen | ColorPaletteLightTeal | ColorPaletteTeal | ColorPaletteDarkTeal | ColorPaletteCyan | ColorPaletteSteel | ColorPaletteLightBlue | ColorPaletteBlue | ColorPaletteRoyalBlue | ColorPaletteDarkBlue | ColorPaletteCornflower | ColorPaletteNavy | ColorPaletteLavender | ColorPalettePurple | ColorPaletteDarkPurple | ColorPaletteOrchid | ColorPaletteGrape | ColorPaletteBerry | ColorPaletteLilac | ColorPalettePink | ColorPaletteHotPink | ColorPaletteMagenta | ColorPalettePlum | ColorPaletteBeige | ColorPaletteMink | ColorPaletteSilver | ColorPalettePlatinum | ColorPaletteAnchor | ColorPaletteCharcoal, string>;
159
- /**
160
- * Possible color variant values
161
- */
162
- export declare type ColorVariants = {
163
- shade50: string;
164
- shade40: string;
165
- shade30: string;
166
- shade20: string;
167
- shade10: string;
168
- primary: string;
169
- tint10: string;
170
- tint20: string;
171
- tint30: string;
172
- tint40: string;
173
- tint50: string;
174
- tint60: string;
175
- };
176
- export declare type BrandVariants = ColorVariants & {
177
- shade60: string;
178
- };
179
- /**
180
- * All the global shared colors and their shade/tint variants
181
- */
182
- export declare type GlobalSharedColors = {
183
- darkRed: ColorVariants;
184
- burgundy: ColorVariants;
185
- cranberry: ColorVariants;
186
- red: ColorVariants;
187
- darkOrange: ColorVariants;
188
- bronze: ColorVariants;
189
- pumpkin: ColorVariants;
190
- orange: ColorVariants;
191
- peach: ColorVariants;
192
- marigold: ColorVariants;
193
- yellow: ColorVariants;
194
- gold: ColorVariants;
195
- brass: ColorVariants;
196
- brown: ColorVariants;
197
- darkBrown: ColorVariants;
198
- lime: ColorVariants;
199
- forest: ColorVariants;
200
- seafoam: ColorVariants;
201
- lightGreen: ColorVariants;
202
- green: ColorVariants;
203
- darkGreen: ColorVariants;
204
- lightTeal: ColorVariants;
205
- teal: ColorVariants;
206
- darkTeal: ColorVariants;
207
- cyan: ColorVariants;
208
- steel: ColorVariants;
209
- lightBlue: ColorVariants;
210
- blue: ColorVariants;
211
- royalBlue: ColorVariants;
212
- darkBlue: ColorVariants;
213
- cornflower: ColorVariants;
214
- navy: ColorVariants;
215
- lavender: ColorVariants;
216
- purple: ColorVariants;
217
- darkPurple: ColorVariants;
218
- orchid: ColorVariants;
219
- grape: ColorVariants;
220
- berry: ColorVariants;
221
- lilac: ColorVariants;
222
- pink: ColorVariants;
223
- hotPink: ColorVariants;
224
- magenta: ColorVariants;
225
- plum: ColorVariants;
226
- beige: ColorVariants;
227
- mink: ColorVariants;
228
- silver: ColorVariants;
229
- platinum: ColorVariants;
230
- anchor: ColorVariants;
231
- charcoal: ColorVariants;
232
- };
233
- export declare type FontSizeTokens = {
234
- fontSizeBase100: string;
235
- fontSizeBase200: string;
236
- fontSizeBase300: string;
237
- fontSizeBase400: string;
238
- fontSizeBase500: string;
239
- fontSizeBase600: string;
240
- fontSizeHero700: string;
241
- fontSizeHero800: string;
242
- fontSizeHero900: string;
243
- fontSizeHero1000: string;
244
- };
245
- export declare type LineHeightTokens = {
246
- lineHeightBase100: string;
247
- lineHeightBase200: string;
248
- lineHeightBase300: string;
249
- lineHeightBase400: string;
250
- lineHeightBase500: string;
251
- lineHeightBase600: string;
252
- lineHeightHero700: string;
253
- lineHeightHero800: string;
254
- lineHeightHero900: string;
255
- lineHeightHero1000: string;
256
- };
257
- export declare type FontWeightTokens = {
258
- fontWeightRegular: number;
259
- fontWeightMedium: number;
260
- fontWeightSemibold: number;
261
- };
262
- export declare type FontFamilyTokens = {
263
- fontFamilyBase: string;
264
- fontFamilyMonospace: string;
265
- fontFamilyNumeric: string;
266
- };
267
- export declare type TextAlignment = 'inherit' | 'initial' | 'revert' | 'unset' | 'center' | 'end' | 'start' | 'justify' | 'left' | 'match-parent' | 'right';
268
- export declare type TextAlignments = {
269
- start: TextAlignment;
270
- center: TextAlignment;
271
- end: TextAlignment;
272
- justify: TextAlignment;
273
- };
274
- export declare type BorderRadiusTokens = {
275
- borderRadiusNone: string;
276
- borderRadiusSmall: string;
277
- borderRadiusMedium: string;
278
- borderRadiusLarge: string;
279
- borderRadiusXLarge: string;
280
- borderRadiusCircular: string;
281
- };
282
- export declare type StrokeWidthTokens = {
283
- strokeWidthThin: string;
284
- strokeWidthThick: string;
285
- strokeWidthThicker: string;
286
- strokeWidthThickest: string;
287
- };
288
- /**
289
- * Design tokens for shadow levels
290
- */
291
- export declare type ShadowTokens = {
292
- shadow2: string;
293
- shadow4: string;
294
- shadow8: string;
295
- shadow16: string;
296
- shadow28: string;
297
- shadow64: string;
298
- };
299
- export declare type GhostColorTokens = {
300
- ghostBackground: string;
301
- ghostBackgroundHover: string;
302
- ghostBackgroundPressed: string;
303
- ghostBackgroundSelected: string;
304
- };
305
- export declare type TransparentColorTokens = {
306
- transparentBackground: string;
307
- transparentBackgroundHover: string;
308
- transparentBackgroundPressed: string;
309
- transparentBackgroundSelected: string;
310
- };
311
- export declare type BackgroundColorTokens = {
312
- background: string;
313
- backgroundHover: string;
314
- backgroundPressed: string;
315
- backgroundSelected: string;
316
- };
317
- export declare type BrandColorTokens = {
318
- brandBackground: string;
319
- brandBackgroundHover: string;
320
- brandBackgroundPressed: string;
321
- brandBackgroundSelected: string;
322
- brandBackgroundStatic: string;
323
- };
324
- export declare type Greys = 0 | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 48 | 50 | 52 | 54 | 56 | 58 | 60 | 62 | 64 | 66 | 68 | 70 | 72 | 74 | 76 | 78 | 80 | 82 | 84 | 86 | 88 | 90 | 92 | 94 | 96 | 98 | 100;
325
- export declare type AlphaColors = 5 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
326
- export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & ShadowTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens;
327
- export declare type PartialTheme = Partial<Theme>;
@@ -1,2 +0,0 @@
1
- import type { BrandVariants, Theme } from '../types';
2
- export declare const createDarkTheme: (brand: BrandVariants) => Theme;
@@ -1,2 +0,0 @@
1
- import type { Theme } from '../types';
2
- export declare const createHighContrastTheme: () => Theme;
@@ -1,2 +0,0 @@
1
- import type { BrandVariants, Theme } from '../types';
2
- export declare const createLightTheme: (brand: BrandVariants) => Theme;
@@ -1,2 +0,0 @@
1
- import type { BrandVariants, Theme } from '../types';
2
- export declare const createTeamsDarkTheme: (brand: BrandVariants) => Theme;
@@ -1,6 +0,0 @@
1
- export * from './createLightTheme';
2
- export * from './createDarkTheme';
3
- export * from './createTeamsDarkTheme';
4
- export * from './createHighContrastTheme';
5
- export { mergeThemes } from './mergeThemes';
6
- export * from './themeToCSSVariables';
@@ -1,2 +0,0 @@
1
- import type { PartialTheme, Theme } from '../types';
2
- export declare function mergeThemes(a: Theme | undefined, b: PartialTheme | Theme | undefined): Theme;
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.mergeThemes = void 0;
7
-
8
- var tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
- function mergeThemes(a, b) {
11
- // Merge impacts perf: we should like to avoid it if it's possible
12
- if (a && b) {
13
- return tslib_1.__assign(tslib_1.__assign({}, a), b);
14
- }
15
-
16
- if (a) {
17
- return a;
18
- }
19
-
20
- return b;
21
- }
22
-
23
- exports.mergeThemes = mergeThemes;
24
- //# sourceMappingURL=mergeThemes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/utils/mergeThemes.ts"],"names":[],"mappings":";;;;;;;;;AAEA,SAAgB,WAAhB,CAA4B,CAA5B,EAAkD,CAAlD,EAAqF;AACnF;AACA,MAAI,CAAC,IAAI,CAAT,EAAY;AACV,WAAA,OAAA,CAAA,QAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,EAAY,CAAZ,CAAA,EAAkB,CAAlB,CAAA;AACD;;AAED,MAAI,CAAJ,EAAO;AACL,WAAO,CAAP;AACD;;AAED,SAAO,CAAP;AACD;;AAXD,OAAA,CAAA,WAAA,GAAA,WAAA","sourceRoot":""}
@@ -1,2 +0,0 @@
1
- import type { ShadowTokens } from '../types';
2
- export declare function createShadowTokens(ambientColor: string, keyColor: string): ShadowTokens;
@@ -1,2 +0,0 @@
1
- import type { Theme } from '../types';
2
- export declare function themeToCSSVariables(theme: Theme): Record<string, string | number>;
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.themeToCSSVariables = void 0;
7
-
8
- function themeToCSSVariables(theme) {
9
- var result = {};
10
-
11
- for (var propertyName in theme) {
12
- if (Object.prototype.hasOwnProperty.call(theme, propertyName)) {
13
- result["--" + propertyName] = theme[propertyName];
14
- }
15
- }
16
-
17
- return result;
18
- }
19
-
20
- exports.themeToCSSVariables = themeToCSSVariables;
21
- //# sourceMappingURL=themeToCSSVariables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/utils/themeToCSSVariables.ts"],"names":[],"mappings":";;;;;;;AAEA,SAAgB,mBAAhB,CAAoC,KAApC,EAAgD;AAC9C,MAAM,MAAM,GAA2C,EAAvD;;AAEA,OAAK,IAAM,YAAX,IAA2B,KAA3B,EAAkC;AAChC,QAAI,MAAM,CAAC,SAAP,CAAiB,cAAjB,CAAgC,IAAhC,CAAqC,KAArC,EAA4C,YAA5C,CAAJ,EAA+D;AAC7D,MAAA,MAAM,CAAC,OAAK,YAAN,CAAN,GAA8B,KAAK,CAAC,YAAD,CAAnC;AACD;AACF;;AAED,SAAO,MAAP;AACD;;AAVD,OAAA,CAAA,mBAAA,GAAA,mBAAA","sourceRoot":""}