@omnitron-dev/prism 0.1.3 → 0.3.0

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 (839) hide show
  1. package/dist/accessibility/index.d.ts +7 -151
  2. package/dist/accessibility/index.d.ts.map +1 -0
  3. package/dist/accessibility/index.js +0 -1
  4. package/dist/accessibility/index.js.map +1 -1
  5. package/dist/accessibility/vision-mode.d.ts +154 -0
  6. package/dist/accessibility/vision-mode.d.ts.map +1 -0
  7. package/dist/blocks/auth-block/auth-block.d.ts +107 -0
  8. package/dist/blocks/auth-block/auth-block.d.ts.map +1 -0
  9. package/dist/blocks/auth-block/guards.d.ts +262 -0
  10. package/dist/blocks/auth-block/guards.d.ts.map +1 -0
  11. package/dist/blocks/auth-block/index.d.ts +13 -0
  12. package/dist/blocks/auth-block/index.d.ts.map +1 -0
  13. package/dist/blocks/auth-block/types.d.ts +232 -0
  14. package/dist/blocks/auth-block/types.d.ts.map +1 -0
  15. package/dist/blocks/dashboard-block/dashboard-block.d.ts +53 -0
  16. package/dist/blocks/dashboard-block/dashboard-block.d.ts.map +1 -0
  17. package/dist/blocks/dashboard-block/index.d.ts +12 -0
  18. package/dist/blocks/dashboard-block/index.d.ts.map +1 -0
  19. package/dist/blocks/dashboard-block/types.d.ts +182 -0
  20. package/dist/blocks/dashboard-block/types.d.ts.map +1 -0
  21. package/dist/blocks/dashboard-block/use-dashboard-block.d.ts +95 -0
  22. package/dist/blocks/dashboard-block/use-dashboard-block.d.ts.map +1 -0
  23. package/dist/blocks/data-grid-block/data-grid-block.d.ts +81 -0
  24. package/dist/blocks/data-grid-block/data-grid-block.d.ts.map +1 -0
  25. package/dist/blocks/data-grid-block/index.d.ts +11 -0
  26. package/dist/blocks/data-grid-block/index.d.ts.map +1 -0
  27. package/dist/blocks/data-grid-block/types.d.ts +304 -0
  28. package/dist/blocks/data-grid-block/types.d.ts.map +1 -0
  29. package/dist/blocks/index.d.ts +10 -1235
  30. package/dist/blocks/index.d.ts.map +1 -0
  31. package/dist/blocks/index.js +187 -50
  32. package/dist/blocks/index.js.map +1 -1
  33. package/dist/{chunk-UR6X3W5I.js → chunk-6AHI4GSV.js} +3 -3
  34. package/dist/chunk-6AHI4GSV.js.map +1 -0
  35. package/dist/{chunk-JDTC2SBY.js → chunk-AD4W7HYC.js} +2 -2
  36. package/dist/chunk-AD4W7HYC.js.map +1 -0
  37. package/dist/{chunk-BTIT7WYH.js → chunk-ADG4HZEP.js} +3 -3
  38. package/dist/chunk-ADG4HZEP.js.map +1 -0
  39. package/dist/{chunk-JNU4QHJK.js → chunk-AYYFMTMI.js} +5 -4
  40. package/dist/{chunk-JNU4QHJK.js.map → chunk-AYYFMTMI.js.map} +1 -1
  41. package/dist/{chunk-HO2GKTWJ.js → chunk-BRDWQVRT.js} +2 -2
  42. package/dist/chunk-BRDWQVRT.js.map +1 -0
  43. package/dist/{chunk-WC2WM2JD.js → chunk-BZOL7GMU.js} +36 -18
  44. package/dist/chunk-BZOL7GMU.js.map +1 -0
  45. package/dist/chunk-DRFNMZLG.js +192 -0
  46. package/dist/chunk-DRFNMZLG.js.map +1 -0
  47. package/dist/{chunk-BV32OJ2A.js → chunk-GUFHFEPZ.js} +2 -2
  48. package/dist/chunk-GUFHFEPZ.js.map +1 -0
  49. package/dist/{chunk-LAEY5USO.js → chunk-OBJ244BO.js} +608 -95
  50. package/dist/chunk-OBJ244BO.js.map +1 -0
  51. package/dist/{chunk-E3XANPTO.js → chunk-S6SEGBX6.js} +32 -209
  52. package/dist/chunk-S6SEGBX6.js.map +1 -0
  53. package/dist/chunk-SNZK5X6F.js +594 -0
  54. package/dist/chunk-SNZK5X6F.js.map +1 -0
  55. package/dist/chunk-WFD54GQQ.js +1940 -0
  56. package/dist/chunk-WFD54GQQ.js.map +1 -0
  57. package/dist/{chunk-DDY7TLUI.js → chunk-XIXSSI3B.js} +28 -2
  58. package/dist/chunk-XIXSSI3B.js.map +1 -0
  59. package/dist/chunk-YQW43BDH.js +11978 -0
  60. package/dist/chunk-YQW43BDH.js.map +1 -0
  61. package/dist/{chunk-XWL6J6IO.js → chunk-YSIG2XYH.js} +2 -2
  62. package/dist/chunk-YSIG2XYH.js.map +1 -0
  63. package/dist/chunk-Z5OSPAOC.js +1576 -0
  64. package/dist/chunk-Z5OSPAOC.js.map +1 -0
  65. package/dist/{chunk-DXXZ3ITR.js → chunk-ZTATTUH7.js} +851 -500
  66. package/dist/chunk-ZTATTUH7.js.map +1 -0
  67. package/dist/cli/commands/add.d.ts +22 -0
  68. package/dist/cli/commands/add.d.ts.map +1 -0
  69. package/dist/cli/commands/diff.d.ts +13 -0
  70. package/dist/cli/commands/diff.d.ts.map +1 -0
  71. package/dist/cli/commands/doctor.d.ts +13 -0
  72. package/dist/cli/commands/doctor.d.ts.map +1 -0
  73. package/dist/cli/commands/init.d.ts +13 -0
  74. package/dist/cli/commands/init.d.ts.map +1 -0
  75. package/dist/cli/commands/list.d.ts +13 -0
  76. package/dist/cli/commands/list.d.ts.map +1 -0
  77. package/dist/cli/commands/remove.d.ts +13 -0
  78. package/dist/cli/commands/remove.d.ts.map +1 -0
  79. package/dist/cli/commands/update.d.ts +13 -0
  80. package/dist/cli/commands/update.d.ts.map +1 -0
  81. package/dist/cli/config.d.ts +73 -0
  82. package/dist/cli/config.d.ts.map +1 -0
  83. package/dist/cli/constants.d.ts +60 -0
  84. package/dist/cli/constants.d.ts.map +1 -0
  85. package/dist/cli/index.d.ts +27 -0
  86. package/dist/cli/index.d.ts.map +1 -0
  87. package/dist/cli/index.js +35 -41
  88. package/dist/cli/index.js.map +1 -1
  89. package/dist/components/accordion/accordion.d.ts +149 -0
  90. package/dist/components/accordion/accordion.d.ts.map +1 -0
  91. package/dist/components/accordion/index.d.ts +7 -0
  92. package/dist/components/accordion/index.d.ts.map +1 -0
  93. package/dist/components/admin-filters/admin-data-table.d.ts +185 -0
  94. package/dist/components/admin-filters/admin-data-table.d.ts.map +1 -0
  95. package/dist/components/admin-filters/amount-cell.d.ts +39 -0
  96. package/dist/components/admin-filters/amount-cell.d.ts.map +1 -0
  97. package/dist/components/admin-filters/filter-toolbar.d.ts +99 -0
  98. package/dist/components/admin-filters/filter-toolbar.d.ts.map +1 -0
  99. package/dist/components/admin-filters/index.d.ts +13 -0
  100. package/dist/components/admin-filters/index.d.ts.map +1 -0
  101. package/dist/components/admin-filters/status-chip.d.ts +55 -0
  102. package/dist/components/admin-filters/status-chip.d.ts.map +1 -0
  103. package/dist/components/alert/alert.d.ts +159 -0
  104. package/dist/components/alert/alert.d.ts.map +1 -0
  105. package/dist/components/alert/index.d.ts +7 -0
  106. package/dist/components/alert/index.d.ts.map +1 -0
  107. package/dist/components/animate/animate-border.d.ts +33 -0
  108. package/dist/components/animate/animate-border.d.ts.map +1 -0
  109. package/dist/components/animate/index.d.ts +3 -0
  110. package/dist/components/animate/index.d.ts.map +1 -0
  111. package/dist/components/animate/motion-lazy.d.ts +5 -0
  112. package/dist/components/animate/motion-lazy.d.ts.map +1 -0
  113. package/dist/components/avatar/avatar.d.ts +78 -0
  114. package/dist/components/avatar/avatar.d.ts.map +1 -0
  115. package/dist/components/avatar/index.d.ts +7 -0
  116. package/dist/components/avatar/index.d.ts.map +1 -0
  117. package/dist/components/badge/badge.d.ts +102 -0
  118. package/dist/components/badge/badge.d.ts.map +1 -0
  119. package/dist/components/badge/index.d.ts +7 -0
  120. package/dist/components/badge/index.d.ts.map +1 -0
  121. package/dist/components/breadcrumbs/breadcrumbs.d.ts +100 -0
  122. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  123. package/dist/components/breadcrumbs/index.d.ts +7 -0
  124. package/dist/components/breadcrumbs/index.d.ts.map +1 -0
  125. package/dist/components/card/card.d.ts +127 -0
  126. package/dist/components/card/card.d.ts.map +1 -0
  127. package/dist/components/card/index.d.ts +7 -0
  128. package/dist/components/card/index.d.ts.map +1 -0
  129. package/dist/components/carousel/carousel.d.ts +35 -0
  130. package/dist/components/carousel/carousel.d.ts.map +1 -0
  131. package/dist/components/carousel/classes.d.ts +35 -0
  132. package/dist/components/carousel/classes.d.ts.map +1 -0
  133. package/dist/components/carousel/index.d.ts +10 -0
  134. package/dist/components/carousel/index.d.ts.map +1 -0
  135. package/dist/components/carousel/types.d.ts +167 -0
  136. package/dist/components/carousel/types.d.ts.map +1 -0
  137. package/dist/components/carousel/use-carousel.d.ts +51 -0
  138. package/dist/components/carousel/use-carousel.d.ts.map +1 -0
  139. package/dist/components/changelog/changelog-entry.d.ts +10 -0
  140. package/dist/components/changelog/changelog-entry.d.ts.map +1 -0
  141. package/dist/components/changelog/changelog-timeline.d.ts +9 -0
  142. package/dist/components/changelog/changelog-timeline.d.ts.map +1 -0
  143. package/dist/components/changelog/index.d.ts +3 -0
  144. package/dist/components/changelog/index.d.ts.map +1 -0
  145. package/dist/components/chart/chart.d.ts +39 -0
  146. package/dist/components/chart/chart.d.ts.map +1 -0
  147. package/dist/components/chart/classes.d.ts +24 -0
  148. package/dist/components/chart/classes.d.ts.map +1 -0
  149. package/dist/components/chart/components/chart-legends.d.ts +24 -0
  150. package/dist/components/chart/components/chart-legends.d.ts.map +1 -0
  151. package/dist/components/chart/components/chart-loading.d.ts +21 -0
  152. package/dist/components/chart/components/chart-loading.d.ts.map +1 -0
  153. package/dist/components/chart/components/index.d.ts +8 -0
  154. package/dist/components/chart/components/index.d.ts.map +1 -0
  155. package/dist/components/chart/index.d.ts +14 -0
  156. package/dist/components/chart/index.d.ts.map +1 -0
  157. package/dist/components/chart/types.d.ts +264 -0
  158. package/dist/components/chart/types.d.ts.map +1 -0
  159. package/dist/components/chart/use-chart.d.ts +34 -0
  160. package/dist/components/chart/use-chart.d.ts.map +1 -0
  161. package/dist/components/command-palette/command-palette.d.ts +73 -0
  162. package/dist/components/command-palette/command-palette.d.ts.map +1 -0
  163. package/dist/components/command-palette/index.d.ts +7 -0
  164. package/dist/components/command-palette/index.d.ts.map +1 -0
  165. package/dist/components/confirm-dialog/confirm-dialog.d.ts +89 -0
  166. package/dist/components/confirm-dialog/confirm-dialog.d.ts.map +1 -0
  167. package/dist/components/confirm-dialog/index.d.ts +7 -0
  168. package/dist/components/confirm-dialog/index.d.ts.map +1 -0
  169. package/dist/components/content-renderer/classes.d.ts +33 -0
  170. package/dist/components/content-renderer/classes.d.ts.map +1 -0
  171. package/dist/components/content-renderer/content-renderer.d.ts +37 -0
  172. package/dist/components/content-renderer/content-renderer.d.ts.map +1 -0
  173. package/dist/components/content-renderer/html-tags.d.ts +6 -0
  174. package/dist/components/content-renderer/html-tags.d.ts.map +1 -0
  175. package/dist/components/content-renderer/html-to-markdown.d.ts +7 -0
  176. package/dist/components/content-renderer/html-to-markdown.d.ts.map +1 -0
  177. package/dist/components/content-renderer/index.d.ts +7 -0
  178. package/dist/components/content-renderer/index.d.ts.map +1 -0
  179. package/dist/components/content-renderer/markdown.d.ts +23 -0
  180. package/dist/components/content-renderer/markdown.d.ts.map +1 -0
  181. package/dist/components/content-renderer/remark-spoiler.d.ts +9 -0
  182. package/dist/components/content-renderer/remark-spoiler.d.ts.map +1 -0
  183. package/dist/components/content-renderer/styles.d.ts +2 -0
  184. package/dist/components/content-renderer/styles.d.ts.map +1 -0
  185. package/dist/components/country-select/country-select.d.ts +101 -0
  186. package/dist/components/country-select/country-select.d.ts.map +1 -0
  187. package/dist/components/country-select/flag-icon.d.ts +36 -0
  188. package/dist/components/country-select/flag-icon.d.ts.map +1 -0
  189. package/dist/components/country-select/index.d.ts +5 -0
  190. package/dist/components/country-select/index.d.ts.map +1 -0
  191. package/dist/components/date-range-picker/date-range-input.d.ts +48 -0
  192. package/dist/components/date-range-picker/date-range-input.d.ts.map +1 -0
  193. package/dist/components/date-range-picker/date-range-picker.d.ts +39 -0
  194. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -0
  195. package/dist/components/date-range-picker/index.d.ts +7 -0
  196. package/dist/components/date-range-picker/index.d.ts.map +1 -0
  197. package/dist/components/date-range-picker/use-date-range-picker.d.ts +28 -0
  198. package/dist/components/date-range-picker/use-date-range-picker.d.ts.map +1 -0
  199. package/dist/components/deadline-chip/deadline-chip.d.ts +41 -0
  200. package/dist/components/deadline-chip/deadline-chip.d.ts.map +1 -0
  201. package/dist/components/deadline-chip/index.d.ts +7 -0
  202. package/dist/components/deadline-chip/index.d.ts.map +1 -0
  203. package/dist/components/doc-layout/doc-layout.d.ts +17 -0
  204. package/dist/components/doc-layout/doc-layout.d.ts.map +1 -0
  205. package/dist/components/doc-layout/doc-section-nav.d.ts +16 -0
  206. package/dist/components/doc-layout/doc-section-nav.d.ts.map +1 -0
  207. package/dist/components/doc-layout/doc-sidebar.d.ts +15 -0
  208. package/dist/components/doc-layout/doc-sidebar.d.ts.map +1 -0
  209. package/dist/components/doc-layout/index.d.ts +4 -0
  210. package/dist/components/doc-layout/index.d.ts.map +1 -0
  211. package/dist/components/drawer/drawer.d.ts +65 -0
  212. package/dist/components/drawer/drawer.d.ts.map +1 -0
  213. package/dist/components/drawer/index.d.ts +7 -0
  214. package/dist/components/drawer/index.d.ts.map +1 -0
  215. package/dist/components/duration-picker/duration-picker.d.ts +24 -0
  216. package/dist/components/duration-picker/duration-picker.d.ts.map +1 -0
  217. package/dist/components/duration-picker/index.d.ts +2 -0
  218. package/dist/components/duration-picker/index.d.ts.map +1 -0
  219. package/dist/components/editor/classes.d.ts +52 -0
  220. package/dist/components/editor/classes.d.ts.map +1 -0
  221. package/dist/components/editor/editor.d.ts +15 -0
  222. package/dist/components/editor/editor.d.ts.map +1 -0
  223. package/dist/components/editor/extensions/clear-format.d.ts +3 -0
  224. package/dist/components/editor/extensions/clear-format.d.ts.map +1 -0
  225. package/dist/components/editor/extensions/index.d.ts +3 -0
  226. package/dist/components/editor/extensions/index.d.ts.map +1 -0
  227. package/dist/components/editor/extensions/text-transform.d.ts +20 -0
  228. package/dist/components/editor/extensions/text-transform.d.ts.map +1 -0
  229. package/dist/components/editor/icons/index.d.ts +42 -0
  230. package/dist/components/editor/icons/index.d.ts.map +1 -0
  231. package/dist/components/editor/index.d.ts +44 -0
  232. package/dist/components/editor/index.d.ts.map +1 -0
  233. package/dist/components/editor/index.js +3 -0
  234. package/dist/components/editor/index.js.map +1 -0
  235. package/dist/components/editor/presets.d.ts +3 -0
  236. package/dist/components/editor/presets.d.ts.map +1 -0
  237. package/dist/components/editor/styles.d.ts +2 -0
  238. package/dist/components/editor/styles.d.ts.map +1 -0
  239. package/dist/components/editor/toolbar/bubble-toolbar.d.ts +9 -0
  240. package/dist/components/editor/toolbar/bubble-toolbar.d.ts.map +1 -0
  241. package/dist/components/editor/toolbar/code-highlight-block.d.ts +3 -0
  242. package/dist/components/editor/toolbar/code-highlight-block.d.ts.map +1 -0
  243. package/dist/components/editor/toolbar/heading-block.d.ts +11 -0
  244. package/dist/components/editor/toolbar/heading-block.d.ts.map +1 -0
  245. package/dist/components/editor/toolbar/image-block.d.ts +11 -0
  246. package/dist/components/editor/toolbar/image-block.d.ts.map +1 -0
  247. package/dist/components/editor/toolbar/link-block.d.ts +13 -0
  248. package/dist/components/editor/toolbar/link-block.d.ts.map +1 -0
  249. package/dist/components/editor/toolbar/toolbar-item.d.ts +3 -0
  250. package/dist/components/editor/toolbar/toolbar-item.d.ts.map +1 -0
  251. package/dist/components/editor/toolbar/toolbar.d.ts +3 -0
  252. package/dist/components/editor/toolbar/toolbar.d.ts.map +1 -0
  253. package/dist/components/editor/toolbar/use-toolbar-state.d.ts +24 -0
  254. package/dist/components/editor/toolbar/use-toolbar-state.d.ts.map +1 -0
  255. package/dist/components/editor/types.d.ts +130 -0
  256. package/dist/components/editor/types.d.ts.map +1 -0
  257. package/dist/components/emoji-picker/emoji-picker.d.ts +24 -0
  258. package/dist/components/emoji-picker/emoji-picker.d.ts.map +1 -0
  259. package/dist/components/emoji-picker/emoji-search.d.ts +22 -0
  260. package/dist/components/emoji-picker/emoji-search.d.ts.map +1 -0
  261. package/dist/components/emoji-picker/emoji.d.ts +19 -0
  262. package/dist/components/emoji-picker/emoji.d.ts.map +1 -0
  263. package/dist/components/emoji-picker/index.d.ts +14 -0
  264. package/dist/components/emoji-picker/index.d.ts.map +1 -0
  265. package/dist/components/emoji-picker/index.js +3 -0
  266. package/dist/components/emoji-picker/index.js.map +1 -0
  267. package/dist/components/emoji-picker/twemoji-url.d.ts +26 -0
  268. package/dist/components/emoji-picker/twemoji-url.d.ts.map +1 -0
  269. package/dist/components/emoji-picker/types.d.ts +96 -0
  270. package/dist/components/emoji-picker/types.d.ts.map +1 -0
  271. package/dist/components/emoji-picker/use-emoji-data.d.ts +26 -0
  272. package/dist/components/emoji-picker/use-emoji-data.d.ts.map +1 -0
  273. package/dist/components/emoji-picker/use-recent-emojis.d.ts +16 -0
  274. package/dist/components/emoji-picker/use-recent-emojis.d.ts.map +1 -0
  275. package/dist/components/empty-content/empty-content.d.ts +92 -0
  276. package/dist/components/empty-content/empty-content.d.ts.map +1 -0
  277. package/dist/components/empty-content/index.d.ts +7 -0
  278. package/dist/components/empty-content/index.d.ts.map +1 -0
  279. package/dist/components/error-boundary/error-boundary.d.ts +162 -0
  280. package/dist/components/error-boundary/error-boundary.d.ts.map +1 -0
  281. package/dist/components/error-boundary/index.d.ts +7 -0
  282. package/dist/components/error-boundary/index.d.ts.map +1 -0
  283. package/dist/components/field/field-autocomplete.d.ts +74 -0
  284. package/dist/components/field/field-autocomplete.d.ts.map +1 -0
  285. package/dist/components/field/field-checkbox.d.ts +42 -0
  286. package/dist/components/field/field-checkbox.d.ts.map +1 -0
  287. package/dist/components/field/field-code.d.ts +80 -0
  288. package/dist/components/field/field-code.d.ts.map +1 -0
  289. package/dist/components/field/field-country-select.d.ts +84 -0
  290. package/dist/components/field/field-country-select.d.ts.map +1 -0
  291. package/dist/components/field/field-date-picker.d.ts +58 -0
  292. package/dist/components/field/field-date-picker.d.ts.map +1 -0
  293. package/dist/components/field/field-datetime-picker.d.ts +96 -0
  294. package/dist/components/field/field-datetime-picker.d.ts.map +1 -0
  295. package/dist/components/field/field-editor.d.ts +218 -0
  296. package/dist/components/field/field-editor.d.ts.map +1 -0
  297. package/dist/components/field/field-multi-checkbox.d.ts +91 -0
  298. package/dist/components/field/field-multi-checkbox.d.ts.map +1 -0
  299. package/dist/components/field/field-multi-select.d.ts +85 -0
  300. package/dist/components/field/field-multi-select.d.ts.map +1 -0
  301. package/dist/components/field/field-multi-switch.d.ts +93 -0
  302. package/dist/components/field/field-multi-switch.d.ts.map +1 -0
  303. package/dist/components/field/field-number.d.ts +50 -0
  304. package/dist/components/field/field-number.d.ts.map +1 -0
  305. package/dist/components/field/field-phone.d.ts +82 -0
  306. package/dist/components/field/field-phone.d.ts.map +1 -0
  307. package/dist/components/field/field-radio.d.ts +64 -0
  308. package/dist/components/field/field-radio.d.ts.map +1 -0
  309. package/dist/components/field/field-rating.d.ts +43 -0
  310. package/dist/components/field/field-rating.d.ts.map +1 -0
  311. package/dist/components/field/field-select.d.ts +50 -0
  312. package/dist/components/field/field-select.d.ts.map +1 -0
  313. package/dist/components/field/field-slider.d.ts +56 -0
  314. package/dist/components/field/field-slider.d.ts.map +1 -0
  315. package/dist/components/field/field-switch.d.ts +44 -0
  316. package/dist/components/field/field-switch.d.ts.map +1 -0
  317. package/dist/components/field/field-text.d.ts +38 -0
  318. package/dist/components/field/field-text.d.ts.map +1 -0
  319. package/dist/components/field/field-time-picker.d.ts +79 -0
  320. package/dist/components/field/field-time-picker.d.ts.map +1 -0
  321. package/dist/components/field/field-upload.d.ts +120 -0
  322. package/dist/components/field/field-upload.d.ts.map +1 -0
  323. package/dist/components/field/index.d.ts +149 -0
  324. package/dist/components/field/index.d.ts.map +1 -0
  325. package/dist/components/image/image.d.ts +79 -0
  326. package/dist/components/image/image.d.ts.map +1 -0
  327. package/dist/components/image/index.d.ts +7 -0
  328. package/dist/components/image/index.d.ts.map +1 -0
  329. package/dist/components/index.css +131 -0
  330. package/dist/components/index.css.map +1 -0
  331. package/dist/components/index.d.ts +61 -0
  332. package/dist/components/index.d.ts.map +1 -0
  333. package/dist/components/index.js +13 -0
  334. package/dist/components/index.js.map +1 -0
  335. package/dist/components/label/index.d.ts +7 -0
  336. package/dist/components/label/index.d.ts.map +1 -0
  337. package/dist/components/label/label.d.ts +71 -0
  338. package/dist/components/label/label.d.ts.map +1 -0
  339. package/dist/components/lightbox/classes.d.ts +34 -0
  340. package/dist/components/lightbox/classes.d.ts.map +1 -0
  341. package/dist/components/lightbox/index.d.ts +11 -0
  342. package/dist/components/lightbox/index.d.ts.map +1 -0
  343. package/dist/components/lightbox/lightbox.d.ts +42 -0
  344. package/dist/components/lightbox/lightbox.d.ts.map +1 -0
  345. package/dist/components/lightbox/types.d.ts +233 -0
  346. package/dist/components/lightbox/types.d.ts.map +1 -0
  347. package/dist/components/lightbox/use-lightbox.d.ts +42 -0
  348. package/dist/components/lightbox/use-lightbox.d.ts.map +1 -0
  349. package/dist/components/loading-screen/index.d.ts +8 -0
  350. package/dist/components/loading-screen/index.d.ts.map +1 -0
  351. package/dist/components/loading-screen/loading-screen.d.ts +37 -0
  352. package/dist/components/loading-screen/loading-screen.d.ts.map +1 -0
  353. package/dist/components/loading-screen/splash-screen.d.ts +80 -0
  354. package/dist/components/loading-screen/splash-screen.d.ts.map +1 -0
  355. package/dist/components/map/Map.d.ts +63 -0
  356. package/dist/components/map/Map.d.ts.map +1 -0
  357. package/dist/components/map/MapCoverageLayer.d.ts +25 -0
  358. package/dist/components/map/MapCoverageLayer.d.ts.map +1 -0
  359. package/dist/components/map/MapMarker.d.ts +17 -0
  360. package/dist/components/map/MapMarker.d.ts.map +1 -0
  361. package/dist/components/map/MapPointPicker.d.ts +26 -0
  362. package/dist/components/map/MapPointPicker.d.ts.map +1 -0
  363. package/dist/components/map/index.d.ts +14 -0
  364. package/dist/components/map/index.d.ts.map +1 -0
  365. package/dist/components/mega-menu/index.d.ts +12 -0
  366. package/dist/components/mega-menu/index.d.ts.map +1 -0
  367. package/dist/components/mega-menu/mega-menu-horizontal.d.ts +41 -0
  368. package/dist/components/mega-menu/mega-menu-horizontal.d.ts.map +1 -0
  369. package/dist/components/mega-menu/mega-menu-mobile.d.ts +28 -0
  370. package/dist/components/mega-menu/mega-menu-mobile.d.ts.map +1 -0
  371. package/dist/components/mega-menu/mega-menu-vertical.d.ts +28 -0
  372. package/dist/components/mega-menu/mega-menu-vertical.d.ts.map +1 -0
  373. package/dist/components/mega-menu/styles.d.ts +18 -0
  374. package/dist/components/mega-menu/styles.d.ts.map +1 -0
  375. package/dist/components/mega-menu/types.d.ts +200 -0
  376. package/dist/components/mega-menu/types.d.ts.map +1 -0
  377. package/dist/components/menu/index.d.ts +7 -0
  378. package/dist/components/menu/index.d.ts.map +1 -0
  379. package/dist/components/menu/menu.d.ts +144 -0
  380. package/dist/components/menu/menu.d.ts.map +1 -0
  381. package/dist/components/nav-card/index.d.ts +8 -0
  382. package/dist/components/nav-card/index.d.ts.map +1 -0
  383. package/dist/components/nav-card/nav-card-grid.d.ts +57 -0
  384. package/dist/components/nav-card/nav-card-grid.d.ts.map +1 -0
  385. package/dist/components/nav-card/nav-card.d.ts +69 -0
  386. package/dist/components/nav-card/nav-card.d.ts.map +1 -0
  387. package/dist/components/nav-section/components.d.ts +143 -0
  388. package/dist/components/nav-section/components.d.ts.map +1 -0
  389. package/dist/components/nav-section/index.d.ts +15 -0
  390. package/dist/components/nav-section/index.d.ts.map +1 -0
  391. package/dist/components/nav-section/nav-context.d.ts +80 -0
  392. package/dist/components/nav-section/nav-context.d.ts.map +1 -0
  393. package/dist/components/nav-section/nav-item.d.ts +20 -0
  394. package/dist/components/nav-section/nav-item.d.ts.map +1 -0
  395. package/dist/components/nav-section/nav-list.d.ts +25 -0
  396. package/dist/components/nav-section/nav-list.d.ts.map +1 -0
  397. package/dist/components/nav-section/nav-section-horizontal.d.ts +29 -0
  398. package/dist/components/nav-section/nav-section-horizontal.d.ts.map +1 -0
  399. package/dist/components/nav-section/nav-section-mini.d.ts +30 -0
  400. package/dist/components/nav-section/nav-section-mini.d.ts.map +1 -0
  401. package/dist/components/nav-section/nav-section-vertical.d.ts +37 -0
  402. package/dist/components/nav-section/nav-section-vertical.d.ts.map +1 -0
  403. package/dist/components/nav-section/styles.d.ts +35 -0
  404. package/dist/components/nav-section/styles.d.ts.map +1 -0
  405. package/dist/components/nav-section/types.d.ts +178 -0
  406. package/dist/components/nav-section/types.d.ts.map +1 -0
  407. package/dist/components/navigation-progress/index.d.ts +7 -0
  408. package/dist/components/navigation-progress/index.d.ts.map +1 -0
  409. package/dist/components/navigation-progress/navigation-progress.d.ts +36 -0
  410. package/dist/components/navigation-progress/navigation-progress.d.ts.map +1 -0
  411. package/dist/components/page-content/index.d.ts +7 -0
  412. package/dist/components/page-content/index.d.ts.map +1 -0
  413. package/dist/components/page-content/page-content.d.ts +55 -0
  414. package/dist/components/page-content/page-content.d.ts.map +1 -0
  415. package/dist/components/popover/index.d.ts +7 -0
  416. package/dist/components/popover/index.d.ts.map +1 -0
  417. package/dist/components/popover/popover.d.ts +124 -0
  418. package/dist/components/popover/popover.d.ts.map +1 -0
  419. package/dist/components/progress/countdown-ring.d.ts +60 -0
  420. package/dist/components/progress/countdown-ring.d.ts.map +1 -0
  421. package/dist/components/progress/index.d.ts +8 -0
  422. package/dist/components/progress/index.d.ts.map +1 -0
  423. package/dist/components/progress/progress.d.ts +106 -0
  424. package/dist/components/progress/progress.d.ts.map +1 -0
  425. package/dist/components/rail/index.d.ts +7 -0
  426. package/dist/components/rail/index.d.ts.map +1 -0
  427. package/dist/components/rail/rail.d.ts +39 -0
  428. package/dist/components/rail/rail.d.ts.map +1 -0
  429. package/dist/components/scroll-spy/index.d.ts +3 -0
  430. package/dist/components/scroll-spy/index.d.ts.map +1 -0
  431. package/dist/components/scroll-spy/scroll-spy-provider.d.ts +26 -0
  432. package/dist/components/scroll-spy/scroll-spy-provider.d.ts.map +1 -0
  433. package/dist/components/scroll-spy/scroll-spy-section.d.ts +10 -0
  434. package/dist/components/scroll-spy/scroll-spy-section.d.ts.map +1 -0
  435. package/dist/components/scroll-to-top/index.d.ts +7 -0
  436. package/dist/components/scroll-to-top/index.d.ts.map +1 -0
  437. package/dist/components/scroll-to-top/scroll-to-top.d.ts +25 -0
  438. package/dist/components/scroll-to-top/scroll-to-top.d.ts.map +1 -0
  439. package/dist/components/scrollbar/index.d.ts +7 -0
  440. package/dist/components/scrollbar/index.d.ts.map +1 -0
  441. package/dist/components/scrollbar/scrollbar.d.ts +59 -0
  442. package/dist/components/scrollbar/scrollbar.d.ts.map +1 -0
  443. package/dist/components/search-input/index.d.ts +2 -0
  444. package/dist/components/search-input/index.d.ts.map +1 -0
  445. package/dist/components/search-input/search-input.d.ts +46 -0
  446. package/dist/components/search-input/search-input.d.ts.map +1 -0
  447. package/dist/components/settings/index.d.ts +10 -0
  448. package/dist/components/settings/index.d.ts.map +1 -0
  449. package/dist/components/settings/settings-drawer.d.ts +39 -0
  450. package/dist/components/settings/settings-drawer.d.ts.map +1 -0
  451. package/dist/components/settings/settings-provider.d.ts +106 -0
  452. package/dist/components/settings/settings-provider.d.ts.map +1 -0
  453. package/dist/components/skeleton/index.d.ts +7 -0
  454. package/dist/components/skeleton/index.d.ts.map +1 -0
  455. package/dist/components/skeleton/skeleton.d.ts +77 -0
  456. package/dist/components/skeleton/skeleton.d.ts.map +1 -0
  457. package/dist/components/snackbar/index.d.ts +7 -0
  458. package/dist/components/snackbar/index.d.ts.map +1 -0
  459. package/dist/components/snackbar/snackbar.d.ts +120 -0
  460. package/dist/components/snackbar/snackbar.d.ts.map +1 -0
  461. package/dist/components/sponsored-slot/index.d.ts +3 -0
  462. package/dist/components/sponsored-slot/index.d.ts.map +1 -0
  463. package/dist/components/sponsored-slot/sponsored-slot.d.ts +16 -0
  464. package/dist/components/sponsored-slot/sponsored-slot.d.ts.map +1 -0
  465. package/dist/components/sponsored-slot/types.d.ts +45 -0
  466. package/dist/components/sponsored-slot/types.d.ts.map +1 -0
  467. package/dist/components/stepper/index.d.ts +7 -0
  468. package/dist/components/stepper/index.d.ts.map +1 -0
  469. package/dist/components/stepper/stepper.d.ts +145 -0
  470. package/dist/components/stepper/stepper.d.ts.map +1 -0
  471. package/dist/components/svg-color/index.d.ts +7 -0
  472. package/dist/components/svg-color/index.d.ts.map +1 -0
  473. package/dist/components/svg-color/svg-color.d.ts +80 -0
  474. package/dist/components/svg-color/svg-color.d.ts.map +1 -0
  475. package/dist/components/table/index.d.ts +7 -0
  476. package/dist/components/table/index.d.ts.map +1 -0
  477. package/dist/components/table/table.d.ts +184 -0
  478. package/dist/components/table/table.d.ts.map +1 -0
  479. package/dist/components/tabs/index.d.ts +7 -0
  480. package/dist/components/tabs/index.d.ts.map +1 -0
  481. package/dist/components/tabs/tabs.d.ts +146 -0
  482. package/dist/components/tabs/tabs.d.ts.map +1 -0
  483. package/dist/components/tag-cloud/index.d.ts +7 -0
  484. package/dist/components/tag-cloud/index.d.ts.map +1 -0
  485. package/dist/components/tag-cloud/tag-cloud.d.ts +58 -0
  486. package/dist/components/tag-cloud/tag-cloud.d.ts.map +1 -0
  487. package/dist/components/tiptap-renderer/index.d.ts +2 -0
  488. package/dist/components/tiptap-renderer/index.d.ts.map +1 -0
  489. package/dist/components/tiptap-renderer/tiptap-renderer.d.ts +45 -0
  490. package/dist/components/tiptap-renderer/tiptap-renderer.d.ts.map +1 -0
  491. package/dist/components/tooltip/index.d.ts +7 -0
  492. package/dist/components/tooltip/index.d.ts.map +1 -0
  493. package/dist/components/tooltip/tooltip.d.ts +38 -0
  494. package/dist/components/tooltip/tooltip.d.ts.map +1 -0
  495. package/dist/components/virtual-list/index.d.ts +7 -0
  496. package/dist/components/virtual-list/index.d.ts.map +1 -0
  497. package/dist/components/virtual-list/virtual-list.d.ts +64 -0
  498. package/dist/components/virtual-list/virtual-list.d.ts.map +1 -0
  499. package/dist/core/accessibility/index.d.ts +96 -0
  500. package/dist/core/accessibility/index.d.ts.map +1 -0
  501. package/dist/core/accessibility/skip-link.d.ts +31 -0
  502. package/dist/core/accessibility/skip-link.d.ts.map +1 -0
  503. package/dist/core/context.d.ts +99 -0
  504. package/dist/core/context.d.ts.map +1 -0
  505. package/dist/core/hooks/use-boolean.d.ts +54 -0
  506. package/dist/core/hooks/use-boolean.d.ts.map +1 -0
  507. package/dist/core/hooks/use-breakpoints.d.ts +87 -0
  508. package/dist/core/hooks/use-breakpoints.d.ts.map +1 -0
  509. package/dist/core/hooks/use-click-outside.d.ts +26 -0
  510. package/dist/core/hooks/use-click-outside.d.ts.map +1 -0
  511. package/dist/core/hooks/use-copy-to-clipboard.d.ts +66 -0
  512. package/dist/core/hooks/use-copy-to-clipboard.d.ts.map +1 -0
  513. package/dist/core/hooks/use-countdown.d.ts +105 -0
  514. package/dist/core/hooks/use-countdown.d.ts.map +1 -0
  515. package/dist/core/hooks/use-debounce.d.ts +64 -0
  516. package/dist/core/hooks/use-debounce.d.ts.map +1 -0
  517. package/dist/core/hooks/use-event-listener.d.ts +37 -0
  518. package/dist/core/hooks/use-event-listener.d.ts.map +1 -0
  519. package/dist/core/hooks/use-interval.d.ts +30 -0
  520. package/dist/core/hooks/use-interval.d.ts.map +1 -0
  521. package/dist/core/hooks/use-is-client.d.ts +24 -0
  522. package/dist/core/hooks/use-is-client.d.ts.map +1 -0
  523. package/dist/core/hooks/use-local-storage.d.ts +61 -0
  524. package/dist/core/hooks/use-local-storage.d.ts.map +1 -0
  525. package/dist/core/hooks/use-media-query.d.ts +107 -0
  526. package/dist/core/hooks/use-media-query.d.ts.map +1 -0
  527. package/dist/core/hooks/use-mounted.d.ts +33 -0
  528. package/dist/core/hooks/use-mounted.d.ts.map +1 -0
  529. package/dist/core/hooks/use-multi-select.d.ts +113 -0
  530. package/dist/core/hooks/use-multi-select.d.ts.map +1 -0
  531. package/dist/core/hooks/use-previous.d.ts +23 -0
  532. package/dist/core/hooks/use-previous.d.ts.map +1 -0
  533. package/dist/core/hooks/use-set-state.d.ts +56 -0
  534. package/dist/core/hooks/use-set-state.d.ts.map +1 -0
  535. package/dist/core/hooks/use-tabs.d.ts +74 -0
  536. package/dist/core/hooks/use-tabs.d.ts.map +1 -0
  537. package/dist/core/hooks/use-timeout.d.ts +37 -0
  538. package/dist/core/hooks/use-timeout.d.ts.map +1 -0
  539. package/dist/core/index.d.ts +36 -453
  540. package/dist/core/index.d.ts.map +1 -0
  541. package/dist/core/index.js +6 -7
  542. package/dist/core/provider-stack.d.ts +181 -0
  543. package/dist/core/provider-stack.d.ts.map +1 -0
  544. package/dist/core/provider.d.ts +67 -0
  545. package/dist/core/provider.d.ts.map +1 -0
  546. package/dist/forms/index.d.ts +6 -557
  547. package/dist/forms/index.d.ts.map +1 -0
  548. package/dist/forms/index.js +0 -1
  549. package/dist/forms/index.js.map +1 -1
  550. package/dist/forms/schema-provider.d.ts +282 -0
  551. package/dist/forms/schema-provider.d.ts.map +1 -0
  552. package/dist/forms/schema-utils.d.ts +286 -0
  553. package/dist/forms/schema-utils.d.ts.map +1 -0
  554. package/dist/hooks/index.d.ts +38 -7
  555. package/dist/hooks/index.d.ts.map +1 -0
  556. package/dist/hooks/index.js +8 -8
  557. package/dist/hooks/use-array.d.ts +126 -0
  558. package/dist/hooks/use-array.d.ts.map +1 -0
  559. package/dist/hooks/use-async.d.ts +88 -0
  560. package/dist/hooks/use-async.d.ts.map +1 -0
  561. package/dist/hooks/use-back-to-top.d.ts +57 -0
  562. package/dist/hooks/use-back-to-top.d.ts.map +1 -0
  563. package/dist/hooks/use-client-rect.d.ts +67 -0
  564. package/dist/hooks/use-client-rect.d.ts.map +1 -0
  565. package/dist/hooks/use-config-from-query.d.ts +98 -0
  566. package/dist/hooks/use-config-from-query.d.ts.map +1 -0
  567. package/dist/hooks/use-cookies.d.ts +62 -0
  568. package/dist/hooks/use-cookies.d.ts.map +1 -0
  569. package/dist/hooks/use-countdown-date.d.ts +47 -0
  570. package/dist/hooks/use-countdown-date.d.ts.map +1 -0
  571. package/dist/hooks/use-countdown-seconds.d.ts +83 -0
  572. package/dist/hooks/use-countdown-seconds.d.ts.map +1 -0
  573. package/dist/hooks/use-double-click.d.ts +67 -0
  574. package/dist/hooks/use-double-click.d.ts.map +1 -0
  575. package/dist/hooks/use-focus-trap.d.ts +66 -0
  576. package/dist/hooks/use-focus-trap.d.ts.map +1 -0
  577. package/dist/hooks/use-image-dimensions.d.ts +124 -0
  578. package/dist/hooks/use-image-dimensions.d.ts.map +1 -0
  579. package/dist/hooks/use-infinite-scroll.d.ts +204 -0
  580. package/dist/hooks/use-infinite-scroll.d.ts.map +1 -0
  581. package/dist/hooks/use-intersection-observer.d.ts +93 -0
  582. package/dist/hooks/use-intersection-observer.d.ts.map +1 -0
  583. package/dist/hooks/use-isomorphic-layout-effect.d.ts +34 -0
  584. package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +1 -0
  585. package/dist/hooks/use-keyboard-shortcut.d.ts +112 -0
  586. package/dist/hooks/use-keyboard-shortcut.d.ts.map +1 -0
  587. package/dist/hooks/use-lazy-query.d.ts +132 -0
  588. package/dist/hooks/use-lazy-query.d.ts.map +1 -0
  589. package/dist/hooks/use-mutation.d.ts +141 -0
  590. package/dist/hooks/use-mutation.d.ts.map +1 -0
  591. package/dist/hooks/use-online-status.d.ts +56 -0
  592. package/dist/hooks/use-online-status.d.ts.map +1 -0
  593. package/dist/hooks/use-password-visibility.d.ts +83 -0
  594. package/dist/hooks/use-password-visibility.d.ts.map +1 -0
  595. package/dist/hooks/use-popover-hover.d.ts +78 -0
  596. package/dist/hooks/use-popover-hover.d.ts.map +1 -0
  597. package/dist/hooks/use-scroll-offset-top.d.ts +69 -0
  598. package/dist/hooks/use-scroll-offset-top.d.ts.map +1 -0
  599. package/dist/hooks/use-scroll-position.d.ts +96 -0
  600. package/dist/hooks/use-scroll-position.d.ts.map +1 -0
  601. package/dist/hooks/use-session-storage.d.ts +66 -0
  602. package/dist/hooks/use-session-storage.d.ts.map +1 -0
  603. package/dist/hooks/use-throttle.d.ts +67 -0
  604. package/dist/hooks/use-throttle.d.ts.map +1 -0
  605. package/dist/hooks/use-update-effect.d.ts +53 -0
  606. package/dist/hooks/use-update-effect.d.ts.map +1 -0
  607. package/dist/hooks/use-window-size.d.ts +132 -0
  608. package/dist/hooks/use-window-size.d.ts.map +1 -0
  609. package/dist/http/client.d.ts +74 -0
  610. package/dist/http/client.d.ts.map +1 -0
  611. package/dist/http/index.d.ts +6 -229
  612. package/dist/http/index.d.ts.map +1 -0
  613. package/dist/http/index.js +0 -2
  614. package/dist/http/index.js.map +1 -1
  615. package/dist/http/types.d.ts +158 -0
  616. package/dist/http/types.d.ts.map +1 -0
  617. package/dist/index.d.ts +19 -9108
  618. package/dist/index.d.ts.map +1 -0
  619. package/dist/index.js +107 -11678
  620. package/dist/index.js.map +1 -1
  621. package/dist/layouts/auth/centered.d.ts +49 -0
  622. package/dist/layouts/auth/centered.d.ts.map +1 -0
  623. package/dist/layouts/auth/index.d.ts +12 -0
  624. package/dist/layouts/auth/index.d.ts.map +1 -0
  625. package/dist/layouts/auth/simple.d.ts +58 -0
  626. package/dist/layouts/auth/simple.d.ts.map +1 -0
  627. package/dist/layouts/auth/split.d.ts +81 -0
  628. package/dist/layouts/auth/split.d.ts.map +1 -0
  629. package/dist/layouts/core/context.d.ts +102 -0
  630. package/dist/layouts/core/context.d.ts.map +1 -0
  631. package/dist/layouts/core/css-vars.d.ts +43 -0
  632. package/dist/layouts/core/css-vars.d.ts.map +1 -0
  633. package/dist/layouts/core/header-section.d.ts +79 -0
  634. package/dist/layouts/core/header-section.d.ts.map +1 -0
  635. package/dist/layouts/core/index.d.ts +18 -0
  636. package/dist/layouts/core/index.d.ts.map +1 -0
  637. package/dist/layouts/core/layout-section.d.ts +64 -0
  638. package/dist/layouts/core/layout-section.d.ts.map +1 -0
  639. package/dist/layouts/core/user-menu.d.ts +88 -0
  640. package/dist/layouts/core/user-menu.d.ts.map +1 -0
  641. package/dist/layouts/dashboard/index.d.ts +10 -0
  642. package/dist/layouts/dashboard/index.d.ts.map +1 -0
  643. package/dist/layouts/dashboard/layout.d.ts +90 -0
  644. package/dist/layouts/dashboard/layout.d.ts.map +1 -0
  645. package/dist/layouts/dashboard/sidenav.d.ts +58 -0
  646. package/dist/layouts/dashboard/sidenav.d.ts.map +1 -0
  647. package/dist/layouts/dashboard/topnav.d.ts +41 -0
  648. package/dist/layouts/dashboard/topnav.d.ts.map +1 -0
  649. package/dist/layouts/index.d.ts +27 -850
  650. package/dist/layouts/index.d.ts.map +1 -0
  651. package/dist/layouts/index.js +3 -4
  652. package/dist/layouts/types.d.ts +317 -0
  653. package/dist/layouts/types.d.ts.map +1 -0
  654. package/dist/netron/context.d.ts +18 -0
  655. package/dist/netron/context.d.ts.map +1 -0
  656. package/dist/netron/hooks.d.ts +10 -0
  657. package/dist/netron/hooks.d.ts.map +1 -0
  658. package/dist/netron/index.d.ts +47 -4
  659. package/dist/netron/index.d.ts.map +1 -0
  660. package/dist/netron/index.js +1 -2
  661. package/dist/netron/types.d.ts +12 -0
  662. package/dist/netron/types.d.ts.map +1 -0
  663. package/dist/registry/index.d.ts +8 -341
  664. package/dist/registry/index.d.ts.map +1 -0
  665. package/dist/registry/index.js +1 -2
  666. package/dist/registry/installer.d.ts +137 -0
  667. package/dist/registry/installer.d.ts.map +1 -0
  668. package/dist/registry/manager.d.ts +196 -0
  669. package/dist/registry/manager.d.ts.map +1 -0
  670. package/dist/state/create-store.d.ts +164 -0
  671. package/dist/state/create-store.d.ts.map +1 -0
  672. package/dist/state/index.d.ts +12 -969
  673. package/dist/state/index.d.ts.map +1 -0
  674. package/dist/state/index.js +2 -3
  675. package/dist/state/settings-version.d.ts +255 -0
  676. package/dist/state/settings-version.d.ts.map +1 -0
  677. package/dist/state/stores/auth.d.ts +155 -0
  678. package/dist/state/stores/auth.d.ts.map +1 -0
  679. package/dist/state/stores/index.d.ts +10 -0
  680. package/dist/state/stores/index.d.ts.map +1 -0
  681. package/dist/state/stores/settings.d.ts +151 -0
  682. package/dist/state/stores/settings.d.ts.map +1 -0
  683. package/dist/state/stores/theme.d.ts +87 -0
  684. package/dist/state/stores/theme.d.ts.map +1 -0
  685. package/dist/state/stores/ui.d.ts +204 -0
  686. package/dist/state/stores/ui.d.ts.map +1 -0
  687. package/dist/theme/colors/base.d.ts +61 -0
  688. package/dist/theme/colors/base.d.ts.map +1 -0
  689. package/dist/theme/colors/index.d.ts +10 -0
  690. package/dist/theme/colors/index.d.ts.map +1 -0
  691. package/dist/theme/colors/luxury.d.ts +49 -0
  692. package/dist/theme/colors/luxury.d.ts.map +1 -0
  693. package/dist/theme/components/Autocomplete.d.ts +9 -0
  694. package/dist/theme/components/Autocomplete.d.ts.map +1 -0
  695. package/dist/theme/components/Button.d.ts +33 -0
  696. package/dist/theme/components/Button.d.ts.map +1 -0
  697. package/dist/theme/components/Card.d.ts +20 -0
  698. package/dist/theme/components/Card.d.ts.map +1 -0
  699. package/dist/theme/components/Chip.d.ts +29 -0
  700. package/dist/theme/components/Chip.d.ts.map +1 -0
  701. package/dist/theme/components/DataGrid.d.ts +15 -0
  702. package/dist/theme/components/DataGrid.d.ts.map +1 -0
  703. package/dist/theme/components/DatePicker.d.ts +19 -0
  704. package/dist/theme/components/DatePicker.d.ts.map +1 -0
  705. package/dist/theme/components/Dialog.d.ts +23 -0
  706. package/dist/theme/components/Dialog.d.ts.map +1 -0
  707. package/dist/theme/components/FormControls.d.ts +53 -0
  708. package/dist/theme/components/FormControls.d.ts.map +1 -0
  709. package/dist/theme/components/Tabs.d.ts +21 -0
  710. package/dist/theme/components/Tabs.d.ts.map +1 -0
  711. package/dist/theme/components/TextField.d.ts +87 -0
  712. package/dist/theme/components/TextField.d.ts.map +1 -0
  713. package/dist/theme/components/index.d.ts +27 -0
  714. package/dist/theme/components/index.d.ts.map +1 -0
  715. package/dist/theme/components/theme-utils.d.ts +42 -0
  716. package/dist/theme/components/theme-utils.d.ts.map +1 -0
  717. package/dist/theme/create-theme.d.ts +131 -0
  718. package/dist/theme/create-theme.d.ts.map +1 -0
  719. package/dist/theme/css-variables.d.ts +42 -0
  720. package/dist/theme/css-variables.d.ts.map +1 -0
  721. package/dist/theme/custom-shadows.d.ts +58 -0
  722. package/dist/theme/custom-shadows.d.ts.map +1 -0
  723. package/dist/theme/index.d.ts +23 -1045
  724. package/dist/theme/index.d.ts.map +1 -0
  725. package/dist/theme/index.js +2 -3
  726. package/dist/theme/mixins.d.ts +332 -0
  727. package/dist/theme/mixins.d.ts.map +1 -0
  728. package/dist/theme/opacity.d.ts +51 -0
  729. package/dist/theme/opacity.d.ts.map +1 -0
  730. package/dist/theme/palette/builder.d.ts +138 -0
  731. package/dist/theme/palette/builder.d.ts.map +1 -0
  732. package/dist/theme/palette/index.d.ts +7 -0
  733. package/dist/theme/palette/index.d.ts.map +1 -0
  734. package/dist/theme/palette.d.ts +43 -0
  735. package/dist/theme/palette.d.ts.map +1 -0
  736. package/dist/theme/presets/arctic.d.ts +13 -0
  737. package/dist/theme/presets/arctic.d.ts.map +1 -0
  738. package/dist/theme/presets/default.d.ts +13 -0
  739. package/dist/theme/presets/default.d.ts.map +1 -0
  740. package/dist/theme/presets/dracula.d.ts +27 -0
  741. package/dist/theme/presets/dracula.d.ts.map +1 -0
  742. package/dist/theme/presets/ember.d.ts +23 -0
  743. package/dist/theme/presets/ember.d.ts.map +1 -0
  744. package/dist/theme/presets/index.d.ts +39 -0
  745. package/dist/theme/presets/index.d.ts.map +1 -0
  746. package/dist/theme/presets/luxury.d.ts +13 -0
  747. package/dist/theme/presets/luxury.d.ts.map +1 -0
  748. package/dist/theme/presets/midnight.d.ts +23 -0
  749. package/dist/theme/presets/midnight.d.ts.map +1 -0
  750. package/dist/theme/presets/minimal.d.ts +23 -0
  751. package/dist/theme/presets/minimal.d.ts.map +1 -0
  752. package/dist/theme/presets/nature.d.ts +14 -0
  753. package/dist/theme/presets/nature.d.ts.map +1 -0
  754. package/dist/theme/presets/retro.d.ts +23 -0
  755. package/dist/theme/presets/retro.d.ts.map +1 -0
  756. package/dist/theme/shadows.d.ts +61 -0
  757. package/dist/theme/shadows.d.ts.map +1 -0
  758. package/dist/theme/typography.d.ts +24 -0
  759. package/dist/theme/typography.d.ts.map +1 -0
  760. package/dist/theme/utils/color.d.ts +295 -0
  761. package/dist/theme/utils/color.d.ts.map +1 -0
  762. package/dist/theme/utils/index.d.ts +7 -0
  763. package/dist/theme/utils/index.d.ts.map +1 -0
  764. package/dist/{registry-BrDNftd5.d.ts → types/blocks.d.ts} +30 -191
  765. package/dist/types/blocks.d.ts.map +1 -0
  766. package/dist/types/components.d.ts +139 -0
  767. package/dist/types/components.d.ts.map +1 -0
  768. package/dist/{config-BA6IeTq9.d.ts → types/config.d.ts} +14 -16
  769. package/dist/types/config.d.ts.map +1 -0
  770. package/dist/types/index.d.ts +11 -144
  771. package/dist/types/index.d.ts.map +1 -0
  772. package/dist/types/index.js +1 -2
  773. package/dist/types/registry.d.ts +158 -0
  774. package/dist/types/registry.d.ts.map +1 -0
  775. package/dist/{theme-CrXLfP1c.d.ts → types/theme.d.ts} +31 -34
  776. package/dist/types/theme.d.ts.map +1 -0
  777. package/dist/utils/async-lock.d.ts +169 -0
  778. package/dist/utils/async-lock.d.ts.map +1 -0
  779. package/dist/utils/cn.d.ts +80 -0
  780. package/dist/utils/cn.d.ts.map +1 -0
  781. package/dist/utils/cookies.d.ts +68 -0
  782. package/dist/utils/cookies.d.ts.map +1 -0
  783. package/dist/utils/create-classes.d.ts +90 -0
  784. package/dist/utils/create-classes.d.ts.map +1 -0
  785. package/dist/utils/errors.d.ts +201 -0
  786. package/dist/utils/errors.d.ts.map +1 -0
  787. package/dist/utils/fetch-interceptor.d.ts +230 -0
  788. package/dist/utils/fetch-interceptor.d.ts.map +1 -0
  789. package/dist/utils/font.d.ts +65 -0
  790. package/dist/utils/font.d.ts.map +1 -0
  791. package/dist/utils/format-crypto.d.ts +312 -0
  792. package/dist/utils/format-crypto.d.ts.map +1 -0
  793. package/dist/utils/format-date.d.ts +240 -0
  794. package/dist/utils/format-date.d.ts.map +1 -0
  795. package/dist/utils/format-number.d.ts +245 -0
  796. package/dist/utils/format-number.d.ts.map +1 -0
  797. package/dist/utils/i18n-text.d.ts +68 -0
  798. package/dist/utils/i18n-text.d.ts.map +1 -0
  799. package/dist/utils/index.d.ts +30 -0
  800. package/dist/utils/index.d.ts.map +1 -0
  801. package/dist/utils/jwt.d.ts +227 -0
  802. package/dist/utils/jwt.d.ts.map +1 -0
  803. package/dist/utils/object.d.ts +96 -0
  804. package/dist/utils/object.d.ts.map +1 -0
  805. package/dist/utils/refs.d.ts +60 -0
  806. package/dist/utils/refs.d.ts.map +1 -0
  807. package/dist/utils/rtl.d.ts +75 -0
  808. package/dist/utils/rtl.d.ts.map +1 -0
  809. package/dist/utils/storage.d.ts +190 -0
  810. package/dist/utils/storage.d.ts.map +1 -0
  811. package/dist/utils/string.d.ts +216 -0
  812. package/dist/utils/string.d.ts.map +1 -0
  813. package/dist/utils/template-resolver.d.ts +12 -0
  814. package/dist/utils/template-resolver.d.ts.map +1 -0
  815. package/dist/utils/toast.d.ts +25 -0
  816. package/dist/utils/toast.d.ts.map +1 -0
  817. package/dist/utils/transform-number.d.ts +108 -0
  818. package/dist/utils/transform-number.d.ts.map +1 -0
  819. package/dist/utils/url.d.ts +198 -0
  820. package/dist/utils/url.d.ts.map +1 -0
  821. package/package.json +77 -61
  822. package/dist/chunk-77KIJLPP.js +0 -37
  823. package/dist/chunk-77KIJLPP.js.map +0 -1
  824. package/dist/chunk-BTIT7WYH.js.map +0 -1
  825. package/dist/chunk-BV32OJ2A.js.map +0 -1
  826. package/dist/chunk-DDY7TLUI.js.map +0 -1
  827. package/dist/chunk-DXXZ3ITR.js.map +0 -1
  828. package/dist/chunk-E3XANPTO.js.map +0 -1
  829. package/dist/chunk-GYDT5EKX.js +0 -16505
  830. package/dist/chunk-GYDT5EKX.js.map +0 -1
  831. package/dist/chunk-HO2GKTWJ.js.map +0 -1
  832. package/dist/chunk-JDTC2SBY.js.map +0 -1
  833. package/dist/chunk-LAEY5USO.js.map +0 -1
  834. package/dist/chunk-UR6X3W5I.js.map +0 -1
  835. package/dist/chunk-WC2WM2JD.js.map +0 -1
  836. package/dist/chunk-XWL6J6IO.js.map +0 -1
  837. package/dist/index-odhPSv9I.d.ts +0 -2491
  838. package/dist/settings-plpR26Xk.d.ts +0 -455
  839. package/dist/use-timeout-D7U3EAtH.d.ts +0 -808
