@omnitron-dev/prism 0.3.1 → 0.3.2

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 (305) hide show
  1. package/README.md +68 -2
  2. package/THIRD-PARTY-NOTICES.txt +26 -0
  3. package/dist/accessibility/index.js +2 -0
  4. package/dist/accessibility/index.js.map +1 -1
  5. package/dist/auth/index.d.ts +4 -0
  6. package/dist/auth/index.d.ts.map +1 -0
  7. package/dist/auth/index.js +4 -0
  8. package/dist/auth/index.js.map +1 -0
  9. package/dist/blocks/auth-block/guards.d.ts +3 -2
  10. package/dist/blocks/auth-block/guards.d.ts.map +1 -1
  11. package/dist/blocks/dashboard-block/dashboard-block.d.ts.map +1 -1
  12. package/dist/blocks/dashboard-block/types.d.ts +4 -2
  13. package/dist/blocks/dashboard-block/types.d.ts.map +1 -1
  14. package/dist/blocks/dashboard-block/use-dashboard-block.d.ts +2 -2
  15. package/dist/blocks/dashboard-block/use-dashboard-block.d.ts.map +1 -1
  16. package/dist/blocks/data-grid-block/data-grid-block.d.ts.map +1 -1
  17. package/dist/blocks/data-grid-block/types.d.ts +3 -0
  18. package/dist/blocks/data-grid-block/types.d.ts.map +1 -1
  19. package/dist/blocks/index.js +80 -255
  20. package/dist/blocks/index.js.map +1 -1
  21. package/dist/chunk-2AB7VGPW.js +447 -0
  22. package/dist/chunk-2AB7VGPW.js.map +1 -0
  23. package/dist/{chunk-LOY2NPCO.js → chunk-2E67PQ4T.js} +3 -3
  24. package/dist/{chunk-LOY2NPCO.js.map → chunk-2E67PQ4T.js.map} +1 -1
  25. package/dist/chunk-2KG2NI73.js +84 -0
  26. package/dist/chunk-2KG2NI73.js.map +1 -0
  27. package/dist/chunk-2UYRW6X3.js +44 -0
  28. package/dist/chunk-2UYRW6X3.js.map +1 -0
  29. package/dist/chunk-36C5H56C.js +208 -0
  30. package/dist/chunk-36C5H56C.js.map +1 -0
  31. package/dist/chunk-36FOXX25.js +73 -0
  32. package/dist/chunk-36FOXX25.js.map +1 -0
  33. package/dist/{chunk-52PQL67Q.js → chunk-3VSM7NZG.js} +18 -15
  34. package/dist/chunk-3VSM7NZG.js.map +1 -0
  35. package/dist/{chunk-GUGTDURV.js → chunk-4B2LTPK2.js} +2 -2
  36. package/dist/{chunk-GUGTDURV.js.map → chunk-4B2LTPK2.js.map} +1 -1
  37. package/dist/chunk-4HUGZJKU.js +108 -0
  38. package/dist/chunk-4HUGZJKU.js.map +1 -0
  39. package/dist/{chunk-PXXPLHIY.js → chunk-4Q5L7LDG.js} +3 -3
  40. package/dist/{chunk-PXXPLHIY.js.map → chunk-4Q5L7LDG.js.map} +1 -1
  41. package/dist/{chunk-BRDWQVRT.js → chunk-4R7EZ7GQ.js} +3 -2
  42. package/dist/chunk-4R7EZ7GQ.js.map +1 -0
  43. package/dist/chunk-6IANOSMD.js +185 -0
  44. package/dist/chunk-6IANOSMD.js.map +1 -0
  45. package/dist/{chunk-YHE7HXSG.js → chunk-7ATBURW2.js} +3 -3
  46. package/dist/{chunk-YHE7HXSG.js.map → chunk-7ATBURW2.js.map} +1 -1
  47. package/dist/{chunk-7G5D5PTC.js → chunk-AATAOOSF.js} +4 -4
  48. package/dist/{chunk-7G5D5PTC.js.map → chunk-AATAOOSF.js.map} +1 -1
  49. package/dist/chunk-AKLRKCYH.js +128 -0
  50. package/dist/chunk-AKLRKCYH.js.map +1 -0
  51. package/dist/chunk-CT46KJOR.js +133 -0
  52. package/dist/chunk-CT46KJOR.js.map +1 -0
  53. package/dist/{chunk-LSPFFEJT.js → chunk-D4GFAJAZ.js} +298 -3900
  54. package/dist/chunk-D4GFAJAZ.js.map +1 -0
  55. package/dist/{chunk-BJE2AKD4.js → chunk-D5J3KW6Q.js} +3 -2
  56. package/dist/chunk-D5J3KW6Q.js.map +1 -0
  57. package/dist/chunk-DEPJRTVT.js +3 -0
  58. package/dist/{chunk-FU52GL2E.js.map → chunk-DEPJRTVT.js.map} +1 -1
  59. package/dist/{chunk-472SOF76.js → chunk-DHTYHUYI.js} +85 -107
  60. package/dist/chunk-DHTYHUYI.js.map +1 -0
  61. package/dist/{chunk-FF5RF32O.js → chunk-E7WM2RXA.js} +3 -2
  62. package/dist/chunk-E7WM2RXA.js.map +1 -0
  63. package/dist/chunk-F6RZ7LW6.js +1271 -0
  64. package/dist/chunk-F6RZ7LW6.js.map +1 -0
  65. package/dist/chunk-FOGY3HA4.js +217 -0
  66. package/dist/chunk-FOGY3HA4.js.map +1 -0
  67. package/dist/chunk-G2GANYMW.js +139 -0
  68. package/dist/chunk-G2GANYMW.js.map +1 -0
  69. package/dist/chunk-I6DILPFE.js +293 -0
  70. package/dist/chunk-I6DILPFE.js.map +1 -0
  71. package/dist/{chunk-HOXFSQUV.js → chunk-IRYU3NTG.js} +2 -2
  72. package/dist/{chunk-HOXFSQUV.js.map → chunk-IRYU3NTG.js.map} +1 -1
  73. package/dist/chunk-JTIUGPW5.js +284 -0
  74. package/dist/chunk-JTIUGPW5.js.map +1 -0
  75. package/dist/{chunk-GUFHFEPZ.js → chunk-JZBSPDED.js} +2 -2
  76. package/dist/{chunk-GUFHFEPZ.js.map → chunk-JZBSPDED.js.map} +1 -1
  77. package/dist/{chunk-PFT2BNYO.js → chunk-KPY7TA4D.js} +5 -5
  78. package/dist/{chunk-PFT2BNYO.js.map → chunk-KPY7TA4D.js.map} +1 -1
  79. package/dist/{chunk-GMIE6III.js → chunk-LFWKGNCX.js} +50 -623
  80. package/dist/chunk-LFWKGNCX.js.map +1 -0
  81. package/dist/chunk-LH4ZZZYB.js +37 -0
  82. package/dist/chunk-LH4ZZZYB.js.map +1 -0
  83. package/dist/chunk-NFJ7CPG3.js +13 -0
  84. package/dist/chunk-NFJ7CPG3.js.map +1 -0
  85. package/dist/chunk-NFPOIHD4.js +3 -0
  86. package/dist/{chunk-JSQTYDPG.js.map → chunk-NFPOIHD4.js.map} +1 -1
  87. package/dist/{chunk-XIXSSI3B.js → chunk-NJM5AVBM.js} +3 -2
  88. package/dist/chunk-NJM5AVBM.js.map +1 -0
  89. package/dist/{chunk-4Z5DE5GK.js → chunk-NSNM53WI.js} +133 -115
  90. package/dist/chunk-NSNM53WI.js.map +1 -0
  91. package/dist/chunk-NTREGTG7.js +31 -0
  92. package/dist/chunk-NTREGTG7.js.map +1 -0
  93. package/dist/{chunk-ADG4HZEP.js → chunk-OKJA6SJM.js} +4 -4
  94. package/dist/chunk-OKJA6SJM.js.map +1 -0
  95. package/dist/{chunk-SU3LVQ7N.js → chunk-Q6JDNFSG.js} +11 -226
  96. package/dist/chunk-Q6JDNFSG.js.map +1 -0
  97. package/dist/chunk-RPOGINR5.js +115 -0
  98. package/dist/chunk-RPOGINR5.js.map +1 -0
  99. package/dist/{chunk-KQ67XB6T.js → chunk-RSWVYIXK.js} +151 -114
  100. package/dist/chunk-RSWVYIXK.js.map +1 -0
  101. package/dist/chunk-SSEHL5VP.js +110 -0
  102. package/dist/chunk-SSEHL5VP.js.map +1 -0
  103. package/dist/chunk-TEIGUOWN.js +523 -0
  104. package/dist/chunk-TEIGUOWN.js.map +1 -0
  105. package/dist/{chunk-AYYFMTMI.js → chunk-TJ7DHXUX.js} +2 -2
  106. package/dist/{chunk-AYYFMTMI.js.map → chunk-TJ7DHXUX.js.map} +1 -1
  107. package/dist/{chunk-75FQ5IW3.js → chunk-TZHWYT34.js} +3 -3
  108. package/dist/{chunk-75FQ5IW3.js.map → chunk-TZHWYT34.js.map} +1 -1
  109. package/dist/chunk-TZWHELY4.js +45 -0
  110. package/dist/chunk-TZWHELY4.js.map +1 -0
  111. package/dist/{chunk-OKTLA23Q.js → chunk-UEINJFLS.js} +6 -6
  112. package/dist/chunk-UEINJFLS.js.map +1 -0
  113. package/dist/chunk-URFQX3I6.js +129 -0
  114. package/dist/chunk-URFQX3I6.js.map +1 -0
  115. package/dist/chunk-VG6FOMOH.js +187 -0
  116. package/dist/chunk-VG6FOMOH.js.map +1 -0
  117. package/dist/{chunk-PGHEP4JD.js → chunk-VQVVHMPG.js} +3 -3
  118. package/dist/{chunk-PGHEP4JD.js.map → chunk-VQVVHMPG.js.map} +1 -1
  119. package/dist/{chunk-DRFNMZLG.js → chunk-VUKOT432.js} +3 -2
  120. package/dist/chunk-VUKOT432.js.map +1 -0
  121. package/dist/chunk-WD4N72DL.js +315 -0
  122. package/dist/chunk-WD4N72DL.js.map +1 -0
  123. package/dist/chunk-XBYMG4QK.js +119 -0
  124. package/dist/chunk-XBYMG4QK.js.map +1 -0
  125. package/dist/chunk-YHM6GIHV.js +3 -0
  126. package/dist/chunk-YHM6GIHV.js.map +1 -0
  127. package/dist/{chunk-SNZK5X6F.js → chunk-Z2AN43YU.js} +4 -2
  128. package/dist/chunk-Z2AN43YU.js.map +1 -0
  129. package/dist/chunk-ZNWHMQRM.js +171 -0
  130. package/dist/chunk-ZNWHMQRM.js.map +1 -0
  131. package/dist/{chunk-YSIG2XYH.js → chunk-ZRJYQN6Y.js} +2 -2
  132. package/dist/{chunk-YSIG2XYH.js.map → chunk-ZRJYQN6Y.js.map} +1 -1
  133. package/dist/{chunk-AD4W7HYC.js → chunk-ZYI3MHLE.js} +3 -2
  134. package/dist/chunk-ZYI3MHLE.js.map +1 -0
  135. package/dist/cli/index.js +59 -421
  136. package/dist/cli/index.js.map +1 -1
  137. package/dist/components/admin-filters/admin-data-table.d.ts +7 -1
  138. package/dist/components/admin-filters/admin-data-table.d.ts.map +1 -1
  139. package/dist/components/admin-filters/filter-toolbar.d.ts.map +1 -1
  140. package/dist/components/admin-filters/index.js +8 -0
  141. package/dist/components/admin-filters/index.js.map +1 -0
  142. package/dist/components/alert/alert.d.ts.map +1 -1
  143. package/dist/components/alert/index.js +5 -0
  144. package/dist/components/alert/index.js.map +1 -0
  145. package/dist/components/animate/index.js +5 -0
  146. package/dist/components/animate/index.js.map +1 -0
  147. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  148. package/dist/components/breadcrumbs/index.js +4 -0
  149. package/dist/components/breadcrumbs/index.js.map +1 -0
  150. package/dist/components/card/index.js +4 -0
  151. package/dist/components/card/index.js.map +1 -0
  152. package/dist/components/chart/chart.d.ts.map +1 -1
  153. package/dist/components/chart/index.css +52 -0
  154. package/dist/components/chart/index.css.map +1 -0
  155. package/dist/components/chart/index.js +5 -0
  156. package/dist/components/chart/index.js.map +1 -0
  157. package/dist/components/chart/types.d.ts +3 -1
  158. package/dist/components/chart/types.d.ts.map +1 -1
  159. package/dist/components/chart/use-chart.d.ts.map +1 -1
  160. package/dist/components/command-palette/command-palette.d.ts +3 -1
  161. package/dist/components/command-palette/command-palette.d.ts.map +1 -1
  162. package/dist/components/command-palette/index.js +4 -0
  163. package/dist/components/command-palette/index.js.map +1 -0
  164. package/dist/components/confirm-dialog/index.js +4 -0
  165. package/dist/components/confirm-dialog/index.js.map +1 -0
  166. package/dist/components/date-input/date-input.d.ts +1 -0
  167. package/dist/components/date-input/date-input.d.ts.map +1 -1
  168. package/dist/components/date-input/index.d.ts +0 -1
  169. package/dist/components/date-input/index.d.ts.map +1 -1
  170. package/dist/components/doc-layout/index.js +5 -4
  171. package/dist/components/doc-layout/index.js.map +1 -1
  172. package/dist/components/editor/index.js +4 -3
  173. package/dist/components/editor/index.js.map +1 -1
  174. package/dist/components/emoji-picker/index.js +2 -1
  175. package/dist/components/emoji-picker/index.js.map +1 -1
  176. package/dist/components/empty-content/empty-content.d.ts.map +1 -1
  177. package/dist/components/empty-content/index.js +4 -0
  178. package/dist/components/empty-content/index.js.map +1 -0
  179. package/dist/components/error-boundary/index.js +6 -0
  180. package/dist/components/error-boundary/index.js.map +1 -0
  181. package/dist/components/index.css +13 -10
  182. package/dist/components/index.css.map +1 -1
  183. package/dist/components/index.d.ts +1 -0
  184. package/dist/components/index.d.ts.map +1 -1
  185. package/dist/components/index.js +47 -21
  186. package/dist/components/index.js.map +1 -1
  187. package/dist/components/knowledge-graph/edge-labels.d.ts.map +1 -1
  188. package/dist/components/knowledge-graph/index.js +18 -16
  189. package/dist/components/knowledge-graph/index.js.map +1 -1
  190. package/dist/components/label/index.js +5 -0
  191. package/dist/components/label/index.js.map +1 -0
  192. package/dist/components/label/label.d.ts.map +1 -1
  193. package/dist/components/loading-screen/index.js +4 -0
  194. package/dist/components/loading-screen/index.js.map +1 -0
  195. package/dist/components/map/MapPointPicker.d.ts.map +1 -1
  196. package/dist/components/map/index.js +2 -1
  197. package/dist/components/map/index.js.map +1 -1
  198. package/dist/components/navigation-progress/index.js +4 -0
  199. package/dist/components/navigation-progress/index.js.map +1 -0
  200. package/dist/components/page-content/index.js +4 -0
  201. package/dist/components/page-content/index.js.map +1 -0
  202. package/dist/components/popover/index.js +4 -0
  203. package/dist/components/popover/index.js.map +1 -0
  204. package/dist/components/research/diagram.d.ts.map +1 -1
  205. package/dist/components/research/index.js +6 -4
  206. package/dist/components/research/index.js.map +1 -1
  207. package/dist/components/research-editor/extensions.d.ts +1 -1
  208. package/dist/components/research-editor/index.js +11 -10
  209. package/dist/components/research-editor/index.js.map +1 -1
  210. package/dist/components/research-editor/math-navigation.d.ts +2 -2
  211. package/dist/components/research-editor/math-navigation.d.ts.map +1 -1
  212. package/dist/components/scroll-to-top/index.js +4 -0
  213. package/dist/components/scroll-to-top/index.js.map +1 -0
  214. package/dist/components/search-input/index.js +7 -0
  215. package/dist/components/search-input/index.js.map +1 -0
  216. package/dist/components/search-input/search-input.d.ts +3 -1
  217. package/dist/components/search-input/search-input.d.ts.map +1 -1
  218. package/dist/components/skeleton/index.js +4 -0
  219. package/dist/components/skeleton/index.js.map +1 -0
  220. package/dist/components/snackbar/index.js +6 -0
  221. package/dist/components/snackbar/index.js.map +1 -0
  222. package/dist/components/stepper/index.js +4 -0
  223. package/dist/components/stepper/index.js.map +1 -0
  224. package/dist/components/table/index.d.ts +1 -0
  225. package/dist/components/table/index.d.ts.map +1 -1
  226. package/dist/components/table/index.js +5 -0
  227. package/dist/components/table/index.js.map +1 -0
  228. package/dist/components/table/table-viewport.d.ts +13 -0
  229. package/dist/components/table/table-viewport.d.ts.map +1 -0
  230. package/dist/components/table/table.d.ts +3 -1
  231. package/dist/components/table/table.d.ts.map +1 -1
  232. package/dist/components/tabs/index.js +6 -0
  233. package/dist/components/tabs/index.js.map +1 -0
  234. package/dist/components/tabs/tabs.d.ts +12 -1
  235. package/dist/components/tabs/tabs.d.ts.map +1 -1
  236. package/dist/core/index.js +12 -10
  237. package/dist/core/index.js.map +1 -1
  238. package/dist/forms/index.js +2 -0
  239. package/dist/forms/index.js.map +1 -1
  240. package/dist/hooks/index.js +14 -12
  241. package/dist/hooks/index.js.map +1 -1
  242. package/dist/hooks/use-config-from-query.d.ts +2 -0
  243. package/dist/hooks/use-config-from-query.d.ts.map +1 -1
  244. package/dist/hooks/use-image-dimensions.d.ts.map +1 -1
  245. package/dist/hooks/use-keyboard-shortcut.d.ts.map +1 -1
  246. package/dist/hooks/use-scroll-position.d.ts.map +1 -1
  247. package/dist/hooks/use-window-size.d.ts.map +1 -1
  248. package/dist/icons/context.d.ts.map +1 -1
  249. package/dist/icons/index.js +3 -2
  250. package/dist/icons/index.js.map +1 -1
  251. package/dist/index.css +13 -10
  252. package/dist/index.css.map +1 -1
  253. package/dist/index.js +57 -31
  254. package/dist/index.js.map +1 -1
  255. package/dist/internal/research-parser.js +3 -0
  256. package/dist/internal/research-parser.js.map +1 -0
  257. package/dist/layouts/core/header-section.d.ts +1 -0
  258. package/dist/layouts/core/header-section.d.ts.map +1 -1
  259. package/dist/layouts/dashboard/layout.d.ts +3 -1
  260. package/dist/layouts/dashboard/layout.d.ts.map +1 -1
  261. package/dist/layouts/dashboard/sidenav.d.ts.map +1 -1
  262. package/dist/layouts/index.js +9 -8
  263. package/dist/layouts/index.js.map +1 -1
  264. package/dist/netron/index.js +2 -1
  265. package/dist/netron/index.js.map +1 -1
  266. package/dist/registry/index.js +1 -1
  267. package/dist/state/create-store.d.ts.map +1 -1
  268. package/dist/state/index.js +3 -2
  269. package/dist/state/index.js.map +1 -1
  270. package/dist/state/settings-version.d.ts.map +1 -1
  271. package/dist/theme/components/Chip.d.ts.map +1 -1
  272. package/dist/theme/components/Dialog.d.ts.map +1 -1
  273. package/dist/theme/components/TextField.d.ts.map +1 -1
  274. package/dist/theme/components/index.d.ts.map +1 -1
  275. package/dist/theme/components/theme-utils.d.ts +2 -2
  276. package/dist/theme/components/theme-utils.d.ts.map +1 -1
  277. package/dist/theme/index.js +8 -6
  278. package/dist/theme/index.js.map +1 -1
  279. package/dist/theme/palette/overrides.d.ts +1 -0
  280. package/dist/theme/palette/overrides.d.ts.map +1 -1
  281. package/dist/theme/semantic-surface.d.ts +8 -0
  282. package/dist/theme/semantic-surface.d.ts.map +1 -0
  283. package/dist/types/index.js +2 -2
  284. package/dist/ui/index.js +6 -5
  285. package/dist/ui/index.js.map +1 -1
  286. package/dist/utils/async-lock.d.ts.map +1 -1
  287. package/package.json +143 -37
  288. package/dist/chunk-472SOF76.js.map +0 -1
  289. package/dist/chunk-4Z5DE5GK.js.map +0 -1
  290. package/dist/chunk-52PQL67Q.js.map +0 -1
  291. package/dist/chunk-AD4W7HYC.js.map +0 -1
  292. package/dist/chunk-ADG4HZEP.js.map +0 -1
  293. package/dist/chunk-BJE2AKD4.js.map +0 -1
  294. package/dist/chunk-BRDWQVRT.js.map +0 -1
  295. package/dist/chunk-DRFNMZLG.js.map +0 -1
  296. package/dist/chunk-FF5RF32O.js.map +0 -1
  297. package/dist/chunk-FU52GL2E.js +0 -3
  298. package/dist/chunk-GMIE6III.js.map +0 -1
  299. package/dist/chunk-JSQTYDPG.js +0 -3
  300. package/dist/chunk-KQ67XB6T.js.map +0 -1
  301. package/dist/chunk-LSPFFEJT.js.map +0 -1
  302. package/dist/chunk-OKTLA23Q.js.map +0 -1
  303. package/dist/chunk-SNZK5X6F.js.map +0 -1
  304. package/dist/chunk-SU3LVQ7N.js.map +0 -1
  305. package/dist/chunk-XIXSSI3B.js.map +0 -1
