@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,70 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const WIDTH_CLASSES: {
|
|
3
|
+
readonly xs: "w-48";
|
|
4
|
+
readonly sm: "w-64";
|
|
5
|
+
readonly md: "w-80";
|
|
6
|
+
readonly lg: "w-96";
|
|
7
|
+
readonly xl: "w-[28rem]";
|
|
8
|
+
};
|
|
9
|
+
export interface SmartSidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Width of the sidebar panel.
|
|
12
|
+
* @default "md"
|
|
13
|
+
*/
|
|
14
|
+
width?: keyof typeof WIDTH_CLASSES;
|
|
15
|
+
/**
|
|
16
|
+
* Which side of the content area the sidebar appears on.
|
|
17
|
+
* @default "right"
|
|
18
|
+
*/
|
|
19
|
+
position?: "left" | "right";
|
|
20
|
+
/**
|
|
21
|
+
* Render a border on the edge adjacent to the main content.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
border?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Optional title rendered at the top of the sidebar with consistent padding.
|
|
27
|
+
*/
|
|
28
|
+
title?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Internal padding.
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
padding?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Vertical side panel for split-layout pages.
|
|
37
|
+
*
|
|
38
|
+
* Placing a SmartSidebar as a direct child of {@link SmartPage} causes
|
|
39
|
+
* auto-detection of the `"split"` layout, where the main content area and
|
|
40
|
+
* sidebar appear side by side.
|
|
41
|
+
*
|
|
42
|
+
* The sidebar scrolls independently — it has its own `overflow-y-auto` so
|
|
43
|
+
* long content doesn't interfere with the main content scroll area.
|
|
44
|
+
*
|
|
45
|
+
* ## Width
|
|
46
|
+
* Use the `width` token for standard sizes. For custom widths, pass a
|
|
47
|
+
* `className` with a `w-[...]` value.
|
|
48
|
+
*
|
|
49
|
+
* ## Position
|
|
50
|
+
* `"right"` (default) renders a `border-l`; `"left"` renders a `border-r`.
|
|
51
|
+
*
|
|
52
|
+
* @example Detail page with right sidebar
|
|
53
|
+
* ```tsx
|
|
54
|
+
* <SmartPage layout="split">
|
|
55
|
+
* <SmartPageHeader>
|
|
56
|
+
* <SmartPageTitle>Issue #1234</SmartPageTitle>
|
|
57
|
+
* </SmartPageHeader>
|
|
58
|
+
* <SmartPageContent padding="md">
|
|
59
|
+
* <IssueDescription />
|
|
60
|
+
* <CommentThread />
|
|
61
|
+
* </SmartPageContent>
|
|
62
|
+
* <SmartSidebar width="sm" title="Details">
|
|
63
|
+
* <IssueMetadata />
|
|
64
|
+
* </SmartSidebar>
|
|
65
|
+
* </SmartPage>
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export declare const SmartSidebar: React.ForwardRefExoticComponent<SmartSidebarProps & React.RefAttributes<HTMLElement>>;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=smart-sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-sidebar.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,QAAA,MAAM,aAAa;;;;;;CAMT,CAAA;AAEV,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,OAAO,aAAa,CAAA;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,YAAY,uFA4CxB,CACA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { usePageContext } from "./page-context";
|
|
6
|
+
import { SMART_PAGE_SLOT } from "./smart-page";
|
|
7
|
+
const WIDTH_CLASSES = {
|
|
8
|
+
xs: "w-48",
|
|
9
|
+
sm: "w-64",
|
|
10
|
+
md: "w-80",
|
|
11
|
+
lg: "w-96",
|
|
12
|
+
xl: "w-[28rem]",
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Vertical side panel for split-layout pages.
|
|
16
|
+
*
|
|
17
|
+
* Placing a SmartSidebar as a direct child of {@link SmartPage} causes
|
|
18
|
+
* auto-detection of the `"split"` layout, where the main content area and
|
|
19
|
+
* sidebar appear side by side.
|
|
20
|
+
*
|
|
21
|
+
* The sidebar scrolls independently — it has its own `overflow-y-auto` so
|
|
22
|
+
* long content doesn't interfere with the main content scroll area.
|
|
23
|
+
*
|
|
24
|
+
* ## Width
|
|
25
|
+
* Use the `width` token for standard sizes. For custom widths, pass a
|
|
26
|
+
* `className` with a `w-[...]` value.
|
|
27
|
+
*
|
|
28
|
+
* ## Position
|
|
29
|
+
* `"right"` (default) renders a `border-l`; `"left"` renders a `border-r`.
|
|
30
|
+
*
|
|
31
|
+
* @example Detail page with right sidebar
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <SmartPage layout="split">
|
|
34
|
+
* <SmartPageHeader>
|
|
35
|
+
* <SmartPageTitle>Issue #1234</SmartPageTitle>
|
|
36
|
+
* </SmartPageHeader>
|
|
37
|
+
* <SmartPageContent padding="md">
|
|
38
|
+
* <IssueDescription />
|
|
39
|
+
* <CommentThread />
|
|
40
|
+
* </SmartPageContent>
|
|
41
|
+
* <SmartSidebar width="sm" title="Details">
|
|
42
|
+
* <IssueMetadata />
|
|
43
|
+
* </SmartSidebar>
|
|
44
|
+
* </SmartPage>
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export const SmartSidebar = React.forwardRef(({ width = "md", position = "right", border = true, title, padding = true, className, children, ...props }, ref) => {
|
|
48
|
+
const { scroll } = usePageContext();
|
|
49
|
+
const isContained = scroll === "content" || scroll === "grid";
|
|
50
|
+
return (_jsxs("aside", { ref: ref, "data-slot": "sidebar", className: cn("flex shrink-0 flex-col", WIDTH_CLASSES[width], isContained && "overflow-y-auto", position === "right" && border && "border-l", position === "left" && border && "border-r", className), ...props, children: [title && (_jsx("div", { className: "shrink-0 border-b px-4 py-3", children: _jsx("h3", { className: "text-xs font-semibold tracking-wide text-muted-foreground uppercase", children: title }) })), _jsx("div", { className: cn("flex flex-1 flex-col", padding && "p-4"), children: children })] }));
|
|
51
|
+
});
|
|
52
|
+
SmartSidebar[SMART_PAGE_SLOT] =
|
|
53
|
+
"sidebar";
|
|
54
|
+
//# sourceMappingURL=smart-sidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-sidebar.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-sidebar.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,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,aAAa,GAAG;IACpB,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,WAAW;CACP,CAAA;AA6BV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAC1C,CACE,EACE,KAAK,GAAG,IAAI,EACZ,QAAQ,GAAG,OAAO,EAClB,MAAM,GAAG,IAAI,EACb,KAAK,EACL,OAAO,GAAG,IAAI,EACd,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,CAAA;IACnC,MAAM,WAAW,GAAG,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,MAAM,CAAA;IAE7D,OAAO,CACL,iBACE,GAAG,EAAE,GAAG,eACE,SAAS,EACnB,SAAS,EAAE,EAAE,CACX,wBAAwB,EACxB,aAAa,CAAC,KAAK,CAAC,EACpB,WAAW,IAAI,iBAAiB,EAChC,QAAQ,KAAK,OAAO,IAAI,MAAM,IAAI,UAAU,EAC5C,QAAQ,KAAK,MAAM,IAAI,MAAM,IAAI,UAAU,EAC3C,SAAS,CACV,KACG,KAAK,aAER,KAAK,IAAI,CACR,cAAK,SAAS,EAAC,6BAA6B,YAC1C,aAAI,SAAS,EAAC,qEAAqE,YAChF,KAAK,GACH,GACD,CACP,EACD,cAAK,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,OAAO,IAAI,KAAK,CAAC,YACzD,QAAQ,GACL,IACA,CACT,CAAA;AACH,CAAC,CACF,CACA;AAAC,YAAmD,CAAC,eAAe,CAAC;IACpE,SAAS,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Render a bottom border separating the toolbar from page content.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
border?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Horizontal action bar rendered below the page header.
|
|
11
|
+
*
|
|
12
|
+
* The toolbar hosts controls that operate on the page's primary data set:
|
|
13
|
+
* search inputs, filter toggles, view-density selectors, column pickers,
|
|
14
|
+
* bulk action menus, and pagination controls. It is intentionally separate
|
|
15
|
+
* from {@link SmartPageHeader} so header (identity) and toolbar (operations)
|
|
16
|
+
* can be styled and positioned independently.
|
|
17
|
+
*
|
|
18
|
+
* ## Stickiness
|
|
19
|
+
* When `stickyToolbar` is set on {@link SmartPage}, the toolbar sticks below
|
|
20
|
+
* the header in `"page"` scroll mode (grouped in a single `sticky top-0`
|
|
21
|
+
* band with the header). In `"grid"` / `"content"` modes it is above the
|
|
22
|
+
* scroll container and always visible.
|
|
23
|
+
*
|
|
24
|
+
* ## Layout
|
|
25
|
+
* Children are arranged in a flex row with a gap. Use `ms-auto` on a child
|
|
26
|
+
* to push it to the trailing edge.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <SmartToolbar>
|
|
31
|
+
* <SmartSearch value={q} onValueChange={setQ} />
|
|
32
|
+
* <Button variant="outline" size="sm"><Filter /> Filters</Button>
|
|
33
|
+
* <span className="ms-auto" />
|
|
34
|
+
* <Button variant="ghost" size="icon"><LayoutList /></Button>
|
|
35
|
+
* <Button variant="ghost" size="icon"><LayoutGrid /></Button>
|
|
36
|
+
* </SmartToolbar>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare const SmartToolbar: React.ForwardRefExoticComponent<SmartToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
//# sourceMappingURL=smart-toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-toolbar.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,YAAY,0FAexB,CACA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* Horizontal action bar rendered below the page header.
|
|
8
|
+
*
|
|
9
|
+
* The toolbar hosts controls that operate on the page's primary data set:
|
|
10
|
+
* search inputs, filter toggles, view-density selectors, column pickers,
|
|
11
|
+
* bulk action menus, and pagination controls. It is intentionally separate
|
|
12
|
+
* from {@link SmartPageHeader} so header (identity) and toolbar (operations)
|
|
13
|
+
* can be styled and positioned independently.
|
|
14
|
+
*
|
|
15
|
+
* ## Stickiness
|
|
16
|
+
* When `stickyToolbar` is set on {@link SmartPage}, the toolbar sticks below
|
|
17
|
+
* the header in `"page"` scroll mode (grouped in a single `sticky top-0`
|
|
18
|
+
* band with the header). In `"grid"` / `"content"` modes it is above the
|
|
19
|
+
* scroll container and always visible.
|
|
20
|
+
*
|
|
21
|
+
* ## Layout
|
|
22
|
+
* Children are arranged in a flex row with a gap. Use `ms-auto` on a child
|
|
23
|
+
* to push it to the trailing edge.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <SmartToolbar>
|
|
28
|
+
* <SmartSearch value={q} onValueChange={setQ} />
|
|
29
|
+
* <Button variant="outline" size="sm"><Filter /> Filters</Button>
|
|
30
|
+
* <span className="ms-auto" />
|
|
31
|
+
* <Button variant="ghost" size="icon"><LayoutList /></Button>
|
|
32
|
+
* <Button variant="ghost" size="icon"><LayoutGrid /></Button>
|
|
33
|
+
* </SmartToolbar>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export const SmartToolbar = React.forwardRef(({ border = true, className, children, ...props }, ref) => (_jsx("div", { ref: ref, "data-slot": "toolbar", className: cn("flex shrink-0 items-center gap-2 px-4 py-2", border && "border-b", className), ...props, children: children })));
|
|
37
|
+
SmartToolbar[SMART_PAGE_SLOT] =
|
|
38
|
+
"toolbar";
|
|
39
|
+
//# sourceMappingURL=smart-toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-toolbar.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-toolbar.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAC1C,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACzD,cACE,GAAG,EAAE,GAAG,eACE,SAAS,EACnB,SAAS,EAAE,EAAE,CACX,4CAA4C,EAC5C,MAAM,IAAI,UAAU,EACpB,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACL,CACP,CACF,CACA;AAAC,YAAmD,CAAC,eAAe,CAAC;IACpE,SAAS,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SmartSearchInputProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onValueChange: (value: string) => void;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
"aria-label"?: string;
|
|
7
|
+
/**
|
|
8
|
+
* By default the query may not *start* with whitespace: Space at the
|
|
9
|
+
* beginning is ignored and pasted leading spaces are stripped; spaces after
|
|
10
|
+
* the first character work normally. Set to `true` to allow a leading space.
|
|
11
|
+
*/
|
|
12
|
+
allowLeadingSpace?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Controlled search input with a leading magnifier icon and a clear button that
|
|
16
|
+
* appears once the field is non-empty. A thin, presentational control — debouncing
|
|
17
|
+
* and query wiring are left to the caller.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SmartSearchInput: ({ value, onValueChange, placeholder, className, "aria-label": ariaLabel, allowLeadingSpace, }: SmartSearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=search-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/smart-components/search-input.tsx"],"names":[],"mappings":"AAWA,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,+FAO9B,qBAAqB,4CAyBvB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Search, X } from "lucide-react";
|
|
3
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
4
|
+
import { withLeadingSpaceGuard } from "@iamsaroj/smart-ui/lib/leading-space";
|
|
5
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from "@iamsaroj/smart-ui/components/input-group";
|
|
6
|
+
/**
|
|
7
|
+
* Controlled search input with a leading magnifier icon and a clear button that
|
|
8
|
+
* appears once the field is non-empty. A thin, presentational control — debouncing
|
|
9
|
+
* and query wiring are left to the caller.
|
|
10
|
+
*/
|
|
11
|
+
export const SmartSearchInput = ({ value, onValueChange, placeholder = "Search…", className, "aria-label": ariaLabel, allowLeadingSpace, }) => (_jsxs(InputGroup, { className: cn(className), children: [_jsx(InputGroupAddon, { children: _jsx(Search, { className: "text-muted-foreground" }) }), _jsx(InputGroupInput, { value: value, placeholder: placeholder, "aria-label": ariaLabel, ...withLeadingSpaceGuard({ onChange: (e) => onValueChange(e.target.value) }, allowLeadingSpace) }), value ? (_jsx(InputGroupAddon, { align: "inline-end", children: _jsx(InputGroupButton, { onClick: () => onValueChange(""), "aria-label": "Clear search", children: _jsx(X, {}) }) })) : null] }));
|
|
12
|
+
//# sourceMappingURL=search-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-input.js","sourceRoot":"","sources":["../../src/smart-components/search-input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,eAAe,GAChB,MAAM,2CAA2C,CAAA;AAgBlD;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,KAAK,EACL,aAAa,EACb,WAAW,GAAG,SAAS,EACvB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,iBAAiB,GACK,EAAE,EAAE,CAAC,CAC3B,MAAC,UAAU,IAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,aAClC,KAAC,eAAe,cACd,KAAC,MAAM,IAAC,SAAS,EAAC,uBAAuB,GAAG,GAC5B,EAClB,KAAC,eAAe,IACd,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,gBACZ,SAAS,KACjB,qBAAqB,CACvB,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAClD,iBAAiB,CAClB,GACD,EACD,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,eAAe,IAAC,KAAK,EAAC,YAAY,YACjC,KAAC,gBAAgB,IACf,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,gBACrB,cAAc,YAEzB,KAAC,CAAC,KAAG,GACY,GACH,CACnB,CAAC,CAAC,CAAC,IAAI,IACG,CACd,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartAccordionItem {
|
|
3
|
+
/** Unique identifier. Must match across trigger and content. */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Text or node shown in the trigger row. */
|
|
6
|
+
trigger: React.ReactNode;
|
|
7
|
+
/** Expanded content panel. */
|
|
8
|
+
content: React.ReactNode;
|
|
9
|
+
/** Disable this specific item. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface SmartAccordionProps {
|
|
13
|
+
/** Ordered list of accordion items. */
|
|
14
|
+
items: SmartAccordionItem[];
|
|
15
|
+
/** Allow more than one item open at a time. @default false */
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
/** Uncontrolled default open values. */
|
|
18
|
+
defaultValue?: string[];
|
|
19
|
+
/** Controlled open values. */
|
|
20
|
+
value?: string[];
|
|
21
|
+
onValueChange?: (value: string[]) => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Data-driven accordion. Replaces the repetitive item/trigger/content triple.
|
|
26
|
+
*
|
|
27
|
+
* ```tsx
|
|
28
|
+
* // Before
|
|
29
|
+
* <Accordion>
|
|
30
|
+
* <AccordionItem value="q1">
|
|
31
|
+
* <AccordionTrigger>How does billing work?</AccordionTrigger>
|
|
32
|
+
* <AccordionContent>You are billed monthly…</AccordionContent>
|
|
33
|
+
* </AccordionItem>
|
|
34
|
+
* <AccordionItem value="q2">
|
|
35
|
+
* <AccordionTrigger>Can I cancel?</AccordionTrigger>
|
|
36
|
+
* <AccordionContent>Yes, at any time.</AccordionContent>
|
|
37
|
+
* </AccordionItem>
|
|
38
|
+
* </Accordion>
|
|
39
|
+
*
|
|
40
|
+
* // After
|
|
41
|
+
* <SmartAccordion
|
|
42
|
+
* items={[
|
|
43
|
+
* { value: "q1", trigger: "How does billing work?", content: "You are billed monthly…" },
|
|
44
|
+
* { value: "q2", trigger: "Can I cancel?", content: "Yes, at any time." },
|
|
45
|
+
* ]}
|
|
46
|
+
* />
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* Fall back to native Accordion primitives when items have heterogeneous
|
|
50
|
+
* trigger layouts (icons, badges, counts) that differ per item.
|
|
51
|
+
*/
|
|
52
|
+
export declare const SmartAccordion: ({ items, multiple, defaultValue, value, onValueChange, className, }: SmartAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
//# sourceMappingURL=smart-accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-accordion.d.ts","sourceRoot":"","sources":["../../src/smart-components/smart-accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,6CAA6C;IAC7C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,8BAA8B;IAC9B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,cAAc,GAAI,qEAO5B,mBAAmB,4CAmBrB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@iamsaroj/smart-ui/components/accordion";
|
|
4
|
+
/**
|
|
5
|
+
* Data-driven accordion. Replaces the repetitive item/trigger/content triple.
|
|
6
|
+
*
|
|
7
|
+
* ```tsx
|
|
8
|
+
* // Before
|
|
9
|
+
* <Accordion>
|
|
10
|
+
* <AccordionItem value="q1">
|
|
11
|
+
* <AccordionTrigger>How does billing work?</AccordionTrigger>
|
|
12
|
+
* <AccordionContent>You are billed monthly…</AccordionContent>
|
|
13
|
+
* </AccordionItem>
|
|
14
|
+
* <AccordionItem value="q2">
|
|
15
|
+
* <AccordionTrigger>Can I cancel?</AccordionTrigger>
|
|
16
|
+
* <AccordionContent>Yes, at any time.</AccordionContent>
|
|
17
|
+
* </AccordionItem>
|
|
18
|
+
* </Accordion>
|
|
19
|
+
*
|
|
20
|
+
* // After
|
|
21
|
+
* <SmartAccordion
|
|
22
|
+
* items={[
|
|
23
|
+
* { value: "q1", trigger: "How does billing work?", content: "You are billed monthly…" },
|
|
24
|
+
* { value: "q2", trigger: "Can I cancel?", content: "Yes, at any time." },
|
|
25
|
+
* ]}
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* Fall back to native Accordion primitives when items have heterogeneous
|
|
30
|
+
* trigger layouts (icons, badges, counts) that differ per item.
|
|
31
|
+
*/
|
|
32
|
+
export const SmartAccordion = ({ items, multiple = false, defaultValue, value, onValueChange, className, }) => (_jsx(Accordion, { multiple: multiple, defaultValue: defaultValue, value: value, onValueChange: onValueChange, className: className, children: items.map((item) => (_jsxs(AccordionItem, { value: item.value, disabled: item.disabled, children: [_jsx(AccordionTrigger, { children: item.trigger }), _jsx(AccordionContent, { children: item.content })] }, item.value))) }));
|
|
33
|
+
//# sourceMappingURL=smart-accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-accordion.js","sourceRoot":"","sources":["../../src/smart-components/smart-accordion.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,gBAAgB,GACjB,MAAM,yCAAyC,CAAA;AA0BhD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,YAAY,EACZ,KAAK,EACL,aAAa,EACb,SAAS,GACW,EAAE,EAAE,CAAC,CACzB,KAAC,SAAS,IACR,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,SAAS,YAEnB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,MAAC,aAAa,IAEZ,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,aAEvB,KAAC,gBAAgB,cAAE,IAAI,CAAC,OAAO,GAAoB,EACnD,KAAC,gBAAgB,cAAE,IAAI,CAAC,OAAO,GAAoB,KAL9C,IAAI,CAAC,KAAK,CAMD,CACjB,CAAC,GACQ,CACb,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SmartAlertProps {
|
|
3
|
+
/**
|
|
4
|
+
* Icon placed on the leading edge (auto-sized by Alert styles).
|
|
5
|
+
* Recommended: a Lucide icon with no explicit size class.
|
|
6
|
+
*/
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
/** Bold headline. */
|
|
9
|
+
title?: React.ReactNode;
|
|
10
|
+
/** Supporting body text. */
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Action element anchored to the trailing edge (inside AlertAction).
|
|
14
|
+
* Typically a small Button or link.
|
|
15
|
+
*/
|
|
16
|
+
action?: React.ReactNode;
|
|
17
|
+
/** `"destructive"` renders the alert in error/red tones. @default "default" */
|
|
18
|
+
variant?: "default" | "destructive";
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Flattened Alert wrapper for inline status banners.
|
|
23
|
+
*
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // Before
|
|
26
|
+
* <Alert variant="destructive">
|
|
27
|
+
* <AlertCircle />
|
|
28
|
+
* <AlertTitle>Payment failed</AlertTitle>
|
|
29
|
+
* <AlertDescription>Please update your payment method.</AlertDescription>
|
|
30
|
+
* <AlertAction><Button size="sm" variant="outline">Update</Button></AlertAction>
|
|
31
|
+
* </Alert>
|
|
32
|
+
*
|
|
33
|
+
* // After
|
|
34
|
+
* <SmartAlert
|
|
35
|
+
* icon={<AlertCircle />}
|
|
36
|
+
* title="Payment failed"
|
|
37
|
+
* description="Please update your payment method."
|
|
38
|
+
* action={<Button size="sm" variant="outline">Update</Button>}
|
|
39
|
+
* variant="destructive"
|
|
40
|
+
* />
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare const SmartAlert: ({ icon, title, description, action, variant, className, }: SmartAlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
//# sourceMappingURL=smart-alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-alert.d.ts","sourceRoot":"","sources":["../../src/smart-components/smart-alert.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,qBAAqB;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAA;IACnC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU,GAAI,2DAOxB,eAAe,4CAOjB,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Alert, AlertAction, AlertDescription, AlertTitle, } from "@iamsaroj/smart-ui/components/alert";
|
|
4
|
+
/**
|
|
5
|
+
* Flattened Alert wrapper for inline status banners.
|
|
6
|
+
*
|
|
7
|
+
* ```tsx
|
|
8
|
+
* // Before
|
|
9
|
+
* <Alert variant="destructive">
|
|
10
|
+
* <AlertCircle />
|
|
11
|
+
* <AlertTitle>Payment failed</AlertTitle>
|
|
12
|
+
* <AlertDescription>Please update your payment method.</AlertDescription>
|
|
13
|
+
* <AlertAction><Button size="sm" variant="outline">Update</Button></AlertAction>
|
|
14
|
+
* </Alert>
|
|
15
|
+
*
|
|
16
|
+
* // After
|
|
17
|
+
* <SmartAlert
|
|
18
|
+
* icon={<AlertCircle />}
|
|
19
|
+
* title="Payment failed"
|
|
20
|
+
* description="Please update your payment method."
|
|
21
|
+
* action={<Button size="sm" variant="outline">Update</Button>}
|
|
22
|
+
* variant="destructive"
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export const SmartAlert = ({ icon, title, description, action, variant = "default", className, }) => (_jsxs(Alert, { variant: variant, className: className, children: [icon, title != null && _jsx(AlertTitle, { children: title }), description != null && _jsx(AlertDescription, { children: description }), action != null && _jsx(AlertAction, { children: action })] }));
|
|
27
|
+
//# sourceMappingURL=smart-alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-alert.js","sourceRoot":"","sources":["../../src/smart-components/smart-alert.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EACL,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,UAAU,GACX,MAAM,qCAAqC,CAAA;AAsB5C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,MAAM,EACN,OAAO,GAAG,SAAS,EACnB,SAAS,GACO,EAAE,EAAE,CAAC,CACrB,MAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,aAC1C,IAAI,EACJ,KAAK,IAAI,IAAI,IAAI,KAAC,UAAU,cAAE,KAAK,GAAc,EACjD,WAAW,IAAI,IAAI,IAAI,KAAC,gBAAgB,cAAE,WAAW,GAAoB,EACzE,MAAM,IAAI,IAAI,IAAI,KAAC,WAAW,cAAE,MAAM,GAAe,IAChD,CACT,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-avatar.d.ts","sourceRoot":"","sources":["../../src/smart-components/smart-avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,WAAW,EACZ,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,WAAW,GACZ,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge, } from "@iamsaroj/smart-ui/components/avatar";
|
|
3
|
+
export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge, };
|
|
4
|
+
//# sourceMappingURL=smart-avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-avatar.js","sourceRoot":"","sources":["../../src/smart-components/smart-avatar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,WAAW,GACZ,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,WAAW,GACZ,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import { badgeVariants } from "@iamsaroj/smart-ui/components/badge";
|
|
4
|
+
export interface SmartBadgeProps extends VariantProps<typeof badgeVariants> {
|
|
5
|
+
/** Leading status dot. */
|
|
6
|
+
dot?: boolean;
|
|
7
|
+
/** Color of the dot. @default "gray" */
|
|
8
|
+
dotColor?: "gray" | "green" | "red" | "yellow" | "blue";
|
|
9
|
+
/** Callback for the × remove button. Renders a remove button when provided. */
|
|
10
|
+
onRemove?: () => void;
|
|
11
|
+
/** Accessible label for the remove button. @default "Remove" */
|
|
12
|
+
removeLabel?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Badge extended with a leading status dot and/or a trailing remove button.
|
|
18
|
+
*
|
|
19
|
+
* ```tsx
|
|
20
|
+
* // Status badge with dot
|
|
21
|
+
* <SmartBadge variant="secondary" dot dotColor="green">Active</SmartBadge>
|
|
22
|
+
*
|
|
23
|
+
* // Removable tag
|
|
24
|
+
* <SmartBadge variant="outline" onRemove={() => removeTag(id)}>React</SmartBadge>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const SmartBadge: ({ dot, dotColor, onRemove, removeLabel, children, className, variant, }: SmartBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=smart-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-badge.d.ts","sourceRoot":"","sources":["../../src/smart-components/smart-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAUnE,MAAM,WAAW,eAAgB,SAAQ,YAAY,CAAC,OAAO,aAAa,CAAC;IACzE,0BAA0B;IAC1B,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;IACvD,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GAAI,yEAQxB,eAAe,4CA0BjB,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { X } from "lucide-react";
|
|
3
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
4
|
+
import { Badge } from "@iamsaroj/smart-ui/components/badge";
|
|
5
|
+
const dotColors = {
|
|
6
|
+
gray: "bg-muted-foreground",
|
|
7
|
+
green: "bg-green-500",
|
|
8
|
+
red: "bg-red-500",
|
|
9
|
+
yellow: "bg-yellow-500",
|
|
10
|
+
blue: "bg-blue-500",
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Badge extended with a leading status dot and/or a trailing remove button.
|
|
14
|
+
*
|
|
15
|
+
* ```tsx
|
|
16
|
+
* // Status badge with dot
|
|
17
|
+
* <SmartBadge variant="secondary" dot dotColor="green">Active</SmartBadge>
|
|
18
|
+
*
|
|
19
|
+
* // Removable tag
|
|
20
|
+
* <SmartBadge variant="outline" onRemove={() => removeTag(id)}>React</SmartBadge>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export const SmartBadge = ({ dot, dotColor = "gray", onRemove, removeLabel = "Remove", children, className, variant, }) => (_jsxs(Badge, { variant: variant, className: cn("gap-1", onRemove && "pr-0.5", className), children: [dot && (_jsx("span", { "aria-hidden": "true", className: cn("size-1.5 shrink-0 rounded-full", dotColors[dotColor] ?? dotColors.gray) })), children, onRemove && (_jsx("button", { type: "button", onClick: onRemove, "aria-label": removeLabel, className: "ml-0.5 inline-flex size-3.5 items-center justify-center rounded-full opacity-60 outline-none hover:opacity-100 focus-visible:ring-1 focus-visible:ring-current", children: _jsx(X, { className: "size-2.5", "aria-hidden": "true" }) }))] }));
|
|
24
|
+
//# sourceMappingURL=smart-badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-badge.js","sourceRoot":"","sources":["../../src/smart-components/smart-badge.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAA;AAI3D,MAAM,SAAS,GAA2B;IACxC,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,cAAc;IACrB,GAAG,EAAE,YAAY;IACjB,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,aAAa;CACpB,CAAA;AAeD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,GAAG,EACH,QAAQ,GAAG,MAAM,EACjB,QAAQ,EACR,WAAW,GAAG,QAAQ,EACtB,QAAQ,EACR,SAAS,EACT,OAAO,GACS,EAAE,EAAE,CAAC,CACrB,MAAC,KAAK,IACJ,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,SAAS,CAAC,aAEtD,GAAG,IAAI,CACN,8BACc,MAAM,EAClB,SAAS,EAAE,EAAE,CACX,gCAAgC,EAChC,SAAS,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,IAAI,CACtC,GACD,CACH,EACA,QAAQ,EACR,QAAQ,IAAI,CACX,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,QAAQ,gBACL,WAAW,EACvB,SAAS,EAAC,gKAAgK,YAE1K,KAAC,CAAC,IAAC,SAAS,EAAC,UAAU,iBAAa,MAAM,GAAG,GACtC,CACV,IACK,CACT,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface SmartBreadcrumbItem {
|
|
2
|
+
label: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Applied to the BreadcrumbItem and the separator that precedes it,
|
|
6
|
+
* so hiding an item also hides its separator automatically.
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SmartBreadcrumbProps {
|
|
11
|
+
items: SmartBreadcrumbItem[];
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Flattened Breadcrumb wrapper. The last item always renders as
|
|
16
|
+
* BreadcrumbPage (non-linkable); preceding items render as BreadcrumbLink.
|
|
17
|
+
* Each separator inherits the `className` of the item that follows it.
|
|
18
|
+
*
|
|
19
|
+
* ```tsx
|
|
20
|
+
* // Before
|
|
21
|
+
* <Breadcrumb>
|
|
22
|
+
* <BreadcrumbList>
|
|
23
|
+
* <BreadcrumbItem className="hidden md:block">
|
|
24
|
+
* <BreadcrumbLink href="#">Settings</BreadcrumbLink>
|
|
25
|
+
* </BreadcrumbItem>
|
|
26
|
+
* <BreadcrumbSeparator className="hidden md:block" />
|
|
27
|
+
* <BreadcrumbItem>
|
|
28
|
+
* <BreadcrumbPage>Messages & media</BreadcrumbPage>
|
|
29
|
+
* </BreadcrumbItem>
|
|
30
|
+
* </BreadcrumbList>
|
|
31
|
+
* </Breadcrumb>
|
|
32
|
+
*
|
|
33
|
+
* // After
|
|
34
|
+
* <SmartBreadcrumb
|
|
35
|
+
* items={[
|
|
36
|
+
* { label: "Settings", href: "#", className: "hidden md:block" },
|
|
37
|
+
* { label: "Messages & media" },
|
|
38
|
+
* ]}
|
|
39
|
+
* />
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare const SmartBreadcrumb: ({ items, className }: SmartBreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
//# sourceMappingURL=smart-breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-breadcrumb.d.ts","sourceRoot":"","sources":["../../src/smart-components/smart-breadcrumb.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,mBAAmB,EAAE,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,eAAe,GAAI,sBAAsB,oBAAoB,4CAoBzE,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@iamsaroj/smart-ui/components/breadcrumb";
|
|
5
|
+
/**
|
|
6
|
+
* Flattened Breadcrumb wrapper. The last item always renders as
|
|
7
|
+
* BreadcrumbPage (non-linkable); preceding items render as BreadcrumbLink.
|
|
8
|
+
* Each separator inherits the `className` of the item that follows it.
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* // Before
|
|
12
|
+
* <Breadcrumb>
|
|
13
|
+
* <BreadcrumbList>
|
|
14
|
+
* <BreadcrumbItem className="hidden md:block">
|
|
15
|
+
* <BreadcrumbLink href="#">Settings</BreadcrumbLink>
|
|
16
|
+
* </BreadcrumbItem>
|
|
17
|
+
* <BreadcrumbSeparator className="hidden md:block" />
|
|
18
|
+
* <BreadcrumbItem>
|
|
19
|
+
* <BreadcrumbPage>Messages & media</BreadcrumbPage>
|
|
20
|
+
* </BreadcrumbItem>
|
|
21
|
+
* </BreadcrumbList>
|
|
22
|
+
* </Breadcrumb>
|
|
23
|
+
*
|
|
24
|
+
* // After
|
|
25
|
+
* <SmartBreadcrumb
|
|
26
|
+
* items={[
|
|
27
|
+
* { label: "Settings", href: "#", className: "hidden md:block" },
|
|
28
|
+
* { label: "Messages & media" },
|
|
29
|
+
* ]}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export const SmartBreadcrumb = ({ items, className }) => (_jsx(Breadcrumb, { className: className, children: _jsx(BreadcrumbList, { children: items.map((item, index) => {
|
|
34
|
+
const isLast = index === items.length - 1;
|
|
35
|
+
return (_jsxs(React.Fragment, { children: [index > 0 && _jsx(BreadcrumbSeparator, { className: item.className }), _jsx(BreadcrumbItem, { className: item.className, children: isLast ? (_jsx(BreadcrumbPage, { children: item.label })) : (_jsx(BreadcrumbLink, { href: item.href, children: item.label })) })] }, item.label));
|
|
36
|
+
}) }) }));
|
|
37
|
+
//# sourceMappingURL=smart-breadcrumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-breadcrumb.js","sourceRoot":"","sources":["../../src/smart-components/smart-breadcrumb.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,GACpB,MAAM,0CAA0C,CAAA;AAiBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAwB,EAAE,EAAE,CAAC,CAC7E,KAAC,UAAU,IAAC,SAAS,EAAE,SAAS,YAC9B,KAAC,cAAc,cACZ,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACzB,MAAM,MAAM,GAAG,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;YACzC,OAAO,CACL,MAAC,KAAK,CAAC,QAAQ,eACZ,KAAK,GAAG,CAAC,IAAI,KAAC,mBAAmB,IAAC,SAAS,EAAE,IAAI,CAAC,SAAS,GAAI,EAChE,KAAC,cAAc,IAAC,SAAS,EAAE,IAAI,CAAC,SAAS,YACtC,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,cAAc,cAAE,IAAI,CAAC,KAAK,GAAkB,CAC9C,CAAC,CAAC,CAAC,CACF,KAAC,cAAc,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,YAAG,IAAI,CAAC,KAAK,GAAkB,CAC/D,GACc,KARE,IAAI,CAAC,KAAK,CASd,CAClB,CAAA;QACH,CAAC,CAAC,GACa,GACN,CACd,CAAA"}
|