betterstart-cli 0.0.97 → 0.0.99
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/assets/adapters/next/integrations/mailchimp/integration.ts +1 -1
- package/dist/assets/adapters/next/integrations/r2/actions/r2.ts +1 -1
- package/dist/assets/adapters/next/integrations/r2/integration.ts +1 -1
- package/dist/assets/adapters/next/integrations/railway-bucket/actions/railway-bucket.ts +1 -1
- package/dist/assets/adapters/next/integrations/railway-bucket/integration.ts +1 -1
- package/dist/assets/adapters/next/integrations/resend/integration.ts +1 -1
- package/dist/assets/adapters/next/integrations/vercel-blob/actions/vercel-blob.ts +1 -1
- package/dist/assets/adapters/next/integrations/vercel-blob/integration.ts +1 -1
- package/dist/assets/adapters/next/presets/blog/preset.ts +1 -1
- package/dist/assets/adapters/next/presets/portfolio/preset.ts +1 -1
- package/dist/assets/adapters/next/templates/init/api/storage-read-route.ts +2 -1
- package/dist/assets/adapters/next/templates/init/api/upload-route.ts +3 -2
- package/dist/assets/adapters/next/templates/init/components/layouts/admin-providers.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/layouts/admin-sidebar-nav-link-skeleton.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/layouts/admin-sidebar.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/data-table/data-grid.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/data-table/data-table-pagination.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/data-table/data-table.tsx +2 -5
- package/dist/assets/adapters/next/templates/init/components/shared/delete-dialog.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/copyable-code-block.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/dev-mode-code-mirror.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/lifecycle-hooks-tab.tsx +7 -17
- package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/snippets-tab.tsx +3 -13
- package/dist/assets/adapters/next/templates/init/components/shared/dev-mode-integrate.tsx +4 -4
- package/dist/assets/adapters/next/templates/init/components/shared/entity-filters-bar.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/entity-versions/entity-version-restore-dialog.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/entity-versions/entity-versions-button.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/media/edit-media-dialog-content.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/media/edit-media-dialog.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-delete-dialog.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-delete-drawer.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-filters-bar.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-gallery-dialog.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-grid-item.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-grid-pagination.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-grid.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-preview.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/media/media-url-importer.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/search-input.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/components/shared/sort-order-dialog.tsx +3 -4
- package/dist/assets/adapters/next/templates/init/components/shared/sort-order-item.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-blockquote.ts +1 -70
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-code-block.ts +1 -77
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-color-highlight.ts +3 -51
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor-media-insertion.ts +2 -2
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor-slash-menu.ts +6 -8
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor-source-mode.tsx +10 -8
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor-table-add-controls.ts +4 -4
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor.ts +7 -4
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-heading-dropdown-menu.ts +3 -66
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-heading.ts +1 -41
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-is-breakpoint.ts +0 -8
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-link-popover.ts +1 -83
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-list-dropdown-menu.ts +3 -61
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-list.ts +1 -43
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-mark.ts +1 -72
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-menu-navigation.ts +0 -35
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-table-button.ts +2 -2
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-tiptap-editor.ts +0 -11
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-undo-redo.ts +1 -65
- package/dist/assets/adapters/next/templates/init/hooks/use-admin-theme.tsx +2 -4
- package/dist/assets/adapters/next/templates/init/hooks/use-dev-mode-integration.ts +1 -1
- package/dist/assets/adapters/next/templates/init/hooks/use-entity-versions.ts +1 -1
- package/dist/assets/adapters/next/templates/init/hooks/use-local-storage.ts +2 -7
- package/dist/assets/adapters/next/templates/init/hooks/use-media-filters-bar.ts +1 -1
- package/dist/assets/adapters/next/templates/init/hooks/use-media.ts +2 -2
- package/dist/assets/adapters/next/templates/init/hooks/use-page-boundary-blur-visibility.ts +1 -1
- package/dist/assets/adapters/next/templates/init/hooks/use-page-scroll-threshold.ts +1 -1
- package/dist/assets/adapters/next/templates/init/hooks/use-table-utils.ts +2 -2
- package/dist/assets/adapters/next/templates/init/hooks/use-upload.ts +6 -12
- package/dist/assets/adapters/next/templates/init/hooks/use-users.ts +1 -1
- package/dist/assets/adapters/next/templates/init/hooks/use-webhooks.ts +3 -2
- package/dist/assets/adapters/next/templates/init/lib/actions/audit/cleanup-audit-logs.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/audit/get-audit-logs.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/audit/record-audit-event.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/auth/auth.ts +4 -4
- package/dist/assets/adapters/next/templates/init/lib/actions/auth/middleware.ts +2 -10
- package/dist/assets/adapters/next/templates/init/lib/actions/email/form-delivery.ts +2 -2
- package/dist/assets/adapters/next/templates/init/lib/actions/email/provider.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/entity-versions/get-entity-versions.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/entity-versions/internal-create-entity-version.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/forms/get-all-form-settings.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/forms/get-form-settings.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/forms/upsert-form-settings.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/media/create-media.ts +2 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/media/delete-media-bulk.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/media/delete-media.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/media/get-media-by-id.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/media/get-media-by-ids.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/media/get-media.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/media/update-media.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/profile/change-own-password.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/profile/update-email.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/storage/provider.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/upload/upload-files.ts +2 -2
- package/dist/assets/adapters/next/templates/init/lib/actions/upload/upload-media-from-url.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/users/change-user-password.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/users/create-user.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/users/delete-user.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/users/get-users.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/users/update-user-role.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/create-webhook.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/delete-webhook.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/dispatch.ts +1 -2
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/get-webhook-deliveries.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/get-webhook-secret.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/get-webhook-subscriptions.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/get-webhooks.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/regenerate-webhook-secret.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/register.ts +2 -2
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/send-test-webhook.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/actions/webhooks/update-webhook.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/db/client.ts +1 -1
- package/dist/assets/adapters/next/templates/init/lib/db/core/schema.ts +0 -24
- package/dist/assets/adapters/next/templates/init/lib/lifecycle-hooks/register.ts +0 -7
- package/dist/assets/adapters/next/templates/init/lib/lifecycle-hooks/runner.ts +1 -1
- package/dist/assets/adapters/next/templates/init/pages/forgot-password-form.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/login-form.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/media/media-page-content.tsx +4 -4
- package/dist/assets/adapters/next/templates/init/pages/profile/profile-form.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/reset-password-form.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/audit-log/audit-log-columns.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/audit-log/audit-log-page-content.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/audit-log/audit-log-page.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/audit-log/audit-log-table.tsx +3 -2
- package/dist/assets/adapters/next/templates/init/pages/settings/forms/forms-settings-page-content.tsx +3 -2
- package/dist/assets/adapters/next/templates/init/pages/settings/forms/forms-settings-page.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/forms/forms-settings-table.tsx +4 -3
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhook-endpoint-dialog.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhooks-columns.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhooks-logs-columns.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhooks-logs-page-content.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhooks-logs-page.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhooks-logs-table.tsx +2 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhooks-page-content.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhooks-page.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhooks-table.tsx +2 -1
- package/dist/assets/adapters/next/templates/init/pages/users/change-password-dialog.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/users/columns.tsx +3 -2
- package/dist/assets/adapters/next/templates/init/pages/users/create-user-dialog.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/users/delete-user-dialog.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/users/edit-role-dialog.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/pages/users/users-page-content.tsx +2 -1
- package/dist/assets/adapters/next/templates/init/pages/users/users-table.tsx +4 -3
- package/dist/assets/adapters/next/templates/init/types/index.ts +0 -5
- package/dist/assets/adapters/next/templates/init/utils/date/date.ts +1 -6
- package/dist/assets/adapters/next/templates/init/utils/editor/content-editor-rich-extensions.ts +2 -2
- package/dist/assets/adapters/next/templates/init/utils/editor/markdown.ts +5 -5
- package/dist/assets/adapters/next/templates/init/utils/editor/slash-commands.ts +2 -2
- package/dist/assets/adapters/next/templates/init/utils/editor/table-add-controls.ts +1 -1
- package/dist/assets/adapters/next/templates/init/utils/editor/tiptap.ts +8 -127
- package/dist/assets/adapters/next/templates/init/utils/media/query.ts +1 -1
- package/dist/assets/adapters/next/templates/init/utils/seo/seo.ts +0 -10
- package/dist/assets/adapters/next/templates/init/utils/shared/cn.ts +2 -1
- package/dist/assets/adapters/next/templates/init/utils/validation/validation.ts +0 -12
- package/dist/assets/shared-assets/react-admin/custom/content-editor/editor-toolbar.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/horizontal-rule-button.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/index.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/main-toolbar-content.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/math-bubble-menu.tsx +2 -2
- package/dist/assets/shared-assets/react-admin/custom/content-editor/math-button.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/math-editor-controls.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/math-popover-button.tsx +4 -3
- package/dist/assets/shared-assets/react-admin/custom/content-editor/remove-table-part-icon.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/selection-bubble-menu.tsx +2 -2
- package/dist/assets/shared-assets/react-admin/custom/content-editor/slash-command-menu.tsx +3 -3
- package/dist/assets/shared-assets/react-admin/custom/content-editor/source-mode-dropdown-button.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/source-mode.tsx +5 -11
- package/dist/assets/shared-assets/react-admin/custom/content-editor/table-add-controls.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/table-bubble-menu.tsx +3 -3
- package/dist/assets/shared-assets/react-admin/custom/content-editor/table-button.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-extension/node-background-extension.ts +2 -25
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-node/media-gallery-placeholder-node/media-gallery-placeholder-node-extension.ts +0 -20
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-node/media-gallery-placeholder-node/media-gallery-placeholder-node.tsx +2 -2
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-node/removable-image-node/removable-image-node.tsx +3 -3
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/blockquote-button/blockquote-button.tsx +3 -18
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/code-block-button/code-block-button.tsx +3 -18
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/color-highlight-button/color-highlight-button.tsx +2 -37
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/color-highlight-popover/color-highlight-popover-button.tsx +3 -5
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/color-highlight-popover/color-highlight-popover-content.tsx +3 -9
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/color-highlight-popover/color-highlight-popover.tsx +6 -12
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/color-highlight-popover/highlight-color-button.tsx +2 -2
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/color-highlight-popover/highlight-colors.ts +2 -4
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/color-highlight-popover/source-color-highlight-popover.tsx +4 -9
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu-item.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.tsx +4 -19
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/link-popover/link-button.tsx +3 -5
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/link-popover/link-content.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/link-popover/link-control-popover.tsx +5 -3
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/link-popover/link-main.tsx +1 -13
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/link-popover/link-popover.tsx +5 -16
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/list-dropdown-menu/list-dropdown-menu-item.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/list-dropdown-menu/list-dropdown-menu.tsx +4 -19
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/mark-button/mark-button.tsx +3 -19
- package/dist/assets/shared-assets/react-admin/custom/content-editor/tiptap-ui/undo-redo-button/undo-redo-button.tsx +3 -19
- package/dist/assets/shared-assets/react-admin/custom/date-picker.tsx +1 -3
- package/dist/assets/shared-assets/react-admin/custom/date-range-picker.tsx +2 -2
- package/dist/assets/shared-assets/react-admin/custom/gallery-field.tsx +5 -10
- package/dist/assets/shared-assets/react-admin/custom/icon-picker.tsx +7 -4
- package/dist/assets/shared-assets/react-admin/custom/media-field-empty-state.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/media-field.tsx +2 -2
- package/dist/assets/shared-assets/react-admin/custom/nested-object-list-field.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/placeholder-card.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/placeholder.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/progressive-blur.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/sortable-gallery-item.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/custom/upload-dropzone.tsx +2 -2
- package/dist/assets/shared-assets/react-admin/ui/accordion.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/alert-dialog.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/alert.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/avatar.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/badge.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/breadcrumb.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/button-group.tsx +2 -1
- package/dist/assets/shared-assets/react-admin/ui/button.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/calendar.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/card.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/carousel.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/chart.tsx +1 -2
- package/dist/assets/shared-assets/react-admin/ui/checkbox.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/combobox.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/command.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/context-menu.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/dialog.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/direction.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/drawer.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/dropdown-menu.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/empty.tsx +2 -1
- package/dist/assets/shared-assets/react-admin/ui/field.tsx +2 -1
- package/dist/assets/shared-assets/react-admin/ui/form.tsx +4 -10
- package/dist/assets/shared-assets/react-admin/ui/hover-card.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/input-group.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/input-otp.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/input.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/item.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/label.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/menubar.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/native-select.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/navigation-menu.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/pagination.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/popover.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/progress.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/radio-group.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/resizable.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/scroll-area.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/select.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/separator.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/sheet.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/sidebar.tsx +3 -10
- package/dist/assets/shared-assets/react-admin/ui/slider.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/sonner.tsx +2 -1
- package/dist/assets/shared-assets/react-admin/ui/switch.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/table.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/tabs.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/textarea.tsx +1 -1
- package/dist/assets/shared-assets/react-admin/ui/toggle-group.tsx +2 -2
- package/dist/assets/shared-assets/react-admin/ui/toggle.tsx +3 -2
- package/dist/assets/shared-assets/react-admin/ui/tooltip.tsx +1 -1
- package/dist/{chunk-MJWUGEMK.js → chunk-SO2CAJFC.js} +137 -9
- package/dist/chunk-SO2CAJFC.js.map +1 -0
- package/dist/cli.js +1097 -1194
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{template-reader-R2JIWUNK.js → template-reader-XMWPFYIK.js} +2 -2
- package/package.json +3 -3
- package/dist/assets/shared-assets/react-admin/dependencies.ts +0 -74
- package/dist/chunk-MJWUGEMK.js.map +0 -1
- /package/dist/{template-reader-R2JIWUNK.js.map → template-reader-XMWPFYIK.js.map} +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type { ControlAvailability, ControlTooltip } from '../control-options'
|
|
4
|
+
import type { ListType } from '@admin/hooks/content-editor/use-list'
|
|
5
|
+
import type { Editor } from '@tiptap/react'
|
|
3
6
|
import { Button } from '@admin/components/ui/button'
|
|
4
7
|
import {
|
|
5
8
|
DropdownMenu,
|
|
@@ -7,20 +10,11 @@ import {
|
|
|
7
10
|
DropdownMenuGroup,
|
|
8
11
|
DropdownMenuTrigger
|
|
9
12
|
} from '@admin/components/ui/dropdown-menu'
|
|
10
|
-
// --- Hooks ---
|
|
11
|
-
import type { ListType } from '@admin/hooks/content-editor/use-list'
|
|
12
13
|
import { useListDropdownMenu } from '@admin/hooks/content-editor/use-list-dropdown-menu'
|
|
13
14
|
import { useTiptapEditor } from '@admin/hooks/content-editor/use-tiptap-editor'
|
|
14
|
-
import type { Editor } from '@tiptap/react'
|
|
15
|
-
// --- Icons ---
|
|
16
15
|
import { ChevronDownIcon } from 'lucide-react'
|
|
17
16
|
import { useCallback, useState } from 'react'
|
|
18
|
-
import {
|
|
19
|
-
type ControlAvailability,
|
|
20
|
-
type ControlTooltip,
|
|
21
|
-
getControlTooltipTitle,
|
|
22
|
-
shouldHideUnavailableControl
|
|
23
|
-
} from '../control-options'
|
|
17
|
+
import { getControlTooltipTitle, shouldHideUnavailableControl } from '../control-options'
|
|
24
18
|
import { ListDropdownMenuItem } from './list-dropdown-menu-item'
|
|
25
19
|
|
|
26
20
|
type EditorButtonProps = React.ComponentProps<typeof Button> & {
|
|
@@ -29,17 +23,8 @@ type EditorButtonProps = React.ComponentProps<typeof Button> & {
|
|
|
29
23
|
|
|
30
24
|
export interface ListDropdownMenuProps extends Omit<EditorButtonProps, 'type'> {
|
|
31
25
|
availability?: ControlAvailability
|
|
32
|
-
/**
|
|
33
|
-
* The Tiptap editor instance.
|
|
34
|
-
*/
|
|
35
26
|
editor?: Editor
|
|
36
|
-
/**
|
|
37
|
-
* The list types to display in the dropdown.
|
|
38
|
-
*/
|
|
39
27
|
types?: ListType[]
|
|
40
|
-
/**
|
|
41
|
-
* Callback for when the dropdown opens or closes
|
|
42
|
-
*/
|
|
43
28
|
onOpenChange?: (isOpen: boolean) => void
|
|
44
29
|
}
|
|
45
30
|
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type { ControlAvailability, ControlShortcut, ControlTooltip } from '../control-options'
|
|
4
|
+
import type { Mark, UseMarkConfig } from '@admin/hooks/content-editor/use-mark'
|
|
3
5
|
import { Badge } from '@admin/components/ui/badge'
|
|
4
6
|
import { Button } from '@admin/components/ui/button'
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
MARK_SHORTCUT_KEYS,
|
|
8
|
-
type Mark,
|
|
9
|
-
type UseMarkConfig,
|
|
10
|
-
useMark
|
|
11
|
-
} from '@admin/hooks/content-editor/use-mark'
|
|
7
|
+
import { MARK_SHORTCUT_KEYS, useMark } from '@admin/hooks/content-editor/use-mark'
|
|
12
8
|
import { useTiptapEditor } from '@admin/hooks/content-editor/use-tiptap-editor'
|
|
13
|
-
// --- Lib ---
|
|
14
9
|
import { parseShortcutKeys } from '@admin/utils/editor/tiptap'
|
|
15
10
|
import { useCallback } from 'react'
|
|
16
11
|
import {
|
|
17
|
-
type ControlAvailability,
|
|
18
|
-
type ControlShortcut,
|
|
19
|
-
type ControlTooltip,
|
|
20
12
|
getControlTooltipTitle,
|
|
21
13
|
shouldHideUnavailableControl,
|
|
22
14
|
shouldShowControlShortcut
|
|
@@ -29,9 +21,6 @@ type EditorButtonProps = React.ComponentProps<typeof Button> & {
|
|
|
29
21
|
export interface MarkButtonProps
|
|
30
22
|
extends Omit<EditorButtonProps, 'type'>, Omit<UseMarkConfig, 'hideWhenUnavailable'> {
|
|
31
23
|
availability?: ControlAvailability
|
|
32
|
-
/**
|
|
33
|
-
* Optional text to display alongside the icon.
|
|
34
|
-
*/
|
|
35
24
|
text?: string
|
|
36
25
|
shortcut?: ControlShortcut
|
|
37
26
|
}
|
|
@@ -46,11 +35,6 @@ export function MarkShortcutBadge({
|
|
|
46
35
|
return <Badge>{parseShortcutKeys({ shortcutKeys })}</Badge>
|
|
47
36
|
}
|
|
48
37
|
|
|
49
|
-
/**
|
|
50
|
-
* Button component for toggling marks in a Tiptap editor.
|
|
51
|
-
*
|
|
52
|
-
* For custom button implementations, use the `useMark` hook instead.
|
|
53
|
-
*/
|
|
54
38
|
export function MarkButton({
|
|
55
39
|
editor: providedEditor,
|
|
56
40
|
availability,
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type { ControlAvailability, ControlShortcut, ControlTooltip } from '../control-options'
|
|
4
|
+
import type { UndoRedoAction, UseUndoRedoConfig } from '@admin/hooks/content-editor/use-undo-redo'
|
|
3
5
|
import { Badge } from '@admin/components/ui/badge'
|
|
4
6
|
import { Button } from '@admin/components/ui/button'
|
|
5
7
|
import { useTiptapEditor } from '@admin/hooks/content-editor/use-tiptap-editor'
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
UNDO_REDO_SHORTCUT_KEYS,
|
|
9
|
-
type UndoRedoAction,
|
|
10
|
-
type UseUndoRedoConfig,
|
|
11
|
-
useUndoRedo
|
|
12
|
-
} from '@admin/hooks/content-editor/use-undo-redo'
|
|
13
|
-
// --- Lib ---
|
|
8
|
+
import { UNDO_REDO_SHORTCUT_KEYS, useUndoRedo } from '@admin/hooks/content-editor/use-undo-redo'
|
|
14
9
|
import { parseShortcutKeys } from '@admin/utils/editor/tiptap'
|
|
15
10
|
import { useCallback } from 'react'
|
|
16
11
|
import {
|
|
17
|
-
type ControlAvailability,
|
|
18
|
-
type ControlShortcut,
|
|
19
|
-
type ControlTooltip,
|
|
20
12
|
getControlTooltipTitle,
|
|
21
13
|
shouldHideUnavailableControl,
|
|
22
14
|
shouldShowControlShortcut
|
|
@@ -29,9 +21,6 @@ type EditorButtonProps = React.ComponentProps<typeof Button> & {
|
|
|
29
21
|
export interface UndoRedoButtonProps
|
|
30
22
|
extends Omit<EditorButtonProps, 'type'>, Omit<UseUndoRedoConfig, 'hideWhenUnavailable'> {
|
|
31
23
|
availability?: ControlAvailability
|
|
32
|
-
/**
|
|
33
|
-
* Optional text to display alongside the icon.
|
|
34
|
-
*/
|
|
35
24
|
text?: string
|
|
36
25
|
shortcut?: ControlShortcut
|
|
37
26
|
}
|
|
@@ -46,11 +35,6 @@ export function HistoryShortcutBadge({
|
|
|
46
35
|
return <Badge>{parseShortcutKeys({ shortcutKeys })}</Badge>
|
|
47
36
|
}
|
|
48
37
|
|
|
49
|
-
/**
|
|
50
|
-
* Button component for triggering undo/redo actions in a Tiptap editor.
|
|
51
|
-
*
|
|
52
|
-
* For custom button implementations, use the `useHistory` hook instead.
|
|
53
|
-
*/
|
|
54
38
|
export function UndoRedoButton({
|
|
55
39
|
editor: providedEditor,
|
|
56
40
|
action,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
3
4
|
import { Button } from '@admin/components/ui/button'
|
|
4
5
|
import { Calendar } from '@admin/components/ui/calendar'
|
|
5
6
|
import { Popover, PopoverContent, PopoverTrigger } from '@admin/components/ui/popover'
|
|
6
7
|
import { cn } from '@admin/utils/shared/cn'
|
|
7
8
|
import { format } from 'date-fns'
|
|
8
9
|
import { CalendarIcon } from 'lucide-react'
|
|
9
|
-
import * as React from 'react'
|
|
10
10
|
|
|
11
11
|
interface DatePickerProps {
|
|
12
12
|
value?: string
|
|
@@ -14,9 +14,7 @@ interface DatePickerProps {
|
|
|
14
14
|
disabled?: boolean
|
|
15
15
|
placeholder?: string
|
|
16
16
|
className?: string
|
|
17
|
-
/** Start year for the year dropdown (defaults to 1900) */
|
|
18
17
|
startYear?: number
|
|
19
|
-
/** End year for the year dropdown (defaults to current year + 100) */
|
|
20
18
|
endYear?: number
|
|
21
19
|
}
|
|
22
20
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import type { DateRange } from 'react-day-picker'
|
|
3
5
|
import { Button } from '@admin/components/ui/button'
|
|
4
6
|
import { Calendar } from '@admin/components/ui/calendar'
|
|
5
7
|
import { Input } from '@admin/components/ui/input'
|
|
@@ -18,8 +20,6 @@ import {
|
|
|
18
20
|
} from '@admin/utils/date/date'
|
|
19
21
|
import { cn } from '@admin/utils/shared/cn'
|
|
20
22
|
import { CalendarIcon, ChevronDown, CornerDownLeft } from 'lucide-react'
|
|
21
|
-
import * as React from 'react'
|
|
22
|
-
import type { DateRange } from 'react-day-picker'
|
|
23
23
|
|
|
24
24
|
interface DateRangePickerProps {
|
|
25
25
|
from?: string
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import type { CarouselApi } from '@admin/components/ui/carousel'
|
|
5
|
+
import type { AdminMedia } from '@admin/types'
|
|
6
|
+
import type { DragEndEvent, DragStartEvent } from '@dnd-kit/core'
|
|
3
7
|
import { MediaGalleryDialog } from '@admin/components/shared/media/media-gallery-dialog'
|
|
4
8
|
import { Card, CardContent, CardFooter } from '@admin/components/ui/card'
|
|
5
|
-
import {
|
|
6
|
-
Carousel,
|
|
7
|
-
type CarouselApi,
|
|
8
|
-
CarouselContent,
|
|
9
|
-
CarouselItem
|
|
10
|
-
} from '@admin/components/ui/carousel'
|
|
9
|
+
import { Carousel, CarouselContent, CarouselItem } from '@admin/components/ui/carousel'
|
|
11
10
|
import { Skeleton } from '@admin/components/ui/skeleton'
|
|
12
11
|
import { useMediaByIds } from '@admin/hooks/use-media'
|
|
13
|
-
import type { AdminMedia } from '@admin/types'
|
|
14
12
|
import {
|
|
15
13
|
closestCenter,
|
|
16
14
|
DndContext,
|
|
17
|
-
type DragEndEvent,
|
|
18
15
|
DragOverlay,
|
|
19
|
-
type DragStartEvent,
|
|
20
16
|
KeyboardSensor,
|
|
21
17
|
PointerSensor,
|
|
22
18
|
useSensor,
|
|
@@ -24,7 +20,6 @@ import {
|
|
|
24
20
|
} from '@dnd-kit/core'
|
|
25
21
|
import { arrayMove, horizontalListSortingStrategy, SortableContext } from '@dnd-kit/sortable'
|
|
26
22
|
import { Plus } from 'lucide-react'
|
|
27
|
-
import * as React from 'react'
|
|
28
23
|
import { MediaField } from './media-field'
|
|
29
24
|
import { MediaFieldEmptyState } from './media-field-empty-state'
|
|
30
25
|
import { SortableGalleryItem } from './sortable-gallery-item'
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import type { IconData } from './icons-data'
|
|
5
|
+
import type { VirtualItem } from '@tanstack/react-virtual'
|
|
6
|
+
import type { IconName } from 'lucide-react/dynamic'
|
|
3
7
|
import { Button } from '@admin/components/ui/button'
|
|
4
8
|
import { Input } from '@admin/components/ui/input'
|
|
5
9
|
import { Popover, PopoverContent, PopoverTrigger } from '@admin/components/ui/popover'
|
|
@@ -10,14 +14,13 @@ import {
|
|
|
10
14
|
TooltipTrigger
|
|
11
15
|
} from '@admin/components/ui/tooltip'
|
|
12
16
|
import { cn } from '@admin/utils/shared/cn'
|
|
13
|
-
import { useVirtualizer
|
|
17
|
+
import { useVirtualizer } from '@tanstack/react-virtual'
|
|
14
18
|
import Fuse from 'fuse.js'
|
|
15
|
-
import { DynamicIcon, dynamicIconImports
|
|
16
|
-
import * as React from 'react'
|
|
19
|
+
import { DynamicIcon, dynamicIconImports } from 'lucide-react/dynamic'
|
|
17
20
|
import { useCallback, useMemo, useState } from 'react'
|
|
18
21
|
import { useDebounceValue } from 'usehooks-ts'
|
|
19
22
|
import { IconsColumnSkeleton } from './icons-column-skeleton'
|
|
20
|
-
import {
|
|
23
|
+
import { iconsData } from './icons-data'
|
|
21
24
|
|
|
22
25
|
const DEFAULT_ICONS = iconsData.filter((icon: IconData) => {
|
|
23
26
|
return icon.name in dynamicIconImports
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type { AdminMedia } from '@admin/types'
|
|
3
4
|
import { MediaGalleryDialog } from '@admin/components/shared/media/media-gallery-dialog'
|
|
4
5
|
import { Button } from '@admin/components/ui/button'
|
|
5
6
|
import { Card, CardContent } from '@admin/components/ui/card'
|
|
6
|
-
import type { AdminMedia } from '@admin/types'
|
|
7
7
|
import { cn } from '@admin/utils/shared/cn'
|
|
8
8
|
import { ImageIcon } from 'lucide-react'
|
|
9
9
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import type { AdminMedia } from '@admin/types'
|
|
3
5
|
import { MediaGalleryDialog } from '@admin/components/shared/media/media-gallery-dialog'
|
|
4
6
|
import { MediaPreview } from '@admin/components/shared/media/media-preview'
|
|
5
7
|
import { Button } from '@admin/components/ui/button'
|
|
6
8
|
import { Card, CardContent, CardFooter } from '@admin/components/ui/card'
|
|
7
9
|
import { useCopyToClipboard } from '@admin/hooks/use-copy-to-clipboard'
|
|
8
10
|
import { useMediaById } from '@admin/hooks/use-media'
|
|
9
|
-
import type { AdminMedia } from '@admin/types'
|
|
10
11
|
import { createAdminMediaFromUrl } from '@admin/utils/media/fallback'
|
|
11
12
|
import { cn } from '@admin/utils/shared/cn'
|
|
12
13
|
import { Check, Copy, Link2 } from 'lucide-react'
|
|
13
14
|
import Link from 'next/link'
|
|
14
|
-
import * as React from 'react'
|
|
15
15
|
import { MediaFieldEmptyState } from './media-field-empty-state'
|
|
16
16
|
|
|
17
17
|
type MediaFieldValueMode = 'id' | 'url'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
3
4
|
import {
|
|
4
5
|
Accordion,
|
|
5
6
|
AccordionContent,
|
|
@@ -12,7 +13,6 @@ import { FormDescription, FormField, FormItem, FormLabel } from '@admin/componen
|
|
|
12
13
|
import { cloneDefaultValue, createListItemKey } from '@admin/utils/form/list-field'
|
|
13
14
|
import { cn } from '@admin/utils/shared/cn'
|
|
14
15
|
import { Plus, X } from 'lucide-react'
|
|
15
|
-
import * as React from 'react'
|
|
16
16
|
import { useFormContext, useWatch } from 'react-hook-form'
|
|
17
17
|
|
|
18
18
|
interface NestedObjectListFieldProps {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type * as React from 'react'
|
|
3
4
|
import { usePageBoundaryBlurVisibility } from '@admin/hooks/use-page-boundary-blur-visibility'
|
|
4
5
|
import { cn } from '@admin/utils/shared/cn'
|
|
5
6
|
import { motion } from 'motion/react'
|
|
6
|
-
import type * as React from 'react'
|
|
7
7
|
|
|
8
8
|
type ProgressiveBlurProps = React.ComponentProps<typeof motion.div> & {
|
|
9
9
|
backgroundColor?: string
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type * as React from 'react'
|
|
1
2
|
import { Button } from '@admin/components/ui/button'
|
|
2
3
|
import { Card, CardContent, CardFooter } from '@admin/components/ui/card'
|
|
3
4
|
import { Skeleton } from '@admin/components/ui/skeleton'
|
|
4
5
|
import { useSortable } from '@dnd-kit/sortable'
|
|
5
6
|
import { CSS } from '@dnd-kit/utilities'
|
|
6
7
|
import { GripVertical } from 'lucide-react'
|
|
7
|
-
import type * as React from 'react'
|
|
8
8
|
|
|
9
9
|
export function SortableGalleryItem({
|
|
10
10
|
id,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import type { UploadProgress } from '@admin/types'
|
|
3
5
|
import { Button } from '@admin/components/ui/button'
|
|
4
6
|
import { Card, CardContent } from '@admin/components/ui/card'
|
|
5
7
|
import { Progress } from '@admin/components/ui/progress'
|
|
6
|
-
import type { UploadProgress } from '@admin/types'
|
|
7
8
|
import { cn } from '@admin/utils/shared/cn'
|
|
8
9
|
import { parseDropzoneAccept } from '@admin/utils/upload/upload'
|
|
9
10
|
import { GalleryVerticalEnd } from 'lucide-react'
|
|
10
|
-
import * as React from 'react'
|
|
11
11
|
import { useDropzone } from 'react-dropzone'
|
|
12
12
|
|
|
13
13
|
export interface UploadDropzoneHandle {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type * as React from 'react'
|
|
3
4
|
import { cn } from '@admin/utils/shared/cn'
|
|
4
5
|
import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react'
|
|
5
6
|
import { Accordion as AccordionPrimitive } from 'radix-ui'
|
|
6
|
-
import type * as React from 'react'
|
|
7
7
|
|
|
8
8
|
function Accordion({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>) {
|
|
9
9
|
return (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type * as React from 'react'
|
|
3
4
|
import { Button } from '@admin/components/ui/button'
|
|
4
5
|
import { cn } from '@admin/utils/shared/cn'
|
|
5
6
|
import { AlertDialog as AlertDialogPrimitive } from 'radix-ui'
|
|
6
|
-
import type * as React from 'react'
|
|
7
7
|
|
|
8
8
|
function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
|
|
9
9
|
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { cn } from '@admin/utils/shared/cn'
|
|
2
|
-
import { cva, type VariantProps } from 'class-variance-authority'
|
|
3
1
|
import type * as React from 'react'
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
3
|
+
import { cn } from '@admin/utils/shared/cn'
|
|
4
|
+
import { cva } from 'class-variance-authority'
|
|
4
5
|
|
|
5
6
|
const alertVariants = cva(
|
|
6
7
|
"group/alert relative grid w-full gap-0.5 rounded-sm border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-foreground *:[svg:not([class*='size-'])]:size-4",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type * as React from 'react'
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
1
3
|
import { cn } from '@admin/utils/shared/cn'
|
|
2
|
-
import { cva
|
|
4
|
+
import { cva } from 'class-variance-authority'
|
|
3
5
|
import { Slot } from 'radix-ui'
|
|
4
|
-
import type * as React from 'react'
|
|
5
6
|
|
|
6
7
|
const badgeVariants = cva(
|
|
7
8
|
'group/badge inline-flex h-6 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-sm border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type * as React from 'react'
|
|
1
2
|
import { cn } from '@admin/utils/shared/cn'
|
|
2
3
|
import { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react'
|
|
3
4
|
import { Slot } from 'radix-ui'
|
|
4
|
-
import type * as React from 'react'
|
|
5
5
|
|
|
6
6
|
function Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>) {
|
|
7
7
|
return <nav aria-label="breadcrumb" data-slot="breadcrumb" className={cn(className)} {...props} />
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
1
2
|
import { Separator } from '@admin/components/ui/separator'
|
|
2
3
|
import { cn } from '@admin/utils/shared/cn'
|
|
3
|
-
import { cva
|
|
4
|
+
import { cva } from 'class-variance-authority'
|
|
4
5
|
import { Slot } from 'radix-ui'
|
|
5
6
|
|
|
6
7
|
const buttonGroupVariants = cva(
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
1
3
|
import { cn } from '@admin/utils/shared/cn'
|
|
2
|
-
import { cva
|
|
4
|
+
import { cva } from 'class-variance-authority'
|
|
3
5
|
import { Slot } from 'radix-ui'
|
|
4
|
-
import * as React from 'react'
|
|
5
6
|
|
|
6
7
|
const buttonVariants = cva(
|
|
7
8
|
"group/button inline-flex min-w-0 shrink-0 cursor-pointer items-center justify-center rounded-sm bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:not-aria-[haspopup]:scale-97 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:[stroke-width:1.5] [&_svg]:text-current [&_svg:not([class*='size-'])]:size-3.5",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import type { DayButton, Locale } from 'react-day-picker'
|
|
3
5
|
import { Button, buttonVariants } from '@admin/components/ui/button'
|
|
4
6
|
import { cn } from '@admin/utils/shared/cn'
|
|
5
7
|
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'
|
|
6
|
-
import
|
|
7
|
-
import { type DayButton, DayPicker, getDefaultClassNames, type Locale } from 'react-day-picker'
|
|
8
|
+
import { DayPicker, getDefaultClassNames } from 'react-day-picker'
|
|
8
9
|
|
|
9
10
|
function Calendar({
|
|
10
11
|
className,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import type { UseEmblaCarouselType } from 'embla-carousel-react'
|
|
3
5
|
import { Button } from '@admin/components/ui/button'
|
|
4
6
|
import { cn } from '@admin/utils/shared/cn'
|
|
5
|
-
import useEmblaCarousel
|
|
7
|
+
import useEmblaCarousel from 'embla-carousel-react'
|
|
6
8
|
import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'
|
|
7
|
-
import * as React from 'react'
|
|
8
9
|
|
|
9
10
|
type CarouselApi = UseEmblaCarouselType[1]
|
|
10
11
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import { cn } from '@admin/utils/shared/cn'
|
|
4
3
|
import * as React from 'react'
|
|
5
4
|
import * as RechartsPrimitive from 'recharts'
|
|
5
|
+
import { cn } from '@admin/utils/shared/cn'
|
|
6
6
|
|
|
7
|
-
// Format: { THEME_NAME: CSS_SELECTOR }
|
|
8
7
|
const THEMES = { light: '', dark: '.dark' } as const
|
|
9
8
|
|
|
10
9
|
const INITIAL_DIMENSION = { width: 320, height: 200 } as const
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type * as React from 'react'
|
|
3
4
|
import { cn } from '@admin/utils/shared/cn'
|
|
4
5
|
import { CheckIcon } from 'lucide-react'
|
|
5
6
|
import { Checkbox as CheckboxPrimitive } from 'radix-ui'
|
|
6
|
-
import type * as React from 'react'
|
|
7
7
|
|
|
8
8
|
function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
|
|
9
9
|
return (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import * as React from 'react'
|
|
3
4
|
import { Button } from '@admin/components/ui/button'
|
|
4
5
|
import {
|
|
5
6
|
InputGroup,
|
|
@@ -10,7 +11,6 @@ import {
|
|
|
10
11
|
import { cn } from '@admin/utils/shared/cn'
|
|
11
12
|
import { Combobox as ComboboxPrimitive } from '@base-ui/react'
|
|
12
13
|
import { CheckIcon, ChevronDownIcon, XIcon } from 'lucide-react'
|
|
13
|
-
import * as React from 'react'
|
|
14
14
|
|
|
15
15
|
const Combobox = ComboboxPrimitive.Root
|
|
16
16
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type * as React from 'react'
|
|
3
4
|
import {
|
|
4
5
|
Dialog,
|
|
5
6
|
DialogContent,
|
|
@@ -11,7 +12,6 @@ import { InputGroup, InputGroupAddon } from '@admin/components/ui/input-group'
|
|
|
11
12
|
import { cn } from '@admin/utils/shared/cn'
|
|
12
13
|
import { Command as CommandPrimitive } from 'cmdk'
|
|
13
14
|
import { CheckIcon, SearchIcon } from 'lucide-react'
|
|
14
|
-
import type * as React from 'react'
|
|
15
15
|
|
|
16
16
|
function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {
|
|
17
17
|
return (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type * as React from 'react'
|
|
3
4
|
import { cn } from '@admin/utils/shared/cn'
|
|
4
5
|
import { CheckIcon, ChevronRightIcon } from 'lucide-react'
|
|
5
6
|
import { ContextMenu as ContextMenuPrimitive } from 'radix-ui'
|
|
6
|
-
import type * as React from 'react'
|
|
7
7
|
|
|
8
8
|
function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
|
|
9
9
|
return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type * as React from 'react'
|
|
3
4
|
import { Button } from '@admin/components/ui/button'
|
|
4
5
|
import { cn } from '@admin/utils/shared/cn'
|
|
5
6
|
import { XIcon } from 'lucide-react'
|
|
6
7
|
import { Dialog as DialogPrimitive } from 'radix-ui'
|
|
7
|
-
import type * as React from 'react'
|
|
8
8
|
|
|
9
9
|
function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {
|
|
10
10
|
return <DialogPrimitive.Root data-slot="dialog" {...props} />
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type * as React from 'react'
|
|
3
4
|
import { cn } from '@admin/utils/shared/cn'
|
|
4
5
|
import { CheckIcon, ChevronRightIcon } from 'lucide-react'
|
|
5
6
|
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui'
|
|
6
|
-
import type * as React from 'react'
|
|
7
7
|
|
|
8
8
|
function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
|
|
9
9
|
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
1
2
|
import { cn } from '@admin/utils/shared/cn'
|
|
2
|
-
import { cva
|
|
3
|
+
import { cva } from 'class-variance-authority'
|
|
3
4
|
|
|
4
5
|
function Empty({ className, ...props }: React.ComponentProps<'div'>) {
|
|
5
6
|
return (
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
3
4
|
import { Label } from '@admin/components/ui/label'
|
|
4
5
|
import { Separator } from '@admin/components/ui/separator'
|
|
5
6
|
import { cn } from '@admin/utils/shared/cn'
|
|
6
|
-
import { cva
|
|
7
|
+
import { cva } from 'class-variance-authority'
|
|
7
8
|
import { useMemo } from 'react'
|
|
8
9
|
|
|
9
10
|
function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>) {
|