@@ -1,8 +1,11 @@
1
- import { TableIcon } from './chunk-75FQ5IW3.js';
2
- import { generateColorScaleWithChannels, hexToRgbChannel, cssVarRgba, getContrastText, generatePaletteColorWithChannels, scrollbarStyles, varAlpha, generateColorScale, mixins } from './chunk-HOXFSQUV.js';
3
- import { RemoveIcon, AddIcon, SearchIcon, CloseIcon, DownloadIcon, FilterIcon, ArrowDownIcon, ArrowUpIcon, MoreIcon, ChevronRightIcon, ChevronLeftIcon, LastPageIcon, FirstPageIcon, ChevronDownIcon, StarEmptyIcon, StarIcon, ErrorIcon, WarningIcon, InfoIcon, SuccessIcon, RadioCheckedIcon, RadioIcon } from './chunk-PGHEP4JD.js';
4
- import { createPrismIcon } from './chunk-BJE2AKD4.js';
1
+ import { TableIcon } from './chunk-TZHWYT34.js';
2
+ import { semanticSurfaceStyles } from './chunk-TZWHELY4.js';
3
+ import { generateColorScaleWithChannels, hexToRgbChannel, cssVarRgba, getContrastText, generatePaletteColorWithChannels, scrollbarStyles, varAlpha, generateColorScale, mixins } from './chunk-IRYU3NTG.js';
4
+ import { RemoveIcon, AddIcon, SearchIcon, CloseIcon, DownloadIcon, FilterIcon, ArrowDownIcon, ArrowUpIcon, MoreIcon, ChevronRightIcon, ChevronLeftIcon, LastPageIcon, FirstPageIcon, ChevronDownIcon, StarEmptyIcon, StarIcon, ErrorIcon, WarningIcon, InfoIcon, SuccessIcon, RadioCheckedIcon, RadioIcon } from './chunk-VQVVHMPG.js';
5
+ import { createPrismIcon } from './chunk-D5J3KW6Q.js';
5
6
  import { buttonClasses } from '@mui/material/Button';
