@wealthx/ui 0.0.1 → 1.0.1

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 (567) hide show
  1. package/.turbo/turbo-build.log +369 -0
  2. package/CHANGELOG.md +7 -0
  3. package/dist/accordion-details.d.mts +7 -0
  4. package/dist/accordion-details.d.ts +7 -0
  5. package/dist/accordion-details.js +62 -0
  6. package/dist/accordion-details.mjs +17 -0
  7. package/dist/accordion-summary.d.mts +7 -0
  8. package/dist/accordion-summary.d.ts +7 -0
  9. package/dist/accordion-summary.js +62 -0
  10. package/dist/accordion-summary.mjs +17 -0
  11. package/dist/accordion.d.mts +7 -0
  12. package/dist/accordion.d.ts +7 -0
  13. package/dist/accordion.js +62 -0
  14. package/dist/accordion.mjs +17 -0
  15. package/dist/alert.d.mts +7 -0
  16. package/dist/alert.d.ts +7 -0
  17. package/dist/alert.js +62 -0
  18. package/dist/alert.mjs +17 -0
  19. package/dist/app-bar.d.mts +7 -0
  20. package/dist/app-bar.d.ts +7 -0
  21. package/dist/app-bar.js +62 -0
  22. package/dist/app-bar.mjs +17 -0
  23. package/dist/autocomplete.d.mts +7 -0
  24. package/dist/autocomplete.d.ts +7 -0
  25. package/dist/autocomplete.js +62 -0
  26. package/dist/autocomplete.mjs +17 -0
  27. package/dist/avatar.d.mts +7 -0
  28. package/dist/avatar.d.ts +7 -0
  29. package/dist/avatar.js +62 -0
  30. package/dist/avatar.mjs +17 -0
  31. package/dist/backdrop.d.mts +7 -0
  32. package/dist/backdrop.d.ts +7 -0
  33. package/dist/backdrop.js +62 -0
  34. package/dist/backdrop.mjs +17 -0
  35. package/dist/badge.d.mts +7 -0
  36. package/dist/badge.d.ts +7 -0
  37. package/dist/badge.js +62 -0
  38. package/dist/badge.mjs +17 -0
  39. package/dist/bottom-navigation-action.d.mts +7 -0
  40. package/dist/bottom-navigation-action.d.ts +7 -0
  41. package/dist/bottom-navigation-action.js +62 -0
  42. package/dist/bottom-navigation-action.mjs +17 -0
  43. package/dist/bottom-navigation.d.mts +7 -0
  44. package/dist/bottom-navigation.d.ts +7 -0
  45. package/dist/bottom-navigation.js +62 -0
  46. package/dist/bottom-navigation.mjs +17 -0
  47. package/dist/box.d.mts +7 -0
  48. package/dist/box.d.ts +7 -0
  49. package/dist/box.js +62 -0
  50. package/dist/box.mjs +17 -0
  51. package/dist/breadcrumbs.d.mts +7 -0
  52. package/dist/breadcrumbs.d.ts +7 -0
  53. package/dist/breadcrumbs.js +62 -0
  54. package/dist/breadcrumbs.mjs +17 -0
  55. package/dist/button-group.d.mts +7 -0
  56. package/dist/button-group.d.ts +7 -0
  57. package/dist/button-group.js +62 -0
  58. package/dist/button-group.mjs +17 -0
  59. package/dist/button.d.mts +7 -0
  60. package/dist/button.d.ts +7 -0
  61. package/dist/button.js +62 -0
  62. package/dist/button.mjs +17 -0
  63. package/dist/card-actions.d.mts +7 -0
  64. package/dist/card-actions.d.ts +7 -0
  65. package/dist/card-actions.js +62 -0
  66. package/dist/card-actions.mjs +17 -0
  67. package/dist/card-content.d.mts +7 -0
  68. package/dist/card-content.d.ts +7 -0
  69. package/dist/card-content.js +62 -0
  70. package/dist/card-content.mjs +17 -0
  71. package/dist/card-header.d.mts +7 -0
  72. package/dist/card-header.d.ts +7 -0
  73. package/dist/card-header.js +62 -0
  74. package/dist/card-header.mjs +17 -0
  75. package/dist/card-media.d.mts +7 -0
  76. package/dist/card-media.d.ts +7 -0
  77. package/dist/card-media.js +62 -0
  78. package/dist/card-media.mjs +17 -0
  79. package/dist/card.d.mts +7 -0
  80. package/dist/card.d.ts +7 -0
  81. package/dist/card.js +62 -0
  82. package/dist/card.mjs +17 -0
  83. package/dist/charts/index.d.mts +260 -0
  84. package/dist/charts/index.d.ts +260 -0
  85. package/dist/charts/index.js +2514 -0
  86. package/dist/charts/index.mjs +2442 -0
  87. package/dist/checkbox.d.mts +9 -0
  88. package/dist/checkbox.d.ts +9 -0
  89. package/dist/checkbox.js +62 -0
  90. package/dist/checkbox.mjs +17 -0
  91. package/dist/chip.d.mts +7 -0
  92. package/dist/chip.d.ts +7 -0
  93. package/dist/chip.js +62 -0
  94. package/dist/chip.mjs +17 -0
  95. package/dist/chunk-2VVJGTUG.mjs +18 -0
  96. package/dist/chunk-3INC3CHA.mjs +702 -0
  97. package/dist/chunk-3LGY4LPH.mjs +671 -0
  98. package/dist/chunk-3ZAK7JKB.mjs +17 -0
  99. package/dist/chunk-4PT5CSRI.mjs +635 -0
  100. package/dist/chunk-4RSXKKJ3.mjs +677 -0
  101. package/dist/chunk-4YL3IDTL.mjs +712 -0
  102. package/dist/chunk-5PTI2A2O.mjs +635 -0
  103. package/dist/chunk-5QGN2CVX.mjs +738 -0
  104. package/dist/chunk-5WVSR7VI.mjs +30 -0
  105. package/dist/chunk-6XKA7TMO.mjs +654 -0
  106. package/dist/chunk-75AEPNQV.mjs +663 -0
  107. package/dist/chunk-7VN5YMMV.mjs +666 -0
  108. package/dist/chunk-7Y4J73GF.mjs +22 -0
  109. package/dist/chunk-A4GTTYXS.mjs +725 -0
  110. package/dist/chunk-A6UVH2MS.mjs +638 -0
  111. package/dist/chunk-AFUVAGQ7.mjs +717 -0
  112. package/dist/chunk-AU6MS36I.mjs +687 -0
  113. package/dist/chunk-AZ4T75GP.mjs +716 -0
  114. package/dist/chunk-B26DAG54.mjs +729 -0
  115. package/dist/chunk-B6MLUNDY.mjs +641 -0
  116. package/dist/chunk-BEP42F7C.mjs +704 -0
  117. package/dist/chunk-CDQYIC4L.mjs +638 -0
  118. package/dist/chunk-CJ5XEQAB.mjs +707 -0
  119. package/dist/chunk-CLRGEEBS.mjs +695 -0
  120. package/dist/chunk-EDDP4RXX.mjs +731 -0
  121. package/dist/chunk-EYFZ6Q2I.mjs +30 -0
  122. package/dist/chunk-EZEFJ62V.mjs +723 -0
  123. package/dist/chunk-F3Y22UH3.mjs +704 -0
  124. package/dist/chunk-FCUQVOXM.mjs +707 -0
  125. package/dist/chunk-FMFAYI6F.mjs +727 -0
  126. package/dist/chunk-FWCSY2DS.mjs +37 -0
  127. package/dist/chunk-FYHAFWVF.mjs +719 -0
  128. package/dist/chunk-G5LVCGAZ.mjs +715 -0
  129. package/dist/chunk-GC7M6Q7Q.mjs +712 -0
  130. package/dist/chunk-GJP3ZHQZ.mjs +712 -0
  131. package/dist/chunk-GTCMGRVH.mjs +576 -0
  132. package/dist/chunk-GXYSMEFL.mjs +704 -0
  133. package/dist/chunk-GYEEDPWP.mjs +646 -0
  134. package/dist/chunk-H5JOUGZ7.mjs +7 -0
  135. package/dist/chunk-HAXRNHML.mjs +17 -0
  136. package/dist/chunk-HGDOFGU4.mjs +717 -0
  137. package/dist/chunk-HR7CZZZU.mjs +34 -0
  138. package/dist/chunk-I4E63NIC.mjs +24 -0
  139. package/dist/chunk-I5H76ESF.mjs +671 -0
  140. package/dist/chunk-IIBNCIGO.mjs +713 -0
  141. package/dist/chunk-INHKGMOA.mjs +705 -0
  142. package/dist/chunk-ISFJIOTZ.mjs +668 -0
  143. package/dist/chunk-IU4IZB74.mjs +729 -0
  144. package/dist/chunk-IXJXFW7K.mjs +712 -0
  145. package/dist/chunk-JUNAYNXW.mjs +667 -0
  146. package/dist/chunk-K2Z5MFPN.mjs +717 -0
  147. package/dist/chunk-KJDBWFV4.mjs +15 -0
  148. package/dist/chunk-KOR3RFXT.mjs +616 -0
  149. package/dist/chunk-KRCDJE37.mjs +616 -0
  150. package/dist/chunk-KX3KGQM5.mjs +704 -0
  151. package/dist/chunk-MJF7PMCN.mjs +713 -0
  152. package/dist/chunk-MSMSEKLJ.mjs +727 -0
  153. package/dist/chunk-MWVIJSXF.mjs +723 -0
  154. package/dist/chunk-MZ6NCHFH.mjs +712 -0
  155. package/dist/chunk-NHR5EVP5.mjs +34 -0
  156. package/dist/chunk-NLOG75HP.mjs +712 -0
  157. package/dist/chunk-NPIFU7NP.mjs +717 -0
  158. package/dist/chunk-NUTTLEFB.mjs +675 -0
  159. package/dist/chunk-P3F3JWWN.mjs +707 -0
  160. package/dist/chunk-PPGJLNI5.mjs +704 -0
  161. package/dist/chunk-PUPP26OX.mjs +707 -0
  162. package/dist/chunk-Q43USMAB.mjs +638 -0
  163. package/dist/chunk-QUYESF5V.mjs +706 -0
  164. package/dist/chunk-R4NJDEQL.mjs +686 -0
  165. package/dist/chunk-RE7K3H64.mjs +707 -0
  166. package/dist/chunk-RIDPXVXH.mjs +706 -0
  167. package/dist/chunk-RQIAE3MB.mjs +721 -0
  168. package/dist/chunk-RRYH5A6K.mjs +727 -0
  169. package/dist/chunk-RTUIKVKP.mjs +705 -0
  170. package/dist/chunk-RYZ2UYKN.mjs +707 -0
  171. package/dist/chunk-S37HUFPH.mjs +719 -0
  172. package/dist/chunk-S4TZORUT.mjs +708 -0
  173. package/dist/chunk-SOMFG24T.mjs +675 -0
  174. package/dist/chunk-SP3LL4DC.mjs +704 -0
  175. package/dist/chunk-TJZXXGH3.mjs +641 -0
  176. package/dist/chunk-TWFYWUDV.mjs +707 -0
  177. package/dist/chunk-U2JQUQ2B.mjs +712 -0
  178. package/dist/chunk-UCFJXIGR.mjs +671 -0
  179. package/dist/chunk-UFKECQBD.mjs +736 -0
  180. package/dist/chunk-UNZHSAWG.mjs +704 -0
  181. package/dist/chunk-UORPGX7S.mjs +637 -0
  182. package/dist/chunk-VA7BMOMQ.mjs +712 -0
  183. package/dist/chunk-VKJEODYN.mjs +705 -0
  184. package/dist/chunk-VST6TRHA.mjs +15 -0
  185. package/dist/chunk-VSTSMCNW.mjs +169 -0
  186. package/dist/chunk-W35RLK2G.mjs +714 -0
  187. package/dist/chunk-WLX3YEFG.mjs +713 -0
  188. package/dist/chunk-WUKYLWAZ.mjs +0 -0
  189. package/dist/chunk-XJFQ6VLH.mjs +676 -0
  190. package/dist/chunk-XUAVHHPE.mjs +715 -0
  191. package/dist/chunk-YHEJWFKH.mjs +711 -0
  192. package/dist/chunk-YJ5Q4Z6X.mjs +37 -0
  193. package/dist/chunk-YMWHUJU5.mjs +15 -0
  194. package/dist/chunk-YNFJJWV4.mjs +712 -0
  195. package/dist/chunk-YOEKQLSM.mjs +715 -0
  196. package/dist/chunk-ZIIKFFIL.mjs +21 -0
  197. package/dist/chunk-ZLBX4R5M.mjs +711 -0
  198. package/dist/container.d.mts +7 -0
  199. package/dist/container.d.ts +7 -0
  200. package/dist/container.js +62 -0
  201. package/dist/container.mjs +17 -0
  202. package/dist/dialog-actions.d.mts +7 -0
  203. package/dist/dialog-actions.d.ts +7 -0
  204. package/dist/dialog-actions.js +62 -0
  205. package/dist/dialog-actions.mjs +17 -0
  206. package/dist/dialog-content.d.mts +7 -0
  207. package/dist/dialog-content.d.ts +7 -0
  208. package/dist/dialog-content.js +62 -0
  209. package/dist/dialog-content.mjs +17 -0
  210. package/dist/dialog-title.d.mts +7 -0
  211. package/dist/dialog-title.d.ts +7 -0
  212. package/dist/dialog-title.js +62 -0
  213. package/dist/dialog-title.mjs +17 -0
  214. package/dist/dialog.d.mts +7 -0
  215. package/dist/dialog.d.ts +7 -0
  216. package/dist/dialog.js +62 -0
  217. package/dist/dialog.mjs +17 -0
  218. package/dist/divider.d.mts +7 -0
  219. package/dist/divider.d.ts +7 -0
  220. package/dist/divider.js +62 -0
  221. package/dist/divider.mjs +17 -0
  222. package/dist/drawer.d.mts +7 -0
  223. package/dist/drawer.d.ts +7 -0
  224. package/dist/drawer.js +62 -0
  225. package/dist/drawer.mjs +17 -0
  226. package/dist/fab.d.mts +7 -0
  227. package/dist/fab.d.ts +7 -0
  228. package/dist/fab.js +62 -0
  229. package/dist/fab.mjs +17 -0
  230. package/dist/form-control.d.mts +7 -0
  231. package/dist/form-control.d.ts +7 -0
  232. package/dist/form-control.js +62 -0
  233. package/dist/form-control.mjs +17 -0
  234. package/dist/grid.d.mts +7 -0
  235. package/dist/grid.d.ts +7 -0
  236. package/dist/grid.js +62 -0
  237. package/dist/grid.mjs +17 -0
  238. package/dist/icon-button.d.mts +7 -0
  239. package/dist/icon-button.d.ts +7 -0
  240. package/dist/icon-button.js +62 -0
  241. package/dist/icon-button.mjs +17 -0
  242. package/dist/image-list-item.d.mts +7 -0
  243. package/dist/image-list-item.d.ts +7 -0
  244. package/dist/image-list-item.js +62 -0
  245. package/dist/image-list-item.mjs +17 -0
  246. package/dist/image-list.d.mts +7 -0
  247. package/dist/image-list.d.ts +7 -0
  248. package/dist/image-list.js +62 -0
  249. package/dist/image-list.mjs +17 -0
  250. package/dist/index.d.mts +5 -0
  251. package/dist/index.d.ts +5 -0
  252. package/dist/index.js +697 -0
  253. package/dist/index.mjs +61 -0
  254. package/dist/input-label.d.mts +7 -0
  255. package/dist/input-label.d.ts +7 -0
  256. package/dist/input-label.js +62 -0
  257. package/dist/input-label.mjs +17 -0
  258. package/dist/link.d.mts +7 -0
  259. package/dist/link.d.ts +7 -0
  260. package/dist/link.js +62 -0
  261. package/dist/link.mjs +17 -0
  262. package/dist/list-item-icon.d.mts +7 -0
  263. package/dist/list-item-icon.d.ts +7 -0
  264. package/dist/list-item-icon.js +62 -0
  265. package/dist/list-item-icon.mjs +17 -0
  266. package/dist/list-item-text.d.mts +7 -0
  267. package/dist/list-item-text.d.ts +7 -0
  268. package/dist/list-item-text.js +62 -0
  269. package/dist/list-item-text.mjs +17 -0
  270. package/dist/list-item.d.mts +7 -0
  271. package/dist/list-item.d.ts +7 -0
  272. package/dist/list-item.js +62 -0
  273. package/dist/list-item.mjs +17 -0
  274. package/dist/list.d.mts +7 -0
  275. package/dist/list.d.ts +7 -0
  276. package/dist/list.js +62 -0
  277. package/dist/list.mjs +17 -0
  278. package/dist/masonry.d.mts +7 -0
  279. package/dist/masonry.d.ts +7 -0
  280. package/dist/masonry.js +62 -0
  281. package/dist/masonry.mjs +17 -0
  282. package/dist/menu-item.d.mts +7 -0
  283. package/dist/menu-item.d.ts +7 -0
  284. package/dist/menu-item.js +62 -0
  285. package/dist/menu-item.mjs +17 -0
  286. package/dist/menu.d.mts +7 -0
  287. package/dist/menu.d.ts +7 -0
  288. package/dist/menu.js +62 -0
  289. package/dist/menu.mjs +17 -0
  290. package/dist/mui-augmentation-DKlyQ0kQ.d.mts +19 -0
  291. package/dist/mui-augmentation-DKlyQ0kQ.d.ts +19 -0
  292. package/dist/pagination.d.mts +7 -0
  293. package/dist/pagination.d.ts +7 -0
  294. package/dist/pagination.js +62 -0
  295. package/dist/pagination.mjs +17 -0
  296. package/dist/paper.d.mts +7 -0
  297. package/dist/paper.d.ts +7 -0
  298. package/dist/paper.js +62 -0
  299. package/dist/paper.mjs +17 -0
  300. package/dist/progress.d.mts +10 -0
  301. package/dist/progress.d.ts +10 -0
  302. package/dist/progress.js +71 -0
  303. package/dist/progress.mjs +25 -0
  304. package/dist/radio-group.d.mts +7 -0
  305. package/dist/radio-group.d.ts +7 -0
  306. package/dist/radio-group.js +62 -0
  307. package/dist/radio-group.mjs +17 -0
  308. package/dist/radio.d.mts +10 -0
  309. package/dist/radio.d.ts +10 -0
  310. package/dist/radio.js +62 -0
  311. package/dist/radio.mjs +18 -0
  312. package/dist/rating.d.mts +7 -0
  313. package/dist/rating.d.ts +7 -0
  314. package/dist/rating.js +62 -0
  315. package/dist/rating.mjs +17 -0
  316. package/dist/select.d.mts +7 -0
  317. package/dist/select.d.ts +7 -0
  318. package/dist/select.js +62 -0
  319. package/dist/select.mjs +17 -0
  320. package/dist/selection-button-group.d.mts +16 -0
  321. package/dist/selection-button-group.d.ts +16 -0
  322. package/dist/selection-button-group.js +109 -0
  323. package/dist/selection-button-group.mjs +42 -0
  324. package/dist/skeleton.d.mts +7 -0
  325. package/dist/skeleton.d.ts +7 -0
  326. package/dist/skeleton.js +62 -0
  327. package/dist/skeleton.mjs +17 -0
  328. package/dist/slider.d.mts +7 -0
  329. package/dist/slider.d.ts +7 -0
  330. package/dist/slider.js +62 -0
  331. package/dist/slider.mjs +17 -0
  332. package/dist/snackbar.d.mts +7 -0
  333. package/dist/snackbar.d.ts +7 -0
  334. package/dist/snackbar.js +62 -0
  335. package/dist/snackbar.mjs +17 -0
  336. package/dist/speed-dial-action.d.mts +7 -0
  337. package/dist/speed-dial-action.d.ts +7 -0
  338. package/dist/speed-dial-action.js +62 -0
  339. package/dist/speed-dial-action.mjs +17 -0
  340. package/dist/speed-dial.d.mts +7 -0
  341. package/dist/speed-dial.d.ts +7 -0
  342. package/dist/speed-dial.js +62 -0
  343. package/dist/speed-dial.mjs +17 -0
  344. package/dist/stack.d.mts +7 -0
  345. package/dist/stack.d.ts +7 -0
  346. package/dist/stack.js +62 -0
  347. package/dist/stack.mjs +17 -0
  348. package/dist/step-content.d.mts +7 -0
  349. package/dist/step-content.d.ts +7 -0
  350. package/dist/step-content.js +62 -0
  351. package/dist/step-content.mjs +17 -0
  352. package/dist/step-label.d.mts +7 -0
  353. package/dist/step-label.d.ts +7 -0
  354. package/dist/step-label.js +62 -0
  355. package/dist/step-label.mjs +17 -0
  356. package/dist/step.d.mts +7 -0
  357. package/dist/step.d.ts +7 -0
  358. package/dist/step.js +62 -0
  359. package/dist/step.mjs +17 -0
  360. package/dist/stepper.d.mts +7 -0
  361. package/dist/stepper.d.ts +7 -0
  362. package/dist/stepper.js +62 -0
  363. package/dist/stepper.mjs +17 -0
  364. package/dist/switch.d.mts +10 -0
  365. package/dist/switch.d.ts +10 -0
  366. package/dist/switch.js +62 -0
  367. package/dist/switch.mjs +18 -0
  368. package/dist/tab-context.d.mts +9 -0
  369. package/dist/tab-context.d.ts +9 -0
  370. package/dist/tab-context.js +59 -0
  371. package/dist/tab-context.mjs +14 -0
  372. package/dist/tab-list.d.mts +7 -0
  373. package/dist/tab-list.d.ts +7 -0
  374. package/dist/tab-list.js +62 -0
  375. package/dist/tab-list.mjs +17 -0
  376. package/dist/tab-panel.d.mts +7 -0
  377. package/dist/tab-panel.d.ts +7 -0
  378. package/dist/tab-panel.js +62 -0
  379. package/dist/tab-panel.mjs +17 -0
  380. package/dist/tab.d.mts +7 -0
  381. package/dist/tab.d.ts +7 -0
  382. package/dist/tab.js +62 -0
  383. package/dist/tab.mjs +17 -0
  384. package/dist/table-body.d.mts +7 -0
  385. package/dist/table-body.d.ts +7 -0
  386. package/dist/table-body.js +62 -0
  387. package/dist/table-body.mjs +17 -0
  388. package/dist/table-cell.d.mts +7 -0
  389. package/dist/table-cell.d.ts +7 -0
  390. package/dist/table-cell.js +62 -0
  391. package/dist/table-cell.mjs +17 -0
  392. package/dist/table-container.d.mts +7 -0
  393. package/dist/table-container.d.ts +7 -0
  394. package/dist/table-container.js +62 -0
  395. package/dist/table-container.mjs +17 -0
  396. package/dist/table-head.d.mts +7 -0
  397. package/dist/table-head.d.ts +7 -0
  398. package/dist/table-head.js +62 -0
  399. package/dist/table-head.mjs +17 -0
  400. package/dist/table-row.d.mts +7 -0
  401. package/dist/table-row.d.ts +7 -0
  402. package/dist/table-row.js +62 -0
  403. package/dist/table-row.mjs +17 -0
  404. package/dist/table.d.mts +7 -0
  405. package/dist/table.d.ts +7 -0
  406. package/dist/table.js +62 -0
  407. package/dist/table.mjs +17 -0
  408. package/dist/tabs.d.mts +7 -0
  409. package/dist/tabs.d.ts +7 -0
  410. package/dist/tabs.js +62 -0
  411. package/dist/tabs.mjs +17 -0
  412. package/dist/text-field.d.mts +8 -0
  413. package/dist/text-field.d.ts +8 -0
  414. package/dist/text-field.js +62 -0
  415. package/dist/text-field.mjs +17 -0
  416. package/dist/theme/index.d.mts +255 -0
  417. package/dist/theme/index.d.ts +255 -0
  418. package/dist/theme/index.js +811 -0
  419. package/dist/theme/index.mjs +62 -0
  420. package/dist/timeline-connector.d.mts +7 -0
  421. package/dist/timeline-connector.d.ts +7 -0
  422. package/dist/timeline-connector.js +62 -0
  423. package/dist/timeline-connector.mjs +17 -0
  424. package/dist/timeline-content.d.mts +7 -0
  425. package/dist/timeline-content.d.ts +7 -0
  426. package/dist/timeline-content.js +62 -0
  427. package/dist/timeline-content.mjs +17 -0
  428. package/dist/timeline-dot.d.mts +7 -0
  429. package/dist/timeline-dot.d.ts +7 -0
  430. package/dist/timeline-dot.js +62 -0
  431. package/dist/timeline-dot.mjs +17 -0
  432. package/dist/timeline-item.d.mts +7 -0
  433. package/dist/timeline-item.d.ts +7 -0
  434. package/dist/timeline-item.js +62 -0
  435. package/dist/timeline-item.mjs +17 -0
  436. package/dist/timeline-separator.d.mts +7 -0
  437. package/dist/timeline-separator.d.ts +7 -0
  438. package/dist/timeline-separator.js +62 -0
  439. package/dist/timeline-separator.mjs +17 -0
  440. package/dist/timeline.d.mts +7 -0
  441. package/dist/timeline.d.ts +7 -0
  442. package/dist/timeline.js +62 -0
  443. package/dist/timeline.mjs +17 -0
  444. package/dist/toggle-button-group.d.mts +14 -0
  445. package/dist/toggle-button-group.d.ts +14 -0
  446. package/dist/toggle-button-group.js +90 -0
  447. package/dist/toggle-button-group.mjs +32 -0
  448. package/dist/toggle-button.d.mts +8 -0
  449. package/dist/toggle-button.d.ts +8 -0
  450. package/dist/toggle-button.js +62 -0
  451. package/dist/toggle-button.mjs +8 -0
  452. package/dist/tooltip.d.mts +7 -0
  453. package/dist/tooltip.d.ts +7 -0
  454. package/dist/tooltip.js +62 -0
  455. package/dist/tooltip.mjs +17 -0
  456. package/dist/typography.d.mts +7 -0
  457. package/dist/typography.d.ts +7 -0
  458. package/dist/typography.js +62 -0
  459. package/dist/typography.mjs +17 -0
  460. package/package.json +439 -7
  461. package/src/accordion-details.tsx +14 -0
  462. package/src/accordion-summary.tsx +14 -0
  463. package/src/accordion.tsx +14 -0
  464. package/src/alert.tsx +12 -0
  465. package/src/app-bar.tsx +12 -0
  466. package/src/autocomplete.tsx +26 -0
  467. package/src/avatar.tsx +12 -0
  468. package/src/backdrop.tsx +14 -0
  469. package/src/badge.tsx +12 -0
  470. package/src/bottom-navigation-action.tsx +14 -0
  471. package/src/bottom-navigation.tsx +14 -0
  472. package/src/box.tsx +12 -0
  473. package/src/breadcrumbs.tsx +14 -0
  474. package/src/button-group.tsx +14 -0
  475. package/src/button.tsx +9 -4
  476. package/src/card-actions.tsx +14 -0
  477. package/src/card-content.tsx +14 -0
  478. package/src/card-header.tsx +14 -0
  479. package/src/card-media.tsx +14 -0
  480. package/src/card.tsx +12 -0
  481. package/src/charts/BackofficeSwitchableChart.tsx +325 -0
  482. package/src/charts/FrontendBarChart.tsx +134 -0
  483. package/src/charts/FrontendDoughnutChart.tsx +372 -0
  484. package/src/charts/FrontendIncomeExpenseHorizontalBarChart.tsx +138 -0
  485. package/src/charts/FrontendLiabilitiesChart.tsx +97 -0
  486. package/src/charts/FrontendLineChart.tsx +299 -0
  487. package/src/charts/FrontendLineChartMobile.tsx +383 -0
  488. package/src/charts/FrontendMixedChart.tsx +264 -0
  489. package/src/charts/FrontendPercentageBar.tsx +247 -0
  490. package/src/charts/FrontendScenarioLineChart.tsx +308 -0
  491. package/src/charts/FrontendStackedChart.tsx +184 -0
  492. package/src/charts/LoadingChartBackdrop.tsx +32 -0
  493. package/src/charts/chart-utils.ts +58 -0
  494. package/src/charts/index.ts +59 -0
  495. package/src/charts/mock-data.ts +153 -0
  496. package/src/checkbox.tsx +16 -0
  497. package/src/chip.tsx +12 -0
  498. package/src/container.tsx +14 -0
  499. package/src/dialog-actions.tsx +14 -0
  500. package/src/dialog-content.tsx +14 -0
  501. package/src/dialog-title.tsx +14 -0
  502. package/src/dialog.tsx +12 -0
  503. package/src/divider.tsx +12 -0
  504. package/src/drawer.tsx +12 -0
  505. package/src/fab.tsx +12 -0
  506. package/src/form-control.tsx +14 -0
  507. package/src/grid.tsx +12 -0
  508. package/src/icon-button.tsx +14 -0
  509. package/src/image-list-item.tsx +14 -0
  510. package/src/image-list.tsx +14 -0
  511. package/src/input-label.tsx +14 -0
  512. package/src/link.tsx +12 -0
  513. package/src/list-item-icon.tsx +14 -0
  514. package/src/list-item-text.tsx +14 -0
  515. package/src/list-item.tsx +14 -0
  516. package/src/list.tsx +12 -0
  517. package/src/masonry.tsx +14 -0
  518. package/src/menu-item.tsx +14 -0
  519. package/src/menu.tsx +12 -0
  520. package/src/mui-augmentation.ts +23 -0
  521. package/src/pagination.tsx +14 -0
  522. package/src/paper.tsx +12 -0
  523. package/src/progress.tsx +25 -0
  524. package/src/radio-group.tsx +14 -0
  525. package/src/radio.tsx +15 -0
  526. package/src/rating.tsx +12 -0
  527. package/src/select.tsx +12 -0
  528. package/src/selection-button-group.tsx +58 -0
  529. package/src/skeleton.tsx +14 -0
  530. package/src/slider.tsx +12 -0
  531. package/src/snackbar.tsx +14 -0
  532. package/src/speed-dial-action.tsx +14 -0
  533. package/src/speed-dial.tsx +14 -0
  534. package/src/stack.tsx +12 -0
  535. package/src/step-content.tsx +14 -0
  536. package/src/step-label.tsx +14 -0
  537. package/src/step.tsx +12 -0
  538. package/src/stepper.tsx +12 -0
  539. package/src/switch.tsx +15 -0
  540. package/src/tab-context.tsx +11 -0
  541. package/src/tab-list.tsx +14 -0
  542. package/src/tab-panel.tsx +14 -0
  543. package/src/tab.tsx +12 -0
  544. package/src/table-body.tsx +14 -0
  545. package/src/table-cell.tsx +14 -0
  546. package/src/table-container.tsx +14 -0
  547. package/src/table-head.tsx +14 -0
  548. package/src/table-row.tsx +14 -0
  549. package/src/table.tsx +12 -0
  550. package/src/tabs.tsx +12 -0
  551. package/src/text-field.tsx +14 -0
  552. package/src/theme/buildCssVariables.ts +6 -0
  553. package/src/theme/createDesignTheme.ts +118 -2
  554. package/src/theme/index.ts +1 -0
  555. package/src/theme/spacing.ts +23 -0
  556. package/src/timeline-connector.tsx +14 -0
  557. package/src/timeline-content.tsx +14 -0
  558. package/src/timeline-dot.tsx +14 -0
  559. package/src/timeline-item.tsx +14 -0
  560. package/src/timeline-separator.tsx +14 -0
  561. package/src/timeline.tsx +14 -0
  562. package/src/toggle-button-group.tsx +35 -0
  563. package/src/toggle-button.tsx +15 -0
  564. package/src/tooltip.tsx +14 -0
  565. package/src/typography.tsx +14 -0
  566. package/tsup.config.ts +89 -1
  567. package/README.md +0 -124
