@contember/create 2.1.0-alpha.8 → 2.1.0-beta.1
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/development/run.cjs +6 -4
- package/dist/development/run.cjs.map +1 -1
- package/dist/development/run.js +6 -4
- package/dist/development/run.js.map +1 -1
- package/dist/development/src/commands/WorkspaceCreateCommand.cjs +37 -23
- package/dist/development/src/commands/WorkspaceCreateCommand.cjs.map +1 -1
- package/dist/development/src/commands/WorkspaceCreateCommand.js +37 -23
- package/dist/development/src/commands/WorkspaceCreateCommand.js.map +1 -1
- package/dist/development/src/lib/FileSystem.cjs +1 -0
- package/dist/development/src/lib/FileSystem.cjs.map +1 -1
- package/dist/development/src/lib/FileSystem.js +1 -0
- package/dist/development/src/lib/FileSystem.js.map +1 -1
- package/dist/development/src/lib/TemplateInstaller.cjs +28 -12
- package/dist/development/src/lib/TemplateInstaller.cjs.map +1 -1
- package/dist/development/src/lib/TemplateInstaller.js +28 -12
- package/dist/development/src/lib/TemplateInstaller.js.map +1 -1
- package/dist/development/src/lib/packageManagerDetector.cjs +22 -0
- package/dist/development/src/lib/packageManagerDetector.cjs.map +1 -0
- package/dist/development/src/lib/packageManagerDetector.js +22 -0
- package/dist/development/src/lib/packageManagerDetector.js.map +1 -0
- package/dist/development/src/lib/version.cjs.map +1 -1
- package/dist/development/src/lib/version.js.map +1 -1
- package/dist/development/src/paths.cjs.map +1 -1
- package/dist/development/src/paths.js.map +1 -1
- package/dist/production/run.cjs +6 -4
- package/dist/production/run.cjs.map +1 -1
- package/dist/production/run.js +6 -4
- package/dist/production/run.js.map +1 -1
- package/dist/production/src/commands/WorkspaceCreateCommand.cjs +37 -23
- package/dist/production/src/commands/WorkspaceCreateCommand.cjs.map +1 -1
- package/dist/production/src/commands/WorkspaceCreateCommand.js +37 -23
- package/dist/production/src/commands/WorkspaceCreateCommand.js.map +1 -1
- package/dist/production/src/lib/FileSystem.cjs +1 -0
- package/dist/production/src/lib/FileSystem.cjs.map +1 -1
- package/dist/production/src/lib/FileSystem.js +1 -0
- package/dist/production/src/lib/FileSystem.js.map +1 -1
- package/dist/production/src/lib/TemplateInstaller.cjs +28 -12
- package/dist/production/src/lib/TemplateInstaller.cjs.map +1 -1
- package/dist/production/src/lib/TemplateInstaller.js +28 -12
- package/dist/production/src/lib/TemplateInstaller.js.map +1 -1
- package/dist/production/src/lib/packageManagerDetector.cjs +22 -0
- package/dist/production/src/lib/packageManagerDetector.cjs.map +1 -0
- package/dist/production/src/lib/packageManagerDetector.js +22 -0
- package/dist/production/src/lib/packageManagerDetector.js.map +1 -0
- package/dist/production/src/lib/version.cjs.map +1 -1
- package/dist/production/src/lib/version.js.map +1 -1
- package/dist/production/src/paths.cjs.map +1 -1
- package/dist/production/src/paths.js.map +1 -1
- package/dist/types/commands/WorkspaceCreateCommand.d.ts +4 -2
- package/dist/types/commands/WorkspaceCreateCommand.d.ts.map +1 -1
- package/dist/types/lib/FileSystem.d.ts +1 -0
- package/dist/types/lib/FileSystem.d.ts.map +1 -1
- package/dist/types/lib/TemplateInstaller.d.ts.map +1 -1
- package/dist/types/lib/packageManagerDetector.d.ts +3 -0
- package/dist/types/lib/packageManagerDetector.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -6
- package/resources/templates/{template-workspace → default}/.github/workflows/deploy.yaml +1 -1
- package/resources/templates/default/.gitignore.dist +154 -0
- package/resources/templates/default/README.md +98 -0
- package/resources/templates/{template-workspace → default}/admin/.env.development +1 -0
- package/resources/templates/{template-workspace → default}/admin/app/components/layout.tsx +7 -3
- package/resources/templates/default/admin/app/components/navigation.tsx +85 -0
- package/resources/templates/{template-workspace → default}/admin/app/index.tsx +4 -4
- package/resources/templates/default/admin/app/pages/tenant.tsx +160 -0
- package/resources/templates/default/admin/entrypoint/components/layout.tsx +14 -0
- package/resources/templates/default/admin/entrypoint/components/logged-in.tsx +47 -0
- package/resources/templates/default/admin/entrypoint/components/login.tsx +103 -0
- package/resources/templates/default/admin/entrypoint/config.ts +35 -0
- package/resources/templates/default/admin/entrypoint/contexts/login.tsx +18 -0
- package/resources/templates/default/admin/entrypoint/index.tsx +12 -0
- package/resources/templates/default/admin/entrypoint/login-entrypoint.tsx +24 -0
- package/resources/templates/default/admin/entrypoint/pages/index.tsx +48 -0
- package/resources/templates/default/admin/entrypoint/pages/magicLink.tsx +56 -0
- package/resources/templates/default/admin/entrypoint/pages/magicLinkSent.tsx +63 -0
- package/resources/templates/default/admin/entrypoint/pages/passwordReset.tsx +44 -0
- package/resources/templates/default/admin/entrypoint/pages/resetRequest.tsx +35 -0
- package/resources/templates/default/admin/entrypoint/pages/resetRequestSuccess.tsx +34 -0
- package/resources/templates/default/admin/index.css +94 -0
- package/resources/templates/{template-workspace → default}/admin/index.html +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/binding/binding.tsx +0 -2
- package/resources/templates/{template-workspace → default}/admin/lib/binding/hooks.tsx +14 -8
- package/resources/templates/default/admin/lib/binding/identity.tsx +51 -0
- package/resources/templates/{template-workspace → default}/admin/lib/binding/navigation-guard-dialog.tsx +12 -8
- package/resources/templates/{template-workspace → default}/admin/lib/binding/persist.tsx +7 -5
- package/resources/templates/{template-workspace → default}/admin/lib/block-repeater/block-repeater.tsx +14 -16
- package/resources/templates/{template-workspace → default}/admin/lib/board/board.tsx +61 -47
- package/resources/templates/{template-workspace → default}/admin/lib/buttons/back-button.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/cells.tsx +49 -35
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/column-header.tsx +47 -38
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/columns.tsx +128 -105
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/elements.tsx +9 -5
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/empty.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/boolean.tsx +1 -4
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/common.tsx +14 -14
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/date.tsx +35 -21
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/defined.tsx +0 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/enum.tsx +24 -30
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/mobile.tsx +2 -3
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/number.tsx +0 -3
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/relation.tsx +36 -30
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/labels.tsx +0 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/loader.tsx +2 -7
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/pagination.tsx +33 -38
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/table.tsx +8 -6
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/tiles.tsx +10 -5
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/toolbar.tsx +10 -7
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/ui.tsx +12 -15
- package/resources/templates/{template-workspace → default}/admin/lib/dev/login-panel.tsx +23 -16
- package/resources/templates/{template-workspace → default}/admin/lib/dict.ts +17 -5
- package/resources/templates/default/admin/lib/dimensions/dimensions.tsx +159 -0
- package/resources/templates/{template-workspace → default}/admin/lib/editor/block-editor.tsx +22 -10
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/baseEditorPlugins.tsx +0 -2
- package/resources/templates/default/admin/lib/editor/common/buttons.tsx +205 -0
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-block-toolbar.tsx +3 -1
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-canvas.tsx +6 -4
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-editable-canvas.tsx +0 -1
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-inline-toolbar.tsx +5 -2
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/AnchorRenderer.tsx +18 -16
- package/resources/templates/default/admin/lib/editor/common/elements/BlockElement.tsx +60 -0
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/HeadingRenderer.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/TableCellElementRenderer.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/TableElementRenderer.tsx +2 -7
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/TableRowElementRenderer.tsx +1 -5
- package/resources/templates/{template-workspace → default}/admin/lib/editor/editor-block.tsx +17 -10
- package/resources/templates/{template-workspace → default}/admin/lib/editor/rich-text-view.tsx +11 -6
- package/resources/templates/{template-workspace → default}/admin/lib/editor/rich-text.tsx +6 -7
- package/resources/templates/default/admin/lib/editor/sortable-block.tsx +57 -0
- package/resources/templates/default/admin/lib/form/container.tsx +72 -0
- package/resources/templates/{template-workspace → default}/admin/lib/form/inputs.tsx +14 -12
- package/resources/templates/{template-workspace → default}/admin/lib/form/select.tsx +93 -51
- package/resources/templates/{template-workspace → default}/admin/lib/form/ui.tsx +1 -1
- package/resources/templates/default/admin/lib/form/upload-repeaters.tsx +221 -0
- package/resources/templates/{template-workspace → default}/admin/lib/form/upload.tsx +61 -62
- package/resources/templates/{template-workspace → default}/admin/lib/labels/enum-labels.ts +6 -3
- package/resources/templates/{template-workspace → default}/admin/lib/labels/field-labels.ts +4 -2
- package/resources/templates/{template-workspace → default}/admin/lib/layout/layout-boxed.tsx +39 -29
- package/resources/templates/{template-workspace → default}/admin/lib/layout/slots.tsx +1 -4
- package/resources/templates/{template-workspace → default}/admin/lib/outdated-application-dialog/outdated-application-dialog.tsx +10 -4
- package/resources/templates/{template-workspace → default}/admin/lib/repeater/repeater.tsx +24 -15
- package/resources/templates/{template-workspace → default}/admin/lib/select/create-new.tsx +0 -3
- package/resources/templates/{template-workspace → default}/admin/lib/select/filter.tsx +0 -1
- package/resources/templates/{template-workspace → default}/admin/lib/select/list.tsx +33 -28
- package/resources/templates/default/admin/lib/select/multi-select.tsx +92 -0
- package/resources/templates/default/admin/lib/select/select.tsx +109 -0
- package/resources/templates/default/admin/lib/select/sortable-select.tsx +138 -0
- package/resources/templates/{template-workspace → default}/admin/lib/select/ui.tsx +13 -11
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/change-my-password.tsx +21 -8
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/common.tsx +21 -12
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/create-api-key.tsx +9 -5
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/invite.tsx +12 -7
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/login.tsx +26 -7
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/memberships-control.tsx +32 -20
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/password-reset-request.tsx +9 -5
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/password-reset.tsx +21 -8
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/passwordless-signin-init.tsx +9 -5
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/passwordless-signin.tsx +25 -12
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/update-project-member.tsx +3 -4
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/hooks/useInviteUser.tsx +2 -3
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/api-key-list.tsx +5 -3
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/member-delete-dialog.tsx +13 -2
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/member-list.tsx +17 -11
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/person-list.tsx +6 -4
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/otp/otp-setup.tsx +86 -59
- package/resources/templates/default/admin/lib/toast/toast.tsx +113 -0
- package/resources/templates/{template-workspace → default}/admin/lib/toast/toaster.tsx +0 -1
- package/resources/templates/{template-workspace → default}/admin/lib/ui/alert-dialog.tsx +4 -3
- package/resources/templates/default/admin/lib/ui/button.tsx +30 -0
- package/resources/templates/{template-workspace → default}/admin/lib/ui/card.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/ui/dialog.tsx +12 -8
- package/resources/templates/default/admin/lib/ui/dimension.tsx +9 -0
- package/resources/templates/{template-workspace → default}/admin/lib/ui/dropdown.tsx +18 -15
- package/resources/templates/default/admin/lib/ui/input.tsx +68 -0
- package/resources/templates/{template-workspace → default}/admin/lib/ui/loader.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/ui/menu.tsx +3 -11
- package/resources/templates/{template-workspace → default}/admin/lib/ui/overlay.tsx +11 -9
- package/resources/templates/{template-workspace → default}/admin/lib/ui/popover.tsx +2 -2
- package/resources/templates/{template-workspace → default}/admin/lib/ui/property-list.tsx +5 -5
- package/resources/templates/{template-workspace → default}/admin/lib/ui/scroll-area.tsx +11 -11
- package/resources/templates/{template-workspace → default}/admin/lib/ui/select.tsx +4 -5
- package/resources/templates/{template-workspace → default}/admin/lib/ui/sheet.tsx +9 -8
- package/resources/templates/{template-workspace → default}/admin/lib/ui/sidebar.tsx +53 -42
- package/resources/templates/{template-workspace → default}/admin/lib/ui/sortable.tsx +1 -1
- package/resources/templates/default/admin/lib/ui/switch.tsx +11 -0
- package/resources/templates/{template-workspace → default}/admin/lib/ui/table.tsx +3 -3
- package/resources/templates/{template-workspace → default}/admin/lib/ui/textarea.tsx +10 -7
- package/resources/templates/{template-workspace → default}/admin/lib/ui/toggle-group.tsx +9 -5
- package/resources/templates/{template-workspace → default}/admin/lib/ui/toggle.tsx +3 -5
- package/resources/templates/{template-workspace → default}/admin/lib/ui/tooltip.tsx +4 -3
- package/resources/templates/{template-workspace → default}/admin/lib/upload/dropzone.tsx +14 -10
- package/resources/templates/{template-workspace → default}/admin/lib/upload/repeater.tsx +0 -1
- package/resources/templates/{template-workspace → default}/admin/lib/upload/ui.tsx +4 -8
- package/resources/templates/{template-workspace → default}/admin/lib/upload/upload-progress.tsx +28 -12
- package/resources/templates/{template-workspace → default}/admin/lib/upload/view.tsx +130 -68
- package/resources/templates/{template-workspace → default}/admin/lib/utils/createComponentOpenHooks.tsx +10 -6
- package/resources/templates/{template-workspace → default}/admin/lib/utils/uic.tsx +24 -14
- package/resources/templates/{template-workspace → default}/admin/lib/utils/use-mobile.ts +1 -3
- package/resources/templates/{template-workspace → default}/admin/package.json +6 -4
- package/resources/templates/default/admin/sentry.ts +26 -0
- package/resources/templates/{template-workspace → default}/admin/tsconfig.json +1 -9
- package/resources/templates/default/admin/vite-env.d.ts +12 -0
- package/resources/templates/default/admin/vite.config.ts +11 -0
- package/resources/templates/default/api/README.md +87 -0
- package/resources/templates/{template-workspace → default}/biome.json +1 -1
- package/resources/templates/default/client/README.md +285 -0
- package/resources/templates/{template-workspace → default}/contember.template.yaml +5 -0
- package/resources/templates/{template-workspace → default}/package.json +1 -1
- package/resources/templates/default/scripts/generate-client.sh +7 -0
- package/resources/templates/default/scripts/update-ui-lib.sh +344 -0
- package/src/commands/WorkspaceCreateCommand.ts +41 -25
- package/src/lib/FileSystem.ts +1 -0
- package/src/lib/TemplateInstaller.ts +32 -12
- package/src/lib/packageManagerDetector.ts +24 -0
- package/src/run.ts +8 -7
- package/resources/templates/template-workspace/.gitignore.dist +0 -3
- package/resources/templates/template-workspace/admin/app/components/navigation.tsx +0 -1
- package/resources/templates/template-workspace/admin/index.css +0 -53
- package/resources/templates/template-workspace/admin/index.tsx +0 -268
- package/resources/templates/template-workspace/admin/lib/binding/identity.tsx +0 -50
- package/resources/templates/template-workspace/admin/lib/dimensions/dimensions.tsx +0 -135
- package/resources/templates/template-workspace/admin/lib/editor/common/buttons.tsx +0 -83
- package/resources/templates/template-workspace/admin/lib/editor/common/elements/BlockElement.tsx +0 -48
- package/resources/templates/template-workspace/admin/lib/editor/sortable-block.tsx +0 -51
- package/resources/templates/template-workspace/admin/lib/form/container.tsx +0 -59
- package/resources/templates/template-workspace/admin/lib/form/upload-repeaters.tsx +0 -188
- package/resources/templates/template-workspace/admin/lib/select/multi-select.tsx +0 -96
- package/resources/templates/template-workspace/admin/lib/select/select.tsx +0 -104
- package/resources/templates/template-workspace/admin/lib/select/sortable-select.tsx +0 -136
- package/resources/templates/template-workspace/admin/lib/toast/toast.tsx +0 -112
- package/resources/templates/template-workspace/admin/lib/ui/button.tsx +0 -29
- package/resources/templates/template-workspace/admin/lib/ui/input.tsx +0 -69
- package/resources/templates/template-workspace/admin/lib/ui/switch.tsx +0 -9
- package/resources/templates/template-workspace/admin/postcss.config.js +0 -6
- package/resources/templates/template-workspace/admin/tailwind.config.js +0 -73
- package/resources/templates/template-workspace/admin/vite-env.d.ts +0 -7
- package/resources/templates/template-workspace/scripts/generate-client.sh +0 -8
- package/resources/templates/{template-workspace → default}/.github/scripts/setup-actions-variables.sh +0 -0
- package/resources/templates/{template-workspace → default}/admin/app/components/logo.tsx +0 -0
- package/resources/templates/{template-workspace → default}/admin/app/config.ts +0 -0
- package/resources/templates/{template-workspace → default}/admin/app/index.html +0 -0
- package/resources/templates/{template-workspace → default}/admin/app/pages/index.tsx +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/binding/delete.tsx +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/binding/index.ts +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/block-repeater/index.ts +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/board/index.ts +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/buttons/index.ts +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/buttons/link-back-button.tsx +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/column-leaf.tsx +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/export.tsx +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/index.ts +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/text.tsx +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/grid.tsx +0 -0
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/index.ts +21 -21
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/layout-switcher.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/dev/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/dev/todo.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/dimensions/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/HorizontalRuleRenderer.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/ListItemRenderer.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/OrderedListRenderer.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/ParagraphRenderer.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/ScrollTargetRenderer.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/UnorderedListRenderer.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/plugins.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/errors/error-boundary.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/errors/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/errors/use-error-formatter.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/field/formatted-field.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/field/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/form/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/form/labels.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/formatting/formatting.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/formatting/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/images/formatImageResizeUrl.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/images/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/labels/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/layout/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/layout/layout.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/outdated-application-dialog/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/repeater/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/select/highlight.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/select/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/hooks/useInvite.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/otp/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/toast/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/avatar.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/collapsible.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/divider.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/label.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/progress.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/separator.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/skeleton.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/upload/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/utils/cn.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/utils/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/public/favicon.png +0 -0
- /package/resources/templates/{template-workspace → default}/api/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/api/migrations/.gitkeep +0 -0
- /package/resources/templates/{template-workspace → default}/api/model/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/api/package.json +0 -0
- /package/resources/templates/{template-workspace → default}/api/tsconfig.json +0 -0
- /package/resources/templates/{template-workspace → default}/client/package.json +0 -0
- /package/resources/templates/{template-workspace → default}/client/src/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/client/tsconfig.json +0 -0
- /package/resources/templates/{template-workspace → default}/docker-compose.yaml +0 -0
- /package/resources/templates/{template-workspace → default}/tsconfig.json +0 -0
- /package/resources/templates/{template-workspace → default}/tsconfig.settings.json +0 -0
|
@@ -19,7 +19,7 @@ const PopoverContent = React.forwardRef<
|
|
|
19
19
|
align={align}
|
|
20
20
|
sideOffset={sideOffset}
|
|
21
21
|
className={cn(
|
|
22
|
-
'z-50 min-w-40 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-
|
|
22
|
+
'z-50 min-w-40 rounded-md border border-gray-200 bg-popover p-4 text-popover-foreground shadow-md outline-hidden',
|
|
23
23
|
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
24
24
|
className,
|
|
25
25
|
)}
|
|
@@ -29,4 +29,4 @@ const PopoverContent = React.forwardRef<
|
|
|
29
29
|
))
|
|
30
30
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName
|
|
31
31
|
|
|
32
|
-
export { Popover,
|
|
32
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger }
|
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react'
|
|
|
2
2
|
import { uic } from '../utils'
|
|
3
3
|
|
|
4
4
|
export const PropertyList = uic('div', {
|
|
5
|
-
baseClass: 'relative overflow-auto bg-gray-50/50 max-w-lg border rounded-md grid grid-cols-[max-
|
|
5
|
+
baseClass: 'relative overflow-auto bg-gray-50/50 max-w-lg border border-gray-200 rounded-md grid grid-cols-[max-content_1fr]',
|
|
6
6
|
displayName: 'PropertyList',
|
|
7
7
|
})
|
|
8
8
|
|
|
@@ -11,23 +11,23 @@ export const PropertyRow = uic('div', {
|
|
|
11
11
|
})
|
|
12
12
|
|
|
13
13
|
export const PropertyLabel = uic('div', {
|
|
14
|
-
baseClass: 'text-sm min-w-32 border-b group-last:border-b-none px-4 py-3',
|
|
14
|
+
baseClass: 'text-sm min-w-32 border-b border-gray-200 group-last:border-b-none px-4 py-3',
|
|
15
15
|
displayName: 'PropertyLabel',
|
|
16
16
|
})
|
|
17
17
|
|
|
18
18
|
export const PropertyValue = uic('div', {
|
|
19
|
-
baseClass: 'text-sm font-semibold border-b group-last:border-b-none px-4 py-3',
|
|
19
|
+
baseClass: 'text-sm font-semibold border-b border-gray-200 group-last:border-b-none px-4 py-3',
|
|
20
20
|
displayName: 'PropertyValue',
|
|
21
21
|
})
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Shortcut for creating a property list item with a label and a value.
|
|
25
25
|
*/
|
|
26
|
-
export const PropertyItem = (
|
|
26
|
+
export const PropertyItem = ({ label, children }: { label: string; children: ReactNode }) => {
|
|
27
27
|
return (
|
|
28
28
|
<PropertyRow>
|
|
29
29
|
<PropertyLabel>{label}</PropertyLabel>
|
|
30
30
|
<PropertyValue>{children}</PropertyValue>
|
|
31
31
|
</PropertyRow>
|
|
32
32
|
)
|
|
33
|
-
}
|
|
33
|
+
}
|
|
@@ -3,8 +3,8 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'
|
|
|
3
3
|
import { cn } from '../utils'
|
|
4
4
|
|
|
5
5
|
const ScrollArea = React.forwardRef<
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
React.ElementRef<typeof ScrollAreaPrimitive.Root>,
|
|
7
|
+
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
|
|
8
8
|
>(({ className, children, ...props }, ref) => (
|
|
9
9
|
<ScrollAreaPrimitive.Root
|
|
10
10
|
ref={ref}
|
|
@@ -14,30 +14,30 @@ const ScrollArea = React.forwardRef<
|
|
|
14
14
|
<ScrollAreaPrimitive.Viewport className={cn('h-full w-full rounded-[inherit]', className)}>
|
|
15
15
|
{children}
|
|
16
16
|
</ScrollAreaPrimitive.Viewport>
|
|
17
|
-
<ScrollBar/>
|
|
18
|
-
<ScrollAreaPrimitive.Corner/>
|
|
17
|
+
<ScrollBar />
|
|
18
|
+
<ScrollAreaPrimitive.Corner />
|
|
19
19
|
</ScrollAreaPrimitive.Root>
|
|
20
20
|
))
|
|
21
21
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
|
|
22
22
|
|
|
23
23
|
const ScrollBar = React.forwardRef<
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
|
|
25
|
+
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
26
26
|
>(({ className, orientation = 'vertical', ...props }, ref) => (
|
|
27
27
|
<ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
28
28
|
ref={ref}
|
|
29
29
|
orientation={orientation}
|
|
30
30
|
className={cn(
|
|
31
31
|
'flex touch-none select-none transition-colors',
|
|
32
|
-
orientation === 'vertical'
|
|
33
|
-
|
|
34
|
-
orientation === 'horizontal'
|
|
35
|
-
|
|
32
|
+
orientation === 'vertical'
|
|
33
|
+
&& 'h-full w-2.5 border-l border-l-transparent p-[1px]',
|
|
34
|
+
orientation === 'horizontal'
|
|
35
|
+
&& 'h-2.5 flex-col border-t border-t-transparent p-[1px]',
|
|
36
36
|
className,
|
|
37
37
|
)}
|
|
38
38
|
{...props}
|
|
39
39
|
>
|
|
40
|
-
<ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border"/>
|
|
40
|
+
<ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
|
|
41
41
|
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
42
42
|
))
|
|
43
43
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
|
|
@@ -11,7 +11,7 @@ export const SelectValue = SelectPrimitive.Value
|
|
|
11
11
|
|
|
12
12
|
export const SelectTrigger = uic(SelectPrimitive.Trigger, {
|
|
13
13
|
baseClass:
|
|
14
|
-
'flex gap-1 h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-
|
|
14
|
+
'flex gap-1 h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',
|
|
15
15
|
afterChildren: (
|
|
16
16
|
<SelectPrimitive.Icon asChild>
|
|
17
17
|
<ChevronDown className="h-4 w-4 opacity-50" />
|
|
@@ -34,12 +34,11 @@ export const SelectScrollDownButton = uic(SelectPrimitive.ScrollDownButton, {
|
|
|
34
34
|
|
|
35
35
|
export const SelectContent = uic(SelectPrimitive.Content, {
|
|
36
36
|
baseClass:
|
|
37
|
-
'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
37
|
+
'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
38
38
|
displayName: SelectPrimitive.Content.displayName,
|
|
39
39
|
variants: {
|
|
40
40
|
position: {
|
|
41
|
-
popper:
|
|
42
|
-
'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
|
|
41
|
+
popper: 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
|
|
43
42
|
},
|
|
44
43
|
},
|
|
45
44
|
defaultVariants: {
|
|
@@ -63,7 +62,7 @@ export const SelectLabel = uic(SelectPrimitive.Label, {
|
|
|
63
62
|
|
|
64
63
|
export const SelectItem = uic(SelectPrimitive.Item, {
|
|
65
64
|
baseClass:
|
|
66
|
-
'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
65
|
+
'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
67
66
|
beforeChildren: (
|
|
68
67
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
69
68
|
<SelectPrimitive.ItemIndicator>
|
|
@@ -13,17 +13,20 @@ export const SheetClose = SheetPrimitive.Close
|
|
|
13
13
|
export const SheetPortal = SheetPrimitive.Portal
|
|
14
14
|
|
|
15
15
|
export const SheetOverlay = uic(SheetPrimitive.Overlay, {
|
|
16
|
-
baseClass:
|
|
16
|
+
baseClass:
|
|
17
|
+
'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
|
|
17
18
|
displayName: 'SheetOverlay',
|
|
18
19
|
})
|
|
19
20
|
|
|
20
21
|
export const SheetContent = uic(SheetPrimitive.Content, {
|
|
21
|
-
baseClass:
|
|
22
|
+
baseClass:
|
|
23
|
+
'fixed z-50 gap-4 bg-background p-6 shadow-lg overflow-auto transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
|
|
22
24
|
variants: {
|
|
23
25
|
side: {
|
|
24
|
-
top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',
|
|
25
|
-
bottom: 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',
|
|
26
|
-
left:
|
|
26
|
+
top: 'inset-x-0 top-0 border-b border-gray-200 data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',
|
|
27
|
+
bottom: 'inset-x-0 bottom-0 border-t border-gray-200 data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',
|
|
28
|
+
left:
|
|
29
|
+
'inset-y-0 left-0 h-full w-3/4 border-r border-gray-200 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',
|
|
27
30
|
right: 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',
|
|
28
31
|
},
|
|
29
32
|
},
|
|
@@ -35,7 +38,7 @@ export const SheetContent = uic(SheetPrimitive.Content, {
|
|
|
35
38
|
<SheetPortal>
|
|
36
39
|
{/*<SheetOverlay />*/}
|
|
37
40
|
{props.children}
|
|
38
|
-
<SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-
|
|
41
|
+
<SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
|
|
39
42
|
<XIcon className="h-4 w-4" />
|
|
40
43
|
<span className="sr-only">Close</span>
|
|
41
44
|
</SheetPrimitive.Close>
|
|
@@ -43,13 +46,11 @@ export const SheetContent = uic(SheetPrimitive.Content, {
|
|
|
43
46
|
),
|
|
44
47
|
})
|
|
45
48
|
|
|
46
|
-
|
|
47
49
|
export const SheetHeader = uic('div', {
|
|
48
50
|
baseClass: 'flex flex-col space-y-2 text-center sm:text-left',
|
|
49
51
|
displayName: 'SheetHeader',
|
|
50
52
|
})
|
|
51
53
|
|
|
52
|
-
|
|
53
54
|
export const SheetFooter = uic('div', {
|
|
54
55
|
baseClass: 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',
|
|
55
56
|
displayName: 'SheetFooter',
|
|
@@ -3,18 +3,7 @@ import { dataAttribute } from '@contember/utilities'
|
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot'
|
|
4
4
|
import { cva, VariantProps } from 'class-variance-authority'
|
|
5
5
|
import { PanelLeft } from 'lucide-react'
|
|
6
|
-
import {
|
|
7
|
-
ComponentProps,
|
|
8
|
-
CSSProperties,
|
|
9
|
-
ElementRef,
|
|
10
|
-
forwardRef,
|
|
11
|
-
PropsWithChildren,
|
|
12
|
-
ReactNode,
|
|
13
|
-
useCallback,
|
|
14
|
-
useEffect,
|
|
15
|
-
useMemo,
|
|
16
|
-
useState,
|
|
17
|
-
} from 'react'
|
|
6
|
+
import { ComponentProps, CSSProperties, ElementRef, forwardRef, PropsWithChildren, ReactNode, useCallback, useEffect, useMemo, useState } from 'react'
|
|
18
7
|
import { cn, uic } from '../utils'
|
|
19
8
|
import { useIsMobile } from '../utils/use-mobile'
|
|
20
9
|
import { Button } from './button'
|
|
@@ -52,7 +41,10 @@ interface SidebarProviderProps extends PropsWithChildren {
|
|
|
52
41
|
const [ctx, useSidebar] = createRequiredContext<SidebarContext>('SidebarContext')
|
|
53
42
|
|
|
54
43
|
export const SidebarProvider = ({
|
|
55
|
-
defaultOpen = true,
|
|
44
|
+
defaultOpen = true,
|
|
45
|
+
open: openProp,
|
|
46
|
+
onOpenChange,
|
|
47
|
+
children,
|
|
56
48
|
}: SidebarProviderProps) => {
|
|
57
49
|
const isMobile = useIsMobile()
|
|
58
50
|
const [openMobile, setOpenMobile] = useState(false)
|
|
@@ -70,6 +62,7 @@ export const SidebarProvider = ({
|
|
|
70
62
|
_setOpen(openState)
|
|
71
63
|
}
|
|
72
64
|
|
|
65
|
+
// biome-ignore lint/suspicious/noDocumentCookie: sidebar state persistence
|
|
73
66
|
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`
|
|
74
67
|
},
|
|
75
68
|
[onOpenChange, open],
|
|
@@ -80,8 +73,8 @@ export const SidebarProvider = ({
|
|
|
80
73
|
useEffect(() => {
|
|
81
74
|
const handleKeyDown = (event: KeyboardEvent) => {
|
|
82
75
|
if (
|
|
83
|
-
event.key === SIDEBAR_KEYBOARD_SHORTCUT
|
|
84
|
-
(event.metaKey || event.ctrlKey)
|
|
76
|
+
event.key === SIDEBAR_KEYBOARD_SHORTCUT
|
|
77
|
+
&& (event.metaKey || event.ctrlKey)
|
|
85
78
|
) {
|
|
86
79
|
event.preventDefault()
|
|
87
80
|
toggleSidebar()
|
|
@@ -92,6 +85,7 @@ export const SidebarProvider = ({
|
|
|
92
85
|
return () => window.removeEventListener('keydown', handleKeyDown)
|
|
93
86
|
}, [toggleSidebar])
|
|
94
87
|
|
|
88
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: intentional
|
|
95
89
|
const contextValue = useMemo(
|
|
96
90
|
() => ({
|
|
97
91
|
state: open ? 'expanded' : 'collapsed',
|
|
@@ -116,7 +110,8 @@ export const SidebarProvider = ({
|
|
|
116
110
|
SidebarProvider.displayName = 'SidebarProvider'
|
|
117
111
|
|
|
118
112
|
export const SidebarLayout = uic('div', {
|
|
119
|
-
baseClass:
|
|
113
|
+
baseClass:
|
|
114
|
+
'group/sidebar-wrapper grid min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar max-h-screen max-w-[100vw] overflow-y-auto md:grid-cols-[auto_1fr_auto]',
|
|
120
115
|
// Add grid template columns
|
|
121
116
|
style: {
|
|
122
117
|
'--sidebar-width': SIDEBAR_WIDTH,
|
|
@@ -139,7 +134,7 @@ export const SidebarInset = uic('main', {
|
|
|
139
134
|
|
|
140
135
|
export const SidebarInsetHeader = uic('header', {
|
|
141
136
|
baseClass: [
|
|
142
|
-
'bg-background z-50 flex justify-between h-16 shrink-0 items-center gap-2 border-b
|
|
137
|
+
'bg-background z-50 flex justify-between h-16 shrink-0 items-center gap-2 border-b border-gray-200',
|
|
143
138
|
'transition-[width,height] ease-linear',
|
|
144
139
|
'group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12',
|
|
145
140
|
],
|
|
@@ -147,7 +142,7 @@ export const SidebarInsetHeader = uic('header', {
|
|
|
147
142
|
})
|
|
148
143
|
|
|
149
144
|
export const SidebarInsetContent = uic('div', {
|
|
150
|
-
baseClass: 'overflow-y-auto
|
|
145
|
+
baseClass: 'overflow-y-auto p-4',
|
|
151
146
|
displayName: 'SidebarInsetContent',
|
|
152
147
|
})
|
|
153
148
|
|
|
@@ -157,21 +152,22 @@ export const SidebarInsetHeaderActions = uic('div', {
|
|
|
157
152
|
})
|
|
158
153
|
|
|
159
154
|
const SidebarNone = uic('div', {
|
|
160
|
-
baseClass: 'flex h-full w-
|
|
155
|
+
baseClass: 'flex h-full w-(--sidebar-width) 2xl:w-(--sidebar-width-large) flex-col bg-sidebar text-sidebar-foreground',
|
|
161
156
|
displayName: 'SidebarNone',
|
|
162
157
|
})
|
|
163
158
|
|
|
164
159
|
const SidebarDesktopGap = uic('div', {
|
|
165
160
|
baseClass: [
|
|
166
|
-
'duration-200 relative w-
|
|
161
|
+
'duration-200 relative w-(--sidebar-width) 2xl:w-(--sidebar-width-large) bg-transparent transition-[width] ease-linear',
|
|
167
162
|
'group-data-[collapsible=offcanvas]:w-0',
|
|
168
163
|
'group-data-[side=right]:rotate-180',
|
|
169
164
|
],
|
|
170
165
|
variants: {
|
|
171
166
|
variant: {
|
|
172
|
-
floating:
|
|
167
|
+
floating:
|
|
168
|
+
'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))] 2xl:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon-large)_+_theme(spacing.4))]',
|
|
173
169
|
inset: 'group-data-[collapsible=icon]:w-5',
|
|
174
|
-
sidebar: 'group-data-[collapsible=icon]:w-
|
|
170
|
+
sidebar: 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) 2xl:group-data-[collapsible=icon]:w-(--sidebar-width-icon-large)',
|
|
175
171
|
},
|
|
176
172
|
},
|
|
177
173
|
displayName: 'SidebarDesktopGap',
|
|
@@ -181,20 +177,25 @@ const SidebarInner = uic('div', {
|
|
|
181
177
|
baseClass: 'duration-200 fixed inset-y-0 z-10 hidden h-svh transition-[left,right,width] ease-linear md:block',
|
|
182
178
|
variants: {
|
|
183
179
|
side: {
|
|
184
|
-
left:
|
|
185
|
-
|
|
180
|
+
left:
|
|
181
|
+
'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] 2xl:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width-large)*-1)]',
|
|
182
|
+
right:
|
|
183
|
+
'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] 2xl:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width-large)*-1)]',
|
|
186
184
|
},
|
|
187
185
|
variant: {
|
|
188
|
-
floating:
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
floating:
|
|
187
|
+
'p-2 w-(--sidebar-width) 2xl:w-(--sidebar-width-large) group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)] 2xl:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon-large)_+_theme(spacing.4)_+2px)]',
|
|
188
|
+
inset: 'p-2 w-(--sidebar-width) 2xl:w-(--sidebar-width-large) group-data-[collapsible=icon]:w-5',
|
|
189
|
+
sidebar:
|
|
190
|
+
'w-(--sidebar-width) 2xl:w-(--sidebar-width-large) group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=left]:border-gray-200 group-data-[side=right]:border-l 2xl:group-data-[collapsible=icon]:w-(--sidebar-width-icon-large)',
|
|
191
191
|
},
|
|
192
192
|
},
|
|
193
193
|
variantsAsDataAttrs: ['variant', 'side'],
|
|
194
|
-
wrapInner: ({ children }) =>
|
|
194
|
+
wrapInner: ({ children }) => (
|
|
195
195
|
<div data-sidebar="sidebar" className="grid h-full w-full grid-rows-[auto_1fr_auto]">
|
|
196
196
|
{children}
|
|
197
|
-
</div
|
|
197
|
+
</div>
|
|
198
|
+
),
|
|
198
199
|
displayName: 'SidebarInner',
|
|
199
200
|
})
|
|
200
201
|
|
|
@@ -222,7 +223,7 @@ export const Sidebar = forwardRef<HTMLDivElement, SidebarProps>(
|
|
|
222
223
|
<SheetContent
|
|
223
224
|
data-sidebar="sidebar"
|
|
224
225
|
data-mobile={dataAttribute(true)}
|
|
225
|
-
className="w-
|
|
226
|
+
className="w-(--sidebar-width) 2xl:w-(--sidebar-width-large) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
|
|
226
227
|
style={{ '--sidebar-width': SIDEBAR_WIDTH_MOBILE } as CSSProperties}
|
|
227
228
|
side={side}
|
|
228
229
|
>
|
|
@@ -251,7 +252,6 @@ export const Sidebar = forwardRef<HTMLDivElement, SidebarProps>(
|
|
|
251
252
|
)
|
|
252
253
|
Sidebar.displayName = 'Sidebar'
|
|
253
254
|
|
|
254
|
-
|
|
255
255
|
export const SidebarTrigger = forwardRef<ElementRef<typeof Button>, ComponentProps<typeof Button>>(({
|
|
256
256
|
className,
|
|
257
257
|
onClick,
|
|
@@ -260,10 +260,18 @@ export const SidebarTrigger = forwardRef<ElementRef<typeof Button>, ComponentPro
|
|
|
260
260
|
const { toggleSidebar } = useSidebar()
|
|
261
261
|
|
|
262
262
|
return (
|
|
263
|
-
<Button
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
<Button
|
|
264
|
+
ref={ref}
|
|
265
|
+
data-sidebar="trigger"
|
|
266
|
+
variant="ghost"
|
|
267
|
+
size="icon"
|
|
268
|
+
className={cn('h-7 w-7', className)}
|
|
269
|
+
onClick={event => {
|
|
270
|
+
onClick?.(event)
|
|
271
|
+
toggleSidebar()
|
|
272
|
+
}}
|
|
273
|
+
{...props}
|
|
274
|
+
>
|
|
267
275
|
<PanelLeft size={16} />
|
|
268
276
|
<span className="sr-only">Toggle Sidebar</span>
|
|
269
277
|
</Button>
|
|
@@ -348,7 +356,7 @@ export const SidebarGroup = uic('div', {
|
|
|
348
356
|
|
|
349
357
|
export const SidebarGroupLabel = uic('div', {
|
|
350
358
|
baseClass: [
|
|
351
|
-
'duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-
|
|
359
|
+
'duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
|
|
352
360
|
'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',
|
|
353
361
|
],
|
|
354
362
|
defaultProps: {
|
|
@@ -359,7 +367,7 @@ export const SidebarGroupLabel = uic('div', {
|
|
|
359
367
|
|
|
360
368
|
export const SidebarGroupAction = uic('button', {
|
|
361
369
|
baseClass: [
|
|
362
|
-
'absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-
|
|
370
|
+
'absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
|
|
363
371
|
// Increases the hit area of the button on mobile.
|
|
364
372
|
'after:absolute after:-inset-2 after:md:hidden',
|
|
365
373
|
'group-data-[collapsible=icon]:hidden',
|
|
@@ -396,7 +404,7 @@ export const SidebarMenuItem = uic('li', {
|
|
|
396
404
|
|
|
397
405
|
export const sidebarMenuButtonVariants = cva(
|
|
398
406
|
[
|
|
399
|
-
'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-
|
|
407
|
+
'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring',
|
|
400
408
|
'transition-[width,height,padding]',
|
|
401
409
|
'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
|
|
402
410
|
'focus-visible:ring-2',
|
|
@@ -473,7 +481,9 @@ export const SidebarMenuButton = forwardRef<HTMLAnchorElement, SidebarMenuButton
|
|
|
473
481
|
side="right"
|
|
474
482
|
align="center"
|
|
475
483
|
hidden={state !== 'collapsed' || isMobile}
|
|
476
|
-
>
|
|
484
|
+
>
|
|
485
|
+
{tooltip}
|
|
486
|
+
</TooltipContent>
|
|
477
487
|
</Tooltip>
|
|
478
488
|
)
|
|
479
489
|
},
|
|
@@ -482,7 +492,7 @@ SidebarMenuButton.displayName = 'SidebarMenuButton'
|
|
|
482
492
|
|
|
483
493
|
export const SidebarMenuAction = uic('button', {
|
|
484
494
|
baseClass: [
|
|
485
|
-
'absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-
|
|
495
|
+
'absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2',
|
|
486
496
|
'peer-hover/menu-button:text-sidebar-accent-foreground',
|
|
487
497
|
'[&>svg]:size-4 [&>svg]:shrink-0',
|
|
488
498
|
// Increases the hit area of the button on mobile.
|
|
@@ -497,7 +507,8 @@ export const SidebarMenuAction = uic('button', {
|
|
|
497
507
|
},
|
|
498
508
|
variants: {
|
|
499
509
|
showInHover: {
|
|
500
|
-
true:
|
|
510
|
+
true:
|
|
511
|
+
'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0',
|
|
501
512
|
},
|
|
502
513
|
},
|
|
503
514
|
displayName: '',
|
|
@@ -540,7 +551,7 @@ export const SidebarMenuSkeleton = forwardRef<HTMLDivElement, SidebarMenuSkeleto
|
|
|
540
551
|
{showIcon && <Skeleton className="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />}
|
|
541
552
|
<Skeleton
|
|
542
553
|
style={{ '--skeleton-width': width } as CSSProperties}
|
|
543
|
-
className="h-4 flex-1 max-w-
|
|
554
|
+
className="h-4 flex-1 max-w-(--skeleton-width)"
|
|
544
555
|
data-sidebar="menu-skeleton-text"
|
|
545
556
|
/>
|
|
546
557
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { uic } from '../utils'
|
|
2
2
|
|
|
3
3
|
export const DropIndicator = uic('div', {
|
|
4
|
-
baseClass: 'bg-blue-300 rounded shadow-lg shadow-blue-700 absolute',
|
|
4
|
+
baseClass: 'bg-blue-300 rounded-sm shadow-lg shadow-blue-700 absolute',
|
|
5
5
|
variants: {
|
|
6
6
|
placement: {
|
|
7
7
|
top: 'w-full h-1 -top-1',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch'
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
import { uic } from '../utils'
|
|
4
|
+
|
|
5
|
+
export const Switch = uic(SwitchPrimitives.Root, {
|
|
6
|
+
baseClass:
|
|
7
|
+
'peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',
|
|
8
|
+
afterChildren: (
|
|
9
|
+
<SwitchPrimitives.Thumb className="pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0" />
|
|
10
|
+
),
|
|
11
|
+
})
|
|
@@ -11,7 +11,7 @@ export const Table = uic('table', {
|
|
|
11
11
|
})
|
|
12
12
|
|
|
13
13
|
export const TableHeader = uic('thead', {
|
|
14
|
-
baseClass: '[&_tr]:border-b',
|
|
14
|
+
baseClass: '[&_tr]:border-b border-gray-200',
|
|
15
15
|
displayName: 'TableHeader',
|
|
16
16
|
})
|
|
17
17
|
|
|
@@ -21,12 +21,12 @@ export const TableBody = uic('tbody', {
|
|
|
21
21
|
})
|
|
22
22
|
|
|
23
23
|
export const TableFooter = uic('tfoot', {
|
|
24
|
-
baseClass: 'border-t bg-muted/50 font-medium [&>tr]:last:border-b-0',
|
|
24
|
+
baseClass: 'border-t border-gray-200 bg-muted/50 font-medium [&>tr]:last:border-b-0',
|
|
25
25
|
displayName: 'TableFooter',
|
|
26
26
|
})
|
|
27
27
|
|
|
28
28
|
export const TableRow = uic('tr', {
|
|
29
|
-
baseClass: 'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',
|
|
29
|
+
baseClass: 'border-b border-gray-200 transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',
|
|
30
30
|
displayName: 'TableRow',
|
|
31
31
|
})
|
|
32
32
|
|
|
@@ -4,9 +4,9 @@ import { ComponentProps, forwardRef, useRef } from 'react'
|
|
|
4
4
|
|
|
5
5
|
export const Textarea = uic('textarea', {
|
|
6
6
|
baseClass: `
|
|
7
|
-
w-full bg-background rounded-md border border-input px-3 py-2 text-sm shadow-
|
|
8
|
-
placeholder:text-muted-foreground
|
|
9
|
-
focus-visible:outline-
|
|
7
|
+
w-full bg-background rounded-md border border-input px-3 py-2 text-sm shadow-xs
|
|
8
|
+
placeholder:text-muted-foreground
|
|
9
|
+
focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring
|
|
10
10
|
disabled:cursor-not-allowed disabled:opacity-50
|
|
11
11
|
read-only:bg-gray-100
|
|
12
12
|
` /*data-[dirty]:border-yellow-500 focus-visible:data-[dirty]:border-input*/ + `
|
|
@@ -15,10 +15,13 @@ export const Textarea = uic('textarea', {
|
|
|
15
15
|
displayName: 'Textarea',
|
|
16
16
|
})
|
|
17
17
|
|
|
18
|
-
export const TextareaAutosize = forwardRef<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
export const TextareaAutosize = forwardRef<
|
|
19
|
+
HTMLTextAreaElement,
|
|
20
|
+
ComponentProps<typeof Textarea> & {
|
|
21
|
+
minRows?: number
|
|
22
|
+
maxRows?: number
|
|
23
|
+
}
|
|
24
|
+
>(({ minRows, maxRows, ...props }, ref) => {
|
|
22
25
|
const innerRef = useRef<HTMLTextAreaElement | null>(null)
|
|
23
26
|
useAutoHeightTextArea(innerRef, props.value?.toString() ?? '', minRows ?? 3, maxRows ?? 100)
|
|
24
27
|
|
|
@@ -10,8 +10,8 @@ const ToggleGroupContext = React.createContext<ToggleProps>({
|
|
|
10
10
|
|
|
11
11
|
const ToggleGroup = React.forwardRef<
|
|
12
12
|
React.ElementRef<typeof ToggleGroupPrimitive.Root>,
|
|
13
|
-
React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>
|
|
14
|
-
ToggleProps
|
|
13
|
+
& React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>
|
|
14
|
+
& ToggleProps
|
|
15
15
|
>(({ className, variant, size, children, ...props }, ref) => (
|
|
16
16
|
<ToggleGroupPrimitive.Root
|
|
17
17
|
ref={ref}
|
|
@@ -30,12 +30,16 @@ const ToggleGroupItemInner = uic(ToggleGroupPrimitive.Item, toggleConfig)
|
|
|
30
30
|
|
|
31
31
|
const ToggleGroupItem = React.forwardRef<
|
|
32
32
|
React.ElementRef<typeof ToggleGroupPrimitive.Item>,
|
|
33
|
-
React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>
|
|
34
|
-
ToggleProps
|
|
33
|
+
& React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>
|
|
34
|
+
& ToggleProps
|
|
35
35
|
>(({ className, children, variant, size, ...props }, ref) => {
|
|
36
36
|
const context = React.useContext(ToggleGroupContext)
|
|
37
37
|
|
|
38
|
-
return
|
|
38
|
+
return (
|
|
39
|
+
<ToggleGroupItemInner ref={ref} className={className} variant={context.variant || variant} size={context.size || size} {...props}>
|
|
40
|
+
{children}
|
|
41
|
+
</ToggleGroupItemInner>
|
|
42
|
+
)
|
|
39
43
|
})
|
|
40
44
|
|
|
41
45
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName
|
|
@@ -2,12 +2,12 @@ import * as TogglePrimitive from '@radix-ui/react-toggle'
|
|
|
2
2
|
import { ConfigVariants, uic, uiconfig } from '../utils'
|
|
3
3
|
|
|
4
4
|
export const toggleConfig = uiconfig({
|
|
5
|
-
baseClass:
|
|
5
|
+
baseClass:
|
|
6
|
+
'inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent data-[active]:shadow-inner data-[active]:text-accent-foreground',
|
|
6
7
|
variants: {
|
|
7
8
|
variant: {
|
|
8
9
|
default: 'bg-transparent',
|
|
9
|
-
outline:
|
|
10
|
-
'border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground',
|
|
10
|
+
outline: 'border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground',
|
|
11
11
|
},
|
|
12
12
|
size: {
|
|
13
13
|
default: 'h-8 px-3',
|
|
@@ -23,6 +23,4 @@ export const toggleConfig = uiconfig({
|
|
|
23
23
|
|
|
24
24
|
export type ToggleProps = ConfigVariants<Exclude<typeof toggleConfig.variants, undefined>>
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
export const Toggle = uic(TogglePrimitive.Root, toggleConfig)
|
|
28
|
-
|
|
@@ -9,11 +9,12 @@ export const { Component: Tooltip, useOpen: useTooltipOpenState } = createCompon
|
|
|
9
9
|
export const TooltipTrigger = TooltipPrimitive.Trigger
|
|
10
10
|
|
|
11
11
|
export const TooltipContent = uic(TooltipPrimitive.Content, {
|
|
12
|
-
baseClass:
|
|
12
|
+
baseClass:
|
|
13
|
+
'z-50 overflow-hidden p-2 text-sm text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
13
14
|
variants: {
|
|
14
15
|
variant: {
|
|
15
|
-
default: 'rounded-md border bg-popover shadow-md',
|
|
16
|
-
blurred: 'rounded-md backdrop-blur shadow-md border',
|
|
16
|
+
default: 'rounded-md border border-gray-200 bg-popover shadow-md',
|
|
17
|
+
blurred: 'rounded-md backdrop-blur-sm shadow-md border border-gray-200',
|
|
17
18
|
seamless: '',
|
|
18
19
|
},
|
|
19
20
|
},
|
|
@@ -7,7 +7,6 @@ import { UploadIcon } from 'lucide-react'
|
|
|
7
7
|
import { dict } from '../dict'
|
|
8
8
|
import { Button } from '../ui/button'
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
export const UploaderDropzone = ({ inactiveOnUpload, dropzonePlaceholder }: { inactiveOnUpload?: boolean; dropzonePlaceholder?: ReactNode }) => {
|
|
12
11
|
const filesInProgress = useUploaderStateFiles({ state: ['uploading', 'initial', 'finalizing'] })
|
|
13
12
|
const showLoader = inactiveOnUpload && filesInProgress.length > 0
|
|
@@ -17,15 +16,20 @@ export const UploaderDropzone = ({ inactiveOnUpload, dropzonePlaceholder }: { in
|
|
|
17
16
|
<UploaderDropzoneWrapperUI>
|
|
18
17
|
{showLoader
|
|
19
18
|
? <UploaderInactiveDropzoneUI />
|
|
20
|
-
:
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
: (
|
|
20
|
+
<UploaderDropzoneArea>
|
|
21
|
+
{dropzonePlaceholder ?? (
|
|
22
|
+
<UploaderDropzoneAreaUI>
|
|
23
|
+
<UploadIcon className={'w-12 h-12 text-gray-400'} />
|
|
24
|
+
<div className={'font-semibold text-sm'}>{dict.uploader.dropFiles}</div>
|
|
25
|
+
<div className={'text-xs'}>{dict.uploader.or}</div>
|
|
26
|
+
<div className={'flex gap-2 items-center text-xs'}>
|
|
27
|
+
<Button size={'sm'} variant={'outline'}>{dict.uploader.browseFiles}</Button>
|
|
28
|
+
</div>
|
|
29
|
+
</UploaderDropzoneAreaUI>
|
|
30
|
+
)}
|
|
31
|
+
</UploaderDropzoneArea>
|
|
32
|
+
)}
|
|
29
33
|
</UploaderDropzoneWrapperUI>
|
|
30
34
|
</UploaderDropzoneRoot>
|
|
31
35
|
)
|
|
@@ -2,7 +2,6 @@ import { DropIndicator } from '../ui/sortable'
|
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
import { RepeaterSortableDropIndicator } from '@contember/react-repeater-dnd-kit'
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
export const UploaderRepeaterDropIndicator = ({ position }: { position: 'before' | 'after' }) => (
|
|
7
6
|
<div className={'relative'}>
|
|
8
7
|
<RepeaterSortableDropIndicator position={position}>
|