@tulip-systems/core 0.6.0 → 0.7.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/LICENSE +662 -0
- package/dist/commands/client.d.mts +2 -1
- package/dist/commands/client.mjs +2 -1
- package/dist/components/client.d.mts +19 -3
- package/dist/components/client.mjs +18 -2
- package/dist/components/editor/components/menu-nodes.client.mjs +3 -3
- package/dist/components/editor/components/menu-nodes.client.mjs.map +1 -1
- package/dist/components/editor/components/menu.client.mjs +3 -3
- package/dist/components/editor/components/menu.client.mjs.map +1 -1
- package/dist/components/emails/forget-password-email.mjs +6 -6
- package/dist/components/emails/forget-password-email.mjs.map +1 -1
- package/dist/components/header/back-button.client.mjs +2 -2
- package/dist/components/header/back-button.client.mjs.map +1 -1
- package/dist/components/header/bottom-bar.client.mjs +2 -2
- package/dist/components/header/bottom-bar.client.mjs.map +1 -1
- package/dist/components/header/breadcrumbs.client.mjs +1 -1
- package/dist/components/header/breadcrumbs.client.mjs.map +1 -1
- package/dist/components/header/header.client.mjs +1 -1
- package/dist/components/header/header.client.mjs.map +1 -1
- package/dist/components/layouts/empty-page.mjs +2 -2
- package/dist/components/layouts/empty-page.mjs.map +1 -1
- package/dist/components/layouts/error-page.mjs +3 -3
- package/dist/components/layouts/error-page.mjs.map +1 -1
- package/dist/components/layouts/providers.client.d.mts.map +1 -1
- package/dist/components/layouts/providers.client.mjs +3 -2
- package/dist/components/layouts/providers.client.mjs.map +1 -1
- package/dist/components/layouts/root-loading.mjs +2 -2
- package/dist/components/layouts/root-loading.mjs.map +1 -1
- package/dist/components/layouts/tab-layout.mjs +1 -1
- package/dist/components/layouts/tab-layout.mjs.map +1 -1
- package/dist/components/lists/data-list.mjs +1 -1
- package/dist/components/lists/data-list.mjs.map +1 -1
- package/dist/components/lists/data-stack.mjs +1 -1
- package/dist/components/lists/data-stack.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-header.client.mjs +3 -3
- package/dist/components/navigation/admin-sidebar-header.client.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-skeleton.mjs +1 -1
- package/dist/components/navigation/admin-sidebar-skeleton.mjs.map +1 -1
- package/dist/components/ui/accordion.client.d.mts +26 -0
- package/dist/components/ui/accordion.client.d.mts.map +1 -0
- package/dist/components/ui/accordion.client.mjs +58 -0
- package/dist/components/ui/accordion.client.mjs.map +1 -0
- package/dist/components/ui/alert-dialog.client.d.mts +61 -0
- package/dist/components/ui/alert-dialog.client.d.mts.map +1 -0
- package/dist/components/ui/alert-dialog.client.mjs +104 -0
- package/dist/components/ui/alert-dialog.client.mjs.map +1 -0
- package/dist/components/ui/alert.d.mts +5 -1
- package/dist/components/ui/alert.d.mts.map +1 -1
- package/dist/components/ui/alert.mjs +13 -6
- package/dist/components/ui/alert.mjs.map +1 -1
- package/dist/components/ui/aspect-ratio.client.d.mts +10 -0
- package/dist/components/ui/aspect-ratio.client.d.mts.map +1 -0
- package/dist/components/ui/aspect-ratio.client.mjs +16 -0
- package/dist/components/ui/aspect-ratio.client.mjs.map +1 -0
- package/dist/components/ui/avatar.client.d.mts +21 -6
- package/dist/components/ui/avatar.client.d.mts.map +1 -1
- package/dist/components/ui/avatar.client.mjs +31 -9
- package/dist/components/ui/avatar.client.mjs.map +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.d.mts.map +1 -1
- package/dist/components/ui/badge.mjs +11 -8
- package/dist/components/ui/badge.mjs.map +1 -1
- package/dist/components/ui/breadcrumb.d.mts +3 -1
- package/dist/components/ui/breadcrumb.d.mts.map +1 -1
- package/dist/components/ui/breadcrumb.mjs +7 -7
- package/dist/components/ui/breadcrumb.mjs.map +1 -1
- package/dist/components/ui/button-group.d.mts +29 -0
- package/dist/components/ui/button-group.d.mts.map +1 -0
- package/dist/components/ui/button-group.mjs +41 -0
- package/dist/components/ui/button-group.mjs.map +1 -0
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/button.d.mts.map +1 -1
- package/dist/components/ui/button.mjs +19 -13
- package/dist/components/ui/button.mjs.map +1 -1
- package/dist/components/ui/{calendar.d.mts → calendar.client.d.mts} +7 -4
- package/dist/components/ui/calendar.client.d.mts.map +1 -0
- package/dist/components/ui/{calendar.mjs → calendar.client.mjs} +22 -19
- package/dist/components/ui/calendar.client.mjs.map +1 -0
- package/dist/components/ui/card.d.mts +9 -2
- package/dist/components/ui/card.d.mts.map +1 -1
- package/dist/components/ui/card.mjs +15 -7
- package/dist/components/ui/card.mjs.map +1 -1
- package/dist/components/ui/{carousel.d.mts → carousel.client.d.mts} +12 -3
- package/dist/components/ui/carousel.client.d.mts.map +1 -0
- package/dist/components/ui/{carousel.mjs → carousel.client.mjs} +10 -10
- package/dist/components/ui/carousel.client.mjs.map +1 -0
- package/dist/components/ui/chart.client.d.mts.map +1 -1
- package/dist/components/ui/chart.client.mjs +11 -11
- package/dist/components/ui/chart.client.mjs.map +1 -1
- package/dist/components/ui/checkbox.client.d.mts +12 -0
- package/dist/components/ui/checkbox.client.d.mts.map +1 -0
- package/dist/components/ui/checkbox.client.mjs +24 -0
- package/dist/components/ui/checkbox.client.mjs.map +1 -0
- package/dist/components/ui/collapsible.client.d.mts +6 -6
- package/dist/components/ui/collapsible.client.d.mts.map +1 -1
- package/dist/components/ui/collapsible.client.mjs +6 -6
- package/dist/components/ui/collapsible.client.mjs.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.d.mts +1 -1
- package/dist/components/ui/combobox-dropdown.client.mjs +2 -2
- package/dist/components/ui/combobox-dropdown.client.mjs.map +1 -1
- package/dist/components/ui/combobox.client.mjs +4 -4
- package/dist/components/ui/combobox.client.mjs.map +1 -1
- package/dist/components/ui/{command.d.mts → command.client.d.mts} +8 -2
- package/dist/components/ui/command.client.d.mts.map +1 -0
- package/dist/components/ui/command.client.mjs +91 -0
- package/dist/components/ui/command.client.mjs.map +1 -0
- package/dist/components/ui/context-menu.client.d.mts +86 -0
- package/dist/components/ui/context-menu.client.d.mts.map +1 -0
- package/dist/components/ui/context-menu.client.mjs +128 -0
- package/dist/components/ui/context-menu.client.mjs.map +1 -0
- package/dist/components/ui/date-picker.client.mjs +2 -2
- package/dist/components/ui/date-picker.client.mjs.map +1 -1
- package/dist/components/ui/dialog.client.d.mts +19 -12
- package/dist/components/ui/dialog.client.d.mts.map +1 -1
- package/dist/components/ui/dialog.client.mjs +40 -29
- package/dist/components/ui/dialog.client.mjs.map +1 -1
- package/dist/components/ui/drawer.client.d.mts.map +1 -1
- package/dist/components/ui/drawer.client.mjs +5 -5
- package/dist/components/ui/drawer.client.mjs.map +1 -1
- package/dist/components/ui/dropdown-menu.client.d.mts +85 -0
- package/dist/components/ui/dropdown-menu.client.d.mts.map +1 -0
- package/dist/components/ui/dropdown-menu.client.mjs +131 -0
- package/dist/components/ui/dropdown-menu.client.mjs.map +1 -0
- package/dist/components/ui/empty.d.mts +36 -0
- package/dist/components/ui/empty.d.mts.map +1 -0
- package/dist/components/ui/empty.mjs +62 -0
- package/dist/components/ui/empty.mjs.map +1 -0
- package/dist/components/ui/field.client.d.mts +65 -0
- package/dist/components/ui/field.client.d.mts.map +1 -0
- package/dist/components/ui/field.client.mjs +114 -0
- package/dist/components/ui/field.client.mjs.map +1 -0
- package/dist/components/ui/form.client.d.mts +3 -4
- package/dist/components/ui/form.client.d.mts.map +1 -1
- package/dist/components/ui/form.client.mjs +4 -4
- package/dist/components/ui/form.client.mjs.map +1 -1
- package/dist/components/ui/hover-card.client.d.mts +6 -6
- package/dist/components/ui/hover-card.client.d.mts.map +1 -1
- package/dist/components/ui/hover-card.client.mjs +14 -11
- package/dist/components/ui/hover-card.client.mjs.map +1 -1
- package/dist/components/ui/{input-date-time.d.mts → input-date-time.client.d.mts} +7 -7
- package/dist/components/ui/input-date-time.client.d.mts.map +1 -0
- package/dist/components/ui/{input-date-time.mjs → input-date-time.client.mjs} +8 -8
- package/dist/components/ui/input-date-time.client.mjs.map +1 -0
- package/dist/components/ui/input-date.d.mts +1 -1
- package/dist/components/ui/input-date.d.mts.map +1 -1
- package/dist/components/ui/input-date.mjs.map +1 -1
- package/dist/components/ui/input-group.client.d.mts +59 -0
- package/dist/components/ui/input-group.client.d.mts.map +1 -0
- package/dist/components/ui/input-group.client.mjs +106 -0
- package/dist/components/ui/input-group.client.mjs.map +1 -0
- package/dist/components/ui/input-recipient.mjs +11 -11
- package/dist/components/ui/input-recipient.mjs.map +1 -1
- package/dist/components/ui/input-time.d.mts +1 -1
- package/dist/components/ui/input-time.d.mts.map +1 -1
- package/dist/components/ui/input-time.mjs.map +1 -1
- package/dist/components/ui/input.d.mts.map +1 -1
- package/dist/components/ui/input.mjs +1 -1
- package/dist/components/ui/input.mjs.map +1 -1
- package/dist/components/ui/item.d.mts +63 -0
- package/dist/components/ui/item.d.mts.map +1 -0
- package/dist/components/ui/item.mjs +119 -0
- package/dist/components/ui/item.mjs.map +1 -0
- package/dist/components/ui/kbd.d.mts +14 -0
- package/dist/components/ui/kbd.d.mts.map +1 -0
- package/dist/components/ui/kbd.mjs +22 -0
- package/dist/components/ui/kbd.mjs.map +1 -0
- package/dist/components/ui/label.d.mts +4 -4
- package/dist/components/ui/label.d.mts.map +1 -1
- package/dist/components/ui/label.mjs +5 -5
- package/dist/components/ui/label.mjs.map +1 -1
- package/dist/components/ui/loader.d.mts +7 -0
- package/dist/components/ui/loader.d.mts.map +1 -0
- package/dist/components/ui/loader.mjs +63 -0
- package/dist/components/ui/loader.mjs.map +1 -0
- package/dist/components/ui/navigation-menu.d.mts +11 -11
- package/dist/components/ui/navigation-menu.d.mts.map +1 -1
- package/dist/components/ui/navigation-menu.mjs +18 -20
- package/dist/components/ui/navigation-menu.mjs.map +1 -1
- package/dist/components/ui/pagination.d.mts +8 -2
- package/dist/components/ui/pagination.d.mts.map +1 -1
- package/dist/components/ui/pagination.mjs +29 -21
- package/dist/components/ui/pagination.mjs.map +1 -1
- package/dist/components/ui/popover.client.d.mts +35 -0
- package/dist/components/ui/popover.client.d.mts.map +1 -0
- package/dist/components/ui/popover.client.mjs +59 -0
- package/dist/components/ui/popover.client.mjs.map +1 -0
- package/dist/components/ui/progress.client.d.mts +4 -4
- package/dist/components/ui/progress.client.d.mts.map +1 -1
- package/dist/components/ui/progress.client.mjs +7 -7
- package/dist/components/ui/progress.client.mjs.map +1 -1
- package/dist/components/ui/radio-group.d.mts +5 -5
- package/dist/components/ui/radio-group.d.mts.map +1 -1
- package/dist/components/ui/radio-group.mjs +10 -11
- package/dist/components/ui/radio-group.mjs.map +1 -1
- package/dist/components/ui/resizable.client.d.mts +3 -4
- package/dist/components/ui/resizable.client.d.mts.map +1 -1
- package/dist/components/ui/resizable.client.mjs +5 -9
- package/dist/components/ui/resizable.client.mjs.map +1 -1
- package/dist/components/ui/scroll-area.d.mts +5 -5
- package/dist/components/ui/scroll-area.d.mts.map +1 -1
- package/dist/components/ui/scroll-area.mjs +12 -11
- package/dist/components/ui/scroll-area.mjs.map +1 -1
- package/dist/components/ui/select.client.d.mts +18 -13
- package/dist/components/ui/select.client.d.mts.map +1 -1
- package/dist/components/ui/select.client.mjs +37 -32
- package/dist/components/ui/select.client.mjs.map +1 -1
- package/dist/components/ui/separator.d.mts +4 -4
- package/dist/components/ui/separator.d.mts.map +1 -1
- package/dist/components/ui/separator.mjs +6 -6
- package/dist/components/ui/separator.mjs.map +1 -1
- package/dist/components/ui/sheet.client.d.mts +9 -7
- package/dist/components/ui/sheet.client.d.mts.map +1 -1
- package/dist/components/ui/sheet.client.mjs +30 -20
- package/dist/components/ui/sheet.client.mjs.map +1 -1
- package/dist/components/ui/sidebar.client.mjs +28 -28
- package/dist/components/ui/sidebar.client.mjs.map +1 -1
- package/dist/components/ui/skeleton.mjs +1 -1
- package/dist/components/ui/skeleton.mjs.map +1 -1
- package/dist/components/ui/slider.d.mts +4 -4
- package/dist/components/ui/slider.d.mts.map +1 -1
- package/dist/components/ui/slider.mjs +11 -11
- package/dist/components/ui/slider.mjs.map +1 -1
- package/dist/components/ui/spinner.d.mts +10 -0
- package/dist/components/ui/spinner.d.mts.map +1 -0
- package/dist/components/ui/spinner.mjs +9 -55
- package/dist/components/ui/spinner.mjs.map +1 -1
- package/dist/components/ui/switch.client.d.mts +15 -0
- package/dist/components/ui/switch.client.d.mts.map +1 -0
- package/dist/components/ui/switch.client.mjs +23 -0
- package/dist/components/ui/switch.client.mjs.map +1 -0
- package/dist/components/ui/tabs.client.d.mts +31 -0
- package/dist/components/ui/tabs.client.d.mts.map +1 -0
- package/dist/components/ui/tabs.client.mjs +49 -0
- package/dist/components/ui/tabs.client.mjs.map +1 -0
- package/dist/components/ui/textarea.d.mts.map +1 -1
- package/dist/components/ui/textarea.mjs +1 -1
- package/dist/components/ui/textarea.mjs.map +1 -1
- package/dist/components/ui/toggle-group.client.d.mts +11 -6
- package/dist/components/ui/toggle-group.client.d.mts.map +1 -1
- package/dist/components/ui/toggle-group.client.mjs +20 -12
- package/dist/components/ui/toggle-group.client.mjs.map +1 -1
- package/dist/components/ui/{toggle.d.mts → toggle.client.d.mts} +6 -6
- package/dist/components/ui/toggle.client.d.mts.map +1 -0
- package/dist/components/ui/toggle.client.mjs +40 -0
- package/dist/components/ui/toggle.client.mjs.map +1 -0
- package/dist/components/ui/tooltip.client.d.mts +7 -7
- package/dist/components/ui/tooltip.client.d.mts.map +1 -1
- package/dist/components/ui/tooltip.client.mjs +10 -10
- package/dist/components/ui/tooltip.client.mjs.map +1 -1
- package/dist/components.d.mts +12 -20
- package/dist/components.mjs +12 -20
- package/dist/inline-edit/client.d.mts +3 -3
- package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
- package/dist/lib/hooks/use-indicator.mjs +11 -8
- package/dist/lib/hooks/use-indicator.mjs.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.mjs +3 -3
- package/dist/modules/auth/components/auth-layout.server.mjs.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs +3 -3
- package/dist/modules/auth/components/create-first-user-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/forget-password-page.client.mjs +1 -1
- package/dist/modules/auth/components/forget-password-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/login-page.client.mjs +5 -5
- package/dist/modules/auth/components/login-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.mjs +5 -5
- package/dist/modules/auth/components/reset-password-page.client.mjs.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts +9 -9
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.mjs +3 -3
- package/dist/modules/commands/components/alert-dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/click-command.client.mjs +2 -2
- package/dist/modules/commands/components/click-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
- package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.mjs +2 -2
- package/dist/modules/commands/components/dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.mjs +2 -2
- package/dist/modules/commands/components/dropdown-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/empty-command.client.mjs +2 -2
- package/dist/modules/commands/components/empty-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -9
- package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.mjs +8 -6
- package/dist/modules/commands/components/form-dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts +8 -1
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.mjs +1 -1
- package/dist/modules/commands/menus/context-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.mjs +2 -2
- package/dist/modules/commands/menus/dropdown-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/floating-menu.client.d.mts +19 -0
- package/dist/modules/commands/menus/floating-menu.client.d.mts.map +1 -0
- package/dist/modules/commands/menus/{data-table-menu.client.mjs → floating-menu.client.mjs} +11 -11
- package/dist/modules/commands/menus/floating-menu.client.mjs.map +1 -0
- package/dist/modules/commands/utils/archive-command.client.mjs +1 -1
- package/dist/modules/commands/utils/archive-command.client.mjs.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.mjs +1 -1
- package/dist/modules/commands/utils/delete-command.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/cell/select.client.mjs +1 -1
- package/dist/modules/data-tables/components/cell/select.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/column-header.mjs +5 -5
- package/dist/modules/data-tables/components/column-header.mjs.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.mjs +6 -6
- package/dist/modules/data-tables/components/filters/combobox.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/header.mjs +1 -1
- package/dist/modules/data-tables/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/components/skeleton.mjs +2 -2
- package/dist/modules/data-tables/components/skeleton.mjs.map +1 -1
- package/dist/modules/data-tables/components/table.mjs +3 -3
- package/dist/modules/data-tables/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/components/toolbar.mjs +1 -1
- package/dist/modules/data-tables/components/toolbar.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/components.mjs +3 -3
- package/dist/modules/data-tables/strategies/pagination/components.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.mjs +8 -2
- package/dist/modules/data-tables/tables/data-table/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs +8 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs +5 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.mjs +5 -1
- package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.mjs +8 -4
- package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.mjs +7 -3
- package/dist/modules/inline-edit/components/date-picker.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-time.client.d.mts +1 -1
- package/dist/modules/inline-edit/components/date-time.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-time.client.mjs +7 -2
- package/dist/modules/inline-edit/components/date-time.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.mjs +5 -1
- package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs +5 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs +7 -3
- package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input.client.mjs +18 -6
- package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/select.client.d.mts +8 -11
- package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/select.client.mjs +5 -1
- package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.d.mts +3 -2
- package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.mjs +6 -2
- package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.mjs +6 -2
- package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +20 -5
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs +11 -8
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/variants.mjs +1 -1
- package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
- package/dist/modules/storage/components/dropzone.client.d.mts +2 -2
- package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone.client.mjs +8 -8
- package/dist/modules/storage/components/dropzone.client.mjs.map +1 -1
- package/dist/modules/storage/components/image-grid.client.mjs +5 -5
- package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.d.mts +1 -0
- package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.d.mts +2 -1
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.mjs +6 -4
- package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
- package/package.json +6 -31
- package/src/components/editor/components/menu-nodes.client.tsx +3 -3
- package/src/components/editor/components/menu.client.tsx +3 -3
- package/src/components/emails/forget-password-email.tsx +6 -6
- package/src/components/entry.client.ts +16 -0
- package/src/components/entry.ts +6 -14
- package/src/components/header/back-button.client.tsx +2 -2
- package/src/components/header/bottom-bar.client.tsx +2 -2
- package/src/components/header/breadcrumbs.client.tsx +1 -1
- package/src/components/header/header.client.tsx +1 -1
- package/src/components/layouts/empty-page.tsx +2 -2
- package/src/components/layouts/error-page.tsx +3 -3
- package/src/components/layouts/providers.client.tsx +8 -5
- package/src/components/layouts/root-loading.tsx +2 -2
- package/src/components/layouts/tab-layout.tsx +1 -1
- package/src/components/lists/data-list.tsx +1 -1
- package/src/components/lists/data-stack.tsx +1 -1
- package/src/components/navigation/admin-sidebar-header.client.tsx +3 -3
- package/src/components/navigation/admin-sidebar-skeleton.tsx +1 -1
- package/src/components/navigation/admin-sidebar.client.tsx +1 -0
- package/src/components/ui/accordion.client.tsx +83 -0
- package/src/components/ui/alert-dialog.client.tsx +181 -0
- package/src/components/ui/alert.tsx +15 -7
- package/src/components/ui/aspect-ratio.client.tsx +9 -0
- package/src/components/ui/avatar.client.tsx +61 -6
- package/src/components/ui/badge.tsx +17 -11
- package/src/components/ui/breadcrumb.tsx +9 -10
- package/src/components/ui/button-group.tsx +78 -0
- package/src/components/ui/button.tsx +26 -16
- package/src/components/ui/{calendar.tsx → calendar.client.tsx} +27 -20
- package/src/components/ui/card.tsx +41 -8
- package/src/components/ui/{carousel.tsx → carousel.client.tsx} +12 -12
- package/src/components/ui/chart.client.tsx +105 -103
- package/src/components/ui/checkbox.client.tsx +28 -0
- package/src/components/ui/collapsible.client.tsx +2 -2
- package/src/components/ui/combobox-dropdown.client.tsx +2 -2
- package/src/components/ui/combobox.client.tsx +6 -6
- package/src/components/ui/command.client.tsx +179 -0
- package/src/components/ui/{context-menu.tsx → context-menu.client.tsx} +86 -64
- package/src/components/ui/date-picker.client.tsx +2 -2
- package/src/components/ui/dialog.client.tsx +43 -20
- package/src/components/ui/drawer.client.tsx +13 -15
- package/src/components/ui/{dropdown-menu.tsx → dropdown-menu.client.tsx} +45 -24
- package/src/components/ui/empty.tsx +93 -0
- package/src/components/ui/field.client.tsx +224 -0
- package/src/components/ui/form.client.tsx +4 -4
- package/src/components/ui/hover-card.client.tsx +14 -13
- package/src/components/ui/{input-date-time.tsx → input-date-time.client.tsx} +18 -11
- package/src/components/ui/input-date.tsx +1 -1
- package/src/components/ui/input-group.client.tsx +191 -0
- package/src/components/ui/input-recipient.tsx +12 -12
- package/src/components/ui/input-time.tsx +1 -1
- package/src/components/ui/input.tsx +2 -4
- package/src/components/ui/item.tsx +182 -0
- package/src/components/ui/kbd.tsx +26 -0
- package/src/components/ui/label.tsx +2 -3
- package/src/components/ui/loader.tsx +51 -0
- package/src/components/ui/navigation-menu.tsx +14 -17
- package/src/components/ui/pagination.tsx +31 -26
- package/src/components/ui/popover.client.tsx +73 -0
- package/src/components/ui/progress.client.tsx +6 -4
- package/src/components/ui/radio-group.tsx +5 -7
- package/src/components/ui/resizable.client.tsx +9 -19
- package/src/components/ui/scroll-area.tsx +5 -7
- package/src/components/ui/select.client.tsx +40 -22
- package/src/components/ui/separator.tsx +3 -4
- package/src/components/ui/sheet.client.tsx +19 -18
- package/src/components/ui/sidebar.client.tsx +27 -27
- package/src/components/ui/skeleton.tsx +1 -1
- package/src/components/ui/slider.tsx +5 -10
- package/src/components/ui/spinner.tsx +12 -48
- package/src/components/ui/switch.client.tsx +32 -0
- package/src/components/ui/tabs.client.tsx +79 -0
- package/src/components/ui/textarea.tsx +1 -2
- package/src/components/ui/toggle-group.client.tsx +26 -10
- package/src/components/ui/toggle.client.tsx +44 -0
- package/src/components/ui/tooltip.client.tsx +4 -9
- package/src/lib/hooks/use-indicator.tsx +14 -8
- package/src/modules/auth/components/auth-layout.server.tsx +3 -3
- package/src/modules/auth/components/create-first-user-page.client.tsx +4 -4
- package/src/modules/auth/components/forget-password-page.client.tsx +1 -1
- package/src/modules/auth/components/login-page.client.tsx +6 -6
- package/src/modules/auth/components/reset-password-page.client.tsx +7 -7
- package/src/modules/commands/components/alert-dialog-command.client.tsx +20 -16
- package/src/modules/commands/components/click-command.client.tsx +2 -2
- package/src/modules/commands/components/dialog-command.client.tsx +11 -10
- package/src/modules/commands/components/dropdown-command.client.tsx +2 -2
- package/src/modules/commands/components/empty-command.client.tsx +2 -2
- package/src/modules/commands/components/form-dialog-command.client.tsx +29 -13
- package/src/modules/commands/entry.client.ts +16 -0
- package/src/modules/commands/hooks/use-command-menu.client.tsx +2 -0
- package/src/modules/commands/menus/context-menu.client.tsx +3 -4
- package/src/modules/commands/menus/dropdown-menu.client.tsx +2 -2
- package/src/modules/commands/menus/floating-menu.client.tsx +54 -0
- package/src/modules/commands/utils/archive-command.client.tsx +1 -1
- package/src/modules/commands/utils/delete-command.client.tsx +1 -1
- package/src/modules/data-tables/components/cell/select.client.tsx +1 -1
- package/src/modules/data-tables/components/column-header.tsx +5 -5
- package/src/modules/data-tables/components/filters/combobox.client.tsx +6 -6
- package/src/modules/data-tables/components/filters/slider.client.tsx +2 -2
- package/src/modules/data-tables/components/header.tsx +1 -1
- package/src/modules/data-tables/components/skeleton.tsx +2 -2
- package/src/modules/data-tables/components/table.tsx +3 -3
- package/src/modules/data-tables/components/toolbar.tsx +1 -1
- package/src/modules/data-tables/strategies/pagination/components.tsx +3 -3
- package/src/modules/data-tables/tables/data-table/components/table.tsx +11 -2
- package/src/modules/data-tables/tables/inline-table/components/cells/common.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/cells/read-only.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/table.tsx +11 -2
- package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +4 -0
- package/src/modules/inline-edit/components/combobox.client.tsx +4 -0
- package/src/modules/inline-edit/components/date-input.client.tsx +7 -3
- package/src/modules/inline-edit/components/date-picker.client.tsx +6 -2
- package/src/modules/inline-edit/components/date-time.client.tsx +16 -2
- package/src/modules/inline-edit/components/editor.client.tsx +4 -0
- package/src/modules/inline-edit/components/input-recipient.client.tsx +4 -0
- package/src/modules/inline-edit/components/input-toggle.client.tsx +6 -2
- package/src/modules/inline-edit/components/input.client.tsx +15 -3
- package/src/modules/inline-edit/components/select.client.tsx +10 -20
- package/src/modules/inline-edit/components/switch.client.tsx +7 -3
- package/src/modules/inline-edit/components/toggle.client.tsx +5 -1
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +37 -13
- package/src/modules/inline-edit/lib/parsers.ts +9 -0
- package/src/modules/inline-edit/lib/variants.ts +1 -1
- package/src/modules/storage/components/dropzone.client.tsx +8 -8
- package/src/modules/storage/components/image-grid.client.tsx +5 -5
- package/src/modules/storage/components/upload-zone-context.client.tsx +1 -0
- package/src/modules/storage/components/upload-zone.client.tsx +9 -3
- package/src/styles.css +1 -3
- package/dist/components/ui/accordion.d.mts +0 -25
- package/dist/components/ui/accordion.d.mts.map +0 -1
- package/dist/components/ui/accordion.mjs +0 -46
- package/dist/components/ui/accordion.mjs.map +0 -1
- package/dist/components/ui/alert-dialog.d.mts +0 -43
- package/dist/components/ui/alert-dialog.d.mts.map +0 -1
- package/dist/components/ui/alert-dialog.mjs +0 -84
- package/dist/components/ui/alert-dialog.mjs.map +0 -1
- package/dist/components/ui/aspect-ratio.d.mts +0 -8
- package/dist/components/ui/aspect-ratio.d.mts.map +0 -1
- package/dist/components/ui/aspect-ratio.mjs +0 -16
- package/dist/components/ui/aspect-ratio.mjs.map +0 -1
- package/dist/components/ui/calendar.d.mts.map +0 -1
- package/dist/components/ui/calendar.mjs.map +0 -1
- package/dist/components/ui/carousel.d.mts.map +0 -1
- package/dist/components/ui/carousel.mjs.map +0 -1
- package/dist/components/ui/checkbox.d.mts +0 -12
- package/dist/components/ui/checkbox.d.mts.map +0 -1
- package/dist/components/ui/checkbox.mjs +0 -24
- package/dist/components/ui/checkbox.mjs.map +0 -1
- package/dist/components/ui/command.d.mts.map +0 -1
- package/dist/components/ui/command.mjs +0 -88
- package/dist/components/ui/command.mjs.map +0 -1
- package/dist/components/ui/context-menu.d.mts +0 -77
- package/dist/components/ui/context-menu.d.mts.map +0 -1
- package/dist/components/ui/context-menu.mjs +0 -125
- package/dist/components/ui/context-menu.mjs.map +0 -1
- package/dist/components/ui/dropdown-menu.d.mts +0 -78
- package/dist/components/ui/dropdown-menu.d.mts.map +0 -1
- package/dist/components/ui/dropdown-menu.mjs +0 -126
- package/dist/components/ui/dropdown-menu.mjs.map +0 -1
- package/dist/components/ui/input-date-time.d.mts.map +0 -1
- package/dist/components/ui/input-date-time.mjs.map +0 -1
- package/dist/components/ui/popover.d.mts +0 -23
- package/dist/components/ui/popover.d.mts.map +0 -1
- package/dist/components/ui/popover.mjs +0 -38
- package/dist/components/ui/popover.mjs.map +0 -1
- package/dist/components/ui/switch.d.mts +0 -12
- package/dist/components/ui/switch.d.mts.map +0 -1
- package/dist/components/ui/switch.mjs +0 -22
- package/dist/components/ui/switch.mjs.map +0 -1
- package/dist/components/ui/tabs.d.mts +0 -24
- package/dist/components/ui/tabs.d.mts.map +0 -1
- package/dist/components/ui/tabs.mjs +0 -39
- package/dist/components/ui/tabs.mjs.map +0 -1
- package/dist/components/ui/toggle.d.mts.map +0 -1
- package/dist/components/ui/toggle.mjs +0 -40
- package/dist/components/ui/toggle.mjs.map +0 -1
- package/dist/modules/commands/menus/data-table-menu.client.mjs.map +0 -1
- package/src/components/ui/accordion.tsx +0 -63
- package/src/components/ui/alert-dialog.tsx +0 -133
- package/src/components/ui/aspect-ratio.tsx +0 -9
- package/src/components/ui/checkbox.tsx +0 -29
- package/src/components/ui/command.tsx +0 -154
- package/src/components/ui/popover.tsx +0 -42
- package/src/components/ui/switch.tsx +0 -28
- package/src/components/ui/tabs.tsx +0 -54
- package/src/components/ui/toggle.tsx +0 -46
- package/src/modules/commands/menus/data-table-menu.client.tsx +0 -46
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
|
+
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
5
|
+
import type * as React from "react";
|
|
6
|
+
import { cn } from "@/lib/utils/cn";
|
|
7
|
+
|
|
8
|
+
const toggleVariants = cva(
|
|
9
|
+
"hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[state=on]:bg-muted gap-1 rounded-lg text-sm font-medium transition-all [&_svg:not([class*='size-'])]:size-4 group/toggle inline-flex items-center justify-center whitespace-nowrap outline-none hover:bg-muted focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: "bg-transparent",
|
|
14
|
+
outline: "border-input hover:bg-muted border bg-transparent",
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
default: "h-8 min-w-8 px-2",
|
|
18
|
+
sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]",
|
|
19
|
+
lg: "h-9 min-w-9 px-2.5",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: "default",
|
|
24
|
+
size: "default",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
function Toggle({
|
|
30
|
+
className,
|
|
31
|
+
variant = "default",
|
|
32
|
+
size = "default",
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>) {
|
|
35
|
+
return (
|
|
36
|
+
<TogglePrimitive.Root
|
|
37
|
+
data-slot="toggle"
|
|
38
|
+
className={cn(toggleVariants({ variant, size, className }))}
|
|
39
|
+
{...props}
|
|
40
|
+
/>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Toggle, toggleVariants };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
4
4
|
import type * as React from "react";
|
|
5
|
-
|
|
6
5
|
import { cn } from "@/lib/utils/cn";
|
|
7
6
|
|
|
8
7
|
function TooltipProvider({
|
|
@@ -19,11 +18,7 @@ function TooltipProvider({
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
|
|
22
|
-
return
|
|
23
|
-
<TooltipProvider>
|
|
24
|
-
<TooltipPrimitive.Root data-slot="tooltip" {...props} />
|
|
25
|
-
</TooltipProvider>
|
|
26
|
-
);
|
|
21
|
+
return <TooltipPrimitive.Root data-slot="tooltip" {...props} />;
|
|
27
22
|
}
|
|
28
23
|
|
|
29
24
|
function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
|
|
@@ -42,13 +37,13 @@ function TooltipContent({
|
|
|
42
37
|
data-slot="tooltip-content"
|
|
43
38
|
sideOffset={sideOffset}
|
|
44
39
|
className={cn(
|
|
45
|
-
"
|
|
40
|
+
"data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-background text-xs has-data-[slot=kbd]:pr-1.5 data-[state=closed]:animate-out data-[state=delayed-open]:animate-in data-[state=open]:animate-in **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm",
|
|
46
41
|
className,
|
|
47
42
|
)}
|
|
48
43
|
{...props}
|
|
49
44
|
>
|
|
50
45
|
{children}
|
|
51
|
-
<TooltipPrimitive.Arrow className="
|
|
46
|
+
<TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />
|
|
52
47
|
</TooltipPrimitive.Content>
|
|
53
48
|
</TooltipPrimitive.Portal>
|
|
54
49
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import type React from "react";
|
|
4
|
-
import { createContext, useContext, useEffect, useState, useTransition } from "react";
|
|
4
|
+
import { createContext, useCallback, useContext, useEffect, useState, useTransition } from "react";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Indicator status
|
|
@@ -15,7 +15,7 @@ export function useLocalIndicator() {
|
|
|
15
15
|
/**
|
|
16
16
|
* Start transition
|
|
17
17
|
*/
|
|
18
|
-
const [
|
|
18
|
+
const [, startTransitionBase] = useTransition();
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Status of the inline edit indicator
|
|
@@ -25,19 +25,25 @@ export function useLocalIndicator() {
|
|
|
25
25
|
/**
|
|
26
26
|
* Set status to pending when isPending is true
|
|
27
27
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const startTransition = useCallback<React.TransitionStartFunction>((callback) => {
|
|
29
|
+
setStatus("pending");
|
|
30
|
+
startTransitionBase(callback);
|
|
31
|
+
}, []);
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* Set status back to idle after 1.5 seconds when status is succes
|
|
34
35
|
* Set status back to idle after 3 seconds when status is error
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
-
if (status
|
|
38
|
-
|
|
37
|
+
const resetAfterDelay = useCallback(() => {
|
|
38
|
+
if (status !== "success" && status !== "error") return undefined;
|
|
39
|
+
|
|
40
|
+
const timeout = setTimeout(() => setStatus("idle"), status === "success" ? 1000 : 2000);
|
|
41
|
+
|
|
42
|
+
return () => clearTimeout(timeout);
|
|
39
43
|
}, [status]);
|
|
40
44
|
|
|
45
|
+
useEffect(() => resetAfterDelay(), [resetAfterDelay]);
|
|
46
|
+
|
|
41
47
|
return { status, setStatus, startTransition };
|
|
42
48
|
}
|
|
43
49
|
|
|
@@ -4,11 +4,11 @@ import type { PropsWithChildren } from "react";
|
|
|
4
4
|
|
|
5
5
|
export async function AuthLayout(props: PropsWithChildren<{ name: string }>) {
|
|
6
6
|
return (
|
|
7
|
-
<div className="container relative mx-auto grid h-
|
|
8
|
-
<div className="
|
|
7
|
+
<div className="container relative mx-auto grid h-dvh flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0">
|
|
8
|
+
<div className="relative hidden h-full flex-col bg-muted p-10 text-white lg:flex dark:border-r">
|
|
9
9
|
<Image src="/images/auth-background.jpeg" alt="Background" className="object-cover" fill />
|
|
10
10
|
|
|
11
|
-
<Link href="/" className="relative z-20 flex items-center text-lg
|
|
11
|
+
<Link href="/" className="relative z-20 flex items-center font-bold text-lg">
|
|
12
12
|
{props.name}
|
|
13
13
|
</Link>
|
|
14
14
|
|
|
@@ -69,7 +69,7 @@ export function CreateFirstUserPage() {
|
|
|
69
69
|
return (
|
|
70
70
|
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
|
71
71
|
<div className="flex flex-col space-y-2 text-center">
|
|
72
|
-
<h1 className="text-3xl
|
|
72
|
+
<h1 className="font-semibold text-3xl tracking-tight">Welkom eerste gebruiker</h1>
|
|
73
73
|
<p className="text-muted-foreground text-sm">Maak eerst een account aan om in te loggen</p>
|
|
74
74
|
</div>
|
|
75
75
|
|
|
@@ -138,14 +138,14 @@ export function CreateFirstUserPage() {
|
|
|
138
138
|
type="button"
|
|
139
139
|
variant="ghost"
|
|
140
140
|
size="sm"
|
|
141
|
-
className="absolute
|
|
141
|
+
className="absolute top-0 right-0 h-full px-3 py-2 hover:bg-transparent"
|
|
142
142
|
onClick={() => setShowPassword(!showPassword)}
|
|
143
143
|
disabled={disabled}
|
|
144
144
|
>
|
|
145
145
|
{showPassword ? (
|
|
146
|
-
<EyeOff className="
|
|
146
|
+
<EyeOff className="h-4 w-4 text-muted-foreground" />
|
|
147
147
|
) : (
|
|
148
|
-
<Eye className="
|
|
148
|
+
<Eye className="h-4 w-4 text-muted-foreground" />
|
|
149
149
|
)}
|
|
150
150
|
</Button>
|
|
151
151
|
</div>
|
|
@@ -25,7 +25,7 @@ export function ForgetPasswordPage() {
|
|
|
25
25
|
return (
|
|
26
26
|
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
|
27
27
|
<div className="flex flex-col space-y-2 text-center">
|
|
28
|
-
<h1 className="text-3xl
|
|
28
|
+
<h1 className="font-semibold text-3xl tracking-tight">Wachtwoord vergeten</h1>
|
|
29
29
|
<p className="text-muted-foreground text-sm">
|
|
30
30
|
Schrijf je email zodat we je een mail kunnen verzenden om je wachtwoord te herstellen.
|
|
31
31
|
</p>
|
|
@@ -91,7 +91,7 @@ export function LoginPage(props: LoginPageProps) {
|
|
|
91
91
|
return (
|
|
92
92
|
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
|
93
93
|
<div className="flex flex-col space-y-2 text-center">
|
|
94
|
-
<h1 className="text-3xl
|
|
94
|
+
<h1 className="font-semibold text-3xl tracking-tight">Login</h1>
|
|
95
95
|
<p className="text-muted-foreground text-sm">
|
|
96
96
|
Schrijf je email en wachtwoord in om in te loggen.
|
|
97
97
|
</p>
|
|
@@ -132,14 +132,14 @@ export function LoginPage(props: LoginPageProps) {
|
|
|
132
132
|
type="button"
|
|
133
133
|
variant="ghost"
|
|
134
134
|
size="sm"
|
|
135
|
-
className="absolute
|
|
135
|
+
className="absolute top-0 right-0 h-full px-3 py-2 hover:bg-transparent"
|
|
136
136
|
onClick={() => setShowPassword(!showPassword)}
|
|
137
137
|
disabled={disabled}
|
|
138
138
|
>
|
|
139
139
|
{showPassword ? (
|
|
140
|
-
<EyeOff className="
|
|
140
|
+
<EyeOff className="h-4 w-4 text-muted-foreground" />
|
|
141
141
|
) : (
|
|
142
|
-
<Eye className="
|
|
142
|
+
<Eye className="h-4 w-4 text-muted-foreground" />
|
|
143
143
|
)}
|
|
144
144
|
</Button>
|
|
145
145
|
</div>
|
|
@@ -178,10 +178,10 @@ export function LoginPage(props: LoginPageProps) {
|
|
|
178
178
|
</form>
|
|
179
179
|
</Form>
|
|
180
180
|
|
|
181
|
-
<p className="
|
|
181
|
+
<p className="px-8 text-center text-muted-foreground text-sm">
|
|
182
182
|
<Link
|
|
183
183
|
href="/auth/forget-password"
|
|
184
|
-
className="
|
|
184
|
+
className="underline underline-offset-4 hover:text-primary"
|
|
185
185
|
>
|
|
186
186
|
Wachtwoord vergeten
|
|
187
187
|
</Link>
|
|
@@ -42,7 +42,7 @@ export function ResetPasswordPage(params: {
|
|
|
42
42
|
return (
|
|
43
43
|
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
|
44
44
|
<div className="flex flex-col space-y-2 text-center">
|
|
45
|
-
<h1 className="text-3xl
|
|
45
|
+
<h1 className="font-semibold text-3xl tracking-tight">Wachtwoord herstellen</h1>
|
|
46
46
|
<p className="text-muted-foreground text-sm">Vul je nieuwe wachtwoord in</p>
|
|
47
47
|
</div>
|
|
48
48
|
|
|
@@ -89,14 +89,14 @@ export function ResetPasswordPage(params: {
|
|
|
89
89
|
type="button"
|
|
90
90
|
variant="ghost"
|
|
91
91
|
size="sm"
|
|
92
|
-
className="absolute
|
|
92
|
+
className="absolute top-0 right-0 h-full px-3 py-2 hover:bg-transparent"
|
|
93
93
|
onClick={() => setShowPassword(!showPassword)}
|
|
94
94
|
disabled={form.formState.disabled}
|
|
95
95
|
>
|
|
96
96
|
{showPassword ? (
|
|
97
|
-
<EyeOff className="
|
|
97
|
+
<EyeOff className="h-4 w-4 text-muted-foreground" />
|
|
98
98
|
) : (
|
|
99
|
-
<Eye className="
|
|
99
|
+
<Eye className="h-4 w-4 text-muted-foreground" />
|
|
100
100
|
)}
|
|
101
101
|
</Button>
|
|
102
102
|
</div>
|
|
@@ -123,14 +123,14 @@ export function ResetPasswordPage(params: {
|
|
|
123
123
|
type="button"
|
|
124
124
|
variant="ghost"
|
|
125
125
|
size="sm"
|
|
126
|
-
className="absolute
|
|
126
|
+
className="absolute top-0 right-0 h-full px-3 py-2 hover:bg-transparent"
|
|
127
127
|
onClick={() => setShowPasswordConfirm(!showPasswordConfirm)}
|
|
128
128
|
disabled={form.formState.disabled}
|
|
129
129
|
>
|
|
130
130
|
{showPasswordConfirm ? (
|
|
131
|
-
<EyeOff className="
|
|
131
|
+
<EyeOff className="h-4 w-4 text-muted-foreground" />
|
|
132
132
|
) : (
|
|
133
|
-
<Eye className="
|
|
133
|
+
<Eye className="h-4 w-4 text-muted-foreground" />
|
|
134
134
|
)}
|
|
135
135
|
</Button>
|
|
136
136
|
</div>
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import type {
|
|
4
|
-
AlertDialogCancelProps,
|
|
5
|
-
AlertDialogContentProps,
|
|
6
|
-
AlertDialogProps,
|
|
7
|
-
} from "@radix-ui/react-alert-dialog";
|
|
8
3
|
import type { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
9
|
-
import React from "react";
|
|
4
|
+
import React, { type ComponentProps } from "react";
|
|
10
5
|
import { type Keys, useHotkeys } from "react-hotkeys-hook";
|
|
11
6
|
import { Icons } from "@/components/common/icons";
|
|
12
7
|
import {
|
|
@@ -19,10 +14,10 @@ import {
|
|
|
19
14
|
AlertDialogHeader,
|
|
20
15
|
AlertDialogTitle,
|
|
21
16
|
AlertDialogTrigger,
|
|
22
|
-
} from "@/components/ui/alert-dialog";
|
|
17
|
+
} from "@/components/ui/alert-dialog.client";
|
|
23
18
|
import { buttonVariants } from "@/components/ui/button";
|
|
24
|
-
import { ContextMenuItem } from "@/components/ui/context-menu";
|
|
25
|
-
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
19
|
+
import { ContextMenuItem } from "@/components/ui/context-menu.client";
|
|
20
|
+
import { DropdownMenuItem } from "@/components/ui/dropdown-menu.client";
|
|
26
21
|
import { cn } from "@/lib/utils/cn";
|
|
27
22
|
import { useCommand } from "../hooks/context.client";
|
|
28
23
|
import { useCommandMutation } from "../hooks/use-command-mutation.client";
|
|
@@ -41,7 +36,7 @@ const CommandAlertDialogContext = React.createContext({} as CommandAlertDialogCo
|
|
|
41
36
|
/**
|
|
42
37
|
* CommandAlertDialog
|
|
43
38
|
*/
|
|
44
|
-
export function CommandAlertDialog({ children, ...props }:
|
|
39
|
+
export function CommandAlertDialog({ children, ...props }: ComponentProps<typeof AlertDialog>) {
|
|
45
40
|
const [open, setOpen] = React.useState(false);
|
|
46
41
|
|
|
47
42
|
return (
|
|
@@ -134,7 +129,10 @@ export function CommandAlertDialogTrigger({
|
|
|
134
129
|
/**
|
|
135
130
|
* CommandAlertDialogContent
|
|
136
131
|
*/
|
|
137
|
-
export function CommandAlertDialogContent({
|
|
132
|
+
export function CommandAlertDialogContent({
|
|
133
|
+
children,
|
|
134
|
+
...props
|
|
135
|
+
}: ComponentProps<typeof AlertDialogContent>) {
|
|
138
136
|
return <AlertDialogContent {...props}>{children}</AlertDialogContent>;
|
|
139
137
|
}
|
|
140
138
|
|
|
@@ -144,14 +142,17 @@ export function CommandAlertDialogContent({ children, ...props }: AlertDialogCon
|
|
|
144
142
|
export function CommandAlertDialogHeader({
|
|
145
143
|
children,
|
|
146
144
|
...props
|
|
147
|
-
}:
|
|
145
|
+
}: ComponentProps<typeof AlertDialogHeader>) {
|
|
148
146
|
return <AlertDialogHeader {...props}>{children}</AlertDialogHeader>;
|
|
149
147
|
}
|
|
150
148
|
|
|
151
149
|
/**
|
|
152
150
|
* CommandAlertDialogTitle
|
|
153
151
|
*/
|
|
154
|
-
export function CommandAlertDialogTitle({
|
|
152
|
+
export function CommandAlertDialogTitle({
|
|
153
|
+
children,
|
|
154
|
+
...props
|
|
155
|
+
}: ComponentProps<typeof AlertDialogTitle>) {
|
|
155
156
|
return <AlertDialogTitle {...props}>{children}</AlertDialogTitle>;
|
|
156
157
|
}
|
|
157
158
|
|
|
@@ -161,7 +162,7 @@ export function CommandAlertDialogTitle({ children, ...props }: React.HTMLAttrib
|
|
|
161
162
|
export function CommandAlertDialogDescription({
|
|
162
163
|
children,
|
|
163
164
|
...props
|
|
164
|
-
}:
|
|
165
|
+
}: ComponentProps<typeof AlertDialogDescription>) {
|
|
165
166
|
return <AlertDialogDescription {...props}>{children}</AlertDialogDescription>;
|
|
166
167
|
}
|
|
167
168
|
|
|
@@ -171,14 +172,17 @@ export function CommandAlertDialogDescription({
|
|
|
171
172
|
export function CommandAlertDialogFooter({
|
|
172
173
|
children,
|
|
173
174
|
...props
|
|
174
|
-
}:
|
|
175
|
+
}: ComponentProps<typeof AlertDialogFooter>) {
|
|
175
176
|
return <AlertDialogFooter {...props}>{children}</AlertDialogFooter>;
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
/**
|
|
179
180
|
* CommandAlertDialogCancel
|
|
180
181
|
*/
|
|
181
|
-
export function CommandAlertDialogCancel({
|
|
182
|
+
export function CommandAlertDialogCancel({
|
|
183
|
+
children,
|
|
184
|
+
...props
|
|
185
|
+
}: ComponentProps<typeof AlertDialogCancel>) {
|
|
182
186
|
return <AlertDialogCancel {...props}>{children}</AlertDialogCancel>;
|
|
183
187
|
}
|
|
184
188
|
|
|
@@ -4,8 +4,8 @@ import type { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
|
4
4
|
import type React from "react";
|
|
5
5
|
import { type Keys, useHotkeys } from "react-hotkeys-hook";
|
|
6
6
|
import { Button } from "@/components/ui/button";
|
|
7
|
-
import { ContextMenuItem } from "@/components/ui/context-menu";
|
|
8
|
-
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
7
|
+
import { ContextMenuItem } from "@/components/ui/context-menu.client";
|
|
8
|
+
import { DropdownMenuItem } from "@/components/ui/dropdown-menu.client";
|
|
9
9
|
import { useCommand } from "../hooks/context.client";
|
|
10
10
|
import { useCommandMutation } from "../hooks/use-command-mutation.client";
|
|
11
11
|
import { CommandTrigger } from "./command-trigger.client";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import React from "react";
|
|
3
|
+
import React, { type ComponentProps } from "react";
|
|
5
4
|
import { type Keys, useHotkeys } from "react-hotkeys-hook";
|
|
6
5
|
import { buttonVariants } from "@/components/ui/button";
|
|
7
|
-
import { ContextMenuItem } from "@/components/ui/context-menu";
|
|
6
|
+
import { ContextMenuItem } from "@/components/ui/context-menu.client";
|
|
8
7
|
import {
|
|
9
8
|
Dialog,
|
|
10
9
|
DialogContent,
|
|
@@ -14,7 +13,7 @@ import {
|
|
|
14
13
|
DialogTitle,
|
|
15
14
|
DialogTrigger,
|
|
16
15
|
} from "@/components/ui/dialog.client";
|
|
17
|
-
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
16
|
+
import { DropdownMenuItem } from "@/components/ui/dropdown-menu.client";
|
|
18
17
|
import { cn } from "@/lib/utils/cn";
|
|
19
18
|
import { useCommand } from "../hooks/context.client";
|
|
20
19
|
import { CommandTrigger } from "./command-trigger.client";
|
|
@@ -40,7 +39,9 @@ export function CommandDialog({
|
|
|
40
39
|
children,
|
|
41
40
|
openState,
|
|
42
41
|
...props
|
|
43
|
-
}: Omit<
|
|
42
|
+
}: Omit<ComponentProps<typeof Dialog>, "open" | "onOpenChange"> & {
|
|
43
|
+
openState?: CommandDialogOpenState;
|
|
44
|
+
}) {
|
|
44
45
|
const state = React.useState(false);
|
|
45
46
|
|
|
46
47
|
const { open, setOpen } = openState ?? { open: state[0], setOpen: state[1] };
|
|
@@ -137,21 +138,21 @@ export function CommandDialogTrigger({
|
|
|
137
138
|
/**
|
|
138
139
|
* CommandDialogContent
|
|
139
140
|
*/
|
|
140
|
-
export function CommandDialogContent({ children, ...props }:
|
|
141
|
+
export function CommandDialogContent({ children, ...props }: ComponentProps<typeof DialogContent>) {
|
|
141
142
|
return <DialogContent {...props}>{children}</DialogContent>;
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
/**
|
|
145
146
|
* CommandDialogHeader
|
|
146
147
|
*/
|
|
147
|
-
export function CommandDialogHeader({ children, ...props }:
|
|
148
|
+
export function CommandDialogHeader({ children, ...props }: ComponentProps<typeof DialogHeader>) {
|
|
148
149
|
return <DialogHeader {...props}>{children}</DialogHeader>;
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
/**
|
|
152
153
|
* CommandDialogTitle
|
|
153
154
|
*/
|
|
154
|
-
export function CommandDialogTitle({ children, ...props }:
|
|
155
|
+
export function CommandDialogTitle({ children, ...props }: ComponentProps<typeof DialogTitle>) {
|
|
155
156
|
return <DialogTitle {...props}>{children}</DialogTitle>;
|
|
156
157
|
}
|
|
157
158
|
|
|
@@ -161,13 +162,13 @@ export function CommandDialogTitle({ children, ...props }: React.HTMLAttributes<
|
|
|
161
162
|
export function CommandDialogDescription({
|
|
162
163
|
children,
|
|
163
164
|
...props
|
|
164
|
-
}:
|
|
165
|
+
}: ComponentProps<typeof DialogDescription>) {
|
|
165
166
|
return <DialogDescription {...props}>{children}</DialogDescription>;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
/**
|
|
169
170
|
* CommandDialogFooter
|
|
170
171
|
*/
|
|
171
|
-
export function CommandDialogFooter({ children, ...props }:
|
|
172
|
+
export function CommandDialogFooter({ children, ...props }: ComponentProps<typeof DialogFooter>) {
|
|
172
173
|
return <DialogFooter {...props}>{children}</DialogFooter>;
|
|
173
174
|
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ContextMenuSub,
|
|
9
9
|
ContextMenuSubContent,
|
|
10
10
|
ContextMenuSubTrigger,
|
|
11
|
-
} from "@/components/ui/context-menu";
|
|
11
|
+
} from "@/components/ui/context-menu.client";
|
|
12
12
|
import {
|
|
13
13
|
DropdownMenu,
|
|
14
14
|
DropdownMenuContent,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
DropdownMenuSubContent,
|
|
18
18
|
DropdownMenuSubTrigger,
|
|
19
19
|
DropdownMenuTrigger,
|
|
20
|
-
} from "@/components/ui/dropdown-menu";
|
|
20
|
+
} from "@/components/ui/dropdown-menu.client";
|
|
21
21
|
import { cn } from "@/lib/utils/cn";
|
|
22
22
|
import { useCommand } from "../hooks/context.client";
|
|
23
23
|
import { useCommandMutation } from "../hooks/use-command-mutation.client";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import type React from "react";
|
|
4
4
|
import { Button } from "@/components/ui/button";
|
|
5
|
-
import { ContextMenuItem } from "@/components/ui/context-menu";
|
|
6
|
-
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
5
|
+
import { ContextMenuItem } from "@/components/ui/context-menu.client";
|
|
6
|
+
import { DropdownMenuItem } from "@/components/ui/dropdown-menu.client";
|
|
7
7
|
import { useCommand } from "../hooks/context.client";
|
|
8
8
|
import { CommandTrigger } from "./command-trigger.client";
|
|
9
9
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import type { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
|
|
4
3
|
import type { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
5
4
|
import React, { type ComponentProps } from "react";
|
|
6
5
|
import { type FieldValues, Form, useFormContext } from "react-hook-form";
|
|
7
6
|
import { type Keys, useHotkeys } from "react-hotkeys-hook";
|
|
8
7
|
import { Icons } from "@/components/common/icons";
|
|
9
8
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
10
|
-
import { ContextMenuItem } from "@/components/ui/context-menu";
|
|
9
|
+
import { ContextMenuItem } from "@/components/ui/context-menu.client";
|
|
11
10
|
import {
|
|
12
11
|
Dialog,
|
|
13
12
|
DialogContent,
|
|
@@ -17,7 +16,7 @@ import {
|
|
|
17
16
|
DialogTitle,
|
|
18
17
|
DialogTrigger,
|
|
19
18
|
} from "@/components/ui/dialog.client";
|
|
20
|
-
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
19
|
+
import { DropdownMenuItem } from "@/components/ui/dropdown-menu.client";
|
|
21
20
|
import { cn } from "@/lib/utils/cn";
|
|
22
21
|
import { useCommandMutation } from "../entry.client";
|
|
23
22
|
import { useCommand } from "../hooks/context.client";
|
|
@@ -36,7 +35,7 @@ const CommandFormDialogContext = React.createContext({} as CommandFormDialogCont
|
|
|
36
35
|
/**
|
|
37
36
|
* CommandFormDialog
|
|
38
37
|
*/
|
|
39
|
-
export function CommandFormDialog({ children, ...props }:
|
|
38
|
+
export function CommandFormDialog({ children, ...props }: ComponentProps<typeof Dialog>) {
|
|
40
39
|
const [open, setOpen] = React.useState(false);
|
|
41
40
|
|
|
42
41
|
return (
|
|
@@ -129,14 +128,17 @@ export function CommandFormDialogTrigger({
|
|
|
129
128
|
/**
|
|
130
129
|
* CommandFormDialogHeader
|
|
131
130
|
*/
|
|
132
|
-
export function CommandFormDialogHeader({
|
|
131
|
+
export function CommandFormDialogHeader({
|
|
132
|
+
children,
|
|
133
|
+
...props
|
|
134
|
+
}: ComponentProps<typeof DialogHeader>) {
|
|
133
135
|
return <DialogHeader {...props}>{children}</DialogHeader>;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
/**
|
|
137
139
|
* CommandFormDialogTitle
|
|
138
140
|
*/
|
|
139
|
-
export function CommandFormDialogTitle({ children, ...props }:
|
|
141
|
+
export function CommandFormDialogTitle({ children, ...props }: ComponentProps<typeof DialogTitle>) {
|
|
140
142
|
return <DialogTitle {...props}>{children}</DialogTitle>;
|
|
141
143
|
}
|
|
142
144
|
|
|
@@ -146,7 +148,7 @@ export function CommandFormDialogTitle({ children, ...props }: React.HTMLAttribu
|
|
|
146
148
|
export function CommandFormDialogDescription({
|
|
147
149
|
children,
|
|
148
150
|
...props
|
|
149
|
-
}:
|
|
151
|
+
}: ComponentProps<typeof DialogDescription>) {
|
|
150
152
|
return <DialogDescription {...props}>{children}</DialogDescription>;
|
|
151
153
|
}
|
|
152
154
|
|
|
@@ -161,7 +163,7 @@ export type CommandFormDialogContentProps<
|
|
|
161
163
|
TError = DefaultError,
|
|
162
164
|
TVariables = undefined,
|
|
163
165
|
TOnMutateResult = unknown,
|
|
164
|
-
> =
|
|
166
|
+
> = ComponentProps<typeof DialogContent> & {
|
|
165
167
|
variables: (values: TValues) => TVariables;
|
|
166
168
|
mutation?: MutationOptions<TData, TError, TVariables, TOnMutateResult>;
|
|
167
169
|
children: React.ReactNode;
|
|
@@ -230,14 +232,21 @@ export function CommandFormDialogFields({ children, className, ...props }: Compo
|
|
|
230
232
|
/**
|
|
231
233
|
* CommandFormDialogFooter
|
|
232
234
|
*/
|
|
233
|
-
export function CommandFormDialogFooter({
|
|
235
|
+
export function CommandFormDialogFooter({
|
|
236
|
+
children,
|
|
237
|
+
...props
|
|
238
|
+
}: ComponentProps<typeof DialogFooter>) {
|
|
234
239
|
return <DialogFooter {...props}>{children}</DialogFooter>;
|
|
235
240
|
}
|
|
236
241
|
|
|
237
242
|
/**
|
|
238
243
|
* CommandFormDialogCancel
|
|
239
244
|
*/
|
|
240
|
-
export function CommandFormDialogCancel({
|
|
245
|
+
export function CommandFormDialogCancel({
|
|
246
|
+
children,
|
|
247
|
+
onClick,
|
|
248
|
+
...props
|
|
249
|
+
}: Omit<ComponentProps<"button">, "type">) {
|
|
241
250
|
const { setOpen } = React.useContext(CommandFormDialogContext);
|
|
242
251
|
const form = useFormContext();
|
|
243
252
|
|
|
@@ -246,9 +255,10 @@ export function CommandFormDialogCancel({ children, ...props }: React.HTMLAttrib
|
|
|
246
255
|
{...props}
|
|
247
256
|
variant="ghost"
|
|
248
257
|
type="button"
|
|
249
|
-
onClick={() => {
|
|
258
|
+
onClick={(e) => {
|
|
250
259
|
form.reset();
|
|
251
260
|
setOpen(false);
|
|
261
|
+
onClick?.(e);
|
|
252
262
|
}}
|
|
253
263
|
>
|
|
254
264
|
{children}
|
|
@@ -259,11 +269,17 @@ export function CommandFormDialogCancel({ children, ...props }: React.HTMLAttrib
|
|
|
259
269
|
/**
|
|
260
270
|
* CommandFormDialogSubmit
|
|
261
271
|
*/
|
|
262
|
-
export function CommandFormDialogSubmit({
|
|
272
|
+
export function CommandFormDialogSubmit({
|
|
273
|
+
children,
|
|
274
|
+
disabled,
|
|
275
|
+
...props
|
|
276
|
+
}: Omit<ComponentProps<"button">, "type">) {
|
|
263
277
|
const { status } = useCommand();
|
|
264
278
|
|
|
279
|
+
const isDisabled = disabled || status === "pending";
|
|
280
|
+
|
|
265
281
|
return (
|
|
266
|
-
<Button {...props}
|
|
282
|
+
<Button {...props} type="submit" disabled={isDisabled}>
|
|
267
283
|
{status === "pending" && <Icons.spinner className="mr-2 h-4 w-4 animate-spin" />}
|
|
268
284
|
{children}
|
|
269
285
|
</Button>
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Components
|
|
3
|
+
*/
|
|
1
4
|
export * from "./components/alert-dialog-command.client";
|
|
2
5
|
export * from "./components/click-command.client";
|
|
3
6
|
export * from "./components/command-trigger.client";
|
|
@@ -5,11 +8,24 @@ export * from "./components/dialog-command.client";
|
|
|
5
8
|
export * from "./components/dropdown-command.client";
|
|
6
9
|
export * from "./components/empty-command.client";
|
|
7
10
|
export * from "./components/form-dialog-command.client";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Hooks
|
|
14
|
+
*/
|
|
8
15
|
export * from "./hooks/use-command-mutation.client";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Menus
|
|
19
|
+
*/
|
|
9
20
|
export * from "./menus/context-menu.client";
|
|
10
21
|
export * from "./menus/dropdown-menu.client";
|
|
22
|
+
export * from "./menus/floating-menu.client";
|
|
11
23
|
export * from "./menus/inline-menu.client";
|
|
12
24
|
export * from "./menus/responsive-menu.client";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Utils
|
|
28
|
+
*/
|
|
13
29
|
export * from "./utils/archive-command.client";
|
|
14
30
|
export * from "./utils/delete-command.client";
|
|
15
31
|
export * from "./utils/send-mail-command.client";
|