@@ -2,8 +2,6 @@ import { buttonClasses } from '@mui/material/Button';
2
2
  import { iconButtonClasses } from '@mui/material/IconButton';
3
3
  import { accordionClasses } from '@mui/material/Accordion';
4
4
  import { accordionSummaryClasses } from '@mui/material/AccordionSummary';
5
- import { autocompleteClasses } from '@mui/material/Autocomplete';
6
- import SvgIcon, { svgIconClasses } from '@mui/material/SvgIcon';
7
5
  import { tableRowClasses } from '@mui/material/TableRow';
8
6
  import { tableCellClasses } from '@mui/material/TableCell';
9
7
  import { stepIconClasses } from '@mui/material/StepIcon';
@@ -16,12 +14,15 @@ import { outlinedInputClasses } from '@mui/material/OutlinedInput';
16
14
  import { filledInputClasses } from '@mui/material/FilledInput';
17
15
  import { inputAdornmentClasses } from '@mui/material/InputAdornment';
18
16
  import { inputLabelClasses } from '@mui/material/InputLabel';
17
+ import SvgIcon, { svgIconClasses } from '@mui/material/SvgIcon';
19
18
  import { checkboxClasses } from '@mui/material/Checkbox';
20
19
  import { radioClasses } from '@mui/material/Radio';
