@fluentui/react-theme 9.0.0-alpha.23

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 (277) hide show
  1. package/CHANGELOG.json +786 -0
  2. package/CHANGELOG.md +317 -0
  3. package/LICENSE +15 -0
  4. package/README.md +5 -0
  5. package/dist/react-theme.d.ts +425 -0
  6. package/lib/alias/dark.d.ts +3 -0
  7. package/lib/alias/dark.js +123 -0
  8. package/lib/alias/dark.js.map +1 -0
  9. package/lib/alias/highContrast.d.ts +3 -0
  10. package/lib/alias/highContrast.js +123 -0
  11. package/lib/alias/highContrast.js.map +1 -0
  12. package/lib/alias/light.d.ts +3 -0
  13. package/lib/alias/light.js +123 -0
  14. package/lib/alias/light.js.map +1 -0
  15. package/lib/alias/teamsDark.d.ts +3 -0
  16. package/lib/alias/teamsDark.js +123 -0
  17. package/lib/alias/teamsDark.js.map +1 -0
  18. package/lib/global/borderRadius.d.ts +2 -0
  19. package/lib/global/borderRadius.js +9 -0
  20. package/lib/global/borderRadius.js.map +1 -0
  21. package/lib/global/brandColors.d.ts +4 -0
  22. package/lib/global/brandColors.js +37 -0
  23. package/lib/global/brandColors.js.map +1 -0
  24. package/lib/global/colors.d.ts +15 -0
  25. package/lib/global/colors.js +825 -0
  26. package/lib/global/colors.js.map +1 -0
  27. package/lib/global/fonts.d.ts +6 -0
  28. package/lib/global/fonts.js +51 -0
  29. package/lib/global/fonts.js.map +1 -0
  30. package/lib/global/index.d.ts +5 -0
  31. package/lib/global/index.js +6 -0
  32. package/lib/global/index.js.map +1 -0
  33. package/lib/global/strokeWidths.d.ts +2 -0
  34. package/lib/global/strokeWidths.js +7 -0
  35. package/lib/global/strokeWidths.js.map +1 -0
  36. package/lib/global/utils.d.ts +2 -0
  37. package/lib/global/utils.js +37 -0
  38. package/lib/global/utils.js.map +1 -0
  39. package/lib/index.d.ts +4 -0
  40. package/lib/index.js +5 -0
  41. package/lib/index.js.map +1 -0
  42. package/lib/themes/index.d.ts +2 -0
  43. package/lib/themes/index.js +3 -0
  44. package/lib/themes/index.js.map +1 -0
  45. package/lib/themes/teams/darkTheme.d.ts +2 -0
  46. package/lib/themes/teams/darkTheme.js +4 -0
  47. package/lib/themes/teams/darkTheme.js.map +1 -0
  48. package/lib/themes/teams/highContrastTheme.d.ts +2 -0
  49. package/lib/themes/teams/highContrastTheme.js +4 -0
  50. package/lib/themes/teams/highContrastTheme.js.map +1 -0
  51. package/lib/themes/teams/index.d.ts +3 -0
  52. package/lib/themes/teams/index.js +4 -0
  53. package/lib/themes/teams/index.js.map +1 -0
  54. package/lib/themes/teams/lightTheme.d.ts +2 -0
  55. package/lib/themes/teams/lightTheme.js +4 -0
  56. package/lib/themes/teams/lightTheme.js.map +1 -0
  57. package/lib/themes/web/darkTheme.d.ts +2 -0
  58. package/lib/themes/web/darkTheme.js +4 -0
  59. package/lib/themes/web/darkTheme.js.map +1 -0
  60. package/lib/themes/web/highContrastTheme.d.ts +2 -0
  61. package/lib/themes/web/highContrastTheme.js +4 -0
  62. package/lib/themes/web/highContrastTheme.js.map +1 -0
  63. package/lib/themes/web/index.d.ts +3 -0
  64. package/lib/themes/web/index.js +4 -0
  65. package/lib/themes/web/index.js.map +1 -0
  66. package/lib/themes/web/lightTheme.d.ts +2 -0
  67. package/lib/themes/web/lightTheme.js +4 -0
  68. package/lib/themes/web/lightTheme.js.map +1 -0
  69. package/lib/tsdoc-metadata.json +11 -0
  70. package/lib/types.d.ts +333 -0
  71. package/lib/types.js +2 -0
  72. package/lib/types.js.map +1 -0
  73. package/lib/utils/createDarkTheme.d.ts +2 -0
  74. package/lib/utils/createDarkTheme.js +17 -0
  75. package/lib/utils/createDarkTheme.js.map +1 -0
  76. package/lib/utils/createHighContrastTheme.d.ts +2 -0
  77. package/lib/utils/createHighContrastTheme.js +17 -0
  78. package/lib/utils/createHighContrastTheme.js.map +1 -0
  79. package/lib/utils/createLightTheme.d.ts +2 -0
  80. package/lib/utils/createLightTheme.js +17 -0
  81. package/lib/utils/createLightTheme.js.map +1 -0
  82. package/lib/utils/createTeamsDarkTheme.d.ts +2 -0
  83. package/lib/utils/createTeamsDarkTheme.js +17 -0
  84. package/lib/utils/createTeamsDarkTheme.js.map +1 -0
  85. package/lib/utils/index.d.ts +6 -0
  86. package/lib/utils/index.js +7 -0
  87. package/lib/utils/index.js.map +1 -0
  88. package/lib/utils/mergeThemes.d.ts +8 -0
  89. package/lib/utils/mergeThemes.js +71 -0
  90. package/lib/utils/mergeThemes.js.map +1 -0
  91. package/lib/utils/shadows.d.ts +2 -0
  92. package/lib/utils/shadows.js +11 -0
  93. package/lib/utils/shadows.js.map +1 -0
  94. package/lib/utils/themeToCSSVariables.d.ts +2 -0
  95. package/lib/utils/themeToCSSVariables.js +29 -0
  96. package/lib/utils/themeToCSSVariables.js.map +1 -0
  97. package/lib-amd/alias/dark.d.ts +3 -0
  98. package/lib-amd/alias/dark.js +129 -0
  99. package/lib-amd/alias/dark.js.map +1 -0
  100. package/lib-amd/alias/highContrast.d.ts +3 -0
  101. package/lib-amd/alias/highContrast.js +129 -0
  102. package/lib-amd/alias/highContrast.js.map +1 -0
  103. package/lib-amd/alias/light.d.ts +3 -0
  104. package/lib-amd/alias/light.js +129 -0
  105. package/lib-amd/alias/light.js.map +1 -0
  106. package/lib-amd/alias/teamsDark.d.ts +3 -0
  107. package/lib-amd/alias/teamsDark.js +129 -0
  108. package/lib-amd/alias/teamsDark.js.map +1 -0
  109. package/lib-amd/global/borderRadius.d.ts +2 -0
  110. package/lib-amd/global/borderRadius.js +14 -0
  111. package/lib-amd/global/borderRadius.js.map +1 -0
  112. package/lib-amd/global/brandColors.d.ts +4 -0
  113. package/lib-amd/global/brandColors.js +42 -0
  114. package/lib-amd/global/brandColors.js.map +1 -0
  115. package/lib-amd/global/colors.d.ts +15 -0
  116. package/lib-amd/global/colors.js +830 -0
  117. package/lib-amd/global/colors.js.map +1 -0
  118. package/lib-amd/global/fonts.d.ts +6 -0
  119. package/lib-amd/global/fonts.js +58 -0
  120. package/lib-amd/global/fonts.js.map +1 -0
  121. package/lib-amd/global/index.d.ts +5 -0
  122. package/lib-amd/global/index.js +10 -0
  123. package/lib-amd/global/index.js.map +1 -0
  124. package/lib-amd/global/strokeWidths.d.ts +2 -0
  125. package/lib-amd/global/strokeWidths.js +12 -0
  126. package/lib-amd/global/strokeWidths.js.map +1 -0
  127. package/lib-amd/global/utils.d.ts +2 -0
  128. package/lib-amd/global/utils.js +35 -0
  129. package/lib-amd/global/utils.js.map +1 -0
  130. package/lib-amd/index.d.ts +4 -0
  131. package/lib-amd/index.js +9 -0
  132. package/lib-amd/index.js.map +1 -0
  133. package/lib-amd/themes/index.d.ts +2 -0
  134. package/lib-amd/themes/index.js +7 -0
  135. package/lib-amd/themes/index.js.map +1 -0
  136. package/lib-amd/themes/teams/darkTheme.d.ts +2 -0
  137. package/lib-amd/themes/teams/darkTheme.js +7 -0
  138. package/lib-amd/themes/teams/darkTheme.js.map +1 -0
  139. package/lib-amd/themes/teams/highContrastTheme.d.ts +2 -0
  140. package/lib-amd/themes/teams/highContrastTheme.js +7 -0
  141. package/lib-amd/themes/teams/highContrastTheme.js.map +1 -0
  142. package/lib-amd/themes/teams/index.d.ts +3 -0
  143. package/lib-amd/themes/teams/index.js +8 -0
  144. package/lib-amd/themes/teams/index.js.map +1 -0
  145. package/lib-amd/themes/teams/lightTheme.d.ts +2 -0
  146. package/lib-amd/themes/teams/lightTheme.js +7 -0
  147. package/lib-amd/themes/teams/lightTheme.js.map +1 -0
  148. package/lib-amd/themes/web/darkTheme.d.ts +2 -0
  149. package/lib-amd/themes/web/darkTheme.js +7 -0
  150. package/lib-amd/themes/web/darkTheme.js.map +1 -0
  151. package/lib-amd/themes/web/highContrastTheme.d.ts +2 -0
  152. package/lib-amd/themes/web/highContrastTheme.js +7 -0
  153. package/lib-amd/themes/web/highContrastTheme.js.map +1 -0
  154. package/lib-amd/themes/web/index.d.ts +3 -0
  155. package/lib-amd/themes/web/index.js +8 -0
  156. package/lib-amd/themes/web/index.js.map +1 -0
  157. package/lib-amd/themes/web/lightTheme.d.ts +2 -0
  158. package/lib-amd/themes/web/lightTheme.js +7 -0
  159. package/lib-amd/themes/web/lightTheme.js.map +1 -0
  160. package/lib-amd/types.d.ts +333 -0
  161. package/lib-amd/types.js +5 -0
  162. package/lib-amd/types.js.map +1 -0
  163. package/lib-amd/utils/createDarkTheme.d.ts +2 -0
  164. package/lib-amd/utils/createDarkTheme.js +17 -0
  165. package/lib-amd/utils/createDarkTheme.js.map +1 -0
  166. package/lib-amd/utils/createHighContrastTheme.d.ts +2 -0
  167. package/lib-amd/utils/createHighContrastTheme.js +17 -0
  168. package/lib-amd/utils/createHighContrastTheme.js.map +1 -0
  169. package/lib-amd/utils/createLightTheme.d.ts +2 -0
  170. package/lib-amd/utils/createLightTheme.js +17 -0
  171. package/lib-amd/utils/createLightTheme.js.map +1 -0
  172. package/lib-amd/utils/createTeamsDarkTheme.d.ts +2 -0
  173. package/lib-amd/utils/createTeamsDarkTheme.js +17 -0
  174. package/lib-amd/utils/createTeamsDarkTheme.js.map +1 -0
  175. package/lib-amd/utils/index.d.ts +6 -0
  176. package/lib-amd/utils/index.js +12 -0
  177. package/lib-amd/utils/index.js.map +1 -0
  178. package/lib-amd/utils/mergeThemes.d.ts +8 -0
  179. package/lib-amd/utils/mergeThemes.js +66 -0
  180. package/lib-amd/utils/mergeThemes.js.map +1 -0
  181. package/lib-amd/utils/shadows.d.ts +2 -0
  182. package/lib-amd/utils/shadows.js +17 -0
  183. package/lib-amd/utils/shadows.js.map +1 -0
  184. package/lib-amd/utils/themeToCSSVariables.d.ts +2 -0
  185. package/lib-amd/utils/themeToCSSVariables.js +28 -0
  186. package/lib-amd/utils/themeToCSSVariables.js.map +1 -0
  187. package/lib-commonjs/alias/dark.d.ts +3 -0
  188. package/lib-commonjs/alias/dark.js +132 -0
  189. package/lib-commonjs/alias/dark.js.map +1 -0
  190. package/lib-commonjs/alias/highContrast.d.ts +3 -0
  191. package/lib-commonjs/alias/highContrast.js +132 -0
  192. package/lib-commonjs/alias/highContrast.js.map +1 -0
  193. package/lib-commonjs/alias/light.d.ts +3 -0
  194. package/lib-commonjs/alias/light.js +132 -0
  195. package/lib-commonjs/alias/light.js.map +1 -0
  196. package/lib-commonjs/alias/teamsDark.d.ts +3 -0
  197. package/lib-commonjs/alias/teamsDark.js +132 -0
  198. package/lib-commonjs/alias/teamsDark.js.map +1 -0
  199. package/lib-commonjs/global/borderRadius.d.ts +2 -0
  200. package/lib-commonjs/global/borderRadius.js +15 -0
  201. package/lib-commonjs/global/borderRadius.js.map +1 -0
  202. package/lib-commonjs/global/brandColors.d.ts +4 -0
  203. package/lib-commonjs/global/brandColors.js +43 -0
  204. package/lib-commonjs/global/brandColors.js.map +1 -0
  205. package/lib-commonjs/global/colors.d.ts +15 -0
  206. package/lib-commonjs/global/colors.js +831 -0
  207. package/lib-commonjs/global/colors.js.map +1 -0
  208. package/lib-commonjs/global/fonts.d.ts +6 -0
  209. package/lib-commonjs/global/fonts.js +57 -0
  210. package/lib-commonjs/global/fonts.js.map +1 -0
  211. package/lib-commonjs/global/index.d.ts +5 -0
  212. package/lib-commonjs/global/index.js +18 -0
  213. package/lib-commonjs/global/index.js.map +1 -0
  214. package/lib-commonjs/global/strokeWidths.d.ts +2 -0
  215. package/lib-commonjs/global/strokeWidths.js +13 -0
  216. package/lib-commonjs/global/strokeWidths.js.map +1 -0
  217. package/lib-commonjs/global/utils.d.ts +2 -0
  218. package/lib-commonjs/global/utils.js +51 -0
  219. package/lib-commonjs/global/utils.js.map +1 -0
  220. package/lib-commonjs/index.d.ts +4 -0
  221. package/lib-commonjs/index.js +16 -0
  222. package/lib-commonjs/index.js.map +1 -0
  223. package/lib-commonjs/themes/index.d.ts +2 -0
  224. package/lib-commonjs/themes/index.js +12 -0
  225. package/lib-commonjs/themes/index.js.map +1 -0
  226. package/lib-commonjs/themes/teams/darkTheme.d.ts +2 -0
  227. package/lib-commonjs/themes/teams/darkTheme.js +13 -0
  228. package/lib-commonjs/themes/teams/darkTheme.js.map +1 -0
  229. package/lib-commonjs/themes/teams/highContrastTheme.d.ts +2 -0
  230. package/lib-commonjs/themes/teams/highContrastTheme.js +13 -0
  231. package/lib-commonjs/themes/teams/highContrastTheme.js.map +1 -0
  232. package/lib-commonjs/themes/teams/index.d.ts +3 -0
  233. package/lib-commonjs/themes/teams/index.js +14 -0
  234. package/lib-commonjs/themes/teams/index.js.map +1 -0
  235. package/lib-commonjs/themes/teams/lightTheme.d.ts +2 -0
  236. package/lib-commonjs/themes/teams/lightTheme.js +13 -0
  237. package/lib-commonjs/themes/teams/lightTheme.js.map +1 -0
  238. package/lib-commonjs/themes/web/darkTheme.d.ts +2 -0
  239. package/lib-commonjs/themes/web/darkTheme.js +13 -0
  240. package/lib-commonjs/themes/web/darkTheme.js.map +1 -0
  241. package/lib-commonjs/themes/web/highContrastTheme.d.ts +2 -0
  242. package/lib-commonjs/themes/web/highContrastTheme.js +13 -0
  243. package/lib-commonjs/themes/web/highContrastTheme.js.map +1 -0
  244. package/lib-commonjs/themes/web/index.d.ts +3 -0
  245. package/lib-commonjs/themes/web/index.js +14 -0
  246. package/lib-commonjs/themes/web/index.js.map +1 -0
  247. package/lib-commonjs/themes/web/lightTheme.d.ts +2 -0
  248. package/lib-commonjs/themes/web/lightTheme.js +13 -0
  249. package/lib-commonjs/themes/web/lightTheme.js.map +1 -0
  250. package/lib-commonjs/types.d.ts +333 -0
  251. package/lib-commonjs/types.js +6 -0
  252. package/lib-commonjs/types.js.map +1 -0
  253. package/lib-commonjs/utils/createDarkTheme.d.ts +2 -0
  254. package/lib-commonjs/utils/createDarkTheme.js +30 -0
  255. package/lib-commonjs/utils/createDarkTheme.js.map +1 -0
  256. package/lib-commonjs/utils/createHighContrastTheme.d.ts +2 -0
  257. package/lib-commonjs/utils/createHighContrastTheme.js +30 -0
  258. package/lib-commonjs/utils/createHighContrastTheme.js.map +1 -0
  259. package/lib-commonjs/utils/createLightTheme.d.ts +2 -0
  260. package/lib-commonjs/utils/createLightTheme.js +30 -0
  261. package/lib-commonjs/utils/createLightTheme.js.map +1 -0
  262. package/lib-commonjs/utils/createTeamsDarkTheme.d.ts +2 -0
  263. package/lib-commonjs/utils/createTeamsDarkTheme.js +30 -0
  264. package/lib-commonjs/utils/createTeamsDarkTheme.js.map +1 -0
  265. package/lib-commonjs/utils/index.d.ts +6 -0
  266. package/lib-commonjs/utils/index.js +28 -0
  267. package/lib-commonjs/utils/index.js.map +1 -0
  268. package/lib-commonjs/utils/mergeThemes.d.ts +8 -0
  269. package/lib-commonjs/utils/mergeThemes.js +81 -0
  270. package/lib-commonjs/utils/mergeThemes.js.map +1 -0
  271. package/lib-commonjs/utils/shadows.d.ts +2 -0
  272. package/lib-commonjs/utils/shadows.js +20 -0
  273. package/lib-commonjs/utils/shadows.js.map +1 -0
  274. package/lib-commonjs/utils/themeToCSSVariables.d.ts +2 -0
  275. package/lib-commonjs/utils/themeToCSSVariables.js +38 -0
  276. package/lib-commonjs/utils/themeToCSSVariables.js.map +1 -0
  277. package/package.json +52 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["utils/shadows.ts"],"names":[],"mappings":";;;;;;;AAEA,SAAgB,uBAAhB,CAAwC,YAAxC,EAA8D,QAA9D,EAA8E;AAC5E,SAAO;AACL,IAAA,OAAO,EAAE,aAAW,YAAX,GAAuB,cAAvB,GAAsC,QAD1C;AAEL,IAAA,OAAO,EAAE,aAAW,YAAX,GAAuB,cAAvB,GAAsC,QAF1C;AAGL,IAAA,OAAO,EAAE,aAAW,YAAX,GAAuB,cAAvB,GAAsC,QAH1C;AAIL,IAAA,QAAQ,EAAE,aAAW,YAAX,GAAuB,eAAvB,GAAuC,QAJ5C;AAKL,IAAA,QAAQ,EAAE,aAAW,YAAX,GAAuB,gBAAvB,GAAwC,QAL7C;AAML,IAAA,QAAQ,EAAE,aAAW,YAAX,GAAuB,gBAAvB,GAAwC;AAN7C,GAAP;AAQD;;AATD,OAAA,CAAA,uBAAA,GAAA,uBAAA","sourcesContent":["import type { ShadowLevelTokens } from '../types';\n\nexport function createShadowLevelTokens(ambientColor: string, keyColor: string): ShadowLevelTokens {\n return {\n shadow2: `0 0 2px ${ambientColor}, 0 1px 2px ${keyColor}`,\n shadow4: `0 0 2px ${ambientColor}, 0 2px 4px ${keyColor}`,\n shadow8: `0 0 2px ${ambientColor}, 0 4px 8px ${keyColor}`,\n shadow16: `0 0 2px ${ambientColor}, 0 6px 16px ${keyColor}`,\n shadow28: `0 0 8px ${ambientColor}, 0 14px 28px ${keyColor}`,\n shadow64: `0 0 8px ${ambientColor}, 0 32px 64px ${keyColor}`,\n };\n}\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ import type { Theme } from '../types';
2
+ export declare function themeToCSSVariables(theme: Theme): Record<string, string>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.themeToCSSVariables = void 0;
7
+
8
+ function flattenThemeToCSSVariables( // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ themePart, parentKey, result) {
10
+ if (parentKey === void 0) {
11
+ parentKey = '';
12
+ }
13
+
14
+ if (result === void 0) {
15
+ result = {};
16
+ }
17
+
18
+ for (var propertyName in themePart) {
19
+ if (Object.prototype.hasOwnProperty.call(themePart, propertyName)) {
20
+ var variableName = parentKey ? parentKey + '-' + propertyName : "--" + propertyName;
21
+
22
+ if (typeof themePart[propertyName] === 'object') {
23
+ flattenThemeToCSSVariables(themePart[propertyName], variableName, result);
24
+ } else {
25
+ result[variableName] = themePart[propertyName];
26
+ }
27
+ }
28
+ }
29
+
30
+ return result;
31
+ }
32
+
33
+ function themeToCSSVariables(theme) {
34
+ return flattenThemeToCSSVariables(theme);
35
+ }
36
+
37
+ exports.themeToCSSVariables = themeToCSSVariables;
38
+ //# sourceMappingURL=themeToCSSVariables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["utils/themeToCSSVariables.ts"],"names":[],"mappings":";;;;;;;AAEA,SAAS,0BAAT,EACE;AACA,SAFF,EAGE,SAHF,EAIE,MAJF,EAIqC;AADnC,MAAA,SAAA,KAAA,KAAA,CAAA,EAAA;AAAA,IAAA,SAAA,GAAA,EAAA;AAAsB;;AACtB,MAAA,MAAA,KAAA,KAAA,CAAA,EAAA;AAAA,IAAA,MAAA,GAAA,EAAA;AAAmC;;AAEnC,OAAK,IAAM,YAAX,IAA2B,SAA3B,EAAsC;AACpC,QAAI,MAAM,CAAC,SAAP,CAAiB,cAAjB,CAAgC,IAAhC,CAAqC,SAArC,EAAgD,YAAhD,CAAJ,EAAmE;AACjE,UAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,GAAZ,GAAkB,YAArB,GAAoC,OAAK,YAAvE;;AAEA,UAAI,OAAO,SAAS,CAAC,YAAD,CAAhB,KAAmC,QAAvC,EAAiD;AAC/C,QAAA,0BAA0B,CAAC,SAAS,CAAC,YAAD,CAAV,EAA0B,YAA1B,EAAwC,MAAxC,CAA1B;AACD,OAFD,MAEO;AACL,QAAA,MAAM,CAAC,YAAD,CAAN,GAAuB,SAAS,CAAC,YAAD,CAAhC;AACD;AACF;AACF;;AACD,SAAO,MAAP;AACD;;AAED,SAAgB,mBAAhB,CAAoC,KAApC,EAAgD;AAC9C,SAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD;;AAFD,OAAA,CAAA,mBAAA,GAAA,mBAAA","sourcesContent":["import type { Theme } from '../types';\n\nfunction flattenThemeToCSSVariables(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n themePart: Record<string, any>,\n parentKey: string = '',\n result: Record<string, string> = {},\n) {\n for (const propertyName in themePart) {\n if (Object.prototype.hasOwnProperty.call(themePart, propertyName)) {\n const variableName = parentKey ? parentKey + '-' + propertyName : `--${propertyName}`;\n\n if (typeof themePart[propertyName] === 'object') {\n flattenThemeToCSSVariables(themePart[propertyName], variableName, result);\n } else {\n result[variableName] = themePart[propertyName];\n }\n }\n }\n return result;\n}\n\nexport function themeToCSSVariables(theme: Theme): Record<string, string> {\n return flattenThemeToCSSVariables(theme);\n}\n"],"sourceRoot":"../src/"}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@fluentui/react-theme",
3
+ "version": "9.0.0-alpha.23",
4
+ "description": "Fluent UI themes",
5
+ "main": "lib-commonjs/index.js",
6
+ "module": "lib/index.js",
7
+ "typings": "lib/index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/microsoft/fluentui"
12
+ },
13
+ "license": "MIT",
14
+ "scripts": {
15
+ "build": "just-scripts build",
16
+ "bundle-size": "bundle-size measure",
17
+ "clean": "just-scripts clean",
18
+ "code-style": "just-scripts code-style",
19
+ "just": "just-scripts",
20
+ "lint": "just-scripts lint",
21
+ "start": "storybook",
22
+ "storybook": "start-storybook",
23
+ "test": "jest",
24
+ "docs": "api-extractor run --config=config/api-extractor.local.json --local",
25
+ "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-theme/src && yarn docs"
26
+ },
27
+ "devDependencies": {
28
+ "@fluentui/eslint-plugin": "*",
29
+ "@fluentui/scripts": "^1.0.0",
30
+ "@types/react": "16.9.42",
31
+ "@types/react-dom": "16.9.10",
32
+ "react": "16.8.6",
33
+ "react-dom": "16.8.6"
34
+ },
35
+ "dependencies": {
36
+ "tslib": "^2.1.0"
37
+ },
38
+ "peerDependencies": {
39
+ "@types/react": ">=16.8.0 <18.0.0",
40
+ "@types/react-dom": ">=16.8.0 <18.0.0",
41
+ "react": ">=16.8.0 <18.0.0",
42
+ "react-dom": ">=16.8.0 <18.0.0"
43
+ },
44
+ "beachball": {
45
+ "tag": "alpha",
46
+ "disallowedChangeTypes": [
47
+ "major",
48
+ "minor",
49
+ "patch"
50
+ ]
51
+ }
52
+ }