7
+ import { createTheme, responsiveFontSizes, darken, lighten, getContrastRatio } from '@mui/material/styles';
8
+ import { colorChannel, hslToRgb } from '@mui/system';
6
9
  import { iconButtonClasses } from '@mui/material/IconButton';
7
10
  import { accordionClasses } from '@mui/material/Accordion';
8
11
  import { accordionSummaryClasses } from '@mui/material/AccordionSummary';
@@ -27,8 +30,6 @@ import { jsx } from 'react/jsx-runtime';
27
30
  import { tabClasses } from '@mui/material/Tab';
28
31
  import { autocompleteClasses } from '@mui/material/Autocomplete';
29
32
  import '@mui/x-data-grid/themeAugmentation';
30
- import { createTheme, responsiveFontSizes, darken, lighten, getContrastRatio } from '@mui/material/styles';
31
- import { colorChannel, hslToRgb } from '@mui/system';
32
33
  import { forwardRef } from 'react';
33
34
  import * as locales from '@mui/material/locale';
34
35
 
@@ -322,16 +323,83 @@ var defaultDarkPalette = buildPalette({
322
323
  grey,
323
324
  mode: "dark"
324
325
  });
326
+ var isRecord = (value) => !!value && typeof value === "object" && !Array.isArray(value);
327
+ var owns = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
328
+ var roles = ["primary", "secondary", "success", "info", "warning", "error"];
329
+ var shades = ["light", "dark", "lighter", "darker", "contrastText"];
330
+ var colourKeys = /* @__PURE__ */ new Set(["main", ...shades, "primary", "secondary", "disabled", "default", "paper", "neutral", "divider", "active", "selected", "hover", "focus", "disabledBackground", "background", "onBackground", "black", "white"]);
331
+ function staticChannel(value) {
332
+ if (!/^(#[\da-f]{3,8}$|rgba?\(|hsla?\()/i.test(value)) return void 0;
333
+ if (/^rgba?\(/i.test(value) && value.includes("%")) return void 0;
334
+ try {
335
+ const channel = colorChannel(/^hsl/i.test(value) ? hslToRgb(value) : value);
336
+ const components = channel.split(" ");
337
+ return components.length === 3 && components.every((part) => part !== "" && Number.isFinite(Number(part))) ? channel : void 0;
338
+ } catch {
339
+ return void 0;
340
+ }
341
+ }
342
+ function channelFor(value) {
343
+ return staticChannel(value) ?? `from ${value} r g b`;
344
+ }
345
+ function reconcileChannels(merged, supplied) {
346
+ const result = { ...merged };
347
+ for (const [key, value] of Object.entries(supplied)) {
348
+ if (isRecord(value) && isRecord(result[key])) {
349
+ result[key] = reconcileChannels(result[key], value);
350
+ } else if (typeof value === "string" && !key.endsWith("Channel") && !owns(supplied, `${key}Channel`)) {
351
+ const channel = staticChannel(value);
352
+ if (channel !== void 0 || owns(merged, `${key}Channel`) || colourKeys.has(key)) {
353
+ result[`${key}Channel`] = channel ?? channelFor(value);
354
+ }
355
+ }
356
+ }
357
+ return result;
358
+ }
359
+ function reconcilePaletteOverrides(merged, supplied, { nativeColor = false, cssVarPrefix = "prism" } = {}) {
360
+ if (!supplied) return merged;
361
+ const result = reconcileChannels(merged, supplied);
362
+ for (const name of roles) {
363
+ const input = supplied[name];
364
+ if (!isRecord(input) || typeof input.main !== "string") continue;
365
+ const role = { ...result[name] };
366
+ const numeric = staticChannel(input.main) !== void 0;
367
+ for (const shade of shades) {
368
+ if (!owns(input, shade)) {
369
+ delete role[shade];
370
+ if (!owns(input, `${shade}Channel`)) delete role[`${shade}Channel`];
371
+ }
372
+ }
373
+ if (!nativeColor && !numeric && ["light", "dark", "contrastText"].some((shade) => typeof role[shade] !== "string" || !role[shade])) {
374
+ throw new Error(`Prism: palette.${name}.main cannot be resolved in JavaScript. Enable overrides.cssVariables.nativeColor or supply light, dark and contrastText explicitly.`);
375
+ }
376
+ const dark = result.mode === "dark";
377
+ const mix = (colour, amount) => `color-mix(in oklch, ${input.main}, ${colour} ${amount * 100}%)`;
378
+ role.lighter ??= numeric && !nativeColor ? dark ? darken(input.main, 0.75) : lighten(input.main, 0.9) : dark ? mix("#000", 0.75) : mix("#fff", 0.9);
379
+ role.darker ??= numeric && !nativeColor ? dark ? lighten(input.main, 0.85) : darken(input.main, 0.7) : dark ? mix("#fff", 0.85) : mix("#000", 0.7);
380
+ if (numeric && !nativeColor) {
381
+ role.contrastText ??= getContrastRatio(input.main, "#fff") >= getContrastRatio(input.main, "#000") ? "#fff" : "#000";
382
+ }
383
+ for (const shade of shades) {
384
+ if (owns(input, `${shade}Channel`)) continue;
385
+ if (typeof role[shade] === "string") {
386
+ role[`${shade}Channel`] = channelFor(role[shade]);
387
+ } else if (nativeColor) {
388
+ const prefix = cssVarPrefix ? `${cssVarPrefix}-` : "";
389
+ role[`${shade}Channel`] = `from var(--${prefix}palette-${name}-${shade}) r g b`;
390
+ }
391
+ }
392
+ result[name] = role;
393
+ }
394
+ return result;
395
+ }
325
396
 
326
397
  // src/theme/components/theme-utils.ts
327
398
  function getGreyChannel(theme, shade = "500") {
328
399
  const channelKey = `${shade}Channel`;
329
400
  const vars = theme.vars?.palette.grey;
330
- const fallbacks = {
331
- "500": "145 158 171",
332
- "900": "0 0 0"
333
- };
334
- return vars?.[channelKey] ?? fallbacks[shade];
401
+ const palette = theme.palette.grey;
402
+ return vars?.[channelKey] ?? palette[channelKey] ?? channelFor(palette[shade]);
335
403
  }
336
404
  function paletteVar(theme, path) {
337
405
  const segments = path.split(".");
@@ -349,14 +417,8 @@ function paletteVar(theme, path) {
349
417
  }
350
418
  function getColorChannel(theme, color) {
351
419
  const vars = theme.vars?.palette[color];
352
- const fallbacks = {
353
- primary: "51 133 240",
354
- success: "9 159 105",
355
- error: "208 34 65",
356
- warning: "246 141 42",
357
- info: "13 166 214"
358
- };
359
- return vars?.mainChannel ?? fallbacks[color];
420
+ const palette = theme.palette[color];
421
+ return vars?.mainChannel ?? palette.mainChannel ?? channelFor(palette.main);
360
422
  }
361
423
  function getDensityMultiplier(density) {
362
424
  switch (density) {
@@ -588,10 +650,7 @@ var chipColors = ["primary", "secondary", "info", "success", "warning", "error"]
588
650
  var softVariants2 = [
589
651
  ...chipColors.map((color) => ({
590
652
  props: (props) => props.variant === "soft" && props.color === color,
591
- style: ({ theme }) => ({
592
- backgroundColor: `rgba(var(--prism-${color}-main-channel, 51 133 240) / 0.16)`,
593
- color: theme.vars?.palette[color]?.dark || theme.palette[color].dark
594
- })
653
+ style: ({ theme }) => semanticSurfaceStyles(theme, color)
595
654
  })),
596
655
  // Neutral soft variant
597
656
  {
@@ -873,7 +932,8 @@ var outlinedInputStyles = {
873
932
  // Align fieldset font-size with InputLabel (14px) so the legend
874
933
  // notch width (0.75em) matches the visually-scaled label exactly.
875
934
  fontSize: theme.typography.pxToRem(14),
876
- "& legend > span": { paddingInline: 3 }
935
+ // MUI uses an aria-hidden zero-width spacer when the field has no label.
936
+ "& legend > span:not([aria-hidden])": { paddingInline: 3 }
877
937
  })
878
938
  };
879
939
  var outlinedInputVariants = {
@@ -1388,8 +1448,8 @@ function createDialogOverrides(config) {
1388
1448
  margin: 0,
1389
1449
  width: "100%",
1390
1450
  maxWidth: "none",
1391
- maxHeight: "none",
1392
- height: "100%",
1451
+ maxHeight: "100dvh",
1452
+ height: "100dvh",
1393
1453
  borderRadius: 0
1394
1454
  }
1395
1455
  }
@@ -1398,6 +1458,7 @@ function createDialogOverrides(config) {
1398
1458
  props: (props) => !props.fullScreen,
1399
1459
  style: {
1400
1460
  borderRadius: borderRadius * 2,
1461
+ [theme.breakpoints.down("sm")]: { borderRadius: 0 },
1401
1462
  [theme.breakpoints.up("sm")]: {
1402
1463
  margin: theme.spacing(2)
1403
1464
  }
@@ -1413,14 +1474,18 @@ function createDialogOverrides(config) {
1413
1474
  padding: `${20 * dm}px ${24 * dm}px`,
1414
1475
  fontSize: theme.typography.pxToRem(18),
1415
1476
  fontWeight: 600,
1416
- lineHeight: 28 / 18
1477
+ lineHeight: 28 / 18,
1478
+ overflowWrap: "anywhere"
1417
1479
  })
1418
1480
  }
1419
1481
  },
1420
1482
  MuiDialogContent: {
1421
1483
  styleOverrides: {
1422
1484
  root: {
1423
- padding: `${16 * dm}px ${24 * dm}px`
1485
+ padding: `${16 * dm}px ${24 * dm}px`,
1486
+ minWidth: 0,
1487
+ overflowWrap: "anywhere",
1488
+ ".MuiDialogTitle-root + &": { paddingTop: 16 * dm }
1424
1489
  }
1425
1490
  }
1426
1491
  },
@@ -1428,7 +1493,9 @@ function createDialogOverrides(config) {
1428
1493
  styleOverrides: {
1429
1494
  root: {
1430
1495
  padding: `${16 * dm}px ${24 * dm}px`,
1431
- gap: 8
1496
+ gap: 8,
1497
+ flexWrap: "wrap",
1498
+ "& > :not(style) ~ :not(style)": { marginLeft: 0 }
1432
1499
  }
1433
1500
  }
1434
1501
  }
@@ -1910,7 +1977,20 @@ function componentOverrides(config) {
1910
1977
  styleOverrides: {
1911
1978
  root: ({ theme }) => ({
1912
1979
  padding: `${8 * dm}px ${16 * dm}px ${16 * dm}px`,
1913
- borderTop: `1px solid ${paletteVar(theme, "divider")}`
1980
+ borderTop: `1px solid ${paletteVar(theme, "divider")}`,
1981
+ containerType: "inline-size",
1982
+ containerName: "prism-pagination",
1983
+ "@container prism-pagination (max-width: 420px)": {
1984
+ "& .MuiTablePagination-toolbar": {
1985
+ display: "grid",
1986
+ gridTemplateColumns: "1fr auto",
1987
+ gap: "0 8px",
1988
+ padding: "4px 8px"
1989
+ },
1990
+ "& .MuiTablePagination-spacer": { display: "none" },
1991
+ "& .MuiTablePagination-selectLabel, & .MuiTablePagination-displayedRows": { margin: "4px 0" },
1992
+ "& .MuiTablePagination-input, & .MuiTablePagination-actions": { margin: 0, justifySelf: "end" }
1993
+ }
1914
1994
  })
1915
1995
  }
1916
1996
  },
@@ -2119,7 +2199,20 @@ function componentOverrides(config) {
2119
2199
  },
2120
2200
  styleOverrides: {
2121
2201
  root: ({ theme }) => ({
2122
- borderTop: `1px solid ${paletteVar(theme, "divider")}`
2202
+ borderTop: `1px solid ${paletteVar(theme, "divider")}`,
2203
+ containerType: "inline-size",
2204
+ containerName: "prism-pagination",
2205
+ "@container prism-pagination (max-width: 420px)": {
2206
+ "& .MuiTablePagination-toolbar": {
2207
+ display: "grid",
2208
+ gridTemplateColumns: "1fr auto",
2209
+ gap: "0 8px",
2210
+ padding: "4px 8px"
2211
+ },
2212
+ "& .MuiTablePagination-spacer": { display: "none" },
2213
+ "& .MuiTablePagination-selectLabel, & .MuiTablePagination-displayedRows": { margin: "4px 0" },
2214
+ "& .MuiTablePagination-input, & .MuiTablePagination-actions": { margin: 0, justifySelf: "end" }
2215
+ }
2123
2216
  }),
2124
2217
  toolbar: {
2125
2218
  minHeight: 44 * dm,
@@ -2157,11 +2250,11 @@ function componentOverrides(config) {
2157
2250
  styleOverrides: {
2158
2251
  root: ({ theme }) => ({
2159
2252
  borderRadius,
2160
- variants: ["success", "error", "warning", "info"].map((severity) => ({
2161
- props: { severity, variant: "standard" },
2253
+ variants: ["success", "error", "warning", "info"].map((color) => ({
2254
+ props: (props) => props.variant === "standard" && (props.color || props.severity) === color,
2162
2255
  style: {
2163
- backgroundColor: `rgba(${getColorChannel(theme, severity)} / 0.08)`,
2164
- color: theme.vars?.palette[severity].dark || theme.palette[severity].dark
2256
+ ...semanticSurfaceStyles(theme, color, 0.08),
2257
+ "& .MuiAlert-icon": { color: "inherit" }
2165
2258
  }
2166
2259
  }))
2167
2260
  })
@@ -2321,7 +2414,13 @@ function componentOverrides(config) {
2321
2414
  styleOverrides: {
2322
2415
  root: {
2323
2416
  paddingTop: density === "compact" ? 4 : 8,
2324
- paddingBottom: density === "compact" ? 4 : 8
2417
+ paddingBottom: density === "compact" ? 4 : 8,
2418
+ // MenuList renders a MuiList root; it does not consume a separate
2419
+ // MuiMenuList style override. Cover standalone and Select menus too.
2420
+ '&[role="menu"], &[role="listbox"]': {
2421
+ padding: 4,
2422
+ "& > .MuiDivider-root": { margin: "8px 6px" }
2423
+ }
2325
2424
  }
2326
2425
  }
2327
2426
  },
@@ -2377,17 +2476,19 @@ function componentOverrides(config) {
2377
2476
  paper: ({ theme }) => ({
2378
2477
  borderRadius,
2379
2478
  marginTop: 4,
2479
+ scrollPaddingBlock: 6,
2480
+ maxWidth: "calc(100vw - 32px)",
2380
2481
  boxShadow: `0 0 2px 0 rgba(${getGreyChannel(theme)} / 0.24), -20px 20px 40px -4px rgba(${getGreyChannel(theme)} / 0.24)`
2381
- }),
2382
- list: {
2383
- padding: 4
2384
- }
2482
+ })
2385
2483
  }
2386
2484
  },
2387
2485
  MuiMenuItem: {
2388
2486
  styleOverrides: {
2389
2487
  root: ({ theme }) => ({
2390
2488
  ...theme.typography.body2,
2489
+ minWidth: 0,
2490
+ whiteSpace: "normal",
2491
+ overflowWrap: "anywhere",
2391
2492
  borderRadius: borderRadius - 2,
2392
2493
  margin: 2,
2393
2494
  padding: `${8 * dm}px ${12 * dm}px`,
@@ -2411,6 +2512,11 @@ function componentOverrides(config) {
2411
2512
  },
2412
2513
  MuiPopover: {
2413
2514
  styleOverrides: {
2515
+ root: ({ ownerState }) => ({
2516
+ // MUI keeps the modal root mounted during Grow's exit. Once closed,
2517
+ // it must stop swallowing the next click on the surrounding UI.
2518
+ pointerEvents: ownerState.open ? void 0 : "none"
2519
+ }),
2414
2520
  paper: ({ theme }) => ({
2415
2521
  borderRadius,
2416
2522
  boxShadow: `0 0 2px 0 rgba(${getGreyChannel(theme)} / 0.24), -20px 20px 40px -4px rgba(${getGreyChannel(theme)} / 0.24)`
@@ -2436,8 +2542,9 @@ function componentOverrides(config) {
2436
2542
  },
2437
2543
  MuiBackdrop: {
2438
2544
  styleOverrides: {
2439
- root: ({ theme }) => ({
2440
- backgroundColor: `rgba(${getGreyChannel(theme, "900")} / 0.5)`
2545
+ root: ({ theme, ownerState }) => ({
2546
+ // Menus/popovers use an invisible click-away layer; only modals dim the page.
2547
+ backgroundColor: ownerState.invisible ? "transparent" : `rgba(${getGreyChannel(theme, "900")} / 0.5)`
2441
2548
  })
2442
2549
  }
2443
2550
  },
@@ -3182,76 +3289,6 @@ var arcticPreset = {
3182
3289
  main: "#1E88E5"
3183
3290
  }
3184
3291
  };
3185
- var isRecord = (value) => !!value && typeof value === "object" && !Array.isArray(value);
3186
- var owns = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
3187
- var roles = ["primary", "secondary", "success", "info", "warning", "error"];
3188
- var shades = ["light", "dark", "lighter", "darker", "contrastText"];
3189
- var colourKeys = /* @__PURE__ */ new Set(["main", ...shades, "primary", "secondary", "disabled", "default", "paper", "neutral", "divider", "active", "selected", "hover", "focus", "disabledBackground", "background", "onBackground", "black", "white"]);
3190
- function staticChannel(value) {
3191
- if (!/^(#[\da-f]{3,8}$|rgba?\(|hsla?\()/i.test(value)) return void 0;
3192
- if (/^rgba?\(/i.test(value) && value.includes("%")) return void 0;
3193
- try {
3194
- const channel = colorChannel(/^hsl/i.test(value) ? hslToRgb(value) : value);
3195
- const components = channel.split(" ");
3196
- return components.length === 3 && components.every((part) => part !== "" && Number.isFinite(Number(part))) ? channel : void 0;
3197
- } catch {
3198
- return void 0;
3199
- }
3200
- }
3201
- function channelFor(value) {
3202
- return staticChannel(value) ?? `from ${value} r g b`;
3203
- }
3204
- function reconcileChannels(merged, supplied) {
3205
- const result = { ...merged };
3206
- for (const [key, value] of Object.entries(supplied)) {
3207
- if (isRecord(value) && isRecord(result[key])) {
3208
- result[key] = reconcileChannels(result[key], value);
3209
- } else if (typeof value === "string" && !key.endsWith("Channel") && !owns(supplied, `${key}Channel`)) {
3210
- const channel = staticChannel(value);
3211
- if (channel !== void 0 || owns(merged, `${key}Channel`) || colourKeys.has(key)) {
3212
- result[`${key}Channel`] = channel ?? channelFor(value);
3213
- }
3214
- }
3215
- }
3216
- return result;
3217
- }
3218
- function reconcilePaletteOverrides(merged, supplied, { nativeColor = false, cssVarPrefix = "prism" } = {}) {
3219
- if (!supplied) return merged;
3220
- const result = reconcileChannels(merged, supplied);
3221
- for (const name of roles) {
3222
- const input = supplied[name];
3223
- if (!isRecord(input) || typeof input.main !== "string") continue;
3224
- const role = { ...result[name] };
3225
- const numeric = staticChannel(input.main) !== void 0;
3226
- for (const shade of shades) {
3227
- if (!owns(input, shade)) {
3228
- delete role[shade];
3229
- if (!owns(input, `${shade}Channel`)) delete role[`${shade}Channel`];
3230
- }
3231
- }
3232
- if (!nativeColor && !numeric && ["light", "dark", "contrastText"].some((shade) => typeof role[shade] !== "string" || !role[shade])) {
3233
- throw new Error(`Prism: palette.${name}.main cannot be resolved in JavaScript. Enable overrides.cssVariables.nativeColor or supply light, dark and contrastText explicitly.`);
3234
- }
3235
- const dark = result.mode === "dark";
3236
- const mix = (colour, amount) => `color-mix(in oklch, ${input.main}, ${colour} ${amount * 100}%)`;
3237
- role.lighter ??= numeric && !nativeColor ? dark ? darken(input.main, 0.75) : lighten(input.main, 0.9) : dark ? mix("#000", 0.75) : mix("#fff", 0.9);
3238
- role.darker ??= numeric && !nativeColor ? dark ? lighten(input.main, 0.85) : darken(input.main, 0.7) : dark ? mix("#fff", 0.85) : mix("#000", 0.7);
3239
- if (numeric && !nativeColor) {
3240
- role.contrastText ??= getContrastRatio(input.main, "#fff") >= getContrastRatio(input.main, "#000") ? "#fff" : "#000";
3241
- }
3242
- for (const shade of shades) {
3243
- if (owns(input, `${shade}Channel`)) continue;
3244
- if (typeof role[shade] === "string") {
3245
- role[`${shade}Channel`] = channelFor(role[shade]);
3246
- } else if (nativeColor) {
3247
- const prefix = cssVarPrefix ? `${cssVarPrefix}-` : "";
3248
- role[`${shade}Channel`] = `from var(--${prefix}palette-${name}-${shade}) r g b`;
3249
- }
3250
- }
3251
- result[name] = role;
3252
- }
3253
- return result;
3254
- }
3255
3292
  function gridIcon(Icon) {
3256
3293
  return forwardRef(function GridIcon({ color, ...props }, ref) {
3257
3294
  const palette = color === "action" || color === "disabled" || color === "error" || color === "info" || color === "inherit" || color === "primary" || color === "secondary" || color === "success" || color === "warning";
@@ -4136,5 +4173,5 @@ function getPresetDisplayName(preset) {
4136
4173
  }
4137
4174
 
4138
4175
  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, createPrismTheme, createShadows, createTypography, darkShadow, defaultDarkPalette, defaultLightPalette, draculaPreset, emberPreset, getPresetDisplayName, green, grey, lightBlue, luxuryColors, luxuryError, luxuryInfo, luxuryNeutral, luxuryPrimary, luxurySecondary, luxurySuccess, luxuryWarning, midnightPreset, minimalPreset, orange, purple, red, retroPreset, shadows, typography };
4139
- //# sourceMappingURL=chunk-KQ67XB6T.js.map
4140
- //# sourceMappingURL=chunk-KQ67XB6T.js.map
4176
+ //# sourceMappingURL=chunk-RSWVYIXK.js.map
4177
+ //# sourceMappingURL=chunk-RSWVYIXK.js.map