@commercetools-frontend/application-components 22.30.3 → 22.32.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/dist/commercetools-frontend-application-components.cjs.dev.js +77 -88
- package/dist/commercetools-frontend-application-components.cjs.prod.js +72 -85
- package/dist/commercetools-frontend-application-components.esm.js +77 -87
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +30 -1
- package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +54 -1
- package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +21 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +30 -0
- package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +2 -1
- package/dist/declarations/src/components/internals/page-header.d.ts +3 -0
- package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +35 -3
- package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +51 -2
- package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +15 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +27 -1
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +9 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +12 -1
- package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +9 -0
- package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +6 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +9 -0
- package/dist/declarations/src/components/portals-container/portals-container.d.ts +29 -0
- package/dist/declarations/src/components/public-page-layout/public-page-layout.d.ts +17 -0
- package/dist/declarations/src/components/public-page-layout/public-page-layout.styles.d.ts +17 -0
- package/dist/declarations/src/components/tab-header/tab-header.d.ts +19 -0
- package/dist/declarations/src/types/generated/settings.d.ts +22 -0
- package/dist/public-page-layout-1d169d69.cjs.prod.js +121 -0
- package/dist/public-page-layout-68f434aa.esm.js +132 -0
- package/dist/public-page-layout-88c21ecd.cjs.dev.js +150 -0
- package/package.json +9 -9
- package/dist/public-page-layout-684509fb.esm.js +0 -108
- package/dist/public-page-layout-6cc4616e.cjs.prod.js +0 -106
- package/dist/public-page-layout-eae1f3c9.cjs.dev.js +0 -126
package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts
CHANGED
|
@@ -6,26 +6,77 @@ type MessageDescriptor = {
|
|
|
6
6
|
};
|
|
7
7
|
type Label = string | MessageDescriptor;
|
|
8
8
|
type FormDetailPageProps = {
|
|
9
|
+
/**
|
|
10
|
+
* The title of the page.
|
|
11
|
+
*/
|
|
9
12
|
title?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The subtitle of the page.
|
|
15
|
+
*/
|
|
10
16
|
subtitle?: string | ReactElement;
|
|
17
|
+
/**
|
|
18
|
+
* Replaces the title/subtitle row with a custom one (for special use cases).
|
|
19
|
+
*/
|
|
11
20
|
customTitleRow?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
23
|
+
*/
|
|
12
24
|
customViewLocatorCode?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Any React node displayed as the content within the page.
|
|
27
|
+
*/
|
|
13
28
|
children: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* A return route path label.
|
|
31
|
+
*/
|
|
14
32
|
previousPathLabel?: string | MessageDescriptor;
|
|
33
|
+
/**
|
|
34
|
+
* Function called when back button is pressed.
|
|
35
|
+
*/
|
|
15
36
|
onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether the primary button is deactivated or not.
|
|
39
|
+
*/
|
|
16
40
|
isPrimaryButtonDisabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether the secondary button is deactivated or not.
|
|
43
|
+
*/
|
|
17
44
|
isSecondaryButtonDisabled?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Use this prop to pass `data-` attributes to the primary button
|
|
47
|
+
*/
|
|
18
48
|
dataAttributesPrimaryButton?: {
|
|
19
49
|
[key: string]: string;
|
|
20
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Use this prop to pass `data-` attributes to the secondary button.
|
|
53
|
+
*/
|
|
21
54
|
dataAttributesSecondaryButton?: {
|
|
22
55
|
[key: string]: string;
|
|
23
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* `Save` | The label for the primary button as a string, or as an Intl message.
|
|
59
|
+
*/
|
|
24
60
|
labelPrimaryButton?: Label;
|
|
61
|
+
/**
|
|
62
|
+
* `Cancel` | The label for the secondary button as a string, or as an Intl message.
|
|
63
|
+
*/
|
|
25
64
|
labelSecondaryButton?: Label;
|
|
65
|
+
/**
|
|
66
|
+
* Called when the primary button is clicked.
|
|
67
|
+
*/
|
|
26
68
|
onPrimaryButtonClick: (event: SyntheticEvent) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Called when the secondary button is clicked.
|
|
71
|
+
*/
|
|
27
72
|
onSecondaryButtonClick: (event: SyntheticEvent) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Hides the form controls.
|
|
75
|
+
*/
|
|
28
76
|
hideControls: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* The Icon for the secondary button label
|
|
79
|
+
*/
|
|
29
80
|
iconLeftSecondaryButton?: ReactElement;
|
|
30
81
|
};
|
|
31
82
|
declare const FormDetailPage: {
|
|
@@ -87,7 +138,9 @@ declare const FormDetailPage: {
|
|
|
87
138
|
defaultMessage: string;
|
|
88
139
|
};
|
|
89
140
|
close: {
|
|
90
|
-
id: string;
|
|
141
|
+
id: string; /**
|
|
142
|
+
* Any React node displayed as the content within the page.
|
|
143
|
+
*/
|
|
91
144
|
defaultMessage: string;
|
|
92
145
|
};
|
|
93
146
|
edit: {
|
package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts
CHANGED
|
@@ -6,12 +6,33 @@ type MessageDescriptor = {
|
|
|
6
6
|
values?: Record<string, ReactNode>;
|
|
7
7
|
};
|
|
8
8
|
type InfoDetailPageProps = {
|
|
9
|
+
/**
|
|
10
|
+
* The title of the page.
|
|
11
|
+
*/
|
|
9
12
|
title?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The subtitle of the page.
|
|
15
|
+
*/
|
|
10
16
|
subtitle?: string | ReactElement;
|
|
17
|
+
/**
|
|
18
|
+
* Replaces the title/subtitle row with a custom one (for special use cases)
|
|
19
|
+
*/
|
|
11
20
|
customTitleRow?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Any React node displayed as the content within the page.
|
|
23
|
+
*/
|
|
12
24
|
children: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* A return route path label.
|
|
27
|
+
*/
|
|
13
28
|
previousPathLabel?: string | MessageDescriptor;
|
|
29
|
+
/**
|
|
30
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
31
|
+
*/
|
|
14
32
|
customViewLocatorCode?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Function called when back button is pressed.
|
|
35
|
+
*/
|
|
15
36
|
onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
16
37
|
};
|
|
17
38
|
declare const InfoDetailPage: {
|
package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts
CHANGED
|
@@ -7,15 +7,45 @@ type MessageDescriptor = {
|
|
|
7
7
|
values?: Record<string, ReactNode>;
|
|
8
8
|
};
|
|
9
9
|
type TTabularDetailPageProps = {
|
|
10
|
+
/**
|
|
11
|
+
* The title of the page.
|
|
12
|
+
*/
|
|
10
13
|
title?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The subtitle of the page.
|
|
16
|
+
*/
|
|
11
17
|
subtitle?: string | ReactElement;
|
|
18
|
+
/**
|
|
19
|
+
* Replaces the title/subtitle row with a custom one (for special use cases)
|
|
20
|
+
*/
|
|
12
21
|
customTitleRow?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Any React node displayed as the tab panel.
|
|
24
|
+
*/
|
|
13
25
|
children: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* A composition of tab components.
|
|
28
|
+
*/
|
|
14
29
|
tabControls: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Any React node to be rendered as the form controls
|
|
32
|
+
*/
|
|
15
33
|
formControls?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Determines if the form controls should be rendered.
|
|
36
|
+
*/
|
|
16
37
|
hideControls: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* These codes are used to configure which Custom Views are available for every tab.
|
|
40
|
+
*/
|
|
17
41
|
customViewLocatorCodes?: Record<string, LocationDescriptor>;
|
|
42
|
+
/**
|
|
43
|
+
* A return route path label.
|
|
44
|
+
*/
|
|
18
45
|
previousPathLabel?: string | MessageDescriptor;
|
|
46
|
+
/**
|
|
47
|
+
* Function called when back button is pressed.
|
|
48
|
+
*/
|
|
19
49
|
onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
20
50
|
};
|
|
21
51
|
declare const TabularDetailPage: {
|
|
@@ -26,6 +26,7 @@ export type TFormDialogProps = {
|
|
|
26
26
|
};
|
|
27
27
|
getParentSelector?: () => HTMLElement;
|
|
28
28
|
iconLeftSecondaryButton?: ReactElement;
|
|
29
|
+
footerContent?: ReactNode;
|
|
29
30
|
};
|
|
30
31
|
declare const FormDialog: {
|
|
31
32
|
(props: TFormDialogProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactElement, SyntheticEvent } from 'react';
|
|
1
|
+
import type { ReactElement, SyntheticEvent, ReactNode } from 'react';
|
|
2
2
|
type MessageDescriptor = {
|
|
3
3
|
id: string;
|
|
4
4
|
description?: string | object;
|
|
@@ -19,6 +19,7 @@ type Props = {
|
|
|
19
19
|
};
|
|
20
20
|
children?: never;
|
|
21
21
|
iconLeftSecondaryButton?: ReactElement;
|
|
22
|
+
footerContent?: ReactNode;
|
|
22
23
|
};
|
|
23
24
|
declare const DialogFooter: {
|
|
24
25
|
(props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -2,6 +2,9 @@ import type { ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
title: string;
|
|
4
4
|
subtitle?: string | ReactElement;
|
|
5
|
+
/**
|
|
6
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
7
|
+
*/
|
|
5
8
|
customViewLocatorCode?: string;
|
|
6
9
|
children?: ReactNode;
|
|
7
10
|
};
|
package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
type CustomFormMainPageProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The title of the page.
|
|
5
|
+
*/
|
|
3
6
|
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The subtitle of the page.
|
|
9
|
+
*/
|
|
4
10
|
subtitle?: string | ReactElement;
|
|
11
|
+
/**
|
|
12
|
+
* Replaces the title/subtitle row with a custom one (for special use cases).
|
|
13
|
+
*/
|
|
5
14
|
customTitleRow?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
17
|
+
*/
|
|
6
18
|
customViewLocatorCode?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Any React node displayed as the content within the page.
|
|
21
|
+
*/
|
|
7
22
|
children: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Any React node to be rendered as the form controls.
|
|
25
|
+
*/
|
|
8
26
|
formControls?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Determines if the form controls should be rendered.
|
|
29
|
+
*/
|
|
9
30
|
hideControls?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Determines whether the divider between header and content should be hidden.
|
|
33
|
+
* (default: false)
|
|
34
|
+
*/
|
|
10
35
|
hideDivider?: boolean;
|
|
11
36
|
};
|
|
12
37
|
declare const CustomFormMainPage: {
|
|
@@ -154,11 +179,15 @@ declare const CustomFormMainPage: {
|
|
|
154
179
|
};
|
|
155
180
|
add: {
|
|
156
181
|
id: string;
|
|
157
|
-
defaultMessage: string;
|
|
182
|
+
defaultMessage: string; /**
|
|
183
|
+
* The subtitle of the page.
|
|
184
|
+
*/
|
|
158
185
|
};
|
|
159
186
|
remove: {
|
|
160
187
|
id: string;
|
|
161
|
-
defaultMessage: string;
|
|
188
|
+
defaultMessage: string; /**
|
|
189
|
+
* Replaces the title/subtitle row with a custom one (for special use cases).
|
|
190
|
+
*/
|
|
162
191
|
};
|
|
163
192
|
close: {
|
|
164
193
|
id: string;
|
|
@@ -186,7 +215,10 @@ declare const CustomFormMainPage: {
|
|
|
186
215
|
};
|
|
187
216
|
inactive: {
|
|
188
217
|
id: string;
|
|
189
|
-
defaultMessage: string;
|
|
218
|
+
defaultMessage: string; /**
|
|
219
|
+
* Determines whether the divider between header and content should be hidden.
|
|
220
|
+
* (default: false)
|
|
221
|
+
*/
|
|
190
222
|
};
|
|
191
223
|
enable: {
|
|
192
224
|
id: string;
|
|
@@ -6,24 +6,69 @@ type MessageDescriptor = {
|
|
|
6
6
|
};
|
|
7
7
|
type Label = string | MessageDescriptor;
|
|
8
8
|
type FormMainPageProps = {
|
|
9
|
+
/**
|
|
10
|
+
* The title of the page.
|
|
11
|
+
*/
|
|
9
12
|
title?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The subtitle of the page.
|
|
15
|
+
*/
|
|
10
16
|
subtitle?: string | ReactElement;
|
|
17
|
+
/**
|
|
18
|
+
* Replaces the title/subtitle row with a custom one (for special use cases)
|
|
19
|
+
*/
|
|
11
20
|
customTitleRow?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Any React node displayed as the content within the page.
|
|
23
|
+
*/
|
|
12
24
|
children: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Determines if the form controls should be rendered.
|
|
27
|
+
*/
|
|
13
28
|
hideControls?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates whether the primary button is deactivated or not.
|
|
31
|
+
*/
|
|
14
32
|
isPrimaryButtonDisabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates whether the secondary button is deactivated or not.
|
|
35
|
+
*/
|
|
15
36
|
isSecondaryButtonDisabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Use this prop to pass `data-` attributes to the primary button
|
|
39
|
+
*/
|
|
16
40
|
dataAttributesPrimaryButton?: {
|
|
17
41
|
[key: string]: string;
|
|
18
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Use this prop to pass `data-` attributes to the secondary button.
|
|
45
|
+
*/
|
|
19
46
|
dataAttributesSecondaryButton?: {
|
|
20
47
|
[key: string]: string;
|
|
21
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* `Save` | The label for the primary button as a string, or as an Intl message.
|
|
51
|
+
*/
|
|
22
52
|
labelPrimaryButton?: Label;
|
|
53
|
+
/**
|
|
54
|
+
* `Cancel` | The label for the secondary button as a string, or as an Intl message.
|
|
55
|
+
*/
|
|
23
56
|
labelSecondaryButton?: Label;
|
|
57
|
+
/**
|
|
58
|
+
* The Icon for the secondary button label
|
|
59
|
+
*/
|
|
24
60
|
iconLeftSecondaryButton?: ReactElement;
|
|
61
|
+
/**
|
|
62
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
63
|
+
*/
|
|
25
64
|
customViewLocatorCode?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Called when the primary button is clicked.
|
|
67
|
+
*/
|
|
26
68
|
onPrimaryButtonClick: (event: SyntheticEvent) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Called when the secondary button is clicked.
|
|
71
|
+
*/
|
|
27
72
|
onSecondaryButtonClick: (event: SyntheticEvent) => void;
|
|
28
73
|
};
|
|
29
74
|
declare const FormMainPage: {
|
|
@@ -62,7 +107,9 @@ declare const FormMainPage: {
|
|
|
62
107
|
};
|
|
63
108
|
save: {
|
|
64
109
|
id: string;
|
|
65
|
-
defaultMessage: string;
|
|
110
|
+
defaultMessage: string; /**
|
|
111
|
+
* The title of the page.
|
|
112
|
+
*/
|
|
66
113
|
};
|
|
67
114
|
update: {
|
|
68
115
|
id: string;
|
|
@@ -81,7 +128,9 @@ declare const FormMainPage: {
|
|
|
81
128
|
defaultMessage: string;
|
|
82
129
|
};
|
|
83
130
|
remove: {
|
|
84
|
-
id: string;
|
|
131
|
+
id: string; /**
|
|
132
|
+
* Determines if the form controls should be rendered.
|
|
133
|
+
*/
|
|
85
134
|
defaultMessage: string;
|
|
86
135
|
};
|
|
87
136
|
close: {
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
type InfoMainPageProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The title of the page.
|
|
5
|
+
*/
|
|
3
6
|
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The subtitle of the page.
|
|
9
|
+
*/
|
|
4
10
|
subtitle?: string | ReactElement;
|
|
11
|
+
/**
|
|
12
|
+
* Replaces the title/subtitle row with a custom one (for special use cases).
|
|
13
|
+
*/
|
|
5
14
|
customTitleRow?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
17
|
+
*/
|
|
6
18
|
customViewLocatorCode?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Any React node displayed as the content within the page.
|
|
21
|
+
*/
|
|
7
22
|
children: ReactNode;
|
|
8
23
|
};
|
|
9
24
|
declare const InfoMainPage: {
|
package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts
CHANGED
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import type { LocationDescriptor } from 'history';
|
|
3
3
|
type TTabularMainPageProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The title of the page.
|
|
6
|
+
*/
|
|
4
7
|
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The subtitle of the page.
|
|
10
|
+
*/
|
|
5
11
|
subtitle?: string | ReactElement;
|
|
12
|
+
/**
|
|
13
|
+
* Replaces the title/subtitle row with a custom one (for special use cases)
|
|
14
|
+
*/
|
|
6
15
|
customTitleRow?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Any React node displayed as the tab panel.
|
|
18
|
+
*/
|
|
7
19
|
children: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* A composition of tab components.
|
|
22
|
+
*/
|
|
8
23
|
tabControls: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Any React node to be rendered as the form controls.
|
|
26
|
+
*/
|
|
9
27
|
formControls?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Determines if the form controls should be rendered.
|
|
30
|
+
*/
|
|
10
31
|
hideControls: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* These codes are used to configure which Custom Views are available for every tab.
|
|
34
|
+
*/
|
|
11
35
|
customViewLocatorCodes?: Record<string, LocationDescriptor>;
|
|
12
36
|
};
|
|
13
37
|
declare const TabularMainPage: {
|
|
@@ -160,7 +184,9 @@ declare const TabularMainPage: {
|
|
|
160
184
|
remove: {
|
|
161
185
|
id: string;
|
|
162
186
|
defaultMessage: string;
|
|
163
|
-
};
|
|
187
|
+
}; /**
|
|
188
|
+
* The title of the page.
|
|
189
|
+
*/
|
|
164
190
|
close: {
|
|
165
191
|
id: string;
|
|
166
192
|
defaultMessage: string;
|
|
@@ -7,13 +7,22 @@ type MessageDescriptor = {
|
|
|
7
7
|
};
|
|
8
8
|
type Label = string | MessageDescriptor;
|
|
9
9
|
type Props = {
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
12
|
+
*/
|
|
10
13
|
level?: number;
|
|
11
14
|
title: string;
|
|
12
15
|
isOpen: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
18
|
+
*/
|
|
13
19
|
customViewLocatorCode?: string;
|
|
14
20
|
onClose?: (event: SyntheticEvent) => void;
|
|
15
21
|
children: ReactNode;
|
|
16
22
|
zIndex?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
25
|
+
*/
|
|
17
26
|
baseZIndex?: number;
|
|
18
27
|
getParentSelector?: () => HTMLElement;
|
|
19
28
|
shouldDelayOnClose?: boolean;
|
|
@@ -7,13 +7,22 @@ type MessageDescriptor = {
|
|
|
7
7
|
};
|
|
8
8
|
type Label = string | MessageDescriptor;
|
|
9
9
|
type Props = {
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
12
|
+
*/
|
|
10
13
|
level?: number;
|
|
11
14
|
title: string;
|
|
12
15
|
isOpen: boolean;
|
|
13
16
|
onClose?: (event: SyntheticEvent) => void;
|
|
17
|
+
/**
|
|
18
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
19
|
+
*/
|
|
14
20
|
customViewLocatorCode?: string;
|
|
15
21
|
children: ReactNode;
|
|
16
22
|
zIndex?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
25
|
+
*/
|
|
17
26
|
baseZIndex?: number;
|
|
18
27
|
getParentSelector?: () => HTMLElement;
|
|
19
28
|
shouldDelayOnClose?: boolean;
|
|
@@ -54,7 +63,9 @@ declare const FormModalPage: {
|
|
|
54
63
|
defaultMessage: string;
|
|
55
64
|
};
|
|
56
65
|
save: {
|
|
57
|
-
id: string;
|
|
66
|
+
id: string; /**
|
|
67
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
68
|
+
*/
|
|
58
69
|
defaultMessage: string;
|
|
59
70
|
};
|
|
60
71
|
update: {
|
|
@@ -7,13 +7,22 @@ type MessageDescriptor = {
|
|
|
7
7
|
};
|
|
8
8
|
type Label = string | MessageDescriptor;
|
|
9
9
|
type Props = {
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
12
|
+
*/
|
|
10
13
|
level?: number;
|
|
11
14
|
title: string;
|
|
12
15
|
isOpen: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* This code is used to configure which Custom Views are available for this page.
|
|
18
|
+
*/
|
|
13
19
|
customViewLocatorCode?: string;
|
|
14
20
|
onClose?: (event: SyntheticEvent) => void;
|
|
15
21
|
children: ReactNode;
|
|
16
22
|
zIndex?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
25
|
+
*/
|
|
17
26
|
baseZIndex?: number;
|
|
18
27
|
getParentSelector?: () => HTMLElement;
|
|
19
28
|
shouldDelayOnClose?: boolean;
|
|
@@ -9,12 +9,18 @@ type MessageDescriptor = {
|
|
|
9
9
|
type Label = string | MessageDescriptor;
|
|
10
10
|
export type TModalPageSize = 10 | 20 | 30 | 'scale';
|
|
11
11
|
type Props = {
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
14
|
+
*/
|
|
12
15
|
level?: number;
|
|
13
16
|
title: string;
|
|
14
17
|
isOpen: boolean;
|
|
15
18
|
onClose?: (event: SyntheticEvent) => void;
|
|
16
19
|
children: ReactNode;
|
|
17
20
|
zIndex?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
23
|
+
*/
|
|
18
24
|
baseZIndex?: number;
|
|
19
25
|
getParentSelector: typeof getDefaultParentSelector;
|
|
20
26
|
shouldDelayOnClose: boolean;
|
package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts
CHANGED
|
@@ -8,13 +8,22 @@ type MessageDescriptor = {
|
|
|
8
8
|
};
|
|
9
9
|
type Label = string | MessageDescriptor;
|
|
10
10
|
type Props = {
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
13
|
+
*/
|
|
11
14
|
level?: number;
|
|
12
15
|
title: string;
|
|
13
16
|
isOpen: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* These codes are used to configure which Custom Views are available for every tab.
|
|
19
|
+
*/
|
|
14
20
|
customViewLocatorCodes?: Record<string, LocationDescriptor>;
|
|
15
21
|
onClose?: (event: SyntheticEvent) => void;
|
|
16
22
|
children: ReactNode;
|
|
17
23
|
zIndex?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
|
|
26
|
+
*/
|
|
18
27
|
baseZIndex?: number;
|
|
19
28
|
getParentSelector?: () => HTMLElement;
|
|
20
29
|
shouldDelayOnClose?: boolean;
|
|
@@ -4,11 +4,40 @@ type TLayoutRefs = {
|
|
|
4
4
|
notificationsPageRef: MutableRefObject<HTMLDivElement>;
|
|
5
5
|
};
|
|
6
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
|
+
*/
|
|
7
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
|
+
*/
|
|
8
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
|
+
*/
|
|
9
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
|
+
*/
|
|
10
31
|
containerSelectorToPreventScrollingOnOpen?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The `z-index` value to apply to the portal container..
|
|
34
|
+
* Defaults to `10000`.
|
|
35
|
+
*/
|
|
11
36
|
zIndex?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The base `z-index` value to apply to each modal container.
|
|
39
|
+
* Defaults to `1000`.
|
|
40
|
+
*/
|
|
12
41
|
baseModalZIndex?: number;
|
|
13
42
|
};
|
|
14
43
|
declare const PortalsContainer: import("react").ForwardRefExoticComponent<TPortalsContainerProps & import("react").RefAttributes<TLayoutRefs>>;
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
type TProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The text to be displayed below the commercetools logo.
|
|
5
|
+
*/
|
|
3
6
|
welcomeMessage?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Renders a node below the content. This is usually the place for rendering
|
|
9
|
+
* links to the privacy, terms, etc pages.
|
|
10
|
+
*/
|
|
4
11
|
legalMessage?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* The `normal` scale uses an horizontal contraint size of `8` (384px).
|
|
14
|
+
* The `wide` scale uses an horizontal contraint size of `15` (742px).
|
|
15
|
+
* The `wide` scale can be used for rendering the content in 2 columns.
|
|
16
|
+
*/
|
|
5
17
|
contentScale?: 'normal' | 'wide';
|
|
18
|
+
/**
|
|
19
|
+
* If `contentScale` is `normal`, the content is rendered in one column.
|
|
20
|
+
* If `contentScale` is `wide`, you need to pass 2 children as they will be displayed
|
|
21
|
+
* in two columns.
|
|
22
|
+
*/
|
|
6
23
|
children: ReactNode;
|
|
7
24
|
};
|
|
8
25
|
declare const PublicPageLayout: FC<TProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const ContainerColumn: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const ContainerColumnWide: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const GradientBackgroundContainer: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -2,12 +2,31 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
import type { LocationDescriptor } from 'history';
|
|
3
3
|
import { type MessageDescriptor } from 'react-intl';
|
|
4
4
|
export type TTabHeaderProps = {
|
|
5
|
+
/**
|
|
6
|
+
* A route path to redirect to when the tab is clicked.
|
|
7
|
+
*/
|
|
5
8
|
to: string | LocationDescriptor;
|
|
9
|
+
/**
|
|
10
|
+
* The label of the tab.
|
|
11
|
+
* * <br />
|
|
12
|
+
* Required if `intlMessage` is not provided.
|
|
13
|
+
*/
|
|
6
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
|
+
*/
|
|
7
20
|
intlMessage?: MessageDescriptor & {
|
|
8
21
|
values?: Record<string, ReactNode>;
|
|
9
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* If `true`, indicates that the element is in a disabled state.
|
|
25
|
+
*/
|
|
10
26
|
isDisabled: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, marks the tab as active if the link matches exactly the route.
|
|
29
|
+
*/
|
|
11
30
|
exactPathMatch: boolean;
|
|
12
31
|
};
|
|
13
32
|
export declare const TabHeader: {
|