@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,78 @@
|
|
|
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 { usePageContext } from "./page-context";
|
|
6
|
+
import { SMART_PAGE_SLOT } from "./smart-page";
|
|
7
|
+
const PADDING_CLASSES = {
|
|
8
|
+
none: "",
|
|
9
|
+
sm: "p-3",
|
|
10
|
+
// Trim the top padding so content sits close to the page header (whose own
|
|
11
|
+
// py-4 already contributes ~16px). Sides/bottom keep the full padding.
|
|
12
|
+
md: "p-4 pt-2 md:px-6 md:pt-2 md:pb-6",
|
|
13
|
+
lg: "p-6 pt-3 md:px-8 md:pt-3 md:pb-8",
|
|
14
|
+
};
|
|
15
|
+
const MAX_WIDTH_CLASSES = {
|
|
16
|
+
sm: "max-w-sm",
|
|
17
|
+
md: "max-w-2xl",
|
|
18
|
+
lg: "max-w-4xl",
|
|
19
|
+
xl: "max-w-6xl",
|
|
20
|
+
"2xl": "max-w-7xl",
|
|
21
|
+
full: "w-full max-w-none",
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Main content area of the page.
|
|
25
|
+
*
|
|
26
|
+
* SmartPageContent adapts its behaviour based on the scroll mode set by
|
|
27
|
+
* the parent {@link SmartPage}:
|
|
28
|
+
*
|
|
29
|
+
* | Scroll mode | Behaviour |
|
|
30
|
+
* |-------------|--------------------------------------------------------|
|
|
31
|
+
* | `"page"` | Grows to fill remaining space; page scrolls naturally |
|
|
32
|
+
* | `"content"` | Becomes the scroll container (`flex-1 overflow-y-auto`) |
|
|
33
|
+
* | `"grid"` | Grows; no scroll (grid manages its own) |
|
|
34
|
+
* | `"none"` | Grows; no scroll at all |
|
|
35
|
+
*
|
|
36
|
+
* The `"content"` mode is the critical one: the outer container is
|
|
37
|
+
* `overflow-hidden` (preventing page scroll) while SmartPageContent
|
|
38
|
+
* has `overflow-y-auto`, creating exactly one scrollbar on the inner area.
|
|
39
|
+
*
|
|
40
|
+
* ## max-width and centering
|
|
41
|
+
* For document and settings pages, pass `maxWidth` to constrain the reading
|
|
42
|
+
* width and `centered` to horizontally centre the content block.
|
|
43
|
+
*
|
|
44
|
+
* @example Document page with centred content
|
|
45
|
+
* ```tsx
|
|
46
|
+
* <SmartPage layout="document">
|
|
47
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
48
|
+
* <SmartPageContent maxWidth="2xl" centered>
|
|
49
|
+
* <SmartPageSection title="Profile">…</SmartPageSection>
|
|
50
|
+
* </SmartPageContent>
|
|
51
|
+
* </SmartPage>
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @example Settings page (detail layout, scrollable body)
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <SmartPage layout="detail">
|
|
57
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
58
|
+
* <SmartPageContent maxWidth="xl" centered>
|
|
59
|
+
* <SettingsForm />
|
|
60
|
+
* </SmartPageContent>
|
|
61
|
+
* </SmartPage>
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export const SmartPageContent = React.forwardRef(({ padding: localPadding, maxWidth, centered = false, className, children, ...props }, ref) => {
|
|
65
|
+
const { scroll, padding: ctxPadding, fullWidth } = usePageContext();
|
|
66
|
+
const resolvedPadding = localPadding === true
|
|
67
|
+
? "md"
|
|
68
|
+
: localPadding === false
|
|
69
|
+
? "none"
|
|
70
|
+
: (localPadding ?? ctxPadding);
|
|
71
|
+
const isScrollContainer = scroll === "content";
|
|
72
|
+
const outerClasses = cn("flex-1", isScrollContainer && "min-h-0 overflow-y-auto", className);
|
|
73
|
+
const innerClasses = cn(PADDING_CLASSES[resolvedPadding], !fullWidth && maxWidth && MAX_WIDTH_CLASSES[maxWidth], (centered || (!fullWidth && maxWidth)) && "mx-auto");
|
|
74
|
+
return (_jsx("div", { ref: ref, "data-slot": "page-content", className: outerClasses, ...props, children: innerClasses ? (_jsx("div", { className: innerClasses, children: children })) : (children) }));
|
|
75
|
+
});
|
|
76
|
+
SmartPageContent[SMART_PAGE_SLOT] =
|
|
77
|
+
"content";
|
|
78
|
+
//# sourceMappingURL=smart-page-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-content.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-content.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,cAAc,EAAoB,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,eAAe,GAAgC;IACnD,IAAI,EAAE,EAAE;IACR,EAAE,EAAE,KAAK;IACT,2EAA2E;IAC3E,uEAAuE;IACvE,EAAE,EAAE,kCAAkC;IACtC,EAAE,EAAE,kCAAkC;CACvC,CAAA;AAED,MAAM,iBAAiB,GAAG;IACxB,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,WAAW;IACf,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,mBAAmB;CACjB,CAAA;AAmBV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAI9C,CACE,EACE,OAAO,EAAE,YAAY,EACrB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAA;IAEnE,MAAM,eAAe,GACnB,YAAY,KAAK,IAAI;QACnB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,YAAY,KAAK,KAAK;YACtB,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,CAAC,YAAY,IAAI,UAAU,CAAC,CAAA;IAEpC,MAAM,iBAAiB,GAAG,MAAM,KAAK,SAAS,CAAA;IAE9C,MAAM,YAAY,GAAG,EAAE,CACrB,QAAQ,EACR,iBAAiB,IAAI,yBAAyB,EAC9C,SAAS,CACV,CAAA;IAED,MAAM,YAAY,GAAG,EAAE,CACrB,eAAe,CAAC,eAAe,CAAC,EAChC,CAAC,SAAS,IAAI,QAAQ,IAAI,iBAAiB,CAAC,QAAQ,CAAC,EACrD,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,IAAI,SAAS,CACpD,CAAA;IAED,OAAO,CACL,cACE,GAAG,EAAE,GAAG,eACE,cAAc,EACxB,SAAS,EAAE,YAAY,KACnB,KAAK,YAER,YAAY,CAAC,CAAC,CAAC,CACd,cAAK,SAAS,EAAE,YAAY,YAAG,QAAQ,GAAO,CAC/C,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,GACG,CACP,CAAA;AACH,CAAC,CACF,CACA;AAAC,gBAAuD,CAAC,eAAe,CAAC;IACxE,SAAS,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageEmptyProps {
|
|
3
|
+
/** Illustrative icon rendered above the title. */
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
/** Short headline (required). */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Supporting sentence that explains the empty state. */
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
/** Call-to-action (e.g. a Button to create the first item). */
|
|
10
|
+
action?: React.ReactNode;
|
|
11
|
+
/** Additional class names on the root element. */
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Full-page empty state.
|
|
16
|
+
*
|
|
17
|
+
* Used when a page's primary data set returns no results — whether because
|
|
18
|
+
* the user has no items yet, a search/filter found nothing, or the view is
|
|
19
|
+
* genuinely empty.
|
|
20
|
+
*
|
|
21
|
+
* Render it inside {@link SmartPageContent} or pass it to SmartPage's `empty`
|
|
22
|
+
* prop for automatic placement:
|
|
23
|
+
*
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <SmartPage empty={data.length === 0 ? <SmartPageEmpty title="No users" … /> : undefined}>
|
|
26
|
+
* …
|
|
27
|
+
* </SmartPage>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Standalone usage (inside SmartPageContent)
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <SmartPageContent>
|
|
33
|
+
* {data.length === 0 ? (
|
|
34
|
+
* <SmartPageEmpty
|
|
35
|
+
* icon={<Users />}
|
|
36
|
+
* title="No team members yet"
|
|
37
|
+
* description="Invite your first team member to get started."
|
|
38
|
+
* action={<Button><UserPlus /> Invite member</Button>}
|
|
39
|
+
* />
|
|
40
|
+
* ) : (
|
|
41
|
+
* <MemberList data={data} />
|
|
42
|
+
* )}
|
|
43
|
+
* </SmartPageContent>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare const SmartPageEmpty: ({ icon, title, description, action, className, }: SmartPageEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
//# sourceMappingURL=smart-page-empty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-empty.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-empty.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,cAAc,GAAI,kDAM5B,mBAAmB,4CAuBrB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
4
|
+
/**
|
|
5
|
+
* Full-page empty state.
|
|
6
|
+
*
|
|
7
|
+
* Used when a page's primary data set returns no results — whether because
|
|
8
|
+
* the user has no items yet, a search/filter found nothing, or the view is
|
|
9
|
+
* genuinely empty.
|
|
10
|
+
*
|
|
11
|
+
* Render it inside {@link SmartPageContent} or pass it to SmartPage's `empty`
|
|
12
|
+
* prop for automatic placement:
|
|
13
|
+
*
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <SmartPage empty={data.length === 0 ? <SmartPageEmpty title="No users" … /> : undefined}>
|
|
16
|
+
* …
|
|
17
|
+
* </SmartPage>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Standalone usage (inside SmartPageContent)
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <SmartPageContent>
|
|
23
|
+
* {data.length === 0 ? (
|
|
24
|
+
* <SmartPageEmpty
|
|
25
|
+
* icon={<Users />}
|
|
26
|
+
* title="No team members yet"
|
|
27
|
+
* description="Invite your first team member to get started."
|
|
28
|
+
* action={<Button><UserPlus /> Invite member</Button>}
|
|
29
|
+
* />
|
|
30
|
+
* ) : (
|
|
31
|
+
* <MemberList data={data} />
|
|
32
|
+
* )}
|
|
33
|
+
* </SmartPageContent>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export const SmartPageEmpty = ({ icon, title, description, action, className, }) => (_jsxs("div", { role: "status", className: cn("flex h-full min-h-60 flex-col items-center justify-center gap-4 rounded-lg border border-dashed p-10 text-center", className), children: [icon && (_jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground [&>svg]:size-6", children: icon })), _jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("h3", { className: "text-sm font-semibold", children: title }), description && (_jsx("p", { className: "mx-auto max-w-sm text-xs text-muted-foreground", children: description }))] }), action && _jsx("div", { className: "pt-1", children: action })] }));
|
|
37
|
+
//# sourceMappingURL=smart-page-empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-empty.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-empty.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AAejD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,GACW,EAAE,EAAE,CAAC,CACzB,eACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,EAAE,CACX,kHAAkH,EAClH,SAAS,CACV,aAEA,IAAI,IAAI,CACP,cAAK,SAAS,EAAC,qGAAqG,YACjH,IAAI,GACD,CACP,EACD,eAAK,SAAS,EAAC,qBAAqB,aAClC,aAAI,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAM,EACjD,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,gDAAgD,YAC1D,WAAW,GACV,CACL,IACG,EACL,MAAM,IAAI,cAAK,SAAS,EAAC,MAAM,YAAE,MAAM,GAAO,IAC3C,CACP,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageErrorProps {
|
|
3
|
+
/** Short headline describing the error. @default "Something went wrong" */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Detailed message or guidance. */
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Called when the user clicks the "Try again" button.
|
|
9
|
+
* When omitted, the retry button is not rendered.
|
|
10
|
+
*/
|
|
11
|
+
onRetry?: () => void;
|
|
12
|
+
/** Label for the retry button. @default "Try again" */
|
|
13
|
+
retryLabel?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Visual treatment:
|
|
16
|
+
* - `"page"` (default) — a full-height dashed panel for a page's primary
|
|
17
|
+
* error slot.
|
|
18
|
+
* - `"overlay"` — an absolutely-positioned, backdrop-blurred card that covers
|
|
19
|
+
* its (relatively-positioned) parent. Use over content that failed to
|
|
20
|
+
* refresh, e.g. inside a data grid.
|
|
21
|
+
* @default "page"
|
|
22
|
+
*/
|
|
23
|
+
variant?: "page" | "overlay";
|
|
24
|
+
/** Additional class names on the root element. */
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Full-page error state.
|
|
29
|
+
*
|
|
30
|
+
* Shown when a page fails to load its primary data set — network errors,
|
|
31
|
+
* server errors, or permission denied. Offers an optional retry callback
|
|
32
|
+
* and a consistent visual treatment across all page types.
|
|
33
|
+
*
|
|
34
|
+
* ## Usage
|
|
35
|
+
* Pass to SmartPage's `error` prop for automatic placement:
|
|
36
|
+
*
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <SmartPage
|
|
39
|
+
* error={isError ? (
|
|
40
|
+
* <SmartPageError
|
|
41
|
+
* title="Failed to load users"
|
|
42
|
+
* description={error.message}
|
|
43
|
+
* onRetry={refetch}
|
|
44
|
+
* />
|
|
45
|
+
* ) : undefined}
|
|
46
|
+
* >
|
|
47
|
+
* …children…
|
|
48
|
+
* </SmartPage>
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* Or render it directly:
|
|
52
|
+
* ```tsx
|
|
53
|
+
* <SmartPageContent>
|
|
54
|
+
* {isError ? <SmartPageError onRetry={refetch} /> : <DataView />}
|
|
55
|
+
* </SmartPageContent>
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare const SmartPageError: ({ title, description, onRetry, retryLabel, variant, className, }: SmartPageErrorProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
//# sourceMappingURL=smart-page-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-error.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-error.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,WAAW,mBAAmB;IAClC,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oCAAoC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,cAAc,GAAI,kEAO5B,mBAAmB,4CAqCrB,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { AlertCircle, RefreshCw } from "lucide-react";
|
|
4
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
5
|
+
import { Button } from "@iamsaroj/smart-ui/components/button";
|
|
6
|
+
/**
|
|
7
|
+
* Full-page error state.
|
|
8
|
+
*
|
|
9
|
+
* Shown when a page fails to load its primary data set — network errors,
|
|
10
|
+
* server errors, or permission denied. Offers an optional retry callback
|
|
11
|
+
* and a consistent visual treatment across all page types.
|
|
12
|
+
*
|
|
13
|
+
* ## Usage
|
|
14
|
+
* Pass to SmartPage's `error` prop for automatic placement:
|
|
15
|
+
*
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <SmartPage
|
|
18
|
+
* error={isError ? (
|
|
19
|
+
* <SmartPageError
|
|
20
|
+
* title="Failed to load users"
|
|
21
|
+
* description={error.message}
|
|
22
|
+
* onRetry={refetch}
|
|
23
|
+
* />
|
|
24
|
+
* ) : undefined}
|
|
25
|
+
* >
|
|
26
|
+
* …children…
|
|
27
|
+
* </SmartPage>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Or render it directly:
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <SmartPageContent>
|
|
33
|
+
* {isError ? <SmartPageError onRetry={refetch} /> : <DataView />}
|
|
34
|
+
* </SmartPageContent>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export const SmartPageError = ({ title = "Something went wrong", description = "An unexpected error occurred while loading this page.", onRetry, retryLabel = "Try again", variant = "page", className, }) => {
|
|
38
|
+
const overlay = variant === "overlay";
|
|
39
|
+
return (_jsx("div", { role: "alert", className: cn(overlay
|
|
40
|
+
? "absolute inset-0 z-10 flex items-center justify-center bg-background/80 p-6 backdrop-blur-sm"
|
|
41
|
+
: "flex h-full min-h-60 flex-col items-center justify-center gap-4 rounded-lg border border-dashed border-destructive/30 bg-destructive/5 p-10 text-center", className), children: _jsxs("div", { className: cn(overlay
|
|
42
|
+
? "flex max-w-sm flex-col items-center gap-3 rounded-md border border-border bg-card p-6 text-center shadow-sm"
|
|
43
|
+
: "contents"), children: [_jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-destructive/10 text-destructive", children: _jsx(AlertCircle, { className: "size-6" }) }), _jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("h3", { className: "text-sm font-semibold", children: title }), _jsx("p", { className: "mx-auto max-w-sm text-xs text-muted-foreground", children: description })] }), onRetry && (_jsxs(Button, { variant: "outline", size: "sm", onClick: onRetry, children: [_jsx(RefreshCw, {}), retryLabel] }))] }) }));
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=smart-page-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-error.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-error.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAA;AA4B7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,KAAK,GAAG,sBAAsB,EAC9B,WAAW,GAAG,uDAAuD,EACrE,OAAO,EACP,UAAU,GAAG,WAAW,EACxB,OAAO,GAAG,MAAM,EAChB,SAAS,GACW,EAAE,EAAE;IACxB,MAAM,OAAO,GAAG,OAAO,KAAK,SAAS,CAAA;IACrC,OAAO,CACL,cACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,EAAE,CACX,OAAO;YACL,CAAC,CAAC,8FAA8F;YAChG,CAAC,CAAC,yJAAyJ,EAC7J,SAAS,CACV,YAED,eACE,SAAS,EAAE,EAAE,CACX,OAAO;gBACL,CAAC,CAAC,6GAA6G;gBAC/G,CAAC,CAAC,UAAU,CACf,aAED,cAAK,SAAS,EAAC,0FAA0F,YACvG,KAAC,WAAW,IAAC,SAAS,EAAC,QAAQ,GAAG,GAC9B,EACN,eAAK,SAAS,EAAC,qBAAqB,aAClC,aAAI,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAM,EAClD,YAAG,SAAS,EAAC,gDAAgD,YAC1D,WAAW,GACV,IACA,EACL,OAAO,IAAI,CACV,MAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,OAAO,aAClD,KAAC,SAAS,KAAG,EACZ,UAAU,IACJ,CACV,IACG,GACF,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageFiltersProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Optional label shown on the leading edge (e.g. "Filters:").
|
|
5
|
+
*/
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Render a bottom border separating the filter bar from content.
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
border?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Filter chip / tag bar rendered below the search input.
|
|
15
|
+
*
|
|
16
|
+
* Hosts active filter indicators, quick-filter toggles (status, assignee,
|
|
17
|
+
* date range), and a "Clear all" action. Children are laid out in a wrapping
|
|
18
|
+
* flex row so that many active filters expand gracefully.
|
|
19
|
+
*
|
|
20
|
+
* ## Stickiness
|
|
21
|
+
* Controlled by `stickyFilters` on {@link SmartPage} (default `true` for
|
|
22
|
+
* `"grid"` layout). Sits in the same sticky band as header/toolbar/search.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <SmartPageFilters label="Filters:">
|
|
27
|
+
* <Badge variant="secondary" className="gap-1">
|
|
28
|
+
* Status: Active <X className="size-3 cursor-pointer" onClick={clearStatus} />
|
|
29
|
+
* </Badge>
|
|
30
|
+
* <Badge variant="secondary" className="gap-1">
|
|
31
|
+
* Role: Admin <X className="size-3 cursor-pointer" onClick={clearRole} />
|
|
32
|
+
* </Badge>
|
|
33
|
+
* <Button variant="ghost" size="xs" onClick={clearAll}>Clear all</Button>
|
|
34
|
+
* </SmartPageFilters>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare const SmartPageFilters: React.ForwardRefExoticComponent<SmartPageFiltersProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
//# sourceMappingURL=smart-page-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-filters.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-filters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,gBAAgB,8FAqB3B,CACD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* Filter chip / tag bar rendered below the search input.
|
|
8
|
+
*
|
|
9
|
+
* Hosts active filter indicators, quick-filter toggles (status, assignee,
|
|
10
|
+
* date range), and a "Clear all" action. Children are laid out in a wrapping
|
|
11
|
+
* flex row so that many active filters expand gracefully.
|
|
12
|
+
*
|
|
13
|
+
* ## Stickiness
|
|
14
|
+
* Controlled by `stickyFilters` on {@link SmartPage} (default `true` for
|
|
15
|
+
* `"grid"` layout). Sits in the same sticky band as header/toolbar/search.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <SmartPageFilters label="Filters:">
|
|
20
|
+
* <Badge variant="secondary" className="gap-1">
|
|
21
|
+
* Status: Active <X className="size-3 cursor-pointer" onClick={clearStatus} />
|
|
22
|
+
* </Badge>
|
|
23
|
+
* <Badge variant="secondary" className="gap-1">
|
|
24
|
+
* Role: Admin <X className="size-3 cursor-pointer" onClick={clearRole} />
|
|
25
|
+
* </Badge>
|
|
26
|
+
* <Button variant="ghost" size="xs" onClick={clearAll}>Clear all</Button>
|
|
27
|
+
* </SmartPageFilters>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export const SmartPageFilters = React.forwardRef(({ label, border = true, className, children, ...props }, ref) => (_jsxs("div", { ref: ref, "data-slot": "page-filters", className: cn("flex shrink-0 flex-wrap items-center gap-2 px-4 py-2", border && "border-b", className), ...props, children: [label && (_jsx("span", { className: "shrink-0 text-xs font-medium text-muted-foreground", children: label })), children] })));
|
|
31
|
+
SmartPageFilters[SMART_PAGE_SLOT] =
|
|
32
|
+
"filters";
|
|
33
|
+
//# sourceMappingURL=smart-page-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-filters.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-filters.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;AAc9C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAG9C,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClE,eACE,GAAG,EAAE,GAAG,eACE,cAAc,EACxB,SAAS,EAAE,EAAE,CACX,sDAAsD,EACtD,MAAM,IAAI,UAAU,EACpB,SAAS,CACV,KACG,KAAK,aAER,KAAK,IAAI,CACR,eAAM,SAAS,EAAC,oDAAoD,YACjE,KAAK,GACD,CACR,EACA,QAAQ,IACL,CACP,CAAC,CACD;AAAC,gBAAuD,CAAC,eAAe,CAAC;IACxE,SAAS,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Render a top border separating the footer from the content / status bar.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
border?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Horizontal alignment of footer children.
|
|
10
|
+
* @default "end"
|
|
11
|
+
*/
|
|
12
|
+
justify?: "start" | "center" | "end" | "between";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Footer action bar pinned at the bottom of the page.
|
|
16
|
+
*
|
|
17
|
+
* Hosts primary and secondary actions that apply to the page as a whole:
|
|
18
|
+
* form submit / cancel buttons, wizard navigation controls, bulk-action
|
|
19
|
+
* buttons, or pagination controls.
|
|
20
|
+
*
|
|
21
|
+
* ## Stickiness
|
|
22
|
+
* Controlled by `stickyFooter` on SmartPage (default `true` for `"grid"` and
|
|
23
|
+
* `"wizard"` layouts). In `"grid"` scroll mode the footer sits below the scroll
|
|
24
|
+
* container, making it always visible without `position: sticky`.
|
|
25
|
+
*
|
|
26
|
+
* ## Layout
|
|
27
|
+
* Uses `justify` to align children. Common patterns:
|
|
28
|
+
* - `"end"` — submit/cancel buttons (default)
|
|
29
|
+
* - `"between"` — back/next buttons in wizard steps
|
|
30
|
+
* - `"start"` — status text + trailing actions
|
|
31
|
+
*
|
|
32
|
+
* @example Wizard footer
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <SmartPageFooter justify="between">
|
|
35
|
+
* <Button variant="outline" onClick={prev}>Back</Button>
|
|
36
|
+
* <Button onClick={next}>Next</Button>
|
|
37
|
+
* </SmartPageFooter>
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @example Form footer
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <SmartPageFooter>
|
|
43
|
+
* <Button variant="ghost" onClick={cancel}>Cancel</Button>
|
|
44
|
+
* <Button type="submit" form="settings-form">Save changes</Button>
|
|
45
|
+
* </SmartPageFooter>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare const SmartPageFooter: React.ForwardRefExoticComponent<SmartPageFooterProps & React.RefAttributes<HTMLElement>>;
|
|
49
|
+
//# sourceMappingURL=smart-page-footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-footer.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-footer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC7E;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAA;CACjD;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,eAAe,0FAiB1B,CACD"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { SMART_PAGE_SLOT } from "./smart-page";
|
|
6
|
+
const JUSTIFY_CLASSES = {
|
|
7
|
+
start: "justify-start",
|
|
8
|
+
center: "justify-center",
|
|
9
|
+
end: "justify-end",
|
|
10
|
+
between: "justify-between",
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Footer action bar pinned at the bottom of the page.
|
|
14
|
+
*
|
|
15
|
+
* Hosts primary and secondary actions that apply to the page as a whole:
|
|
16
|
+
* form submit / cancel buttons, wizard navigation controls, bulk-action
|
|
17
|
+
* buttons, or pagination controls.
|
|
18
|
+
*
|
|
19
|
+
* ## Stickiness
|
|
20
|
+
* Controlled by `stickyFooter` on SmartPage (default `true` for `"grid"` and
|
|
21
|
+
* `"wizard"` layouts). In `"grid"` scroll mode the footer sits below the scroll
|
|
22
|
+
* container, making it always visible without `position: sticky`.
|
|
23
|
+
*
|
|
24
|
+
* ## Layout
|
|
25
|
+
* Uses `justify` to align children. Common patterns:
|
|
26
|
+
* - `"end"` — submit/cancel buttons (default)
|
|
27
|
+
* - `"between"` — back/next buttons in wizard steps
|
|
28
|
+
* - `"start"` — status text + trailing actions
|
|
29
|
+
*
|
|
30
|
+
* @example Wizard footer
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <SmartPageFooter justify="between">
|
|
33
|
+
* <Button variant="outline" onClick={prev}>Back</Button>
|
|
34
|
+
* <Button onClick={next}>Next</Button>
|
|
35
|
+
* </SmartPageFooter>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @example Form footer
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <SmartPageFooter>
|
|
41
|
+
* <Button variant="ghost" onClick={cancel}>Cancel</Button>
|
|
42
|
+
* <Button type="submit" form="settings-form">Save changes</Button>
|
|
43
|
+
* </SmartPageFooter>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export const SmartPageFooter = React.forwardRef(({ border = true, justify = "end", className, children, ...props }, ref) => (_jsx("footer", { ref: ref, "data-slot": "page-footer", className: cn("flex shrink-0 items-center gap-2 px-6 py-3", JUSTIFY_CLASSES[justify], border && "border-t", className), ...props, children: children })));
|
|
47
|
+
SmartPageFooter[SMART_PAGE_SLOT] =
|
|
48
|
+
"footer";
|
|
49
|
+
//# sourceMappingURL=smart-page-footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-footer.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-footer.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;AAe9C,MAAM,eAAe,GAGjB;IACF,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,gBAAgB;IACxB,GAAG,EAAE,aAAa;IAClB,OAAO,EAAE,iBAAiB;CAC3B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAG7C,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5E,iBACE,GAAG,EAAE,GAAG,eACE,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,4CAA4C,EAC5C,eAAe,CAAC,OAAO,CAAC,EACxB,MAAM,IAAI,UAAU,EACpB,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACF,CACV,CAAC,CACD;AAAC,eAAsD,CAAC,eAAe,CAAC;IACvE,QAAQ,CAAA"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageHeaderProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
|
|
3
|
+
/**
|
|
4
|
+
* Renders a bottom border beneath the header.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
border?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Uses tighter internal padding — useful when the header sits inside a
|
|
10
|
+
* compact shell that already provides spacing.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
compact?: boolean;
|
|
14
|
+
/** Breadcrumb trail rendered above the title. */
|
|
15
|
+
breadcrumb?: SmartPageBreadcrumbItem[];
|
|
16
|
+
/** Page title. A string is wrapped in {@link SmartPageTitle}; pass a node for custom title rows (e.g. a badge beside it). */
|
|
17
|
+
title?: React.ReactNode;
|
|
18
|
+
/** Supporting description rendered below the title (always wrapped in {@link SmartPageDescription}; inline nodes like `<code>` are fine). */
|
|
19
|
+
description?: React.ReactNode;
|
|
20
|
+
/** Right-aligned action group, laid out on the same row as the title. */
|
|
21
|
+
actions?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Top-level header zone for a page.
|
|
25
|
+
*
|
|
26
|
+
* Hosts breadcrumbs, title, description, and actions in a consistent
|
|
27
|
+
* horizontal layout. Stickiness and border-bottom are controlled by context
|
|
28
|
+
* (SmartPage props) and the `border` / `compact` props respectively.
|
|
29
|
+
*
|
|
30
|
+
* ## Layout
|
|
31
|
+
* Renders as a flex row: left side for title group, right side for actions.
|
|
32
|
+
* Children are laid out via natural flex flow — compose
|
|
33
|
+
* {@link SmartPageTitle}, {@link SmartPageDescription}, and
|
|
34
|
+
* {@link SmartPageActions} inside.
|
|
35
|
+
*
|
|
36
|
+
* ## Stickiness
|
|
37
|
+
* In `"page"` scroll mode SmartPage wraps the header in a `sticky top-0`
|
|
38
|
+
* container when `stickyHeader` is enabled. In `"content"` / `"grid"` modes
|
|
39
|
+
* the header sits above the scroll container so it's always visible.
|
|
40
|
+
*
|
|
41
|
+
* ## Flat props vs. composition
|
|
42
|
+
* For the common case, pass `breadcrumb` / `title` / `description` / `actions`
|
|
43
|
+
* and the header lays them out for you. Composition is still the escape hatch:
|
|
44
|
+
* any `children` render *below* the flat block, so you can mix both.
|
|
45
|
+
*
|
|
46
|
+
* @example Flat props (the common case)
|
|
47
|
+
* ```tsx
|
|
48
|
+
* <SmartPageHeader
|
|
49
|
+
* breadcrumb={[{ label: "Users", href: "/users" }, { label: "New" }]}
|
|
50
|
+
* title="New User"
|
|
51
|
+
* description="Fill in the details below."
|
|
52
|
+
* actions={
|
|
53
|
+
* <>
|
|
54
|
+
* <Button variant="outline">Cancel</Button>
|
|
55
|
+
* <Button>Save</Button>
|
|
56
|
+
* </>
|
|
57
|
+
* }
|
|
58
|
+
* />
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @example Composition escape hatch (full control)
|
|
62
|
+
* ```tsx
|
|
63
|
+
* <SmartPageHeader>
|
|
64
|
+
* <SmartPageBreadcrumb items={[{ label: "Users", href: "/users" }, { label: "New" }]} />
|
|
65
|
+
* <div className="flex items-center justify-between">
|
|
66
|
+
* <div>
|
|
67
|
+
* <SmartPageTitle>New User</SmartPageTitle>
|
|
68
|
+
* <SmartPageDescription>Fill in the details below.</SmartPageDescription>
|
|
69
|
+
* </div>
|
|
70
|
+
* <SmartPageActions>
|
|
71
|
+
* <Button>Save</Button>
|
|
72
|
+
* </SmartPageActions>
|
|
73
|
+
* </div>
|
|
74
|
+
* </SmartPageHeader>
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare const SmartPageHeader: React.ForwardRefExoticComponent<SmartPageHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
78
|
+
export interface SmartPageTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
79
|
+
/** Override the heading level. @default "h1" */
|
|
80
|
+
as?: "h1" | "h2" | "h3";
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Page-level heading. Always renders as `<h1>` by default for correct
|
|
84
|
+
* document outline; override with `as` when the page title is nested inside
|
|
85
|
+
* a section hierarchy.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```tsx
|
|
89
|
+
* <SmartPageTitle>Users</SmartPageTitle>
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare const SmartPageTitle: React.ForwardRefExoticComponent<SmartPageTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
93
|
+
/**
|
|
94
|
+
* Supporting description rendered below the page title.
|
|
95
|
+
* Automatically muted and limited to a comfortable reading width.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```tsx
|
|
99
|
+
* <SmartPageDescription>Manage your organisation's members and roles.</SmartPageDescription>
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export declare const SmartPageDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
103
|
+
/**
|
|
104
|
+
* Right-aligned action group inside a page header.
|
|
105
|
+
* Lay out buttons, dropdowns, or any controls inside. Items are spaced
|
|
106
|
+
* with a consistent gap and aligned vertically to the centre.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```tsx
|
|
110
|
+
* <SmartPageActions>
|
|
111
|
+
* <Button variant="outline"><Download /> Export</Button>
|
|
112
|
+
* <Button><Plus /> New User</Button>
|
|
113
|
+
* </SmartPageActions>
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
export declare const SmartPageActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
117
|
+
export interface SmartPageBreadcrumbItem {
|
|
118
|
+
/** Display label for this crumb. */
|
|
119
|
+
label: string;
|
|
120
|
+
/** When provided, renders as a link. The last item ignores this. */
|
|
121
|
+
href?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface SmartPageBreadcrumbProps {
|
|
124
|
+
/** Ordered list of crumbs from root to current page. */
|
|
125
|
+
items: SmartPageBreadcrumbItem[];
|
|
126
|
+
className?: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Breadcrumb trail rendered above the page title.
|
|
130
|
+
* The last item is always rendered as the current page (non-link).
|
|
131
|
+
* All preceding items are rendered as links when `href` is provided.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```tsx
|
|
135
|
+
* <SmartPageBreadcrumb
|
|
136
|
+
* items={[
|
|
137
|
+
* { label: "Settings", href: "/settings" },
|
|
138
|
+
* { label: "Team", href: "/settings/team" },
|
|
139
|
+
* { label: "Members" },
|
|
140
|
+
* ]}
|
|
141
|
+
* />
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
export declare const SmartPageBreadcrumb: ({ items, className, }: SmartPageBreadcrumbProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
145
|
+
//# sourceMappingURL=smart-page-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-header.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,OAAO,CACR;IACC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAOjB,iDAAiD;IACjD,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAA;IACtC,6HAA6H;IAC7H,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,6IAA6I;IAC7I,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,yEAAyE;IACzE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,eAAO,MAAM,eAAe,0FA2D3B,CACA;AAKD,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IACnF,gDAAgD;IAChD,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CACxB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,gGAazB,CAAA;AAIF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,yHAU/B,CAAA;AAIF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,6GAU3B,CAAA;AAIF,MAAM,WAAW,uBAAuB;IACtC,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,wDAAwD;IACxD,KAAK,EAAE,uBAAuB,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,GAAI,uBAGjC,wBAAwB,mDAyB1B,CAAA"}
|