@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,143 @@
|
|
|
1
|
+
import { ColorPicker } from "@/components/ui/color-picker.client";
|
|
2
|
+
import { Button } from "@/components/ui/button";
|
|
3
|
+
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
4
|
+
import { Separator } from "@/components/ui/separator";
|
|
5
|
+
import {
|
|
6
|
+
BaselineIcon,
|
|
7
|
+
BoldIcon,
|
|
8
|
+
EraserIcon,
|
|
9
|
+
ItalicIcon,
|
|
10
|
+
PaintBucketIcon,
|
|
11
|
+
RedoIcon,
|
|
12
|
+
StrikethroughIcon,
|
|
13
|
+
UnderlineIcon,
|
|
14
|
+
UndoIcon,
|
|
15
|
+
} from "lucide-react";
|
|
16
|
+
import { useContext } from "react";
|
|
17
|
+
import { EditorContext } from "../context.client";
|
|
18
|
+
import { BlockDropdown } from "./block-dropdown";
|
|
19
|
+
|
|
20
|
+
export function FixedMenu() {
|
|
21
|
+
const { editor } = useContext(EditorContext);
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<div className="border-input bg-muted/30 z-10 flex items-center gap-3 overflow-auto border-b p-2">
|
|
25
|
+
<div className="flex items-center gap-1">
|
|
26
|
+
<Button
|
|
27
|
+
onClick={() => editor.commands.undo()}
|
|
28
|
+
disabled={!editor?.can().undo()}
|
|
29
|
+
type="button"
|
|
30
|
+
aria-label="Undo"
|
|
31
|
+
size="icon"
|
|
32
|
+
className="p-2"
|
|
33
|
+
variant="outline"
|
|
34
|
+
>
|
|
35
|
+
<UndoIcon className="size-3.5" />
|
|
36
|
+
</Button>
|
|
37
|
+
|
|
38
|
+
<Button
|
|
39
|
+
onClick={() => editor.commands.redo()}
|
|
40
|
+
disabled={!editor?.can().redo()}
|
|
41
|
+
type="button"
|
|
42
|
+
aria-label="Redo"
|
|
43
|
+
size="icon"
|
|
44
|
+
className="p-2"
|
|
45
|
+
variant="outline"
|
|
46
|
+
>
|
|
47
|
+
<RedoIcon className="size-3.5" />
|
|
48
|
+
</Button>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<Separator orientation="vertical" className="h-8" />
|
|
52
|
+
|
|
53
|
+
<BlockDropdown />
|
|
54
|
+
|
|
55
|
+
<Separator orientation="vertical" className="h-8" />
|
|
56
|
+
|
|
57
|
+
<div className="flex items-center gap-1">
|
|
58
|
+
<Button
|
|
59
|
+
type="button"
|
|
60
|
+
size="icon"
|
|
61
|
+
variant={editor?.isActive("bold") ? "secondary" : "outline"}
|
|
62
|
+
onClick={() => editor.chain().focus().toggleBold().run()}
|
|
63
|
+
className="border"
|
|
64
|
+
>
|
|
65
|
+
<BoldIcon className="h-3.5 w-3.5" />
|
|
66
|
+
</Button>
|
|
67
|
+
|
|
68
|
+
<Button
|
|
69
|
+
type="button"
|
|
70
|
+
size="icon"
|
|
71
|
+
variant={editor?.isActive("italic") ? "secondary" : "outline"}
|
|
72
|
+
onClick={() => editor.chain().focus().toggleItalic().run()}
|
|
73
|
+
className="border"
|
|
74
|
+
>
|
|
75
|
+
<ItalicIcon className="size-3.5" />
|
|
76
|
+
</Button>
|
|
77
|
+
|
|
78
|
+
<Button
|
|
79
|
+
type="button"
|
|
80
|
+
size="icon"
|
|
81
|
+
variant={editor?.isActive("underline") ? "secondary" : "outline"}
|
|
82
|
+
onClick={() => editor.chain().focus().toggleUnderline().run()}
|
|
83
|
+
className="border"
|
|
84
|
+
>
|
|
85
|
+
<UnderlineIcon className="size-3.5" />
|
|
86
|
+
</Button>
|
|
87
|
+
|
|
88
|
+
<Button
|
|
89
|
+
type="button"
|
|
90
|
+
size="icon"
|
|
91
|
+
variant={editor?.isActive("strike") ? "secondary" : "outline"}
|
|
92
|
+
onClick={() => editor.chain().focus().toggleStrike().run()}
|
|
93
|
+
className="border"
|
|
94
|
+
>
|
|
95
|
+
<StrikethroughIcon className="size-3.5" />
|
|
96
|
+
</Button>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<Separator orientation="vertical" className="h-8" />
|
|
100
|
+
|
|
101
|
+
<div className="flex items-center gap-1">
|
|
102
|
+
<Popover>
|
|
103
|
+
<PopoverTrigger asChild>
|
|
104
|
+
<Button size="icon" variant="outline">
|
|
105
|
+
<BaselineIcon className="size-3.5" />
|
|
106
|
+
</Button>
|
|
107
|
+
</PopoverTrigger>
|
|
108
|
+
|
|
109
|
+
<PopoverContent className="w-fit p-0">
|
|
110
|
+
<ColorPicker onValueChange={(color) => editor.chain().focus().setColor(color).run()} />
|
|
111
|
+
</PopoverContent>
|
|
112
|
+
</Popover>
|
|
113
|
+
|
|
114
|
+
<Popover>
|
|
115
|
+
<PopoverTrigger asChild>
|
|
116
|
+
<Button size="icon" variant="outline" disabled={!editor?.can().setHighlight()}>
|
|
117
|
+
<PaintBucketIcon className="size-3.5" />
|
|
118
|
+
</Button>
|
|
119
|
+
</PopoverTrigger>
|
|
120
|
+
|
|
121
|
+
<PopoverContent className="w-fit p-0">
|
|
122
|
+
<ColorPicker
|
|
123
|
+
onValueChange={(color) => editor.chain().focus().setHighlight({ color }).run()}
|
|
124
|
+
/>
|
|
125
|
+
</PopoverContent>
|
|
126
|
+
</Popover>
|
|
127
|
+
|
|
128
|
+
<Button
|
|
129
|
+
type="button"
|
|
130
|
+
size="icon"
|
|
131
|
+
variant="outline"
|
|
132
|
+
className="border"
|
|
133
|
+
onClick={() => {
|
|
134
|
+
editor.commands.unsetColor();
|
|
135
|
+
editor.commands.unsetHighlight();
|
|
136
|
+
}}
|
|
137
|
+
>
|
|
138
|
+
<EraserIcon className="h-4 w-4" />
|
|
139
|
+
</Button>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
);
|
|
143
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { cn } from "@/lib/utils/cn";
|
|
2
|
+
|
|
3
|
+
export function SpinnerComponent({ ref, className, ...props }: React.SVGProps<SVGSVGElement>) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
ref={ref}
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
className={cn("animate-spin", className)}
|
|
11
|
+
{...props}
|
|
12
|
+
>
|
|
13
|
+
<circle
|
|
14
|
+
className="opacity-25"
|
|
15
|
+
cx="12"
|
|
16
|
+
cy="12"
|
|
17
|
+
r="10"
|
|
18
|
+
stroke="currentColor"
|
|
19
|
+
strokeWidth="4"
|
|
20
|
+
></circle>
|
|
21
|
+
<path
|
|
22
|
+
className="opacity-75"
|
|
23
|
+
fill="currentColor"
|
|
24
|
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
25
|
+
></path>
|
|
26
|
+
</svg>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "@/lib/utils/cn";
|
|
4
|
+
import { createContext, PropsWithChildren } from "react";
|
|
5
|
+
|
|
6
|
+
import { Color } from "@tiptap/extension-color";
|
|
7
|
+
import Highlight from "@tiptap/extension-highlight";
|
|
8
|
+
import Link from "@tiptap/extension-link";
|
|
9
|
+
import { TextStyle } from "@tiptap/extension-text-style";
|
|
10
|
+
import Underline from "@tiptap/extension-underline";
|
|
11
|
+
import { Content, Editor, JSONContent, useEditor } from "@tiptap/react";
|
|
12
|
+
import StarterKit from "@tiptap/starter-kit";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Editor context
|
|
16
|
+
*/
|
|
17
|
+
type EditorContextValue = {
|
|
18
|
+
editor: Editor;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const EditorContext = createContext({} as EditorContextValue);
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Editor context provider
|
|
25
|
+
*/
|
|
26
|
+
type EditorContextProviderProps = PropsWithChildren<{
|
|
27
|
+
value?: Content;
|
|
28
|
+
onChange?: (value: JSONContent) => void;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
className?: string;
|
|
31
|
+
}>;
|
|
32
|
+
|
|
33
|
+
export function EditorContextProvider({
|
|
34
|
+
value,
|
|
35
|
+
onChange,
|
|
36
|
+
disabled,
|
|
37
|
+
className,
|
|
38
|
+
children,
|
|
39
|
+
}: EditorContextProviderProps) {
|
|
40
|
+
// const { uploadImage } = useUploadEditor();
|
|
41
|
+
|
|
42
|
+
const editor = useEditor({
|
|
43
|
+
extensions: [
|
|
44
|
+
StarterKit,
|
|
45
|
+
Underline,
|
|
46
|
+
Link,
|
|
47
|
+
TextStyle,
|
|
48
|
+
Color,
|
|
49
|
+
Highlight.configure({ multicolor: true }),
|
|
50
|
+
// Image.configure({
|
|
51
|
+
// allowBase64: false,
|
|
52
|
+
// }),
|
|
53
|
+
// FileHandler.configure({
|
|
54
|
+
// allowedMimeTypes: ["image/png", "image/jpeg", "image/gif", "image/webp"],
|
|
55
|
+
// onDrop: (currentEditor, files, pos) => {
|
|
56
|
+
// files.forEach((file) => {
|
|
57
|
+
// const fileReader = new FileReader();
|
|
58
|
+
|
|
59
|
+
// fileReader.readAsArrayBuffer(file);
|
|
60
|
+
// fileReader.onload = async () => {
|
|
61
|
+
// const response = await uploadImage(file);
|
|
62
|
+
// if (!response) return;
|
|
63
|
+
|
|
64
|
+
// currentEditor
|
|
65
|
+
// .chain()
|
|
66
|
+
// .insertContentAt(pos, {
|
|
67
|
+
// type: "image",
|
|
68
|
+
// attrs: { src: response.url },
|
|
69
|
+
// })
|
|
70
|
+
// .focus()
|
|
71
|
+
// .run();
|
|
72
|
+
// };
|
|
73
|
+
// });
|
|
74
|
+
// },
|
|
75
|
+
// onPaste: (currentEditor, files) => {
|
|
76
|
+
// files.forEach((file) => {
|
|
77
|
+
// const fileReader = new FileReader();
|
|
78
|
+
|
|
79
|
+
// fileReader.readAsArrayBuffer(file);
|
|
80
|
+
// fileReader.onload = async () => {
|
|
81
|
+
// const response = await uploadImage(file);
|
|
82
|
+
// if (!response) return;
|
|
83
|
+
|
|
84
|
+
// currentEditor
|
|
85
|
+
// .chain()
|
|
86
|
+
// .insertContentAt(currentEditor.state.selection.anchor, {
|
|
87
|
+
// type: "image",
|
|
88
|
+
// attrs: { src: response.url },
|
|
89
|
+
// })
|
|
90
|
+
// .focus()
|
|
91
|
+
// .run();
|
|
92
|
+
// };
|
|
93
|
+
// });
|
|
94
|
+
// },
|
|
95
|
+
// }),
|
|
96
|
+
],
|
|
97
|
+
content: value,
|
|
98
|
+
onUpdate: ({ editor }) => onChange?.(editor.getJSON()),
|
|
99
|
+
editable: !disabled,
|
|
100
|
+
injectCSS: false,
|
|
101
|
+
immediatelyRender: false,
|
|
102
|
+
editorProps: {
|
|
103
|
+
transformPastedHTML: (html) => html.replace(/<img.*?>/g, ""),
|
|
104
|
+
attributes: {
|
|
105
|
+
class: cn(
|
|
106
|
+
"prose max-w-full min-h-96 dark:prose-invert p-5 focus:outline-none prose-a:text-primary prose-li:marker:text-primary",
|
|
107
|
+
className,
|
|
108
|
+
),
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
if (!editor) return null;
|
|
114
|
+
|
|
115
|
+
return <EditorContext.Provider value={{ editor }}>{children}</EditorContext.Provider>;
|
|
116
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { cn } from "@/lib/utils/cn";
|
|
2
|
+
import { type HTMLAttributes } from "react";
|
|
3
|
+
import { EditorContent } from "./components/content.client";
|
|
4
|
+
import { FixedMenu } from "./components/fixed-menu.client";
|
|
5
|
+
|
|
6
|
+
export function Editor({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
|
7
|
+
return (
|
|
8
|
+
<div className={cn("border-input rounded-lg border", className)} {...props}>
|
|
9
|
+
<FixedMenu />
|
|
10
|
+
<EditorContent />
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Content } from "@tiptap/react";
|
|
4
|
+
import { EditorContent } from "./components/content.client";
|
|
5
|
+
import { EditorContextProvider } from "./context.client";
|
|
6
|
+
|
|
7
|
+
export function EditorPreview({ value }: { value?: Content }) {
|
|
8
|
+
return (
|
|
9
|
+
<EditorContextProvider value={value} className="min-h-0 p-0" disabled>
|
|
10
|
+
<EditorContent />
|
|
11
|
+
</EditorContextProvider>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
type ShortcutKeyResult = {
|
|
2
|
+
symbol: string;
|
|
3
|
+
readable: string;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type FileError = {
|
|
7
|
+
file: File | string;
|
|
8
|
+
reason: "type" | "size" | "invalidBase64" | "base64NotAllowed";
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type FileValidationOptions = {
|
|
12
|
+
allowedMimeTypes: string[];
|
|
13
|
+
maxFileSize?: number;
|
|
14
|
+
allowBase64: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type FileInput = File | { src: string | File; alt?: string; title?: string };
|
|
18
|
+
|
|
19
|
+
export const isClient = (): boolean => typeof window !== "undefined";
|
|
20
|
+
export const isServer = (): boolean => !isClient();
|
|
21
|
+
export const isMacOS = (): boolean => isClient() && window.navigator.platform === "MacIntel";
|
|
22
|
+
|
|
23
|
+
const shortcutKeyMap: Record<string, ShortcutKeyResult> = {
|
|
24
|
+
mod: isMacOS() ? { symbol: "⌘", readable: "Command" } : { symbol: "Ctrl", readable: "Control" },
|
|
25
|
+
alt: isMacOS() ? { symbol: "⌥", readable: "Option" } : { symbol: "Alt", readable: "Alt" },
|
|
26
|
+
shift: { symbol: "⇧", readable: "Shift" },
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const getShortcutKey = (key: string): ShortcutKeyResult =>
|
|
30
|
+
shortcutKeyMap[key.toLowerCase()] || { symbol: key, readable: key };
|
|
31
|
+
|
|
32
|
+
export const getShortcutKeys = (keys: string[]): ShortcutKeyResult[] => keys.map(getShortcutKey);
|
|
33
|
+
|
|
34
|
+
export const isUrl = (
|
|
35
|
+
text: string,
|
|
36
|
+
options: { requireHostname: boolean; allowBase64?: boolean } = { requireHostname: false },
|
|
37
|
+
): boolean => {
|
|
38
|
+
if (text.includes("\n")) return false;
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
const url = new URL(text);
|
|
42
|
+
const blockedProtocols = [
|
|
43
|
+
"javascript:",
|
|
44
|
+
"file:",
|
|
45
|
+
"vbscript:",
|
|
46
|
+
...(options.allowBase64 ? [] : ["data:"]),
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
if (blockedProtocols.includes(url.protocol)) return false;
|
|
50
|
+
if (options.allowBase64 && url.protocol === "data:")
|
|
51
|
+
return /^data:image\/[a-z]+;base64,/.test(text);
|
|
52
|
+
if (url.hostname) return true;
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
url.protocol !== "" &&
|
|
56
|
+
(url.pathname.startsWith("//") || url.pathname.startsWith("http")) &&
|
|
57
|
+
!options.requireHostname
|
|
58
|
+
);
|
|
59
|
+
} catch {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const sanitizeUrl = (
|
|
65
|
+
url: string | null | undefined,
|
|
66
|
+
options: { allowBase64?: boolean } = {},
|
|
67
|
+
): string | undefined => {
|
|
68
|
+
if (!url) return undefined;
|
|
69
|
+
|
|
70
|
+
if (options.allowBase64 && url.startsWith("data:image")) {
|
|
71
|
+
return isUrl(url, { requireHostname: false, allowBase64: true }) ? url : undefined;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return isUrl(url, { requireHostname: false, allowBase64: options.allowBase64 }) ||
|
|
75
|
+
/^(\/|#|mailto:|sms:|fax:|tel:)/.test(url)
|
|
76
|
+
? url
|
|
77
|
+
: `https://${url}`;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const blobUrlToBase64 = async (blobUrl: string): Promise<string> => {
|
|
81
|
+
const response = await fetch(blobUrl);
|
|
82
|
+
const blob = await response.blob();
|
|
83
|
+
|
|
84
|
+
return new Promise((resolve, reject) => {
|
|
85
|
+
const reader = new FileReader();
|
|
86
|
+
reader.onloadend = () => {
|
|
87
|
+
if (typeof reader.result === "string") {
|
|
88
|
+
resolve(reader.result);
|
|
89
|
+
} else {
|
|
90
|
+
reject(new Error("Failed to convert Blob to base64"));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
reader.onerror = reject;
|
|
94
|
+
reader.readAsDataURL(blob);
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export const randomId = (): string => Math.random().toString(36).slice(2, 11);
|
|
99
|
+
|
|
100
|
+
export const fileToBase64 = (file: File | Blob): Promise<string> => {
|
|
101
|
+
return new Promise((resolve, reject) => {
|
|
102
|
+
const reader = new FileReader();
|
|
103
|
+
reader.onloadend = () => {
|
|
104
|
+
if (typeof reader.result === "string") {
|
|
105
|
+
resolve(reader.result);
|
|
106
|
+
} else {
|
|
107
|
+
reject(new Error("Failed to convert File to base64"));
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
reader.onerror = reject;
|
|
111
|
+
reader.readAsDataURL(file);
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const validateFileOrBase64 = <T extends FileInput>(
|
|
116
|
+
input: File | string,
|
|
117
|
+
options: FileValidationOptions,
|
|
118
|
+
originalFile: T,
|
|
119
|
+
validFiles: T[],
|
|
120
|
+
errors: FileError[],
|
|
121
|
+
): void => {
|
|
122
|
+
const { isValidType, isValidSize } = checkTypeAndSize(input, options);
|
|
123
|
+
|
|
124
|
+
if (isValidType && isValidSize) {
|
|
125
|
+
validFiles.push(originalFile);
|
|
126
|
+
} else {
|
|
127
|
+
if (!isValidType) errors.push({ file: input, reason: "type" });
|
|
128
|
+
if (!isValidSize) errors.push({ file: input, reason: "size" });
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const checkTypeAndSize = (
|
|
133
|
+
input: File | string,
|
|
134
|
+
{ allowedMimeTypes, maxFileSize }: FileValidationOptions,
|
|
135
|
+
): { isValidType: boolean; isValidSize: boolean } => {
|
|
136
|
+
const mimeType = input instanceof File ? input.type : base64MimeType(input);
|
|
137
|
+
const size = input instanceof File ? input.size : atob(input.split(",")[1] ?? "").length;
|
|
138
|
+
|
|
139
|
+
const isValidType =
|
|
140
|
+
allowedMimeTypes.length === 0 ||
|
|
141
|
+
allowedMimeTypes.includes(mimeType) ||
|
|
142
|
+
allowedMimeTypes.includes(`${mimeType.split("/")[0]}/*`);
|
|
143
|
+
|
|
144
|
+
const isValidSize = !maxFileSize || size <= maxFileSize;
|
|
145
|
+
|
|
146
|
+
return { isValidType, isValidSize };
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const base64MimeType = (encoded: string): string => {
|
|
150
|
+
const result = encoded.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);
|
|
151
|
+
return result && result.length > 1 && result[1] ? result[1] : "unknown";
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const isBase64 = (str: string): boolean => {
|
|
155
|
+
if (str.startsWith("data:")) {
|
|
156
|
+
const matches = str.match(/^data:[^;]+;base64,(.+)$/);
|
|
157
|
+
if (matches && matches[1]) {
|
|
158
|
+
str = matches[1];
|
|
159
|
+
} else {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
try {
|
|
165
|
+
return btoa(atob(str)) === str;
|
|
166
|
+
} catch {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export const filterFiles = <T extends FileInput>(
|
|
172
|
+
files: T[],
|
|
173
|
+
options: FileValidationOptions,
|
|
174
|
+
): [T[], FileError[]] => {
|
|
175
|
+
const validFiles: T[] = [];
|
|
176
|
+
const errors: FileError[] = [];
|
|
177
|
+
|
|
178
|
+
files.forEach((file) => {
|
|
179
|
+
const actualFile = "src" in file ? file.src : file;
|
|
180
|
+
|
|
181
|
+
if (actualFile instanceof File) {
|
|
182
|
+
validateFileOrBase64(actualFile, options, file, validFiles, errors);
|
|
183
|
+
} else if (typeof actualFile === "string") {
|
|
184
|
+
if (isBase64(actualFile)) {
|
|
185
|
+
if (options.allowBase64) {
|
|
186
|
+
validateFileOrBase64(actualFile, options, file, validFiles, errors);
|
|
187
|
+
} else {
|
|
188
|
+
errors.push({ file: actualFile, reason: "base64NotAllowed" });
|
|
189
|
+
}
|
|
190
|
+
} else {
|
|
191
|
+
if (!sanitizeUrl(actualFile, { allowBase64: options.allowBase64 })) {
|
|
192
|
+
errors.push({ file: actualFile, reason: "invalidBase64" });
|
|
193
|
+
} else {
|
|
194
|
+
validFiles.push(file);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
return [validFiles, errors];
|
|
201
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { url } from "@/lib/utils/url";
|
|
2
|
+
import {
|
|
3
|
+
Body,
|
|
4
|
+
Button,
|
|
5
|
+
Container,
|
|
6
|
+
Head,
|
|
7
|
+
Heading,
|
|
8
|
+
Html,
|
|
9
|
+
Preview,
|
|
10
|
+
Section,
|
|
11
|
+
Tailwind,
|
|
12
|
+
Text,
|
|
13
|
+
} from "@react-email/components";
|
|
14
|
+
import { Icons } from "../common/icons";
|
|
15
|
+
|
|
16
|
+
interface ForgetPasswordEmailProps {
|
|
17
|
+
resetPasswordHref: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function ForgetPasswordEmail({ resetPasswordHref }: ForgetPasswordEmailProps) {
|
|
21
|
+
return (
|
|
22
|
+
<Html>
|
|
23
|
+
<Head />
|
|
24
|
+
<Preview>Herstel je wachtwoord</Preview>
|
|
25
|
+
|
|
26
|
+
<Tailwind>
|
|
27
|
+
<Body className="mx-auto my-auto bg-white px-2 font-sans">
|
|
28
|
+
<Container className="mx-auto my-[40px] max-w-[465px] rounded border border-solid border-[#eaeaea] p-[20px]">
|
|
29
|
+
<Icons.logo className="w-8" />
|
|
30
|
+
|
|
31
|
+
<Section className="my-[15px]">
|
|
32
|
+
<Heading className="mx-0 my-[20px] p-0 text-[24px] font-bold text-black">
|
|
33
|
+
Herstel uw wachtwoord
|
|
34
|
+
</Heading>
|
|
35
|
+
|
|
36
|
+
<Text className="text-[14px] leading-[24px] text-black">
|
|
37
|
+
Iemand heeft onlangs een wachtwoordwijziging voor uw account gevraagd. Als u dit
|
|
38
|
+
was, kunt u hier een nieuw wachtwoord instellen:
|
|
39
|
+
</Text>
|
|
40
|
+
|
|
41
|
+
<Button
|
|
42
|
+
className="rounded bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline"
|
|
43
|
+
href={resetPasswordHref}
|
|
44
|
+
>
|
|
45
|
+
Reset password
|
|
46
|
+
</Button>
|
|
47
|
+
</Section>
|
|
48
|
+
|
|
49
|
+
<Section>
|
|
50
|
+
<Text className="text-[12px] leading-[20px] text-black">
|
|
51
|
+
Als u uw wachtwoord niet wilt wijzigen of dit niet heeft gevraagd, negeer en
|
|
52
|
+
verwijder dit bericht gewoon en verwijdert u.
|
|
53
|
+
</Text>
|
|
54
|
+
|
|
55
|
+
<Text className="text-[12px] leading-[20px] text-black">
|
|
56
|
+
Stuur deze e-mail niet door om uw account veilig te houden.
|
|
57
|
+
</Text>
|
|
58
|
+
</Section>
|
|
59
|
+
</Container>
|
|
60
|
+
</Body>
|
|
61
|
+
</Tailwind>
|
|
62
|
+
</Html>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
ForgetPasswordEmail.PreviewProps = {
|
|
67
|
+
resetPasswordHref: url("/auth/reset-password"),
|
|
68
|
+
} as ForgetPasswordEmailProps;
|
|
69
|
+
|
|
70
|
+
export default ForgetPasswordEmail;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Components editor
|
|
3
|
+
*/
|
|
4
|
+
export * from "./editor/components/content.client";
|
|
5
|
+
export * from "./editor/components/fixed-menu.client";
|
|
6
|
+
export * from "./editor/context.client";
|
|
7
|
+
export * from "./editor/index.client";
|
|
8
|
+
export * from "./editor/preview.client";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Components headers
|
|
12
|
+
*/
|
|
13
|
+
export * from "./header/back-button.client";
|
|
14
|
+
export * from "./header/bottom-bar.client";
|
|
15
|
+
export * from "./header/breadcrumbs.client";
|
|
16
|
+
export * from "./header/header.client";
|
|
17
|
+
export * from "./header/mobile-nav-switcher.client";
|
|
18
|
+
export * from "./header/top-bar.client";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Components Layouts
|
|
22
|
+
*/
|
|
23
|
+
export * from "./layouts/providers.client";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Components UI
|
|
27
|
+
*/
|
|
28
|
+
export * from "./ui/avatar.client";
|
|
29
|
+
export * from "./ui/chart.client";
|
|
30
|
+
export * from "./ui/collapsible.client";
|
|
31
|
+
export * from "./ui/color-picker.client";
|
|
32
|
+
export * from "./ui/combobox-dropdown.client";
|
|
33
|
+
export * from "./ui/combobox.client";
|
|
34
|
+
export * from "./ui/dialog.client";
|
|
35
|
+
export * from "./ui/drawer.client";
|
|
36
|
+
export * from "./ui/form.client";
|
|
37
|
+
export * from "./ui/hover-card.client";
|
|
38
|
+
export * from "./ui/progress.client";
|
|
39
|
+
export * from "./ui/resizable.client";
|
|
40
|
+
export * from "./ui/select.client";
|
|
41
|
+
export * from "./ui/sheet.client";
|
|
42
|
+
export * from "./ui/sidebar.client";
|
|
43
|
+
export * from "./ui/sonner.client";
|
|
44
|
+
export * from "./ui/time-input.client";
|
|
45
|
+
export * from "./ui/time-picker-input.client";
|
|
46
|
+
export * from "./ui/toggle-group.client";
|
|
47
|
+
export * from "./ui/tooltip.client";
|
|
48
|
+
export * from "./ui/tree.client";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Components
|
|
3
|
+
*/
|
|
4
|
+
export * from "./common/icons";
|
|
5
|
+
export * from "./common/status";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Components Layouts
|
|
9
|
+
*/
|
|
10
|
+
export * from "./layouts/admin-loading";
|
|
11
|
+
export * from "./layouts/empty-page";
|
|
12
|
+
export * from "./layouts/list-layout";
|
|
13
|
+
export * from "./layouts/not-found-page";
|
|
14
|
+
export * from "./layouts/tab-layout";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Components Lists
|
|
18
|
+
*/
|
|
19
|
+
export * from "./lists/data-list";
|
|
20
|
+
export * from "./lists/data-stack";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Components UI
|
|
24
|
+
*/
|
|
25
|
+
export * from "./ui/accordion";
|
|
26
|
+
export * from "./ui/alert";
|
|
27
|
+
export * from "./ui/alert-dialog";
|
|
28
|
+
export * from "./ui/aspect-ratio";
|
|
29
|
+
export * from "./ui/badge";
|
|
30
|
+
export * from "./ui/breadcrumb";
|
|
31
|
+
export * from "./ui/button";
|
|
32
|
+
export * from "./ui/calendar";
|
|
33
|
+
export * from "./ui/card";
|
|
34
|
+
export * from "./ui/carousel";
|
|
35
|
+
export * from "./ui/checkbox";
|
|
36
|
+
export * from "./ui/command";
|
|
37
|
+
export * from "./ui/context-menu";
|
|
38
|
+
export * from "./ui/dropdown-menu";
|
|
39
|
+
export * from "./ui/input";
|
|
40
|
+
export * from "./ui/label";
|
|
41
|
+
export * from "./ui/navigation-menu";
|
|
42
|
+
export * from "./ui/pagination";
|
|
43
|
+
export * from "./ui/popover";
|
|
44
|
+
export * from "./ui/radio-group";
|
|
45
|
+
export * from "./ui/scroll-area";
|
|
46
|
+
export * from "./ui/separator";
|
|
47
|
+
export * from "./ui/skeleton";
|
|
48
|
+
export * from "./ui/slider";
|
|
49
|
+
export * from "./ui/switch";
|
|
50
|
+
export * from "./ui/tabs";
|
|
51
|
+
export * from "./ui/textarea";
|
|
52
|
+
export * from "./ui/toggle";
|