@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
package/dist/blocks/index.d.ts
CHANGED
|
@@ -1,1239 +1,14 @@
|
|
|
1
|
-
import { ReactNode, MouseEvent } from 'react';
|
|
2
|
-
import { SxProps, Theme } from '@mui/material';
|
|
3
|
-
import { SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material/styles';
|
|
4
|
-
import { BoxProps } from '@mui/material/Box';
|
|
5
|
-
import { ButtonProps } from '@mui/material/Button';
|
|
6
|
-
import { TextFieldProps } from '@mui/material/TextField';
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
import { GridColDef, GridRowsProp, GridDensity, GridRowId, GridRowParams, GridRowSelectionModel, GridPaginationModel, GridSortModel, GridFilterModel, GridSlots, GridSlotProps, GridCallbackDetails } from '@mui/x-data-grid';
|
|
9
|
-
|
|
10
1
|
/**
|
|
11
|
-
*
|
|
2
|
+
* Prism Blocks Module
|
|
12
3
|
*
|
|
13
|
-
*
|
|
4
|
+
* Pre-built UI blocks combining multiple components for common patterns.
|
|
14
5
|
*
|
|
15
|
-
* @module @omnitron-dev/prism/blocks
|
|
6
|
+
* @module @omnitron-dev/prism/blocks
|
|
16
7
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
type DashboardBlockSize = 'small' | 'medium' | 'large';
|
|
26
|
-
/**
|
|
27
|
-
* Loading state configuration.
|
|
28
|
-
*/
|
|
29
|
-
interface LoadingConfig {
|
|
30
|
-
/** Show skeleton loading */
|
|
31
|
-
skeleton?: boolean;
|
|
32
|
-
/** Number of skeleton rows */
|
|
33
|
-
skeletonRows?: number;
|
|
34
|
-
/** Custom loading component */
|
|
35
|
-
loadingComponent?: ReactNode;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Error state configuration.
|
|
39
|
-
*/
|
|
40
|
-
interface ErrorConfig {
|
|
41
|
-
/** Error message */
|
|
42
|
-
message?: string;
|
|
43
|
-
/** Retry callback */
|
|
44
|
-
onRetry?: () => void;
|
|
45
|
-
/** Custom error component */
|
|
46
|
-
errorComponent?: ReactNode;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Dashboard block header props.
|
|
50
|
-
*/
|
|
51
|
-
interface DashboardBlockHeaderProps {
|
|
52
|
-
/** Block title */
|
|
53
|
-
title: string;
|
|
54
|
-
/** Optional subtitle */
|
|
55
|
-
subtitle?: string;
|
|
56
|
-
/** Icon element */
|
|
57
|
-
icon?: ReactNode;
|
|
58
|
-
/** Actions slot (buttons, menu, etc.) */
|
|
59
|
-
actions?: ReactNode;
|
|
60
|
-
/** MUI sx prop */
|
|
61
|
-
sx?: SxProps<Theme>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Dashboard block content props.
|
|
65
|
-
*/
|
|
66
|
-
interface DashboardBlockContentProps {
|
|
67
|
-
/** Content children */
|
|
68
|
-
children?: ReactNode;
|
|
69
|
-
/** Disable default padding */
|
|
70
|
-
disablePadding?: boolean;
|
|
71
|
-
/** MUI sx prop */
|
|
72
|
-
sx?: SxProps<Theme>;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Dashboard block footer props.
|
|
76
|
-
*/
|
|
77
|
-
interface DashboardBlockFooterProps {
|
|
78
|
-
/** Footer content */
|
|
79
|
-
children?: ReactNode;
|
|
80
|
-
/** Show divider above footer */
|
|
81
|
-
divider?: boolean;
|
|
82
|
-
/** MUI sx prop */
|
|
83
|
-
sx?: SxProps<Theme>;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Dashboard block props.
|
|
87
|
-
*/
|
|
88
|
-
interface DashboardBlockProps {
|
|
89
|
-
/** Block title */
|
|
90
|
-
title?: string;
|
|
91
|
-
/** Optional subtitle */
|
|
92
|
-
subtitle?: string;
|
|
93
|
-
/** Icon element */
|
|
94
|
-
icon?: ReactNode;
|
|
95
|
-
/** Actions slot */
|
|
96
|
-
actions?: ReactNode;
|
|
97
|
-
/** Content children */
|
|
98
|
-
children?: ReactNode;
|
|
99
|
-
/** Footer content */
|
|
100
|
-
footer?: ReactNode;
|
|
101
|
-
/** Block variant */
|
|
102
|
-
variant?: DashboardBlockVariant;
|
|
103
|
-
/** Block size */
|
|
104
|
-
size?: DashboardBlockSize;
|
|
105
|
-
/** Loading state */
|
|
106
|
-
loading?: boolean;
|
|
107
|
-
/** Loading configuration */
|
|
108
|
-
loadingConfig?: LoadingConfig;
|
|
109
|
-
/** Error state */
|
|
110
|
-
error?: boolean;
|
|
111
|
-
/** Error configuration */
|
|
112
|
-
errorConfig?: ErrorConfig;
|
|
113
|
-
/** Collapsible block */
|
|
114
|
-
collapsible?: boolean;
|
|
115
|
-
/** Initial collapsed state */
|
|
116
|
-
defaultCollapsed?: boolean;
|
|
117
|
-
/** Controlled collapsed state */
|
|
118
|
-
collapsed?: boolean;
|
|
119
|
-
/** Collapse change handler */
|
|
120
|
-
onCollapseChange?: (collapsed: boolean) => void;
|
|
121
|
-
/** Disable default content padding */
|
|
122
|
-
disablePadding?: boolean;
|
|
123
|
-
/** Show footer divider */
|
|
124
|
-
footerDivider?: boolean;
|
|
125
|
-
/** MUI sx prop */
|
|
126
|
-
sx?: SxProps<Theme>;
|
|
127
|
-
/** Header slot props */
|
|
128
|
-
slotProps?: {
|
|
129
|
-
header?: Partial<DashboardBlockHeaderProps>;
|
|
130
|
-
content?: Partial<DashboardBlockContentProps>;
|
|
131
|
-
footer?: Partial<DashboardBlockFooterProps>;
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Dashboard block context value.
|
|
136
|
-
*/
|
|
137
|
-
interface DashboardBlockContextValue {
|
|
138
|
-
/** Current collapsed state */
|
|
139
|
-
collapsed: boolean;
|
|
140
|
-
/** Toggle collapse */
|
|
141
|
-
toggleCollapse: () => void;
|
|
142
|
-
/** Set collapsed state */
|
|
143
|
-
setCollapsed: (collapsed: boolean) => void;
|
|
144
|
-
/** Current loading state */
|
|
145
|
-
loading: boolean;
|
|
146
|
-
/** Current error state */
|
|
147
|
-
error: boolean;
|
|
148
|
-
/** Block variant */
|
|
149
|
-
variant: DashboardBlockVariant;
|
|
150
|
-
/** Block size */
|
|
151
|
-
size: DashboardBlockSize;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Dashboard Block Component
|
|
156
|
-
*
|
|
157
|
-
* Reusable dashboard widget/card block with header, content, and footer slots.
|
|
158
|
-
* Supports loading, error states, and collapsible behavior.
|
|
159
|
-
*
|
|
160
|
-
* @module @omnitron-dev/prism/blocks/dashboard-block
|
|
161
|
-
*/
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Hook to access dashboard block context.
|
|
165
|
-
*/
|
|
166
|
-
declare function useDashboardBlockContext(): DashboardBlockContextValue;
|
|
167
|
-
/**
|
|
168
|
-
* Dashboard block header component.
|
|
169
|
-
*/
|
|
170
|
-
declare function DashboardBlockHeader({ title, subtitle, icon, actions, sx }: DashboardBlockHeaderProps): ReactNode;
|
|
171
|
-
/**
|
|
172
|
-
* Dashboard block content component.
|
|
173
|
-
*/
|
|
174
|
-
declare function DashboardBlockContent({ children, disablePadding, sx }: DashboardBlockContentProps): ReactNode;
|
|
175
|
-
/**
|
|
176
|
-
* Dashboard block footer component.
|
|
177
|
-
*/
|
|
178
|
-
declare function DashboardBlockFooter({ children, divider, sx }: DashboardBlockFooterProps): ReactNode;
|
|
179
|
-
/**
|
|
180
|
-
* Dashboard Block - Reusable dashboard widget/card.
|
|
181
|
-
*
|
|
182
|
-
* Features:
|
|
183
|
-
* - Header with title, subtitle, icon, and actions
|
|
184
|
-
* - Content area with optional padding
|
|
185
|
-
* - Footer slot with optional divider
|
|
186
|
-
* - Loading and error states
|
|
187
|
-
* - Collapsible behavior (controlled or uncontrolled)
|
|
188
|
-
* - Three size presets (small, medium, large)
|
|
189
|
-
* - Three variants (default, outlined, filled)
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* ```tsx
|
|
193
|
-
* <DashboardBlock
|
|
194
|
-
* title="Revenue Overview"
|
|
195
|
-
* subtitle="Last 30 days"
|
|
196
|
-
* icon={<BarChartIcon />}
|
|
197
|
-
* actions={<IconButton><MoreIcon /></IconButton>}
|
|
198
|
-
* collapsible
|
|
199
|
-
* >
|
|
200
|
-
* <RevenueChart />
|
|
201
|
-
* </DashboardBlock>
|
|
202
|
-
* ```
|
|
203
|
-
*/
|
|
204
|
-
declare function DashboardBlock({ title, subtitle, icon, actions, children, footer, variant, size, loading, loadingConfig, error, errorConfig, collapsible, defaultCollapsed, collapsed: controlledCollapsed, onCollapseChange, disablePadding, footerDivider, sx, slotProps, }: DashboardBlockProps): ReactNode;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Dashboard Block Hook
|
|
208
|
-
*
|
|
209
|
-
* Hook for managing dashboard block state and behavior.
|
|
210
|
-
*
|
|
211
|
-
* @module @omnitron-dev/prism/blocks/dashboard-block/use-dashboard-block
|
|
212
|
-
*/
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Dashboard block state.
|
|
216
|
-
*/
|
|
217
|
-
interface DashboardBlockState {
|
|
218
|
-
/** Current collapsed state */
|
|
219
|
-
collapsed: boolean;
|
|
220
|
-
/** Current loading state */
|
|
221
|
-
loading: boolean;
|
|
222
|
-
/** Current error state */
|
|
223
|
-
error: boolean;
|
|
224
|
-
/** Error message */
|
|
225
|
-
errorMessage?: string;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Dashboard block actions.
|
|
229
|
-
*/
|
|
230
|
-
interface DashboardBlockActions {
|
|
231
|
-
/** Toggle collapse state */
|
|
232
|
-
toggleCollapse: () => void;
|
|
233
|
-
/** Set collapsed state */
|
|
234
|
-
setCollapsed: (collapsed: boolean) => void;
|
|
235
|
-
/** Expand block */
|
|
236
|
-
expand: () => void;
|
|
237
|
-
/** Collapse block */
|
|
238
|
-
collapse: () => void;
|
|
239
|
-
/** Set loading state */
|
|
240
|
-
setLoading: (loading: boolean) => void;
|
|
241
|
-
/** Set error state */
|
|
242
|
-
setError: (error: boolean, message?: string) => void;
|
|
243
|
-
/** Clear error state */
|
|
244
|
-
clearError: () => void;
|
|
245
|
-
/** Reset to initial state */
|
|
246
|
-
reset: () => void;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Dashboard block hook return value.
|
|
250
|
-
*/
|
|
251
|
-
interface UseDashboardBlockReturn {
|
|
252
|
-
/** Current state */
|
|
253
|
-
state: DashboardBlockState;
|
|
254
|
-
/** Actions to modify state */
|
|
255
|
-
actions: DashboardBlockActions;
|
|
256
|
-
/** Props to spread on DashboardBlock */
|
|
257
|
-
blockProps: Pick<DashboardBlockProps, 'collapsed' | 'onCollapseChange' | 'loading' | 'error' | 'errorConfig'>;
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Options for useDashboardBlock hook.
|
|
261
|
-
*/
|
|
262
|
-
interface UseDashboardBlockOptions {
|
|
263
|
-
/** Initial collapsed state */
|
|
264
|
-
defaultCollapsed?: boolean;
|
|
265
|
-
/** Initial loading state */
|
|
266
|
-
defaultLoading?: boolean;
|
|
267
|
-
/** Retry callback for error state */
|
|
268
|
-
onRetry?: () => void;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Hook for managing dashboard block state.
|
|
272
|
-
*
|
|
273
|
-
* Provides controlled state management for DashboardBlock component,
|
|
274
|
-
* including collapse, loading, and error states.
|
|
275
|
-
*
|
|
276
|
-
* @example
|
|
277
|
-
* ```tsx
|
|
278
|
-
* function MyWidget() {
|
|
279
|
-
* const { state, actions, blockProps } = useDashboardBlock({
|
|
280
|
-
* defaultCollapsed: false,
|
|
281
|
-
* onRetry: () => fetchData(),
|
|
282
|
-
* });
|
|
283
|
-
*
|
|
284
|
-
* useEffect(() => {
|
|
285
|
-
* actions.setLoading(true);
|
|
286
|
-
* fetchData()
|
|
287
|
-
* .then(() => actions.setLoading(false))
|
|
288
|
-
* .catch((err) => actions.setError(true, err.message));
|
|
289
|
-
* }, []);
|
|
290
|
-
*
|
|
291
|
-
* return (
|
|
292
|
-
* <DashboardBlock title="My Widget" {...blockProps}>
|
|
293
|
-
* <Content />
|
|
294
|
-
* </DashboardBlock>
|
|
295
|
-
* );
|
|
296
|
-
* }
|
|
297
|
-
* ```
|
|
298
|
-
*/
|
|
299
|
-
declare function useDashboardBlock(options?: UseDashboardBlockOptions): UseDashboardBlockReturn;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Auth Block Types
|
|
303
|
-
*
|
|
304
|
-
* Type definitions for authentication-related block components.
|
|
305
|
-
*
|
|
306
|
-
* @module @omnitron-dev/prism/blocks/auth-block
|
|
307
|
-
*/
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Base props for all auth forms
|
|
311
|
-
*/
|
|
312
|
-
interface AuthFormBaseProps {
|
|
313
|
-
/** Called when form is submitted successfully */
|
|
314
|
-
onSubmit: (data: Record<string, unknown>) => Promise<void> | void;
|
|
315
|
-
/** Form loading state */
|
|
316
|
-
loading?: boolean;
|
|
317
|
-
/** Disabled state */
|
|
318
|
-
disabled?: boolean;
|
|
319
|
-
/** Custom styling */
|
|
320
|
-
sx?: SxProps$1<Theme$1>;
|
|
321
|
-
/** Slot props for nested components */
|
|
322
|
-
slotProps?: {
|
|
323
|
-
/** Wrapper props */
|
|
324
|
-
wrapper?: Partial<BoxProps>;
|
|
325
|
-
/** Submit button props */
|
|
326
|
-
submitButton?: Partial<ButtonProps>;
|
|
327
|
-
/** Text field props */
|
|
328
|
-
textField?: Partial<TextFieldProps>;
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Login form data
|
|
333
|
-
*/
|
|
334
|
-
interface LoginFormData {
|
|
335
|
-
email: string;
|
|
336
|
-
password: string;
|
|
337
|
-
rememberMe?: boolean;
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* Props for LoginForm component
|
|
341
|
-
*/
|
|
342
|
-
interface LoginFormProps extends Omit<AuthFormBaseProps, 'onSubmit'> {
|
|
343
|
-
/** Called when form is submitted */
|
|
344
|
-
onSubmit: (data: LoginFormData) => Promise<void> | void;
|
|
345
|
-
/** Show "Remember me" checkbox */
|
|
346
|
-
showRememberMe?: boolean;
|
|
347
|
-
/** Show "Forgot password" link */
|
|
348
|
-
showForgotPassword?: boolean;
|
|
349
|
-
/** Forgot password link handler */
|
|
350
|
-
onForgotPassword?: () => void;
|
|
351
|
-
/** Show social login buttons */
|
|
352
|
-
showSocialLogin?: boolean;
|
|
353
|
-
/** Social login options */
|
|
354
|
-
socialProviders?: Array<{
|
|
355
|
-
id: string;
|
|
356
|
-
name: string;
|
|
357
|
-
icon: ReactNode;
|
|
358
|
-
onClick: () => void;
|
|
359
|
-
}>;
|
|
360
|
-
/** Custom validation schema */
|
|
361
|
-
schema?: z.ZodSchema<LoginFormData>;
|
|
362
|
-
/** Labels customization */
|
|
363
|
-
labels?: {
|
|
364
|
-
email?: string;
|
|
365
|
-
password?: string;
|
|
366
|
-
rememberMe?: string;
|
|
367
|
-
forgotPassword?: string;
|
|
368
|
-
submit?: string;
|
|
369
|
-
socialDivider?: string;
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Register form data
|
|
374
|
-
*/
|
|
375
|
-
interface RegisterFormData {
|
|
376
|
-
email: string;
|
|
377
|
-
password: string;
|
|
378
|
-
confirmPassword: string;
|
|
379
|
-
firstName?: string;
|
|
380
|
-
lastName?: string;
|
|
381
|
-
acceptTerms?: boolean;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Props for RegisterForm component
|
|
385
|
-
*/
|
|
386
|
-
interface RegisterFormProps extends Omit<AuthFormBaseProps, 'onSubmit'> {
|
|
387
|
-
/** Called when form is submitted */
|
|
388
|
-
onSubmit: (data: RegisterFormData) => Promise<void> | void;
|
|
389
|
-
/** Show name fields */
|
|
390
|
-
showNameFields?: boolean;
|
|
391
|
-
/** Require terms acceptance */
|
|
392
|
-
requireTerms?: boolean;
|
|
393
|
-
/** Terms link handler */
|
|
394
|
-
onTermsClick?: () => void;
|
|
395
|
-
/** Privacy policy link handler */
|
|
396
|
-
onPrivacyClick?: () => void;
|
|
397
|
-
/** Minimum password length */
|
|
398
|
-
minPasswordLength?: number;
|
|
399
|
-
/** Custom validation schema */
|
|
400
|
-
schema?: z.ZodSchema<RegisterFormData>;
|
|
401
|
-
/** Labels customization */
|
|
402
|
-
labels?: {
|
|
403
|
-
email?: string;
|
|
404
|
-
password?: string;
|
|
405
|
-
confirmPassword?: string;
|
|
406
|
-
firstName?: string;
|
|
407
|
-
lastName?: string;
|
|
408
|
-
acceptTerms?: string;
|
|
409
|
-
termsLink?: string;
|
|
410
|
-
privacyLink?: string;
|
|
411
|
-
submit?: string;
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* Forgot password form data
|
|
416
|
-
*/
|
|
417
|
-
interface ForgotPasswordFormData {
|
|
418
|
-
email: string;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* Props for ForgotPasswordForm component
|
|
422
|
-
*/
|
|
423
|
-
interface ForgotPasswordFormProps extends Omit<AuthFormBaseProps, 'onSubmit'> {
|
|
424
|
-
/** Called when form is submitted */
|
|
425
|
-
onSubmit: (data: ForgotPasswordFormData) => Promise<void> | void;
|
|
426
|
-
/** Back to login handler */
|
|
427
|
-
onBackToLogin?: () => void;
|
|
428
|
-
/** Custom validation schema */
|
|
429
|
-
schema?: z.ZodSchema<ForgotPasswordFormData>;
|
|
430
|
-
/** Labels customization */
|
|
431
|
-
labels?: {
|
|
432
|
-
title?: string;
|
|
433
|
-
description?: string;
|
|
434
|
-
email?: string;
|
|
435
|
-
submit?: string;
|
|
436
|
-
backToLogin?: string;
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* Reset password form data
|
|
441
|
-
*/
|
|
442
|
-
interface ResetPasswordFormData {
|
|
443
|
-
password: string;
|
|
444
|
-
confirmPassword: string;
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* Props for ResetPasswordForm component
|
|
448
|
-
*/
|
|
449
|
-
interface ResetPasswordFormProps extends Omit<AuthFormBaseProps, 'onSubmit'> {
|
|
450
|
-
/** Called when form is submitted */
|
|
451
|
-
onSubmit: (data: ResetPasswordFormData) => Promise<void> | void;
|
|
452
|
-
/** Minimum password length */
|
|
453
|
-
minPasswordLength?: number;
|
|
454
|
-
/** Custom validation schema */
|
|
455
|
-
schema?: z.ZodSchema<ResetPasswordFormData>;
|
|
456
|
-
/** Labels customization */
|
|
457
|
-
labels?: {
|
|
458
|
-
title?: string;
|
|
459
|
-
description?: string;
|
|
460
|
-
password?: string;
|
|
461
|
-
confirmPassword?: string;
|
|
462
|
-
submit?: string;
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
/**
|
|
466
|
-
* Verify code form data
|
|
467
|
-
*/
|
|
468
|
-
interface VerifyCodeFormData {
|
|
469
|
-
code: string;
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Props for VerifyCodeForm component
|
|
473
|
-
*/
|
|
474
|
-
interface VerifyCodeFormProps extends Omit<AuthFormBaseProps, 'onSubmit'> {
|
|
475
|
-
/** Called when form is submitted */
|
|
476
|
-
onSubmit: (data: VerifyCodeFormData) => Promise<void> | void;
|
|
477
|
-
/** Code length (default: 6) */
|
|
478
|
-
codeLength?: number;
|
|
479
|
-
/** Resend code handler */
|
|
480
|
-
onResendCode?: () => void;
|
|
481
|
-
/** Resend cooldown in seconds */
|
|
482
|
-
resendCooldown?: number;
|
|
483
|
-
/** Custom validation schema */
|
|
484
|
-
schema?: z.ZodSchema<VerifyCodeFormData>;
|
|
485
|
-
/** Labels customization */
|
|
486
|
-
labels?: {
|
|
487
|
-
title?: string;
|
|
488
|
-
description?: string;
|
|
489
|
-
resendCode?: string;
|
|
490
|
-
resendIn?: string;
|
|
491
|
-
submit?: string;
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* Auth block variant
|
|
496
|
-
*/
|
|
497
|
-
type AuthBlockVariant = 'login' | 'register' | 'forgot-password' | 'reset-password' | 'verify-code';
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Auth Block Component
|
|
501
|
-
*
|
|
502
|
-
* Reusable authentication forms: login, register, forgot password, etc.
|
|
503
|
-
* Integrates with React Hook Form and Zod for validation.
|
|
504
|
-
*
|
|
505
|
-
* @module @omnitron-dev/prism/blocks/auth-block
|
|
506
|
-
*/
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* Login form component with email/password authentication.
|
|
510
|
-
*
|
|
511
|
-
* @example
|
|
512
|
-
* ```tsx
|
|
513
|
-
* <LoginForm
|
|
514
|
-
* onSubmit={async (data) => {
|
|
515
|
-
* await signIn(data.email, data.password);
|
|
516
|
-
* }}
|
|
517
|
-
* showRememberMe
|
|
518
|
-
* showForgotPassword
|
|
519
|
-
* onForgotPassword={() => navigate('/forgot-password')}
|
|
520
|
-
* />
|
|
521
|
-
* ```
|
|
522
|
-
*/
|
|
523
|
-
declare function LoginForm({ onSubmit, loading, disabled, showRememberMe, showForgotPassword, onForgotPassword, showSocialLogin, socialProviders, schema, labels, sx, slotProps, }: LoginFormProps): ReactNode;
|
|
524
|
-
/**
|
|
525
|
-
* Registration form component.
|
|
526
|
-
*
|
|
527
|
-
* @example
|
|
528
|
-
* ```tsx
|
|
529
|
-
* <RegisterForm
|
|
530
|
-
* onSubmit={async (data) => {
|
|
531
|
-
* await signUp(data);
|
|
532
|
-
* }}
|
|
533
|
-
* showNameFields
|
|
534
|
-
* requireTerms
|
|
535
|
-
* onTermsClick={() => window.open('/terms')}
|
|
536
|
-
* />
|
|
537
|
-
* ```
|
|
538
|
-
*/
|
|
539
|
-
declare function RegisterForm({ onSubmit, loading, disabled, showNameFields, requireTerms, onTermsClick, onPrivacyClick, minPasswordLength, schema, labels, sx, slotProps, }: RegisterFormProps): ReactNode;
|
|
540
|
-
/**
|
|
541
|
-
* Forgot password form component.
|
|
542
|
-
*
|
|
543
|
-
* @example
|
|
544
|
-
* ```tsx
|
|
545
|
-
* <ForgotPasswordForm
|
|
546
|
-
* onSubmit={async (data) => {
|
|
547
|
-
* await sendPasswordResetEmail(data.email);
|
|
548
|
-
* }}
|
|
549
|
-
* onBackToLogin={() => navigate('/login')}
|
|
550
|
-
* />
|
|
551
|
-
* ```
|
|
552
|
-
*/
|
|
553
|
-
declare function ForgotPasswordForm({ onSubmit, loading, disabled, onBackToLogin, schema, labels, sx, slotProps, }: ForgotPasswordFormProps): ReactNode;
|
|
554
|
-
/**
|
|
555
|
-
* Reset password form component.
|
|
556
|
-
*
|
|
557
|
-
* @example
|
|
558
|
-
* ```tsx
|
|
559
|
-
* <ResetPasswordForm
|
|
560
|
-
* onSubmit={async (data) => {
|
|
561
|
-
* await resetPassword(token, data.password);
|
|
562
|
-
* }}
|
|
563
|
-
* />
|
|
564
|
-
* ```
|
|
565
|
-
*/
|
|
566
|
-
declare function ResetPasswordForm({ onSubmit, loading, disabled, minPasswordLength, schema, labels, sx, slotProps, }: ResetPasswordFormProps): ReactNode;
|
|
567
|
-
/**
|
|
568
|
-
* Verify code form component (OTP verification).
|
|
569
|
-
*
|
|
570
|
-
* @example
|
|
571
|
-
* ```tsx
|
|
572
|
-
* <VerifyCodeForm
|
|
573
|
-
* onSubmit={async (data) => {
|
|
574
|
-
* await verifyCode(data.code);
|
|
575
|
-
* }}
|
|
576
|
-
* onResendCode={async () => {
|
|
577
|
-
* await resendVerificationCode();
|
|
578
|
-
* }}
|
|
579
|
-
* resendCooldown={60}
|
|
580
|
-
* />
|
|
581
|
-
* ```
|
|
582
|
-
*/
|
|
583
|
-
declare function VerifyCodeForm({ onSubmit, loading, disabled, codeLength, onResendCode, resendCooldown, schema, labels, sx, slotProps, }: VerifyCodeFormProps): ReactNode;
|
|
584
|
-
/**
|
|
585
|
-
* AuthBlock namespace for auth-related forms.
|
|
586
|
-
*/
|
|
587
|
-
declare const AuthBlock: {
|
|
588
|
-
readonly Login: typeof LoginForm;
|
|
589
|
-
readonly Register: typeof RegisterForm;
|
|
590
|
-
readonly ForgotPassword: typeof ForgotPasswordForm;
|
|
591
|
-
readonly ResetPassword: typeof ResetPasswordForm;
|
|
592
|
-
readonly VerifyCode: typeof VerifyCodeForm;
|
|
593
|
-
};
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* Route Guards
|
|
597
|
-
*
|
|
598
|
-
* Authentication and authorization guards for route protection.
|
|
599
|
-
* Works with any router (React Router, Next.js, TanStack Router).
|
|
600
|
-
*
|
|
601
|
-
* @module @omnitron-dev/prism/blocks/auth-block
|
|
602
|
-
*/
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* User role type - string or enum value.
|
|
606
|
-
*/
|
|
607
|
-
type Role = string;
|
|
608
|
-
/**
|
|
609
|
-
* Permission type - string identifier.
|
|
610
|
-
*/
|
|
611
|
-
type Permission = string;
|
|
612
|
-
/**
|
|
613
|
-
* User with roles and permissions for authorization.
|
|
614
|
-
*/
|
|
615
|
-
interface AuthUser {
|
|
616
|
-
/** User ID */
|
|
617
|
-
id: string | number;
|
|
618
|
-
/** User roles */
|
|
619
|
-
roles?: Role[];
|
|
620
|
-
/** User permissions (fine-grained) */
|
|
621
|
-
permissions?: Permission[];
|
|
622
|
-
/** Email verified status */
|
|
623
|
-
emailVerified?: boolean;
|
|
624
|
-
/** Any additional properties */
|
|
625
|
-
[key: string]: unknown;
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* Auth state for guards.
|
|
629
|
-
*/
|
|
630
|
-
interface AuthState {
|
|
631
|
-
/** Whether user is authenticated */
|
|
632
|
-
isAuthenticated: boolean;
|
|
633
|
-
/** Whether auth state is still loading */
|
|
634
|
-
isLoading: boolean;
|
|
635
|
-
/** Current user (if authenticated) */
|
|
636
|
-
user?: AuthUser | null;
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
* Props for useAuth hook.
|
|
640
|
-
* Guards need this to check auth state.
|
|
641
|
-
*/
|
|
642
|
-
interface UseAuth {
|
|
643
|
-
(): AuthState;
|
|
644
|
-
}
|
|
645
|
-
/**
|
|
646
|
-
* AuthGuard props.
|
|
647
|
-
*/
|
|
648
|
-
interface AuthGuardProps {
|
|
649
|
-
/** Children to render when authorized */
|
|
650
|
-
children: ReactNode;
|
|
651
|
-
/** Hook to get auth state */
|
|
652
|
-
useAuth: UseAuth;
|
|
653
|
-
/** Component to show while loading */
|
|
654
|
-
loadingComponent?: ReactNode;
|
|
655
|
-
/** Called when not authenticated (e.g., redirect to login) */
|
|
656
|
-
onUnauthenticated?: () => void;
|
|
657
|
-
/** Component to show when not authenticated (if no redirect) */
|
|
658
|
-
unauthenticatedComponent?: ReactNode;
|
|
659
|
-
}
|
|
660
|
-
/**
|
|
661
|
-
* Guard that requires authentication.
|
|
662
|
-
*
|
|
663
|
-
* @example
|
|
664
|
-
* ```tsx
|
|
665
|
-
* import { AuthGuard } from '@omnitron-dev/prism/blocks';
|
|
666
|
-
* import { useAuth } from '../hooks/use-auth';
|
|
667
|
-
*
|
|
668
|
-
* function ProtectedPage() {
|
|
669
|
-
* return (
|
|
670
|
-
* <AuthGuard
|
|
671
|
-
* useAuth={useAuth}
|
|
672
|
-
* onUnauthenticated={() => navigate('/login')}
|
|
673
|
-
* loadingComponent={<LoadingScreen />}
|
|
674
|
-
* >
|
|
675
|
-
* <DashboardContent />
|
|
676
|
-
* </AuthGuard>
|
|
677
|
-
* );
|
|
678
|
-
* }
|
|
679
|
-
* ```
|
|
680
|
-
*/
|
|
681
|
-
declare function AuthGuard({ children, useAuth, loadingComponent, onUnauthenticated, unauthenticatedComponent, }: AuthGuardProps): ReactNode;
|
|
682
|
-
/**
|
|
683
|
-
* GuestGuard props.
|
|
684
|
-
*/
|
|
685
|
-
interface GuestGuardProps {
|
|
686
|
-
/** Children to render when not authenticated */
|
|
687
|
-
children: ReactNode;
|
|
688
|
-
/** Hook to get auth state */
|
|
689
|
-
useAuth: UseAuth;
|
|
690
|
-
/** Component to show while loading */
|
|
691
|
-
loadingComponent?: ReactNode;
|
|
692
|
-
/** Called when authenticated (e.g., redirect to dashboard) */
|
|
693
|
-
onAuthenticated?: () => void;
|
|
694
|
-
/** Component to show when authenticated (if no redirect) */
|
|
695
|
-
authenticatedComponent?: ReactNode;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* Guard that requires NO authentication.
|
|
699
|
-
* Use for login, register, forgot password pages.
|
|
700
|
-
*
|
|
701
|
-
* @example
|
|
702
|
-
* ```tsx
|
|
703
|
-
* import { GuestGuard } from '@omnitron-dev/prism/blocks';
|
|
704
|
-
* import { useAuth } from '../hooks/use-auth';
|
|
705
|
-
*
|
|
706
|
-
* function LoginPage() {
|
|
707
|
-
* return (
|
|
708
|
-
* <GuestGuard
|
|
709
|
-
* useAuth={useAuth}
|
|
710
|
-
* onAuthenticated={() => navigate('/dashboard')}
|
|
711
|
-
* loadingComponent={<LoadingScreen />}
|
|
712
|
-
* >
|
|
713
|
-
* <LoginForm />
|
|
714
|
-
* </GuestGuard>
|
|
715
|
-
* );
|
|
716
|
-
* }
|
|
717
|
-
* ```
|
|
718
|
-
*/
|
|
719
|
-
declare function GuestGuard({ children, useAuth, loadingComponent, onAuthenticated, authenticatedComponent, }: GuestGuardProps): ReactNode;
|
|
720
|
-
/**
|
|
721
|
-
* RoleBasedGuard props.
|
|
722
|
-
*/
|
|
723
|
-
interface RoleBasedGuardProps {
|
|
724
|
-
/** Children to render when authorized */
|
|
725
|
-
children: ReactNode;
|
|
726
|
-
/** Hook to get auth state */
|
|
727
|
-
useAuth: UseAuth;
|
|
728
|
-
/** Required roles (user must have at least one) */
|
|
729
|
-
roles?: Role[];
|
|
730
|
-
/** Required permissions (user must have ALL) */
|
|
731
|
-
permissions?: Permission[];
|
|
732
|
-
/** Require email verification */
|
|
733
|
-
requireEmailVerified?: boolean;
|
|
734
|
-
/** Match strategy for roles: 'any' (default) or 'all' */
|
|
735
|
-
roleMatchStrategy?: 'any' | 'all';
|
|
736
|
-
/** Component to show while loading */
|
|
737
|
-
loadingComponent?: ReactNode;
|
|
738
|
-
/** Called when access denied */
|
|
739
|
-
onAccessDenied?: (reason: AccessDeniedReason) => void;
|
|
740
|
-
/** Component to show when access denied */
|
|
741
|
-
accessDeniedComponent?: ReactNode;
|
|
742
|
-
}
|
|
743
|
-
/**
|
|
744
|
-
* Reason for access denial.
|
|
745
|
-
*/
|
|
746
|
-
type AccessDeniedReason = 'not_authenticated' | 'missing_role' | 'missing_permission' | 'email_not_verified';
|
|
747
|
-
/**
|
|
748
|
-
* Guard for role/permission-based access control.
|
|
749
|
-
*
|
|
750
|
-
* @example
|
|
751
|
-
* ```tsx
|
|
752
|
-
* import { RoleBasedGuard } from '@omnitron-dev/prism/blocks';
|
|
753
|
-
* import { useAuth } from '../hooks/use-auth';
|
|
754
|
-
*
|
|
755
|
-
* // Require admin role
|
|
756
|
-
* function AdminPage() {
|
|
757
|
-
* return (
|
|
758
|
-
* <RoleBasedGuard
|
|
759
|
-
* useAuth={useAuth}
|
|
760
|
-
* roles={['admin']}
|
|
761
|
-
* onAccessDenied={() => navigate('/403')}
|
|
762
|
-
* >
|
|
763
|
-
* <AdminPanel />
|
|
764
|
-
* </RoleBasedGuard>
|
|
765
|
-
* );
|
|
766
|
-
* }
|
|
767
|
-
*
|
|
768
|
-
* // Require specific permission
|
|
769
|
-
* function EditUserPage() {
|
|
770
|
-
* return (
|
|
771
|
-
* <RoleBasedGuard
|
|
772
|
-
* useAuth={useAuth}
|
|
773
|
-
* permissions={['users:write']}
|
|
774
|
-
* accessDeniedComponent={<AccessDenied />}
|
|
775
|
-
* >
|
|
776
|
-
* <UserEditForm />
|
|
777
|
-
* </RoleBasedGuard>
|
|
778
|
-
* );
|
|
779
|
-
* }
|
|
780
|
-
*
|
|
781
|
-
* // Require admin OR moderator role
|
|
782
|
-
* function ModeratePage() {
|
|
783
|
-
* return (
|
|
784
|
-
* <RoleBasedGuard
|
|
785
|
-
* useAuth={useAuth}
|
|
786
|
-
* roles={['admin', 'moderator']}
|
|
787
|
-
* roleMatchStrategy="any"
|
|
788
|
-
* >
|
|
789
|
-
* <ModerateContent />
|
|
790
|
-
* </RoleBasedGuard>
|
|
791
|
-
* );
|
|
792
|
-
* }
|
|
793
|
-
*
|
|
794
|
-
* // Require email verified
|
|
795
|
-
* function VerifiedOnlyPage() {
|
|
796
|
-
* return (
|
|
797
|
-
* <RoleBasedGuard
|
|
798
|
-
* useAuth={useAuth}
|
|
799
|
-
* requireEmailVerified
|
|
800
|
-
* onAccessDenied={(reason) => {
|
|
801
|
-
* if (reason === 'email_not_verified') {
|
|
802
|
-
* navigate('/verify-email');
|
|
803
|
-
* }
|
|
804
|
-
* }}
|
|
805
|
-
* >
|
|
806
|
-
* <VerifiedContent />
|
|
807
|
-
* </RoleBasedGuard>
|
|
808
|
-
* );
|
|
809
|
-
* }
|
|
810
|
-
* ```
|
|
811
|
-
*/
|
|
812
|
-
declare function RoleBasedGuard({ children, useAuth, roles, permissions, requireEmailVerified, roleMatchStrategy, loadingComponent, onAccessDenied, accessDeniedComponent, }: RoleBasedGuardProps): ReactNode;
|
|
813
|
-
/**
|
|
814
|
-
* Check if user has specific role(s).
|
|
815
|
-
*
|
|
816
|
-
* @example
|
|
817
|
-
* ```tsx
|
|
818
|
-
* const isAdmin = hasRole(user, 'admin');
|
|
819
|
-
* const isModerator = hasRole(user, ['admin', 'moderator'], 'any');
|
|
820
|
-
* const isSuperAdmin = hasRole(user, ['admin', 'superuser'], 'all');
|
|
821
|
-
* ```
|
|
822
|
-
*/
|
|
823
|
-
declare function hasRole(user: AuthUser | null | undefined, role: Role | Role[], strategy?: 'any' | 'all'): boolean;
|
|
824
|
-
/**
|
|
825
|
-
* Check if user has specific permission(s).
|
|
826
|
-
*
|
|
827
|
-
* @example
|
|
828
|
-
* ```tsx
|
|
829
|
-
* const canEdit = hasPermission(user, 'users:write');
|
|
830
|
-
* const canManage = hasPermission(user, ['users:read', 'users:write'], 'all');
|
|
831
|
-
* ```
|
|
832
|
-
*/
|
|
833
|
-
declare function hasPermission(user: AuthUser | null | undefined, permission: Permission | Permission[], strategy?: 'any' | 'all'): boolean;
|
|
834
|
-
/**
|
|
835
|
-
* Create a conditional render helper based on roles/permissions.
|
|
836
|
-
*
|
|
837
|
-
* @example
|
|
838
|
-
* ```tsx
|
|
839
|
-
* const { canRender } = useConditionalRender(user);
|
|
840
|
-
*
|
|
841
|
-
* return (
|
|
842
|
-
* <div>
|
|
843
|
-
* {canRender({ roles: ['admin'] }) && <AdminPanel />}
|
|
844
|
-
* {canRender({ permissions: ['users:write'] }) && <EditButton />}
|
|
845
|
-
* </div>
|
|
846
|
-
* );
|
|
847
|
-
* ```
|
|
848
|
-
*/
|
|
849
|
-
declare function createConditionalRender(user: AuthUser | null | undefined): {
|
|
850
|
-
canRender: (options: {
|
|
851
|
-
roles?: Role[];
|
|
852
|
-
permissions?: Permission[];
|
|
853
|
-
roleMatchStrategy?: "any" | "all";
|
|
854
|
-
}) => boolean;
|
|
855
|
-
};
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* DataGrid Block Types
|
|
859
|
-
*
|
|
860
|
-
* Type definitions for the advanced data grid block component.
|
|
861
|
-
*
|
|
862
|
-
* @module @omnitron-dev/prism/blocks/data-grid-block/types
|
|
863
|
-
*/
|
|
864
|
-
|
|
865
|
-
/**
|
|
866
|
-
* Row action item configuration.
|
|
867
|
-
*/
|
|
868
|
-
interface DataGridRowAction<R = Record<string, unknown>> {
|
|
869
|
-
/** Unique action key */
|
|
870
|
-
key: string;
|
|
871
|
-
/** Action label */
|
|
872
|
-
label: string;
|
|
873
|
-
/** Action icon */
|
|
874
|
-
icon?: ReactNode;
|
|
875
|
-
/** Color variant */
|
|
876
|
-
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
877
|
-
/** Disabled state or function */
|
|
878
|
-
disabled?: boolean | ((row: R) => boolean);
|
|
879
|
-
/** Hidden state or function */
|
|
880
|
-
hidden?: boolean | ((row: R) => boolean);
|
|
881
|
-
/** Divider after this action */
|
|
882
|
-
divider?: boolean;
|
|
883
|
-
/** Click handler */
|
|
884
|
-
onClick: (row: R, event: MouseEvent<HTMLElement>) => void;
|
|
885
|
-
}
|
|
886
|
-
/**
|
|
887
|
-
* Quick filter configuration.
|
|
888
|
-
*/
|
|
889
|
-
interface QuickFilterConfig {
|
|
890
|
-
/** Enable quick filter */
|
|
891
|
-
enabled?: boolean;
|
|
892
|
-
/** Placeholder text */
|
|
893
|
-
placeholder?: string;
|
|
894
|
-
/** Debounce delay in ms */
|
|
895
|
-
debounceMs?: number;
|
|
896
|
-
}
|
|
897
|
-
/**
|
|
898
|
-
* Export configuration.
|
|
899
|
-
*/
|
|
900
|
-
interface ExportConfig {
|
|
901
|
-
/** Enable CSV export */
|
|
902
|
-
csv?: boolean;
|
|
903
|
-
/** Enable Excel export (requires premium) */
|
|
904
|
-
excel?: boolean;
|
|
905
|
-
/** Enable print */
|
|
906
|
-
print?: boolean;
|
|
907
|
-
/** Custom file name */
|
|
908
|
-
fileName?: string;
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* Column visibility configuration.
|
|
912
|
-
*/
|
|
913
|
-
interface ColumnVisibilityConfig {
|
|
914
|
-
/** Enable column visibility panel */
|
|
915
|
-
enabled?: boolean;
|
|
916
|
-
/** Default visibility model */
|
|
917
|
-
defaultModel?: Record<string, boolean>;
|
|
918
|
-
}
|
|
919
|
-
/**
|
|
920
|
-
* Toolbar configuration.
|
|
921
|
-
*/
|
|
922
|
-
interface DataGridToolbarConfig {
|
|
923
|
-
/** Show toolbar */
|
|
924
|
-
show?: boolean;
|
|
925
|
-
/** Quick filter config */
|
|
926
|
-
quickFilter?: QuickFilterConfig;
|
|
927
|
-
/** Export config */
|
|
928
|
-
export?: ExportConfig;
|
|
929
|
-
/** Column visibility config */
|
|
930
|
-
columnVisibility?: ColumnVisibilityConfig;
|
|
931
|
-
/** Density selector */
|
|
932
|
-
densitySelector?: boolean;
|
|
933
|
-
/** Custom toolbar actions */
|
|
934
|
-
actions?: ReactNode;
|
|
935
|
-
/** Custom toolbar content (left side) */
|
|
936
|
-
startContent?: ReactNode;
|
|
937
|
-
/** Custom toolbar content (right side) */
|
|
938
|
-
endContent?: ReactNode;
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* Pagination configuration.
|
|
942
|
-
*/
|
|
943
|
-
interface DataGridPaginationConfig {
|
|
944
|
-
/** Pagination mode */
|
|
945
|
-
mode?: 'client' | 'server';
|
|
946
|
-
/** Page size options */
|
|
947
|
-
pageSizeOptions?: number[];
|
|
948
|
-
/** Default page size */
|
|
949
|
-
defaultPageSize?: number;
|
|
950
|
-
/** Total row count (for server-side pagination) */
|
|
951
|
-
rowCount?: number;
|
|
952
|
-
/** Hide pagination */
|
|
953
|
-
hide?: boolean;
|
|
954
|
-
}
|
|
955
|
-
/**
|
|
956
|
-
* Selection configuration.
|
|
957
|
-
*/
|
|
958
|
-
interface DataGridSelectionConfig {
|
|
959
|
-
/** Enable row selection */
|
|
960
|
-
enabled?: boolean;
|
|
961
|
-
/** Selection mode */
|
|
962
|
-
mode?: 'single' | 'multiple';
|
|
963
|
-
/** Checkbox selection */
|
|
964
|
-
checkboxSelection?: boolean;
|
|
965
|
-
/** Keep non-existent rows selected */
|
|
966
|
-
keepNonExistentRowsSelected?: boolean;
|
|
967
|
-
/** Disable selection on click */
|
|
968
|
-
disableSelectionOnClick?: boolean;
|
|
969
|
-
}
|
|
970
|
-
/**
|
|
971
|
-
* Empty state configuration.
|
|
972
|
-
*/
|
|
973
|
-
interface DataGridEmptyConfig {
|
|
974
|
-
/** Empty state icon */
|
|
975
|
-
icon?: ReactNode;
|
|
976
|
-
/** Empty state title */
|
|
977
|
-
title?: string;
|
|
978
|
-
/** Empty state description */
|
|
979
|
-
description?: string;
|
|
980
|
-
/** Custom empty component */
|
|
981
|
-
component?: ReactNode;
|
|
982
|
-
/** Action button */
|
|
983
|
-
action?: {
|
|
984
|
-
label: string;
|
|
985
|
-
onClick: () => void;
|
|
986
|
-
};
|
|
987
|
-
}
|
|
988
|
-
/**
|
|
989
|
-
* DataGridBlock props.
|
|
990
|
-
*/
|
|
991
|
-
interface DataGridBlockProps<R extends Record<string, unknown> = Record<string, unknown>> {
|
|
992
|
-
/** Column definitions */
|
|
993
|
-
columns: GridColDef<R>[];
|
|
994
|
-
/** Row data */
|
|
995
|
-
rows: GridRowsProp<R>;
|
|
996
|
-
/** Loading state */
|
|
997
|
-
loading?: boolean;
|
|
998
|
-
/** Error state */
|
|
999
|
-
error?: boolean;
|
|
1000
|
-
/** Error message */
|
|
1001
|
-
errorMessage?: string;
|
|
1002
|
-
/** Retry handler */
|
|
1003
|
-
onRetry?: () => void;
|
|
1004
|
-
/** Row actions */
|
|
1005
|
-
rowActions?: DataGridRowAction<R>[];
|
|
1006
|
-
/** Row actions column width */
|
|
1007
|
-
rowActionsWidth?: number;
|
|
1008
|
-
/** Toolbar configuration */
|
|
1009
|
-
toolbar?: DataGridToolbarConfig;
|
|
1010
|
-
/** Pagination configuration */
|
|
1011
|
-
pagination?: DataGridPaginationConfig;
|
|
1012
|
-
/** Selection configuration */
|
|
1013
|
-
selection?: DataGridSelectionConfig;
|
|
1014
|
-
/** Empty state configuration */
|
|
1015
|
-
empty?: DataGridEmptyConfig;
|
|
1016
|
-
/** Density */
|
|
1017
|
-
density?: GridDensity;
|
|
1018
|
-
/** Auto height */
|
|
1019
|
-
autoHeight?: boolean;
|
|
1020
|
-
/** Fixed height */
|
|
1021
|
-
height?: number | string;
|
|
1022
|
-
/** Hide footer */
|
|
1023
|
-
hideFooter?: boolean;
|
|
1024
|
-
/** Row height */
|
|
1025
|
-
rowHeight?: number;
|
|
1026
|
-
/** Get row id */
|
|
1027
|
-
getRowId?: (row: R) => GridRowId;
|
|
1028
|
-
/** Row click handler */
|
|
1029
|
-
onRowClick?: (params: GridRowParams<R>) => void;
|
|
1030
|
-
/** Row double click handler */
|
|
1031
|
-
onRowDoubleClick?: (params: GridRowParams<R>) => void;
|
|
1032
|
-
/** Selection change handler */
|
|
1033
|
-
onSelectionChange?: (selection: GridRowSelectionModel) => void;
|
|
1034
|
-
/** Pagination change handler */
|
|
1035
|
-
onPaginationChange?: (model: GridPaginationModel) => void;
|
|
1036
|
-
/** Sort change handler */
|
|
1037
|
-
onSortChange?: (model: GridSortModel) => void;
|
|
1038
|
-
/** Filter change handler */
|
|
1039
|
-
onFilterChange?: (model: GridFilterModel) => void;
|
|
1040
|
-
/** Controlled pagination model */
|
|
1041
|
-
paginationModel?: GridPaginationModel;
|
|
1042
|
-
/** Controlled sort model */
|
|
1043
|
-
sortModel?: GridSortModel;
|
|
1044
|
-
/** Controlled filter model */
|
|
1045
|
-
filterModel?: GridFilterModel;
|
|
1046
|
-
/** Controlled selection model */
|
|
1047
|
-
selectionModel?: GridRowSelectionModel;
|
|
1048
|
-
/** Column visibility model */
|
|
1049
|
-
columnVisibilityModel?: Record<string, boolean>;
|
|
1050
|
-
/** Column visibility change handler */
|
|
1051
|
-
onColumnVisibilityChange?: (model: Record<string, boolean>) => void;
|
|
1052
|
-
/** Custom slots */
|
|
1053
|
-
slots?: Partial<GridSlots>;
|
|
1054
|
-
/** Custom slot props */
|
|
1055
|
-
slotProps?: GridSlotProps;
|
|
1056
|
-
/** Disable column menu */
|
|
1057
|
-
disableColumnMenu?: boolean;
|
|
1058
|
-
/** Disable column filter */
|
|
1059
|
-
disableColumnFilter?: boolean;
|
|
1060
|
-
/** Disable column selector */
|
|
1061
|
-
disableColumnSelector?: boolean;
|
|
1062
|
-
/** Disable row selection on click */
|
|
1063
|
-
disableRowSelectionOnClick?: boolean;
|
|
1064
|
-
/** Disable virtualization */
|
|
1065
|
-
disableVirtualization?: boolean;
|
|
1066
|
-
/** MUI sx prop */
|
|
1067
|
-
sx?: SxProps$1<Theme$1>;
|
|
1068
|
-
}
|
|
1069
|
-
/**
|
|
1070
|
-
* DataGridBlock context value.
|
|
1071
|
-
*/
|
|
1072
|
-
interface DataGridBlockContextValue {
|
|
1073
|
-
/** Current loading state */
|
|
1074
|
-
loading: boolean;
|
|
1075
|
-
/** Current error state */
|
|
1076
|
-
error: boolean;
|
|
1077
|
-
/** Current density */
|
|
1078
|
-
density: GridDensity;
|
|
1079
|
-
/** Set density */
|
|
1080
|
-
setDensity: (density: GridDensity) => void;
|
|
1081
|
-
/** Current row count */
|
|
1082
|
-
rowCount: number;
|
|
1083
|
-
/** Selected row count */
|
|
1084
|
-
selectedCount: number;
|
|
1085
|
-
/** Refresh data */
|
|
1086
|
-
refresh?: () => void;
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* useDataGridBlock options.
|
|
1090
|
-
*/
|
|
1091
|
-
interface UseDataGridBlockOptions<R = Record<string, unknown>> {
|
|
1092
|
-
/** Data fetcher function */
|
|
1093
|
-
fetcher: (params: DataGridFetchParams) => Promise<DataGridFetchResult<R>>;
|
|
1094
|
-
/** Initial page size */
|
|
1095
|
-
initialPageSize?: number;
|
|
1096
|
-
/** Initial sort model */
|
|
1097
|
-
initialSortModel?: GridSortModel;
|
|
1098
|
-
/** Initial filter model */
|
|
1099
|
-
initialFilterModel?: GridFilterModel;
|
|
1100
|
-
/** Auto fetch on mount */
|
|
1101
|
-
autoFetch?: boolean;
|
|
1102
|
-
/** Keep previous data while loading */
|
|
1103
|
-
keepPreviousData?: boolean;
|
|
1104
|
-
}
|
|
1105
|
-
/**
|
|
1106
|
-
* Fetch parameters passed to the fetcher function.
|
|
1107
|
-
*/
|
|
1108
|
-
interface DataGridFetchParams {
|
|
1109
|
-
/** Current page (0-indexed) */
|
|
1110
|
-
page: number;
|
|
1111
|
-
/** Page size */
|
|
1112
|
-
pageSize: number;
|
|
1113
|
-
/** Sort model */
|
|
1114
|
-
sortModel: GridSortModel;
|
|
1115
|
-
/** Filter model */
|
|
1116
|
-
filterModel: GridFilterModel;
|
|
1117
|
-
/** Quick filter value */
|
|
1118
|
-
quickFilterValue?: string;
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* Fetch result from the fetcher function.
|
|
1122
|
-
*/
|
|
1123
|
-
interface DataGridFetchResult<R = Record<string, unknown>> {
|
|
1124
|
-
/** Row data */
|
|
1125
|
-
rows: R[];
|
|
1126
|
-
/** Total row count */
|
|
1127
|
-
total: number;
|
|
1128
|
-
}
|
|
1129
|
-
/**
|
|
1130
|
-
* useDataGridBlock return value.
|
|
1131
|
-
*/
|
|
1132
|
-
interface UseDataGridBlockReturn<R = Record<string, unknown>> {
|
|
1133
|
-
/** Row data */
|
|
1134
|
-
rows: R[];
|
|
1135
|
-
/** Loading state */
|
|
1136
|
-
loading: boolean;
|
|
1137
|
-
/** Error state */
|
|
1138
|
-
error: Error | null;
|
|
1139
|
-
/** Total row count */
|
|
1140
|
-
total: number;
|
|
1141
|
-
/** Pagination model */
|
|
1142
|
-
paginationModel: GridPaginationModel;
|
|
1143
|
-
/** Sort model */
|
|
1144
|
-
sortModel: GridSortModel;
|
|
1145
|
-
/** Filter model */
|
|
1146
|
-
filterModel: GridFilterModel;
|
|
1147
|
-
/** Pagination change handler */
|
|
1148
|
-
onPaginationChange: (model: GridPaginationModel, details: GridCallbackDetails) => void;
|
|
1149
|
-
/** Sort change handler */
|
|
1150
|
-
onSortChange: (model: GridSortModel, details: GridCallbackDetails) => void;
|
|
1151
|
-
/** Filter change handler */
|
|
1152
|
-
onFilterChange: (model: GridFilterModel, details: GridCallbackDetails) => void;
|
|
1153
|
-
/** Refresh data */
|
|
1154
|
-
refresh: () => void;
|
|
1155
|
-
/** Reset to initial state */
|
|
1156
|
-
reset: () => void;
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
* DataGrid Block Component
|
|
1161
|
-
*
|
|
1162
|
-
* Advanced data table block with toolbar, pagination, sorting, filtering,
|
|
1163
|
-
* row actions, and server-side data support.
|
|
1164
|
-
*
|
|
1165
|
-
* @module @omnitron-dev/prism/blocks/data-grid-block
|
|
1166
|
-
*/
|
|
1167
|
-
|
|
1168
|
-
/**
|
|
1169
|
-
* Hook to access data grid block context.
|
|
1170
|
-
*/
|
|
1171
|
-
declare function useDataGridBlockContext(): DataGridBlockContextValue;
|
|
1172
|
-
/**
|
|
1173
|
-
* DataGridBlock - Advanced data table with common patterns.
|
|
1174
|
-
*
|
|
1175
|
-
* Features:
|
|
1176
|
-
* - Custom toolbar with search, filters, export, and column visibility
|
|
1177
|
-
* - Row actions column (inline or dropdown menu)
|
|
1178
|
-
* - Server-side pagination, sorting, and filtering support
|
|
1179
|
-
* - Custom empty state
|
|
1180
|
-
* - Loading and error states
|
|
1181
|
-
* - Selection handling
|
|
1182
|
-
* - Density customization
|
|
1183
|
-
*
|
|
1184
|
-
* @example
|
|
1185
|
-
* ```tsx
|
|
1186
|
-
* <DataGridBlock
|
|
1187
|
-
* columns={[
|
|
1188
|
-
* { field: 'name', headerName: 'Name', flex: 1 },
|
|
1189
|
-
* { field: 'email', headerName: 'Email', flex: 1 },
|
|
1190
|
-
* { field: 'status', headerName: 'Status', width: 120 },
|
|
1191
|
-
* ]}
|
|
1192
|
-
* rows={users}
|
|
1193
|
-
* loading={isLoading}
|
|
1194
|
-
* rowActions={[
|
|
1195
|
-
* { key: 'edit', label: 'Edit', icon: <EditIcon />, onClick: handleEdit },
|
|
1196
|
-
* { key: 'delete', label: 'Delete', icon: <DeleteIcon />, color: 'error', onClick: handleDelete },
|
|
1197
|
-
* ]}
|
|
1198
|
-
* toolbar={{
|
|
1199
|
-
* quickFilter: { placeholder: 'Search users...' },
|
|
1200
|
-
* export: { csv: true },
|
|
1201
|
-
* }}
|
|
1202
|
-
* pagination={{
|
|
1203
|
-
* mode: 'server',
|
|
1204
|
-
* rowCount: totalCount,
|
|
1205
|
-
* }}
|
|
1206
|
-
* onPaginationChange={handlePaginationChange}
|
|
1207
|
-
* />
|
|
1208
|
-
* ```
|
|
1209
|
-
*/
|
|
1210
|
-
declare function DataGridBlock<R extends Record<string, unknown> = Record<string, unknown>>({ columns, rows, loading, error, errorMessage, onRetry, rowActions, rowActionsWidth, toolbar, pagination, selection, empty, density: defaultDensity, autoHeight, height, hideFooter, rowHeight, getRowId, onRowClick, onRowDoubleClick, onSelectionChange, onPaginationChange, onSortChange, onFilterChange, paginationModel: controlledPaginationModel, sortModel: controlledSortModel, filterModel: controlledFilterModel, selectionModel: controlledSelectionModel, columnVisibilityModel, onColumnVisibilityChange, slots, slotProps, disableColumnMenu, disableColumnFilter, disableColumnSelector, disableRowSelectionOnClick, disableVirtualization, sx, }: DataGridBlockProps<R>): ReactNode;
|
|
1211
|
-
/**
|
|
1212
|
-
* Hook for managing DataGridBlock with server-side data fetching.
|
|
1213
|
-
*
|
|
1214
|
-
* @example
|
|
1215
|
-
* ```tsx
|
|
1216
|
-
* const { rows, loading, error, total, paginationModel, onPaginationChange, refresh } =
|
|
1217
|
-
* useDataGridBlock({
|
|
1218
|
-
* fetcher: async ({ page, pageSize, sortModel, filterModel }) => {
|
|
1219
|
-
* const response = await api.getUsers({ page, pageSize, sort: sortModel[0] });
|
|
1220
|
-
* return { rows: response.data, total: response.total };
|
|
1221
|
-
* },
|
|
1222
|
-
* });
|
|
1223
|
-
*
|
|
1224
|
-
* return (
|
|
1225
|
-
* <DataGridBlock
|
|
1226
|
-
* columns={columns}
|
|
1227
|
-
* rows={rows}
|
|
1228
|
-
* loading={loading}
|
|
1229
|
-
* error={!!error}
|
|
1230
|
-
* pagination={{ mode: 'server', rowCount: total }}
|
|
1231
|
-
* paginationModel={paginationModel}
|
|
1232
|
-
* onPaginationChange={onPaginationChange}
|
|
1233
|
-
* />
|
|
1234
|
-
* );
|
|
1235
|
-
* ```
|
|
1236
|
-
*/
|
|
1237
|
-
declare function useDataGridBlock<R extends Record<string, unknown> = Record<string, unknown>>(options: UseDataGridBlockOptions<R>): UseDataGridBlockReturn<R>;
|
|
1238
|
-
|
|
1239
|
-
export { type AccessDeniedReason, AuthBlock, type AuthBlockVariant, AuthGuard, type AuthGuardProps, type AuthState, type AuthUser, type ColumnVisibilityConfig, DashboardBlock, type DashboardBlockActions, DashboardBlockContent, type DashboardBlockContentProps, type DashboardBlockContextValue, DashboardBlockFooter, type DashboardBlockFooterProps, DashboardBlockHeader, type DashboardBlockHeaderProps, type DashboardBlockProps, type DashboardBlockSize, type DashboardBlockState, type DashboardBlockVariant, DataGridBlock, type DataGridBlockContextValue, type DataGridBlockProps, type DataGridEmptyConfig, type DataGridFetchParams, type DataGridFetchResult, type DataGridPaginationConfig, type DataGridRowAction, type DataGridSelectionConfig, type DataGridToolbarConfig, type ErrorConfig, type ExportConfig, ForgotPasswordForm, type ForgotPasswordFormData, type ForgotPasswordFormProps, GuestGuard, type GuestGuardProps, type LoadingConfig, LoginForm, type LoginFormData, type LoginFormProps, type Permission, type QuickFilterConfig, RegisterForm, type RegisterFormData, type RegisterFormProps, ResetPasswordForm, type ResetPasswordFormData, type ResetPasswordFormProps, type Role, RoleBasedGuard, type RoleBasedGuardProps, type UseAuth, type UseDashboardBlockOptions, type UseDashboardBlockReturn, type UseDataGridBlockOptions, type UseDataGridBlockReturn, VerifyCodeForm, type VerifyCodeFormData, type VerifyCodeFormProps, createConditionalRender, hasPermission, hasRole, useDashboardBlock, useDashboardBlockContext, useDataGridBlock, useDataGridBlockContext };
|
|
8
|
+
export { DashboardBlock, DashboardBlockHeader, DashboardBlockContent, DashboardBlockFooter, useDashboardBlockContext, useDashboardBlock, } from './dashboard-block/index.js';
|
|
9
|
+
export type { DashboardBlockProps, DashboardBlockVariant, DashboardBlockSize, DashboardBlockHeaderProps, DashboardBlockContentProps, DashboardBlockFooterProps, DashboardBlockContextValue, LoadingConfig, ErrorConfig, UseDashboardBlockReturn, UseDashboardBlockOptions, DashboardBlockState, DashboardBlockActions, } from './dashboard-block/index.js';
|
|
10
|
+
export { AuthBlock, LoginForm, RegisterForm, ForgotPasswordForm, ResetPasswordForm, VerifyCodeForm, AuthGuard, GuestGuard, RoleBasedGuard, hasRole, hasPermission, createConditionalRender, } from './auth-block/index.js';
|
|
11
|
+
export type { LoginFormProps, LoginFormData, RegisterFormProps, RegisterFormData, ForgotPasswordFormProps, ForgotPasswordFormData, ResetPasswordFormProps, ResetPasswordFormData, VerifyCodeFormProps, VerifyCodeFormData, AuthBlockVariant, Role, Permission, AuthUser, AuthState, UseAuth, AuthGuardProps, GuestGuardProps, RoleBasedGuardProps, AccessDeniedReason, } from './auth-block/index.js';
|
|
12
|
+
export { DataGridBlock, useDataGridBlock, useDataGridBlockContext } from './data-grid-block/index.js';
|
|
13
|
+
export type { DataGridBlockProps, DataGridBlockContextValue, DataGridRowAction, DataGridToolbarConfig, DataGridPaginationConfig, DataGridSelectionConfig, DataGridEmptyConfig, QuickFilterConfig, ExportConfig, ColumnVisibilityConfig, UseDataGridBlockOptions, UseDataGridBlockReturn, DataGridFetchParams, DataGridFetchResult, } from './data-grid-block/index.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|