@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,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CloseIcon, SearchIcon, ChevronDownIcon, CopyIcon } from './chunk-PGHEP4JD.js';
|
|
2
|
+
import { useState, useRef, useEffect, useId, useMemo, useCallback, Component } from 'react';
|
|
2
3
|
import InputBase from '@mui/material/InputBase';
|
|
3
4
|
import InputAdornment from '@mui/material/InputAdornment';
|
|
4
5
|
import Tooltip from '@mui/material/Tooltip';
|
|
5
|
-
import
|
|
6
|
+
import Box8 from '@mui/material/Box';
|
|
6
7
|
import { useTheme, alpha } from '@mui/material/styles';
|
|
7
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
+
import Stack from '@mui/material/Stack';
|
|
10
|
+
import Typography3 from '@mui/material/Typography';
|
|
8
11
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
9
12
|
import TextField from '@mui/material/TextField';
|
|
10
13
|
import MenuItem from '@mui/material/MenuItem';
|
|
@@ -20,59 +23,27 @@ import Autocomplete from '@mui/material/Autocomplete';
|
|
|
20
23
|
import Chip from '@mui/material/Chip';
|
|
21
24
|
import Rating from '@mui/material/Rating';
|
|
22
25
|
import Slider from '@mui/material/Slider';
|
|
23
|
-
import Typography2 from '@mui/material/Typography';
|
|
24
26
|
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
|
25
27
|
import dayjs from 'dayjs';
|
|
26
28
|
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
|
|
27
29
|
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
|
|
28
30
|
import FormGroup from '@mui/material/FormGroup';
|
|
29
31
|
import { useDropzone } from 'react-dropzone';
|
|
30
|
-
import
|
|
31
|
-
import IconButton from '@mui/material/IconButton';
|
|
32
|
+
import IconButton3 from '@mui/material/IconButton';
|
|
32
33
|
import Avatar from '@mui/material/Avatar';
|
|
33
34
|
import Menu from '@mui/material/Menu';
|
|
34
35
|
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
35
36
|
import ListItemText from '@mui/material/ListItemText';
|
|
37
|
+
import Button from '@mui/material/Button';
|
|
38
|
+
import Collapse from '@mui/material/Collapse';
|
|
36
39
|
|
|
37
|
-
function
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
"svg",
|
|
40
|
-
{
|
|
41
|
-
width: size,
|
|
42
|
-
height: size,
|
|
43
|
-
viewBox: "0 0 24 24",
|
|
44
|
-
fill: "none",
|
|
45
|
-
stroke: "currentColor",
|
|
46
|
-
strokeWidth: "2",
|
|
47
|
-
strokeLinecap: "round",
|
|
48
|
-
strokeLinejoin: "round",
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
51
|
-
/* @__PURE__ */ jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
);
|
|
40
|
+
function SearchIcon2({ size = 18 }) {
|
|
41
|
+
return /* @__PURE__ */ jsx(SearchIcon, { sx: { fontSize: size } });
|
|
55
42
|
}
|
|
56
43
|
function ClearIcon() {
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
"svg",
|
|
59
|
-
{
|
|
60
|
-
width: "14",
|
|
61
|
-
height: "14",
|
|
62
|
-
viewBox: "0 0 24 24",
|
|
63
|
-
fill: "none",
|
|
64
|
-
stroke: "currentColor",
|
|
65
|
-
strokeWidth: "2.5",
|
|
66
|
-
strokeLinecap: "round",
|
|
67
|
-
strokeLinejoin: "round",
|
|
68
|
-
children: [
|
|
69
|
-
/* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
70
|
-
/* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
);
|
|
44
|
+
return /* @__PURE__ */ jsx(CloseIcon, { sx: { fontSize: 16 } });
|
|
74
45
|
}
|
|
75
|
-
|
|
46
|
+
function SearchInput({
|
|
76
47
|
value: controlledValue,
|
|
77
48
|
onChange,
|
|
78
49
|
placeholder = "Search...",
|
|
@@ -86,8 +57,9 @@ var SearchInput = forwardRef(function SearchInput2({
|
|
|
86
57
|
onFocus,
|
|
87
58
|
onBlur,
|
|
88
59
|
onKeyDown,
|
|
89
|
-
sx
|
|
90
|
-
|
|
60
|
+
sx,
|
|
61
|
+
ref
|
|
62
|
+
}) {
|
|
91
63
|
const theme = useTheme();
|
|
92
64
|
const [localValue, setLocalValue] = useState(controlledValue ?? "");
|
|
93
65
|
const timerRef = useRef(void 0);
|
|
@@ -128,9 +100,9 @@ var SearchInput = forwardRef(function SearchInput2({
|
|
|
128
100
|
onFocus,
|
|
129
101
|
onBlur,
|
|
130
102
|
onKeyDown,
|
|
131
|
-
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", sx: { color: "text.disabled", mr: compact ? 0.75 : 1 }, children: /* @__PURE__ */ jsx(
|
|
103
|
+
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", sx: { color: "text.disabled", mr: compact ? 0.75 : 1 }, children: /* @__PURE__ */ jsx(SearchIcon2, { size: compact ? 16 : 18 }) }),
|
|
132
104
|
endAdornment: displayValue ? /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(Tooltip, { title: clearTooltip, children: /* @__PURE__ */ jsx(
|
|
133
|
-
|
|
105
|
+
Box8,
|
|
134
106
|
{
|
|
135
107
|
component: "button",
|
|
136
108
|
type: "button",
|
|
@@ -179,7 +151,181 @@ var SearchInput = forwardRef(function SearchInput2({
|
|
|
179
151
|
}
|
|
180
152
|
}
|
|
181
153
|
);
|
|
182
|
-
}
|
|
154
|
+
}
|
|
155
|
+
function IconWrapper({ icon, color = "primary.main", size = 64 }) {
|
|
156
|
+
return /* @__PURE__ */ jsx(
|
|
157
|
+
Box8,
|
|
158
|
+
{
|
|
159
|
+
sx: {
|
|
160
|
+
width: size,
|
|
161
|
+
height: size,
|
|
162
|
+
borderRadius: "50%",
|
|
163
|
+
display: "flex",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
justifyContent: "center",
|
|
166
|
+
bgcolor: (theme) => {
|
|
167
|
+
const parts = color.split(".");
|
|
168
|
+
let resolved = theme.palette;
|
|
169
|
+
for (const part of parts) {
|
|
170
|
+
resolved = resolved?.[part];
|
|
171
|
+
}
|
|
172
|
+
return typeof resolved === "string" ? alpha(resolved, 0.08) : alpha(theme.palette.primary.main, 0.08);
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
children: icon
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
function EmptyContent({
|
|
180
|
+
illustration,
|
|
181
|
+
icon,
|
|
182
|
+
iconColor = "primary.main",
|
|
183
|
+
iconSize = 64,
|
|
184
|
+
title = "No data",
|
|
185
|
+
description,
|
|
186
|
+
action,
|
|
187
|
+
actions,
|
|
188
|
+
maxWidth = 400,
|
|
189
|
+
filled = false,
|
|
190
|
+
sx,
|
|
191
|
+
illustrationSx,
|
|
192
|
+
slotProps,
|
|
193
|
+
compact = false
|
|
194
|
+
}) {
|
|
195
|
+
const visual = icon ? /* @__PURE__ */ jsx(IconWrapper, { icon, color: iconColor, size: iconSize }) : illustration ? /* @__PURE__ */ jsx(Box8, { sx: illustrationSx, children: illustration }) : null;
|
|
196
|
+
const allActions = [...actions ?? [], ...action ? [action] : []];
|
|
197
|
+
return /* @__PURE__ */ jsx(
|
|
198
|
+
Stack,
|
|
199
|
+
{
|
|
200
|
+
sx: {
|
|
201
|
+
alignItems: "center",
|
|
202
|
+
justifyContent: "center",
|
|
203
|
+
textAlign: "center",
|
|
204
|
+
py: compact ? 4 : 8,
|
|
205
|
+
px: 2,
|
|
206
|
+
// Default non-compact behavior: vertically center inside the
|
|
207
|
+
// available "main content" area. Two complementary anchors:
|
|
208
|
+
// * `flex: 1, alignSelf: 'stretch'` — when the parent IS a
|
|
209
|
+
// flex column with explicit height (DashboardLayout main,
|
|
210
|
+
// full-height page wrappers), EmptyContent grows to fill
|
|
211
|
+
// the column and the inner `justifyContent: center` puts
|
|
212
|
+
// the message in the middle of that column.
|
|
213
|
+
// * `minHeight: calc(100vh - 240px)` — fallback for the
|
|
214
|
+
// common case where the page wrapper is just a content-
|
|
215
|
+
// sized `<Stack>` or `<Box>`. 240px is the typical
|
|
216
|
+
// vertical chrome (header ~64 + breadcrumbs ~60 + page
|
|
217
|
+
// padding ~80 + a small margin), so this leaves enough
|
|
218
|
+
// space below the breadcrumbs for the message to sit at
|
|
219
|
+
// the optical center of the visible viewport.
|
|
220
|
+
//
|
|
221
|
+
// `compact` keeps the inline-sized behavior for callers that
|
|
222
|
+
// drop EmptyContent inside a card cell or sidebar.
|
|
223
|
+
// `filled` is the explicit "fill my parent" mode and shares
|
|
224
|
+
// the same fallback so the visual is consistent.
|
|
225
|
+
...!compact && {
|
|
226
|
+
flex: 1,
|
|
227
|
+
alignSelf: "stretch",
|
|
228
|
+
minHeight: "calc(100vh - 240px)"
|
|
229
|
+
},
|
|
230
|
+
...filled && { height: "100%" },
|
|
231
|
+
...sx
|
|
232
|
+
},
|
|
233
|
+
children: /* @__PURE__ */ jsxs(
|
|
234
|
+
Box8,
|
|
235
|
+
{
|
|
236
|
+
sx: {
|
|
237
|
+
maxWidth,
|
|
238
|
+
display: "flex",
|
|
239
|
+
flexDirection: "column",
|
|
240
|
+
alignItems: "center",
|
|
241
|
+
gap: compact ? 1.5 : 2.5
|
|
242
|
+
},
|
|
243
|
+
children: [
|
|
244
|
+
visual,
|
|
245
|
+
/* @__PURE__ */ jsxs(Stack, { spacing: 0.5, sx: {
|
|
246
|
+
alignItems: "center"
|
|
247
|
+
}, children: [
|
|
248
|
+
title && /* @__PURE__ */ jsx(
|
|
249
|
+
Typography3,
|
|
250
|
+
{
|
|
251
|
+
variant: compact ? "subtitle1" : "h6",
|
|
252
|
+
sx: {
|
|
253
|
+
color: "text.secondary",
|
|
254
|
+
fontWeight: 600,
|
|
255
|
+
...slotProps?.title
|
|
256
|
+
},
|
|
257
|
+
children: title
|
|
258
|
+
}
|
|
259
|
+
),
|
|
260
|
+
description && /* @__PURE__ */ jsx(
|
|
261
|
+
Typography3,
|
|
262
|
+
{
|
|
263
|
+
variant: "body2",
|
|
264
|
+
sx: {
|
|
265
|
+
color: "text.disabled",
|
|
266
|
+
lineHeight: 1.6,
|
|
267
|
+
...slotProps?.description
|
|
268
|
+
},
|
|
269
|
+
children: description
|
|
270
|
+
}
|
|
271
|
+
)
|
|
272
|
+
] }),
|
|
273
|
+
allActions.length > 0 && /* @__PURE__ */ jsx(
|
|
274
|
+
Stack,
|
|
275
|
+
{
|
|
276
|
+
direction: "row",
|
|
277
|
+
spacing: 1,
|
|
278
|
+
sx: { mt: compact ? 0.5 : 1, flexWrap: "wrap", justifyContent: "center", ...slotProps?.actions },
|
|
279
|
+
children: allActions.map((a, i) => /* @__PURE__ */ jsx(Box8, { children: a }, i))
|
|
280
|
+
}
|
|
281
|
+
)
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
function SearchEmptyContent({
|
|
289
|
+
query,
|
|
290
|
+
...props
|
|
291
|
+
}) {
|
|
292
|
+
return /* @__PURE__ */ jsx(
|
|
293
|
+
EmptyContent,
|
|
294
|
+
{
|
|
295
|
+
title: "No results found",
|
|
296
|
+
description: query ? `Your search for "${query}" did not match any results.` : "Try adjusting your search criteria.",
|
|
297
|
+
...props
|
|
298
|
+
}
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
function LoadingEmptyContent({ ...props }) {
|
|
302
|
+
return /* @__PURE__ */ jsx(
|
|
303
|
+
EmptyContent,
|
|
304
|
+
{
|
|
305
|
+
title: "Loading...",
|
|
306
|
+
illustration: /* @__PURE__ */ jsx(
|
|
307
|
+
Box8,
|
|
308
|
+
{
|
|
309
|
+
sx: {
|
|
310
|
+
width: 64,
|
|
311
|
+
height: 64,
|
|
312
|
+
borderRadius: "50%",
|
|
313
|
+
border: "3px solid",
|
|
314
|
+
borderColor: "divider",
|
|
315
|
+
borderTopColor: "primary.main",
|
|
316
|
+
animation: "spin 1s linear infinite",
|
|
317
|
+
"@keyframes spin": {
|
|
318
|
+
from: { transform: "rotate(0deg)" },
|
|
319
|
+
to: { transform: "rotate(360deg)" }
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
),
|
|
324
|
+
compact: true,
|
|
325
|
+
...props
|
|
326
|
+
}
|
|
327
|
+
);
|
|
328
|
+
}
|
|
183
329
|
function FieldText({
|
|
184
330
|
name,
|
|
185
331
|
helperText,
|
|
@@ -211,17 +357,22 @@ function FieldText({
|
|
|
211
357
|
helperText: error?.message ?? helperText,
|
|
212
358
|
required,
|
|
213
359
|
slotProps: {
|
|
360
|
+
// Shrink label for multiline fields to prevent overlap with textarea content
|
|
361
|
+
...multiline ? { inputLabel: { shrink: true } } : {},
|
|
362
|
+
...slotProps,
|
|
214
363
|
formHelperText: {
|
|
215
|
-
id: helperId
|
|
364
|
+
id: helperId,
|
|
365
|
+
...slotProps?.formHelperText
|
|
216
366
|
},
|
|
367
|
+
// Merged, not overwritten: spreading the caller's `slotProps` last
|
|
368
|
+
// replaced `htmlInput` wholesale, so passing any input prop
|
|
369
|
+
// silently stripped every aria attribute below.
|
|
217
370
|
htmlInput: {
|
|
218
371
|
"aria-describedby": error?.message || helperText ? helperId : void 0,
|
|
219
372
|
"aria-invalid": !!error,
|
|
220
|
-
"aria-required": required
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
...multiline ? { inputLabel: { shrink: true } } : {},
|
|
224
|
-
...slotProps
|
|
373
|
+
"aria-required": required,
|
|
374
|
+
...slotProps?.htmlInput
|
|
375
|
+
}
|
|
225
376
|
},
|
|
226
377
|
...other
|
|
227
378
|
}
|
|
@@ -261,15 +412,18 @@ function FieldSelect({
|
|
|
261
412
|
helperText: error?.message ?? helperText,
|
|
262
413
|
required,
|
|
263
414
|
slotProps: {
|
|
415
|
+
...slotProps,
|
|
264
416
|
formHelperText: {
|
|
265
|
-
id: helperId
|
|
417
|
+
id: helperId,
|
|
418
|
+
...slotProps?.formHelperText
|
|
266
419
|
},
|
|
420
|
+
// Merged, not overwritten — see field-text for the same fix.
|
|
267
421
|
select: {
|
|
268
422
|
"aria-describedby": error?.message || helperText ? helperId : void 0,
|
|
269
423
|
"aria-invalid": !!error,
|
|
270
|
-
"aria-required": required
|
|
271
|
-
|
|
272
|
-
|
|
424
|
+
"aria-required": required,
|
|
425
|
+
...slotProps?.select
|
|
426
|
+
}
|
|
273
427
|
},
|
|
274
428
|
...other,
|
|
275
429
|
children: [
|
|
@@ -497,9 +651,11 @@ function NumberInput({
|
|
|
497
651
|
const [displayValue, setDisplayValue] = useState(
|
|
498
652
|
() => transformForDisplay(field.value ?? options.defaultValue ?? 0, options)
|
|
499
653
|
);
|
|
654
|
+
const committedRef = useRef(field.value);
|
|
500
655
|
useEffect(() => {
|
|
501
|
-
|
|
502
|
-
|
|
656
|
+
if (Object.is(field.value, committedRef.current)) return;
|
|
657
|
+
committedRef.current = field.value;
|
|
658
|
+
setDisplayValue(transformForDisplay(field.value ?? options.defaultValue ?? 0, options));
|
|
503
659
|
}, [field.value, options]);
|
|
504
660
|
const handleChange = useCallback(
|
|
505
661
|
(e) => {
|
|
@@ -507,15 +663,18 @@ function NumberInput({
|
|
|
507
663
|
setDisplayValue(transformed);
|
|
508
664
|
const num = parseFloat(transformed);
|
|
509
665
|
if (!isNaN(num)) {
|
|
666
|
+
committedRef.current = num;
|
|
510
667
|
field.onChange(num);
|
|
511
668
|
} else if (transformed === "" || transformed === "-") {
|
|
512
|
-
|
|
669
|
+
committedRef.current = void 0;
|
|
670
|
+
field.onChange(void 0);
|
|
513
671
|
}
|
|
514
672
|
},
|
|
515
673
|
[field, options]
|
|
516
674
|
);
|
|
517
675
|
const handleBlur = useCallback(() => {
|
|
518
676
|
const finalValue = transformOnBlur(displayValue || String(field.value ?? options.defaultValue ?? 0), options);
|
|
677
|
+
committedRef.current = finalValue;
|
|
519
678
|
field.onChange(finalValue);
|
|
520
679
|
setDisplayValue(transformForDisplay(finalValue, options));
|
|
521
680
|
field.onBlur();
|
|
@@ -533,9 +692,14 @@ function NumberInput({
|
|
|
533
692
|
helperText: error?.message ?? helperText,
|
|
534
693
|
required,
|
|
535
694
|
slotProps: {
|
|
695
|
+
...slotProps,
|
|
536
696
|
formHelperText: {
|
|
537
|
-
id: helperId
|
|
697
|
+
id: helperId,
|
|
698
|
+
...slotProps?.formHelperText
|
|
538
699
|
},
|
|
700
|
+
// Merged, not overwritten: spreading the caller's `slotProps` last
|
|
701
|
+
// replaced `htmlInput` wholesale, so passing any input prop silently
|
|
702
|
+
// stripped every aria attribute below.
|
|
539
703
|
htmlInput: {
|
|
540
704
|
inputMode: options.decimals === 0 ? "numeric" : "decimal",
|
|
541
705
|
"aria-describedby": error?.message || helperText ? helperId : void 0,
|
|
@@ -543,9 +707,9 @@ function NumberInput({
|
|
|
543
707
|
"aria-required": required,
|
|
544
708
|
"aria-valuemin": options.min,
|
|
545
709
|
"aria-valuemax": options.max,
|
|
546
|
-
"aria-valuenow": field.value ?? options.defaultValue ?? 0
|
|
547
|
-
|
|
548
|
-
|
|
710
|
+
"aria-valuenow": field.value ?? options.defaultValue ?? 0,
|
|
711
|
+
...slotProps?.htmlInput
|
|
712
|
+
}
|
|
549
713
|
}
|
|
550
714
|
}
|
|
551
715
|
);
|
|
@@ -565,13 +729,10 @@ function FieldNumber({
|
|
|
565
729
|
const id = useId();
|
|
566
730
|
const inputId = `field-number-${id}`;
|
|
567
731
|
const helperId = `field-number-helper-${id}`;
|
|
568
|
-
const options =
|
|
569
|
-
min,
|
|
570
|
-
max,
|
|
571
|
-
|
|
572
|
-
allowNegative,
|
|
573
|
-
defaultValue
|
|
574
|
-
};
|
|
732
|
+
const options = useMemo(
|
|
733
|
+
() => ({ min, max, decimals, allowNegative, defaultValue }),
|
|
734
|
+
[min, max, decimals, allowNegative, defaultValue]
|
|
735
|
+
);
|
|
575
736
|
return /* @__PURE__ */ jsx(
|
|
576
737
|
Controller,
|
|
577
738
|
{
|
|
@@ -823,7 +984,7 @@ function FieldRating({
|
|
|
823
984
|
const hasHelper = !!(error?.message || helperText);
|
|
824
985
|
return /* @__PURE__ */ jsxs(FormControl8, { error: !!error, ...formControlProps, children: [
|
|
825
986
|
label && /* @__PURE__ */ jsx(FormLabel6, { id: labelId, sx: { mb: 1 }, children: label }),
|
|
826
|
-
/* @__PURE__ */ jsxs(
|
|
987
|
+
/* @__PURE__ */ jsxs(Box8, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
827
988
|
/* @__PURE__ */ jsx(
|
|
828
989
|
Rating,
|
|
829
990
|
{
|
|
@@ -842,7 +1003,7 @@ function FieldRating({
|
|
|
842
1003
|
}
|
|
843
1004
|
),
|
|
844
1005
|
showValue && /* @__PURE__ */ jsxs(
|
|
845
|
-
|
|
1006
|
+
Box8,
|
|
846
1007
|
{
|
|
847
1008
|
component: "span",
|
|
848
1009
|
sx: {
|
|
@@ -895,9 +1056,9 @@ function FieldSlider({
|
|
|
895
1056
|
render: ({ field, fieldState: { error } }) => {
|
|
896
1057
|
const hasHelper = !!(error?.message || helperText);
|
|
897
1058
|
return /* @__PURE__ */ jsxs(FormControl8, { error: !!error, fullWidth: true, ...formControlProps, children: [
|
|
898
|
-
(label || showValue) && /* @__PURE__ */ jsxs(
|
|
1059
|
+
(label || showValue) && /* @__PURE__ */ jsxs(Box8, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 1 }, children: [
|
|
899
1060
|
label && /* @__PURE__ */ jsx(FormLabel6, { id: labelId, children: label }),
|
|
900
|
-
showValue && /* @__PURE__ */ jsx(
|
|
1061
|
+
showValue && /* @__PURE__ */ jsx(Typography3, { variant: "body2", sx: {
|
|
901
1062
|
color: "text.secondary"
|
|
902
1063
|
}, children: displayValue(field.value ?? (Array.isArray(other.defaultValue) ? [min, max] : min)) })
|
|
903
1064
|
] }),
|
|
@@ -1183,7 +1344,7 @@ function FieldMultiCheckbox({
|
|
|
1183
1344
|
children: label
|
|
1184
1345
|
}
|
|
1185
1346
|
),
|
|
1186
|
-
/* @__PURE__ */ jsx(
|
|
1347
|
+
/* @__PURE__ */ jsx(Box8, { ...slotProps?.container, children: /* @__PURE__ */ jsx(FormGroup, { row, ...other, children: options.map((option) => /* @__PURE__ */ jsx(
|
|
1187
1348
|
FormControlLabel,
|
|
1188
1349
|
{
|
|
1189
1350
|
label: option.label,
|
|
@@ -1252,7 +1413,7 @@ function FieldMultiSwitch({
|
|
|
1252
1413
|
children: label
|
|
1253
1414
|
}
|
|
1254
1415
|
),
|
|
1255
|
-
/* @__PURE__ */ jsx(
|
|
1416
|
+
/* @__PURE__ */ jsx(Box8, { ...slotProps?.container, children: /* @__PURE__ */ jsx(FormGroup, { row, ...other, children: options.map((option) => /* @__PURE__ */ jsx(
|
|
1256
1417
|
FormControlLabel,
|
|
1257
1418
|
{
|
|
1258
1419
|
label: option.label,
|
|
@@ -1363,9 +1524,9 @@ function FieldCode({
|
|
|
1363
1524
|
}
|
|
1364
1525
|
};
|
|
1365
1526
|
const hasHelper = !!(error?.message || helperText);
|
|
1366
|
-
return /* @__PURE__ */ jsxs(
|
|
1527
|
+
return /* @__PURE__ */ jsxs(Box8, { role: "group", "aria-label": `${name} code input`, ...slotProps?.wrapper, children: [
|
|
1367
1528
|
/* @__PURE__ */ jsx(
|
|
1368
|
-
|
|
1529
|
+
Box8,
|
|
1369
1530
|
{
|
|
1370
1531
|
sx: {
|
|
1371
1532
|
display: "flex",
|
|
@@ -1466,7 +1627,7 @@ function UploadPlaceholder({ isDragActive, disabled }) {
|
|
|
1466
1627
|
},
|
|
1467
1628
|
children: [
|
|
1468
1629
|
/* @__PURE__ */ jsx(
|
|
1469
|
-
|
|
1630
|
+
Box8,
|
|
1470
1631
|
{
|
|
1471
1632
|
component: "span",
|
|
1472
1633
|
sx: {
|
|
@@ -1483,10 +1644,10 @@ function UploadPlaceholder({ isDragActive, disabled }) {
|
|
|
1483
1644
|
children: "\u{1F4C1}"
|
|
1484
1645
|
}
|
|
1485
1646
|
),
|
|
1486
|
-
/* @__PURE__ */ jsx(
|
|
1647
|
+
/* @__PURE__ */ jsx(Typography3, { variant: "body2", component: "span", children: isDragActive ? "Drop files here" : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1487
1648
|
"Drag & drop files here, or",
|
|
1488
1649
|
" ",
|
|
1489
|
-
/* @__PURE__ */ jsx(
|
|
1650
|
+
/* @__PURE__ */ jsx(Typography3, { component: "span", variant: "body2", sx: { color: "primary.main", textDecoration: "underline" }, children: "browse" })
|
|
1490
1651
|
] }) })
|
|
1491
1652
|
]
|
|
1492
1653
|
}
|
|
@@ -1499,7 +1660,7 @@ function FilePreview({ files, thumbnail, onRemove }) {
|
|
|
1499
1660
|
const fileName = getFileName(file);
|
|
1500
1661
|
const fileSize = file instanceof File ? formatFileSize(file.size) : "";
|
|
1501
1662
|
return /* @__PURE__ */ jsxs(
|
|
1502
|
-
|
|
1663
|
+
Box8,
|
|
1503
1664
|
{
|
|
1504
1665
|
sx: {
|
|
1505
1666
|
p: 1,
|
|
@@ -1513,7 +1674,7 @@ function FilePreview({ files, thumbnail, onRemove }) {
|
|
|
1513
1674
|
},
|
|
1514
1675
|
children: [
|
|
1515
1676
|
previewUrl && /* @__PURE__ */ jsx(
|
|
1516
|
-
|
|
1677
|
+
Box8,
|
|
1517
1678
|
{
|
|
1518
1679
|
component: "img",
|
|
1519
1680
|
src: previewUrl,
|
|
@@ -1527,13 +1688,22 @@ function FilePreview({ files, thumbnail, onRemove }) {
|
|
|
1527
1688
|
}
|
|
1528
1689
|
}
|
|
1529
1690
|
),
|
|
1530
|
-
/* @__PURE__ */ jsxs(
|
|
1531
|
-
/* @__PURE__ */ jsx(
|
|
1532
|
-
fileSize && /* @__PURE__ */ jsx(
|
|
1691
|
+
/* @__PURE__ */ jsxs(Box8, { sx: { flexGrow: 1, minWidth: 0 }, children: [
|
|
1692
|
+
/* @__PURE__ */ jsx(Typography3, { variant: "body2", noWrap: true, children: fileName }),
|
|
1693
|
+
fileSize && /* @__PURE__ */ jsx(Typography3, { variant: "caption", sx: {
|
|
1533
1694
|
color: "text.secondary"
|
|
1534
1695
|
}, children: fileSize })
|
|
1535
1696
|
] }),
|
|
1536
|
-
onRemove && /* @__PURE__ */ jsx(
|
|
1697
|
+
onRemove && /* @__PURE__ */ jsx(
|
|
1698
|
+
IconButton3,
|
|
1699
|
+
{
|
|
1700
|
+
size: "small",
|
|
1701
|
+
onClick: () => onRemove(file),
|
|
1702
|
+
"aria-label": `Remove ${fileName}`,
|
|
1703
|
+
sx: { flexShrink: 0 },
|
|
1704
|
+
children: "\u2715"
|
|
1705
|
+
}
|
|
1706
|
+
)
|
|
1537
1707
|
]
|
|
1538
1708
|
},
|
|
1539
1709
|
`${fileName}-${index}`
|
|
@@ -1542,8 +1712,8 @@ function FilePreview({ files, thumbnail, onRemove }) {
|
|
|
1542
1712
|
}
|
|
1543
1713
|
function RejectionFiles({ rejections }) {
|
|
1544
1714
|
if (rejections.length === 0) return null;
|
|
1545
|
-
return /* @__PURE__ */ jsx(
|
|
1546
|
-
|
|
1715
|
+
return /* @__PURE__ */ jsx(Box8, { sx: { mt: 2 }, children: rejections.map(({ file, errors }) => /* @__PURE__ */ jsxs(
|
|
1716
|
+
Box8,
|
|
1547
1717
|
{
|
|
1548
1718
|
sx: {
|
|
1549
1719
|
p: 1,
|
|
@@ -1554,8 +1724,8 @@ function RejectionFiles({ rejections }) {
|
|
|
1554
1724
|
borderColor: "error.light"
|
|
1555
1725
|
},
|
|
1556
1726
|
children: [
|
|
1557
|
-
/* @__PURE__ */ jsx(
|
|
1558
|
-
errors.map((error) => /* @__PURE__ */ jsx(
|
|
1727
|
+
/* @__PURE__ */ jsx(Typography3, { variant: "body2", color: "error", children: file.name }),
|
|
1728
|
+
errors.map((error) => /* @__PURE__ */ jsx(Typography3, { variant: "caption", color: "error", children: error.message }, error.code))
|
|
1559
1729
|
]
|
|
1560
1730
|
},
|
|
1561
1731
|
file.name
|
|
@@ -1615,9 +1785,9 @@ function FieldUploadInner({
|
|
|
1615
1785
|
});
|
|
1616
1786
|
const hasError = !!error;
|
|
1617
1787
|
const hasFiles = files.length > 0;
|
|
1618
|
-
return /* @__PURE__ */ jsxs(
|
|
1788
|
+
return /* @__PURE__ */ jsxs(Box8, { ...slotProps?.wrapper, children: [
|
|
1619
1789
|
/* @__PURE__ */ jsxs(
|
|
1620
|
-
|
|
1790
|
+
Box8,
|
|
1621
1791
|
{
|
|
1622
1792
|
...getRootProps(),
|
|
1623
1793
|
sx: {
|
|
@@ -1644,8 +1814,8 @@ function FieldUploadInner({
|
|
|
1644
1814
|
),
|
|
1645
1815
|
/* @__PURE__ */ jsx(RejectionFiles, { rejections }),
|
|
1646
1816
|
/* @__PURE__ */ jsx(FilePreview, { files, thumbnail, onRemove: handleRemove }),
|
|
1647
|
-
hasFiles && multiple && onRemoveAll && /* @__PURE__ */ jsx(
|
|
1648
|
-
|
|
1817
|
+
hasFiles && multiple && onRemoveAll && /* @__PURE__ */ jsx(Box8, { sx: { mt: 1, textAlign: "right" }, children: /* @__PURE__ */ jsx(
|
|
1818
|
+
Typography3,
|
|
1649
1819
|
{
|
|
1650
1820
|
component: "button",
|
|
1651
1821
|
variant: "caption",
|
|
@@ -1732,9 +1902,9 @@ function FieldUploadBoxInner({
|
|
|
1732
1902
|
});
|
|
1733
1903
|
const previewUrl = value ? getPreviewUrl(value) : null;
|
|
1734
1904
|
const hasError = !!error;
|
|
1735
|
-
return /* @__PURE__ */ jsxs(
|
|
1905
|
+
return /* @__PURE__ */ jsxs(Box8, { children: [
|
|
1736
1906
|
/* @__PURE__ */ jsxs(
|
|
1737
|
-
|
|
1907
|
+
Box8,
|
|
1738
1908
|
{
|
|
1739
1909
|
...getRootProps(),
|
|
1740
1910
|
sx: {
|
|
@@ -1760,7 +1930,7 @@ function FieldUploadBoxInner({
|
|
|
1760
1930
|
children: [
|
|
1761
1931
|
/* @__PURE__ */ jsx("input", { ...getInputProps() }),
|
|
1762
1932
|
!previewUrl && /* @__PURE__ */ jsx(
|
|
1763
|
-
|
|
1933
|
+
Typography3,
|
|
1764
1934
|
{
|
|
1765
1935
|
sx: {
|
|
1766
1936
|
fontSize: size / 3,
|
|
@@ -1835,9 +2005,9 @@ function FieldUploadAvatarInner({
|
|
|
1835
2005
|
});
|
|
1836
2006
|
const previewUrl = value ? getPreviewUrl(value) : null;
|
|
1837
2007
|
const hasError = !!error;
|
|
1838
|
-
return /* @__PURE__ */ jsxs(
|
|
2008
|
+
return /* @__PURE__ */ jsxs(Box8, { sx: { display: "inline-flex", flexDirection: "column", alignItems: "center" }, children: [
|
|
1839
2009
|
/* @__PURE__ */ jsxs(
|
|
1840
|
-
|
|
2010
|
+
Box8,
|
|
1841
2011
|
{
|
|
1842
2012
|
...getRootProps(),
|
|
1843
2013
|
sx: {
|
|
@@ -1866,11 +2036,11 @@ function FieldUploadAvatarInner({
|
|
|
1866
2036
|
height: "100%",
|
|
1867
2037
|
bgcolor: "background.neutral"
|
|
1868
2038
|
},
|
|
1869
|
-
children: !previewUrl && /* @__PURE__ */ jsx(
|
|
2039
|
+
children: !previewUrl && /* @__PURE__ */ jsx(Typography3, { sx: { fontSize: size / 4, color: "text.disabled" }, children: "\u{1F4F7}" })
|
|
1870
2040
|
}
|
|
1871
2041
|
),
|
|
1872
2042
|
/* @__PURE__ */ jsxs(
|
|
1873
|
-
|
|
2043
|
+
Box8,
|
|
1874
2044
|
{
|
|
1875
2045
|
className: "upload-overlay",
|
|
1876
2046
|
sx: {
|
|
@@ -1886,8 +2056,8 @@ function FieldUploadAvatarInner({
|
|
|
1886
2056
|
transition: theme.transitions.create("opacity")
|
|
1887
2057
|
},
|
|
1888
2058
|
children: [
|
|
1889
|
-
/* @__PURE__ */ jsx(
|
|
1890
|
-
/* @__PURE__ */ jsx(
|
|
2059
|
+
/* @__PURE__ */ jsx(Typography3, { sx: { fontSize: size / 6 }, children: "\u{1F4F7}" }),
|
|
2060
|
+
/* @__PURE__ */ jsx(Typography3, { variant: "caption", children: previewUrl ? "Update" : "Upload" })
|
|
1891
2061
|
]
|
|
1892
2062
|
}
|
|
1893
2063
|
)
|
|
@@ -2070,7 +2240,7 @@ function FieldPhone({
|
|
|
2070
2240
|
input: {
|
|
2071
2241
|
startAdornment: !hideCountrySelect && /* @__PURE__ */ jsxs(InputAdornment, { position: "start", children: [
|
|
2072
2242
|
/* @__PURE__ */ jsx(
|
|
2073
|
-
|
|
2243
|
+
IconButton3,
|
|
2074
2244
|
{
|
|
2075
2245
|
ref: anchorRef,
|
|
2076
2246
|
onClick: handleOpenMenu,
|
|
@@ -2082,7 +2252,7 @@ function FieldPhone({
|
|
|
2082
2252
|
"aria-expanded": menuOpen,
|
|
2083
2253
|
sx: { mr: -0.5 },
|
|
2084
2254
|
children: /* @__PURE__ */ jsx(
|
|
2085
|
-
|
|
2255
|
+
Box8,
|
|
2086
2256
|
{
|
|
2087
2257
|
component: "span",
|
|
2088
2258
|
sx: {
|
|
@@ -2097,7 +2267,7 @@ function FieldPhone({
|
|
|
2097
2267
|
}
|
|
2098
2268
|
),
|
|
2099
2269
|
/* @__PURE__ */ jsx(
|
|
2100
|
-
|
|
2270
|
+
Typography3,
|
|
2101
2271
|
{
|
|
2102
2272
|
variant: "body2",
|
|
2103
2273
|
sx: {
|
|
@@ -2393,7 +2563,7 @@ function FieldCountrySelect({
|
|
|
2393
2563
|
isOptionEqualToValue: (option, value) => option.code === value.code,
|
|
2394
2564
|
renderOption: (props, option) => {
|
|
2395
2565
|
const { key, ...optionProps } = props;
|
|
2396
|
-
return /* @__PURE__ */ jsxs(
|
|
2566
|
+
return /* @__PURE__ */ jsxs(Box8, { component: "li", sx: { "& > span": { mr: 1.5, flexShrink: 0 } }, ...optionProps, children: [
|
|
2397
2567
|
/* @__PURE__ */ jsx("span", { style: { fontSize: "1.25rem" }, children: option.flag }),
|
|
2398
2568
|
option.label,
|
|
2399
2569
|
" (",
|
|
@@ -2645,7 +2815,287 @@ var Field = {
|
|
|
2645
2815
|
/** Headless editor field with render prop */
|
|
2646
2816
|
CustomEditor: FieldCustomEditor
|
|
2647
2817
|
};
|
|
2818
|
+
function parseStackFrame(line) {
|
|
2819
|
+
const patterns = [
|
|
2820
|
+
// Named function with file: at functionName (file:line:col)
|
|
2821
|
+
// Also covers the bundler-rewritten form `(file?v=hash:line:col)`: the
|
|
2822
|
+
// lazy `(.+?)` swallows the query string, which `cleanFilePath` strips.
|
|
2823
|
+
/at\s+(?:async\s+)?([^\s(]+)\s+\((.+?):(\d+):(\d+)\)/,
|
|
2824
|
+
// Anonymous at file: at file:line:col
|
|
2825
|
+
/at\s+(.+?):(\d+):(\d+)/
|
|
2826
|
+
];
|
|
2827
|
+
for (const pattern of patterns) {
|
|
2828
|
+
const match = line.match(pattern);
|
|
2829
|
+
if (match) {
|
|
2830
|
+
const [, funcOrFile, file, lineStr, colStr] = match;
|
|
2831
|
+
const hasFile = colStr !== void 0;
|
|
2832
|
+
const functionName = hasFile ? funcOrFile : null;
|
|
2833
|
+
const filePath = hasFile ? file : funcOrFile;
|
|
2834
|
+
const lineNumber = parseInt(hasFile ? lineStr : file, 10);
|
|
2835
|
+
const columnNumber = parseInt(hasFile ? colStr : lineStr, 10);
|
|
2836
|
+
const isAppCode = !filePath.includes("node_modules") && filePath.includes("src/");
|
|
2837
|
+
return {
|
|
2838
|
+
functionName: functionName || null,
|
|
2839
|
+
filePath: cleanFilePath(filePath),
|
|
2840
|
+
lineNumber: isNaN(lineNumber) ? null : lineNumber,
|
|
2841
|
+
columnNumber: isNaN(columnNumber) ? null : columnNumber,
|
|
2842
|
+
isAppCode
|
|
2843
|
+
};
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2846
|
+
return null;
|
|
2847
|
+
}
|
|
2848
|
+
function cleanFilePath(path) {
|
|
2849
|
+
const cleaned = path.replace(/\?.*$/, "");
|
|
2850
|
+
const srcIndex = cleaned.indexOf("/src/");
|
|
2851
|
+
if (srcIndex !== -1) {
|
|
2852
|
+
return cleaned.slice(srcIndex + 1);
|
|
2853
|
+
}
|
|
2854
|
+
const parts = cleaned.split("/");
|
|
2855
|
+
if (parts.length > 3) {
|
|
2856
|
+
return parts.slice(-3).join("/");
|
|
2857
|
+
}
|
|
2858
|
+
return cleaned;
|
|
2859
|
+
}
|
|
2860
|
+
function parseStackTrace(stack) {
|
|
2861
|
+
if (!stack) {
|
|
2862
|
+
return { primary: null, frames: [], raw: "" };
|
|
2863
|
+
}
|
|
2864
|
+
const lines = stack.split("\n");
|
|
2865
|
+
const frames = [];
|
|
2866
|
+
for (const line of lines) {
|
|
2867
|
+
const frame = parseStackFrame(line.trim());
|
|
2868
|
+
if (frame) {
|
|
2869
|
+
frames.push(frame);
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
const primary = frames.find((f) => f.isAppCode) ?? frames[0] ?? null;
|
|
2873
|
+
return { primary, frames, raw: stack };
|
|
2874
|
+
}
|
|
2875
|
+
function getErrorLocation(error) {
|
|
2876
|
+
const parsed = parseStackTrace(error.stack);
|
|
2877
|
+
const { primary } = parsed;
|
|
2878
|
+
if (!primary) {
|
|
2879
|
+
return "Unknown location";
|
|
2880
|
+
}
|
|
2881
|
+
const parts = [];
|
|
2882
|
+
if (primary.functionName) {
|
|
2883
|
+
parts.push(`in ${primary.functionName}`);
|
|
2884
|
+
}
|
|
2885
|
+
if (primary.filePath) {
|
|
2886
|
+
const location = primary.lineNumber ? `${primary.filePath}:${primary.lineNumber}` : primary.filePath;
|
|
2887
|
+
parts.push(`(${location})`);
|
|
2888
|
+
}
|
|
2889
|
+
return parts.join(" ") || "Unknown location";
|
|
2890
|
+
}
|
|
2891
|
+
function DefaultErrorFallback({
|
|
2892
|
+
error,
|
|
2893
|
+
parsedStack,
|
|
2894
|
+
resetErrorBoundary,
|
|
2895
|
+
sx,
|
|
2896
|
+
showDetails
|
|
2897
|
+
}) {
|
|
2898
|
+
const [expanded, setExpanded] = useState(false);
|
|
2899
|
+
const [copied, setCopied] = useState(false);
|
|
2900
|
+
const shouldShowDetails = showDetails ?? (typeof process !== "undefined" && process.env.NODE_ENV === "development");
|
|
2901
|
+
const handleCopyStack = async () => {
|
|
2902
|
+
try {
|
|
2903
|
+
const text = [
|
|
2904
|
+
`Error: ${error.message}`,
|
|
2905
|
+
`Location: ${getErrorLocation(error)}`,
|
|
2906
|
+
"",
|
|
2907
|
+
"Stack Trace:",
|
|
2908
|
+
parsedStack.raw
|
|
2909
|
+
].join("\n");
|
|
2910
|
+
await navigator.clipboard.writeText(text);
|
|
2911
|
+
setCopied(true);
|
|
2912
|
+
setTimeout(() => setCopied(false), 2e3);
|
|
2913
|
+
} catch {
|
|
2914
|
+
}
|
|
2915
|
+
};
|
|
2916
|
+
return /* @__PURE__ */ jsxs(
|
|
2917
|
+
Box8,
|
|
2918
|
+
{
|
|
2919
|
+
sx: {
|
|
2920
|
+
display: "flex",
|
|
2921
|
+
flexDirection: "column",
|
|
2922
|
+
alignItems: "center",
|
|
2923
|
+
justifyContent: "center",
|
|
2924
|
+
minHeight: 200,
|
|
2925
|
+
p: 3,
|
|
2926
|
+
textAlign: "center",
|
|
2927
|
+
...sx
|
|
2928
|
+
},
|
|
2929
|
+
children: [
|
|
2930
|
+
/* @__PURE__ */ jsx(Typography3, { variant: "h6", color: "error", gutterBottom: true, children: "Something went wrong" }),
|
|
2931
|
+
/* @__PURE__ */ jsx(
|
|
2932
|
+
Typography3,
|
|
2933
|
+
{
|
|
2934
|
+
variant: "body2",
|
|
2935
|
+
sx: {
|
|
2936
|
+
color: "text.secondary",
|
|
2937
|
+
mb: 1,
|
|
2938
|
+
maxWidth: 400
|
|
2939
|
+
},
|
|
2940
|
+
children: error.message || "An unexpected error occurred"
|
|
2941
|
+
}
|
|
2942
|
+
),
|
|
2943
|
+
shouldShowDetails && parsedStack.primary && /* @__PURE__ */ jsxs(
|
|
2944
|
+
Typography3,
|
|
2945
|
+
{
|
|
2946
|
+
variant: "caption",
|
|
2947
|
+
sx: {
|
|
2948
|
+
color: "text.secondary",
|
|
2949
|
+
mb: 2,
|
|
2950
|
+
fontFamily: "monospace"
|
|
2951
|
+
},
|
|
2952
|
+
children: [
|
|
2953
|
+
parsedStack.primary.filePath,
|
|
2954
|
+
parsedStack.primary.lineNumber && `:${parsedStack.primary.lineNumber}`,
|
|
2955
|
+
parsedStack.primary.functionName && ` (${parsedStack.primary.functionName})`
|
|
2956
|
+
]
|
|
2957
|
+
}
|
|
2958
|
+
),
|
|
2959
|
+
/* @__PURE__ */ jsxs(Box8, { sx: { display: "flex", gap: 1, mb: 2 }, children: [
|
|
2960
|
+
/* @__PURE__ */ jsx(Button, { variant: "outlined", onClick: resetErrorBoundary, children: "Try Again" }),
|
|
2961
|
+
shouldShowDetails && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2962
|
+
/* @__PURE__ */ jsx(
|
|
2963
|
+
IconButton3,
|
|
2964
|
+
{
|
|
2965
|
+
size: "small",
|
|
2966
|
+
onClick: () => setExpanded(!expanded),
|
|
2967
|
+
"aria-label": expanded ? "Hide stack trace" : "Show stack trace",
|
|
2968
|
+
"aria-expanded": expanded,
|
|
2969
|
+
sx: {
|
|
2970
|
+
transform: expanded ? "rotate(180deg)" : "rotate(0deg)",
|
|
2971
|
+
transition: "transform 0.2s"
|
|
2972
|
+
},
|
|
2973
|
+
children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
|
|
2974
|
+
}
|
|
2975
|
+
),
|
|
2976
|
+
/* @__PURE__ */ jsx(IconButton3, { size: "small", onClick: handleCopyStack, title: "Copy error details", children: /* @__PURE__ */ jsx(CopyIcon, { fontSize: "small" }) }),
|
|
2977
|
+
copied && /* @__PURE__ */ jsx(
|
|
2978
|
+
Typography3,
|
|
2979
|
+
{
|
|
2980
|
+
variant: "caption",
|
|
2981
|
+
sx: {
|
|
2982
|
+
color: "success.main",
|
|
2983
|
+
alignSelf: "center"
|
|
2984
|
+
},
|
|
2985
|
+
children: "Copied!"
|
|
2986
|
+
}
|
|
2987
|
+
)
|
|
2988
|
+
] })
|
|
2989
|
+
] }),
|
|
2990
|
+
shouldShowDetails && /* @__PURE__ */ jsx(Collapse, { in: expanded, children: /* @__PURE__ */ jsx(
|
|
2991
|
+
Box8,
|
|
2992
|
+
{
|
|
2993
|
+
sx: {
|
|
2994
|
+
mt: 1,
|
|
2995
|
+
p: 2,
|
|
2996
|
+
// Theme-aware: `grey.100` is a light value in both modes,
|
|
2997
|
+
// which put dark text on a near-white block in dark mode.
|
|
2998
|
+
bgcolor: "action.hover",
|
|
2999
|
+
borderRadius: 1,
|
|
3000
|
+
maxWidth: 600,
|
|
3001
|
+
maxHeight: 300,
|
|
3002
|
+
overflow: "auto",
|
|
3003
|
+
textAlign: "left"
|
|
3004
|
+
},
|
|
3005
|
+
children: /* @__PURE__ */ jsx(Typography3, { variant: "caption", component: "pre", sx: { fontFamily: "monospace", m: 0 }, children: parsedStack.frames.map((frame, i) => /* @__PURE__ */ jsxs(
|
|
3006
|
+
Box8,
|
|
3007
|
+
{
|
|
3008
|
+
component: "span",
|
|
3009
|
+
sx: {
|
|
3010
|
+
display: "block",
|
|
3011
|
+
color: frame.isAppCode ? "error.main" : "text.secondary",
|
|
3012
|
+
fontWeight: frame.isAppCode ? 600 : 400
|
|
3013
|
+
},
|
|
3014
|
+
children: [
|
|
3015
|
+
frame.functionName || "(anonymous)",
|
|
3016
|
+
" at ",
|
|
3017
|
+
frame.filePath || "unknown",
|
|
3018
|
+
frame.lineNumber && `:${frame.lineNumber}`
|
|
3019
|
+
]
|
|
3020
|
+
},
|
|
3021
|
+
i
|
|
3022
|
+
)) })
|
|
3023
|
+
}
|
|
3024
|
+
) })
|
|
3025
|
+
]
|
|
3026
|
+
}
|
|
3027
|
+
);
|
|
3028
|
+
}
|
|
3029
|
+
var ErrorBoundary = class extends Component {
|
|
3030
|
+
constructor(props) {
|
|
3031
|
+
super(props);
|
|
3032
|
+
this.state = {
|
|
3033
|
+
hasError: false,
|
|
3034
|
+
error: null,
|
|
3035
|
+
errorInfo: null
|
|
3036
|
+
};
|
|
3037
|
+
}
|
|
3038
|
+
static getDerivedStateFromError(error) {
|
|
3039
|
+
return {
|
|
3040
|
+
hasError: true,
|
|
3041
|
+
error
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
componentDidCatch(error, errorInfo) {
|
|
3045
|
+
const parsedStack = parseStackTrace(error.stack);
|
|
3046
|
+
this.setState({ errorInfo });
|
|
3047
|
+
this.props.onError?.(error, errorInfo, parsedStack);
|
|
3048
|
+
}
|
|
3049
|
+
componentDidUpdate(prevProps) {
|
|
3050
|
+
const { resetKeys } = this.props;
|
|
3051
|
+
const { hasError } = this.state;
|
|
3052
|
+
if (hasError && resetKeys) {
|
|
3053
|
+
const previous = prevProps.resetKeys;
|
|
3054
|
+
const hasKeyChanged = previous === void 0 || previous.length !== resetKeys.length || resetKeys.some((key, index) => key !== previous[index]);
|
|
3055
|
+
if (hasKeyChanged) {
|
|
3056
|
+
this.resetErrorBoundary();
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
resetErrorBoundary = () => {
|
|
3061
|
+
this.props.onReset?.();
|
|
3062
|
+
this.setState({
|
|
3063
|
+
hasError: false,
|
|
3064
|
+
error: null,
|
|
3065
|
+
errorInfo: null
|
|
3066
|
+
});
|
|
3067
|
+
};
|
|
3068
|
+
render() {
|
|
3069
|
+
const { hasError, error, errorInfo } = this.state;
|
|
3070
|
+
const { children, fallback, sx, showDetails } = this.props;
|
|
3071
|
+
if (hasError && error) {
|
|
3072
|
+
const parsedStack = parseStackTrace(error.stack);
|
|
3073
|
+
const fallbackProps = {
|
|
3074
|
+
error,
|
|
3075
|
+
errorInfo,
|
|
3076
|
+
parsedStack,
|
|
3077
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
3078
|
+
};
|
|
3079
|
+
if (typeof fallback === "function") {
|
|
3080
|
+
return fallback(fallbackProps);
|
|
3081
|
+
}
|
|
3082
|
+
if (fallback) {
|
|
3083
|
+
return fallback;
|
|
3084
|
+
}
|
|
3085
|
+
return /* @__PURE__ */ jsx(DefaultErrorFallback, { ...fallbackProps, sx, showDetails });
|
|
3086
|
+
}
|
|
3087
|
+
return children;
|
|
3088
|
+
}
|
|
3089
|
+
};
|
|
3090
|
+
function useErrorBoundary() {
|
|
3091
|
+
const [, setError] = useState(null);
|
|
3092
|
+
return (error) => {
|
|
3093
|
+
setError(() => {
|
|
3094
|
+
throw error;
|
|
3095
|
+
});
|
|
3096
|
+
};
|
|
3097
|
+
}
|
|
2648
3098
|
|
|
2649
|
-
export { Field, FieldAutocomplete, FieldCheckbox, FieldCode, FieldCountrySelect, FieldCustomEditor, FieldDatePicker, FieldDateTimePicker, FieldEditor, FieldMultiCheckbox, FieldMultiSelect, FieldMultiSwitch, FieldNumber, FieldPhone, FieldRadio, FieldRating, FieldSelect, FieldSlider, FieldSwitch, FieldText, FieldTimePicker, FieldUpload, FieldUploadAvatar, FieldUploadBox, SearchInput, clampNumber, createNumberInputHandlers, parseNumber, roundToDecimals, transformForDisplay, transformOnBlur, transformOnChange };
|
|
2650
|
-
//# sourceMappingURL=chunk-
|
|
2651
|
-
//# sourceMappingURL=chunk-
|
|
3099
|
+
export { EmptyContent, ErrorBoundary, Field, FieldAutocomplete, FieldCheckbox, FieldCode, FieldCountrySelect, FieldCustomEditor, FieldDatePicker, FieldDateTimePicker, FieldEditor, FieldMultiCheckbox, FieldMultiSelect, FieldMultiSwitch, FieldNumber, FieldPhone, FieldRadio, FieldRating, FieldSelect, FieldSlider, FieldSwitch, FieldText, FieldTimePicker, FieldUpload, FieldUploadAvatar, FieldUploadBox, LoadingEmptyContent, SearchEmptyContent, SearchInput, clampNumber, createNumberInputHandlers, getErrorLocation, parseNumber, parseStackTrace, roundToDecimals, transformForDisplay, transformOnBlur, transformOnChange, useErrorBoundary };
|
|
3100
|
+
//# sourceMappingURL=chunk-GMIE6III.js.map
|
|
3101
|
+
//# sourceMappingURL=chunk-GMIE6III.js.map
|