@commercetools-frontend/application-components 21.12.0 → 21.14.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 +593 -422
- package/dist/commercetools-frontend-application-components.cjs.prod.js +421 -307
- package/dist/commercetools-frontend-application-components.esm.js +585 -417
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +4 -0
- package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +4 -0
- package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +2 -1
- package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +2 -1
- package/dist/declarations/src/components/internals/default-form-buttons.d.ts +6 -3
- package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +197 -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 +124 -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 +29 -0
- package/dist/declarations/src/components/main-pages/internals/main-page.styles.d.ts +13 -0
- package/dist/declarations/src/components/{tabular-main-page → main-pages/tabular-main-page}/index.d.ts +0 -0
- package/dist/declarations/src/components/{tabular-main-page → main-pages/tabular-main-page}/tabular-main-page.d.ts +4 -0
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +4 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +4 -0
- package/dist/declarations/src/index.d.ts +4 -1
- package/package.json +9 -8
|
@@ -67,6 +67,8 @@ declare const CustomFormDetailPage: {
|
|
|
67
67
|
};
|
|
68
68
|
FormSecondaryButton: {
|
|
69
69
|
(props: {
|
|
70
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
71
|
+
} & {
|
|
70
72
|
label: string | {
|
|
71
73
|
id: string;
|
|
72
74
|
description?: string | object | undefined;
|
|
@@ -81,6 +83,8 @@ declare const CustomFormDetailPage: {
|
|
|
81
83
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
82
84
|
displayName: string;
|
|
83
85
|
defaultProps: Pick<{
|
|
86
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
87
|
+
} & {
|
|
84
88
|
label: string | {
|
|
85
89
|
id: string;
|
|
86
90
|
description?: string | object | undefined;
|
package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ declare type FormDetailPageProps = {
|
|
|
25
25
|
onPrimaryButtonClick: (event: SyntheticEvent) => void;
|
|
26
26
|
onSecondaryButtonClick: (event: SyntheticEvent) => void;
|
|
27
27
|
hideControls: boolean;
|
|
28
|
+
iconLeftSecondaryButton?: ReactElement;
|
|
28
29
|
};
|
|
29
30
|
declare const FormDetailPage: {
|
|
30
31
|
(props: FormDetailPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare const TabularDetailPage: {
|
|
|
51
51
|
};
|
|
52
52
|
FormSecondaryButton: {
|
|
53
53
|
(props: {
|
|
54
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
55
|
+
} & {
|
|
54
56
|
label: string | {
|
|
55
57
|
id: string;
|
|
56
58
|
description?: string | object | undefined;
|
|
@@ -65,6 +67,8 @@ declare const TabularDetailPage: {
|
|
|
65
67
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
66
68
|
displayName: string;
|
|
67
69
|
defaultProps: Pick<{
|
|
70
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
71
|
+
} & {
|
|
68
72
|
label: string | {
|
|
69
73
|
id: string;
|
|
70
74
|
description?: string | object | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyntheticEvent, ReactNode } from 'react';
|
|
1
|
+
import type { SyntheticEvent, ReactNode, ReactElement } from 'react';
|
|
2
2
|
declare type MessageDescriptor = {
|
|
3
3
|
id: string;
|
|
4
4
|
description?: string | object;
|
|
@@ -24,6 +24,7 @@ declare type Props = {
|
|
|
24
24
|
[key: string]: string;
|
|
25
25
|
};
|
|
26
26
|
getParentSelector?: () => HTMLElement;
|
|
27
|
+
iconLeftSecondaryButton?: ReactElement;
|
|
27
28
|
};
|
|
28
29
|
declare const FormDialog: {
|
|
29
30
|
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyntheticEvent } from 'react';
|
|
1
|
+
import type { ReactElement, SyntheticEvent } from 'react';
|
|
2
2
|
declare type MessageDescriptor = {
|
|
3
3
|
id: string;
|
|
4
4
|
description?: string | object;
|
|
@@ -18,6 +18,7 @@ declare type Props = {
|
|
|
18
18
|
[key: string]: string;
|
|
19
19
|
};
|
|
20
20
|
children?: never;
|
|
21
|
+
iconLeftSecondaryButton?: ReactElement;
|
|
21
22
|
};
|
|
22
23
|
declare const DialogFooter: {
|
|
23
24
|
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SyntheticEvent } from 'react';
|
|
1
|
+
import type { ReactElement, SyntheticEvent } from 'react';
|
|
2
2
|
declare type MessageDescriptor = {
|
|
3
3
|
id: string;
|
|
4
4
|
description?: string | object;
|
|
@@ -19,10 +19,13 @@ declare const FormPrimaryButton: {
|
|
|
19
19
|
displayName: string;
|
|
20
20
|
defaultProps: Pick<Props, "label" | "isDisabled" | "dataAttributes">;
|
|
21
21
|
};
|
|
22
|
+
declare type SecondaryButtonProps = {
|
|
23
|
+
iconLeft?: ReactElement;
|
|
24
|
+
} & Props;
|
|
22
25
|
declare const FormSecondaryButton: {
|
|
23
|
-
(props:
|
|
26
|
+
(props: SecondaryButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
27
|
displayName: string;
|
|
25
|
-
defaultProps: Pick<
|
|
28
|
+
defaultProps: Pick<SecondaryButtonProps, "label" | "isDisabled" | "dataAttributes">;
|
|
26
29
|
};
|
|
27
30
|
declare const FormDeleteButton: {
|
|
28
31
|
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
declare type CustomFormMainPageProps = {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string | ReactElement;
|
|
5
|
+
customTitleRow?: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
formControls?: ReactNode;
|
|
8
|
+
hideControls?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const CustomFormMainPage: {
|
|
11
|
+
(props: CustomFormMainPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
defaultProps: Pick<CustomFormMainPageProps, "hideControls">;
|
|
14
|
+
PageHeaderTitle: {
|
|
15
|
+
(props: {
|
|
16
|
+
title: string;
|
|
17
|
+
titleSize: "big" | "small";
|
|
18
|
+
truncate: boolean;
|
|
19
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
20
|
+
children?: undefined;
|
|
21
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
defaultProps: Pick<{
|
|
24
|
+
title: string;
|
|
25
|
+
titleSize: "big" | "small";
|
|
26
|
+
truncate: boolean;
|
|
27
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
28
|
+
children?: undefined;
|
|
29
|
+
}, "truncate" | "titleSize">;
|
|
30
|
+
};
|
|
31
|
+
FormPrimaryButton: {
|
|
32
|
+
(props: {
|
|
33
|
+
label: string | {
|
|
34
|
+
id: string;
|
|
35
|
+
description?: string | object | undefined;
|
|
36
|
+
defaultMessage?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
39
|
+
isDisabled: boolean;
|
|
40
|
+
dataAttributes: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
children?: undefined;
|
|
44
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
defaultProps: Pick<{
|
|
47
|
+
label: string | {
|
|
48
|
+
id: string;
|
|
49
|
+
description?: string | object | undefined;
|
|
50
|
+
defaultMessage?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
53
|
+
isDisabled: boolean;
|
|
54
|
+
dataAttributes: {
|
|
55
|
+
[key: string]: string;
|
|
56
|
+
};
|
|
57
|
+
children?: undefined;
|
|
58
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
59
|
+
};
|
|
60
|
+
FormSecondaryButton: {
|
|
61
|
+
(props: {
|
|
62
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
63
|
+
} & {
|
|
64
|
+
label: string | {
|
|
65
|
+
id: string;
|
|
66
|
+
description?: string | object | undefined;
|
|
67
|
+
defaultMessage?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
70
|
+
isDisabled: boolean;
|
|
71
|
+
dataAttributes: {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
};
|
|
74
|
+
children?: undefined;
|
|
75
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
76
|
+
displayName: string;
|
|
77
|
+
defaultProps: Pick<{
|
|
78
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
label: string | {
|
|
81
|
+
id: string;
|
|
82
|
+
description?: string | object | undefined;
|
|
83
|
+
defaultMessage?: string | undefined;
|
|
84
|
+
};
|
|
85
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
86
|
+
isDisabled: boolean;
|
|
87
|
+
dataAttributes: {
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
};
|
|
90
|
+
children?: undefined;
|
|
91
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
92
|
+
};
|
|
93
|
+
FormDeleteButton: {
|
|
94
|
+
(props: {
|
|
95
|
+
label: string | {
|
|
96
|
+
id: string;
|
|
97
|
+
description?: string | object | undefined;
|
|
98
|
+
defaultMessage?: string | undefined;
|
|
99
|
+
};
|
|
100
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
101
|
+
isDisabled: boolean;
|
|
102
|
+
dataAttributes: {
|
|
103
|
+
[key: string]: string;
|
|
104
|
+
};
|
|
105
|
+
children?: undefined;
|
|
106
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
107
|
+
displayName: string;
|
|
108
|
+
defaultProps: Pick<{
|
|
109
|
+
label: string | {
|
|
110
|
+
id: string;
|
|
111
|
+
description?: string | object | undefined;
|
|
112
|
+
defaultMessage?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
115
|
+
isDisabled: boolean;
|
|
116
|
+
dataAttributes: {
|
|
117
|
+
[key: string]: string;
|
|
118
|
+
};
|
|
119
|
+
children?: undefined;
|
|
120
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
121
|
+
};
|
|
122
|
+
Intl: {
|
|
123
|
+
cancel: {
|
|
124
|
+
id: string;
|
|
125
|
+
defaultMessage: string;
|
|
126
|
+
};
|
|
127
|
+
revert: {
|
|
128
|
+
id: string;
|
|
129
|
+
defaultMessage: string;
|
|
130
|
+
};
|
|
131
|
+
confirm: {
|
|
132
|
+
id: string;
|
|
133
|
+
defaultMessage: string;
|
|
134
|
+
};
|
|
135
|
+
save: {
|
|
136
|
+
id: string;
|
|
137
|
+
defaultMessage: string;
|
|
138
|
+
};
|
|
139
|
+
update: {
|
|
140
|
+
id: string;
|
|
141
|
+
defaultMessage: string;
|
|
142
|
+
};
|
|
143
|
+
create: {
|
|
144
|
+
id: string;
|
|
145
|
+
defaultMessage: string;
|
|
146
|
+
};
|
|
147
|
+
delete: {
|
|
148
|
+
id: string;
|
|
149
|
+
defaultMessage: string;
|
|
150
|
+
};
|
|
151
|
+
add: {
|
|
152
|
+
id: string;
|
|
153
|
+
defaultMessage: string;
|
|
154
|
+
};
|
|
155
|
+
remove: {
|
|
156
|
+
id: string;
|
|
157
|
+
defaultMessage: string;
|
|
158
|
+
};
|
|
159
|
+
close: {
|
|
160
|
+
id: string;
|
|
161
|
+
defaultMessage: string;
|
|
162
|
+
};
|
|
163
|
+
edit: {
|
|
164
|
+
id: string;
|
|
165
|
+
defaultMessage: string;
|
|
166
|
+
};
|
|
167
|
+
open: {
|
|
168
|
+
id: string;
|
|
169
|
+
defaultMessage: string;
|
|
170
|
+
};
|
|
171
|
+
activate: {
|
|
172
|
+
id: string;
|
|
173
|
+
defaultMessage: string;
|
|
174
|
+
};
|
|
175
|
+
deactivate: {
|
|
176
|
+
id: string;
|
|
177
|
+
defaultMessage: string;
|
|
178
|
+
};
|
|
179
|
+
active: {
|
|
180
|
+
id: string;
|
|
181
|
+
defaultMessage: string;
|
|
182
|
+
};
|
|
183
|
+
inactive: {
|
|
184
|
+
id: string;
|
|
185
|
+
defaultMessage: string;
|
|
186
|
+
};
|
|
187
|
+
enable: {
|
|
188
|
+
id: string;
|
|
189
|
+
defaultMessage: string;
|
|
190
|
+
};
|
|
191
|
+
disable: {
|
|
192
|
+
id: string;
|
|
193
|
+
defaultMessage: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
export default CustomFormMainPage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './custom-form-main-page';
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
declare type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
declare type Label = string | MessageDescriptor;
|
|
8
|
+
declare type FormMainPageProps = {
|
|
9
|
+
title?: string;
|
|
10
|
+
subtitle?: string | ReactElement;
|
|
11
|
+
customTitleRow?: ReactNode;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
hideControls?: boolean;
|
|
14
|
+
isPrimaryButtonDisabled?: boolean;
|
|
15
|
+
isSecondaryButtonDisabled?: boolean;
|
|
16
|
+
dataAttributesPrimaryButton?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
dataAttributesSecondaryButton?: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
labelPrimaryButton?: Label;
|
|
23
|
+
labelSecondaryButton?: Label;
|
|
24
|
+
iconLeftSecondaryButton?: ReactElement;
|
|
25
|
+
onPrimaryButtonClick: (event: SyntheticEvent) => void;
|
|
26
|
+
onSecondaryButtonClick: (event: SyntheticEvent) => void;
|
|
27
|
+
};
|
|
28
|
+
declare const FormMainPage: {
|
|
29
|
+
(props: FormMainPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
defaultProps: Pick<FormMainPageProps, "hideControls">;
|
|
32
|
+
PageHeaderTitle: {
|
|
33
|
+
(props: {
|
|
34
|
+
title: string;
|
|
35
|
+
titleSize: "big" | "small";
|
|
36
|
+
truncate: boolean;
|
|
37
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
38
|
+
children?: undefined;
|
|
39
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
defaultProps: Pick<{
|
|
42
|
+
title: string;
|
|
43
|
+
titleSize: "big" | "small";
|
|
44
|
+
truncate: boolean;
|
|
45
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
46
|
+
children?: undefined;
|
|
47
|
+
}, "truncate" | "titleSize">;
|
|
48
|
+
};
|
|
49
|
+
Intl: {
|
|
50
|
+
cancel: {
|
|
51
|
+
id: string;
|
|
52
|
+
defaultMessage: string;
|
|
53
|
+
};
|
|
54
|
+
revert: {
|
|
55
|
+
id: string;
|
|
56
|
+
defaultMessage: string;
|
|
57
|
+
};
|
|
58
|
+
confirm: {
|
|
59
|
+
id: string;
|
|
60
|
+
defaultMessage: string;
|
|
61
|
+
};
|
|
62
|
+
save: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
};
|
|
66
|
+
update: {
|
|
67
|
+
id: string;
|
|
68
|
+
defaultMessage: string;
|
|
69
|
+
};
|
|
70
|
+
create: {
|
|
71
|
+
id: string;
|
|
72
|
+
defaultMessage: string;
|
|
73
|
+
};
|
|
74
|
+
delete: {
|
|
75
|
+
id: string;
|
|
76
|
+
defaultMessage: string;
|
|
77
|
+
};
|
|
78
|
+
add: {
|
|
79
|
+
id: string;
|
|
80
|
+
defaultMessage: string;
|
|
81
|
+
};
|
|
82
|
+
remove: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
};
|
|
86
|
+
close: {
|
|
87
|
+
id: string;
|
|
88
|
+
defaultMessage: string;
|
|
89
|
+
};
|
|
90
|
+
edit: {
|
|
91
|
+
id: string;
|
|
92
|
+
defaultMessage: string;
|
|
93
|
+
};
|
|
94
|
+
open: {
|
|
95
|
+
id: string;
|
|
96
|
+
defaultMessage: string;
|
|
97
|
+
};
|
|
98
|
+
activate: {
|
|
99
|
+
id: string;
|
|
100
|
+
defaultMessage: string;
|
|
101
|
+
};
|
|
102
|
+
deactivate: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
};
|
|
106
|
+
active: {
|
|
107
|
+
id: string;
|
|
108
|
+
defaultMessage: string;
|
|
109
|
+
};
|
|
110
|
+
inactive: {
|
|
111
|
+
id: string;
|
|
112
|
+
defaultMessage: string;
|
|
113
|
+
};
|
|
114
|
+
enable: {
|
|
115
|
+
id: string;
|
|
116
|
+
defaultMessage: string;
|
|
117
|
+
};
|
|
118
|
+
disable: {
|
|
119
|
+
id: string;
|
|
120
|
+
defaultMessage: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export default FormMainPage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './form-main-page';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './info-main-page';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
declare type InfoMainPageProps = {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string | ReactElement;
|
|
5
|
+
customTitleRow?: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare const InfoMainPage: {
|
|
9
|
+
(props: InfoMainPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
PageHeaderTitle: {
|
|
12
|
+
(props: {
|
|
13
|
+
title: string;
|
|
14
|
+
titleSize: "big" | "small";
|
|
15
|
+
truncate: boolean;
|
|
16
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
17
|
+
children?: undefined;
|
|
18
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
defaultProps: Pick<{
|
|
21
|
+
title: string;
|
|
22
|
+
titleSize: "big" | "small";
|
|
23
|
+
truncate: boolean;
|
|
24
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
25
|
+
children?: undefined;
|
|
26
|
+
}, "truncate" | "titleSize">;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default InfoMainPage;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MainPageContainer: 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 Divider: 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<HTMLHRElement>, HTMLHRElement>, {}>;
|
|
10
|
+
export declare const MainPageContent: 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>, {}>;
|
|
File without changes
|
|
@@ -43,6 +43,8 @@ declare const TabularMainPage: {
|
|
|
43
43
|
};
|
|
44
44
|
FormSecondaryButton: {
|
|
45
45
|
(props: {
|
|
46
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
47
|
+
} & {
|
|
46
48
|
label: string | {
|
|
47
49
|
id: string;
|
|
48
50
|
description?: string | object | undefined;
|
|
@@ -57,6 +59,8 @@ declare const TabularMainPage: {
|
|
|
57
59
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
60
|
displayName: string;
|
|
59
61
|
defaultProps: Pick<{
|
|
62
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
63
|
+
} & {
|
|
60
64
|
label: string | {
|
|
61
65
|
id: string;
|
|
62
66
|
description?: string | object | undefined;
|
|
@@ -57,6 +57,8 @@ declare const CustomFormModalPage: {
|
|
|
57
57
|
};
|
|
58
58
|
FormSecondaryButton: {
|
|
59
59
|
(props: {
|
|
60
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
61
|
+
} & {
|
|
60
62
|
label: string | {
|
|
61
63
|
id: string;
|
|
62
64
|
description?: string | object | undefined;
|
|
@@ -71,6 +73,8 @@ declare const CustomFormModalPage: {
|
|
|
71
73
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
72
74
|
displayName: string;
|
|
73
75
|
defaultProps: Pick<{
|
|
76
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
77
|
+
} & {
|
|
74
78
|
label: string | {
|
|
75
79
|
id: string;
|
|
76
80
|
description?: string | object | undefined;
|
|
@@ -33,6 +33,7 @@ declare type Props = {
|
|
|
33
33
|
onPrimaryButtonClick: (event: SyntheticEvent) => void;
|
|
34
34
|
onSecondaryButtonClick: (event: SyntheticEvent) => void;
|
|
35
35
|
hideControls: boolean;
|
|
36
|
+
iconLeftSecondaryButton?: ReactElement;
|
|
36
37
|
};
|
|
37
38
|
declare const FormModalPage: {
|
|
38
39
|
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts
CHANGED
|
@@ -60,6 +60,8 @@ declare const TabularModalPage: {
|
|
|
60
60
|
};
|
|
61
61
|
FormSecondaryButton: {
|
|
62
62
|
(props: {
|
|
63
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
64
|
+
} & {
|
|
63
65
|
label: string | {
|
|
64
66
|
id: string;
|
|
65
67
|
description?: string | object | undefined;
|
|
@@ -74,6 +76,8 @@ declare const TabularModalPage: {
|
|
|
74
76
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
75
77
|
displayName: string;
|
|
76
78
|
defaultProps: Pick<{
|
|
79
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
80
|
+
} & {
|
|
77
81
|
label: string | {
|
|
78
82
|
id: string;
|
|
79
83
|
description?: string | object | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as version } from './version';
|
|
2
2
|
export { default as TabHeader } from './components/tab-header';
|
|
3
|
-
export { default as TabularMainPage } from './components/tabular-main-page';
|
|
4
3
|
export { default as InfoDialog } from './components/dialogs/info-dialog';
|
|
5
4
|
export { default as ConfirmationDialog } from './components/dialogs/confirmation-dialog';
|
|
6
5
|
export { default as FormDialog } from './components/dialogs/form-dialog';
|
|
@@ -13,6 +12,10 @@ export { default as FormDetailPage } from './components/detail-pages/form-detail
|
|
|
13
12
|
export { default as InfoDetailPage } from './components/detail-pages/info-detail-page';
|
|
14
13
|
export { default as TabularDetailPage } from './components/detail-pages/tabular-detail-page';
|
|
15
14
|
export { default as PublicPageLayout } from './components/public-page-layout';
|
|
15
|
+
export { default as FormMainPage } from './components/main-pages/form-main-page';
|
|
16
|
+
export { default as CustomFormMainPage } from './components/main-pages/custom-form-main-page';
|
|
17
|
+
export { default as InfoMainPage } from './components/main-pages/info-main-page';
|
|
18
|
+
export { default as TabularMainPage } from './components/main-pages/tabular-main-page';
|
|
16
19
|
export { default as MaintenancePageLayout } from './components/maintenance-page-layout';
|
|
17
20
|
export { default as PageNotFound } from './components/page-not-found';
|
|
18
21
|
export { default as PageUnauthorized } from './components/page-unauthorized';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.14.0",
|
|
4
4
|
"description": "Generic components for building Merchant Center applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.18.6",
|
|
31
31
|
"@babel/runtime-corejs3": "^7.18.6",
|
|
32
|
-
"@commercetools-frontend/application-shell-connectors": "21.
|
|
33
|
-
"@commercetools-frontend/assets": "21.
|
|
34
|
-
"@commercetools-frontend/constants": "21.
|
|
35
|
-
"@commercetools-frontend/i18n": "21.
|
|
36
|
-
"@commercetools-frontend/l10n": "21.
|
|
32
|
+
"@commercetools-frontend/application-shell-connectors": "21.14.0",
|
|
33
|
+
"@commercetools-frontend/assets": "21.14.0",
|
|
34
|
+
"@commercetools-frontend/constants": "21.14.0",
|
|
35
|
+
"@commercetools-frontend/i18n": "21.14.0",
|
|
36
|
+
"@commercetools-frontend/l10n": "21.14.0",
|
|
37
37
|
"@commercetools-uikit/card": "^15.1.0",
|
|
38
38
|
"@commercetools-uikit/constraints": "^15.1.0",
|
|
39
39
|
"@commercetools-uikit/design-system": "^15.1.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@emotion/react": "11.9.3",
|
|
51
51
|
"@emotion/styled": "11.9.3",
|
|
52
52
|
"@react-hook/latest": "1.0.3",
|
|
53
|
-
"@react-hook/resize-observer": "1.2.
|
|
53
|
+
"@react-hook/resize-observer": "1.2.6",
|
|
54
54
|
"@types/history": "^4.7.11",
|
|
55
55
|
"@types/lodash": "^4.14.182",
|
|
56
56
|
"@types/prop-types": "^15.7.5",
|
|
@@ -64,10 +64,11 @@
|
|
|
64
64
|
"react-modal": "3.15.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
+
"@types/raf-schd": "^4.0.1",
|
|
67
68
|
"react": "17.0.2",
|
|
68
69
|
"react-dom": "17.0.2",
|
|
69
70
|
"react-intl": "^5.25.1",
|
|
70
|
-
"react-router-dom": "5.3.
|
|
71
|
+
"react-router-dom": "5.3.3"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"react": "17.x",
|