@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
package/dist/index.js ADDED
@@ -0,0 +1,697 @@
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/index.ts
48
+ var index_exports = {};
49
+ __export(index_exports, {
50
+ ACCENTS: () => ACCENTS,
51
+ Button: () => Button,
52
+ CHART_COLORS: () => CHART_COLORS,
53
+ FONT_FAMILY_SANS: () => FONT_FAMILY_SANS,
54
+ FOUNDATION_COLORS: () => FOUNDATION_COLORS,
55
+ GRAY_SCALE: () => GRAY_SCALE,
56
+ OPACITY_UTILITY: () => OPACITY_UTILITY,
57
+ TYPOGRAPHY: () => TYPOGRAPHY,
58
+ TYPOGRAPHY_BODY: () => TYPOGRAPHY_BODY,
59
+ TYPOGRAPHY_DISPLAY: () => TYPOGRAPHY_DISPLAY,
60
+ TYPOGRAPHY_EXTRA_CSS: () => TYPOGRAPHY_EXTRA_CSS,
61
+ TYPOGRAPHY_HEADING: () => TYPOGRAPHY_HEADING,
62
+ TYPOGRAPHY_LABEL: () => TYPOGRAPHY_LABEL,
63
+ TYPOGRAPHY_UTILITY: () => TYPOGRAPHY_UTILITY,
64
+ ThemeProvider: () => ThemeProvider,
65
+ VIEWPORT_LABELS: () => VIEWPORT_LABELS,
66
+ VIEWPORT_MAX_WIDTH: () => VIEWPORT_MAX_WIDTH,
67
+ buildCssVariables: () => buildCssVariables,
68
+ buildOpacityScale: () => buildOpacityScale,
69
+ createDesignTheme: () => createDesignTheme,
70
+ getContrastText: () => getContrastText,
71
+ getLuminance: () => getLuminance,
72
+ getResponsiveFontOverrides: () => getResponsiveFontOverrides,
73
+ getTypographyCssVars: () => getTypographyCssVars,
74
+ hexToRgb: () => hexToRgb,
75
+ rgbToCssRgbString: () => rgbToCssRgbString,
76
+ rgba: () => rgba
77
+ });
78
+ module.exports = __toCommonJS(index_exports);
79
+
80
+ // src/button.tsx
81
+ var import_Button = __toESM(require("@mui/material/Button"));
82
+ var import_jsx_runtime = require("react/jsx-runtime");
83
+ function Button(props) {
84
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.default, __spreadValues({}, props));
85
+ }
86
+ Button.displayName = "Button";
87
+
88
+ // src/theme/ThemeProvider.tsx
89
+ var import_react = require("react");
90
+ var import_styles2 = require("@mui/material/styles");
91
+ var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"));
92
+
93
+ // src/theme/createDesignTheme.ts
94
+ var import_styles = require("@mui/material/styles");
95
+
96
+ // src/theme/constants.ts
97
+ var FOUNDATION_COLORS = {
98
+ // Brand are tenant-driven; defaults for fallback
99
+ brand: {
100
+ primary: "#33FF99",
101
+ secondary: "#162029"
102
+ },
103
+ text: {
104
+ primary: "#040D13",
105
+ secondary: "#4A5C6A",
106
+ disabled: "#9EAAB5",
107
+ inverse: "#FFFFFF"
108
+ },
109
+ background: {
110
+ primary: "#FFFFFF",
111
+ secondary: "#F5F8FA",
112
+ tertiary: "#E8EAEC",
113
+ elevated: "#FFFFFF"
114
+ },
115
+ border: {
116
+ default: "#E8EAEC",
117
+ focus: "#33FF99",
118
+ // default only; at runtime --color-border-focus uses brand primary
119
+ error: "#F44336"
120
+ },
121
+ state: {
122
+ error: "#F44336",
123
+ warning: "#FF9800",
124
+ success: "#4CAF50",
125
+ info: "#2196F3"
126
+ }
127
+ };
128
+ var GRAY_SCALE = {
129
+ 50: "#F6F6F8",
130
+ 100: "#E8E8EB",
131
+ 200: "#D9D9D9",
132
+ 300: "#B9BCBF",
133
+ 400: "#959495",
134
+ 500: "#868686",
135
+ 600: "#8A8F94"
136
+ };
137
+ var ACCENTS = {
138
+ purple: "#9747FF",
139
+ darkGreen: "#1E4620"
140
+ };
141
+ var OPACITY_UTILITY = {
142
+ disabled: 0.38,
143
+ hover: 0.08
144
+ };
145
+ var CHART_COLORS = {
146
+ background: "#F7F7F8",
147
+ textLabels: "#000000",
148
+ textTitle: "#757373",
149
+ grid: "#E3E3E8",
150
+ series: {
151
+ blue: "#2B72FB",
152
+ teal: "#64BDC6",
153
+ yellow: "#EECA34",
154
+ orange: "#FE6A35",
155
+ red: "#FA4B42",
156
+ pink: "#EE60E0",
157
+ purple: "#7B47E9",
158
+ indigo: "#5D89DF",
159
+ lightBlue: "#6AD1FE",
160
+ green: "#3FDC7E"
161
+ }
162
+ };
163
+ var PRIMARY_OPACITY_STEPS = [0.05, 0.1, 0.2, 0.3, 0.4, 0.6, 0.7, 0.8, 0.9];
164
+ var SECONDARY_OPACITY_STEPS = [0.05, 0.1, 0.2, 0.6, 0.7, 0.8, 0.9];
165
+ var PRIMARY_SCALE_KEYS = ["50", "100", "200", "300", "400", "600", "700", "800", "900"];
166
+ var SECONDARY_SCALE_KEYS = ["50", "100", "200", "600", "700", "800", "900"];
167
+ var DEFAULT_THEME_OPTIONS = {
168
+ primary: FOUNDATION_COLORS.brand.primary,
169
+ secondary: FOUNDATION_COLORS.brand.secondary
170
+ };
171
+ var CONTRAST_DARK = "#040D13";
172
+ var CONTRAST_LIGHT = "#FFFFFF";
173
+
174
+ // src/theme/typography.ts
175
+ var FONT_FAMILY_SANS = '"Proxima Nova", sans-serif';
176
+ function style(weight, size, lineHeight, extra) {
177
+ return __spreadValues({ fontWeight: weight, fontSize: size, lineHeight }, extra);
178
+ }
179
+ var TYPOGRAPHY_DISPLAY = {
180
+ large: style(700, "4rem", "4.5rem", { letterSpacing: "-0.03125rem" }),
181
+ medium: style(700, "3rem", "3.5rem"),
182
+ small: style(600, "2.125rem", "2.625rem")
183
+ };
184
+ var TYPOGRAPHY_HEADING = {
185
+ h1: style(700, "2rem", "2.5rem"),
186
+ h2: style(600, "1.75rem", "2.25rem"),
187
+ h3: style(600, "1.5rem", "2rem"),
188
+ h4: style(600, "1.3125rem", "1.75rem"),
189
+ h5: style(600, "1.125rem", "1.5rem"),
190
+ h6: style(600, "1rem", "1.375rem")
191
+ };
192
+ var TYPOGRAPHY_BODY = {
193
+ large: style(400, "1.125rem", "1.75rem"),
194
+ medium: style(400, "1rem", "1.5rem"),
195
+ small: style(400, "0.875rem", "1.25rem")
196
+ };
197
+ var TYPOGRAPHY_LABEL = {
198
+ large: style(600, "1rem", "1.25rem"),
199
+ medium: style(600, "0.875rem", "1.125rem"),
200
+ small: style(600, "0.75rem", "1rem", { letterSpacing: "0.03125rem" })
201
+ };
202
+ var TYPOGRAPHY_UTILITY = {
203
+ caption: style(400, "0.75rem", "1rem"),
204
+ overline: style(600, "0.625rem", "0.875rem", {
205
+ letterSpacing: "0.09375rem",
206
+ textTransform: "uppercase"
207
+ }),
208
+ code: style(400, "0.875rem", "1.25rem")
209
+ };
210
+ var TYPOGRAPHY = {
211
+ display: TYPOGRAPHY_DISPLAY,
212
+ heading: TYPOGRAPHY_HEADING,
213
+ body: TYPOGRAPHY_BODY,
214
+ label: TYPOGRAPHY_LABEL,
215
+ utility: TYPOGRAPHY_UTILITY
216
+ };
217
+ function toFontShorthand(s, family = FONT_FAMILY_SANS) {
218
+ var _a;
219
+ const f = (_a = s.fontFamily) != null ? _a : family;
220
+ return `${s.fontWeight} ${s.fontSize}/${s.lineHeight} ${f}`;
221
+ }
222
+ function getTypographyCssVars() {
223
+ var _a;
224
+ const family = FONT_FAMILY_SANS;
225
+ const entries = [];
226
+ entries.push(["--font-family-sans", family]);
227
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_DISPLAY)) {
228
+ entries.push([`--font-display-${key}`, toFontShorthand(style2, family)]);
229
+ }
230
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_HEADING)) {
231
+ entries.push([`--font-${key}`, toFontShorthand(style2, family)]);
232
+ }
233
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_BODY)) {
234
+ entries.push([`--font-body-${key}`, toFontShorthand(style2, family)]);
235
+ }
236
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_LABEL)) {
237
+ entries.push([`--font-label-${key}`, toFontShorthand(style2, family)]);
238
+ }
239
+ for (const [key, style2] of Object.entries(TYPOGRAPHY_UTILITY)) {
240
+ entries.push([`--font-${key}`, toFontShorthand(style2, (_a = style2.fontFamily) != null ? _a : family)]);
241
+ }
242
+ const out = {};
243
+ entries.forEach(([k, v]) => {
244
+ out[k] = v;
245
+ });
246
+ return out;
247
+ }
248
+ var TYPOGRAPHY_EXTRA_CSS = {
249
+ "font-display-large": { letterSpacing: "-0.03125rem" },
250
+ "font-label-small": { letterSpacing: "0.03125rem" },
251
+ "font-overline": { letterSpacing: "0.09375rem", textTransform: "uppercase" }
252
+ };
253
+ var VIEWPORT_LABELS = {
254
+ desktop: "Desktop (default)",
255
+ tablet: "Tablet (768\u20131024px)",
256
+ mobile: "Mobile (< 768px)"
257
+ };
258
+ var VIEWPORT_MAX_WIDTH = {
259
+ desktop: void 0,
260
+ tablet: 768,
261
+ mobile: 375
262
+ };
263
+ var RESPONSIVE_DISPLAY_MOBILE = {
264
+ displayLarge: style(700, "2.5rem", "2.8125rem", { letterSpacing: "-0.03125rem" }),
265
+ displayMedium: style(700, "2rem", "2.334rem"),
266
+ h1: style(700, "1.75rem", "2.1875rem"),
267
+ h2: style(600, "1.5rem", "1.93rem")
268
+ };
269
+ var RESPONSIVE_DISPLAY_TABLET = {
270
+ displayLarge: style(700, "3.6rem", "4.05rem", { letterSpacing: "-0.03125rem" }),
271
+ displayMedium: style(700, "2.7rem", "3.15rem"),
272
+ displaySmall: style(600, "1.9125rem", "2.3625rem")
273
+ };
274
+ function getResponsiveFontOverrides(mode) {
275
+ if (mode === "desktop") return {};
276
+ const f = FONT_FAMILY_SANS;
277
+ if (mode === "mobile") {
278
+ return {
279
+ "--font-display-large": toFontShorthand(RESPONSIVE_DISPLAY_MOBILE.displayLarge, f),
280
+ "--font-display-medium": toFontShorthand(RESPONSIVE_DISPLAY_MOBILE.displayMedium, f),
281
+ "--font-h1": toFontShorthand(RESPONSIVE_DISPLAY_MOBILE.h1, f),
282
+ "--font-h2": toFontShorthand(RESPONSIVE_DISPLAY_MOBILE.h2, f)
283
+ };
284
+ }
285
+ return {
286
+ "--font-display-large": toFontShorthand(RESPONSIVE_DISPLAY_TABLET.displayLarge, f),
287
+ "--font-display-medium": toFontShorthand(RESPONSIVE_DISPLAY_TABLET.displayMedium, f),
288
+ "--font-display-small": toFontShorthand(RESPONSIVE_DISPLAY_TABLET.displaySmall, f)
289
+ };
290
+ }
291
+
292
+ // src/theme/utils.ts
293
+ function hexToRgb(hex) {
294
+ const normalized = hex.replace(/^#/, "");
295
+ if (normalized.length === 3) {
296
+ const r = parseInt(normalized[0] + normalized[0], 16);
297
+ const g = parseInt(normalized[1] + normalized[1], 16);
298
+ const b = parseInt(normalized[2] + normalized[2], 16);
299
+ return [r, g, b];
300
+ }
301
+ if (normalized.length === 6) {
302
+ const r = parseInt(normalized.slice(0, 2), 16);
303
+ const g = parseInt(normalized.slice(2, 4), 16);
304
+ const b = parseInt(normalized.slice(4, 6), 16);
305
+ return [r, g, b];
306
+ }
307
+ throw new Error(`Invalid hex color: ${hex}`);
308
+ }
309
+ function rgbToCssRgbString(rgb) {
310
+ return `${rgb[0]}, ${rgb[1]}, ${rgb[2]}`;
311
+ }
312
+ function rgba(hex, alpha) {
313
+ const [r, g, b] = hexToRgb(hex);
314
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
315
+ }
316
+ function buildOpacityScale(hex, steps) {
317
+ const [r, g, b] = hexToRgb(hex);
318
+ const out = {};
319
+ for (const { key, opacity } of steps) {
320
+ out[key] = `rgba(${r}, ${g}, ${b}, ${opacity})`;
321
+ }
322
+ return out;
323
+ }
324
+ function linearizeSrgb(c) {
325
+ const n = c / 255;
326
+ return n <= 0.03928 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
327
+ }
328
+ function getLuminance(hex) {
329
+ const [r, g, b] = hexToRgb(hex);
330
+ return 0.2126 * linearizeSrgb(r) + 0.7152 * linearizeSrgb(g) + 0.0722 * linearizeSrgb(b);
331
+ }
332
+ function getContrastText(backgroundColor) {
333
+ const luminance = getLuminance(backgroundColor);
334
+ return luminance > 0.179 ? CONTRAST_DARK : CONTRAST_LIGHT;
335
+ }
336
+
337
+ // src/theme/createDesignTheme.ts
338
+ function buildPrimaryScale(primaryHex) {
339
+ const steps = [
340
+ { key: "50", opacity: 0.05 },
341
+ { key: "100", opacity: 0.1 },
342
+ { key: "200", opacity: 0.2 },
343
+ { key: "300", opacity: 0.3 },
344
+ { key: "400", opacity: 0.4 },
345
+ { key: "600", opacity: 0.6 },
346
+ { key: "700", opacity: 0.7 },
347
+ { key: "800", opacity: 0.8 },
348
+ { key: "900", opacity: 0.9 }
349
+ ];
350
+ const out = {};
351
+ steps.forEach(({ key, opacity }) => {
352
+ out[key] = rgba(primaryHex, opacity);
353
+ });
354
+ return out;
355
+ }
356
+ function buildSecondaryScale(secondaryHex) {
357
+ const steps = [
358
+ { key: "50", opacity: 0.05 },
359
+ { key: "100", opacity: 0.1 },
360
+ { key: "200", opacity: 0.2 },
361
+ { key: "600", opacity: 0.6 },
362
+ { key: "700", opacity: 0.7 },
363
+ { key: "800", opacity: 0.8 },
364
+ { key: "900", opacity: 0.9 }
365
+ ];
366
+ const out = {};
367
+ steps.forEach(({ key, opacity }) => {
368
+ out[key] = rgba(secondaryHex, opacity);
369
+ });
370
+ return out;
371
+ }
372
+ function buildPrimaryScalePalette(primaryHex) {
373
+ const scale = buildPrimaryScale(primaryHex);
374
+ return {
375
+ 50: scale["50"],
376
+ 100: scale["100"],
377
+ 200: scale["200"],
378
+ 300: scale["300"],
379
+ 400: scale["400"],
380
+ 500: primaryHex,
381
+ 600: scale["600"],
382
+ 700: scale["700"],
383
+ 800: scale["800"],
384
+ 900: scale["900"],
385
+ main: primaryHex,
386
+ light: scale["200"],
387
+ dark: scale["800"],
388
+ contrastText: getContrastText(primaryHex)
389
+ };
390
+ }
391
+ function buildSecondaryScalePalette(secondaryHex) {
392
+ const scale = buildSecondaryScale(secondaryHex);
393
+ return {
394
+ 50: scale["50"],
395
+ 100: scale["100"],
396
+ 200: scale["200"],
397
+ 600: scale["600"],
398
+ 700: scale["700"],
399
+ 800: scale["800"],
400
+ 900: scale["900"],
401
+ main: secondaryHex,
402
+ light: scale["200"],
403
+ dark: scale["800"],
404
+ contrastText: getContrastText(secondaryHex)
405
+ };
406
+ }
407
+ function createDesignTheme(config) {
408
+ const { primary, secondary } = config;
409
+ const foundation = FOUNDATION_COLORS;
410
+ const palette = {
411
+ mode: "light",
412
+ primary: buildPrimaryScalePalette(primary),
413
+ secondary: buildSecondaryScalePalette(secondary),
414
+ error: {
415
+ main: FOUNDATION_COLORS.state.error
416
+ },
417
+ warning: {
418
+ main: FOUNDATION_COLORS.state.warning
419
+ },
420
+ success: {
421
+ main: FOUNDATION_COLORS.state.success
422
+ },
423
+ info: {
424
+ main: FOUNDATION_COLORS.state.info
425
+ },
426
+ background: {
427
+ default: foundation.background.primary,
428
+ paper: foundation.background.elevated
429
+ },
430
+ text: {
431
+ primary: foundation.text.primary,
432
+ secondary: foundation.text.secondary,
433
+ disabled: foundation.text.disabled
434
+ },
435
+ grey: GRAY_SCALE,
436
+ divider: foundation.border.default
437
+ };
438
+ const themeOptions = {
439
+ palette,
440
+ typography: {
441
+ fontFamily: FONT_FAMILY_SANS,
442
+ h1: {
443
+ fontFamily: FONT_FAMILY_SANS,
444
+ fontWeight: TYPOGRAPHY_HEADING.h1.fontWeight,
445
+ fontSize: TYPOGRAPHY_HEADING.h1.fontSize,
446
+ lineHeight: TYPOGRAPHY_HEADING.h1.lineHeight
447
+ },
448
+ h2: {
449
+ fontFamily: FONT_FAMILY_SANS,
450
+ fontWeight: TYPOGRAPHY_HEADING.h2.fontWeight,
451
+ fontSize: TYPOGRAPHY_HEADING.h2.fontSize,
452
+ lineHeight: TYPOGRAPHY_HEADING.h2.lineHeight
453
+ },
454
+ h3: {
455
+ fontFamily: FONT_FAMILY_SANS,
456
+ fontWeight: TYPOGRAPHY_HEADING.h3.fontWeight,
457
+ fontSize: TYPOGRAPHY_HEADING.h3.fontSize,
458
+ lineHeight: TYPOGRAPHY_HEADING.h3.lineHeight
459
+ },
460
+ h4: {
461
+ fontFamily: FONT_FAMILY_SANS,
462
+ fontWeight: TYPOGRAPHY_HEADING.h4.fontWeight,
463
+ fontSize: TYPOGRAPHY_HEADING.h4.fontSize,
464
+ lineHeight: TYPOGRAPHY_HEADING.h4.lineHeight
465
+ },
466
+ h5: {
467
+ fontFamily: FONT_FAMILY_SANS,
468
+ fontWeight: TYPOGRAPHY_HEADING.h5.fontWeight,
469
+ fontSize: TYPOGRAPHY_HEADING.h5.fontSize,
470
+ lineHeight: TYPOGRAPHY_HEADING.h5.lineHeight
471
+ },
472
+ h6: {
473
+ fontFamily: FONT_FAMILY_SANS,
474
+ fontWeight: TYPOGRAPHY_HEADING.h6.fontWeight,
475
+ fontSize: TYPOGRAPHY_HEADING.h6.fontSize,
476
+ lineHeight: TYPOGRAPHY_HEADING.h6.lineHeight
477
+ },
478
+ body1: {
479
+ fontFamily: FONT_FAMILY_SANS,
480
+ fontWeight: TYPOGRAPHY_BODY.medium.fontWeight,
481
+ fontSize: TYPOGRAPHY_BODY.medium.fontSize,
482
+ lineHeight: TYPOGRAPHY_BODY.medium.lineHeight
483
+ },
484
+ body2: {
485
+ fontFamily: FONT_FAMILY_SANS,
486
+ fontWeight: TYPOGRAPHY_BODY.small.fontWeight,
487
+ fontSize: TYPOGRAPHY_BODY.small.fontSize,
488
+ lineHeight: TYPOGRAPHY_BODY.small.lineHeight
489
+ }
490
+ },
491
+ components: {
492
+ MuiButton: {
493
+ styleOverrides: {
494
+ root: {
495
+ textTransform: "none",
496
+ borderRadius: 0
497
+ },
498
+ outlined: {
499
+ color: CONTRAST_DARK,
500
+ "& .MuiButton-startIcon, & .MuiButton-endIcon": {
501
+ color: CONTRAST_DARK
502
+ }
503
+ },
504
+ sizeSmall: {
505
+ height: 32,
506
+ minHeight: 32
507
+ },
508
+ sizeMedium: {
509
+ height: 40,
510
+ minHeight: 40
511
+ },
512
+ sizeLarge: {
513
+ height: 48,
514
+ minHeight: 48
515
+ }
516
+ }
517
+ },
518
+ MuiCssBaseline: {
519
+ styleOverrides: {
520
+ ":root": {
521
+ "--theme-primary": primary,
522
+ "--theme-secondary": secondary
523
+ }
524
+ }
525
+ }
526
+ }
527
+ };
528
+ return (0, import_styles.createTheme)(themeOptions);
529
+ }
530
+
531
+ // src/theme/buildCssVariables.ts
532
+ function entriesToVars(prefix, obj) {
533
+ const out = {};
534
+ for (const k of Object.keys(obj)) {
535
+ out[prefix + k] = obj[k];
536
+ }
537
+ return out;
538
+ }
539
+ function buildPrimaryScale2(primaryHex) {
540
+ const steps = PRIMARY_SCALE_KEYS.map((key, i) => ({
541
+ key,
542
+ opacity: PRIMARY_OPACITY_STEPS[i]
543
+ }));
544
+ const [r, g, b] = hexToRgb(primaryHex);
545
+ const out = {};
546
+ steps.forEach(({ key, opacity }) => {
547
+ out[key] = `rgba(${r}, ${g}, ${b}, ${opacity})`;
548
+ });
549
+ return out;
550
+ }
551
+ function buildSecondaryScale2(secondaryHex) {
552
+ const steps = SECONDARY_SCALE_KEYS.map((key, i) => ({
553
+ key,
554
+ opacity: SECONDARY_OPACITY_STEPS[i]
555
+ }));
556
+ const [r, g, b] = hexToRgb(secondaryHex);
557
+ const out = {};
558
+ steps.forEach(({ key, opacity }) => {
559
+ out[key] = `rgba(${r}, ${g}, ${b}, ${opacity})`;
560
+ });
561
+ return out;
562
+ }
563
+ function buildCssVariables(options) {
564
+ var _a;
565
+ const { primary, secondary } = options;
566
+ const foundation = FOUNDATION_COLORS;
567
+ const primaryRgb = hexToRgb(primary);
568
+ const secondaryRgb = hexToRgb(secondary);
569
+ const primaryScale = buildPrimaryScale2(primary);
570
+ const secondaryScale = buildSecondaryScale2(secondary);
571
+ return __spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
572
+ // RGB triplets for opacity-based usage
573
+ "--primary-rgb": rgbToCssRgbString(primaryRgb),
574
+ "--secondary-rgb": rgbToCssRgbString(secondaryRgb),
575
+ // Brand (tenant)
576
+ "--color-brand-primary": primary,
577
+ "--color-brand-secondary": secondary
578
+ }, entriesToVars("--primary-", primaryScale)), entriesToVars("--secondary-", secondaryScale)), {
579
+ // Foundation – text
580
+ "--color-text-primary": foundation.text.primary,
581
+ "--color-text-secondary": foundation.text.secondary,
582
+ "--color-text-disabled": foundation.text.disabled,
583
+ "--color-text-inverse": foundation.text.inverse,
584
+ // Foundation – background
585
+ "--color-background-primary": foundation.background.primary,
586
+ "--color-background-secondary": foundation.background.secondary,
587
+ "--color-background-tertiary": foundation.background.tertiary,
588
+ "--color-background-elevated": foundation.background.elevated,
589
+ // Foundation – border (focus = brand primary for tenant theming)
590
+ "--color-border-default": foundation.border.default,
591
+ "--color-border-focus": primary,
592
+ "--color-border-error": foundation.border.error,
593
+ // Foundation – state
594
+ "--color-state-error": FOUNDATION_COLORS.state.error,
595
+ "--color-state-warning": FOUNDATION_COLORS.state.warning,
596
+ "--color-state-success": FOUNDATION_COLORS.state.success,
597
+ "--color-state-info": FOUNDATION_COLORS.state.info
598
+ }), entriesToVars("--gray-", GRAY_SCALE)), {
599
+ // Accents
600
+ "--accent-purple": ACCENTS.purple,
601
+ "--accent-dark-green": ACCENTS.darkGreen,
602
+ // Opacity utility
603
+ "--opacity-disabled": String(OPACITY_UTILITY.disabled),
604
+ "--opacity-hover": String(OPACITY_UTILITY.hover),
605
+ // Semantic aliases (component-level tokens that alias foundation/extended)
606
+ "--input-background": foundation.background.primary,
607
+ "--input-border": foundation.border.default,
608
+ "--input-border-focus": foundation.border.focus,
609
+ "--input-border-error": foundation.border.error,
610
+ "--input-text": foundation.text.primary,
611
+ "--input-placeholder": foundation.text.disabled,
612
+ "--card-background": foundation.background.elevated,
613
+ "--card-border": foundation.border.default,
614
+ "--navbar-background": foundation.background.elevated,
615
+ "--navbar-text": foundation.text.primary,
616
+ "--navbar-text-active": primary,
617
+ "--navbar-border": foundation.border.default,
618
+ "--link-default": primary,
619
+ "--link-hover": (_a = primaryScale["400"]) != null ? _a : rgba(primary, 0.4),
620
+ "--modal-background": foundation.background.elevated,
621
+ "--tooltip-background": secondary,
622
+ "--tooltip-text": foundation.text.inverse,
623
+ "--divider": foundation.border.default,
624
+ // Charts
625
+ "--chart-background": CHART_COLORS.background,
626
+ "--chart-text-labels": CHART_COLORS.textLabels,
627
+ "--chart-text-title": CHART_COLORS.textTitle,
628
+ "--chart-grid": CHART_COLORS.grid,
629
+ "--chart-series-blue": CHART_COLORS.series.blue,
630
+ "--chart-series-teal": CHART_COLORS.series.teal,
631
+ "--chart-series-yellow": CHART_COLORS.series.yellow,
632
+ "--chart-series-orange": CHART_COLORS.series.orange,
633
+ "--chart-series-red": CHART_COLORS.series.red,
634
+ "--chart-series-pink": CHART_COLORS.series.pink,
635
+ "--chart-series-purple": CHART_COLORS.series.purple,
636
+ "--chart-series-indigo": CHART_COLORS.series.indigo,
637
+ "--chart-series-light-blue": CHART_COLORS.series.lightBlue,
638
+ "--chart-series-green": CHART_COLORS.series.green
639
+ }), getTypographyCssVars());
640
+ }
641
+
642
+ // src/theme/ThemeProvider.tsx
643
+ var import_jsx_runtime2 = require("react/jsx-runtime");
644
+ function ThemeProvider({
645
+ children,
646
+ primary = DEFAULT_THEME_OPTIONS.primary,
647
+ secondary = DEFAULT_THEME_OPTIONS.secondary,
648
+ injectCssVariables = true
649
+ }) {
650
+ const options = (0, import_react.useMemo)(() => ({ primary, secondary }), [primary, secondary]);
651
+ const theme = (0, import_react.useMemo)(() => createDesignTheme(options), [options]);
652
+ const cssVars = (0, import_react.useMemo)(() => buildCssVariables(options), [options]);
653
+ const styleId = (0, import_react.useId)().replace(/:/g, "-");
654
+ const styleContent = (0, import_react.useMemo)(() => {
655
+ if (!injectCssVariables) return "";
656
+ const declarations = Object.entries(cssVars).map(([key, value]) => `${key}: ${value};`).join("\n ");
657
+ return `:root {
658
+ ${declarations}
659
+ }`;
660
+ }, [cssVars, injectCssVariables]);
661
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_styles2.ThemeProvider, { theme, children: [
662
+ injectCssVariables && styleContent ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("style", { id: `theme-vars-${styleId}`, "data-theme-vars": true, children: styleContent }) : null,
663
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_CssBaseline.default, {}),
664
+ children
665
+ ] });
666
+ }
667
+ ThemeProvider.displayName = "ThemeProvider";
668
+ // Annotate the CommonJS export names for ESM import in node:
669
+ 0 && (module.exports = {
670
+ ACCENTS,
671
+ Button,
672
+ CHART_COLORS,
673
+ FONT_FAMILY_SANS,
674
+ FOUNDATION_COLORS,
675
+ GRAY_SCALE,
676
+ OPACITY_UTILITY,
677
+ TYPOGRAPHY,
678
+ TYPOGRAPHY_BODY,
679
+ TYPOGRAPHY_DISPLAY,
680
+ TYPOGRAPHY_EXTRA_CSS,
681
+ TYPOGRAPHY_HEADING,
682
+ TYPOGRAPHY_LABEL,
683
+ TYPOGRAPHY_UTILITY,
684
+ ThemeProvider,
685
+ VIEWPORT_LABELS,
686
+ VIEWPORT_MAX_WIDTH,
687
+ buildCssVariables,
688
+ buildOpacityScale,
689
+ createDesignTheme,
690
+ getContrastText,
691
+ getLuminance,
692
+ getResponsiveFontOverrides,
693
+ getTypographyCssVars,
694
+ hexToRgb,
695
+ rgbToCssRgbString,
696
+ rgba
697
+ });