@contember/create 2.1.0-alpha.2 → 2.1.0-alpha.20
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/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 +24 -5
- package/dist/development/src/lib/TemplateInstaller.cjs.map +1 -1
- package/dist/development/src/lib/TemplateInstaller.js +24 -5
- 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/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 +24 -5
- package/dist/production/src/lib/TemplateInstaller.cjs.map +1 -1
- package/dist/production/src/lib/TemplateInstaller.js +24 -5
- 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/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 +7 -3
- 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/block-repeater/block-repeater.tsx +4 -4
- package/resources/templates/{template-workspace → default}/admin/lib/board/board.tsx +3 -3
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/column-header.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/columns.tsx +8 -8
- package/resources/templates/default/admin/lib/datagrid/elements.tsx +59 -0
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/empty.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/date.tsx +4 -4
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/relation.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/pagination.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/table.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/datagrid/ui.tsx +4 -4
- package/resources/templates/{template-workspace → default}/admin/lib/dict.ts +3 -1
- package/resources/templates/{template-workspace → default}/admin/lib/dimensions/dimensions.tsx +2 -2
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-block-toolbar.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-canvas.tsx +2 -2
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-inline-toolbar.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/BlockElement.tsx +2 -2
- package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/TableCellElementRenderer.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/editor/editor-block.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/editor/sortable-block.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/form/upload-repeaters.tsx +61 -28
- package/resources/templates/{template-workspace → default}/admin/lib/form/upload.tsx +6 -3
- package/resources/templates/{template-workspace → default}/admin/lib/layout/layout-boxed.tsx +4 -4
- package/resources/templates/{template-workspace → default}/admin/lib/repeater/repeater.tsx +3 -3
- package/resources/templates/{template-workspace → default}/admin/lib/select/ui.tsx +5 -5
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/common.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/memberships-control.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/tenant/otp/otp-setup.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/toast/toast.tsx +4 -5
- package/resources/templates/{template-workspace → default}/admin/lib/ui/button.tsx +6 -6
- package/resources/templates/{template-workspace → default}/admin/lib/ui/card.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/ui/dialog.tsx +2 -2
- package/resources/templates/{template-workspace → default}/admin/lib/ui/dropdown.tsx +6 -6
- package/resources/templates/{template-workspace → default}/admin/lib/ui/input.tsx +11 -11
- package/resources/templates/{template-workspace → default}/admin/lib/ui/overlay.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/ui/popover.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/ui/property-list.tsx +3 -3
- package/resources/templates/{template-workspace → default}/admin/lib/ui/select.tsx +3 -3
- package/resources/templates/{template-workspace → default}/admin/lib/ui/sheet.tsx +4 -4
- package/resources/templates/{template-workspace → default}/admin/lib/ui/sidebar.tsx +14 -14
- package/resources/templates/{template-workspace → default}/admin/lib/ui/sortable.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/ui/switch.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/ui/table.tsx +3 -3
- package/resources/templates/{template-workspace → default}/admin/lib/ui/textarea.tsx +3 -3
- package/resources/templates/{template-workspace → default}/admin/lib/ui/toggle.tsx +2 -3
- package/resources/templates/{template-workspace → default}/admin/lib/ui/tooltip.tsx +2 -2
- package/resources/templates/{template-workspace → default}/admin/lib/upload/ui.tsx +4 -4
- package/resources/templates/{template-workspace → default}/admin/lib/upload/upload-progress.tsx +1 -1
- package/resources/templates/{template-workspace → default}/admin/lib/upload/view.tsx +3 -3
- package/resources/templates/{template-workspace → default}/admin/package.json +5 -2
- package/resources/templates/default/admin/postcss.config.js +5 -0
- 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 -24
- package/src/lib/FileSystem.ts +1 -0
- package/src/lib/TemplateInstaller.ts +30 -7
- package/src/lib/packageManagerDetector.ts +24 -0
- 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/datagrid/elements.tsx +0 -48
- 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}/.github/workflows/deploy.yaml +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/binding.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/hooks.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/binding/identity.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/binding/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/binding/navigation-guard-dialog.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/binding/persist.tsx +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/back-button.tsx +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/cells.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/boolean.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/common.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/defined.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/enum.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/mobile.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/number.tsx +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 +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/labels.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/layout-switcher.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/loader.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/tiles.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/toolbar.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/login-panel.tsx +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/block-editor.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/baseEditorPlugins.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/buttons.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-editable-canvas.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/AnchorRenderer.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/HeadingRenderer.tsx +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/TableElementRenderer.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/TableRowElementRenderer.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/editor/rich-text-view.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/editor/rich-text.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/container.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/form/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/form/inputs.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/form/labels.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/form/select.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/form/ui.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/enum-labels.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/labels/field-labels.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/layout/slots.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/outdated-application-dialog/outdated-application-dialog.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/repeater/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/select/create-new.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/select/filter.tsx +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/select/list.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/select/multi-select.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/select/select.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/select/sortable-select.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/change-my-password.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/create-api-key.tsx +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/forms/invite.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/login.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/password-reset-request.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/password-reset.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/passwordless-signin-init.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/passwordless-signin.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/update-project-member.tsx +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/hooks/useInviteUser.tsx +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/api-key-list.tsx +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/listing/member-delete-dialog.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/member-list.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/person-list.tsx +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/toast/toaster.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/alert-dialog.tsx +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/loader.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/ui/menu.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/scroll-area.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/ui/toggle-group.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/upload/dropzone.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/upload/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/upload/repeater.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/utils/cn.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/utils/createComponentOpenHooks.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/utils/index.ts +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/utils/uic.tsx +0 -0
- /package/resources/templates/{template-workspace → default}/admin/lib/utils/use-mobile.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
|
@@ -70,7 +70,7 @@ export const DataGridActiveFilterUI = forwardRef<HTMLButtonElement, {
|
|
|
70
70
|
|
|
71
71
|
export const DataGridSingleFilterUI = forwardRef<HTMLDivElement, { children: ReactNode }>((props, ref) => {
|
|
72
72
|
return (
|
|
73
|
-
<div className="flex flex-wrap gap-2 rounded bg-gray-50 items-center text-sm px-2 py-1.5 border" ref={ref} {...props} />
|
|
73
|
+
<div className="flex flex-wrap gap-2 rounded-sm bg-gray-50 items-center text-sm px-2 py-1.5 border border-gray-200" ref={ref} {...props} />
|
|
74
74
|
)
|
|
75
75
|
})
|
|
76
76
|
|
|
@@ -84,7 +84,7 @@ export const DataGridFilterSelectTriggerUI = forwardRef<HTMLButtonElement, { chi
|
|
|
84
84
|
{children}
|
|
85
85
|
</span>}
|
|
86
86
|
<span
|
|
87
|
-
className="bg-gray-100 rounded-full border group-data-[state=open]:bg-
|
|
87
|
+
className="bg-gray-100 rounded-full border border-gray-200 group-data-[state=open]:bg-background group-data-[state=open]:shadow-inner h-5 w-5 inline-flex items-center justify-center"
|
|
88
88
|
>
|
|
89
89
|
<PlusIcon className="w-3 h-3" />
|
|
90
90
|
</span>
|
|
@@ -134,7 +134,7 @@ export const DataGridFilterSelectItemUI = forwardRef<HTMLButtonElement, DataGrid
|
|
|
134
134
|
<button
|
|
135
135
|
onClick={exclude}
|
|
136
136
|
className={cn(
|
|
137
|
-
'p-1 border rounded hover:bg-red-200',
|
|
137
|
+
'p-1 border border-gray-200 rounded-sm hover:bg-red-200',
|
|
138
138
|
isExcluded ? 'bg-red-300 shadow-inner' : '',
|
|
139
139
|
)}
|
|
140
140
|
>
|
|
@@ -150,7 +150,7 @@ export const DataGridToolbarUI = uic('div', {
|
|
|
150
150
|
baseClass: 'flex flex-col md:flex-row gap-2 md:items-end mb-4 items-stretch',
|
|
151
151
|
variants: {
|
|
152
152
|
sticky: {
|
|
153
|
-
true: 'sticky top-
|
|
153
|
+
true: 'sticky -top-4 z-50 bg-background border-b border-gray-200 py-4',
|
|
154
154
|
},
|
|
155
155
|
},
|
|
156
156
|
})
|
|
@@ -3,7 +3,7 @@ import { InviteErrorCodes } from './tenant/hooks/useInvite'
|
|
|
3
3
|
import { UploaderErrorType } from '@contember/react-uploader'
|
|
4
4
|
import { ChangeMyPasswordFormErrorCode, CreateApiKeyFormErrorCode } from '@contember/interface'
|
|
5
5
|
import { InviteFormErrorCode, LoginFormErrorCode, OtpPrepareFormErrorCode, OtpConfirmFormErrorCode, PasswordResetFormErrorCode, PasswordResetRequestFormErrorCode, UpdateProjectMemberFormErrorCode, PasswordlessSignInInitFormErrorCode, PasswordlessSignInFormErrorCode } from '@contember/react-identity'
|
|
6
|
-
import { ActivatePasswordlessOtpErrorCode } from '@contember/graphql-client-tenant'
|
|
6
|
+
import { ActivatePasswordlessOtpErrorCode, WeakPasswordReason } from '@contember/graphql-client-tenant'
|
|
7
7
|
|
|
8
8
|
export const dict = {
|
|
9
9
|
deleteEntityDialog: {
|
|
@@ -209,6 +209,8 @@ export const dict = {
|
|
|
209
209
|
'NO_PASSWORD_SET': 'No password set',
|
|
210
210
|
'PERSON_DISABLED': 'Person disabled',
|
|
211
211
|
'UNKNOWN_EMAIL': 'Unknown email',
|
|
212
|
+
'INVALID_CREDENTIALS': 'Invalid credentials',
|
|
213
|
+
'RATE_LIMIT_EXCEEDED': 'Too many failed attempts, please try again later',
|
|
212
214
|
'OTP_REQUIRED': undefined,
|
|
213
215
|
} satisfies Record<LoginFormErrorCode, string | undefined>,
|
|
214
216
|
idpInitError: 'Failed to initialize IdP login:',
|
package/resources/templates/{template-workspace → default}/admin/lib/dimensions/dimensions.tsx
RENAMED
|
@@ -79,7 +79,7 @@ const DimensionSwitcherCurrentValues = ({ children, dimension, slugField }: { ch
|
|
|
79
79
|
<div className="flex gap-1">
|
|
80
80
|
{values.map(it => (
|
|
81
81
|
<Entity key={it.key} accessor={it}>
|
|
82
|
-
<div className={'gap-1 group text-black text-left inline-flex items-center px-1 text-sm border-b'}>
|
|
82
|
+
<div className={'gap-1 group text-black text-left inline-flex items-center px-1 text-sm border-b border-gray-200'}>
|
|
83
83
|
<span>{children}</span>
|
|
84
84
|
</div>
|
|
85
85
|
</Entity>
|
|
@@ -98,7 +98,7 @@ const DimensionSwitcherItem = ({ children, dimension, slugField, isMulti }: { ch
|
|
|
98
98
|
|
|
99
99
|
return (
|
|
100
100
|
<DimensionLink dimension={dimension} value={slugValue} action={isMulti ? 'toggle' : 'set'}>
|
|
101
|
-
<a className={'gap-1 group text-gray-800 text-left inline-flex items-center px-1 py-1 text-sm rounded transition-all hover:bg-accent hover:text-accent-foreground group data-[active]:text-black'}>
|
|
101
|
+
<a className={'gap-1 group text-gray-800 text-left inline-flex items-center px-1 py-1 text-sm rounded-sm transition-all hover:bg-accent hover:text-accent-foreground group data-[active]:text-black'}>
|
|
102
102
|
<CheckIcon className={'w-3 h-3 hidden group-data-[active]:block'} />
|
|
103
103
|
<span className={'w-3 h-3 group-data-[active]:hidden'} />
|
|
104
104
|
<span>{children}</span>
|
|
@@ -11,7 +11,7 @@ export const EditorBlockToolbar = memo(({ children }: EditorBlockToolbarProps) =
|
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<div className="sticky bottom-0" contentEditable={false}>
|
|
14
|
-
<div className={cn('-mx-3 -mb-2 p-2 rounded-b-md border-t bg-gray-50 flex flex-wrap gap-2', !selection && 'pointer-events-none')}>{children}</div>
|
|
14
|
+
<div className={cn('-mx-3 -mb-2 p-2 rounded-b-md border-t border-gray-200 bg-gray-50 flex flex-wrap gap-2', !selection && 'pointer-events-none')}>{children}</div>
|
|
15
15
|
</div>
|
|
16
16
|
)
|
|
17
17
|
})
|
package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-canvas.tsx
RENAMED
|
@@ -18,8 +18,8 @@ export const EditorCanvas = memo(<P extends HTMLTextAreaDivTargetProps>({
|
|
|
18
18
|
}: EditorCanvasProps<P>) => {
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<div data-focus-ring={dataAttribute(focusRing)} className={'relative w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-
|
|
22
|
-
<Component className="outline-
|
|
21
|
+
<div data-focus-ring={dataAttribute(focusRing)} className={'relative w-full rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-xs placeholder:text-muted-foreground focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring disabled:cursor-not-allowed disabled:opacity-50'}>
|
|
22
|
+
<Component className="outline-hidden" {...props} />
|
|
23
23
|
{children}
|
|
24
24
|
</div>
|
|
25
25
|
)
|
|
@@ -53,7 +53,7 @@ export const EditorInlineToolbar = memo(({ children }: EditorInlineToolbarProps)
|
|
|
53
53
|
return (
|
|
54
54
|
<>
|
|
55
55
|
<div className="absolute p-2" ref={ref}>
|
|
56
|
-
<div className="p-1 rounded-xl shadow-md border bg-
|
|
56
|
+
<div className="p-1 rounded-xl shadow-md border border-gray-200 bg-background space-x-1">{children}</div>
|
|
57
57
|
</div>
|
|
58
58
|
</>
|
|
59
59
|
)
|
|
@@ -12,9 +12,9 @@ export interface BlockElementProps extends RenderElementProps {
|
|
|
12
12
|
const BlockBoundary = ({ onClick }: {onClick: () => void}) => {
|
|
13
13
|
return (<>
|
|
14
14
|
<div className="relative group" contentEditable={false}>
|
|
15
|
-
<div className="bg-gray-500 h-0.5 rounded absolute top-1/2 left-0 right-0 w-full opacity-0 transition-opacity delay-100 group-hover:opacity-100"></div>
|
|
15
|
+
<div className="bg-gray-500 h-0.5 rounded-sm absolute top-1/2 left-0 right-0 w-full opacity-0 transition-opacity delay-100 group-hover:opacity-100"></div>
|
|
16
16
|
<div className="absolute -top-2 left-0 w-full h-4 flex justify-center items-center opacity-0 transition-opacity delay-100 duration-0 group-hover:opacity-100 cursor-pointer" onClick={onClick}>
|
|
17
|
-
<div className=" px-2 flex gap-2 items-center bg-gray-800 py-0.5 rounded-xl text-white shadow
|
|
17
|
+
<div className=" px-2 flex gap-2 items-center bg-gray-800 py-0.5 rounded-xl text-white shadow-sm">
|
|
18
18
|
<PlusCircleIcon className="w-3 h-3" />
|
|
19
19
|
Add paragraph
|
|
20
20
|
</div>
|
|
@@ -9,7 +9,7 @@ export function TableCellElementRenderer(props: TableCellElementRendererProps) {
|
|
|
9
9
|
return (
|
|
10
10
|
<td
|
|
11
11
|
{...props.attributes}
|
|
12
|
-
className="border min-w-40"
|
|
12
|
+
className="border border-gray-200 min-w-40"
|
|
13
13
|
// attributes={props.attributes}
|
|
14
14
|
// justify={props.element.justify}
|
|
15
15
|
// headerScope={props.element.headerScope}
|
package/resources/templates/{template-workspace → default}/admin/lib/editor/editor-block.tsx
RENAMED
|
@@ -71,7 +71,7 @@ const EditorBlockUi = ({ blockProps, renderBlockProps }: {
|
|
|
71
71
|
|
|
72
72
|
return (
|
|
73
73
|
<BlockElement element={element} attributes={attributes} withBoundaries>
|
|
74
|
-
<div className="group -ml-3 p-3 border border-transparent rounded-md hover:shadow-md hover:border-gray-200 transition-all">
|
|
74
|
+
<div className="group -ml-3 p-3 border border-gray-200 border-transparent rounded-md hover:shadow-md hover:border-gray-200 transition-all">
|
|
75
75
|
<div contentEditable={false}>
|
|
76
76
|
<div className="flex">
|
|
77
77
|
<div className="text-gray-400 text-xs font-semibold">
|
package/resources/templates/{template-workspace → default}/admin/lib/editor/sortable-block.tsx
RENAMED
|
@@ -40,7 +40,7 @@ export const SortableBlock = ({ children, element }: { children: ReactNode; elem
|
|
|
40
40
|
{isActive && contentRef.current && <Portal>
|
|
41
41
|
<DragOverlay>
|
|
42
42
|
<div className="opacity-80 flex">
|
|
43
|
-
<div className="p-4 bg-
|
|
43
|
+
<div className="p-4 bg-background/80 backdrop-blur-xs"
|
|
44
44
|
// deliberately using innerHTML to avoid firing React events
|
|
45
45
|
dangerouslySetInnerHTML={{ __html: contentRef.current.innerHTML }}/>
|
|
46
46
|
</div>
|
package/resources/templates/{template-workspace → default}/admin/lib/form/upload-repeaters.tsx
RENAMED
|
@@ -6,18 +6,20 @@ import {
|
|
|
6
6
|
createImageFileType,
|
|
7
7
|
createVideoFileType,
|
|
8
8
|
FileType,
|
|
9
|
+
FileWithMeta,
|
|
9
10
|
ImageFileTypeProps,
|
|
10
|
-
MultiUploader,
|
|
11
|
+
MultiUploader, S3FileOptions,
|
|
11
12
|
UploaderBaseFieldProps,
|
|
12
13
|
UploaderHasFile,
|
|
14
|
+
useMultiUploaderFileState,
|
|
13
15
|
useS3Client,
|
|
14
16
|
VideoFileTypeProps,
|
|
15
17
|
} from '@contember/react-uploader'
|
|
16
18
|
import * as React from 'react'
|
|
17
|
-
import { ReactNode,
|
|
19
|
+
import { ReactNode, useMemo, useState } from 'react'
|
|
18
20
|
import { FormContainer, FormContainerProps } from './container'
|
|
19
|
-
import { Component } from '@contember/interface'
|
|
20
|
-
import {
|
|
21
|
+
import { Component, useEntity } from '@contember/interface'
|
|
22
|
+
import { FormFieldStateProvider } from '@contember/react-form'
|
|
21
23
|
import {
|
|
22
24
|
UploadedAnyView,
|
|
23
25
|
UploadedAudioView,
|
|
@@ -39,6 +41,7 @@ import {
|
|
|
39
41
|
RepeaterSortableItemNode,
|
|
40
42
|
} from '@contember/react-repeater-dnd-kit'
|
|
41
43
|
import { UploaderRepeaterDropIndicator } from '../upload/repeater'
|
|
44
|
+
import { Loader } from '../ui/loader'
|
|
42
45
|
|
|
43
46
|
|
|
44
47
|
export type BaseFileRepeaterFieldProps =
|
|
@@ -50,6 +53,7 @@ export type BaseFileRepeaterFieldProps =
|
|
|
50
53
|
actions?: ReactNode
|
|
51
54
|
edit?: ReactNode
|
|
52
55
|
noDestroy?: boolean
|
|
56
|
+
getUploadOptions?: (file: File) => S3FileOptions
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
export type ImageRepeaterFieldProps =
|
|
@@ -57,7 +61,11 @@ export type ImageRepeaterFieldProps =
|
|
|
57
61
|
& ImageFileTypeProps
|
|
58
62
|
|
|
59
63
|
export const ImageRepeaterField = Component<ImageRepeaterFieldProps>(props => <>
|
|
60
|
-
<FileRepeaterFieldInner {...props} fileType={createImageFileType(props)}
|
|
64
|
+
<FileRepeaterFieldInner {...props} fileType={createImageFileType(props)} renderPreview={file => {
|
|
65
|
+
return <div className="flex items-center justify-center h-40 rounded-md group relative">
|
|
66
|
+
<img src={file.file.previewUrl} className="max-w-full max-h-full" />
|
|
67
|
+
</div>
|
|
68
|
+
}}>
|
|
61
69
|
{props.children ?? (
|
|
62
70
|
<UploadedImageView {...props} DestroyAction={RepeaterRemoveItemTrigger} />
|
|
63
71
|
)}
|
|
@@ -104,11 +112,16 @@ export const FileRepeaterField = Component<FileRepeaterFieldProps>(props => <>
|
|
|
104
112
|
</>)
|
|
105
113
|
|
|
106
114
|
|
|
115
|
+
type PreviewRenderer = (props: {
|
|
116
|
+
file: FileWithMeta
|
|
117
|
+
}) => ReactNode
|
|
118
|
+
|
|
107
119
|
type FileRepeaterFieldInnerProps =
|
|
108
120
|
& BaseFileRepeaterFieldProps
|
|
109
121
|
& {
|
|
110
122
|
fileType: FileType
|
|
111
123
|
children: ReactNode
|
|
124
|
+
renderPreview?: PreviewRenderer
|
|
112
125
|
}
|
|
113
126
|
|
|
114
127
|
const FileRepeaterFieldInner = Component<FileRepeaterFieldInnerProps>(({
|
|
@@ -118,10 +131,14 @@ const FileRepeaterFieldInner = Component<FileRepeaterFieldInnerProps>(({
|
|
|
118
131
|
children,
|
|
119
132
|
fileType,
|
|
120
133
|
dropzonePlaceholder,
|
|
134
|
+
renderPreview,
|
|
135
|
+
getUploadOptions,
|
|
121
136
|
...props
|
|
122
137
|
}) => {
|
|
123
138
|
|
|
124
|
-
const defaultUploader = useS3Client(
|
|
139
|
+
const defaultUploader = useS3Client({
|
|
140
|
+
getUploadOptions,
|
|
141
|
+
})
|
|
125
142
|
const [fileTypeStable] = useState(fileType)
|
|
126
143
|
const fileTypeWithUploader = useMemo(
|
|
127
144
|
() => ({ ...fileTypeStable, uploader: fileTypeStable?.uploader ?? defaultUploader }),
|
|
@@ -145,34 +162,37 @@ const FileRepeaterFieldInner = Component<FileRepeaterFieldInnerProps>(({
|
|
|
145
162
|
<UploaderProgress />
|
|
146
163
|
</UploaderHasFile>
|
|
147
164
|
<UploaderDropzone dropzonePlaceholder={dropzonePlaceholder} />
|
|
148
|
-
</MultiUploader>
|
|
149
165
|
|
|
150
|
-
|
|
166
|
+
<RepeaterSortable>
|
|
167
|
+
|
|
168
|
+
<RepeaterSortableEachItem>
|
|
169
|
+
<div className="flex">
|
|
170
|
+
<UploaderRepeaterDropIndicator position={'before'} />
|
|
171
|
+
<RepeaterSortableItemNode>
|
|
172
|
+
<UploaderRepeaterItemUI>
|
|
173
|
+
<RepeaterSortableItemActivator>
|
|
174
|
+
<UploaderRepeaterHandleUI />
|
|
175
|
+
</RepeaterSortableItemActivator>
|
|
151
176
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</RepeaterSortableItemActivator>
|
|
160
|
-
{children}
|
|
161
|
-
</UploaderRepeaterItemUI>
|
|
162
|
-
</RepeaterSortableItemNode>
|
|
163
|
-
<UploaderRepeaterDropIndicator position={'after'} />
|
|
164
|
-
</div>
|
|
177
|
+
<FileRepeaterItemPreview renderPreview={renderPreview} >
|
|
178
|
+
{children}
|
|
179
|
+
</FileRepeaterItemPreview>
|
|
180
|
+
</UploaderRepeaterItemUI>
|
|
181
|
+
</RepeaterSortableItemNode>
|
|
182
|
+
<UploaderRepeaterDropIndicator position={'after'} />
|
|
183
|
+
</div>
|
|
165
184
|
|
|
166
185
|
|
|
167
|
-
|
|
186
|
+
</RepeaterSortableEachItem>
|
|
168
187
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
188
|
+
<RepeaterSortableDragOverlay>
|
|
189
|
+
<UploaderRepeaterDragOverlayUI>
|
|
190
|
+
{children}
|
|
191
|
+
</UploaderRepeaterDragOverlayUI>
|
|
192
|
+
</RepeaterSortableDragOverlay>
|
|
174
193
|
|
|
175
|
-
|
|
194
|
+
</RepeaterSortable>
|
|
195
|
+
</MultiUploader>
|
|
176
196
|
</UploaderRepeaterItemsWrapperUI>
|
|
177
197
|
</Repeater>
|
|
178
198
|
</FormContainer>
|
|
@@ -186,3 +206,16 @@ const FileRepeaterFieldInner = Component<FileRepeaterFieldInnerProps>(({
|
|
|
186
206
|
</Repeater>
|
|
187
207
|
</>
|
|
188
208
|
}, 'FileRepeaterFieldInner')
|
|
209
|
+
|
|
210
|
+
const FileRepeaterItemPreview = ({ renderPreview, children }: { renderPreview?: PreviewRenderer; children: ReactNode }) => {
|
|
211
|
+
const entity = useEntity()
|
|
212
|
+
const fileState = useMultiUploaderFileState(entity)
|
|
213
|
+
if (!fileState || fileState.state === 'success' || fileState.state === 'error') {
|
|
214
|
+
return <>{children}</>
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
return <>
|
|
218
|
+
{renderPreview?.({ file: fileState.file })}
|
|
219
|
+
<Loader position="absolute" className="bg-transparent" />
|
|
220
|
+
</>
|
|
221
|
+
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createVideoFileType,
|
|
8
8
|
FileType,
|
|
9
9
|
FileUrlDataExtractorProps,
|
|
10
|
-
ImageFileTypeProps,
|
|
10
|
+
ImageFileTypeProps, S3FileOptions,
|
|
11
11
|
Uploader,
|
|
12
12
|
UploaderBase,
|
|
13
13
|
UploaderBaseFieldProps,
|
|
@@ -31,6 +31,7 @@ export type BaseUploadFieldProps =
|
|
|
31
31
|
actions?: ReactNode
|
|
32
32
|
edit?: ReactNode
|
|
33
33
|
noDestroy?: boolean
|
|
34
|
+
getUploadOptions?: (file: File) => S3FileOptions
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
|
|
@@ -92,9 +93,11 @@ type UploadFieldInnerProps =
|
|
|
92
93
|
children: ReactNode
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
const UploadFieldInner = Component((({ baseField, label, description, children, fileType, urlField, dropzonePlaceholder }: UploadFieldInnerProps) => {
|
|
96
|
+
const UploadFieldInner = Component((({ baseField, label, description, children, fileType, urlField, dropzonePlaceholder, getUploadOptions }: UploadFieldInnerProps) => {
|
|
96
97
|
const entity = useEntity()
|
|
97
|
-
const defaultUploader = useS3Client(
|
|
98
|
+
const defaultUploader = useS3Client({
|
|
99
|
+
getUploadOptions,
|
|
100
|
+
})
|
|
98
101
|
const [fileTypeStable] = useState(fileType)
|
|
99
102
|
const fileTypeWithUploader = useMemo(
|
|
100
103
|
() => ({ ...fileTypeStable, uploader: fileTypeStable?.uploader ?? defaultUploader }),
|
package/resources/templates/{template-workspace → default}/admin/lib/layout/layout-boxed.tsx
RENAMED
|
@@ -32,13 +32,13 @@ const LayoutMaxWidthUI = uic('div', {
|
|
|
32
32
|
layout: 'default',
|
|
33
33
|
},
|
|
34
34
|
})
|
|
35
|
-
const LayoutBoxUI = uic('div', { baseClass: 'rounded-xl shadow-lg border bg-
|
|
35
|
+
const LayoutBoxUI = uic('div', { baseClass: 'rounded-xl shadow-lg border border-gray-200 bg-background gap-1 flex flex-col lg:flex-row mt-4 relative min-h-[calc(100vh-10rem)]' })
|
|
36
36
|
|
|
37
37
|
const LayoutCenterPanelUI = uic('div', { baseClass: 'flex flex-col flex-2 p-4 gap-2 w-full flex-auto overflow-hidden' })
|
|
38
|
-
const LayoutCenterTopUI = uic('div', { baseClass: 'flex justify-between pb-4 mb-4 border-b' })
|
|
38
|
+
const LayoutCenterTopUI = uic('div', { baseClass: 'flex justify-between pb-4 mb-4 border-b border-gray-200' })
|
|
39
39
|
|
|
40
40
|
const LayoutLeftSidebarUI = uic('div', {
|
|
41
|
-
baseClass: 'flex-col lg:border-r
|
|
41
|
+
baseClass: 'flex-col lg:border-r border-r-gray-300 bg-gray-50 lg:w-96 flex-auto gap-2 relative rounded-l-xl',
|
|
42
42
|
variants: {
|
|
43
43
|
visibility: {
|
|
44
44
|
show: 'flex',
|
|
@@ -127,7 +127,7 @@ export const LayoutBoxedComponent = ({ children, ...rest }: PropsWithChildren<{}
|
|
|
127
127
|
<SlotTargets.Navigation />
|
|
128
128
|
</div>
|
|
129
129
|
|
|
130
|
-
<div className={'mt-auto rounded-bl py-2 px-2 border-t'}>
|
|
130
|
+
<div className={'mt-auto rounded-bl py-2 px-2 border-t border-gray-200'}>
|
|
131
131
|
<LogoutTrigger>
|
|
132
132
|
<Button variant={'ghost'} size="sm" className="gap-2 hover:underline">
|
|
133
133
|
<LogOutIcon className="w-3 h-3 text-gray-500" /> {dict.logout}
|
|
@@ -24,13 +24,13 @@ import { dict } from '../dict'
|
|
|
24
24
|
import { ReactNode } from 'react'
|
|
25
25
|
|
|
26
26
|
const RepeaterWrapperUI = uic('div', {
|
|
27
|
-
baseClass: 'flex flex-col gap-2 relative bg-
|
|
27
|
+
baseClass: 'flex flex-col gap-2 relative bg-background mb-4',
|
|
28
28
|
})
|
|
29
29
|
const RepeaterItemUI = uic('div', {
|
|
30
|
-
baseClass: 'rounded border
|
|
30
|
+
baseClass: 'rounded-sm border border-gray-200 bg-gray-50 p-4 relative group/repeater-item',
|
|
31
31
|
})
|
|
32
32
|
const RepeaterDragOverlayUI = uic('div', {
|
|
33
|
-
baseClass: 'rounded border border-gray-300 p-4 relative bg-
|
|
33
|
+
baseClass: 'rounded-sm border border-gray-300 p-4 relative bg-gray-100/60 backdrop-blur-xs',
|
|
34
34
|
})
|
|
35
35
|
const RepeaterHandleUI = uic('button', {
|
|
36
36
|
baseClass: 'absolute top-1/2 -left-7 h-6 w-6 flex justify-end align-center opacity-10 group-hover/repeater-item:opacity-30 hover:!opacity-100 transition-opacity -translate-y-1/2',
|
|
@@ -22,7 +22,7 @@ export const SelectInputUI = uic('button', {
|
|
|
22
22
|
'cursor-pointer',
|
|
23
23
|
'hover:border-gray-400',
|
|
24
24
|
'placeholder:text-muted-foreground',
|
|
25
|
-
'focus-visible:outline-
|
|
25
|
+
'focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
|
|
26
26
|
'disabled:cursor-not-allowed disabled:opacity-50',
|
|
27
27
|
],
|
|
28
28
|
})
|
|
@@ -44,16 +44,16 @@ export const MultiSelectItemWrapperUI = uic('div', {
|
|
|
44
44
|
baseClass: 'flex flex-wrap gap-1 items-center justify-start',
|
|
45
45
|
})
|
|
46
46
|
export const MultiSelectItemUI = uic('span', {
|
|
47
|
-
baseClass: 'flex items-stretch border rounded hover:shadow transition-all',
|
|
47
|
+
baseClass: 'flex items-stretch border border-gray-200 rounded-sm hover:shadow-sm transition-all',
|
|
48
48
|
})
|
|
49
49
|
export const MultiSelectItemContentUI = uic('span', {
|
|
50
|
-
baseClass: 'rounded-l px-2 py-1 bg-
|
|
50
|
+
baseClass: 'rounded-l px-2 py-1 bg-background ',
|
|
51
51
|
})
|
|
52
52
|
export const MultiSelectSortableItemContentUI = uic('span', {
|
|
53
|
-
baseClass: 'rounded-l px-2 py-1 bg-
|
|
53
|
+
baseClass: 'rounded-l px-2 py-1 bg-background hover:bg-gray-50 cursor-move transition-all',
|
|
54
54
|
})
|
|
55
55
|
export const MultiSelectItemDragOverlayUI = uic('span', {
|
|
56
|
-
baseClass: 'rounded px-2 py-1 bg-gray-100 inline-flex gap-2 items-center
|
|
56
|
+
baseClass: 'rounded-sm px-2 py-1 bg-gray-100/20 inline-flex gap-2 items-center backdrop-blur-sm text-sm border border-gray-200 shadow-sm',
|
|
57
57
|
})
|
|
58
58
|
|
|
59
59
|
export const MultiSelectItemRemoveButtonUI = uic('span', {
|
package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/common.tsx
RENAMED
|
@@ -31,7 +31,7 @@ const TenantFormSingleError = ({ error, developerMessage }: { error: string; dev
|
|
|
31
31
|
<FormErrorUI>{error}</FormErrorUI>
|
|
32
32
|
{/*{developerMessage && <div>*/}
|
|
33
33
|
{/* {showDeveloperMessage*/}
|
|
34
|
-
{/* ? <div className="mt-1 text-xs font-light font-mono bg-gray-50 shadow-inner p-2 rounded border">{developerMessage}</div>*/}
|
|
34
|
+
{/* ? <div className="mt-1 text-xs font-light font-mono bg-gray-50 shadow-inner p-2 rounded-sm border">{developerMessage}</div>*/}
|
|
35
35
|
{/* : <button className="text-xs underline" onClick={() => setShowDeveloperMessage(!showDeveloperMessage)}>Show details</button>}*/}
|
|
36
36
|
{/*</div>}*/}
|
|
37
37
|
</>
|
|
@@ -50,7 +50,7 @@ export const MembershipsControl = ({ setMemberships, memberships, roles }: Membe
|
|
|
50
50
|
{memberships.map(membership => {
|
|
51
51
|
const role = roles?.[membership.role]
|
|
52
52
|
return (
|
|
53
|
-
<div key={membership.role} className="border rounded px-4 py-2">
|
|
53
|
+
<div key={membership.role} className="border border-gray-200 rounded-sm px-4 py-2">
|
|
54
54
|
<div className="flex justify-between items-center">
|
|
55
55
|
<h2 className="font-semibold">{role?.label ?? membership.role}</h2>
|
|
56
56
|
<Button
|
package/resources/templates/{template-workspace → default}/admin/lib/tenant/otp/otp-setup.tsx
RENAMED
|
@@ -30,7 +30,7 @@ export const OtpSetup = () => {
|
|
|
30
30
|
>
|
|
31
31
|
<form>
|
|
32
32
|
{person.otpEnabled && <>
|
|
33
|
-
<div className="border-destructive
|
|
33
|
+
<div className="border border-destructive p-4 mb-4 rounded-sm">
|
|
34
34
|
{dict.tenant.otpSetup.alreadyHaveOtp}
|
|
35
35
|
</div>
|
|
36
36
|
</>}
|
|
@@ -20,7 +20,7 @@ export const ToastContent = ({ title, children, action, details }: {
|
|
|
20
20
|
{children && <ToastDescription>{children}</ToastDescription>}
|
|
21
21
|
{details ? (
|
|
22
22
|
open ? (
|
|
23
|
-
<code className="p-1 bg-gray-50 border rounded font-mono text-xs">{details}</code>
|
|
23
|
+
<code className="p-1 bg-gray-50 border border-gray-200 rounded-sm font-mono text-xs">{details}</code>
|
|
24
24
|
) : (
|
|
25
25
|
<div>
|
|
26
26
|
<button onClick={() => setOpen(true)} className="text-sm text-gray-400 underline">{dict.toast.showDetails}</button>
|
|
@@ -32,7 +32,7 @@ export const ToastContent = ({ title, children, action, details }: {
|
|
|
32
32
|
</>
|
|
33
33
|
}
|
|
34
34
|
export const ToastAction = uic(ToastPrimitives.Action, {
|
|
35
|
-
baseClass: 'inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-
|
|
35
|
+
baseClass: 'inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-gray-200 bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive',
|
|
36
36
|
displayName: 'ToastAction',
|
|
37
37
|
})
|
|
38
38
|
|
|
@@ -48,7 +48,7 @@ export const ToastDescription = uic(ToastPrimitives.Description, {
|
|
|
48
48
|
})
|
|
49
49
|
|
|
50
50
|
export const Toast = uic(ToastPrimitives.Root, {
|
|
51
|
-
baseClass: 'group mt-2 pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-r-md border border-l-4 bg-background text-foreground
|
|
51
|
+
baseClass: 'group mt-2 pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-r-md border border-l-4 border-gray-200 bg-background text-foreground shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
|
|
52
52
|
variants: {
|
|
53
53
|
variant: {
|
|
54
54
|
info: 'border-l-blue-500',
|
|
@@ -69,7 +69,7 @@ export const Toast = uic(ToastPrimitives.Root, {
|
|
|
69
69
|
})
|
|
70
70
|
|
|
71
71
|
const ToastClose = uic(ToastPrimitives.Close, {
|
|
72
|
-
baseClass: 'absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-
|
|
72
|
+
baseClass: 'absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',
|
|
73
73
|
displayName: 'ToastClose',
|
|
74
74
|
beforeChildren: <X className="h-4 w-4" />,
|
|
75
75
|
})
|
|
@@ -109,4 +109,3 @@ const ToastList = () => {
|
|
|
109
109
|
</>
|
|
110
110
|
)
|
|
111
111
|
}
|
|
112
|
-
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { uic, uiconfig } from '../utils'
|
|
2
2
|
|
|
3
3
|
export const buttonConfig = uiconfig({
|
|
4
|
-
baseClass: 'inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:outline-
|
|
4
|
+
baseClass: 'inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 transition-all',
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
|
7
|
-
default: 'bg-primary text-primary-foreground shadow hover:bg-primary/90',
|
|
8
|
-
destructive: 'bg-destructive
|
|
9
|
-
outline: 'border border-input bg-background shadow-
|
|
10
|
-
secondary: 'bg-secondary border border-input text-secondary-foreground shadow-
|
|
7
|
+
default: 'bg-primary text-primary-foreground shadow-sm hover:bg-primary/90',
|
|
8
|
+
destructive: 'bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90',
|
|
9
|
+
outline: 'border border-input bg-background-upper shadow-xs hover:bg-accent hover:text-accent-foreground',
|
|
10
|
+
secondary: 'bg-secondary border border-input text-secondary-foreground shadow-xs hover:bg-secondary/80',
|
|
11
11
|
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
12
12
|
link: 'text-primary underline-offset-4 hover:underline',
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
15
|
default: 'h-9 px-4 py-2',
|
|
16
|
-
xs: 'h-6 rounded px-2 text-xs',
|
|
16
|
+
xs: 'h-6 rounded-sm px-2 text-xs',
|
|
17
17
|
sm: 'h-8 rounded-md px-3 text-xs',
|
|
18
18
|
lg: 'h-10 rounded-md px-8',
|
|
19
19
|
icon: 'h-9 w-9',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { uic } from '../utils'
|
|
2
2
|
|
|
3
3
|
export const Card = uic('div', {
|
|
4
|
-
baseClass: 'rounded-xl border bg-card text-card-foreground shadow',
|
|
4
|
+
baseClass: 'rounded-xl border border-gray-200 bg-card text-card-foreground shadow-sm',
|
|
5
5
|
})
|
|
6
6
|
|
|
7
7
|
export const CardHeader = uic('div', {
|
|
@@ -18,7 +18,7 @@ export const DialogOverlay = uic(DialogPrimitive.DialogOverlay, {
|
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
export const DialogContent = uic(DialogPrimitive.Content, {
|
|
21
|
-
baseClass: 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
|
|
21
|
+
baseClass: 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200 bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
|
|
22
22
|
wrapOuter: props => (
|
|
23
23
|
<DialogPortal>
|
|
24
24
|
<DialogOverlay />
|
|
@@ -26,7 +26,7 @@ export const DialogContent = uic(DialogPrimitive.Content, {
|
|
|
26
26
|
</DialogPortal>
|
|
27
27
|
),
|
|
28
28
|
afterChildren: <>
|
|
29
|
-
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-
|
|
29
|
+
<DialogPrimitive.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-accent data-[state=open]:text-muted-foreground">
|
|
30
30
|
<XIcon className="h-4 w-4" />
|
|
31
31
|
<span className="sr-only">Close</span>
|
|
32
32
|
</DialogPrimitive.Close>
|
|
@@ -23,7 +23,7 @@ export const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
export const DropdownMenuSubTrigger = uic(DropdownMenuPrimitive.SubTrigger, {
|
|
26
|
-
baseClass: 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
26
|
+
baseClass: 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent',
|
|
27
27
|
beforeChildren: (
|
|
28
28
|
<ChevronRight className="ml-auto h-4 w-4" />
|
|
29
29
|
),
|
|
@@ -31,23 +31,23 @@ export const DropdownMenuSubTrigger = uic(DropdownMenuPrimitive.SubTrigger, {
|
|
|
31
31
|
})
|
|
32
32
|
|
|
33
33
|
export const DropdownMenuSubContent = uic(DropdownMenuPrimitive.SubContent, {
|
|
34
|
-
baseClass: 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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',
|
|
34
|
+
baseClass: 'z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 bg-popover p-1 text-popover-foreground shadow-lg 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',
|
|
35
35
|
displayName: 'DropdownMenuSubContent',
|
|
36
36
|
})
|
|
37
37
|
|
|
38
38
|
export const DropdownMenuContent = uic(DropdownMenuPrimitive.DropdownMenuContent, {
|
|
39
39
|
wrapOuter: ({ children }) => <DropdownMenuPrimitive.Portal>{children}</DropdownMenuPrimitive.Portal>,
|
|
40
|
-
baseClass: 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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',
|
|
40
|
+
baseClass: 'z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 bg-popover p-1 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',
|
|
41
41
|
displayName: 'DropdownMenuContent',
|
|
42
42
|
})
|
|
43
43
|
|
|
44
44
|
export const DropdownMenuItem = uic(DropdownMenuPrimitive.Item, {
|
|
45
|
-
baseClass: 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
45
|
+
baseClass: 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
46
46
|
displayName: 'DropdownMenuItem',
|
|
47
47
|
})
|
|
48
48
|
|
|
49
49
|
export const DropdownMenuCheckboxItem = uic(DropdownMenuPrimitive.CheckboxItem, {
|
|
50
|
-
baseClass: 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
50
|
+
baseClass: 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
51
51
|
beforeChildren: (
|
|
52
52
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
53
53
|
<DropdownMenuPrimitive.ItemIndicator>
|
|
@@ -59,7 +59,7 @@ export const DropdownMenuCheckboxItem = uic(DropdownMenuPrimitive.CheckboxItem,
|
|
|
59
59
|
})
|
|
60
60
|
|
|
61
61
|
export const DropdownMenuRadioItem = uic(DropdownMenuPrimitive.RadioItem, {
|
|
62
|
-
baseClass: 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
62
|
+
baseClass: 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
63
63
|
beforeChildren: (
|
|
64
64
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
65
65
|
<DropdownMenuPrimitive.ItemIndicator>
|