@payloadcms/ui 4.0.0-internal.1f9ae9a → 4.0.0-internal.293e026
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/css/colors.css +107 -60
- package/dist/elements/BulkUpload/EditMany/index.js.map +1 -1
- package/dist/elements/Button/types.d.ts +0 -8
- package/dist/elements/Button/types.d.ts.map +1 -1
- package/dist/elements/Button/types.js.map +1 -1
- package/dist/elements/Chip/index.css +1 -1
- package/dist/elements/ColumnSelector/index.d.ts.map +1 -1
- package/dist/elements/ColumnSelector/index.js +5 -1
- package/dist/elements/ColumnSelector/index.js.map +1 -1
- package/dist/elements/ColumnsButton/index.js +1 -1
- package/dist/elements/ColumnsButton/index.js.map +1 -1
- package/dist/elements/Combobox/index.css +8 -8
- package/dist/elements/Combobox/index.d.ts +2 -0
- package/dist/elements/Combobox/index.d.ts.map +1 -1
- package/dist/elements/Combobox/index.js +25 -20
- package/dist/elements/Combobox/index.js.map +1 -1
- package/dist/elements/ConfirmationModal/index.d.ts.map +1 -1
- package/dist/elements/ConfirmationModal/index.js +24 -115
- package/dist/elements/ConfirmationModal/index.js.map +1 -1
- package/dist/elements/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/elements/DatePicker/DatePicker.js +4 -2
- package/dist/elements/DatePicker/DatePicker.js.map +1 -1
- package/dist/elements/DatePicker/index.css +5 -0
- package/dist/elements/DatePicker/index.js +1 -1
- package/dist/elements/DatePicker/index.js.map +1 -1
- package/dist/elements/Dialog/DialogBody/index.d.ts +6 -0
- package/dist/elements/Dialog/DialogBody/index.d.ts.map +1 -0
- package/dist/elements/Dialog/DialogBody/index.js +14 -0
- package/dist/elements/Dialog/DialogBody/index.js.map +1 -0
- package/dist/elements/Dialog/DialogCancel/index.d.ts +7 -0
- package/dist/elements/Dialog/DialogCancel/index.d.ts.map +1 -0
- package/dist/elements/Dialog/DialogCancel/index.js +69 -0
- package/dist/elements/Dialog/DialogCancel/index.js.map +1 -0
- package/dist/elements/Dialog/DialogConfirm/index.d.ts +8 -0
- package/dist/elements/Dialog/DialogConfirm/index.d.ts.map +1 -0
- package/dist/elements/Dialog/DialogConfirm/index.js +75 -0
- package/dist/elements/Dialog/DialogConfirm/index.js.map +1 -0
- package/dist/elements/Dialog/DialogFooter/index.d.ts +6 -0
- package/dist/elements/Dialog/DialogFooter/index.d.ts.map +1 -0
- package/dist/elements/Dialog/DialogFooter/index.js +17 -0
- package/dist/elements/Dialog/DialogFooter/index.js.map +1 -0
- package/dist/elements/Dialog/DialogHeader/index.d.ts +8 -0
- package/dist/elements/Dialog/DialogHeader/index.d.ts.map +1 -0
- package/dist/elements/Dialog/DialogHeader/index.js +70 -0
- package/dist/elements/Dialog/DialogHeader/index.js.map +1 -0
- package/dist/elements/Dialog/DialogModal/index.d.ts +18 -0
- package/dist/elements/Dialog/DialogModal/index.d.ts.map +1 -0
- package/dist/elements/Dialog/DialogModal/index.js +99 -0
- package/dist/elements/Dialog/DialogModal/index.js.map +1 -0
- package/dist/elements/Dialog/context.d.ts +8 -0
- package/dist/elements/Dialog/context.d.ts.map +1 -0
- package/dist/elements/Dialog/context.js +10 -0
- package/dist/elements/Dialog/context.js.map +1 -0
- package/dist/elements/{Modal → Dialog}/index.css +42 -32
- package/dist/elements/Dialog/index.d.ts +13 -0
- package/dist/elements/Dialog/index.d.ts.map +1 -0
- package/dist/elements/Dialog/index.js +7 -0
- package/dist/elements/Dialog/index.js.map +1 -0
- package/dist/elements/DocumentLocked/index.css +5 -0
- package/dist/elements/DocumentLocked/index.d.ts +1 -0
- package/dist/elements/DocumentLocked/index.d.ts.map +1 -1
- package/dist/elements/DocumentLocked/index.js +68 -92
- package/dist/elements/DocumentLocked/index.js.map +1 -1
- package/dist/elements/DocumentStaleData/index.d.ts.map +1 -1
- package/dist/elements/DocumentStaleData/index.js +36 -34
- package/dist/elements/DocumentStaleData/index.js.map +1 -1
- package/dist/elements/DocumentTakeOver/index.d.ts.map +1 -1
- package/dist/elements/DocumentTakeOver/index.js +46 -52
- package/dist/elements/DocumentTakeOver/index.js.map +1 -1
- package/dist/elements/DraggableSortable/index.js.map +1 -1
- package/dist/elements/EditMany/DrawerContent.d.ts +1 -1
- package/dist/elements/EditMany/DrawerContent.d.ts.map +1 -1
- package/dist/elements/EditMany/DrawerContent.js +1 -1
- package/dist/elements/EditMany/DrawerContent.js.map +1 -1
- package/dist/elements/EditMany/index.js.map +1 -1
- package/dist/elements/EmailAndUsername/{index.scss → index.css} +1 -3
- package/dist/elements/EmailAndUsername/index.d.ts +1 -1
- package/dist/elements/EmailAndUsername/index.d.ts.map +1 -1
- package/dist/elements/EmailAndUsername/index.js +1 -1
- package/dist/elements/EmailAndUsername/index.js.map +1 -1
- package/dist/elements/GroupByControl/index.d.ts.map +1 -1
- package/dist/elements/GroupByControl/index.js +3 -0
- package/dist/elements/GroupByControl/index.js.map +1 -1
- package/dist/elements/LeaveWithoutSaving/index.d.ts.map +1 -1
- package/dist/elements/LeaveWithoutSaving/index.js +40 -35
- package/dist/elements/LeaveWithoutSaving/index.js.map +1 -1
- package/dist/elements/LeaveWithoutSaving/usePreventLeave.js.map +1 -1
- package/dist/elements/ListControls/index.css +0 -7
- package/dist/elements/ListControls/index.d.ts.map +1 -1
- package/dist/elements/ListControls/index.js +24 -10
- package/dist/elements/ListControls/index.js.map +1 -1
- package/dist/elements/ListControls/types.d.ts +2 -0
- package/dist/elements/ListControls/types.d.ts.map +1 -1
- package/dist/elements/ListControls/types.js.map +1 -1
- package/dist/elements/ListSelection/index.css +1 -1
- package/dist/elements/LivePreview/ToolbarArea/index.d.ts +1 -1
- package/dist/elements/LivePreview/ToolbarArea/index.d.ts.map +1 -1
- package/dist/elements/LivePreview/ToolbarArea/index.js +1 -1
- package/dist/elements/LivePreview/ToolbarArea/index.js.map +1 -1
- package/dist/elements/Modal/index.d.ts +1 -17
- package/dist/elements/Modal/index.d.ts.map +1 -1
- package/dist/elements/Modal/index.js +1 -44
- package/dist/elements/Modal/index.js.map +1 -1
- package/dist/elements/Nav/NavWrapper/{index.scss → index.css} +2 -4
- package/dist/elements/Nav/NavWrapper/index.d.ts +1 -1
- package/dist/elements/Nav/NavWrapper/index.d.ts.map +1 -1
- package/dist/elements/Nav/NavWrapper/index.js +1 -1
- package/dist/elements/Nav/NavWrapper/index.js.map +1 -1
- package/dist/elements/Nav/SidebarTabs/index.css +6 -0
- package/dist/elements/NavGroup/index.d.ts.map +1 -1
- package/dist/elements/NavGroup/index.js +21 -29
- package/dist/elements/NavGroup/index.js.map +1 -1
- package/dist/elements/Pill/index.css +1 -1
- package/dist/elements/PillSelector/index.css +1 -1
- package/dist/elements/Popup/PopupDivider/index.css +0 -2
- package/dist/elements/Popup/index.d.ts.map +1 -1
- package/dist/elements/Popup/index.js +27 -10
- package/dist/elements/Popup/index.js.map +1 -1
- package/dist/elements/ReactSelect/index.css +53 -52
- package/dist/elements/ReactSelect/index.d.ts.map +1 -1
- package/dist/elements/ReactSelect/index.js +69 -10
- package/dist/elements/ReactSelect/index.js.map +1 -1
- package/dist/elements/ReactSelect/types.d.ts +6 -1
- package/dist/elements/ReactSelect/types.d.ts.map +1 -1
- package/dist/elements/ReactSelect/types.js.map +1 -1
- package/dist/elements/RenderServerComponent/clientOnly.d.ts +8 -0
- package/dist/elements/RenderServerComponent/clientOnly.d.ts.map +1 -0
- package/dist/elements/RenderServerComponent/clientOnly.js +56 -0
- package/dist/elements/RenderServerComponent/clientOnly.js.map +1 -0
- package/dist/elements/ShimmerEffect/index.css +40 -0
- package/dist/elements/ShimmerEffect/index.d.ts +1 -1
- package/dist/elements/ShimmerEffect/index.d.ts.map +1 -1
- package/dist/elements/ShimmerEffect/index.js +1 -1
- package/dist/elements/ShimmerEffect/index.js.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Blocks/index.js +1 -2
- package/dist/elements/Table/DefaultCell/fields/Blocks/index.js.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Checkbox/index.d.ts +1 -1
- package/dist/elements/Table/DefaultCell/fields/Checkbox/index.d.ts.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Checkbox/index.js +1 -1
- package/dist/elements/Table/DefaultCell/fields/Checkbox/index.js.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Code/index.d.ts +1 -1
- package/dist/elements/Table/DefaultCell/fields/Code/index.d.ts.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Code/index.js +1 -1
- package/dist/elements/Table/DefaultCell/fields/Code/index.js.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/File/index.css +25 -0
- package/dist/elements/Table/DefaultCell/fields/File/index.d.ts +1 -1
- package/dist/elements/Table/DefaultCell/fields/File/index.d.ts.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/File/index.js +1 -1
- package/dist/elements/Table/DefaultCell/fields/File/index.js.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Hierarchy/index.css +17 -0
- package/dist/elements/Table/DefaultCell/fields/Hierarchy/index.d.ts +1 -1
- package/dist/elements/Table/DefaultCell/fields/Hierarchy/index.d.ts.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Hierarchy/index.js +1 -1
- package/dist/elements/Table/DefaultCell/fields/Hierarchy/index.js.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/JSON/index.css +30 -0
- package/dist/elements/Table/DefaultCell/fields/JSON/index.d.ts +1 -1
- package/dist/elements/Table/DefaultCell/fields/JSON/index.d.ts.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/JSON/index.js +1 -1
- package/dist/elements/Table/DefaultCell/fields/JSON/index.js.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Relationship/index.d.ts +0 -1
- package/dist/elements/Table/DefaultCell/fields/Relationship/index.d.ts.map +1 -1
- package/dist/elements/Table/DefaultCell/fields/Relationship/index.js +0 -1
- package/dist/elements/Table/DefaultCell/fields/Relationship/index.js.map +1 -1
- package/dist/elements/TimezonePicker/index.css +73 -24
- package/dist/elements/TimezonePicker/index.d.ts.map +1 -1
- package/dist/elements/TimezonePicker/index.js +31 -4
- package/dist/elements/TimezonePicker/index.js.map +1 -1
- package/dist/elements/WhereBuilder/Condition/Number/index.d.ts +0 -1
- package/dist/elements/WhereBuilder/Condition/Number/index.d.ts.map +1 -1
- package/dist/elements/WhereBuilder/Condition/Number/index.js +26 -40
- package/dist/elements/WhereBuilder/Condition/Number/index.js.map +1 -1
- package/dist/elements/WhereBuilder/Condition/Relationship/index.css +2 -2
- package/dist/elements/WhereBuilder/Condition/Text/index.d.ts +0 -1
- package/dist/elements/WhereBuilder/Condition/Text/index.d.ts.map +1 -1
- package/dist/elements/WhereBuilder/Condition/Text/index.js +24 -35
- package/dist/elements/WhereBuilder/Condition/Text/index.js.map +1 -1
- package/dist/elements/WhereBuilder/Condition/index.css +111 -0
- package/dist/elements/WhereBuilder/Condition/index.d.ts +5 -2
- package/dist/elements/WhereBuilder/Condition/index.d.ts.map +1 -1
- package/dist/elements/WhereBuilder/Condition/index.js +41 -21
- package/dist/elements/WhereBuilder/Condition/index.js.map +1 -1
- package/dist/elements/WhereBuilder/index.css +74 -0
- package/dist/elements/WhereBuilder/index.d.ts +1 -1
- package/dist/elements/WhereBuilder/index.d.ts.map +1 -1
- package/dist/elements/WhereBuilder/index.js +138 -92
- package/dist/elements/WhereBuilder/index.js.map +1 -1
- package/dist/elements/WhereBuilder/types.d.ts +7 -0
- package/dist/elements/WhereBuilder/types.d.ts.map +1 -1
- package/dist/elements/WhereBuilder/types.js.map +1 -1
- package/dist/exports/client/index.d.ts +36 -6
- package/dist/exports/client/index.d.ts.map +1 -1
- package/dist/exports/client/index.js +2 -86
- package/dist/exports/client/index.js.map +4 -4
- package/dist/exports/server.d.ts +3 -0
- package/dist/exports/server.d.ts.map +1 -0
- package/dist/exports/server.js +2 -0
- package/dist/exports/server.js.map +1 -0
- package/dist/exports/shared/index.js +1 -1
- package/dist/exports/shared/index.js.map +2 -2
- package/dist/fields/Blocks/index.d.ts.map +1 -1
- package/dist/fields/Blocks/index.js +6 -11
- package/dist/fields/Blocks/index.js.map +1 -1
- package/dist/fields/Group/index.css +1 -1
- package/dist/fields/Join/index.js +1 -1
- package/dist/fields/Join/index.js.map +1 -1
- package/dist/fields/Relationship/select-components/MultiValueLabel/index.css +3 -3
- package/dist/forms/NullifyField/{index.scss → index.css} +3 -2
- package/dist/forms/NullifyField/index.d.ts +1 -1
- package/dist/forms/NullifyField/index.d.ts.map +1 -1
- package/dist/forms/NullifyField/index.js +1 -1
- package/dist/forms/NullifyField/index.js.map +1 -1
- package/dist/forms/Submit/index.d.ts +1 -1
- package/dist/forms/Submit/index.d.ts.map +1 -1
- package/dist/forms/Submit/index.js +32 -22
- package/dist/forms/Submit/index.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js +1 -1
- package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.js +1 -1
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/renderField.js +1 -1
- package/dist/forms/fieldSchemasToFormState/renderField.js.map +1 -1
- package/dist/forms/useField/index.js.map +1 -1
- package/dist/icons/Dots/index.css +4 -4
- package/dist/providers/Config/index.js.map +1 -1
- package/dist/providers/ListQuery/index.d.ts.map +1 -1
- package/dist/providers/ListQuery/index.js +23 -8
- package/dist/providers/ListQuery/index.js.map +1 -1
- package/dist/providers/ListQuery/types.d.ts +2 -0
- package/dist/providers/ListQuery/types.d.ts.map +1 -1
- package/dist/providers/ListQuery/types.js.map +1 -1
- package/dist/providers/Root/index.d.ts.map +1 -1
- package/dist/providers/Root/index.js +27 -33
- package/dist/providers/Root/index.js.map +1 -1
- package/dist/providers/RouteTransition/ProgressBar/index.css +23 -0
- package/dist/providers/RouteTransition/ProgressBar/index.d.ts +1 -1
- package/dist/providers/RouteTransition/ProgressBar/index.d.ts.map +1 -1
- package/dist/providers/RouteTransition/ProgressBar/index.js +1 -1
- package/dist/providers/RouteTransition/ProgressBar/index.js.map +1 -1
- package/dist/providers/TableColumns/RenderDefaultCell/index.css +11 -0
- package/dist/providers/TableColumns/RenderDefaultCell/index.d.ts +1 -1
- package/dist/providers/TableColumns/RenderDefaultCell/index.d.ts.map +1 -1
- package/dist/providers/TableColumns/RenderDefaultCell/index.js +1 -1
- package/dist/providers/TableColumns/RenderDefaultCell/index.js.map +1 -1
- package/dist/providers/Theme/index.d.ts +17 -2
- package/dist/providers/Theme/index.d.ts.map +1 -1
- package/dist/providers/Theme/index.js +122 -73
- package/dist/providers/Theme/index.js.map +1 -1
- package/dist/scss/app.scss +1 -1
- package/dist/scss/styles.scss +4 -4
- package/dist/scss/toastify.scss +2 -2
- package/dist/styles.css +1 -1
- package/dist/utilities/buildClientFieldSchemaMap/traverseFields.js +1 -1
- package/dist/utilities/buildClientFieldSchemaMap/traverseFields.js.map +1 -1
- package/dist/utilities/buildFieldSchemaMap/traverseFields.js +1 -1
- package/dist/utilities/buildFieldSchemaMap/traverseFields.js.map +1 -1
- package/dist/utilities/copyDataFromLocale.js +1 -1
- package/dist/utilities/copyDataFromLocale.js.map +1 -1
- package/dist/utilities/formatMetadata.d.ts +5 -0
- package/dist/utilities/formatMetadata.d.ts.map +1 -0
- package/dist/utilities/formatMetadata.js +108 -0
- package/dist/utilities/formatMetadata.js.map +1 -0
- package/dist/utilities/formatMetadata.spec.js +83 -0
- package/dist/utilities/formatMetadata.spec.js.map +1 -0
- package/dist/utilities/getDocPreferences.d.ts +11 -0
- package/dist/utilities/getDocPreferences.d.ts.map +1 -0
- package/dist/utilities/getDocPreferences.js +45 -0
- package/dist/utilities/getDocPreferences.js.map +1 -0
- package/dist/utilities/getDocumentData.d.ts +14 -0
- package/dist/utilities/getDocumentData.d.ts.map +1 -0
- package/dist/utilities/getDocumentData.js +60 -0
- package/dist/utilities/getDocumentData.js.map +1 -0
- package/dist/utilities/getDocumentPermissions.d.ts +18 -0
- package/dist/utilities/getDocumentPermissions.d.ts.map +1 -0
- package/dist/utilities/getDocumentPermissions.js +125 -0
- package/dist/utilities/getDocumentPermissions.js.map +1 -0
- package/dist/utilities/getHierarchyAncestry.d.ts +24 -0
- package/dist/utilities/getHierarchyAncestry.d.ts.map +1 -0
- package/dist/utilities/getHierarchyAncestry.js +103 -0
- package/dist/utilities/getHierarchyAncestry.js.map +1 -0
- package/dist/utilities/getIsLocked.d.ts +16 -0
- package/dist/utilities/getIsLocked.d.ts.map +1 -0
- package/dist/utilities/getIsLocked.js +79 -0
- package/dist/utilities/getIsLocked.js.map +1 -0
- package/dist/utilities/getRouteWithoutAdmin.d.ts +5 -0
- package/dist/utilities/getRouteWithoutAdmin.d.ts.map +1 -0
- package/dist/utilities/getRouteWithoutAdmin.js +7 -0
- package/dist/utilities/getRouteWithoutAdmin.js.map +1 -0
- package/dist/utilities/getVersions.d.ts +26 -0
- package/dist/utilities/getVersions.d.ts.map +1 -0
- package/dist/utilities/getVersions.js +238 -0
- package/dist/utilities/getVersions.js.map +1 -0
- package/dist/utilities/handleAuthRedirect.d.ts +23 -0
- package/dist/utilities/handleAuthRedirect.d.ts.map +1 -0
- package/dist/utilities/handleAuthRedirect.js +42 -0
- package/dist/utilities/handleAuthRedirect.js.map +1 -0
- package/dist/utilities/handleLivePreview.d.ts.map +1 -1
- package/dist/utilities/handleServerFunctions.d.ts +11 -0
- package/dist/utilities/handleServerFunctions.d.ts.map +1 -0
- package/dist/utilities/handleServerFunctions.js +72 -0
- package/dist/utilities/handleServerFunctions.js.map +1 -0
- package/dist/utilities/isCustomAdminView.d.ts +8 -0
- package/dist/utilities/isCustomAdminView.d.ts.map +1 -0
- package/dist/utilities/isCustomAdminView.js +22 -0
- package/dist/utilities/isCustomAdminView.js.map +1 -0
- package/dist/utilities/isCustomAdminView.spec.js +90 -0
- package/dist/utilities/isCustomAdminView.spec.js.map +1 -0
- package/dist/utilities/isPathMatchingRoute.d.ts +8 -0
- package/dist/utilities/isPathMatchingRoute.d.ts.map +1 -0
- package/dist/utilities/isPathMatchingRoute.js +30 -0
- package/dist/utilities/isPathMatchingRoute.js.map +1 -0
- package/dist/utilities/isPathMatchingRoute.spec.js +178 -0
- package/dist/utilities/isPathMatchingRoute.spec.js.map +1 -0
- package/dist/utilities/isPublicAdminRoute.d.ts +7 -0
- package/dist/utilities/isPublicAdminRoute.d.ts.map +1 -0
- package/dist/utilities/isPublicAdminRoute.js +24 -0
- package/dist/utilities/isPublicAdminRoute.js.map +1 -0
- package/dist/utilities/renderTable.js +1 -1
- package/dist/utilities/renderTable.js.map +1 -1
- package/dist/utilities/serverFunctionRegistry.d.ts +13 -0
- package/dist/utilities/serverFunctionRegistry.d.ts.map +1 -0
- package/dist/utilities/serverFunctionRegistry.js +25 -0
- package/dist/utilities/serverFunctionRegistry.js.map +1 -0
- package/dist/utilities/slugify.d.ts +15 -0
- package/dist/utilities/slugify.d.ts.map +1 -0
- package/dist/utilities/slugify.js +47 -0
- package/dist/utilities/slugify.js.map +1 -0
- package/dist/utilities/switchLanguageHandler.d.ts +13 -0
- package/dist/utilities/switchLanguageHandler.d.ts.map +1 -0
- package/dist/utilities/switchLanguageHandler.js +16 -0
- package/dist/utilities/switchLanguageHandler.js.map +1 -0
- package/dist/utilities/traverseForLocalizedFields.d.ts.map +1 -1
- package/dist/utilities/traverseForLocalizedFields.js +3 -0
- package/dist/utilities/traverseForLocalizedFields.js.map +1 -1
- package/dist/views/API/LocaleSelector/index.d.ts +9 -0
- package/dist/views/API/LocaleSelector/index.d.ts.map +1 -0
- package/dist/views/API/LocaleSelector/index.js +45 -0
- package/dist/views/API/LocaleSelector/index.js.map +1 -0
- package/dist/views/API/generateAPIViewMetadata.d.ts +19 -0
- package/dist/views/API/generateAPIViewMetadata.d.ts.map +1 -0
- package/dist/views/API/generateAPIViewMetadata.js +29 -0
- package/dist/views/API/generateAPIViewMetadata.js.map +1 -0
- package/dist/views/API/index.client.d.ts +4 -0
- package/dist/views/API/index.client.d.ts.map +1 -0
- package/dist/views/API/index.client.js +263 -0
- package/dist/views/API/index.client.js.map +1 -0
- package/dist/views/API/index.css +205 -0
- package/dist/views/API/index.d.ts +4 -0
- package/dist/views/API/index.d.ts.map +1 -0
- package/dist/views/API/index.js +8 -0
- package/dist/views/API/index.js.map +1 -0
- package/dist/views/Account/ResetPreferences/index.d.ts +5 -0
- package/dist/views/Account/ResetPreferences/index.d.ts.map +1 -0
- package/dist/views/Account/ResetPreferences/index.js +115 -0
- package/dist/views/Account/ResetPreferences/index.js.map +1 -0
- package/dist/views/Account/Settings/LanguageSelector.d.ts +6 -0
- package/dist/views/Account/Settings/LanguageSelector.d.ts.map +1 -0
- package/dist/views/Account/Settings/LanguageSelector.js +53 -0
- package/dist/views/Account/Settings/LanguageSelector.js.map +1 -0
- package/dist/views/Account/Settings/index.css +26 -0
- package/dist/views/Account/Settings/index.d.ts +13 -0
- package/dist/views/Account/Settings/index.d.ts.map +1 -0
- package/dist/views/Account/Settings/index.js +33 -0
- package/dist/views/Account/Settings/index.js.map +1 -0
- package/dist/views/Account/ToggleHighContrast/index.d.ts +3 -0
- package/dist/views/Account/ToggleHighContrast/index.d.ts.map +1 -0
- package/dist/views/Account/ToggleHighContrast/index.js +47 -0
- package/dist/views/Account/ToggleHighContrast/index.js.map +1 -0
- package/dist/views/Account/ToggleTheme/index.d.ts +3 -0
- package/dist/views/Account/ToggleTheme/index.d.ts.map +1 -0
- package/dist/views/Account/ToggleTheme/index.js +62 -0
- package/dist/views/Account/ToggleTheme/index.js.map +1 -0
- package/dist/views/Account/index.client.d.ts +3 -0
- package/dist/views/Account/index.client.d.ts.map +1 -0
- package/dist/views/Account/index.client.js +38 -0
- package/dist/views/Account/index.client.js.map +1 -0
- package/dist/views/Account/index.d.ts +4 -0
- package/dist/views/Account/index.d.ts.map +1 -0
- package/dist/views/Account/index.js +181 -0
- package/dist/views/Account/index.js.map +1 -0
- package/dist/views/Account/metadata.d.ts +3 -0
- package/dist/views/Account/metadata.d.ts.map +1 -0
- package/dist/views/Account/metadata.js +14 -0
- package/dist/views/Account/metadata.js.map +1 -0
- package/dist/views/CollectionTrash/generateCollectionTrashMetadata.d.ts +11 -0
- package/dist/views/CollectionTrash/generateCollectionTrashMetadata.d.ts.map +1 -0
- package/dist/views/CollectionTrash/generateCollectionTrashMetadata.js +25 -0
- package/dist/views/CollectionTrash/generateCollectionTrashMetadata.js.map +1 -0
- package/dist/views/CollectionTrash/index.d.ts +18 -0
- package/dist/views/CollectionTrash/index.d.ts.map +1 -0
- package/dist/views/CollectionTrash/index.js +20 -0
- package/dist/views/CollectionTrash/index.js.map +1 -0
- package/dist/views/CreateFirstUser/index.client.d.ts +10 -0
- package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -0
- package/dist/views/CreateFirstUser/index.client.js +128 -0
- package/dist/views/CreateFirstUser/index.client.js.map +1 -0
- package/dist/views/CreateFirstUser/index.css +69 -0
- package/dist/views/CreateFirstUser/index.d.ts +5 -0
- package/dist/views/CreateFirstUser/index.d.ts.map +1 -0
- package/dist/views/CreateFirstUser/index.js +94 -0
- package/dist/views/CreateFirstUser/index.js.map +1 -0
- package/dist/views/CreateFirstUser/metadata.d.ts +3 -0
- package/dist/views/CreateFirstUser/metadata.d.ts.map +1 -0
- package/dist/views/CreateFirstUser/metadata.js +14 -0
- package/dist/views/CreateFirstUser/metadata.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts +19 -0
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js +216 -0
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts +11 -0
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js +137 -0
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts +8 -0
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js +81 -0
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts +22 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js +444 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.css +299 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts +5 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.js +74 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts +15 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js +107 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts +12 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js +65 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts +21 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js +80 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts +21 -0
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js +194 -0
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts +7 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js +38 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts +4 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js +21 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts +4 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js +10 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts +23 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js +103 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts +2 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js +269 -0
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js.map +1 -0
- package/dist/views/Dashboard/Default/index.d.ts +21 -0
- package/dist/views/Dashboard/Default/index.d.ts.map +1 -0
- package/dist/views/Dashboard/Default/index.js +56 -0
- package/dist/views/Dashboard/Default/index.js.map +1 -0
- package/dist/views/Dashboard/index.d.ts +6 -0
- package/dist/views/Dashboard/index.d.ts.map +1 -0
- package/dist/views/Dashboard/index.js +55 -0
- package/dist/views/Dashboard/index.js.map +1 -0
- package/dist/views/Dashboard/metadata.d.ts +3 -0
- package/dist/views/Dashboard/metadata.d.ts.map +1 -0
- package/dist/views/Dashboard/metadata.js +16 -0
- package/dist/views/Dashboard/metadata.js.map +1 -0
- package/dist/views/Dashboard/serverFunctions.d.ts +5 -0
- package/dist/views/Dashboard/serverFunctions.d.ts.map +1 -0
- package/dist/views/Dashboard/serverFunctions.js +3 -0
- package/dist/views/Dashboard/serverFunctions.js.map +1 -0
- package/dist/views/Document/generateEditViewMetadata.d.ts +6 -0
- package/dist/views/Document/generateEditViewMetadata.d.ts.map +1 -0
- package/dist/views/Document/generateEditViewMetadata.js +52 -0
- package/dist/views/Document/generateEditViewMetadata.js.map +1 -0
- package/dist/views/Document/getCustomDocumentViewByKey.d.ts +3 -0
- package/dist/views/Document/getCustomDocumentViewByKey.d.ts.map +1 -0
- package/dist/views/Document/getCustomDocumentViewByKey.js +4 -0
- package/dist/views/Document/getCustomDocumentViewByKey.js.map +1 -0
- package/dist/views/Document/getCustomViewByRoute.d.ts +10 -0
- package/dist/views/Document/getCustomViewByRoute.d.ts.map +1 -0
- package/dist/views/Document/getCustomViewByRoute.js +35 -0
- package/dist/views/Document/getCustomViewByRoute.js.map +1 -0
- package/dist/views/Document/getDocumentView.d.ts +18 -0
- package/dist/views/Document/getDocumentView.d.ts.map +1 -0
- package/dist/views/Document/getDocumentView.js +306 -0
- package/dist/views/Document/getDocumentView.js.map +1 -0
- package/dist/views/Document/getMetaBySegment.d.ts +20 -0
- package/dist/views/Document/getMetaBySegment.d.ts.map +1 -0
- package/dist/views/Document/getMetaBySegment.js +136 -0
- package/dist/views/Document/getMetaBySegment.js.map +1 -0
- package/dist/views/Document/handleServerFunction.d.ts +3 -0
- package/dist/views/Document/handleServerFunction.d.ts.map +1 -0
- package/dist/views/Document/handleServerFunction.js +134 -0
- package/dist/views/Document/handleServerFunction.js.map +1 -0
- package/dist/views/Document/index.d.ts +24 -0
- package/dist/views/Document/index.d.ts.map +1 -0
- package/dist/views/Document/index.js +401 -0
- package/dist/views/Document/index.js.map +1 -0
- package/dist/views/Document/renderDocumentSlots.d.ts +15 -0
- package/dist/views/Document/renderDocumentSlots.d.ts.map +1 -0
- package/dist/views/Document/renderDocumentSlots.js +179 -0
- package/dist/views/Document/renderDocumentSlots.js.map +1 -0
- package/dist/views/Edit/index.css +47 -0
- package/dist/views/Edit/index.d.ts +1 -1
- package/dist/views/Edit/index.d.ts.map +1 -1
- package/dist/views/Edit/index.js +2 -1
- package/dist/views/Edit/index.js.map +1 -1
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.css +24 -0
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts +4 -0
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +1 -0
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +193 -0
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +1 -0
- package/dist/views/ForgotPassword/index.css +12 -0
- package/dist/views/ForgotPassword/index.d.ts +6 -0
- package/dist/views/ForgotPassword/index.d.ts.map +1 -0
- package/dist/views/ForgotPassword/index.js +80 -0
- package/dist/views/ForgotPassword/index.js.map +1 -0
- package/dist/views/ForgotPassword/metadata.d.ts +3 -0
- package/dist/views/ForgotPassword/metadata.d.ts.map +1 -0
- package/dist/views/ForgotPassword/metadata.js +14 -0
- package/dist/views/ForgotPassword/metadata.js.map +1 -0
- package/dist/views/Hierarchy/index.d.ts +18 -0
- package/dist/views/Hierarchy/index.d.ts.map +1 -0
- package/dist/views/Hierarchy/index.js +19 -0
- package/dist/views/Hierarchy/index.js.map +1 -0
- package/dist/views/List/createSerializableValue.d.ts +2 -0
- package/dist/views/List/createSerializableValue.d.ts.map +1 -0
- package/dist/views/List/createSerializableValue.js +14 -0
- package/dist/views/List/createSerializableValue.js.map +1 -0
- package/dist/views/List/enrichDocsWithVersionStatus.d.ts +14 -0
- package/dist/views/List/enrichDocsWithVersionStatus.d.ts.map +1 -0
- package/dist/views/List/enrichDocsWithVersionStatus.js +96 -0
- package/dist/views/List/enrichDocsWithVersionStatus.js.map +1 -0
- package/dist/views/List/extractRelationshipDisplayValue.d.ts +3 -0
- package/dist/views/List/extractRelationshipDisplayValue.d.ts.map +1 -0
- package/dist/views/List/extractRelationshipDisplayValue.js +17 -0
- package/dist/views/List/extractRelationshipDisplayValue.js.map +1 -0
- package/dist/views/List/extractValueOrRelationshipID.d.ts +2 -0
- package/dist/views/List/extractValueOrRelationshipID.d.ts.map +1 -0
- package/dist/views/List/extractValueOrRelationshipID.js +19 -0
- package/dist/views/List/extractValueOrRelationshipID.js.map +1 -0
- package/dist/views/List/generateListViewMetadata.d.ts +5 -0
- package/dist/views/List/generateListViewMetadata.d.ts.map +1 -0
- package/dist/views/List/generateListViewMetadata.js +24 -0
- package/dist/views/List/generateListViewMetadata.js.map +1 -0
- package/dist/views/List/handleGroupBy.d.ts +24 -0
- package/dist/views/List/handleGroupBy.d.ts.map +1 -0
- package/dist/views/List/handleGroupBy.js +160 -0
- package/dist/views/List/handleGroupBy.js.map +1 -0
- package/dist/views/List/handleHierarchy.d.ts +18 -0
- package/dist/views/List/handleHierarchy.d.ts.map +1 -0
- package/dist/views/List/handleHierarchy.js +259 -0
- package/dist/views/List/handleHierarchy.js.map +1 -0
- package/dist/views/List/handleServerFunction.d.ts +4 -0
- package/dist/views/List/handleServerFunction.d.ts.map +1 -0
- package/dist/views/List/handleServerFunction.js +131 -0
- package/dist/views/List/handleServerFunction.js.map +1 -0
- package/dist/views/List/index.client.d.ts +5 -0
- package/dist/views/List/index.client.d.ts.map +1 -0
- package/dist/views/List/index.client.js +306 -0
- package/dist/views/List/index.client.js.map +1 -0
- package/dist/views/List/index.css +4 -0
- package/dist/views/List/index.d.ts +40 -2
- package/dist/views/List/index.d.ts.map +1 -1
- package/dist/views/List/index.js +421 -264
- package/dist/views/List/index.js.map +1 -1
- package/dist/views/List/renderListViewSlots.d.ts +12 -0
- package/dist/views/List/renderListViewSlots.d.ts.map +1 -0
- package/dist/views/List/renderListViewSlots.js +81 -0
- package/dist/views/List/renderListViewSlots.js.map +1 -0
- package/dist/views/List/resolveAllFilterOptions.d.ts +8 -0
- package/dist/views/List/resolveAllFilterOptions.d.ts.map +1 -0
- package/dist/views/List/resolveAllFilterOptions.js +49 -0
- package/dist/views/List/resolveAllFilterOptions.js.map +1 -0
- package/dist/views/List/transformColumnsToSelect.d.ts +3 -0
- package/dist/views/List/transformColumnsToSelect.d.ts.map +1 -0
- package/dist/views/List/transformColumnsToSelect.js +11 -0
- package/dist/views/List/transformColumnsToSelect.js.map +1 -0
- package/dist/views/Login/LoginField/index.d.ts +9 -0
- package/dist/views/Login/LoginField/index.d.ts.map +1 -0
- package/dist/views/Login/LoginField/index.js +100 -0
- package/dist/views/Login/LoginField/index.js.map +1 -0
- package/dist/views/Login/LoginForm/index.css +48 -0
- package/dist/views/Login/LoginForm/index.d.ts +11 -0
- package/dist/views/Login/LoginForm/index.d.ts.map +1 -0
- package/dist/views/Login/LoginForm/index.js +188 -0
- package/dist/views/Login/LoginForm/index.js.map +1 -0
- package/dist/views/Login/index.css +8 -0
- package/dist/views/Login/index.d.ts +6 -0
- package/dist/views/Login/index.d.ts.map +1 -0
- package/dist/views/Login/index.js +99 -0
- package/dist/views/Login/index.js.map +1 -0
- package/dist/views/Login/metadata.d.ts +3 -0
- package/dist/views/Login/metadata.d.ts.map +1 -0
- package/dist/views/Login/metadata.js +14 -0
- package/dist/views/Login/metadata.js.map +1 -0
- package/dist/views/Logout/LogoutClient.d.ts +18 -0
- package/dist/views/Logout/LogoutClient.d.ts.map +1 -0
- package/dist/views/Logout/LogoutClient.js +145 -0
- package/dist/views/Logout/LogoutClient.js.map +1 -0
- package/dist/views/Logout/index.css +18 -0
- package/dist/views/Logout/index.d.ts +7 -0
- package/dist/views/Logout/index.d.ts.map +1 -0
- package/dist/views/Logout/index.js +32 -0
- package/dist/views/Logout/index.js.map +1 -0
- package/dist/views/Logout/metadata.d.ts +3 -0
- package/dist/views/Logout/metadata.d.ts.map +1 -0
- package/dist/views/Logout/metadata.js +13 -0
- package/dist/views/Logout/metadata.js.map +1 -0
- package/dist/views/NotFound/index.client.d.ts +4 -0
- package/dist/views/NotFound/index.client.d.ts.map +1 -0
- package/dist/views/NotFound/index.client.js +75 -0
- package/dist/views/NotFound/index.client.js.map +1 -0
- package/dist/views/NotFound/index.css +47 -0
- package/dist/views/NotFound/index.d.ts +6 -0
- package/dist/views/NotFound/index.d.ts.map +1 -0
- package/dist/views/NotFound/index.js +9 -0
- package/dist/views/NotFound/index.js.map +1 -0
- package/dist/views/NotFound/metadata.d.ts +3 -0
- package/dist/views/NotFound/metadata.d.ts.map +1 -0
- package/dist/views/NotFound/metadata.js +13 -0
- package/dist/views/NotFound/metadata.js.map +1 -0
- package/dist/views/NotFound/page.d.ts +23 -0
- package/dist/views/NotFound/page.d.ts.map +1 -0
- package/dist/views/NotFound/page.js +90 -0
- package/dist/views/NotFound/page.js.map +1 -0
- package/dist/views/ResetPassword/ResetPasswordForm/index.css +24 -0
- package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts +8 -0
- package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts.map +1 -0
- package/dist/views/ResetPassword/ResetPasswordForm/index.js +130 -0
- package/dist/views/ResetPassword/ResetPasswordForm/index.js.map +1 -0
- package/dist/views/ResetPassword/index.css +18 -0
- package/dist/views/ResetPassword/index.d.ts +6 -0
- package/dist/views/ResetPassword/index.d.ts.map +1 -0
- package/dist/views/ResetPassword/index.js +89 -0
- package/dist/views/ResetPassword/index.js.map +1 -0
- package/dist/views/ResetPassword/metadata.d.ts +3 -0
- package/dist/views/ResetPassword/metadata.d.ts.map +1 -0
- package/dist/views/ResetPassword/metadata.js +14 -0
- package/dist/views/ResetPassword/metadata.js.map +1 -0
- package/dist/views/Root/adminViews.d.ts +9 -0
- package/dist/views/Root/adminViews.d.ts.map +1 -0
- package/dist/views/Root/adminViews.js +83 -0
- package/dist/views/Root/adminViews.js.map +1 -0
- package/dist/views/Root/attachViewActions.d.ts +10 -0
- package/dist/views/Root/attachViewActions.d.ts.map +1 -0
- package/dist/views/Root/attachViewActions.js +27 -0
- package/dist/views/Root/attachViewActions.js.map +1 -0
- package/dist/views/Root/generateCustomViewMetadata.d.ts +10 -0
- package/dist/views/Root/generateCustomViewMetadata.d.ts.map +1 -0
- package/dist/views/Root/generateCustomViewMetadata.js +25 -0
- package/dist/views/Root/generateCustomViewMetadata.js.map +1 -0
- package/dist/views/Root/generatePageMetadata.d.ts +19 -0
- package/dist/views/Root/generatePageMetadata.d.ts.map +1 -0
- package/dist/views/Root/generatePageMetadata.js +143 -0
- package/dist/views/Root/generatePageMetadata.js.map +1 -0
- package/dist/views/Root/getCustomCollectionViewByRoute.d.ts +12 -0
- package/dist/views/Root/getCustomCollectionViewByRoute.d.ts.map +1 -0
- package/dist/views/Root/getCustomCollectionViewByRoute.js +48 -0
- package/dist/views/Root/getCustomCollectionViewByRoute.js.map +1 -0
- package/dist/views/Root/getCustomCollectionViewByRoute.spec.js +168 -0
- package/dist/views/Root/getCustomCollectionViewByRoute.spec.js.map +1 -0
- package/dist/views/Root/getCustomGlobalViewByRoute.d.ts +12 -0
- package/dist/views/Root/getCustomGlobalViewByRoute.d.ts.map +1 -0
- package/dist/views/Root/getCustomGlobalViewByRoute.js +46 -0
- package/dist/views/Root/getCustomGlobalViewByRoute.js.map +1 -0
- package/dist/views/Root/getCustomViewByKey.d.ts +10 -0
- package/dist/views/Root/getCustomViewByKey.d.ts.map +1 -0
- package/dist/views/Root/getCustomViewByKey.js +16 -0
- package/dist/views/Root/getCustomViewByKey.js.map +1 -0
- package/dist/views/Root/getCustomViewByRoute.d.ts +16 -0
- package/dist/views/Root/getCustomViewByRoute.d.ts.map +1 -0
- package/dist/views/Root/getCustomViewByRoute.js +49 -0
- package/dist/views/Root/getCustomViewByRoute.js.map +1 -0
- package/dist/views/Root/getDocumentViewInfo.d.ts +6 -0
- package/dist/views/Root/getDocumentViewInfo.d.ts.map +1 -0
- package/dist/views/Root/getDocumentViewInfo.js +28 -0
- package/dist/views/Root/getDocumentViewInfo.js.map +1 -0
- package/dist/views/Root/getRouteData.d.ts +41 -0
- package/dist/views/Root/getRouteData.d.ts.map +1 -0
- package/dist/views/Root/getRouteData.js +345 -0
- package/dist/views/Root/getRouteData.js.map +1 -0
- package/dist/views/Root/index.d.ts +28 -0
- package/dist/views/Root/index.d.ts.map +1 -0
- package/dist/views/Root/index.js +304 -0
- package/dist/views/Root/index.js.map +1 -0
- package/dist/views/Unauthorized/index.css +44 -0
- package/dist/views/Unauthorized/index.d.ts +6 -0
- package/dist/views/Unauthorized/index.d.ts.map +1 -0
- package/dist/views/Unauthorized/index.js +34 -0
- package/dist/views/Unauthorized/index.js.map +1 -0
- package/dist/views/Unauthorized/metadata.d.ts +3 -0
- package/dist/views/Unauthorized/metadata.d.ts.map +1 -0
- package/dist/views/Unauthorized/metadata.js +14 -0
- package/dist/views/Unauthorized/metadata.js.map +1 -0
- package/dist/views/Verify/index.client.d.ts +11 -0
- package/dist/views/Verify/index.client.d.ts.map +1 -0
- package/dist/views/Verify/index.client.js +132 -0
- package/dist/views/Verify/index.client.js.map +1 -0
- package/dist/views/Verify/index.css +38 -0
- package/dist/views/Verify/index.d.ts +6 -0
- package/dist/views/Verify/index.d.ts.map +1 -0
- package/dist/views/Verify/index.js +68 -0
- package/dist/views/Verify/index.js.map +1 -0
- package/dist/views/Verify/metadata.d.ts +3 -0
- package/dist/views/Verify/metadata.d.ts.map +1 -0
- package/dist/views/Verify/metadata.js +14 -0
- package/dist/views/Verify/metadata.js.map +1 -0
- package/dist/views/Version/Default/SelectedLocalesContext.d.ts +7 -0
- package/dist/views/Version/Default/SelectedLocalesContext.d.ts.map +1 -0
- package/dist/views/Version/Default/SelectedLocalesContext.js +8 -0
- package/dist/views/Version/Default/SelectedLocalesContext.js.map +1 -0
- package/dist/views/Version/Default/SetStepNav.d.ts +11 -0
- package/dist/views/Version/Default/SetStepNav.d.ts.map +1 -0
- package/dist/views/Version/Default/SetStepNav.js +139 -0
- package/dist/views/Version/Default/SetStepNav.js.map +1 -0
- package/dist/views/Version/Default/index.css +227 -0
- package/dist/views/Version/Default/index.d.ts +5 -0
- package/dist/views/Version/Default/index.d.ts.map +1 -0
- package/dist/views/Version/Default/index.js +263 -0
- package/dist/views/Version/Default/index.js.map +1 -0
- package/dist/views/Version/Default/types.d.ts +23 -0
- package/dist/views/Version/Default/types.d.ts.map +1 -0
- package/dist/views/Version/Default/types.js +2 -0
- package/dist/views/Version/Default/types.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.css +64 -0
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts +26 -0
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +134 -0
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts +12 -0
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js +81 -0
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts +31 -0
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +439 -0
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.css +97 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js +94 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts +3 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +61 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.css +29 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js +82 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.css +5 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +67 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.css +40 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +5 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +131 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts +10 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js +67 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.css +209 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +21 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +240 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts +3 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js +17 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.css +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +91 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.css +6 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +159 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.css +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +4 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +104 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.css +188 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts +33 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js +225 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +3 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js +29 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/index.css +24 -0
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts +3 -0
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/index.js +14 -0
- package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts +25 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +242 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js +861 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts +2 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js +4 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js +47 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts +19 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +45 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +135 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +1 -0
- package/dist/views/Version/Restore/index.css +26 -0
- package/dist/views/Version/Restore/index.d.ts +16 -0
- package/dist/views/Version/Restore/index.d.ts.map +1 -0
- package/dist/views/Version/Restore/index.js +113 -0
- package/dist/views/Version/Restore/index.js.map +1 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts +4 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts.map +1 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js +60 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js.map +1 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts +33 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts.map +1 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/index.js +246 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/index.js.map +1 -0
- package/dist/views/Version/SelectComparison/VersionDrawer/index.scss +18 -0
- package/dist/views/Version/SelectComparison/index.d.ts +5 -0
- package/dist/views/Version/SelectComparison/index.d.ts.map +1 -0
- package/dist/views/Version/SelectComparison/index.js +60 -0
- package/dist/views/Version/SelectComparison/index.js.map +1 -0
- package/dist/views/Version/SelectComparison/index.scss +9 -0
- package/dist/views/Version/SelectComparison/types.d.ts +26 -0
- package/dist/views/Version/SelectComparison/types.d.ts.map +1 -0
- package/dist/views/Version/SelectComparison/types.js +2 -0
- package/dist/views/Version/SelectComparison/types.js.map +1 -0
- package/dist/views/Version/SelectLocales/index.d.ts +12 -0
- package/dist/views/Version/SelectLocales/index.d.ts.map +1 -0
- package/dist/views/Version/SelectLocales/index.js +39 -0
- package/dist/views/Version/SelectLocales/index.js.map +1 -0
- package/dist/views/Version/generateVersionViewMetadata.d.ts +6 -0
- package/dist/views/Version/generateVersionViewMetadata.d.ts.map +1 -0
- package/dist/views/Version/generateVersionViewMetadata.js +58 -0
- package/dist/views/Version/generateVersionViewMetadata.js.map +1 -0
- package/dist/views/Version/index.d.ts +4 -0
- package/dist/views/Version/index.d.ts.map +1 -0
- package/dist/views/Version/index.js +351 -0
- package/dist/views/Version/index.js.map +1 -0
- package/dist/views/Versions/VersionPillLabel/VersionPillLabel.d.ts +31 -0
- package/dist/views/Versions/VersionPillLabel/VersionPillLabel.d.ts.map +1 -0
- package/dist/views/Versions/VersionPillLabel/VersionPillLabel.js +126 -0
- package/dist/views/Versions/VersionPillLabel/VersionPillLabel.js.map +1 -0
- package/dist/views/Versions/VersionPillLabel/getVersionLabel.d.ts +37 -0
- package/dist/views/Versions/VersionPillLabel/getVersionLabel.d.ts.map +1 -0
- package/dist/views/Versions/VersionPillLabel/getVersionLabel.js +43 -0
- package/dist/views/Versions/VersionPillLabel/getVersionLabel.js.map +1 -0
- package/dist/views/Versions/VersionPillLabel/index.css +31 -0
- package/dist/views/Versions/buildColumns.d.ts +16 -0
- package/dist/views/Versions/buildColumns.d.ts.map +1 -0
- package/dist/views/Versions/buildColumns.js +87 -0
- package/dist/views/Versions/buildColumns.js.map +1 -0
- package/dist/views/Versions/cells/AutosaveCell/index.css +7 -0
- package/dist/views/Versions/cells/AutosaveCell/index.d.ts +21 -0
- package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +1 -0
- package/dist/views/Versions/cells/AutosaveCell/index.js +47 -0
- package/dist/views/Versions/cells/AutosaveCell/index.js.map +1 -0
- package/dist/views/Versions/cells/CreatedAt/index.d.ts +13 -0
- package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +1 -0
- package/dist/views/Versions/cells/CreatedAt/index.js +62 -0
- package/dist/views/Versions/cells/CreatedAt/index.js.map +1 -0
- package/dist/views/Versions/cells/ID/index.d.ts +5 -0
- package/dist/views/Versions/cells/ID/index.d.ts.map +1 -0
- package/dist/views/Versions/cells/ID/index.js +12 -0
- package/dist/views/Versions/cells/ID/index.js.map +1 -0
- package/dist/views/Versions/cells/VersionDrawerCreatedAtCell/index.d.ts +4 -0
- package/dist/views/Versions/cells/VersionDrawerCreatedAtCell/index.d.ts.map +1 -0
- package/dist/views/Versions/cells/VersionDrawerCreatedAtCell/index.js +60 -0
- package/dist/views/Versions/cells/VersionDrawerCreatedAtCell/index.js.map +1 -0
- package/dist/views/Versions/fetchVersions.d.ts +42 -0
- package/dist/views/Versions/fetchVersions.d.ts.map +1 -0
- package/dist/views/Versions/fetchVersions.js +151 -0
- package/dist/views/Versions/fetchVersions.js.map +1 -0
- package/dist/views/Versions/generateVersionsViewMetadata.d.ts +6 -0
- package/dist/views/Versions/generateVersionsViewMetadata.d.ts.map +1 -0
- package/dist/views/Versions/generateVersionsViewMetadata.js +51 -0
- package/dist/views/Versions/generateVersionsViewMetadata.js.map +1 -0
- package/dist/views/Versions/index.client.d.ts +9 -0
- package/dist/views/Versions/index.client.d.ts.map +1 -0
- package/dist/views/Versions/index.client.js +77 -0
- package/dist/views/Versions/index.client.js.map +1 -0
- package/dist/views/Versions/index.css +85 -0
- package/dist/views/Versions/index.d.ts +5 -0
- package/dist/views/Versions/index.d.ts.map +1 -0
- package/dist/views/Versions/index.js +178 -0
- package/dist/views/Versions/index.js.map +1 -0
- package/dist/views/Versions/types.d.ts +17 -0
- package/dist/views/Versions/types.d.ts.map +1 -0
- package/dist/views/Versions/types.js +2 -0
- package/dist/views/Versions/types.js.map +1 -0
- package/dist/widgets/CollectionCards/getCollectionCardsData.d.ts +20 -0
- package/dist/widgets/CollectionCards/getCollectionCardsData.d.ts.map +1 -0
- package/dist/widgets/CollectionCards/getCollectionCardsData.js +29 -0
- package/dist/widgets/CollectionCards/getCollectionCardsData.js.map +1 -0
- package/dist/widgets/CollectionCards/index.client.d.ts +5 -0
- package/dist/widgets/CollectionCards/index.client.d.ts.map +1 -0
- package/dist/widgets/CollectionCards/index.client.js +139 -0
- package/dist/widgets/CollectionCards/index.client.js.map +1 -0
- package/package.json +663 -7
- package/dist/elements/ShimmerEffect/index.scss +0 -40
- package/dist/elements/Table/DefaultCell/fields/File/index.scss +0 -25
- package/dist/elements/Table/DefaultCell/fields/Hierarchy/index.scss +0 -29
- package/dist/elements/Table/DefaultCell/fields/JSON/index.scss +0 -31
- package/dist/elements/Table/DefaultCell/fields/Relationship/index.scss +0 -0
- package/dist/elements/WhereBuilder/Condition/Number/index.scss +0 -7
- package/dist/elements/WhereBuilder/Condition/Text/index.scss +0 -7
- package/dist/elements/WhereBuilder/Condition/index.scss +0 -59
- package/dist/elements/WhereBuilder/index.scss +0 -42
- package/dist/exports/client/CodeEditor-A66UUZBE.js +0 -14
- package/dist/exports/client/CodeEditor-A66UUZBE.js.map +0 -7
- package/dist/exports/client/DatePicker-XEMRSUWJ.js +0 -14
- package/dist/exports/client/DatePicker-XEMRSUWJ.js.map +0 -7
- package/dist/exports/client/chunk-5LKBKI4T.js +0 -14
- package/dist/exports/client/chunk-5LKBKI4T.js.map +0 -7
- package/dist/exports/client/chunk-I3GONEJJ.js +0 -29
- package/dist/exports/client/chunk-I3GONEJJ.js.map +0 -7
- package/dist/exports/client/chunk-ZJOSXDGN.js +0 -27
- package/dist/exports/client/chunk-ZJOSXDGN.js.map +0 -7
- package/dist/providers/LivePreview/index.scss +0 -68
- package/dist/providers/Params/index.d.ts +0 -19
- package/dist/providers/Params/index.d.ts.map +0 -1
- package/dist/providers/Params/index.js +0 -37
- package/dist/providers/Params/index.js.map +0 -1
- package/dist/providers/RouteTransition/ProgressBar/index.scss +0 -23
- package/dist/providers/SearchParams/index.d.ts +0 -27
- package/dist/providers/SearchParams/index.d.ts.map +0 -1
- package/dist/providers/SearchParams/index.js +0 -54
- package/dist/providers/SearchParams/index.js.map +0 -1
- package/dist/providers/TableColumns/RenderDefaultCell/index.scss +0 -15
- package/dist/views/Edit/index.scss +0 -60
- /package/dist/elements/LivePreview/ToolbarArea/{index.scss → index.css} +0 -0
- /package/dist/elements/Table/DefaultCell/fields/Checkbox/{index.scss → index.css} +0 -0
- /package/dist/elements/Table/DefaultCell/fields/Code/{index.scss → index.css} +0 -0
- /package/dist/forms/Form/{index.scss → index.css} +0 -0
- /package/dist/forms/Submit/{index.scss → index.css} +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { XIcon } from '../../../icons/X/index.js';
|
|
7
|
+
import { Button } from '../../Button/index.js';
|
|
8
|
+
import { useModal } from '../../Modal/index.js';
|
|
9
|
+
import { useDialogContext } from '../context.js';
|
|
10
|
+
const baseClass = 'dialog';
|
|
11
|
+
export const DialogHeader = t0 => {
|
|
12
|
+
const $ = _c(10);
|
|
13
|
+
const {
|
|
14
|
+
children,
|
|
15
|
+
showClose,
|
|
16
|
+
title
|
|
17
|
+
} = t0;
|
|
18
|
+
const {
|
|
19
|
+
slug,
|
|
20
|
+
isConfirming
|
|
21
|
+
} = useDialogContext();
|
|
22
|
+
const {
|
|
23
|
+
closeModal
|
|
24
|
+
} = useModal();
|
|
25
|
+
if (!title && !children && !showClose) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
const t1 = showClose && `${baseClass}__header--has-close`;
|
|
29
|
+
let t2;
|
|
30
|
+
if ($[0] !== t1) {
|
|
31
|
+
t2 = [`${baseClass}__header`, t1].filter(Boolean);
|
|
32
|
+
$[0] = t1;
|
|
33
|
+
$[1] = t2;
|
|
34
|
+
} else {
|
|
35
|
+
t2 = $[1];
|
|
36
|
+
}
|
|
37
|
+
const t3 = t2.join(" ");
|
|
38
|
+
let t4;
|
|
39
|
+
if ($[2] !== children || $[3] !== closeModal || $[4] !== isConfirming || $[5] !== showClose || $[6] !== slug || $[7] !== t3 || $[8] !== title) {
|
|
40
|
+
t4 = _jsxs("div", {
|
|
41
|
+
className: t3,
|
|
42
|
+
children: [title ? _jsx("h4", {
|
|
43
|
+
className: `${baseClass}__title`,
|
|
44
|
+
children: title
|
|
45
|
+
}) : null, children ? _jsx("div", {
|
|
46
|
+
className: `${baseClass}__header-extras`,
|
|
47
|
+
children
|
|
48
|
+
}) : null, showClose ? _jsx(Button, {
|
|
49
|
+
"aria-label": "Close",
|
|
50
|
+
buttonStyle: "ghost",
|
|
51
|
+
disabled: isConfirming,
|
|
52
|
+
icon: _jsx(XIcon, {}),
|
|
53
|
+
margin: false,
|
|
54
|
+
onClick: () => closeModal(slug)
|
|
55
|
+
}) : null]
|
|
56
|
+
});
|
|
57
|
+
$[2] = children;
|
|
58
|
+
$[3] = closeModal;
|
|
59
|
+
$[4] = isConfirming;
|
|
60
|
+
$[5] = showClose;
|
|
61
|
+
$[6] = slug;
|
|
62
|
+
$[7] = t3;
|
|
63
|
+
$[8] = title;
|
|
64
|
+
$[9] = t4;
|
|
65
|
+
} else {
|
|
66
|
+
t4 = $[9];
|
|
67
|
+
}
|
|
68
|
+
return t4;
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["c","_c","React","XIcon","Button","useModal","useDialogContext","baseClass","DialogHeader","t0","$","children","showClose","title","slug","isConfirming","closeModal","t1","t2","filter","Boolean","t3","join","t4","_jsxs","className","_jsx","buttonStyle","disabled","icon","margin","onClick"],"sources":["../../../../src/elements/Dialog/DialogHeader/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport { XIcon } from '../../../icons/X/index.js'\nimport { Button } from '../../Button/index.js'\nimport { useModal } from '../../Modal/index.js'\nimport { useDialogContext } from '../context.js'\n\nconst baseClass = 'dialog'\n\nexport type DialogHeaderProps = {\n readonly children?: React.ReactNode\n readonly showClose?: boolean\n readonly title?: React.ReactNode\n}\n\nexport const DialogHeader: React.FC<DialogHeaderProps> = ({ children, showClose, title }) => {\n const { slug, isConfirming } = useDialogContext()\n const { closeModal } = useModal()\n\n if (!title && !children && !showClose) {\n return null\n }\n\n return (\n <div\n className={[`${baseClass}__header`, showClose && `${baseClass}__header--has-close`]\n .filter(Boolean)\n .join(' ')}\n >\n {title ? <h4 className={`${baseClass}__title`}>{title}</h4> : null}\n {children ? <div className={`${baseClass}__header-extras`}>{children}</div> : null}\n {showClose ? (\n <Button\n aria-label=\"Close\"\n buttonStyle=\"ghost\"\n disabled={isConfirming}\n icon={<XIcon />}\n margin={false}\n onClick={() => closeModal(slug)}\n />\n ) : null}\n </div>\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AACA,OAAOC,KAAA,MAAW;AAElB,SAASC,KAAK,QAAQ;AACtB,SAASC,MAAM,QAAQ;AACvB,SAASC,QAAQ,QAAQ;AACzB,SAASC,gBAAgB,QAAQ;AAEjC,MAAMC,SAAA,GAAY;AAQlB,OAAO,MAAMC,YAAA,GAA4CC,EAAA;EAAA,MAAAC,CAAA,GAAAT,EAAA;EAAC;IAAAU,QAAA;IAAAC,SAAA;IAAAC;EAAA,IAAAJ,EAA8B;EACtF;IAAAK,IAAA;IAAAC;EAAA,IAA+BT,gBAAA;EAC/B;IAAAU;EAAA,IAAuBX,QAAA;EAAA,IAEnB,CAACQ,KAAA,KAAUF,QAAA,KAAaC,SAAA;IAAA;EAAA;EAMY,MAAAK,EAAA,GAAAL,SAAA,IAAa,GAAAL,SAAA,qBAAiC;EAAA,IAAAW,EAAA;EAAA,IAAAR,CAAA,QAAAO,EAAA;IAAvEC,EAAA,IAAC,GAAAX,SAAA,UAAsB,EAAEU,EAA8C,EAAAE,MAAA,CAAAC,OACxE;IAAAV,CAAA,MAAAO,EAAA;IAAAP,CAAA,MAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EADC,MAAAW,EAAA,GAAAH,EACD,CAAAI,IAAA,CACF;EAAA,IAAAC,EAAA;EAAA,IAAAb,CAAA,QAAAC,QAAA,IAAAD,CAAA,QAAAM,UAAA,IAAAN,CAAA,QAAAK,YAAA,IAAAL,CAAA,QAAAE,SAAA,IAAAF,CAAA,QAAAI,IAAA,IAAAJ,CAAA,QAAAW,EAAA,IAAAX,CAAA,QAAAG,KAAA;IAHVU,EAAA,GAAAC,KAAA,CAAC;MAAAC,SAAA,EACYJ,EAEH;MAAAV,QAAA,GAEPE,KAAA,GAAQa,IAAA,CAAC;QAAAD,SAAA,EAAc,GAAAlB,SAAA,SAAqB;QAAAI,QAAA,EAAGE;MAAA,C,QAAc,EAC7DF,QAAA,GAAWe,IAAA,CAAC;QAAAD,SAAA,EAAe,GAAAlB,SAAA,iBAA6B;QAAAI;MAAA,C,QAAqB,EAC7EC,SAAA,GACCc,IAAA,CAAAtB,MAAA;QAAA,cACa;QAAAuB,WAAA,EACC;QAAAC,QAAA,EACFb,YAAA;QAAAc,IAAA,EACJH,IAAA,CAAAvB,KAAA,IAAC;QAAA2B,MAAA;QAAAC,OAAA,EAAAA,CAAA,KAEQf,UAAA,CAAWF,IAAA;MAAA,C,QAE1B;IAAA,C;;;;;;;;;;;;SAhBNS,E;CAmBJ","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { Modal } from '@faceless-ui/modal';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import '../index.css';
|
|
5
|
+
type FocusTrapOptions = ComponentProps<typeof Modal>['focusTrapOptions'];
|
|
6
|
+
export type DialogSize = 'medium' | 'small';
|
|
7
|
+
export type DialogModalProps = {
|
|
8
|
+
readonly children?: React.ReactNode;
|
|
9
|
+
readonly className?: string;
|
|
10
|
+
readonly closeOnBlur?: boolean;
|
|
11
|
+
readonly closeOnEsc?: boolean;
|
|
12
|
+
readonly focusTrapOptions?: FocusTrapOptions;
|
|
13
|
+
readonly size?: DialogSize;
|
|
14
|
+
readonly slug: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const DialogModal: React.FC<DialogModalProps>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/Dialog/DialogModal/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,OAAO,cAAc,CAAA;AAErB,KAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAIxE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IAC5C,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8ClD,CAAA"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Modal } from '@faceless-ui/modal';
|
|
6
|
+
import React, { useEffect, useState } from 'react';
|
|
7
|
+
import { drawerZBase, useDrawerDepth } from '../../Drawer/index.js';
|
|
8
|
+
import { DialogContext } from '../context.js';
|
|
9
|
+
import '../index.css';
|
|
10
|
+
const baseClass = 'dialog';
|
|
11
|
+
export const DialogModal = t0 => {
|
|
12
|
+
const $ = _c(15);
|
|
13
|
+
const {
|
|
14
|
+
slug,
|
|
15
|
+
children,
|
|
16
|
+
className,
|
|
17
|
+
closeOnBlur: t1,
|
|
18
|
+
closeOnEsc: t2,
|
|
19
|
+
focusTrapOptions,
|
|
20
|
+
size: t3
|
|
21
|
+
} = t0;
|
|
22
|
+
const closeOnBlur = t1 === undefined ? false : t1;
|
|
23
|
+
const closeOnEsc = t2 === undefined ? true : t2;
|
|
24
|
+
const size = t3 === undefined ? "small" : t3;
|
|
25
|
+
const [isConfirming, setConfirming] = useState(false);
|
|
26
|
+
const drawerDepth = useDrawerDepth();
|
|
27
|
+
let t4;
|
|
28
|
+
let t5;
|
|
29
|
+
if ($[0] !== closeOnEsc) {
|
|
30
|
+
t4 = () => {
|
|
31
|
+
if (closeOnEsc) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const handler = _temp;
|
|
35
|
+
document.addEventListener("keydown", handler, true);
|
|
36
|
+
return () => document.removeEventListener("keydown", handler, true);
|
|
37
|
+
};
|
|
38
|
+
t5 = [closeOnEsc];
|
|
39
|
+
$[0] = closeOnEsc;
|
|
40
|
+
$[1] = t4;
|
|
41
|
+
$[2] = t5;
|
|
42
|
+
} else {
|
|
43
|
+
t4 = $[1];
|
|
44
|
+
t5 = $[2];
|
|
45
|
+
}
|
|
46
|
+
useEffect(t4, t5);
|
|
47
|
+
let t6;
|
|
48
|
+
if ($[3] !== children || $[4] !== className || $[5] !== closeOnBlur || $[6] !== drawerDepth || $[7] !== focusTrapOptions || $[8] !== isConfirming || $[9] !== size || $[10] !== slug) {
|
|
49
|
+
const t7 = `${baseClass}--${size}`;
|
|
50
|
+
let t8;
|
|
51
|
+
if ($[12] !== className || $[13] !== t7) {
|
|
52
|
+
t8 = [baseClass, t7, className].filter(Boolean);
|
|
53
|
+
$[12] = className;
|
|
54
|
+
$[13] = t7;
|
|
55
|
+
$[14] = t8;
|
|
56
|
+
} else {
|
|
57
|
+
t8 = $[14];
|
|
58
|
+
}
|
|
59
|
+
t6 = _jsx(DialogContext, {
|
|
60
|
+
value: {
|
|
61
|
+
slug,
|
|
62
|
+
isConfirming,
|
|
63
|
+
setConfirming
|
|
64
|
+
},
|
|
65
|
+
children: _jsx(Modal, {
|
|
66
|
+
closeOnBlur,
|
|
67
|
+
focusTrapOptions,
|
|
68
|
+
slug,
|
|
69
|
+
style: {
|
|
70
|
+
zIndex: drawerZBase + drawerDepth + 1
|
|
71
|
+
},
|
|
72
|
+
children: _jsx("div", {
|
|
73
|
+
className: t8.join(" "),
|
|
74
|
+
role: "document",
|
|
75
|
+
children
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
$[3] = children;
|
|
80
|
+
$[4] = className;
|
|
81
|
+
$[5] = closeOnBlur;
|
|
82
|
+
$[6] = drawerDepth;
|
|
83
|
+
$[7] = focusTrapOptions;
|
|
84
|
+
$[8] = isConfirming;
|
|
85
|
+
$[9] = size;
|
|
86
|
+
$[10] = slug;
|
|
87
|
+
$[11] = t6;
|
|
88
|
+
} else {
|
|
89
|
+
t6 = $[11];
|
|
90
|
+
}
|
|
91
|
+
return t6;
|
|
92
|
+
};
|
|
93
|
+
function _temp(e) {
|
|
94
|
+
if (e.key === "Escape") {
|
|
95
|
+
e.stopImmediatePropagation();
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["c","_c","Modal","React","useEffect","useState","drawerZBase","useDrawerDepth","DialogContext","baseClass","DialogModal","t0","$","slug","children","className","closeOnBlur","t1","closeOnEsc","t2","focusTrapOptions","size","t3","undefined","isConfirming","setConfirming","drawerDepth","t4","t5","handler","_temp","document","addEventListener","removeEventListener","t6","t7","t8","filter","Boolean","_jsx","value","style","zIndex","join","role","e","key","stopImmediatePropagation","preventDefault"],"sources":["../../../../src/elements/Dialog/DialogModal/index.tsx"],"sourcesContent":["'use client'\nimport type { ComponentProps } from 'react'\n\nimport { Modal } from '@faceless-ui/modal'\nimport React, { useEffect, useState } from 'react'\n\nimport { drawerZBase, useDrawerDepth } from '../../Drawer/index.js'\nimport { DialogContext } from '../context.js'\nimport '../index.css'\n\ntype FocusTrapOptions = ComponentProps<typeof Modal>['focusTrapOptions']\n\nconst baseClass = 'dialog'\n\nexport type DialogSize = 'medium' | 'small'\n\nexport type DialogModalProps = {\n readonly children?: React.ReactNode\n readonly className?: string\n readonly closeOnBlur?: boolean\n readonly closeOnEsc?: boolean\n readonly focusTrapOptions?: FocusTrapOptions\n readonly size?: DialogSize\n readonly slug: string\n}\n\nexport const DialogModal: React.FC<DialogModalProps> = ({\n slug,\n children,\n className,\n closeOnBlur = false,\n closeOnEsc = true,\n focusTrapOptions,\n size = 'small',\n}) => {\n const [isConfirming, setConfirming] = useState(false)\n const drawerDepth = useDrawerDepth()\n\n useEffect(() => {\n if (closeOnEsc) {\n return\n }\n\n const handler = (e: KeyboardEvent) => {\n if (e.key === 'Escape') {\n e.stopImmediatePropagation()\n e.preventDefault()\n }\n }\n\n // Capture phase fires before ModalProvider's bubble-phase listener\n document.addEventListener('keydown', handler, true)\n return () => document.removeEventListener('keydown', handler, true)\n }, [closeOnEsc])\n\n return (\n <DialogContext value={{ slug, isConfirming, setConfirming }}>\n <Modal\n closeOnBlur={closeOnBlur}\n focusTrapOptions={focusTrapOptions}\n slug={slug}\n style={{ zIndex: drawerZBase + drawerDepth + 1 }}\n >\n <div\n className={[baseClass, `${baseClass}--${size}`, className].filter(Boolean).join(' ')}\n role=\"document\"\n >\n {children}\n </div>\n </Modal>\n </DialogContext>\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AAGA,SAASC,KAAK,QAAQ;AACtB,OAAOC,KAAA,IAASC,SAAS,EAAEC,QAAQ,QAAQ;AAE3C,SAASC,WAAW,EAAEC,cAAc,QAAQ;AAC5C,SAASC,aAAa,QAAQ;AAC9B,OAAO;AAIP,MAAMC,SAAA,GAAY;AAclB,OAAO,MAAMC,WAAA,GAA0CC,EAAA;EAAA,MAAAC,CAAA,GAAAX,EAAA;EAAC;IAAAY,IAAA;IAAAC,QAAA;IAAAC,SAAA;IAAAC,WAAA,EAAAC,EAAA;IAAAC,UAAA,EAAAC,EAAA;IAAAC,gBAAA;IAAAC,IAAA,EAAAC;EAAA,IAAAX,EAQvD;EAJC,MAAAK,WAAA,GAAAC,EAAmB,KAAAM,SAAA,WAAnBN,EAAmB;EACnB,MAAAC,UAAA,GAAAC,EAAiB,KAAAI,SAAA,UAAjBJ,EAAiB;EAEjB,MAAAE,IAAA,GAAAC,EAAc,KAAAC,SAAA,GAAP,OAAO,GAAdD,EAAc;EAEd,OAAAE,YAAA,EAAAC,aAAA,IAAsCpB,QAAA,MAAS;EAC/C,MAAAqB,WAAA,GAAoBnB,cAAA;EAAA,IAAAoB,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAhB,CAAA,QAAAM,UAAA;IAEVS,EAAA,GAAAA,CAAA;MAAA,IACJT,UAAA;QAAA;MAAA;MAIJ,MAAAW,OAAA,GAAAC,KAAA;MAQAC,QAAA,CAAAC,gBAAA,CAA0B,WAAWH,OAAA,MAAS;MAAA,aACjCE,QAAA,CAAAE,mBAAA,CAA6B,WAAWJ,OAAA,MAAS;IAAA;IAC7DD,EAAA,IAACV,UAAA;IAAWN,CAAA,MAAAM,UAAA;IAAAN,CAAA,MAAAe,EAAA;IAAAf,CAAA,MAAAgB,EAAA;EAAA;IAAAD,EAAA,GAAAf,CAAA;IAAAgB,EAAA,GAAAhB,CAAA;EAAA;EAffR,SAAA,CAAUuB,EAeV,EAAGC,EAAY;EAAA,IAAAM,EAAA;EAAA,IAAAtB,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAG,SAAA,IAAAH,CAAA,QAAAI,WAAA,IAAAJ,CAAA,QAAAc,WAAA,IAAAd,CAAA,QAAAQ,gBAAA,IAAAR,CAAA,QAAAY,YAAA,IAAAZ,CAAA,QAAAS,IAAA,IAAAT,CAAA,SAAAC,IAAA;IAWgB,MAAAsB,EAAA,MAAA1B,SAAA,KAAiBY,IAAA,EAAM;IAAA,IAAAe,EAAA;IAAA,IAAAxB,CAAA,SAAAG,SAAA,IAAAH,CAAA,SAAAuB,EAAA;MAAnCC,EAAA,IAAA3B,SAAA,EAAY0B,EAAuB,EAAEpB,SAAA,EAAAsB,MAAA,CAAAC,OAAkB;MAAA1B,CAAA,OAAAG,SAAA;MAAAH,CAAA,OAAAuB,EAAA;MAAAvB,CAAA,OAAAwB,EAAA;IAAA;MAAAA,EAAA,GAAAxB,CAAA;IAAA;IARxEsB,EAAA,GAAAK,IAAA,CAAA/B,aAAA;MAAAgC,KAAA;QAAA3B,IAAA;QAAAW,YAAA;QAAAC;MAAA;MAAAX,QAAA,EACEyB,IAAA,CAAArC,KAAA;QAAAc,WAAA;QAAAI,gBAAA;QAAAP,IAAA;QAAA4B,KAAA;UAAAC,MAAA,EAImBpC,WAAA,GAAcoB,WAAA;QAAc;QAAAZ,QAAA,EAE7CyB,IAAA,CAAC;UAAAxB,SAAA,EACYqB,EAAuD,CAAAO,IAAA,CAAc;UAAAC,IAAA,EAC3E;UAAA9B;QAAA,C;;;;;;;;;;;;;;;SATXoB,E;CAgBJ;AA9CuD,SAAAJ,MAAAe,CAAA;EAAA,IAkB7CA,CAAA,CAAAC,GAAA,KAAU;IACZD,CAAA,CAAAE,wBAAA,CAA0B;IAC1BF,CAAA,CAAAG,cAAA,CAAgB;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type DialogContextValue = {
|
|
2
|
+
isConfirming: boolean;
|
|
3
|
+
setConfirming: (val: boolean) => void;
|
|
4
|
+
slug: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DialogContext: import("react").Context<DialogContextValue>;
|
|
7
|
+
export declare const useDialogContext: () => DialogContextValue;
|
|
8
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/elements/Dialog/context.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,aAAa,6CAAiD,CAAA;AAE3E,eAAO,MAAM,gBAAgB,0BAM5B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createContext, use } from 'react';
|
|
2
|
+
export const DialogContext = createContext(null);
|
|
3
|
+
export const useDialogContext = () => {
|
|
4
|
+
const ctx = use(DialogContext);
|
|
5
|
+
if (!ctx) {
|
|
6
|
+
throw new Error('Dialog sub-components must be rendered inside <DialogModal>');
|
|
7
|
+
}
|
|
8
|
+
return ctx;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","names":["createContext","use","DialogContext","useDialogContext","ctx","Error"],"sources":["../../../src/elements/Dialog/context.ts"],"sourcesContent":["import { createContext, use } from 'react'\n\nexport type DialogContextValue = {\n isConfirming: boolean\n setConfirming: (val: boolean) => void\n slug: string\n}\n\nexport const DialogContext = createContext<DialogContextValue | null>(null)\n\nexport const useDialogContext = () => {\n const ctx = use(DialogContext)\n if (!ctx) {\n throw new Error('Dialog sub-components must be rendered inside <DialogModal>')\n }\n return ctx\n}\n"],"mappings":"AAAA,SAASA,aAAa,EAAEC,GAAG,QAAQ;AAQnC,OAAO,MAAMC,aAAA,GAAgBF,aAAA,CAAyC;AAEtE,OAAO,MAAMG,gBAAA,GAAmBA,CAAA;EAC9B,MAAMC,GAAA,GAAMH,GAAA,CAAIC,aAAA;EAChB,IAAI,CAACE,GAAA,EAAK;IACR,MAAM,IAAIC,KAAA,CAAM;EAClB;EACA,OAAOD,GAAA;AACT","ignoreList":[]}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
@layer payload-default {
|
|
2
|
-
dialog.
|
|
3
|
-
--alert-modal-width: 480px;
|
|
4
|
-
|
|
2
|
+
dialog:has(> .dialog) {
|
|
5
3
|
position: fixed;
|
|
6
4
|
inset: 0;
|
|
7
5
|
display: flex;
|
|
@@ -10,16 +8,14 @@
|
|
|
10
8
|
background: var(--color-modalbackdrop);
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
dialog
|
|
14
|
-
--
|
|
15
|
-
}
|
|
11
|
+
.dialog {
|
|
12
|
+
--dialog-max-height: calc(100dvh - var(--spacer-5));
|
|
16
13
|
|
|
17
|
-
.alert-modal__wrapper {
|
|
18
|
-
z-index: 1;
|
|
19
14
|
position: relative;
|
|
20
15
|
display: flex;
|
|
21
16
|
flex-direction: column;
|
|
22
|
-
|
|
17
|
+
max-height: var(--dialog-max-height);
|
|
18
|
+
width: var(--dialog-width);
|
|
23
19
|
max-width: calc(100vw - var(--spacer-5));
|
|
24
20
|
background: var(--color-bg);
|
|
25
21
|
border-radius: var(--radius-large);
|
|
@@ -30,27 +26,32 @@
|
|
|
30
26
|
line-height: var(--text-body-medium-line-height);
|
|
31
27
|
letter-spacing: var(--text-body-medium-letter-spacing);
|
|
32
28
|
color: var(--color-text);
|
|
29
|
+
box-shadow: var(--elevation-500-modal-window);
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
.
|
|
32
|
+
.dialog--small {
|
|
33
|
+
--dialog-width: 280px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dialog--medium {
|
|
37
|
+
--dialog-width: 480px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dialog__header {
|
|
36
41
|
display: flex;
|
|
37
42
|
align-items: center;
|
|
38
43
|
gap: var(--spacer-2);
|
|
39
44
|
min-height: var(--spacer-6);
|
|
40
|
-
border-bottom: var(--stroke-width-small) solid var(--color-border);
|
|
41
45
|
padding: var(--spacer-2) var(--spacer-3);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
padding: 0;
|
|
45
|
-
border: 0;
|
|
46
|
-
}
|
|
46
|
+
border-bottom: var(--stroke-width-small) solid var(--color-border);
|
|
47
|
+
flex-shrink: 0;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
.
|
|
50
|
-
padding-
|
|
50
|
+
.dialog__header--has-close {
|
|
51
|
+
padding-inline-end: var(--spacer-2);
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
.
|
|
54
|
+
.dialog__title {
|
|
54
55
|
flex: 1 0 0;
|
|
55
56
|
min-width: 0;
|
|
56
57
|
margin: 0;
|
|
@@ -58,25 +59,34 @@
|
|
|
58
59
|
letter-spacing: var(--text-body-medium-letter-spacing);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
.
|
|
62
|
+
.dialog__header-extras {
|
|
62
63
|
display: flex;
|
|
63
|
-
|
|
64
|
-
gap: var(--spacer-
|
|
65
|
-
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--spacer-1);
|
|
66
|
+
}
|
|
66
67
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
.dialog__body {
|
|
69
|
+
flex: 1 1 auto;
|
|
70
|
+
padding: var(--spacer-3);
|
|
71
|
+
min-height: 0;
|
|
72
|
+
overflow-y: auto;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
|
-
.
|
|
75
|
+
.dialog:has(.dialog__header) .dialog__body {
|
|
76
|
+
padding-top: var(--spacer-2);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.dialog:has(.dialog__footer) .dialog__body {
|
|
80
|
+
padding-bottom: var(--spacer-2);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dialog__footer {
|
|
73
84
|
display: flex;
|
|
74
85
|
justify-content: flex-end;
|
|
75
86
|
gap: var(--spacer-2);
|
|
76
|
-
padding: var(--spacer-2);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
87
|
+
padding-block: var(--spacer-2);
|
|
88
|
+
padding-inline-start: var(--spacer-3);
|
|
89
|
+
padding-inline-end: var(--spacer-2);
|
|
90
|
+
flex-shrink: 0;
|
|
81
91
|
}
|
|
82
92
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { DialogBody } from './DialogBody/index.js';
|
|
2
|
+
export type { DialogBodyProps } from './DialogBody/index.js';
|
|
3
|
+
export { DialogCancel } from './DialogCancel/index.js';
|
|
4
|
+
export type { DialogCancelProps } from './DialogCancel/index.js';
|
|
5
|
+
export { DialogConfirm } from './DialogConfirm/index.js';
|
|
6
|
+
export type { DialogConfirmProps } from './DialogConfirm/index.js';
|
|
7
|
+
export { DialogFooter } from './DialogFooter/index.js';
|
|
8
|
+
export type { DialogFooterProps } from './DialogFooter/index.js';
|
|
9
|
+
export { DialogHeader } from './DialogHeader/index.js';
|
|
10
|
+
export type { DialogHeaderProps } from './DialogHeader/index.js';
|
|
11
|
+
export { DialogModal } from './DialogModal/index.js';
|
|
12
|
+
export type { DialogModalProps, DialogSize } from './DialogModal/index.js';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/Dialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { DialogBody } from './DialogBody/index.js';
|
|
2
|
+
export { DialogCancel } from './DialogCancel/index.js';
|
|
3
|
+
export { DialogConfirm } from './DialogConfirm/index.js';
|
|
4
|
+
export { DialogFooter } from './DialogFooter/index.js';
|
|
5
|
+
export { DialogHeader } from './DialogHeader/index.js';
|
|
6
|
+
export { DialogModal } from './DialogModal/index.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["DialogBody","DialogCancel","DialogConfirm","DialogFooter","DialogHeader","DialogModal"],"sources":["../../../src/elements/Dialog/index.tsx"],"sourcesContent":["export { DialogBody } from './DialogBody/index.js'\nexport type { DialogBodyProps } from './DialogBody/index.js'\nexport { DialogCancel } from './DialogCancel/index.js'\nexport type { DialogCancelProps } from './DialogCancel/index.js'\nexport { DialogConfirm } from './DialogConfirm/index.js'\nexport type { DialogConfirmProps } from './DialogConfirm/index.js'\nexport { DialogFooter } from './DialogFooter/index.js'\nexport type { DialogFooterProps } from './DialogFooter/index.js'\nexport { DialogHeader } from './DialogHeader/index.js'\nexport type { DialogHeaderProps } from './DialogHeader/index.js'\nexport { DialogModal } from './DialogModal/index.js'\nexport type { DialogModalProps, DialogSize } from './DialogModal/index.js'\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ;AAE3B,SAASC,YAAY,QAAQ;AAE7B,SAASC,aAAa,QAAQ;AAE9B,SAASC,YAAY,QAAQ;AAE7B,SAASC,YAAY,QAAQ;AAE7B,SAASC,WAAW,QAAQ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/DocumentLocked/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/DocumentLocked/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC,OAAO,KAAoB,MAAM,OAAO,CAAA;AAexC,OAAO,aAAa,CAAA;AAkBpB,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IACzB,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAAA;CACpC,CAkDA,CAAA"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useModal } from '@faceless-ui/modal';
|
|
5
6
|
import React, { useEffect } from 'react';
|
|
6
7
|
import { useRouteCache } from '../../providers/RouteCache/index.js';
|
|
7
8
|
import { useRouteTransition } from '../../providers/RouteTransition/index.js';
|
|
8
9
|
import { useTranslation } from '../../providers/Translation/index.js';
|
|
9
10
|
import { isClientUserObject } from '../../utilities/isClientUserObject.js';
|
|
10
11
|
import { Button } from '../Button/index.js';
|
|
11
|
-
import {
|
|
12
|
+
import { DialogBody, DialogCancel, DialogConfirm, DialogFooter, DialogHeader, DialogModal } from '../Dialog/index.js';
|
|
13
|
+
import './index.css';
|
|
12
14
|
const modalSlug = 'document-locked';
|
|
13
15
|
const formatDate = date => {
|
|
14
16
|
if (!date) {
|
|
@@ -24,7 +26,7 @@ const formatDate = date => {
|
|
|
24
26
|
}).format(new Date(date));
|
|
25
27
|
};
|
|
26
28
|
export const DocumentLocked = t0 => {
|
|
27
|
-
const $ = _c(
|
|
29
|
+
const $ = _c(25);
|
|
28
30
|
const {
|
|
29
31
|
handleGoBack,
|
|
30
32
|
isActive,
|
|
@@ -68,112 +70,86 @@ export const DocumentLocked = t0 => {
|
|
|
68
70
|
}
|
|
69
71
|
useEffect(t1, t2);
|
|
70
72
|
let t3;
|
|
71
|
-
if ($[5] !==
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
t3 = $[8];
|
|
82
|
-
}
|
|
83
|
-
let t4;
|
|
84
|
-
if ($[9] !== clearRouteCache || $[10] !== closeModal || $[11] !== handleGoBack || $[12] !== onReadOnly || $[13] !== onTakeOver || $[14] !== startRouteTransition || $[15] !== t || $[16] !== t3 || $[17] !== updatedAt || $[18] !== user) {
|
|
73
|
+
if ($[5] !== clearRouteCache || $[6] !== closeModal || $[7] !== handleGoBack || $[8] !== onReadOnly || $[9] !== onTakeOver || $[10] !== startRouteTransition || $[11] !== t || $[12] !== updatedAt || $[13] !== user) {
|
|
74
|
+
let t4;
|
|
75
|
+
if ($[15] !== t || $[16] !== user) {
|
|
76
|
+
t4 = isClientUserObject(user) ? user.email ?? user.id : `${t("general:user")}: ${user}`;
|
|
77
|
+
$[15] = t;
|
|
78
|
+
$[16] = user;
|
|
79
|
+
$[17] = t4;
|
|
80
|
+
} else {
|
|
81
|
+
t4 = $[17];
|
|
82
|
+
}
|
|
85
83
|
let t5;
|
|
86
|
-
if ($[
|
|
87
|
-
t5 = () =>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
};
|
|
92
|
-
$[20] = clearRouteCache;
|
|
93
|
-
$[21] = closeModal;
|
|
94
|
-
$[22] = onReadOnly;
|
|
95
|
-
$[23] = t5;
|
|
84
|
+
if ($[18] !== handleGoBack || $[19] !== startRouteTransition) {
|
|
85
|
+
t5 = () => startRouteTransition(() => handleGoBack());
|
|
86
|
+
$[18] = handleGoBack;
|
|
87
|
+
$[19] = startRouteTransition;
|
|
88
|
+
$[20] = t5;
|
|
96
89
|
} else {
|
|
97
|
-
t5 = $[
|
|
90
|
+
t5 = $[20];
|
|
98
91
|
}
|
|
99
92
|
let t6;
|
|
100
|
-
if ($[
|
|
93
|
+
if ($[21] !== clearRouteCache || $[22] !== closeModal || $[23] !== onReadOnly) {
|
|
101
94
|
t6 = () => {
|
|
102
|
-
|
|
95
|
+
onReadOnly();
|
|
103
96
|
closeModal(modalSlug);
|
|
97
|
+
clearRouteCache();
|
|
104
98
|
};
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
108
|
-
|
|
109
|
-
t6 = $[26];
|
|
110
|
-
}
|
|
111
|
-
let t7;
|
|
112
|
-
if ($[27] !== handleGoBack || $[28] !== startRouteTransition) {
|
|
113
|
-
t7 = () => {
|
|
114
|
-
startRouteTransition(() => handleGoBack());
|
|
115
|
-
};
|
|
116
|
-
$[27] = handleGoBack;
|
|
117
|
-
$[28] = startRouteTransition;
|
|
118
|
-
$[29] = t7;
|
|
119
|
-
} else {
|
|
120
|
-
t7 = $[29];
|
|
121
|
-
}
|
|
122
|
-
let t8;
|
|
123
|
-
if ($[30] !== t || $[31] !== user) {
|
|
124
|
-
t8 = isClientUserObject(user) ? user.email ?? user.id : `${t("general:user")}: ${user}`;
|
|
125
|
-
$[30] = t;
|
|
126
|
-
$[31] = user;
|
|
127
|
-
$[32] = t8;
|
|
99
|
+
$[21] = clearRouteCache;
|
|
100
|
+
$[22] = closeModal;
|
|
101
|
+
$[23] = onReadOnly;
|
|
102
|
+
$[24] = t6;
|
|
128
103
|
} else {
|
|
129
|
-
|
|
104
|
+
t6 = $[24];
|
|
130
105
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
106
|
+
t3 = _jsxs(DialogModal, {
|
|
107
|
+
closeOnEsc: false,
|
|
108
|
+
size: "small",
|
|
109
|
+
slug: modalSlug,
|
|
110
|
+
children: [_jsx(DialogHeader, {
|
|
111
|
+
title: t("general:documentLocked")
|
|
112
|
+
}), _jsxs(DialogBody, {
|
|
113
|
+
children: [_jsxs("p", {
|
|
114
|
+
children: [_jsx("strong", {
|
|
115
|
+
children: t4
|
|
116
|
+
}), " ", t("general:currentlyEditing")]
|
|
117
|
+
}), _jsxs("p", {
|
|
118
|
+
className: "document-locked__updated-at",
|
|
119
|
+
children: [t("general:editedSince"), " ", _jsx("strong", {
|
|
120
|
+
children: formatDate(updatedAt)
|
|
121
|
+
})]
|
|
122
|
+
})]
|
|
123
|
+
}), _jsxs(DialogFooter, {
|
|
124
|
+
children: [_jsx(DialogCancel, {
|
|
125
|
+
label: t("general:goBack"),
|
|
126
|
+
onClick: t5
|
|
138
127
|
}), _jsx(Button, {
|
|
139
128
|
buttonStyle: "secondary",
|
|
140
129
|
id: `${modalSlug}-view-read-only`,
|
|
141
|
-
|
|
142
|
-
children: t("general:viewReadOnly")
|
|
143
|
-
}), _jsx(Button, {
|
|
144
|
-
buttonStyle: "primary",
|
|
145
|
-
id: `${modalSlug}-take-over`,
|
|
130
|
+
margin: false,
|
|
146
131
|
onClick: t6,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
title: t("general:documentLocked"),
|
|
153
|
-
children: [_jsxs("p", {
|
|
154
|
-
children: [_jsx("strong", {
|
|
155
|
-
children: t8
|
|
156
|
-
}), " ", t("general:currentlyEditing")]
|
|
157
|
-
}), _jsxs("p", {
|
|
158
|
-
children: [t("general:editedSince"), " ", _jsx("strong", {
|
|
159
|
-
children: formatDate(updatedAt)
|
|
132
|
+
size: "medium",
|
|
133
|
+
children: t("general:viewReadOnly")
|
|
134
|
+
}), _jsx(DialogConfirm, {
|
|
135
|
+
label: t("general:takeOver"),
|
|
136
|
+
onClick: onTakeOver
|
|
160
137
|
})]
|
|
161
138
|
})]
|
|
162
139
|
});
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[19] = t4;
|
|
140
|
+
$[5] = clearRouteCache;
|
|
141
|
+
$[6] = closeModal;
|
|
142
|
+
$[7] = handleGoBack;
|
|
143
|
+
$[8] = onReadOnly;
|
|
144
|
+
$[9] = onTakeOver;
|
|
145
|
+
$[10] = startRouteTransition;
|
|
146
|
+
$[11] = t;
|
|
147
|
+
$[12] = updatedAt;
|
|
148
|
+
$[13] = user;
|
|
149
|
+
$[14] = t3;
|
|
174
150
|
} else {
|
|
175
|
-
|
|
151
|
+
t3 = $[14];
|
|
176
152
|
}
|
|
177
|
-
return
|
|
153
|
+
return t3;
|
|
178
154
|
};
|
|
179
155
|
//# sourceMappingURL=index.js.map
|