21
20
  import { switchClasses } from '@mui/material/Switch';
22
21
  import { formLabelClasses } from '@mui/material/FormLabel';
23
22
  import { jsx } from 'react/jsx-runtime';
24
23
  import { tabClasses } from '@mui/material/Tab';
24
+ import { autocompleteClasses } from '@mui/material/Autocomplete';
25
+ import '@mui/x-data-grid/themeAugmentation';
25
26
  import { createTheme, responsiveFontSizes } from '@mui/material/styles';
26
27
  import * as locales from '@mui/material/locale';
27
28
 
@@ -146,22 +147,9 @@ function generateColorScale(baseColor) {
146
147
  }
147
148
  return scale;
148
149
  }
149
- function getLuminanceForContrast(hex) {
150
- const rgb = hex.replace("#", "").match(/.{2}/g);
151
- if (!rgb) return 0;
152
- const [r, g, b] = rgb.map((c) => {
153
- const val = parseInt(c, 16) / 255;
154
- return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
155
- });
156
- return 0.2126 * r + 0.7152 * g + 0.0722 * b;
157
- }
158
- function getContrastTextColor(bgColor) {
159
- const luminance = getLuminanceForContrast(bgColor);
160
- return luminance < 0.4 ? "#FFFFFF" : "#212121";
161
- }
162
150
  function createPaletteColorFromScale(scale, mode = "light") {
163
151
  const mainColor = mode === "dark" ? scale[400] : scale[500];
164
- const contrastText = getContrastTextColor(mainColor);
152
+ const contrastText = getContrastText(mainColor, "#FFFFFF", "#212121");
165
153
  if (mode === "dark") {
166
154
  return {
167
155
  lighter: scale[950],
@@ -214,7 +202,7 @@ function isLightColor(hex) {
214
202
  return getLuminance(hex) > 0.5;
215
203
  }
216
204
  function getContrastText(background, lightText = "#FFFFFF", darkText = "#000000") {
217
- return isLightColor(background) ? darkText : lightText;
205
+ return getContrastRatio(background, lightText) >= getContrastRatio(background, darkText) ? lightText : darkText;
218
206
  }
219
207
  function lighten(hex, amount) {
220
208
  const hsl = hexToHsl(hex);
@@ -395,22 +383,9 @@ var baseColors = {
395
383
  };
396
384
 
397
385
  // src/theme/palette/builder.ts
398
- function getLuminance2(hex) {
399
- const rgb = hex.replace("#", "").match(/.{2}/g);
400
- if (!rgb) return 0;
401
- const [r, g, b] = rgb.map((c) => {
402
- const val = parseInt(c, 16) / 255;
403
- return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
404
- });
405
- return 0.2126 * r + 0.7152 * g + 0.0722 * b;
406
- }
407
- function getContrastText2(bgColor) {
408
- const luminance = getLuminance2(bgColor);
409
- return luminance < 0.3 ? "#FFFFFF" : "#212121";
410
- }
411
386
  function buildPaletteColor(scale, mode = "light") {
412
387
  const mainColor = mode === "dark" ? scale[400] : scale[500];
413
- const contrastText = getContrastText2(mainColor);
388
+ const contrastText = getContrastText(mainColor, "#FFFFFF", "#212121");
414
389
  const color = mode === "dark" ? {
415
390
  lighter: scale[950],
416
391
  light: scale[700],
@@ -601,6 +576,20 @@ function getGreyChannel(theme, shade = "500") {
601
576
  };
602
577
  return vars?.[channelKey] ?? fallbacks[shade];
603
578
  }
579
+ function paletteVar(theme, path) {
580
+ const segments = path.split(".");
581
+ const fromVars = theme.vars?.palette ?? void 0;
582
+ const fromFallback = theme.palette;
583
+ const walk = (obj) => segments.reduce(
584
+ (acc, key) => acc && typeof acc === "object" ? acc[key] : void 0,
585
+ obj
586
+ );
587
+ const fromVarsVal = walk(fromVars);
588
+ if (typeof fromVarsVal === "string") return fromVarsVal;
589
+ const fromFallbackVal = walk(fromFallback);
590
+ if (typeof fromFallbackVal === "string") return fromFallbackVal;
591
+ return "";
592
+ }
604
593
  function getColorChannel(theme, color) {
605
594
  const vars = theme.vars?.palette[color];
606
595
  const fallbacks = {
@@ -771,7 +760,20 @@ function createButtonOverrides(config) {
771
760
  ...shapeVariants,
772
761
  ...outlinedNeutralVariants,
773
762
  ...sizeVariants,
774
- ...disabledVariants
763
+ ...disabledVariants,
764
+ // MUI v9 replacement for the removed `outlinedSize*` slots.
765
+ {
766
+ props: { variant: "outlined", size: "large" },
767
+ style: { paddingTop: 9 * dm, paddingBottom: 9 * dm }
768
+ },
769
+ {
770
+ props: { variant: "outlined", size: "medium" },
771
+ style: { paddingTop: 7 * dm, paddingBottom: 7 * dm }
772
+ },
773
+ {
774
+ props: { variant: "outlined", size: "small" },
775
+ style: { paddingTop: 5 * dm, paddingBottom: 5 * dm }
776
+ }
775
777
  ]
776
778
  },
777
779
  sizeLarge: {
@@ -784,27 +786,24 @@ function createButtonOverrides(config) {
784
786
  fontSize: "13px",
785
787
  lineHeight: 1.286
786
788
  },
787
- outlinedSizeLarge: {
788
- paddingTop: 9 * dm,
789
- paddingBottom: 9 * dm
790
- },
791
- outlinedSizeMedium: {
792
- paddingTop: 7 * dm,
793
- paddingBottom: 7 * dm
794
- },
795
- outlinedSizeSmall: {
796
- paddingTop: 5 * dm,
797
- paddingBottom: 5 * dm
798
- },
789
+ // outlinedSize* class slots were removed in MUI v9 in favour
790
+ // of the `variants` array on the component override. See
791
+ // https://mui.com/material-ui/migration/upgrade-to-v9/.
792
+ // The icon slot wraps a single child (the icon SVG). `:first-child`
793
+ // is the modern, tag-agnostic way to target it — replaces
794
+ // `:first-of-type` which only matched if the wrapped element was
795
+ // the first sibling of its tag (fine for the common case, but
796
+ // brittle when a consumer wraps the icon in a tooltip or fragment
797
+ // that introduces a non-element node before the SVG).
799
798
  startIcon: {
800
799
  marginRight: 4,
801
- [`& > *:first-of-type`]: {
800
+ "& > :first-child": {
802
801
  fontSize: 16
803
802
  }
804
803
  },
805
804
  endIcon: {
806
805
  marginLeft: 4,
807
- [`& > *:first-of-type`]: {
806
+ "& > :first-child": {
808
807
  fontSize: 16
809
808
  }
810
809
  }
@@ -991,7 +990,14 @@ function menuItemStyles(theme) {
991
990
  ...theme.typography.body2,
992
991
  padding: theme.spacing(0.75, 1),
993
992
  borderRadius: Number(theme.shape.borderRadius) * 0.75,
994
- "&:not(:last-of-type)": {
993
+ // `:not(:last-child)` is the universal sibling-position selector
994
+ // that works regardless of element type. `:last-of-type` only
995
+ // matches the last sibling of the SAME tag, so a fragment-rendered
996
+ // <Divider /> next to <MenuItem /> can fool it (Divider becomes
997
+ // the last-of-type MenuItem too, so the previous MenuItem keeps
998
+ // its margin instead of dropping it). Switching to :last-child
999
+ // also satisfies MUI v9's lint-against-of-type-selectors guidance.
1000
+ "&:not(:last-child)": {
995
1001
  marginBottom: 4
996
1002
  },
997
1003
  "&.Mui-selected": {
@@ -1268,17 +1274,21 @@ function createChipOverrides(config) {
1268
1274
  height: 32 * densityMultiplier
1269
1275
  },
1270
1276
  label: {
1271
- fontWeight: 500
1272
- },
1273
- labelSmall: {
1274
- fontSize: "0.75rem",
1275
- paddingLeft: 8,
1276
- paddingRight: 8
1277
- },
1278
- labelMedium: {
1279
- fontSize: "0.8125rem",
1280
- paddingLeft: 12,
1281
- paddingRight: 12
1277
+ fontWeight: 500,
1278
+ // MUI v9: size-scoped label rules moved from `labelSmall`/
1279
+ // `labelMedium` slots to nested selectors. The class names
1280
+ // themselves still ship (and styles still apply), only the
1281
+ // top-level `styleOverrides.labelSmall` slot was removed.
1282
+ "&.MuiChip-labelSmall": {
1283
+ fontSize: "0.75rem",
1284
+ paddingLeft: 8,
1285
+ paddingRight: 8
1286
+ },
1287
+ "&.MuiChip-labelMedium": {
1288
+ fontSize: "0.8125rem",
1289
+ paddingLeft: 12,
1290
+ paddingRight: 12
1291
+ }
1282
1292
  },
1283
1293
  icon: {
1284
1294
  fontSize: 18,
@@ -1301,13 +1311,20 @@ var INPUT_TYPOGRAPHY = {
1301
1311
  lineHeight: 24
1302
1312
  };
1303
1313
  var INPUT_PADDING = {
1314
+ base: {
1315
+ small: { paddingTop: 0, paddingBottom: 4 },
1316
+ medium: { paddingTop: 4, paddingBottom: 4 }
1317
+ },
1304
1318
  outlined: {
1305
1319
  small: { paddingTop: 8, paddingBottom: 8 },
1306
1320
  medium: { paddingTop: 16, paddingBottom: 16 }
1307
1321
  },
1308
1322
  filled: {
1309
1323
  small: { paddingTop: 20 },
1310
- medium: { paddingTop: 24 }}
1324
+ medium: { paddingTop: 24 },
1325
+ smallHidden: { paddingTop: 8, paddingBottom: 8 },
1326
+ mediumHidden: { paddingTop: 16, paddingBottom: 16 }
1327
+ }
1311
1328
  };
1312
1329
  function getInputTypography(theme, keys) {
1313
1330
  const { fontSize, lineHeight } = INPUT_TYPOGRAPHY;
@@ -1330,81 +1347,222 @@ function getErrorChannel(theme) {
1330
1347
  const vars = theme.vars?.palette.error;
1331
1348
  return vars?.mainChannel ?? "208 34 65";
1332
1349
  }
1350
+ var multilineInputVariants = [
1351
+ {
1352
+ props: (props) => !!props.multiline,
1353
+ style: { padding: 0 }
1354
+ }
1355
+ ];
1356
+ var inputBaseStyles = {
1357
+ root: (theme) => ({
1358
+ "--disabled-color": theme.vars?.palette.action.disabled || theme.palette.action.disabled,
1359
+ ...getInputTypography(theme, ["lineHeight"]),
1360
+ [`&.${inputBaseClasses.disabled}`]: {
1361
+ [`& .${inputAdornmentClasses.root} *`]: { color: "var(--disabled-color)" }
1362
+ }
1363
+ }),
1364
+ input: (theme) => ({
1365
+ ...getInputTypography(theme, ["fontSize", "height", "lineHeight"]),
1366
+ "&:focus": { borderRadius: "inherit" },
1367
+ "&::placeholder": {
1368
+ color: theme.vars?.palette.text.disabled || theme.palette.text.disabled,
1369
+ opacity: 1
1370
+ }
1371
+ })
1372
+ };
1373
+ var inputBaseVariants = {
1374
+ // Root-side multiline padding (single-line keeps the inner one).
1375
+ // Mirrors the outlined/filled root variants so a bare InputBase
1376
+ // (no decorator variant) still renders consistent multiline
1377
+ // padding even when consumers swap variants.
1378
+ root: [
1379
+ {
1380
+ props: (props) => !!props.multiline,
1381
+ style: { ...INPUT_PADDING.base.medium }
1382
+ },
1383
+ {
1384
+ props: (props) => !!props.multiline && props.size === "small",
1385
+ style: { ...INPUT_PADDING.base.small }
1386
+ }
1387
+ ],
1388
+ input: [
1389
+ {
1390
+ props: {},
1391
+ style: { ...INPUT_PADDING.base.medium }
1392
+ },
1393
+ {
1394
+ props: (props) => props.size === "small",
1395
+ style: { ...INPUT_PADDING.base.small }
1396
+ }
1397
+ ]
1398
+ };
1333
1399
  function createInputBaseOverrides(_config) {
1334
1400
  return {
1335
1401
  styleOverrides: {
1336
1402
  root: ({ theme }) => ({
1337
- "--disabled-color": theme.vars?.palette.action.disabled || theme.palette.action.disabled,
1338
- ...getInputTypography(theme, ["lineHeight"]),
1339
- [`&.${inputBaseClasses.disabled}`]: {
1340
- [`& .${inputAdornmentClasses.root} *`]: { color: "var(--disabled-color)" }
1341
- }
1403
+ ...inputBaseStyles.root(theme),
1404
+ variants: inputBaseVariants.root
1342
1405
  }),
1343
1406
  input: ({ theme }) => ({
1344
- ...getInputTypography(theme, ["fontSize", "height", "lineHeight"]),
1345
- "&:focus": { borderRadius: "inherit" },
1346
- "&::placeholder": {
1347
- color: theme.vars?.palette.text.disabled || theme.palette.text.disabled,
1348
- opacity: 1
1349
- }
1407
+ ...inputBaseStyles.input(theme),
1408
+ variants: [...inputBaseVariants.input, ...multilineInputVariants]
1350
1409
  })
1351
1410
  }
1352
1411
  };
1353
1412
  }
1413
+ var inputStyles = {
1414
+ root: (theme) => ({
1415
+ "&::before": {
1416
+ borderBottomColor: varAlpha(getGreyChannel(theme), 0.2)
1417
+ },
1418
+ "&::after": {
1419
+ borderBottomColor: theme.vars?.palette.text.primary || theme.palette.text.primary
1420
+ }
1421
+ })
1422
+ };
1354
1423
  function createInputOverrides(_config) {
1355
1424
  return {
1356
1425
  styleOverrides: {
1357
- root: ({ theme }) => ({
1358
- "&::before": {
1359
- borderBottomColor: varAlpha(getGreyChannel(theme), 0.2)
1360
- },
1361
- "&::after": {
1362
- borderBottomColor: theme.vars?.palette.text.primary || theme.palette.text.primary
1363
- }
1364
- })
1426
+ root: ({ theme }) => inputStyles.root(theme)
1365
1427
  }
1366
1428
  };
1367
1429
  }
1430
+ var outlinedInputStyles = {
1431
+ root: (theme, borderRadius) => ({
1432
+ borderRadius,
1433
+ [`&.${outlinedInputClasses.focused}:not(.${outlinedInputClasses.error})`]: {
1434
+ [`& .${outlinedInputClasses.notchedOutline}`]: {
1435
+ borderColor: theme.vars?.palette.text.primary || theme.palette.text.primary
1436
+ }
1437
+ },
1438
+ [`&.${outlinedInputClasses.disabled}`]: {
1439
+ [`& .${outlinedInputClasses.notchedOutline}`]: {
1440
+ borderColor: theme.vars?.palette.action.disabledBackground || theme.palette.action.disabledBackground
1441
+ }
1442
+ }
1443
+ }),
1444
+ notchedOutline: (theme) => ({
1445
+ borderColor: varAlpha(getGreyChannel(theme), 0.2),
1446
+ transition: theme.transitions.create(["border-color"], {
1447
+ duration: theme.transitions.duration.shortest
1448
+ }),
1449
+ // Align fieldset font-size with InputLabel (14px) so the legend
1450
+ // notch width (0.75em) matches the visually-scaled label exactly.
1451
+ fontSize: theme.typography.pxToRem(14),
1452
+ "& legend > span": { paddingInline: 3 }
1453
+ })
1454
+ };
1455
+ var outlinedInputVariants = {
1456
+ root: [
1457
+ {
1458
+ props: (props) => !!props.multiline,
1459
+ style: { ...INPUT_PADDING.outlined.medium }
1460
+ },
1461
+ {
1462
+ props: (props) => !!props.multiline && props.size === "small",
1463
+ style: { ...INPUT_PADDING.outlined.small }
1464
+ }
1465
+ ],
1466
+ input: [
1467
+ {
1468
+ props: {},
1469
+ style: { ...INPUT_PADDING.outlined.medium }
1470
+ },
1471
+ {
1472
+ props: (props) => props.size === "small",
1473
+ style: { ...INPUT_PADDING.outlined.small }
1474
+ }
1475
+ ]
1476
+ };
1368
1477
  function createOutlinedInputOverrides(config) {
1369
1478
  const { borderRadius } = config;
1370
1479
  return {
1371
1480
  styleOverrides: {
1372
1481
  root: ({ theme }) => ({
1373
- borderRadius,
1374
- [`&.${outlinedInputClasses.focused}:not(.${outlinedInputClasses.error})`]: {
1375
- [`& .${outlinedInputClasses.notchedOutline}`]: {
1376
- borderColor: theme.vars?.palette.text.primary || theme.palette.text.primary
1377
- }
1378
- },
1379
- [`&.${outlinedInputClasses.disabled}`]: {
1380
- [`& .${outlinedInputClasses.notchedOutline}`]: {
1381
- borderColor: theme.vars?.palette.action.disabledBackground || theme.palette.action.disabledBackground
1382
- }
1383
- }
1482
+ ...outlinedInputStyles.root(theme, borderRadius),
1483
+ variants: outlinedInputVariants.root
1384
1484
  }),
1385
- input: {
1386
- ...INPUT_PADDING.outlined.medium,
1387
- "&.MuiInputBase-inputSizeSmall": {
1388
- ...INPUT_PADDING.outlined.small
1389
- },
1390
- "&.MuiInputBase-inputMultiline": {
1391
- paddingTop: 0,
1392
- paddingBottom: 0
1393
- }
1394
- },
1395
- notchedOutline: ({ theme }) => ({
1396
- borderColor: varAlpha(getGreyChannel(theme), 0.2),
1397
- transition: theme.transitions.create(["border-color"], {
1398
- duration: theme.transitions.duration.shortest
1399
- }),
1400
- // Align fieldset font-size with InputLabel (14px) so the legend
1401
- // notch width (0.75em) matches the visually-scaled label exactly.
1402
- fontSize: theme.typography.pxToRem(14),
1403
- "& legend > span": { paddingInline: 3 }
1404
- })
1485
+ // MUI v9 narrowed `styleOverrides[slot]` to `CSSObject` and
1486
+ // hoisted the `variants` API to the component-level
1487
+ // `variants` field. We still emit the variants on the slot
1488
+ // because (a) MUI's styled engine honours them there at
1489
+ // runtime, (b) per-slot variant styles wouldn't translate
1490
+ // cleanly to component-level (each entry would need a
1491
+ // descendant selector targeting the slot class).
1492
+ //
1493
+ // The cast escapes the narrowed type without lying about
1494
+ // runtime shape — the engine reads `variants` from the
1495
+ // returned object regardless of where TypeScript thinks it
1496
+ // belongs.
1497
+ input: () => ({
1498
+ variants: [...outlinedInputVariants.input, ...multilineInputVariants]
1499
+ }),
1500
+ notchedOutline: ({ theme }) => outlinedInputStyles.notchedOutline(theme)
1405
1501
  }
1406
1502
  };
1407
1503
  }
1504
+ var filledInputStyles = {
1505
+ root: (theme, borderRadius) => {
1506
+ const greyChannel = getGreyChannel(theme);
1507
+ const errChannel = getErrorChannel(theme);
1508
+ const baseBg = varAlpha(greyChannel, 0.08);
1509
+ const hoverBg = varAlpha(greyChannel, 0.16);
1510
+ const errorBg = varAlpha(errChannel, 0.08);
1511
+ const errorHoverBg = varAlpha(errChannel, 0.16);
1512
+ const disabledBg = theme.vars?.palette.action.disabledBackground || theme.palette.action.disabledBackground;
1513
+ return {
1514
+ backgroundColor: baseBg,
1515
+ borderRadius,
1516
+ [`&:hover, &.${filledInputClasses.focused}`]: { backgroundColor: hoverBg },
1517
+ [`&.${filledInputClasses.error}`]: {
1518
+ backgroundColor: errorBg,
1519
+ [`&:hover, &.${filledInputClasses.focused}`]: { backgroundColor: errorHoverBg }
1520
+ },
1521
+ [`&.${filledInputClasses.disabled}`]: { backgroundColor: disabledBg }
1522
+ };
1523
+ }
1524
+ };
1525
+ var filledInputVariants = {
1526
+ // FilledInput has an extra dimension: `hiddenLabel`. When the
1527
+ // label is hidden, the visible inset shrinks because there's no
1528
+ // label to clear, so a separate padding set applies.
1529
+ root: [
1530
+ {
1531
+ props: (props) => !!props.multiline,
1532
+ style: { ...INPUT_PADDING.filled.medium }
1533
+ },
1534
+ {
1535
+ props: (props) => !!props.multiline && props.size === "small",
1536
+ style: { ...INPUT_PADDING.filled.small }
1537
+ },
1538
+ {
1539
+ props: (props) => !!props.multiline && !!props.hiddenLabel,
1540
+ style: { ...INPUT_PADDING.filled.mediumHidden }
1541
+ },
1542
+ {
1543
+ props: (props) => !!props.multiline && !!props.hiddenLabel && props.size === "small",
1544
+ style: { ...INPUT_PADDING.filled.smallHidden }
1545
+ }
1546
+ ],
1547
+ input: [
1548
+ {
1549
+ props: {},
1550
+ style: { ...INPUT_PADDING.filled.medium }
1551
+ },
1552
+ {
1553
+ props: (props) => props.size === "small",
1554
+ style: { ...INPUT_PADDING.filled.small }
1555
+ },
1556
+ {
1557
+ props: (props) => !!props.hiddenLabel,
1558
+ style: { ...INPUT_PADDING.filled.mediumHidden }
1559
+ },
1560
+ {
1561
+ props: (props) => !!props.hiddenLabel && props.size === "small",
1562
+ style: { ...INPUT_PADDING.filled.smallHidden }
1563
+ }
1564
+ ]
1565
+ };
1408
1566
  function createFilledInputOverrides(config) {
1409
1567
  const { borderRadius } = config;
1410
1568
  return {
@@ -1412,35 +1570,14 @@ function createFilledInputOverrides(config) {
1412
1570
  disableUnderline: true
1413
1571
  },
1414
1572
  styleOverrides: {
1415
- root: ({ theme }) => {
1416
- const greyChannel = getGreyChannel(theme);
1417
- const errChannel = getErrorChannel(theme);
1418
- const baseBg = varAlpha(greyChannel, 0.08);
1419
- const hoverBg = varAlpha(greyChannel, 0.16);
1420
- const errorBg = varAlpha(errChannel, 0.08);
1421
- const errorHoverBg = varAlpha(errChannel, 0.16);
1422
- const disabledBg = theme.vars?.palette.action.disabledBackground || theme.palette.action.disabledBackground;
1423
- return {
1424
- backgroundColor: baseBg,
1425
- borderRadius,
1426
- [`&:hover, &.${filledInputClasses.focused}`]: { backgroundColor: hoverBg },
1427
- [`&.${filledInputClasses.error}`]: {
1428
- backgroundColor: errorBg,
1429
- [`&:hover, &.${filledInputClasses.focused}`]: { backgroundColor: errorHoverBg }
1430
- },
1431
- [`&.${filledInputClasses.disabled}`]: { backgroundColor: disabledBg }
1432
- };
1433
- },
1434
- input: {
1435
- ...INPUT_PADDING.filled.medium,
1436
- "&.MuiInputBase-inputSizeSmall": {
1437
- ...INPUT_PADDING.filled.small
1438
- },
1439
- "&.MuiInputBase-inputMultiline": {
1440
- paddingTop: 0,
1441
- paddingBottom: 0
1442
- }
1443
- }
1573
+ root: ({ theme }) => ({
1574
+ ...filledInputStyles.root(theme, borderRadius),
1575
+ variants: filledInputVariants.root
1576
+ }),
1577
+ // See the OutlinedInput counterpart above for the rationale.
1578
+ input: () => ({
1579
+ variants: [...filledInputVariants.input, ...multilineInputVariants]
1580
+ })
1444
1581
  }
1445
1582
  };
1446
1583
  }
@@ -1801,129 +1938,81 @@ function createTabOverrides(config) {
1801
1938
  };
1802
1939
  }
1803
1940
 
1804
- // src/theme/components/index.ts
1805
- function componentOverrides(config) {
1941
+ // src/theme/components/Dialog.ts
1942
+ function createDialogOverrides(config) {
1806
1943
  const { density, borderRadius } = config;
1807
1944
  const dm = getDensityMultiplier(density);
1808
1945
  return {
1809
- // =========================================================================
1810
- // BUTTONS (Modular)
1811
- // =========================================================================
1812
- MuiButton: createButtonOverrides(config),
1813
- MuiButtonBase: createButtonBaseOverrides(),
1814
- MuiButtonGroup: createButtonGroupOverrides(config),
1815
- // =========================================================================
1816
- // ICON BUTTON
1817
- // =========================================================================
1818
- MuiIconButton: {
1946
+ MuiDialog: {
1819
1947
  styleOverrides: {
1820
- root: ({ theme }) => ({
1821
- borderRadius,
1822
- "&:hover": {
1823
- backgroundColor: theme.vars?.palette.action.hover || theme.palette.action.hover
1824
- }
1948
+ paper: ({ theme }) => ({
1949
+ boxShadow: `0 24px 48px -12px rgba(${getGreyChannel(theme, "900")} / 0.24)`,
1950
+ variants: [
1951
+ // Mobile-first: any dialog (non-fullScreen included) goes
1952
+ // edge-to-edge on < sm. MUI's `maxWidth`/`fullWidth` props
1953
+ // attach their own paper-sizing rules at the same
1954
+ // specificity tier — encoding the rule as a `variants`
1955
+ // entry lets MUI's styled engine compose it without the
1956
+ // !important pile that the old descendant override used.
1957
+ {
1958
+ props: () => true,
1959
+ style: {
1960
+ [theme.breakpoints.down("sm")]: {
1961
+ margin: 0,
1962
+ width: "100%",
1963
+ maxWidth: "none",
1964
+ maxHeight: "none",
1965
+ height: "100%",
1966
+ borderRadius: 0
1967
+ }
1968
+ }
1969
+ },
1970
+ {
1971
+ props: (props) => !props.fullScreen,
1972
+ style: {
1973
+ borderRadius: borderRadius * 2,
1974
+ [theme.breakpoints.up("sm")]: {
1975
+ margin: theme.spacing(2)
1976
+ }
1977
+ }
1978
+ }
1979
+ ]
1825
1980
  })
1826
1981
  }
1827
1982
  },
1828
- MuiInputAdornment: {
1829
- styleOverrides: {
1830
- root: {
1831
- [`& .${iconButtonClasses.root}:hover`]: {
1832
- backgroundColor: "transparent"
1833
- }
1834
- }
1835
- }
1836
- },
1837
- // =========================================================================
1838
- // FAB
1839
- // =========================================================================
1840
- MuiFab: {
1841
- defaultProps: {
1842
- color: "primary"
1843
- },
1983
+ MuiDialogTitle: {
1844
1984
  styleOverrides: {
1845
1985
  root: ({ theme }) => ({
1846
- boxShadow: `0 8px 16px 0 rgba(${getColorChannel(theme, "primary")} / 0.24)`,
1847
- "&:hover": {
1848
- boxShadow: `0 8px 16px 0 rgba(${getColorChannel(theme, "primary")} / 0.32)`
1849
- }
1986
+ padding: `${20 * dm}px ${24 * dm}px`,
1987
+ fontSize: theme.typography.pxToRem(18),
1988
+ fontWeight: 600,
1989
+ lineHeight: 28 / 18
1850
1990
  })
1851
1991
  }
1852
1992
  },
1853
- // =========================================================================
1854
- // INPUTS (Refined - from Minimals patterns)
1855
- // =========================================================================
1856
- MuiInputBase: createInputBaseOverrides(),
1857
- MuiInput: createInputOverrides(),
1858
- MuiTextField: createTextFieldOverrides(config),
1859
- MuiOutlinedInput: createOutlinedInputOverrides(config),
1860
- MuiFilledInput: createFilledInputOverrides(config),
1861
- MuiInputLabel: createInputLabelOverrides(),
1862
- MuiFormHelperText: createFormHelperTextOverrides(),
1863
- MuiSelect: {
1864
- styleOverrides: {
1865
- select: {
1866
- // Reset minHeight so Select matches TextField height exactly.
1867
- minHeight: "auto",
1868
- display: "flex",
1869
- alignItems: "center"
1870
- },
1871
- icon: {
1872
- right: 10,
1873
- width: 18,
1874
- height: 18,
1875
- top: "calc(50% - 9px)"
1876
- }
1877
- }
1878
- },
1879
- MuiNativeSelect: {
1993
+ MuiDialogContent: {
1880
1994
  styleOverrides: {
1881
- icon: {
1882
- right: 10,
1883
- width: 18,
1884
- height: 18,
1885
- top: "calc(50% - 9px)"
1995
+ root: {
1996
+ padding: `${16 * dm}px ${24 * dm}px`
1886
1997
  }
1887
1998
  }
1888
1999
  },
1889
- MuiAutocomplete: {
2000
+ MuiDialogActions: {
1890
2001
  styleOverrides: {
1891
- paper: ({ theme }) => ({
1892
- borderRadius,
1893
- boxShadow: `0 0 2px 0 rgba(${getGreyChannel(theme)} / 0.24), -20px 20px 40px -4px rgba(${getGreyChannel(theme)} / 0.24)`
1894
- }),
1895
- listbox: {
1896
- padding: 4
1897
- },
1898
- option: ({ theme }) => ({
1899
- borderRadius: borderRadius - 2,
1900
- margin: 2,
1901
- [`&.${autocompleteClasses.focused}`]: {
1902
- backgroundColor: theme.vars?.palette.action.hover || theme.palette.action.hover
1903
- },
1904
- '&[aria-selected="true"]': {
1905
- backgroundColor: theme.vars?.palette.action.selected || theme.palette.action.selected,
1906
- fontWeight: 500,
1907
- [`&.${autocompleteClasses.focused}`]: {
1908
- backgroundColor: theme.vars?.palette.action.hover || theme.palette.action.hover
1909
- }
1910
- }
1911
- }),
1912
- popupIndicator: {
1913
- [`& .${svgIconClasses.root}`]: {
1914
- fontSize: 20
1915
- }
1916
- },
1917
- clearIndicator: {
1918
- [`& .${svgIconClasses.root}`]: {
1919
- fontSize: 18
1920
- }
2002
+ root: {
2003
+ padding: `${16 * dm}px ${24 * dm}px`,
2004
+ gap: 8
1921
2005
  }
1922
2006
  }
1923
- },
1924
- // =========================================================================
1925
- // CARDS
1926
- // =========================================================================
2007
+ }
2008
+ };
2009
+ }
2010
+
2011
+ // src/theme/components/Card.ts
2012
+ function createCardOverrides(config) {
2013
+ const { density, borderRadius } = config;
2014
+ const dm = getDensityMultiplier(density);
2015
+ return {
1927
2016
  MuiCard: {
1928
2017
  defaultProps: {
1929
2018
  elevation: 0
@@ -1934,7 +2023,7 @@ function componentOverrides(config) {
1934
2023
  zIndex: 0,
1935
2024
  // Safari stacking context fix
1936
2025
  borderRadius: borderRadius * 1.5,
1937
- border: `1px solid ${theme.vars?.palette.divider || theme.palette.divider}`,
2026
+ border: `1px solid ${paletteVar(theme, "divider")}`,
1938
2027
  backgroundImage: "none",
1939
2028
  boxShadow: `0 0 2px 0 rgba(${getGreyChannel(theme)} / 0.2), 0 12px 24px -4px rgba(${getGreyChannel(theme)} / 0.12)`
1940
2029
  })
@@ -1942,8 +2031,10 @@ function componentOverrides(config) {
1942
2031
  },
1943
2032
  MuiCardHeader: {
1944
2033
  defaultProps: {
1945
- titleTypographyProps: { variant: "h6" },
1946
- subheaderTypographyProps: { variant: "body2" }
2034
+ slotProps: {
2035
+ title: { variant: "h6" },
2036
+ subheader: { variant: "body2" }
2037
+ }
1947
2038
  },
1948
2039
  styleOverrides: {
1949
2040
  root: {
@@ -1957,7 +2048,7 @@ function componentOverrides(config) {
1957
2048
  subheader: ({ theme }) => ({
1958
2049
  fontSize: theme.typography.pxToRem(14),
1959
2050
  lineHeight: 22 / 14,
1960
- color: theme.vars?.palette.text.secondary || theme.palette.text.secondary
2051
+ color: paletteVar(theme, "text.secondary")
1961
2052
  })
1962
2053
  }
1963
2054
  },
@@ -1978,6 +2069,287 @@ function componentOverrides(config) {
1978
2069
  gap: 8
1979
2070
  }
1980
2071
  }
2072
+ }
2073
+ };
2074
+ }
2075
+ function createAutocompleteOverrides(config) {
2076
+ const { borderRadius } = config;
2077
+ return {
2078
+ styleOverrides: {
2079
+ paper: ({ theme }) => ({
2080
+ borderRadius,
2081
+ boxShadow: `0 0 2px 0 rgba(${getGreyChannel(theme)} / 0.24), -20px 20px 40px -4px rgba(${getGreyChannel(theme)} / 0.24)`
2082
+ }),
2083
+ listbox: {
2084
+ padding: 4
2085
+ },
2086
+ option: ({ theme }) => ({
2087
+ borderRadius: borderRadius - 2,
2088
+ margin: 2,
2089
+ [`&.${autocompleteClasses.focused}`]: {
2090
+ backgroundColor: paletteVar(theme, "action.hover")
2091
+ },
2092
+ '&[aria-selected="true"]': {
2093
+ backgroundColor: paletteVar(theme, "action.selected"),
2094
+ fontWeight: 500,
2095
+ [`&.${autocompleteClasses.focused}`]: {
2096
+ backgroundColor: paletteVar(theme, "action.hover")
2097
+ }
2098
+ }
2099
+ }),
2100
+ popupIndicator: {
2101
+ [`& .${svgIconClasses.root}`]: {
2102
+ fontSize: 20
2103
+ }
2104
+ },
2105
+ clearIndicator: {
2106
+ [`& .${svgIconClasses.root}`]: {
2107
+ fontSize: 18
2108
+ }
2109
+ }
2110
+ }
2111
+ };
2112
+ }
2113
+ function createDataGridOverrides(config) {
2114
+ const { borderRadius } = config;
2115
+ return {
2116
+ styleOverrides: {
2117
+ root: ({ theme }) => ({
2118
+ border: "none",
2119
+ borderRadius,
2120
+ // background.neutral falls back to grey[50] (different path
2121
+ // on either side) — kept as a manual chain rather than
2122
+ // paletteVar() so the fallback is explicit.
2123
+ "--DataGrid-containerBackground": theme.vars?.palette.background.neutral || theme.palette.grey[50],
2124
+ "--DataGrid-pinnedBackground": paletteVar(theme, "background.paper"),
2125
+ "& .MuiDataGrid-columnHeaders": {
2126
+ borderBottom: `1px solid ${paletteVar(theme, "divider")}`
2127
+ },
2128
+ "& .MuiDataGrid-columnHeader": {
2129
+ fontWeight: 600,
2130
+ fontSize: theme.typography.pxToRem(14),
2131
+ color: paletteVar(theme, "text.secondary"),
2132
+ "&:focus, &:focus-within": {
2133
+ outline: "none"
2134
+ }
2135
+ },
2136
+ "& .MuiDataGrid-cell": {
2137
+ borderBottom: `1px solid rgba(${getGreyChannel(theme)} / 0.12)`,
2138
+ "&:focus, &:focus-within": {
2139
+ outline: "none"
2140
+ }
2141
+ },
2142
+ "& .MuiDataGrid-row": {
2143
+ "&:hover": {
2144
+ backgroundColor: paletteVar(theme, "action.hover")
2145
+ },
2146
+ "&.Mui-selected": {
2147
+ backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.08)`,
2148
+ "&:hover": {
2149
+ backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.12)`
2150
+ }
2151
+ }
2152
+ },
2153
+ "& .MuiDataGrid-footerContainer": {
2154
+ borderTop: `1px solid ${paletteVar(theme, "divider")}`
2155
+ },
2156
+ "& .MuiDataGrid-selectedRowCount": {
2157
+ whiteSpace: "nowrap"
2158
+ },
2159
+ "& .MuiDataGrid-toolbarContainer": {
2160
+ padding: theme.spacing(1.5, 1.5, 0.5),
2161
+ gap: theme.spacing(1)
2162
+ },
2163
+ "& .MuiDataGrid-columnSeparator": {
2164
+ color: paletteVar(theme, "divider")
2165
+ }
2166
+ })
2167
+ }
2168
+ };
2169
+ }
2170
+
2171
+ // src/theme/components/DatePicker.ts
2172
+ function createDatePickerOverrides(config) {
2173
+ const { density, borderRadius } = config;
2174
+ return {
2175
+ MuiDatePicker: {
2176
+ defaultProps: {
2177
+ slotProps: {
2178
+ openPickerButton: {
2179
+ size: density === "compact" ? "small" : "medium"
2180
+ }
2181
+ }
2182
+ }
2183
+ },
2184
+ MuiPickersLayout: {
2185
+ styleOverrides: {
2186
+ root: ({ theme }) => ({
2187
+ "& .MuiPickersLayout-actionBar": {
2188
+ padding: theme.spacing(1, 2)
2189
+ }
2190
+ })
2191
+ }
2192
+ },
2193
+ MuiPickersDay: {
2194
+ styleOverrides: {
2195
+ root: () => ({
2196
+ borderRadius: borderRadius - 2,
2197
+ fontWeight: 400,
2198
+ "&.Mui-selected": {
2199
+ fontWeight: 600
2200
+ }
2201
+ }),
2202
+ today: ({ theme }) => ({
2203
+ borderColor: paletteVar(theme, "primary.main"),
2204
+ "&:not(.Mui-selected)": {
2205
+ backgroundColor: "transparent"
2206
+ }
2207
+ })
2208
+ }
2209
+ },
2210
+ MuiPickersYear: {
2211
+ styleOverrides: {
2212
+ yearButton: () => ({
2213
+ borderRadius,
2214
+ "&.Mui-selected": {
2215
+ fontWeight: 600
2216
+ }
2217
+ })
2218
+ }
2219
+ },
2220
+ MuiPickersMonth: {
2221
+ styleOverrides: {
2222
+ monthButton: () => ({
2223
+ borderRadius,
2224
+ "&.Mui-selected": {
2225
+ fontWeight: 600
2226
+ }
2227
+ })
2228
+ }
2229
+ }
2230
+ };
2231
+ }
2232
+
2233
+ // src/theme/components/index.ts
2234
+ function componentOverrides(config) {
2235
+ const { density, borderRadius } = config;
2236
+ const dm = getDensityMultiplier(density);
2237
+ return {
2238
+ // =========================================================================
2239
+ // BUTTONS (Modular)
2240
+ // =========================================================================
2241
+ MuiButton: createButtonOverrides(config),
2242
+ MuiButtonBase: createButtonBaseOverrides(),
2243
+ MuiButtonGroup: createButtonGroupOverrides(config),
2244
+ // =========================================================================
2245
+ // ICON BUTTON
2246
+ // =========================================================================
2247
+ MuiIconButton: {
2248
+ styleOverrides: {
2249
+ root: ({ theme }) => ({
2250
+ borderRadius,
2251
+ "&:hover": {
2252
+ backgroundColor: paletteVar(theme, "action.hover")
2253
+ }
2254
+ })
2255
+ }
2256
+ },
2257
+ MuiInputAdornment: {
2258
+ styleOverrides: {
2259
+ root: {
2260
+ [`& .${iconButtonClasses.root}:hover`]: {
2261
+ backgroundColor: "transparent"
2262
+ }
2263
+ }
2264
+ }
2265
+ },
2266
+ // =========================================================================
2267
+ // FAB
2268
+ // =========================================================================
2269
+ MuiFab: {
2270
+ defaultProps: {
2271
+ color: "primary"
2272
+ },
2273
+ styleOverrides: {
2274
+ root: ({ theme }) => ({
2275
+ boxShadow: `0 8px 16px 0 rgba(${getColorChannel(theme, "primary")} / 0.24)`,
2276
+ "&:hover": {
2277
+ boxShadow: `0 8px 16px 0 rgba(${getColorChannel(theme, "primary")} / 0.32)`
2278
+ }
2279
+ })
2280
+ }
2281
+ },
2282
+ // =========================================================================
2283
+ // INPUTS (Refined - from Minimals patterns)
2284
+ // =========================================================================
2285
+ MuiInputBase: createInputBaseOverrides(),
2286
+ MuiInput: createInputOverrides(),
2287
+ MuiTextField: createTextFieldOverrides(config),
2288
+ MuiOutlinedInput: createOutlinedInputOverrides(config),
2289
+ MuiFilledInput: createFilledInputOverrides(config),
2290
+ MuiInputLabel: createInputLabelOverrides(),
2291
+ MuiFormHelperText: createFormHelperTextOverrides(),
2292
+ MuiSelect: {
2293
+ styleOverrides: {
2294
+ select: {
2295
+ // Reset minHeight so Select matches TextField height exactly.
2296
+ minHeight: "auto",
2297
+ display: "flex",
2298
+ alignItems: "center"
2299
+ },
2300
+ icon: {
2301
+ right: 10,
2302
+ width: 18,
2303
+ height: 18,
2304
+ top: "calc(50% - 9px)"
2305
+ }
2306
+ }
2307
+ },
2308
+ MuiNativeSelect: {
2309
+ styleOverrides: {
2310
+ icon: {
2311
+ right: 10,
2312
+ width: 18,
2313
+ height: 18,
2314
+ top: "calc(50% - 9px)"
2315
+ }
2316
+ }
2317
+ },
2318
+ MuiAutocomplete: createAutocompleteOverrides(config),
2319
+ // =========================================================================
2320
+ // CARDS — modularized in ./Card.ts
2321
+ // =========================================================================
2322
+ ...createCardOverrides(config),
2323
+ // =========================================================================
2324
+ // LAYOUT
2325
+ // =========================================================================
2326
+ /**
2327
+ * `Stack` spaces its children with CSS `gap`, never with margins.
2328
+ *
2329
+ * MUI's own default (`useFlexGap: false`) gives every child but the first
2330
+ * a margin on the spacing side, and resets every child's own margin to 0.
2331
+ * Both halves of that were measured in this codebase on 2026-09-22:
2332
+ *
2333
+ * - when a row wraps, the first item of every wrapped line keeps its
2334
+ * margin and the first item of the first line does not, so the first
2335
+ * line sits one gap to the left of the rest. The release console's
2336
+ * gate strip showed it; the same shape — a wrapping `Stack` with
2337
+ * `spacing` — was in 146 places across the console, prism and the
2338
+ * portal;
2339
+ * - a child's own margin is silently discarded. `ml: 'auto'` does not
2340
+ * push, `mt: -1.5` does not pull a subtitle up, `FormControlLabel`
2341
+ * loses the -11px that aligns its control with the text around it —
2342
+ * which is why `ml: 'auto !important'` appears in both apps, and why
2343
+ * eight `ml: 'auto'` in the portal did nothing at all.
2344
+ *
2345
+ * `gap` has neither problem, every browser the apps support implements it,
2346
+ * and MUI recommends turning it on here, globally. A child's margin now
2347
+ * ADDS to the gap, as margins do everywhere else in CSS.
2348
+ */
2349
+ MuiStack: {
2350
+ defaultProps: {
2351
+ useFlexGap: true
2352
+ }
1981
2353
  },
1982
2354
  // =========================================================================
1983
2355
  // PAPER & SURFACES
@@ -2014,60 +2386,9 @@ function componentOverrides(config) {
2014
2386
  }
2015
2387
  },
2016
2388
  // =========================================================================
2017
- // DIALOGS
2389
+ // DIALOGS — modularized in ./Dialog.ts
2018
2390
  // =========================================================================
2019
- MuiDialog: {
2020
- styleOverrides: {
2021
- paper: ({ theme }) => ({
2022
- boxShadow: `0 24px 48px -12px rgba(${getGreyChannel(theme, "900")} / 0.24)`,
2023
- // Mobile-first: fullscreen on < sm (600px)
2024
- [theme.breakpoints.down("sm")]: {
2025
- margin: 0,
2026
- width: "100% !important",
2027
- maxWidth: "none !important",
2028
- maxHeight: "none !important",
2029
- height: "100%",
2030
- borderRadius: "0 !important"
2031
- },
2032
- variants: [
2033
- {
2034
- props: (props) => !props.fullScreen,
2035
- style: {
2036
- borderRadius: borderRadius * 2,
2037
- [theme.breakpoints.up("sm")]: {
2038
- margin: theme.spacing(2)
2039
- }
2040
- }
2041
- }
2042
- ]
2043
- })
2044
- }
2045
- },
2046
- MuiDialogTitle: {
2047
- styleOverrides: {
2048
- root: ({ theme }) => ({
2049
- padding: `${20 * dm}px ${24 * dm}px`,
2050
- fontSize: theme.typography.pxToRem(18),
2051
- fontWeight: 600,
2052
- lineHeight: 28 / 18
2053
- })
2054
- }
2055
- },
2056
- MuiDialogContent: {
2057
- styleOverrides: {
2058
- root: {
2059
- padding: `${16 * dm}px ${24 * dm}px`
2060
- }
2061
- }
2062
- },
2063
- MuiDialogActions: {
2064
- styleOverrides: {
2065
- root: {
2066
- padding: `${16 * dm}px ${24 * dm}px`,
2067
- gap: 8
2068
- }
2069
- }
2070
- },
2391
+ ...createDialogOverrides(config),
2071
2392
  // =========================================================================
2072
2393
  // NAVIGATION
2073
2394
  // =========================================================================
@@ -2085,7 +2406,7 @@ function componentOverrides(config) {
2085
2406
  styleOverrides: {
2086
2407
  root: ({ theme }) => ({
2087
2408
  backgroundImage: "none",
2088
- borderBottom: `1px solid ${theme.vars?.palette.divider || theme.palette.divider}`
2409
+ borderBottom: `1px solid ${paletteVar(theme, "divider")}`
2089
2410
  })
2090
2411
  }
2091
2412
  },
@@ -2110,26 +2431,33 @@ function componentOverrides(config) {
2110
2431
  },
2111
2432
  styleOverrides: {
2112
2433
  root: ({ theme }) => ({
2113
- border: `1px solid ${theme.vars?.palette.divider || theme.palette.divider}`,
2434
+ border: `1px solid ${paletteVar(theme, "divider")}`,
2114
2435
  borderRadius,
2115
2436
  "&::before": {
2116
2437
  display: "none"
2117
2438
  },
2118
- "&:first-of-type": {
2439
+ // Position selectors switched from `:first-of-type` /
2440
+ // `:last-of-type` to `:first-child` / `:last-child` —
2441
+ // accordions are intended to be direct siblings, so the
2442
+ // child-position form gives the correct result without
2443
+ // depending on element-tag homogeneity (an interspersed
2444
+ // <Divider /> would break the of-type form silently by
2445
+ // making each accordion the only "of-type" sibling).
2446
+ "&:first-child": {
2119
2447
  borderTopLeftRadius: borderRadius,
2120
2448
  borderTopRightRadius: borderRadius
2121
2449
  },
2122
- "&:last-of-type": {
2450
+ "&:last-child": {
2123
2451
  borderBottomLeftRadius: borderRadius,
2124
2452
  borderBottomRightRadius: borderRadius
2125
2453
  },
2126
- "&:not(:last-of-type)": {
2454
+ "&:not(:last-child)": {
2127
2455
  borderBottom: 0
2128
2456
  },
2129
2457
  [`&.${accordionClasses.expanded}`]: {
2130
2458
  margin: 0,
2131
- "&:first-of-type": { marginTop: 0 },
2132
- "&:last-of-type": { marginBottom: 0 }
2459
+ "&:first-child": { marginTop: 0 },
2460
+ "&:last-child": { marginBottom: 0 }
2133
2461
  },
2134
2462
  [`&.${accordionClasses.disabled}`]: {
2135
2463
  backgroundColor: "transparent"
@@ -2157,7 +2485,7 @@ function componentOverrides(config) {
2157
2485
  }
2158
2486
  },
2159
2487
  expandIconWrapper: ({ theme }) => ({
2160
- color: theme.vars?.palette.text.secondary || theme.palette.text.secondary
2488
+ color: paletteVar(theme, "text.secondary")
2161
2489
  })
2162
2490
  }
2163
2491
  },
@@ -2165,7 +2493,7 @@ function componentOverrides(config) {
2165
2493
  styleOverrides: {
2166
2494
  root: ({ theme }) => ({
2167
2495
  padding: `${8 * dm}px ${16 * dm}px ${16 * dm}px`,
2168
- borderTop: `1px solid ${theme.vars?.palette.divider || theme.palette.divider}`
2496
+ borderTop: `1px solid ${paletteVar(theme, "divider")}`
2169
2497
  })
2170
2498
  }
2171
2499
  },
@@ -2186,11 +2514,11 @@ function componentOverrides(config) {
2186
2514
  fontWeight: 500,
2187
2515
  [`&.${stepLabelClasses.active}`]: {
2188
2516
  fontWeight: 600,
2189
- color: theme.vars?.palette.text.primary || theme.palette.text.primary
2517
+ color: paletteVar(theme, "text.primary")
2190
2518
  },
2191
2519
  [`&.${stepLabelClasses.completed}`]: {
2192
2520
  fontWeight: 500,
2193
- color: theme.vars?.palette.text.primary || theme.palette.text.primary
2521
+ color: paletteVar(theme, "text.primary")
2194
2522
  }
2195
2523
  }),
2196
2524
  iconContainer: {
@@ -2201,7 +2529,7 @@ function componentOverrides(config) {
2201
2529
  MuiStepConnector: {
2202
2530
  styleOverrides: {
2203
2531
  line: ({ theme }) => ({
2204
- borderColor: theme.vars?.palette.divider || theme.palette.divider,
2532
+ borderColor: paletteVar(theme, "divider"),
2205
2533
  borderTopWidth: 2
2206
2534
  })
2207
2535
  }
@@ -2209,12 +2537,12 @@ function componentOverrides(config) {
2209
2537
  MuiStepIcon: {
2210
2538
  styleOverrides: {
2211
2539
  root: ({ theme }) => ({
2212
- color: theme.vars?.palette.grey?.[300] || theme.palette.grey[300],
2540
+ color: paletteVar(theme, "grey.300"),
2213
2541
  [`&.${stepIconClasses.active}`]: {
2214
- color: theme.vars?.palette.primary.main || theme.palette.primary.main
2542
+ color: paletteVar(theme, "primary.main")
2215
2543
  },
2216
2544
  [`&.${stepIconClasses.completed}`]: {
2217
- color: theme.vars?.palette.primary.main || theme.palette.primary.main
2545
+ color: paletteVar(theme, "primary.main")
2218
2546
  }
2219
2547
  }),
2220
2548
  text: {
@@ -2226,7 +2554,7 @@ function componentOverrides(config) {
2226
2554
  MuiStepContent: {
2227
2555
  styleOverrides: {
2228
2556
  root: ({ theme }) => ({
2229
- borderLeft: `2px solid ${theme.vars?.palette.divider || theme.palette.divider}`,
2557
+ borderLeft: `2px solid ${paletteVar(theme, "divider")}`,
2230
2558
  marginLeft: 11,
2231
2559
  paddingLeft: 20,
2232
2560
  paddingRight: 8
@@ -2252,25 +2580,25 @@ function componentOverrides(config) {
2252
2580
  }
2253
2581
  }),
2254
2582
  outlined: ({ theme }) => ({
2255
- borderColor: theme.vars?.palette.divider || theme.palette.divider,
2583
+ borderColor: paletteVar(theme, "divider"),
2256
2584
  [`&.${paginationItemClasses.selected}`]: {
2257
2585
  backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.08)`,
2258
- borderColor: theme.vars?.palette.primary.main || theme.palette.primary.main
2586
+ borderColor: paletteVar(theme, "primary.main")
2259
2587
  }
2260
2588
  }),
2261
2589
  text: ({ theme }) => ({
2262
2590
  [`&.${paginationItemClasses.selected}`]: {
2263
- backgroundColor: theme.vars?.palette.primary.main || theme.palette.primary.main,
2264
- color: theme.vars?.palette.primary.contrastText || theme.palette.primary.contrastText,
2591
+ backgroundColor: paletteVar(theme, "primary.main"),
2592
+ color: paletteVar(theme, "primary.contrastText"),
2265
2593
  "&:hover": {
2266
- backgroundColor: theme.vars?.palette.primary.dark || theme.palette.primary.dark
2594
+ backgroundColor: paletteVar(theme, "primary.dark")
2267
2595
  }
2268
2596
  }
2269
2597
  }),
2270
2598
  previousNext: ({ theme }) => ({
2271
2599
  borderRadius: borderRadius - 2,
2272
2600
  "&:hover": {
2273
- backgroundColor: theme.vars?.palette.action.hover || theme.palette.action.hover
2601
+ backgroundColor: paletteVar(theme, "action.hover")
2274
2602
  }
2275
2603
  }),
2276
2604
  firstLast: ({ theme }) => ({
@@ -2306,10 +2634,10 @@ function componentOverrides(config) {
2306
2634
  borderRadius: borderRadius - 2,
2307
2635
  fontSize: theme.typography.pxToRem(12),
2308
2636
  padding: "6px 12px",
2309
- backgroundColor: theme.vars?.palette.grey?.[800] || theme.palette.grey[800]
2637
+ backgroundColor: paletteVar(theme, "grey.800")
2310
2638
  }),
2311
2639
  arrow: ({ theme }) => ({
2312
- color: theme.vars?.palette.grey?.[800] || theme.palette.grey[800]
2640
+ color: paletteVar(theme, "grey.800")
2313
2641
  })
2314
2642
  }
2315
2643
  },
@@ -2329,7 +2657,7 @@ function componentOverrides(config) {
2329
2657
  [`& .${tableCellClasses.head}`]: {
2330
2658
  fontWeight: 600,
2331
2659
  backgroundColor: theme.vars?.palette.background.neutral || theme.palette.grey[50],
2332
- color: theme.vars?.palette.text.secondary || theme.palette.text.secondary
2660
+ color: paletteVar(theme, "text.secondary")
2333
2661
  }
2334
2662
  })
2335
2663
  }
@@ -2362,13 +2690,19 @@ function componentOverrides(config) {
2362
2690
  },
2363
2691
  MuiTablePagination: {
2364
2692
  defaultProps: {
2365
- backIconButtonProps: { size: "small" },
2366
- nextIconButtonProps: { size: "small" },
2367
- slotProps: { select: { name: "table-pagination-select" } }
2693
+ // MUI v9 removed `backIconButtonProps`/`nextIconButtonProps` —
2694
+ // both replaced by slotProps.
2695
+ slotProps: {
2696
+ select: { name: "table-pagination-select" },
2697
+ actions: {
2698
+ previousButton: { size: "small" },
2699
+ nextButton: { size: "small" }
2700
+ }
2701
+ }
2368
2702
  },
2369
2703
  styleOverrides: {
2370
2704
  root: ({ theme }) => ({
2371
- borderTop: `1px solid ${theme.vars?.palette.divider || theme.palette.divider}`
2705
+ borderTop: `1px solid ${paletteVar(theme, "divider")}`
2372
2706
  }),
2373
2707
  toolbar: {
2374
2708
  minHeight: 44 * dm,
@@ -2400,25 +2734,36 @@ function componentOverrides(config) {
2400
2734
  // FEEDBACK
2401
2735
  // =========================================================================
2402
2736
  MuiAlert: {
2737
+ // MUI v9: `standardSuccess`/`standardError`/`standardWarning`/
2738
+ // `standardInfo` slots were removed in favour of the variants
2739
+ // array (props-matched style rules).
2403
2740
  styleOverrides: {
2404
- root: {
2405
- borderRadius
2406
- },
2407
- standardSuccess: ({ theme }) => ({
2408
- backgroundColor: `rgba(${getColorChannel(theme, "success")} / 0.08)`,
2409
- color: theme.vars?.palette.success.dark || theme.palette.success.dark
2410
- }),
2411
- standardError: ({ theme }) => ({
2412
- backgroundColor: `rgba(${getColorChannel(theme, "error")} / 0.08)`,
2413
- color: theme.vars?.palette.error.dark || theme.palette.error.dark
2414
- }),
2415
- standardWarning: ({ theme }) => ({
2416
- backgroundColor: `rgba(${getColorChannel(theme, "warning")} / 0.08)`,
2417
- color: theme.vars?.palette.warning.dark || theme.palette.warning.dark
2418
- }),
2419
- standardInfo: ({ theme }) => ({
2420
- backgroundColor: `rgba(${getColorChannel(theme, "info")} / 0.08)`,
2421
- color: theme.vars?.palette.info.dark || theme.palette.info.dark
2741
+ root: ({ theme }) => ({
2742
+ borderRadius,
2743
+ variants: ["success", "error", "warning", "info"].map(
2744
+ (severity) => ({
2745
+ props: { severity, variant: "standard" },
2746
+ style: {
2747
+ backgroundColor: `rgba(${getColorChannel(theme, severity)} / 0.08)`,
2748
+ color: theme.vars?.palette[severity].dark || theme.palette[severity].dark
2749
+ }
2750
+ })
2751
+ )
2752
+ })
2753
+ }
2754
+ },
2755
+ MuiAlertTitle: {
2756
+ // The title slot in Alert was unstyled — defaulted to MUI's
2757
+ // generic Typography preset and stuck out vs the Alert body
2758
+ // text, especially at compact density where 14/16 became
2759
+ // 13/14 around it. Pin to a slightly larger weight with the
2760
+ // alert's own colour inheritance.
2761
+ styleOverrides: {
2762
+ root: ({ theme }) => ({
2763
+ fontWeight: 600,
2764
+ fontSize: theme.typography.pxToRem(14),
2765
+ marginBottom: theme.spacing(0.5),
2766
+ lineHeight: 1.5
2422
2767
  })
2423
2768
  }
2424
2769
  },
@@ -2439,6 +2784,14 @@ function componentOverrides(config) {
2439
2784
  }
2440
2785
  }
2441
2786
  },
2787
+ MuiCircularProgress: {
2788
+ // Density-aware default size — the bare MUI default is 40px,
2789
+ // which dwarfs adornments / inline loaders at compact density.
2790
+ // Consumers can still override per-instance.
2791
+ defaultProps: {
2792
+ size: density === "compact" ? 20 : density === "comfortable" ? 32 : 24
2793
+ }
2794
+ },
2442
2795
  // =========================================================================
2443
2796
  // SLIDER
2444
2797
  // =========================================================================
@@ -2449,12 +2802,12 @@ function componentOverrides(config) {
2449
2802
  styleOverrides: {
2450
2803
  root: ({ theme }) => ({
2451
2804
  "&.Mui-disabled": {
2452
- color: theme.vars?.palette.action.disabled || theme.palette.action.disabled
2805
+ color: paletteVar(theme, "action.disabled")
2453
2806
  }
2454
2807
  }),
2455
2808
  rail: ({ theme }) => ({
2456
2809
  opacity: 0.32,
2457
- backgroundColor: theme.vars?.palette.grey?.[500] || theme.palette.grey[500]
2810
+ backgroundColor: paletteVar(theme, "grey.500")
2458
2811
  }),
2459
2812
  track: {
2460
2813
  border: "none"
@@ -2462,7 +2815,7 @@ function componentOverrides(config) {
2462
2815
  thumb: ({ theme }) => ({
2463
2816
  width: density === "compact" ? 16 : 20,
2464
2817
  height: density === "compact" ? 16 : 20,
2465
- backgroundColor: theme.vars?.palette.common.white || theme.palette.common.white,
2818
+ backgroundColor: paletteVar(theme, "common.white"),
2466
2819
  border: "2px solid currentColor",
2467
2820
  boxShadow: `0 1px 3px 0 rgba(${getGreyChannel(theme, "900")} / 0.2)`,
2468
2821
  "&::before": {
@@ -2477,7 +2830,7 @@ function componentOverrides(config) {
2477
2830
  }),
2478
2831
  valueLabel: ({ theme }) => ({
2479
2832
  borderRadius: borderRadius - 2,
2480
- backgroundColor: theme.vars?.palette.grey?.[800] || theme.palette.grey[800],
2833
+ backgroundColor: paletteVar(theme, "grey.800"),
2481
2834
  "&::before": {
2482
2835
  display: "none"
2483
2836
  }
@@ -2486,10 +2839,10 @@ function componentOverrides(config) {
2486
2839
  width: 4,
2487
2840
  height: 4,
2488
2841
  borderRadius: "50%",
2489
- backgroundColor: theme.vars?.palette.grey?.[400] || theme.palette.grey[400]
2842
+ backgroundColor: paletteVar(theme, "grey.400")
2490
2843
  }),
2491
2844
  markActive: ({ theme }) => ({
2492
- backgroundColor: theme.vars?.palette.common.white || theme.palette.common.white
2845
+ backgroundColor: paletteVar(theme, "common.white")
2493
2846
  })
2494
2847
  }
2495
2848
  },
@@ -2512,13 +2865,13 @@ function componentOverrides(config) {
2512
2865
  fontSize: "inherit"
2513
2866
  },
2514
2867
  iconEmpty: ({ theme }) => ({
2515
- color: theme.vars?.palette.grey?.[300] || theme.palette.grey[300]
2868
+ color: paletteVar(theme, "grey.300")
2516
2869
  }),
2517
2870
  iconFilled: ({ theme }) => ({
2518
- color: theme.vars?.palette.warning.main || theme.palette.warning.main
2871
+ color: paletteVar(theme, "warning.main")
2519
2872
  }),
2520
2873
  iconHover: ({ theme }) => ({
2521
- color: theme.vars?.palette.warning.dark || theme.palette.warning.dark
2874
+ color: paletteVar(theme, "warning.dark")
2522
2875
  }),
2523
2876
  sizeSmall: {
2524
2877
  fontSize: "1.125rem"
@@ -2543,6 +2896,20 @@ function componentOverrides(config) {
2543
2896
  // =========================================================================
2544
2897
  // LISTS
2545
2898
  // =========================================================================
2899
+ MuiList: {
2900
+ // Default MUI list padding is 8/0/8/0 — fine for spacious lists
2901
+ // but it stacks awkwardly with our ListItemButton's `margin: 2`
2902
+ // (the first/last buttons end up indented away from the
2903
+ // container edge). Density-aware top/bottom keeps the seam tight
2904
+ // while leaving the side at 0 so the row hover bleed reaches
2905
+ // the container border.
2906
+ styleOverrides: {
2907
+ root: {
2908
+ paddingTop: density === "compact" ? 4 : 8,
2909
+ paddingBottom: density === "compact" ? 4 : 8
2910
+ }
2911
+ }
2912
+ },
2546
2913
  MuiListItemButton: {
2547
2914
  styleOverrides: {
2548
2915
  root: ({ theme }) => ({
@@ -2553,7 +2920,7 @@ function componentOverrides(config) {
2553
2920
  fontWeight: 500
2554
2921
  },
2555
2922
  "&:hover": {
2556
- backgroundColor: theme.vars?.palette.action.hover || theme.palette.action.hover
2923
+ backgroundColor: paletteVar(theme, "action.hover")
2557
2924
  }
2558
2925
  })
2559
2926
  }
@@ -2565,6 +2932,28 @@ function componentOverrides(config) {
2565
2932
  }
2566
2933
  }
2567
2934
  },
2935
+ MuiListItemText: {
2936
+ // Multiline rows (primary + secondary) inherited MUI defaults
2937
+ // that left an awkward 6px gap between the two lines at any
2938
+ // density. Tighten the inter-line gap and reduce horizontal
2939
+ // padding so dense rows actually FEEL dense.
2940
+ styleOverrides: {
2941
+ root: {
2942
+ marginTop: 0,
2943
+ marginBottom: 0
2944
+ },
2945
+ primary: ({ theme }) => ({
2946
+ fontSize: theme.typography.pxToRem(density === "compact" ? 13 : 14),
2947
+ fontWeight: 500,
2948
+ lineHeight: 1.5
2949
+ }),
2950
+ secondary: ({ theme }) => ({
2951
+ fontSize: theme.typography.pxToRem(density === "compact" ? 12 : 13),
2952
+ lineHeight: 1.5,
2953
+ color: paletteVar(theme, "text.secondary")
2954
+ })
2955
+ }
2956
+ },
2568
2957
  // =========================================================================
2569
2958
  // MENUS (Refined - with proper menu item styles)
2570
2959
  // =========================================================================
@@ -2587,14 +2976,19 @@ function componentOverrides(config) {
2587
2976
  borderRadius: borderRadius - 2,
2588
2977
  margin: 2,
2589
2978
  padding: `${8 * dm}px ${12 * dm}px`,
2590
- "&:not(:last-of-type)": {
2979
+ // `:not(:last-child)` — element-tag-agnostic position
2980
+ // selector. The `:last-of-type` form was wrong when a
2981
+ // <Divider /> ended the list (the previous MenuItem
2982
+ // became the last-of-type MenuItem and kept its
2983
+ // margin-bottom, creating an inconsistent gap).
2984
+ "&:not(:last-child)": {
2591
2985
  marginBottom: 4
2592
2986
  },
2593
2987
  "&.Mui-selected": {
2594
2988
  fontWeight: 500,
2595
- backgroundColor: theme.vars?.palette.action.selected || theme.palette.action.selected,
2989
+ backgroundColor: paletteVar(theme, "action.selected"),
2596
2990
  "&:hover": {
2597
- backgroundColor: theme.vars?.palette.action.hover || theme.palette.action.hover
2991
+ backgroundColor: paletteVar(theme, "action.hover")
2598
2992
  }
2599
2993
  }
2600
2994
  })
@@ -2641,7 +3035,7 @@ function componentOverrides(config) {
2641
3035
  },
2642
3036
  styleOverrides: {
2643
3037
  root: ({ theme }) => ({
2644
- color: theme.vars?.palette.primary.main || theme.palette.primary.main,
3038
+ color: paletteVar(theme, "primary.main"),
2645
3039
  textDecorationColor: "transparent",
2646
3040
  transition: "color 150ms, text-decoration-color 150ms",
2647
3041
  "&:hover": {
@@ -2659,17 +3053,28 @@ function componentOverrides(config) {
2659
3053
  borderRadius,
2660
3054
  fontWeight: 500,
2661
3055
  textTransform: "none",
2662
- border: `1px solid ${theme.vars?.palette.divider || theme.palette.divider}`,
3056
+ border: `1px solid ${paletteVar(theme, "divider")}`,
2663
3057
  [`&.${toggleButtonClasses.selected}`]: {
2664
3058
  backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.08)`,
2665
- borderColor: theme.vars?.palette.primary.main || theme.palette.primary.main,
2666
- color: theme.vars?.palette.primary.main || theme.palette.primary.main,
3059
+ // `currentColor` makes the border track the foreground
3060
+ // colour set on the selected state — by default that
3061
+ // foreground is primary (set on the same rule below),
3062
+ // but consumers that override `color` via the MUI
3063
+ // `color` prop or an inline `sx` (e.g. /admin/messaging
3064
+ // settings sets per-button OPT_COLOR for success /
3065
+ // warning / error / info modes) get a border that
3066
+ // matches without needing to also override the border
3067
+ // shorthand. Defeats the prior "half-and-half" bug
3068
+ // where prism forced primary on left+top while the
3069
+ // consumer's sx painted right+bottom in OPT_COLOR.
3070
+ borderColor: "currentColor",
3071
+ color: paletteVar(theme, "primary.main"),
2667
3072
  "&:hover": {
2668
3073
  backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.16)`
2669
3074
  }
2670
3075
  },
2671
3076
  [`&.${toggleButtonClasses.disabled}`]: {
2672
- borderColor: theme.vars?.palette.action.disabledBackground || theme.palette.action.disabledBackground
3077
+ borderColor: paletteVar(theme, "action.disabledBackground")
2673
3078
  }
2674
3079
  }),
2675
3080
  sizeSmall: {
@@ -2685,21 +3090,71 @@ function componentOverrides(config) {
2685
3090
  }
2686
3091
  }
2687
3092
  },
3093
+ // ToggleButtonGroup is a single connected segmented control,
3094
+ // not a row of independent buttons. The canonical MUI v9
3095
+ // implementation tags non-edge children with the
3096
+ // `firstButton / middleButton / lastButton` classes (replacing
3097
+ // the deprecated `:not(:first-of-type)` sibling pattern from
3098
+ // MUI v5) and uses an overlap-and-collapse trick:
3099
+ //
3100
+ // horizontal: margin-left: -1; border-left: 1px solid transparent
3101
+ // border-top/bottom-left-radius: 0
3102
+ // vertical: margin-top: -1; border-top: 1px solid transparent
3103
+ // border-top-left/right-radius: 0
3104
+ //
3105
+ // So the visible seam between segments is the *previous*
3106
+ // button's right (or bottom) border, painted through a
3107
+ // transparent slot on the next button.
3108
+ //
3109
+ // The bug the user hit: the selected button's left edge stayed
3110
+ // transparent, so the indigo outline looked broken on its
3111
+ // joining side. The fix is a single rule — lift the selected
3112
+ // segment above its neighbours with z-index, and restate the
3113
+ // seam-edge as primary so it overpaints the divider that the
3114
+ // previous sibling owns. We deliberately do NOT force `gap` or
3115
+ // a per-button left border (the historical prism override),
3116
+ // because that fragments the control into independent boxes
3117
+ // and breaks the segmented-control affordance.
3118
+ //
3119
+ // No `:not(:first-of-type)` here — MUI v9 fully removed that
3120
+ // pattern in favour of position classes, and using both
3121
+ // mechanisms creates cascade ambiguity that bit us before.
2688
3122
  MuiToggleButtonGroup: {
2689
3123
  styleOverrides: {
2690
- root: {
2691
- gap: 4,
2692
- "& .MuiToggleButton-root": {
2693
- border: "1px solid",
2694
- borderRadius: `${borderRadius}px !important`
2695
- }
2696
- },
2697
- grouped: {
2698
- "&:not(:first-of-type)": {
2699
- marginLeft: 0,
2700
- borderLeft: "1px solid"
3124
+ grouped: ({ theme }) => ({
3125
+ // Restate the seam-edge with the divider colour on
3126
+ // unselected middle/last buttons. MUI's default is
3127
+ // `1px solid transparent` for the legacy "overlap with
3128
+ // negative margin" pattern (inline-flex layout). That
3129
+ // pattern hides the transparent seam under the previous
3130
+ // sibling's right border. But consumers regularly pass
3131
+ // `sx={{ display: 'grid' }}` (e.g. /admin/messaging
3132
+ // settings) — and grid ignores the negative margin, so
3133
+ // the seam-edge becomes a visibly missing border.
3134
+ //
3135
+ // Painting the seam as `divider` here is a no-op in the
3136
+ // canonical inline-flex layout (it sits exactly under
3137
+ // prev's right border) and restores the missing edge in
3138
+ // grid/custom layouts. One rule, both cases.
3139
+ borderLeftColor: paletteVar(theme, "divider"),
3140
+ borderTopColor: paletteVar(theme, "divider"),
3141
+ [`&.${toggleButtonClasses.selected}`]: {
3142
+ // Lift above neighbours so the selected outline paints
3143
+ // OVER the prev sibling's seam border. Without z-index
3144
+ // the divider connecting two segments swallows the
3145
+ // selected segment's leading edge in inline-flex.
3146
+ zIndex: 1,
3147
+ // Seam edges use `currentColor` rather than a hard-
3148
+ // coded primary so per-button colour overrides (MUI
3149
+ // `color` prop, inline `sx={{ color }}`) propagate
3150
+ // uniformly to all four sides. The previous primary-
3151
+ // forced longhands fought consumer styling on the
3152
+ // left/top while letting it through on right/bottom,
3153
+ // producing the visible "half-and-half" border bug.
3154
+ borderLeftColor: "currentColor",
3155
+ borderTopColor: "currentColor"
2701
3156
  }
2702
- }
3157
+ })
2703
3158
  }
2704
3159
  },
2705
3160
  // =========================================================================
@@ -2729,7 +3184,7 @@ function componentOverrides(config) {
2729
3184
  padding: 3
2730
3185
  }),
2731
3186
  outlined: ({ theme }) => ({
2732
- borderColor: theme.vars?.palette.divider || theme.palette.divider,
3187
+ borderColor: paletteVar(theme, "divider"),
2733
3188
  backgroundColor: "transparent"
2734
3189
  })
2735
3190
  }
@@ -2737,7 +3192,7 @@ function componentOverrides(config) {
2737
3192
  MuiTimelineConnector: {
2738
3193
  styleOverrides: {
2739
3194
  root: ({ theme }) => ({
2740
- backgroundColor: theme.vars?.palette.divider || theme.palette.divider,
3195
+ backgroundColor: paletteVar(theme, "divider"),
2741
3196
  width: 2
2742
3197
  })
2743
3198
  }
@@ -2751,117 +3206,13 @@ function componentOverrides(config) {
2751
3206
  }
2752
3207
  },
2753
3208
  // =========================================================================
2754
- // DATA GRID (MUI X)
3209
+ // DATA GRID (MUI X) — modularized in ./DataGrid.ts
2755
3210
  // =========================================================================
2756
- MuiDataGrid: {
2757
- styleOverrides: {
2758
- root: ({ theme }) => ({
2759
- border: "none",
2760
- borderRadius,
2761
- "--DataGrid-containerBackground": theme.vars?.palette.background.neutral || theme.palette.grey[50],
2762
- "--DataGrid-pinnedBackground": theme.vars?.palette.background.paper || theme.palette.background.paper,
2763
- "& .MuiDataGrid-columnHeaders": {
2764
- borderBottom: `1px solid ${theme.vars?.palette.divider || theme.palette.divider}`
2765
- },
2766
- "& .MuiDataGrid-columnHeader": {
2767
- fontWeight: 600,
2768
- fontSize: theme.typography.pxToRem(14),
2769
- color: theme.vars?.palette.text.secondary || theme.palette.text.secondary,
2770
- "&:focus, &:focus-within": {
2771
- outline: "none"
2772
- }
2773
- },
2774
- "& .MuiDataGrid-cell": {
2775
- borderBottom: `1px solid rgba(${getGreyChannel(theme)} / 0.12)`,
2776
- "&:focus, &:focus-within": {
2777
- outline: "none"
2778
- }
2779
- },
2780
- "& .MuiDataGrid-row": {
2781
- "&:hover": {
2782
- backgroundColor: theme.vars?.palette.action.hover || theme.palette.action.hover
2783
- },
2784
- "&.Mui-selected": {
2785
- backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.08)`,
2786
- "&:hover": {
2787
- backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.12)`
2788
- }
2789
- }
2790
- },
2791
- "& .MuiDataGrid-footerContainer": {
2792
- borderTop: `1px solid ${theme.vars?.palette.divider || theme.palette.divider}`
2793
- },
2794
- "& .MuiDataGrid-selectedRowCount": {
2795
- whiteSpace: "nowrap"
2796
- },
2797
- "& .MuiDataGrid-toolbarContainer": {
2798
- padding: theme.spacing(1.5, 1.5, 0.5),
2799
- gap: theme.spacing(1)
2800
- },
2801
- "& .MuiDataGrid-columnSeparator": {
2802
- color: theme.vars?.palette.divider || theme.palette.divider
2803
- }
2804
- })
2805
- }
2806
- },
3211
+ MuiDataGrid: createDataGridOverrides(config),
2807
3212
  // =========================================================================
2808
- // DATE/TIME PICKERS (MUI X)
3213
+ // DATE/TIME PICKERS (MUI X) — modularized in ./DatePicker.ts
2809
3214
  // =========================================================================
2810
- MuiDatePicker: {
2811
- defaultProps: {
2812
- slotProps: {
2813
- openPickerButton: {
2814
- size: density === "compact" ? "small" : "medium"
2815
- }
2816
- }
2817
- }
2818
- },
2819
- MuiPickersLayout: {
2820
- styleOverrides: {
2821
- root: ({ theme }) => ({
2822
- "& .MuiPickersLayout-actionBar": {
2823
- padding: theme.spacing(1, 2)
2824
- }
2825
- })
2826
- }
2827
- },
2828
- MuiPickersDay: {
2829
- styleOverrides: {
2830
- root: ({ theme }) => ({
2831
- borderRadius: borderRadius - 2,
2832
- fontWeight: 400,
2833
- "&.Mui-selected": {
2834
- fontWeight: 600
2835
- }
2836
- }),
2837
- today: ({ theme }) => ({
2838
- borderColor: theme.vars?.palette.primary.main || theme.palette.primary.main,
2839
- "&:not(.Mui-selected)": {
2840
- backgroundColor: "transparent"
2841
- }
2842
- })
2843
- }
2844
- },
2845
- MuiPickersYear: {
2846
- styleOverrides: {
2847
- yearButton: ({ theme }) => ({
2848
- borderRadius,
2849
- "&.Mui-selected": {
2850
- fontWeight: 600
2851
- }
2852
- })
2853
- }
2854
- },
2855
- MuiPickersMonth: {
2856
- styleOverrides: {
2857
- monthButton: ({ theme }) => ({
2858
- borderRadius,
2859
- "&.Mui-selected": {
2860
- fontWeight: 600
2861
- }
2862
- })
2863
- }
2864
- },
3215
+ ...createDatePickerOverrides(config),
2865
3216
  // =========================================================================
2866
3217
  // TREE VIEW (MUI X)
2867
3218
  // =========================================================================
@@ -2883,7 +3234,7 @@ function componentOverrides(config) {
2883
3234
  }
2884
3235
  },
2885
3236
  "&:hover": {
2886
- backgroundColor: theme.vars?.palette.action.hover || theme.palette.action.hover
3237
+ backgroundColor: paletteVar(theme, "action.hover")
2887
3238
  }
2888
3239
  }),
2889
3240
  label: ({ theme }) => ({
@@ -3270,7 +3621,7 @@ var lightPalette = {
3270
3621
  main: "#42A5F5",
3271
3622
  dark: "#1E88E5",
3272
3623
  darker: "#1565C0",
3273
- contrastText: "#FFFFFF"
3624
+ contrastText: "#000000"
3274
3625
  },
3275
3626
  info: {
3276
3627
  lighter: "#E0F7FA",
@@ -3278,7 +3629,7 @@ var lightPalette = {
3278
3629
  main: "#26C6DA",
3279
3630
  dark: "#00ACC1",
3280
3631
  darker: "#00838F",
3281
- contrastText: "#FFFFFF"
3632
+ contrastText: "#000000"
3282
3633
  },
3283
3634
  success: {
3284
3635
  lighter: "#E8F5E9",
@@ -3286,7 +3637,7 @@ var lightPalette = {
3286
3637
  main: "#66BB6A",
3287
3638
  dark: "#43A047",
3288
3639
  darker: "#2E7D32",
3289
- contrastText: "#FFFFFF"
3640
+ contrastText: "#000000"
3290
3641
  },
3291
3642
  warning: {
3292
3643
  lighter: "#FFF8E1",
@@ -3339,7 +3690,7 @@ var darkPalette = {
3339
3690
  main: "#42A5F5",
3340
3691
  dark: "#1E88E5",
3341
3692
  darker: "#1565C0",
3342
- contrastText: "#FFFFFF"
3693
+ contrastText: "#000000"
3343
3694
  },
3344
3695
  secondary: {
3345
3696
  lighter: "#E3F2FD",
@@ -3347,7 +3698,7 @@ var darkPalette = {
3347
3698
  main: "#64B5F6",
3348
3699
  dark: "#42A5F5",
3349
3700
  darker: "#1E88E5",
3350
- contrastText: "#FFFFFF"
3701
+ contrastText: "#000000"
3351
3702
  },
3352
3703
  info: {
3353
3704
  lighter: "#E0F7FA",
@@ -3355,7 +3706,7 @@ var darkPalette = {
3355
3706
  main: "#4DD0E1",
3356
3707
  dark: "#26C6DA",
3357
3708
  darker: "#00ACC1",
3358
- contrastText: "#FFFFFF"
3709
+ contrastText: "#000000"
3359
3710
  },
3360
3711
  success: {
3361
3712
  lighter: "#E8F5E9",
@@ -3363,7 +3714,7 @@ var darkPalette = {
3363
3714
  main: "#81C784",
3364
3715
  dark: "#66BB6A",
3365
3716
  darker: "#4CAF50",
3366
- contrastText: "#FFFFFF"
3717
+ contrastText: "#000000"
3367
3718
  },
3368
3719
  warning: {
3369
3720
  lighter: "#FFF8E1",
@@ -4028,14 +4379,14 @@ function applyPrimaryOverride(basePalette, primaryColor, mode) {
4028
4379
  main: primaryColor,
4029
4380
  dark: colorGroup.palette[300],
4030
4381
  darker: colorGroup.palette[100],
4031
- contrastText: colorGroup.palette[950]
4382
+ contrastText: getContrastText(primaryColor)
4032
4383
  }) : generatePaletteColorWithChannels({
4033
4384
  lighter: colorGroup.palette[50],
4034
4385
  light: colorGroup.palette[400],
4035
4386
  main: primaryColor,
4036
4387
  dark: colorGroup.palette[600],
4037
4388
  darker: colorGroup.palette[900],
4038
- contrastText: colorGroup.palette[50]
4389
+ contrastText: getContrastText(primaryColor)
4039
4390
  });
4040
4391
  return { ...basePalette, primary: newPrimary2 };
4041
4392
  }
@@ -4046,14 +4397,14 @@ function applyPrimaryOverride(basePalette, primaryColor, mode) {
4046
4397
  main: generatedScale[400],
4047
4398
  dark: generatedScale[300],
4048
4399
  darker: generatedScale[100],
4049
- contrastText: generatedScale[950]
4400
+ contrastText: getContrastText(generatedScale[400])
4050
4401
  }) : generatePaletteColorWithChannels({
4051
4402
  lighter: generatedScale[50],
4052
4403
  light: generatedScale[400],
4053
4404
  main: generatedScale[500],
4054
4405
  dark: generatedScale[600],
4055
4406
  darker: generatedScale[900],
4056
- contrastText: generatedScale[50]
4407
+ contrastText: getContrastText(generatedScale[500])
4057
4408
  });
4058
4409
  return { ...basePalette, primary: newPrimary };
4059
4410
  }
@@ -4223,5 +4574,5 @@ function getPresetDisplayName(preset) {
4223
4574
  }
4224
4575
 
4225
4576
  export { COLOR_GROUPS, PRESET_DISPLAY_NAMES, PRESET_INHERENT_MODE, PRESET_NAMES, arcticPreset, baseColors, basic, blue, buildAction, buildBackground, buildChartColors, buildPalette, buildPaletteColor, buildText, buildVibrant, componentOverrides, createButtonBaseOverrides, createButtonGroupOverrides, createButtonOverrides, createPaletteColorFromScale, createPrismTheme, createShadows, createTypography, cssVarRgba, customScrollbarMixin, darkShadow, darken, defaultDarkPalette, defaultLightPalette, draculaPreset, emberPreset, focusRingMixin, generateColorScale, generateColorScaleWithChannels, generatePaletteColorWithChannels, getContrastRatio, getContrastText, getLuminance, getPresetDisplayName, glassMixin, green, grey, hexToHsl, hexToRgb, hexToRgbChannel, hideScrollbarMixin, hslToHex, invertColorScale, isLightColor, lightBlue, lighten, luxuryColors, luxuryError, luxuryInfo, luxuryNeutral, luxuryPrimary, luxurySecondary, luxurySuccess, luxuryWarning, midnightPreset, minimalPreset, mix, mixins, multiLineEllipsisMixin, orange, purple, red, retroPreset, rgbToHex, rgba, shadows, textEllipsisMixin, typography };
4226
- //# sourceMappingURL=chunk-DXXZ3ITR.js.map
4227
- //# sourceMappingURL=chunk-DXXZ3ITR.js.map
4577
+ //# sourceMappingURL=chunk-ZTATTUH7.js.map
4578
+ //# sourceMappingURL=chunk-ZTATTUH7.js.map