@commercetools-frontend/application-components 0.0.0-CRAFT-1791-20251006162610
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/commercetools-frontend-application-components.cjs.d.ts +2 -0
- package/dist/commercetools-frontend-application-components.cjs.dev.js +2303 -0
- package/dist/commercetools-frontend-application-components.cjs.js +7 -0
- package/dist/commercetools-frontend-application-components.cjs.prod.js +2108 -0
- package/dist/commercetools-frontend-application-components.esm.js +2236 -0
- package/dist/custom-views-selector-03d0524e.cjs.prod.js +245 -0
- package/dist/custom-views-selector-9f964e68.esm.js +245 -0
- package/dist/custom-views-selector-d167f024.cjs.dev.js +266 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/custom-view-loader.d.ts +9 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/index.d.ts +2 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/types.d.ts +12 -0
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +186 -0
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +171 -0
- package/dist/declarations/src/components/detail-pages/form-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/info-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +52 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +191 -0
- package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +110 -0
- package/dist/declarations/src/components/dialogs/confirmation-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +114 -0
- package/dist/declarations/src/components/dialogs/form-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/info-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/info-dialog/info-dialog.d.ts +19 -0
- package/dist/declarations/src/components/drawer/drawer.d.ts +153 -0
- package/dist/declarations/src/components/drawer/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +177 -0
- package/dist/declarations/src/components/main-pages/custom-form-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +163 -0
- package/dist/declarations/src/components/main-pages/form-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/info-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +38 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +177 -0
- package/dist/declarations/src/components/maintenance-page-layout/index.d.ts +1 -0
- package/dist/declarations/src/components/maintenance-page-layout/maintenance-page-layout.d.ts +15 -0
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +166 -0
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +127 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/info-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +42 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +169 -0
- package/dist/declarations/src/components/modal-pages/utils/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/utils/modal-page-top-bar.d.ts +26 -0
- package/dist/declarations/src/components/page-content-containers/page-content-full/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-full/page-content-full.d.ts +6 -0
- package/dist/declarations/src/components/page-content-containers/page-content-narrow/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-narrow/page-content-narrow.d.ts +6 -0
- package/dist/declarations/src/components/page-content-containers/page-content-wide/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +9 -0
- package/dist/declarations/src/components/page-not-found/index.d.ts +1 -0
- package/dist/declarations/src/components/page-not-found/page-not-found.d.ts +5 -0
- package/dist/declarations/src/components/page-unauthorized/index.d.ts +1 -0
- package/dist/declarations/src/components/page-unauthorized/page-unauthorized.d.ts +5 -0
- package/dist/declarations/src/components/portals-container/index.d.ts +1 -0
- package/dist/declarations/src/components/portals-container/portals-container.d.ts +44 -0
- package/dist/declarations/src/components/project-stamp/project-stamp.d.ts +9 -0
- package/dist/declarations/src/components/public-page-layout/index.d.ts +7 -0
- package/dist/declarations/src/components/tab-header/index.d.ts +1 -0
- package/dist/declarations/src/components/tab-header/tab-header.d.ts +36 -0
- package/dist/declarations/src/hooks/use-modal-state/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-modal-state/use-modal-state.d.ts +6 -0
- package/dist/declarations/src/index.d.ts +35 -0
- package/dist/declarations/src/theming.d.ts +15 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/dist/public-page-layout-7d1cb99f.esm.js +94 -0
- package/dist/public-page-layout-b182d2dd.cjs.prod.js +94 -0
- package/dist/public-page-layout-b92fb7e4.cjs.dev.js +103 -0
- package/materials/media-queries.css +15 -0
- package/package.json +101 -0
package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import type { CSSObject } from '@emotion/react';
|
|
3
|
+
import type { TCustomViewSelectorProps } from "../../custom-views/custom-views-selector/types.js";
|
|
4
|
+
type MessageDescriptor = {
|
|
5
|
+
id: string;
|
|
6
|
+
description?: string | object;
|
|
7
|
+
defaultMessage?: string;
|
|
8
|
+
};
|
|
9
|
+
type Label = string | MessageDescriptor;
|
|
10
|
+
type Props = {
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
13
|
+
*/
|
|
14
|
+
level?: number;
|
|
15
|
+
title: string;
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* These codes are used to configure which Custom Views are available for every tab.
|
|
19
|
+
*/
|
|
20
|
+
customViewLocatorCodes?: TCustomViewSelectorProps['customViewLocatorCodes'];
|
|
21
|
+
onClose?: (event: SyntheticEvent) => void;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
26
|
+
*/
|
|
27
|
+
baseZIndex?: number;
|
|
28
|
+
getParentSelector?: () => HTMLElement;
|
|
29
|
+
shouldDelayOnClose?: boolean;
|
|
30
|
+
afterOpenStyles?: string | CSSObject;
|
|
31
|
+
topBarCurrentPathLabel?: string;
|
|
32
|
+
topBarPreviousPathLabel?: Label;
|
|
33
|
+
customTitleRow?: ReactNode;
|
|
34
|
+
tabControls: ReactNode;
|
|
35
|
+
subtitle?: string | ReactElement;
|
|
36
|
+
formControls?: ReactNode;
|
|
37
|
+
hideControls?: boolean;
|
|
38
|
+
};
|
|
39
|
+
declare const TabularModalPage: {
|
|
40
|
+
({ hideControls, ...props }: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
41
|
+
displayName: string;
|
|
42
|
+
FormPrimaryButton: {
|
|
43
|
+
({ label, isDisabled, dataAttributes, ...props }: {
|
|
44
|
+
iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps>;
|
|
45
|
+
} & {
|
|
46
|
+
label?: string | {
|
|
47
|
+
id: string;
|
|
48
|
+
description?: string | object;
|
|
49
|
+
defaultMessage?: string;
|
|
50
|
+
};
|
|
51
|
+
onClick: (event: SyntheticEvent) => void;
|
|
52
|
+
isDisabled?: boolean;
|
|
53
|
+
dataAttributes?: {
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
};
|
|
56
|
+
children?: never;
|
|
57
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
|
+
displayName: string;
|
|
59
|
+
};
|
|
60
|
+
FormSecondaryButton: {
|
|
61
|
+
({ label, isDisabled, dataAttributes, ...props }: {
|
|
62
|
+
iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps>;
|
|
63
|
+
} & {
|
|
64
|
+
label?: string | {
|
|
65
|
+
id: string;
|
|
66
|
+
description?: string | object;
|
|
67
|
+
defaultMessage?: string;
|
|
68
|
+
};
|
|
69
|
+
onClick: (event: SyntheticEvent) => void;
|
|
70
|
+
isDisabled?: boolean;
|
|
71
|
+
dataAttributes?: {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
};
|
|
74
|
+
children?: never;
|
|
75
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
76
|
+
displayName: string;
|
|
77
|
+
};
|
|
78
|
+
FormDeleteButton: {
|
|
79
|
+
({ label, isDisabled, dataAttributes, ...props }: {
|
|
80
|
+
label?: string | {
|
|
81
|
+
id: string;
|
|
82
|
+
description?: string | object;
|
|
83
|
+
defaultMessage?: string;
|
|
84
|
+
};
|
|
85
|
+
onClick: (event: SyntheticEvent) => void;
|
|
86
|
+
isDisabled?: boolean;
|
|
87
|
+
dataAttributes?: {
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
};
|
|
90
|
+
children?: never;
|
|
91
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
92
|
+
displayName: string;
|
|
93
|
+
};
|
|
94
|
+
Intl: {
|
|
95
|
+
cancel: {
|
|
96
|
+
id: string;
|
|
97
|
+
defaultMessage: string;
|
|
98
|
+
};
|
|
99
|
+
revert: {
|
|
100
|
+
id: string;
|
|
101
|
+
defaultMessage: string;
|
|
102
|
+
};
|
|
103
|
+
confirm: {
|
|
104
|
+
id: string;
|
|
105
|
+
defaultMessage: string;
|
|
106
|
+
};
|
|
107
|
+
save: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
};
|
|
111
|
+
update: {
|
|
112
|
+
id: string;
|
|
113
|
+
defaultMessage: string;
|
|
114
|
+
};
|
|
115
|
+
create: {
|
|
116
|
+
id: string;
|
|
117
|
+
defaultMessage: string;
|
|
118
|
+
};
|
|
119
|
+
delete: {
|
|
120
|
+
id: string;
|
|
121
|
+
defaultMessage: string;
|
|
122
|
+
};
|
|
123
|
+
add: {
|
|
124
|
+
id: string;
|
|
125
|
+
defaultMessage: string;
|
|
126
|
+
};
|
|
127
|
+
remove: {
|
|
128
|
+
id: string;
|
|
129
|
+
defaultMessage: string;
|
|
130
|
+
};
|
|
131
|
+
close: {
|
|
132
|
+
id: string;
|
|
133
|
+
defaultMessage: string;
|
|
134
|
+
};
|
|
135
|
+
edit: {
|
|
136
|
+
id: string;
|
|
137
|
+
defaultMessage: string;
|
|
138
|
+
};
|
|
139
|
+
open: {
|
|
140
|
+
id: string;
|
|
141
|
+
defaultMessage: string;
|
|
142
|
+
};
|
|
143
|
+
activate: {
|
|
144
|
+
id: string;
|
|
145
|
+
defaultMessage: string;
|
|
146
|
+
};
|
|
147
|
+
deactivate: {
|
|
148
|
+
id: string;
|
|
149
|
+
defaultMessage: string;
|
|
150
|
+
};
|
|
151
|
+
active: {
|
|
152
|
+
id: string;
|
|
153
|
+
defaultMessage: string;
|
|
154
|
+
};
|
|
155
|
+
inactive: {
|
|
156
|
+
id: string;
|
|
157
|
+
defaultMessage: string;
|
|
158
|
+
};
|
|
159
|
+
enable: {
|
|
160
|
+
id: string;
|
|
161
|
+
defaultMessage: string;
|
|
162
|
+
};
|
|
163
|
+
disable: {
|
|
164
|
+
id: string;
|
|
165
|
+
defaultMessage: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export default TabularModalPage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ModalPageTopBar, LargeIconWrapper, } from "./modal-page-top-bar.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type SyntheticEvent, type ReactElement } from 'react';
|
|
2
|
+
import { type TSecondaryButtonIconProps } from '@commercetools-uikit/secondary-icon-button';
|
|
3
|
+
type TLargeIconWrapperProps = {
|
|
4
|
+
children: ReactElement<TLargeIconWrapperProps>;
|
|
5
|
+
size?: TSecondaryButtonIconProps['size'];
|
|
6
|
+
};
|
|
7
|
+
export declare const LargeIconWrapper: (props: TLargeIconWrapperProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
type MessageDescriptor = {
|
|
9
|
+
id: string;
|
|
10
|
+
description?: string | object;
|
|
11
|
+
defaultMessage?: string;
|
|
12
|
+
};
|
|
13
|
+
type Label = string | MessageDescriptor;
|
|
14
|
+
type Props = {
|
|
15
|
+
color?: 'surface' | 'neutral';
|
|
16
|
+
currentPathLabel?: string;
|
|
17
|
+
previousPathLabel?: Label;
|
|
18
|
+
hidePathLabel?: boolean;
|
|
19
|
+
onClose: (event: SyntheticEvent) => void;
|
|
20
|
+
children?: never;
|
|
21
|
+
};
|
|
22
|
+
declare const ModalPageTopBar: {
|
|
23
|
+
({ color, previousPathLabel, hidePathLabel, ...props }: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
export default ModalPageTopBar;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export type TPageContentWide = {
|
|
3
|
+
columns?: '1' | '1/1' | '2/1';
|
|
4
|
+
gapSize?: '10' | '20';
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
themeParentSelector?: () => HTMLElement | null;
|
|
7
|
+
};
|
|
8
|
+
declare function PageContentWide({ columns, gapSize, ...props }: TPageContentWide): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default PageContentWide;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./page-not-found.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./page-unauthorized.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./portals-container.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
|
+
type TLayoutRefs = {
|
|
3
|
+
notificationsGlobalRef: MutableRefObject<HTMLDivElement>;
|
|
4
|
+
notificationsPageRef: MutableRefObject<HTMLDivElement>;
|
|
5
|
+
};
|
|
6
|
+
type TPortalsContainerProps = {
|
|
7
|
+
/**
|
|
8
|
+
* The offset value for positioning the container from the top, when opened.
|
|
9
|
+
* Usually this corresponds to the height of the header section.
|
|
10
|
+
* Defaults to `0px`.
|
|
11
|
+
*/
|
|
12
|
+
offsetTop?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The offset value for positioning the container from the left, when opened.
|
|
15
|
+
* Usually this corresponds to the min width of the nav menu.
|
|
16
|
+
* Defaults to `0px`.
|
|
17
|
+
*/
|
|
18
|
+
offsetLeft?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The offset value for positioning the container from the left, when opened.
|
|
21
|
+
* The value is only applied when the `.body__menu-open` global class is added to the DOM.
|
|
22
|
+
* Usually this corresponds to the width of the expanded nav menu.
|
|
23
|
+
* Defaults to `0px`.
|
|
24
|
+
*/
|
|
25
|
+
offsetLeftOnExpandedMenu?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The CSS selector to apply the `overflow: hidden` style to (preventing scrolling)
|
|
28
|
+
* when a modal container is open.
|
|
29
|
+
* Defaults to `main`.
|
|
30
|
+
*/
|
|
31
|
+
containerSelectorToPreventScrollingOnOpen?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The `z-index` value to apply to the portal container..
|
|
34
|
+
* Defaults to `10000`.
|
|
35
|
+
*/
|
|
36
|
+
zIndex?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The base `z-index` value to apply to each modal container.
|
|
39
|
+
* Defaults to `1000`.
|
|
40
|
+
*/
|
|
41
|
+
baseModalZIndex?: number;
|
|
42
|
+
};
|
|
43
|
+
declare const PortalsContainer: import("react").ForwardRefExoticComponent<TPortalsContainerProps & import("react").RefAttributes<TLayoutRefs>>;
|
|
44
|
+
export default PortalsContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const ProjectStamp: {
|
|
2
|
+
IsProduction: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
IsSuspended: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
IsExpired: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
WillExpire: (props: {
|
|
6
|
+
daysLeft: number;
|
|
7
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
export default ProjectStamp;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const PublicPageLayout: import("react").LazyExoticComponent<import("react").FC<{
|
|
2
|
+
welcomeMessage?: string;
|
|
3
|
+
legalMessage?: import("react").ReactNode;
|
|
4
|
+
contentScale?: "normal" | "wide";
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
}>>;
|
|
7
|
+
export default PublicPageLayout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./tab-header.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { LocationDescriptor } from 'history';
|
|
3
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
4
|
+
export type TTabHeaderProps = {
|
|
5
|
+
/**
|
|
6
|
+
* A route path to redirect to when the tab is clicked.
|
|
7
|
+
*/
|
|
8
|
+
to: string | LocationDescriptor;
|
|
9
|
+
/**
|
|
10
|
+
* The label of the tab.
|
|
11
|
+
* * <br />
|
|
12
|
+
* Required if `intlMessage` is not provided.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The label of the tab, using an `intl` message object.
|
|
17
|
+
* <br />
|
|
18
|
+
* Required if `label` is not provided.
|
|
19
|
+
*/
|
|
20
|
+
intlMessage?: MessageDescriptor & {
|
|
21
|
+
values?: Record<string, ReactNode>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* If `true`, indicates that the element is in a disabled state.
|
|
25
|
+
*/
|
|
26
|
+
isDisabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, marks the tab as active if the link matches exactly the route.
|
|
29
|
+
*/
|
|
30
|
+
exactPathMatch?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export declare const TabHeader: {
|
|
33
|
+
({ isDisabled, exactPathMatch, ...props }: TTabHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
export default TabHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-modal-state.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { default as version } from "./version.js";
|
|
2
|
+
export { default as TabHeader } from "./components/tab-header/index.js";
|
|
3
|
+
export { default as InfoDialog } from "./components/dialogs/info-dialog/index.js";
|
|
4
|
+
export { default as ConfirmationDialog } from "./components/dialogs/confirmation-dialog/index.js";
|
|
5
|
+
export { default as FormDialog } from "./components/dialogs/form-dialog/index.js";
|
|
6
|
+
export { default as InfoModalPage } from "./components/modal-pages/info-modal-page/index.js";
|
|
7
|
+
export { default as FormModalPage } from "./components/modal-pages/form-modal-page/index.js";
|
|
8
|
+
export { default as TabularModalPage } from "./components/modal-pages/tabular-modal-page/index.js";
|
|
9
|
+
export { default as CustomFormModalPage } from "./components/modal-pages/custom-form-modal-page/index.js";
|
|
10
|
+
export { ModalPageTopBar } from "./components/modal-pages/utils/index.js";
|
|
11
|
+
export { default as CustomFormDetailPage } from "./components/detail-pages/custom-form-detail-page/index.js";
|
|
12
|
+
export { default as FormDetailPage } from "./components/detail-pages/form-detail-page/index.js";
|
|
13
|
+
export { default as InfoDetailPage } from "./components/detail-pages/info-detail-page/index.js";
|
|
14
|
+
export { default as TabularDetailPage } from "./components/detail-pages/tabular-detail-page/index.js";
|
|
15
|
+
export { default as PublicPageLayout } from "./components/public-page-layout/index.js";
|
|
16
|
+
export { default as FormMainPage } from "./components/main-pages/form-main-page/index.js";
|
|
17
|
+
export { default as CustomFormMainPage } from "./components/main-pages/custom-form-main-page/index.js";
|
|
18
|
+
export { default as InfoMainPage } from "./components/main-pages/info-main-page/index.js";
|
|
19
|
+
export { default as TabularMainPage } from "./components/main-pages/tabular-main-page/index.js";
|
|
20
|
+
export { default as MaintenancePageLayout } from "./components/maintenance-page-layout/index.js";
|
|
21
|
+
export { default as PageNotFound } from "./components/page-not-found/index.js";
|
|
22
|
+
export { default as PageUnauthorized } from "./components/page-unauthorized/index.js";
|
|
23
|
+
export { default as PageContentNarrow } from "./components/page-content-containers/page-content-narrow/index.js";
|
|
24
|
+
export type { TPageContentNarrow } from "./components/page-content-containers/page-content-narrow/index.js";
|
|
25
|
+
export { default as PageContentWide } from "./components/page-content-containers/page-content-wide/index.js";
|
|
26
|
+
export type { TPageContentWide } from "./components/page-content-containers/page-content-wide/index.js";
|
|
27
|
+
export { default as PageContentFull } from "./components/page-content-containers/page-content-full/index.js";
|
|
28
|
+
export type { TPageContentFull } from "./components/page-content-containers/page-content-full/index.js";
|
|
29
|
+
export { default as Drawer } from "./components/drawer/index.js";
|
|
30
|
+
export { default as CustomViewLoader } from "./components/custom-views/custom-view-loader/index.js";
|
|
31
|
+
export { default as CustomViewsSelector } from "./components/custom-views/custom-views-selector/index.js";
|
|
32
|
+
export { default as ProjectStamp } from "./components/project-stamp/project-stamp.js";
|
|
33
|
+
export { default as PortalsContainer } from "./components/portals-container/index.js";
|
|
34
|
+
export { default as useModalState } from "./hooks/use-modal-state/index.js";
|
|
35
|
+
export * from "./theming.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const themesOverrides: {
|
|
2
|
+
default: {
|
|
3
|
+
marginForCustomViewsSelectorAsTabular: string;
|
|
4
|
+
marginForPageContent: string;
|
|
5
|
+
paddingForDetailPageHeader: string;
|
|
6
|
+
paddingForMainPageHeader: string;
|
|
7
|
+
paddingForTabularPageHeader: string;
|
|
8
|
+
backgroundColorForNavbar: "var(--color-primary-10, hsl(240, 66%, 19%))";
|
|
9
|
+
backgroundColorForNavbarHeader: "var(--color-primary-10, hsl(240, 66%, 19%))";
|
|
10
|
+
fontColorForTabLabelWhenActive: "var(--color-primary, hsl(240, 64%, 58%))";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type DesignTokenOverrides = keyof typeof themesOverrides.default;
|
|
14
|
+
export declare const designTokens: Record<DesignTokenOverrides, string>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
import CommercetoolsLogoSmallSvg from '@commercetools-frontend/assets/logos/commercetools_logo_small.svg';
|
|
4
|
+
import { designTokens } from '@commercetools-uikit/design-system';
|
|
5
|
+
import Spacings from '@commercetools-uikit/spacings';
|
|
6
|
+
import Text from '@commercetools-uikit/text';
|
|
7
|
+
import _styled from '@emotion/styled/base';
|
|
8
|
+
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
const Container = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
11
|
+
target: "e1pnp02z2"
|
|
12
|
+
} : {
|
|
13
|
+
target: "e1pnp02z2",
|
|
14
|
+
label: "Container"
|
|
15
|
+
})("width:100%;min-height:100vh;display:flex;padding:", designTokens.spacingXl, " 0;justify-content:center;background-size:cover;background-position:center;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR21DIiwiZmlsZSI6InB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBkZXNpZ25Ub2tlbnMgYXMgdWlLaXREZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcblxuZXhwb3J0IGNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgXG4gIHdpZHRoOiAxMDAlO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgZGlzcGxheTogZmxleDtcbiAgcGFkZGluZzogJHt1aUtpdERlc2lnblRva2Vucy5zcGFjaW5nWGx9IDA7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgQ29udGFpbmVyQ29sdW1uID0gc3R5bGVkLmRpdmBcbiAgd2lkdGg6IGNhbGMoJHt1aUtpdERlc2lnblRva2Vucy5jb25zdHJhaW50MTZ9IC8gMik7XG5gO1xuZXhwb3J0IGNvbnN0IENvbnRhaW5lckNvbHVtbldpZGUgPSBzdHlsZWQuZGl2YFxuICB3aWR0aDogJHt1aUtpdERlc2lnblRva2Vucy5jb25zdHJhaW50MTV9O1xuYDtcbiJdfQ== */"));
|
|
16
|
+
const ContainerColumn = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
17
|
+
target: "e1pnp02z1"
|
|
18
|
+
} : {
|
|
19
|
+
target: "e1pnp02z1",
|
|
20
|
+
label: "ContainerColumn"
|
|
21
|
+
})("width:calc(", designTokens.constraint16, " / 2);" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYXlDIiwiZmlsZSI6InB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBkZXNpZ25Ub2tlbnMgYXMgdWlLaXREZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcblxuZXhwb3J0IGNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgXG4gIHdpZHRoOiAxMDAlO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgZGlzcGxheTogZmxleDtcbiAgcGFkZGluZzogJHt1aUtpdERlc2lnblRva2Vucy5zcGFjaW5nWGx9IDA7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgQ29udGFpbmVyQ29sdW1uID0gc3R5bGVkLmRpdmBcbiAgd2lkdGg6IGNhbGMoJHt1aUtpdERlc2lnblRva2Vucy5jb25zdHJhaW50MTZ9IC8gMik7XG5gO1xuZXhwb3J0IGNvbnN0IENvbnRhaW5lckNvbHVtbldpZGUgPSBzdHlsZWQuZGl2YFxuICB3aWR0aDogJHt1aUtpdERlc2lnblRva2Vucy5jb25zdHJhaW50MTV9O1xuYDtcbiJdfQ== */"));
|
|
22
|
+
const ContainerColumnWide = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
23
|
+
target: "e1pnp02z0"
|
|
24
|
+
} : {
|
|
25
|
+
target: "e1pnp02z0",
|
|
26
|
+
label: "ContainerColumnWide"
|
|
27
|
+
})("width:", designTokens.constraint15, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0I2QyIsImZpbGUiOiJwdWJsaWMtcGFnZS1sYXlvdXQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgZGVzaWduVG9rZW5zIGFzIHVpS2l0RGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvZGVzaWduLXN5c3RlbSc7XG5cbmV4cG9ydCBjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YFxuICB3aWR0aDogMTAwJTtcbiAgbWluLWhlaWdodDogMTAwdmg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIHBhZGRpbmc6ICR7dWlLaXREZXNpZ25Ub2tlbnMuc3BhY2luZ1hsfSAwO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgYmFja2dyb3VuZC1zaXplOiBjb3ZlcjtcbiAgYmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuYDtcblxuZXhwb3J0IGNvbnN0IENvbnRhaW5lckNvbHVtbiA9IHN0eWxlZC5kaXZgXG4gIHdpZHRoOiBjYWxjKCR7dWlLaXREZXNpZ25Ub2tlbnMuY29uc3RyYWludDE2fSAvIDIpO1xuYDtcbmV4cG9ydCBjb25zdCBDb250YWluZXJDb2x1bW5XaWRlID0gc3R5bGVkLmRpdmBcbiAgd2lkdGg6ICR7dWlLaXREZXNpZ25Ub2tlbnMuY29uc3RyYWludDE1fTtcbmA7XG4iXX0= */"));
|
|
28
|
+
|
|
29
|
+
const _excluded = ["contentScale"],
|
|
30
|
+
_excluded2 = ["contentScale"];
|
|
31
|
+
const year = new Date().getUTCFullYear();
|
|
32
|
+
const PublicPageLayoutContent = _ref => {
|
|
33
|
+
let _ref$contentScale = _ref.contentScale,
|
|
34
|
+
contentScale = _ref$contentScale === void 0 ? 'normal' : _ref$contentScale,
|
|
35
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
if (contentScale === 'wide') {
|
|
37
|
+
return jsx(ContainerColumnWide, {
|
|
38
|
+
children: props.children
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return jsx(ContainerColumn, {
|
|
42
|
+
children: props.children
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const PublicPageLayout = _ref2 => {
|
|
46
|
+
let _ref2$contentScale = _ref2.contentScale,
|
|
47
|
+
contentScale = _ref2$contentScale === void 0 ? 'normal' : _ref2$contentScale,
|
|
48
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
49
|
+
return jsx(Container, {
|
|
50
|
+
children: jsxs(Spacings.Stack, {
|
|
51
|
+
scale: "xl",
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
children: [jsx(ContainerColumn, {
|
|
54
|
+
children: jsx(Spacings.Inline, {
|
|
55
|
+
justifyContent: "center",
|
|
56
|
+
children: jsx("img", {
|
|
57
|
+
src: CommercetoolsLogoSmallSvg,
|
|
58
|
+
alt: "commercetools logo"
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
}), props.welcomeMessage && jsx(ContainerColumn, {
|
|
62
|
+
children: jsx(Text.Headline, {
|
|
63
|
+
as: "h2",
|
|
64
|
+
children: jsx("div", {
|
|
65
|
+
css: /*#__PURE__*/css("color:", designTokens.colorSolid, ";text-align:center;" + (process.env.NODE_ENV === "production" ? "" : ";label:PublicPageLayout;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInB1YmxpYy1wYWdlLWxheW91dC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0V3QiIsImZpbGUiOiJwdWJsaWMtcGFnZS1sYXlvdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRkMsIFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCBDb21tZXJjZXRvb2xzTG9nb1NtYWxsU3ZnIGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL2Fzc2V0cy9sb2dvcy9jb21tZXJjZXRvb2xzX2xvZ29fc21hbGwuc3ZnJztcbmltcG9ydCB7IGRlc2lnblRva2VucyBhcyB1aUtpdERlc2lnblRva2VucyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L2Rlc2lnbi1zeXN0ZW0nO1xuaW1wb3J0IFNwYWNpbmdzIGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L3NwYWNpbmdzJztcbmltcG9ydCBUZXh0IGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L3RleHQnO1xuaW1wb3J0IHtcbiAgQ29udGFpbmVyLFxuICBDb250YWluZXJDb2x1bW4sXG4gIENvbnRhaW5lckNvbHVtbldpZGUsXG59IGZyb20gJy4vcHVibGljLXBhZ2UtbGF5b3V0LnN0eWxlcyc7XG5cbmNvbnN0IHllYXIgPSBuZXcgRGF0ZSgpLmdldFVUQ0Z1bGxZZWFyKCk7XG5cbnR5cGUgVFByb3BzID0ge1xuICAvKipcbiAgICogVGhlIHRleHQgdG8gYmUgZGlzcGxheWVkIGJlbG93IHRoZSBjb21tZXJjZXRvb2xzIGxvZ28uXG4gICAqL1xuICB3ZWxjb21lTWVzc2FnZT86IHN0cmluZztcbiAgLyoqXG4gICAqIFJlbmRlcnMgYSBub2RlIGJlbG93IHRoZSBjb250ZW50LiBUaGlzIGlzIHVzdWFsbHkgdGhlIHBsYWNlIGZvciByZW5kZXJpbmdcbiAgICogbGlua3MgdG8gdGhlIHByaXZhY3ksIHRlcm1zLCBldGMgcGFnZXMuXG4gICAqL1xuICBsZWdhbE1lc3NhZ2U/OiBSZWFjdE5vZGU7XG4gIC8qKlxuICAgKiBUaGUgYG5vcm1hbGAgc2NhbGUgdXNlcyBhbiBob3Jpem9udGFsIGNvbnRyYWludCBzaXplIG9mIGA4YCAoMzg0cHgpLlxuICAgKiBUaGUgYHdpZGVgIHNjYWxlIHVzZXMgYW4gaG9yaXpvbnRhbCBjb250cmFpbnQgc2l6ZSBvZiBgMTVgICg3NDJweCkuXG4gICAqIFRoZSBgd2lkZWAgc2NhbGUgY2FuIGJlIHVzZWQgZm9yIHJlbmRlcmluZyB0aGUgY29udGVudCBpbiAyIGNvbHVtbnMuXG4gICAqL1xuICBjb250ZW50U2NhbGU/OiAnbm9ybWFsJyB8ICd3aWRlJztcbiAgLyoqXG4gICAqIElmIGBjb250ZW50U2NhbGVgIGlzIGBub3JtYWxgLCB0aGUgY29udGVudCBpcyByZW5kZXJlZCBpbiBvbmUgY29sdW1uLlxuICAgKiBJZiBgY29udGVudFNjYWxlYCBpcyBgd2lkZWAsIHlvdSBuZWVkIHRvIHBhc3MgMiBjaGlsZHJlbiBhcyB0aGV5IHdpbGwgYmUgZGlzcGxheWVkXG4gICAqIGluIHR3byBjb2x1bW5zLlxuICAgKi9cbiAgY2hpbGRyZW46IFJlYWN0Tm9kZTtcbn07XG5cbmNvbnN0IFB1YmxpY1BhZ2VMYXlvdXRDb250ZW50OiBGQzxUUHJvcHM+ID0gKHtcbiAgY29udGVudFNjYWxlID0gJ25vcm1hbCcsXG4gIC4uLnByb3BzXG59KSA9PiB7XG4gIGlmIChjb250ZW50U2NhbGUgPT09ICd3aWRlJykge1xuICAgIHJldHVybiA8Q29udGFpbmVyQ29sdW1uV2lkZT57cHJvcHMuY2hpbGRyZW59PC9Db250YWluZXJDb2x1bW5XaWRlPjtcbiAgfVxuICByZXR1cm4gPENvbnRhaW5lckNvbHVtbj57cHJvcHMuY2hpbGRyZW59PC9Db250YWluZXJDb2x1bW4+O1xufTtcblxuY29uc3QgUHVibGljUGFnZUxheW91dDogRkM8VFByb3BzPiA9ICh7XG4gIGNvbnRlbnRTY2FsZSA9ICdub3JtYWwnLFxuICAuLi5wcm9wc1xufSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxDb250YWluZXI+XG4gICAgICA8U3BhY2luZ3MuU3RhY2sgc2NhbGU9XCJ4bFwiIGFsaWduSXRlbXM9XCJjZW50ZXJcIj5cbiAgICAgICAgPENvbnRhaW5lckNvbHVtbj5cbiAgICAgICAgICA8U3BhY2luZ3MuSW5saW5lIGp1c3RpZnlDb250ZW50PVwiY2VudGVyXCI+XG4gICAgICAgICAgICA8aW1nIHNyYz17Q29tbWVyY2V0b29sc0xvZ29TbWFsbFN2Z30gYWx0PVwiY29tbWVyY2V0b29scyBsb2dvXCIgLz5cbiAgICAgICAgICA8L1NwYWNpbmdzLklubGluZT5cbiAgICAgICAgPC9Db250YWluZXJDb2x1bW4+XG4gICAgICAgIHtwcm9wcy53ZWxjb21lTWVzc2FnZSAmJiAoXG4gICAgICAgICAgPENvbnRhaW5lckNvbHVtbj5cbiAgICAgICAgICAgIDxUZXh0LkhlYWRsaW5lIGFzPVwiaDJcIj5cbiAgICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgIGNzcz17Y3NzYFxuICAgICAgICAgICAgICAgICAgY29sb3I6ICR7dWlLaXREZXNpZ25Ub2tlbnMuY29sb3JTb2xpZH07XG4gICAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgICAgICAgYH1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtwcm9wcy53ZWxjb21lTWVzc2FnZX1cbiAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L1RleHQuSGVhZGxpbmU+XG4gICAgICAgICAgPC9Db250YWluZXJDb2x1bW4+XG4gICAgICAgICl9XG4gICAgICAgIDxTcGFjaW5ncy5TdGFjayBzY2FsZT1cInhsXCI+XG4gICAgICAgICAgPFB1YmxpY1BhZ2VMYXlvdXRDb250ZW50IGNvbnRlbnRTY2FsZT17Y29udGVudFNjYWxlfT5cbiAgICAgICAgICAgIHtwcm9wcy5jaGlsZHJlbn1cbiAgICAgICAgICA8L1B1YmxpY1BhZ2VMYXlvdXRDb250ZW50PlxuICAgICAgICAgIDxQdWJsaWNQYWdlTGF5b3V0Q29udGVudCBjb250ZW50U2NhbGU9e2NvbnRlbnRTY2FsZX0+XG4gICAgICAgICAgICA8U3BhY2luZ3MuU3RhY2tcbiAgICAgICAgICAgICAgc2NhbGU9XCJ4c1wiXG4gICAgICAgICAgICAgIGFsaWduSXRlbXM9e2NvbnRlbnRTY2FsZSA9PT0gJ3dpZGUnID8gJ2NlbnRlcicgOiAnc3RyZXRjaCd9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIHtwcm9wcy5sZWdhbE1lc3NhZ2UgJiYgKFxuICAgICAgICAgICAgICAgIDxUZXh0LkRldGFpbCB0b25lPVwic2Vjb25kYXJ5XCI+e3Byb3BzLmxlZ2FsTWVzc2FnZX08L1RleHQuRGV0YWlsPlxuICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgPFRleHQuRGV0YWlsIHRvbmU9XCJzZWNvbmRhcnlcIj57YCR7eWVhcn0gwqkgY29tbWVyY2V0b29sc2B9PC9UZXh0LkRldGFpbD5cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgPC9TcGFjaW5ncy5TdGFjaz5cbiAgICAgICAgICA8L1B1YmxpY1BhZ2VMYXlvdXRDb250ZW50PlxuICAgICAgICA8L1NwYWNpbmdzLlN0YWNrPlxuICAgICAgPC9TcGFjaW5ncy5TdGFjaz5cbiAgICA8L0NvbnRhaW5lcj5cbiAgKTtcbn07XG5QdWJsaWNQYWdlTGF5b3V0LmRpc3BsYXlOYW1lID0gJ1B1YmxpY1BhZ2VMYXlvdXQnO1xuXG5leHBvcnQgZGVmYXVsdCBQdWJsaWNQYWdlTGF5b3V0O1xuIl19 */"),
|
|
66
|
+
children: props.welcomeMessage
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
}), jsxs(Spacings.Stack, {
|
|
70
|
+
scale: "xl",
|
|
71
|
+
children: [jsx(PublicPageLayoutContent, {
|
|
72
|
+
contentScale: contentScale,
|
|
73
|
+
children: props.children
|
|
74
|
+
}), jsx(PublicPageLayoutContent, {
|
|
75
|
+
contentScale: contentScale,
|
|
76
|
+
children: jsxs(Spacings.Stack, {
|
|
77
|
+
scale: "xs",
|
|
78
|
+
alignItems: contentScale === 'wide' ? 'center' : 'stretch',
|
|
79
|
+
children: [props.legalMessage && jsx(Text.Detail, {
|
|
80
|
+
tone: "secondary",
|
|
81
|
+
children: props.legalMessage
|
|
82
|
+
}), jsx(Text.Detail, {
|
|
83
|
+
tone: "secondary",
|
|
84
|
+
children: `${year} © commercetools`
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
})]
|
|
88
|
+
})]
|
|
89
|
+
})
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
PublicPageLayout.displayName = 'PublicPageLayout';
|
|
93
|
+
|
|
94
|
+
export { PublicPageLayout as default };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
4
|
+
var react = require('@emotion/react');
|
|
5
|
+
var CommercetoolsLogoSmallSvg = require('@commercetools-frontend/assets/logos/commercetools_logo_small.svg');
|
|
6
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
7
|
+
var Spacings = require('@commercetools-uikit/spacings');
|
|
8
|
+
var Text = require('@commercetools-uikit/text');
|
|
9
|
+
var _styled = require('@emotion/styled/base');
|
|
10
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
11
|
+
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var CommercetoolsLogoSmallSvg__default = /*#__PURE__*/_interopDefault(CommercetoolsLogoSmallSvg);
|
|
15
|
+
var Spacings__default = /*#__PURE__*/_interopDefault(Spacings);
|
|
16
|
+
var Text__default = /*#__PURE__*/_interopDefault(Text);
|
|
17
|
+
var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
18
|
+
|
|
19
|
+
const Container = /*#__PURE__*/_styled__default["default"]("div", {
|
|
20
|
+
target: "e1pnp02z2"
|
|
21
|
+
} )("width:100%;min-height:100vh;display:flex;padding:", designSystem.designTokens.spacingXl, " 0;justify-content:center;background-size:cover;background-position:center;" + ("" ));
|
|
22
|
+
const ContainerColumn = /*#__PURE__*/_styled__default["default"]("div", {
|
|
23
|
+
target: "e1pnp02z1"
|
|
24
|
+
} )("width:calc(", designSystem.designTokens.constraint16, " / 2);" + ("" ));
|
|
25
|
+
const ContainerColumnWide = /*#__PURE__*/_styled__default["default"]("div", {
|
|
26
|
+
target: "e1pnp02z0"
|
|
27
|
+
} )("width:", designSystem.designTokens.constraint15, ";" + ("" ));
|
|
28
|
+
|
|
29
|
+
const _excluded = ["contentScale"],
|
|
30
|
+
_excluded2 = ["contentScale"];
|
|
31
|
+
const year = new Date().getUTCFullYear();
|
|
32
|
+
const PublicPageLayoutContent = _ref => {
|
|
33
|
+
let _ref$contentScale = _ref.contentScale,
|
|
34
|
+
contentScale = _ref$contentScale === void 0 ? 'normal' : _ref$contentScale,
|
|
35
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
if (contentScale === 'wide') {
|
|
37
|
+
return jsxRuntime.jsx(ContainerColumnWide, {
|
|
38
|
+
children: props.children
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return jsxRuntime.jsx(ContainerColumn, {
|
|
42
|
+
children: props.children
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const PublicPageLayout = _ref2 => {
|
|
46
|
+
let _ref2$contentScale = _ref2.contentScale,
|
|
47
|
+
contentScale = _ref2$contentScale === void 0 ? 'normal' : _ref2$contentScale,
|
|
48
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
49
|
+
return jsxRuntime.jsx(Container, {
|
|
50
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
51
|
+
scale: "xl",
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
children: [jsxRuntime.jsx(ContainerColumn, {
|
|
54
|
+
children: jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
55
|
+
justifyContent: "center",
|
|
56
|
+
children: jsxRuntime.jsx("img", {
|
|
57
|
+
src: CommercetoolsLogoSmallSvg__default["default"],
|
|
58
|
+
alt: "commercetools logo"
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
}), props.welcomeMessage && jsxRuntime.jsx(ContainerColumn, {
|
|
62
|
+
children: jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
63
|
+
as: "h2",
|
|
64
|
+
children: jsxRuntime.jsx("div", {
|
|
65
|
+
css: /*#__PURE__*/react.css("color:", designSystem.designTokens.colorSolid, ";text-align:center;" + ("" ), "" ),
|
|
66
|
+
children: props.welcomeMessage
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
}), jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
70
|
+
scale: "xl",
|
|
71
|
+
children: [jsxRuntime.jsx(PublicPageLayoutContent, {
|
|
72
|
+
contentScale: contentScale,
|
|
73
|
+
children: props.children
|
|
74
|
+
}), jsxRuntime.jsx(PublicPageLayoutContent, {
|
|
75
|
+
contentScale: contentScale,
|
|
76
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
77
|
+
scale: "xs",
|
|
78
|
+
alignItems: contentScale === 'wide' ? 'center' : 'stretch',
|
|
79
|
+
children: [props.legalMessage && jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
80
|
+
tone: "secondary",
|
|
81
|
+
children: props.legalMessage
|
|
82
|
+
}), jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
83
|
+
tone: "secondary",
|
|
84
|
+
children: `${year} © commercetools`
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
})]
|
|
88
|
+
})]
|
|
89
|
+
})
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
PublicPageLayout.displayName = 'PublicPageLayout';
|
|
93
|
+
|
|
94
|
+
exports["default"] = PublicPageLayout;
|