@omnitron-dev/prism 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -0
- package/dist/accessibility/index.d.ts +7 -151
- package/dist/accessibility/index.d.ts.map +1 -0
- package/dist/accessibility/index.js +0 -1
- package/dist/accessibility/index.js.map +1 -1
- package/dist/accessibility/vision-mode.d.ts +154 -0
- package/dist/accessibility/vision-mode.d.ts.map +1 -0
- package/dist/blocks/auth-block/auth-block.d.ts +107 -0
- package/dist/blocks/auth-block/auth-block.d.ts.map +1 -0
- package/dist/blocks/auth-block/guards.d.ts +262 -0
- package/dist/blocks/auth-block/guards.d.ts.map +1 -0
- package/dist/blocks/auth-block/index.d.ts +13 -0
- package/dist/blocks/auth-block/index.d.ts.map +1 -0
- package/dist/blocks/auth-block/types.d.ts +232 -0
- package/dist/blocks/auth-block/types.d.ts.map +1 -0
- package/dist/blocks/dashboard-block/dashboard-block.d.ts +53 -0
- package/dist/blocks/dashboard-block/dashboard-block.d.ts.map +1 -0
- package/dist/blocks/dashboard-block/index.d.ts +12 -0
- package/dist/blocks/dashboard-block/index.d.ts.map +1 -0
- package/dist/blocks/dashboard-block/types.d.ts +182 -0
- package/dist/blocks/dashboard-block/types.d.ts.map +1 -0
- package/dist/blocks/dashboard-block/use-dashboard-block.d.ts +95 -0
- package/dist/blocks/dashboard-block/use-dashboard-block.d.ts.map +1 -0
- package/dist/blocks/data-grid-block/data-grid-block.d.ts +81 -0
- package/dist/blocks/data-grid-block/data-grid-block.d.ts.map +1 -0
- package/dist/blocks/data-grid-block/index.d.ts +11 -0
- package/dist/blocks/data-grid-block/index.d.ts.map +1 -0
- package/dist/blocks/data-grid-block/types.d.ts +304 -0
- package/dist/blocks/data-grid-block/types.d.ts.map +1 -0
- package/dist/blocks/index.d.ts +10 -1235
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +141 -42
- package/dist/blocks/index.js.map +1 -1
- package/dist/{chunk-IZOIO7PA.js → chunk-472SOF76.js} +31 -22
- package/dist/chunk-472SOF76.js.map +1 -0
- package/dist/chunk-4Z5DE5GK.js +1579 -0
- package/dist/chunk-4Z5DE5GK.js.map +1 -0
- package/dist/chunk-52PQL67Q.js +559 -0
- package/dist/chunk-52PQL67Q.js.map +1 -0
- package/dist/chunk-75FQ5IW3.js +590 -0
- package/dist/chunk-75FQ5IW3.js.map +1 -0
- package/dist/{chunk-VAAIHNWQ.js → chunk-7G5D5PTC.js} +4 -3
- package/dist/chunk-7G5D5PTC.js.map +1 -0
- package/dist/{chunk-JDTC2SBY.js → chunk-AD4W7HYC.js} +2 -2
- package/dist/chunk-AD4W7HYC.js.map +1 -0
- package/dist/{chunk-SNKGGHBT.js → chunk-ADG4HZEP.js} +3 -3
- package/dist/chunk-ADG4HZEP.js.map +1 -0
- package/dist/{chunk-JNU4QHJK.js → chunk-AYYFMTMI.js} +5 -4
- package/dist/{chunk-JNU4QHJK.js.map → chunk-AYYFMTMI.js.map} +1 -1
- package/dist/chunk-BJE2AKD4.js +105 -0
- package/dist/chunk-BJE2AKD4.js.map +1 -0
- package/dist/{chunk-HO2GKTWJ.js → chunk-BRDWQVRT.js} +2 -2
- package/dist/chunk-BRDWQVRT.js.map +1 -0
- package/dist/{chunk-2FYNRDXR.js → chunk-DRFNMZLG.js} +2 -2
- package/dist/chunk-DRFNMZLG.js.map +1 -0
- package/dist/chunk-FF5RF32O.js +248 -0
- package/dist/chunk-FF5RF32O.js.map +1 -0
- package/dist/{chunk-KTCWPGON.js → chunk-GMIE6III.js} +561 -111
- package/dist/chunk-GMIE6III.js.map +1 -0
- package/dist/{chunk-BV32OJ2A.js → chunk-GUFHFEPZ.js} +2 -2
- package/dist/chunk-GUFHFEPZ.js.map +1 -0
- package/dist/chunk-GUGTDURV.js +826 -0
- package/dist/chunk-GUGTDURV.js.map +1 -0
- package/dist/chunk-HOXFSQUV.js +573 -0
- package/dist/chunk-HOXFSQUV.js.map +1 -0
- package/dist/chunk-JSQTYDPG.js +3 -0
- package/dist/{chunk-77KIJLPP.js.map → chunk-JSQTYDPG.js.map} +1 -1
- package/dist/{chunk-MEFT6XPH.js → chunk-KQ67XB6T.js} +351 -704
- package/dist/chunk-KQ67XB6T.js.map +1 -0
- package/dist/{chunk-YJMAQL3S.js → chunk-LOY2NPCO.js} +129 -635
- package/dist/chunk-LOY2NPCO.js.map +1 -0
- package/dist/{chunk-A2Z7NVGL.js → chunk-LSPFFEJT.js} +1026 -2128
- package/dist/chunk-LSPFFEJT.js.map +1 -0
- package/dist/{chunk-XXP3ZGU6.js → chunk-OKTLA23Q.js} +22 -14
- package/dist/chunk-OKTLA23Q.js.map +1 -0
- package/dist/chunk-PFT2BNYO.js +191 -0
- package/dist/chunk-PFT2BNYO.js.map +1 -0
- package/dist/chunk-PGHEP4JD.js +106 -0
- package/dist/chunk-PGHEP4JD.js.map +1 -0
- package/dist/chunk-PXXPLHIY.js +74 -0
- package/dist/chunk-PXXPLHIY.js.map +1 -0
- package/dist/chunk-SNZK5X6F.js +594 -0
- package/dist/chunk-SNZK5X6F.js.map +1 -0
- package/dist/chunk-SU3LVQ7N.js +518 -0
- package/dist/chunk-SU3LVQ7N.js.map +1 -0
- package/dist/{chunk-DDY7TLUI.js → chunk-XIXSSI3B.js} +28 -2
- package/dist/chunk-XIXSSI3B.js.map +1 -0
- package/dist/chunk-YHE7HXSG.js +206 -0
- package/dist/chunk-YHE7HXSG.js.map +1 -0
- package/dist/{chunk-XWL6J6IO.js → chunk-YSIG2XYH.js} +2 -2
- package/dist/chunk-YSIG2XYH.js.map +1 -0
- package/dist/cli/commands/add.d.ts +22 -0
- package/dist/cli/commands/add.d.ts.map +1 -0
- package/dist/cli/commands/diff.d.ts +13 -0
- package/dist/cli/commands/diff.d.ts.map +1 -0
- package/dist/cli/commands/doctor.d.ts +13 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/init.d.ts +13 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/list.d.ts +13 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/remove.d.ts +13 -0
- package/dist/cli/commands/remove.d.ts.map +1 -0
- package/dist/cli/commands/update.d.ts +13 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/config.d.ts +73 -0
- package/dist/cli/config.d.ts.map +1 -0
- package/dist/cli/constants.d.ts +60 -0
- package/dist/cli/constants.d.ts.map +1 -0
- package/dist/cli/index.d.ts +27 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +38 -39
- package/dist/cli/index.js.map +1 -1
- package/dist/components/accordion/accordion.d.ts +149 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +7 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/admin-filters/admin-data-table.d.ts +185 -0
- package/dist/components/admin-filters/admin-data-table.d.ts.map +1 -0
- package/dist/components/admin-filters/amount-cell.d.ts +39 -0
- package/dist/components/admin-filters/amount-cell.d.ts.map +1 -0
- package/dist/components/admin-filters/filter-toolbar.d.ts +99 -0
- package/dist/components/admin-filters/filter-toolbar.d.ts.map +1 -0
- package/dist/components/admin-filters/index.d.ts +13 -0
- package/dist/components/admin-filters/index.d.ts.map +1 -0
- package/dist/components/admin-filters/status-chip.d.ts +55 -0
- package/dist/components/admin-filters/status-chip.d.ts.map +1 -0
- package/dist/components/alert/alert.d.ts +159 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +7 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/animate/animate-border.d.ts +33 -0
- package/dist/components/animate/animate-border.d.ts.map +1 -0
- package/dist/components/animate/index.d.ts +3 -0
- package/dist/components/animate/index.d.ts.map +1 -0
- package/dist/components/animate/motion-lazy.d.ts +5 -0
- package/dist/components/animate/motion-lazy.d.ts.map +1 -0
- package/dist/components/avatar/avatar.d.ts +78 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +7 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +102 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +7 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +100 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/dist/components/breadcrumbs/index.d.ts +7 -0
- package/dist/components/breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/card/card.d.ts +127 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +7 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/carousel/carousel.d.ts +35 -0
- package/dist/components/carousel/carousel.d.ts.map +1 -0
- package/dist/components/carousel/classes.d.ts +35 -0
- package/dist/components/carousel/classes.d.ts.map +1 -0
- package/dist/components/carousel/index.d.ts +10 -0
- package/dist/components/carousel/index.d.ts.map +1 -0
- package/dist/components/carousel/types.d.ts +167 -0
- package/dist/components/carousel/types.d.ts.map +1 -0
- package/dist/components/carousel/use-carousel.d.ts +51 -0
- package/dist/components/carousel/use-carousel.d.ts.map +1 -0
- package/dist/components/changelog/changelog-entry.d.ts +10 -0
- package/dist/components/changelog/changelog-entry.d.ts.map +1 -0
- package/dist/components/changelog/changelog-timeline.d.ts +9 -0
- package/dist/components/changelog/changelog-timeline.d.ts.map +1 -0
- package/dist/components/changelog/index.d.ts +3 -0
- package/dist/components/changelog/index.d.ts.map +1 -0
- package/dist/components/chart/chart.d.ts +39 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/classes.d.ts +24 -0
- package/dist/components/chart/classes.d.ts.map +1 -0
- package/dist/components/chart/components/chart-legends.d.ts +24 -0
- package/dist/components/chart/components/chart-legends.d.ts.map +1 -0
- package/dist/components/chart/components/chart-loading.d.ts +21 -0
- package/dist/components/chart/components/chart-loading.d.ts.map +1 -0
- package/dist/components/chart/components/index.d.ts +8 -0
- package/dist/components/chart/components/index.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +14 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/chart/types.d.ts +264 -0
- package/dist/components/chart/types.d.ts.map +1 -0
- package/dist/components/chart/use-chart.d.ts +34 -0
- package/dist/components/chart/use-chart.d.ts.map +1 -0
- package/dist/components/command-palette/command-palette.d.ts +73 -0
- package/dist/components/command-palette/command-palette.d.ts.map +1 -0
- package/dist/components/command-palette/index.d.ts +7 -0
- package/dist/components/command-palette/index.d.ts.map +1 -0
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +89 -0
- package/dist/components/confirm-dialog/confirm-dialog.d.ts.map +1 -0
- package/dist/components/confirm-dialog/index.d.ts +7 -0
- package/dist/components/confirm-dialog/index.d.ts.map +1 -0
- package/dist/components/content-renderer/classes.d.ts +33 -0
- package/dist/components/content-renderer/classes.d.ts.map +1 -0
- package/dist/components/content-renderer/content-renderer.d.ts +37 -0
- package/dist/components/content-renderer/content-renderer.d.ts.map +1 -0
- package/dist/components/content-renderer/html-tags.d.ts +6 -0
- package/dist/components/content-renderer/html-tags.d.ts.map +1 -0
- package/dist/components/content-renderer/html-to-markdown.d.ts +7 -0
- package/dist/components/content-renderer/html-to-markdown.d.ts.map +1 -0
- package/dist/components/content-renderer/index.d.ts +7 -0
- package/dist/components/content-renderer/index.d.ts.map +1 -0
- package/dist/components/content-renderer/markdown.d.ts +23 -0
- package/dist/components/content-renderer/markdown.d.ts.map +1 -0
- package/dist/components/content-renderer/remark-spoiler.d.ts +9 -0
- package/dist/components/content-renderer/remark-spoiler.d.ts.map +1 -0
- package/dist/components/content-renderer/styles.d.ts +2 -0
- package/dist/components/content-renderer/styles.d.ts.map +1 -0
- package/dist/components/country-select/country-select.d.ts +101 -0
- package/dist/components/country-select/country-select.d.ts.map +1 -0
- package/dist/components/country-select/flag-icon.d.ts +36 -0
- package/dist/components/country-select/flag-icon.d.ts.map +1 -0
- package/dist/components/country-select/index.d.ts +5 -0
- package/dist/components/country-select/index.d.ts.map +1 -0
- package/dist/components/date-input/date-input.d.ts +27 -0
- package/dist/components/date-input/date-input.d.ts.map +1 -0
- package/dist/components/date-input/index.d.ts +4 -0
- package/dist/components/date-input/index.d.ts.map +1 -0
- package/dist/components/date-input/value.d.ts +9 -0
- package/dist/components/date-input/value.d.ts.map +1 -0
- package/dist/components/date-range-picker/date-range-input.d.ts +48 -0
- package/dist/components/date-range-picker/date-range-input.d.ts.map +1 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +39 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -0
- package/dist/components/date-range-picker/index.d.ts +7 -0
- package/dist/components/date-range-picker/index.d.ts.map +1 -0
- package/dist/components/date-range-picker/use-date-range-picker.d.ts +28 -0
- package/dist/components/date-range-picker/use-date-range-picker.d.ts.map +1 -0
- package/dist/components/deadline-chip/deadline-chip.d.ts +41 -0
- package/dist/components/deadline-chip/deadline-chip.d.ts.map +1 -0
- package/dist/components/deadline-chip/index.d.ts +7 -0
- package/dist/components/deadline-chip/index.d.ts.map +1 -0
- package/dist/components/doc-layout/doc-layout.d.ts +17 -0
- package/dist/components/doc-layout/doc-layout.d.ts.map +1 -0
- package/dist/components/doc-layout/doc-section-nav.d.ts +16 -0
- package/dist/components/doc-layout/doc-section-nav.d.ts.map +1 -0
- package/dist/components/doc-layout/doc-sidebar.d.ts +18 -0
- package/dist/components/doc-layout/doc-sidebar.d.ts.map +1 -0
- package/dist/components/doc-layout/index.d.ts +4 -0
- package/dist/components/doc-layout/index.d.ts.map +1 -0
- package/dist/components/doc-layout/index.js +6 -0
- package/dist/components/doc-layout/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +65 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +7 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/duration-picker/duration-picker.d.ts +24 -0
- package/dist/components/duration-picker/duration-picker.d.ts.map +1 -0
- package/dist/components/duration-picker/index.d.ts +2 -0
- package/dist/components/duration-picker/index.d.ts.map +1 -0
- package/dist/components/editor/classes.d.ts +52 -0
- package/dist/components/editor/classes.d.ts.map +1 -0
- package/dist/components/editor/editor.d.ts +15 -0
- package/dist/components/editor/editor.d.ts.map +1 -0
- package/dist/components/editor/extensions/clear-format.d.ts +3 -0
- package/dist/components/editor/extensions/clear-format.d.ts.map +1 -0
- package/dist/components/editor/extensions/index.d.ts +3 -0
- package/dist/components/editor/extensions/index.d.ts.map +1 -0
- package/dist/components/editor/extensions/text-transform.d.ts +20 -0
- package/dist/components/editor/extensions/text-transform.d.ts.map +1 -0
- package/dist/components/editor/icons/index.d.ts +34 -0
- package/dist/components/editor/icons/index.d.ts.map +1 -0
- package/dist/components/editor/index.d.ts +41 -104
- package/dist/components/editor/index.d.ts.map +1 -0
- package/dist/components/editor/index.js +3 -2
- package/dist/components/editor/presets.d.ts +3 -0
- package/dist/components/editor/presets.d.ts.map +1 -0
- package/dist/components/editor/styles.d.ts +2 -0
- package/dist/components/editor/styles.d.ts.map +1 -0
- package/dist/components/editor/toolbar/bubble-toolbar.d.ts +9 -0
- package/dist/components/editor/toolbar/bubble-toolbar.d.ts.map +1 -0
- package/dist/components/editor/toolbar/code-highlight-block.d.ts +3 -0
- package/dist/components/editor/toolbar/code-highlight-block.d.ts.map +1 -0
- package/dist/components/editor/toolbar/heading-block.d.ts +11 -0
- package/dist/components/editor/toolbar/heading-block.d.ts.map +1 -0
- package/dist/components/editor/toolbar/image-block.d.ts +11 -0
- package/dist/components/editor/toolbar/image-block.d.ts.map +1 -0
- package/dist/components/editor/toolbar/link-block.d.ts +13 -0
- package/dist/components/editor/toolbar/link-block.d.ts.map +1 -0
- package/dist/components/editor/toolbar/toolbar-item.d.ts +3 -0
- package/dist/components/editor/toolbar/toolbar-item.d.ts.map +1 -0
- package/dist/components/editor/toolbar/toolbar.d.ts +3 -0
- package/dist/components/editor/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/editor/toolbar/use-toolbar-state.d.ts +24 -0
- package/dist/components/editor/toolbar/use-toolbar-state.d.ts.map +1 -0
- package/dist/components/editor/types.d.ts +130 -0
- package/dist/components/editor/types.d.ts.map +1 -0
- package/dist/components/emoji-picker/emoji-picker.d.ts +24 -0
- package/dist/components/emoji-picker/emoji-picker.d.ts.map +1 -0
- package/dist/components/emoji-picker/emoji-search.d.ts +22 -0
- package/dist/components/emoji-picker/emoji-search.d.ts.map +1 -0
- package/dist/components/emoji-picker/emoji.d.ts +19 -0
- package/dist/components/emoji-picker/emoji.d.ts.map +1 -0
- package/dist/components/emoji-picker/index.d.ts +14 -0
- package/dist/components/emoji-picker/index.d.ts.map +1 -0
- package/dist/components/emoji-picker/index.js +3 -0
- package/dist/components/emoji-picker/index.js.map +1 -0
- package/dist/components/emoji-picker/twemoji-url.d.ts +26 -0
- package/dist/components/emoji-picker/twemoji-url.d.ts.map +1 -0
- package/dist/components/emoji-picker/types.d.ts +96 -0
- package/dist/components/emoji-picker/types.d.ts.map +1 -0
- package/dist/components/emoji-picker/use-emoji-data.d.ts +26 -0
- package/dist/components/emoji-picker/use-emoji-data.d.ts.map +1 -0
- package/dist/components/emoji-picker/use-recent-emojis.d.ts +16 -0
- package/dist/components/emoji-picker/use-recent-emojis.d.ts.map +1 -0
- package/dist/components/empty-content/empty-content.d.ts +92 -0
- package/dist/components/empty-content/empty-content.d.ts.map +1 -0
- package/dist/components/empty-content/index.d.ts +7 -0
- package/dist/components/empty-content/index.d.ts.map +1 -0
- package/dist/components/error-boundary/error-boundary.d.ts +162 -0
- package/dist/components/error-boundary/error-boundary.d.ts.map +1 -0
- package/dist/components/error-boundary/index.d.ts +7 -0
- package/dist/components/error-boundary/index.d.ts.map +1 -0
- package/dist/components/field/field-autocomplete.d.ts +74 -0
- package/dist/components/field/field-autocomplete.d.ts.map +1 -0
- package/dist/components/field/field-checkbox.d.ts +42 -0
- package/dist/components/field/field-checkbox.d.ts.map +1 -0
- package/dist/components/field/field-code.d.ts +80 -0
- package/dist/components/field/field-code.d.ts.map +1 -0
- package/dist/components/field/field-country-select.d.ts +84 -0
- package/dist/components/field/field-country-select.d.ts.map +1 -0
- package/dist/components/field/field-date-picker.d.ts +58 -0
- package/dist/components/field/field-date-picker.d.ts.map +1 -0
- package/dist/components/field/field-datetime-picker.d.ts +96 -0
- package/dist/components/field/field-datetime-picker.d.ts.map +1 -0
- package/dist/components/field/field-editor.d.ts +218 -0
- package/dist/components/field/field-editor.d.ts.map +1 -0
- package/dist/components/field/field-multi-checkbox.d.ts +91 -0
- package/dist/components/field/field-multi-checkbox.d.ts.map +1 -0
- package/dist/components/field/field-multi-select.d.ts +85 -0
- package/dist/components/field/field-multi-select.d.ts.map +1 -0
- package/dist/components/field/field-multi-switch.d.ts +93 -0
- package/dist/components/field/field-multi-switch.d.ts.map +1 -0
- package/dist/components/field/field-number.d.ts +50 -0
- package/dist/components/field/field-number.d.ts.map +1 -0
- package/dist/components/field/field-phone.d.ts +82 -0
- package/dist/components/field/field-phone.d.ts.map +1 -0
- package/dist/components/field/field-radio.d.ts +64 -0
- package/dist/components/field/field-radio.d.ts.map +1 -0
- package/dist/components/field/field-rating.d.ts +43 -0
- package/dist/components/field/field-rating.d.ts.map +1 -0
- package/dist/components/field/field-select.d.ts +50 -0
- package/dist/components/field/field-select.d.ts.map +1 -0
- package/dist/components/field/field-slider.d.ts +56 -0
- package/dist/components/field/field-slider.d.ts.map +1 -0
- package/dist/components/field/field-switch.d.ts +44 -0
- package/dist/components/field/field-switch.d.ts.map +1 -0
- package/dist/components/field/field-text.d.ts +38 -0
- package/dist/components/field/field-text.d.ts.map +1 -0
- package/dist/components/field/field-time-picker.d.ts +79 -0
- package/dist/components/field/field-time-picker.d.ts.map +1 -0
- package/dist/components/field/field-upload.d.ts +120 -0
- package/dist/components/field/field-upload.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +149 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/image/image.d.ts +79 -0
- package/dist/components/image/image.d.ts.map +1 -0
- package/dist/components/image/index.d.ts +7 -0
- package/dist/components/image/index.d.ts.map +1 -0
- package/dist/components/index.css +4 -0
- package/dist/components/index.css.map +1 -1
- package/dist/components/index.d.ts +60 -7072
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +21 -11
- package/dist/components/knowledge-graph/edge-labels.d.ts +14 -0
- package/dist/components/knowledge-graph/edge-labels.d.ts.map +1 -0
- package/dist/components/knowledge-graph/graph.d.ts +56 -0
- package/dist/components/knowledge-graph/graph.d.ts.map +1 -0
- package/dist/components/knowledge-graph/index.css +176 -0
- package/dist/components/knowledge-graph/index.css.map +1 -0
- package/dist/components/knowledge-graph/index.d.ts +3 -0
- package/dist/components/knowledge-graph/index.d.ts.map +1 -0
- package/dist/components/knowledge-graph/index.js +795 -0
- package/dist/components/knowledge-graph/index.js.map +1 -0
- package/dist/components/knowledge-graph/label-layout.d.ts +28 -0
- package/dist/components/knowledge-graph/label-layout.d.ts.map +1 -0
- package/dist/components/knowledge-graph/label-store.d.ts +15 -0
- package/dist/components/knowledge-graph/label-store.d.ts.map +1 -0
- package/dist/components/knowledge-graph/model.d.ts +92 -0
- package/dist/components/knowledge-graph/model.d.ts.map +1 -0
- package/dist/components/label/index.d.ts +7 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/label/label.d.ts +71 -0
- package/dist/components/label/label.d.ts.map +1 -0
- package/dist/components/lightbox/classes.d.ts +34 -0
- package/dist/components/lightbox/classes.d.ts.map +1 -0
- package/dist/components/lightbox/index.d.ts +11 -0
- package/dist/components/lightbox/index.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.d.ts +42 -0
- package/dist/components/lightbox/lightbox.d.ts.map +1 -0
- package/dist/components/lightbox/types.d.ts +233 -0
- package/dist/components/lightbox/types.d.ts.map +1 -0
- package/dist/components/lightbox/use-lightbox.d.ts +42 -0
- package/dist/components/lightbox/use-lightbox.d.ts.map +1 -0
- package/dist/components/loading-screen/index.d.ts +8 -0
- package/dist/components/loading-screen/index.d.ts.map +1 -0
- package/dist/components/loading-screen/loading-screen.d.ts +37 -0
- package/dist/components/loading-screen/loading-screen.d.ts.map +1 -0
- package/dist/components/loading-screen/splash-screen.d.ts +80 -0
- package/dist/components/loading-screen/splash-screen.d.ts.map +1 -0
- package/dist/components/map/Map.d.ts +39 -0
- package/dist/components/map/Map.d.ts.map +1 -0
- package/dist/components/map/MapCoverageLayer.d.ts +25 -0
- package/dist/components/map/MapCoverageLayer.d.ts.map +1 -0
- package/dist/components/map/MapMarker.d.ts +17 -0
- package/dist/components/map/MapMarker.d.ts.map +1 -0
- package/dist/components/map/MapPlaceSearch.d.ts +33 -0
- package/dist/components/map/MapPlaceSearch.d.ts.map +1 -0
- package/dist/components/map/MapPointPicker.d.ts +35 -0
- package/dist/components/map/MapPointPicker.d.ts.map +1 -0
- package/dist/components/map/coordinates.d.ts +10 -0
- package/dist/components/map/coordinates.d.ts.map +1 -0
- package/dist/components/map/index.css +4 -0
- package/dist/components/map/index.css.map +1 -0
- package/dist/components/map/index.d.ts +19 -0
- package/dist/components/map/index.d.ts.map +1 -0
- package/dist/components/map/index.js +3 -0
- package/dist/components/map/index.js.map +1 -0
- package/dist/components/mega-menu/index.d.ts +12 -0
- package/dist/components/mega-menu/index.d.ts.map +1 -0
- package/dist/components/mega-menu/mega-menu-horizontal.d.ts +41 -0
- package/dist/components/mega-menu/mega-menu-horizontal.d.ts.map +1 -0
- package/dist/components/mega-menu/mega-menu-mobile.d.ts +28 -0
- package/dist/components/mega-menu/mega-menu-mobile.d.ts.map +1 -0
- package/dist/components/mega-menu/mega-menu-vertical.d.ts +28 -0
- package/dist/components/mega-menu/mega-menu-vertical.d.ts.map +1 -0
- package/dist/components/mega-menu/styles.d.ts +18 -0
- package/dist/components/mega-menu/styles.d.ts.map +1 -0
- package/dist/components/mega-menu/types.d.ts +200 -0
- package/dist/components/mega-menu/types.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +7 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +144 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/nav-card/index.d.ts +8 -0
- package/dist/components/nav-card/index.d.ts.map +1 -0
- package/dist/components/nav-card/nav-card-grid.d.ts +57 -0
- package/dist/components/nav-card/nav-card-grid.d.ts.map +1 -0
- package/dist/components/nav-card/nav-card.d.ts +69 -0
- package/dist/components/nav-card/nav-card.d.ts.map +1 -0
- package/dist/components/nav-section/components.d.ts +143 -0
- package/dist/components/nav-section/components.d.ts.map +1 -0
- package/dist/components/nav-section/index.d.ts +15 -0
- package/dist/components/nav-section/index.d.ts.map +1 -0
- package/dist/components/nav-section/nav-context.d.ts +80 -0
- package/dist/components/nav-section/nav-context.d.ts.map +1 -0
- package/dist/components/nav-section/nav-item.d.ts +20 -0
- package/dist/components/nav-section/nav-item.d.ts.map +1 -0
- package/dist/components/nav-section/nav-list.d.ts +25 -0
- package/dist/components/nav-section/nav-list.d.ts.map +1 -0
- package/dist/components/nav-section/nav-section-horizontal.d.ts +29 -0
- package/dist/components/nav-section/nav-section-horizontal.d.ts.map +1 -0
- package/dist/components/nav-section/nav-section-mini.d.ts +30 -0
- package/dist/components/nav-section/nav-section-mini.d.ts.map +1 -0
- package/dist/components/nav-section/nav-section-vertical.d.ts +37 -0
- package/dist/components/nav-section/nav-section-vertical.d.ts.map +1 -0
- package/dist/components/nav-section/styles.d.ts +35 -0
- package/dist/components/nav-section/styles.d.ts.map +1 -0
- package/dist/components/nav-section/types.d.ts +178 -0
- package/dist/components/nav-section/types.d.ts.map +1 -0
- package/dist/components/navigation-progress/index.d.ts +7 -0
- package/dist/components/navigation-progress/index.d.ts.map +1 -0
- package/dist/components/navigation-progress/navigation-progress.d.ts +36 -0
- package/dist/components/navigation-progress/navigation-progress.d.ts.map +1 -0
- package/dist/components/page-content/index.d.ts +7 -0
- package/dist/components/page-content/index.d.ts.map +1 -0
- package/dist/components/page-content/page-content.d.ts +55 -0
- package/dist/components/page-content/page-content.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +7 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/{popover-Dmw7SJLR.d.ts → components/popover/popover.d.ts} +11 -14
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/countdown-ring.d.ts +60 -0
- package/dist/components/progress/countdown-ring.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +8 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/progress.d.ts +106 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/rail/index.d.ts +7 -0
- package/dist/components/rail/index.d.ts.map +1 -0
- package/dist/components/rail/rail.d.ts +39 -0
- package/dist/components/rail/rail.d.ts.map +1 -0
- package/dist/components/research/diagram-image.d.ts +11 -0
- package/dist/components/research/diagram-image.d.ts.map +1 -0
- package/dist/components/research/diagram.d.ts +8 -0
- package/dist/components/research/diagram.d.ts.map +1 -0
- package/dist/components/research/document.d.ts +33 -0
- package/dist/components/research/document.d.ts.map +1 -0
- package/dist/components/research/frontmatter.d.ts +15 -0
- package/dist/components/research/frontmatter.d.ts.map +1 -0
- package/dist/components/research/index.css +51 -0
- package/dist/components/research/index.css.map +1 -0
- package/dist/components/research/index.d.ts +3 -0
- package/dist/components/research/index.d.ts.map +1 -0
- package/dist/components/research/index.js +6 -0
- package/dist/components/research/index.js.map +1 -0
- package/dist/components/research/parse.d.ts +29 -0
- package/dist/components/research/parse.d.ts.map +1 -0
- package/dist/components/research-editor/block-commands.d.ts +20 -0
- package/dist/components/research-editor/block-commands.d.ts.map +1 -0
- package/dist/components/research-editor/block-controls.d.ts +13 -0
- package/dist/components/research-editor/block-controls.d.ts.map +1 -0
- package/dist/components/research-editor/editor.d.ts +75 -0
- package/dist/components/research-editor/editor.d.ts.map +1 -0
- package/dist/components/research-editor/extensions.d.ts +14 -0
- package/dist/components/research-editor/extensions.d.ts.map +1 -0
- package/dist/components/research-editor/index.css +332 -0
- package/dist/components/research-editor/index.css.map +1 -0
- package/dist/components/research-editor/index.d.ts +5 -0
- package/dist/components/research-editor/index.d.ts.map +1 -0
- package/dist/components/research-editor/index.js +1592 -0
- package/dist/components/research-editor/index.js.map +1 -0
- package/dist/components/research-editor/math-input.d.ts +32 -0
- package/dist/components/research-editor/math-input.d.ts.map +1 -0
- package/dist/components/research-editor/math-markup.d.ts +4 -0
- package/dist/components/research-editor/math-markup.d.ts.map +1 -0
- package/dist/components/research-editor/math-navigation.d.ts +6 -0
- package/dist/components/research-editor/math-navigation.d.ts.map +1 -0
- package/dist/components/research-editor/math-node.d.ts +11 -0
- package/dist/components/research-editor/math-node.d.ts.map +1 -0
- package/dist/components/research-editor/source.d.ts +19 -0
- package/dist/components/research-editor/source.d.ts.map +1 -0
- package/dist/components/scroll-spy/index.d.ts +3 -0
- package/dist/components/scroll-spy/index.d.ts.map +1 -0
- package/dist/components/scroll-spy/scroll-spy-provider.d.ts +26 -0
- package/dist/components/scroll-spy/scroll-spy-provider.d.ts.map +1 -0
- package/dist/components/scroll-spy/scroll-spy-section.d.ts +10 -0
- package/dist/components/scroll-spy/scroll-spy-section.d.ts.map +1 -0
- package/dist/components/scroll-to-top/index.d.ts +7 -0
- package/dist/components/scroll-to-top/index.d.ts.map +1 -0
- package/dist/components/scroll-to-top/scroll-to-top.d.ts +25 -0
- package/dist/components/scroll-to-top/scroll-to-top.d.ts.map +1 -0
- package/dist/components/scrollbar/index.d.ts +7 -0
- package/dist/components/scrollbar/index.d.ts.map +1 -0
- package/dist/components/scrollbar/scrollbar.d.ts +61 -0
- package/dist/components/scrollbar/scrollbar.d.ts.map +1 -0
- package/dist/components/search-input/index.d.ts +2 -0
- package/dist/components/search-input/index.d.ts.map +1 -0
- package/dist/components/search-input/search-input.d.ts +36 -0
- package/dist/components/search-input/search-input.d.ts.map +1 -0
- package/dist/components/settings/index.d.ts +10 -0
- package/dist/components/settings/index.d.ts.map +1 -0
- package/dist/components/settings/settings-drawer.d.ts +39 -0
- package/dist/components/settings/settings-drawer.d.ts.map +1 -0
- package/dist/components/settings/settings-provider.d.ts +106 -0
- package/dist/components/settings/settings-provider.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +7 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +77 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/snackbar/index.d.ts +7 -0
- package/dist/components/snackbar/index.d.ts.map +1 -0
- package/dist/components/snackbar/snackbar.d.ts +120 -0
- package/dist/components/snackbar/snackbar.d.ts.map +1 -0
- package/dist/components/sponsored-slot/index.d.ts +3 -0
- package/dist/components/sponsored-slot/index.d.ts.map +1 -0
- package/dist/components/sponsored-slot/sponsored-slot.d.ts +16 -0
- package/dist/components/sponsored-slot/sponsored-slot.d.ts.map +1 -0
- package/dist/components/sponsored-slot/types.d.ts +45 -0
- package/dist/components/sponsored-slot/types.d.ts.map +1 -0
- package/dist/components/stepper/index.d.ts +7 -0
- package/dist/components/stepper/index.d.ts.map +1 -0
- package/dist/components/stepper/stepper.d.ts +145 -0
- package/dist/components/stepper/stepper.d.ts.map +1 -0
- package/dist/components/svg-color/index.d.ts +7 -0
- package/dist/components/svg-color/index.d.ts.map +1 -0
- package/dist/components/svg-color/svg-color.d.ts +80 -0
- package/dist/components/svg-color/svg-color.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +7 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/table.d.ts +184 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +7 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +146 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tag-cloud/index.d.ts +7 -0
- package/dist/components/tag-cloud/index.d.ts.map +1 -0
- package/dist/components/tag-cloud/tag-cloud.d.ts +58 -0
- package/dist/components/tag-cloud/tag-cloud.d.ts.map +1 -0
- package/dist/components/tiptap-renderer/index.d.ts +2 -0
- package/dist/components/tiptap-renderer/index.d.ts.map +1 -0
- package/dist/components/tiptap-renderer/tiptap-renderer.d.ts +46 -0
- package/dist/components/tiptap-renderer/tiptap-renderer.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +7 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +38 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/virtual-list/index.d.ts +7 -0
- package/dist/components/virtual-list/index.d.ts.map +1 -0
- package/dist/components/virtual-list/virtual-list.d.ts +64 -0
- package/dist/components/virtual-list/virtual-list.d.ts.map +1 -0
- package/dist/core/accessibility/index.d.ts +96 -0
- package/dist/core/accessibility/index.d.ts.map +1 -0
- package/dist/core/accessibility/skip-link.d.ts +31 -0
- package/dist/core/accessibility/skip-link.d.ts.map +1 -0
- package/dist/core/context.d.ts +99 -0
- package/dist/core/context.d.ts.map +1 -0
- package/dist/core/hooks/use-boolean.d.ts +54 -0
- package/dist/core/hooks/use-boolean.d.ts.map +1 -0
- package/dist/core/hooks/use-breakpoints.d.ts +87 -0
- package/dist/core/hooks/use-breakpoints.d.ts.map +1 -0
- package/dist/core/hooks/use-click-outside.d.ts +26 -0
- package/dist/core/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/core/hooks/use-copy-to-clipboard.d.ts +66 -0
- package/dist/core/hooks/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist/core/hooks/use-countdown.d.ts +105 -0
- package/dist/core/hooks/use-countdown.d.ts.map +1 -0
- package/dist/core/hooks/use-debounce.d.ts +64 -0
- package/dist/core/hooks/use-debounce.d.ts.map +1 -0
- package/dist/core/hooks/use-event-listener.d.ts +37 -0
- package/dist/core/hooks/use-event-listener.d.ts.map +1 -0
- package/dist/core/hooks/use-interval.d.ts +30 -0
- package/dist/core/hooks/use-interval.d.ts.map +1 -0
- package/dist/core/hooks/use-is-client.d.ts +24 -0
- package/dist/core/hooks/use-is-client.d.ts.map +1 -0
- package/dist/core/hooks/use-local-storage.d.ts +61 -0
- package/dist/core/hooks/use-local-storage.d.ts.map +1 -0
- package/dist/core/hooks/use-media-query.d.ts +107 -0
- package/dist/core/hooks/use-media-query.d.ts.map +1 -0
- package/dist/core/hooks/use-mounted.d.ts +33 -0
- package/dist/core/hooks/use-mounted.d.ts.map +1 -0
- package/dist/core/hooks/use-multi-select.d.ts +113 -0
- package/dist/core/hooks/use-multi-select.d.ts.map +1 -0
- package/dist/core/hooks/use-previous.d.ts +23 -0
- package/dist/core/hooks/use-previous.d.ts.map +1 -0
- package/dist/core/hooks/use-set-state.d.ts +56 -0
- package/dist/core/hooks/use-set-state.d.ts.map +1 -0
- package/dist/core/hooks/use-tabs.d.ts +74 -0
- package/dist/core/hooks/use-tabs.d.ts.map +1 -0
- package/dist/core/hooks/use-timeout.d.ts +37 -0
- package/dist/core/hooks/use-timeout.d.ts.map +1 -0
- package/dist/core/index.d.ts +36 -468
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +10 -7
- package/dist/core/provider-stack.d.ts +181 -0
- package/dist/core/provider-stack.d.ts.map +1 -0
- package/dist/core/provider.d.ts +72 -0
- package/dist/core/provider.d.ts.map +1 -0
- package/dist/forms/index.d.ts +6 -557
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +0 -1
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/schema-provider.d.ts +282 -0
- package/dist/forms/schema-provider.d.ts.map +1 -0
- package/dist/forms/schema-utils.d.ts +286 -0
- package/dist/forms/schema-utils.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +38 -8
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +12 -9
- package/dist/hooks/use-array.d.ts +126 -0
- package/dist/hooks/use-array.d.ts.map +1 -0
- package/dist/hooks/use-async.d.ts +88 -0
- package/dist/hooks/use-async.d.ts.map +1 -0
- package/dist/hooks/use-back-to-top.d.ts +57 -0
- package/dist/hooks/use-back-to-top.d.ts.map +1 -0
- package/dist/hooks/use-client-rect.d.ts +67 -0
- package/dist/hooks/use-client-rect.d.ts.map +1 -0
- package/dist/hooks/use-config-from-query.d.ts +98 -0
- package/dist/hooks/use-config-from-query.d.ts.map +1 -0
- package/dist/hooks/use-cookies.d.ts +62 -0
- package/dist/hooks/use-cookies.d.ts.map +1 -0
- package/dist/hooks/use-countdown-date.d.ts +47 -0
- package/dist/hooks/use-countdown-date.d.ts.map +1 -0
- package/dist/hooks/use-countdown-seconds.d.ts +83 -0
- package/dist/hooks/use-countdown-seconds.d.ts.map +1 -0
- package/dist/hooks/use-double-click.d.ts +67 -0
- package/dist/hooks/use-double-click.d.ts.map +1 -0
- package/dist/hooks/use-focus-trap.d.ts +66 -0
- package/dist/hooks/use-focus-trap.d.ts.map +1 -0
- package/dist/hooks/use-image-dimensions.d.ts +124 -0
- package/dist/hooks/use-image-dimensions.d.ts.map +1 -0
- package/dist/hooks/use-infinite-scroll.d.ts +204 -0
- package/dist/hooks/use-infinite-scroll.d.ts.map +1 -0
- package/dist/hooks/use-intersection-observer.d.ts +93 -0
- package/dist/hooks/use-intersection-observer.d.ts.map +1 -0
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +34 -0
- package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/hooks/use-keyboard-shortcut.d.ts +112 -0
- package/dist/hooks/use-keyboard-shortcut.d.ts.map +1 -0
- package/dist/hooks/use-lazy-query.d.ts +132 -0
- package/dist/hooks/use-lazy-query.d.ts.map +1 -0
- package/dist/hooks/use-mutation.d.ts +141 -0
- package/dist/hooks/use-mutation.d.ts.map +1 -0
- package/dist/hooks/use-online-status.d.ts +56 -0
- package/dist/hooks/use-online-status.d.ts.map +1 -0
- package/dist/hooks/use-password-visibility.d.ts +83 -0
- package/dist/hooks/use-password-visibility.d.ts.map +1 -0
- package/dist/hooks/use-popover-hover.d.ts +78 -0
- package/dist/hooks/use-popover-hover.d.ts.map +1 -0
- package/dist/hooks/use-scroll-offset-top.d.ts +69 -0
- package/dist/hooks/use-scroll-offset-top.d.ts.map +1 -0
- package/dist/hooks/use-scroll-position.d.ts +96 -0
- package/dist/hooks/use-scroll-position.d.ts.map +1 -0
- package/dist/hooks/use-session-storage.d.ts +66 -0
- package/dist/hooks/use-session-storage.d.ts.map +1 -0
- package/dist/hooks/use-throttle.d.ts +67 -0
- package/dist/hooks/use-throttle.d.ts.map +1 -0
- package/dist/hooks/use-update-effect.d.ts +53 -0
- package/dist/hooks/use-update-effect.d.ts.map +1 -0
- package/dist/hooks/use-window-size.d.ts +132 -0
- package/dist/hooks/use-window-size.d.ts.map +1 -0
- package/dist/http/client.d.ts +74 -0
- package/dist/http/client.d.ts.map +1 -0
- package/dist/http/index.d.ts +6 -229
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +0 -2
- package/dist/http/index.js.map +1 -1
- package/dist/http/types.d.ts +158 -0
- package/dist/http/types.d.ts.map +1 -0
- package/dist/icons/context.d.ts +17 -0
- package/dist/icons/context.d.ts.map +1 -0
- package/dist/icons/controls.d.ts +51 -0
- package/dist/icons/controls.d.ts.map +1 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +4 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/theme.d.ts +4 -0
- package/dist/icons/theme.d.ts.map +1 -0
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +19 -2758
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46 -63
- package/dist/index.js.map +1 -1
- package/dist/layouts/auth/centered.d.ts +49 -0
- package/dist/layouts/auth/centered.d.ts.map +1 -0
- package/dist/layouts/auth/index.d.ts +12 -0
- package/dist/layouts/auth/index.d.ts.map +1 -0
- package/dist/layouts/auth/simple.d.ts +58 -0
- package/dist/layouts/auth/simple.d.ts.map +1 -0
- package/dist/layouts/auth/split.d.ts +81 -0
- package/dist/layouts/auth/split.d.ts.map +1 -0
- package/dist/layouts/core/context.d.ts +102 -0
- package/dist/layouts/core/context.d.ts.map +1 -0
- package/dist/layouts/core/css-vars.d.ts +43 -0
- package/dist/layouts/core/css-vars.d.ts.map +1 -0
- package/dist/layouts/core/header-section.d.ts +79 -0
- package/dist/layouts/core/header-section.d.ts.map +1 -0
- package/dist/layouts/core/index.d.ts +18 -0
- package/dist/layouts/core/index.d.ts.map +1 -0
- package/dist/layouts/core/layout-section.d.ts +64 -0
- package/dist/layouts/core/layout-section.d.ts.map +1 -0
- package/dist/layouts/core/user-menu.d.ts +88 -0
- package/dist/layouts/core/user-menu.d.ts.map +1 -0
- package/dist/layouts/dashboard/index.d.ts +10 -0
- package/dist/layouts/dashboard/index.d.ts.map +1 -0
- package/dist/layouts/dashboard/labels.d.ts +12 -0
- package/dist/layouts/dashboard/labels.d.ts.map +1 -0
- package/dist/layouts/dashboard/layout.d.ts +96 -0
- package/dist/layouts/dashboard/layout.d.ts.map +1 -0
- package/dist/layouts/dashboard/sidenav.d.ts +62 -0
- package/dist/layouts/dashboard/sidenav.d.ts.map +1 -0
- package/dist/layouts/dashboard/topnav.d.ts +41 -0
- package/dist/layouts/dashboard/topnav.d.ts.map +1 -0
- package/dist/layouts/index.d.ts +32 -850
- package/dist/layouts/index.d.ts.map +1 -0
- package/dist/layouts/index.js +8 -4
- package/dist/layouts/panel-layout.d.ts +35 -0
- package/dist/layouts/panel-layout.d.ts.map +1 -0
- package/dist/layouts/sidebar-toggle.d.ts +11 -0
- package/dist/layouts/sidebar-toggle.d.ts.map +1 -0
- package/dist/layouts/types.d.ts +317 -0
- package/dist/layouts/types.d.ts.map +1 -0
- package/dist/netron/context.d.ts +18 -0
- package/dist/netron/context.d.ts.map +1 -0
- package/dist/netron/hooks.d.ts +10 -0
- package/dist/netron/hooks.d.ts.map +1 -0
- package/dist/netron/index.d.ts +47 -4
- package/dist/netron/index.d.ts.map +1 -0
- package/dist/netron/index.js +1 -2
- package/dist/netron/types.d.ts +12 -0
- package/dist/netron/types.d.ts.map +1 -0
- package/dist/registry/index.d.ts +8 -341
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +1 -2
- package/dist/registry/installer.d.ts +137 -0
- package/dist/registry/installer.d.ts.map +1 -0
- package/dist/registry/manager.d.ts +196 -0
- package/dist/registry/manager.d.ts.map +1 -0
- package/dist/state/create-store.d.ts +164 -0
- package/dist/state/create-store.d.ts.map +1 -0
- package/dist/state/index.d.ts +12 -969
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +2 -3
- package/dist/state/settings-version.d.ts +255 -0
- package/dist/state/settings-version.d.ts.map +1 -0
- package/dist/state/stores/auth.d.ts +143 -0
- package/dist/state/stores/auth.d.ts.map +1 -0
- package/dist/state/stores/index.d.ts +10 -0
- package/dist/state/stores/index.d.ts.map +1 -0
- package/dist/state/stores/settings.d.ts +151 -0
- package/dist/state/stores/settings.d.ts.map +1 -0
- package/dist/state/stores/theme.d.ts +87 -0
- package/dist/state/stores/theme.d.ts.map +1 -0
- package/dist/state/stores/ui.d.ts +106 -0
- package/dist/state/stores/ui.d.ts.map +1 -0
- package/dist/theme/colors/base.d.ts +61 -0
- package/dist/theme/colors/base.d.ts.map +1 -0
- package/dist/theme/colors/index.d.ts +10 -0
- package/dist/theme/colors/index.d.ts.map +1 -0
- package/dist/theme/colors/luxury.d.ts +49 -0
- package/dist/theme/colors/luxury.d.ts.map +1 -0
- package/dist/theme/components/Autocomplete.d.ts +9 -0
- package/dist/theme/components/Autocomplete.d.ts.map +1 -0
- package/dist/theme/components/Button.d.ts +33 -0
- package/dist/theme/components/Button.d.ts.map +1 -0
- package/dist/theme/components/Card.d.ts +20 -0
- package/dist/theme/components/Card.d.ts.map +1 -0
- package/dist/theme/components/Chip.d.ts +29 -0
- package/dist/theme/components/Chip.d.ts.map +1 -0
- package/dist/theme/components/DataGrid.d.ts +15 -0
- package/dist/theme/components/DataGrid.d.ts.map +1 -0
- package/dist/theme/components/DatePicker.d.ts +19 -0
- package/dist/theme/components/DatePicker.d.ts.map +1 -0
- package/dist/theme/components/Dialog.d.ts +23 -0
- package/dist/theme/components/Dialog.d.ts.map +1 -0
- package/dist/theme/components/FormControls.d.ts +44 -0
- package/dist/theme/components/FormControls.d.ts.map +1 -0
- package/dist/theme/components/Tabs.d.ts +21 -0
- package/dist/theme/components/Tabs.d.ts.map +1 -0
- package/dist/theme/components/TextField.d.ts +87 -0
- package/dist/theme/components/TextField.d.ts.map +1 -0
- package/dist/theme/components/index.d.ts +27 -0
- package/dist/theme/components/index.d.ts.map +1 -0
- package/dist/theme/components/theme-utils.d.ts +42 -0
- package/dist/theme/components/theme-utils.d.ts.map +1 -0
- package/dist/theme/create-theme.d.ts +119 -0
- package/dist/theme/create-theme.d.ts.map +1 -0
- package/dist/theme/css-variables.d.ts +42 -0
- package/dist/theme/css-variables.d.ts.map +1 -0
- package/dist/theme/custom-shadows.d.ts +58 -0
- package/dist/theme/custom-shadows.d.ts.map +1 -0
- package/dist/theme/index.d.ts +23 -1045
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +6 -3
- package/dist/theme/mixins.d.ts +334 -0
- package/dist/theme/mixins.d.ts.map +1 -0
- package/dist/theme/opacity.d.ts +51 -0
- package/dist/theme/opacity.d.ts.map +1 -0
- package/dist/theme/palette/builder.d.ts +138 -0
- package/dist/theme/palette/builder.d.ts.map +1 -0
- package/dist/theme/palette/index.d.ts +7 -0
- package/dist/theme/palette/index.d.ts.map +1 -0
- package/dist/theme/palette/overrides.d.ts +23 -0
- package/dist/theme/palette/overrides.d.ts.map +1 -0
- package/dist/theme/palette.d.ts +43 -0
- package/dist/theme/palette.d.ts.map +1 -0
- package/dist/theme/presets/arctic.d.ts +13 -0
- package/dist/theme/presets/arctic.d.ts.map +1 -0
- package/dist/theme/presets/default.d.ts +13 -0
- package/dist/theme/presets/default.d.ts.map +1 -0
- package/dist/theme/presets/dracula.d.ts +27 -0
- package/dist/theme/presets/dracula.d.ts.map +1 -0
- package/dist/theme/presets/ember.d.ts +23 -0
- package/dist/theme/presets/ember.d.ts.map +1 -0
- package/dist/theme/presets/index.d.ts +39 -0
- package/dist/theme/presets/index.d.ts.map +1 -0
- package/dist/theme/presets/luxury.d.ts +13 -0
- package/dist/theme/presets/luxury.d.ts.map +1 -0
- package/dist/theme/presets/midnight.d.ts +23 -0
- package/dist/theme/presets/midnight.d.ts.map +1 -0
- package/dist/theme/presets/minimal.d.ts +23 -0
- package/dist/theme/presets/minimal.d.ts.map +1 -0
- package/dist/theme/presets/nature.d.ts +14 -0
- package/dist/theme/presets/nature.d.ts.map +1 -0
- package/dist/theme/presets/retro.d.ts +23 -0
- package/dist/theme/presets/retro.d.ts.map +1 -0
- package/dist/theme/shadows.d.ts +61 -0
- package/dist/theme/shadows.d.ts.map +1 -0
- package/dist/theme/typography.d.ts +24 -0
- package/dist/theme/typography.d.ts.map +1 -0
- package/dist/theme/utils/color.d.ts +295 -0
- package/dist/theme/utils/color.d.ts.map +1 -0
- package/dist/theme/utils/index.d.ts +7 -0
- package/dist/theme/utils/index.d.ts.map +1 -0
- package/dist/{registry-DQcIzW2s.d.ts → types/blocks.d.ts} +30 -191
- package/dist/types/blocks.d.ts.map +1 -0
- package/dist/{components-BCGZ-Rwt.d.ts → types/components.d.ts} +17 -20
- package/dist/types/components.d.ts.map +1 -0
- package/dist/{config-Pct0n_Kq.d.ts → types/config.d.ts} +14 -16
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/index.d.ts +13 -7
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -2
- package/dist/types/registry.d.ts +158 -0
- package/dist/types/registry.d.ts.map +1 -0
- package/dist/{theme-B4Q3Bg5o.d.ts → types/theme.d.ts} +31 -34
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/ui/index.d.ts +18 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +148 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/utils/async-lock.d.ts +169 -0
- package/dist/utils/async-lock.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +80 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cookies.d.ts +68 -0
- package/dist/utils/cookies.d.ts.map +1 -0
- package/dist/utils/create-classes.d.ts +90 -0
- package/dist/utils/create-classes.d.ts.map +1 -0
- package/dist/utils/errors.d.ts +201 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/fetch-interceptor.d.ts +230 -0
- package/dist/utils/fetch-interceptor.d.ts.map +1 -0
- package/dist/utils/font.d.ts +65 -0
- package/dist/utils/font.d.ts.map +1 -0
- package/dist/utils/format-crypto.d.ts +312 -0
- package/dist/utils/format-crypto.d.ts.map +1 -0
- package/dist/utils/format-date.d.ts +240 -0
- package/dist/utils/format-date.d.ts.map +1 -0
- package/dist/utils/format-number.d.ts +245 -0
- package/dist/utils/format-number.d.ts.map +1 -0
- package/dist/utils/i18n-text.d.ts +68 -0
- package/dist/utils/i18n-text.d.ts.map +1 -0
- package/dist/utils/index.d.ts +30 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/jwt.d.ts +227 -0
- package/dist/utils/jwt.d.ts.map +1 -0
- package/dist/utils/object.d.ts +96 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/refs.d.ts +60 -0
- package/dist/utils/refs.d.ts.map +1 -0
- package/dist/utils/rtl.d.ts +75 -0
- package/dist/utils/rtl.d.ts.map +1 -0
- package/dist/utils/storage.d.ts +190 -0
- package/dist/utils/storage.d.ts.map +1 -0
- package/dist/utils/string.d.ts +216 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/template-resolver.d.ts +12 -0
- package/dist/utils/template-resolver.d.ts.map +1 -0
- package/dist/utils/toast.d.ts +25 -0
- package/dist/utils/toast.d.ts.map +1 -0
- package/dist/utils/transform-number.d.ts +108 -0
- package/dist/utils/transform-number.d.ts.map +1 -0
- package/dist/utils/url.d.ts +198 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/package.json +120 -63
- package/dist/chunk-2FYNRDXR.js.map +0 -1
- package/dist/chunk-77KIJLPP.js +0 -37
- package/dist/chunk-A2Z7NVGL.js.map +0 -1
- package/dist/chunk-BV32OJ2A.js.map +0 -1
- package/dist/chunk-DDY7TLUI.js.map +0 -1
- package/dist/chunk-HO2GKTWJ.js.map +0 -1
- package/dist/chunk-IZOIO7PA.js.map +0 -1
- package/dist/chunk-JDTC2SBY.js.map +0 -1
- package/dist/chunk-KTCWPGON.js.map +0 -1
- package/dist/chunk-MEFT6XPH.js.map +0 -1
- package/dist/chunk-SNKGGHBT.js.map +0 -1
- package/dist/chunk-VAAIHNWQ.js.map +0 -1
- package/dist/chunk-XQXGE2PW.js +0 -16793
- package/dist/chunk-XQXGE2PW.js.map +0 -1
- package/dist/chunk-XWL6J6IO.js.map +0 -1
- package/dist/chunk-XXP3ZGU6.js.map +0 -1
- package/dist/chunk-YJMAQL3S.js.map +0 -1
- package/dist/index-nmJ8Muwg.d.ts +0 -2368
- package/dist/settings-CAC0qFjS.d.ts +0 -455
- package/dist/text-transform-D6MzzF7V.d.ts +0 -165
- package/dist/use-timeout-D7U3EAtH.d.ts +0 -808
|
@@ -1,3 +1,7 @@
|
|
|
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
5
|
import { buttonClasses } from '@mui/material/Button';
|
|
2
6
|
import { iconButtonClasses } from '@mui/material/IconButton';
|
|
3
7
|
import { accordionClasses } from '@mui/material/Accordion';
|
|
@@ -22,271 +26,12 @@ import { formLabelClasses } from '@mui/material/FormLabel';
|
|
|
22
26
|
import { jsx } from 'react/jsx-runtime';
|
|
23
27
|
import { tabClasses } from '@mui/material/Tab';
|
|
24
28
|
import { autocompleteClasses } from '@mui/material/Autocomplete';
|
|
25
|
-
import
|
|
29
|
+
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
|
+
import { forwardRef } from 'react';
|
|
26
33
|
import * as locales from '@mui/material/locale';
|
|
27
34
|
|
|
28
|
-
// src/theme/utils/color.ts
|
|
29
|
-
function hexToRgb(hex) {
|
|
30
|
-
const h = hex.replace("#", "");
|
|
31
|
-
const expanded = h.length === 3 ? h.split("").map((c) => c + c).join("") : h;
|
|
32
|
-
const bigint = parseInt(expanded, 16);
|
|
33
|
-
const r = bigint >> 16 & 255;
|
|
34
|
-
const g = bigint >> 8 & 255;
|
|
35
|
-
const b = bigint & 255;
|
|
36
|
-
return [r, g, b];
|
|
37
|
-
}
|
|
38
|
-
function hexToRgbChannel(hex) {
|
|
39
|
-
const [r, g, b] = hexToRgb(hex);
|
|
40
|
-
return `${r} ${g} ${b}`;
|
|
41
|
-
}
|
|
42
|
-
function rgbToHex(r, g, b) {
|
|
43
|
-
const to2 = (n) => Math.round(n).toString(16).padStart(2, "0");
|
|
44
|
-
return `#${to2(r)}${to2(g)}${to2(b)}`.toUpperCase();
|
|
45
|
-
}
|
|
46
|
-
function hexToHsl(hex) {
|
|
47
|
-
const [r, g, b] = hexToRgb(hex);
|
|
48
|
-
const r1 = r / 255;
|
|
49
|
-
const g1 = g / 255;
|
|
50
|
-
const b1 = b / 255;
|
|
51
|
-
const max = Math.max(r1, g1, b1);
|
|
52
|
-
const min = Math.min(r1, g1, b1);
|
|
53
|
-
let h = 0;
|
|
54
|
-
let s = 0;
|
|
55
|
-
const l = (max + min) / 2;
|
|
56
|
-
const d = max - min;
|
|
57
|
-
if (d !== 0) {
|
|
58
|
-
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
59
|
-
switch (max) {
|
|
60
|
-
case r1:
|
|
61
|
-
h = (g1 - b1) / d + (g1 < b1 ? 6 : 0);
|
|
62
|
-
break;
|
|
63
|
-
case g1:
|
|
64
|
-
h = (b1 - r1) / d + 2;
|
|
65
|
-
break;
|
|
66
|
-
default:
|
|
67
|
-
h = (r1 - g1) / d + 4;
|
|
68
|
-
}
|
|
69
|
-
h /= 6;
|
|
70
|
-
}
|
|
71
|
-
return { h: h * 360, s: s * 100, l: l * 100 };
|
|
72
|
-
}
|
|
73
|
-
function hslToHex(h, s, l) {
|
|
74
|
-
const s1 = s / 100;
|
|
75
|
-
const l1 = l / 100;
|
|
76
|
-
const c = (1 - Math.abs(2 * l1 - 1)) * s1;
|
|
77
|
-
const x = c * (1 - Math.abs(h / 60 % 2 - 1));
|
|
78
|
-
const m = l1 - c / 2;
|
|
79
|
-
let r1;
|
|
80
|
-
let g1;
|
|
81
|
-
let b1;
|
|
82
|
-
if (h >= 0 && h < 60) {
|
|
83
|
-
[r1, g1, b1] = [c, x, 0];
|
|
84
|
-
} else if (h >= 60 && h < 120) {
|
|
85
|
-
[r1, g1, b1] = [x, c, 0];
|
|
86
|
-
} else if (h >= 120 && h < 180) {
|
|
87
|
-
[r1, g1, b1] = [0, c, x];
|
|
88
|
-
} else if (h >= 180 && h < 240) {
|
|
89
|
-
[r1, g1, b1] = [0, x, c];
|
|
90
|
-
} else if (h >= 240 && h < 300) {
|
|
91
|
-
[r1, g1, b1] = [x, 0, c];
|
|
92
|
-
} else {
|
|
93
|
-
[r1, g1, b1] = [c, 0, x];
|
|
94
|
-
}
|
|
95
|
-
return rgbToHex(Math.round((r1 + m) * 255), Math.round((g1 + m) * 255), Math.round((b1 + m) * 255));
|
|
96
|
-
}
|
|
97
|
-
function rgba(color, alpha) {
|
|
98
|
-
const [r, g, b] = hexToRgb(color);
|
|
99
|
-
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
100
|
-
}
|
|
101
|
-
function cssVarRgba(channel, alpha) {
|
|
102
|
-
return `rgba(${channel} / ${alpha})`;
|
|
103
|
-
}
|
|
104
|
-
function generatePaletteColorWithChannels(color) {
|
|
105
|
-
return {
|
|
106
|
-
...color,
|
|
107
|
-
lighterChannel: hexToRgbChannel(color.lighter),
|
|
108
|
-
lightChannel: hexToRgbChannel(color.light),
|
|
109
|
-
mainChannel: hexToRgbChannel(color.main),
|
|
110
|
-
darkChannel: hexToRgbChannel(color.dark),
|
|
111
|
-
darkerChannel: hexToRgbChannel(color.darker),
|
|
112
|
-
contrastTextChannel: hexToRgbChannel(color.contrastText)
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
function generateColorScaleWithChannels(scale) {
|
|
116
|
-
const shadeKeys = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
117
|
-
const channels = {};
|
|
118
|
-
for (const key of shadeKeys) {
|
|
119
|
-
const channelKey = `${key}Channel`;
|
|
120
|
-
channels[channelKey] = hexToRgbChannel(scale[key]);
|
|
121
|
-
}
|
|
122
|
-
return { ...scale, ...channels };
|
|
123
|
-
}
|
|
124
|
-
function clamp(n, min, max) {
|
|
125
|
-
return Math.max(min, Math.min(max, n));
|
|
126
|
-
}
|
|
127
|
-
function generateColorScale(baseColor) {
|
|
128
|
-
const base = hexToHsl(baseColor);
|
|
129
|
-
const tones = [
|
|
130
|
-
{ key: 50, lDelta: 40 },
|
|
131
|
-
{ key: 100, lDelta: 32 },
|
|
132
|
-
{ key: 200, lDelta: 24 },
|
|
133
|
-
{ key: 300, lDelta: 16 },
|
|
134
|
-
{ key: 400, lDelta: 8 },
|
|
135
|
-
{ key: 500, lDelta: 0 },
|
|
136
|
-
{ key: 600, lDelta: -8 },
|
|
137
|
-
{ key: 700, lDelta: -16 },
|
|
138
|
-
{ key: 800, lDelta: -24 },
|
|
139
|
-
{ key: 900, lDelta: -32 },
|
|
140
|
-
{ key: 950, lDelta: -40 }
|
|
141
|
-
];
|
|
142
|
-
const scale = {};
|
|
143
|
-
for (const { key, lDelta } of tones) {
|
|
144
|
-
const l = clamp(base.l + lDelta, 5, 95);
|
|
145
|
-
scale[key] = hslToHex(base.h, base.s, l);
|
|
146
|
-
}
|
|
147
|
-
return scale;
|
|
148
|
-
}
|
|
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
|
-
function createPaletteColorFromScale(scale, mode = "light") {
|
|
163
|
-
const mainColor = mode === "dark" ? scale[400] : scale[500];
|
|
164
|
-
const contrastText = getContrastTextColor(mainColor);
|
|
165
|
-
if (mode === "dark") {
|
|
166
|
-
return {
|
|
167
|
-
lighter: scale[950],
|
|
168
|
-
light: scale[700],
|
|
169
|
-
main: mainColor,
|
|
170
|
-
dark: scale[300],
|
|
171
|
-
darker: scale[100],
|
|
172
|
-
contrastText
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
return {
|
|
176
|
-
lighter: scale[50],
|
|
177
|
-
light: scale[400],
|
|
178
|
-
main: mainColor,
|
|
179
|
-
dark: scale[600],
|
|
180
|
-
darker: scale[900],
|
|
181
|
-
contrastText
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function invertColorScale(scale) {
|
|
185
|
-
return {
|
|
186
|
-
50: scale[950],
|
|
187
|
-
100: scale[800],
|
|
188
|
-
200: scale[700],
|
|
189
|
-
300: scale[600],
|
|
190
|
-
400: scale[500],
|
|
191
|
-
500: scale[400],
|
|
192
|
-
600: scale[300],
|
|
193
|
-
700: scale[200],
|
|
194
|
-
800: scale[100],
|
|
195
|
-
900: scale[50],
|
|
196
|
-
950: "#FFFFFF"
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function getLuminance(hex) {
|
|
200
|
-
const [r, g, b] = hexToRgb(hex).map((c) => {
|
|
201
|
-
const sRgb = c / 255;
|
|
202
|
-
return sRgb <= 0.03928 ? sRgb / 12.92 : Math.pow((sRgb + 0.055) / 1.055, 2.4);
|
|
203
|
-
});
|
|
204
|
-
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
205
|
-
}
|
|
206
|
-
function getContrastRatio(color1, color2) {
|
|
207
|
-
const l1 = getLuminance(color1);
|
|
208
|
-
const l2 = getLuminance(color2);
|
|
209
|
-
const lighter = Math.max(l1, l2);
|
|
210
|
-
const darker = Math.min(l1, l2);
|
|
211
|
-
return (lighter + 0.05) / (darker + 0.05);
|
|
212
|
-
}
|
|
213
|
-
function isLightColor(hex) {
|
|
214
|
-
return getLuminance(hex) > 0.5;
|
|
215
|
-
}
|
|
216
|
-
function getContrastText(background, lightText = "#FFFFFF", darkText = "#000000") {
|
|
217
|
-
return isLightColor(background) ? darkText : lightText;
|
|
218
|
-
}
|
|
219
|
-
function lighten(hex, amount) {
|
|
220
|
-
const hsl = hexToHsl(hex);
|
|
221
|
-
const newL = clamp(hsl.l + amount, 0, 100);
|
|
222
|
-
return hslToHex(hsl.h, hsl.s, newL);
|
|
223
|
-
}
|
|
224
|
-
function darken(hex, amount) {
|
|
225
|
-
const hsl = hexToHsl(hex);
|
|
226
|
-
const newL = clamp(hsl.l - amount, 0, 100);
|
|
227
|
-
return hslToHex(hsl.h, hsl.s, newL);
|
|
228
|
-
}
|
|
229
|
-
function mix(color1, color2, weight = 0.5) {
|
|
230
|
-
const [r1, g1, b1] = hexToRgb(color1);
|
|
231
|
-
const [r2, g2, b2] = hexToRgb(color2);
|
|
232
|
-
const w = clamp(weight, 0, 1);
|
|
233
|
-
const newR = Math.round(r1 * w + r2 * (1 - w));
|
|
234
|
-
const newG = Math.round(g1 * w + g2 * (1 - w));
|
|
235
|
-
const newB = Math.round(b1 * w + b2 * (1 - w));
|
|
236
|
-
return rgbToHex(newR, newG, newB);
|
|
237
|
-
}
|
|
238
|
-
function validateOpacity(opacity, color) {
|
|
239
|
-
const isCSSVar = (val) => val.includes("var(--");
|
|
240
|
-
const isPercentage = (val) => val.trim().endsWith("%");
|
|
241
|
-
const errors = {
|
|
242
|
-
invalid: `[varAlpha]: Invalid opacity "${opacity}" for "${color}".`,
|
|
243
|
-
range: "Must be a number between 0 and 1 (e.g., 0.48).",
|
|
244
|
-
format: 'Must be a percentage (e.g., "48%") or CSS variable (e.g., "var(--opacity)").'
|
|
245
|
-
};
|
|
246
|
-
if (typeof opacity === "string") {
|
|
247
|
-
if (isPercentage(opacity)) return opacity;
|
|
248
|
-
if (isCSSVar(opacity)) return `calc(${opacity} * 100%)`;
|
|
249
|
-
const parsed = parseFloat(opacity.trim());
|
|
250
|
-
if (!isNaN(parsed) && parsed >= 0 && parsed <= 1) {
|
|
251
|
-
return `${Number((parsed * 100).toFixed(2))}%`;
|
|
252
|
-
}
|
|
253
|
-
throw new Error(`${errors.invalid} ${errors.format}`);
|
|
254
|
-
}
|
|
255
|
-
if (typeof opacity === "number") {
|
|
256
|
-
if (opacity >= 0 && opacity <= 1) {
|
|
257
|
-
return `${Number((opacity * 100).toFixed(2))}%`;
|
|
258
|
-
}
|
|
259
|
-
throw new Error(`${errors.invalid} ${errors.range}`);
|
|
260
|
-
}
|
|
261
|
-
throw new Error(`${errors.invalid}`);
|
|
262
|
-
}
|
|
263
|
-
function varAlpha(color, opacity = 1) {
|
|
264
|
-
if (!color?.trim()) {
|
|
265
|
-
throw new Error("[varAlpha]: Color is undefined or empty!");
|
|
266
|
-
}
|
|
267
|
-
const isUnsupported = color.startsWith("#") || color.startsWith("rgb(") || color.startsWith("rgba(") || !color.includes("var") && color.includes("Channel");
|
|
268
|
-
if (isUnsupported) {
|
|
269
|
-
throw new Error(
|
|
270
|
-
[
|
|
271
|
-
`[varAlpha]: Unsupported color format "${color}"`,
|
|
272
|
-
"\u2705 Supported formats:",
|
|
273
|
-
' - RGB channels: "0 184 217"',
|
|
274
|
-
' - CSS variables: "var(--palette-primary-mainChannel)"',
|
|
275
|
-
" - currentColor",
|
|
276
|
-
"\u274C Unsupported formats:",
|
|
277
|
-
' - Hex: "#00B8D9"',
|
|
278
|
-
' - RGB: "rgb(0, 184, 217)"',
|
|
279
|
-
' - RGBA: "rgba(0, 184, 217, 1)"'
|
|
280
|
-
].join("\n")
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
const alpha = validateOpacity(opacity, color);
|
|
284
|
-
if (color.toLowerCase() === "currentcolor") {
|
|
285
|
-
return `color-mix(in srgb, currentColor ${alpha}, transparent)`;
|
|
286
|
-
}
|
|
287
|
-
return `rgba(${color} / ${alpha})`;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
35
|
// src/theme/colors/base.ts
|
|
291
36
|
var grey = {
|
|
292
37
|
50: "#F7FAFC",
|
|
@@ -395,22 +140,9 @@ var baseColors = {
|
|
|
395
140
|
};
|
|
396
141
|
|
|
397
142
|
// 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
143
|
function buildPaletteColor(scale, mode = "light") {
|
|
412
144
|
const mainColor = mode === "dark" ? scale[400] : scale[500];
|
|
413
|
-
const contrastText =
|
|
145
|
+
const contrastText = getContrastText(mainColor, "#FFFFFF", "#212121");
|
|
414
146
|
const color = mode === "dark" ? {
|
|
415
147
|
lighter: scale[950],
|
|
416
148
|
light: scale[700],
|
|
@@ -814,15 +546,19 @@ function createButtonOverrides(config) {
|
|
|
814
546
|
// outlinedSize* class slots were removed in MUI v9 in favour
|
|
815
547
|
// of the `variants` array on the component override. See
|
|
816
548
|
// https://mui.com/material-ui/migration/upgrade-to-v9/.
|
|
549
|
+
// Each native slot contains the supplied icon root, which may be a
|
|
550
|
+
// custom wrapper. Ignore SSR style elements instead of relying on child
|
|
551
|
+
// position. The public slot class keeps this rule authoritative over
|
|
552
|
+
// MUI's size-specific icon selectors without affecting nested content.
|
|
817
553
|
startIcon: {
|
|
818
554
|
marginRight: 4,
|
|
819
|
-
[
|
|
555
|
+
[`&.${buttonClasses.startIcon} > :not(style)`]: {
|
|
820
556
|
fontSize: 16
|
|
821
557
|
}
|
|
822
558
|
},
|
|
823
559
|
endIcon: {
|
|
824
560
|
marginLeft: 4,
|
|
825
|
-
[
|
|
561
|
+
[`&.${buttonClasses.endIcon} > :not(style)`]: {
|
|
826
562
|
fontSize: 16
|
|
827
563
|
}
|
|
828
564
|
}
|
|
@@ -848,330 +584,6 @@ function createButtonGroupOverrides(config) {
|
|
|
848
584
|
}
|
|
849
585
|
};
|
|
850
586
|
}
|
|
851
|
-
|
|
852
|
-
// src/theme/mixins.ts
|
|
853
|
-
function getHoverStyles(hoverOption, hoverBase) {
|
|
854
|
-
if (!hoverOption) return {};
|
|
855
|
-
return {
|
|
856
|
-
"&:hover": {
|
|
857
|
-
...hoverBase,
|
|
858
|
-
...typeof hoverOption === "object" ? hoverOption : {}
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
|
-
}
|
|
862
|
-
function filledStyles(theme, colorKey, options) {
|
|
863
|
-
if (!colorKey) {
|
|
864
|
-
if (process.env.NODE_ENV !== "production") {
|
|
865
|
-
console.warn("[Prism filledStyles] Missing colorKey parameter.");
|
|
866
|
-
}
|
|
867
|
-
return {};
|
|
868
|
-
}
|
|
869
|
-
const palette = theme.vars?.palette || theme.palette;
|
|
870
|
-
const grey2 = palette.grey;
|
|
871
|
-
if (colorKey === "default") {
|
|
872
|
-
const base2 = {
|
|
873
|
-
color: grey2[800],
|
|
874
|
-
backgroundColor: grey2[300]
|
|
875
|
-
};
|
|
876
|
-
const hover2 = getHoverStyles(options?.hover, {
|
|
877
|
-
backgroundColor: grey2[400]
|
|
878
|
-
});
|
|
879
|
-
return { ...base2, ...hover2 };
|
|
880
|
-
}
|
|
881
|
-
if (colorKey === "inherit") {
|
|
882
|
-
const base2 = {
|
|
883
|
-
color: palette.common.white,
|
|
884
|
-
backgroundColor: grey2[800]
|
|
885
|
-
};
|
|
886
|
-
const hover2 = getHoverStyles(options?.hover, {
|
|
887
|
-
backgroundColor: grey2[700]
|
|
888
|
-
});
|
|
889
|
-
return { ...base2, ...hover2 };
|
|
890
|
-
}
|
|
891
|
-
if (colorKey === "white" || colorKey === "black") {
|
|
892
|
-
const oppositeColor = colorKey === "white" ? "black" : "white";
|
|
893
|
-
const base2 = {
|
|
894
|
-
color: palette.common[oppositeColor],
|
|
895
|
-
backgroundColor: palette.common[colorKey]
|
|
896
|
-
};
|
|
897
|
-
const hover2 = getHoverStyles(options?.hover, {
|
|
898
|
-
opacity: 0.8
|
|
899
|
-
});
|
|
900
|
-
return { ...base2, ...hover2 };
|
|
901
|
-
}
|
|
902
|
-
const paletteColor = palette[colorKey];
|
|
903
|
-
const base = {
|
|
904
|
-
color: paletteColor.contrastText,
|
|
905
|
-
backgroundColor: paletteColor.main
|
|
906
|
-
};
|
|
907
|
-
const hover = getHoverStyles(options?.hover, {
|
|
908
|
-
backgroundColor: paletteColor.dark
|
|
909
|
-
});
|
|
910
|
-
return { ...base, ...hover };
|
|
911
|
-
}
|
|
912
|
-
function softStyles(theme, colorKey, options) {
|
|
913
|
-
if (!colorKey) {
|
|
914
|
-
if (process.env.NODE_ENV !== "production") {
|
|
915
|
-
console.warn("[Prism softStyles] Missing colorKey parameter.");
|
|
916
|
-
}
|
|
917
|
-
return {};
|
|
918
|
-
}
|
|
919
|
-
const palette = theme.vars?.palette || theme.palette;
|
|
920
|
-
const grey2 = palette.grey;
|
|
921
|
-
if (colorKey === "default") {
|
|
922
|
-
return {
|
|
923
|
-
...filledStyles(theme, "default", options),
|
|
924
|
-
boxShadow: "none"
|
|
925
|
-
};
|
|
926
|
-
}
|
|
927
|
-
if (colorKey === "inherit") {
|
|
928
|
-
const greyChannel = grey2["500Channel"] || "145, 158, 171";
|
|
929
|
-
const base2 = {
|
|
930
|
-
boxShadow: "none",
|
|
931
|
-
backgroundColor: varAlpha(greyChannel, 0.16)
|
|
932
|
-
};
|
|
933
|
-
const hover2 = getHoverStyles(options?.hover, {
|
|
934
|
-
backgroundColor: varAlpha(greyChannel, 0.32)
|
|
935
|
-
});
|
|
936
|
-
return { ...base2, ...hover2 };
|
|
937
|
-
}
|
|
938
|
-
if (colorKey === "white" || colorKey === "black") {
|
|
939
|
-
const base2 = {
|
|
940
|
-
boxShadow: "none",
|
|
941
|
-
color: palette.common[colorKey],
|
|
942
|
-
backgroundColor: varAlpha("currentColor", 0.08)
|
|
943
|
-
};
|
|
944
|
-
const hover2 = getHoverStyles(options?.hover, {
|
|
945
|
-
backgroundColor: varAlpha("currentColor", 0.16)
|
|
946
|
-
});
|
|
947
|
-
return { ...base2, ...hover2 };
|
|
948
|
-
}
|
|
949
|
-
const paletteColor = palette[colorKey];
|
|
950
|
-
const mainChannel = paletteColor.mainChannel || palette.primary.mainChannel || "51, 133, 240";
|
|
951
|
-
const base = {
|
|
952
|
-
boxShadow: "none",
|
|
953
|
-
color: paletteColor.dark,
|
|
954
|
-
backgroundColor: varAlpha(mainChannel, 0.16)
|
|
955
|
-
};
|
|
956
|
-
const hover = getHoverStyles(options?.hover, {
|
|
957
|
-
backgroundColor: varAlpha(mainChannel, 0.32)
|
|
958
|
-
});
|
|
959
|
-
return { ...base, ...hover };
|
|
960
|
-
}
|
|
961
|
-
function bgGradient(options) {
|
|
962
|
-
const { images, sizes, positions, colors, direction = "to bottom" } = options;
|
|
963
|
-
if (colors && colors.length > 0) {
|
|
964
|
-
return {
|
|
965
|
-
background: `linear-gradient(${direction}, ${colors.join(", ")})`
|
|
966
|
-
};
|
|
967
|
-
}
|
|
968
|
-
if (images && images.length > 0) {
|
|
969
|
-
return {
|
|
970
|
-
backgroundImage: images.join(", "),
|
|
971
|
-
backgroundSize: sizes?.join(", ") || "cover",
|
|
972
|
-
backgroundPosition: positions?.join(", ") || "center",
|
|
973
|
-
backgroundRepeat: "no-repeat"
|
|
974
|
-
};
|
|
975
|
-
}
|
|
976
|
-
return {};
|
|
977
|
-
}
|
|
978
|
-
function bgBlur(options) {
|
|
979
|
-
const { blur = 20, color = "rgba(255, 255, 255, 0.8)" } = options;
|
|
980
|
-
return {
|
|
981
|
-
backdropFilter: `blur(${blur}px)`,
|
|
982
|
-
WebkitBackdropFilter: `blur(${blur}px)`,
|
|
983
|
-
backgroundColor: color
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
function paperStyles(theme, options) {
|
|
987
|
-
const { blur = 20, color, dropdown } = options ?? {};
|
|
988
|
-
const palette = theme.vars?.palette || theme.palette;
|
|
989
|
-
const baseStyles = {
|
|
990
|
-
backdropFilter: `blur(${blur}px)`,
|
|
991
|
-
WebkitBackdropFilter: `blur(${blur}px)`,
|
|
992
|
-
backgroundColor: color ?? varAlpha("255, 255, 255", 0.9)
|
|
993
|
-
};
|
|
994
|
-
if (dropdown) {
|
|
995
|
-
const customShadows = theme.customShadows;
|
|
996
|
-
const greyChannel = palette.grey["500Channel"] || "145, 158, 171";
|
|
997
|
-
return {
|
|
998
|
-
...baseStyles,
|
|
999
|
-
padding: theme.spacing(0.5),
|
|
1000
|
-
boxShadow: customShadows?.dropdown || `0 0 2px 0 rgba(${greyChannel}, 0.24), -20px 20px 40px -4px rgba(${greyChannel}, 0.24)`,
|
|
1001
|
-
borderRadius: `${Number(theme.shape.borderRadius) * 1.25}px`
|
|
1002
|
-
};
|
|
1003
|
-
}
|
|
1004
|
-
return baseStyles;
|
|
1005
|
-
}
|
|
1006
|
-
function menuItemStyles(theme) {
|
|
1007
|
-
const palette = theme.vars?.palette || theme.palette;
|
|
1008
|
-
return {
|
|
1009
|
-
...theme.typography.body2,
|
|
1010
|
-
padding: theme.spacing(0.75, 1),
|
|
1011
|
-
borderRadius: Number(theme.shape.borderRadius) * 0.75,
|
|
1012
|
-
"&:not(:last-of-type)": {
|
|
1013
|
-
marginBottom: 4
|
|
1014
|
-
},
|
|
1015
|
-
"&.Mui-selected": {
|
|
1016
|
-
fontWeight: theme.typography.fontWeightMedium,
|
|
1017
|
-
backgroundColor: palette.action.selected,
|
|
1018
|
-
"&:hover": { backgroundColor: palette.action.hover }
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
}
|
|
1022
|
-
function maxLine(options) {
|
|
1023
|
-
const { lines, lineHeight = 1.5 } = options;
|
|
1024
|
-
return {
|
|
1025
|
-
overflow: "hidden",
|
|
1026
|
-
display: "-webkit-box",
|
|
1027
|
-
WebkitBoxOrient: "vertical",
|
|
1028
|
-
WebkitLineClamp: lines,
|
|
1029
|
-
textOverflow: "ellipsis",
|
|
1030
|
-
...lineHeight && { lineHeight }
|
|
1031
|
-
};
|
|
1032
|
-
}
|
|
1033
|
-
function textGradient(direction, ...colors) {
|
|
1034
|
-
return {
|
|
1035
|
-
background: `linear-gradient(${direction}, ${colors.join(", ")})`,
|
|
1036
|
-
WebkitBackgroundClip: "text",
|
|
1037
|
-
WebkitTextFillColor: "transparent",
|
|
1038
|
-
backgroundClip: "text",
|
|
1039
|
-
textFillColor: "transparent",
|
|
1040
|
-
display: "inline-block"
|
|
1041
|
-
};
|
|
1042
|
-
}
|
|
1043
|
-
function borderGradient(options) {
|
|
1044
|
-
const { color = "linear-gradient(135deg, #FF5630, #00AB55)", borderWidth = 2, borderRadius = 0 } = options;
|
|
1045
|
-
return {
|
|
1046
|
-
position: "relative",
|
|
1047
|
-
border: "none",
|
|
1048
|
-
borderRadius,
|
|
1049
|
-
"&::before": {
|
|
1050
|
-
content: '""',
|
|
1051
|
-
position: "absolute",
|
|
1052
|
-
inset: 0,
|
|
1053
|
-
borderRadius: "inherit",
|
|
1054
|
-
padding: borderWidth,
|
|
1055
|
-
background: color,
|
|
1056
|
-
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
|
|
1057
|
-
WebkitMaskComposite: "xor",
|
|
1058
|
-
maskComposite: "exclude",
|
|
1059
|
-
pointerEvents: "none"
|
|
1060
|
-
}
|
|
1061
|
-
};
|
|
1062
|
-
}
|
|
1063
|
-
function scrollbarStyles(theme) {
|
|
1064
|
-
const palette = theme.vars?.palette || theme.palette;
|
|
1065
|
-
const greyChannel = palette.grey["500Channel"] || "145, 158, 171";
|
|
1066
|
-
return {
|
|
1067
|
-
scrollbarWidth: "thin",
|
|
1068
|
-
scrollbarColor: `${varAlpha(greyChannel, 0.4)} ${varAlpha(greyChannel, 0.08)}`,
|
|
1069
|
-
"&::-webkit-scrollbar": {
|
|
1070
|
-
width: 6,
|
|
1071
|
-
height: 6
|
|
1072
|
-
},
|
|
1073
|
-
"&::-webkit-scrollbar-track": {
|
|
1074
|
-
backgroundColor: "transparent"
|
|
1075
|
-
},
|
|
1076
|
-
"&::-webkit-scrollbar-thumb": {
|
|
1077
|
-
backgroundColor: varAlpha(greyChannel, 0.4),
|
|
1078
|
-
borderRadius: 3,
|
|
1079
|
-
"&:hover": {
|
|
1080
|
-
backgroundColor: varAlpha(greyChannel, 0.6)
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
};
|
|
1084
|
-
}
|
|
1085
|
-
var mixins = {
|
|
1086
|
-
toolbar: {
|
|
1087
|
-
minHeight: 56,
|
|
1088
|
-
"@media (min-width:0px)": {
|
|
1089
|
-
"@media (orientation: landscape)": {
|
|
1090
|
-
minHeight: 48
|
|
1091
|
-
}
|
|
1092
|
-
},
|
|
1093
|
-
"@media (min-width:600px)": {
|
|
1094
|
-
minHeight: 64
|
|
1095
|
-
}
|
|
1096
|
-
},
|
|
1097
|
-
// Extended mixins
|
|
1098
|
-
hideScrollX: {
|
|
1099
|
-
msOverflowStyle: "none",
|
|
1100
|
-
scrollbarWidth: "none",
|
|
1101
|
-
overflowX: "auto",
|
|
1102
|
-
"&::-webkit-scrollbar": { display: "none" }
|
|
1103
|
-
},
|
|
1104
|
-
hideScrollY: {
|
|
1105
|
-
msOverflowStyle: "none",
|
|
1106
|
-
scrollbarWidth: "none",
|
|
1107
|
-
overflowY: "auto",
|
|
1108
|
-
"&::-webkit-scrollbar": { display: "none" }
|
|
1109
|
-
},
|
|
1110
|
-
// Style functions (attached at theme creation)
|
|
1111
|
-
bgBlur,
|
|
1112
|
-
bgGradient,
|
|
1113
|
-
maxLine,
|
|
1114
|
-
softStyles,
|
|
1115
|
-
filledStyles,
|
|
1116
|
-
paperStyles,
|
|
1117
|
-
menuItemStyles,
|
|
1118
|
-
varAlpha,
|
|
1119
|
-
textGradient,
|
|
1120
|
-
borderGradient,
|
|
1121
|
-
scrollbarStyles
|
|
1122
|
-
};
|
|
1123
|
-
var hideScrollbarMixin = {
|
|
1124
|
-
scrollbarWidth: "none",
|
|
1125
|
-
msOverflowStyle: "none",
|
|
1126
|
-
"&::-webkit-scrollbar": {
|
|
1127
|
-
display: "none"
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
|
-
function customScrollbarMixin(theme) {
|
|
1131
|
-
const palette = theme.vars?.palette || theme.palette;
|
|
1132
|
-
const greyChannel = palette.grey["500Channel"] || "145, 158, 171";
|
|
1133
|
-
return {
|
|
1134
|
-
scrollbarWidth: "thin",
|
|
1135
|
-
scrollbarColor: `${varAlpha(greyChannel, 0.4)} ${varAlpha(greyChannel, 0.08)}`,
|
|
1136
|
-
"&::-webkit-scrollbar": {
|
|
1137
|
-
width: 6,
|
|
1138
|
-
height: 6
|
|
1139
|
-
},
|
|
1140
|
-
"&::-webkit-scrollbar-track": {
|
|
1141
|
-
backgroundColor: "transparent"
|
|
1142
|
-
},
|
|
1143
|
-
"&::-webkit-scrollbar-thumb": {
|
|
1144
|
-
backgroundColor: varAlpha(greyChannel, 0.4),
|
|
1145
|
-
borderRadius: 3,
|
|
1146
|
-
"&:hover": {
|
|
1147
|
-
backgroundColor: varAlpha(greyChannel, 0.6)
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
|
-
}
|
|
1152
|
-
var textEllipsisMixin = {
|
|
1153
|
-
overflow: "hidden",
|
|
1154
|
-
textOverflow: "ellipsis",
|
|
1155
|
-
whiteSpace: "nowrap"
|
|
1156
|
-
};
|
|
1157
|
-
function multiLineEllipsisMixin(lines) {
|
|
1158
|
-
return {
|
|
1159
|
-
overflow: "hidden",
|
|
1160
|
-
display: "-webkit-box",
|
|
1161
|
-
WebkitBoxOrient: "vertical",
|
|
1162
|
-
WebkitLineClamp: lines
|
|
1163
|
-
};
|
|
1164
|
-
}
|
|
1165
|
-
var focusRingMixin = {
|
|
1166
|
-
"&:focus-visible": {
|
|
1167
|
-
outline: "none",
|
|
1168
|
-
boxShadow: "0 0 0 2px var(--prism-background, #FFF), 0 0 0 4px var(--prism-primary, #3385F0)"
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
|
-
var glassMixin = {
|
|
1172
|
-
backdropFilter: "blur(20px)",
|
|
1173
|
-
backgroundColor: "var(--prism-vibrant-overlay, rgba(255, 255, 255, 0.7))"
|
|
1174
|
-
};
|
|
1175
587
|
var chipColors = ["primary", "secondary", "info", "success", "warning", "error"];
|
|
1176
588
|
var softVariants2 = [
|
|
1177
589
|
...chipColors.map((color) => ({
|
|
@@ -1494,9 +906,21 @@ function createOutlinedInputOverrides(config) {
|
|
|
1494
906
|
...outlinedInputStyles.root(theme, borderRadius),
|
|
1495
907
|
variants: outlinedInputVariants.root
|
|
1496
908
|
}),
|
|
1497
|
-
|
|
909
|
+
// MUI v9 narrowed `styleOverrides[slot]` to `CSSObject` and
|
|
910
|
+
// hoisted the `variants` API to the component-level
|
|
911
|
+
// `variants` field. We still emit the variants on the slot
|
|
912
|
+
// because (a) MUI's styled engine honours them there at
|
|
913
|
+
// runtime, (b) per-slot variant styles wouldn't translate
|
|
914
|
+
// cleanly to component-level (each entry would need a
|
|
915
|
+
// descendant selector targeting the slot class).
|
|
916
|
+
//
|
|
917
|
+
// The cast escapes the narrowed type without lying about
|
|
918
|
+
// runtime shape — the engine reads `variants` from the
|
|
919
|
+
// returned object regardless of where TypeScript thinks it
|
|
920
|
+
// belongs.
|
|
921
|
+
input: () => ({
|
|
1498
922
|
variants: [...outlinedInputVariants.input, ...multilineInputVariants]
|
|
1499
|
-
},
|
|
923
|
+
}),
|
|
1500
924
|
notchedOutline: ({ theme }) => outlinedInputStyles.notchedOutline(theme)
|
|
1501
925
|
}
|
|
1502
926
|
};
|
|
@@ -1574,9 +998,10 @@ function createFilledInputOverrides(config) {
|
|
|
1574
998
|
...filledInputStyles.root(theme, borderRadius),
|
|
1575
999
|
variants: filledInputVariants.root
|
|
1576
1000
|
}),
|
|
1577
|
-
|
|
1001
|
+
// See the OutlinedInput counterpart above for the rationale.
|
|
1002
|
+
input: () => ({
|
|
1578
1003
|
variants: [...filledInputVariants.input, ...multilineInputVariants]
|
|
1579
|
-
}
|
|
1004
|
+
})
|
|
1580
1005
|
}
|
|
1581
1006
|
};
|
|
1582
1007
|
}
|
|
@@ -1634,13 +1059,13 @@ function createFormHelperTextOverrides(_config) {
|
|
|
1634
1059
|
}
|
|
1635
1060
|
};
|
|
1636
1061
|
}
|
|
1637
|
-
function
|
|
1062
|
+
function DefaultCheckboxIcon(props) {
|
|
1638
1063
|
return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z" }) });
|
|
1639
1064
|
}
|
|
1640
|
-
function
|
|
1065
|
+
function DefaultCheckboxCheckedIcon(props) {
|
|
1641
1066
|
return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z" }) });
|
|
1642
1067
|
}
|
|
1643
|
-
function
|
|
1068
|
+
function DefaultCheckboxIndeterminateIcon(props) {
|
|
1644
1069
|
return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z" }) });
|
|
1645
1070
|
}
|
|
1646
1071
|
var SWITCH_DIMENSIONS = {
|
|
@@ -1851,6 +1276,9 @@ function createFormControlOverrides(_config) {
|
|
|
1851
1276
|
}
|
|
1852
1277
|
};
|
|
1853
1278
|
}
|
|
1279
|
+
var CheckboxIcon = createPrismIcon("checkbox", DefaultCheckboxIcon);
|
|
1280
|
+
var CheckboxCheckedIcon = createPrismIcon("checkboxChecked", DefaultCheckboxCheckedIcon);
|
|
1281
|
+
var CheckboxIndeterminateIcon = createPrismIcon("checkboxMixed", DefaultCheckboxIndeterminateIcon);
|
|
1854
1282
|
var tabsVariants = {
|
|
1855
1283
|
root: [
|
|
1856
1284
|
{
|
|
@@ -2109,8 +1537,6 @@ function createAutocompleteOverrides(config) {
|
|
|
2109
1537
|
}
|
|
2110
1538
|
};
|
|
2111
1539
|
}
|
|
2112
|
-
|
|
2113
|
-
// src/theme/components/DataGrid.ts
|
|
2114
1540
|
function createDataGridOverrides(config) {
|
|
2115
1541
|
const { borderRadius } = config;
|
|
2116
1542
|
return {
|
|
@@ -2322,6 +1748,37 @@ function componentOverrides(config) {
|
|
|
2322
1748
|
// =========================================================================
|
|
2323
1749
|
...createCardOverrides(config),
|
|
2324
1750
|
// =========================================================================
|
|
1751
|
+
// LAYOUT
|
|
1752
|
+
// =========================================================================
|
|
1753
|
+
/**
|
|
1754
|
+
* `Stack` spaces its children with CSS `gap`, never with margins.
|
|
1755
|
+
*
|
|
1756
|
+
* MUI's own default (`useFlexGap: false`) gives every child but the first
|
|
1757
|
+
* a margin on the spacing side, and resets every child's own margin to 0.
|
|
1758
|
+
* Both halves of that were measured in this codebase on 2026-09-22:
|
|
1759
|
+
*
|
|
1760
|
+
* - when a row wraps, the first item of every wrapped line keeps its
|
|
1761
|
+
* margin and the first item of the first line does not, so the first
|
|
1762
|
+
* line sits one gap to the left of the rest. The release console's
|
|
1763
|
+
* gate strip showed it; the same shape — a wrapping `Stack` with
|
|
1764
|
+
* `spacing` — was in 146 places across the console, prism and the
|
|
1765
|
+
* portal;
|
|
1766
|
+
* - a child's own margin is silently discarded. `ml: 'auto'` does not
|
|
1767
|
+
* push, `mt: -1.5` does not pull a subtitle up, `FormControlLabel`
|
|
1768
|
+
* loses the -11px that aligns its control with the text around it —
|
|
1769
|
+
* which is why `ml: 'auto !important'` appears in both apps, and why
|
|
1770
|
+
* eight `ml: 'auto'` in the portal did nothing at all.
|
|
1771
|
+
*
|
|
1772
|
+
* `gap` has neither problem, every browser the apps support implements it,
|
|
1773
|
+
* and MUI recommends turning it on here, globally. A child's margin now
|
|
1774
|
+
* ADDS to the gap, as margins do everywhere else in CSS.
|
|
1775
|
+
*/
|
|
1776
|
+
MuiStack: {
|
|
1777
|
+
defaultProps: {
|
|
1778
|
+
useFlexGap: true
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
// =========================================================================
|
|
2325
1782
|
// PAPER & SURFACES
|
|
2326
1783
|
// =========================================================================
|
|
2327
1784
|
MuiPaper: {
|
|
@@ -2401,27 +1858,18 @@ function componentOverrides(config) {
|
|
|
2401
1858
|
},
|
|
2402
1859
|
styleOverrides: {
|
|
2403
1860
|
root: ({ theme }) => ({
|
|
1861
|
+
// Every disclosure owns its full outline and all four corners.
|
|
1862
|
+
// Use MUI's native rounded state to override its edge-only radii,
|
|
1863
|
+
// independent of siblings (including Emotion's SSR style tags).
|
|
1864
|
+
// The square prop remains authoritative when rounded is absent.
|
|
2404
1865
|
border: `1px solid ${paletteVar(theme, "divider")}`,
|
|
2405
|
-
borderRadius,
|
|
1866
|
+
borderRadius: 0,
|
|
1867
|
+
[`&.${accordionClasses.rounded}`]: {
|
|
1868
|
+
borderRadius
|
|
1869
|
+
},
|
|
2406
1870
|
"&::before": {
|
|
2407
1871
|
display: "none"
|
|
2408
1872
|
},
|
|
2409
|
-
"&:first-of-type": {
|
|
2410
|
-
borderTopLeftRadius: borderRadius,
|
|
2411
|
-
borderTopRightRadius: borderRadius
|
|
2412
|
-
},
|
|
2413
|
-
"&:last-of-type": {
|
|
2414
|
-
borderBottomLeftRadius: borderRadius,
|
|
2415
|
-
borderBottomRightRadius: borderRadius
|
|
2416
|
-
},
|
|
2417
|
-
"&:not(:last-of-type)": {
|
|
2418
|
-
borderBottom: 0
|
|
2419
|
-
},
|
|
2420
|
-
[`&.${accordionClasses.expanded}`]: {
|
|
2421
|
-
margin: 0,
|
|
2422
|
-
"&:first-of-type": { marginTop: 0 },
|
|
2423
|
-
"&:last-of-type": { marginBottom: 0 }
|
|
2424
|
-
},
|
|
2425
1873
|
[`&.${accordionClasses.disabled}`]: {
|
|
2426
1874
|
backgroundColor: "transparent"
|
|
2427
1875
|
}
|
|
@@ -2431,6 +1879,7 @@ function componentOverrides(config) {
|
|
|
2431
1879
|
MuiAccordionSummary: {
|
|
2432
1880
|
styleOverrides: {
|
|
2433
1881
|
root: ({ theme }) => ({
|
|
1882
|
+
...theme.typography.body2,
|
|
2434
1883
|
minHeight: 48 * dm,
|
|
2435
1884
|
padding: `0 ${16 * dm}px`,
|
|
2436
1885
|
fontWeight: 500,
|
|
@@ -2442,13 +1891,18 @@ function componentOverrides(config) {
|
|
|
2442
1891
|
}
|
|
2443
1892
|
}),
|
|
2444
1893
|
content: {
|
|
1894
|
+
alignItems: "center",
|
|
1895
|
+
gap: 8 * dm,
|
|
1896
|
+
minWidth: 0,
|
|
2445
1897
|
margin: `${12 * dm}px 0`,
|
|
2446
1898
|
[`&.${accordionSummaryClasses.expanded}`]: {
|
|
2447
1899
|
margin: `${12 * dm}px 0`
|
|
2448
1900
|
}
|
|
2449
1901
|
},
|
|
2450
1902
|
expandIconWrapper: ({ theme }) => ({
|
|
2451
|
-
color: paletteVar(theme, "text.secondary")
|
|
1903
|
+
color: paletteVar(theme, "text.secondary"),
|
|
1904
|
+
flexShrink: 0,
|
|
1905
|
+
marginInlineStart: 8 * dm
|
|
2452
1906
|
})
|
|
2453
1907
|
}
|
|
2454
1908
|
},
|
|
@@ -2619,7 +2073,7 @@ function componentOverrides(config) {
|
|
|
2619
2073
|
root: ({ theme }) => ({
|
|
2620
2074
|
[`& .${tableCellClasses.head}`]: {
|
|
2621
2075
|
fontWeight: 600,
|
|
2622
|
-
backgroundColor: theme.vars?.palette.background.neutral || theme.palette.
|
|
2076
|
+
backgroundColor: theme.vars?.palette.background.neutral || theme.palette.background.neutral || paletteVar(theme, "background.paper"),
|
|
2623
2077
|
color: paletteVar(theme, "text.secondary")
|
|
2624
2078
|
}
|
|
2625
2079
|
})
|
|
@@ -2703,15 +2157,13 @@ function componentOverrides(config) {
|
|
|
2703
2157
|
styleOverrides: {
|
|
2704
2158
|
root: ({ theme }) => ({
|
|
2705
2159
|
borderRadius,
|
|
2706
|
-
variants: ["success", "error", "warning", "info"].map(
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
})
|
|
2714
|
-
)
|
|
2160
|
+
variants: ["success", "error", "warning", "info"].map((severity) => ({
|
|
2161
|
+
props: { severity, variant: "standard" },
|
|
2162
|
+
style: {
|
|
2163
|
+
backgroundColor: `rgba(${getColorChannel(theme, severity)} / 0.08)`,
|
|
2164
|
+
color: theme.vars?.palette[severity].dark || theme.palette[severity].dark
|
|
2165
|
+
}
|
|
2166
|
+
}))
|
|
2715
2167
|
})
|
|
2716
2168
|
}
|
|
2717
2169
|
},
|
|
@@ -2939,7 +2391,12 @@ function componentOverrides(config) {
|
|
|
2939
2391
|
borderRadius: borderRadius - 2,
|
|
2940
2392
|
margin: 2,
|
|
2941
2393
|
padding: `${8 * dm}px ${12 * dm}px`,
|
|
2942
|
-
|
|
2394
|
+
// `:not(:last-child)` — element-tag-agnostic position
|
|
2395
|
+
// selector. The `:last-of-type` form was wrong when a
|
|
2396
|
+
// <Divider /> ended the list (the previous MenuItem
|
|
2397
|
+
// became the last-of-type MenuItem and kept its
|
|
2398
|
+
// margin-bottom, creating an inconsistent gap).
|
|
2399
|
+
"&:not(:last-child)": {
|
|
2943
2400
|
marginBottom: 4
|
|
2944
2401
|
},
|
|
2945
2402
|
"&.Mui-selected": {
|
|
@@ -3014,7 +2471,18 @@ function componentOverrides(config) {
|
|
|
3014
2471
|
border: `1px solid ${paletteVar(theme, "divider")}`,
|
|
3015
2472
|
[`&.${toggleButtonClasses.selected}`]: {
|
|
3016
2473
|
backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.08)`,
|
|
3017
|
-
|
|
2474
|
+
// `currentColor` makes the border track the foreground
|
|
2475
|
+
// colour set on the selected state — by default that
|
|
2476
|
+
// foreground is primary (set on the same rule below),
|
|
2477
|
+
// but consumers that override `color` via the MUI
|
|
2478
|
+
// `color` prop or an inline `sx` (e.g. /admin/messaging
|
|
2479
|
+
// settings sets per-button OPT_COLOR for success /
|
|
2480
|
+
// warning / error / info modes) get a border that
|
|
2481
|
+
// matches without needing to also override the border
|
|
2482
|
+
// shorthand. Defeats the prior "half-and-half" bug
|
|
2483
|
+
// where prism forced primary on left+top while the
|
|
2484
|
+
// consumer's sx painted right+bottom in OPT_COLOR.
|
|
2485
|
+
borderColor: "currentColor",
|
|
3018
2486
|
color: paletteVar(theme, "primary.main"),
|
|
3019
2487
|
"&:hover": {
|
|
3020
2488
|
backgroundColor: `rgba(${getColorChannel(theme, "primary")} / 0.16)`
|
|
@@ -3037,37 +2505,69 @@ function componentOverrides(config) {
|
|
|
3037
2505
|
}
|
|
3038
2506
|
}
|
|
3039
2507
|
},
|
|
3040
|
-
//
|
|
3041
|
-
//
|
|
3042
|
-
//
|
|
3043
|
-
//
|
|
2508
|
+
// ToggleButtonGroup is a single connected segmented control,
|
|
2509
|
+
// not a row of independent buttons. The canonical MUI v9
|
|
2510
|
+
// implementation tags non-edge children with the
|
|
2511
|
+
// `firstButton / middleButton / lastButton` classes (replacing
|
|
2512
|
+
// the deprecated `:not(:first-of-type)` sibling pattern from
|
|
2513
|
+
// MUI v5) and uses an overlap-and-collapse trick:
|
|
2514
|
+
//
|
|
2515
|
+
// horizontal: margin-left: -1; border-left: 1px solid transparent
|
|
2516
|
+
// border-top/bottom-left-radius: 0
|
|
2517
|
+
// vertical: margin-top: -1; border-top: 1px solid transparent
|
|
2518
|
+
// border-top-left/right-radius: 0
|
|
2519
|
+
//
|
|
2520
|
+
// So the visible seam between segments is the *previous*
|
|
2521
|
+
// button's right (or bottom) border, painted through a
|
|
2522
|
+
// transparent slot on the next button.
|
|
3044
2523
|
//
|
|
3045
|
-
// The
|
|
3046
|
-
//
|
|
3047
|
-
//
|
|
3048
|
-
//
|
|
3049
|
-
//
|
|
2524
|
+
// The bug the user hit: the selected button's left edge stayed
|
|
2525
|
+
// transparent, so the indigo outline looked broken on its
|
|
2526
|
+
// joining side. The fix is a single rule — lift the selected
|
|
2527
|
+
// segment above its neighbours with z-index, and restate the
|
|
2528
|
+
// seam-edge as primary so it overpaints the divider that the
|
|
2529
|
+
// previous sibling owns. We deliberately do NOT force `gap` or
|
|
2530
|
+
// a per-button left border (the historical prism override),
|
|
2531
|
+
// because that fragments the control into independent boxes
|
|
2532
|
+
// and breaks the segmented-control affordance.
|
|
2533
|
+
//
|
|
2534
|
+
// No `:not(:first-of-type)` here — MUI v9 fully removed that
|
|
2535
|
+
// pattern in favour of position classes, and using both
|
|
2536
|
+
// mechanisms creates cascade ambiguity that bit us before.
|
|
3050
2537
|
MuiToggleButtonGroup: {
|
|
3051
2538
|
styleOverrides: {
|
|
3052
|
-
root: {
|
|
3053
|
-
gap: 4
|
|
3054
|
-
},
|
|
3055
2539
|
grouped: ({ theme }) => ({
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
2540
|
+
// Restate the seam-edge with the divider colour on
|
|
2541
|
+
// unselected middle/last buttons. MUI's default is
|
|
2542
|
+
// `1px solid transparent` for the legacy "overlap with
|
|
2543
|
+
// negative margin" pattern (inline-flex layout). That
|
|
2544
|
+
// pattern hides the transparent seam under the previous
|
|
2545
|
+
// sibling's right border. But consumers regularly pass
|
|
2546
|
+
// `sx={{ display: 'grid' }}` (e.g. /admin/messaging
|
|
2547
|
+
// settings) — and grid ignores the negative margin, so
|
|
2548
|
+
// the seam-edge becomes a visibly missing border.
|
|
2549
|
+
//
|
|
2550
|
+
// Painting the seam as `divider` here is a no-op in the
|
|
2551
|
+
// canonical inline-flex layout (it sits exactly under
|
|
2552
|
+
// prev's right border) and restores the missing edge in
|
|
2553
|
+
// grid/custom layouts. One rule, both cases.
|
|
2554
|
+
borderLeftColor: paletteVar(theme, "divider"),
|
|
2555
|
+
borderTopColor: paletteVar(theme, "divider"),
|
|
2556
|
+
[`&.${toggleButtonClasses.selected}`]: {
|
|
2557
|
+
// Lift above neighbours so the selected outline paints
|
|
2558
|
+
// OVER the prev sibling's seam border. Without z-index
|
|
2559
|
+
// the divider connecting two segments swallows the
|
|
2560
|
+
// selected segment's leading edge in inline-flex.
|
|
2561
|
+
zIndex: 1,
|
|
2562
|
+
// Seam edges use `currentColor` rather than a hard-
|
|
2563
|
+
// coded primary so per-button colour overrides (MUI
|
|
2564
|
+
// `color` prop, inline `sx={{ color }}`) propagate
|
|
2565
|
+
// uniformly to all four sides. The previous primary-
|
|
2566
|
+
// forced longhands fought consumer styling on the
|
|
2567
|
+
// left/top while letting it through on right/bottom,
|
|
2568
|
+
// producing the visible "half-and-half" border bug.
|
|
2569
|
+
borderLeftColor: "currentColor",
|
|
2570
|
+
borderTopColor: "currentColor"
|
|
3071
2571
|
}
|
|
3072
2572
|
})
|
|
3073
2573
|
}
|
|
@@ -3166,31 +2666,13 @@ function componentOverrides(config) {
|
|
|
3166
2666
|
html: {
|
|
3167
2667
|
scrollBehavior: "smooth"
|
|
3168
2668
|
},
|
|
3169
|
-
body:
|
|
3170
|
-
scrollbarWidth: "thin",
|
|
3171
|
-
scrollbarColor: `rgba(${getGreyChannel(theme)} / 0.4) rgba(${getGreyChannel(theme)} / 0.08)`
|
|
3172
|
-
},
|
|
2669
|
+
"html, body, *": scrollbarStyles(theme),
|
|
3173
2670
|
"*, *::before, *::after": {
|
|
3174
2671
|
boxSizing: "border-box"
|
|
3175
2672
|
},
|
|
3176
2673
|
"#root, #__next": {
|
|
3177
2674
|
height: "100%"
|
|
3178
2675
|
},
|
|
3179
|
-
// Webkit scrollbar styling
|
|
3180
|
-
"::-webkit-scrollbar": {
|
|
3181
|
-
width: 6,
|
|
3182
|
-
height: 6
|
|
3183
|
-
},
|
|
3184
|
-
"::-webkit-scrollbar-track": {
|
|
3185
|
-
backgroundColor: "transparent"
|
|
3186
|
-
},
|
|
3187
|
-
"::-webkit-scrollbar-thumb": {
|
|
3188
|
-
backgroundColor: `rgba(${getGreyChannel(theme)} / 0.4)`,
|
|
3189
|
-
borderRadius: 3
|
|
3190
|
-
},
|
|
3191
|
-
"::-webkit-scrollbar-thumb:hover": {
|
|
3192
|
-
backgroundColor: `rgba(${getGreyChannel(theme)} / 0.6)`
|
|
3193
|
-
},
|
|
3194
2676
|
// Vision Mode Accessibility Filters
|
|
3195
2677
|
// These apply SVG color matrix filters to simulate color blindness
|
|
3196
2678
|
'html[data-vision="protanopia"]:not([data-showcase])': {
|
|
@@ -3536,7 +3018,7 @@ var lightPalette = {
|
|
|
3536
3018
|
main: "#42A5F5",
|
|
3537
3019
|
dark: "#1E88E5",
|
|
3538
3020
|
darker: "#1565C0",
|
|
3539
|
-
contrastText: "#
|
|
3021
|
+
contrastText: "#000000"
|
|
3540
3022
|
},
|
|
3541
3023
|
info: {
|
|
3542
3024
|
lighter: "#E0F7FA",
|
|
@@ -3544,7 +3026,7 @@ var lightPalette = {
|
|
|
3544
3026
|
main: "#26C6DA",
|
|
3545
3027
|
dark: "#00ACC1",
|
|
3546
3028
|
darker: "#00838F",
|
|
3547
|
-
contrastText: "#
|
|
3029
|
+
contrastText: "#000000"
|
|
3548
3030
|
},
|
|
3549
3031
|
success: {
|
|
3550
3032
|
lighter: "#E8F5E9",
|
|
@@ -3552,7 +3034,7 @@ var lightPalette = {
|
|
|
3552
3034
|
main: "#66BB6A",
|
|
3553
3035
|
dark: "#43A047",
|
|
3554
3036
|
darker: "#2E7D32",
|
|
3555
|
-
contrastText: "#
|
|
3037
|
+
contrastText: "#000000"
|
|
3556
3038
|
},
|
|
3557
3039
|
warning: {
|
|
3558
3040
|
lighter: "#FFF8E1",
|
|
@@ -3605,7 +3087,7 @@ var darkPalette = {
|
|
|
3605
3087
|
main: "#42A5F5",
|
|
3606
3088
|
dark: "#1E88E5",
|
|
3607
3089
|
darker: "#1565C0",
|
|
3608
|
-
contrastText: "#
|
|
3090
|
+
contrastText: "#000000"
|
|
3609
3091
|
},
|
|
3610
3092
|
secondary: {
|
|
3611
3093
|
lighter: "#E3F2FD",
|
|
@@ -3613,7 +3095,7 @@ var darkPalette = {
|
|
|
3613
3095
|
main: "#64B5F6",
|
|
3614
3096
|
dark: "#42A5F5",
|
|
3615
3097
|
darker: "#1E88E5",
|
|
3616
|
-
contrastText: "#
|
|
3098
|
+
contrastText: "#000000"
|
|
3617
3099
|
},
|
|
3618
3100
|
info: {
|
|
3619
3101
|
lighter: "#E0F7FA",
|
|
@@ -3621,7 +3103,7 @@ var darkPalette = {
|
|
|
3621
3103
|
main: "#4DD0E1",
|
|
3622
3104
|
dark: "#26C6DA",
|
|
3623
3105
|
darker: "#00ACC1",
|
|
3624
|
-
contrastText: "#
|
|
3106
|
+
contrastText: "#000000"
|
|
3625
3107
|
},
|
|
3626
3108
|
success: {
|
|
3627
3109
|
lighter: "#E8F5E9",
|
|
@@ -3629,7 +3111,7 @@ var darkPalette = {
|
|
|
3629
3111
|
main: "#81C784",
|
|
3630
3112
|
dark: "#66BB6A",
|
|
3631
3113
|
darker: "#4CAF50",
|
|
3632
|
-
contrastText: "#
|
|
3114
|
+
contrastText: "#000000"
|
|
3633
3115
|
},
|
|
3634
3116
|
warning: {
|
|
3635
3117
|
lighter: "#FFF8E1",
|
|
@@ -3700,6 +3182,159 @@ var arcticPreset = {
|
|
|
3700
3182
|
main: "#1E88E5"
|
|
3701
3183
|
}
|
|
3702
3184
|
};
|
|
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
|
+
function gridIcon(Icon) {
|
|
3256
|
+
return forwardRef(function GridIcon({ color, ...props }, ref) {
|
|
3257
|
+
const palette = color === "action" || color === "disabled" || color === "error" || color === "info" || color === "inherit" || color === "primary" || color === "secondary" || color === "success" || color === "warning";
|
|
3258
|
+
return /* @__PURE__ */ jsx(Icon, { ...props, ref, color: palette ? color : "inherit", htmlColor: palette ? void 0 : color });
|
|
3259
|
+
});
|
|
3260
|
+
}
|
|
3261
|
+
var grid = {
|
|
3262
|
+
MoreIcon: gridIcon(MoreIcon),
|
|
3263
|
+
ArrowUpIcon: gridIcon(ArrowUpIcon),
|
|
3264
|
+
ArrowDownIcon: gridIcon(ArrowDownIcon),
|
|
3265
|
+
FilterIcon: gridIcon(FilterIcon),
|
|
3266
|
+
TableIcon: gridIcon(TableIcon),
|
|
3267
|
+
DownloadIcon: gridIcon(DownloadIcon),
|
|
3268
|
+
CloseIcon: gridIcon(CloseIcon),
|
|
3269
|
+
SearchIcon: gridIcon(SearchIcon),
|
|
3270
|
+
AddIcon: gridIcon(AddIcon),
|
|
3271
|
+
RemoveIcon: gridIcon(RemoveIcon)
|
|
3272
|
+
};
|
|
3273
|
+
function prismIconDefaults() {
|
|
3274
|
+
const icons = {
|
|
3275
|
+
MuiSelect: { defaultProps: { IconComponent: ChevronDownIcon } },
|
|
3276
|
+
MuiNativeSelect: { defaultProps: { IconComponent: ChevronDownIcon } },
|
|
3277
|
+
MuiAutocomplete: {
|
|
3278
|
+
defaultProps: { popupIcon: /* @__PURE__ */ jsx(ChevronDownIcon, {}), clearIcon: /* @__PURE__ */ jsx(CloseIcon, { fontSize: "small" }) }
|
|
3279
|
+
},
|
|
3280
|
+
MuiRadio: { defaultProps: { icon: /* @__PURE__ */ jsx(RadioIcon, {}), checkedIcon: /* @__PURE__ */ jsx(RadioCheckedIcon, {}) } },
|
|
3281
|
+
MuiChip: { defaultProps: { deleteIcon: /* @__PURE__ */ jsx(CloseIcon, {}) } },
|
|
3282
|
+
MuiAlert: {
|
|
3283
|
+
defaultProps: {
|
|
3284
|
+
iconMapping: {
|
|
3285
|
+
success: /* @__PURE__ */ jsx(SuccessIcon, {}),
|
|
3286
|
+
info: /* @__PURE__ */ jsx(InfoIcon, {}),
|
|
3287
|
+
warning: /* @__PURE__ */ jsx(WarningIcon, {}),
|
|
3288
|
+
error: /* @__PURE__ */ jsx(ErrorIcon, {})
|
|
3289
|
+
},
|
|
3290
|
+
slots: { closeIcon: CloseIcon }
|
|
3291
|
+
}
|
|
3292
|
+
},
|
|
3293
|
+
MuiPaginationItem: {
|
|
3294
|
+
defaultProps: {
|
|
3295
|
+
slots: { previous: ChevronLeftIcon, next: ChevronRightIcon, first: FirstPageIcon, last: LastPageIcon }
|
|
3296
|
+
}
|
|
3297
|
+
},
|
|
3298
|
+
MuiTablePagination: {
|
|
3299
|
+
defaultProps: {
|
|
3300
|
+
slots: {
|
|
3301
|
+
actions: {
|
|
3302
|
+
firstButtonIcon: FirstPageIcon,
|
|
3303
|
+
previousButtonIcon: ChevronLeftIcon,
|
|
3304
|
+
nextButtonIcon: ChevronRightIcon,
|
|
3305
|
+
lastButtonIcon: LastPageIcon
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
},
|
|
3310
|
+
MuiTableSortLabel: { defaultProps: { IconComponent: ArrowDownIcon } },
|
|
3311
|
+
MuiBreadcrumbs: { defaultProps: { separator: /* @__PURE__ */ jsx(ChevronRightIcon, { fontSize: "inherit" }) } },
|
|
3312
|
+
MuiRating: {
|
|
3313
|
+
defaultProps: { icon: /* @__PURE__ */ jsx(StarIcon, { fontSize: "inherit" }), emptyIcon: /* @__PURE__ */ jsx(StarEmptyIcon, { fontSize: "inherit" }) }
|
|
3314
|
+
},
|
|
3315
|
+
MuiTabs: {
|
|
3316
|
+
defaultProps: { slots: { startScrollButtonIcon: ChevronLeftIcon, endScrollButtonIcon: ChevronRightIcon } }
|
|
3317
|
+
},
|
|
3318
|
+
MuiDataGrid: {
|
|
3319
|
+
defaultProps: {
|
|
3320
|
+
slots: {
|
|
3321
|
+
columnMenuIcon: grid.MoreIcon,
|
|
3322
|
+
columnSortedAscendingIcon: grid.ArrowUpIcon,
|
|
3323
|
+
columnSortedDescendingIcon: grid.ArrowDownIcon,
|
|
3324
|
+
columnFilteredIcon: grid.FilterIcon,
|
|
3325
|
+
columnSelectorIcon: grid.TableIcon,
|
|
3326
|
+
exportIcon: grid.DownloadIcon,
|
|
3327
|
+
openFilterButtonIcon: grid.FilterIcon,
|
|
3328
|
+
quickFilterIcon: grid.SearchIcon,
|
|
3329
|
+
quickFilterClearIcon: grid.CloseIcon,
|
|
3330
|
+
detailPanelExpandIcon: grid.AddIcon,
|
|
3331
|
+
detailPanelCollapseIcon: grid.RemoveIcon
|
|
3332
|
+
}
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
};
|
|
3336
|
+
return icons;
|
|
3337
|
+
}
|
|
3703
3338
|
|
|
3704
3339
|
// src/theme/presets/dracula.ts
|
|
3705
3340
|
var draculaPurple = {
|
|
@@ -4294,14 +3929,14 @@ function applyPrimaryOverride(basePalette, primaryColor, mode) {
|
|
|
4294
3929
|
main: primaryColor,
|
|
4295
3930
|
dark: colorGroup.palette[300],
|
|
4296
3931
|
darker: colorGroup.palette[100],
|
|
4297
|
-
contrastText:
|
|
3932
|
+
contrastText: getContrastText(primaryColor)
|
|
4298
3933
|
}) : generatePaletteColorWithChannels({
|
|
4299
3934
|
lighter: colorGroup.palette[50],
|
|
4300
3935
|
light: colorGroup.palette[400],
|
|
4301
3936
|
main: primaryColor,
|
|
4302
3937
|
dark: colorGroup.palette[600],
|
|
4303
3938
|
darker: colorGroup.palette[900],
|
|
4304
|
-
contrastText:
|
|
3939
|
+
contrastText: getContrastText(primaryColor)
|
|
4305
3940
|
});
|
|
4306
3941
|
return { ...basePalette, primary: newPrimary2 };
|
|
4307
3942
|
}
|
|
@@ -4312,14 +3947,14 @@ function applyPrimaryOverride(basePalette, primaryColor, mode) {
|
|
|
4312
3947
|
main: generatedScale[400],
|
|
4313
3948
|
dark: generatedScale[300],
|
|
4314
3949
|
darker: generatedScale[100],
|
|
4315
|
-
contrastText: generatedScale[
|
|
3950
|
+
contrastText: getContrastText(generatedScale[400])
|
|
4316
3951
|
}) : generatePaletteColorWithChannels({
|
|
4317
3952
|
lighter: generatedScale[50],
|
|
4318
3953
|
light: generatedScale[400],
|
|
4319
3954
|
main: generatedScale[500],
|
|
4320
3955
|
dark: generatedScale[600],
|
|
4321
3956
|
darker: generatedScale[900],
|
|
4322
|
-
contrastText: generatedScale[
|
|
3957
|
+
contrastText: getContrastText(generatedScale[500])
|
|
4323
3958
|
});
|
|
4324
3959
|
return { ...basePalette, primary: newPrimary };
|
|
4325
3960
|
}
|
|
@@ -4339,7 +3974,13 @@ function deepMergeThemeOptions(base, overrides) {
|
|
|
4339
3974
|
for (const key of Object.keys(overrides)) {
|
|
4340
3975
|
const baseVal = base[key];
|
|
4341
3976
|
const overrideVal = overrides[key];
|
|
4342
|
-
if (
|
|
3977
|
+
if (key === "styleOverrides" && baseVal && overrideVal && typeof baseVal === "object" && typeof overrideVal === "object") {
|
|
3978
|
+
const slots = { ...baseVal };
|
|
3979
|
+
for (const [slot, style] of Object.entries(overrideVal)) {
|
|
3980
|
+
if (style !== void 0) slots[slot] = slots[slot] === void 0 ? style : [slots[slot], style];
|
|
3981
|
+
}
|
|
3982
|
+
result[key] = slots;
|
|
3983
|
+
} else if (overrideVal !== null && typeof overrideVal === "object" && !Array.isArray(overrideVal) && typeof overrideVal !== "function" && baseVal !== null && typeof baseVal === "object" && !Array.isArray(baseVal) && typeof baseVal !== "function") {
|
|
4343
3984
|
result[key] = deepMergeThemeOptions(baseVal, overrideVal);
|
|
4344
3985
|
} else {
|
|
4345
3986
|
result[key] = overrideVal;
|
|
@@ -4432,7 +4073,13 @@ function createPrismTheme(options = {}) {
|
|
|
4432
4073
|
// Component overrides with density support
|
|
4433
4074
|
components: componentOverrides(componentsConfig)
|
|
4434
4075
|
};
|
|
4435
|
-
const
|
|
4076
|
+
const themedIcons = deepMergeThemeOptions(themeOptions, { components: prismIconDefaults() });
|
|
4077
|
+
const finalOptions = overrides ? deepMergeThemeOptions(themedIcons, overrides) : themedIcons;
|
|
4078
|
+
const variableOptions = typeof finalOptions.cssVariables === "object" ? finalOptions.cssVariables : void 0;
|
|
4079
|
+
finalOptions.palette = reconcilePaletteOverrides(finalOptions.palette, overrides?.palette, {
|
|
4080
|
+
nativeColor: variableOptions?.nativeColor,
|
|
4081
|
+
cssVarPrefix: variableOptions?.cssVarPrefix ?? cssVarPrefix
|
|
4082
|
+
});
|
|
4436
4083
|
let theme = createTheme(finalOptions, muiLocale);
|
|
4437
4084
|
if (responsiveFonts) {
|
|
4438
4085
|
theme = responsiveFontSizes(theme);
|
|
@@ -4488,6 +4135,6 @@ function getPresetDisplayName(preset) {
|
|
|
4488
4135
|
return PRESET_DISPLAY_NAMES[preset];
|
|
4489
4136
|
}
|
|
4490
4137
|
|
|
4491
|
-
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,
|
|
4492
|
-
//# sourceMappingURL=chunk-
|
|
4493
|
-
//# sourceMappingURL=chunk-
|
|
4138
|
+
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
|