@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,129 @@
|
|
|
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 { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage as BreadcrumbCurrent, BreadcrumbSeparator, } from "@iamsaroj/smart-ui/components/breadcrumb";
|
|
6
|
+
import { SMART_PAGE_SLOT } from "./slot";
|
|
7
|
+
/**
|
|
8
|
+
* Top-level header zone for a page.
|
|
9
|
+
*
|
|
10
|
+
* Hosts breadcrumbs, title, description, and actions in a consistent
|
|
11
|
+
* horizontal layout. Stickiness and border-bottom are controlled by context
|
|
12
|
+
* (SmartPage props) and the `border` / `compact` props respectively.
|
|
13
|
+
*
|
|
14
|
+
* ## Layout
|
|
15
|
+
* Renders as a flex row: left side for title group, right side for actions.
|
|
16
|
+
* Children are laid out via natural flex flow — compose
|
|
17
|
+
* {@link SmartPageTitle}, {@link SmartPageDescription}, and
|
|
18
|
+
* {@link SmartPageActions} inside.
|
|
19
|
+
*
|
|
20
|
+
* ## Stickiness
|
|
21
|
+
* In `"page"` scroll mode SmartPage wraps the header in a `sticky top-0`
|
|
22
|
+
* container when `stickyHeader` is enabled. In `"content"` / `"grid"` modes
|
|
23
|
+
* the header sits above the scroll container so it's always visible.
|
|
24
|
+
*
|
|
25
|
+
* ## Flat props vs. composition
|
|
26
|
+
* For the common case, pass `breadcrumb` / `title` / `description` / `actions`
|
|
27
|
+
* and the header lays them out for you. Composition is still the escape hatch:
|
|
28
|
+
* any `children` render *below* the flat block, so you can mix both.
|
|
29
|
+
*
|
|
30
|
+
* @example Flat props (the common case)
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <SmartPageHeader
|
|
33
|
+
* breadcrumb={[{ label: "Users", href: "/users" }, { label: "New" }]}
|
|
34
|
+
* title="New User"
|
|
35
|
+
* description="Fill in the details below."
|
|
36
|
+
* actions={
|
|
37
|
+
* <>
|
|
38
|
+
* <Button variant="outline">Cancel</Button>
|
|
39
|
+
* <Button>Save</Button>
|
|
40
|
+
* </>
|
|
41
|
+
* }
|
|
42
|
+
* />
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @example Composition escape hatch (full control)
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <SmartPageHeader>
|
|
48
|
+
* <SmartPageBreadcrumb items={[{ label: "Users", href: "/users" }, { label: "New" }]} />
|
|
49
|
+
* <div className="flex items-center justify-between">
|
|
50
|
+
* <div>
|
|
51
|
+
* <SmartPageTitle>New User</SmartPageTitle>
|
|
52
|
+
* <SmartPageDescription>Fill in the details below.</SmartPageDescription>
|
|
53
|
+
* </div>
|
|
54
|
+
* <SmartPageActions>
|
|
55
|
+
* <Button>Save</Button>
|
|
56
|
+
* </SmartPageActions>
|
|
57
|
+
* </div>
|
|
58
|
+
* </SmartPageHeader>
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export const SmartPageHeader = React.forwardRef(({ border = true, compact = false, breadcrumb, title, description, actions, className, children, ...props }, ref) => {
|
|
62
|
+
const hasTitleRow = title != null || description != null || actions != null;
|
|
63
|
+
const hasFlat = (breadcrumb?.length ?? 0) > 0 || hasTitleRow;
|
|
64
|
+
return (_jsxs("header", { ref: ref, "data-slot": "page-header", className: cn("flex shrink-0 flex-col", compact ? "px-4 py-2" : "px-6 py-4", border && "border-b", className), ...props, children: [breadcrumb && breadcrumb.length > 0 && (_jsx(SmartPageBreadcrumb, { items: breadcrumb })), hasTitleRow && (_jsxs("div", { className: "flex items-start justify-between gap-4", children: [_jsxs("div", { className: "min-w-0 flex-1", children: [typeof title === "string" ? (_jsx(SmartPageTitle, { children: title })) : (title), description != null && (_jsx(SmartPageDescription, { children: description }))] }), actions != null && _jsx(SmartPageActions, { children: actions })] })), hasFlat && children ? (_jsx("div", { className: "mt-2", children: children })) : (children)] }));
|
|
65
|
+
});
|
|
66
|
+
SmartPageHeader[SMART_PAGE_SLOT] =
|
|
67
|
+
"header";
|
|
68
|
+
/**
|
|
69
|
+
* Page-level heading. Always renders as `<h1>` by default for correct
|
|
70
|
+
* document outline; override with `as` when the page title is nested inside
|
|
71
|
+
* a section hierarchy.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```tsx
|
|
75
|
+
* <SmartPageTitle>Users</SmartPageTitle>
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export const SmartPageTitle = React.forwardRef(({ as: Tag = "h1", className, ...props }, ref) => (_jsx(Tag, { ref: ref, "data-slot": "page-title", className: cn("text-lg leading-tight font-semibold tracking-tight", className), ...props })));
|
|
79
|
+
// ─── SmartPageDescription ──────────────────────────────────────────────────────
|
|
80
|
+
/**
|
|
81
|
+
* Supporting description rendered below the page title.
|
|
82
|
+
* Automatically muted and limited to a comfortable reading width.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```tsx
|
|
86
|
+
* <SmartPageDescription>Manage your organisation's members and roles.</SmartPageDescription>
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export const SmartPageDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("p", { ref: ref, "data-slot": "page-description", className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
90
|
+
// ─── SmartPageActions ──────────────────────────────────────────────────────────
|
|
91
|
+
/**
|
|
92
|
+
* Right-aligned action group inside a page header.
|
|
93
|
+
* Lay out buttons, dropdowns, or any controls inside. Items are spaced
|
|
94
|
+
* with a consistent gap and aligned vertically to the centre.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```tsx
|
|
98
|
+
* <SmartPageActions>
|
|
99
|
+
* <Button variant="outline"><Download /> Export</Button>
|
|
100
|
+
* <Button><Plus /> New User</Button>
|
|
101
|
+
* </SmartPageActions>
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
export const SmartPageActions = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-slot": "page-actions", className: cn("ml-auto flex shrink-0 items-center gap-2", className), ...props })));
|
|
105
|
+
/**
|
|
106
|
+
* Breadcrumb trail rendered above the page title.
|
|
107
|
+
* The last item is always rendered as the current page (non-link).
|
|
108
|
+
* All preceding items are rendered as links when `href` is provided.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```tsx
|
|
112
|
+
* <SmartPageBreadcrumb
|
|
113
|
+
* items={[
|
|
114
|
+
* { label: "Settings", href: "/settings" },
|
|
115
|
+
* { label: "Team", href: "/settings/team" },
|
|
116
|
+
* { label: "Members" },
|
|
117
|
+
* ]}
|
|
118
|
+
* />
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export const SmartPageBreadcrumb = ({ items, className, }) => {
|
|
122
|
+
if (!items.length)
|
|
123
|
+
return null;
|
|
124
|
+
return (_jsx(Breadcrumb, { className: cn("mb-1", className), children: _jsx(BreadcrumbList, { children: items.map((item, idx) => {
|
|
125
|
+
const isLast = idx === items.length - 1;
|
|
126
|
+
return (_jsxs(React.Fragment, { children: [_jsx(BreadcrumbItem, { children: isLast ? (_jsx(BreadcrumbCurrent, { children: item.label })) : (_jsx(BreadcrumbLink, { href: item.href ?? "#", children: item.label })) }), !isLast && _jsx(BreadcrumbSeparator, {})] }, idx));
|
|
127
|
+
}) }) }));
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=smart-page-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-header.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-header.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,IAAI,iBAAiB,EACnC,mBAAmB,GACpB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAmCxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAI7C,CACE,EACE,MAAM,GAAG,IAAI,EACb,OAAO,GAAG,KAAK,EACf,UAAU,EACV,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,WAAW,GAAG,KAAK,IAAI,IAAI,IAAI,WAAW,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,CAAA;IAC3E,MAAM,OAAO,GAAG,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,WAAW,CAAA;IAE5D,OAAO,CACL,kBACE,GAAG,EAAE,GAAG,eACE,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,wBAAwB,EACxB,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EACnC,MAAM,IAAI,UAAU,EACpB,SAAS,CACV,KACG,KAAK,aAER,UAAU,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,CACtC,KAAC,mBAAmB,IAAC,KAAK,EAAE,UAAU,GAAI,CAC3C,EACA,WAAW,IAAI,CACd,eAAK,SAAS,EAAC,wCAAwC,aACrD,eAAK,SAAS,EAAC,gBAAgB,aAC5B,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC3B,KAAC,cAAc,cAAE,KAAK,GAAkB,CACzC,CAAC,CAAC,CAAC,CACF,KAAK,CACN,EACA,WAAW,IAAI,IAAI,IAAI,CACtB,KAAC,oBAAoB,cAAE,WAAW,GAAwB,CAC3D,IACG,EACL,OAAO,IAAI,IAAI,IAAI,KAAC,gBAAgB,cAAE,OAAO,GAAoB,IAC9D,CACP,EACA,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,CACrB,cAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAO,CACvC,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,IACM,CACV,CAAA;AACH,CAAC,CACF,CACA;AAAC,eAAsD,CAAC,eAAe,CAAC;IACvE,QAAQ,CAAA;AASV;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAG5C,CAAC,EAAE,EAAE,EAAE,GAAG,GAAG,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClD,KAAC,GAAG,IACF,GAAG,EAAE,GAAG,eACE,YAAY,EACtB,SAAS,EAAE,EAAE,CACX,oDAAoD,EACpD,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAA;AAEF,kFAAkF;AAElF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC,UAAU,CAGlD,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,YACE,GAAG,EAAE,GAAG,eACE,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,SAAS,CAAC,KACrD,KAAK,GACT,CACH,CAAC,CAAA;AAEF,kFAAkF;AAElF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAG9C,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,cACE,GAAG,EAAE,GAAG,eACE,cAAc,EACxB,SAAS,EAAE,EAAE,CAAC,0CAA0C,EAAE,SAAS,CAAC,KAChE,KAAK,GACT,CACH,CAAC,CAAA;AAiBF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,KAAK,EACL,SAAS,GACgB,EAAE,EAAE;IAC7B,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IAC9B,OAAO,CACL,KAAC,UAAU,IAAC,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,YAC1C,KAAC,cAAc,cACZ,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;gBACvB,MAAM,MAAM,GAAG,GAAG,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;gBACvC,OAAO,CACL,MAAC,KAAK,CAAC,QAAQ,eACb,KAAC,cAAc,cACZ,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,iBAAiB,cAAE,IAAI,CAAC,KAAK,GAAqB,CACpD,CAAC,CAAC,CAAC,CACF,KAAC,cAAc,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,GAAG,YACnC,IAAI,CAAC,KAAK,GACI,CAClB,GACc,EAChB,CAAC,MAAM,IAAI,KAAC,mBAAmB,KAAG,KAVhB,GAAG,CAWP,CAClB,CAAA;YACH,CAAC,CAAC,GACa,GACN,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageHeroProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Visual treatment of the hero background.
|
|
5
|
+
* - `"muted"` — subtle muted fill (default)
|
|
6
|
+
* - `"gradient"` — foreground-to-transparent gradient overlay
|
|
7
|
+
* - `"none"` — transparent, useful when placing an image background yourself
|
|
8
|
+
*/
|
|
9
|
+
background?: "muted" | "gradient" | "none";
|
|
10
|
+
/**
|
|
11
|
+
* Controls the vertical height of the hero.
|
|
12
|
+
* - `"sm"` — compact banner (good for in-page section heroes)
|
|
13
|
+
* - `"md"` — standard hero (default)
|
|
14
|
+
* - `"lg"` — prominent hero (landing-style pages)
|
|
15
|
+
*/
|
|
16
|
+
height?: "sm" | "md" | "lg";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Full-width feature banner rendered at the top of a page, below the header.
|
|
20
|
+
*
|
|
21
|
+
* Designed for dashboard and landing-style pages where a visual introduction
|
|
22
|
+
* sets context before cards or data appear. The hero always scrolls away with
|
|
23
|
+
* the page content — it is never sticky.
|
|
24
|
+
*
|
|
25
|
+
* Presence of SmartPageHero causes SmartPage to auto-detect a `"dashboard"` layout
|
|
26
|
+
* (natural page scroll, no height constraints).
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <SmartPage>
|
|
31
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
32
|
+
* <SmartPageHero height="md" background="muted">
|
|
33
|
+
* <SmartPageTitle>Welcome back, Sarah</SmartPageTitle>
|
|
34
|
+
* <SmartPageDescription>Here's what's happening today.</SmartPageDescription>
|
|
35
|
+
* </SmartPageHero>
|
|
36
|
+
* <SmartPageContent>
|
|
37
|
+
* <MetricCards />
|
|
38
|
+
* </SmartPageContent>
|
|
39
|
+
* </SmartPage>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare const SmartPageHero: React.ForwardRefExoticComponent<SmartPageHeroProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
//# sourceMappingURL=smart-page-hero.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-hero.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-hero.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,CAAA;IAC1C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC5B;AAoBD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,aAAa,2FAsBzB,CACA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 bgClasses = {
|
|
7
|
+
muted: "bg-muted",
|
|
8
|
+
gradient: "bg-gradient-to-b from-foreground/5 to-transparent",
|
|
9
|
+
none: "",
|
|
10
|
+
};
|
|
11
|
+
const heightClasses = {
|
|
12
|
+
sm: "py-8 md:py-10",
|
|
13
|
+
md: "py-12 md:py-16",
|
|
14
|
+
lg: "py-20 md:py-28",
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Full-width feature banner rendered at the top of a page, below the header.
|
|
18
|
+
*
|
|
19
|
+
* Designed for dashboard and landing-style pages where a visual introduction
|
|
20
|
+
* sets context before cards or data appear. The hero always scrolls away with
|
|
21
|
+
* the page content — it is never sticky.
|
|
22
|
+
*
|
|
23
|
+
* Presence of SmartPageHero causes SmartPage to auto-detect a `"dashboard"` layout
|
|
24
|
+
* (natural page scroll, no height constraints).
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <SmartPage>
|
|
29
|
+
* <SmartPageHeader>…</SmartPageHeader>
|
|
30
|
+
* <SmartPageHero height="md" background="muted">
|
|
31
|
+
* <SmartPageTitle>Welcome back, Sarah</SmartPageTitle>
|
|
32
|
+
* <SmartPageDescription>Here's what's happening today.</SmartPageDescription>
|
|
33
|
+
* </SmartPageHero>
|
|
34
|
+
* <SmartPageContent>
|
|
35
|
+
* <MetricCards />
|
|
36
|
+
* </SmartPageContent>
|
|
37
|
+
* </SmartPage>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export const SmartPageHero = React.forwardRef(({ background = "muted", height = "md", className, children, ...props }, ref) => (_jsx("div", { ref: ref, "data-slot": "page-hero", className: cn("w-full shrink-0 px-6", bgClasses[background], heightClasses[height], className), ...props, children: children })));
|
|
41
|
+
SmartPageHero[SMART_PAGE_SLOT] = "hero";
|
|
42
|
+
//# sourceMappingURL=smart-page-hero.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-hero.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-hero.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;AAmB9C,MAAM,SAAS,GAGX;IACF,KAAK,EAAE,UAAU;IACjB,QAAQ,EAAE,mDAAmD;IAC7D,IAAI,EAAE,EAAE;CACT,CAAA;AAED,MAAM,aAAa,GAGf;IACF,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,gBAAgB;IACpB,EAAE,EAAE,gBAAgB;CACrB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAI3C,CACE,EAAE,UAAU,GAAG,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EACtE,GAAG,EACH,EAAE,CAAC,CACH,cACE,GAAG,EAAE,GAAG,eACE,WAAW,EACrB,SAAS,EAAE,EAAE,CACX,sBAAsB,EACtB,SAAS,CAAC,UAAU,CAAC,EACrB,aAAa,CAAC,MAAM,CAAC,EACrB,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACL,CACP,CACF,CACA;AAAC,aAAoD,CAAC,eAAe,CAAC,GAAG,MAAM,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface SmartPageLoadingProps {
|
|
2
|
+
/** Accessible label announced to screen readers and displayed below the spinner. */
|
|
3
|
+
label?: string;
|
|
4
|
+
/** Additional class names on the root element. */
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Full-page loading indicator.
|
|
9
|
+
*
|
|
10
|
+
* Renders a centred spinner with an accessible status announcement.
|
|
11
|
+
* Use this for the initial data load of a page — not for incremental /
|
|
12
|
+
* background updates (use SmartLoadingOverlay for those).
|
|
13
|
+
*
|
|
14
|
+
* ## Usage
|
|
15
|
+
* Pass to SmartPage's `loading` and `loadingLabel` props for automatic
|
|
16
|
+
* placement, or render it directly inside a content area:
|
|
17
|
+
*
|
|
18
|
+
* ```tsx
|
|
19
|
+
* // Automatic — replaces all children while loading
|
|
20
|
+
* <SmartPage loading={isLoading} loadingLabel="Loading users…">
|
|
21
|
+
* …children…
|
|
22
|
+
* </SmartPage>
|
|
23
|
+
*
|
|
24
|
+
* // Manual — inside SmartPageContent
|
|
25
|
+
* <SmartPageContent>
|
|
26
|
+
* {isLoading ? <SmartPageLoading label="Loading report…" /> : <Report />}
|
|
27
|
+
* </SmartPageContent>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare const SmartPageLoading: ({ label, className, }: SmartPageLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=smart-page-loading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-loading.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-loading.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,qBAAqB;IACpC,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,gBAAgB,GAAI,uBAG9B,qBAAqB,4CAavB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
import { SmartSpinner } from "@iamsaroj/smart-ui/smart-components/spinner";
|
|
5
|
+
/**
|
|
6
|
+
* Full-page loading indicator.
|
|
7
|
+
*
|
|
8
|
+
* Renders a centred spinner with an accessible status announcement.
|
|
9
|
+
* Use this for the initial data load of a page — not for incremental /
|
|
10
|
+
* background updates (use SmartLoadingOverlay for those).
|
|
11
|
+
*
|
|
12
|
+
* ## Usage
|
|
13
|
+
* Pass to SmartPage's `loading` and `loadingLabel` props for automatic
|
|
14
|
+
* placement, or render it directly inside a content area:
|
|
15
|
+
*
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Automatic — replaces all children while loading
|
|
18
|
+
* <SmartPage loading={isLoading} loadingLabel="Loading users…">
|
|
19
|
+
* …children…
|
|
20
|
+
* </SmartPage>
|
|
21
|
+
*
|
|
22
|
+
* // Manual — inside SmartPageContent
|
|
23
|
+
* <SmartPageContent>
|
|
24
|
+
* {isLoading ? <SmartPageLoading label="Loading report…" /> : <Report />}
|
|
25
|
+
* </SmartPageContent>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export const SmartPageLoading = ({ label = "Loading…", className, }) => (_jsxs("div", { role: "status", "aria-live": "polite", "aria-label": label, className: cn("flex h-full min-h-[240px] flex-col items-center justify-center gap-3", className), children: [_jsx(SmartSpinner, { size: 28, className: "text-primary", label: label }), _jsx("p", { className: "text-sm text-muted-foreground", children: label })] }));
|
|
29
|
+
//# sourceMappingURL=smart-page-loading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-loading.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-loading.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAA;AAS1E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,KAAK,GAAG,UAAU,EAClB,SAAS,GACa,EAAE,EAAE,CAAC,CAC3B,eACE,IAAI,EAAC,QAAQ,eACH,QAAQ,gBACN,KAAK,EACjB,SAAS,EAAE,EAAE,CACX,sEAAsE,EACtE,SAAS,CACV,aAED,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,EACjE,YAAG,SAAS,EAAC,+BAA+B,YAAE,KAAK,GAAK,IACpD,CACP,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageSearchProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Render a bottom border separating search from content.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
border?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Search bar container rendered below the toolbar.
|
|
11
|
+
*
|
|
12
|
+
* Provides consistent spacing and border treatment for a search input area.
|
|
13
|
+
* Compose a {@link SmartSearchInput} (or the `SmartSearch` alias) and any
|
|
14
|
+
* supporting controls (clear, scope selector) inside.
|
|
15
|
+
*
|
|
16
|
+
* Having a SmartPageSearch as a direct child of SmartPage does NOT by itself
|
|
17
|
+
* trigger a specific layout — it is combined with other slots. Pair it with
|
|
18
|
+
* {@link SmartGridArea} for a CRUD layout where search sticks above the grid.
|
|
19
|
+
*
|
|
20
|
+
* ## Stickiness
|
|
21
|
+
* Controlled by `stickySearch` on {@link SmartPage} (default: `true` for
|
|
22
|
+
* `"grid"` layout). In contained scroll modes the search bar sits above the
|
|
23
|
+
* scroll container and is already pinned; in `"page"` mode it joins the top
|
|
24
|
+
* sticky band.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <SmartPageSearch>
|
|
29
|
+
* <SmartSearch
|
|
30
|
+
* value={query}
|
|
31
|
+
* onValueChange={setQuery}
|
|
32
|
+
* placeholder="Search users…"
|
|
33
|
+
* className="w-80"
|
|
34
|
+
* />
|
|
35
|
+
* </SmartPageSearch>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare const SmartPageSearch: React.ForwardRefExoticComponent<SmartPageSearchProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
//# sourceMappingURL=smart-page-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-search.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-search.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChF;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe,6FAgB1B,CACD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* Search bar container rendered below the toolbar.
|
|
8
|
+
*
|
|
9
|
+
* Provides consistent spacing and border treatment for a search input area.
|
|
10
|
+
* Compose a {@link SmartSearchInput} (or the `SmartSearch` alias) and any
|
|
11
|
+
* supporting controls (clear, scope selector) inside.
|
|
12
|
+
*
|
|
13
|
+
* Having a SmartPageSearch as a direct child of SmartPage does NOT by itself
|
|
14
|
+
* trigger a specific layout — it is combined with other slots. Pair it with
|
|
15
|
+
* {@link SmartGridArea} for a CRUD layout where search sticks above the grid.
|
|
16
|
+
*
|
|
17
|
+
* ## Stickiness
|
|
18
|
+
* Controlled by `stickySearch` on {@link SmartPage} (default: `true` for
|
|
19
|
+
* `"grid"` layout). In contained scroll modes the search bar sits above the
|
|
20
|
+
* scroll container and is already pinned; in `"page"` mode it joins the top
|
|
21
|
+
* sticky band.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <SmartPageSearch>
|
|
26
|
+
* <SmartSearch
|
|
27
|
+
* value={query}
|
|
28
|
+
* onValueChange={setQuery}
|
|
29
|
+
* placeholder="Search users…"
|
|
30
|
+
* className="w-80"
|
|
31
|
+
* />
|
|
32
|
+
* </SmartPageSearch>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export const SmartPageSearch = React.forwardRef(({ border = true, className, children, ...props }, ref) => (_jsx("div", { ref: ref, "data-slot": "page-search", className: cn("flex shrink-0 items-center gap-3 px-4 py-2", border && "border-b", className), ...props, children: children })));
|
|
36
|
+
SmartPageSearch[SMART_PAGE_SLOT] =
|
|
37
|
+
"search";
|
|
38
|
+
//# sourceMappingURL=smart-page-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-search.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-search.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;AAU9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAG7C,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3D,cACE,GAAG,EAAE,GAAG,eACE,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,4CAA4C,EAC5C,MAAM,IAAI,UAAU,EACpB,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACL,CACP,CAAC,CACD;AAAC,eAAsD,CAAC,eAAe,CAAC;IACvE,QAAQ,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageSectionProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
/** Optional section heading. */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Optional supporting description rendered below the title. */
|
|
6
|
+
description?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Show a border beneath the section heading, separating it from the body.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
divider?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Renders a border around the entire section.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
bordered?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Applies standard section padding (horizontal + vertical).
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
padding?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Named region within a content area, used to group related form fields,
|
|
25
|
+
* settings controls, or information blocks.
|
|
26
|
+
*
|
|
27
|
+
* SmartPageSection provides a consistent heading + body structure without
|
|
28
|
+
* imposing card or box styling — it's a semantic wrapper, not a visual frame.
|
|
29
|
+
* For framed cards, combine with the shadcn `Card` primitive.
|
|
30
|
+
*
|
|
31
|
+
* ## When to use
|
|
32
|
+
* - Settings pages: one section per logical settings group
|
|
33
|
+
* - Forms: one section per form fieldset
|
|
34
|
+
* - Detail pages: one section per entity attribute group
|
|
35
|
+
*
|
|
36
|
+
* @example Settings section
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <SmartPageSection
|
|
39
|
+
* title="Notifications"
|
|
40
|
+
* description="Choose how and when you receive notifications."
|
|
41
|
+
* divider
|
|
42
|
+
* >
|
|
43
|
+
* <NotificationForm />
|
|
44
|
+
* </SmartPageSection>
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @example Borderless information block
|
|
48
|
+
* ```tsx
|
|
49
|
+
* <SmartPageSection title="Recent activity">
|
|
50
|
+
* <ActivityList />
|
|
51
|
+
* </SmartPageSection>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare const SmartPageSection: React.ForwardRefExoticComponent<SmartPageSectionProps & React.RefAttributes<HTMLElement>>;
|
|
55
|
+
//# sourceMappingURL=smart-page-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-section.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC9E,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,gBAAgB,2FA8C5B,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { Separator } from "@iamsaroj/smart-ui/components/separator";
|
|
6
|
+
/**
|
|
7
|
+
* Named region within a content area, used to group related form fields,
|
|
8
|
+
* settings controls, or information blocks.
|
|
9
|
+
*
|
|
10
|
+
* SmartPageSection provides a consistent heading + body structure without
|
|
11
|
+
* imposing card or box styling — it's a semantic wrapper, not a visual frame.
|
|
12
|
+
* For framed cards, combine with the shadcn `Card` primitive.
|
|
13
|
+
*
|
|
14
|
+
* ## When to use
|
|
15
|
+
* - Settings pages: one section per logical settings group
|
|
16
|
+
* - Forms: one section per form fieldset
|
|
17
|
+
* - Detail pages: one section per entity attribute group
|
|
18
|
+
*
|
|
19
|
+
* @example Settings section
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <SmartPageSection
|
|
22
|
+
* title="Notifications"
|
|
23
|
+
* description="Choose how and when you receive notifications."
|
|
24
|
+
* divider
|
|
25
|
+
* >
|
|
26
|
+
* <NotificationForm />
|
|
27
|
+
* </SmartPageSection>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @example Borderless information block
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <SmartPageSection title="Recent activity">
|
|
33
|
+
* <ActivityList />
|
|
34
|
+
* </SmartPageSection>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export const SmartPageSection = React.forwardRef(({ title, description, divider = false, bordered = false, padding = true, className, children, ...props }, ref) => {
|
|
38
|
+
const hasHeading = Boolean(title || description);
|
|
39
|
+
return (_jsxs("section", { ref: ref, "data-slot": "page-section", className: cn("flex flex-col gap-4", padding && "py-6", bordered && "rounded-lg border p-6", className), ...props, children: [hasHeading && (_jsxs("div", { className: "flex flex-col gap-1", children: [title && (_jsx("h2", { className: "text-sm leading-tight font-semibold", children: title })), description && (_jsx("p", { className: "text-xs text-muted-foreground", children: description })), divider && _jsx(Separator, { className: "mt-2" })] })), _jsx("div", { className: "flex flex-col gap-3", children: children })] }));
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=smart-page-section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-section.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-section.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AAwBnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAI9C,CACE,EACE,KAAK,EACL,WAAW,EACX,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,IAAI,EACd,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,IAAI,WAAW,CAAC,CAAA;IAEhD,OAAO,CACL,mBACE,GAAG,EAAE,GAAG,eACE,cAAc,EACxB,SAAS,EAAE,EAAE,CACX,qBAAqB,EACrB,OAAO,IAAI,MAAM,EACjB,QAAQ,IAAI,uBAAuB,EACnC,SAAS,CACV,KACG,KAAK,aAER,UAAU,IAAI,CACb,eAAK,SAAS,EAAC,qBAAqB,aACjC,KAAK,IAAI,CACR,aAAI,SAAS,EAAC,qCAAqC,YAAE,KAAK,GAAM,CACjE,EACA,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,+BAA+B,YAAE,WAAW,GAAK,CAC/D,EACA,OAAO,IAAI,KAAC,SAAS,IAAC,SAAS,EAAC,MAAM,GAAG,IACtC,CACP,EACD,cAAK,SAAS,EAAC,qBAAqB,YAAE,QAAQ,GAAO,IAC7C,CACX,CAAA;AACH,CAAC,CACF,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartPageStatusBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Render a top border separating the status bar from the grid / content.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
border?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Status bar pinned between the grid area and the footer.
|
|
11
|
+
*
|
|
12
|
+
* Shows lightweight contextual information about the primary data set:
|
|
13
|
+
* total row counts, active selection counts, last-updated timestamps,
|
|
14
|
+
* data quality warnings, or sync status indicators.
|
|
15
|
+
*
|
|
16
|
+
* ## Stickiness
|
|
17
|
+
* Controlled by `stickyStatusBar` on SmartPage (default `true` for `"grid"`
|
|
18
|
+
* layout). In contained modes it sits below the scroll container and is always
|
|
19
|
+
* visible. In `"page"` mode it joins the bottom sticky band with the footer.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <SmartPageStatusBar>
|
|
24
|
+
* <span className="text-xs text-muted-foreground">
|
|
25
|
+
* {total.toLocaleString()} users — {selected} selected
|
|
26
|
+
* </span>
|
|
27
|
+
* <span className="ms-auto text-xs text-muted-foreground">
|
|
28
|
+
* Last synced 3 minutes ago
|
|
29
|
+
* </span>
|
|
30
|
+
* </SmartPageStatusBar>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare const SmartPageStatusBar: React.ForwardRefExoticComponent<SmartPageStatusBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
//# sourceMappingURL=smart-page-status-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-status-bar.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-status-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACnF;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,kBAAkB,gGAgB7B,CACD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* Status bar pinned between the grid area and the footer.
|
|
8
|
+
*
|
|
9
|
+
* Shows lightweight contextual information about the primary data set:
|
|
10
|
+
* total row counts, active selection counts, last-updated timestamps,
|
|
11
|
+
* data quality warnings, or sync status indicators.
|
|
12
|
+
*
|
|
13
|
+
* ## Stickiness
|
|
14
|
+
* Controlled by `stickyStatusBar` on SmartPage (default `true` for `"grid"`
|
|
15
|
+
* layout). In contained modes it sits below the scroll container and is always
|
|
16
|
+
* visible. In `"page"` mode it joins the bottom sticky band with the footer.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <SmartPageStatusBar>
|
|
21
|
+
* <span className="text-xs text-muted-foreground">
|
|
22
|
+
* {total.toLocaleString()} users — {selected} selected
|
|
23
|
+
* </span>
|
|
24
|
+
* <span className="ms-auto text-xs text-muted-foreground">
|
|
25
|
+
* Last synced 3 minutes ago
|
|
26
|
+
* </span>
|
|
27
|
+
* </SmartPageStatusBar>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export const SmartPageStatusBar = React.forwardRef(({ border = true, className, children, ...props }, ref) => (_jsx("div", { ref: ref, "data-slot": "page-status-bar", className: cn("flex shrink-0 items-center gap-4 px-4 py-1.5", border && "border-t", className), ...props, children: children })));
|
|
31
|
+
SmartPageStatusBar[SMART_PAGE_SLOT] =
|
|
32
|
+
"status-bar";
|
|
33
|
+
//# sourceMappingURL=smart-page-status-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-page-status-bar.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-status-bar.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;AAU9C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAGhD,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3D,cACE,GAAG,EAAE,GAAG,eACE,iBAAiB,EAC3B,SAAS,EAAE,EAAE,CACX,8CAA8C,EAC9C,MAAM,IAAI,UAAU,EACpB,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACL,CACP,CAAC,CACD;AAAC,kBAAyD,CAAC,eAAe,CAAC;IAC1E,YAAY,CAAA"}
|