@tulip-systems/core 0.6.1 → 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/components/client.d.mts +19 -3
- package/dist/components/client.mjs +18 -2
- package/dist/components/editor/components/menu-nodes.client.mjs +1 -1
- 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} +3 -3
- 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} +4 -2
- 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 +2 -2
- package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
- package/dist/lib/hooks/use-indicator.mjs.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.mjs +2 -2
- 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/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.mjs +2 -2
- package/dist/modules/commands/menus/floating-menu.client.mjs.map +1 -1
- 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/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/inline-edit/components/date-input.client.mjs +3 -3
- package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.mjs +2 -2
- 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.mjs +1 -1
- package/dist/modules/inline-edit/components/date-time.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input.client.mjs +3 -3
- 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.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 +1 -1
- package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.mjs +1 -1
- package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/variants.d.mts +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.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.client.mjs +1 -1
- package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
- package/dist/modules/storage/lib/router.server.d.mts +11 -11
- package/dist/modules/storage/lib/service.server.d.mts +9 -9
- package/dist/modules/storage/lib/validators.d.mts +7 -7
- package/package.json +6 -31
- package/src/components/editor/components/menu-nodes.client.tsx +1 -1
- 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/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} +6 -1
- 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 +4 -7
- package/src/modules/auth/components/auth-layout.server.tsx +2 -2
- 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/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 +2 -2
- 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/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/inline-edit/components/date-input.client.tsx +3 -3
- package/src/modules/inline-edit/components/date-picker.client.tsx +2 -2
- package/src/modules/inline-edit/components/date-time.client.tsx +1 -1
- package/src/modules/inline-edit/components/input-toggle.client.tsx +2 -2
- package/src/modules/inline-edit/components/input.client.tsx +3 -3
- package/src/modules/inline-edit/components/select.client.tsx +6 -20
- package/src/modules/inline-edit/components/switch.client.tsx +3 -3
- package/src/modules/inline-edit/components/toggle.client.tsx +1 -1
- 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.client.tsx +1 -1
- 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/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
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import { CheckIcon, ChevronRightIcon } from "lucide-react";
|
|
4
|
+
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
5
5
|
import type * as React from "react";
|
|
6
|
-
|
|
7
6
|
import { cn } from "@/lib/utils/cn";
|
|
8
7
|
|
|
9
8
|
function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
|
|
@@ -11,9 +10,16 @@ function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimit
|
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
function ContextMenuTrigger({
|
|
13
|
+
className,
|
|
14
14
|
...props
|
|
15
15
|
}: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>) {
|
|
16
|
-
return
|
|
16
|
+
return (
|
|
17
|
+
<ContextMenuPrimitive.Trigger
|
|
18
|
+
data-slot="context-menu-trigger"
|
|
19
|
+
className={cn("select-none", className)}
|
|
20
|
+
{...props}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>) {
|
|
@@ -34,56 +40,18 @@ function ContextMenuRadioGroup({
|
|
|
34
40
|
return <ContextMenuPrimitive.RadioGroup data-slot="context-menu-radio-group" {...props} />;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
|
-
function ContextMenuSubTrigger({
|
|
38
|
-
className,
|
|
39
|
-
inset,
|
|
40
|
-
children,
|
|
41
|
-
...props
|
|
42
|
-
}: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
43
|
-
inset?: boolean;
|
|
44
|
-
}) {
|
|
45
|
-
return (
|
|
46
|
-
<ContextMenuPrimitive.SubTrigger
|
|
47
|
-
data-slot="context-menu-sub-trigger"
|
|
48
|
-
data-inset={inset}
|
|
49
|
-
className={cn(
|
|
50
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
51
|
-
className,
|
|
52
|
-
)}
|
|
53
|
-
{...props}
|
|
54
|
-
>
|
|
55
|
-
{children}
|
|
56
|
-
<ChevronRightIcon className="ml-auto" />
|
|
57
|
-
</ContextMenuPrimitive.SubTrigger>
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function ContextMenuSubContent({
|
|
62
|
-
className,
|
|
63
|
-
...props
|
|
64
|
-
}: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>) {
|
|
65
|
-
return (
|
|
66
|
-
<ContextMenuPrimitive.SubContent
|
|
67
|
-
data-slot="context-menu-sub-content"
|
|
68
|
-
className={cn(
|
|
69
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
70
|
-
className,
|
|
71
|
-
)}
|
|
72
|
-
{...props}
|
|
73
|
-
/>
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
43
|
function ContextMenuContent({
|
|
78
44
|
className,
|
|
79
45
|
...props
|
|
80
|
-
}: React.ComponentProps<typeof ContextMenuPrimitive.Content>
|
|
46
|
+
}: React.ComponentProps<typeof ContextMenuPrimitive.Content> & {
|
|
47
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
48
|
+
}) {
|
|
81
49
|
return (
|
|
82
50
|
<ContextMenuPrimitive.Portal>
|
|
83
51
|
<ContextMenuPrimitive.Content
|
|
84
52
|
data-slot="context-menu-content"
|
|
85
53
|
className={cn(
|
|
86
|
-
"
|
|
54
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
87
55
|
className,
|
|
88
56
|
)}
|
|
89
57
|
{...props}
|
|
@@ -107,7 +75,47 @@ function ContextMenuItem({
|
|
|
107
75
|
data-inset={inset}
|
|
108
76
|
data-variant={variant}
|
|
109
77
|
className={cn(
|
|
110
|
-
"focus:bg-accent focus:text-accent-foreground data-
|
|
78
|
+
"group/context-menu-item relative flex cursor-default select-none items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-[variant=destructive]:text-destructive data-disabled:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",
|
|
79
|
+
className,
|
|
80
|
+
)}
|
|
81
|
+
{...props}
|
|
82
|
+
/>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function ContextMenuSubTrigger({
|
|
87
|
+
className,
|
|
88
|
+
inset,
|
|
89
|
+
children,
|
|
90
|
+
...props
|
|
91
|
+
}: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
92
|
+
inset?: boolean;
|
|
93
|
+
}) {
|
|
94
|
+
return (
|
|
95
|
+
<ContextMenuPrimitive.SubTrigger
|
|
96
|
+
data-slot="context-menu-sub-trigger"
|
|
97
|
+
data-inset={inset}
|
|
98
|
+
className={cn(
|
|
99
|
+
"flex cursor-default select-none items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-inset:pl-7 data-[state=open]:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
100
|
+
className,
|
|
101
|
+
)}
|
|
102
|
+
{...props}
|
|
103
|
+
>
|
|
104
|
+
{children}
|
|
105
|
+
<ChevronRightIcon className="cn-rtl-flip ml-auto" />
|
|
106
|
+
</ContextMenuPrimitive.SubTrigger>
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function ContextMenuSubContent({
|
|
111
|
+
className,
|
|
112
|
+
...props
|
|
113
|
+
}: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>) {
|
|
114
|
+
return (
|
|
115
|
+
<ContextMenuPrimitive.SubContent
|
|
116
|
+
data-slot="context-menu-sub-content"
|
|
117
|
+
className={cn(
|
|
118
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg duration-100 data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
111
119
|
className,
|
|
112
120
|
)}
|
|
113
121
|
{...props}
|
|
@@ -119,21 +127,25 @@ function ContextMenuCheckboxItem({
|
|
|
119
127
|
className,
|
|
120
128
|
children,
|
|
121
129
|
checked,
|
|
130
|
+
inset,
|
|
122
131
|
...props
|
|
123
|
-
}: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>
|
|
132
|
+
}: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
|
|
133
|
+
inset?: boolean;
|
|
134
|
+
}) {
|
|
124
135
|
return (
|
|
125
136
|
<ContextMenuPrimitive.CheckboxItem
|
|
126
137
|
data-slot="context-menu-checkbox-item"
|
|
138
|
+
data-inset={inset}
|
|
127
139
|
className={cn(
|
|
128
|
-
"
|
|
140
|
+
"relative flex cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
129
141
|
className,
|
|
130
142
|
)}
|
|
131
143
|
checked={checked}
|
|
132
144
|
{...props}
|
|
133
145
|
>
|
|
134
|
-
<span className="pointer-events-none absolute
|
|
146
|
+
<span className="pointer-events-none absolute right-2">
|
|
135
147
|
<ContextMenuPrimitive.ItemIndicator>
|
|
136
|
-
<CheckIcon
|
|
148
|
+
<CheckIcon />
|
|
137
149
|
</ContextMenuPrimitive.ItemIndicator>
|
|
138
150
|
</span>
|
|
139
151
|
{children}
|
|
@@ -144,20 +156,24 @@ function ContextMenuCheckboxItem({
|
|
|
144
156
|
function ContextMenuRadioItem({
|
|
145
157
|
className,
|
|
146
158
|
children,
|
|
159
|
+
inset,
|
|
147
160
|
...props
|
|
148
|
-
}: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>
|
|
161
|
+
}: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
|
|
162
|
+
inset?: boolean;
|
|
163
|
+
}) {
|
|
149
164
|
return (
|
|
150
165
|
<ContextMenuPrimitive.RadioItem
|
|
151
166
|
data-slot="context-menu-radio-item"
|
|
167
|
+
data-inset={inset}
|
|
152
168
|
className={cn(
|
|
153
|
-
"
|
|
169
|
+
"relative flex cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
154
170
|
className,
|
|
155
171
|
)}
|
|
156
172
|
{...props}
|
|
157
173
|
>
|
|
158
|
-
<span className="pointer-events-none absolute
|
|
174
|
+
<span className="pointer-events-none absolute right-2">
|
|
159
175
|
<ContextMenuPrimitive.ItemIndicator>
|
|
160
|
-
<
|
|
176
|
+
<CheckIcon />
|
|
161
177
|
</ContextMenuPrimitive.ItemIndicator>
|
|
162
178
|
</span>
|
|
163
179
|
{children}
|
|
@@ -176,7 +192,10 @@ function ContextMenuLabel({
|
|
|
176
192
|
<ContextMenuPrimitive.Label
|
|
177
193
|
data-slot="context-menu-label"
|
|
178
194
|
data-inset={inset}
|
|
179
|
-
className={cn(
|
|
195
|
+
className={cn(
|
|
196
|
+
"px-1.5 py-1 font-medium text-muted-foreground text-xs data-inset:pl-7",
|
|
197
|
+
className,
|
|
198
|
+
)}
|
|
180
199
|
{...props}
|
|
181
200
|
/>
|
|
182
201
|
);
|
|
@@ -189,7 +208,7 @@ function ContextMenuSeparator({
|
|
|
189
208
|
return (
|
|
190
209
|
<ContextMenuPrimitive.Separator
|
|
191
210
|
data-slot="context-menu-separator"
|
|
192
|
-
className={cn("
|
|
211
|
+
className={cn("-mx-1 my-1 h-px bg-border", className)}
|
|
193
212
|
{...props}
|
|
194
213
|
/>
|
|
195
214
|
);
|
|
@@ -199,7 +218,10 @@ function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span
|
|
|
199
218
|
return (
|
|
200
219
|
<span
|
|
201
220
|
data-slot="context-menu-shortcut"
|
|
202
|
-
className={cn(
|
|
221
|
+
className={cn(
|
|
222
|
+
"ml-auto text-muted-foreground text-xs tracking-widest group-focus/context-menu-item:text-accent-foreground",
|
|
223
|
+
className,
|
|
224
|
+
)}
|
|
203
225
|
{...props}
|
|
204
226
|
/>
|
|
205
227
|
);
|
|
@@ -207,18 +229,18 @@ function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span
|
|
|
207
229
|
|
|
208
230
|
export {
|
|
209
231
|
ContextMenu,
|
|
210
|
-
|
|
232
|
+
ContextMenuTrigger,
|
|
211
233
|
ContextMenuContent,
|
|
212
|
-
ContextMenuGroup,
|
|
213
234
|
ContextMenuItem,
|
|
214
|
-
|
|
215
|
-
ContextMenuPortal,
|
|
216
|
-
ContextMenuRadioGroup,
|
|
235
|
+
ContextMenuCheckboxItem,
|
|
217
236
|
ContextMenuRadioItem,
|
|
237
|
+
ContextMenuLabel,
|
|
218
238
|
ContextMenuSeparator,
|
|
219
239
|
ContextMenuShortcut,
|
|
240
|
+
ContextMenuGroup,
|
|
241
|
+
ContextMenuPortal,
|
|
220
242
|
ContextMenuSub,
|
|
221
243
|
ContextMenuSubContent,
|
|
222
244
|
ContextMenuSubTrigger,
|
|
223
|
-
|
|
245
|
+
ContextMenuRadioGroup,
|
|
224
246
|
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { Calendar as CalendarIcon } from "lucide-react";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Button } from "@/components/ui/button";
|
|
6
|
-
import { Calendar } from "@/components/ui/calendar";
|
|
7
|
-
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
6
|
+
import { Calendar } from "@/components/ui/calendar.client";
|
|
7
|
+
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover.client";
|
|
8
8
|
import { cn } from "@/lib/utils/cn";
|
|
9
9
|
|
|
10
10
|
export type DatePickerProps = Omit<React.ComponentProps<typeof Button>, "onSelect" | "disabled"> & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
4
3
|
import { XIcon } from "lucide-react";
|
|
4
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
5
5
|
import type * as React from "react";
|
|
6
|
-
|
|
6
|
+
import { Button } from "@/components/ui/button";
|
|
7
7
|
import { cn } from "@/lib/utils/cn";
|
|
8
8
|
|
|
9
9
|
function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {
|
|
@@ -30,7 +30,7 @@ function DialogOverlay({
|
|
|
30
30
|
<DialogPrimitive.Overlay
|
|
31
31
|
data-slot="dialog-overlay"
|
|
32
32
|
className={cn(
|
|
33
|
-
"data-[state=
|
|
33
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 data-[state=closed]:animate-out data-[state=open]:animate-in supports-backdrop-filter:backdrop-blur-xs",
|
|
34
34
|
className,
|
|
35
35
|
)}
|
|
36
36
|
{...props}
|
|
@@ -41,24 +41,31 @@ function DialogOverlay({
|
|
|
41
41
|
function DialogContent({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
|
+
showCloseButton = true,
|
|
44
45
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof DialogPrimitive.Content>
|
|
46
|
+
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
47
|
+
showCloseButton?: boolean;
|
|
48
|
+
}) {
|
|
46
49
|
return (
|
|
47
|
-
<DialogPortal
|
|
50
|
+
<DialogPortal>
|
|
48
51
|
<DialogOverlay />
|
|
49
52
|
<DialogPrimitive.Content
|
|
50
53
|
data-slot="dialog-content"
|
|
51
54
|
className={cn(
|
|
52
|
-
"
|
|
55
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm outline-none ring-1 ring-foreground/10 duration-100 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-sm",
|
|
53
56
|
className,
|
|
54
57
|
)}
|
|
55
58
|
{...props}
|
|
56
59
|
>
|
|
57
60
|
{children}
|
|
58
|
-
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
{showCloseButton && (
|
|
62
|
+
<DialogPrimitive.Close data-slot="dialog-close" asChild>
|
|
63
|
+
<Button variant="ghost" className="absolute top-2 right-2" size="icon-sm">
|
|
64
|
+
<XIcon />
|
|
65
|
+
<span className="sr-only">Close</span>
|
|
66
|
+
</Button>
|
|
67
|
+
</DialogPrimitive.Close>
|
|
68
|
+
)}
|
|
62
69
|
</DialogPrimitive.Content>
|
|
63
70
|
</DialogPortal>
|
|
64
71
|
);
|
|
@@ -66,21 +73,34 @@ function DialogContent({
|
|
|
66
73
|
|
|
67
74
|
function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
68
75
|
return (
|
|
69
|
-
<div
|
|
70
|
-
data-slot="dialog-header"
|
|
71
|
-
className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
|
|
72
|
-
{...props}
|
|
73
|
-
/>
|
|
76
|
+
<div data-slot="dialog-header" className={cn("flex flex-col gap-2", className)} {...props} />
|
|
74
77
|
);
|
|
75
78
|
}
|
|
76
79
|
|
|
77
|
-
function DialogFooter({
|
|
80
|
+
function DialogFooter({
|
|
81
|
+
className,
|
|
82
|
+
showCloseButton = false,
|
|
83
|
+
children,
|
|
84
|
+
...props
|
|
85
|
+
}: React.ComponentProps<"div"> & {
|
|
86
|
+
showCloseButton?: boolean;
|
|
87
|
+
}) {
|
|
78
88
|
return (
|
|
79
89
|
<div
|
|
80
90
|
data-slot="dialog-footer"
|
|
81
|
-
className={cn(
|
|
91
|
+
className={cn(
|
|
92
|
+
"-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",
|
|
93
|
+
className,
|
|
94
|
+
)}
|
|
82
95
|
{...props}
|
|
83
|
-
|
|
96
|
+
>
|
|
97
|
+
{children}
|
|
98
|
+
{showCloseButton && (
|
|
99
|
+
<DialogPrimitive.Close asChild>
|
|
100
|
+
<Button variant="outline">Close</Button>
|
|
101
|
+
</DialogPrimitive.Close>
|
|
102
|
+
)}
|
|
103
|
+
</div>
|
|
84
104
|
);
|
|
85
105
|
}
|
|
86
106
|
|
|
@@ -88,7 +108,7 @@ function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog
|
|
|
88
108
|
return (
|
|
89
109
|
<DialogPrimitive.Title
|
|
90
110
|
data-slot="dialog-title"
|
|
91
|
-
className={cn("
|
|
111
|
+
className={cn("font-medium text-base leading-none", className)}
|
|
92
112
|
{...props}
|
|
93
113
|
/>
|
|
94
114
|
);
|
|
@@ -101,7 +121,10 @@ function DialogDescription({
|
|
|
101
121
|
return (
|
|
102
122
|
<DialogPrimitive.Description
|
|
103
123
|
data-slot="dialog-description"
|
|
104
|
-
className={cn(
|
|
124
|
+
className={cn(
|
|
125
|
+
"text-muted-foreground text-sm *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
|
|
126
|
+
className,
|
|
127
|
+
)}
|
|
105
128
|
{...props}
|
|
106
129
|
/>
|
|
107
130
|
);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
5
|
-
|
|
6
5
|
import { cn } from "@/lib/utils/cn";
|
|
7
6
|
|
|
8
7
|
function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {
|
|
@@ -29,7 +28,7 @@ function DrawerOverlay({
|
|
|
29
28
|
<DrawerPrimitive.Overlay
|
|
30
29
|
data-slot="drawer-overlay"
|
|
31
30
|
className={cn(
|
|
32
|
-
"data-[state=
|
|
31
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/10 data-[state=closed]:animate-out data-[state=open]:animate-in supports-backdrop-filter:backdrop-blur-xs",
|
|
33
32
|
className,
|
|
34
33
|
)}
|
|
35
34
|
{...props}
|
|
@@ -48,16 +47,12 @@ function DrawerContent({
|
|
|
48
47
|
<DrawerPrimitive.Content
|
|
49
48
|
data-slot="drawer-content"
|
|
50
49
|
className={cn(
|
|
51
|
-
"group/drawer-content
|
|
52
|
-
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg",
|
|
53
|
-
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg",
|
|
54
|
-
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
55
|
-
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
50
|
+
"group/drawer-content fixed z-50 flex h-auto flex-col bg-background text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
56
51
|
className,
|
|
57
52
|
)}
|
|
58
53
|
{...props}
|
|
59
54
|
>
|
|
60
|
-
<div className="
|
|
55
|
+
<div className="mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />
|
|
61
56
|
{children}
|
|
62
57
|
</DrawerPrimitive.Content>
|
|
63
58
|
</DrawerPortal>
|
|
@@ -68,7 +63,10 @@ function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
|
68
63
|
return (
|
|
69
64
|
<div
|
|
70
65
|
data-slot="drawer-header"
|
|
71
|
-
className={cn(
|
|
66
|
+
className={cn(
|
|
67
|
+
"flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left",
|
|
68
|
+
className,
|
|
69
|
+
)}
|
|
72
70
|
{...props}
|
|
73
71
|
/>
|
|
74
72
|
);
|
|
@@ -88,7 +86,7 @@ function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer
|
|
|
88
86
|
return (
|
|
89
87
|
<DrawerPrimitive.Title
|
|
90
88
|
data-slot="drawer-title"
|
|
91
|
-
className={cn("text-
|
|
89
|
+
className={cn("font-medium text-base text-foreground", className)}
|
|
92
90
|
{...props}
|
|
93
91
|
/>
|
|
94
92
|
);
|
|
@@ -109,13 +107,13 @@ function DrawerDescription({
|
|
|
109
107
|
|
|
110
108
|
export {
|
|
111
109
|
Drawer,
|
|
110
|
+
DrawerPortal,
|
|
111
|
+
DrawerOverlay,
|
|
112
|
+
DrawerTrigger,
|
|
112
113
|
DrawerClose,
|
|
113
114
|
DrawerContent,
|
|
114
|
-
DrawerDescription,
|
|
115
|
-
DrawerFooter,
|
|
116
115
|
DrawerHeader,
|
|
117
|
-
|
|
118
|
-
DrawerPortal,
|
|
116
|
+
DrawerFooter,
|
|
119
117
|
DrawerTitle,
|
|
120
|
-
|
|
118
|
+
DrawerDescription,
|
|
121
119
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import { CheckIcon, ChevronRightIcon } from "lucide-react";
|
|
4
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
5
5
|
import type * as React from "react";
|
|
6
|
-
|
|
7
6
|
import { cn } from "@/lib/utils/cn";
|
|
8
7
|
|
|
9
8
|
function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
|
|
@@ -24,6 +23,7 @@ function DropdownMenuTrigger({
|
|
|
24
23
|
|
|
25
24
|
function DropdownMenuContent({
|
|
26
25
|
className,
|
|
26
|
+
align = "start",
|
|
27
27
|
sideOffset = 4,
|
|
28
28
|
...props
|
|
29
29
|
}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {
|
|
@@ -32,8 +32,9 @@ function DropdownMenuContent({
|
|
|
32
32
|
<DropdownMenuPrimitive.Content
|
|
33
33
|
data-slot="dropdown-menu-content"
|
|
34
34
|
sideOffset={sideOffset}
|
|
35
|
+
align={align}
|
|
35
36
|
className={cn(
|
|
36
|
-
"
|
|
37
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:overflow-hidden",
|
|
37
38
|
className,
|
|
38
39
|
)}
|
|
39
40
|
{...props}
|
|
@@ -61,7 +62,7 @@ function DropdownMenuItem({
|
|
|
61
62
|
data-inset={inset}
|
|
62
63
|
data-variant={variant}
|
|
63
64
|
className={cn(
|
|
64
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-
|
|
65
|
+
"group/dropdown-menu-item relative flex cursor-default select-none items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-[variant=destructive]:text-destructive data-disabled:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive",
|
|
65
66
|
className,
|
|
66
67
|
)}
|
|
67
68
|
{...props}
|
|
@@ -73,21 +74,28 @@ function DropdownMenuCheckboxItem({
|
|
|
73
74
|
className,
|
|
74
75
|
children,
|
|
75
76
|
checked,
|
|
77
|
+
inset,
|
|
76
78
|
...props
|
|
77
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>
|
|
79
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
|
|
80
|
+
inset?: boolean;
|
|
81
|
+
}) {
|
|
78
82
|
return (
|
|
79
83
|
<DropdownMenuPrimitive.CheckboxItem
|
|
80
84
|
data-slot="dropdown-menu-checkbox-item"
|
|
85
|
+
data-inset={inset}
|
|
81
86
|
className={cn(
|
|
82
|
-
"
|
|
87
|
+
"relative flex cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
83
88
|
className,
|
|
84
89
|
)}
|
|
85
90
|
checked={checked}
|
|
86
91
|
{...props}
|
|
87
92
|
>
|
|
88
|
-
<span
|
|
93
|
+
<span
|
|
94
|
+
className="pointer-events-none absolute right-2 flex items-center justify-center"
|
|
95
|
+
data-slot="dropdown-menu-checkbox-item-indicator"
|
|
96
|
+
>
|
|
89
97
|
<DropdownMenuPrimitive.ItemIndicator>
|
|
90
|
-
<CheckIcon
|
|
98
|
+
<CheckIcon />
|
|
91
99
|
</DropdownMenuPrimitive.ItemIndicator>
|
|
92
100
|
</span>
|
|
93
101
|
{children}
|
|
@@ -104,20 +112,27 @@ function DropdownMenuRadioGroup({
|
|
|
104
112
|
function DropdownMenuRadioItem({
|
|
105
113
|
className,
|
|
106
114
|
children,
|
|
115
|
+
inset,
|
|
107
116
|
...props
|
|
108
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>
|
|
117
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
|
|
118
|
+
inset?: boolean;
|
|
119
|
+
}) {
|
|
109
120
|
return (
|
|
110
121
|
<DropdownMenuPrimitive.RadioItem
|
|
111
122
|
data-slot="dropdown-menu-radio-item"
|
|
123
|
+
data-inset={inset}
|
|
112
124
|
className={cn(
|
|
113
|
-
"
|
|
125
|
+
"relative flex cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
114
126
|
className,
|
|
115
127
|
)}
|
|
116
128
|
{...props}
|
|
117
129
|
>
|
|
118
|
-
<span
|
|
130
|
+
<span
|
|
131
|
+
className="pointer-events-none absolute right-2 flex items-center justify-center"
|
|
132
|
+
data-slot="dropdown-menu-radio-item-indicator"
|
|
133
|
+
>
|
|
119
134
|
<DropdownMenuPrimitive.ItemIndicator>
|
|
120
|
-
<
|
|
135
|
+
<CheckIcon />
|
|
121
136
|
</DropdownMenuPrimitive.ItemIndicator>
|
|
122
137
|
</span>
|
|
123
138
|
{children}
|
|
@@ -136,7 +151,10 @@ function DropdownMenuLabel({
|
|
|
136
151
|
<DropdownMenuPrimitive.Label
|
|
137
152
|
data-slot="dropdown-menu-label"
|
|
138
153
|
data-inset={inset}
|
|
139
|
-
className={cn(
|
|
154
|
+
className={cn(
|
|
155
|
+
"px-1.5 py-1 font-medium text-muted-foreground text-xs data-inset:pl-7",
|
|
156
|
+
className,
|
|
157
|
+
)}
|
|
140
158
|
{...props}
|
|
141
159
|
/>
|
|
142
160
|
);
|
|
@@ -149,7 +167,7 @@ function DropdownMenuSeparator({
|
|
|
149
167
|
return (
|
|
150
168
|
<DropdownMenuPrimitive.Separator
|
|
151
169
|
data-slot="dropdown-menu-separator"
|
|
152
|
-
className={cn("
|
|
170
|
+
className={cn("-mx-1 my-1 h-px bg-border", className)}
|
|
153
171
|
{...props}
|
|
154
172
|
/>
|
|
155
173
|
);
|
|
@@ -159,7 +177,10 @@ function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"spa
|
|
|
159
177
|
return (
|
|
160
178
|
<span
|
|
161
179
|
data-slot="dropdown-menu-shortcut"
|
|
162
|
-
className={cn(
|
|
180
|
+
className={cn(
|
|
181
|
+
"ml-auto text-muted-foreground text-xs tracking-widest group-focus/dropdown-menu-item:text-accent-foreground",
|
|
182
|
+
className,
|
|
183
|
+
)}
|
|
163
184
|
{...props}
|
|
164
185
|
/>
|
|
165
186
|
);
|
|
@@ -182,13 +203,13 @@ function DropdownMenuSubTrigger({
|
|
|
182
203
|
data-slot="dropdown-menu-sub-trigger"
|
|
183
204
|
data-inset={inset}
|
|
184
205
|
className={cn(
|
|
185
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground
|
|
206
|
+
"flex cursor-default select-none items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[state=open]:bg-accent data-inset:pl-7 data-[state=open]:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
186
207
|
className,
|
|
187
208
|
)}
|
|
188
209
|
{...props}
|
|
189
210
|
>
|
|
190
211
|
{children}
|
|
191
|
-
<ChevronRightIcon className="ml-auto
|
|
212
|
+
<ChevronRightIcon className="cn-rtl-flip ml-auto" />
|
|
192
213
|
</DropdownMenuPrimitive.SubTrigger>
|
|
193
214
|
);
|
|
194
215
|
}
|
|
@@ -201,7 +222,7 @@ function DropdownMenuSubContent({
|
|
|
201
222
|
<DropdownMenuPrimitive.SubContent
|
|
202
223
|
data-slot="dropdown-menu-sub-content"
|
|
203
224
|
className={cn(
|
|
204
|
-
"
|
|
225
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
205
226
|
className,
|
|
206
227
|
)}
|
|
207
228
|
{...props}
|
|
@@ -211,18 +232,18 @@ function DropdownMenuSubContent({
|
|
|
211
232
|
|
|
212
233
|
export {
|
|
213
234
|
DropdownMenu,
|
|
214
|
-
|
|
235
|
+
DropdownMenuPortal,
|
|
236
|
+
DropdownMenuTrigger,
|
|
215
237
|
DropdownMenuContent,
|
|
216
238
|
DropdownMenuGroup,
|
|
217
|
-
DropdownMenuItem,
|
|
218
239
|
DropdownMenuLabel,
|
|
219
|
-
|
|
240
|
+
DropdownMenuItem,
|
|
241
|
+
DropdownMenuCheckboxItem,
|
|
220
242
|
DropdownMenuRadioGroup,
|
|
221
243
|
DropdownMenuRadioItem,
|
|
222
244
|
DropdownMenuSeparator,
|
|
223
245
|
DropdownMenuShortcut,
|
|
224
246
|
DropdownMenuSub,
|
|
225
|
-
DropdownMenuSubContent,
|
|
226
247
|
DropdownMenuSubTrigger,
|
|
227
|
-
|
|
248
|
+
DropdownMenuSubContent,
|
|
228
249
|
};
|