@tulip-systems/core 0.5.15 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/server.d.mts +1 -1
- package/dist/auth/server.mjs +1 -1
- package/dist/components/client.d.mts +2 -4
- package/dist/components/client.mjs +2 -4
- package/dist/components/common/icons.d.mts +52 -52
- package/dist/components/common/icons.d.mts.map +1 -1
- package/dist/components/common/icons.mjs.map +1 -1
- package/dist/components/common/status.d.mts +3 -3
- package/dist/components/common/status.d.mts.map +1 -1
- package/dist/components/common/status.mjs.map +1 -1
- package/dist/components/editor/components/content.client.d.mts +2 -2
- package/dist/components/editor/components/content.client.d.mts.map +1 -1
- package/dist/components/editor/components/content.client.mjs.map +1 -1
- package/dist/components/editor/components/editor.client.d.mts +4 -4
- package/dist/components/editor/components/editor.client.d.mts.map +1 -1
- package/dist/components/editor/components/editor.client.mjs +2 -2
- package/dist/components/editor/components/editor.client.mjs.map +1 -1
- package/dist/components/editor/components/menu-nodes.client.mjs +2 -2
- package/dist/components/editor/components/menu-nodes.client.mjs.map +1 -1
- package/dist/components/editor/components/menu.client.d.mts +3 -3
- package/dist/components/editor/components/menu.client.d.mts.map +1 -1
- package/dist/components/editor/components/menu.client.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/extension.d.mts.map +1 -1
- package/dist/components/editor/extensions/file-handler/extension.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +1 -1
- package/dist/components/editor/extensions/file-handler/strategy.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
- package/dist/components/editor/extensions/image/extension.d.mts.map +1 -1
- package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
- package/dist/components/editor/extensions/skeleton/renderer.mjs +1 -1
- package/dist/components/editor/extensions/skeleton/renderer.mjs.map +1 -1
- package/dist/components/editor/lib/constants.d.mts +27 -27
- package/dist/components/editor/lib/constants.d.mts.map +1 -1
- package/dist/components/editor/lib/extensions.d.mts +0 -1
- package/dist/components/editor/lib/extensions.d.mts.map +1 -1
- package/dist/components/editor/lib/extensions.mjs +6 -8
- package/dist/components/editor/lib/extensions.mjs.map +1 -1
- package/dist/components/editor/lib/helpers.d.mts +0 -1
- package/dist/components/editor/lib/helpers.d.mts.map +1 -1
- package/dist/components/editor/lib/helpers.mjs.map +1 -1
- package/dist/components/editor/lib/types.d.mts +0 -1
- package/dist/components/editor/lib/types.d.mts.map +1 -1
- package/dist/components/editor/lib/variants.mjs.map +1 -1
- package/dist/components/emails/forget-password-email.mjs +1 -2
- package/dist/components/emails/forget-password-email.mjs.map +1 -1
- package/dist/components/header/back-button.client.d.mts +2 -2
- package/dist/components/header/back-button.client.d.mts.map +1 -1
- package/dist/components/header/back-button.client.mjs.map +1 -1
- package/dist/components/header/bottom-bar.client.d.mts +3 -3
- package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
- package/dist/components/header/bottom-bar.client.mjs.map +1 -1
- package/dist/components/header/breadcrumbs.client.d.mts +7 -7
- package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
- package/dist/components/header/breadcrumbs.client.mjs.map +1 -1
- package/dist/components/header/header.client.d.mts +2 -2
- package/dist/components/header/header.client.d.mts.map +1 -1
- package/dist/components/header/header.client.mjs.map +1 -1
- package/dist/components/header/indicator.client.mjs.map +1 -1
- package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
- package/dist/components/header/top-bar.client.d.mts +4 -4
- package/dist/components/header/top-bar.client.d.mts.map +1 -1
- package/dist/components/header/top-bar.client.mjs.map +1 -1
- package/dist/components/layouts/admin-content.client.d.mts +2 -2
- package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
- package/dist/components/layouts/admin-content.client.mjs.map +1 -1
- package/dist/components/layouts/admin-error-pages.d.mts +4 -4
- package/dist/components/layouts/admin-error-pages.d.mts.map +1 -1
- package/dist/components/layouts/admin-error-pages.mjs.map +1 -1
- package/dist/components/layouts/admin-layout.d.mts +2 -2
- package/dist/components/layouts/admin-layout.d.mts.map +1 -1
- package/dist/components/layouts/admin-layout.mjs.map +1 -1
- package/dist/components/layouts/admin-loading.d.mts +2 -2
- package/dist/components/layouts/admin-loading.d.mts.map +1 -1
- package/dist/components/layouts/admin-loading.mjs.map +1 -1
- package/dist/components/layouts/empty-page.d.mts +4 -4
- package/dist/components/layouts/empty-page.d.mts.map +1 -1
- package/dist/components/layouts/empty-page.mjs.map +1 -1
- package/dist/components/layouts/error-page.d.mts +9 -9
- package/dist/components/layouts/error-page.d.mts.map +1 -1
- package/dist/components/layouts/error-page.mjs.map +1 -1
- package/dist/components/layouts/error-sections.d.mts +5 -5
- package/dist/components/layouts/error-sections.d.mts.map +1 -1
- package/dist/components/layouts/error-sections.mjs.map +1 -1
- package/dist/components/layouts/list-layout.d.mts +2 -2
- package/dist/components/layouts/list-layout.d.mts.map +1 -1
- package/dist/components/layouts/list-layout.mjs.map +1 -1
- package/dist/components/layouts/providers.client.d.mts +2 -2
- package/dist/components/layouts/providers.client.d.mts.map +1 -1
- package/dist/components/layouts/providers.client.mjs +1 -1
- package/dist/components/layouts/providers.client.mjs.map +1 -1
- package/dist/components/layouts/root-error-pages.d.mts +2 -2
- package/dist/components/layouts/root-error-pages.d.mts.map +1 -1
- package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
- package/dist/components/layouts/root-layout.server.mjs.map +1 -1
- package/dist/components/layouts/root-loading.d.mts +2 -2
- package/dist/components/layouts/root-loading.d.mts.map +1 -1
- package/dist/components/layouts/tab-layout.d.mts +2 -2
- package/dist/components/layouts/tab-layout.d.mts.map +1 -1
- package/dist/components/layouts/tab-layout.mjs +3 -3
- package/dist/components/layouts/tab-layout.mjs.map +1 -1
- package/dist/components/lists/data-list.d.mts +5 -5
- package/dist/components/lists/data-list.d.mts.map +1 -1
- package/dist/components/lists/data-list.mjs.map +1 -1
- package/dist/components/lists/data-stack.d.mts +8 -8
- package/dist/components/lists/data-stack.d.mts.map +1 -1
- package/dist/components/lists/data-stack.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-header.client.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-skeleton.mjs.map +1 -1
- package/dist/components/ui/accordion.d.mts +5 -5
- package/dist/components/ui/accordion.d.mts.map +1 -1
- package/dist/components/ui/accordion.mjs +0 -1
- package/dist/components/ui/accordion.mjs.map +1 -1
- package/dist/components/ui/alert-dialog.d.mts +12 -12
- package/dist/components/ui/alert-dialog.d.mts.map +1 -1
- package/dist/components/ui/alert-dialog.mjs +0 -1
- package/dist/components/ui/alert-dialog.mjs.map +1 -1
- package/dist/components/ui/alert.d.mts +6 -6
- package/dist/components/ui/alert.d.mts.map +1 -1
- package/dist/components/ui/alert.mjs +0 -1
- package/dist/components/ui/alert.mjs.map +1 -1
- package/dist/components/ui/aspect-ratio.d.mts +2 -2
- package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
- package/dist/components/ui/avatar.client.d.mts +4 -4
- package/dist/components/ui/avatar.client.d.mts.map +1 -1
- package/dist/components/ui/avatar.client.mjs +0 -1
- package/dist/components/ui/avatar.client.mjs.map +1 -1
- package/dist/components/ui/badge.d.mts +4 -4
- package/dist/components/ui/badge.d.mts.map +1 -1
- package/dist/components/ui/badge.mjs +0 -1
- package/dist/components/ui/badge.mjs.map +1 -1
- package/dist/components/ui/breadcrumb.d.mts +8 -8
- package/dist/components/ui/breadcrumb.d.mts.map +1 -1
- package/dist/components/ui/breadcrumb.mjs +1 -2
- package/dist/components/ui/breadcrumb.mjs.map +1 -1
- package/dist/components/ui/button.d.mts +5 -5
- package/dist/components/ui/button.d.mts.map +1 -1
- package/dist/components/ui/button.mjs +0 -1
- package/dist/components/ui/button.mjs.map +1 -1
- package/dist/components/ui/calendar.d.mts +3 -3
- package/dist/components/ui/calendar.d.mts.map +1 -1
- package/dist/components/ui/calendar.mjs +12 -12
- package/dist/components/ui/calendar.mjs.map +1 -1
- package/dist/components/ui/card.d.mts +7 -7
- package/dist/components/ui/card.d.mts.map +1 -1
- package/dist/components/ui/card.mjs +0 -1
- package/dist/components/ui/card.mjs.map +1 -1
- package/dist/components/ui/carousel.d.mts +6 -6
- package/dist/components/ui/carousel.d.mts.map +1 -1
- package/dist/components/ui/carousel.mjs +4 -4
- package/dist/components/ui/carousel.mjs.map +1 -1
- package/dist/components/ui/chart.client.d.mts +5 -5
- package/dist/components/ui/chart.client.d.mts.map +1 -1
- package/dist/components/ui/chart.client.mjs +6 -6
- package/dist/components/ui/chart.client.mjs.map +1 -1
- package/dist/components/ui/checkbox.d.mts +2 -2
- package/dist/components/ui/checkbox.d.mts.map +1 -1
- package/dist/components/ui/checkbox.mjs +0 -1
- package/dist/components/ui/checkbox.mjs.map +1 -1
- package/dist/components/ui/collapsible.client.d.mts +4 -4
- package/dist/components/ui/collapsible.client.d.mts.map +1 -1
- package/dist/components/ui/color-picker.client.d.mts +2 -2
- package/dist/components/ui/color-picker.client.d.mts.map +1 -1
- package/dist/components/ui/color-picker.client.mjs +6 -5
- package/dist/components/ui/color-picker.client.mjs.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.d.mts +2 -3
- package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.mjs +3 -3
- package/dist/components/ui/combobox-dropdown.client.mjs.map +1 -1
- package/dist/components/ui/combobox.client.d.mts +2 -2
- package/dist/components/ui/combobox.client.d.mts.map +1 -1
- package/dist/components/ui/combobox.client.mjs +2 -2
- package/dist/components/ui/combobox.client.mjs.map +1 -1
- package/dist/components/ui/command.d.mts +10 -10
- package/dist/components/ui/command.d.mts.map +1 -1
- package/dist/components/ui/command.mjs +0 -1
- package/dist/components/ui/command.mjs.map +1 -1
- package/dist/components/ui/context-menu.d.mts +16 -16
- package/dist/components/ui/context-menu.d.mts.map +1 -1
- package/dist/components/ui/context-menu.mjs +0 -1
- package/dist/components/ui/context-menu.mjs.map +1 -1
- package/dist/components/ui/date-picker.client.d.mts +2 -2
- package/dist/components/ui/date-picker.client.d.mts.map +1 -1
- package/dist/components/ui/date-picker.client.mjs +3 -3
- package/dist/components/ui/date-picker.client.mjs.map +1 -1
- package/dist/components/ui/dialog.client.d.mts +11 -11
- package/dist/components/ui/dialog.client.d.mts.map +1 -1
- package/dist/components/ui/dialog.client.mjs +0 -1
- package/dist/components/ui/dialog.client.mjs.map +1 -1
- package/dist/components/ui/drawer.client.d.mts +11 -11
- package/dist/components/ui/drawer.client.d.mts.map +1 -1
- package/dist/components/ui/drawer.client.mjs +0 -1
- package/dist/components/ui/drawer.client.mjs.map +1 -1
- package/dist/components/ui/dropdown-menu.d.mts +16 -16
- package/dist/components/ui/dropdown-menu.d.mts.map +1 -1
- package/dist/components/ui/dropdown-menu.mjs +0 -1
- package/dist/components/ui/dropdown-menu.mjs.map +1 -1
- package/dist/components/ui/form.client.d.mts +7 -7
- package/dist/components/ui/form.client.d.mts.map +1 -1
- package/dist/components/ui/form.client.mjs.map +1 -1
- package/dist/components/ui/hover-card.client.d.mts +4 -4
- package/dist/components/ui/hover-card.client.d.mts.map +1 -1
- package/dist/components/ui/hover-card.client.mjs +0 -1
- package/dist/components/ui/hover-card.client.mjs.map +1 -1
- package/dist/components/ui/input-date-time.d.mts +23 -0
- package/dist/components/ui/input-date-time.d.mts.map +1 -0
- package/dist/components/ui/input-date-time.mjs +34 -0
- package/dist/components/ui/input-date-time.mjs.map +1 -0
- package/dist/components/ui/input-date.d.mts +14 -0
- package/dist/components/ui/input-date.d.mts.map +1 -0
- package/dist/components/ui/input-date.mjs +16 -0
- package/dist/components/ui/input-date.mjs.map +1 -0
- package/dist/components/ui/input-recipient.d.mts +2 -2
- package/dist/components/ui/input-recipient.d.mts.map +1 -1
- package/dist/components/ui/input-recipient.mjs +2 -2
- package/dist/components/ui/input-recipient.mjs.map +1 -1
- package/dist/components/ui/input-time.d.mts +14 -0
- package/dist/components/ui/input-time.d.mts.map +1 -0
- package/dist/components/ui/input-time.mjs +16 -0
- package/dist/components/ui/input-time.mjs.map +1 -0
- package/dist/components/ui/input.d.mts +2 -2
- package/dist/components/ui/input.d.mts.map +1 -1
- package/dist/components/ui/input.mjs +0 -1
- package/dist/components/ui/input.mjs.map +1 -1
- package/dist/components/ui/label.d.mts +2 -2
- package/dist/components/ui/label.d.mts.map +1 -1
- package/dist/components/ui/label.mjs +0 -1
- package/dist/components/ui/label.mjs.map +1 -1
- 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 +0 -1
- package/dist/components/ui/navigation-menu.mjs.map +1 -1
- package/dist/components/ui/pagination.d.mts +8 -8
- package/dist/components/ui/pagination.d.mts.map +1 -1
- package/dist/components/ui/pagination.mjs +0 -1
- package/dist/components/ui/pagination.mjs.map +1 -1
- package/dist/components/ui/popover.d.mts +5 -5
- package/dist/components/ui/popover.d.mts.map +1 -1
- package/dist/components/ui/popover.mjs +0 -1
- package/dist/components/ui/popover.mjs.map +1 -1
- package/dist/components/ui/progress.client.d.mts +2 -2
- package/dist/components/ui/progress.client.d.mts.map +1 -1
- package/dist/components/ui/progress.client.mjs +0 -1
- package/dist/components/ui/progress.client.mjs.map +1 -1
- package/dist/components/ui/radio-group.d.mts +3 -3
- package/dist/components/ui/radio-group.d.mts.map +1 -1
- package/dist/components/ui/radio-group.mjs +0 -1
- package/dist/components/ui/radio-group.mjs.map +1 -1
- package/dist/components/ui/resizable.client.d.mts +4 -4
- package/dist/components/ui/resizable.client.d.mts.map +1 -1
- package/dist/components/ui/resizable.client.mjs +0 -1
- package/dist/components/ui/resizable.client.mjs.map +1 -1
- package/dist/components/ui/scroll-area.d.mts +3 -3
- package/dist/components/ui/scroll-area.d.mts.map +1 -1
- package/dist/components/ui/scroll-area.mjs +0 -1
- package/dist/components/ui/scroll-area.mjs.map +1 -1
- package/dist/components/ui/select.client.d.mts +11 -11
- package/dist/components/ui/select.client.d.mts.map +1 -1
- package/dist/components/ui/select.client.mjs +0 -1
- package/dist/components/ui/select.client.mjs.map +1 -1
- package/dist/components/ui/separator.d.mts +2 -2
- package/dist/components/ui/separator.d.mts.map +1 -1
- package/dist/components/ui/separator.mjs +0 -1
- package/dist/components/ui/separator.mjs.map +1 -1
- package/dist/components/ui/sheet.client.d.mts +9 -9
- package/dist/components/ui/sheet.client.d.mts.map +1 -1
- package/dist/components/ui/sheet.client.mjs +0 -1
- package/dist/components/ui/sheet.client.mjs.map +1 -1
- package/dist/components/ui/sidebar.client.d.mts +24 -24
- package/dist/components/ui/sidebar.client.d.mts.map +1 -1
- package/dist/components/ui/sidebar.client.mjs +2 -2
- package/dist/components/ui/sidebar.client.mjs.map +1 -1
- package/dist/components/ui/skeleton.d.mts +2 -2
- package/dist/components/ui/skeleton.d.mts.map +1 -1
- package/dist/components/ui/slider.d.mts +2 -2
- package/dist/components/ui/slider.d.mts.map +1 -1
- package/dist/components/ui/sonner.client.d.mts +2 -2
- package/dist/components/ui/sonner.client.d.mts.map +1 -1
- package/dist/components/ui/sonner.client.mjs.map +1 -1
- package/dist/components/ui/switch.d.mts +2 -2
- package/dist/components/ui/switch.d.mts.map +1 -1
- package/dist/components/ui/switch.mjs +0 -1
- package/dist/components/ui/switch.mjs.map +1 -1
- package/dist/components/ui/tabs.d.mts +5 -5
- package/dist/components/ui/tabs.d.mts.map +1 -1
- package/dist/components/ui/tabs.mjs +0 -1
- package/dist/components/ui/tabs.mjs.map +1 -1
- package/dist/components/ui/textarea.d.mts +2 -2
- package/dist/components/ui/textarea.d.mts.map +1 -1
- package/dist/components/ui/textarea.mjs +0 -1
- package/dist/components/ui/textarea.mjs.map +1 -1
- package/dist/components/ui/toggle-group.client.d.mts +3 -3
- package/dist/components/ui/toggle-group.client.d.mts.map +1 -1
- package/dist/components/ui/toggle-group.client.mjs.map +1 -1
- package/dist/components/ui/toggle.d.mts +4 -4
- package/dist/components/ui/toggle.d.mts.map +1 -1
- package/dist/components/ui/toggle.mjs +0 -1
- package/dist/components/ui/toggle.mjs.map +1 -1
- package/dist/components/ui/tooltip.client.d.mts +5 -5
- package/dist/components/ui/tooltip.client.d.mts.map +1 -1
- package/dist/components/ui/tooltip.client.mjs +0 -1
- package/dist/components/ui/tooltip.client.mjs.map +1 -1
- package/dist/components.d.mts +4 -1
- package/dist/components.mjs +4 -1
- package/dist/data-tables/client.d.mts +4 -4
- package/dist/data-tables/client.mjs +4 -4
- package/dist/inline-edit/client.d.mts +5 -3
- package/dist/inline-edit/client.mjs +5 -3
- package/dist/lib/config/constants.d.mts.map +1 -1
- package/dist/lib/config/constants.mjs.map +1 -1
- package/dist/lib/hooks/use-action.d.mts +2 -3
- package/dist/lib/hooks/use-action.d.mts.map +1 -1
- package/dist/lib/hooks/use-action.mjs.map +1 -1
- package/dist/lib/hooks/use-indicator.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
- package/dist/lib/hooks/use-indicator.mjs +4 -4
- package/dist/lib/hooks/use-indicator.mjs.map +1 -1
- package/dist/lib/hooks/use-mobile.client.d.mts.map +1 -1
- package/dist/lib/types/config.d.mts.map +1 -1
- package/dist/lib/utils/array-move.d.mts.map +1 -1
- package/dist/lib/utils/cn.d.mts.map +1 -1
- package/dist/lib/utils/cn.mjs.map +1 -1
- package/dist/lib/utils/fonts.d.mts.map +1 -1
- package/dist/lib/utils/format.d.mts.map +1 -1
- package/dist/lib/utils/manifest.d.mts.map +1 -1
- package/dist/lib/utils/manifest.mjs.map +1 -1
- package/dist/lib/utils/url.d.mts.map +1 -1
- package/dist/lib/utils/url.mjs +1 -1
- package/dist/lib/utils/url.mjs.map +1 -1
- package/dist/modules/auth/components/allowed.client.d.mts +2 -2
- package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
- package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.mjs.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.mts +2 -2
- package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
- package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/forget-password-page.client.mjs +2 -2
- package/dist/modules/auth/components/forget-password-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
- package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
- package/dist/modules/auth/components/guard-first-user.server.mjs.map +1 -1
- package/dist/modules/auth/components/guard.server.d.mts +2 -2
- package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
- package/dist/modules/auth/components/guard.server.mjs.map +1 -1
- package/dist/modules/auth/components/login-page.client.d.mts +2 -2
- package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/login-page.client.mjs +1 -1
- package/dist/modules/auth/components/login-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.mjs +2 -2
- package/dist/modules/auth/components/reset-password-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/update-password-command.d.mts +2 -2
- package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
- package/dist/modules/auth/components/update-password-command.mjs +0 -1
- package/dist/modules/auth/components/update-password-command.mjs.map +1 -1
- package/dist/modules/auth/db/schema.d.mts +73 -73
- package/dist/modules/auth/db/schema.d.mts.map +1 -1
- package/dist/modules/auth/db/schema.mjs +1 -1
- package/dist/modules/auth/db/schema.mjs.map +1 -1
- package/dist/modules/auth/handler/create-client.client.d.mts +304 -284
- package/dist/modules/auth/handler/create-client.client.d.mts.map +1 -1
- package/dist/modules/auth/handler/create-client.client.mjs.map +1 -1
- package/dist/modules/auth/handler/init.d.mts +206 -220
- package/dist/modules/auth/handler/init.d.mts.map +1 -1
- package/dist/modules/auth/handler/init.mjs +2 -2
- package/dist/modules/auth/handler/init.mjs.map +1 -1
- package/dist/modules/auth/handler/proxy.server.d.mts +0 -1
- package/dist/modules/auth/handler/proxy.server.d.mts.map +1 -1
- package/dist/modules/auth/handler/proxy.server.mjs +0 -1
- package/dist/modules/auth/handler/proxy.server.mjs.map +1 -1
- package/dist/modules/auth/handler/route.server.d.mts +0 -1
- package/dist/modules/auth/handler/route.server.d.mts.map +1 -1
- package/dist/modules/auth/handler/route.server.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-auth-client.d.mts +4 -4
- package/dist/modules/auth/hooks/use-auth-client.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-auth-client.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.mjs +2 -2
- package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-session.d.mts +2 -2
- package/dist/modules/auth/hooks/use-session.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-session.mjs.map +1 -1
- package/dist/modules/auth/lib/helpers.server.d.mts.map +1 -1
- package/dist/modules/auth/lib/helpers.server.mjs +2 -2
- package/dist/modules/auth/lib/helpers.server.mjs.map +1 -1
- package/dist/modules/auth/lib/permissions.d.mts.map +1 -1
- package/dist/modules/auth/lib/validators.d.mts +2 -3
- package/dist/modules/auth/lib/validators.d.mts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/click-command.client.d.mts +2 -2
- package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/click-command.client.mjs +0 -1
- package/dist/modules/commands/components/click-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
- package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
- package/dist/modules/commands/components/command-trigger.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.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
- package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
- package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/empty-command.client.mjs +0 -1
- package/dist/modules/commands/components/empty-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
- package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/render-command.mjs.map +1 -1
- package/dist/modules/commands/hooks/context.client.mjs.map +1 -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 +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.mjs.map +1 -1
- package/dist/modules/commands/lib/definitions.d.mts +0 -1
- package/dist/modules/commands/lib/definitions.d.mts.map +1 -1
- package/dist/modules/commands/lib/factory.d.mts.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.mjs +5 -5
- package/dist/modules/commands/menus/context-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/data-table-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.mjs +0 -1
- package/dist/modules/commands/menus/inline-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.mjs.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.mjs.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.mjs.map +1 -1
- package/dist/modules/config/db/helpers.d.mts +5 -5
- package/dist/modules/config/db/helpers.d.mts.map +1 -1
- package/dist/modules/config/db/helpers.mjs.map +1 -1
- package/dist/modules/config/db/init.d.mts.map +1 -1
- package/dist/modules/config/db/init.mjs.map +1 -1
- package/dist/modules/config/db/types.d.mts.map +1 -1
- package/dist/modules/config/lib/config.d.mts.map +1 -1
- package/dist/modules/config/lib/context.d.mts.map +1 -1
- package/dist/modules/config/lib/context.mjs.map +1 -1
- package/dist/modules/config/paths/helpers.d.mts +0 -1
- package/dist/modules/config/paths/helpers.d.mts.map +1 -1
- package/dist/modules/config/paths/helpers.mjs.map +1 -1
- package/dist/modules/config/paths/types.d.mts +0 -1
- package/dist/modules/config/paths/types.d.mts.map +1 -1
- package/dist/modules/config/providers/email.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
- package/dist/modules/data-tables/components/cell/common.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/cell/index.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/select.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/column-header.d.mts +2 -2
- package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/column-header.mjs.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/footer.mjs.map +1 -1
- package/dist/modules/data-tables/components/header.d.mts +4 -4
- package/dist/modules/data-tables/components/header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/components/layout.d.mts +2 -2
- package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
- package/dist/modules/data-tables/components/layout.mjs.map +1 -1
- package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.mjs +4 -4
- package/dist/modules/data-tables/components/skeleton.mjs.map +1 -1
- package/dist/modules/data-tables/components/table.d.mts +7 -7
- package/dist/modules/data-tables/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/components/table.mjs +0 -1
- package/dist/modules/data-tables/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
- package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
- package/dist/modules/data-tables/components/toolbar.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/hooks/use-context.client.d.mts.map +1 -1
- package/dist/modules/data-tables/hooks/use-context.client.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-selection.client.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-table.client.d.mts.map +1 -1
- package/dist/modules/data-tables/hooks/use-table.client.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/cursor.d.mts +0 -1
- package/dist/modules/data-tables/lib/converters/cursor.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/cursor.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/dto.d.mts +0 -1
- package/dist/modules/data-tables/lib/converters/dto.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/dto.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/filter.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/search.d.mts +1 -1
- package/dist/modules/data-tables/lib/converters/search.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/search.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.d.mts +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/config.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/config.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/helpers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/helpers.mjs +4 -4
- package/dist/modules/data-tables/lib/filters/helpers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/parsers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.mjs +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/helpers/create-column.mjs.map +1 -1
- package/dist/modules/data-tables/lib/search-params.d.mts +6 -6
- package/dist/modules/data-tables/lib/search-params.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/types.d.mts +0 -1
- package/dist/modules/data-tables/lib/types.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/validators.d.mts +0 -1
- package/dist/modules/data-tables/lib/validators.d.mts.map +1 -1
- package/dist/modules/data-tables/server/get-data.server.d.mts +1 -1
- package/dist/modules/data-tables/server/get-data.server.d.mts.map +1 -1
- package/dist/modules/data-tables/server/get-data.server.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/helpers/sorting.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/components.mjs +1 -1
- package/dist/modules/data-tables/strategies/infinite/components.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/strategy.d.mts.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/strategy.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/components.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/strategy.d.mts.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/strategy.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/body.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/row.mjs +0 -1
- package/dist/modules/data-tables/tables/data-table/components/row.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/body.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs +0 -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.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts.map +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.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs +0 -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/header.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.mjs +3 -3
- package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.mjs +3 -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 +21 -0
- package/dist/modules/inline-edit/components/date-time.client.d.mts.map +1 -0
- package/dist/modules/inline-edit/components/date-time.client.mjs +33 -0
- package/dist/modules/inline-edit/components/date-time.client.mjs.map +1 -0
- package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.mjs +2 -2
- package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
- package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input.client.mjs +1 -1
- package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
- package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/select.client.mjs +3 -3
- package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.mjs +3 -3
- package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
- package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/hooks/context.client.mjs +1 -1
- package/dist/modules/inline-edit/hooks/context.client.mjs.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +15 -2
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs +3 -3
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/validators.d.mts +0 -1
- package/dist/modules/inline-edit/lib/validators.d.mts.map +1 -1
- package/dist/modules/inline-edit/lib/validators.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/variants.d.mts +3 -3
- package/dist/modules/inline-edit/lib/variants.d.mts.map +1 -1
- package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
- package/dist/modules/router/handler/caller.client.d.mts +0 -1
- package/dist/modules/router/handler/caller.client.d.mts.map +1 -1
- package/dist/modules/router/handler/caller.client.mjs.map +1 -1
- package/dist/modules/router/handler/caller.server.d.mts.map +1 -1
- package/dist/modules/router/handler/context.server.d.mts.map +1 -1
- package/dist/modules/router/handler/context.server.mjs.map +1 -1
- package/dist/modules/router/handler/init.server.d.mts +6 -6
- package/dist/modules/router/handler/init.server.d.mts.map +1 -1
- package/dist/modules/router/handler/init.server.mjs.map +1 -1
- package/dist/modules/router/handler/register.server.d.mts.map +1 -1
- package/dist/modules/router/handler/register.server.mjs.map +1 -1
- package/dist/modules/router/handler/route.server.d.mts +0 -1
- package/dist/modules/router/handler/route.server.d.mts.map +1 -1
- package/dist/modules/router/handler/route.server.mjs.map +1 -1
- package/dist/modules/router/lib/query-client.d.mts +0 -1
- package/dist/modules/router/lib/query-client.d.mts.map +1 -1
- package/dist/modules/router/lib/query-client.mjs.map +1 -1
- package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
- package/dist/modules/router/lib/validators.d.mts +0 -1
- package/dist/modules/router/lib/validators.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
- package/dist/modules/storage/components/dropzone-context.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone-context.client.mjs.map +1 -1
- package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
- package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone.client.mjs.map +1 -1
- package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
- package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
- package/dist/modules/storage/components/image-grid.client.mjs +2 -0
- package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.d.mts +0 -1
- 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 -2
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.mjs +4 -4
- package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
- package/dist/modules/storage/config/filters.d.mts.map +1 -1
- package/dist/modules/storage/config/filters.mjs.map +1 -1
- package/dist/modules/storage/lib/constants.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-client.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-client.server.mjs.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.mjs.map +1 -1
- package/dist/modules/storage/lib/helpers.d.mts +0 -1
- package/dist/modules/storage/lib/helpers.d.mts.map +1 -1
- package/dist/modules/storage/lib/helpers.mjs.map +1 -1
- package/dist/modules/storage/lib/proxy.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/proxy.server.mjs.map +1 -1
- package/dist/modules/storage/lib/router.server.d.mts +1874 -1874
- package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/router.server.mjs.map +1 -1
- package/dist/modules/storage/lib/schema.d.mts +92 -92
- package/dist/modules/storage/lib/schema.d.mts.map +1 -1
- package/dist/modules/storage/lib/schema.mjs +1 -1
- package/dist/modules/storage/lib/schema.mjs.map +1 -1
- package/dist/modules/storage/lib/service.server.d.mts +12 -12
- package/dist/modules/storage/lib/service.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/service.server.mjs +1 -1
- package/dist/modules/storage/lib/service.server.mjs.map +1 -1
- package/dist/modules/storage/lib/validators.d.mts +9 -9
- package/dist/modules/storage/lib/validators.d.mts.map +1 -1
- package/dist/modules/storage/lib/validators.mjs.map +1 -1
- package/dist/storage/client.d.mts +1 -1
- package/package.json +89 -99
- package/src/components/common/icons.tsx +2 -2
- package/src/components/common/status.tsx +1 -1
- package/src/components/editor/components/content.client.tsx +1 -1
- package/src/components/editor/components/editor.client.tsx +6 -6
- package/src/components/editor/components/menu-nodes.client.tsx +9 -9
- package/src/components/editor/components/menu.client.tsx +5 -5
- package/src/components/editor/components/spinner.tsx +2 -8
- package/src/components/editor/extensions/file-handler/extension.ts +1 -1
- package/src/components/editor/extensions/file-handler/strategy.ts +4 -4
- package/src/components/editor/extensions/file-handler/utils.ts +4 -2
- package/src/components/editor/extensions/image/extension.ts +4 -1
- package/src/components/editor/extensions/skeleton/renderer.tsx +4 -3
- package/src/components/editor/lib/extensions.ts +23 -26
- package/src/components/editor/lib/helpers.ts +1 -1
- package/src/components/editor/lib/utils.ts +1 -33
- package/src/components/editor/lib/variants.ts +1 -1
- package/src/components/emails/forget-password-email.tsx +1 -1
- package/src/components/entry.client.ts +1 -3
- package/src/components/entry.ts +3 -0
- package/src/components/header/back-button.client.tsx +1 -1
- package/src/components/header/bottom-bar.client.tsx +3 -3
- package/src/components/header/breadcrumbs.client.tsx +2 -2
- package/src/components/header/header.client.tsx +1 -1
- package/src/components/header/indicator.client.tsx +2 -2
- package/src/components/header/top-bar.client.tsx +3 -3
- package/src/components/layouts/admin-content.client.tsx +1 -1
- package/src/components/layouts/admin-error-pages.tsx +1 -1
- package/src/components/layouts/admin-layout.tsx +1 -1
- package/src/components/layouts/admin-loading.tsx +1 -1
- package/src/components/layouts/empty-page.tsx +1 -1
- package/src/components/layouts/error-page.tsx +2 -2
- package/src/components/layouts/error-sections.tsx +1 -1
- package/src/components/layouts/list-layout.tsx +1 -1
- package/src/components/layouts/providers.client.tsx +4 -4
- package/src/components/layouts/root-layout.server.tsx +3 -3
- package/src/components/layouts/tab-layout.tsx +3 -3
- 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 +13 -13
- package/src/components/navigation/admin-sidebar-paths.client.tsx +6 -6
- package/src/components/navigation/admin-sidebar-skeleton.tsx +1 -1
- package/src/components/navigation/admin-sidebar.client.tsx +5 -5
- package/src/components/ui/accordion.tsx +1 -2
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/alert.tsx +1 -1
- package/src/components/ui/avatar.client.tsx +1 -1
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/breadcrumb.tsx +4 -2
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/calendar.tsx +2 -3
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/carousel.tsx +2 -0
- package/src/components/ui/chart.client.tsx +12 -10
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/color-picker.client.tsx +4 -3
- package/src/components/ui/combobox-dropdown.client.tsx +2 -4
- package/src/components/ui/combobox.client.tsx +2 -2
- package/src/components/ui/command.tsx +1 -1
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/date-picker.client.tsx +2 -2
- package/src/components/ui/dialog.client.tsx +1 -1
- package/src/components/ui/drawer.client.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/form.client.tsx +4 -4
- package/src/components/ui/hover-card.client.tsx +1 -1
- package/src/components/ui/input-date-time.tsx +58 -0
- package/src/components/ui/input-date.tsx +20 -0
- package/src/components/ui/input-recipient.tsx +6 -3
- package/src/components/ui/input-time.tsx +20 -0
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/navigation-menu.tsx +1 -1
- package/src/components/ui/pagination.tsx +4 -2
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.client.tsx +1 -1
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/resizable.client.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.client.tsx +1 -1
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.client.tsx +1 -1
- package/src/components/ui/sidebar.client.tsx +5 -2
- package/src/components/ui/sonner.client.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle-group.client.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.client.tsx +1 -1
- package/src/lib/config/constants.ts +1 -1
- package/src/lib/hooks/use-action.ts +3 -3
- package/src/lib/types/config.ts +1 -1
- package/src/lib/utils/cn.ts +1 -1
- package/src/lib/utils/manifest.ts +3 -2
- package/src/lib/utils/time-picker.ts +2 -2
- package/src/lib/utils/url.ts +1 -1
- package/src/modules/auth/components/allowed.client.tsx +2 -2
- package/src/modules/auth/components/auth-layout.server.tsx +1 -1
- package/src/modules/auth/components/create-first-user-page.client.tsx +10 -11
- package/src/modules/auth/components/forget-password-page.client.tsx +5 -5
- package/src/modules/auth/components/guard-first-user.server.tsx +2 -5
- package/src/modules/auth/components/guard.server.tsx +3 -3
- package/src/modules/auth/components/login-page.client.tsx +5 -5
- package/src/modules/auth/components/reset-password-page.client.tsx +7 -7
- package/src/modules/auth/components/update-password-command.tsx +5 -5
- package/src/modules/auth/db/schema.ts +2 -2
- package/src/modules/auth/entry.server.ts +1 -1
- package/src/modules/auth/handler/create-client.client.ts +3 -3
- package/src/modules/auth/handler/init.ts +6 -6
- package/src/modules/auth/handler/proxy.server.ts +1 -2
- package/src/modules/auth/handler/route.server.ts +2 -2
- package/src/modules/auth/hooks/use-auth-client.tsx +3 -3
- package/src/modules/auth/hooks/use-permission.ts +1 -1
- package/src/modules/auth/hooks/use-session.ts +1 -2
- package/src/modules/auth/lib/helpers.server.ts +4 -4
- package/src/modules/commands/components/alert-dialog-command.client.tsx +8 -8
- package/src/modules/commands/components/click-command.client.tsx +3 -3
- package/src/modules/commands/components/command-trigger.client.tsx +1 -1
- package/src/modules/commands/components/dialog-command.client.tsx +3 -3
- package/src/modules/commands/components/dropdown-command.client.tsx +2 -2
- package/src/modules/commands/components/empty-command.client.tsx +1 -1
- package/src/modules/commands/components/form-dialog-command.client.tsx +5 -5
- package/src/modules/commands/components/render-command.tsx +2 -2
- package/src/modules/commands/hooks/context.client.tsx +1 -1
- package/src/modules/commands/hooks/use-command-menu.client.tsx +4 -4
- package/src/modules/commands/hooks/use-command-mutation.client.tsx +1 -1
- package/src/modules/commands/menus/context-menu.client.tsx +20 -19
- package/src/modules/commands/menus/data-table-menu.client.tsx +2 -2
- package/src/modules/commands/menus/dropdown-menu.client.tsx +6 -3
- package/src/modules/commands/menus/inline-menu.client.tsx +6 -2
- package/src/modules/commands/menus/responsive-menu.client.tsx +1 -1
- 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/config/db/helpers.ts +1 -1
- package/src/modules/config/db/init.ts +2 -2
- package/src/modules/config/lib/context.ts +5 -5
- package/src/modules/config/paths/helpers.ts +1 -1
- package/src/modules/config/paths/types.ts +4 -5
- package/src/modules/data-tables/components/cell/common.client.tsx +1 -1
- package/src/modules/data-tables/components/column-header.tsx +2 -2
- package/src/modules/data-tables/components/filters/combobox.client.tsx +3 -3
- package/src/modules/data-tables/components/filters/slider.client.tsx +5 -5
- package/src/modules/data-tables/components/footer.tsx +2 -2
- package/src/modules/data-tables/components/header.tsx +2 -2
- package/src/modules/data-tables/components/layout.tsx +1 -1
- package/src/modules/data-tables/components/skeleton.tsx +22 -29
- package/src/modules/data-tables/components/table.tsx +1 -1
- package/src/modules/data-tables/components/toolbar.tsx +1 -1
- package/src/modules/data-tables/entry.client.ts +9 -13
- package/src/modules/data-tables/hooks/use-context.client.tsx +6 -6
- package/src/modules/data-tables/hooks/use-selection.client.ts +1 -1
- package/src/modules/data-tables/hooks/use-table.client.ts +1 -1
- package/src/modules/data-tables/lib/converters/cursor.ts +1 -1
- package/src/modules/data-tables/lib/converters/dto.ts +1 -1
- package/src/modules/data-tables/lib/converters/search.ts +2 -2
- package/src/modules/data-tables/lib/converters/sorting.ts +2 -2
- package/src/modules/data-tables/lib/filters/config.ts +2 -2
- package/src/modules/data-tables/lib/filters/helpers.ts +4 -4
- package/src/modules/data-tables/lib/filters/parsers.ts +2 -2
- package/src/modules/data-tables/lib/filters/resolvers.ts +2 -2
- package/src/modules/data-tables/lib/helpers/create-column.ts +1 -1
- package/src/modules/data-tables/lib/types.ts +6 -5
- package/src/modules/data-tables/server/get-data.server.ts +8 -8
- package/src/modules/data-tables/strategies/helpers/sorting.ts +7 -3
- package/src/modules/data-tables/strategies/infinite/components.tsx +4 -4
- package/src/modules/data-tables/strategies/infinite/strategy.ts +2 -2
- package/src/modules/data-tables/strategies/pagination/components.tsx +2 -2
- package/src/modules/data-tables/strategies/pagination/strategy.ts +2 -2
- package/src/modules/data-tables/tables/data-table/components/body.tsx +3 -3
- package/src/modules/data-tables/tables/data-table/components/header.tsx +1 -1
- package/src/modules/data-tables/tables/data-table/components/row.tsx +3 -3
- package/src/modules/data-tables/tables/data-table/components/table.tsx +2 -2
- package/src/modules/data-tables/tables/inline-table/components/body.tsx +5 -5
- 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 +9 -5
- package/src/modules/data-tables/tables/inline-table/components/cells/read-only.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/header.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/row.client.tsx +5 -5
- package/src/modules/data-tables/tables/inline-table/components/table.tsx +3 -3
- package/src/modules/data-tables/tables/inline-table/hooks/context.client.tsx +2 -2
- package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +2 -2
- package/src/modules/inline-edit/components/combobox.client.tsx +2 -2
- package/src/modules/inline-edit/components/date-input.client.tsx +4 -4
- package/src/modules/inline-edit/components/date-picker.client.tsx +3 -3
- package/src/modules/inline-edit/components/date-time.client.tsx +40 -0
- package/src/modules/inline-edit/components/editor.client.tsx +3 -3
- package/src/modules/inline-edit/components/input-recipient.client.tsx +3 -3
- package/src/modules/inline-edit/components/input-toggle.client.tsx +3 -3
- package/src/modules/inline-edit/components/input.client.tsx +3 -3
- package/src/modules/inline-edit/components/select.client.tsx +8 -8
- package/src/modules/inline-edit/components/switch.client.tsx +1 -1
- package/src/modules/inline-edit/components/toggle.client.tsx +1 -1
- package/src/modules/inline-edit/entry.client.ts +12 -2
- package/src/modules/inline-edit/entry.server.ts +3 -0
- package/src/modules/inline-edit/entry.ts +3 -0
- package/src/modules/inline-edit/hooks/context.client.tsx +3 -2
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +5 -5
- package/src/modules/inline-edit/lib/validators.ts +1 -1
- package/src/modules/inline-edit/lib/variants.ts +1 -1
- package/src/modules/router/handler/caller.client.tsx +2 -2
- package/src/modules/router/handler/context.server.ts +4 -4
- package/src/modules/router/handler/init.server.ts +3 -3
- package/src/modules/router/handler/register.server.ts +3 -3
- package/src/modules/router/handler/route.server.ts +3 -3
- package/src/modules/router/lib/query-client.ts +0 -1
- package/src/modules/storage/components/dropzone-context.client.tsx +1 -1
- package/src/modules/storage/components/dropzone.client.tsx +3 -3
- package/src/modules/storage/components/image-grid.client.tsx +23 -19
- package/src/modules/storage/components/upload-button.client.tsx +2 -2
- package/src/modules/storage/components/upload-zone-context.client.tsx +2 -2
- package/src/modules/storage/components/upload-zone.client.tsx +5 -5
- package/src/modules/storage/config/filters.ts +1 -1
- package/src/modules/storage/entry.client.ts +3 -2
- package/src/modules/storage/lib/create-client.server.ts +2 -2
- package/src/modules/storage/lib/create-upload.client.ts +2 -2
- package/src/modules/storage/lib/helpers.ts +3 -3
- package/src/modules/storage/lib/proxy.server.ts +4 -4
- package/src/modules/storage/lib/router.server.ts +5 -5
- package/src/modules/storage/lib/schema.ts +2 -2
- package/src/modules/storage/lib/service.server.ts +21 -21
- package/src/modules/storage/lib/validators.ts +3 -3
- package/src/styles.css +1 -1
- package/dist/components/ui/time-input.client.d.mts +0 -16
- package/dist/components/ui/time-input.client.d.mts.map +0 -1
- package/dist/components/ui/time-input.client.mjs +0 -53
- package/dist/components/ui/time-input.client.mjs.map +0 -1
- package/dist/components/ui/time-picker-input.client.d.mts +0 -15
- package/dist/components/ui/time-picker-input.client.d.mts.map +0 -1
- package/dist/components/ui/time-picker-input.client.mjs +0 -64
- package/dist/components/ui/time-picker-input.client.mjs.map +0 -1
- package/dist/lib/utils/time-picker.d.mts +0 -6
- package/dist/lib/utils/time-picker.d.mts.map +0 -1
- package/dist/lib/utils/time-picker.mjs +0 -104
- package/dist/lib/utils/time-picker.mjs.map +0 -1
- package/src/components/ui/time-input.client.tsx +0 -56
- package/src/components/ui/time-picker-input.client.tsx +0 -107
- package/src/modules/auth/lib/utils.ts +0 -17
- package/src/modules/config/db/create-client.ts +0 -40
package/dist/auth/server.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthLayout } from "../modules/auth/components/auth-layout.server.mjs";
|
|
2
2
|
import { AuthClient, authCookiePrefix, initAuth } from "../modules/auth/handler/init.mjs";
|
|
3
|
-
import { AuthGuardFirstUser } from "../modules/auth/components/guard-first-user.server.mjs";
|
|
4
3
|
import { AuthGuard } from "../modules/auth/components/guard.server.mjs";
|
|
4
|
+
import { AuthGuardFirstUser } from "../modules/auth/components/guard-first-user.server.mjs";
|
|
5
5
|
import { createAuthProxy } from "../modules/auth/handler/proxy.server.mjs";
|
|
6
6
|
import { handleAuthRoute } from "../modules/auth/handler/route.server.mjs";
|
|
7
7
|
import { createUser, getSession, updateUser } from "../modules/auth/lib/helpers.server.mjs";
|
package/dist/auth/server.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthLayout } from "../modules/auth/components/auth-layout.server.mjs";
|
|
2
|
-
import { AuthGuardFirstUser } from "../modules/auth/components/guard-first-user.server.mjs";
|
|
3
2
|
import { createUser, getSession, updateUser } from "../modules/auth/lib/helpers.server.mjs";
|
|
4
3
|
import { AuthGuard } from "../modules/auth/components/guard.server.mjs";
|
|
4
|
+
import { AuthGuardFirstUser } from "../modules/auth/components/guard-first-user.server.mjs";
|
|
5
5
|
import { authCookiePrefix, initAuth } from "../modules/auth/handler/init.mjs";
|
|
6
6
|
import { createAuthProxy } from "../modules/auth/handler/proxy.server.mjs";
|
|
7
7
|
import { handleAuthRoute } from "../modules/auth/handler/route.server.mjs";
|
|
@@ -16,8 +16,8 @@ import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar.client.mjs";
|
|
|
16
16
|
import { ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./ui/chart.client.mjs";
|
|
17
17
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.client.mjs";
|
|
18
18
|
import { ColorPicker } from "./ui/color-picker.client.mjs";
|
|
19
|
-
import { ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps } from "./ui/combobox-dropdown.client.mjs";
|
|
20
19
|
import { Combobox, ComboboxItem, ComboboxProps } from "./ui/combobox.client.mjs";
|
|
20
|
+
import { ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps } from "./ui/combobox-dropdown.client.mjs";
|
|
21
21
|
import { DatePicker, DatePickerProps } from "./ui/date-picker.client.mjs";
|
|
22
22
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./ui/dialog.client.mjs";
|
|
23
23
|
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./ui/drawer.client.mjs";
|
|
@@ -28,7 +28,5 @@ import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./ui/resiz
|
|
|
28
28
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./ui/select.client.mjs";
|
|
29
29
|
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./ui/sheet.client.mjs";
|
|
30
30
|
import { Toaster, toast } from "./ui/sonner.client.mjs";
|
|
31
|
-
import { TimeInput } from "./ui/time-input.client.mjs";
|
|
32
|
-
import { TimePickerInput, TimePickerInputProps } from "./ui/time-picker-input.client.mjs";
|
|
33
31
|
import { ToggleGroup, ToggleGroupItem } from "./ui/toggle-group.client.mjs";
|
|
34
|
-
export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps, ComboboxItem, ComboboxProps, DatePicker, DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, EditorProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger,
|
|
32
|
+
export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps, ComboboxItem, ComboboxProps, DatePicker, DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, EditorProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps, editorVariants, toast, useFormField, useSidebar };
|
|
@@ -17,8 +17,8 @@ import { Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, P
|
|
|
17
17
|
import { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./ui/chart.client.mjs";
|
|
18
18
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.client.mjs";
|
|
19
19
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./ui/dialog.client.mjs";
|
|
20
|
-
import { ComboboxDropdown } from "./ui/combobox-dropdown.client.mjs";
|
|
21
20
|
import { Combobox } from "./ui/combobox.client.mjs";
|
|
21
|
+
import { ComboboxDropdown } from "./ui/combobox-dropdown.client.mjs";
|
|
22
22
|
import { DatePicker } from "./ui/date-picker.client.mjs";
|
|
23
23
|
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./ui/drawer.client.mjs";
|
|
24
24
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from "./ui/form.client.mjs";
|
|
@@ -26,10 +26,8 @@ import { HoverCard, HoverCardContent, HoverCardTrigger } from "./ui/hover-card.c
|
|
|
26
26
|
import { Progress } from "./ui/progress.client.mjs";
|
|
27
27
|
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./ui/resizable.client.mjs";
|
|
28
28
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./ui/select.client.mjs";
|
|
29
|
-
import { TimePickerInput } from "./ui/time-picker-input.client.mjs";
|
|
30
|
-
import { TimeInput } from "./ui/time-input.client.mjs";
|
|
31
29
|
import { ToggleGroup, ToggleGroupItem } from "./ui/toggle-group.client.mjs";
|
|
32
30
|
import { HeaderTopbarMobileNavSwitcher } from "./header/mobile-nav-switcher.client.mjs";
|
|
33
31
|
import { Topbar, TopbarTitle, TopbarTools } from "./header/top-bar.client.mjs";
|
|
34
32
|
|
|
35
|
-
export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLinks, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger,
|
|
33
|
+
export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLinks, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarTitle, TopbarTools, editorVariants, toast, useFormField, useSidebar };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { LucideIcon, LucideProps } from "lucide-react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as react from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/common/icons.d.ts
|
|
6
6
|
type Icon = LucideIcon;
|
|
7
7
|
declare const Icons: {
|
|
8
|
-
close:
|
|
9
|
-
save:
|
|
10
|
-
spinner:
|
|
11
|
-
chevronLeft:
|
|
12
|
-
chevronRight:
|
|
13
|
-
chevronDown:
|
|
14
|
-
chevronUp:
|
|
15
|
-
trash:
|
|
16
|
-
post:
|
|
17
|
-
page:
|
|
18
|
-
media:
|
|
19
|
-
download:
|
|
20
|
-
settings:
|
|
21
|
-
billing:
|
|
22
|
-
ellipsis:
|
|
23
|
-
add:
|
|
24
|
-
edit:
|
|
25
|
-
warning:
|
|
26
|
-
user:
|
|
27
|
-
users:
|
|
28
|
-
arrowUp:
|
|
29
|
-
arrowDown:
|
|
30
|
-
arrowRight:
|
|
31
|
-
arrowLeft:
|
|
32
|
-
moveLeft:
|
|
33
|
-
moveRight:
|
|
34
|
-
help:
|
|
35
|
-
pizza:
|
|
36
|
-
check:
|
|
37
|
-
copy:
|
|
38
|
-
copyDone:
|
|
39
|
-
refresh:
|
|
40
|
-
preview:
|
|
41
|
-
externalLink:
|
|
42
|
-
sun:
|
|
43
|
-
lock:
|
|
44
|
-
unLock:
|
|
45
|
-
moon:
|
|
46
|
-
search:
|
|
47
|
-
laptop:
|
|
48
|
-
active:
|
|
49
|
-
draft:
|
|
50
|
-
archive:
|
|
51
|
-
restore:
|
|
52
|
-
dashboard:
|
|
53
|
-
regulations:
|
|
54
|
-
home:
|
|
55
|
-
mail:
|
|
56
|
-
building:
|
|
57
|
-
logo: (props: LucideProps) =>
|
|
8
|
+
close: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
9
|
+
save: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
spinner: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
11
|
+
chevronLeft: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
12
|
+
chevronRight: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
13
|
+
chevronDown: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
14
|
+
chevronUp: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
15
|
+
trash: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
16
|
+
post: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
17
|
+
page: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
18
|
+
media: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
19
|
+
download: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
20
|
+
settings: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
21
|
+
billing: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
22
|
+
ellipsis: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
23
|
+
add: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
24
|
+
edit: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
25
|
+
warning: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
26
|
+
user: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
27
|
+
users: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
28
|
+
arrowUp: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
29
|
+
arrowDown: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
30
|
+
arrowRight: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
31
|
+
arrowLeft: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
32
|
+
moveLeft: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
33
|
+
moveRight: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
34
|
+
help: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
35
|
+
pizza: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
36
|
+
check: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
37
|
+
copy: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
38
|
+
copyDone: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
39
|
+
refresh: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
40
|
+
preview: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
41
|
+
externalLink: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
42
|
+
sun: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
43
|
+
lock: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
44
|
+
unLock: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
45
|
+
moon: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
46
|
+
search: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
47
|
+
laptop: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
48
|
+
active: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
49
|
+
draft: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
50
|
+
archive: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
51
|
+
restore: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
52
|
+
dashboard: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
53
|
+
regulations: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
54
|
+
home: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
55
|
+
mail: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
56
|
+
building: react.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
57
|
+
logo: (props: LucideProps) => react_jsx_runtime0.JSX.Element;
|
|
58
58
|
};
|
|
59
59
|
//#endregion
|
|
60
60
|
export { Icon, Icons };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.mts","names":[],"sources":["../../../src/components/common/icons.tsx"],"
|
|
1
|
+
{"version":3,"file":"icons.d.mts","names":[],"sources":["../../../src/components/common/icons.tsx"],"mappings":";;;;;KAsDY,IAAA,GAAO,UAAA;AAAA,cAEN,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAkDG,WAAA,KAAW,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.mjs","names":[],"sources":["../../../src/components/common/icons.tsx"],"sourcesContent":["import {\n AlertTriangle,\n ArchiveIcon,\n ArchiveRestore,\n ArrowDown,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n BuildingIcon,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n ClipboardCheck,\n Copy,\n CreditCard,\n Download,\n ExternalLink,\n EyeIcon,\n File,\n FileText,\n HelpCircle,\n HomeIcon,\n Image,\n Laptop,\n LayoutDashboardIcon,\n Loader2,\n LockKeyhole,\n LockKeyholeOpen,\n Mail,\n Moon,\n MoreVertical,\n MoveLeft,\n MoveRight,\n PencilRuler,\n PenSquare,\n Pizza,\n Plus,\n RefreshCcw,\n RotateCw,\n SaveIcon,\n ScrollTextIcon,\n Search,\n Settings,\n SunMedium,\n Trash,\n User,\n UsersIcon,\n X,\n
|
|
1
|
+
{"version":3,"file":"icons.mjs","names":[],"sources":["../../../src/components/common/icons.tsx"],"sourcesContent":["import {\n AlertTriangle,\n ArchiveIcon,\n ArchiveRestore,\n ArrowDown,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n BuildingIcon,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n ClipboardCheck,\n Copy,\n CreditCard,\n Download,\n ExternalLink,\n EyeIcon,\n File,\n FileText,\n HelpCircle,\n HomeIcon,\n Image,\n Laptop,\n LayoutDashboardIcon,\n Loader2,\n LockKeyhole,\n LockKeyholeOpen,\n type LucideIcon,\n type LucideProps,\n Mail,\n Moon,\n MoreVertical,\n MoveLeft,\n MoveRight,\n PencilRuler,\n PenSquare,\n Pizza,\n Plus,\n RefreshCcw,\n RotateCw,\n SaveIcon,\n ScrollTextIcon,\n Search,\n Settings,\n SunMedium,\n Trash,\n User,\n UsersIcon,\n X,\n} from \"lucide-react\";\n\nexport type Icon = LucideIcon;\n\nexport const Icons = {\n close: X,\n save: SaveIcon,\n spinner: Loader2,\n chevronLeft: ChevronLeft,\n chevronRight: ChevronRight,\n chevronDown: ChevronDown,\n chevronUp: ChevronUp,\n trash: Trash,\n post: FileText,\n page: File,\n media: Image,\n download: Download,\n settings: Settings,\n billing: CreditCard,\n ellipsis: MoreVertical,\n add: Plus,\n edit: PenSquare,\n warning: AlertTriangle,\n user: User,\n users: UsersIcon,\n arrowUp: ArrowUp,\n arrowDown: ArrowDown,\n arrowRight: ArrowRight,\n arrowLeft: ArrowLeft,\n moveLeft: MoveLeft,\n moveRight: MoveRight,\n help: HelpCircle,\n pizza: Pizza,\n check: Check,\n copy: Copy,\n copyDone: ClipboardCheck,\n refresh: RotateCw,\n preview: EyeIcon,\n externalLink: ExternalLink,\n sun: SunMedium,\n lock: LockKeyhole,\n unLock: LockKeyholeOpen,\n moon: Moon,\n search: Search,\n laptop: Laptop,\n active: RefreshCcw,\n draft: PencilRuler,\n archive: ArchiveIcon,\n restore: ArchiveRestore,\n dashboard: LayoutDashboardIcon,\n regulations: ScrollTextIcon,\n home: HomeIcon,\n mail: Mail,\n building: BuildingIcon,\n logo: (props: LucideProps) => (\n <svg viewBox=\"0 0 120.09 141.73\" {...props}>\n <title>Tulip Logo Icon</title>\n <defs>\n <linearGradient\n id=\"tulip-logo-icon-gradient\"\n x1=\"60.5\"\n y1=\"0\"\n x2=\"60.5\"\n y2=\"141.73\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#ffc754\" />\n <stop offset=\"1\" stopColor=\"#ff1800\" />\n </linearGradient>\n <linearGradient\n id=\"tulip-logo-icon-gradient-2\"\n x1=\"72.4\"\n y1=\"5.81\"\n x2=\"72.4\"\n y2=\"141.73\"\n xlinkHref=\"#tulip-logo-icon-gradient\"\n />\n <linearGradient\n id=\"tulip-logo-icon-gradient-3\"\n x1=\"47.69\"\n y1=\"5.81\"\n x2=\"47.69\"\n y2=\"141.73\"\n xlinkHref=\"#tulip-logo-icon-gradient\"\n />\n </defs>\n\n <g>\n <g>\n <path\n d=\"M107.88,93.09c0-35.95-47.38-93.09-47.38-93.09,0,0-47.39,57.14-47.38,93.09,0,26.17,21.21,48.64,47.38,48.64,26.17,0,47.39-22.47,47.38-48.64Z\"\n style={{\n fill: \"url(#tulip-logo-icon-gradient)\",\n opacity: 0.75,\n }}\n />\n <path\n d=\"M116.68,109.5c12.3-33.78-12.69-103.68-12.69-103.68,0,0-64.07,37.49-76.37,71.27-8.95,24.59,3.3,52.97,27.89,61.92,24.59,8.95,52.21-4.91,61.16-29.5Z\"\n style={{\n fill: \"url(#tulip-logo-icon-gradient-2)\",\n opacity: 0.75,\n }}\n />\n <path\n d=\"M92.46,77.09C80.16,43.3,16.09,5.81,16.09,5.81c0,0-24.98,69.9-12.69,103.68,8.95,24.59,36.57,38.45,61.16,29.5,24.59-8.95,36.84-37.32,27.89-61.92Z\"\n style={{\n fill: \"url(#tulip-logo-icon-gradient-3)\",\n opacity: 0.75,\n }}\n />\n </g>\n </g>\n </svg>\n ),\n};\n"],"mappings":";;;;AAwDA,MAAa,QAAQ;CACnB,OAAO;CACP,MAAM;CACN,SAAS;CACT,aAAa;CACb,cAAc;CACd,aAAa;CACb,WAAW;CACX,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,UAAU;CACV,UAAU;CACV,SAAS;CACT,UAAU;CACV,KAAK;CACL,MAAM;CACN,SAAS;CACT,MAAM;CACN,OAAO;CACP,SAAS;CACT,WAAW;CACX,YAAY;CACZ,WAAW;CACX,UAAU;CACV,WAAW;CACX,MAAM;CACN,OAAO;CACP,OAAO;CACP,MAAM;CACN,UAAU;CACV,SAAS;CACT,SAAS;CACT,cAAc;CACd,KAAK;CACL,MAAM;CACN,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,OAAO;CACP,SAAS;CACT,SAAS;CACT,WAAW;CACX,aAAa;CACb,MAAM;CACN,MAAM;CACN,UAAU;CACV,OAAO,UACL,qBAAC;EAAI,SAAQ;EAAoB,GAAI;;GACnC,oBAAC,qBAAM,oBAAuB;GAC9B,qBAAC;IACC,qBAAC;KACC,IAAG;KACH,IAAG;KACH,IAAG;KACH,IAAG;KACH,IAAG;KACH,eAAc;gBAEd,oBAAC;MAAK,QAAO;MAAI,WAAU;OAAY,EACvC,oBAAC;MAAK,QAAO;MAAI,WAAU;OAAY;MACxB;IACjB,oBAAC;KACC,IAAG;KACH,IAAG;KACH,IAAG;KACH,IAAG;KACH,IAAG;KACH,WAAU;MACV;IACF,oBAAC;KACC,IAAG;KACH,IAAG;KACH,IAAG;KACH,IAAG;KACH,IAAG;KACH,WAAU;MACV;OACG;GAEP,oBAAC,iBACC,qBAAC;IACC,oBAAC;KACC,GAAE;KACF,OAAO;MACL,MAAM;MACN,SAAS;MACV;MACD;IACF,oBAAC;KACC,GAAE;KACF,OAAO;MACL,MAAM;MACN,SAAS;MACV;MACD;IACF,oBAAC;KACC,GAAE;KACF,OAAO;MACL,MAAM;MACN,SAAS;MACV;MACD;OACA,GACF;;GACA;CAET"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigWithIcon } from "../../lib/types/config.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/common/status.d.ts
|
|
5
5
|
/**
|
|
@@ -43,11 +43,11 @@ type StatusComponentProps<TStatus extends string> = {
|
|
|
43
43
|
/**
|
|
44
44
|
* Status column
|
|
45
45
|
*/
|
|
46
|
-
declare function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>):
|
|
46
|
+
declare function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime0.JSX.Element;
|
|
47
47
|
/**
|
|
48
48
|
* Status badge
|
|
49
49
|
*/
|
|
50
|
-
declare function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>):
|
|
50
|
+
declare function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime0.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { CreateStatusComponentProps, StatusBadge, StatusField, createStatusConfig, createStatusVariants, findStatus };
|
|
53
53
|
//# sourceMappingURL=status.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.mts","names":[],"sources":["../../../src/components/common/status.tsx"],"
|
|
1
|
+
{"version":3,"file":"status.d.mts","names":[],"sources":["../../../src/components/common/status.tsx"],"mappings":";;;;;;;cAOa,kBAAA,2BAA8C,MAAA,EAAQ,cAAA,CAAe,OAAA,QAAU,cAAA,CAAA,OAAA;;;;;;;iBAS5E,UAAA;EAA6B,KAAA;AAAA,EAAA,CAC3C,MAAA,EAAQ,OAAA,IACR,MAAA,WACC,OAAA;;;;;;iBASa,oBAAA,wBAAA,CACd,MAAA;EAAU,KAAA,EAAO,OAAA;EAAS,SAAA;AAAA,MACzB,MAAA,CAAO,OAAA;;;;KAaE,0BAAA;EACV,MAAA,EAAQ,OAAA;AAAA;;;;KAML,oBAAA;EACH,MAAA,EAAQ,cAAA,CAAe,OAAA;EACvB,QAAA,GAAW,KAAA;IAAS,MAAA,EAAQ,OAAA;EAAA;EAC5B,MAAA,EAAQ,OAAA;AAAA;;;;iBAMM,WAAA,wBAAA,CAAoC,KAAA,EAAO,oBAAA,CAAqB,OAAA,IAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBAexE,WAAA,wBAAA,CAAoC,KAAA,EAAO,oBAAA,CAAqB,OAAA,IAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.mjs","names":[],"sources":["../../../src/components/common/status.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"status.mjs","names":[],"sources":["../../../src/components/common/status.tsx"],"sourcesContent":["import type { ConfigWithIcon } from \"@/lib/types/config\";\nimport { cn } from \"@/lib/utils/cn\";\nimport { Badge } from \"../ui/badge\";\n\n/**\n * Create status config\n */\nexport const createStatusConfig = <TStatus extends string>(config: ConfigWithIcon<TStatus>[]) =>\n config;\n\n/**\n * Find the status object from the config\n * @param {TStatus[]} values\n * @param {string} status\n * @returns {TStatus | undefined}\n */\nexport function findStatus<TStatus extends { value: string }>(\n values: TStatus[],\n status: string,\n): TStatus | undefined {\n return values.find((s) => s.value === status);\n}\n\n/**\n * Create status variants\n * @param {TStatus[]} values\n * @returns {Record<string, string>}\n */\nexport function createStatusVariants<TStatus extends string>(\n values: { value: TStatus; className: string }[],\n): Record<TStatus, string> {\n return values.reduce(\n (acc, { value, className }) => {\n acc[value] = className;\n return acc;\n },\n {} as Record<TStatus, string>,\n );\n}\n\n/**\n * Create status component props\n */\nexport type CreateStatusComponentProps<TStatus extends string> = {\n status: TStatus | null;\n};\n\n/**\n * Status component props\n */\ntype StatusComponentProps<TStatus extends string> = {\n config: ConfigWithIcon<TStatus>[];\n variants: (props: { status: TStatus }) => string;\n status: TStatus | null;\n};\n\n/**\n * Status column\n */\nexport function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>) {\n const status = findStatus(props.config, props.status ?? \"\");\n if (!status) return <div />;\n\n return (\n <div className={cn(\"flex items-center gap-2\", props.variants({ status: status.value }))}>\n <status.icon className={cn(\"size-4\", props.variants({ status: status.value }))} />\n <span>{status.label}</span>\n </div>\n );\n}\n\n/**\n * Status badge\n */\nexport function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>) {\n const status = findStatus(props.config, props.status ?? \"\");\n if (!status) return <div />;\n\n return (\n <Badge\n variant=\"outline\"\n className={cn(\"flex items-center gap-2\", props.variants({ status: status.value }))}\n >\n <status.icon className={cn(\"size-3\", props.variants({ status: status.value }))} />\n <span>{status.label}</span>\n </Badge>\n );\n}\n"],"mappings":";;;;;;;;AAOA,MAAa,sBAA8C,WACzD;;;;;;;AAQF,SAAgB,WACd,QACA,QACqB;AACrB,QAAO,OAAO,MAAM,MAAM,EAAE,UAAU,OAAO;;;;;;;AAQ/C,SAAgB,qBACd,QACyB;AACzB,QAAO,OAAO,QACX,KAAK,EAAE,OAAO,gBAAgB;AAC7B,MAAI,SAAS;AACb,SAAO;IAET,EAAE,CACH;;;;;AAsBH,SAAgB,YAAoC,OAAsC;CACxF,MAAM,SAAS,WAAW,MAAM,QAAQ,MAAM,UAAU,GAAG;AAC3D,KAAI,CAAC,OAAQ,QAAO,oBAAC,UAAM;AAE3B,QACE,qBAAC;EAAI,WAAW,GAAG,2BAA2B,MAAM,SAAS,EAAE,QAAQ,OAAO,OAAO,CAAC,CAAC;aACrF,oBAAC,OAAO,QAAK,WAAW,GAAG,UAAU,MAAM,SAAS,EAAE,QAAQ,OAAO,OAAO,CAAC,CAAC,GAAI,EAClF,oBAAC,oBAAM,OAAO,QAAa;GACvB;;;;;AAOV,SAAgB,YAAoC,OAAsC;CACxF,MAAM,SAAS,WAAW,MAAM,QAAQ,MAAM,UAAU,GAAG;AAC3D,KAAI,CAAC,OAAQ,QAAO,oBAAC,UAAM;AAE3B,QACE,qBAAC;EACC,SAAQ;EACR,WAAW,GAAG,2BAA2B,MAAM,SAAS,EAAE,QAAQ,OAAO,OAAO,CAAC,CAAC;aAElF,oBAAC,OAAO,QAAK,WAAW,GAAG,UAAU,MAAM,SAAS,EAAE,QAAQ,OAAO,OAAO,CAAC,CAAC,GAAI,EAClF,oBAAC,oBAAM,OAAO,QAAa;GACrB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/editor/components/content.client.d.ts
|
|
4
|
-
declare function EditorContent():
|
|
4
|
+
declare function EditorContent(): react_jsx_runtime0.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { EditorContent };
|
|
7
7
|
//# sourceMappingURL=content.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/content.client.tsx"],"
|
|
1
|
+
{"version":3,"file":"content.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/content.client.tsx"],"mappings":";;;iBAOgB,aAAA,CAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.client.mjs","names":["EditorContent","TiptapEditorContent"],"sources":["../../../../src/components/editor/components/content.client.tsx"],"sourcesContent":["\"use client\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"content.client.mjs","names":["EditorContent","TiptapEditorContent"],"sources":["../../../../src/components/editor/components/content.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { EditorContent as TiptapEditorContent } from \"@tiptap/react\";\nimport { useContext } from \"react\";\nimport { TooltipProvider } from \"@/components/ui/tooltip.client\";\nimport { EditorContext } from \"./editor.client\";\n\nexport function EditorContent() {\n const { editor } = useContext(EditorContext);\n\n return (\n <TooltipProvider>\n <TiptapEditorContent editor={editor} />\n </TooltipProvider>\n );\n}\n"],"mappings":";;;;;;;;;AAOA,SAAgBA,kBAAgB;CAC9B,MAAM,EAAE,WAAW,WAAW,cAAc;AAE5C,QACE,oBAAC,6BACC,oBAACC,iBAA4B,SAAU,GACvB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EditorExtensionsConfig, EditorExtensionsConfigResult } from "../lib/extensions.mjs";
|
|
2
2
|
import { EditorJSONContent } from "../lib/types.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react from "react";
|
|
6
6
|
import { PropsWithChildren } from "react";
|
|
7
7
|
import { Content, Editor } from "@tiptap/react";
|
|
8
8
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
@@ -15,7 +15,7 @@ type EditorContextValue = {
|
|
|
15
15
|
editor: Editor;
|
|
16
16
|
extensions: EditorExtensionsConfigResult;
|
|
17
17
|
};
|
|
18
|
-
declare const EditorContext:
|
|
18
|
+
declare const EditorContext: react.Context<EditorContextValue>;
|
|
19
19
|
/**
|
|
20
20
|
* Editor variants
|
|
21
21
|
*/
|
|
@@ -42,7 +42,7 @@ declare function Editor$1({
|
|
|
42
42
|
variant,
|
|
43
43
|
className,
|
|
44
44
|
children
|
|
45
|
-
}: EditorProps):
|
|
45
|
+
}: EditorProps): react_jsx_runtime0.JSX.Element | null;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { Editor$1 as Editor, EditorContext, EditorProps, editorVariants };
|
|
48
48
|
//# sourceMappingURL=editor.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"
|
|
1
|
+
{"version":3,"file":"editor.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"mappings":";;;;;;;;;;;;;KAkBK,kBAAA;EACH,MAAA,EAAQ,MAAA;EACR,UAAA,EAAY,4BAAA;AAAA;AAAA,cAGD,aAAA,EAAa,KAAA,CAAA,OAAA,CAAA,kBAAA;;;;cAKb,cAAA,GAAc,KAAA;;IAazB,+BAAA,CAAA,SAAA;;AAlBF;;KAuBY,WAAA,GAAc,YAAA,QAAoB,cAAA,IAC5C,iBAAA;EACE,KAAA,GAAQ,OAAA;EACR,UAAA,GAAa,OAAA,CAAQ,sBAAA;EACrB,QAAA,IAAY,KAAA,EAAO,iBAAA;EACnB,MAAA,IAAU,KAAA,EAAO,iBAAA;EACjB,QAAA;EACA,SAAA;AAAA;AAAA,iBAGY,QAAA,CAAA;EACd,KAAA;EACA,UAAA;EACA,QAAA;EACA,MAAA;EACA,QAAA;EACA,OAAA;EACA,SAAA;EACA;AAAA,GACC,WAAA,GAAW,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -25,8 +25,8 @@ function Editor$1({ value, extensions, onUpdate, onBlur, disabled, variant, clas
|
|
|
25
25
|
const editor = useEditor({
|
|
26
26
|
extensions: editorExtensionsConfigToExtensions(extensions),
|
|
27
27
|
content: value,
|
|
28
|
-
onUpdate: ({ editor
|
|
29
|
-
onBlur: ({ editor
|
|
28
|
+
onUpdate: ({ editor }) => onUpdate?.(editor.getJSON()),
|
|
29
|
+
onBlur: ({ editor }) => onBlur?.(editor.getJSON()),
|
|
30
30
|
editable: !disabled,
|
|
31
31
|
injectCSS: false,
|
|
32
32
|
immediatelyRender: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.client.mjs","names":["Editor"
|
|
1
|
+
{"version":3,"file":"editor.client.mjs","names":["Editor"],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { type Content, type Editor as TiptapEditor, useEditor } from \"@tiptap/react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { createContext, type PropsWithChildren } from \"react\";\nimport { cn } from \"@/lib/utils/cn\";\nimport {\n type EditorExtensionsConfig,\n type EditorExtensionsConfigResult,\n editorExtensionsConfigToExtensions,\n flattenEditorExtensionsConfig,\n} from \"../lib/extensions\";\nimport type { EditorJSONContent } from \"../lib/types\";\nimport { editorImageVariants, editorProseVariants } from \"../lib/variants\";\n\n/**\n * Editor context\n */\ntype EditorContextValue = {\n editor: TiptapEditor;\n extensions: EditorExtensionsConfigResult;\n};\n\nexport const EditorContext = createContext({} as EditorContextValue);\n\n/**\n * Editor variants\n */\nexport const editorVariants = cva(\"\", {\n variants: {\n variant: {\n default:\n \"border-input rounded-lg border [&_.editor-content]:p-3 [&_.editor-content[contenteditable='false']]:pointer-events-none [&_.editor-content[contenteditable='false']]:cursor-not-allowed [&_.editor-content[contenteditable='false']]:opacity-50\",\n table:\n \"[&_.editor-content[contenteditable='false']]:pointer-events-none [&_.editor-content[contenteditable='false']]:cursor-not-allowed [&_.editor-content[contenteditable='false']]:opacity-50\",\n preview: \"bg-transparent [&_.editor-content]:p-0 [&_.editor-content]:min-h-0\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\n/**\n * Editor context provider\n */\nexport type EditorProps = VariantProps<typeof editorVariants> &\n PropsWithChildren<{\n value?: Content;\n extensions?: Partial<EditorExtensionsConfig>;\n onUpdate?: (value: EditorJSONContent) => void;\n onBlur?: (value: EditorJSONContent) => void;\n disabled?: boolean;\n className?: string;\n }>;\n\nexport function Editor({\n value,\n extensions,\n onUpdate,\n onBlur,\n disabled,\n variant,\n className,\n children,\n}: EditorProps) {\n const editor = useEditor({\n extensions: editorExtensionsConfigToExtensions(extensions),\n content: value,\n onUpdate: ({ editor }) => onUpdate?.(editor.getJSON()),\n onBlur: ({ editor }) => onBlur?.(editor.getJSON()),\n editable: !disabled,\n injectCSS: false,\n immediatelyRender: false,\n editorProps: {\n transformPastedHTML: (html) => html.replace(/<img.*?>/g, \"\"),\n attributes: {\n class: cn(\n \"editor-content text-sm max-w-full focus:outline-none\",\n editorProseVariants(),\n editorImageVariants(),\n className,\n ),\n },\n },\n });\n\n if (!editor) return null;\n\n return (\n <EditorContext.Provider\n value={{\n editor,\n extensions: flattenEditorExtensionsConfig(extensions),\n }}\n >\n <div className={editorVariants({ variant })}>{children}</div>\n </EditorContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;AAuBA,MAAa,gBAAgB,cAAc,EAAE,CAAuB;;;;AAKpE,MAAa,iBAAiB,IAAI,IAAI;CACpC,UAAU,EACR,SAAS;EACP,SACE;EACF,OACE;EACF,SAAS;EACV,EACF;CACD,iBAAiB,EACf,SAAS,WACV;CACF,CAAC;AAeF,SAAgBA,SAAO,EACrB,OACA,YACA,UACA,QACA,UACA,SACA,WACA,YACc;CACd,MAAM,SAAS,UAAU;EACvB,YAAY,mCAAmC,WAAW;EAC1D,SAAS;EACT,WAAW,EAAE,aAAa,WAAW,OAAO,SAAS,CAAC;EACtD,SAAS,EAAE,aAAa,SAAS,OAAO,SAAS,CAAC;EAClD,UAAU,CAAC;EACX,WAAW;EACX,mBAAmB;EACnB,aAAa;GACX,sBAAsB,SAAS,KAAK,QAAQ,aAAa,GAAG;GAC5D,YAAY,EACV,OAAO,GACL,wDACA,qBAAqB,EACrB,qBAAqB,EACrB,UACD,EACF;GACF;EACF,CAAC;AAEF,KAAI,CAAC,OAAQ,QAAO;AAEpB,QACE,oBAAC,cAAc;EACb,OAAO;GACL;GACA,YAAY,8BAA8B,WAAW;GACtD;YAED,oBAAC;GAAI,WAAW,eAAe,EAAE,SAAS,CAAC;GAAG;IAAe;GACtC"}
|
|
@@ -81,10 +81,10 @@ function EditorMenuNodes() {
|
|
|
81
81
|
children: [Icon && /* @__PURE__ */ jsx(Icon, { className: "size-3.5" }), selectedBlock?.label ?? "Select a block"]
|
|
82
82
|
}), /* @__PURE__ */ jsx(ChevronDown, { className: "size-3.5" })]
|
|
83
83
|
})
|
|
84
|
-
}), /* @__PURE__ */ jsx(DropdownMenuContent, { children: filteredBlocks.map(({ label, icon: Icon
|
|
84
|
+
}), /* @__PURE__ */ jsx(DropdownMenuContent, { children: filteredBlocks.map(({ label, icon: Icon, handler }, index) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
85
85
|
onClick: () => handler(editor),
|
|
86
86
|
className: "flex items-center gap-2",
|
|
87
|
-
children: [Icon
|
|
87
|
+
children: [Icon && /* @__PURE__ */ jsx(Icon, { className: "size-3.5" }), label]
|
|
88
88
|
}, index)) })] });
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-nodes.client.mjs","names":[
|
|
1
|
+
{"version":3,"file":"menu-nodes.client.mjs","names":[],"sources":["../../../../src/components/editor/components/menu-nodes.client.tsx"],"sourcesContent":["import type { Editor } from \"@tiptap/react\";\nimport {\n ChevronDown,\n Heading1Icon,\n Heading2Icon,\n Heading3Icon,\n Heading4Icon,\n Heading5Icon,\n ListIcon,\n ListOrderedIcon,\n TextIcon,\n} from \"lucide-react\";\nimport { useContext } from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport type { EditorExtensionsConfigResult } from \"../lib/extensions\";\nimport { EditorContext } from \"./editor.client\";\n\nconst blocks = [\n {\n label: \"Paragraaf\",\n icon: TextIcon,\n selected: (editor: Editor) => editor.isActive(\"paragraph\"),\n handler: (editor: Editor) => editor.commands.setParagraph(),\n hidden: (extensions: EditorExtensionsConfigResult) => !extensions.paragraph,\n },\n {\n label: \"Titel 1\",\n icon: Heading1Icon,\n selected: (editor: Editor) => editor.isActive(\"heading\", { level: 1 }),\n handler: (editor: Editor) => editor.commands.setHeading({ level: 1 }),\n hidden: (extensions: EditorExtensionsConfigResult) => !extensions.heading,\n },\n {\n label: \"Titel 2\",\n icon: Heading2Icon,\n selected: (editor: Editor) => editor.isActive(\"heading\", { level: 2 }),\n handler: (editor: Editor) => editor.commands.setHeading({ level: 2 }),\n hidden: (extensions: EditorExtensionsConfigResult) => !extensions.heading,\n },\n {\n label: \"Titel 3\",\n icon: Heading3Icon,\n selected: (editor: Editor) => editor.isActive(\"heading\", { level: 3 }),\n handler: (editor: Editor) => editor.commands.setHeading({ level: 3 }),\n hidden: (extensions: EditorExtensionsConfigResult) => !extensions.heading,\n },\n {\n label: \"Titel 4\",\n icon: Heading4Icon,\n selected: (editor: Editor) => editor.isActive(\"heading\", { level: 4 }),\n handler: (editor: Editor) => editor.commands.setHeading({ level: 4 }),\n hidden: (extensions: EditorExtensionsConfigResult) => !extensions.heading,\n },\n {\n label: \"Titel 5\",\n icon: Heading5Icon,\n selected: (editor: Editor) => editor.isActive(\"heading\", { level: 5 }),\n handler: (editor: Editor) => editor.commands.setHeading({ level: 5 }),\n hidden: (extensions: EditorExtensionsConfigResult) => !extensions.heading,\n },\n {\n label: \"Numbered List\",\n icon: ListOrderedIcon,\n selected: (editor: Editor) => editor.isActive(\"orderedList\"),\n handler: (editor: Editor) => editor.commands.toggleOrderedList(),\n hidden: (extensions: EditorExtensionsConfigResult) => !extensions.orderedList,\n },\n {\n label: \"Bulleted List\",\n icon: ListIcon,\n selected: (editor: Editor) => editor.isActive(\"bulletList\"),\n handler: (editor: Editor) => editor.commands.toggleBulletList(),\n hidden: (extensions: EditorExtensionsConfigResult) => !extensions.bulletList,\n },\n];\n\nexport function EditorMenuNodes() {\n const { editor, extensions } = useContext(EditorContext);\n\n const selectedBlock = blocks.find((block) => block.selected(editor));\n const Icon = selectedBlock?.icon;\n\n const filteredBlocks = blocks.filter((block) => !block.hidden(extensions));\n\n if (filteredBlocks.length === 0) return null;\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button variant=\"outline\" size=\"sm\" className=\"flex items-center gap-8 p-2\">\n <span className=\"flex items-center gap-2\">\n {Icon && <Icon className=\"size-3.5\" />}\n {selectedBlock?.label ?? \"Select a block\"}\n </span>\n\n <ChevronDown className=\"size-3.5\" />\n </Button>\n </DropdownMenuTrigger>\n\n <DropdownMenuContent>\n {filteredBlocks.map(({ label, icon: Icon, handler }, index) => (\n <DropdownMenuItem\n key={index}\n onClick={() => handler(editor)}\n className=\"flex items-center gap-2\"\n >\n {Icon && <Icon className=\"size-3.5\" />}\n {label}\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n"],"mappings":";;;;;;;;AAuBA,MAAM,SAAS;CACb;EACE,OAAO;EACP,MAAM;EACN,WAAW,WAAmB,OAAO,SAAS,YAAY;EAC1D,UAAU,WAAmB,OAAO,SAAS,cAAc;EAC3D,SAAS,eAA6C,CAAC,WAAW;EACnE;CACD;EACE,OAAO;EACP,MAAM;EACN,WAAW,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACtE,UAAU,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACrE,SAAS,eAA6C,CAAC,WAAW;EACnE;CACD;EACE,OAAO;EACP,MAAM;EACN,WAAW,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACtE,UAAU,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACrE,SAAS,eAA6C,CAAC,WAAW;EACnE;CACD;EACE,OAAO;EACP,MAAM;EACN,WAAW,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACtE,UAAU,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACrE,SAAS,eAA6C,CAAC,WAAW;EACnE;CACD;EACE,OAAO;EACP,MAAM;EACN,WAAW,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACtE,UAAU,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACrE,SAAS,eAA6C,CAAC,WAAW;EACnE;CACD;EACE,OAAO;EACP,MAAM;EACN,WAAW,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACtE,UAAU,WAAmB,OAAO,SAAS,WAAW,EAAE,OAAO,GAAG,CAAC;EACrE,SAAS,eAA6C,CAAC,WAAW;EACnE;CACD;EACE,OAAO;EACP,MAAM;EACN,WAAW,WAAmB,OAAO,SAAS,cAAc;EAC5D,UAAU,WAAmB,OAAO,SAAS,mBAAmB;EAChE,SAAS,eAA6C,CAAC,WAAW;EACnE;CACD;EACE,OAAO;EACP,MAAM;EACN,WAAW,WAAmB,OAAO,SAAS,aAAa;EAC3D,UAAU,WAAmB,OAAO,SAAS,kBAAkB;EAC/D,SAAS,eAA6C,CAAC,WAAW;EACnE;CACF;AAED,SAAgB,kBAAkB;CAChC,MAAM,EAAE,QAAQ,eAAe,WAAW,cAAc;CAExD,MAAM,gBAAgB,OAAO,MAAM,UAAU,MAAM,SAAS,OAAO,CAAC;CACpE,MAAM,OAAO,eAAe;CAE5B,MAAM,iBAAiB,OAAO,QAAQ,UAAU,CAAC,MAAM,OAAO,WAAW,CAAC;AAE1E,KAAI,eAAe,WAAW,EAAG,QAAO;AAExC,QACE,qBAAC,2BACC,oBAAC;EAAoB;YACnB,qBAAC;GAAO,SAAQ;GAAU,MAAK;GAAK,WAAU;cAC5C,qBAAC;IAAK,WAAU;eACb,QAAQ,oBAAC,QAAK,WAAU,aAAa,EACrC,eAAe,SAAS;KACpB,EAEP,oBAAC,eAAY,WAAU,aAAa;IAC7B;GACW,EAEtB,oBAAC,iCACE,eAAe,KAAK,EAAE,OAAO,MAAM,MAAM,WAAW,UACnD,qBAAC;EAEC,eAAe,QAAQ,OAAO;EAC9B,WAAU;aAET,QAAQ,oBAAC,QAAK,WAAU,aAAa,EACrC;IALI,MAMY,CACnB,GACkB,IACT"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { BubbleMenu } from "@tiptap/react/menus";
|
|
4
4
|
|
|
5
5
|
//#region src/components/editor/components/menu.client.d.ts
|
|
6
|
-
declare function EditorMenuFixed(props: React.ComponentProps<"div">):
|
|
7
|
-
declare function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>):
|
|
6
|
+
declare function EditorMenuFixed(props: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
7
|
+
declare function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>): react_jsx_runtime0.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { EditorMenuBubble, EditorMenuFixed };
|
|
10
10
|
//# sourceMappingURL=menu.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/menu.client.tsx"],"
|
|
1
|
+
{"version":3,"file":"menu.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/menu.client.tsx"],"mappings":";;;;;iBAoBgB,eAAA,CAAgB,KAAA,EAAO,KAAA,CAAM,cAAA,UAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAgBlD,gBAAA,CAAiB,KAAA,EAAO,cAAA,QAAsB,UAAA,IAAW,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.client.mjs","names":[],"sources":["../../../../src/components/editor/components/menu.client.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"menu.client.mjs","names":[],"sources":["../../../../src/components/editor/components/menu.client.tsx"],"sourcesContent":["import { BubbleMenu } from \"@tiptap/react/menus\";\nimport {\n BaselineIcon,\n BoldIcon,\n EraserIcon,\n ItalicIcon,\n PaintBucketIcon,\n RedoIcon,\n StrikethroughIcon,\n UnderlineIcon,\n UndoIcon,\n} from \"lucide-react\";\nimport { type ComponentProps, type PropsWithChildren, useContext } from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport { ColorPicker } from \"@/components/ui/color-picker.client\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { cn } from \"@/lib/entry\";\nimport { EditorContext } from \"./editor.client\";\nimport { EditorMenuNodes } from \"./menu-nodes.client\";\n\nexport function EditorMenuFixed(props: React.ComponentProps<\"div\">) {\n return (\n <div\n {...props}\n className={cn(\"border-input bg-muted/30 z-10 overflow-auto border-b p-2\", props.className)}\n >\n <EditorMenuContent>\n <EditorMenuUndoRedo />\n <EditorMenuNodes />\n <EditorMenuMarks />\n <EditorMenuColor />\n </EditorMenuContent>\n </div>\n );\n}\n\nexport function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>) {\n const { editor } = useContext(EditorContext);\n\n return (\n <BubbleMenu\n {...props}\n editor={editor}\n options={{ ...props.options, strategy: \"fixed\" }}\n className={cn(\"border-input bg-muted z-10 rounded-lg border p-2\", props.className)}\n >\n <EditorMenuContent>\n <EditorMenuMarks />\n </EditorMenuContent>\n </BubbleMenu>\n );\n}\n\nfunction EditorMenuContent(props: PropsWithChildren) {\n return <div className=\"flex items-center gap-6\">{props.children}</div>;\n}\n\n/**\n * Editor menu undo/redo\n */\nfunction EditorMenuUndoRedo() {\n const { editor, extensions } = useContext(EditorContext);\n\n if (!extensions.undoRedo) return null;\n\n return (\n <div className=\"flex items-center gap-1\">\n <Button\n onClick={() => editor.commands.undo()}\n disabled={!editor?.can().undo()}\n type=\"button\"\n aria-label=\"Undo\"\n size=\"icon\"\n className=\"p-2\"\n variant=\"outline\"\n >\n <UndoIcon className=\"size-3.5\" />\n </Button>\n\n <Button\n onClick={() => editor.commands.redo()}\n disabled={!editor?.can().redo()}\n type=\"button\"\n aria-label=\"Redo\"\n size=\"icon\"\n className=\"p-2\"\n variant=\"outline\"\n >\n <RedoIcon className=\"size-3.5\" />\n </Button>\n </div>\n );\n}\n\n/**\n * Editor menu marks\n */\nfunction EditorMenuMarks() {\n const { editor, extensions } = useContext(EditorContext);\n\n if (!extensions.bold && !extensions.italic && !extensions.underline && !extensions.strike) {\n return null;\n }\n\n return (\n <div className=\"flex items-center gap-1\">\n {extensions.bold && (\n <Button\n type=\"button\"\n size=\"icon\"\n variant={editor?.isActive(\"bold\") ? \"secondary\" : \"outline\"}\n onClick={() => editor.chain().focus().toggleBold().run()}\n className=\"border\"\n >\n <BoldIcon className=\"h-3.5 w-3.5\" />\n </Button>\n )}\n\n {extensions.italic && (\n <Button\n type=\"button\"\n size=\"icon\"\n variant={editor?.isActive(\"italic\") ? \"secondary\" : \"outline\"}\n onClick={() => editor.chain().focus().toggleItalic().run()}\n className=\"border\"\n >\n <ItalicIcon className=\"size-3.5\" />\n </Button>\n )}\n\n {extensions.underline && (\n <Button\n type=\"button\"\n size=\"icon\"\n variant={editor?.isActive(\"underline\") ? \"secondary\" : \"outline\"}\n onClick={() => editor.chain().focus().toggleUnderline().run()}\n className=\"border\"\n >\n <UnderlineIcon className=\"size-3.5\" />\n </Button>\n )}\n\n {extensions.strike && (\n <Button\n type=\"button\"\n size=\"icon\"\n variant={editor?.isActive(\"strike\") ? \"secondary\" : \"outline\"}\n onClick={() => editor.chain().focus().toggleStrike().run()}\n className=\"border\"\n >\n <StrikethroughIcon className=\"size-3.5\" />\n </Button>\n )}\n </div>\n );\n}\n\n/**\n * Editor menu alignment\n */\nfunction EditorMenuColor() {\n const { editor, extensions } = useContext(EditorContext);\n\n if (!extensions.color && !extensions.highlight) {\n return null;\n }\n\n return (\n <div className=\"flex items-center gap-1\">\n {extensions.color && (\n <Popover>\n <PopoverTrigger asChild>\n <Button size=\"icon\" variant=\"outline\">\n <BaselineIcon className=\"size-3.5\" />\n </Button>\n </PopoverTrigger>\n\n <PopoverContent className=\"w-fit p-0\">\n <ColorPicker onValueChange={(color) => editor.chain().focus().setColor(color).run()} />\n </PopoverContent>\n </Popover>\n )}\n\n {extensions.highlight && (\n <Popover>\n <PopoverTrigger asChild>\n <Button size=\"icon\" variant=\"outline\" disabled={!editor?.can().setHighlight()}>\n <PaintBucketIcon className=\"size-3.5\" />\n </Button>\n </PopoverTrigger>\n\n <PopoverContent className=\"w-fit p-0\">\n <ColorPicker\n onValueChange={(color) => editor.chain().focus().setHighlight({ color }).run()}\n />\n </PopoverContent>\n </Popover>\n )}\n\n <Button\n type=\"button\"\n size=\"icon\"\n variant=\"outline\"\n className=\"border\"\n onClick={() => {\n editor.commands.unsetColor();\n editor.commands.unsetHighlight();\n }}\n >\n <EraserIcon className=\"h-4 w-4\" />\n </Button>\n </div>\n );\n}\n\n/**\n * Editor menu image\n */\n// function EditorMenuImage() {\n// const { editor, extensions } = useContext(EditorContext);\n\n// if (!extensions.image) return null;\n\n// return (\n// <div className=\"flex items-center gap-1\">\n// {extensions.image && (\n// <Button\n// type=\"button\"\n// size=\"icon\"\n// variant=\"outline\"\n// onClick={() => editor.chain().focus().downloadImage().run()}\n// disabled={!editor?.can().downloadImage()}\n// className=\"border\"\n// >\n// <DownloadIcon className=\"size-3.5\" />\n// </Button>\n// )}\n// </div>\n// );\n// }\n"],"mappings":";;;;;;;;;;;;AAoBA,SAAgB,gBAAgB,OAAoC;AAClE,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,GAAG,4DAA4D,MAAM,UAAU;YAE1F,qBAAC;GACC,oBAAC,uBAAqB;GACtB,oBAAC,oBAAkB;GACnB,oBAAC,oBAAkB;GACnB,oBAAC,oBAAkB;MACD;GAChB;;AAIV,SAAgB,iBAAiB,OAA0C;CACzE,MAAM,EAAE,WAAW,WAAW,cAAc;AAE5C,QACE,oBAAC;EACC,GAAI;EACI;EACR,SAAS;GAAE,GAAG,MAAM;GAAS,UAAU;GAAS;EAChD,WAAW,GAAG,oDAAoD,MAAM,UAAU;YAElF,oBAAC,+BACC,oBAAC,oBAAkB,GACD;GACT;;AAIjB,SAAS,kBAAkB,OAA0B;AACnD,QAAO,oBAAC;EAAI,WAAU;YAA2B,MAAM;GAAe;;;;;AAMxE,SAAS,qBAAqB;CAC5B,MAAM,EAAE,QAAQ,eAAe,WAAW,cAAc;AAExD,KAAI,CAAC,WAAW,SAAU,QAAO;AAEjC,QACE,qBAAC;EAAI,WAAU;aACb,oBAAC;GACC,eAAe,OAAO,SAAS,MAAM;GACrC,UAAU,CAAC,QAAQ,KAAK,CAAC,MAAM;GAC/B,MAAK;GACL,cAAW;GACX,MAAK;GACL,WAAU;GACV,SAAQ;aAER,oBAAC,YAAS,WAAU,aAAa;IAC1B,EAET,oBAAC;GACC,eAAe,OAAO,SAAS,MAAM;GACrC,UAAU,CAAC,QAAQ,KAAK,CAAC,MAAM;GAC/B,MAAK;GACL,cAAW;GACX,MAAK;GACL,WAAU;GACV,SAAQ;aAER,oBAAC,YAAS,WAAU,aAAa;IAC1B;GACL;;;;;AAOV,SAAS,kBAAkB;CACzB,MAAM,EAAE,QAAQ,eAAe,WAAW,cAAc;AAExD,KAAI,CAAC,WAAW,QAAQ,CAAC,WAAW,UAAU,CAAC,WAAW,aAAa,CAAC,WAAW,OACjF,QAAO;AAGT,QACE,qBAAC;EAAI,WAAU;;GACZ,WAAW,QACV,oBAAC;IACC,MAAK;IACL,MAAK;IACL,SAAS,QAAQ,SAAS,OAAO,GAAG,cAAc;IAClD,eAAe,OAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK;IACxD,WAAU;cAEV,oBAAC,YAAS,WAAU,gBAAgB;KAC7B;GAGV,WAAW,UACV,oBAAC;IACC,MAAK;IACL,MAAK;IACL,SAAS,QAAQ,SAAS,SAAS,GAAG,cAAc;IACpD,eAAe,OAAO,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK;IAC1D,WAAU;cAEV,oBAAC,cAAW,WAAU,aAAa;KAC5B;GAGV,WAAW,aACV,oBAAC;IACC,MAAK;IACL,MAAK;IACL,SAAS,QAAQ,SAAS,YAAY,GAAG,cAAc;IACvD,eAAe,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK;IAC7D,WAAU;cAEV,oBAAC,iBAAc,WAAU,aAAa;KAC/B;GAGV,WAAW,UACV,oBAAC;IACC,MAAK;IACL,MAAK;IACL,SAAS,QAAQ,SAAS,SAAS,GAAG,cAAc;IACpD,eAAe,OAAO,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK;IAC1D,WAAU;cAEV,oBAAC,qBAAkB,WAAU,aAAa;KACnC;;GAEP;;;;;AAOV,SAAS,kBAAkB;CACzB,MAAM,EAAE,QAAQ,eAAe,WAAW,cAAc;AAExD,KAAI,CAAC,WAAW,SAAS,CAAC,WAAW,UACnC,QAAO;AAGT,QACE,qBAAC;EAAI,WAAU;;GACZ,WAAW,SACV,qBAAC,sBACC,oBAAC;IAAe;cACd,oBAAC;KAAO,MAAK;KAAO,SAAQ;eAC1B,oBAAC,gBAAa,WAAU,aAAa;MAC9B;KACM,EAEjB,oBAAC;IAAe,WAAU;cACxB,oBAAC,eAAY,gBAAgB,UAAU,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,MAAM,CAAC,KAAK,GAAI;KACxE,IACT;GAGX,WAAW,aACV,qBAAC,sBACC,oBAAC;IAAe;cACd,oBAAC;KAAO,MAAK;KAAO,SAAQ;KAAU,UAAU,CAAC,QAAQ,KAAK,CAAC,cAAc;eAC3E,oBAAC,mBAAgB,WAAU,aAAa;MACjC;KACM,EAEjB,oBAAC;IAAe,WAAU;cACxB,oBAAC,eACC,gBAAgB,UAAU,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,KAAK,GAC9E;KACa,IACT;GAGZ,oBAAC;IACC,MAAK;IACL,MAAK;IACL,SAAQ;IACR,WAAU;IACV,eAAe;AACb,YAAO,SAAS,YAAY;AAC5B,YAAO,SAAS,gBAAgB;;cAGlC,oBAAC,cAAW,WAAU,YAAY;KAC3B;;GACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.mts","names":[],"sources":["../../../../../src/components/editor/extensions/file-handler/extension.ts"],"
|
|
1
|
+
{"version":3,"file":"extension.d.mts","names":[],"sources":["../../../../../src/components/editor/extensions/file-handler/extension.ts"],"mappings":";;;;UASiB,oBAAA,SAA2B,kBAAA;;;AAA5C;;;EAME,kBAAA,IAAsB,MAAA;EANoB;;;;;EAa1C,gBAAA,IAAoB,MAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.mjs","names":["FileHandler","TiptapFileHandler"],"sources":["../../../../../src/components/editor/extensions/file-handler/extension.ts"],"sourcesContent":["\"use client\";\n\nimport {\n FileHandler as TiptapFileHandler,\n FileHandlerOptions as TiptapFileHandlerOptions,\n} from \"@tiptap/extension-file-handler\";\nimport { Plugin, PluginKey } from \"@tiptap/pm/state\";\nimport { collectImageIds, diffIds } from \"./utils\";\n\nexport interface FileHandlerOptions extends TiptapFileHandlerOptions {\n /**\n * Callback function invoked when a image reference is removed from the editor. Receives the node ID of the removed node.\n * @type {(nodeId: string) => void}\n * @default undefined\n **/\n onReferenceRemoved?: (nodeId: string) => void;\n\n /**\n * Callback function invoked when a image reference is added to the editor. Receives the node ID of the added node.\n * @type {(nodeId: string) => void}\n * @default undefined\n **/\n onReferenceAdded?: (nodeId: string) => void;\n}\n\n/**\n * File Handler extension for Tiptap Editor\n */\nexport const FileHandler = TiptapFileHandler.extend<FileHandlerOptions>({\n addOptions() {\n return {\n ...this.parent?.(),\n onReferenceRemoved: undefined,\n onReferenceAdded: undefined,\n };\n },\n addProseMirrorPlugins() {\n const parent = this.parent?.() ?? [];\n const key = new PluginKey(\"fileHandlerItemTracker\");\n\n return [\n ...parent,\n new Plugin({\n key,\n appendTransaction: (trs, oldState, newState) => {\n if (!trs.some((tr) => tr.docChanged)) return null;\n\n const onReferenceRemoved = this.options.onReferenceRemoved;\n const onReferenceAdded = this.options.onReferenceAdded;\n if (!onReferenceRemoved && !onReferenceAdded) return null;\n\n const before = collectImageIds(oldState.doc);\n const after = collectImageIds(newState.doc);\n const { removed, added } = diffIds(before, after);\n\n for (const id of removed) {\n onReferenceRemoved?.(id);\n }\n\n for (const id of added) {\n onReferenceAdded?.(id);\n }\n\n return null;\n },\n }),\n ];\n },\n});\n"],"mappings":";;;;;;;;;;AA4BA,MAAaA,gBAAcC,YAAkB,OAA2B;CACtE,aAAa;AACX,SAAO;GACL,GAAG,KAAK,UAAU;GAClB,oBAAoB;GACpB,kBAAkB;GACnB;;CAEH,wBAAwB;EACtB,MAAM,SAAS,KAAK,UAAU,IAAI,EAAE;EACpC,MAAM,MAAM,IAAI,UAAU,yBAAyB;AAEnD,SAAO,CACL,GAAG,QACH,IAAI,OAAO;GACT;GACA,oBAAoB,KAAK,UAAU,aAAa;AAC9C,QAAI,CAAC,IAAI,MAAM,OAAO,GAAG,WAAW,CAAE,QAAO;IAE7C,MAAM,qBAAqB,KAAK,QAAQ;IACxC,MAAM,mBAAmB,KAAK,QAAQ;AACtC,QAAI,CAAC,sBAAsB,CAAC,iBAAkB,QAAO;IAIrD,MAAM,EAAE,SAAS,UAAU,QAFZ,gBAAgB,SAAS,IAAI,EAC9B,gBAAgB,SAAS,IAAI,CACM;AAEjD,SAAK,MAAM,MAAM,QACf,sBAAqB,GAAG;AAG1B,SAAK,MAAM,MAAM,MACf,oBAAmB,GAAG;AAGxB,WAAO;;GAEV,CAAC,CACH;;CAEJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"extension.mjs","names":["FileHandler","TiptapFileHandler"],"sources":["../../../../../src/components/editor/extensions/file-handler/extension.ts"],"sourcesContent":["\"use client\";\n\nimport {\n FileHandler as TiptapFileHandler,\n type FileHandlerOptions as TiptapFileHandlerOptions,\n} from \"@tiptap/extension-file-handler\";\nimport { Plugin, PluginKey } from \"@tiptap/pm/state\";\nimport { collectImageIds, diffIds } from \"./utils\";\n\nexport interface FileHandlerOptions extends TiptapFileHandlerOptions {\n /**\n * Callback function invoked when a image reference is removed from the editor. Receives the node ID of the removed node.\n * @type {(nodeId: string) => void}\n * @default undefined\n **/\n onReferenceRemoved?: (nodeId: string) => void;\n\n /**\n * Callback function invoked when a image reference is added to the editor. Receives the node ID of the added node.\n * @type {(nodeId: string) => void}\n * @default undefined\n **/\n onReferenceAdded?: (nodeId: string) => void;\n}\n\n/**\n * File Handler extension for Tiptap Editor\n */\nexport const FileHandler = TiptapFileHandler.extend<FileHandlerOptions>({\n addOptions() {\n return {\n ...this.parent?.(),\n onReferenceRemoved: undefined,\n onReferenceAdded: undefined,\n };\n },\n addProseMirrorPlugins() {\n const parent = this.parent?.() ?? [];\n const key = new PluginKey(\"fileHandlerItemTracker\");\n\n return [\n ...parent,\n new Plugin({\n key,\n appendTransaction: (trs, oldState, newState) => {\n if (!trs.some((tr) => tr.docChanged)) return null;\n\n const onReferenceRemoved = this.options.onReferenceRemoved;\n const onReferenceAdded = this.options.onReferenceAdded;\n if (!onReferenceRemoved && !onReferenceAdded) return null;\n\n const before = collectImageIds(oldState.doc);\n const after = collectImageIds(newState.doc);\n const { removed, added } = diffIds(before, after);\n\n for (const id of removed) {\n onReferenceRemoved?.(id);\n }\n\n for (const id of added) {\n onReferenceAdded?.(id);\n }\n\n return null;\n },\n }),\n ];\n },\n});\n"],"mappings":";;;;;;;;;;AA4BA,MAAaA,gBAAcC,YAAkB,OAA2B;CACtE,aAAa;AACX,SAAO;GACL,GAAG,KAAK,UAAU;GAClB,oBAAoB;GACpB,kBAAkB;GACnB;;CAEH,wBAAwB;EACtB,MAAM,SAAS,KAAK,UAAU,IAAI,EAAE;EACpC,MAAM,MAAM,IAAI,UAAU,yBAAyB;AAEnD,SAAO,CACL,GAAG,QACH,IAAI,OAAO;GACT;GACA,oBAAoB,KAAK,UAAU,aAAa;AAC9C,QAAI,CAAC,IAAI,MAAM,OAAO,GAAG,WAAW,CAAE,QAAO;IAE7C,MAAM,qBAAqB,KAAK,QAAQ;IACxC,MAAM,mBAAmB,KAAK,QAAQ;AACtC,QAAI,CAAC,sBAAsB,CAAC,iBAAkB,QAAO;IAIrD,MAAM,EAAE,SAAS,UAAU,QAFZ,gBAAgB,SAAS,IAAI,EAC9B,gBAAgB,SAAS,IAAI,CACM;AAEjD,SAAK,MAAM,MAAM,QACf,sBAAqB,GAAG;AAG1B,SAAK,MAAM,MAAM,MACf,oBAAmB,GAAG;AAGxB,WAAO;;GAEV,CAAC,CACH;;CAEJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strategy.d.mts","names":[],"sources":["../../../../../src/components/editor/extensions/file-handler/strategy.ts"],"
|
|
1
|
+
{"version":3,"file":"strategy.d.mts","names":[],"sources":["../../../../../src/components/editor/extensions/file-handler/strategy.ts"],"mappings":";;;;;;;;;;KASK,oCAAA;EACH,SAAA,EAAW,IAAA,CAAK,gBAAA;EAChB,YAAA,EAAc,YAAA;EACd,WAAA,GAAc,WAAA;EACd,gBAAA;EACA,iBAAA,IAAqB,IAAA,EAAM,gBAAA,KAAqB,OAAA;EAChD,cAAA,IAAkB,KAAA,cAAmB,OAAA;AAAA;AAAA,iBAGvB,+BAAA,CAAA;EACd,SAAA;EACA,YAAA;EACA,WAAA;EACA,iBAAA;EACA,cAAA;EACA;AAAA,GACC,oCAAA,GAAuC,kBAAA"}
|