@uxf/cms 11.73.0 → 11.74.0
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/package.json +6 -6
- package/translations/translations.d.ts +429 -0
- package/translations/translations.js +31 -0
- package/api/index.d.ts +0 -165
- package/api/index.js +0 -100
- package/api/swr.d.ts +0 -76
- package/api/swr.js +0 -43
- package/config/container.d.ts +0 -29
- package/config/container.js +0 -24
- package/config/index.d.ts +0 -2
- package/config/index.js +0 -6
- package/content-builder/content-builder-body.d.ts +0 -6
- package/content-builder/content-builder-body.js +0 -10
- package/content-builder/content-builder-header.d.ts +0 -7
- package/content-builder/content-builder-header.js +0 -13
- package/content-builder/content-builder-root.d.ts +0 -11
- package/content-builder/content-builder-root.js +0 -13
- package/content-builder/content-builder-sidebar.d.ts +0 -7
- package/content-builder/content-builder-sidebar.js +0 -12
- package/content-builder/content-builder.d.ts +0 -14
- package/content-builder/content-builder.js +0 -55
- package/content-builder/forms/content-builder-basic-form.d.ts +0 -10
- package/content-builder/forms/content-builder-basic-form.js +0 -47
- package/content-builder/forms/content-builder-seo-form.d.ts +0 -10
- package/content-builder/forms/content-builder-seo-form.js +0 -20
- package/content-builder/index.d.ts +0 -4
- package/content-builder/index.js +0 -20
- package/content-builder/map-content-response-to-form-data.d.ts +0 -3
- package/content-builder/map-content-response-to-form-data.js +0 -44
- package/content-builder/map-form-data-to-content-request.d.ts +0 -2
- package/content-builder/map-form-data-to-content-request.js +0 -28
- package/content-builder/types.d.ts +0 -186
- package/content-builder/types.js +0 -2
- package/content-builder/use-content-builder-form-api.d.ts +0 -3
- package/content-builder/use-content-builder-form-api.js +0 -7
- package/context/cms-provider.d.ts +0 -7
- package/context/cms-provider.js +0 -18
- package/deprecated/api/api-client.d.ts +0 -15
- package/deprecated/api/api-client.js +0 -86
- package/deprecated/hoc/with-authenticate.d.ts +0 -6
- package/deprecated/hoc/with-authenticate.js +0 -61
- package/deprecated/redux/configure-store.d.ts +0 -3
- package/deprecated/redux/configure-store.js +0 -16
- package/deprecated/redux/entities/actions.d.ts +0 -30
- package/deprecated/redux/entities/actions.js +0 -15
- package/deprecated/redux/entities/index.d.ts +0 -2
- package/deprecated/redux/entities/index.js +0 -18
- package/deprecated/redux/entities/reducer.d.ts +0 -3
- package/deprecated/redux/entities/reducer.js +0 -36
- package/deprecated/redux/entities/selectors.d.ts +0 -10
- package/deprecated/redux/entities/selectors.js +0 -16
- package/deprecated/redux/index.d.ts +0 -3
- package/deprecated/redux/index.js +0 -22
- package/deprecated/redux/redux-helper.d.ts +0 -15
- package/deprecated/redux/redux-helper.js +0 -6
- package/deprecated/redux/types.d.ts +0 -7
- package/deprecated/redux/types.js +0 -2
- package/deprecated/redux/user/actions.d.ts +0 -19
- package/deprecated/redux/user/actions.js +0 -14
- package/deprecated/redux/user/index.d.ts +0 -2
- package/deprecated/redux/user/index.js +0 -18
- package/deprecated/redux/user/reducer.d.ts +0 -3
- package/deprecated/redux/user/reducer.js +0 -21
- package/deprecated/redux/user/selectors.d.ts +0 -3
- package/deprecated/redux/user/selectors.js +0 -5
- package/deprecated/redux/with-redux-store.d.ts +0 -1
- package/deprecated/redux/with-redux-store.js +0 -70
- package/deprecated/security/cms-authorizator.d.ts +0 -3
- package/deprecated/security/cms-authorizator.js +0 -8
- package/deprecated/types/app.d.ts +0 -6
- package/deprecated/types/app.js +0 -2
- package/deprecated/types/form.d.ts +0 -25
- package/deprecated/types/form.js +0 -16
- package/errors/BadRequestError.d.ts +0 -18
- package/errors/BadRequestError.js +0 -14
- package/errors/ForbiddenError.d.ts +0 -4
- package/errors/ForbiddenError.js +0 -13
- package/errors/NetworkError.d.ts +0 -4
- package/errors/NetworkError.js +0 -13
- package/errors/UnauthorizedError.d.ts +0 -4
- package/errors/UnauthorizedError.js +0 -13
- package/errors/ValidationError.d.ts +0 -7
- package/errors/ValidationError.js +0 -17
- package/form-renderer/field/content-dynamic.d.ts +0 -8
- package/form-renderer/field/content-dynamic.js +0 -15
- package/form-renderer/field/content.d.ts +0 -5
- package/form-renderer/field/content.js +0 -38
- package/forms/change-password-form/change-password-form.d.ts +0 -3
- package/forms/change-password-form/change-password-form.js +0 -26
- package/forms/change-password-form/index.d.ts +0 -2
- package/forms/change-password-form/index.js +0 -18
- package/forms/change-password-form/types.d.ts +0 -13
- package/forms/change-password-form/types.js +0 -2
- package/forms/components/wysiwyg-input/index.d.ts +0 -1
- package/forms/components/wysiwyg-input/index.js +0 -17
- package/forms/components/wysiwyg-input/wysiwyg-input.d.ts +0 -26
- package/forms/components/wysiwyg-input/wysiwyg-input.js +0 -83
- package/forms/forgotten-password-form/forgotten-password-form.d.ts +0 -3
- package/forms/forgotten-password-form/forgotten-password-form.js +0 -50
- package/forms/forgotten-password-form/index.d.ts +0 -2
- package/forms/forgotten-password-form/index.js +0 -18
- package/forms/forgotten-password-form/types.d.ts +0 -10
- package/forms/forgotten-password-form/types.js +0 -2
- package/forms/invite-user-form/index.d.ts +0 -2
- package/forms/invite-user-form/index.js +0 -18
- package/forms/invite-user-form/invite-user-form.d.ts +0 -3
- package/forms/invite-user-form/invite-user-form.js +0 -31
- package/forms/invite-user-form/types.d.ts +0 -15
- package/forms/invite-user-form/types.js +0 -2
- package/forms/login-form/index.d.ts +0 -2
- package/forms/login-form/index.js +0 -18
- package/forms/login-form/login-form.d.ts +0 -3
- package/forms/login-form/login-form.js +0 -49
- package/forms/login-form/types.d.ts +0 -11
- package/forms/login-form/types.js +0 -2
- package/forms/renew-password-form/index.d.ts +0 -2
- package/forms/renew-password-form/index.js +0 -18
- package/forms/renew-password-form/renew-password-form.d.ts +0 -3
- package/forms/renew-password-form/renew-password-form.js +0 -48
- package/forms/renew-password-form/types.d.ts +0 -11
- package/forms/renew-password-form/types.js +0 -2
- package/lib/api/create-axios-instance.d.ts +0 -6
- package/lib/api/create-axios-instance.js +0 -17
- package/lib/api/create-axios-request.d.ts +0 -3
- package/lib/api/create-axios-request.js +0 -39
- package/lib/api/create-use-axios-request.d.ts +0 -5
- package/lib/api/create-use-axios-request.js +0 -35
- package/lib/api/index.d.ts +0 -2
- package/lib/api/index.js +0 -19
- package/lib/api/types.d.ts +0 -18
- package/lib/api/types.js +0 -2
- package/lib/layout/breadcrumbs.d.ts +0 -9
- package/lib/layout/breadcrumbs.js +0 -21
- package/lib/layout/index.d.ts +0 -3
- package/lib/layout/index.js +0 -19
- package/lib/layout/layout-container.d.ts +0 -3
- package/lib/layout/layout-container.js +0 -22
- package/lib/layout/layout.d.ts +0 -3
- package/lib/layout/layout.js +0 -47
- package/lib/layout/sidebar.d.ts +0 -3
- package/lib/layout/sidebar.js +0 -77
- package/lib/layout/styles.d.ts +0 -1
- package/lib/layout/styles.js +0 -4
- package/lib/layout/types.d.ts +0 -36
- package/lib/layout/types.js +0 -2
- package/lib/login-layout/index.d.ts +0 -2
- package/lib/login-layout/index.js +0 -18
- package/lib/login-layout/login-layout.d.ts +0 -3
- package/lib/login-layout/login-layout.js +0 -19
- package/lib/login-layout/types.d.ts +0 -9
- package/lib/login-layout/types.js +0 -2
- package/lib/menu/active-item-resolver.d.ts +0 -7
- package/lib/menu/active-item-resolver.js +0 -42
- package/lib/menu/factory.d.ts +0 -10
- package/lib/menu/factory.js +0 -40
- package/lib/menu/index.d.ts +0 -5
- package/lib/menu/index.js +0 -21
- package/lib/menu/mobile-bar.d.ts +0 -8
- package/lib/menu/mobile-bar.js +0 -54
- package/lib/menu/model.d.ts +0 -56
- package/lib/menu/model.js +0 -112
- package/lib/menu/types.d.ts +0 -5
- package/lib/menu/types.js +0 -2
- package/lib/menu/ui/list-item/index.d.ts +0 -2
- package/lib/menu/ui/list-item/index.js +0 -18
- package/lib/menu/ui/list-item/list-item.d.ts +0 -3
- package/lib/menu/ui/list-item/list-item.js +0 -37
- package/lib/menu/ui/list-item/types.d.ts +0 -19
- package/lib/menu/ui/list-item/types.js +0 -2
- package/lib/menu/ui/menu-custom-item.d.ts +0 -6
- package/lib/menu/ui/menu-custom-item.js +0 -17
- package/lib/menu/ui/menu-item.d.ts +0 -6
- package/lib/menu/ui/menu-item.js +0 -55
- package/lib/menu/ui/menu-super-section-item.d.ts +0 -6
- package/lib/menu/ui/menu-super-section-item.js +0 -40
- package/lib/menu/ui/menu.d.ts +0 -6
- package/lib/menu/ui/menu.js +0 -37
- package/lib/menu/ui/sub-menu/sub-menu-item.d.ts +0 -7
- package/lib/menu/ui/sub-menu/sub-menu-item.js +0 -23
- package/lib/menu/ui/sub-menu/sub-menu-mobile.d.ts +0 -8
- package/lib/menu/ui/sub-menu/sub-menu-mobile.js +0 -48
- package/lib/menu/ui/sub-menu/sub-menu.d.ts +0 -7
- package/lib/menu/ui/sub-menu/sub-menu.js +0 -46
- package/lib/menu/ui/sub-menu/use-sub-menu.d.ts +0 -49
- package/lib/menu/ui/sub-menu/use-sub-menu.js +0 -45
- package/lib/menu/ui/user-menu.d.ts +0 -6
- package/lib/menu/ui/user-menu.js +0 -53
- package/pages/content-builder/components/form-content.d.ts +0 -12
- package/pages/content-builder/components/form-content.js +0 -64
- package/pages/content-builder/components/form-root-fields.d.ts +0 -16
- package/pages/content-builder/components/form-root-fields.js +0 -62
- package/pages/content-builder/components/form.d.ts +0 -12
- package/pages/content-builder/components/form.js +0 -83
- package/pages/content-builder/components/header.d.ts +0 -6
- package/pages/content-builder/components/header.js +0 -16
- package/pages/content-builder/constants.d.ts +0 -6
- package/pages/content-builder/constants.js +0 -10
- package/pages/content-builder/content/feature-section.d.ts +0 -17
- package/pages/content-builder/content/feature-section.js +0 -59
- package/pages/content-builder/content/gallery.d.ts +0 -9
- package/pages/content-builder/content/gallery.js +0 -27
- package/pages/content-builder/content/hero-section.d.ts +0 -12
- package/pages/content-builder/content/hero-section.js +0 -31
- package/pages/content-builder/content/people.d.ts +0 -17
- package/pages/content-builder/content/people.js +0 -57
- package/pages/content-builder/content/wysiwyg.d.ts +0 -15
- package/pages/content-builder/content/wysiwyg.js +0 -28
- package/pages/content-builder/content-builder-page.d.ts +0 -3
- package/pages/content-builder/content-builder-page.js +0 -107
- package/pages/content-builder/content-field.d.ts +0 -10
- package/pages/content-builder/content-field.js +0 -62
- package/pages/content-builder/content-header.d.ts +0 -3
- package/pages/content-builder/content-header.js +0 -53
- package/pages/content-builder/context/details-visibility-context.d.ts +0 -4
- package/pages/content-builder/context/details-visibility-context.js +0 -58
- package/pages/content-builder/hooks/use-sortable.d.ts +0 -15
- package/pages/content-builder/hooks/use-sortable.js +0 -57
- package/pages/content-builder/index.d.ts +0 -5
- package/pages/content-builder/index.js +0 -21
- package/pages/content-builder/mapper.d.ts +0 -4
- package/pages/content-builder/mapper.js +0 -69
- package/pages/content-builder/types.d.ts +0 -94
- package/pages/content-builder/types.js +0 -2
- package/pages/forgotten-password-page/forgotten-password-page.d.ts +0 -5
- package/pages/forgotten-password-page/forgotten-password-page.js +0 -49
- package/pages/forgotten-password-page/index.d.ts +0 -2
- package/pages/forgotten-password-page/index.js +0 -18
- package/pages/forgotten-password-page/types.d.ts +0 -11
- package/pages/forgotten-password-page/types.js +0 -2
- package/pages/grid-page/get-initial-props-helper.d.ts +0 -4
- package/pages/grid-page/get-initial-props-helper.js +0 -20
- package/pages/grid-page/grid-page.d.ts +0 -6
- package/pages/grid-page/grid-page.js +0 -159
- package/pages/grid-page/index.d.ts +0 -1
- package/pages/grid-page/index.js +0 -5
- package/pages/grid-page/types.d.ts +0 -65
- package/pages/grid-page/types.js +0 -2
- package/pages/grid-page/use-hidden-columns.d.ts +0 -4
- package/pages/grid-page/use-hidden-columns.js +0 -17
- package/pages/invite-user-page/index.d.ts +0 -2
- package/pages/invite-user-page/index.js +0 -18
- package/pages/invite-user-page/invite-user-page.d.ts +0 -2
- package/pages/invite-user-page/invite-user-page.js +0 -57
- package/pages/invite-user-page/types.d.ts +0 -12
- package/pages/invite-user-page/types.js +0 -2
- package/pages/login-page/index.d.ts +0 -2
- package/pages/login-page/index.js +0 -18
- package/pages/login-page/login-page.d.ts +0 -5
- package/pages/login-page/login-page.js +0 -80
- package/pages/login-page/types.d.ts +0 -21
- package/pages/login-page/types.js +0 -2
- package/pages/renew-password-page/index.d.ts +0 -2
- package/pages/renew-password-page/index.js +0 -18
- package/pages/renew-password-page/renew-password-page.d.ts +0 -9
- package/pages/renew-password-page/renew-password-page.js +0 -53
- package/pages/renew-password-page/types.d.ts +0 -14
- package/pages/renew-password-page/types.js +0 -2
- package/security/restricted-page.d.ts +0 -9
- package/security/restricted-page.js +0 -38
- package/security/use-logged-user.d.ts +0 -5
- package/security/use-logged-user.js +0 -17
- package/ui/avatar/avatar.d.ts +0 -11
- package/ui/avatar/avatar.js +0 -47
- package/ui/avatar/get-avatar-user-letters.d.ts +0 -1
- package/ui/avatar/get-avatar-user-letters.js +0 -18
- package/ui/avatar/index.d.ts +0 -3
- package/ui/avatar/index.js +0 -5
- package/ui/avatar/theme.d.ts +0 -11
- package/ui/avatar/theme.js +0 -2
- package/ui/copy-to-clipboard/copy-to-clipboard.d.ts +0 -3
- package/ui/copy-to-clipboard/copy-to-clipboard.js +0 -45
- package/ui/copy-to-clipboard/index.d.ts +0 -2
- package/ui/copy-to-clipboard/index.js +0 -18
- package/ui/copy-to-clipboard/types.d.ts +0 -7
- package/ui/copy-to-clipboard/types.js +0 -2
- package/ui/copy-to-clipboard-button/copy-to-clipboard-button.d.ts +0 -3
- package/ui/copy-to-clipboard-button/copy-to-clipboard-button.js +0 -44
- package/ui/copy-to-clipboard-button/index.d.ts +0 -2
- package/ui/copy-to-clipboard-button/index.js +0 -18
- package/ui/copy-to-clipboard-button/types.d.ts +0 -6
- package/ui/copy-to-clipboard-button/types.js +0 -2
- package/ui/index.d.ts +0 -1
- package/ui/index.js +0 -6
- package/ui/tw-tokens/tw-box-shadow.d.ts +0 -12
- package/ui/tw-tokens/tw-box-shadow.js +0 -15
- package/ui/tw-tokens/tw-colors.d.ts +0 -475
- package/ui/tw-tokens/tw-colors.js +0 -474
- package/ui/tw-tokens/tw-containers.d.ts +0 -8
- package/ui/tw-tokens/tw-containers.js +0 -5
- package/ui/tw-tokens/tw-font-size.d.ts +0 -55
- package/ui/tw-tokens/tw-font-size.js +0 -32
- package/ui/tw-tokens/tw-font-weight.d.ts +0 -12
- package/ui/tw-tokens/tw-font-weight.js +0 -15
- package/ui/tw-tokens/tw-line-height.d.ts +0 -17
- package/ui/tw-tokens/tw-line-height.js +0 -20
- package/ui/tw-tokens/tw-screens.d.ts +0 -8
- package/ui/tw-tokens/tw-screens.js +0 -5
- package/ui/tw-tokens/tw-spacing.d.ts +0 -39
- package/ui/tw-tokens/tw-spacing.js +0 -42
- package/ui/tw-tokens/tw-z-index.d.ts +0 -21
- package/ui/tw-tokens/tw-z-index.js +0 -24
- package/ui/widget/index.d.ts +0 -2
- package/ui/widget/index.js +0 -18
- package/ui/widget/types.d.ts +0 -6
- package/ui/widget/types.js +0 -2
- package/ui/widget/widget.d.ts +0 -3
- package/ui/widget/widget.js +0 -15
- package/utils/remove-confirm-handler.d.ts +0 -1
- package/utils/remove-confirm-handler.js +0 -26
- package/utils/use-viewport-height.d.ts +0 -3
- package/utils/use-viewport-height.js +0 -28
@@ -1,39 +0,0 @@
|
|
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;
|
@@ -1,42 +0,0 @@
|
|
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
|
-
};
|
@@ -1,21 +0,0 @@
|
|
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;
|
@@ -1,24 +0,0 @@
|
|
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
|
-
};
|
package/ui/widget/index.d.ts
DELETED
package/ui/widget/index.js
DELETED
@@ -1,18 +0,0 @@
|
|
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);
|
package/ui/widget/types.d.ts
DELETED
package/ui/widget/types.js
DELETED
package/ui/widget/widget.d.ts
DELETED
package/ui/widget/widget.js
DELETED
@@ -1,15 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function removeConfirmHandler(): Promise<boolean>;
|
@@ -1,26 +0,0 @@
|
|
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 button_1 = require("@uxf/ui/button");
|
8
|
-
const modal_1 = require("@uxf/ui/modal");
|
9
|
-
const modal_dialog_1 = require("@uxf/ui/modal-dialog/modal-dialog");
|
10
|
-
const react_1 = __importDefault(require("react"));
|
11
|
-
function removeConfirmHandler() {
|
12
|
-
return new Promise((resolve) => {
|
13
|
-
(0, modal_1.openModal)({
|
14
|
-
isBackdropCloseDisabled: true,
|
15
|
-
children: (react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
|
16
|
-
react_1.default.createElement(button_1.Button, { onClick: () => {
|
17
|
-
resolve(false);
|
18
|
-
(0, modal_1.closeModal)();
|
19
|
-
} }, "Zru\u0161it"),
|
20
|
-
react_1.default.createElement(button_1.Button, { color: "negative", onClick: () => {
|
21
|
-
resolve(true);
|
22
|
-
(0, modal_1.closeModal)();
|
23
|
-
} }, "Ano, smazat")), title: "Opravdu chcete smazat tento soubor?", width: "sm" })),
|
24
|
-
});
|
25
|
-
});
|
26
|
-
}
|
@@ -1,28 +0,0 @@
|
|
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
|
-
}
|