@@ -0,0 +1,811 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __export = (target, all) => {
26
+ for (var name in all)
27
+ __defProp(target, name, { get: all[name], enumerable: true });
28
+ };
29
+ var __copyProps = (to, from, except, desc) => {
30
+ if (from && typeof from === "object" || typeof from === "function") {
31
+ for (let key of __getOwnPropNames(from))
32
+ if (!__hasOwnProp.call(to, key) && key !== except)
33
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
34
+ }
35
+ return to;
36
+ };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
+ // If the importer is in node compatibility mode or this is not an ESM
39
+ // file that has been converted to a CommonJS file using a Babel-
40
+ // compatible transform (i.e. "__esModule" has not been set), then set
41
+ // "default" to the CommonJS "module.exports" for node compatibility.
42
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
43
+ mod
44
+ ));
45
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
+
47
+ // src/theme/index.ts
48
+ var theme_exports = {};
49
+ __export(theme_exports, {
50
+ ACCENTS: () => ACCENTS,
51
+ CHART_COLORS: () => CHART_COLORS,
52
+ FONT_FAMILY_SANS: () => FONT_FAMILY_SANS,
53
+ FOUNDATION_COLORS: () => FOUNDATION_COLORS,
54
+ GRAY_SCALE: () => GRAY_SCALE,
55
+ OPACITY_UTILITY: () => OPACITY_UTILITY,
56
+ SPACING_BASE_PX: () => SPACING_BASE_PX,
57
+ SPACING_SCALE: () => SPACING_SCALE,
58
+ TYPOGRAPHY: () => TYPOGRAPHY,
59
+ TYPOGRAPHY_BODY: () => TYPOGRAPHY_BODY,
60
+ TYPOGRAPHY_DISPLAY: () => TYPOGRAPHY_DISPLAY,
61
+ TYPOGRAPHY_EXTRA_CSS: () => TYPOGRAPHY_EXTRA_CSS,
62
+ TYPOGRAPHY_HEADING: () => TYPOGRAPHY_HEADING,
63
+ TYPOGRAPHY_LABEL: () => TYPOGRAPHY_LABEL,
64
+ TYPOGRAPHY_UTILITY: () => TYPOGRAPHY_UTILITY,
65
+ ThemeProvider: () => ThemeProvider,
66
+ VIEWPORT_LABELS: () => VIEWPORT_LABELS,
67
+ VIEWPORT_MAX_WIDTH: () => VIEWPORT_MAX_WIDTH,
68
+ buildCssVariables: () => buildCssVariables,
69
+ buildOpacityScale: () => buildOpacityScale,
70
+ createDesignTheme: () => createDesignTheme,
71
+ getContrastText: () => getContrastText,
72
+ getLuminance: () => getLuminance,
73
+ getResponsiveFontOverrides: () => getResponsiveFontOverrides,
74
+ getTypographyCssVars: () => getTypographyCssVars,
75
+ hexToRgb: () => hexToRgb,
76
+ rgbToCssRgbString: () => rgbToCssRgbString,
77
+ rgba: () => rgba
78
+ });
79
+ module.exports = __toCommonJS(theme_exports);
80
+
81
+ // src/theme/ThemeProvider.tsx
82
+ var import_react = require("react");
83
+ var import_styles2 = require("@mui/material/styles");
84
+ var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"));
85
+
86
+ // src/theme/createDesignTheme.ts
87
+ var import_styles = require("@mui/material/styles");
88
+
89
+ // src/theme/constants.ts
90
+ var FOUNDATION_COLORS = {
91
+ // Brand are tenant-driven; defaults for fallback
92
+ brand: {
93
+ primary: "#33FF99",
94
+ secondary: "#162029"
95
+ },
96
+ text: {
97
+ primary: "#040D13",
98
+ secondary: "#4A5C6A",
99
+ disabled: "#9EAAB5",
100
+ inverse: "#FFFFFF"
101
+ },
102
+ background: {
103
+ primary: "#FFFFFF",
104
+ secondary: "#F5F8FA",
105
+ tertiary: "#E8EAEC",
106
+ elevated: "#FFFFFF"
107
+ },
108
+ border: {
109
+ default: "#E8EAEC",
110
+ focus: "#33FF99",
111
+ // default only; at runtime --color-border-focus uses brand primary
112
+ error: "#F44336"
113
+ },
114
+ state: {
115
+ error: "#F44336",
116
+ warning: "#FF9800",
117
+ success: "#4CAF50",
118
+ info: "#2196F3"
119
+ }
120
+ };
121
+ var GRAY_SCALE = {
122
+ 50: "#F6F6F8",
123
+ 100: "#E8E8EB",
124
+ 200: "#D9D9D9",
125
+ 300: "#B9BCBF",
126
+ 400: "#959495",
127
+ 500: "#868686",
128
+ 600: "#8A8F94"
129
+ };
130
+ var ACCENTS = {
131
+ purple: "#9747FF",
132
+ darkGreen: "#1E4620"
133
+ };
134
+ var OPACITY_UTILITY = {
135
+ disabled: 0.38,
136
+ hover: 0.08
137
+ };
138
+ var CHART_COLORS = {
139
+ background: "#F7F7F8",
140
+ textLabels: "#000000",
141
+ textTitle: "#757373",
142
+ grid: "#E3E3E8",
143
+ series: {
144
+ blue: "#2B72FB",
145
+ teal: "#64BDC6",
146
+ yellow: "#EECA34",
147
+ orange: "#FE6A35",
148
+ red: "#FA4B42",
149
+ pink: "#EE60E0",
150
+ purple: "#7B47E9",
151
+ indigo: "#5D89DF",
152
+ lightBlue: "#6AD1FE",
153
+ green: "#3FDC7E"
154
+ }
155
+ };
156
+ var PRIMARY_OPACITY_STEPS = [0.05, 0.1, 0.2, 0.3, 0.4, 0.6, 0.7, 0.8, 0.9];
157
+ var SECONDARY_OPACITY_STEPS = [0.05, 0.1, 0.2, 0.6, 0.7, 0.8, 0.9];
158
+ var PRIMARY_SCALE_KEYS = ["50", "100", "200", "300", "400", "600", "700", "800", "900"];
159
+ var SECONDARY_SCALE_KEYS = ["50", "100", "200", "600", "700", "800", "900"];
160
+ var DEFAULT_THEME_OPTIONS = {
161
+ primary: FOUNDATION_COLORS.brand.primary,
162
+ secondary: FOUNDATION_COLORS.brand.secondary
163
+ };
164
+ var CONTRAST_DARK = "#040D13";
165
+ var CONTRAST_LIGHT = "#FFFFFF";
166
+
167
+ // src/theme/typography.ts
168
+ var FONT_FAMILY_SANS = '"Proxima Nova", sans-serif';
169
+ function style(weight, size, lineHeight, extra) {
170
+ return __spreadValues({ fontWeight: weight, fontSize: size, lineHeight }, extra);
171
+ }
172
+ var TYPOGRAPHY_DISPLAY = {
173
+ large: style(700, "4rem", "4.5rem", { letterSpacing: "-0.03125rem" }),
174
+ medium: style(700, "3rem", "3.5rem"),
175
+ small: style(600, "2.125rem", "2.625rem")
176
+ };
177
+ var TYPOGRAPHY_HEADING = {
178
+ h1: style(700, "2rem", "2.5rem"),
179
+ h2: style(600, "1.75rem", "2.25rem"),
180
+ h3: style(600, "1.5rem", "2rem"),
181
+ h4: style(600, "1.3125rem", "1.75rem"),
182
+ h5: style(600, "1.125rem", "1.5rem"),
183
+ h6: style(600, "1rem", "1.375rem")
184
+ };
185
+ var TYPOGRAPHY_BODY = {
186
+ large: style(400, "1.125rem", "1.75rem"),
187
+ medium: style(400, "1rem", "1.5rem"),
188
+ small: style(400, "0.875rem", "1.25rem")
189
+ };
190
+ var TYPOGRAPHY_LABEL = {
191
+ large: style(600, "1rem", "1.25rem"),
192
+ medium: style(600, "0.875rem", "1.125rem"),
193
+ small: style(600, "0.75rem", "1rem", { letterSpacing: "0.03125rem" })
194
+ };
195
+ var TYPOGRAPHY_UTILITY = {
196
+ caption: style(400, "0.75rem", "1rem"),
197
+ overline: style(600, "0.625rem", "0.875rem", {
198
+ letterSpacing: "0.09375rem",
199
+ textTransform: "uppercase"
200
+ }),
201
+ code: style(400, "0.875rem", "1.25rem")
202
+ };
203
+ var TYPOGRAPHY = {
204
+ display: TYPOGRAPHY_DISPLAY,
205
+ heading: TYPOGRAPHY_HEADING,
206
+ body: TYPOGRAPHY_BODY,
207
+ label: TYPOGRAPHY_LABEL,
208
+ utility: TYPOGRAPHY_UTILITY
209
+ };
210
+ function toFontShorthand(s, family = FONT_FAMILY_SANS) {
211
+ var _a;
212
+ const f = (_a = s.fontFamily) != null ? _a : family;
213
+ return `${s.fontWeight} ${s.fontSize}/${s.lineHeight} ${f}`;
214
+ }
215
+ function getTypographyCssVars() {
216
+ var _a;
217
+ const family = FONT_FAMILY_SANS;
218
+ const entries = [];
219
+ entries.push(["--font-family-sans", family]);
220
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_DISPLAY)) {
221
+ entries.push([`--font-display-${key}`, toFontShorthand(style2, family)]);
222
+ }
223
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_HEADING)) {
224
+ entries.push([`--font-${key}`, toFontShorthand(style2, family)]);
225
+ }
226
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_BODY)) {
227
+ entries.push([`--font-body-${key}`, toFontShorthand(style2, family)]);
228
+ }
229
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_LABEL)) {
230
+ entries.push([`--font-label-${key}`, toFontShorthand(style2, family)]);
231
+ }
232
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_UTILITY)) {
233
+ entries.push([`--font-${key}`, toFontShorthand(style2, (_a = style2.fontFamily) != null ? _a : family)]);
234
+ }
235
+ const out = {};
236
+ entries.forEach(([k, v]) => {
237
+ out[k] = v;
238
+ });
239
+ return out;
240
+ }
241
+ var TYPOGRAPHY_EXTRA_CSS = {
242
+ "font-display-large": { letterSpacing: "-0.03125rem" },
243
+ "font-label-small": { letterSpacing: "0.03125rem" },
244
+ "font-overline": { letterSpacing: "0.09375rem", textTransform: "uppercase" }
245
+ };
246
+ var VIEWPORT_LABELS = {
247
+ desktop: "Desktop (default)",
248
+ tablet: "Tablet (768\u20131024px)",
249
+ mobile: "Mobile (< 768px)"
250
+ };
251
+ var VIEWPORT_MAX_WIDTH = {
252
+ desktop: void 0,
253
+ tablet: 768,
254
+ mobile: 375
255
+ };
256
+ var RESPONSIVE_DISPLAY_MOBILE = {
257
+ displayLarge: style(700, "2.5rem", "2.8125rem", { letterSpacing: "-0.03125rem" }),
258
+ displayMedium: style(700, "2rem", "2.334rem"),
259
+ h1: style(700, "1.75rem", "2.1875rem"),
260
+ h2: style(600, "1.5rem", "1.93rem")
261
+ };
262
+ var RESPONSIVE_DISPLAY_TABLET = {
263
+ displayLarge: style(700, "3.6rem", "4.05rem", { letterSpacing: "-0.03125rem" }),
264
+ displayMedium: style(700, "2.7rem", "3.15rem"),
265
+ displaySmall: style(600, "1.9125rem", "2.3625rem")
266
+ };
267
+ function getResponsiveFontOverrides(mode) {
268
+ if (mode === "desktop") return {};
269
+ const f = FONT_FAMILY_SANS;
270
+ if (mode === "mobile") {
271
+ return {
272
+ "--font-display-large": toFontShorthand(RESPONSIVE_DISPLAY_MOBILE.displayLarge, f),
273
+ "--font-display-medium": toFontShorthand(RESPONSIVE_DISPLAY_MOBILE.displayMedium, f),
274
+ "--font-h1": toFontShorthand(RESPONSIVE_DISPLAY_MOBILE.h1, f),
275
+ "--font-h2": toFontShorthand(RESPONSIVE_DISPLAY_MOBILE.h2, f)
276
+ };
277
+ }
278
+ return {
279
+ "--font-display-large": toFontShorthand(RESPONSIVE_DISPLAY_TABLET.displayLarge, f),
280
+ "--font-display-medium": toFontShorthand(RESPONSIVE_DISPLAY_TABLET.displayMedium, f),
281
+ "--font-display-small": toFontShorthand(RESPONSIVE_DISPLAY_TABLET.displaySmall, f)
282
+ };
283
+ }
284
+
285
+ // src/theme/utils.ts
286
+ function hexToRgb(hex) {
287
+ const normalized = hex.replace(/^#/, "");
288
+ if (normalized.length === 3) {
289
+ const r = parseInt(normalized[0] + normalized[0], 16);
290
+ const g = parseInt(normalized[1] + normalized[1], 16);
291
+ const b = parseInt(normalized[2] + normalized[2], 16);
292
+ return [r, g, b];
293
+ }
294
+ if (normalized.length === 6) {
295
+ const r = parseInt(normalized.slice(0, 2), 16);
296
+ const g = parseInt(normalized.slice(2, 4), 16);
297
+ const b = parseInt(normalized.slice(4, 6), 16);
298
+ return [r, g, b];
299
+ }
300
+ throw new Error(`Invalid hex color: ${hex}`);
301
+ }
302
+ function rgbToCssRgbString(rgb) {
303
+ return `${rgb[0]}, ${rgb[1]}, ${rgb[2]}`;
304
+ }
305
+ function rgba(hex, alpha) {
306
+ const [r, g, b] = hexToRgb(hex);
307
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
308
+ }
309
+ function buildOpacityScale(hex, steps) {
310
+ const [r, g, b] = hexToRgb(hex);
311
+ const out = {};
312
+ for (const { key, opacity } of steps) {
313
+ out[key] = `rgba(${r}, ${g}, ${b}, ${opacity})`;
314
+ }
315
+ return out;
316
+ }
317
+ function linearizeSrgb(c) {
318
+ const n = c / 255;
319
+ return n <= 0.03928 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
320
+ }
321
+ function getLuminance(hex) {
322
+ const [r, g, b] = hexToRgb(hex);
323
+ return 0.2126 * linearizeSrgb(r) + 0.7152 * linearizeSrgb(g) + 0.0722 * linearizeSrgb(b);
324
+ }
325
+ function getContrastText(backgroundColor) {
326
+ const luminance = getLuminance(backgroundColor);
327
+ return luminance > 0.179 ? CONTRAST_DARK : CONTRAST_LIGHT;
328
+ }
329
+
330
+ // src/theme/createDesignTheme.ts
331
+ function buildPrimaryScale(primaryHex) {
332
+ const steps = [
333
+ { key: "50", opacity: 0.05 },
334
+ { key: "100", opacity: 0.1 },
335
+ { key: "200", opacity: 0.2 },
336
+ { key: "300", opacity: 0.3 },
337
+ { key: "400", opacity: 0.4 },
338
+ { key: "600", opacity: 0.6 },
339
+ { key: "700", opacity: 0.7 },
340
+ { key: "800", opacity: 0.8 },
341
+ { key: "900", opacity: 0.9 }
342
+ ];
343
+ const out = {};
344
+ steps.forEach(({ key, opacity }) => {
345
+ out[key] = rgba(primaryHex, opacity);
346
+ });
347
+ return out;
348
+ }
349
+ function buildSecondaryScale(secondaryHex) {
350
+ const steps = [
351
+ { key: "50", opacity: 0.05 },
352
+ { key: "100", opacity: 0.1 },
353
+ { key: "200", opacity: 0.2 },
354
+ { key: "600", opacity: 0.6 },
355
+ { key: "700", opacity: 0.7 },
356
+ { key: "800", opacity: 0.8 },
357
+ { key: "900", opacity: 0.9 }
358
+ ];
359
+ const out = {};
360
+ steps.forEach(({ key, opacity }) => {
361
+ out[key] = rgba(secondaryHex, opacity);
362
+ });
363
+ return out;
364
+ }
365
+ function buildPrimaryScalePalette(primaryHex) {
366
+ const scale = buildPrimaryScale(primaryHex);
367
+ return {
368
+ 50: scale["50"],
369
+ 100: scale["100"],
370
+ 200: scale["200"],
371
+ 300: scale["300"],
372
+ 400: scale["400"],
373
+ 500: primaryHex,
374
+ 600: scale["600"],
375
+ 700: scale["700"],
376
+ 800: scale["800"],
377
+ 900: scale["900"],
378
+ main: primaryHex,
379
+ light: scale["200"],
380
+ dark: scale["800"],
381
+ contrastText: getContrastText(primaryHex)
382
+ };
383
+ }
384
+ function buildSecondaryScalePalette(secondaryHex) {
385
+ const scale = buildSecondaryScale(secondaryHex);
386
+ return {
387
+ 50: scale["50"],
388
+ 100: scale["100"],
389
+ 200: scale["200"],
390
+ 600: scale["600"],
391
+ 700: scale["700"],
392
+ 800: scale["800"],
393
+ 900: scale["900"],
394
+ main: secondaryHex,
395
+ light: scale["200"],
396
+ dark: scale["800"],
397
+ contrastText: getContrastText(secondaryHex)
398
+ };
399
+ }
400
+ function createDesignTheme(config) {
401
+ const { primary, secondary } = config;
402
+ const foundation = FOUNDATION_COLORS;
403
+ const primaryPalette = buildPrimaryScalePalette(primary);
404
+ const secondaryPalette = buildSecondaryScalePalette(secondary);
405
+ const palette = {
406
+ mode: "light",
407
+ primary: primaryPalette,
408
+ secondary: secondaryPalette,
409
+ error: {
410
+ main: FOUNDATION_COLORS.state.error
411
+ },
412
+ warning: {
413
+ main: FOUNDATION_COLORS.state.warning
414
+ },
415
+ success: {
416
+ main: FOUNDATION_COLORS.state.success
417
+ },
418
+ info: {
419
+ main: FOUNDATION_COLORS.state.info
420
+ },
421
+ background: {
422
+ default: foundation.background.primary,
423
+ paper: foundation.background.elevated
424
+ },
425
+ text: {
426
+ primary: foundation.text.primary,
427
+ secondary: foundation.text.secondary,
428
+ disabled: foundation.text.disabled
429
+ },
430
+ grey: GRAY_SCALE,
431
+ divider: foundation.border.default
432
+ };
433
+ const themeOptions = {
434
+ palette,
435
+ typography: {
436
+ fontFamily: FONT_FAMILY_SANS,
437
+ h1: {
438
+ fontFamily: FONT_FAMILY_SANS,
439
+ fontWeight: TYPOGRAPHY_HEADING.h1.fontWeight,
440
+ fontSize: TYPOGRAPHY_HEADING.h1.fontSize,
441
+ lineHeight: TYPOGRAPHY_HEADING.h1.lineHeight
442
+ },
443
+ h2: {
444
+ fontFamily: FONT_FAMILY_SANS,
445
+ fontWeight: TYPOGRAPHY_HEADING.h2.fontWeight,
446
+ fontSize: TYPOGRAPHY_HEADING.h2.fontSize,
447
+ lineHeight: TYPOGRAPHY_HEADING.h2.lineHeight
448
+ },
449
+ h3: {
450
+ fontFamily: FONT_FAMILY_SANS,
451
+ fontWeight: TYPOGRAPHY_HEADING.h3.fontWeight,
452
+ fontSize: TYPOGRAPHY_HEADING.h3.fontSize,
453
+ lineHeight: TYPOGRAPHY_HEADING.h3.lineHeight
454
+ },
455
+ h4: {
456
+ fontFamily: FONT_FAMILY_SANS,
457
+ fontWeight: TYPOGRAPHY_HEADING.h4.fontWeight,
458
+ fontSize: TYPOGRAPHY_HEADING.h4.fontSize,
459
+ lineHeight: TYPOGRAPHY_HEADING.h4.lineHeight
460
+ },
461
+ h5: {
462
+ fontFamily: FONT_FAMILY_SANS,
463
+ fontWeight: TYPOGRAPHY_HEADING.h5.fontWeight,
464
+ fontSize: TYPOGRAPHY_HEADING.h5.fontSize,
465
+ lineHeight: TYPOGRAPHY_HEADING.h5.lineHeight
466
+ },
467
+ h6: {
468
+ fontFamily: FONT_FAMILY_SANS,
469
+ fontWeight: TYPOGRAPHY_HEADING.h6.fontWeight,
470
+ fontSize: TYPOGRAPHY_HEADING.h6.fontSize,
471
+ lineHeight: TYPOGRAPHY_HEADING.h6.lineHeight
472
+ },
473
+ body1: {
474
+ fontFamily: FONT_FAMILY_SANS,
475
+ fontWeight: TYPOGRAPHY_BODY.medium.fontWeight,
476
+ fontSize: TYPOGRAPHY_BODY.medium.fontSize,
477
+ lineHeight: TYPOGRAPHY_BODY.medium.lineHeight
478
+ },
479
+ body2: {
480
+ fontFamily: FONT_FAMILY_SANS,
481
+ fontWeight: TYPOGRAPHY_BODY.small.fontWeight,
482
+ fontSize: TYPOGRAPHY_BODY.small.fontSize,
483
+ lineHeight: TYPOGRAPHY_BODY.small.lineHeight
484
+ }
485
+ },
486
+ components: {
487
+ MuiButton: {
488
+ styleOverrides: {
489
+ root: {
490
+ textTransform: "none",
491
+ borderRadius: 0
492
+ },
493
+ outlined: {
494
+ color: CONTRAST_DARK,
495
+ "& .MuiButton-startIcon, & .MuiButton-endIcon": {
496
+ color: CONTRAST_DARK
497
+ }
498
+ },
499
+ sizeSmall: {
500
+ height: 32,
501
+ minHeight: 32
502
+ },
503
+ sizeMedium: {
504
+ height: 40,
505
+ minHeight: 40
506
+ },
507
+ sizeLarge: {
508
+ height: 48,
509
+ minHeight: 48
510
+ }
511
+ }
512
+ },
513
+ MuiToggleButton: {
514
+ styleOverrides: {
515
+ root: ({ ownerState }) => {
516
+ const palette2 = ownerState.color === "secondary" ? secondaryPalette : primaryPalette;
517
+ const outlined = ownerState.outlined === true;
518
+ return {
519
+ borderRadius: 0,
520
+ textTransform: "none",
521
+ color: CONTRAST_DARK,
522
+ "&:hover": {
523
+ backgroundColor: palette2[100]
524
+ },
525
+ "&.MuiToggleButtonGroup-lastButton, &.MuiToggleButtonGroup-middleButton": outlined ? {
526
+ borderLeft: `1px solid ${foundation.border.default}`,
527
+ borderTop: `1px solid ${foundation.border.default}`
528
+ } : {},
529
+ "&.Mui-disabled.MuiToggleButtonGroup-lastButton, &.Mui-disabled.MuiToggleButtonGroup-middleButton": outlined ? {
530
+ borderLeft: `1px solid ${foundation.border.default}`,
531
+ borderTop: `1px solid ${foundation.border.default}`
532
+ } : {},
533
+ "&.Mui-selected": outlined ? {
534
+ backgroundColor: palette2[100],
535
+ border: `1px solid ${palette2.main}`,
536
+ color: CONTRAST_DARK
537
+ } : {
538
+ backgroundColor: palette2.main,
539
+ color: palette2.contrastText,
540
+ "&:hover": {
541
+ backgroundColor: palette2.dark,
542
+ color: palette2.contrastText
543
+ }
544
+ }
545
+ };
546
+ }
547
+ }
548
+ },
549
+ MuiCheckbox: {
550
+ styleOverrides: {
551
+ root: {
552
+ variants: [
553
+ {
554
+ props: { size: "large" },
555
+ style: {
556
+ width: 46,
557
+ height: 46,
558
+ padding: (46 - 28) / 2,
559
+ "& .MuiSvgIcon-root": { fontSize: 28 }
560
+ }
561
+ }
562
+ ]
563
+ }
564
+ }
565
+ },
566
+ MuiRadio: {
567
+ styleOverrides: {
568
+ root: {
569
+ variants: [
570
+ {
571
+ props: { size: "large" },
572
+ style: {
573
+ width: 46,
574
+ height: 46,
575
+ padding: (46 - 28) / 2,
576
+ "& .MuiSvgIcon-root": { fontSize: 28 }
577
+ }
578
+ }
579
+ ]
580
+ }
581
+ }
582
+ },
583
+ MuiSwitch: {
584
+ styleOverrides: {
585
+ root: {
586
+ variants: [
587
+ {
588
+ props: { size: "large" },
589
+ style: {
590
+ width: 68,
591
+ height: 44,
592
+ padding: 8,
593
+ "& .MuiSwitch-switchBase": {
594
+ padding: 8,
595
+ "&.Mui-checked": {
596
+ transform: "translateX(24px)"
597
+ }
598
+ },
599
+ "& .MuiSwitch-thumb": {
600
+ width: 28,
601
+ height: 28
602
+ },
603
+ "& .MuiSwitch-track": {
604
+ height: 16,
605
+ margin: "auto",
606
+ borderRadius: 16 / 2
607
+ }
608
+ }
609
+ }
610
+ ]
611
+ }
612
+ }
613
+ },
614
+ MuiCssBaseline: {
615
+ styleOverrides: {
616
+ ":root": {
617
+ "--theme-primary": primary,
618
+ "--theme-secondary": secondary
619
+ }
620
+ }
621
+ }
622
+ }
623
+ };
624
+ return (0, import_styles.createTheme)(themeOptions);
625
+ }
626
+
627
+ // src/theme/spacing.ts
628
+ var SPACING_BASE_PX = 4;
629
+ var SPACING_SCALE = {
630
+ "1": `${1 * SPACING_BASE_PX}px`,
631
+ "2": `${2 * SPACING_BASE_PX}px`,
632
+ "3": `${3 * SPACING_BASE_PX}px`,
633
+ "4": `${4 * SPACING_BASE_PX}px`,
634
+ "5": `${5 * SPACING_BASE_PX}px`,
635
+ "6": `${6 * SPACING_BASE_PX}px`,
636
+ "8": `${8 * SPACING_BASE_PX}px`,
637
+ "10": `${10 * SPACING_BASE_PX}px`,
638
+ "12": `${12 * SPACING_BASE_PX}px`
639
+ };
640
+
641
+ // src/theme/buildCssVariables.ts
642
+ function entriesToVars(prefix, obj) {
643
+ const out = {};
644
+ for (const k of Object.keys(obj)) {
645
+ out[prefix + k] = obj[k];
646
+ }
647
+ return out;
648
+ }
649
+ function buildPrimaryScale2(primaryHex) {
650
+ const steps = PRIMARY_SCALE_KEYS.map((key, i) => ({
651
+ key,
652
+ opacity: PRIMARY_OPACITY_STEPS[i]
653
+ }));
654
+ const [r, g, b] = hexToRgb(primaryHex);
655
+ const out = {};
656
+ steps.forEach(({ key, opacity }) => {
657
+ out[key] = `rgba(${r}, ${g}, ${b}, ${opacity})`;
658
+ });
659
+ return out;
660
+ }
661
+ function buildSecondaryScale2(secondaryHex) {
662
+ const steps = SECONDARY_SCALE_KEYS.map((key, i) => ({
663
+ key,
664
+ opacity: SECONDARY_OPACITY_STEPS[i]
665
+ }));
666
+ const [r, g, b] = hexToRgb(secondaryHex);
667
+ const out = {};
668
+ steps.forEach(({ key, opacity }) => {
669
+ out[key] = `rgba(${r}, ${g}, ${b}, ${opacity})`;
670
+ });
671
+ return out;
672
+ }
673
+ function buildCssVariables(options) {
674
+ var _a;
675
+ const { primary, secondary } = options;
676
+ const foundation = FOUNDATION_COLORS;
677
+ const primaryRgb = hexToRgb(primary);
678
+ const secondaryRgb = hexToRgb(secondary);
679
+ const primaryScale = buildPrimaryScale2(primary);
680
+ const secondaryScale = buildSecondaryScale2(secondary);
681
+ return __spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
682
+ // RGB triplets for opacity-based usage
683
+ "--primary-rgb": rgbToCssRgbString(primaryRgb),
684
+ "--secondary-rgb": rgbToCssRgbString(secondaryRgb),
685
+ // Brand (tenant)
686
+ "--primary": primary,
687
+ "--secondary": secondary,
688
+ "--color-brand-primary": primary,
689
+ "--color-brand-secondary": secondary
690
+ }, entriesToVars("--primary-", primaryScale)), entriesToVars("--secondary-", secondaryScale)), {
691
+ // Foundation – text
692
+ "--color-text-primary": foundation.text.primary,
693
+ "--color-text-secondary": foundation.text.secondary,
694
+ "--color-text-disabled": foundation.text.disabled,
695
+ "--color-text-inverse": foundation.text.inverse,
696
+ // Foundation – background
697
+ "--color-background-primary": foundation.background.primary,
698
+ "--color-background-secondary": foundation.background.secondary,
699
+ "--color-background-tertiary": foundation.background.tertiary,
700
+ "--color-background-elevated": foundation.background.elevated,
701
+ // Foundation – border (focus = brand primary for tenant theming)
702
+ "--color-border-default": foundation.border.default,
703
+ "--color-border-focus": primary,
704
+ "--color-border-error": foundation.border.error,
705
+ // Foundation – state
706
+ "--color-state-error": FOUNDATION_COLORS.state.error,
707
+ "--color-state-warning": FOUNDATION_COLORS.state.warning,
708
+ "--color-state-success": FOUNDATION_COLORS.state.success,
709
+ "--color-state-info": FOUNDATION_COLORS.state.info
710
+ }), entriesToVars("--gray-", GRAY_SCALE)), {
711
+ // Accents
712
+ "--accent-purple": ACCENTS.purple,
713
+ "--accent-dark-green": ACCENTS.darkGreen,
714
+ // Opacity utility
715
+ "--opacity-disabled": String(OPACITY_UTILITY.disabled),
716
+ "--opacity-hover": String(OPACITY_UTILITY.hover)
717
+ }), entriesToVars("--space-", SPACING_SCALE)), {
718
+ // Semantic aliases (component-level tokens that alias foundation/extended)
719
+ "--input-background": foundation.background.primary,
720
+ "--input-border": foundation.border.default,
721
+ "--input-border-focus": foundation.border.focus,
722
+ "--input-border-error": foundation.border.error,
723
+ "--input-text": foundation.text.primary,
724
+ "--input-placeholder": foundation.text.disabled,
725
+ "--card-background": foundation.background.elevated,
726
+ "--card-border": foundation.border.default,
727
+ "--navbar-background": foundation.background.elevated,
728
+ "--navbar-text": foundation.text.primary,
729
+ "--navbar-text-active": primary,
730
+ "--navbar-border": foundation.border.default,
731
+ "--link-default": primary,
732
+ "--link-hover": (_a = primaryScale["400"]) != null ? _a : rgba(primary, 0.4),
733
+ "--modal-background": foundation.background.elevated,
734
+ "--tooltip-background": secondary,
735
+ "--tooltip-text": foundation.text.inverse,
736
+ "--divider": foundation.border.default,
737
+ // Charts
738
+ "--chart-background": CHART_COLORS.background,
739
+ "--chart-text-labels": CHART_COLORS.textLabels,
740
+ "--chart-text-title": CHART_COLORS.textTitle,
741
+ "--chart-grid": CHART_COLORS.grid,
742
+ "--chart-series-blue": CHART_COLORS.series.blue,
743
+ "--chart-series-teal": CHART_COLORS.series.teal,
744
+ "--chart-series-yellow": CHART_COLORS.series.yellow,
745
+ "--chart-series-orange": CHART_COLORS.series.orange,
746
+ "--chart-series-red": CHART_COLORS.series.red,
747
+ "--chart-series-pink": CHART_COLORS.series.pink,
748
+ "--chart-series-purple": CHART_COLORS.series.purple,
749
+ "--chart-series-indigo": CHART_COLORS.series.indigo,
750
+ "--chart-series-light-blue": CHART_COLORS.series.lightBlue,
751
+ "--chart-series-green": CHART_COLORS.series.green
752
+ }), getTypographyCssVars());
753
+ }
754
+
755
+ // src/theme/ThemeProvider.tsx
756
+ var import_jsx_runtime = require("react/jsx-runtime");
757
+ function ThemeProvider({
758
+ children,
759
+ primary = DEFAULT_THEME_OPTIONS.primary,
760
+ secondary = DEFAULT_THEME_OPTIONS.secondary,
761
+ injectCssVariables = true
762
+ }) {
763
+ const options = (0, import_react.useMemo)(() => ({ primary, secondary }), [primary, secondary]);
764
+ const theme = (0, import_react.useMemo)(() => createDesignTheme(options), [options]);
765
+ const cssVars = (0, import_react.useMemo)(() => buildCssVariables(options), [options]);
766
+ const styleId = (0, import_react.useId)().replace(/:/g, "-");
767
+ const styleContent = (0, import_react.useMemo)(() => {
768
+ if (!injectCssVariables) return "";
769
+ const declarations = Object.entries(cssVars).map(([key, value]) => `${key}: ${value};`).join("\n ");
770
+ return `:root {
771
+ ${declarations}
772
+ }`;
773
+ }, [cssVars, injectCssVariables]);
774
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles2.ThemeProvider, { theme, children: [
775
+ injectCssVariables && styleContent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { id: `theme-vars-${styleId}`, "data-theme-vars": true, children: styleContent }) : null,
776
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CssBaseline.default, {}),
777
+ children
778
+ ] });
779
+ }
780
+ ThemeProvider.displayName = "ThemeProvider";
781
+ // Annotate the CommonJS export names for ESM import in node:
782
+ 0 && (module.exports = {
783
+ ACCENTS,
784
+ CHART_COLORS,
785
+ FONT_FAMILY_SANS,
786
+ FOUNDATION_COLORS,
787
+ GRAY_SCALE,
788
+ OPACITY_UTILITY,
789
+ SPACING_BASE_PX,
790
+ SPACING_SCALE,
791
+ TYPOGRAPHY,
792
+ TYPOGRAPHY_BODY,
793
+ TYPOGRAPHY_DISPLAY,
794
+ TYPOGRAPHY_EXTRA_CSS,
795
+ TYPOGRAPHY_HEADING,
796
+ TYPOGRAPHY_LABEL,
797
+ TYPOGRAPHY_UTILITY,
798
+ ThemeProvider,
799
+ VIEWPORT_LABELS,
800
+ VIEWPORT_MAX_WIDTH,
801
+ buildCssVariables,
802
+ buildOpacityScale,
803
+ createDesignTheme,
804
+ getContrastText,
805
+ getLuminance,
806
+ getResponsiveFontOverrides,
807
+ getTypographyCssVars,
808
+ hexToRgb,
809
+ rgbToCssRgbString,
810
+ rgba
811
+ });