@uxf/cms 11.74.0 → 11.74.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/index.d.ts +165 -0
- package/api/index.js +100 -0
- package/api/swr.d.ts +76 -0
- package/api/swr.js +43 -0
- package/config/container.d.ts +29 -0
- package/config/container.js +24 -0
- package/config/index.d.ts +2 -0
- package/config/index.js +6 -0
- package/content-builder/content-builder-body.d.ts +6 -0
- package/content-builder/content-builder-body.js +10 -0
- package/content-builder/content-builder-header.d.ts +7 -0
- package/content-builder/content-builder-header.js +15 -0
- package/content-builder/content-builder-root.d.ts +11 -0
- package/content-builder/content-builder-root.js +13 -0
- package/content-builder/content-builder-sidebar.d.ts +7 -0
- package/content-builder/content-builder-sidebar.js +12 -0
- package/content-builder/content-builder.d.ts +14 -0
- package/content-builder/content-builder.js +57 -0
- package/content-builder/forms/content-builder-basic-form.d.ts +10 -0
- package/content-builder/forms/content-builder-basic-form.js +49 -0
- package/content-builder/forms/content-builder-seo-form.d.ts +10 -0
- package/content-builder/forms/content-builder-seo-form.js +22 -0
- package/content-builder/index.d.ts +4 -0
- package/content-builder/index.js +20 -0
- package/content-builder/map-content-response-to-form-data.d.ts +3 -0
- package/content-builder/map-content-response-to-form-data.js +44 -0
- package/content-builder/map-form-data-to-content-request.d.ts +2 -0
- package/content-builder/map-form-data-to-content-request.js +28 -0
- package/content-builder/translations.d.ts +127 -0
- package/content-builder/translations.js +128 -0
- package/content-builder/types.d.ts +186 -0
- package/content-builder/types.js +2 -0
- package/content-builder/use-content-builder-form-api.d.ts +3 -0
- package/content-builder/use-content-builder-form-api.js +7 -0
- package/context/cms-provider.d.ts +7 -0
- package/context/cms-provider.js +18 -0
- package/deprecated/api/api-client.d.ts +15 -0
- package/deprecated/api/api-client.js +86 -0
- package/deprecated/hoc/with-authenticate.d.ts +6 -0
- package/deprecated/hoc/with-authenticate.js +61 -0
- package/deprecated/redux/configure-store.d.ts +3 -0
- package/deprecated/redux/configure-store.js +16 -0
- package/deprecated/redux/entities/actions.d.ts +30 -0
- package/deprecated/redux/entities/actions.js +15 -0
- package/deprecated/redux/entities/index.d.ts +2 -0
- package/deprecated/redux/entities/index.js +18 -0
- package/deprecated/redux/entities/reducer.d.ts +3 -0
- package/deprecated/redux/entities/reducer.js +36 -0
- package/deprecated/redux/entities/selectors.d.ts +10 -0
- package/deprecated/redux/entities/selectors.js +16 -0
- package/deprecated/redux/index.d.ts +3 -0
- package/deprecated/redux/index.js +22 -0
- package/deprecated/redux/redux-helper.d.ts +15 -0
- package/deprecated/redux/redux-helper.js +6 -0
- package/deprecated/redux/types.d.ts +7 -0
- package/deprecated/redux/types.js +2 -0
- package/deprecated/redux/user/actions.d.ts +19 -0
- package/deprecated/redux/user/actions.js +14 -0
- package/deprecated/redux/user/index.d.ts +2 -0
- package/deprecated/redux/user/index.js +18 -0
- package/deprecated/redux/user/reducer.d.ts +3 -0
- package/deprecated/redux/user/reducer.js +21 -0
- package/deprecated/redux/user/selectors.d.ts +3 -0
- package/deprecated/redux/user/selectors.js +5 -0
- package/deprecated/redux/with-redux-store.d.ts +1 -0
- package/deprecated/redux/with-redux-store.js +70 -0
- package/deprecated/security/cms-authorizator.d.ts +3 -0
- package/deprecated/security/cms-authorizator.js +8 -0
- package/deprecated/types/app.d.ts +6 -0
- package/deprecated/types/app.js +2 -0
- package/deprecated/types/form.d.ts +25 -0
- package/deprecated/types/form.js +16 -0
- package/errors/BadRequestError.d.ts +18 -0
- package/errors/BadRequestError.js +14 -0
- package/errors/ForbiddenError.d.ts +4 -0
- package/errors/ForbiddenError.js +13 -0
- package/errors/NetworkError.d.ts +4 -0
- package/errors/NetworkError.js +13 -0
- package/errors/UnauthorizedError.d.ts +4 -0
- package/errors/UnauthorizedError.js +13 -0
- package/errors/ValidationError.d.ts +7 -0
- package/errors/ValidationError.js +17 -0
- package/form-renderer/field/content-dynamic.d.ts +8 -0
- package/form-renderer/field/content-dynamic.js +15 -0
- package/form-renderer/field/content.d.ts +5 -0
- package/form-renderer/field/content.js +38 -0
- package/forms/change-password-form/change-password-form.d.ts +3 -0
- package/forms/change-password-form/change-password-form.js +31 -0
- package/forms/change-password-form/index.d.ts +2 -0
- package/forms/change-password-form/index.js +18 -0
- package/forms/change-password-form/translations.d.ts +35 -0
- package/forms/change-password-form/translations.js +36 -0
- package/forms/change-password-form/types.d.ts +13 -0
- package/forms/change-password-form/types.js +2 -0
- package/forms/components/wysiwyg-input/index.d.ts +1 -0
- package/forms/components/wysiwyg-input/index.js +17 -0
- package/forms/components/wysiwyg-input/wysiwyg-input.d.ts +26 -0
- package/forms/components/wysiwyg-input/wysiwyg-input.js +83 -0
- package/forms/forgotten-password-form/forgotten-password-form.d.ts +3 -0
- package/forms/forgotten-password-form/forgotten-password-form.js +52 -0
- package/forms/forgotten-password-form/index.d.ts +2 -0
- package/forms/forgotten-password-form/index.js +18 -0
- package/forms/forgotten-password-form/translations.d.ts +17 -0
- package/forms/forgotten-password-form/translations.js +18 -0
- package/forms/forgotten-password-form/types.d.ts +10 -0
- package/forms/forgotten-password-form/types.js +2 -0
- package/forms/invite-user-form/index.d.ts +2 -0
- package/forms/invite-user-form/index.js +18 -0
- package/forms/invite-user-form/invite-user-form.d.ts +3 -0
- package/forms/invite-user-form/invite-user-form.js +33 -0
- package/forms/invite-user-form/translations.d.ts +35 -0
- package/forms/invite-user-form/translations.js +36 -0
- package/forms/invite-user-form/types.d.ts +15 -0
- package/forms/invite-user-form/types.js +2 -0
- package/forms/login-form/index.d.ts +2 -0
- package/forms/login-form/index.js +18 -0
- package/forms/login-form/login-form.d.ts +3 -0
- package/forms/login-form/login-form.js +51 -0
- package/forms/login-form/translations.d.ts +23 -0
- package/forms/login-form/translations.js +24 -0
- package/forms/login-form/types.d.ts +11 -0
- package/forms/login-form/types.js +2 -0
- package/forms/renew-password-form/index.d.ts +2 -0
- package/forms/renew-password-form/index.js +18 -0
- package/forms/renew-password-form/renew-password-form.d.ts +3 -0
- package/forms/renew-password-form/renew-password-form.js +53 -0
- package/forms/renew-password-form/translations.d.ts +29 -0
- package/forms/renew-password-form/translations.js +30 -0
- package/forms/renew-password-form/types.d.ts +11 -0
- package/forms/renew-password-form/types.js +2 -0
- package/lib/api/create-axios-instance.d.ts +6 -0
- package/lib/api/create-axios-instance.js +17 -0
- package/lib/api/create-axios-request.d.ts +3 -0
- package/lib/api/create-axios-request.js +39 -0
- package/lib/api/create-use-axios-request.d.ts +5 -0
- package/lib/api/create-use-axios-request.js +35 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +19 -0
- package/lib/api/types.d.ts +18 -0
- package/lib/api/types.js +2 -0
- package/lib/layout/breadcrumbs.d.ts +9 -0
- package/lib/layout/breadcrumbs.js +21 -0
- package/lib/layout/index.d.ts +3 -0
- package/lib/layout/index.js +19 -0
- package/lib/layout/layout-container.d.ts +3 -0
- package/lib/layout/layout-container.js +22 -0
- package/lib/layout/layout.d.ts +3 -0
- package/lib/layout/layout.js +47 -0
- package/lib/layout/sidebar.d.ts +3 -0
- package/lib/layout/sidebar.js +77 -0
- package/lib/layout/styles.d.ts +1 -0
- package/lib/layout/styles.js +4 -0
- package/lib/layout/types.d.ts +36 -0
- package/lib/layout/types.js +2 -0
- package/lib/login-layout/index.d.ts +2 -0
- package/lib/login-layout/index.js +18 -0
- package/lib/login-layout/login-layout.d.ts +3 -0
- package/lib/login-layout/login-layout.js +19 -0
- package/lib/login-layout/types.d.ts +9 -0
- package/lib/login-layout/types.js +2 -0
- package/lib/menu/active-item-resolver.d.ts +7 -0
- package/lib/menu/active-item-resolver.js +42 -0
- package/lib/menu/factory.d.ts +10 -0
- package/lib/menu/factory.js +40 -0
- package/lib/menu/index.d.ts +5 -0
- package/lib/menu/index.js +21 -0
- package/lib/menu/mobile-bar.d.ts +8 -0
- package/lib/menu/mobile-bar.js +54 -0
- package/lib/menu/model.d.ts +56 -0
- package/lib/menu/model.js +112 -0
- package/lib/menu/types.d.ts +5 -0
- package/lib/menu/types.js +2 -0
- package/lib/menu/ui/list-item/index.d.ts +2 -0
- package/lib/menu/ui/list-item/index.js +18 -0
- package/lib/menu/ui/list-item/list-item.d.ts +3 -0
- package/lib/menu/ui/list-item/list-item.js +37 -0
- package/lib/menu/ui/list-item/types.d.ts +19 -0
- package/lib/menu/ui/list-item/types.js +2 -0
- package/lib/menu/ui/menu-custom-item.d.ts +6 -0
- package/lib/menu/ui/menu-custom-item.js +17 -0
- package/lib/menu/ui/menu-item.d.ts +6 -0
- package/lib/menu/ui/menu-item.js +55 -0
- package/lib/menu/ui/menu-super-section-item.d.ts +6 -0
- package/lib/menu/ui/menu-super-section-item.js +40 -0
- package/lib/menu/ui/menu.d.ts +6 -0
- package/lib/menu/ui/menu.js +37 -0
- package/lib/menu/ui/sub-menu/sub-menu-item.d.ts +7 -0
- package/lib/menu/ui/sub-menu/sub-menu-item.js +23 -0
- package/lib/menu/ui/sub-menu/sub-menu-mobile.d.ts +8 -0
- package/lib/menu/ui/sub-menu/sub-menu-mobile.js +48 -0
- package/lib/menu/ui/sub-menu/sub-menu.d.ts +7 -0
- package/lib/menu/ui/sub-menu/sub-menu.js +46 -0
- package/lib/menu/ui/sub-menu/use-sub-menu.d.ts +49 -0
- package/lib/menu/ui/sub-menu/use-sub-menu.js +45 -0
- package/lib/menu/ui/translations.d.ts +17 -0
- package/lib/menu/ui/translations.js +18 -0
- package/lib/menu/ui/user-menu.d.ts +6 -0
- package/lib/menu/ui/user-menu.js +55 -0
- package/package.json +6 -6
- package/pages/content-builder/components/form-content.d.ts +12 -0
- package/pages/content-builder/components/form-content.js +64 -0
- package/pages/content-builder/components/form-root-fields.d.ts +16 -0
- package/pages/content-builder/components/form-root-fields.js +62 -0
- package/pages/content-builder/components/form.d.ts +12 -0
- package/pages/content-builder/components/form.js +83 -0
- package/pages/content-builder/components/header.d.ts +6 -0
- package/pages/content-builder/components/header.js +18 -0
- package/pages/content-builder/constants.d.ts +6 -0
- package/pages/content-builder/constants.js +10 -0
- package/pages/content-builder/content/feature-section.d.ts +17 -0
- package/pages/content-builder/content/feature-section.js +62 -0
- package/pages/content-builder/content/gallery.d.ts +9 -0
- package/pages/content-builder/content/gallery.js +29 -0
- package/pages/content-builder/content/hero-section.d.ts +12 -0
- package/pages/content-builder/content/hero-section.js +35 -0
- package/pages/content-builder/content/people.d.ts +17 -0
- package/pages/content-builder/content/people.js +61 -0
- package/pages/content-builder/content/wysiwyg.d.ts +15 -0
- package/pages/content-builder/content/wysiwyg.js +32 -0
- package/pages/content-builder/content-builder-page.d.ts +3 -0
- package/pages/content-builder/content-builder-page.js +107 -0
- package/pages/content-builder/content-field.d.ts +10 -0
- package/pages/content-builder/content-field.js +62 -0
- package/pages/content-builder/content-header.d.ts +3 -0
- package/pages/content-builder/content-header.js +55 -0
- package/pages/content-builder/context/details-visibility-context.d.ts +4 -0
- package/pages/content-builder/context/details-visibility-context.js +58 -0
- package/pages/content-builder/hooks/use-sortable.d.ts +15 -0
- package/pages/content-builder/hooks/use-sortable.js +57 -0
- package/pages/content-builder/index.d.ts +5 -0
- package/pages/content-builder/index.js +21 -0
- package/pages/content-builder/mapper.d.ts +4 -0
- package/pages/content-builder/mapper.js +69 -0
- package/pages/content-builder/types.d.ts +94 -0
- package/pages/content-builder/types.js +2 -0
- package/pages/forgotten-password-page/forgotten-password-page.d.ts +5 -0
- package/pages/forgotten-password-page/forgotten-password-page.js +49 -0
- package/pages/forgotten-password-page/index.d.ts +2 -0
- package/pages/forgotten-password-page/index.js +18 -0
- package/pages/forgotten-password-page/types.d.ts +11 -0
- package/pages/forgotten-password-page/types.js +2 -0
- package/pages/grid-page/get-initial-props-helper.d.ts +4 -0
- package/pages/grid-page/get-initial-props-helper.js +20 -0
- package/pages/grid-page/grid-page.d.ts +6 -0
- package/pages/grid-page/grid-page.js +161 -0
- package/pages/grid-page/index.d.ts +1 -0
- package/pages/grid-page/index.js +5 -0
- package/pages/grid-page/types.d.ts +65 -0
- package/pages/grid-page/types.js +2 -0
- package/pages/grid-page/use-hidden-columns.d.ts +4 -0
- package/pages/grid-page/use-hidden-columns.js +17 -0
- package/pages/invite-user-page/index.d.ts +2 -0
- package/pages/invite-user-page/index.js +18 -0
- package/pages/invite-user-page/invite-user-page.d.ts +2 -0
- package/pages/invite-user-page/invite-user-page.js +57 -0
- package/pages/invite-user-page/types.d.ts +12 -0
- package/pages/invite-user-page/types.js +2 -0
- package/pages/login-page/index.d.ts +2 -0
- package/pages/login-page/index.js +18 -0
- package/pages/login-page/login-page.d.ts +5 -0
- package/pages/login-page/login-page.js +80 -0
- package/pages/login-page/types.d.ts +21 -0
- package/pages/login-page/types.js +2 -0
- package/pages/renew-password-page/index.d.ts +2 -0
- package/pages/renew-password-page/index.js +18 -0
- package/pages/renew-password-page/renew-password-page.d.ts +9 -0
- package/pages/renew-password-page/renew-password-page.js +53 -0
- package/pages/renew-password-page/types.d.ts +14 -0
- package/pages/renew-password-page/types.js +2 -0
- package/pages/translations.d.ts +93 -0
- package/pages/translations.js +94 -0
- package/security/restricted-page.d.ts +10 -0
- package/security/restricted-page.js +40 -0
- package/security/translations.d.ts +29 -0
- package/security/translations.js +30 -0
- package/security/use-logged-user.d.ts +5 -0
- package/security/use-logged-user.js +17 -0
- package/ui/avatar/avatar.d.ts +11 -0
- package/ui/avatar/avatar.js +47 -0
- package/ui/avatar/get-avatar-user-letters.d.ts +1 -0
- package/ui/avatar/get-avatar-user-letters.js +18 -0
- package/ui/avatar/index.d.ts +3 -0
- package/ui/avatar/index.js +5 -0
- package/ui/avatar/theme.d.ts +11 -0
- package/ui/avatar/theme.js +2 -0
- package/ui/copy-to-clipboard/copy-to-clipboard.d.ts +3 -0
- package/ui/copy-to-clipboard/copy-to-clipboard.js +47 -0
- package/ui/copy-to-clipboard/index.d.ts +2 -0
- package/ui/copy-to-clipboard/index.js +18 -0
- package/ui/copy-to-clipboard/translations.d.ts +17 -0
- package/ui/copy-to-clipboard/translations.js +18 -0
- package/ui/copy-to-clipboard/types.d.ts +7 -0
- package/ui/copy-to-clipboard/types.js +2 -0
- package/ui/copy-to-clipboard-button/copy-to-clipboard-button.d.ts +3 -0
- package/ui/copy-to-clipboard-button/copy-to-clipboard-button.js +48 -0
- package/ui/copy-to-clipboard-button/index.d.ts +2 -0
- package/ui/copy-to-clipboard-button/index.js +18 -0
- package/ui/copy-to-clipboard-button/translations.d.ts +17 -0
- package/ui/copy-to-clipboard-button/translations.js +18 -0
- package/ui/copy-to-clipboard-button/types.d.ts +6 -0
- package/ui/copy-to-clipboard-button/types.js +2 -0
- package/ui/index.d.ts +1 -0
- package/ui/index.js +6 -0
- package/ui/tw-tokens/tw-box-shadow.d.ts +12 -0
- package/ui/tw-tokens/tw-box-shadow.js +15 -0
- package/ui/tw-tokens/tw-colors.d.ts +475 -0
- package/ui/tw-tokens/tw-colors.js +474 -0
- package/ui/tw-tokens/tw-containers.d.ts +8 -0
- package/ui/tw-tokens/tw-containers.js +5 -0
- package/ui/tw-tokens/tw-font-size.d.ts +55 -0
- package/ui/tw-tokens/tw-font-size.js +32 -0
- package/ui/tw-tokens/tw-font-weight.d.ts +12 -0
- package/ui/tw-tokens/tw-font-weight.js +15 -0
- package/ui/tw-tokens/tw-line-height.d.ts +17 -0
- package/ui/tw-tokens/tw-line-height.js +20 -0
- package/ui/tw-tokens/tw-screens.d.ts +8 -0
- package/ui/tw-tokens/tw-screens.js +5 -0
- package/ui/tw-tokens/tw-spacing.d.ts +39 -0
- package/ui/tw-tokens/tw-spacing.js +42 -0
- package/ui/tw-tokens/tw-z-index.d.ts +21 -0
- package/ui/tw-tokens/tw-z-index.js +24 -0
- package/ui/widget/index.d.ts +2 -0
- package/ui/widget/index.js +18 -0
- package/ui/widget/types.d.ts +6 -0
- package/ui/widget/types.js +2 -0
- package/ui/widget/widget.d.ts +3 -0
- package/ui/widget/widget.js +15 -0
- package/utils/remove-confirm-handler.d.ts +1 -0
- package/utils/remove-confirm-handler.js +31 -0
- package/utils/translations.d.ts +23 -0
- package/utils/translations.js +24 -0
- package/utils/use-viewport-height.d.ts +3 -0
- package/utils/use-viewport-height.js +28 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
export declare const twSpacing: {
|
2
|
+
"0": string;
|
3
|
+
"1": string;
|
4
|
+
"2": string;
|
5
|
+
"3": string;
|
6
|
+
"4": string;
|
7
|
+
"5": string;
|
8
|
+
"6": string;
|
9
|
+
"7": string;
|
10
|
+
"8": string;
|
11
|
+
"9": string;
|
12
|
+
"10": string;
|
13
|
+
"11": string;
|
14
|
+
"12": string;
|
15
|
+
"14": string;
|
16
|
+
"16": string;
|
17
|
+
"20": string;
|
18
|
+
"24": string;
|
19
|
+
"28": string;
|
20
|
+
"32": string;
|
21
|
+
"36": string;
|
22
|
+
"40": string;
|
23
|
+
"44": string;
|
24
|
+
"48": string;
|
25
|
+
"52": string;
|
26
|
+
"56": string;
|
27
|
+
"60": string;
|
28
|
+
"64": string;
|
29
|
+
"72": string;
|
30
|
+
"80": string;
|
31
|
+
"96": string;
|
32
|
+
px: string;
|
33
|
+
"0.5": string;
|
34
|
+
"1.5": string;
|
35
|
+
"2.5": string;
|
36
|
+
"3.5": string;
|
37
|
+
inherit: string;
|
38
|
+
};
|
39
|
+
export type TwSpacing = typeof twSpacing;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
// this file is generated automatically, do not change anything manually in the contents of this file
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.twSpacing = void 0;
|
5
|
+
exports.twSpacing = {
|
6
|
+
"0": "0px",
|
7
|
+
"1": "0.25rem",
|
8
|
+
"2": "0.5rem",
|
9
|
+
"3": "0.75rem",
|
10
|
+
"4": "1rem",
|
11
|
+
"5": "1.25rem",
|
12
|
+
"6": "1.5rem",
|
13
|
+
"7": "1.75rem",
|
14
|
+
"8": "2rem",
|
15
|
+
"9": "2.25rem",
|
16
|
+
"10": "2.5rem",
|
17
|
+
"11": "2.75rem",
|
18
|
+
"12": "3rem",
|
19
|
+
"14": "3.5rem",
|
20
|
+
"16": "4rem",
|
21
|
+
"20": "5rem",
|
22
|
+
"24": "6rem",
|
23
|
+
"28": "7rem",
|
24
|
+
"32": "8rem",
|
25
|
+
"36": "9rem",
|
26
|
+
"40": "10rem",
|
27
|
+
"44": "11rem",
|
28
|
+
"48": "12rem",
|
29
|
+
"52": "13rem",
|
30
|
+
"56": "14rem",
|
31
|
+
"60": "15rem",
|
32
|
+
"64": "16rem",
|
33
|
+
"72": "18rem",
|
34
|
+
"80": "20rem",
|
35
|
+
"96": "24rem",
|
36
|
+
px: "1px",
|
37
|
+
"0.5": "0.125rem",
|
38
|
+
"1.5": "0.375rem",
|
39
|
+
"2.5": "0.625rem",
|
40
|
+
"3.5": "0.875rem",
|
41
|
+
inherit: "inherit",
|
42
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare const twZIndex: {
|
2
|
+
"0": string;
|
3
|
+
"1": string;
|
4
|
+
"10": string;
|
5
|
+
"20": string;
|
6
|
+
"30": string;
|
7
|
+
"40": string;
|
8
|
+
"50": string;
|
9
|
+
auto: string;
|
10
|
+
focus: string;
|
11
|
+
fixed: string;
|
12
|
+
menu: string;
|
13
|
+
header: string;
|
14
|
+
modal: string;
|
15
|
+
imageGallery: string;
|
16
|
+
lightbox: string;
|
17
|
+
dropdown: string;
|
18
|
+
flashMessage: string;
|
19
|
+
tooltip: string;
|
20
|
+
};
|
21
|
+
export type TwZIndex = typeof twZIndex;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
// this file is generated automatically, do not change anything manually in the contents of this file
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.twZIndex = void 0;
|
5
|
+
exports.twZIndex = {
|
6
|
+
"0": "0",
|
7
|
+
"1": "1",
|
8
|
+
"10": "10",
|
9
|
+
"20": "20",
|
10
|
+
"30": "30",
|
11
|
+
"40": "40",
|
12
|
+
"50": "50",
|
13
|
+
auto: "auto",
|
14
|
+
focus: "5",
|
15
|
+
fixed: "10",
|
16
|
+
menu: "25",
|
17
|
+
header: "50",
|
18
|
+
modal: "100",
|
19
|
+
imageGallery: "150",
|
20
|
+
lightbox: "150",
|
21
|
+
dropdown: "200",
|
22
|
+
flashMessage: "250",
|
23
|
+
tooltip: "300",
|
24
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./types"), exports);
|
18
|
+
__exportStar(require("./widget"), exports);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.Widget = void 0;
|
7
|
+
const paper_1 = require("@uxf/ui/paper/paper");
|
8
|
+
const react_1 = __importDefault(require("react"));
|
9
|
+
const Widget = (props) => {
|
10
|
+
var _a;
|
11
|
+
return (react_1.default.createElement(paper_1.Paper, { className: `dark:bg-gray-950 ${props.footer ? "rounded-b-none" : ""} ${props.withDividers ? "divide-lightBorder dark:divide-darkBorder divide-y" : ""} ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}` },
|
12
|
+
props.children,
|
13
|
+
props.footer && react_1.default.createElement("div", { className: "bg-gray-50 px-4 py-3 dark:bg-gray-800" }, props.footer)));
|
14
|
+
};
|
15
|
+
exports.Widget = Widget;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function removeConfirmHandler(): Promise<boolean>;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.removeConfirmHandler = removeConfirmHandler;
|
7
|
+
const translations_1 = require("@uxf/core-react/translations");
|
8
|
+
const button_1 = require("@uxf/ui/button");
|
9
|
+
const modal_1 = require("@uxf/ui/modal");
|
10
|
+
const modal_dialog_1 = require("@uxf/ui/modal-dialog/modal-dialog");
|
11
|
+
const react_1 = __importDefault(require("react"));
|
12
|
+
function removeConfirmHandler() {
|
13
|
+
return new Promise((resolve) => {
|
14
|
+
const RemoveConfirmModal = () => {
|
15
|
+
const t = (0, translations_1.useUxfTranslation)();
|
16
|
+
return (react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
|
17
|
+
react_1.default.createElement(button_1.Button, { onClick: () => {
|
18
|
+
resolve(false);
|
19
|
+
(0, modal_1.closeModal)();
|
20
|
+
} }, t("uxf-cms-remove-confirm-handler:cancel")),
|
21
|
+
react_1.default.createElement(button_1.Button, { color: "negative", onClick: () => {
|
22
|
+
resolve(true);
|
23
|
+
(0, modal_1.closeModal)();
|
24
|
+
} }, t("uxf-cms-remove-confirm-handler:confirm-delete"))), title: t("uxf-cms-remove-confirm-handler:confirm-delete-message"), width: "sm" }));
|
25
|
+
};
|
26
|
+
(0, modal_1.openModal)({
|
27
|
+
isBackdropCloseDisabled: true,
|
28
|
+
children: react_1.default.createElement(RemoveConfirmModal, null),
|
29
|
+
});
|
30
|
+
});
|
31
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
"uxf-cms-remove-confirm-handler": {
|
3
|
+
cancel: {
|
4
|
+
cs: string;
|
5
|
+
en: string;
|
6
|
+
sk: string;
|
7
|
+
de: string;
|
8
|
+
};
|
9
|
+
"confirm-delete": {
|
10
|
+
cs: string;
|
11
|
+
en: string;
|
12
|
+
sk: string;
|
13
|
+
de: string;
|
14
|
+
};
|
15
|
+
"confirm-delete-message": {
|
16
|
+
cs: string;
|
17
|
+
en: string;
|
18
|
+
sk: string;
|
19
|
+
de: string;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
23
|
+
export default _default;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
"uxf-cms-remove-confirm-handler": {
|
5
|
+
cancel: {
|
6
|
+
cs: "Zrušit",
|
7
|
+
en: "Cancel",
|
8
|
+
sk: "Zrušiť",
|
9
|
+
de: "Abbrechen",
|
10
|
+
},
|
11
|
+
"confirm-delete": {
|
12
|
+
cs: "Ano, smazat",
|
13
|
+
en: "Yes, delete",
|
14
|
+
sk: "Áno, zmazať",
|
15
|
+
de: "Ja, löschen",
|
16
|
+
},
|
17
|
+
"confirm-delete-message": {
|
18
|
+
cs: "Opravdu chcete smazat tento soubor?",
|
19
|
+
en: "Do you really want to delete this file?",
|
20
|
+
sk: "Naozaj chcete zmazať tento súbor?",
|
21
|
+
de: "Möchten Sie diese Datei wirklich löschen?",
|
22
|
+
},
|
23
|
+
},
|
24
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.useViewportHeight = useViewportHeight;
|
4
|
+
const react_1 = require("react");
|
5
|
+
function getHeight() {
|
6
|
+
var _a, _b;
|
7
|
+
if (typeof window === "undefined") {
|
8
|
+
return "100vh";
|
9
|
+
}
|
10
|
+
return (_b = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height) !== null && _b !== void 0 ? _b : "100vh";
|
11
|
+
}
|
12
|
+
function useViewportHeight(scrollLock) {
|
13
|
+
const [height, setHeight] = (0, react_1.useState)(() => getHeight());
|
14
|
+
(0, react_1.useEffect)(() => {
|
15
|
+
if (scrollLock) {
|
16
|
+
document.body.classList.add("xl:overflow-hidden");
|
17
|
+
}
|
18
|
+
const handler = () => setHeight(getHeight());
|
19
|
+
window.addEventListener("resize", handler);
|
20
|
+
return () => {
|
21
|
+
if (scrollLock) {
|
22
|
+
document.body.classList.remove("xl:overflow-hidden");
|
23
|
+
}
|
24
|
+
window.removeEventListener("resize", handler);
|
25
|
+
};
|
26
|
+
}, [scrollLock]);
|
27
|
+
return height;
|
28
|
+
}
|