@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,49 @@
|
|
|
1
|
+
import { Dialog } from "./dialog.client.js";
|
|
2
|
+
import * as react_jsx_runtime289 from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { Command } from "cmdk";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/command.d.ts
|
|
7
|
+
declare function Command$1({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React$1.ComponentProps<typeof Command>): react_jsx_runtime289.JSX.Element;
|
|
11
|
+
declare function CommandDialog({
|
|
12
|
+
title,
|
|
13
|
+
description,
|
|
14
|
+
children,
|
|
15
|
+
...props
|
|
16
|
+
}: React$1.ComponentProps<typeof Dialog> & {
|
|
17
|
+
title?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
}): react_jsx_runtime289.JSX.Element;
|
|
20
|
+
declare function CommandInput({
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}: React$1.ComponentProps<typeof Command.Input>): react_jsx_runtime289.JSX.Element;
|
|
24
|
+
declare function CommandList$1({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: React$1.ComponentProps<typeof Command.List>): react_jsx_runtime289.JSX.Element;
|
|
28
|
+
declare function CommandEmpty({
|
|
29
|
+
...props
|
|
30
|
+
}: React$1.ComponentProps<typeof Command.Empty>): react_jsx_runtime289.JSX.Element;
|
|
31
|
+
declare function CommandGroup({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React$1.ComponentProps<typeof Command.Group>): react_jsx_runtime289.JSX.Element;
|
|
35
|
+
declare function CommandSeparator({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React$1.ComponentProps<typeof Command.Separator>): react_jsx_runtime289.JSX.Element;
|
|
39
|
+
declare function CommandItem({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React$1.ComponentProps<typeof Command.Item>): react_jsx_runtime289.JSX.Element;
|
|
43
|
+
declare function CommandShortcut({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime289.JSX.Element;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList$1 as CommandList, CommandSeparator, CommandShortcut };
|
|
49
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","names":[],"sources":["../../../src/components/ui/command.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAeS,SAAA;;;GAAiC,OAAA,CAAM,sBAAsB,WAAiB,oBAAA,CAAA,GAAA,CAAA;iBAa9E,aAAA;;;;;GAKN,OAAA,CAAM,sBAAsB;;EAlBtB,WAAA,CAAO,EAAA,MAAA;CAAA,CAAA,EAqBf,oBAAA,CAAA,GAAA,CAAA,OArBe;iBAqCP,YAAA,CArCU;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwChB,OAAA,CAAM,cAxCU,CAAA,OAwCY,OAAA,CAAiB,KAxC7B,CAAA,CAAA,EAwCmC,oBAAA,CAAA,GAAA,CAAA,OAxCnC;iBAwDV,aAAA,CAxD6D;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwDxB,OAAA,CAAM,cAxDkB,CAAA,OAwDI,OAAA,CAAiB,IAxDrB,CAAA,CAAA,EAwD0B,oBAAA,CAAA,GAAA,CAAA,OAxD1B;iBAkE7D,YAAA,CAlEuC;EAAA,GAAA;AAAA,CAAA,EAkEZ,OAAA,CAAM,cAlEM,CAAA,OAkEgB,OAAA,CAAiB,KAlEjC,CAAA,CAAA,EAkEuC,oBAAA,CAAA,GAAA,CAAA,OAlEvC;iBA4EvC,YAAA,CA5E8E;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+EpF,OAAA,CAAM,cA/E8E,CAAA,OA+ExD,OAAA,CAAiB,KA/EuC,CAAA,CAAA,EA+EjC,oBAAA,CAAA,GAAA,CAAA,OA/EiC;iBA4F9E,gBAAA,CA5F8E;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+FpF,OAAA,CAAM,cA/F8E,CAAA,OA+FxD,OAAA,CAAiB,SA/FuC,CAAA,CAAA,EA+F7B,oBAAA,CAAA,GAAA,CAAA,OA/F6B;AAAA,iBAyG9E,WAAA,CA5Fa;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA4FwB,OAAA,CAAM,cA5F9B,CAAA,OA4FoD,OAAA,CAAiB,IA5FrE,CAAA,CAAA,EA4F0E,oBAAA,CAAA,GAAA,CAAA,OA5F1E;iBAyGb,eAAA,CAzGa;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyG4B,OAAA,CAAM,cAzGlC,CAAA,MAAA,CAAA,CAAA,EAyGwD,oBAAA,CAAA,GAAA,CAAA,OAzGxD"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./dialog.client.js";
|
|
6
|
+
import { SearchIcon } from "lucide-react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import "react";
|
|
9
|
+
import { Command } from "cmdk";
|
|
10
|
+
|
|
11
|
+
//#region src/components/ui/command.tsx
|
|
12
|
+
function Command$1({ className,...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(Command, {
|
|
14
|
+
"data-slot": "command",
|
|
15
|
+
className: cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children,...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsxs(Dialog, {
|
|
21
|
+
...props,
|
|
22
|
+
children: [/* @__PURE__ */ jsxs(DialogHeader, {
|
|
23
|
+
className: "sr-only",
|
|
24
|
+
children: [/* @__PURE__ */ jsx(DialogTitle, { children: title }), /* @__PURE__ */ jsx(DialogDescription, { children: description })]
|
|
25
|
+
}), /* @__PURE__ */ jsx(DialogContent, {
|
|
26
|
+
className: "overflow-hidden p-0",
|
|
27
|
+
children: /* @__PURE__ */ jsx(Command$1, {
|
|
28
|
+
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
29
|
+
children
|
|
30
|
+
})
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function CommandInput({ className,...props }) {
|
|
35
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
36
|
+
"data-slot": "command-input-wrapper",
|
|
37
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
38
|
+
children: [/* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command.Input, {
|
|
39
|
+
"data-slot": "command-input",
|
|
40
|
+
className: cn("placeholder:text-muted-foreground outline-hidden flex h-10 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
41
|
+
...props
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function CommandList$1({ className,...props }) {
|
|
46
|
+
return /* @__PURE__ */ jsx(Command.List, {
|
|
47
|
+
"data-slot": "command-list",
|
|
48
|
+
className: cn("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden", className),
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function CommandEmpty({ ...props }) {
|
|
53
|
+
return /* @__PURE__ */ jsx(Command.Empty, {
|
|
54
|
+
"data-slot": "command-empty",
|
|
55
|
+
className: "py-6 text-center text-sm",
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function CommandGroup({ className,...props }) {
|
|
60
|
+
return /* @__PURE__ */ jsx(Command.Group, {
|
|
61
|
+
"data-slot": "command-group",
|
|
62
|
+
className: cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function CommandSeparator({ className,...props }) {
|
|
67
|
+
return /* @__PURE__ */ jsx(Command.Separator, {
|
|
68
|
+
"data-slot": "command-separator",
|
|
69
|
+
className: cn("bg-border -mx-1 h-px", className),
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function CommandItem({ className,...props }) {
|
|
74
|
+
return /* @__PURE__ */ jsx(Command.Item, {
|
|
75
|
+
"data-slot": "command-item",
|
|
76
|
+
className: cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function CommandShortcut({ className,...props }) {
|
|
81
|
+
return /* @__PURE__ */ jsx("span", {
|
|
82
|
+
"data-slot": "command-shortcut",
|
|
83
|
+
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList$1 as CommandList, CommandSeparator, CommandShortcut };
|
|
90
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","names":["Command","CommandPrimitive","CommandList"],"sources":["../../../src/components/ui/command.tsx"],"sourcesContent":["\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { SearchIcon } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"@/components/ui/dialog.client\";\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n className={cn(\n \"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandDialog({\n title = \"Command Palette\",\n description = \"Search for a command to run...\",\n children,\n ...props\n}: React.ComponentProps<typeof Dialog> & {\n title?: string;\n description?: string;\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className=\"overflow-hidden p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\nfunction CommandInput({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div data-slot=\"command-input-wrapper\" className=\"flex h-9 items-center gap-2 border-b px-3\">\n <SearchIcon className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n \"placeholder:text-muted-foreground outline-hidden flex h-10 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn(\"max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden\", className)}\n {...props}\n />\n );\n}\n\nfunction CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n data-slot=\"command-empty\"\n className=\"py-6 text-center text-sm\"\n {...props}\n />\n );\n}\n\nfunction CommandGroup({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n \"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn(\"bg-border -mx-1 h-px\", className)}\n {...props}\n />\n );\n}\n\nfunction CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn(\"text-muted-foreground ml-auto text-xs tracking-widest\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\n"],"mappings":";;;;;;;;;;;AAeA,SAASA,UAAQ,EAAE,UAAW,GAAG,SAAwD;AACvF,QACE,oBAACC;EACC,aAAU;EACV,WAAW,GACT,6FACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,cAAc,EACrB,QAAQ,mBACR,cAAc,kCACd,SACA,GAAG,SAIF;AACD,QACE,qBAAC;EAAO,GAAI;aACV,qBAAC;GAAa,WAAU;cACtB,oBAAC,yBAAa,QAAoB,EAClC,oBAAC,+BAAmB,cAAgC;IACvC,EACf,oBAAC;GAAc,WAAU;aACvB,oBAACD;IAAQ,WAAU;IAChB;KACO;IACI;GACT;;AAIb,SAAS,aAAa,EACpB,UACA,GAAG,SACmD;AACtD,QACE,qBAAC;EAAI,aAAU;EAAwB,WAAU;aAC/C,oBAAC,cAAW,WAAU,+BAA+B,EACrD,oBAACC,QAAiB;GAChB,aAAU;GACV,WAAW,GACT,4JACA,UACD;GACD,GAAI;IACJ;GACE;;AAIV,SAASC,cAAY,EAAE,UAAW,GAAG,SAA6D;AAChG,QACE,oBAACD,QAAiB;EAChB,aAAU;EACV,WAAW,GAAG,+DAA+D,UAAU;EACvF,GAAI;GACJ;;AAIN,SAAS,aAAa,EAAE,GAAG,SAA8D;AACvF,QACE,oBAACA,QAAiB;EAChB,aAAU;EACV,WAAU;EACV,GAAI;GACJ;;AAIN,SAAS,aAAa,EACpB,UACA,GAAG,SACmD;AACtD,QACE,oBAACA,QAAiB;EAChB,aAAU;EACV,WAAW,GACT,0NACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,UACA,GAAG,SACuD;AAC1D,QACE,oBAACA,QAAiB;EAChB,aAAU;EACV,WAAW,GAAG,wBAAwB,UAAU;EAChD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,UAAW,GAAG,SAA6D;AAChG,QACE,oBAACA,QAAiB;EAChB,aAAU;EACV,WAAW,GACT,uYACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EAAE,UAAW,GAAG,SAAuC;AAC9E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,yDAAyD,UAAU;EACjF,GAAI;GACJ"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as react_jsx_runtime298 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/context-menu.d.ts
|
|
6
|
+
declare function ContextMenu({
|
|
7
|
+
...props
|
|
8
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Root>): react_jsx_runtime298.JSX.Element;
|
|
9
|
+
declare function ContextMenuTrigger({
|
|
10
|
+
...props
|
|
11
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Trigger>): react_jsx_runtime298.JSX.Element;
|
|
12
|
+
declare function ContextMenuGroup({
|
|
13
|
+
...props
|
|
14
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Group>): react_jsx_runtime298.JSX.Element;
|
|
15
|
+
declare function ContextMenuPortal({
|
|
16
|
+
...props
|
|
17
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Portal>): react_jsx_runtime298.JSX.Element;
|
|
18
|
+
declare function ContextMenuSub({
|
|
19
|
+
...props
|
|
20
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Sub>): react_jsx_runtime298.JSX.Element;
|
|
21
|
+
declare function ContextMenuRadioGroup({
|
|
22
|
+
...props
|
|
23
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): react_jsx_runtime298.JSX.Element;
|
|
24
|
+
declare function ContextMenuSubTrigger({
|
|
25
|
+
className,
|
|
26
|
+
inset,
|
|
27
|
+
children,
|
|
28
|
+
...props
|
|
29
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
30
|
+
inset?: boolean;
|
|
31
|
+
}): react_jsx_runtime298.JSX.Element;
|
|
32
|
+
declare function ContextMenuSubContent({
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.SubContent>): react_jsx_runtime298.JSX.Element;
|
|
36
|
+
declare function ContextMenuContent({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Content>): react_jsx_runtime298.JSX.Element;
|
|
40
|
+
declare function ContextMenuItem({
|
|
41
|
+
className,
|
|
42
|
+
inset,
|
|
43
|
+
variant,
|
|
44
|
+
...props
|
|
45
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
46
|
+
inset?: boolean;
|
|
47
|
+
variant?: "default" | "destructive";
|
|
48
|
+
}): react_jsx_runtime298.JSX.Element;
|
|
49
|
+
declare function ContextMenuCheckboxItem({
|
|
50
|
+
className,
|
|
51
|
+
children,
|
|
52
|
+
checked,
|
|
53
|
+
...props
|
|
54
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): react_jsx_runtime298.JSX.Element;
|
|
55
|
+
declare function ContextMenuRadioItem({
|
|
56
|
+
className,
|
|
57
|
+
children,
|
|
58
|
+
...props
|
|
59
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): react_jsx_runtime298.JSX.Element;
|
|
60
|
+
declare function ContextMenuLabel({
|
|
61
|
+
className,
|
|
62
|
+
inset,
|
|
63
|
+
...props
|
|
64
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
65
|
+
inset?: boolean;
|
|
66
|
+
}): react_jsx_runtime298.JSX.Element;
|
|
67
|
+
declare function ContextMenuSeparator({
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
}: React$1.ComponentProps<typeof ContextMenuPrimitive.Separator>): react_jsx_runtime298.JSX.Element;
|
|
71
|
+
declare function ContextMenuShortcut({
|
|
72
|
+
className,
|
|
73
|
+
...props
|
|
74
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime298.JSX.Element;
|
|
75
|
+
//#endregion
|
|
76
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
77
|
+
//# sourceMappingURL=context-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","names":[],"sources":["../../../src/components/ui/context-menu.tsx"],"sourcesContent":[],"mappings":";;;;;iBAQS,WAAA;;GAA0B,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAIhF,kBAAA;;GAEN,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,WAAQ,oBAAA,CAAA,GAAA,CAAA;iBAInD,gBAAA;;GAA+B,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,SAAM,oBAAA,CAAA,GAAA,CAAA;AAdhE,iBAkBtB,iBAAA,CAdW;EAAA,GAAA;AAAA,CAAA,EAcqB,OAAA,CAAM,cAd3B,CAAA,OAciD,oBAAA,CAAqB,MAdtE,CAAA,CAAA,EAc6E,oBAAA,CAAA,GAAA,CAAA,OAd7E;iBAkBX,cAAA,CAlBW;EAAA,GAAA;AAAA,CAAA,EAkBkB,OAAA,CAAM,cAlBxB,CAAA,OAkB8C,oBAAA,CAAqB,GAlBnE,CAAA,CAAA,EAkBuE,oBAAA,CAAA,GAAA,CAAA,OAlBvE;iBAsBX,qBAAA,CAtB2E;EAAA,GAAA;AAAA,CAAA,EAwBjF,OAAA,CAAM,cAxB2E,CAAA,OAwBrD,oBAAA,CAAqB,UAxBgC,CAAA,CAAA,EAwBrB,oBAAA,CAAA,GAAA,CAAA,OAxBqB;iBA4B3E,qBAAA,CA5BgC;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EAiCtC,OAAA,CAAM,cAjCgC,CAAA,OAiCV,oBAAA,CAAqB,UAjCX,CAAA,GAAA;OAAgD,CAAA,EAAA,OAAA;CAAA,CAAA,EAmCxF,oBAAA,CAAA,GAAA,CAAA,OAnCwF;AAAA,iBAoDhF,qBAAA,CAhDkB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmDxB,OAAA,CAAM,cAnDkB,CAAA,OAmDI,oBAAA,CAAqB,UAnDzB,CAAA,CAAA,EAmDoC,oBAAA,CAAA,GAAA,CAAA,OAnDpC;iBAgElB,kBAAA,CAhEkB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmExB,OAAA,CAAM,cAnEkB,CAAA,OAmEI,oBAAA,CAAqB,OAnEzB,CAAA,CAAA,EAmEiC,oBAAA,CAAA,GAAA,CAAA,OAnEjC;iBAkFlB,eAAA,CAhF2C;EAAA,SAAA;EAAA,KAAA;EAAA,OAAA;EAAA,GAAA;CAAA,EAqFjD,OAAA,CAAM,cArF2C,CAAA,OAqFrB,oBAAA,CAAqB,IArFA,CAAA,GAAA;OAAjD,CAAA,EAAA,OAAM;SAAmD,CAAA,EAAA,SAAA,GAAA,aAAA;CAAA,CAAA,EAwF3D,oBAAA,CAAA,GAAA,CAAA,OAxF2D;AAAA,iBAuGnD,uBAAA,CAnGgB;EAAA,SAAA;EAAA,QAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAwGtB,OAAA,CAAM,cAxGgB,CAAA,OAwGM,oBAAA,CAAqB,YAxG3B,CAAA,CAAA,EAwGwC,oBAAA,CAAA,GAAA,CAAA,OAxGxC;iBA6HhB,oBAAA,CA7HgB;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAiItB,OAAA,CAAM,cAjIgB,CAAA,OAiIM,oBAAA,CAAqB,SAjI3B,CAAA,CAAA,EAiIqC,oBAAA,CAAA,GAAA,CAAA,OAjIrC;iBAqJhB,gBAAA,CArJgF;EAAA,SAAA;EAAA,KAAA;EAAA,GAAA;CAAA,EAyJtF,OAAA,CAAM,cAzJgF,CAAA,OAyJ1D,oBAAA,CAAqB,KAzJqC,CAAA,GAAA;OAAjD,CAAA,EAAA,OAAM;IA2J7C,oBAAA,CAAA,GAAA,CAAA,OA3J8F;iBAsKtF,oBAAA,CAtKsF;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyK5F,OAAA,CAAM,cAzKsF,CAAA,OAyKhE,oBAAA,CAAqB,SAzK2C,CAAA,CAAA,EAyKjC,oBAAA,CAAA,GAAA,CAAA,OAzKiC;AAAA,iBAmLtF,mBAAA,CA/KiB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+K4B,OAAA,CAAM,cA/KlC,CAAA,MAAA,CAAA,CAAA,EA+KwD,oBAAA,CAAA,GAAA,CAAA,OA/KxD"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import "react";
|
|
8
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ui/context-menu.tsx
|
|
11
|
+
function ContextMenu({ ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Root, {
|
|
13
|
+
"data-slot": "context-menu",
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function ContextMenuTrigger({ ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Trigger, {
|
|
19
|
+
"data-slot": "context-menu-trigger",
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function ContextMenuGroup({ ...props }) {
|
|
24
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Group, {
|
|
25
|
+
"data-slot": "context-menu-group",
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function ContextMenuPortal({ ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, {
|
|
31
|
+
"data-slot": "context-menu-portal",
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function ContextMenuSub({ ...props }) {
|
|
36
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Sub, {
|
|
37
|
+
"data-slot": "context-menu-sub",
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function ContextMenuRadioGroup({ ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.RadioGroup, {
|
|
43
|
+
"data-slot": "context-menu-radio-group",
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function ContextMenuSubTrigger({ className, inset, children,...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsxs(ContextMenuPrimitive.SubTrigger, {
|
|
49
|
+
"data-slot": "context-menu-sub-trigger",
|
|
50
|
+
"data-inset": inset,
|
|
51
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
52
|
+
...props,
|
|
53
|
+
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto" })]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function ContextMenuSubContent({ className,...props }) {
|
|
57
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.SubContent, {
|
|
58
|
+
"data-slot": "context-menu-sub-content",
|
|
59
|
+
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg", className),
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function ContextMenuContent({ className,...props }) {
|
|
64
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(ContextMenuPrimitive.Content, {
|
|
65
|
+
"data-slot": "context-menu-content",
|
|
66
|
+
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", className),
|
|
67
|
+
...props
|
|
68
|
+
}) });
|
|
69
|
+
}
|
|
70
|
+
function ContextMenuItem({ className, inset, variant = "default",...props }) {
|
|
71
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Item, {
|
|
72
|
+
"data-slot": "context-menu-item",
|
|
73
|
+
"data-inset": inset,
|
|
74
|
+
"data-variant": variant,
|
|
75
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
76
|
+
...props
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function ContextMenuCheckboxItem({ className, children, checked,...props }) {
|
|
80
|
+
return /* @__PURE__ */ jsxs(ContextMenuPrimitive.CheckboxItem, {
|
|
81
|
+
"data-slot": "context-menu-checkbox-item",
|
|
82
|
+
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
83
|
+
checked,
|
|
84
|
+
...props,
|
|
85
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
86
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
87
|
+
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
|
|
88
|
+
}), children]
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function ContextMenuRadioItem({ className, children,...props }) {
|
|
92
|
+
return /* @__PURE__ */ jsxs(ContextMenuPrimitive.RadioItem, {
|
|
93
|
+
"data-slot": "context-menu-radio-item",
|
|
94
|
+
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
95
|
+
...props,
|
|
96
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
97
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
98
|
+
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) })
|
|
99
|
+
}), children]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function ContextMenuLabel({ className, inset,...props }) {
|
|
103
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Label, {
|
|
104
|
+
"data-slot": "context-menu-label",
|
|
105
|
+
"data-inset": inset,
|
|
106
|
+
className: cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
|
|
107
|
+
...props
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function ContextMenuSeparator({ className,...props }) {
|
|
111
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Separator, {
|
|
112
|
+
"data-slot": "context-menu-separator",
|
|
113
|
+
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
114
|
+
...props
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function ContextMenuShortcut({ className,...props }) {
|
|
118
|
+
return /* @__PURE__ */ jsx("span", {
|
|
119
|
+
"data-slot": "context-menu-shortcut",
|
|
120
|
+
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
//#endregion
|
|
126
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
127
|
+
//# sourceMappingURL=context-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.js","names":[],"sources":["../../../src/components/ui/context-menu.tsx"],"sourcesContent":["\"use client\";\n\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\";\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {\n return <ContextMenuPrimitive.Root data-slot=\"context-menu\" {...props} />;\n}\n\nfunction ContextMenuTrigger({\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>) {\n return <ContextMenuPrimitive.Trigger data-slot=\"context-menu-trigger\" {...props} />;\n}\n\nfunction ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>) {\n return <ContextMenuPrimitive.Group data-slot=\"context-menu-group\" {...props} />;\n}\n\nfunction ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>) {\n return <ContextMenuPrimitive.Portal data-slot=\"context-menu-portal\" {...props} />;\n}\n\nfunction ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>) {\n return <ContextMenuPrimitive.Sub data-slot=\"context-menu-sub\" {...props} />;\n}\n\nfunction ContextMenuRadioGroup({\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>) {\n return <ContextMenuPrimitive.RadioGroup data-slot=\"context-menu-radio-group\" {...props} />;\n}\n\nfunction ContextMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <ContextMenuPrimitive.SubTrigger\n data-slot=\"context-menu-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto\" />\n </ContextMenuPrimitive.SubTrigger>\n );\n}\n\nfunction ContextMenuSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>) {\n return (\n <ContextMenuPrimitive.SubContent\n data-slot=\"context-menu-sub-content\"\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction ContextMenuContent({\n className,\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.Content>) {\n return (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n data-slot=\"context-menu-content\"\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md\",\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n );\n}\n\nfunction ContextMenuItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: \"default\" | \"destructive\";\n}) {\n return (\n <ContextMenuPrimitive.Item\n data-slot=\"context-menu-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction ContextMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>) {\n return (\n <ContextMenuPrimitive.CheckboxItem\n data-slot=\"context-menu-checkbox-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction ContextMenuRadioItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>) {\n return (\n <ContextMenuPrimitive.RadioItem\n data-slot=\"context-menu-radio-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n );\n}\n\nfunction ContextMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <ContextMenuPrimitive.Label\n data-slot=\"context-menu-label\"\n data-inset={inset}\n className={cn(\"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8\", className)}\n {...props}\n />\n );\n}\n\nfunction ContextMenuSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.Separator>) {\n return (\n <ContextMenuPrimitive.Separator\n data-slot=\"context-menu-separator\"\n className={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n {...props}\n />\n );\n}\n\nfunction ContextMenuShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"context-menu-shortcut\"\n className={cn(\"text-muted-foreground ml-auto text-xs tracking-widest\", className)}\n {...props}\n />\n );\n}\n\nexport {\n ContextMenu,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuPortal,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n};\n"],"mappings":";;;;;;;;;;AAQA,SAAS,YAAY,EAAE,GAAG,SAAiE;AACzF,QAAO,oBAAC,qBAAqB;EAAK,aAAU;EAAe,GAAI;GAAS;;AAG1E,SAAS,mBAAmB,EAC1B,GAAG,SACyD;AAC5D,QAAO,oBAAC,qBAAqB;EAAQ,aAAU;EAAuB,GAAI;GAAS;;AAGrF,SAAS,iBAAiB,EAAE,GAAG,SAAkE;AAC/F,QAAO,oBAAC,qBAAqB;EAAM,aAAU;EAAqB,GAAI;GAAS;;AAGjF,SAAS,kBAAkB,EAAE,GAAG,SAAmE;AACjG,QAAO,oBAAC,qBAAqB;EAAO,aAAU;EAAsB,GAAI;GAAS;;AAGnF,SAAS,eAAe,EAAE,GAAG,SAAgE;AAC3F,QAAO,oBAAC,qBAAqB;EAAI,aAAU;EAAmB,GAAI;GAAS;;AAG7E,SAAS,sBAAsB,EAC7B,GAAG,SAC4D;AAC/D,QAAO,oBAAC,qBAAqB;EAAW,aAAU;EAA2B,GAAI;GAAS;;AAG5F,SAAS,sBAAsB,EAC7B,WACA,OACA,SACA,GAAG,SAGF;AACD,QACE,qBAAC,qBAAqB;EACpB,aAAU;EACV,cAAY;EACZ,WAAW,GACT,oTACA,UACD;EACD,GAAI;aAEH,UACD,oBAAC,oBAAiB,WAAU,YAAY;GACR;;AAItC,SAAS,sBAAsB,EAC7B,UACA,GAAG,SAC4D;AAC/D,QACE,oBAAC,qBAAqB;EACpB,aAAU;EACV,WAAW,GACT,ybACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,mBAAmB,EAC1B,UACA,GAAG,SACyD;AAC5D,QACE,oBAAC,qBAAqB,oBACpB,oBAAC,qBAAqB;EACpB,aAAU;EACV,WAAW,GACT,ybACA,UACD;EACD,GAAI;GACJ,GAC0B;;AAIlC,SAAS,gBAAgB,EACvB,WACA,OACA,UAAU,UACV,GAAG,SAIF;AACD,QACE,oBAAC,qBAAqB;EACpB,aAAU;EACV,cAAY;EACZ,gBAAc;EACd,WAAW,GACT,gpBACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,wBAAwB,EAC/B,WACA,UACA,QACA,GAAG,SAC8D;AACjE,QACE,qBAAC,qBAAqB;EACpB,aAAU;EACV,WAAW,GACT,gTACA,UACD;EACQ;EACT,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,qBAAqB,2BACpB,oBAAC,aAAU,WAAU,WAAW,GACG;IAChC,EACN;GACiC;;AAIxC,SAAS,qBAAqB,EAC5B,WACA,SACA,GAAG,SAC2D;AAC9D,QACE,qBAAC,qBAAqB;EACpB,aAAU;EACV,WAAW,GACT,gTACA,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,qBAAqB,2BACpB,oBAAC,cAAW,WAAU,wBAAwB,GACX;IAChC,EACN;GAC8B;;AAIrC,SAAS,iBAAiB,EACxB,WACA,MACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,aAAU;EACV,cAAY;EACZ,WAAW,GAAG,qEAAqE,UAAU;EAC7F,GAAI;GACJ;;AAIN,SAAS,qBAAqB,EAC5B,UACA,GAAG,SAC2D;AAC9D,QACE,oBAAC,qBAAqB;EACpB,aAAU;EACV,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAAE,UAAW,GAAG,SAAuC;AAClF,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,yDAAyD,UAAU;EACjF,GAAI;GACJ"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/dialog.client.d.ts
|
|
6
|
+
declare function Dialog({
|
|
7
|
+
...props
|
|
8
|
+
}: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime62.JSX.Element;
|
|
9
|
+
declare function DialogTrigger({
|
|
10
|
+
...props
|
|
11
|
+
}: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime62.JSX.Element;
|
|
12
|
+
declare function DialogPortal({
|
|
13
|
+
...props
|
|
14
|
+
}: React$1.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime62.JSX.Element;
|
|
15
|
+
declare function DialogClose({
|
|
16
|
+
...props
|
|
17
|
+
}: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime62.JSX.Element;
|
|
18
|
+
declare function DialogOverlay({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: React$1.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime62.JSX.Element;
|
|
22
|
+
declare function DialogContent({
|
|
23
|
+
className,
|
|
24
|
+
children,
|
|
25
|
+
...props
|
|
26
|
+
}: React$1.ComponentProps<typeof DialogPrimitive.Content>): react_jsx_runtime62.JSX.Element;
|
|
27
|
+
declare function DialogHeader({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime62.JSX.Element;
|
|
31
|
+
declare function DialogFooter({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime62.JSX.Element;
|
|
35
|
+
declare function DialogTitle({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime62.JSX.Element;
|
|
39
|
+
declare function DialogDescription({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime62.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
45
|
+
//# sourceMappingURL=dialog.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.client.d.ts","names":[],"sources":["../../../src/components/ui/dialog.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAQS,MAAA;;GAAqB,OAAA,CAAM,sBAAsB,eAAA,CAAgB,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAItE,aAAA;;GAA4B,OAAA,CAAM,sBAAsB,eAAA,CAAgB,WAAQ,mBAAA,CAAA,GAAA,CAAA;iBAIhF,YAAA;;GAA2B,OAAA,CAAM,sBAAsB,eAAA,CAAgB,UAAO,mBAAA,CAAA,GAAA,CAAA;AAZxD,iBAgBtB,WAAA,CAZM;EAAA,GAAA;AAAA,CAAA,EAYoB,OAAA,CAAM,cAZ1B,CAAA,OAYgD,eAAA,CAAgB,KAZhE,CAAA,CAAA,EAYsE,mBAAA,CAAA,GAAA,CAAA,OAZtE;iBAgBN,aAAA,CAhBM;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmBZ,OAAA,CAAM,cAnBM,CAAA,OAmBgB,eAAA,CAAgB,OAnBhC,CAAA,CAAA,EAmBwC,mBAAA,CAAA,GAAA,CAAA,OAnBxC;iBAgCN,aAAA,CAhCiE;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAoCvE,OAAA,CAAM,cApCiE,CAAA,OAoC3C,eAAA,CAAgB,OApC2B,CAAA,CAAA,EAoCnB,mBAAA,CAAA,GAAA,CAAA,OApCmB;iBA0DjE,YAAA,CA1D2B;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0DW,OAAA,CAAM,cA1DjB,CAAA,KAAA,CAAA,CAAA,EA0DsC,mBAAA,CAAA,GAAA,CAAA,OA1DtC;iBAoE3B,YAAA,CApEsE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAoEhC,OAAA,CAAM,cApE0B,CAAA,KAAA,CAAA,CAAA,EAoEL,mBAAA,CAAA,GAAA,CAAA,OApEK;iBA8EtE,WAAA,CA9EsE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA8EjC,OAAA,CAAM,cA9E2B,CAAA,OA8EL,eAAA,CAAgB,KA9EX,CAAA,CAAA,EA8EiB,mBAAA,CAAA,GAAA,CAAA,OA9EjB;AAAA,iBAwFtE,iBAAA,CApFa;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuFnB,OAAA,CAAM,cAvFa,CAAA,OAuFS,eAAA,CAAgB,WAvFzB,CAAA,CAAA,EAuFqC,mBAAA,CAAA,GAAA,CAAA,OAvFrC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils/cn.js";
|
|
5
|
+
import { XIcon } from "lucide-react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import "react";
|
|
8
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ui/dialog.client.tsx
|
|
11
|
+
function Dialog({ ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Root, {
|
|
13
|
+
"data-slot": "dialog",
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function DialogTrigger({ ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, {
|
|
19
|
+
"data-slot": "dialog-trigger",
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function DialogPortal({ ...props }) {
|
|
24
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, {
|
|
25
|
+
"data-slot": "dialog-portal",
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function DialogClose({ ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Close, {
|
|
31
|
+
"data-slot": "dialog-close",
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function DialogOverlay({ className,...props }) {
|
|
36
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
37
|
+
"data-slot": "dialog-overlay",
|
|
38
|
+
className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80", className),
|
|
39
|
+
...props
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function DialogContent({ className, children,...props }) {
|
|
43
|
+
return /* @__PURE__ */ jsxs(DialogPortal, {
|
|
44
|
+
"data-slot": "dialog-portal",
|
|
45
|
+
children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsxs(DialogPrimitive.Content, {
|
|
46
|
+
"data-slot": "dialog-content",
|
|
47
|
+
className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
|
|
48
|
+
...props,
|
|
49
|
+
children: [children, /* @__PURE__ */ jsxs(DialogPrimitive.Close, {
|
|
50
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
51
|
+
children: [/* @__PURE__ */ jsx(XIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
52
|
+
className: "sr-only",
|
|
53
|
+
children: "Close"
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function DialogHeader({ className,...props }) {
|
|
60
|
+
return /* @__PURE__ */ jsx("div", {
|
|
61
|
+
"data-slot": "dialog-header",
|
|
62
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function DialogFooter({ className,...props }) {
|
|
67
|
+
return /* @__PURE__ */ jsx("div", {
|
|
68
|
+
"data-slot": "dialog-footer",
|
|
69
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function DialogTitle({ className,...props }) {
|
|
74
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Title, {
|
|
75
|
+
"data-slot": "dialog-title",
|
|
76
|
+
className: cn("text-lg font-semibold leading-none", className),
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function DialogDescription({ className,...props }) {
|
|
81
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Description, {
|
|
82
|
+
"data-slot": "dialog-description",
|
|
83
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
90
|
+
//# sourceMappingURL=dialog.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.client.js","names":[],"sources":["../../../src/components/ui/dialog.client.tsx"],"sourcesContent":["\"use client\";\n\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { XIcon } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content>) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\">\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg font-semibold leading-none\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":";;;;;;;;;;AAQA,SAAS,OAAO,EAAE,GAAG,SAA4D;AAC/E,QAAO,oBAAC,gBAAgB;EAAK,aAAU;EAAS,GAAI;GAAS;;AAG/D,SAAS,cAAc,EAAE,GAAG,SAA+D;AACzF,QAAO,oBAAC,gBAAgB;EAAQ,aAAU;EAAiB,GAAI;GAAS;;AAG1E,SAAS,aAAa,EAAE,GAAG,SAA8D;AACvF,QAAO,oBAAC,gBAAgB;EAAO,aAAU;EAAgB,GAAI;GAAS;;AAGxE,SAAS,YAAY,EAAE,GAAG,SAA6D;AACrF,QAAO,oBAAC,gBAAgB;EAAM,aAAU;EAAe,GAAI;GAAS;;AAGtE,SAAS,cAAc,EACrB,UACA,GAAG,SACoD;AACvD,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GACT,0JACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,cAAc,EACrB,WACA,SACA,GAAG,SACoD;AACvD,QACE,qBAAC;EAAa,aAAU;aACtB,oBAAC,kBAAgB,EACjB,qBAAC,gBAAgB;GACf,aAAU;GACV,WAAW,GACT,+WACA,UACD;GACD,GAAI;cAEH,UACD,qBAAC,gBAAgB;IAAM,WAAU;eAC/B,oBAAC,UAAQ,EACT,oBAAC;KAAK,WAAU;eAAU;MAAY;KAChB;IACA;GACb;;AAInB,SAAS,aAAa,EAAE,UAAW,GAAG,SAAsC;AAC1E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,gDAAgD,UAAU;EACxE,GAAI;GACJ;;AAIN,SAAS,aAAa,EAAE,UAAW,GAAG,SAAsC;AAC1E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,0DAA0D,UAAU;EAClF,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,UAAW,GAAG,SAA6D;AAChG,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GAAG,sCAAsC,UAAU;EAC9D,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,UACA,GAAG,SACwD;AAC3D,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as react_jsx_runtime72 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { Drawer } from "vaul";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/drawer.client.d.ts
|
|
6
|
+
declare function Drawer$1({
|
|
7
|
+
...props
|
|
8
|
+
}: React$1.ComponentProps<typeof Drawer.Root>): react_jsx_runtime72.JSX.Element;
|
|
9
|
+
declare function DrawerTrigger({
|
|
10
|
+
...props
|
|
11
|
+
}: React$1.ComponentProps<typeof Drawer.Trigger>): react_jsx_runtime72.JSX.Element;
|
|
12
|
+
declare function DrawerPortal({
|
|
13
|
+
...props
|
|
14
|
+
}: React$1.ComponentProps<typeof Drawer.Portal>): react_jsx_runtime72.JSX.Element;
|
|
15
|
+
declare function DrawerClose({
|
|
16
|
+
...props
|
|
17
|
+
}: React$1.ComponentProps<typeof Drawer.Close>): react_jsx_runtime72.JSX.Element;
|
|
18
|
+
declare function DrawerOverlay({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: React$1.ComponentProps<typeof Drawer.Overlay>): react_jsx_runtime72.JSX.Element;
|
|
22
|
+
declare function DrawerContent({
|
|
23
|
+
className,
|
|
24
|
+
children,
|
|
25
|
+
...props
|
|
26
|
+
}: React$1.ComponentProps<typeof Drawer.Content>): react_jsx_runtime72.JSX.Element;
|
|
27
|
+
declare function DrawerHeader({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime72.JSX.Element;
|
|
31
|
+
declare function DrawerFooter({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime72.JSX.Element;
|
|
35
|
+
declare function DrawerTitle({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React$1.ComponentProps<typeof Drawer.Title>): react_jsx_runtime72.JSX.Element;
|
|
39
|
+
declare function DrawerDescription({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React$1.ComponentProps<typeof Drawer.Description>): react_jsx_runtime72.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Drawer$1 as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
45
|
+
//# sourceMappingURL=drawer.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.client.d.ts","names":[],"sources":["../../../src/components/ui/drawer.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,QAAA;;GAAqB,OAAA,CAAM,sBAAsB,MAAA,CAAgB,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAItE,aAAA;;GAA4B,OAAA,CAAM,sBAAsB,MAAA,CAAgB,WAAQ,mBAAA,CAAA,GAAA,CAAA;iBAIhF,YAAA;;GAA2B,OAAA,CAAM,sBAAsB,MAAA,CAAgB,UAAO,mBAAA,CAAA,GAAA,CAAA;AAZtC,iBAgBxC,WAAA,CAZM;EAAA,GAAA;AAAA,CAAA,EAYoB,OAAA,CAAM,cAZ1B,CAAA,OAYgD,MAAA,CAAgB,KAZhE,CAAA,CAAA,EAYsE,mBAAA,CAAA,GAAA,CAAA,OAZtE;iBAgBN,aAAA,CAhBM;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmBZ,OAAA,CAAM,cAnBM,CAAA,OAmBgB,MAAA,CAAgB,OAnBhC,CAAA,CAAA,EAmBwC,mBAAA,CAAA,GAAA,CAAA,OAnBxC;iBAgCN,aAAA,CAhCiE;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAoCvE,OAAA,CAAM,cApCiE,CAAA,OAoC3C,MAAA,CAAgB,OApC2B,CAAA,CAAA,EAoCnB,mBAAA,CAAA,GAAA,CAAA,OApCmB;iBA2DjE,YAAA,CA3D2B;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2DW,OAAA,CAAM,cA3DjB,CAAA,KAAA,CAAA,CAAA,EA2DsC,mBAAA,CAAA,GAAA,CAAA,OA3DtC;iBAqE3B,YAAA,CArEsE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqEhC,OAAA,CAAM,cArE0B,CAAA,KAAA,CAAA,CAAA,EAqEL,mBAAA,CAAA,GAAA,CAAA,OArEK;iBA+EtE,WAAA,CA/EsE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+EjC,OAAA,CAAM,cA/E2B,CAAA,OA+EL,MAAA,CAAgB,KA/EX,CAAA,CAAA,EA+EiB,mBAAA,CAAA,GAAA,CAAA,OA/EjB;AAAA,iBAyFtE,iBAAA,CArFa;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwFnB,OAAA,CAAM,cAxFa,CAAA,OAwFS,MAAA,CAAgB,WAxFzB,CAAA,CAAA,EAwFqC,mBAAA,CAAA,GAAA,CAAA,OAxFrC"}
|