@tulip-systems/core 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/dist/auth/client.d.ts +7 -0
- package/dist/auth/client.js +8 -0
- package/dist/auth/server.d.ts +5 -0
- package/dist/auth/server.js +6 -0
- package/dist/auth.d.ts +4 -0
- package/dist/auth.js +5 -0
- package/dist/commands/client.d.ts +16 -0
- package/dist/commands/client.js +17 -0
- package/dist/commands/server.d.ts +1 -0
- package/dist/commands/server.js +1 -0
- package/dist/commands.d.ts +3 -0
- package/dist/commands.js +3 -0
- package/dist/components/client.d.ts +34 -0
- package/dist/components/client.js +35 -0
- package/dist/components/common/icons.d.ts +57 -0
- package/dist/components/common/icons.d.ts.map +1 -0
- package/dist/components/common/icons.js +118 -0
- package/dist/components/common/icons.js.map +1 -0
- package/dist/components/common/status.d.ts +53 -0
- package/dist/components/common/status.d.ts.map +1 -0
- package/dist/components/common/status.js +56 -0
- package/dist/components/common/status.js.map +1 -0
- package/dist/components/editor/components/block-dropdown.js +83 -0
- package/dist/components/editor/components/block-dropdown.js.map +1 -0
- package/dist/components/editor/components/content.client.d.ts +7 -0
- package/dist/components/editor/components/content.client.d.ts.map +1 -0
- package/dist/components/editor/components/content.client.js +18 -0
- package/dist/components/editor/components/content.client.js.map +1 -0
- package/dist/components/editor/components/fixed-menu.client.d.ts +7 -0
- package/dist/components/editor/components/fixed-menu.client.d.ts.map +1 -0
- package/dist/components/editor/components/fixed-menu.client.js +134 -0
- package/dist/components/editor/components/fixed-menu.client.js.map +1 -0
- package/dist/components/editor/context.client.d.ts +32 -0
- package/dist/components/editor/context.client.d.ts.map +1 -0
- package/dist/components/editor/context.client.js +46 -0
- package/dist/components/editor/context.client.js.map +1 -0
- package/dist/components/editor/index.client.d.ts +11 -0
- package/dist/components/editor/index.client.d.ts.map +1 -0
- package/dist/components/editor/index.client.js +17 -0
- package/dist/components/editor/index.client.js.map +1 -0
- package/dist/components/editor/preview.client.d.ts +12 -0
- package/dist/components/editor/preview.client.d.ts.map +1 -0
- package/dist/components/editor/preview.client.js +20 -0
- package/dist/components/editor/preview.client.js.map +1 -0
- package/dist/components/emails/forget-password-email.js +52 -0
- package/dist/components/emails/forget-password-email.js.map +1 -0
- package/dist/components/header/back-button.client.d.ts +10 -0
- package/dist/components/header/back-button.client.d.ts.map +1 -0
- package/dist/components/header/back-button.client.js +44 -0
- package/dist/components/header/back-button.client.js.map +1 -0
- package/dist/components/header/bottom-bar.client.d.ts +29 -0
- package/dist/components/header/bottom-bar.client.d.ts.map +1 -0
- package/dist/components/header/bottom-bar.client.js +31 -0
- package/dist/components/header/bottom-bar.client.js.map +1 -0
- package/dist/components/header/breadcrumbs.client.d.ts +35 -0
- package/dist/components/header/breadcrumbs.client.d.ts.map +1 -0
- package/dist/components/header/breadcrumbs.client.js +64 -0
- package/dist/components/header/breadcrumbs.client.js.map +1 -0
- package/dist/components/header/header.client.d.ts +12 -0
- package/dist/components/header/header.client.d.ts.map +1 -0
- package/dist/components/header/header.client.js +15 -0
- package/dist/components/header/header.client.js.map +1 -0
- package/dist/components/header/indicator.client.js +26 -0
- package/dist/components/header/indicator.client.js.map +1 -0
- package/dist/components/header/mobile-nav-switcher.client.d.ts +10 -0
- package/dist/components/header/mobile-nav-switcher.client.d.ts.map +1 -0
- package/dist/components/header/mobile-nav-switcher.client.js +20 -0
- package/dist/components/header/mobile-nav-switcher.client.js.map +1 -0
- package/dist/components/header/top-bar.client.d.ts +43 -0
- package/dist/components/header/top-bar.client.d.ts.map +1 -0
- package/dist/components/header/top-bar.client.js +48 -0
- package/dist/components/header/top-bar.client.js.map +1 -0
- package/dist/components/layouts/admin-content.client.js +24 -0
- package/dist/components/layouts/admin-content.client.js.map +1 -0
- package/dist/components/layouts/admin-layout.server.d.ts +14 -0
- package/dist/components/layouts/admin-layout.server.d.ts.map +1 -0
- package/dist/components/layouts/admin-layout.server.js +26 -0
- package/dist/components/layouts/admin-layout.server.js.map +1 -0
- package/dist/components/layouts/admin-loading.d.ts +8 -0
- package/dist/components/layouts/admin-loading.d.ts.map +1 -0
- package/dist/components/layouts/admin-loading.js +14 -0
- package/dist/components/layouts/admin-loading.js.map +1 -0
- package/dist/components/layouts/admin-sidebar-context.client.js +28 -0
- package/dist/components/layouts/admin-sidebar-context.client.js.map +1 -0
- package/dist/components/layouts/admin-sidebar-header.client.js +76 -0
- package/dist/components/layouts/admin-sidebar-header.client.js.map +1 -0
- package/dist/components/layouts/admin-sidebar.client.js +51 -0
- package/dist/components/layouts/admin-sidebar.client.js.map +1 -0
- package/dist/components/layouts/empty-page.d.ts +31 -0
- package/dist/components/layouts/empty-page.d.ts.map +1 -0
- package/dist/components/layouts/empty-page.js +29 -0
- package/dist/components/layouts/empty-page.js.map +1 -0
- package/dist/components/layouts/list-layout.d.ts +12 -0
- package/dist/components/layouts/list-layout.d.ts.map +1 -0
- package/dist/components/layouts/list-layout.js +15 -0
- package/dist/components/layouts/list-layout.js.map +1 -0
- package/dist/components/layouts/not-found-page.d.ts +7 -0
- package/dist/components/layouts/not-found-page.d.ts.map +1 -0
- package/dist/components/layouts/not-found-page.js +14 -0
- package/dist/components/layouts/not-found-page.js.map +1 -0
- package/dist/components/layouts/not-found-section.js +30 -0
- package/dist/components/layouts/not-found-section.js.map +1 -0
- package/dist/components/layouts/providers.client.d.ts +10 -0
- package/dist/components/layouts/providers.client.d.ts.map +1 -0
- package/dist/components/layouts/providers.client.js +32 -0
- package/dist/components/layouts/providers.client.js.map +1 -0
- package/dist/components/layouts/root-layout.server.d.ts +38 -0
- package/dist/components/layouts/root-layout.server.d.ts.map +1 -0
- package/dist/components/layouts/root-layout.server.js +47 -0
- package/dist/components/layouts/root-layout.server.js.map +1 -0
- package/dist/components/layouts/tab-layout.d.ts +23 -0
- package/dist/components/layouts/tab-layout.d.ts.map +1 -0
- package/dist/components/layouts/tab-layout.js +52 -0
- package/dist/components/layouts/tab-layout.js.map +1 -0
- package/dist/components/lists/data-list.d.ts +31 -0
- package/dist/components/lists/data-list.d.ts.map +1 -0
- package/dist/components/lists/data-list.js +36 -0
- package/dist/components/lists/data-list.js.map +1 -0
- package/dist/components/lists/data-stack.d.ts +49 -0
- package/dist/components/lists/data-stack.d.ts.map +1 -0
- package/dist/components/lists/data-stack.js +57 -0
- package/dist/components/lists/data-stack.js.map +1 -0
- package/dist/components/server.d.ts +3 -0
- package/dist/components/server.js +4 -0
- package/dist/components/ui/accordion.d.ts +25 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +49 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +43 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +86 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +25 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +39 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +8 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +17 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.client.d.ts +20 -0
- package/dist/components/ui/avatar.client.d.ts.map +1 -0
- package/dist/components/ui/avatar.client.js +34 -0
- package/dist/components/ui/avatar.client.js.map +1 -0
- package/dist/components/ui/badge.d.ts +20 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +27 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +36 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +72 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.d.ts +22 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +44 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +14 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +57 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +31 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +51 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +48 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +137 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.client.d.ts +72 -0
- package/dist/components/ui/chart.client.d.ts.map +1 -0
- package/dist/components/ui/chart.client.js +144 -0
- package/dist/components/ui/chart.client.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +12 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +26 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.client.d.ts +16 -0
- package/dist/components/ui/collapsible.client.d.ts.map +1 -0
- package/dist/components/ui/collapsible.client.js +29 -0
- package/dist/components/ui/collapsible.client.js.map +1 -0
- package/dist/components/ui/color-picker.client.d.ts +16 -0
- package/dist/components/ui/color-picker.client.d.ts.map +1 -0
- package/dist/components/ui/color-picker.client.js +39 -0
- package/dist/components/ui/color-picker.client.js.map +1 -0
- package/dist/components/ui/combobox-dropdown.client.d.ts +47 -0
- package/dist/components/ui/combobox-dropdown.client.d.ts.map +1 -0
- package/dist/components/ui/combobox-dropdown.client.js +95 -0
- package/dist/components/ui/combobox-dropdown.client.js.map +1 -0
- package/dist/components/ui/combobox.client.d.ts +31 -0
- package/dist/components/ui/combobox.client.d.ts.map +1 -0
- package/dist/components/ui/combobox.client.js +68 -0
- package/dist/components/ui/combobox.client.js.map +1 -0
- package/dist/components/ui/command.d.ts +49 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +90 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +77 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +127 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.client.d.ts +45 -0
- package/dist/components/ui/dialog.client.d.ts.map +1 -0
- package/dist/components/ui/dialog.client.js +90 -0
- package/dist/components/ui/dialog.client.js.map +1 -0
- package/dist/components/ui/drawer.client.d.ts +45 -0
- package/dist/components/ui/drawer.client.d.ts.map +1 -0
- package/dist/components/ui/drawer.client.js +83 -0
- package/dist/components/ui/drawer.client.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +78 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +128 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/form.client.d.ts +46 -0
- package/dist/components/ui/form.client.d.ts.map +1 -0
- package/dist/components/ui/form.client.js +93 -0
- package/dist/components/ui/form.client.js.map +1 -0
- package/dist/components/ui/hover-card.client.d.ts +20 -0
- package/dist/components/ui/hover-card.client.d.ts.map +1 -0
- package/dist/components/ui/hover-card.client.js +34 -0
- package/dist/components/ui/hover-card.client.js.map +1 -0
- package/dist/components/ui/input.d.ts +12 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +17 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +12 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +20 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +47 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +86 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +40 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +81 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +23 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +40 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.client.d.ts +13 -0
- package/dist/components/ui/progress.client.d.ts.map +1 -0
- package/dist/components/ui/progress.client.js +25 -0
- package/dist/components/ui/progress.client.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +16 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +33 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.client.d.ts +22 -0
- package/dist/components/ui/resizable.client.d.ts.map +1 -0
- package/dist/components/ui/resizable.client.js +38 -0
- package/dist/components/ui/resizable.client.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +18 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +41 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.client.d.ts +49 -0
- package/dist/components/ui/select.client.d.ts.map +1 -0
- package/dist/components/ui/select.client.js +100 -0
- package/dist/components/ui/select.client.js.map +1 -0
- package/dist/components/ui/separator.d.ts +14 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +22 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.client.d.ts +41 -0
- package/dist/components/ui/sheet.client.d.ts.map +1 -0
- package/dist/components/ui/sheet.client.js +84 -0
- package/dist/components/ui/sheet.client.js.map +1 -0
- package/dist/components/ui/sidebar.client.d.ts +168 -0
- package/dist/components/ui/sidebar.client.d.ts.map +1 -0
- package/dist/components/ui/sidebar.client.js +375 -0
- package/dist/components/ui/sidebar.client.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +10 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +15 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +16 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +41 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.client.d.ts +10 -0
- package/dist/components/ui/sonner.client.d.ts.map +1 -0
- package/dist/components/ui/sonner.client.js +26 -0
- package/dist/components/ui/sonner.client.js.map +1 -0
- package/dist/components/ui/switch.d.ts +12 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +24 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +24 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +41 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +11 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +16 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/time-input.client.d.ts +16 -0
- package/dist/components/ui/time-input.client.d.ts.map +1 -0
- package/dist/components/ui/time-input.client.js +53 -0
- package/dist/components/ui/time-input.client.js.map +1 -0
- package/dist/components/ui/time-picker-input.client.d.ts +15 -0
- package/dist/components/ui/time-picker-input.client.d.ts.map +1 -0
- package/dist/components/ui/time-picker-input.client.js +65 -0
- package/dist/components/ui/time-picker-input.client.js.map +1 -0
- package/dist/components/ui/toggle-group.client.d.ts +24 -0
- package/dist/components/ui/toggle-group.client.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.client.js +48 -0
- package/dist/components/ui/toggle-group.client.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +20 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +42 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.client.d.ts +24 -0
- package/dist/components/ui/tooltip.client.d.ts.map +1 -0
- package/dist/components/ui/tooltip.client.js +41 -0
- package/dist/components/ui/tooltip.client.js.map +1 -0
- package/dist/components/ui/tree.client.d.ts +43 -0
- package/dist/components/ui/tree.client.d.ts.map +1 -0
- package/dist/components/ui/tree.client.js +103 -0
- package/dist/components/ui/tree.client.js.map +1 -0
- package/dist/components.d.ts +38 -0
- package/dist/components.js +39 -0
- package/dist/config/client.d.ts +1 -0
- package/dist/config/client.js +1 -0
- package/dist/config/server.d.ts +8 -0
- package/dist/config/server.js +9 -0
- package/dist/config.d.ts +6 -0
- package/dist/config.js +5 -0
- package/dist/data-tables/client.d.ts +21 -0
- package/dist/data-tables/client.js +22 -0
- package/dist/data-tables/server.d.ts +7 -0
- package/dist/data-tables/server.js +8 -0
- package/dist/data-tables.d.ts +13 -0
- package/dist/data-tables.js +13 -0
- package/dist/inline-edit/client.d.ts +13 -0
- package/dist/inline-edit/client.js +14 -0
- package/dist/inline-edit/server.d.ts +1 -0
- package/dist/inline-edit/server.js +1 -0
- package/dist/inline-edit.d.ts +2 -0
- package/dist/inline-edit.js +3 -0
- package/dist/lib/client.d.ts +4 -0
- package/dist/lib/client.js +5 -0
- package/dist/lib/config/constants.d.ts +5 -0
- package/dist/lib/config/constants.d.ts.map +1 -0
- package/dist/lib/config/constants.js +6 -0
- package/dist/lib/config/constants.js.map +1 -0
- package/dist/lib/hooks/use-action.d.ts +18 -0
- package/dist/lib/hooks/use-action.d.ts.map +1 -0
- package/dist/lib/hooks/use-action.js +42 -0
- package/dist/lib/hooks/use-action.js.map +1 -0
- package/dist/lib/hooks/use-indicator.d.ts +32 -0
- package/dist/lib/hooks/use-indicator.d.ts.map +1 -0
- package/dist/lib/hooks/use-indicator.js +51 -0
- package/dist/lib/hooks/use-indicator.js.map +1 -0
- package/dist/lib/hooks/use-mobile.client.d.ts +7 -0
- package/dist/lib/hooks/use-mobile.client.d.ts.map +1 -0
- package/dist/lib/hooks/use-mobile.client.js +22 -0
- package/dist/lib/hooks/use-mobile.client.js.map +1 -0
- package/dist/lib/server.d.ts +1 -0
- package/dist/lib/server.js +1 -0
- package/dist/lib/types/config.d.ts +12 -0
- package/dist/lib/types/config.d.ts.map +1 -0
- package/dist/lib/utils/array-move.d.ts +11 -0
- package/dist/lib/utils/array-move.d.ts.map +1 -0
- package/dist/lib/utils/array-move.js +13 -0
- package/dist/lib/utils/array-move.js.map +1 -0
- package/dist/lib/utils/cn.d.ts +7 -0
- package/dist/lib/utils/cn.d.ts.map +1 -0
- package/dist/lib/utils/cn.js +11 -0
- package/dist/lib/utils/cn.js.map +1 -0
- package/dist/lib/utils/fonts.d.ts +8 -0
- package/dist/lib/utils/fonts.d.ts.map +1 -0
- package/dist/lib/utils/fonts.js +12 -0
- package/dist/lib/utils/fonts.js.map +1 -0
- package/dist/lib/utils/format.d.ts +41 -0
- package/dist/lib/utils/format.d.ts.map +1 -0
- package/dist/lib/utils/format.js +96 -0
- package/dist/lib/utils/format.js.map +1 -0
- package/dist/lib/utils/manifest.d.ts +9 -0
- package/dist/lib/utils/manifest.d.ts.map +1 -0
- package/dist/lib/utils/manifest.js +36 -0
- package/dist/lib/utils/manifest.js.map +1 -0
- package/dist/lib/utils/time-picker.d.ts +6 -0
- package/dist/lib/utils/time-picker.d.ts.map +1 -0
- package/dist/lib/utils/time-picker.js +104 -0
- package/dist/lib/utils/time-picker.js.map +1 -0
- package/dist/lib/utils/url.d.ts +10 -0
- package/dist/lib/utils/url.d.ts.map +1 -0
- package/dist/lib/utils/url.js +15 -0
- package/dist/lib/utils/url.js.map +1 -0
- package/dist/lib.d.ts +9 -0
- package/dist/lib.js +9 -0
- package/dist/modules/auth/components/allowed.client.d.ts +21 -0
- package/dist/modules/auth/components/allowed.client.d.ts.map +1 -0
- package/dist/modules/auth/components/allowed.client.js +16 -0
- package/dist/modules/auth/components/allowed.client.js.map +1 -0
- package/dist/modules/auth/components/allowed.server.d.ts +23 -0
- package/dist/modules/auth/components/allowed.server.d.ts.map +1 -0
- package/dist/modules/auth/components/allowed.server.js +24 -0
- package/dist/modules/auth/components/allowed.server.js.map +1 -0
- package/dist/modules/auth/components/auth-layout.server.d.ts +11 -0
- package/dist/modules/auth/components/auth-layout.server.d.ts.map +1 -0
- package/dist/modules/auth/components/auth-layout.server.js +40 -0
- package/dist/modules/auth/components/auth-layout.server.js.map +1 -0
- package/dist/modules/auth/components/forget-password-page.client.d.ts +7 -0
- package/dist/modules/auth/components/forget-password-page.client.d.ts.map +1 -0
- package/dist/modules/auth/components/forget-password-page.client.js +73 -0
- package/dist/modules/auth/components/forget-password-page.client.js.map +1 -0
- package/dist/modules/auth/components/login-page.client.d.ts +11 -0
- package/dist/modules/auth/components/login-page.client.d.ts.map +1 -0
- package/dist/modules/auth/components/login-page.client.js +111 -0
- package/dist/modules/auth/components/login-page.client.js.map +1 -0
- package/dist/modules/auth/components/reset-password-page.client.d.ts +12 -0
- package/dist/modules/auth/components/reset-password-page.client.d.ts.map +1 -0
- package/dist/modules/auth/components/reset-password-page.client.js +97 -0
- package/dist/modules/auth/components/reset-password-page.client.js.map +1 -0
- package/dist/modules/auth/components/update-password-command.d.ts +20 -0
- package/dist/modules/auth/components/update-password-command.d.ts.map +1 -0
- package/dist/modules/auth/components/update-password-command.js +50 -0
- package/dist/modules/auth/components/update-password-command.js.map +1 -0
- package/dist/modules/auth/db/schema.d.ts +739 -0
- package/dist/modules/auth/db/schema.d.ts.map +1 -0
- package/dist/modules/auth/db/schema.js +60 -0
- package/dist/modules/auth/db/schema.js.map +1 -0
- package/dist/modules/auth/handler/client.client.d.ts +3806 -0
- package/dist/modules/auth/handler/client.client.d.ts.map +1 -0
- package/dist/modules/auth/handler/client.client.js +16 -0
- package/dist/modules/auth/handler/client.client.js.map +1 -0
- package/dist/modules/auth/handler/route.server.d.ts +17 -0
- package/dist/modules/auth/handler/route.server.d.ts.map +1 -0
- package/dist/modules/auth/handler/route.server.js +32 -0
- package/dist/modules/auth/handler/route.server.js.map +1 -0
- package/dist/modules/auth/handler/server.server.js +61 -0
- package/dist/modules/auth/handler/server.server.js.map +1 -0
- package/dist/modules/auth/hooks/use-permission.client.js +52 -0
- package/dist/modules/auth/hooks/use-permission.client.js.map +1 -0
- package/dist/modules/auth/lib/helpers.server.d.ts +84 -0
- package/dist/modules/auth/lib/helpers.server.d.ts.map +1 -0
- package/dist/modules/auth/lib/helpers.server.js +45 -0
- package/dist/modules/auth/lib/helpers.server.js.map +1 -0
- package/dist/modules/auth/lib/permissions.d.ts +19 -0
- package/dist/modules/auth/lib/permissions.d.ts.map +1 -0
- package/dist/modules/auth/lib/permissions.js +15 -0
- package/dist/modules/auth/lib/permissions.js.map +1 -0
- package/dist/modules/auth/lib/utils.js +21 -0
- package/dist/modules/auth/lib/utils.js.map +1 -0
- package/dist/modules/auth/lib/validators.d.ts +64 -0
- package/dist/modules/auth/lib/validators.d.ts.map +1 -0
- package/dist/modules/auth/lib/validators.js +56 -0
- package/dist/modules/auth/lib/validators.js.map +1 -0
- package/dist/modules/commands/components/alert-dialog-command.client.d.ts +93 -0
- package/dist/modules/commands/components/alert-dialog-command.client.d.ts.map +1 -0
- package/dist/modules/commands/components/alert-dialog-command.client.js +157 -0
- package/dist/modules/commands/components/alert-dialog-command.client.js.map +1 -0
- package/dist/modules/commands/components/click-command.client.d.ts +27 -0
- package/dist/modules/commands/components/click-command.client.d.ts.map +1 -0
- package/dist/modules/commands/components/click-command.client.js +66 -0
- package/dist/modules/commands/components/click-command.client.js.map +1 -0
- package/dist/modules/commands/components/command-trigger.client.d.ts +34 -0
- package/dist/modules/commands/components/command-trigger.client.d.ts.map +1 -0
- package/dist/modules/commands/components/command-trigger.client.js +51 -0
- package/dist/modules/commands/components/command-trigger.client.js.map +1 -0
- package/dist/modules/commands/components/dialog-command.client.d.ts +68 -0
- package/dist/modules/commands/components/dialog-command.client.d.ts.map +1 -0
- package/dist/modules/commands/components/dialog-command.client.js +131 -0
- package/dist/modules/commands/components/dialog-command.client.js.map +1 -0
- package/dist/modules/commands/components/dropdown-command.client.d.ts +60 -0
- package/dist/modules/commands/components/dropdown-command.client.d.ts.map +1 -0
- package/dist/modules/commands/components/dropdown-command.client.js +130 -0
- package/dist/modules/commands/components/dropdown-command.client.js.map +1 -0
- package/dist/modules/commands/components/empty-command.client.d.ts +19 -0
- package/dist/modules/commands/components/empty-command.client.d.ts.map +1 -0
- package/dist/modules/commands/components/empty-command.client.js +57 -0
- package/dist/modules/commands/components/empty-command.client.js.map +1 -0
- package/dist/modules/commands/components/form-dialog-command.client.d.ts +100 -0
- package/dist/modules/commands/components/form-dialog-command.client.d.ts.map +1 -0
- package/dist/modules/commands/components/form-dialog-command.client.js +184 -0
- package/dist/modules/commands/components/form-dialog-command.client.js.map +1 -0
- package/dist/modules/commands/components/render-command.js +16 -0
- package/dist/modules/commands/components/render-command.js.map +1 -0
- package/dist/modules/commands/hooks/context.client.js +33 -0
- package/dist/modules/commands/hooks/context.client.js.map +1 -0
- package/dist/modules/commands/hooks/use-command-action.client.d.ts +21 -0
- package/dist/modules/commands/hooks/use-command-action.client.d.ts.map +1 -0
- package/dist/modules/commands/hooks/use-command-action.client.js +69 -0
- package/dist/modules/commands/hooks/use-command-action.client.js.map +1 -0
- package/dist/modules/commands/hooks/use-command-menu.client.d.ts +16 -0
- package/dist/modules/commands/hooks/use-command-menu.client.d.ts.map +1 -0
- package/dist/modules/commands/hooks/use-command-menu.client.js +90 -0
- package/dist/modules/commands/hooks/use-command-menu.client.js.map +1 -0
- package/dist/modules/commands/lib/definitions.d.ts +54 -0
- package/dist/modules/commands/lib/definitions.d.ts.map +1 -0
- package/dist/modules/commands/lib/factory.d.ts +24 -0
- package/dist/modules/commands/lib/factory.d.ts.map +1 -0
- package/dist/modules/commands/lib/factory.js +8 -0
- package/dist/modules/commands/lib/factory.js.map +1 -0
- package/dist/modules/commands/lib/schema.d.ts +18 -0
- package/dist/modules/commands/lib/schema.d.ts.map +1 -0
- package/dist/modules/commands/menus/context-menu.client.d.ts +27 -0
- package/dist/modules/commands/menus/context-menu.client.d.ts.map +1 -0
- package/dist/modules/commands/menus/context-menu.client.js +61 -0
- package/dist/modules/commands/menus/context-menu.client.js.map +1 -0
- package/dist/modules/commands/menus/data-table-menu.client.js +47 -0
- package/dist/modules/commands/menus/data-table-menu.client.js.map +1 -0
- package/dist/modules/commands/menus/dropdown-menu.client.d.ts +15 -0
- package/dist/modules/commands/menus/dropdown-menu.client.d.ts.map +1 -0
- package/dist/modules/commands/menus/dropdown-menu.client.js +56 -0
- package/dist/modules/commands/menus/dropdown-menu.client.js.map +1 -0
- package/dist/modules/commands/menus/inline-menu.client.d.ts +16 -0
- package/dist/modules/commands/menus/inline-menu.client.d.ts.map +1 -0
- package/dist/modules/commands/menus/inline-menu.client.js +37 -0
- package/dist/modules/commands/menus/inline-menu.client.js.map +1 -0
- package/dist/modules/commands/menus/responsive-menu.client.d.ts +9 -0
- package/dist/modules/commands/menus/responsive-menu.client.d.ts.map +1 -0
- package/dist/modules/commands/menus/responsive-menu.client.js +21 -0
- package/dist/modules/commands/menus/responsive-menu.client.js.map +1 -0
- package/dist/modules/commands/utils/archive-command.client.d.ts +33 -0
- package/dist/modules/commands/utils/archive-command.client.d.ts.map +1 -0
- package/dist/modules/commands/utils/archive-command.client.js +39 -0
- package/dist/modules/commands/utils/archive-command.client.js.map +1 -0
- package/dist/modules/commands/utils/delete-command.client.d.ts +23 -0
- package/dist/modules/commands/utils/delete-command.client.d.ts.map +1 -0
- package/dist/modules/commands/utils/delete-command.client.js +28 -0
- package/dist/modules/commands/utils/delete-command.client.js.map +1 -0
- package/dist/modules/commands/utils/send-mail-command.client.d.ts +41 -0
- package/dist/modules/commands/utils/send-mail-command.client.d.ts.map +1 -0
- package/dist/modules/commands/utils/send-mail-command.client.js +119 -0
- package/dist/modules/commands/utils/send-mail-command.client.js.map +1 -0
- package/dist/modules/config/db/create-client.js +28 -0
- package/dist/modules/config/db/create-client.js.map +1 -0
- package/dist/modules/config/db/helpers.d.ts +15 -0
- package/dist/modules/config/db/helpers.d.ts.map +1 -0
- package/dist/modules/config/db/helpers.js +16 -0
- package/dist/modules/config/db/helpers.js.map +1 -0
- package/dist/modules/config/db/types.d.ts +5 -0
- package/dist/modules/config/db/types.d.ts.map +1 -0
- package/dist/modules/config/lib/config.server.d.ts +37 -0
- package/dist/modules/config/lib/config.server.d.ts.map +1 -0
- package/dist/modules/config/lib/config.server.js +11 -0
- package/dist/modules/config/lib/config.server.js.map +1 -0
- package/dist/modules/config/lib/resolve.server.d.ts +2065 -0
- package/dist/modules/config/lib/resolve.server.d.ts.map +1 -0
- package/dist/modules/config/lib/resolve.server.js +45 -0
- package/dist/modules/config/lib/resolve.server.js.map +1 -0
- package/dist/modules/config/paths/create.server.d.ts +14 -0
- package/dist/modules/config/paths/create.server.d.ts.map +1 -0
- package/dist/modules/config/paths/create.server.js +12 -0
- package/dist/modules/config/paths/create.server.js.map +1 -0
- package/dist/modules/config/paths/get.server.js +47 -0
- package/dist/modules/config/paths/get.server.js.map +1 -0
- package/dist/modules/config/paths/types.d.ts +62 -0
- package/dist/modules/config/paths/types.d.ts.map +1 -0
- package/dist/modules/config/router/client.d.ts +11 -0
- package/dist/modules/config/router/client.d.ts.map +1 -0
- package/dist/modules/config/router/client.js +25 -0
- package/dist/modules/config/router/client.js.map +1 -0
- package/dist/modules/config/router/client.server.d.ts +25 -0
- package/dist/modules/config/router/client.server.d.ts.map +1 -0
- package/dist/modules/config/router/client.server.js +31 -0
- package/dist/modules/config/router/client.server.js.map +1 -0
- package/dist/modules/config/router/context.server.d.ts +2092 -0
- package/dist/modules/config/router/context.server.d.ts.map +1 -0
- package/dist/modules/config/router/context.server.js +23 -0
- package/dist/modules/config/router/context.server.js.map +1 -0
- package/dist/modules/config/router/error.server.d.ts +2 -0
- package/dist/modules/config/router/error.server.js +3 -0
- package/dist/modules/config/router/helpers.js +8 -0
- package/dist/modules/config/router/helpers.js.map +1 -0
- package/dist/modules/config/router/init.server.d.ts +2125 -0
- package/dist/modules/config/router/init.server.d.ts.map +1 -0
- package/dist/modules/config/router/init.server.js +53 -0
- package/dist/modules/config/router/init.server.js.map +1 -0
- package/dist/modules/config/router/query-client.d.ts +11 -0
- package/dist/modules/config/router/query-client.d.ts.map +1 -0
- package/dist/modules/config/router/query-client.js +51 -0
- package/dist/modules/config/router/query-client.js.map +1 -0
- package/dist/modules/config/router/validators.d.ts +14 -0
- package/dist/modules/config/router/validators.d.ts.map +1 -0
- package/dist/modules/config/router/validators.js +11 -0
- package/dist/modules/config/router/validators.js.map +1 -0
- package/dist/modules/data-tables/components/cell/common.client.d.ts +27 -0
- package/dist/modules/data-tables/components/cell/common.client.d.ts.map +1 -0
- package/dist/modules/data-tables/components/cell/common.client.js +36 -0
- package/dist/modules/data-tables/components/cell/common.client.js.map +1 -0
- package/dist/modules/data-tables/components/cell/index.client.d.ts +10 -0
- package/dist/modules/data-tables/components/cell/index.client.d.ts.map +1 -0
- package/dist/modules/data-tables/components/cell/index.client.js +25 -0
- package/dist/modules/data-tables/components/cell/index.client.js.map +1 -0
- package/dist/modules/data-tables/components/cell/select.client.d.ts +10 -0
- package/dist/modules/data-tables/components/cell/select.client.d.ts.map +1 -0
- package/dist/modules/data-tables/components/cell/select.client.js +37 -0
- package/dist/modules/data-tables/components/cell/select.client.js.map +1 -0
- package/dist/modules/data-tables/components/column-header.d.ts +16 -0
- package/dist/modules/data-tables/components/column-header.d.ts.map +1 -0
- package/dist/modules/data-tables/components/column-header.js +47 -0
- package/dist/modules/data-tables/components/column-header.js.map +1 -0
- package/dist/modules/data-tables/components/filters/combobox.client.d.ts +28 -0
- package/dist/modules/data-tables/components/filters/combobox.client.d.ts.map +1 -0
- package/dist/modules/data-tables/components/filters/combobox.client.js +98 -0
- package/dist/modules/data-tables/components/filters/combobox.client.js.map +1 -0
- package/dist/modules/data-tables/components/filters/slider.client.d.ts +23 -0
- package/dist/modules/data-tables/components/filters/slider.client.d.ts.map +1 -0
- package/dist/modules/data-tables/components/filters/slider.client.js +130 -0
- package/dist/modules/data-tables/components/filters/slider.client.js.map +1 -0
- package/dist/modules/data-tables/components/footer.js +30 -0
- package/dist/modules/data-tables/components/footer.js.map +1 -0
- package/dist/modules/data-tables/components/header.d.ts +41 -0
- package/dist/modules/data-tables/components/header.d.ts.map +1 -0
- package/dist/modules/data-tables/components/header.js +44 -0
- package/dist/modules/data-tables/components/header.js.map +1 -0
- package/dist/modules/data-tables/components/layout.d.ts +12 -0
- package/dist/modules/data-tables/components/layout.d.ts.map +1 -0
- package/dist/modules/data-tables/components/layout.js +15 -0
- package/dist/modules/data-tables/components/layout.js.map +1 -0
- package/dist/modules/data-tables/components/search-input.client.d.ts +7 -0
- package/dist/modules/data-tables/components/search-input.client.d.ts.map +1 -0
- package/dist/modules/data-tables/components/search-input.client.js +21 -0
- package/dist/modules/data-tables/components/search-input.client.js.map +1 -0
- package/dist/modules/data-tables/components/skeleton.d.ts +7 -0
- package/dist/modules/data-tables/components/skeleton.d.ts.map +1 -0
- package/dist/modules/data-tables/components/skeleton.js +22 -0
- package/dist/modules/data-tables/components/skeleton.js.map +1 -0
- package/dist/modules/data-tables/components/table.d.ts +34 -0
- package/dist/modules/data-tables/components/table.d.ts.map +1 -0
- package/dist/modules/data-tables/components/table.js +58 -0
- package/dist/modules/data-tables/components/table.js.map +1 -0
- package/dist/modules/data-tables/components/toolbar.d.ts +23 -0
- package/dist/modules/data-tables/components/toolbar.d.ts.map +1 -0
- package/dist/modules/data-tables/components/toolbar.js +22 -0
- package/dist/modules/data-tables/components/toolbar.js.map +1 -0
- package/dist/modules/data-tables/hooks/use-context.client.d.ts +56 -0
- package/dist/modules/data-tables/hooks/use-context.client.d.ts.map +1 -0
- package/dist/modules/data-tables/hooks/use-context.client.js +36 -0
- package/dist/modules/data-tables/hooks/use-context.client.js.map +1 -0
- package/dist/modules/data-tables/hooks/use-search.client.js +37 -0
- package/dist/modules/data-tables/hooks/use-search.client.js.map +1 -0
- package/dist/modules/data-tables/hooks/use-selection.client.js +40 -0
- package/dist/modules/data-tables/hooks/use-selection.client.js.map +1 -0
- package/dist/modules/data-tables/hooks/use-table.client.d.ts +12 -0
- package/dist/modules/data-tables/hooks/use-table.client.d.ts.map +1 -0
- package/dist/modules/data-tables/hooks/use-table.client.js +56 -0
- package/dist/modules/data-tables/hooks/use-table.client.js.map +1 -0
- package/dist/modules/data-tables/lib/converters/cursor.d.ts +19 -0
- package/dist/modules/data-tables/lib/converters/cursor.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/converters/cursor.js +16 -0
- package/dist/modules/data-tables/lib/converters/cursor.js.map +1 -0
- package/dist/modules/data-tables/lib/converters/dto.d.ts +52 -0
- package/dist/modules/data-tables/lib/converters/dto.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/converters/dto.js +25 -0
- package/dist/modules/data-tables/lib/converters/dto.js.map +1 -0
- package/dist/modules/data-tables/lib/converters/filter.d.ts +10 -0
- package/dist/modules/data-tables/lib/converters/filter.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/converters/filter.js +14 -0
- package/dist/modules/data-tables/lib/converters/filter.js.map +1 -0
- package/dist/modules/data-tables/lib/converters/search.d.ts +17 -0
- package/dist/modules/data-tables/lib/converters/search.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/converters/search.js +16 -0
- package/dist/modules/data-tables/lib/converters/search.js.map +1 -0
- package/dist/modules/data-tables/lib/converters/sorting.d.ts +15 -0
- package/dist/modules/data-tables/lib/converters/sorting.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/converters/sorting.js +20 -0
- package/dist/modules/data-tables/lib/converters/sorting.js.map +1 -0
- package/dist/modules/data-tables/lib/filters/config.d.ts +11 -0
- package/dist/modules/data-tables/lib/filters/config.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/filters/config.js +6 -0
- package/dist/modules/data-tables/lib/filters/config.js.map +1 -0
- package/dist/modules/data-tables/lib/filters/parsers.d.ts +32 -0
- package/dist/modules/data-tables/lib/filters/parsers.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/filters/parsers.js +29 -0
- package/dist/modules/data-tables/lib/filters/parsers.js.map +1 -0
- package/dist/modules/data-tables/lib/filters/resolvers.d.ts +24 -0
- package/dist/modules/data-tables/lib/filters/resolvers.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/filters/resolvers.js +49 -0
- package/dist/modules/data-tables/lib/filters/resolvers.js.map +1 -0
- package/dist/modules/data-tables/lib/helpers/create-column.js +11 -0
- package/dist/modules/data-tables/lib/helpers/create-column.js.map +1 -0
- package/dist/modules/data-tables/lib/search-params.d.ts +22 -0
- package/dist/modules/data-tables/lib/search-params.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/search-params.js +17 -0
- package/dist/modules/data-tables/lib/search-params.js.map +1 -0
- package/dist/modules/data-tables/lib/types.d.ts +57 -0
- package/dist/modules/data-tables/lib/types.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/validators.d.ts +21 -0
- package/dist/modules/data-tables/lib/validators.d.ts.map +1 -0
- package/dist/modules/data-tables/lib/validators.js +17 -0
- package/dist/modules/data-tables/lib/validators.js.map +1 -0
- package/dist/modules/data-tables/server/get-data.server.d.ts +30 -0
- package/dist/modules/data-tables/server/get-data.server.d.ts.map +1 -0
- package/dist/modules/data-tables/server/get-data.server.js +48 -0
- package/dist/modules/data-tables/server/get-data.server.js.map +1 -0
- package/dist/modules/data-tables/strategies/helpers/sorting.js +38 -0
- package/dist/modules/data-tables/strategies/helpers/sorting.js.map +1 -0
- package/dist/modules/data-tables/strategies/infinite/components.js +52 -0
- package/dist/modules/data-tables/strategies/infinite/components.js.map +1 -0
- package/dist/modules/data-tables/strategies/infinite/strategy.d.ts +21 -0
- package/dist/modules/data-tables/strategies/infinite/strategy.d.ts.map +1 -0
- package/dist/modules/data-tables/strategies/infinite/strategy.js +49 -0
- package/dist/modules/data-tables/strategies/infinite/strategy.js.map +1 -0
- package/dist/modules/data-tables/strategies/pagination/components.js +133 -0
- package/dist/modules/data-tables/strategies/pagination/components.js.map +1 -0
- package/dist/modules/data-tables/strategies/pagination/strategy.d.ts +13 -0
- package/dist/modules/data-tables/strategies/pagination/strategy.d.ts.map +1 -0
- package/dist/modules/data-tables/strategies/pagination/strategy.js +47 -0
- package/dist/modules/data-tables/strategies/pagination/strategy.js.map +1 -0
- package/dist/modules/data-tables/tables/data-table/components/body.js +34 -0
- package/dist/modules/data-tables/tables/data-table/components/body.js.map +1 -0
- package/dist/modules/data-tables/tables/data-table/components/header.js +14 -0
- package/dist/modules/data-tables/tables/data-table/components/header.js.map +1 -0
- package/dist/modules/data-tables/tables/data-table/components/row.js +25 -0
- package/dist/modules/data-tables/tables/data-table/components/row.js.map +1 -0
- package/dist/modules/data-tables/tables/data-table/components/table.d.ts +11 -0
- package/dist/modules/data-tables/tables/data-table/components/table.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/data-table/components/table.js +38 -0
- package/dist/modules/data-tables/tables/data-table/components/table.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/body.js +71 -0
- package/dist/modules/data-tables/tables/inline-table/components/body.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts +12 -0
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.js +16 -0
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.ts +10 -0
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.js +40 -0
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/header.js +11 -0
- package/dist/modules/data-tables/tables/inline-table/components/header.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts +29 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.js +53 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts +27 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.js +30 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts +39 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.js +72 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts +12 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.js +16 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts +33 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.js +53 -0
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/row.client.js +38 -0
- package/dist/modules/data-tables/tables/inline-table/components/row.client.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/table.d.ts +16 -0
- package/dist/modules/data-tables/tables/inline-table/components/table.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/components/table.js +47 -0
- package/dist/modules/data-tables/tables/inline-table/components/table.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts +47 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.js +59 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.js +27 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.js.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.d.ts +15 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.d.ts.map +1 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js +53 -0
- package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js.map +1 -0
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts +17 -0
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/combobox-dropdown.client.js +26 -0
- package/dist/modules/inline-edit/components/combobox-dropdown.client.js.map +1 -0
- package/dist/modules/inline-edit/components/combobox.client.d.ts +15 -0
- package/dist/modules/inline-edit/components/combobox.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/combobox.client.js +28 -0
- package/dist/modules/inline-edit/components/combobox.client.js.map +1 -0
- package/dist/modules/inline-edit/components/date-input.client.d.ts +14 -0
- package/dist/modules/inline-edit/components/date-input.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/date-input.client.js +79 -0
- package/dist/modules/inline-edit/components/date-input.client.js.map +1 -0
- package/dist/modules/inline-edit/components/date-picker.client.d.ts +16 -0
- package/dist/modules/inline-edit/components/date-picker.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/date-picker.client.js +51 -0
- package/dist/modules/inline-edit/components/date-picker.client.js.map +1 -0
- package/dist/modules/inline-edit/components/editor.client.d.ts +16 -0
- package/dist/modules/inline-edit/components/editor.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/editor.client.js +35 -0
- package/dist/modules/inline-edit/components/editor.client.js.map +1 -0
- package/dist/modules/inline-edit/components/input-toggle.client.d.ts +17 -0
- package/dist/modules/inline-edit/components/input-toggle.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/input-toggle.client.js +47 -0
- package/dist/modules/inline-edit/components/input-toggle.client.js.map +1 -0
- package/dist/modules/inline-edit/components/input.client.d.ts +30 -0
- package/dist/modules/inline-edit/components/input.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/input.client.js +49 -0
- package/dist/modules/inline-edit/components/input.client.js.map +1 -0
- package/dist/modules/inline-edit/components/richtext.client.d.ts +14 -0
- package/dist/modules/inline-edit/components/richtext.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/richtext.client.js +31 -0
- package/dist/modules/inline-edit/components/richtext.client.js.map +1 -0
- package/dist/modules/inline-edit/components/select.client.d.ts +22 -0
- package/dist/modules/inline-edit/components/select.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/select.client.js +39 -0
- package/dist/modules/inline-edit/components/select.client.js.map +1 -0
- package/dist/modules/inline-edit/components/switch.client.d.ts +14 -0
- package/dist/modules/inline-edit/components/switch.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/switch.client.js +27 -0
- package/dist/modules/inline-edit/components/switch.client.js.map +1 -0
- package/dist/modules/inline-edit/components/toggle.client.d.ts +16 -0
- package/dist/modules/inline-edit/components/toggle.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/components/toggle.client.js +34 -0
- package/dist/modules/inline-edit/components/toggle.client.js.map +1 -0
- package/dist/modules/inline-edit/hooks/context.client.d.ts +28 -0
- package/dist/modules/inline-edit/hooks/context.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/hooks/context.client.js +29 -0
- package/dist/modules/inline-edit/hooks/context.client.js.map +1 -0
- package/dist/modules/inline-edit/hooks/use-inline.client.d.ts +16 -0
- package/dist/modules/inline-edit/hooks/use-inline.client.d.ts.map +1 -0
- package/dist/modules/inline-edit/hooks/use-inline.client.js +57 -0
- package/dist/modules/inline-edit/hooks/use-inline.client.js.map +1 -0
- package/dist/modules/inline-edit/lib/validators.d.ts +58 -0
- package/dist/modules/inline-edit/lib/validators.d.ts.map +1 -0
- package/dist/modules/inline-edit/lib/validators.js +35 -0
- package/dist/modules/inline-edit/lib/validators.js.map +1 -0
- package/dist/modules/uploads/components/button.client.d.ts +12 -0
- package/dist/modules/uploads/components/button.client.d.ts.map +1 -0
- package/dist/modules/uploads/components/button.client.js +35 -0
- package/dist/modules/uploads/components/button.client.js.map +1 -0
- package/dist/modules/uploads/components/images/grid.client.d.ts +11 -0
- package/dist/modules/uploads/components/images/grid.client.d.ts.map +1 -0
- package/dist/modules/uploads/components/images/grid.client.js +120 -0
- package/dist/modules/uploads/components/images/grid.client.js.map +1 -0
- package/dist/modules/uploads/components/images/input.client.d.ts +16 -0
- package/dist/modules/uploads/components/images/input.client.d.ts.map +1 -0
- package/dist/modules/uploads/components/images/input.client.js +28 -0
- package/dist/modules/uploads/components/images/input.client.js.map +1 -0
- package/dist/modules/uploads/components/preview-dialog.client.d.ts +16 -0
- package/dist/modules/uploads/components/preview-dialog.client.d.ts.map +1 -0
- package/dist/modules/uploads/components/preview-dialog.client.js +22 -0
- package/dist/modules/uploads/components/preview-dialog.client.js.map +1 -0
- package/dist/modules/uploads/components/zone.client.d.ts +21 -0
- package/dist/modules/uploads/components/zone.client.d.ts.map +1 -0
- package/dist/modules/uploads/components/zone.client.js +39 -0
- package/dist/modules/uploads/components/zone.client.js.map +1 -0
- package/dist/modules/uploads/hooks/use-upload-image.client.d.ts +33 -0
- package/dist/modules/uploads/hooks/use-upload-image.client.d.ts.map +1 -0
- package/dist/modules/uploads/hooks/use-upload-image.client.js +101 -0
- package/dist/modules/uploads/hooks/use-upload-image.client.js.map +1 -0
- package/dist/modules/uploads/hooks/use-upload-zone.client.d.ts +39 -0
- package/dist/modules/uploads/hooks/use-upload-zone.client.d.ts.map +1 -0
- package/dist/modules/uploads/hooks/use-upload-zone.client.js +20 -0
- package/dist/modules/uploads/hooks/use-upload-zone.client.js.map +1 -0
- package/dist/modules/uploads/lib/constants.d.ts +9 -0
- package/dist/modules/uploads/lib/constants.d.ts.map +1 -0
- package/dist/modules/uploads/lib/constants.js +17 -0
- package/dist/modules/uploads/lib/constants.js.map +1 -0
- package/dist/modules/uploads/lib/filters.d.ts +10 -0
- package/dist/modules/uploads/lib/filters.d.ts.map +1 -0
- package/dist/modules/uploads/lib/filters.js +10 -0
- package/dist/modules/uploads/lib/filters.js.map +1 -0
- package/dist/modules/uploads/lib/helpers.d.ts +32 -0
- package/dist/modules/uploads/lib/helpers.d.ts.map +1 -0
- package/dist/modules/uploads/lib/helpers.js +73 -0
- package/dist/modules/uploads/lib/helpers.js.map +1 -0
- package/dist/modules/uploads/lib/proxy.server.d.ts +46 -0
- package/dist/modules/uploads/lib/proxy.server.d.ts.map +1 -0
- package/dist/modules/uploads/lib/proxy.server.js +96 -0
- package/dist/modules/uploads/lib/proxy.server.js.map +1 -0
- package/dist/modules/uploads/lib/route.server.d.ts +43 -0
- package/dist/modules/uploads/lib/route.server.d.ts.map +1 -0
- package/dist/modules/uploads/lib/route.server.js +72 -0
- package/dist/modules/uploads/lib/route.server.js.map +1 -0
- package/dist/modules/uploads/lib/router.server.d.ts +12765 -0
- package/dist/modules/uploads/lib/router.server.d.ts.map +1 -0
- package/dist/modules/uploads/lib/router.server.js +177 -0
- package/dist/modules/uploads/lib/router.server.js.map +1 -0
- package/dist/modules/uploads/lib/schema.d.ts +815 -0
- package/dist/modules/uploads/lib/schema.d.ts.map +1 -0
- package/dist/modules/uploads/lib/schema.js +66 -0
- package/dist/modules/uploads/lib/schema.js.map +1 -0
- package/dist/modules/uploads/lib/validators.d.ts +939 -0
- package/dist/modules/uploads/lib/validators.d.ts.map +1 -0
- package/dist/modules/uploads/lib/validators.js +25 -0
- package/dist/modules/uploads/lib/validators.js.map +1 -0
- package/dist/uploads/client.d.ts +8 -0
- package/dist/uploads/client.js +9 -0
- package/dist/uploads/server.d.ts +4 -0
- package/dist/uploads/server.js +5 -0
- package/dist/uploads.d.ts +6 -0
- package/dist/uploads.js +7 -0
- package/package.json +164 -0
- package/src/components/common/icons.tsx +159 -0
- package/src/components/common/status.tsx +88 -0
- package/src/components/editor/components/block-dropdown.tsx +107 -0
- package/src/components/editor/components/content.client.tsx +16 -0
- package/src/components/editor/components/fixed-menu.client.tsx +143 -0
- package/src/components/editor/components/spinner.tsx +28 -0
- package/src/components/editor/context.client.tsx +116 -0
- package/src/components/editor/index.client.tsx +13 -0
- package/src/components/editor/preview.client.tsx +13 -0
- package/src/components/editor/utils.ts +201 -0
- package/src/components/emails/forget-password-email.tsx +70 -0
- package/src/components/entry.client.ts +48 -0
- package/src/components/entry.server.ts +5 -0
- package/src/components/entry.ts +52 -0
- package/src/components/forms/form-dialog.tsx +141 -0
- package/src/components/forms/form-layout.tsx +56 -0
- package/src/components/header/back-button.client.tsx +54 -0
- package/src/components/header/bottom-bar.client.tsx +55 -0
- package/src/components/header/breadcrumbs.client.tsx +99 -0
- package/src/components/header/header.client.tsx +10 -0
- package/src/components/header/indicator.client.tsx +28 -0
- package/src/components/header/mobile-nav-switcher.client.tsx +22 -0
- package/src/components/header/top-bar.client.tsx +134 -0
- package/src/components/layouts/admin-content.client.tsx +23 -0
- package/src/components/layouts/admin-layout.server.tsx +31 -0
- package/src/components/layouts/admin-loading.tsx +11 -0
- package/src/components/layouts/admin-sidebar-context.client.tsx +34 -0
- package/src/components/layouts/admin-sidebar-header.client.tsx +98 -0
- package/src/components/layouts/admin-sidebar.client.tsx +88 -0
- package/src/components/layouts/empty-page.tsx +59 -0
- package/src/components/layouts/list-layout.tsx +10 -0
- package/src/components/layouts/not-allowed-page.tsx +44 -0
- package/src/components/layouts/not-found-page.tsx +9 -0
- package/src/components/layouts/not-found-section.tsx +21 -0
- package/src/components/layouts/providers.client.tsx +29 -0
- package/src/components/layouts/root-layout.server.tsx +50 -0
- package/src/components/layouts/tab-layout.tsx +68 -0
- package/src/components/lists/data-list.tsx +48 -0
- package/src/components/lists/data-stack.tsx +71 -0
- package/src/components/ui/accordion.tsx +64 -0
- package/src/components/ui/alert-dialog.tsx +133 -0
- package/src/components/ui/alert.tsx +60 -0
- package/src/components/ui/aspect-ratio.tsx +9 -0
- package/src/components/ui/avatar.client.tsx +41 -0
- package/src/components/ui/badge.tsx +39 -0
- package/src/components/ui/breadcrumb.tsx +102 -0
- package/src/components/ui/button.tsx +56 -0
- package/src/components/ui/calendar.tsx +72 -0
- package/src/components/ui/card.tsx +58 -0
- package/src/components/ui/carousel.tsx +230 -0
- package/src/components/ui/chart.client.tsx +322 -0
- package/src/components/ui/checkbox.tsx +29 -0
- package/src/components/ui/collapsible.client.tsx +21 -0
- package/src/components/ui/color-picker.client.tsx +50 -0
- package/src/components/ui/combobox-dropdown.client.tsx +156 -0
- package/src/components/ui/combobox.client.tsx +110 -0
- package/src/components/ui/command.tsx +154 -0
- package/src/components/ui/context-menu.tsx +224 -0
- package/src/components/ui/dialog.client.tsx +121 -0
- package/src/components/ui/drawer.client.tsx +121 -0
- package/src/components/ui/dropdown-menu.tsx +228 -0
- package/src/components/ui/form.client.tsx +152 -0
- package/src/components/ui/hover-card.client.tsx +36 -0
- package/src/components/ui/input.tsx +21 -0
- package/src/components/ui/label.tsx +21 -0
- package/src/components/ui/navigation-menu.tsx +163 -0
- package/src/components/ui/pagination.tsx +106 -0
- package/src/components/ui/popover.tsx +42 -0
- package/src/components/ui/progress.client.tsx +28 -0
- package/src/components/ui/radio-group.tsx +45 -0
- package/src/components/ui/resizable.client.tsx +51 -0
- package/src/components/ui/scroll-area.tsx +56 -0
- package/src/components/ui/select.client.tsx +166 -0
- package/src/components/ui/separator.tsx +28 -0
- package/src/components/ui/sheet.client.tsx +128 -0
- package/src/components/ui/sidebar.client.tsx +696 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/slider.tsx +58 -0
- package/src/components/ui/sonner.client.tsx +28 -0
- package/src/components/ui/switch.tsx +28 -0
- package/src/components/ui/tabs.tsx +54 -0
- package/src/components/ui/textarea.tsx +18 -0
- package/src/components/ui/time-input.client.tsx +56 -0
- package/src/components/ui/time-picker-input.client.tsx +107 -0
- package/src/components/ui/toggle-group.client.tsx +69 -0
- package/src/components/ui/toggle.tsx +46 -0
- package/src/components/ui/tooltip.client.tsx +57 -0
- package/src/components/ui/tree.client.tsx +173 -0
- package/src/entry.ts +104 -0
- package/src/lib/config/constants.ts +1 -0
- package/src/lib/entry.client.ts +6 -0
- package/src/lib/entry.server.ts +0 -0
- package/src/lib/entry.ts +19 -0
- package/src/lib/hooks/use-action.ts +54 -0
- package/src/lib/hooks/use-indicator.tsx +62 -0
- package/src/lib/hooks/use-mobile.client.tsx +21 -0
- package/src/lib/types/config.ts +8 -0
- package/src/lib/utils/array-move.ts +8 -0
- package/src/lib/utils/cn.ts +6 -0
- package/src/lib/utils/fonts.ts +8 -0
- package/src/lib/utils/format.ts +104 -0
- package/src/lib/utils/manifest.ts +35 -0
- package/src/lib/utils/time-picker.ts +139 -0
- package/src/lib/utils/url.ts +12 -0
- package/src/modules/auth/components/allowed.client.tsx +22 -0
- package/src/modules/auth/components/allowed.server.tsx +41 -0
- package/src/modules/auth/components/auth-layout.server.tsx +31 -0
- package/src/modules/auth/components/forget-password-page.client.tsx +78 -0
- package/src/modules/auth/components/login-page.client.tsx +118 -0
- package/src/modules/auth/components/reset-password-page.client.tsx +107 -0
- package/src/modules/auth/components/update-password-command.tsx +79 -0
- package/src/modules/auth/db/schema.ts +76 -0
- package/src/modules/auth/entry.client.ts +6 -0
- package/src/modules/auth/entry.server.ts +4 -0
- package/src/modules/auth/entry.ts +3 -0
- package/src/modules/auth/handler/client.client.ts +24 -0
- package/src/modules/auth/handler/route.server.ts +32 -0
- package/src/modules/auth/handler/server.server.ts +82 -0
- package/src/modules/auth/hooks/use-permission.client.ts +48 -0
- package/src/modules/auth/lib/helpers.server.ts +59 -0
- package/src/modules/auth/lib/permissions.ts +19 -0
- package/src/modules/auth/lib/utils.ts +17 -0
- package/src/modules/auth/lib/validators.ts +91 -0
- package/src/modules/commands/components/alert-dialog-command.client.tsx +284 -0
- package/src/modules/commands/components/click-command.client.tsx +81 -0
- package/src/modules/commands/components/command-trigger.client.tsx +69 -0
- package/src/modules/commands/components/dialog-command.client.tsx +161 -0
- package/src/modules/commands/components/dropdown-command.client.tsx +200 -0
- package/src/modules/commands/components/empty-command.client.tsx +63 -0
- package/src/modules/commands/components/form-dialog-command.client.tsx +243 -0
- package/src/modules/commands/components/render-command.tsx +20 -0
- package/src/modules/commands/entry.client.ts +15 -0
- package/src/modules/commands/entry.server.ts +0 -0
- package/src/modules/commands/entry.ts +2 -0
- package/src/modules/commands/hooks/context.client.tsx +38 -0
- package/src/modules/commands/hooks/use-command-action.client.tsx +95 -0
- package/src/modules/commands/hooks/use-command-menu.client.tsx +260 -0
- package/src/modules/commands/lib/definitions.ts +43 -0
- package/src/modules/commands/lib/factory.ts +5 -0
- package/src/modules/commands/lib/schema.ts +23 -0
- package/src/modules/commands/menus/context-menu.client.tsx +69 -0
- package/src/modules/commands/menus/data-table-menu.client.tsx +46 -0
- package/src/modules/commands/menus/dropdown-menu.client.tsx +50 -0
- package/src/modules/commands/menus/inline-menu.client.tsx +34 -0
- package/src/modules/commands/menus/responsive-menu.client.tsx +18 -0
- package/src/modules/commands/utils/archive-command.client.tsx +53 -0
- package/src/modules/commands/utils/delete-command.client.tsx +58 -0
- package/src/modules/commands/utils/send-mail-command.client.tsx +187 -0
- package/src/modules/config/db/create-client.ts +33 -0
- package/src/modules/config/db/helpers.ts +18 -0
- package/src/modules/config/db/types.ts +1 -0
- package/src/modules/config/entry.client.ts +0 -0
- package/src/modules/config/entry.server.ts +14 -0
- package/src/modules/config/entry.ts +5 -0
- package/src/modules/config/lib/config.server.ts +40 -0
- package/src/modules/config/lib/resolve.server.ts +75 -0
- package/src/modules/config/paths/create.server.ts +10 -0
- package/src/modules/config/paths/get.server.ts +69 -0
- package/src/modules/config/paths/types.ts +64 -0
- package/src/modules/config/router/client.server.tsx +57 -0
- package/src/modules/config/router/client.tsx +31 -0
- package/src/modules/config/router/context.server.ts +29 -0
- package/src/modules/config/router/error.server.ts +1 -0
- package/src/modules/config/router/helpers.ts +3 -0
- package/src/modules/config/router/init.server.ts +77 -0
- package/src/modules/config/router/query-client.ts +63 -0
- package/src/modules/config/router/validators.ts +10 -0
- package/src/modules/data-tables/components/cell/common.client.tsx +35 -0
- package/src/modules/data-tables/components/cell/index.client.tsx +13 -0
- package/src/modules/data-tables/components/cell/select.client.tsx +32 -0
- package/src/modules/data-tables/components/column-header.tsx +65 -0
- package/src/modules/data-tables/components/filters/combobox.client.tsx +150 -0
- package/src/modules/data-tables/components/filters/slider.client.tsx +138 -0
- package/src/modules/data-tables/components/footer.tsx +40 -0
- package/src/modules/data-tables/components/header.tsx +67 -0
- package/src/modules/data-tables/components/layout.tsx +10 -0
- package/src/modules/data-tables/components/search-input.client.tsx +17 -0
- package/src/modules/data-tables/components/skeleton.tsx +39 -0
- package/src/modules/data-tables/components/table.tsx +80 -0
- package/src/modules/data-tables/components/toolbar.tsx +29 -0
- package/src/modules/data-tables/entry.client.ts +39 -0
- package/src/modules/data-tables/entry.server.ts +13 -0
- package/src/modules/data-tables/entry.ts +20 -0
- package/src/modules/data-tables/hooks/use-context.client.tsx +73 -0
- package/src/modules/data-tables/hooks/use-filter.client.ts +31 -0
- package/src/modules/data-tables/hooks/use-search.client.ts +29 -0
- package/src/modules/data-tables/hooks/use-selection.client.ts +57 -0
- package/src/modules/data-tables/hooks/use-table.client.ts +57 -0
- package/src/modules/data-tables/lib/converters/cursor.ts +13 -0
- package/src/modules/data-tables/lib/converters/dto.ts +54 -0
- package/src/modules/data-tables/lib/converters/filter.ts +11 -0
- package/src/modules/data-tables/lib/converters/search.ts +23 -0
- package/src/modules/data-tables/lib/converters/sorting.ts +25 -0
- package/src/modules/data-tables/lib/filters/config.ts +6 -0
- package/src/modules/data-tables/lib/filters/parsers.ts +66 -0
- package/src/modules/data-tables/lib/filters/resolvers.ts +61 -0
- package/src/modules/data-tables/lib/helpers/create-column.ts +9 -0
- package/src/modules/data-tables/lib/search-params.ts +12 -0
- package/src/modules/data-tables/lib/types.ts +63 -0
- package/src/modules/data-tables/lib/validators.ts +22 -0
- package/src/modules/data-tables/server/get-data.server.ts +78 -0
- package/src/modules/data-tables/strategies/helpers/sorting.ts +65 -0
- package/src/modules/data-tables/strategies/infinite/components.tsx +67 -0
- package/src/modules/data-tables/strategies/infinite/strategy.ts +70 -0
- package/src/modules/data-tables/strategies/pagination/components.tsx +117 -0
- package/src/modules/data-tables/strategies/pagination/strategy.ts +53 -0
- package/src/modules/data-tables/tables/data-table/components/body.tsx +48 -0
- package/src/modules/data-tables/tables/data-table/components/header.tsx +18 -0
- package/src/modules/data-tables/tables/data-table/components/row.tsx +40 -0
- package/src/modules/data-tables/tables/data-table/components/table.tsx +30 -0
- package/src/modules/data-tables/tables/inline-table/components/body.tsx +113 -0
- package/src/modules/data-tables/tables/inline-table/components/cells/common.tsx +15 -0
- package/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.tsx +40 -0
- package/src/modules/data-tables/tables/inline-table/components/header.tsx +20 -0
- package/src/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.tsx +90 -0
- package/src/modules/data-tables/tables/inline-table/components/inputs/combobox.client.tsx +109 -0
- package/src/modules/data-tables/tables/inline-table/components/inputs/input.client.tsx +108 -0
- package/src/modules/data-tables/tables/inline-table/components/inputs/read-only.tsx +17 -0
- package/src/modules/data-tables/tables/inline-table/components/inputs/select.client.tsx +102 -0
- package/src/modules/data-tables/tables/inline-table/components/row.client.tsx +57 -0
- package/src/modules/data-tables/tables/inline-table/components/table.tsx +42 -0
- package/src/modules/data-tables/tables/inline-table/hooks/context.client.tsx +85 -0
- package/src/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.ts +117 -0
- package/src/modules/data-tables/tables/inline-table/hooks/use-input.client.ts +65 -0
- package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +38 -0
- package/src/modules/inline-edit/components/combobox.client.tsx +32 -0
- package/src/modules/inline-edit/components/date-input.client.tsx +92 -0
- package/src/modules/inline-edit/components/date-picker.client.tsx +58 -0
- package/src/modules/inline-edit/components/editor.client.tsx +41 -0
- package/src/modules/inline-edit/components/input-toggle.client.tsx +61 -0
- package/src/modules/inline-edit/components/input.client.tsx +65 -0
- package/src/modules/inline-edit/components/richtext.client.tsx +36 -0
- package/src/modules/inline-edit/components/select.client.tsx +62 -0
- package/src/modules/inline-edit/components/switch.client.tsx +29 -0
- package/src/modules/inline-edit/components/toggle.client.tsx +39 -0
- package/src/modules/inline-edit/entry.client.ts +12 -0
- package/src/modules/inline-edit/entry.server.ts +1 -0
- package/src/modules/inline-edit/entry.ts +1 -0
- package/src/modules/inline-edit/hooks/context.client.tsx +29 -0
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +62 -0
- package/src/modules/inline-edit/lib/factory.server.ts +91 -0
- package/src/modules/inline-edit/lib/validators.ts +43 -0
- package/src/modules/uploads/components/button.client.tsx +29 -0
- package/src/modules/uploads/components/images/grid.client.tsx +162 -0
- package/src/modules/uploads/components/images/input.client.tsx +34 -0
- package/src/modules/uploads/components/preview-dialog.client.tsx +21 -0
- package/src/modules/uploads/components/zone.client.tsx +56 -0
- package/src/modules/uploads/entry.client.ts +14 -0
- package/src/modules/uploads/entry.server.ts +6 -0
- package/src/modules/uploads/entry.ts +5 -0
- package/src/modules/uploads/hooks/use-upload-image.client.tsx +131 -0
- package/src/modules/uploads/hooks/use-upload-zone.client.ts +44 -0
- package/src/modules/uploads/lib/constants.ts +10 -0
- package/src/modules/uploads/lib/filters.ts +7 -0
- package/src/modules/uploads/lib/helpers.ts +66 -0
- package/src/modules/uploads/lib/proxy.server.ts +131 -0
- package/src/modules/uploads/lib/route.server.ts +95 -0
- package/src/modules/uploads/lib/router.server.ts +340 -0
- package/src/modules/uploads/lib/schema.ts +82 -0
- package/src/modules/uploads/lib/validators.ts +47 -0
- package/src/styles.css +194 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import "react";
|
|
7
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
8
|
+
|
|
9
|
+
//#region src/components/ui/switch.tsx
|
|
10
|
+
function Switch({ className,...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx(SwitchPrimitive.Root, {
|
|
12
|
+
"data-slot": "switch",
|
|
13
|
+
className: cn("data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 shadow-xs peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent outline-none transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
14
|
+
...props,
|
|
15
|
+
children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, {
|
|
16
|
+
"data-slot": "switch-thumb",
|
|
17
|
+
className: cn("bg-background pointer-events-none block size-4 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Switch };
|
|
24
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.js","names":[],"sources":["../../../src/components/ui/switch.tsx"],"sourcesContent":["\"use client\";\n\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n \"data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 shadow-xs peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent outline-none transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n \"bg-background pointer-events-none block size-4 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0\",\n )}\n />\n </SwitchPrimitive.Root>\n );\n}\n\nexport { Switch };\n"],"mappings":";;;;;;;;;AAOA,SAAS,OAAO,EAAE,UAAW,GAAG,SAA4D;AAC1F,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GACT,+TACA,UACD;EACD,GAAI;YAEJ,oBAAC,gBAAgB;GACf,aAAU;GACV,WAAW,GACT,4KACD;IACD;GACmB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime357 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/tabs.d.ts
|
|
6
|
+
declare function Tabs({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime357.JSX.Element;
|
|
10
|
+
declare function TabsList({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime357.JSX.Element;
|
|
14
|
+
declare function TabsTrigger({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime357.JSX.Element;
|
|
18
|
+
declare function TabsContent({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime357.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
24
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,IAAA;;;GAA8B,OAAA,CAAM,sBAAsB,aAAA,CAAc,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAU7E,QAAA;;;GAAkC,OAAA,CAAM,sBAAsB,aAAA,CAAc,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAajF,WAAA;;;GAAqC,OAAA,CAAM,sBAAsB,aAAA,CAAc,WAAQ,oBAAA,CAAA,GAAA,CAAA;AA3BjE,iBAwCtB,WAAA,CApCI;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAoCiC,OAAA,CAAM,cApCvC,CAAA,OAoC6D,aAAA,CAAc,OApC3E,CAAA,CAAA,EAoCmF,oBAAA,CAAA,GAAA,CAAA,OApCnF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import "react";
|
|
7
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
8
|
+
|
|
9
|
+
//#region src/components/ui/tabs.tsx
|
|
10
|
+
function Tabs({ className,...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Root, {
|
|
12
|
+
"data-slot": "tabs",
|
|
13
|
+
className: cn("flex flex-col gap-2", className),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function TabsList({ className,...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.List, {
|
|
19
|
+
"data-slot": "tabs-list",
|
|
20
|
+
className: cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1", className),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function TabsTrigger({ className,...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
|
|
26
|
+
"data-slot": "tabs-trigger",
|
|
27
|
+
className: cn("data-[state=active]:bg-primary data-[state=active]:text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2 py-1 text-sm font-medium transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function TabsContent({ className,...props }) {
|
|
32
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Content, {
|
|
33
|
+
"data-slot": "tabs-content",
|
|
34
|
+
className: cn("flex-1 outline-none", className),
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
41
|
+
//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":["\"use client\";\n\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>) {\n return (\n <TabsPrimitive.Root\n data-slot=\"tabs\"\n className={cn(\"flex flex-col gap-2\", className)}\n {...props}\n />\n );\n}\n\nfunction TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>) {\n return (\n <TabsPrimitive.List\n data-slot=\"tabs-list\"\n className={cn(\n \"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>) {\n return (\n <TabsPrimitive.Trigger\n data-slot=\"tabs-trigger\"\n className={cn(\n \"data-[state=active]:bg-primary data-[state=active]:text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2 py-1 text-sm font-medium transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>) {\n return (\n <TabsPrimitive.Content\n data-slot=\"tabs-content\"\n className={cn(\"flex-1 outline-none\", className)}\n {...props}\n />\n );\n}\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"],"mappings":";;;;;;;;;AAOA,SAAS,KAAK,EAAE,UAAW,GAAG,SAA0D;AACtF,QACE,oBAAC,cAAc;EACb,aAAU;EACV,WAAW,GAAG,uBAAuB,UAAU;EAC/C,GAAI;GACJ;;AAIN,SAAS,SAAS,EAAE,UAAW,GAAG,SAA0D;AAC1F,QACE,oBAAC,cAAc;EACb,aAAU;EACV,WAAW,GACT,mGACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,UAAW,GAAG,SAA6D;AAChG,QACE,oBAAC,cAAc;EACb,aAAU;EACV,WAAW,GACT,ggBACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,UAAW,GAAG,SAA6D;AAChG,QACE,oBAAC,cAAc;EACb,aAAU;EACV,WAAW,GAAG,uBAAuB,UAAU;EAC/C,GAAI;GACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime361 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ui/textarea.d.ts
|
|
5
|
+
declare function Textarea({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: React$1.ComponentProps<"textarea">): react_jsx_runtime361.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Textarea };
|
|
11
|
+
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","names":[],"sources":["../../../src/components/ui/textarea.tsx"],"sourcesContent":[],"mappings":";;;;iBAIS,QAAA;;;GAAkC,OAAA,CAAM,6BAA0B,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/textarea.tsx
|
|
6
|
+
function Textarea({ className,...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
8
|
+
"data-slot": "textarea",
|
|
9
|
+
className: cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Textarea };
|
|
16
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","names":[],"sources":["../../../src/components/ui/textarea.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Textarea({ className, ...props }: React.ComponentProps<\"textarea\">) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn(\n \"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Textarea };\n"],"mappings":";;;;;AAIA,SAAS,SAAS,EAAE,UAAW,GAAG,SAA2C;AAC3E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,sbACA,UACD;EACD,GAAI;GACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime137 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ui/time-input.client.d.ts
|
|
4
|
+
type TimeInputProps = {
|
|
5
|
+
value: Date | undefined;
|
|
6
|
+
onChange: (value: Date | undefined) => void;
|
|
7
|
+
format?: "HH:mm" | "HH:mm:ss";
|
|
8
|
+
};
|
|
9
|
+
declare function TimeInput({
|
|
10
|
+
value,
|
|
11
|
+
onChange,
|
|
12
|
+
format
|
|
13
|
+
}: TimeInputProps): react_jsx_runtime137.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TimeInput };
|
|
16
|
+
//# sourceMappingURL=time-input.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-input.client.d.ts","names":[],"sources":["../../../src/components/ui/time-input.client.tsx"],"sourcesContent":[],"mappings":";;;KAGK,cAAA;SACI;oBACW;EAFf,MAAA,CAAA,EAAA,OAAA,GAAc,UAAA;CAAA;AACV,iBAKO,SAAA,CALP;EAAA,KAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAKwD,cALxD,CAAA,EAKsE,oBAAA,CAAA,GAAA,CAAA,OALtE"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { TimePickerInput } from "./time-picker-input.client.js";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/time-input.client.tsx
|
|
6
|
+
function TimeInput({ value, onChange, format = "HH:mm" }) {
|
|
7
|
+
const minuteRef = React.useRef(null);
|
|
8
|
+
const hourRef = React.useRef(null);
|
|
9
|
+
const secondRef = React.useRef(null);
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11
|
+
className: "flex gap-1.5",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsx(TimePickerInput, {
|
|
14
|
+
"data-input": true,
|
|
15
|
+
picker: "hours",
|
|
16
|
+
date: value,
|
|
17
|
+
setDate: onChange,
|
|
18
|
+
ref: hourRef,
|
|
19
|
+
onRightFocus: () => minuteRef.current?.focus(),
|
|
20
|
+
className: "w-full"
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ jsx("span", {
|
|
23
|
+
className: "mb-1 self-center",
|
|
24
|
+
children: ":"
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsx(TimePickerInput, {
|
|
27
|
+
"data-input": true,
|
|
28
|
+
picker: "minutes",
|
|
29
|
+
date: value,
|
|
30
|
+
setDate: onChange,
|
|
31
|
+
ref: minuteRef,
|
|
32
|
+
onLeftFocus: () => hourRef.current?.focus(),
|
|
33
|
+
onRightFocus: () => secondRef.current?.focus(),
|
|
34
|
+
className: "w-full"
|
|
35
|
+
}),
|
|
36
|
+
format === "HH:mm:ss" && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
37
|
+
className: "mb-1 self-center",
|
|
38
|
+
children: ":"
|
|
39
|
+
}), /* @__PURE__ */ jsx(TimePickerInput, {
|
|
40
|
+
picker: "seconds",
|
|
41
|
+
date: value,
|
|
42
|
+
setDate: onChange,
|
|
43
|
+
ref: secondRef,
|
|
44
|
+
onLeftFocus: () => minuteRef.current?.focus(),
|
|
45
|
+
className: "w-full"
|
|
46
|
+
})] })
|
|
47
|
+
]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { TimeInput };
|
|
53
|
+
//# sourceMappingURL=time-input.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-input.client.js","names":[],"sources":["../../../src/components/ui/time-input.client.tsx"],"sourcesContent":["import React from \"react\";\nimport { TimePickerInput } from \"./time-picker-input.client\";\n\ntype TimeInputProps = {\n value: Date | undefined;\n onChange: (value: Date | undefined) => void;\n format?: \"HH:mm\" | \"HH:mm:ss\";\n};\n\nexport function TimeInput({ value, onChange, format = \"HH:mm\" }: TimeInputProps) {\n const minuteRef = React.useRef<HTMLInputElement>(null);\n const hourRef = React.useRef<HTMLInputElement>(null);\n const secondRef = React.useRef<HTMLInputElement>(null);\n\n return (\n <div className=\"flex gap-1.5\">\n <TimePickerInput\n data-input\n picker=\"hours\"\n date={value}\n setDate={onChange}\n ref={hourRef}\n onRightFocus={() => minuteRef.current?.focus()}\n className=\"w-full\"\n />\n\n <span className=\"mb-1 self-center\">:</span>\n\n <TimePickerInput\n data-input\n picker=\"minutes\"\n date={value}\n setDate={onChange}\n ref={minuteRef}\n onLeftFocus={() => hourRef.current?.focus()}\n onRightFocus={() => secondRef.current?.focus()}\n className=\"w-full\"\n />\n\n {format === \"HH:mm:ss\" && (\n <>\n <span className=\"mb-1 self-center\">:</span>\n\n <TimePickerInput\n picker=\"seconds\"\n date={value}\n setDate={onChange}\n ref={secondRef}\n onLeftFocus={() => minuteRef.current?.focus()}\n className=\"w-full\"\n />\n </>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;AASA,SAAgB,UAAU,EAAE,OAAO,UAAU,SAAS,WAA2B;CAC/E,MAAM,YAAY,MAAM,OAAyB,KAAK;CACtD,MAAM,UAAU,MAAM,OAAyB,KAAK;CACpD,MAAM,YAAY,MAAM,OAAyB,KAAK;AAEtD,QACE,qBAAC;EAAI,WAAU;;GACb,oBAAC;IACC;IACA,QAAO;IACP,MAAM;IACN,SAAS;IACT,KAAK;IACL,oBAAoB,UAAU,SAAS,OAAO;IAC9C,WAAU;KACV;GAEF,oBAAC;IAAK,WAAU;cAAmB;KAAQ;GAE3C,oBAAC;IACC;IACA,QAAO;IACP,MAAM;IACN,SAAS;IACT,KAAK;IACL,mBAAmB,QAAQ,SAAS,OAAO;IAC3C,oBAAoB,UAAU,SAAS,OAAO;IAC9C,WAAU;KACV;GAED,WAAW,cACV,4CACE,oBAAC;IAAK,WAAU;cAAmB;KAAQ,EAE3C,oBAAC;IACC,QAAO;IACP,MAAM;IACN,SAAS;IACT,KAAK;IACL,mBAAmB,UAAU,SAAS,OAAO;IAC7C,WAAU;KACV,IACD;;GAED"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TimePickerType } from "../../lib/utils/time-picker.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ui/time-picker-input.client.d.ts
|
|
5
|
+
interface TimePickerInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
6
|
+
picker: TimePickerType;
|
|
7
|
+
date: Date | undefined;
|
|
8
|
+
setDate: (date: Date | undefined) => void;
|
|
9
|
+
onRightFocus?: () => void;
|
|
10
|
+
onLeftFocus?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const TimePickerInput: React.ForwardRefExoticComponent<TimePickerInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { TimePickerInput, TimePickerInputProps };
|
|
15
|
+
//# sourceMappingURL=time-picker-input.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-input.client.d.ts","names":[],"sources":["../../../src/components/ui/time-picker-input.client.tsx"],"sourcesContent":[],"mappings":";;;;UAaiB,oBAAA,SAA6B,KAAA,CAAM,oBAAoB;UAC9D;EADO,IAAA,EAET,IAFS,GAAA,SAAA;EAAqB,OAAA,EAAA,CAAA,IAAA,EAGpB,IAHoB,GAAA,SAAA,EAAA,GAAA,IAAA;cAAkC,CAAA,EAAA,GAAA,GAAA,IAAA;aAC9D,CAAA,EAAA,GAAA,GAAA,IAAA;;cAOJ,eALY,EAKG,KAAA,CAAA,yBALH,CAKG,oBALH,GAKG,KAAA,CAAA,aALH,CAKG,gBALH,CAAA,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { Input } from "./input.js";
|
|
6
|
+
import { getArrowByType, getDateByType, setDateByType } from "../../lib/utils/time-picker.js";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import React from "react";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ui/time-picker-input.client.tsx
|
|
11
|
+
const TimePickerInput = React.forwardRef(({ className, type = "tel", value, id, name, date = new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), setDate, onChange, onKeyDown, picker, onLeftFocus, onRightFocus,...props }, ref) => {
|
|
12
|
+
const [flag, setFlag] = React.useState(false);
|
|
13
|
+
/**
|
|
14
|
+
* allow the user to enter the second digit within 2 seconds
|
|
15
|
+
* otherwise start again with entering first digit
|
|
16
|
+
*/
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
if (flag) {
|
|
19
|
+
const timer = setTimeout(() => {
|
|
20
|
+
setFlag(false);
|
|
21
|
+
}, 2e3);
|
|
22
|
+
return () => clearTimeout(timer);
|
|
23
|
+
}
|
|
24
|
+
}, [flag]);
|
|
25
|
+
const calculatedValue = React.useMemo(() => getDateByType(date, picker), [date, picker]);
|
|
26
|
+
const handleKeyDown = (e) => {
|
|
27
|
+
if (e.key === "Tab") return;
|
|
28
|
+
e.preventDefault();
|
|
29
|
+
if (e.key === "ArrowRight") onRightFocus?.();
|
|
30
|
+
if (e.key === "ArrowLeft") onLeftFocus?.();
|
|
31
|
+
if (["ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
32
|
+
const newValue = getArrowByType(calculatedValue, e.key === "ArrowUp" ? 1 : -1, picker);
|
|
33
|
+
if (flag) setFlag(false);
|
|
34
|
+
setDate(setDateByType(new Date(date), newValue, picker));
|
|
35
|
+
}
|
|
36
|
+
if (e.key >= "0" && e.key <= "9") {
|
|
37
|
+
const newValue = !flag ? "0" + e.key : calculatedValue.slice(1, 2) + e.key;
|
|
38
|
+
setFlag((prev) => !prev);
|
|
39
|
+
setDate(setDateByType(new Date(date), newValue, picker));
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ jsx(Input, {
|
|
43
|
+
ref,
|
|
44
|
+
id: id || picker,
|
|
45
|
+
name: name || picker,
|
|
46
|
+
className: cn("focus:bg-accent focus:text-accent-foreground w-[48px] text-center text-base tabular-nums caret-transparent [&::-webkit-inner-spin-button]:appearance-none", className),
|
|
47
|
+
value: value || calculatedValue,
|
|
48
|
+
onChange: (e) => {
|
|
49
|
+
e.preventDefault();
|
|
50
|
+
onChange?.(e);
|
|
51
|
+
},
|
|
52
|
+
type,
|
|
53
|
+
inputMode: "decimal",
|
|
54
|
+
onKeyDown: (e) => {
|
|
55
|
+
onKeyDown?.(e);
|
|
56
|
+
handleKeyDown(e);
|
|
57
|
+
},
|
|
58
|
+
...props
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
TimePickerInput.displayName = "TimePickerInput";
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { TimePickerInput };
|
|
65
|
+
//# sourceMappingURL=time-picker-input.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-input.client.js","names":[],"sources":["../../../src/components/ui/time-picker-input.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"@/lib/utils/cn\";\nimport {\n TimePickerType,\n getArrowByType,\n getDateByType,\n setDateByType,\n} from \"@/lib/utils/time-picker\";\nimport { Input } from \"./input\";\n\nimport React from \"react\";\n\nexport interface TimePickerInputProps extends React.InputHTMLAttributes<HTMLInputElement> {\n picker: TimePickerType;\n date: Date | undefined;\n setDate: (date: Date | undefined) => void;\n onRightFocus?: () => void;\n onLeftFocus?: () => void;\n}\n\nconst TimePickerInput = React.forwardRef<HTMLInputElement, TimePickerInputProps>(\n (\n {\n className,\n type = \"tel\",\n value,\n id,\n name,\n date = new Date(new Date().setHours(0, 0, 0, 0)),\n setDate,\n onChange,\n onKeyDown,\n picker,\n onLeftFocus,\n onRightFocus,\n ...props\n },\n ref,\n ) => {\n const [flag, setFlag] = React.useState<boolean>(false);\n\n /**\n * allow the user to enter the second digit within 2 seconds\n * otherwise start again with entering first digit\n */\n React.useEffect(() => {\n if (flag) {\n const timer = setTimeout(() => {\n setFlag(false);\n }, 2000);\n\n return () => clearTimeout(timer);\n }\n }, [flag]);\n\n const calculatedValue = React.useMemo(() => getDateByType(date, picker), [date, picker]);\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Tab\") return;\n e.preventDefault();\n if (e.key === \"ArrowRight\") onRightFocus?.();\n if (e.key === \"ArrowLeft\") onLeftFocus?.();\n if ([\"ArrowUp\", \"ArrowDown\"].includes(e.key)) {\n const step = e.key === \"ArrowUp\" ? 1 : -1;\n const newValue = getArrowByType(calculatedValue, step, picker);\n if (flag) setFlag(false);\n const tempDate = new Date(date);\n setDate(setDateByType(tempDate, newValue, picker));\n }\n if (e.key >= \"0\" && e.key <= \"9\") {\n const newValue = !flag ? \"0\" + e.key : calculatedValue.slice(1, 2) + e.key;\n setFlag((prev) => !prev);\n const tempDate = new Date(date);\n setDate(setDateByType(tempDate, newValue, picker));\n }\n };\n\n return (\n <Input\n ref={ref}\n id={id || picker}\n name={name || picker}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground w-[48px] text-center text-base tabular-nums caret-transparent [&::-webkit-inner-spin-button]:appearance-none\",\n className,\n )}\n value={value || calculatedValue}\n onChange={(e) => {\n e.preventDefault();\n onChange?.(e);\n }}\n type={type}\n inputMode=\"decimal\"\n onKeyDown={(e) => {\n onKeyDown?.(e);\n handleKeyDown(e);\n }}\n {...props}\n />\n );\n },\n);\n\nTimePickerInput.displayName = \"TimePickerInput\";\n\nexport { TimePickerInput };\n"],"mappings":";;;;;;;;;;AAqBA,MAAM,kBAAkB,MAAM,YAE1B,EACE,WACA,OAAO,OACP,OACA,IACA,MACA,OAAO,IAAI,sBAAK,IAAI,MAAM,EAAC,SAAS,GAAG,GAAG,GAAG,EAAE,CAAC,EAChD,SACA,UACA,WACA,QACA,aACA,aACA,GAAG,SAEL,QACG;CACH,MAAM,CAAC,MAAM,WAAW,MAAM,SAAkB,MAAM;;;;;AAMtD,OAAM,gBAAgB;AACpB,MAAI,MAAM;GACR,MAAM,QAAQ,iBAAiB;AAC7B,YAAQ,MAAM;MACb,IAAK;AAER,gBAAa,aAAa,MAAM;;IAEjC,CAAC,KAAK,CAAC;CAEV,MAAM,kBAAkB,MAAM,cAAc,cAAc,MAAM,OAAO,EAAE,CAAC,MAAM,OAAO,CAAC;CAExF,MAAM,iBAAiB,MAA6C;AAClE,MAAI,EAAE,QAAQ,MAAO;AACrB,IAAE,gBAAgB;AAClB,MAAI,EAAE,QAAQ,aAAc,iBAAgB;AAC5C,MAAI,EAAE,QAAQ,YAAa,gBAAe;AAC1C,MAAI,CAAC,WAAW,YAAY,CAAC,SAAS,EAAE,IAAI,EAAE;GAE5C,MAAM,WAAW,eAAe,iBADnB,EAAE,QAAQ,YAAY,IAAI,IACgB,OAAO;AAC9D,OAAI,KAAM,SAAQ,MAAM;AAExB,WAAQ,cADS,IAAI,KAAK,KAAK,EACC,UAAU,OAAO,CAAC;;AAEpD,MAAI,EAAE,OAAO,OAAO,EAAE,OAAO,KAAK;GAChC,MAAM,WAAW,CAAC,OAAO,MAAM,EAAE,MAAM,gBAAgB,MAAM,GAAG,EAAE,GAAG,EAAE;AACvE,YAAS,SAAS,CAAC,KAAK;AAExB,WAAQ,cADS,IAAI,KAAK,KAAK,EACC,UAAU,OAAO,CAAC;;;AAItD,QACE,oBAAC;EACM;EACL,IAAI,MAAM;EACV,MAAM,QAAQ;EACd,WAAW,GACT,6JACA,UACD;EACD,OAAO,SAAS;EAChB,WAAW,MAAM;AACf,KAAE,gBAAgB;AAClB,cAAW,EAAE;;EAET;EACN,WAAU;EACV,YAAY,MAAM;AAChB,eAAY,EAAE;AACd,iBAAc,EAAE;;EAElB,GAAI;GACJ;EAGP;AAED,gBAAgB,cAAc"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { toggleVariants } from "./toggle.js";
|
|
2
|
+
import * as react_jsx_runtime138 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/toggle-group.client.d.ts
|
|
8
|
+
declare function ToggleGroup({
|
|
9
|
+
className,
|
|
10
|
+
variant,
|
|
11
|
+
size,
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
}: React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime138.JSX.Element;
|
|
15
|
+
declare function ToggleGroupItem({
|
|
16
|
+
className,
|
|
17
|
+
children,
|
|
18
|
+
variant,
|
|
19
|
+
size,
|
|
20
|
+
...props
|
|
21
|
+
}: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime138.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
24
|
+
//# sourceMappingURL=toggle-group.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.client.d.ts","names":[],"sources":["../../../src/components/ui/toggle-group.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAcS,WAAA;;;;;;GAMN,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,QAAQ,oBAAoB,kBAAe,oBAAA,CAAA,GAAA,CAAA;iBAmBtF,eAAA;;;;;;GAMN,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,QAAQ,oBAAoB,kBAAe,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { toggleVariants } from "./toggle.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import * as React$1 from "react";
|
|
8
|
+
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ui/toggle-group.client.tsx
|
|
11
|
+
const ToggleGroupContext = React$1.createContext({
|
|
12
|
+
size: "default",
|
|
13
|
+
variant: "default"
|
|
14
|
+
});
|
|
15
|
+
function ToggleGroup({ className, variant, size, children,...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(ToggleGroupPrimitive.Root, {
|
|
17
|
+
"data-slot": "toggle-group",
|
|
18
|
+
"data-variant": variant,
|
|
19
|
+
"data-size": size,
|
|
20
|
+
className: cn("group/toggle-group data-[variant=outline]:shadow-xs flex w-fit items-center rounded-md", className),
|
|
21
|
+
...props,
|
|
22
|
+
children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, {
|
|
23
|
+
value: {
|
|
24
|
+
variant,
|
|
25
|
+
size
|
|
26
|
+
},
|
|
27
|
+
children
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function ToggleGroupItem({ className, children, variant, size,...props }) {
|
|
32
|
+
const context = React$1.useContext(ToggleGroupContext);
|
|
33
|
+
return /* @__PURE__ */ jsx(ToggleGroupPrimitive.Item, {
|
|
34
|
+
"data-slot": "toggle-group-item",
|
|
35
|
+
"data-variant": context.variant || variant,
|
|
36
|
+
"data-size": context.size || size,
|
|
37
|
+
className: cn(toggleVariants({
|
|
38
|
+
variant: context.variant || variant,
|
|
39
|
+
size: context.size || size
|
|
40
|
+
}), "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", className),
|
|
41
|
+
...props,
|
|
42
|
+
children
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
48
|
+
//# sourceMappingURL=toggle-group.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.client.js","names":["React"],"sources":["../../../src/components/ui/toggle-group.client.tsx"],"sourcesContent":["\"use client\";\n\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { toggleVariants } from \"@/components/ui/toggle\";\nimport { cn } from \"@/lib/utils/cn\";\n\nconst ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({\n size: \"default\",\n variant: \"default\",\n});\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n children,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n className={cn(\n \"group/toggle-group data-[variant=outline]:shadow-xs flex w-fit items-center rounded-md\",\n className,\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n );\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n \"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l\",\n className,\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n}\n\nexport { ToggleGroup, ToggleGroupItem };\n"],"mappings":";;;;;;;;;;AASA,MAAM,qBAAqBA,QAAM,cAAmD;CAClF,MAAM;CACN,SAAS;CACV,CAAC;AAEF,SAAS,YAAY,EACnB,WACA,SACA,MACA,SACA,GAAG,SAC4F;AAC/F,QACE,oBAAC,qBAAqB;EACpB,aAAU;EACV,gBAAc;EACd,aAAW;EACX,WAAW,GACT,0FACA,UACD;EACD,GAAI;YAEJ,oBAAC,mBAAmB;GAAS,OAAO;IAAE;IAAS;IAAM;GAClD;IAC2B;GACJ;;AAIhC,SAAS,gBAAgB,EACvB,WACA,UACA,SACA,KACA,GAAG,SAC4F;CAC/F,MAAM,UAAUA,QAAM,WAAW,mBAAmB;AAEpD,QACE,oBAAC,qBAAqB;EACpB,aAAU;EACV,gBAAc,QAAQ,WAAW;EACjC,aAAW,QAAQ,QAAQ;EAC3B,WAAW,GACT,eAAe;GACb,SAAS,QAAQ,WAAW;GAC5B,MAAM,QAAQ,QAAQ;GACvB,CAAC,EACF,+LACA,UACD;EACD,GAAI;EAEH;GACyB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
5
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/toggle.d.ts
|
|
8
|
+
declare const toggleVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
12
|
+
declare function Toggle({
|
|
13
|
+
className,
|
|
14
|
+
variant,
|
|
15
|
+
size,
|
|
16
|
+
...props
|
|
17
|
+
}: React$1.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime7.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Toggle, toggleVariants };
|
|
20
|
+
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","names":[],"sources":["../../../src/components/ui/toggle.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAQM;;;IAoBL,+BAAA,CAAA;AAxB8B,iBA0BtB,MAAA,CAFR;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAOE,OAAA,CAAM,cAPR,CAAA,OAO8B,eAAA,CAAgB,IAP9C,CAAA,GAOsD,YAPtD,CAAA,OAO0E,cAP1E,CAAA,CAAA,EAOyF,kBAAA,CAAA,GAAA,CAAA,OAPzF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
import "react";
|
|
8
|
+
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ui/toggle.tsx
|
|
11
|
+
const toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
default: "bg-transparent",
|
|
15
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
default: "h-9 px-2 min-w-9",
|
|
19
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
20
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "default",
|
|
25
|
+
size: "default"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
function Toggle({ className, variant, size,...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsx(TogglePrimitive.Root, {
|
|
30
|
+
"data-slot": "toggle",
|
|
31
|
+
className: cn(toggleVariants({
|
|
32
|
+
variant,
|
|
33
|
+
size,
|
|
34
|
+
className
|
|
35
|
+
})),
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Toggle, toggleVariants };
|
|
42
|
+
//# sourceMappingURL=toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.js","names":[],"sources":["../../../src/components/ui/toggle.tsx"],"sourcesContent":["\"use client\";\n\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nconst toggleVariants = cva(\n \"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground\",\n },\n size: {\n default: \"h-9 px-2 min-w-9\",\n sm: \"h-8 px-1.5 min-w-8\",\n lg: \"h-10 px-2.5 min-w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nfunction Toggle({\n className,\n variant,\n size,\n ...props\n}: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>) {\n return (\n <TogglePrimitive.Root\n data-slot=\"toggle\"\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n );\n}\n\nexport { Toggle, toggleVariants };\n"],"mappings":";;;;;;;;;;AAQA,MAAM,iBAAiB,IACrB,ijBACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,SAAS,OAAO,EACd,WACA,SACA,KACA,GAAG,SACuF;AAC1F,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GAAG,eAAe;GAAE;GAAS;GAAM;GAAW,CAAC,CAAC;EAC3D,GAAI;GACJ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime140 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/tooltip.client.d.ts
|
|
6
|
+
declare function TooltipProvider({
|
|
7
|
+
delayDuration,
|
|
8
|
+
...props
|
|
9
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime140.JSX.Element;
|
|
10
|
+
declare function Tooltip({
|
|
11
|
+
...props
|
|
12
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime140.JSX.Element;
|
|
13
|
+
declare function TooltipTrigger({
|
|
14
|
+
...props
|
|
15
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime140.JSX.Element;
|
|
16
|
+
declare function TooltipContent({
|
|
17
|
+
className,
|
|
18
|
+
sideOffset,
|
|
19
|
+
children,
|
|
20
|
+
...props
|
|
21
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime140.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
24
|
+
//# sourceMappingURL=tooltip.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.client.d.ts","names":[],"sources":["../../../src/components/ui/tooltip.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,eAAA;;;GAGN,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,YAAS,oBAAA,CAAA,GAAA,CAAA;iBAUhD,OAAA;;GAAsB,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAQxE,cAAA;;GAA6B,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,WAAQ,oBAAA,CAAA,GAAA,CAAA;AAzB5D,iBA6BtB,cAAA,CAzBe;EAAA,SAAA;EAAA,UAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA8BrB,OAAA,CAAM,cA9Be,CAAA,OA8BO,gBAAA,CAAiB,OA9BxB,CAAA,CAAA,EA8BgC,oBAAA,CAAA,GAAA,CAAA,OA9BhC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import "react";
|
|
7
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
8
|
+
|
|
9
|
+
//#region src/components/ui/tooltip.client.tsx
|
|
10
|
+
function TooltipProvider({ delayDuration = 0,...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
|
|
12
|
+
"data-slot": "tooltip-provider",
|
|
13
|
+
delayDuration,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function Tooltip({ ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, {
|
|
19
|
+
"data-slot": "tooltip",
|
|
20
|
+
...props
|
|
21
|
+
}) });
|
|
22
|
+
}
|
|
23
|
+
function TooltipTrigger({ ...props }) {
|
|
24
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, {
|
|
25
|
+
"data-slot": "tooltip-trigger",
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function TooltipContent({ className, sideOffset = 0, children,...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(TooltipPrimitive.Content, {
|
|
31
|
+
"data-slot": "tooltip-content",
|
|
32
|
+
sideOffset,
|
|
33
|
+
className: cn("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit text-balance rounded-md px-3 py-1.5 text-xs", className),
|
|
34
|
+
...props,
|
|
35
|
+
children: [children, /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
|
|
36
|
+
}) });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
41
|
+
//# sourceMappingURL=tooltip.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.client.js","names":[],"sources":["../../../src/components/ui/tooltip.client.tsx"],"sourcesContent":["\"use client\";\n\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n );\n}\n\nfunction Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n );\n}\n\nfunction TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n sideOffset = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n \"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit text-balance rounded-md px-3 py-1.5 text-xs\",\n className,\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"],"mappings":";;;;;;;;;AAOA,SAAS,gBAAgB,EACvB,gBAAgB,EAChB,GAAG,SACsD;AACzD,QACE,oBAAC,iBAAiB;EAChB,aAAU;EACK;EACf,GAAI;GACJ;;AAIN,SAAS,QAAQ,EAAE,GAAG,SAA6D;AACjF,QACE,oBAAC,6BACC,oBAAC,iBAAiB;EAAK,aAAU;EAAU,GAAI;GAAS,GACxC;;AAItB,SAAS,eAAe,EAAE,GAAG,SAAgE;AAC3F,QAAO,oBAAC,iBAAiB;EAAQ,aAAU;EAAkB,GAAI;GAAS;;AAG5E,SAAS,eAAe,EACtB,WACA,aAAa,GACb,SACA,GAAG,SACqD;AACxD,QACE,oBAAC,iBAAiB,oBAChB,qBAAC,iBAAiB;EAChB,aAAU;EACE;EACZ,WAAW,GACT,wXACA,UACD;EACD,GAAI;aAEH,UACD,oBAAC,iBAAiB,SAAM,WAAU,iGAAiG;GAC1G,GACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { ItemInstance } from "@headless-tree/core";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/tree.client.d.ts
|
|
6
|
+
interface TreeProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
indent?: number;
|
|
8
|
+
tree?: any;
|
|
9
|
+
}
|
|
10
|
+
declare function Tree({
|
|
11
|
+
indent,
|
|
12
|
+
tree,
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}: TreeProps): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
interface TreeItemProps<T = any> extends React$1.HTMLAttributes<HTMLButtonElement> {
|
|
17
|
+
item: ItemInstance<T>;
|
|
18
|
+
indent?: number;
|
|
19
|
+
asChild?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare function TreeItem<T = any>({
|
|
22
|
+
item,
|
|
23
|
+
className,
|
|
24
|
+
asChild,
|
|
25
|
+
children,
|
|
26
|
+
...props
|
|
27
|
+
}: Omit<TreeItemProps<T>, "indent">): react_jsx_runtime0.JSX.Element;
|
|
28
|
+
interface TreeItemLabelProps<T = any> extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
29
|
+
item?: ItemInstance<T>;
|
|
30
|
+
}
|
|
31
|
+
declare function TreeItemLabel<T = any>({
|
|
32
|
+
item: propItem,
|
|
33
|
+
children,
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}: TreeItemLabelProps<T>): react_jsx_runtime0.JSX.Element | null;
|
|
37
|
+
declare function TreeDragLine({
|
|
38
|
+
className,
|
|
39
|
+
...props
|
|
40
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime0.JSX.Element | null;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Tree, TreeDragLine, TreeItem, TreeItemLabel };
|
|
43
|
+
//# sourceMappingURL=tree.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.client.d.ts","names":[],"sources":["../../../src/components/ui/tree.client.tsx"],"sourcesContent":[],"mappings":";;;;;UAyBU,SAAA,SAAkB,OAAA,CAAM,eAAe;;;AApBlB;iBAyBtB,IAAA,CALW;EAAA,MAAA;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAKsC,SALtC,CAAA,EAK+C,kBAAA,CAAA,GAAA,CAAA,OAL/C;UA+BV,aA/BuC,CAAA,IAAA,GAAA,CAAA,SA+BR,OAAA,CAAM,cA/BE,CA+Ba,iBA/Bb,CAAA,CAAA;MAArB,EAgCpB,YAhC0B,CAgCb,CAhCa,CAAA;EAAc,MAAA,CAAA,EAAA,MAAA;EAKvC,OAAI,CAAA,EAAA,OAAA;;iBAgCJ,QAhCO,CAAA,IAAA,GAAA,CAAA,CAAA;EAAA,IAAA;EAAA,SAAA;EAAA,OAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAsCb,IAtCa,CAsCR,aAtCQ,CAsCM,CAtCN,CAAA,EAAA,QAAA,CAAA,CAAA,EAsCmB,kBAAA,CAAA,GAAA,CAAA,OAtCnB;UAoFN,kBApFmB,CAAA,IAAA,GAAA,CAAA,SAoFiB,OAAA,CAAM,cApFvB,CAoFsC,eApFtC,CAAA,CAAA;MAAM,CAAA,EAqF1B,YArF0B,CAqFb,CArFa,CAAA;;iBAwF1B,aAxF0D,CAAA,IAAA,GAAA,CAAA,CAAA;EAAA,IAAA,EAyF3D,QAzF2D;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA6FhE,kBA7FgE,CA6F7C,CA7F6C,CAAA,CAAA,EA6F3C,kBAAA,CAAA,GAAA,CAAA,OAAA,GA7F2C,IAAA;iBAuH1D,YAAA,CAvH0D;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuHpB,OAAA,CAAM,cAvHc,CAuHC,cAvHD,CAAA,CAAA,EAuHgB,kBAAA,CAAA,GAAA,CAAA,OAAA,GAvHhB,IAAA"}
|