@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,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
4
|
+
/**
|
|
5
|
+
* The default vertical layout, used for the `document`, `dashboard`, and `grid`
|
|
6
|
+
* presets: optional sticky header/toolbar/search/filter band on top, a single
|
|
7
|
+
* flexible main region (grid area → content → loose body, in priority order),
|
|
8
|
+
* and a sticky-or-flowing status-bar/footer band on the bottom.
|
|
9
|
+
*
|
|
10
|
+
* Sticky positioning only applies in `page` scroll mode — in contained modes
|
|
11
|
+
* (`content` / `grid`) the bands sit outside the scroll container and are
|
|
12
|
+
* naturally pinned by flexbox, so pinning them again would double up.
|
|
13
|
+
*/
|
|
14
|
+
export const StandardLayout = ({ buckets: b, scroll, ctx, }) => {
|
|
15
|
+
const isPageScroll = scroll === "page";
|
|
16
|
+
// Collect which items are sticky (page-scroll mode only — in contained modes
|
|
17
|
+
// items above the scroll container are naturally "pinned" by flexbox).
|
|
18
|
+
const stickyTopItems = [];
|
|
19
|
+
const flowTopItems = [];
|
|
20
|
+
const pushTop = (items, sticky) => {
|
|
21
|
+
if (!items.length)
|
|
22
|
+
return;
|
|
23
|
+
if (isPageScroll && sticky) {
|
|
24
|
+
stickyTopItems.push(...items);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
flowTopItems.push(...items);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
pushTop(b.header, ctx.stickyHeader);
|
|
31
|
+
// hero is never sticky — always scrolls away
|
|
32
|
+
if (b.hero.length)
|
|
33
|
+
flowTopItems.push(...b.hero);
|
|
34
|
+
pushTop(b.toolbar, ctx.stickyToolbar);
|
|
35
|
+
pushTop(b.search, ctx.stickySearch);
|
|
36
|
+
pushTop(b.filters, ctx.stickyFilters);
|
|
37
|
+
if (b.tabs.length)
|
|
38
|
+
flowTopItems.push(...b.tabs);
|
|
39
|
+
const stickyBottomItems = [];
|
|
40
|
+
const flowBottomItems = [];
|
|
41
|
+
if (b.statusBar.length) {
|
|
42
|
+
if (isPageScroll && ctx.stickyStatusBar)
|
|
43
|
+
stickyBottomItems.push(...b.statusBar);
|
|
44
|
+
else
|
|
45
|
+
flowBottomItems.push(...b.statusBar);
|
|
46
|
+
}
|
|
47
|
+
if (b.footer.length) {
|
|
48
|
+
if (isPageScroll && ctx.stickyFooter)
|
|
49
|
+
stickyBottomItems.push(...b.footer);
|
|
50
|
+
else
|
|
51
|
+
flowBottomItems.push(...b.footer);
|
|
52
|
+
}
|
|
53
|
+
const mainContent = b.gridArea.length > 0
|
|
54
|
+
? b.gridArea
|
|
55
|
+
: b.content.length > 0
|
|
56
|
+
? b.content
|
|
57
|
+
: b.body;
|
|
58
|
+
const mainClasses = cn("flex-1", scroll === "content" && "min-h-0 overflow-y-auto", scroll === "grid" && "flex min-h-0 flex-col");
|
|
59
|
+
return (_jsxs(_Fragment, { children: [stickyTopItems.length > 0 && (_jsx("div", { className: "sticky top-0 z-10 bg-background", children: stickyTopItems })), flowTopItems, _jsx("div", { className: mainClasses, children: mainContent }), flowBottomItems, stickyBottomItems.length > 0 && (_jsx("div", { className: "sticky bottom-0 z-10 bg-background", children: stickyBottomItems }))] }));
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=standard-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard-layout.js","sourceRoot":"","sources":["../../../../src/smart-components/page/layouts/standard-layout.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AAIjD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,OAAO,EAAE,CAAC,EACV,MAAM,EACN,GAAG,GAKJ,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,MAAM,KAAK,MAAM,CAAA;IAEtC,6EAA6E;IAC7E,uEAAuE;IACvE,MAAM,cAAc,GAAsB,EAAE,CAAA;IAC5C,MAAM,YAAY,GAAsB,EAAE,CAAA;IAE1C,MAAM,OAAO,GAAG,CAAC,KAAwB,EAAE,MAAe,EAAE,EAAE;QAC5D,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAM;QACzB,IAAI,YAAY,IAAI,MAAM,EAAE,CAAC;YAC3B,cAAc,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAA;QAC/B,CAAC;aAAM,CAAC;YACN,YAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAA;QAC7B,CAAC;IACH,CAAC,CAAA;IAED,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC,CAAA;IACnC,6CAA6C;IAC7C,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM;QAAE,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAA;IAC/C,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,CAAA;IACrC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC,CAAA;IACnC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,CAAA;IACrC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM;QAAE,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAA;IAE/C,MAAM,iBAAiB,GAAsB,EAAE,CAAA;IAC/C,MAAM,eAAe,GAAsB,EAAE,CAAA;IAE7C,IAAI,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QACvB,IAAI,YAAY,IAAI,GAAG,CAAC,eAAe;YACrC,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAA;;YACnC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAA;IAC3C,CAAC;IACD,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACpB,IAAI,YAAY,IAAI,GAAG,CAAC,YAAY;YAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAA;;YACpE,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;IAED,MAAM,WAAW,GACf,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;QACnB,CAAC,CAAC,CAAC,CAAC,QAAQ;QACZ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;YACpB,CAAC,CAAC,CAAC,CAAC,OAAO;YACX,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAEd,MAAM,WAAW,GAAG,EAAE,CACpB,QAAQ,EACR,MAAM,KAAK,SAAS,IAAI,yBAAyB,EACjD,MAAM,KAAK,MAAM,IAAI,uBAAuB,CAC7C,CAAA;IAED,OAAO,CACL,8BACG,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,CAC5B,cAAK,SAAS,EAAC,iCAAiC,YAAE,cAAc,GAAO,CACxE,EACA,YAAY,EACb,cAAK,SAAS,EAAE,WAAW,YAAG,WAAW,GAAO,EAC/C,eAAe,EACf,iBAAiB,CAAC,MAAM,GAAG,CAAC,IAAI,CAC/B,cAAK,SAAS,EAAC,oCAAoC,YAChD,iBAAiB,GACd,CACP,IACA,CACJ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The high-level layout mode of the page.
|
|
3
|
+
*
|
|
4
|
+
* | Mode | Description |
|
|
5
|
+
* |-------------|--------------------------------------------------------|
|
|
6
|
+
* | document | Natural page flow — blog posts, settings, forms |
|
|
7
|
+
* | grid | Data grid fills remaining height — CRUD, list views |
|
|
8
|
+
* | dashboard | Cards and widgets — analytics, overview pages |
|
|
9
|
+
* | split | Left content + right sidebar — detail views, email |
|
|
10
|
+
* | fullscreen | Fills entire area — canvas, maps, editors |
|
|
11
|
+
* | wizard | Stepped flow with pinned footer — onboarding, checkout |
|
|
12
|
+
* | detail | Entity detail with sticky header — profile, item view |
|
|
13
|
+
*/
|
|
14
|
+
export type PageLayout = "document" | "grid" | "dashboard" | "split" | "fullscreen" | "wizard" | "detail";
|
|
15
|
+
/**
|
|
16
|
+
* Which container owns the scroll behaviour.
|
|
17
|
+
*
|
|
18
|
+
* | Mode | Scroll owner |
|
|
19
|
+
* |---------|-----------------------------------------------------|
|
|
20
|
+
* | page | Browser / outer shell scrolls (natural flow) |
|
|
21
|
+
* | content | SmartPageContent scrolls; header/footer stay fixed |
|
|
22
|
+
* | grid | The data grid manages its own scroll |
|
|
23
|
+
* | none | No scroll — useful for fullscreen editors / maps |
|
|
24
|
+
*/
|
|
25
|
+
export type ScrollMode = "page" | "content" | "grid" | "none";
|
|
26
|
+
/** Named padding scale tokens used throughout the layout system. */
|
|
27
|
+
export type PaddingSize = "none" | "sm" | "md" | "lg";
|
|
28
|
+
export interface PageContextValue {
|
|
29
|
+
/** Resolved layout preset (after auto-detection). */
|
|
30
|
+
layout: PageLayout;
|
|
31
|
+
/** Resolved scroll mode. */
|
|
32
|
+
scroll: ScrollMode;
|
|
33
|
+
/** Padding scale applied inside content areas. */
|
|
34
|
+
padding: PaddingSize;
|
|
35
|
+
stickyHeader: boolean;
|
|
36
|
+
stickyToolbar: boolean;
|
|
37
|
+
stickySearch: boolean;
|
|
38
|
+
stickyFilters: boolean;
|
|
39
|
+
stickyStatusBar: boolean;
|
|
40
|
+
stickyFooter: boolean;
|
|
41
|
+
/** When true, content areas suppress max-width constraints. */
|
|
42
|
+
fullWidth: boolean;
|
|
43
|
+
bordered: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const PageContext: import("react").Context<PageContextValue>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the current page layout context.
|
|
48
|
+
* Available to any component rendered inside a {@link SmartPage}.
|
|
49
|
+
*/
|
|
50
|
+
export declare const usePageContext: () => PageContextValue;
|
|
51
|
+
//# sourceMappingURL=page-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-context.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/page-context.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,MAAM,GACN,WAAW,GACX,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,QAAQ,CAAA;AAEZ;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAE7D,oEAAoE;AACpE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAErD,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,MAAM,EAAE,UAAU,CAAA;IAClB,4BAA4B;IAC5B,MAAM,EAAE,UAAU,CAAA;IAClB,kDAAkD;IAClD,OAAO,EAAE,WAAW,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,YAAY,EAAE,OAAO,CAAA;IACrB,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAgBD,eAAO,MAAM,WAAW,2CAAkD,CAAA;AAE1E;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,gBAA2C,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
const defaultContext = {
|
|
3
|
+
layout: "document",
|
|
4
|
+
scroll: "page",
|
|
5
|
+
padding: "md",
|
|
6
|
+
stickyHeader: false,
|
|
7
|
+
stickyToolbar: false,
|
|
8
|
+
stickySearch: false,
|
|
9
|
+
stickyFilters: false,
|
|
10
|
+
stickyStatusBar: false,
|
|
11
|
+
stickyFooter: false,
|
|
12
|
+
fullWidth: false,
|
|
13
|
+
bordered: false,
|
|
14
|
+
};
|
|
15
|
+
export const PageContext = createContext(defaultContext);
|
|
16
|
+
/**
|
|
17
|
+
* Returns the current page layout context.
|
|
18
|
+
* Available to any component rendered inside a {@link SmartPage}.
|
|
19
|
+
*/
|
|
20
|
+
export const usePageContext = () => useContext(PageContext);
|
|
21
|
+
//# sourceMappingURL=page-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-context.js","sourceRoot":"","sources":["../../../src/smart-components/page/page-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyDjD,MAAM,cAAc,GAAqB;IACvC,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,IAAI;IACb,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,KAAK;IACpB,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,KAAK;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAmB,cAAc,CAAC,CAAA;AAE1E;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAqB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slot tagging primitive, kept in a dependency-free leaf module.
|
|
3
|
+
*
|
|
4
|
+
* Every SmartPage slot component (header, toolbar, footer, …) stamps this
|
|
5
|
+
* symbol onto itself so {@link SmartPage} can bucket children by slot without
|
|
6
|
+
* relying on class identity (which breaks with HOCs or lazy imports).
|
|
7
|
+
*
|
|
8
|
+
* It lives here rather than in `smart-page.tsx` so that `smart-page.tsx` can
|
|
9
|
+
* import a slot component (to auto-render a header from flat props) without a
|
|
10
|
+
* circular import: the slot component depends only on this leaf, never back on
|
|
11
|
+
* the page orchestrator.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Well-known symbol placed as a static property on every slot component.
|
|
15
|
+
* SmartPage reads this to bucket children.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SMART_PAGE_SLOT: unique symbol;
|
|
18
|
+
export type PageSlot = "header" | "hero" | "toolbar" | "search" | "filters" | "tabs" | "content" | "sidebar" | "grid-area" | "status-bar" | "footer";
|
|
19
|
+
//# sourceMappingURL=slot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/slot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe,eAA2C,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,MAAM,GACN,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,SAAS,GACT,SAAS,GACT,WAAW,GACX,YAAY,GACZ,QAAQ,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slot tagging primitive, kept in a dependency-free leaf module.
|
|
3
|
+
*
|
|
4
|
+
* Every SmartPage slot component (header, toolbar, footer, …) stamps this
|
|
5
|
+
* symbol onto itself so {@link SmartPage} can bucket children by slot without
|
|
6
|
+
* relying on class identity (which breaks with HOCs or lazy imports).
|
|
7
|
+
*
|
|
8
|
+
* It lives here rather than in `smart-page.tsx` so that `smart-page.tsx` can
|
|
9
|
+
* import a slot component (to auto-render a header from flat props) without a
|
|
10
|
+
* circular import: the slot component depends only on this leaf, never back on
|
|
11
|
+
* the page orchestrator.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Well-known symbol placed as a static property on every slot component.
|
|
15
|
+
* SmartPage reads this to bucket children.
|
|
16
|
+
*/
|
|
17
|
+
export const SMART_PAGE_SLOT = Symbol.for("@workspace/smart-page-slot");
|
|
18
|
+
//# sourceMappingURL=slot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot.js","sourceRoot":"","sources":["../../../src/smart-components/page/slot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartGridAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Optional toolbar rendered inside the grid area, above the grid itself.
|
|
5
|
+
* Use this for grid-specific controls (pagination, column visibility,
|
|
6
|
+
* density selector, CSV export) that shouldn't be in the page toolbar.
|
|
7
|
+
*/
|
|
8
|
+
toolbar?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Render a top border between the search area and the grid.
|
|
11
|
+
* Set to `false` when the parent already provides the border (e.g. the
|
|
12
|
+
* search or filter bar has `border` set).
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
border?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Clip the grid with rounded corners.
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
rounded?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Fills the remaining viewport height and hosts a virtualized data grid.
|
|
24
|
+
*
|
|
25
|
+
* This is the central component of any CRUD or list page. SmartGridArea solves
|
|
26
|
+
* the classic "100% height grid" problem without `calc()` or `100vh`:
|
|
27
|
+
*
|
|
28
|
+
* 1. The parent SmartPage is `flex flex-col flex-1 min-h-0 overflow-hidden`.
|
|
29
|
+
* 2. All sibling regions (header, toolbar, footer) are `shrink-0`.
|
|
30
|
+
* 3. SmartGridArea is `flex-1 min-h-0` — it takes every remaining pixel.
|
|
31
|
+
* 4. The grid inside is rendered inside a `flex-1 min-h-0 flex flex-col`
|
|
32
|
+
* wrapper, so any height-filling grid (AG Grid, TanStack Virtual) works.
|
|
33
|
+
*
|
|
34
|
+
* **Critical**: your grid component must be configured with `height: 100%` or
|
|
35
|
+
* equivalent. AG Grid needs `domLayout: "normal"` (the default) and the theme
|
|
36
|
+
* height set to 100%.
|
|
37
|
+
*
|
|
38
|
+
* ## What grid libraries work?
|
|
39
|
+
* - AG Grid Community / Enterprise
|
|
40
|
+
* - TanStack Table + react-virtual
|
|
41
|
+
* - Any virtualized list that expands to fill its container
|
|
42
|
+
*
|
|
43
|
+
* ## Presence of SmartGridArea triggers auto-detection
|
|
44
|
+
* When SmartGridArea is a direct child of SmartPage, the page auto-selects
|
|
45
|
+
* the `"grid"` layout: header/toolbar/search/filters/footer all become sticky,
|
|
46
|
+
* and the scroll mode switches to `"grid"` so no outer scrollbar appears.
|
|
47
|
+
*
|
|
48
|
+
* @example Basic CRUD grid
|
|
49
|
+
* ```tsx
|
|
50
|
+
* <SmartGridArea>
|
|
51
|
+
* <AgGridReact
|
|
52
|
+
* rowData={rows}
|
|
53
|
+
* columnDefs={cols}
|
|
54
|
+
* className="ag-theme-quartz h-full"
|
|
55
|
+
* />
|
|
56
|
+
* </SmartGridArea>
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @example With an internal toolbar
|
|
60
|
+
* ```tsx
|
|
61
|
+
* <SmartGridArea
|
|
62
|
+
* toolbar={
|
|
63
|
+
* <>
|
|
64
|
+
* <span className="text-xs text-muted-foreground">{rows.length} rows</span>
|
|
65
|
+
* <span className="ms-auto" />
|
|
66
|
+
* <Button size="sm" variant="outline"><Download /> Export</Button>
|
|
67
|
+
* </>
|
|
68
|
+
* }
|
|
69
|
+
* >
|
|
70
|
+
* <MyGrid />
|
|
71
|
+
* </SmartGridArea>
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare const SmartGridArea: React.ForwardRefExoticComponent<SmartGridAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
//# sourceMappingURL=smart-grid-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-grid-area.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-grid-area.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,eAAO,MAAM,aAAa,2FA8BzB,CACA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { SMART_PAGE_SLOT } from "./smart-page";
|
|
6
|
+
/**
|
|
7
|
+
* Fills the remaining viewport height and hosts a virtualized data grid.
|
|
8
|
+
*
|
|
9
|
+
* This is the central component of any CRUD or list page. SmartGridArea solves
|
|
10
|
+
* the classic "100% height grid" problem without `calc()` or `100vh`:
|
|
11
|
+
*
|
|
12
|
+
* 1. The parent SmartPage is `flex flex-col flex-1 min-h-0 overflow-hidden`.
|
|
13
|
+
* 2. All sibling regions (header, toolbar, footer) are `shrink-0`.
|
|
14
|
+
* 3. SmartGridArea is `flex-1 min-h-0` — it takes every remaining pixel.
|
|
15
|
+
* 4. The grid inside is rendered inside a `flex-1 min-h-0 flex flex-col`
|
|
16
|
+
* wrapper, so any height-filling grid (AG Grid, TanStack Virtual) works.
|
|
17
|
+
*
|
|
18
|
+
* **Critical**: your grid component must be configured with `height: 100%` or
|
|
19
|
+
* equivalent. AG Grid needs `domLayout: "normal"` (the default) and the theme
|
|
20
|
+
* height set to 100%.
|
|
21
|
+
*
|
|
22
|
+
* ## What grid libraries work?
|
|
23
|
+
* - AG Grid Community / Enterprise
|
|
24
|
+
* - TanStack Table + react-virtual
|
|
25
|
+
* - Any virtualized list that expands to fill its container
|
|
26
|
+
*
|
|
27
|
+
* ## Presence of SmartGridArea triggers auto-detection
|
|
28
|
+
* When SmartGridArea is a direct child of SmartPage, the page auto-selects
|
|
29
|
+
* the `"grid"` layout: header/toolbar/search/filters/footer all become sticky,
|
|
30
|
+
* and the scroll mode switches to `"grid"` so no outer scrollbar appears.
|
|
31
|
+
*
|
|
32
|
+
* @example Basic CRUD grid
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <SmartGridArea>
|
|
35
|
+
* <AgGridReact
|
|
36
|
+
* rowData={rows}
|
|
37
|
+
* columnDefs={cols}
|
|
38
|
+
* className="ag-theme-quartz h-full"
|
|
39
|
+
* />
|
|
40
|
+
* </SmartGridArea>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @example With an internal toolbar
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <SmartGridArea
|
|
46
|
+
* toolbar={
|
|
47
|
+
* <>
|
|
48
|
+
* <span className="text-xs text-muted-foreground">{rows.length} rows</span>
|
|
49
|
+
* <span className="ms-auto" />
|
|
50
|
+
* <Button size="sm" variant="outline"><Download /> Export</Button>
|
|
51
|
+
* </>
|
|
52
|
+
* }
|
|
53
|
+
* >
|
|
54
|
+
* <MyGrid />
|
|
55
|
+
* </SmartGridArea>
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export const SmartGridArea = React.forwardRef(({ toolbar, border = false, rounded = false, className, children, ...props }, ref) => (_jsxs("div", { ref: ref, "data-slot": "grid-area", className: cn("flex min-h-0 flex-1 flex-col", border && "border-t", rounded && "overflow-hidden rounded-lg", className), ...props, children: [toolbar && (_jsx("div", { className: "flex shrink-0 items-center gap-2 border-b bg-muted/30 px-4 py-2", children: toolbar })), _jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: children })] })));
|
|
59
|
+
SmartGridArea[SMART_PAGE_SLOT] =
|
|
60
|
+
"grid-area";
|
|
61
|
+
//# sourceMappingURL=smart-grid-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-grid-area.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-grid-area.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAuB9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAI3C,CACE,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,EAAE,OAAO,GAAG,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAC3E,GAAG,EACH,EAAE,CAAC,CACH,eACE,GAAG,EAAE,GAAG,eACE,WAAW,EACrB,SAAS,EAAE,EAAE,CACX,8BAA8B,EAC9B,MAAM,IAAI,UAAU,EACpB,OAAO,IAAI,4BAA4B,EACvC,SAAS,CACV,KACG,KAAK,aAER,OAAO,IAAI,CACV,cAAK,SAAS,EAAC,iEAAiE,YAC7E,OAAO,GACJ,CACP,EAID,cAAK,SAAS,EAAC,8BAA8B,YAAE,QAAQ,GAAO,IAC1D,CACP,CACF,CACA;AAAC,aAAoD,CAAC,eAAe,CAAC;IACrE,WAAW,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type SmartPageProps } from "./smart-page";
|
|
2
|
+
export type { SmartPageProps as SmartPageContainerProps };
|
|
3
|
+
/**
|
|
4
|
+
* Compound wrapper around {@link SmartPage} that bundles all page slot
|
|
5
|
+
* components as static properties so you only need one import.
|
|
6
|
+
*
|
|
7
|
+
* Every sub-component is identical to its standalone counterpart —
|
|
8
|
+
* `SmartPageContainer.Header` is `SmartPageHeader`, etc.
|
|
9
|
+
*
|
|
10
|
+
* @example Grid page (single import)
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { SmartPageContainer as Page } from "@iamsaroj/smart-ui/..."
|
|
13
|
+
*
|
|
14
|
+
* <Page>
|
|
15
|
+
* <Page.Header>
|
|
16
|
+
* <Page.Title>Users</Page.Title>
|
|
17
|
+
* <Page.Actions><Button>New</Button></Page.Actions>
|
|
18
|
+
* </Page.Header>
|
|
19
|
+
* <Page.Toolbar>…</Page.Toolbar>
|
|
20
|
+
* <Page.GridArea><UserGrid /></Page.GridArea>
|
|
21
|
+
* <Page.Footer><Page.StatusBar>42 rows</Page.StatusBar></Page.Footer>
|
|
22
|
+
* </Page>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @example Document page
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <Page layout="document">
|
|
28
|
+
* <Page.Header>
|
|
29
|
+
* <Page.Breadcrumb items={[{ label: "Settings", href: "/settings" }, { label: "Profile" }]} />
|
|
30
|
+
* <Page.Title>Profile</Page.Title>
|
|
31
|
+
* </Page.Header>
|
|
32
|
+
* <Page.Content maxWidth="2xl" centered>
|
|
33
|
+
* <Page.Section title="Personal info" divider>
|
|
34
|
+
* <ProfileForm />
|
|
35
|
+
* </Page.Section>
|
|
36
|
+
* </Page.Content>
|
|
37
|
+
* <Page.Footer>
|
|
38
|
+
* <Button type="submit">Save</Button>
|
|
39
|
+
* </Page.Footer>
|
|
40
|
+
* </Page>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare const SmartPageContainer: ((props: SmartPageProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
44
|
+
Header: import("react").ForwardRefExoticComponent<import("./smart-page-header").SmartPageHeaderProps & import("react").RefAttributes<HTMLElement>>;
|
|
45
|
+
Title: import("react").ForwardRefExoticComponent<import("./smart-page-header").SmartPageTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
46
|
+
Description: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
47
|
+
Actions: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
48
|
+
Breadcrumb: ({ items, className, }: import("./smart-page-header").SmartPageBreadcrumbProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
49
|
+
Hero: import("react").ForwardRefExoticComponent<import("./smart-page-hero").SmartPageHeroProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
50
|
+
Toolbar: import("react").ForwardRefExoticComponent<import("./smart-toolbar").SmartToolbarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
|
+
Search: import("react").ForwardRefExoticComponent<import("./smart-page-search").SmartPageSearchProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
52
|
+
Filters: import("react").ForwardRefExoticComponent<import("./smart-page-filters").SmartPageFiltersProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
53
|
+
Tabs: ({ defaultValue, value, onValueChange, border, variant, className, children, }: import("./smart-page-tabs").SmartPageTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
Tab: ({ value, className, children, }: import("./smart-page-tabs").SmartPageTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
TabPanel: ({ value, className, children, }: import("./smart-page-tabs").SmartPageTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
Content: import("react").ForwardRefExoticComponent<import("./smart-page-content").SmartPageContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
57
|
+
Section: import("react").ForwardRefExoticComponent<import("./smart-page-section").SmartPageSectionProps & import("react").RefAttributes<HTMLElement>>;
|
|
58
|
+
Sidebar: import("react").ForwardRefExoticComponent<import("./smart-sidebar").SmartSidebarProps & import("react").RefAttributes<HTMLElement>>;
|
|
59
|
+
GridArea: import("react").ForwardRefExoticComponent<import("./smart-grid-area").SmartGridAreaProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
60
|
+
StatusBar: import("react").ForwardRefExoticComponent<import("./smart-page-status-bar").SmartPageStatusBarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
61
|
+
Footer: import("react").ForwardRefExoticComponent<import("./smart-page-footer").SmartPageFooterProps & import("react").RefAttributes<HTMLElement>>;
|
|
62
|
+
Empty: ({ icon, title, description, action, className, }: import("./smart-page-empty").SmartPageEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
Loading: ({ label, className, }: import("./smart-page-loading").SmartPageLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
Error: ({ title, description, onRetry, retryLabel, variant, className, }: import("./smart-page-error").SmartPageErrorProps) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=smart-page-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-container.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-container.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAA;AA2B7D,YAAY,EAAE,cAAc,IAAI,uBAAuB,EAAE,CAAA;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,kBAAkB,WACrB,cAAc;;;;;;;;;;;;;;;;;;;;;;CA6CvB,CAAA"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { SmartPage } from "./smart-page";
|
|
4
|
+
import { SmartPageHeader, SmartPageTitle, SmartPageDescription, SmartPageActions, SmartPageBreadcrumb, } from "./smart-page-header";
|
|
5
|
+
import { SmartPageHero } from "./smart-page-hero";
|
|
6
|
+
import { SmartToolbar } from "./smart-toolbar";
|
|
7
|
+
import { SmartPageSearch } from "./smart-page-search";
|
|
8
|
+
import { SmartPageFilters } from "./smart-page-filters";
|
|
9
|
+
import { SmartPageTabs, SmartPageTab, SmartPageTabPanel, } from "./smart-page-tabs";
|
|
10
|
+
import { SmartPageContent } from "./smart-page-content";
|
|
11
|
+
import { SmartPageSection } from "./smart-page-section";
|
|
12
|
+
import { SmartSidebar } from "./smart-sidebar";
|
|
13
|
+
import { SmartGridArea } from "./smart-grid-area";
|
|
14
|
+
import { SmartPageStatusBar } from "./smart-page-status-bar";
|
|
15
|
+
import { SmartPageFooter } from "./smart-page-footer";
|
|
16
|
+
import { SmartPageEmpty } from "./smart-page-empty";
|
|
17
|
+
import { SmartPageLoading } from "./smart-page-loading";
|
|
18
|
+
import { SmartPageError } from "./smart-page-error";
|
|
19
|
+
/**
|
|
20
|
+
* Compound wrapper around {@link SmartPage} that bundles all page slot
|
|
21
|
+
* components as static properties so you only need one import.
|
|
22
|
+
*
|
|
23
|
+
* Every sub-component is identical to its standalone counterpart —
|
|
24
|
+
* `SmartPageContainer.Header` is `SmartPageHeader`, etc.
|
|
25
|
+
*
|
|
26
|
+
* @example Grid page (single import)
|
|
27
|
+
* ```tsx
|
|
28
|
+
* import { SmartPageContainer as Page } from "@iamsaroj/smart-ui/..."
|
|
29
|
+
*
|
|
30
|
+
* <Page>
|
|
31
|
+
* <Page.Header>
|
|
32
|
+
* <Page.Title>Users</Page.Title>
|
|
33
|
+
* <Page.Actions><Button>New</Button></Page.Actions>
|
|
34
|
+
* </Page.Header>
|
|
35
|
+
* <Page.Toolbar>…</Page.Toolbar>
|
|
36
|
+
* <Page.GridArea><UserGrid /></Page.GridArea>
|
|
37
|
+
* <Page.Footer><Page.StatusBar>42 rows</Page.StatusBar></Page.Footer>
|
|
38
|
+
* </Page>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example Document page
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <Page layout="document">
|
|
44
|
+
* <Page.Header>
|
|
45
|
+
* <Page.Breadcrumb items={[{ label: "Settings", href: "/settings" }, { label: "Profile" }]} />
|
|
46
|
+
* <Page.Title>Profile</Page.Title>
|
|
47
|
+
* </Page.Header>
|
|
48
|
+
* <Page.Content maxWidth="2xl" centered>
|
|
49
|
+
* <Page.Section title="Personal info" divider>
|
|
50
|
+
* <ProfileForm />
|
|
51
|
+
* </Page.Section>
|
|
52
|
+
* </Page.Content>
|
|
53
|
+
* <Page.Footer>
|
|
54
|
+
* <Button type="submit">Save</Button>
|
|
55
|
+
* </Page.Footer>
|
|
56
|
+
* </Page>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export const SmartPageContainer = Object.assign((props) => _jsx(SmartPage, { ...props }), {
|
|
60
|
+
// ── Header zone ──────────────────────────────────────────────────────────
|
|
61
|
+
Header: SmartPageHeader,
|
|
62
|
+
Title: SmartPageTitle,
|
|
63
|
+
Description: SmartPageDescription,
|
|
64
|
+
Actions: SmartPageActions,
|
|
65
|
+
Breadcrumb: SmartPageBreadcrumb,
|
|
66
|
+
// ── Hero ─────────────────────────────────────────────────────────────────
|
|
67
|
+
Hero: SmartPageHero,
|
|
68
|
+
// ── Toolbar ──────────────────────────────────────────────────────────────
|
|
69
|
+
Toolbar: SmartToolbar,
|
|
70
|
+
// ── Search + Filters ─────────────────────────────────────────────────────
|
|
71
|
+
Search: SmartPageSearch,
|
|
72
|
+
Filters: SmartPageFilters,
|
|
73
|
+
// ── Tabs ─────────────────────────────────────────────────────────────────
|
|
74
|
+
Tabs: SmartPageTabs,
|
|
75
|
+
Tab: SmartPageTab,
|
|
76
|
+
TabPanel: SmartPageTabPanel,
|
|
77
|
+
// ── Content ──────────────────────────────────────────────────────────────
|
|
78
|
+
Content: SmartPageContent,
|
|
79
|
+
Section: SmartPageSection,
|
|
80
|
+
// ── Sidebar ──────────────────────────────────────────────────────────────
|
|
81
|
+
Sidebar: SmartSidebar,
|
|
82
|
+
// ── Grid area ────────────────────────────────────────────────────────────
|
|
83
|
+
GridArea: SmartGridArea,
|
|
84
|
+
// ── Status bar ───────────────────────────────────────────────────────────
|
|
85
|
+
StatusBar: SmartPageStatusBar,
|
|
86
|
+
// ── Footer ───────────────────────────────────────────────────────────────
|
|
87
|
+
Footer: SmartPageFooter,
|
|
88
|
+
// ── States ───────────────────────────────────────────────────────────────
|
|
89
|
+
Empty: SmartPageEmpty,
|
|
90
|
+
Loading: SmartPageLoading,
|
|
91
|
+
Error: SmartPageError,
|
|
92
|
+
});
|
|
93
|
+
//# sourceMappingURL=smart-page-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-container.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-container.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,SAAS,EAAuB,MAAM,cAAc,CAAA;AAC7D,OAAO,EACL,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EACL,aAAa,EACb,YAAY,EACZ,iBAAiB,GAClB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAInD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAC7C,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI,EACnD;IACE,4EAA4E;IAC5E,MAAM,EAAE,eAAe;IACvB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,oBAAoB;IACjC,OAAO,EAAE,gBAAgB;IACzB,UAAU,EAAE,mBAAmB;IAE/B,4EAA4E;IAC5E,IAAI,EAAE,aAAa;IAEnB,4EAA4E;IAC5E,OAAO,EAAE,YAAY;IAErB,4EAA4E;IAC5E,MAAM,EAAE,eAAe;IACvB,OAAO,EAAE,gBAAgB;IAEzB,4EAA4E;IAC5E,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,YAAY;IACjB,QAAQ,EAAE,iBAAiB;IAE3B,4EAA4E;IAC5E,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,gBAAgB;IAEzB,4EAA4E;IAC5E,OAAO,EAAE,YAAY;IAErB,4EAA4E;IAC5E,QAAQ,EAAE,aAAa;IAEvB,4EAA4E;IAC5E,SAAS,EAAE,kBAAkB;IAE7B,4EAA4E;IAC5E,MAAM,EAAE,eAAe;IAEvB,4EAA4E;IAC5E,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE,gBAAgB;IACzB,KAAK,EAAE,cAAc;CACtB,CACF,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type PaddingSize } from "./page-context";
|
|
3
|
+
declare const MAX_WIDTH_CLASSES: {
|
|
4
|
+
readonly sm: "max-w-sm";
|
|
5
|
+
readonly md: "max-w-2xl";
|
|
6
|
+
readonly lg: "max-w-4xl";
|
|
7
|
+
readonly xl: "max-w-6xl";
|
|
8
|
+
readonly "2xl": "max-w-7xl";
|
|
9
|
+
readonly full: "w-full max-w-none";
|
|
10
|
+
};
|
|
11
|
+
export interface SmartPageContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
/**
|
|
13
|
+
* Local padding override. Inherits from SmartPage `padding` prop by default.
|
|
14
|
+
*/
|
|
15
|
+
padding?: boolean | PaddingSize;
|
|
16
|
+
/**
|
|
17
|
+
* Constrain the inner content to a readable max-width and centre it.
|
|
18
|
+
* Ignored when SmartPage has `fullWidth` enabled.
|
|
19
|
+
*/
|
|
20
|
+
maxWidth?: keyof typeof MAX_WIDTH_CLASSES;
|
|
21
|
+
/**
|
|
22
|
+
* Horizontally centre the inner content block (requires `maxWidth`).
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
centered?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Main content area of the page.
|
|
29
|
+
*
|
|
30
|
+
* SmartPageContent adapts its behaviour based on the scroll mode set by
|
|
31
|
+
* the parent {@link SmartPage}:
|
|
32
|
+
*
|
|
33
|
+
* | Scroll mode | Behaviour |
|
|
34
|
+
* |-------------|--------------------------------------------------------|
|
|
35
|
+
* | `"page"` | Grows to fill remaining space; page scrolls naturally |
|
|
36
|
+
* | `"content"` | Becomes the scroll container (`flex-1 overflow-y-auto`) |
|
|
37
|
+
* | `"grid"` | Grows; no scroll (grid manages its own) |
|
|
38
|
+
* | `"none"` | Grows; no scroll at all |
|
|
39
|
+
*
|
|
40
|
+
* The `"content"` mode is the critical one: the outer container is
|
|
41
|
+
* `overflow-hidden` (preventing page scroll) while SmartPageContent
|
|
42
|
+
* has `overflow-y-auto`, creating exactly one scrollbar on the inner area.
|
|
43
|
+
*
|
|
44
|
+
* ## max-width and centering
|
|
45
|
+
* For document and settings pages, pass `maxWidth` to constrain the reading
|
|
46
|
+
* width and `centered` to horizontally centre the content block.
|
|
47
|
+
*
|
|
48
|
+
* @example Document page with centred content
|
|
49
|
+
* ```tsx
|
|
50
|
+
* <SmartPage layout="document">
|
|
51
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
52
|
+
* <SmartPageContent maxWidth="2xl" centered>
|
|
53
|
+
* <SmartPageSection title="Profile">…</SmartPageSection>
|
|
54
|
+
* </SmartPageContent>
|
|
55
|
+
* </SmartPage>
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @example Settings page (detail layout, scrollable body)
|
|
59
|
+
* ```tsx
|
|
60
|
+
* <SmartPage layout="detail">
|
|
61
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
62
|
+
* <SmartPageContent maxWidth="xl" centered>
|
|
63
|
+
* <SettingsForm />
|
|
64
|
+
* </SmartPageContent>
|
|
65
|
+
* </SmartPage>
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export declare const SmartPageContent: React.ForwardRefExoticComponent<SmartPageContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=smart-page-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-content.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-content.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAYjE,QAAA,MAAM,iBAAiB;;;;;;;CAOb,CAAA;AAEV,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,WAAW,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAA;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,gBAAgB,8FAqD5B,CACA"}
|