@iamsaroj/smart-ui 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/LICENSE +21 -0
- package/README.md +49 -0
- package/dist/calendar-engine/agenda-view.d.ts +8 -0
- package/dist/calendar-engine/agenda-view.d.ts.map +1 -0
- package/dist/calendar-engine/agenda-view.js +26 -0
- package/dist/calendar-engine/agenda-view.js.map +1 -0
- package/dist/calendar-engine/booking.d.ts +13 -0
- package/dist/calendar-engine/booking.d.ts.map +1 -0
- package/dist/calendar-engine/booking.js +45 -0
- package/dist/calendar-engine/booking.js.map +1 -0
- package/dist/calendar-engine/calendar-utils.d.ts +74 -0
- package/dist/calendar-engine/calendar-utils.d.ts.map +1 -0
- package/dist/calendar-engine/calendar-utils.js +221 -0
- package/dist/calendar-engine/calendar-utils.js.map +1 -0
- package/dist/calendar-engine/calendar.d.ts +62 -0
- package/dist/calendar-engine/calendar.d.ts.map +1 -0
- package/dist/calendar-engine/calendar.js +81 -0
- package/dist/calendar-engine/calendar.js.map +1 -0
- package/dist/calendar-engine/event-color.d.ts +20 -0
- package/dist/calendar-engine/event-color.d.ts.map +1 -0
- package/dist/calendar-engine/event-color.js +59 -0
- package/dist/calendar-engine/event-color.js.map +1 -0
- package/dist/calendar-engine/index.d.ts +11 -0
- package/dist/calendar-engine/index.d.ts.map +1 -0
- package/dist/calendar-engine/index.js +6 -0
- package/dist/calendar-engine/index.js.map +1 -0
- package/dist/calendar-engine/month-view.d.ts +10 -0
- package/dist/calendar-engine/month-view.d.ts.map +1 -0
- package/dist/calendar-engine/month-view.js +72 -0
- package/dist/calendar-engine/month-view.js.map +1 -0
- package/dist/calendar-engine/recurrence.d.ts +47 -0
- package/dist/calendar-engine/recurrence.d.ts.map +1 -0
- package/dist/calendar-engine/recurrence.js +209 -0
- package/dist/calendar-engine/recurrence.js.map +1 -0
- package/dist/calendar-engine/shared.d.ts +72 -0
- package/dist/calendar-engine/shared.d.ts.map +1 -0
- package/dist/calendar-engine/shared.js +34 -0
- package/dist/calendar-engine/shared.js.map +1 -0
- package/dist/calendar-engine/time-grid-view.d.ts +13 -0
- package/dist/calendar-engine/time-grid-view.d.ts.map +1 -0
- package/dist/calendar-engine/time-grid-view.js +203 -0
- package/dist/calendar-engine/time-grid-view.js.map +1 -0
- package/dist/calendar-engine/types.d.ts +138 -0
- package/dist/calendar-engine/types.d.ts.map +1 -0
- package/dist/calendar-engine/types.js +2 -0
- package/dist/calendar-engine/types.js.map +1 -0
- package/dist/calendar-engine/use-calendar.d.ts +7 -0
- package/dist/calendar-engine/use-calendar.d.ts.map +1 -0
- package/dist/calendar-engine/use-calendar.js +25 -0
- package/dist/calendar-engine/use-calendar.js.map +1 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +10 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +19 -0
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +18 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +20 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/aspect-ratio.d.ts +5 -0
- package/dist/components/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio.js +7 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/avatar.d.ts +12 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +11 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +8 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +33 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +23 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button.d.ts +9 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +34 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.d.ts +11 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +77 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.d.ts +12 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +11 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel.d.ts +29 -0
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +94 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/chart.d.ts +45 -0
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +133 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +8 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/collapsible.d.ts +6 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +7 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/combobox.d.ts +35 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.js +45 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/command.d.ts +20 -0
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +18 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/context-menu.d.ts +30 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +22 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/data-table.d.ts +12 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.js +44 -0
- package/dist/components/data-table.js.map +1 -0
- package/dist/components/date-picker.d.ts +33 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +29 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/dialog.d.ts +18 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +18 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/drawer.d.ts +14 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +15 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +30 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +22 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +8 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-group.d.ts +19 -0
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +46 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input-otp.d.ts +12 -0
- package/dist/components/input-otp.d.ts.map +1 -0
- package/dist/components/input-otp.js +16 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.d.ts +4 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +6 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/kbd.d.ts +5 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +6 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.d.ts +4 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +5 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/menubar.d.ts +30 -0
- package/dist/components/menubar.d.ts.map +1 -0
- package/dist/components/menubar.js +24 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/navigation-menu.d.ts +12 -0
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu.js +18 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/pagination.d.ts +18 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +13 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/popover.d.ts +10 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +12 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +8 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +10 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.d.ts +6 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +9 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/scroll-area.d.ts +5 -0
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.js +8 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.d.ts +16 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +16 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +4 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +6 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.d.ts +15 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +18 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/sidebar.d.ts +64 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +224 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton.d.ts +3 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +5 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +4 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +13 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.d.ts +4 -0
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +25 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +7 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +11 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +12 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +23 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +4 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +5 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/toggle-group.d.ts +11 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +22 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +9 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.js +25 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +10 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/data-grid/action-column-cell.d.ts +41 -0
- package/dist/data-grid/action-column-cell.d.ts.map +1 -0
- package/dist/data-grid/action-column-cell.js +114 -0
- package/dist/data-grid/action-column-cell.js.map +1 -0
- package/dist/data-grid/action-column.d.ts +144 -0
- package/dist/data-grid/action-column.d.ts.map +1 -0
- package/dist/data-grid/action-column.js +156 -0
- package/dist/data-grid/action-column.js.map +1 -0
- package/dist/data-grid/create-page-fetcher.d.ts +57 -0
- package/dist/data-grid/create-page-fetcher.d.ts.map +1 -0
- package/dist/data-grid/create-page-fetcher.js +41 -0
- package/dist/data-grid/create-page-fetcher.js.map +1 -0
- package/dist/data-grid/data-grid.d.ts +65 -0
- package/dist/data-grid/data-grid.d.ts.map +1 -0
- package/dist/data-grid/data-grid.js +95 -0
- package/dist/data-grid/data-grid.js.map +1 -0
- package/dist/data-grid/empty-state.d.ts +13 -0
- package/dist/data-grid/empty-state.d.ts.map +1 -0
- package/dist/data-grid/empty-state.js +6 -0
- package/dist/data-grid/empty-state.js.map +1 -0
- package/dist/data-grid/formula-guard.d.ts +22 -0
- package/dist/data-grid/formula-guard.d.ts.map +1 -0
- package/dist/data-grid/formula-guard.js +28 -0
- package/dist/data-grid/formula-guard.js.map +1 -0
- package/dist/data-grid/grid-internals.d.ts +16 -0
- package/dist/data-grid/grid-internals.d.ts.map +1 -0
- package/dist/data-grid/grid-internals.js +73 -0
- package/dist/data-grid/grid-internals.js.map +1 -0
- package/dist/data-grid/grid-theme.d.ts +8 -0
- package/dist/data-grid/grid-theme.d.ts.map +1 -0
- package/dist/data-grid/grid-theme.js +23 -0
- package/dist/data-grid/grid-theme.js.map +1 -0
- package/dist/data-grid/grid-toolbar.d.ts +40 -0
- package/dist/data-grid/grid-toolbar.d.ts.map +1 -0
- package/dist/data-grid/grid-toolbar.js +13 -0
- package/dist/data-grid/grid-toolbar.js.map +1 -0
- package/dist/data-grid/index.d.ts +10 -0
- package/dist/data-grid/index.d.ts.map +1 -0
- package/dist/data-grid/index.js +9 -0
- package/dist/data-grid/index.js.map +1 -0
- package/dist/data-grid/pagination.d.ts +146 -0
- package/dist/data-grid/pagination.d.ts.map +1 -0
- package/dist/data-grid/pagination.js +128 -0
- package/dist/data-grid/pagination.js.map +1 -0
- package/dist/data-grid/server-data-grid.d.ts +109 -0
- package/dist/data-grid/server-data-grid.d.ts.map +1 -0
- package/dist/data-grid/server-data-grid.js +240 -0
- package/dist/data-grid/server-data-grid.js.map +1 -0
- package/dist/data-grid/server-grid-internals.d.ts +79 -0
- package/dist/data-grid/server-grid-internals.d.ts.map +1 -0
- package/dist/data-grid/server-grid-internals.js +137 -0
- package/dist/data-grid/server-grid-internals.js.map +1 -0
- package/dist/data-grid/use-action-column.d.ts +22 -0
- package/dist/data-grid/use-action-column.d.ts.map +1 -0
- package/dist/data-grid/use-action-column.js +63 -0
- package/dist/data-grid/use-action-column.js.map +1 -0
- package/dist/data-grid/use-server-grid-selection.d.ts +35 -0
- package/dist/data-grid/use-server-grid-selection.d.ts.map +1 -0
- package/dist/data-grid/use-server-grid-selection.js +81 -0
- package/dist/data-grid/use-server-grid-selection.js.map +1 -0
- package/dist/form-engine/base.d.ts +19 -0
- package/dist/form-engine/base.d.ts.map +1 -0
- package/dist/form-engine/base.js +2 -0
- package/dist/form-engine/base.js.map +1 -0
- package/dist/form-engine/field-registry.d.ts +285 -0
- package/dist/form-engine/field-registry.d.ts.map +1 -0
- package/dist/form-engine/field-registry.js +306 -0
- package/dist/form-engine/field-registry.js.map +1 -0
- package/dist/form-engine/field-types.d.ts +201 -0
- package/dist/form-engine/field-types.d.ts.map +1 -0
- package/dist/form-engine/field-types.js +14 -0
- package/dist/form-engine/field-types.js.map +1 -0
- package/dist/form-engine/index.d.ts +20 -0
- package/dist/form-engine/index.d.ts.map +1 -0
- package/dist/form-engine/index.js +21 -0
- package/dist/form-engine/index.js.map +1 -0
- package/dist/form-engine/smart-checkbox-field.d.ts +5 -0
- package/dist/form-engine/smart-checkbox-field.d.ts.map +1 -0
- package/dist/form-engine/smart-checkbox-field.js +9 -0
- package/dist/form-engine/smart-checkbox-field.js.map +1 -0
- package/dist/form-engine/smart-checkbox-group-field.d.ts +10 -0
- package/dist/form-engine/smart-checkbox-group-field.d.ts.map +1 -0
- package/dist/form-engine/smart-checkbox-group-field.js +5 -0
- package/dist/form-engine/smart-checkbox-group-field.js.map +1 -0
- package/dist/form-engine/smart-combobox-field.d.ts +11 -0
- package/dist/form-engine/smart-combobox-field.d.ts.map +1 -0
- package/dist/form-engine/smart-combobox-field.js +5 -0
- package/dist/form-engine/smart-combobox-field.js.map +1 -0
- package/dist/form-engine/smart-date-field.d.ts +8 -0
- package/dist/form-engine/smart-date-field.d.ts.map +1 -0
- package/dist/form-engine/smart-date-field.js +17 -0
- package/dist/form-engine/smart-date-field.js.map +1 -0
- package/dist/form-engine/smart-date-range-field.d.ts +15 -0
- package/dist/form-engine/smart-date-range-field.d.ts.map +1 -0
- package/dist/form-engine/smart-date-range-field.js +25 -0
- package/dist/form-engine/smart-date-range-field.js.map +1 -0
- package/dist/form-engine/smart-datetime-field.d.ts +12 -0
- package/dist/form-engine/smart-datetime-field.d.ts.map +1 -0
- package/dist/form-engine/smart-datetime-field.js +12 -0
- package/dist/form-engine/smart-datetime-field.js.map +1 -0
- package/dist/form-engine/smart-form-internals.d.ts +14 -0
- package/dist/form-engine/smart-form-internals.d.ts.map +1 -0
- package/dist/form-engine/smart-form-internals.js +64 -0
- package/dist/form-engine/smart-form-internals.js.map +1 -0
- package/dist/form-engine/smart-form.d.ts +55 -0
- package/dist/form-engine/smart-form.d.ts.map +1 -0
- package/dist/form-engine/smart-form.js +229 -0
- package/dist/form-engine/smart-form.js.map +1 -0
- package/dist/form-engine/smart-input-field.d.ts +9 -0
- package/dist/form-engine/smart-input-field.d.ts.map +1 -0
- package/dist/form-engine/smart-input-field.js +5 -0
- package/dist/form-engine/smart-input-field.js.map +1 -0
- package/dist/form-engine/smart-month-field.d.ts +8 -0
- package/dist/form-engine/smart-month-field.d.ts.map +1 -0
- package/dist/form-engine/smart-month-field.js +12 -0
- package/dist/form-engine/smart-month-field.js.map +1 -0
- package/dist/form-engine/smart-multi-select-field.d.ts +11 -0
- package/dist/form-engine/smart-multi-select-field.d.ts.map +1 -0
- package/dist/form-engine/smart-multi-select-field.js +5 -0
- package/dist/form-engine/smart-multi-select-field.js.map +1 -0
- package/dist/form-engine/smart-number-field.d.ts +22 -0
- package/dist/form-engine/smart-number-field.d.ts.map +1 -0
- package/dist/form-engine/smart-number-field.js +115 -0
- package/dist/form-engine/smart-number-field.js.map +1 -0
- package/dist/form-engine/smart-password-field.d.ts +7 -0
- package/dist/form-engine/smart-password-field.d.ts.map +1 -0
- package/dist/form-engine/smart-password-field.js +5 -0
- package/dist/form-engine/smart-password-field.js.map +1 -0
- package/dist/form-engine/smart-radio-group-field.d.ts +10 -0
- package/dist/form-engine/smart-radio-group-field.d.ts.map +1 -0
- package/dist/form-engine/smart-radio-group-field.js +5 -0
- package/dist/form-engine/smart-radio-group-field.js.map +1 -0
- package/dist/form-engine/smart-segmented-field.d.ts +9 -0
- package/dist/form-engine/smart-segmented-field.d.ts.map +1 -0
- package/dist/form-engine/smart-segmented-field.js +5 -0
- package/dist/form-engine/smart-segmented-field.js.map +1 -0
- package/dist/form-engine/smart-select-field.d.ts +10 -0
- package/dist/form-engine/smart-select-field.d.ts.map +1 -0
- package/dist/form-engine/smart-select-field.js +5 -0
- package/dist/form-engine/smart-select-field.js.map +1 -0
- package/dist/form-engine/smart-slug-field.d.ts +12 -0
- package/dist/form-engine/smart-slug-field.d.ts.map +1 -0
- package/dist/form-engine/smart-slug-field.js +14 -0
- package/dist/form-engine/smart-slug-field.js.map +1 -0
- package/dist/form-engine/smart-switch-field.d.ts +5 -0
- package/dist/form-engine/smart-switch-field.d.ts.map +1 -0
- package/dist/form-engine/smart-switch-field.js +9 -0
- package/dist/form-engine/smart-switch-field.js.map +1 -0
- package/dist/form-engine/smart-tel-field.d.ts +7 -0
- package/dist/form-engine/smart-tel-field.d.ts.map +1 -0
- package/dist/form-engine/smart-tel-field.js +6 -0
- package/dist/form-engine/smart-tel-field.js.map +1 -0
- package/dist/form-engine/smart-text-editor-field.d.ts +15 -0
- package/dist/form-engine/smart-text-editor-field.d.ts.map +1 -0
- package/dist/form-engine/smart-text-editor-field.js +5 -0
- package/dist/form-engine/smart-text-editor-field.js.map +1 -0
- package/dist/form-engine/smart-textarea-field.d.ts +8 -0
- package/dist/form-engine/smart-textarea-field.d.ts.map +1 -0
- package/dist/form-engine/smart-textarea-field.js +5 -0
- package/dist/form-engine/smart-textarea-field.js.map +1 -0
- package/dist/form-engine/smart-time-field.d.ts +10 -0
- package/dist/form-engine/smart-time-field.d.ts.map +1 -0
- package/dist/form-engine/smart-time-field.js +5 -0
- package/dist/form-engine/smart-time-field.js.map +1 -0
- package/dist/form-engine/smart-time-range-field.d.ts +13 -0
- package/dist/form-engine/smart-time-range-field.d.ts.map +1 -0
- package/dist/form-engine/smart-time-range-field.js +5 -0
- package/dist/form-engine/smart-time-range-field.js.map +1 -0
- package/dist/form-engine/smart-year-field.d.ts +8 -0
- package/dist/form-engine/smart-year-field.d.ts.map +1 -0
- package/dist/form-engine/smart-year-field.js +5 -0
- package/dist/form-engine/smart-year-field.js.map +1 -0
- package/dist/form-engine/smart-yesno-field.d.ts +12 -0
- package/dist/form-engine/smart-yesno-field.d.ts.map +1 -0
- package/dist/form-engine/smart-yesno-field.js +14 -0
- package/dist/form-engine/smart-yesno-field.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/lexical-text-editor/SmartTextEditor.d.ts +61 -0
- package/dist/lexical-text-editor/SmartTextEditor.d.ts.map +1 -0
- package/dist/lexical-text-editor/SmartTextEditor.js +145 -0
- package/dist/lexical-text-editor/SmartTextEditor.js.map +1 -0
- package/dist/lexical-text-editor/editor-nodes.d.ts +3 -0
- package/dist/lexical-text-editor/editor-nodes.d.ts.map +1 -0
- package/dist/lexical-text-editor/editor-nodes.js +25 -0
- package/dist/lexical-text-editor/editor-nodes.js.map +1 -0
- package/dist/lexical-text-editor/editor-theme.d.ts +3 -0
- package/dist/lexical-text-editor/editor-theme.d.ts.map +1 -0
- package/dist/lexical-text-editor/editor-theme.js +78 -0
- package/dist/lexical-text-editor/editor-theme.js.map +1 -0
- package/dist/lexical-text-editor/index.d.ts +8 -0
- package/dist/lexical-text-editor/index.d.ts.map +1 -0
- package/dist/lexical-text-editor/index.js +6 -0
- package/dist/lexical-text-editor/index.js.map +1 -0
- package/dist/lexical-text-editor/nodes/image-node.d.ts +41 -0
- package/dist/lexical-text-editor/nodes/image-node.d.ts.map +1 -0
- package/dist/lexical-text-editor/nodes/image-node.js +89 -0
- package/dist/lexical-text-editor/nodes/image-node.js.map +1 -0
- package/dist/lexical-text-editor/nodes/page-break-node.d.ts +25 -0
- package/dist/lexical-text-editor/nodes/page-break-node.d.ts.map +1 -0
- package/dist/lexical-text-editor/nodes/page-break-node.js +84 -0
- package/dist/lexical-text-editor/nodes/page-break-node.js.map +1 -0
- package/dist/lexical-text-editor/plugins/auto-link-plugin.d.ts +3 -0
- package/dist/lexical-text-editor/plugins/auto-link-plugin.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/auto-link-plugin.js +12 -0
- package/dist/lexical-text-editor/plugins/auto-link-plugin.js.map +1 -0
- package/dist/lexical-text-editor/plugins/code-highlight-plugin.d.ts +6 -0
- package/dist/lexical-text-editor/plugins/code-highlight-plugin.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/code-highlight-plugin.js +14 -0
- package/dist/lexical-text-editor/plugins/code-highlight-plugin.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/align-menu.d.ts +7 -0
- package/dist/lexical-text-editor/plugins/toolbar/align-menu.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/align-menu.js +8 -0
- package/dist/lexical-text-editor/plugins/toolbar/align-menu.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.d.ts +20 -0
- package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.js +78 -0
- package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/constants.d.ts +36 -0
- package/dist/lexical-text-editor/plugins/toolbar/constants.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/constants.js +67 -0
- package/dist/lexical-text-editor/plugins/toolbar/constants.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/inline-marks.d.ts +14 -0
- package/dist/lexical-text-editor/plugins/toolbar/inline-marks.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/inline-marks.js +129 -0
- package/dist/lexical-text-editor/plugins/toolbar/inline-marks.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/insert-menu.d.ts +8 -0
- package/dist/lexical-text-editor/plugins/toolbar/insert-menu.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/insert-menu.js +87 -0
- package/dist/lexical-text-editor/plugins/toolbar/insert-menu.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/link-editor.d.ts +11 -0
- package/dist/lexical-text-editor/plugins/toolbar/link-editor.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/link-editor.js +51 -0
- package/dist/lexical-text-editor/plugins/toolbar/link-editor.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/primitives.d.ts +39 -0
- package/dist/lexical-text-editor/plugins/toolbar/primitives.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/primitives.js +47 -0
- package/dist/lexical-text-editor/plugins/toolbar/primitives.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.d.ts +9 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.js +29 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.d.ts +30 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.js +128 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar-plugin.d.ts +8 -0
- package/dist/lexical-text-editor/plugins/toolbar-plugin.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar-plugin.js +51 -0
- package/dist/lexical-text-editor/plugins/toolbar-plugin.js.map +1 -0
- package/dist/lexical-text-editor/sanitize.d.ts +24 -0
- package/dist/lexical-text-editor/sanitize.d.ts.map +1 -0
- package/dist/lexical-text-editor/sanitize.js +140 -0
- package/dist/lexical-text-editor/sanitize.js.map +1 -0
- package/dist/lib/format.d.ts +17 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/format.js +40 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/leading-space.d.ts +28 -0
- package/dist/lib/leading-space.d.ts.map +1 -0
- package/dist/lib/leading-space.js +34 -0
- package/dist/lib/leading-space.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +4 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/xlsx.d.ts +80 -0
- package/dist/lib/xlsx.d.ts.map +1 -0
- package/dist/lib/xlsx.js +377 -0
- package/dist/lib/xlsx.js.map +1 -0
- package/dist/search-engine/build-query.d.ts +29 -0
- package/dist/search-engine/build-query.d.ts.map +1 -0
- package/dist/search-engine/build-query.js +51 -0
- package/dist/search-engine/build-query.js.map +1 -0
- package/dist/search-engine/index.d.ts +15 -0
- package/dist/search-engine/index.d.ts.map +1 -0
- package/dist/search-engine/index.js +13 -0
- package/dist/search-engine/index.js.map +1 -0
- package/dist/search-engine/smart-search-form.d.ts +92 -0
- package/dist/search-engine/smart-search-form.d.ts.map +1 -0
- package/dist/search-engine/smart-search-form.js +136 -0
- package/dist/search-engine/smart-search-form.js.map +1 -0
- package/dist/search-engine/types.d.ts +40 -0
- package/dist/search-engine/types.d.ts.map +1 -0
- package/dist/search-engine/types.js +11 -0
- package/dist/search-engine/types.js.map +1 -0
- package/dist/smart-components/buttons/action-button.d.ts +66 -0
- package/dist/smart-components/buttons/action-button.d.ts.map +1 -0
- package/dist/smart-components/buttons/action-button.js +79 -0
- package/dist/smart-components/buttons/action-button.js.map +1 -0
- package/dist/smart-components/buttons/action-buttons.d.ts +122 -0
- package/dist/smart-components/buttons/action-buttons.d.ts.map +1 -0
- package/dist/smart-components/buttons/action-buttons.js +42 -0
- package/dist/smart-components/buttons/action-buttons.js.map +1 -0
- package/dist/smart-components/buttons/action-config.d.ts +181 -0
- package/dist/smart-components/buttons/action-config.d.ts.map +1 -0
- package/dist/smart-components/buttons/action-config.js +128 -0
- package/dist/smart-components/buttons/action-config.js.map +1 -0
- package/dist/smart-components/buttons/index.d.ts +4 -0
- package/dist/smart-components/buttons/index.d.ts.map +1 -0
- package/dist/smart-components/buttons/index.js +7 -0
- package/dist/smart-components/buttons/index.js.map +1 -0
- package/dist/smart-components/loading-overlay.d.ts +16 -0
- package/dist/smart-components/loading-overlay.d.ts.map +1 -0
- package/dist/smart-components/loading-overlay.js +13 -0
- package/dist/smart-components/loading-overlay.js.map +1 -0
- package/dist/smart-components/page/index.d.ts +19 -0
- package/dist/smart-components/page/index.d.ts.map +1 -0
- package/dist/smart-components/page/index.js +33 -0
- package/dist/smart-components/page/index.js.map +1 -0
- package/dist/smart-components/page/layouts/page-states.d.ts +17 -0
- package/dist/smart-components/page/layouts/page-states.d.ts.map +1 -0
- package/dist/smart-components/page/layouts/page-states.js +12 -0
- package/dist/smart-components/page/layouts/page-states.js.map +1 -0
- package/dist/smart-components/page/layouts/slot-buckets.d.ts +21 -0
- package/dist/smart-components/page/layouts/slot-buckets.d.ts.map +1 -0
- package/dist/smart-components/page/layouts/slot-buckets.js +2 -0
- package/dist/smart-components/page/layouts/slot-buckets.js.map +1 -0
- package/dist/smart-components/page/layouts/split-layout.d.ts +13 -0
- package/dist/smart-components/page/layouts/split-layout.d.ts.map +1 -0
- package/dist/smart-components/page/layouts/split-layout.js +14 -0
- package/dist/smart-components/page/layouts/split-layout.js.map +1 -0
- package/dist/smart-components/page/layouts/standard-layout.d.ts +18 -0
- package/dist/smart-components/page/layouts/standard-layout.d.ts.map +1 -0
- package/dist/smart-components/page/layouts/standard-layout.js +61 -0
- package/dist/smart-components/page/layouts/standard-layout.js.map +1 -0
- package/dist/smart-components/page/page-context.d.ts +51 -0
- package/dist/smart-components/page/page-context.d.ts.map +1 -0
- package/dist/smart-components/page/page-context.js +21 -0
- package/dist/smart-components/page/page-context.js.map +1 -0
- package/dist/smart-components/page/slot.d.ts +19 -0
- package/dist/smart-components/page/slot.d.ts.map +1 -0
- package/dist/smart-components/page/slot.js +18 -0
- package/dist/smart-components/page/slot.js.map +1 -0
- package/dist/smart-components/page/smart-grid-area.d.ts +75 -0
- package/dist/smart-components/page/smart-grid-area.d.ts.map +1 -0
- package/dist/smart-components/page/smart-grid-area.js +61 -0
- package/dist/smart-components/page/smart-grid-area.js.map +1 -0
- package/dist/smart-components/page/smart-page-container.d.ts +66 -0
- package/dist/smart-components/page/smart-page-container.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-container.js +93 -0
- package/dist/smart-components/page/smart-page-container.js.map +1 -0
- package/dist/smart-components/page/smart-page-content.d.ts +70 -0
- package/dist/smart-components/page/smart-page-content.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-content.js +78 -0
- package/dist/smart-components/page/smart-page-content.js.map +1 -0
- package/dist/smart-components/page/smart-page-empty.d.ts +47 -0
- package/dist/smart-components/page/smart-page-empty.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-empty.js +37 -0
- package/dist/smart-components/page/smart-page-empty.js.map +1 -0
- package/dist/smart-components/page/smart-page-error.d.ts +59 -0
- package/dist/smart-components/page/smart-page-error.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-error.js +45 -0
- package/dist/smart-components/page/smart-page-error.js.map +1 -0
- package/dist/smart-components/page/smart-page-filters.d.ts +38 -0
- package/dist/smart-components/page/smart-page-filters.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-filters.js +33 -0
- package/dist/smart-components/page/smart-page-filters.js.map +1 -0
- package/dist/smart-components/page/smart-page-footer.d.ts +49 -0
- package/dist/smart-components/page/smart-page-footer.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-footer.js +49 -0
- package/dist/smart-components/page/smart-page-footer.js.map +1 -0
- package/dist/smart-components/page/smart-page-header.d.ts +145 -0
- package/dist/smart-components/page/smart-page-header.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-header.js +129 -0
- package/dist/smart-components/page/smart-page-header.js.map +1 -0
- package/dist/smart-components/page/smart-page-hero.d.ts +43 -0
- package/dist/smart-components/page/smart-page-hero.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-hero.js +42 -0
- package/dist/smart-components/page/smart-page-hero.js.map +1 -0
- package/dist/smart-components/page/smart-page-loading.d.ts +31 -0
- package/dist/smart-components/page/smart-page-loading.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-loading.js +29 -0
- package/dist/smart-components/page/smart-page-loading.js.map +1 -0
- package/dist/smart-components/page/smart-page-search.d.ts +39 -0
- package/dist/smart-components/page/smart-page-search.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-search.js +38 -0
- package/dist/smart-components/page/smart-page-search.js.map +1 -0
- package/dist/smart-components/page/smart-page-section.d.ts +55 -0
- package/dist/smart-components/page/smart-page-section.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-section.js +41 -0
- package/dist/smart-components/page/smart-page-section.js.map +1 -0
- package/dist/smart-components/page/smart-page-status-bar.d.ts +34 -0
- package/dist/smart-components/page/smart-page-status-bar.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-status-bar.js +33 -0
- package/dist/smart-components/page/smart-page-status-bar.js.map +1 -0
- package/dist/smart-components/page/smart-page-tabs.d.ts +93 -0
- package/dist/smart-components/page/smart-page-tabs.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-tabs.js +87 -0
- package/dist/smart-components/page/smart-page-tabs.js.map +1 -0
- package/dist/smart-components/page/smart-page.d.ts +141 -0
- package/dist/smart-components/page/smart-page.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page.js +295 -0
- package/dist/smart-components/page/smart-page.js.map +1 -0
- package/dist/smart-components/page/smart-sidebar.d.ts +70 -0
- package/dist/smart-components/page/smart-sidebar.d.ts.map +1 -0
- package/dist/smart-components/page/smart-sidebar.js +54 -0
- package/dist/smart-components/page/smart-sidebar.js.map +1 -0
- package/dist/smart-components/page/smart-toolbar.d.ts +40 -0
- package/dist/smart-components/page/smart-toolbar.d.ts.map +1 -0
- package/dist/smart-components/page/smart-toolbar.js +39 -0
- package/dist/smart-components/page/smart-toolbar.js.map +1 -0
- package/dist/smart-components/search-input.d.ts +20 -0
- package/dist/smart-components/search-input.d.ts.map +1 -0
- package/dist/smart-components/search-input.js +12 -0
- package/dist/smart-components/search-input.js.map +1 -0
- package/dist/smart-components/smart-accordion.d.ts +53 -0
- package/dist/smart-components/smart-accordion.d.ts.map +1 -0
- package/dist/smart-components/smart-accordion.js +33 -0
- package/dist/smart-components/smart-accordion.js.map +1 -0
- package/dist/smart-components/smart-alert.d.ts +44 -0
- package/dist/smart-components/smart-alert.d.ts.map +1 -0
- package/dist/smart-components/smart-alert.js +27 -0
- package/dist/smart-components/smart-alert.js.map +1 -0
- package/dist/smart-components/smart-avatar.d.ts +3 -0
- package/dist/smart-components/smart-avatar.d.ts.map +1 -0
- package/dist/smart-components/smart-avatar.js +4 -0
- package/dist/smart-components/smart-avatar.js.map +1 -0
- package/dist/smart-components/smart-badge.d.ts +28 -0
- package/dist/smart-components/smart-badge.d.ts.map +1 -0
- package/dist/smart-components/smart-badge.js +24 -0
- package/dist/smart-components/smart-badge.js.map +1 -0
- package/dist/smart-components/smart-breadcrumb.d.ts +43 -0
- package/dist/smart-components/smart-breadcrumb.d.ts.map +1 -0
- package/dist/smart-components/smart-breadcrumb.js +37 -0
- package/dist/smart-components/smart-breadcrumb.js.map +1 -0
- package/dist/smart-components/smart-button.d.ts +22 -0
- package/dist/smart-components/smart-button.d.ts.map +1 -0
- package/dist/smart-components/smart-button.js +15 -0
- package/dist/smart-components/smart-button.js.map +1 -0
- package/dist/smart-components/smart-calendar.d.ts +78 -0
- package/dist/smart-components/smart-calendar.d.ts.map +1 -0
- package/dist/smart-components/smart-calendar.js +45 -0
- package/dist/smart-components/smart-calendar.js.map +1 -0
- package/dist/smart-components/smart-card.d.ts +55 -0
- package/dist/smart-components/smart-card.d.ts.map +1 -0
- package/dist/smart-components/smart-card.js +37 -0
- package/dist/smart-components/smart-card.js.map +1 -0
- package/dist/smart-components/smart-checkbox-group.d.ts +48 -0
- package/dist/smart-components/smart-checkbox-group.d.ts.map +1 -0
- package/dist/smart-components/smart-checkbox-group.js +48 -0
- package/dist/smart-components/smart-checkbox-group.js.map +1 -0
- package/dist/smart-components/smart-checkbox.d.ts +34 -0
- package/dist/smart-components/smart-checkbox.d.ts.map +1 -0
- package/dist/smart-components/smart-checkbox.js +34 -0
- package/dist/smart-components/smart-checkbox.js.map +1 -0
- package/dist/smart-components/smart-combobox.d.ts +36 -0
- package/dist/smart-components/smart-combobox.d.ts.map +1 -0
- package/dist/smart-components/smart-combobox.js +32 -0
- package/dist/smart-components/smart-combobox.js.map +1 -0
- package/dist/smart-components/smart-confirm-dialog.d.ts +63 -0
- package/dist/smart-components/smart-confirm-dialog.d.ts.map +1 -0
- package/dist/smart-components/smart-confirm-dialog.js +45 -0
- package/dist/smart-components/smart-confirm-dialog.js.map +1 -0
- package/dist/smart-components/smart-context-menu.d.ts +58 -0
- package/dist/smart-components/smart-context-menu.d.ts.map +1 -0
- package/dist/smart-components/smart-context-menu.js +38 -0
- package/dist/smart-components/smart-context-menu.js.map +1 -0
- package/dist/smart-components/smart-date-picker.d.ts +99 -0
- package/dist/smart-components/smart-date-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-date-picker.js +78 -0
- package/dist/smart-components/smart-date-picker.js.map +1 -0
- package/dist/smart-components/smart-date-range-picker.d.ts +37 -0
- package/dist/smart-components/smart-date-range-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-date-range-picker.js +38 -0
- package/dist/smart-components/smart-date-range-picker.js.map +1 -0
- package/dist/smart-components/smart-dialog.d.ts +75 -0
- package/dist/smart-components/smart-dialog.d.ts.map +1 -0
- package/dist/smart-components/smart-dialog.js +61 -0
- package/dist/smart-components/smart-dialog.js.map +1 -0
- package/dist/smart-components/smart-drawer.d.ts +48 -0
- package/dist/smart-components/smart-drawer.d.ts.map +1 -0
- package/dist/smart-components/smart-drawer.js +32 -0
- package/dist/smart-components/smart-drawer.js.map +1 -0
- package/dist/smart-components/smart-field.d.ts +47 -0
- package/dist/smart-components/smart-field.d.ts.map +1 -0
- package/dist/smart-components/smart-field.js +44 -0
- package/dist/smart-components/smart-field.js.map +1 -0
- package/dist/smart-components/smart-input-group.d.ts +60 -0
- package/dist/smart-components/smart-input-group.d.ts.map +1 -0
- package/dist/smart-components/smart-input-group.js +40 -0
- package/dist/smart-components/smart-input-group.js.map +1 -0
- package/dist/smart-components/smart-input.d.ts +46 -0
- package/dist/smart-components/smart-input.d.ts.map +1 -0
- package/dist/smart-components/smart-input.js +36 -0
- package/dist/smart-components/smart-input.js.map +1 -0
- package/dist/smart-components/smart-label.d.ts +22 -0
- package/dist/smart-components/smart-label.d.ts.map +1 -0
- package/dist/smart-components/smart-label.js +17 -0
- package/dist/smart-components/smart-label.js.map +1 -0
- package/dist/smart-components/smart-month-picker.d.ts +30 -0
- package/dist/smart-components/smart-month-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-month-picker.js +53 -0
- package/dist/smart-components/smart-month-picker.js.map +1 -0
- package/dist/smart-components/smart-multi-select.d.ts +38 -0
- package/dist/smart-components/smart-multi-select.d.ts.map +1 -0
- package/dist/smart-components/smart-multi-select.js +56 -0
- package/dist/smart-components/smart-multi-select.js.map +1 -0
- package/dist/smart-components/smart-native-select.d.ts +45 -0
- package/dist/smart-components/smart-native-select.d.ts.map +1 -0
- package/dist/smart-components/smart-native-select.js +33 -0
- package/dist/smart-components/smart-native-select.js.map +1 -0
- package/dist/smart-components/smart-nav-sidebar.d.ts +47 -0
- package/dist/smart-components/smart-nav-sidebar.d.ts.map +1 -0
- package/dist/smart-components/smart-nav-sidebar.js +37 -0
- package/dist/smart-components/smart-nav-sidebar.js.map +1 -0
- package/dist/smart-components/smart-password-input.d.ts +31 -0
- package/dist/smart-components/smart-password-input.d.ts.map +1 -0
- package/dist/smart-components/smart-password-input.js +30 -0
- package/dist/smart-components/smart-password-input.js.map +1 -0
- package/dist/smart-components/smart-radio-group.d.ts +58 -0
- package/dist/smart-components/smart-radio-group.d.ts.map +1 -0
- package/dist/smart-components/smart-radio-group.js +49 -0
- package/dist/smart-components/smart-radio-group.js.map +1 -0
- package/dist/smart-components/smart-segmented.d.ts +33 -0
- package/dist/smart-components/smart-segmented.d.ts.map +1 -0
- package/dist/smart-components/smart-segmented.js +25 -0
- package/dist/smart-components/smart-segmented.js.map +1 -0
- package/dist/smart-components/smart-select.d.ts +71 -0
- package/dist/smart-components/smart-select.d.ts.map +1 -0
- package/dist/smart-components/smart-select.js +44 -0
- package/dist/smart-components/smart-select.js.map +1 -0
- package/dist/smart-components/smart-separator.d.ts +3 -0
- package/dist/smart-components/smart-separator.d.ts.map +1 -0
- package/dist/smart-components/smart-separator.js +4 -0
- package/dist/smart-components/smart-separator.js.map +1 -0
- package/dist/smart-components/smart-sheet.d.ts +79 -0
- package/dist/smart-components/smart-sheet.d.ts.map +1 -0
- package/dist/smart-components/smart-sheet.js +47 -0
- package/dist/smart-components/smart-sheet.js.map +1 -0
- package/dist/smart-components/smart-stat-card.d.ts +47 -0
- package/dist/smart-components/smart-stat-card.d.ts.map +1 -0
- package/dist/smart-components/smart-stat-card.js +35 -0
- package/dist/smart-components/smart-stat-card.js.map +1 -0
- package/dist/smart-components/smart-stepper.d.ts +24 -0
- package/dist/smart-components/smart-stepper.d.ts.map +1 -0
- package/dist/smart-components/smart-stepper.js +24 -0
- package/dist/smart-components/smart-stepper.js.map +1 -0
- package/dist/smart-components/smart-switch.d.ts +34 -0
- package/dist/smart-components/smart-switch.d.ts.map +1 -0
- package/dist/smart-components/smart-switch.js +34 -0
- package/dist/smart-components/smart-switch.js.map +1 -0
- package/dist/smart-components/smart-textarea.d.ts +38 -0
- package/dist/smart-components/smart-textarea.d.ts.map +1 -0
- package/dist/smart-components/smart-textarea.js +28 -0
- package/dist/smart-components/smart-textarea.js.map +1 -0
- package/dist/smart-components/smart-time-picker.d.ts +59 -0
- package/dist/smart-components/smart-time-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-time-picker.js +129 -0
- package/dist/smart-components/smart-time-picker.js.map +1 -0
- package/dist/smart-components/smart-time-range-picker.d.ts +39 -0
- package/dist/smart-components/smart-time-range-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-time-range-picker.js +26 -0
- package/dist/smart-components/smart-time-range-picker.js.map +1 -0
- package/dist/smart-components/smart-toaster.d.ts +10 -0
- package/dist/smart-components/smart-toaster.d.ts.map +1 -0
- package/dist/smart-components/smart-toaster.js +21 -0
- package/dist/smart-components/smart-toaster.js.map +1 -0
- package/dist/smart-components/smart-year-picker.d.ts +29 -0
- package/dist/smart-components/smart-year-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-year-picker.js +43 -0
- package/dist/smart-components/smart-year-picker.js.map +1 -0
- package/dist/smart-components/spinner.d.ts +10 -0
- package/dist/smart-components/spinner.d.ts.map +1 -0
- package/dist/smart-components/spinner.js +5 -0
- package/dist/smart-components/spinner.js.map +1 -0
- package/dist/transfer-list-engine/index.d.ts +5 -0
- package/dist/transfer-list-engine/index.d.ts.map +1 -0
- package/dist/transfer-list-engine/index.js +3 -0
- package/dist/transfer-list-engine/index.js.map +1 -0
- package/dist/transfer-list-engine/transfer-list.d.ts +53 -0
- package/dist/transfer-list-engine/transfer-list.d.ts.map +1 -0
- package/dist/transfer-list-engine/transfer-list.js +190 -0
- package/dist/transfer-list-engine/transfer-list.js.map +1 -0
- package/dist/transfer-list-engine/transfer-utils.d.ts +30 -0
- package/dist/transfer-list-engine/transfer-utils.d.ts.map +1 -0
- package/dist/transfer-list-engine/transfer-utils.js +69 -0
- package/dist/transfer-list-engine/transfer-utils.js.map +1 -0
- package/dist/transfer-list-engine/types.d.ts +51 -0
- package/dist/transfer-list-engine/types.d.ts.map +1 -0
- package/dist/transfer-list-engine/types.js +2 -0
- package/dist/transfer-list-engine/types.js.map +1 -0
- package/dist/tree-engine/index.d.ts +6 -0
- package/dist/tree-engine/index.d.ts.map +1 -0
- package/dist/tree-engine/index.js +3 -0
- package/dist/tree-engine/index.js.map +1 -0
- package/dist/tree-engine/tree-utils.d.ts +84 -0
- package/dist/tree-engine/tree-utils.d.ts.map +1 -0
- package/dist/tree-engine/tree-utils.js +271 -0
- package/dist/tree-engine/tree-utils.js.map +1 -0
- package/dist/tree-engine/tree.d.ts +98 -0
- package/dist/tree-engine/tree.d.ts.map +1 -0
- package/dist/tree-engine/tree.js +430 -0
- package/dist/tree-engine/tree.js.map +1 -0
- package/dist/tree-engine/types.d.ts +85 -0
- package/dist/tree-engine/types.d.ts.map +1 -0
- package/dist/tree-engine/types.js +2 -0
- package/dist/tree-engine/types.js.map +1 -0
- package/dist/tree-engine/use-tree.d.ts +12 -0
- package/dist/tree-engine/use-tree.d.ts.map +1 -0
- package/dist/tree-engine/use-tree.js +34 -0
- package/dist/tree-engine/use-tree.js.map +1 -0
- package/package.json +158 -0
- package/src/styles/globals.css +161 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageTabsProps {
|
|
3
|
+
/** The value of the tab selected by default (uncontrolled). */
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
/** The controlled active tab value. */
|
|
6
|
+
value?: string;
|
|
7
|
+
onValueChange?: (value: string) => void;
|
|
8
|
+
/**
|
|
9
|
+
* Render a bottom border on the tab list strip.
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
border?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Visual variant of the tab list.
|
|
15
|
+
* - `"line"` — underline style (recommended for page-level tabs)
|
|
16
|
+
* - `"default"` — pill/chip style
|
|
17
|
+
*/
|
|
18
|
+
variant?: "default" | "line";
|
|
19
|
+
className?: string;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Page-level tab navigation bar.
|
|
24
|
+
*
|
|
25
|
+
* Used when a single page exposes multiple views or sub-sections (Overview,
|
|
26
|
+
* Activity, Settings). The tab list renders as a horizontal strip below the
|
|
27
|
+
* toolbar; each panel renders its content below the strip.
|
|
28
|
+
*
|
|
29
|
+
* Compose with {@link SmartPageTab} (tab triggers) and
|
|
30
|
+
* {@link SmartPageTabPanel} (tab content panels).
|
|
31
|
+
*
|
|
32
|
+
* ## When to use
|
|
33
|
+
* Use SmartPageTabs for **navigation** between views that share the same URL
|
|
34
|
+
* context (e.g. a profile page with Overview / Posts / Followers tabs).
|
|
35
|
+
* For tabs that switch localised UI state within a card, use the
|
|
36
|
+
* shadcn `Tabs` component directly.
|
|
37
|
+
*
|
|
38
|
+
* ## Scroll note
|
|
39
|
+
* Tab panels participate in the parent's scroll mode. If you need each panel
|
|
40
|
+
* to scroll independently, wrap content in a `SmartPageContent` inside the panel.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <SmartPage>
|
|
45
|
+
* <SmartPageHeader>
|
|
46
|
+
* <SmartPageTitle>Project Alpha</SmartPageTitle>
|
|
47
|
+
* </SmartPageHeader>
|
|
48
|
+
* <SmartPageTabs defaultValue="overview" variant="line">
|
|
49
|
+
* <SmartPageTab value="overview">Overview</SmartPageTab>
|
|
50
|
+
* <SmartPageTab value="activity">Activity</SmartPageTab>
|
|
51
|
+
* <SmartPageTab value="settings">Settings</SmartPageTab>
|
|
52
|
+
* <SmartPageTabPanel value="overview"><OverviewView /></SmartPageTabPanel>
|
|
53
|
+
* <SmartPageTabPanel value="activity"><ActivityView /></SmartPageTabPanel>
|
|
54
|
+
* <SmartPageTabPanel value="settings"><SettingsView /></SmartPageTabPanel>
|
|
55
|
+
* </SmartPageTabs>
|
|
56
|
+
* </SmartPage>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare const SmartPageTabs: ({ defaultValue, value, onValueChange, border, variant, className, children, }: SmartPageTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export interface SmartPageTabProps {
|
|
61
|
+
/** Must match the corresponding SmartPageTabPanel value. */
|
|
62
|
+
value: string;
|
|
63
|
+
className?: string;
|
|
64
|
+
children?: React.ReactNode;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A single tab trigger inside {@link SmartPageTabs}.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* <SmartPageTab value="overview">Overview</SmartPageTab>
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare const SmartPageTab: ({ value, className, children, }: SmartPageTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
export interface SmartPageTabPanelProps {
|
|
76
|
+
/** Must match the corresponding SmartPageTab value. */
|
|
77
|
+
value: string;
|
|
78
|
+
className?: string;
|
|
79
|
+
children?: React.ReactNode;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Content panel for a tab inside {@link SmartPageTabs}.
|
|
83
|
+
* Only rendered when its `value` matches the active tab.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```tsx
|
|
87
|
+
* <SmartPageTabPanel value="overview">
|
|
88
|
+
* <SmartPageContent><OverviewCards /></SmartPageContent>
|
|
89
|
+
* </SmartPageTabPanel>
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare const SmartPageTabPanel: ({ value, className, children, }: SmartPageTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
//# sourceMappingURL=smart-page-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-tabs.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,aAAa,GAAI,+EAQ3B,kBAAkB,4CAgCpB,CACA;AAID,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GAAI,iCAI1B,iBAAiB,4CAUnB,CACA;AAID,MAAM,WAAW,sBAAsB;IACrC,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,iCAI/B,sBAAsB,4CAIxB,CACA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
5
|
+
import { Tabs, TabsList, TabsTrigger, TabsContent, } from "@iamsaroj/smart-ui/components/tabs";
|
|
6
|
+
import { SMART_PAGE_SLOT } from "./smart-page";
|
|
7
|
+
/**
|
|
8
|
+
* Page-level tab navigation bar.
|
|
9
|
+
*
|
|
10
|
+
* Used when a single page exposes multiple views or sub-sections (Overview,
|
|
11
|
+
* Activity, Settings). The tab list renders as a horizontal strip below the
|
|
12
|
+
* toolbar; each panel renders its content below the strip.
|
|
13
|
+
*
|
|
14
|
+
* Compose with {@link SmartPageTab} (tab triggers) and
|
|
15
|
+
* {@link SmartPageTabPanel} (tab content panels).
|
|
16
|
+
*
|
|
17
|
+
* ## When to use
|
|
18
|
+
* Use SmartPageTabs for **navigation** between views that share the same URL
|
|
19
|
+
* context (e.g. a profile page with Overview / Posts / Followers tabs).
|
|
20
|
+
* For tabs that switch localised UI state within a card, use the
|
|
21
|
+
* shadcn `Tabs` component directly.
|
|
22
|
+
*
|
|
23
|
+
* ## Scroll note
|
|
24
|
+
* Tab panels participate in the parent's scroll mode. If you need each panel
|
|
25
|
+
* to scroll independently, wrap content in a `SmartPageContent` inside the panel.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <SmartPage>
|
|
30
|
+
* <SmartPageHeader>
|
|
31
|
+
* <SmartPageTitle>Project Alpha</SmartPageTitle>
|
|
32
|
+
* </SmartPageHeader>
|
|
33
|
+
* <SmartPageTabs defaultValue="overview" variant="line">
|
|
34
|
+
* <SmartPageTab value="overview">Overview</SmartPageTab>
|
|
35
|
+
* <SmartPageTab value="activity">Activity</SmartPageTab>
|
|
36
|
+
* <SmartPageTab value="settings">Settings</SmartPageTab>
|
|
37
|
+
* <SmartPageTabPanel value="overview"><OverviewView /></SmartPageTabPanel>
|
|
38
|
+
* <SmartPageTabPanel value="activity"><ActivityView /></SmartPageTabPanel>
|
|
39
|
+
* <SmartPageTabPanel value="settings"><SettingsView /></SmartPageTabPanel>
|
|
40
|
+
* </SmartPageTabs>
|
|
41
|
+
* </SmartPage>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export const SmartPageTabs = ({ defaultValue, value, onValueChange, border = true, variant = "line", className, children, }) => {
|
|
45
|
+
// Collect SmartPageTab triggers vs SmartPageTabPanel panels from children
|
|
46
|
+
const triggers = [];
|
|
47
|
+
const panels = [];
|
|
48
|
+
React.Children.forEach(children, (child) => {
|
|
49
|
+
if (!React.isValidElement(child))
|
|
50
|
+
return;
|
|
51
|
+
const role = child.type
|
|
52
|
+
._smartTabRole;
|
|
53
|
+
if (role === "tab")
|
|
54
|
+
triggers.push(child);
|
|
55
|
+
else if (role === "panel")
|
|
56
|
+
panels.push(child);
|
|
57
|
+
else
|
|
58
|
+
triggers.push(child); // unknown children fall into trigger area
|
|
59
|
+
});
|
|
60
|
+
return (_jsxs(Tabs, { defaultValue: defaultValue, value: value, onValueChange: onValueChange, className: cn("flex shrink-0 flex-col", className), children: [_jsx("div", { className: cn("px-4", border && "border-b"), children: _jsx(TabsList, { variant: variant, className: "h-9 gap-0 rounded-none bg-transparent p-0", children: triggers }) }), panels] }));
|
|
61
|
+
};
|
|
62
|
+
SmartPageTabs[SMART_PAGE_SLOT] = "tabs";
|
|
63
|
+
/**
|
|
64
|
+
* A single tab trigger inside {@link SmartPageTabs}.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```tsx
|
|
68
|
+
* <SmartPageTab value="overview">Overview</SmartPageTab>
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export const SmartPageTab = ({ value, className, children, }) => (_jsx(TabsTrigger, { value: value, className: cn("h-9 rounded-none border-0 px-4 text-xs font-medium", className), children: children }));
|
|
72
|
+
SmartPageTab._smartTabRole = "tab";
|
|
73
|
+
/**
|
|
74
|
+
* Content panel for a tab inside {@link SmartPageTabs}.
|
|
75
|
+
* Only rendered when its `value` matches the active tab.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```tsx
|
|
79
|
+
* <SmartPageTabPanel value="overview">
|
|
80
|
+
* <SmartPageContent><OverviewCards /></SmartPageContent>
|
|
81
|
+
* </SmartPageTabPanel>
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export const SmartPageTabPanel = ({ value, className, children, }) => (_jsx(TabsContent, { value: value, className: cn("flex-1 outline-none", className), children: children }));
|
|
85
|
+
SmartPageTabPanel._smartTabRole =
|
|
86
|
+
"panel";
|
|
87
|
+
//# sourceMappingURL=smart-page-tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-tabs.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-tabs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,WAAW,GACZ,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAyB9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,YAAY,EACZ,KAAK,EACL,aAAa,EACb,MAAM,GAAG,IAAI,EACb,OAAO,GAAG,MAAM,EAChB,SAAS,EACT,QAAQ,GACW,EAAE,EAAE;IACvB,0EAA0E;IAC1E,MAAM,QAAQ,GAAsB,EAAE,CAAA;IACtC,MAAM,MAAM,GAAsB,EAAE,CAAA;IAEpC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;QACzC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;YAAE,OAAM;QACxC,MAAM,IAAI,GAAI,KAAK,CAAC,IAA2C;aAC5D,aAAmC,CAAA;QACtC,IAAI,IAAI,KAAK,KAAK;YAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;aACnC,IAAI,IAAI,KAAK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ddingSize } from "./page-context";
|
|
3
|
+
import { SMART_PAGE_SLOT, type PageSlot } from "./slot";
|
|
4
|
+
import { type SmartPageHeaderProps, type SmartPageBreadcrumbItem } from "./smart-page-header";
|
|
5
|
+
export { SMART_PAGE_SLOT, type PageSlot };
|
|
6
|
+
export interface SmartPageProps {
|
|
7
|
+
/**
|
|
8
|
+
* Layout preset. Omit to let SmartPage auto-detect from children:
|
|
9
|
+
* - `SmartGridArea` → `"grid"` (grid fills height, regions sticky)
|
|
10
|
+
* - `SmartPageHero` → `"dashboard"` (natural page scroll)
|
|
11
|
+
* - `SmartSidebar` → `"split"` (horizontal split)
|
|
12
|
+
* - Otherwise → `"document"` (natural flow)
|
|
13
|
+
*/
|
|
14
|
+
layout?: PageLayout;
|
|
15
|
+
/**
|
|
16
|
+
* Override the scroll mode (derived from `layout` by default).
|
|
17
|
+
*
|
|
18
|
+
* - `"page"` — outer shell scrolls (default for document/dashboard)
|
|
19
|
+
* - `"content"` — SmartPageContent scrolls independently
|
|
20
|
+
* - `"grid"` — grid manages its own scroll (default for grid layout)
|
|
21
|
+
* - `"none"` — no scroll
|
|
22
|
+
*/
|
|
23
|
+
scroll?: ScrollMode;
|
|
24
|
+
/** Stick the header to the top while the page scrolls. */
|
|
25
|
+
stickyHeader?: boolean;
|
|
26
|
+
/** Stick the toolbar below the header. */
|
|
27
|
+
stickyToolbar?: boolean;
|
|
28
|
+
/** Stick the search bar below the toolbar. */
|
|
29
|
+
stickySearch?: boolean;
|
|
30
|
+
/** Stick the filter bar below the search. */
|
|
31
|
+
stickyFilters?: boolean;
|
|
32
|
+
/** Stick the status bar above the footer. */
|
|
33
|
+
stickyStatusBar?: boolean;
|
|
34
|
+
/** Stick the footer to the bottom. */
|
|
35
|
+
stickyFooter?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Stretch the page to fill its parent's height.
|
|
38
|
+
* Auto-enabled when `scroll` is `"content"` or `"grid"`.
|
|
39
|
+
*/
|
|
40
|
+
fullHeight?: boolean;
|
|
41
|
+
/** Remove max-width constraints so content spans edge to edge. */
|
|
42
|
+
fullWidth?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Padding applied inside content areas.
|
|
45
|
+
* `true` → `"md"`, `false` → `"none"`, or an explicit token.
|
|
46
|
+
*/
|
|
47
|
+
padding?: boolean | PaddingSize;
|
|
48
|
+
/** Render a visible border around the page container. */
|
|
49
|
+
bordered?: boolean;
|
|
50
|
+
/** Render a full-page loading state instead of children. */
|
|
51
|
+
loading?: boolean;
|
|
52
|
+
/** Accessible label shown beside the loading indicator. */
|
|
53
|
+
loadingLabel?: string;
|
|
54
|
+
/** Render an error state instead of children. Pass `<SmartPageError />` or custom content. */
|
|
55
|
+
error?: React.ReactNode;
|
|
56
|
+
/** Render an empty state instead of children. Pass `<SmartPageEmpty />` or custom content. */
|
|
57
|
+
empty?: React.ReactNode;
|
|
58
|
+
/** Breadcrumb trail rendered above the title in the auto-rendered header. */
|
|
59
|
+
breadcrumb?: SmartPageBreadcrumbItem[];
|
|
60
|
+
/** Page title. A string is styled automatically; pass a node for custom title rows (e.g. a badge beside it). */
|
|
61
|
+
title?: React.ReactNode;
|
|
62
|
+
/** Supporting description rendered below the title. */
|
|
63
|
+
description?: React.ReactNode;
|
|
64
|
+
/** Right-aligned header action group, on the same row as the title. */
|
|
65
|
+
actions?: React.ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Extra props forwarded to the auto-rendered {@link SmartPageHeader} — e.g.
|
|
68
|
+
* `border` / `compact` styling, or `children` for a custom row below the
|
|
69
|
+
* flat block. Only applies when a flat header prop is set.
|
|
70
|
+
*/
|
|
71
|
+
headerProps?: Omit<SmartPageHeaderProps, "breadcrumb" | "title" | "description" | "actions">;
|
|
72
|
+
className?: string;
|
|
73
|
+
children?: React.ReactNode;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* SmartPage is the top-level layout engine for any route or view.
|
|
77
|
+
*
|
|
78
|
+
* It assembles seven named layout zones (header, toolbar, search, filters,
|
|
79
|
+
* content / grid, status bar, footer) into one of seven layout presets, manages
|
|
80
|
+
* scroll containment automatically, and broadcasts configuration to all
|
|
81
|
+
* descendants via context — so child components self-style without extra props.
|
|
82
|
+
*
|
|
83
|
+
* ## Auto-detection
|
|
84
|
+
* Drop in named slot components and SmartPage configures itself:
|
|
85
|
+
* ```tsx
|
|
86
|
+
* // Detected as "grid" layout — grid fills viewport, regions are sticky
|
|
87
|
+
* <SmartPage>
|
|
88
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
89
|
+
* <SmartToolbar>…</SmartToolbar>
|
|
90
|
+
* <SmartGridArea><MyDataGrid /></SmartGridArea>
|
|
91
|
+
* <SmartPageFooter>…</SmartPageFooter>
|
|
92
|
+
* </SmartPage>
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* ## Scroll philosophy
|
|
96
|
+
* Only one element scrolls at a time. The `scroll` prop (or its layout default)
|
|
97
|
+
* decides which element that is. Nested scrollbars never appear.
|
|
98
|
+
*
|
|
99
|
+
* ## States
|
|
100
|
+
* Pass `loading`, `error`, or `empty` to replace children with the appropriate
|
|
101
|
+
* full-page state — useful for data-driven views that haven't loaded yet.
|
|
102
|
+
*
|
|
103
|
+
* ## Header: flat props vs. composition
|
|
104
|
+
* For the common case, pass `breadcrumb` / `title` / `description` / `actions`
|
|
105
|
+
* straight to SmartPage — it renders a {@link SmartPageHeader} for you, so you
|
|
106
|
+
* never import or nest one. Nesting `<SmartPageHeader>` as a child is still the
|
|
107
|
+
* escape hatch for full control (custom border/compact, extra rows, …).
|
|
108
|
+
*
|
|
109
|
+
* @example Flat header (the common case — no SmartPageHeader import)
|
|
110
|
+
* ```tsx
|
|
111
|
+
* <SmartPage
|
|
112
|
+
* breadcrumb={[{ label: "Admin", href: "#" }, { label: "Users" }]}
|
|
113
|
+
* title="Users"
|
|
114
|
+
* description="Manage your organisation's members."
|
|
115
|
+
* actions={<Button>Invite user</Button>}
|
|
116
|
+
* >
|
|
117
|
+
* <SmartGridArea>…</SmartGridArea>
|
|
118
|
+
* </SmartPage>
|
|
119
|
+
* ```
|
|
120
|
+
*
|
|
121
|
+
* @example Dashboard (natural page scroll, no detection needed)
|
|
122
|
+
* ```tsx
|
|
123
|
+
* <SmartPage layout="dashboard">
|
|
124
|
+
* <SmartPageHero>…</SmartPageHero>
|
|
125
|
+
* <SmartPageContent>
|
|
126
|
+
* <DashboardCards />
|
|
127
|
+
* </SmartPageContent>
|
|
128
|
+
* </SmartPage>
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* @example Split detail (auto-detected from SmartSidebar)
|
|
132
|
+
* ```tsx
|
|
133
|
+
* <SmartPage>
|
|
134
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
135
|
+
* <SmartPageContent>Main content</SmartPageContent>
|
|
136
|
+
* <SmartSidebar>Right panel</SmartSidebar>
|
|
137
|
+
* </SmartPage>
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
export declare const SmartPage: ({ layout: layoutProp, scroll: scrollProp, stickyHeader: stickyHeaderProp, stickyToolbar: stickyToolbarProp, stickySearch: stickySearchProp, stickyFilters: stickyFiltersProp, stickyStatusBar: stickyStatusBarProp, stickyFooter: stickyFooterProp, fullHeight: fullHeightProp, fullWidth, padding: paddingProp, bordered, loading, loadingLabel, error, empty, breadcrumb, title, description, actions, headerProps, className, children, }: SmartPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
141
|
+
//# sourceMappingURL=smart-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,eAAe,EAAE,KAAK,QAAQ,EAAE,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,CAAA;IAC7B,uEAAuE;IACvE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,CAChB,oBAAoB,EACpB,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CACnD,CAAA;IAED,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,eAAO,MAAM,SAAS,GAAI,8aAwBvB,cAAc,4CAqGhB,CAAA"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
5
|
+
import { PageContext, } from "./page-context";
|
|
6
|
+
import { SMART_PAGE_SLOT } from "./slot";
|
|
7
|
+
import { StandardLayout } from "./layouts/standard-layout";
|
|
8
|
+
import { SplitLayout } from "./layouts/split-layout";
|
|
9
|
+
import { PageLoadingState, PageErrorState, PageEmptyState, } from "./layouts/page-states";
|
|
10
|
+
import { SmartPageHeader, } from "./smart-page-header";
|
|
11
|
+
// ─── Slot Detection ────────────────────────────────────────────────────────────
|
|
12
|
+
// `SMART_PAGE_SLOT` and `PageSlot` are re-exported here for backwards
|
|
13
|
+
// compatibility — they live in the dependency-free `./slot` leaf so this module
|
|
14
|
+
// can import a slot component (SmartPageHeader) without a circular import.
|
|
15
|
+
export { SMART_PAGE_SLOT };
|
|
16
|
+
const collectSlots = (children) => {
|
|
17
|
+
const b = {
|
|
18
|
+
header: [],
|
|
19
|
+
hero: [],
|
|
20
|
+
toolbar: [],
|
|
21
|
+
search: [],
|
|
22
|
+
filters: [],
|
|
23
|
+
tabs: [],
|
|
24
|
+
content: [],
|
|
25
|
+
sidebar: [],
|
|
26
|
+
gridArea: [],
|
|
27
|
+
statusBar: [],
|
|
28
|
+
footer: [],
|
|
29
|
+
body: [],
|
|
30
|
+
};
|
|
31
|
+
React.Children.forEach(children, (child) => {
|
|
32
|
+
if (!React.isValidElement(child)) {
|
|
33
|
+
b.body.push(child);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const slot = child.type[SMART_PAGE_SLOT];
|
|
37
|
+
switch (slot) {
|
|
38
|
+
case "header":
|
|
39
|
+
b.header.push(child);
|
|
40
|
+
break;
|
|
41
|
+
case "hero":
|
|
42
|
+
b.hero.push(child);
|
|
43
|
+
break;
|
|
44
|
+
case "toolbar":
|
|
45
|
+
b.toolbar.push(child);
|
|
46
|
+
break;
|
|
47
|
+
case "search":
|
|
48
|
+
b.search.push(child);
|
|
49
|
+
break;
|
|
50
|
+
case "filters":
|
|
51
|
+
b.filters.push(child);
|
|
52
|
+
break;
|
|
53
|
+
case "tabs":
|
|
54
|
+
b.tabs.push(child);
|
|
55
|
+
break;
|
|
56
|
+
case "content":
|
|
57
|
+
b.content.push(child);
|
|
58
|
+
break;
|
|
59
|
+
case "sidebar":
|
|
60
|
+
b.sidebar.push(child);
|
|
61
|
+
break;
|
|
62
|
+
case "grid-area":
|
|
63
|
+
b.gridArea.push(child);
|
|
64
|
+
break;
|
|
65
|
+
case "status-bar":
|
|
66
|
+
b.statusBar.push(child);
|
|
67
|
+
break;
|
|
68
|
+
case "footer":
|
|
69
|
+
b.footer.push(child);
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
b.body.push(child);
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
return b;
|
|
77
|
+
};
|
|
78
|
+
const detectLayout = (b) => {
|
|
79
|
+
if (b.gridArea.length > 0)
|
|
80
|
+
return "grid";
|
|
81
|
+
if (b.hero.length > 0)
|
|
82
|
+
return "dashboard";
|
|
83
|
+
if (b.sidebar.length > 0)
|
|
84
|
+
return "split";
|
|
85
|
+
return "document";
|
|
86
|
+
};
|
|
87
|
+
const LAYOUT_DEFAULTS = {
|
|
88
|
+
document: {
|
|
89
|
+
scroll: "page",
|
|
90
|
+
padding: "md",
|
|
91
|
+
stickyHeader: false,
|
|
92
|
+
stickyToolbar: false,
|
|
93
|
+
stickySearch: false,
|
|
94
|
+
stickyFilters: false,
|
|
95
|
+
stickyStatusBar: false,
|
|
96
|
+
stickyFooter: false,
|
|
97
|
+
},
|
|
98
|
+
grid: {
|
|
99
|
+
scroll: "grid",
|
|
100
|
+
padding: "none",
|
|
101
|
+
stickyHeader: true,
|
|
102
|
+
stickyToolbar: true,
|
|
103
|
+
stickySearch: true,
|
|
104
|
+
stickyFilters: true,
|
|
105
|
+
stickyStatusBar: true,
|
|
106
|
+
stickyFooter: true,
|
|
107
|
+
},
|
|
108
|
+
dashboard: {
|
|
109
|
+
scroll: "page",
|
|
110
|
+
padding: "md",
|
|
111
|
+
stickyHeader: false,
|
|
112
|
+
stickyToolbar: false,
|
|
113
|
+
stickySearch: false,
|
|
114
|
+
stickyFilters: false,
|
|
115
|
+
stickyStatusBar: false,
|
|
116
|
+
stickyFooter: false,
|
|
117
|
+
},
|
|
118
|
+
split: {
|
|
119
|
+
scroll: "content",
|
|
120
|
+
padding: "none",
|
|
121
|
+
stickyHeader: true,
|
|
122
|
+
stickyToolbar: false,
|
|
123
|
+
stickySearch: false,
|
|
124
|
+
stickyFilters: false,
|
|
125
|
+
stickyStatusBar: false,
|
|
126
|
+
stickyFooter: false,
|
|
127
|
+
},
|
|
128
|
+
fullscreen: {
|
|
129
|
+
scroll: "none",
|
|
130
|
+
padding: "none",
|
|
131
|
+
stickyHeader: false,
|
|
132
|
+
stickyToolbar: false,
|
|
133
|
+
stickySearch: false,
|
|
134
|
+
stickyFilters: false,
|
|
135
|
+
stickyStatusBar: false,
|
|
136
|
+
stickyFooter: false,
|
|
137
|
+
},
|
|
138
|
+
wizard: {
|
|
139
|
+
scroll: "content",
|
|
140
|
+
padding: "md",
|
|
141
|
+
stickyHeader: true,
|
|
142
|
+
stickyToolbar: false,
|
|
143
|
+
stickySearch: false,
|
|
144
|
+
stickyFilters: false,
|
|
145
|
+
stickyStatusBar: false,
|
|
146
|
+
stickyFooter: true,
|
|
147
|
+
},
|
|
148
|
+
detail: {
|
|
149
|
+
scroll: "content",
|
|
150
|
+
padding: "md",
|
|
151
|
+
stickyHeader: true,
|
|
152
|
+
stickyToolbar: false,
|
|
153
|
+
stickySearch: false,
|
|
154
|
+
stickyFilters: false,
|
|
155
|
+
stickyStatusBar: false,
|
|
156
|
+
stickyFooter: false,
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
// ─── Component ─────────────────────────────────────────────────────────────────
|
|
160
|
+
/**
|
|
161
|
+
* SmartPage is the top-level layout engine for any route or view.
|
|
162
|
+
*
|
|
163
|
+
* It assembles seven named layout zones (header, toolbar, search, filters,
|
|
164
|
+
* content / grid, status bar, footer) into one of seven layout presets, manages
|
|
165
|
+
* scroll containment automatically, and broadcasts configuration to all
|
|
166
|
+
* descendants via context — so child components self-style without extra props.
|
|
167
|
+
*
|
|
168
|
+
* ## Auto-detection
|
|
169
|
+
* Drop in named slot components and SmartPage configures itself:
|
|
170
|
+
* ```tsx
|
|
171
|
+
* // Detected as "grid" layout — grid fills viewport, regions are sticky
|
|
172
|
+
* <SmartPage>
|
|
173
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
174
|
+
* <SmartToolbar>…</SmartToolbar>
|
|
175
|
+
* <SmartGridArea><MyDataGrid /></SmartGridArea>
|
|
176
|
+
* <SmartPageFooter>…</SmartPageFooter>
|
|
177
|
+
* </SmartPage>
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* ## Scroll philosophy
|
|
181
|
+
* Only one element scrolls at a time. The `scroll` prop (or its layout default)
|
|
182
|
+
* decides which element that is. Nested scrollbars never appear.
|
|
183
|
+
*
|
|
184
|
+
* ## States
|
|
185
|
+
* Pass `loading`, `error`, or `empty` to replace children with the appropriate
|
|
186
|
+
* full-page state — useful for data-driven views that haven't loaded yet.
|
|
187
|
+
*
|
|
188
|
+
* ## Header: flat props vs. composition
|
|
189
|
+
* For the common case, pass `breadcrumb` / `title` / `description` / `actions`
|
|
190
|
+
* straight to SmartPage — it renders a {@link SmartPageHeader} for you, so you
|
|
191
|
+
* never import or nest one. Nesting `<SmartPageHeader>` as a child is still the
|
|
192
|
+
* escape hatch for full control (custom border/compact, extra rows, …).
|
|
193
|
+
*
|
|
194
|
+
* @example Flat header (the common case — no SmartPageHeader import)
|
|
195
|
+
* ```tsx
|
|
196
|
+
* <SmartPage
|
|
197
|
+
* breadcrumb={[{ label: "Admin", href: "#" }, { label: "Users" }]}
|
|
198
|
+
* title="Users"
|
|
199
|
+
* description="Manage your organisation's members."
|
|
200
|
+
* actions={<Button>Invite user</Button>}
|
|
201
|
+
* >
|
|
202
|
+
* <SmartGridArea>…</SmartGridArea>
|
|
203
|
+
* </SmartPage>
|
|
204
|
+
* ```
|
|
205
|
+
*
|
|
206
|
+
* @example Dashboard (natural page scroll, no detection needed)
|
|
207
|
+
* ```tsx
|
|
208
|
+
* <SmartPage layout="dashboard">
|
|
209
|
+
* <SmartPageHero>…</SmartPageHero>
|
|
210
|
+
* <SmartPageContent>
|
|
211
|
+
* <DashboardCards />
|
|
212
|
+
* </SmartPageContent>
|
|
213
|
+
* </SmartPage>
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* @example Split detail (auto-detected from SmartSidebar)
|
|
217
|
+
* ```tsx
|
|
218
|
+
* <SmartPage>
|
|
219
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
220
|
+
* <SmartPageContent>Main content</SmartPageContent>
|
|
221
|
+
* <SmartSidebar>Right panel</SmartSidebar>
|
|
222
|
+
* </SmartPage>
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
export const SmartPage = ({ layout: layoutProp, scroll: scrollProp, stickyHeader: stickyHeaderProp, stickyToolbar: stickyToolbarProp, stickySearch: stickySearchProp, stickyFilters: stickyFiltersProp, stickyStatusBar: stickyStatusBarProp, stickyFooter: stickyFooterProp, fullHeight: fullHeightProp, fullWidth = false, padding: paddingProp, bordered = false, loading = false, loadingLabel, error, empty, breadcrumb, title, description, actions, headerProps, className, children, }) => {
|
|
226
|
+
const buckets = React.useMemo(() => collectSlots(children), [children]);
|
|
227
|
+
// Flat header props render a SmartPageHeader for the consumer and slot it
|
|
228
|
+
// ahead of any composed header children (the escape hatch).
|
|
229
|
+
const hasFlatHeader = (breadcrumb?.length ?? 0) > 0 ||
|
|
230
|
+
title != null ||
|
|
231
|
+
description != null ||
|
|
232
|
+
actions != null;
|
|
233
|
+
const resolvedBuckets = React.useMemo(() => {
|
|
234
|
+
if (!hasFlatHeader)
|
|
235
|
+
return buckets;
|
|
236
|
+
const flatHeader = (_jsx(SmartPageHeader, { breadcrumb: breadcrumb, title: title, description: description, actions: actions, ...headerProps }, "__smart-page-flat-header"));
|
|
237
|
+
return { ...buckets, header: [flatHeader, ...buckets.header] };
|
|
238
|
+
}, [
|
|
239
|
+
buckets,
|
|
240
|
+
hasFlatHeader,
|
|
241
|
+
breadcrumb,
|
|
242
|
+
title,
|
|
243
|
+
description,
|
|
244
|
+
actions,
|
|
245
|
+
headerProps,
|
|
246
|
+
]);
|
|
247
|
+
const layout = layoutProp ?? detectLayout(resolvedBuckets);
|
|
248
|
+
const defaults = LAYOUT_DEFAULTS[layout];
|
|
249
|
+
const scroll = scrollProp ?? defaults.scroll;
|
|
250
|
+
const stickyHeader = stickyHeaderProp ?? defaults.stickyHeader;
|
|
251
|
+
const stickyToolbar = stickyToolbarProp ?? defaults.stickyToolbar;
|
|
252
|
+
const stickySearch = stickySearchProp ?? defaults.stickySearch;
|
|
253
|
+
const stickyFilters = stickyFiltersProp ?? defaults.stickyFilters;
|
|
254
|
+
const stickyStatusBar = stickyStatusBarProp ?? defaults.stickyStatusBar;
|
|
255
|
+
const stickyFooter = stickyFooterProp ?? defaults.stickyFooter;
|
|
256
|
+
const padding = paddingProp === true
|
|
257
|
+
? "md"
|
|
258
|
+
: paddingProp === false
|
|
259
|
+
? "none"
|
|
260
|
+
: (paddingProp ?? defaults.padding);
|
|
261
|
+
const isContained = scroll === "content" || scroll === "grid";
|
|
262
|
+
const fullHeight = fullHeightProp ?? isContained;
|
|
263
|
+
const ctx = {
|
|
264
|
+
layout,
|
|
265
|
+
scroll,
|
|
266
|
+
padding,
|
|
267
|
+
stickyHeader,
|
|
268
|
+
stickyToolbar,
|
|
269
|
+
stickySearch,
|
|
270
|
+
stickyFilters,
|
|
271
|
+
stickyStatusBar,
|
|
272
|
+
stickyFooter,
|
|
273
|
+
fullWidth,
|
|
274
|
+
bordered,
|
|
275
|
+
};
|
|
276
|
+
const pageClasses = cn("flex flex-col", isContained && "overflow-hidden", fullHeight && "min-h-0 flex-1", !isContained && "min-h-full", bordered && "rounded-lg border", className);
|
|
277
|
+
let content;
|
|
278
|
+
if (loading) {
|
|
279
|
+
content = _jsx(PageLoadingState, { label: loadingLabel });
|
|
280
|
+
}
|
|
281
|
+
else if (error) {
|
|
282
|
+
content = _jsx(PageErrorState, { children: error });
|
|
283
|
+
}
|
|
284
|
+
else if (empty) {
|
|
285
|
+
content = _jsx(PageEmptyState, { children: empty });
|
|
286
|
+
}
|
|
287
|
+
else if (layout === "split") {
|
|
288
|
+
content = (_jsx(SplitLayout, { buckets: resolvedBuckets, scroll: scroll, ctx: ctx }));
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
content = (_jsx(StandardLayout, { buckets: resolvedBuckets, scroll: scroll, ctx: ctx }));
|
|
292
|
+
}
|
|
293
|
+
return (_jsx(PageContext.Provider, { value: ctx, children: _jsx("div", { className: pageClasses, children: content }) }));
|
|
294
|
+
};
|
|
295
|
+
//# sourceMappingURL=smart-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page.js","sourceRoot":"","sources":["../../../src/smart-components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