@commercetools-frontend/application-components 21.1.0 → 21.3.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 +638 -332
- package/dist/commercetools-frontend-application-components.cjs.prod.js +491 -246
- package/dist/commercetools-frontend-application-components.esm.js +625 -323
- package/dist/declarations/src/components/dialogs/internals/dialog-container.d.ts +1 -1
- package/dist/declarations/src/components/{modal-pages/internals → internals}/default-form-buttons.d.ts +1 -1
- package/dist/declarations/src/components/{modal-pages/internals → internals}/messages.d.ts +0 -0
- package/dist/declarations/src/components/{modal-pages/internals/modal-page-header-title.d.ts → internals/page-header-title.d.ts} +5 -4
- package/dist/declarations/src/components/{modal-pages/internals/modal-page-header.d.ts → internals/page-header.d.ts} +3 -3
- package/dist/declarations/src/components/internals/page-top-bar.d.ts +20 -0
- package/dist/declarations/src/components/internals/page.styles.d.ts +9 -0
- package/dist/declarations/src/components/internals/tabular-page.d.ts +24 -0
- package/dist/declarations/src/components/modal-pages/internals/modal-page.styles.d.ts +0 -5
- package/dist/declarations/src/components/tab-header/index.d.ts +1 -0
- package/dist/declarations/src/components/tab-header/tab-header.d.ts +18 -0
- package/dist/declarations/src/components/tab-header/tab.styles.d.ts +2 -0
- package/dist/declarations/src/components/tabular-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/tabular-detail-page/tabular-detail-page.d.ts +202 -0
- package/dist/declarations/src/components/tabular-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/tabular-main-page/tabular-main-page.d.ts +194 -0
- package/dist/declarations/src/index.d.ts +3 -0
- package/package.json +32 -28
|
@@ -12,6 +12,6 @@ declare type Props = {
|
|
|
12
12
|
declare const DialogContainer: {
|
|
13
13
|
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
|
-
defaultProps: Pick<Props, "
|
|
15
|
+
defaultProps: Pick<Props, "zIndex" | "size" | "getParentSelector">;
|
|
16
16
|
};
|
|
17
17
|
export default DialogContainer;
|
|
File without changes
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
2
|
declare type Props = {
|
|
3
3
|
title: string;
|
|
4
4
|
titleSize: 'big' | 'small';
|
|
5
|
+
truncate: boolean;
|
|
5
6
|
subtitle?: string | ReactElement;
|
|
6
7
|
children?: never;
|
|
7
8
|
};
|
|
8
|
-
declare const
|
|
9
|
+
declare const PageHeaderTitle: {
|
|
9
10
|
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
11
|
displayName: string;
|
|
11
|
-
defaultProps: Pick<Props, "titleSize">;
|
|
12
|
+
defaultProps: Pick<Props, "truncate" | "titleSize">;
|
|
12
13
|
};
|
|
13
|
-
export default
|
|
14
|
+
export default PageHeaderTitle;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
declare type Props = {
|
|
3
3
|
title: string;
|
|
4
4
|
subtitle?: string | ReactElement;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const PageHeader: {
|
|
8
8
|
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
|
-
export default
|
|
11
|
+
export default PageHeader;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { MouseEvent, KeyboardEvent, ReactNode } from 'react';
|
|
2
|
+
declare type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
values?: Record<string, ReactNode>;
|
|
7
|
+
};
|
|
8
|
+
declare type Label = string | MessageDescriptor;
|
|
9
|
+
declare type Props = {
|
|
10
|
+
color: 'surface' | 'neutral';
|
|
11
|
+
previousPathLabel: Label;
|
|
12
|
+
onClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
13
|
+
children?: never;
|
|
14
|
+
};
|
|
15
|
+
declare const PageTopBar: {
|
|
16
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
defaultProps: Pick<Props, "color" | "previousPathLabel">;
|
|
19
|
+
};
|
|
20
|
+
export default PageTopBar;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ContentWrapper: 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 PageWrapper: 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>, {}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
declare type TControlsContainterProps = {
|
|
3
|
+
tabControls: ReactNode;
|
|
4
|
+
formControls?: ReactNode;
|
|
5
|
+
children?: never;
|
|
6
|
+
};
|
|
7
|
+
declare const ControlsContainter: {
|
|
8
|
+
(props: TControlsContainterProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
declare type TTabularPageContainerProps = {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
color: 'surface' | 'neutral';
|
|
14
|
+
};
|
|
15
|
+
declare const TabularPageContainer: {
|
|
16
|
+
(props: TTabularPageContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
defaultProps: Pick<TTabularPageContainerProps, "color">;
|
|
19
|
+
};
|
|
20
|
+
declare const FormControlsContainer: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
|
+
export { ControlsContainter, TabularPageContainer, FormControlsContainer };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TRANSITION_DURATION = 200;
|
|
3
2
|
declare type StyleProps = {
|
|
4
3
|
level: number;
|
|
@@ -11,8 +10,4 @@ export declare const getAfterOpenContainerAnimation: () => import("@emotion/util
|
|
|
11
10
|
export declare const getAfterOpenOverlayAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
12
11
|
export declare const getBeforeCloseContainerAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
13
12
|
export declare const getBeforeCloseOverlayAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
14
|
-
export declare const ContentWrapper: 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>, {}>;
|
|
18
13
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './tab-header';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { LocationDescriptor } from 'history';
|
|
4
|
+
export declare type TTabHeaderProps = {
|
|
5
|
+
to: string | LocationDescriptor;
|
|
6
|
+
label?: string;
|
|
7
|
+
intlMessage?: MessageDescriptor & {
|
|
8
|
+
values?: Record<string, ReactNode>;
|
|
9
|
+
};
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
exactPathMatch: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const TabHeader: {
|
|
14
|
+
(props: TTabHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
defaultProps: Pick<TTabHeaderProps, "isDisabled" | "exactPathMatch">;
|
|
17
|
+
};
|
|
18
|
+
export default TabHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './tabular-detail-page';
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode, MouseEvent, KeyboardEvent } from 'react';
|
|
2
|
+
declare type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
values?: Record<string, ReactNode>;
|
|
7
|
+
};
|
|
8
|
+
declare type TTabularDetailPageProps = {
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle?: string | ReactElement;
|
|
11
|
+
customTitleRow?: ReactNode;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
tabControls: ReactNode;
|
|
14
|
+
formControls?: ReactNode;
|
|
15
|
+
hideControls: boolean;
|
|
16
|
+
previousPathLabel?: string | MessageDescriptor;
|
|
17
|
+
onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
18
|
+
};
|
|
19
|
+
declare const TabularDetailPage: {
|
|
20
|
+
(props: TTabularDetailPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
defaultProps: Pick<TTabularDetailPageProps, "hideControls">;
|
|
23
|
+
FormPrimaryButton: {
|
|
24
|
+
(props: {
|
|
25
|
+
label: string | {
|
|
26
|
+
id: string;
|
|
27
|
+
description?: string | object | undefined;
|
|
28
|
+
defaultMessage?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
31
|
+
isDisabled: boolean;
|
|
32
|
+
dataAttributes: {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
};
|
|
35
|
+
children?: undefined;
|
|
36
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
37
|
+
displayName: string;
|
|
38
|
+
defaultProps: Pick<{
|
|
39
|
+
label: string | {
|
|
40
|
+
id: string;
|
|
41
|
+
description?: string | object | undefined;
|
|
42
|
+
defaultMessage?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
45
|
+
isDisabled: boolean;
|
|
46
|
+
dataAttributes: {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
children?: undefined;
|
|
50
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
51
|
+
};
|
|
52
|
+
FormSecondaryButton: {
|
|
53
|
+
(props: {
|
|
54
|
+
label: string | {
|
|
55
|
+
id: string;
|
|
56
|
+
description?: string | object | undefined;
|
|
57
|
+
defaultMessage?: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
60
|
+
isDisabled: boolean;
|
|
61
|
+
dataAttributes: {
|
|
62
|
+
[key: string]: string;
|
|
63
|
+
};
|
|
64
|
+
children?: undefined;
|
|
65
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
defaultProps: Pick<{
|
|
68
|
+
label: string | {
|
|
69
|
+
id: string;
|
|
70
|
+
description?: string | object | undefined;
|
|
71
|
+
defaultMessage?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
74
|
+
isDisabled: boolean;
|
|
75
|
+
dataAttributes: {
|
|
76
|
+
[key: string]: string;
|
|
77
|
+
};
|
|
78
|
+
children?: undefined;
|
|
79
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
80
|
+
};
|
|
81
|
+
FormDeleteButton: {
|
|
82
|
+
(props: {
|
|
83
|
+
label: string | {
|
|
84
|
+
id: string;
|
|
85
|
+
description?: string | object | undefined;
|
|
86
|
+
defaultMessage?: string | undefined;
|
|
87
|
+
};
|
|
88
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
89
|
+
isDisabled: boolean;
|
|
90
|
+
dataAttributes: {
|
|
91
|
+
[key: string]: string;
|
|
92
|
+
};
|
|
93
|
+
children?: undefined;
|
|
94
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
95
|
+
displayName: string;
|
|
96
|
+
defaultProps: Pick<{
|
|
97
|
+
label: string | {
|
|
98
|
+
id: string;
|
|
99
|
+
description?: string | object | undefined;
|
|
100
|
+
defaultMessage?: string | undefined;
|
|
101
|
+
};
|
|
102
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
103
|
+
isDisabled: boolean;
|
|
104
|
+
dataAttributes: {
|
|
105
|
+
[key: string]: string;
|
|
106
|
+
};
|
|
107
|
+
children?: undefined;
|
|
108
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
109
|
+
};
|
|
110
|
+
PageHeaderTitle: {
|
|
111
|
+
(props: {
|
|
112
|
+
title: string;
|
|
113
|
+
titleSize: "big" | "small";
|
|
114
|
+
truncate: boolean;
|
|
115
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
116
|
+
children?: undefined;
|
|
117
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
118
|
+
displayName: string;
|
|
119
|
+
defaultProps: Pick<{
|
|
120
|
+
title: string;
|
|
121
|
+
titleSize: "big" | "small";
|
|
122
|
+
truncate: boolean;
|
|
123
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
124
|
+
children?: undefined;
|
|
125
|
+
}, "truncate" | "titleSize">;
|
|
126
|
+
};
|
|
127
|
+
Intl: {
|
|
128
|
+
cancel: {
|
|
129
|
+
id: string;
|
|
130
|
+
defaultMessage: string;
|
|
131
|
+
};
|
|
132
|
+
revert: {
|
|
133
|
+
id: string;
|
|
134
|
+
defaultMessage: string;
|
|
135
|
+
};
|
|
136
|
+
confirm: {
|
|
137
|
+
id: string;
|
|
138
|
+
defaultMessage: string;
|
|
139
|
+
};
|
|
140
|
+
save: {
|
|
141
|
+
id: string;
|
|
142
|
+
defaultMessage: string;
|
|
143
|
+
};
|
|
144
|
+
update: {
|
|
145
|
+
id: string;
|
|
146
|
+
defaultMessage: string;
|
|
147
|
+
};
|
|
148
|
+
create: {
|
|
149
|
+
id: string;
|
|
150
|
+
defaultMessage: string;
|
|
151
|
+
};
|
|
152
|
+
delete: {
|
|
153
|
+
id: string;
|
|
154
|
+
defaultMessage: string;
|
|
155
|
+
};
|
|
156
|
+
add: {
|
|
157
|
+
id: string;
|
|
158
|
+
defaultMessage: string;
|
|
159
|
+
};
|
|
160
|
+
remove: {
|
|
161
|
+
id: string;
|
|
162
|
+
defaultMessage: string;
|
|
163
|
+
};
|
|
164
|
+
close: {
|
|
165
|
+
id: string;
|
|
166
|
+
defaultMessage: string;
|
|
167
|
+
};
|
|
168
|
+
edit: {
|
|
169
|
+
id: string;
|
|
170
|
+
defaultMessage: string;
|
|
171
|
+
};
|
|
172
|
+
open: {
|
|
173
|
+
id: string;
|
|
174
|
+
defaultMessage: string;
|
|
175
|
+
};
|
|
176
|
+
activate: {
|
|
177
|
+
id: string;
|
|
178
|
+
defaultMessage: string;
|
|
179
|
+
};
|
|
180
|
+
deactivate: {
|
|
181
|
+
id: string;
|
|
182
|
+
defaultMessage: string;
|
|
183
|
+
};
|
|
184
|
+
active: {
|
|
185
|
+
id: string;
|
|
186
|
+
defaultMessage: string;
|
|
187
|
+
};
|
|
188
|
+
inactive: {
|
|
189
|
+
id: string;
|
|
190
|
+
defaultMessage: string;
|
|
191
|
+
};
|
|
192
|
+
enable: {
|
|
193
|
+
id: string;
|
|
194
|
+
defaultMessage: string;
|
|
195
|
+
};
|
|
196
|
+
disable: {
|
|
197
|
+
id: string;
|
|
198
|
+
defaultMessage: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
export default TabularDetailPage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './tabular-main-page';
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
declare type TTabularMainPageProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string | ReactElement;
|
|
5
|
+
customTitleRow?: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
tabControls: ReactNode;
|
|
8
|
+
formControls?: ReactNode;
|
|
9
|
+
hideControls: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const TabularMainPage: {
|
|
12
|
+
(props: TTabularMainPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
defaultProps: Pick<TTabularMainPageProps, "hideControls">;
|
|
15
|
+
FormPrimaryButton: {
|
|
16
|
+
(props: {
|
|
17
|
+
label: string | {
|
|
18
|
+
id: string;
|
|
19
|
+
description?: string | object | undefined;
|
|
20
|
+
defaultMessage?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
23
|
+
isDisabled: boolean;
|
|
24
|
+
dataAttributes: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
children?: undefined;
|
|
28
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
defaultProps: Pick<{
|
|
31
|
+
label: string | {
|
|
32
|
+
id: string;
|
|
33
|
+
description?: string | object | undefined;
|
|
34
|
+
defaultMessage?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
37
|
+
isDisabled: boolean;
|
|
38
|
+
dataAttributes: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
children?: undefined;
|
|
42
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
43
|
+
};
|
|
44
|
+
FormSecondaryButton: {
|
|
45
|
+
(props: {
|
|
46
|
+
label: string | {
|
|
47
|
+
id: string;
|
|
48
|
+
description?: string | object | undefined;
|
|
49
|
+
defaultMessage?: string | undefined;
|
|
50
|
+
};
|
|
51
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
52
|
+
isDisabled: boolean;
|
|
53
|
+
dataAttributes: {
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
};
|
|
56
|
+
children?: undefined;
|
|
57
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
|
+
displayName: string;
|
|
59
|
+
defaultProps: Pick<{
|
|
60
|
+
label: string | {
|
|
61
|
+
id: string;
|
|
62
|
+
description?: string | object | undefined;
|
|
63
|
+
defaultMessage?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
66
|
+
isDisabled: boolean;
|
|
67
|
+
dataAttributes: {
|
|
68
|
+
[key: string]: string;
|
|
69
|
+
};
|
|
70
|
+
children?: undefined;
|
|
71
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
72
|
+
};
|
|
73
|
+
FormDeleteButton: {
|
|
74
|
+
(props: {
|
|
75
|
+
label: string | {
|
|
76
|
+
id: string;
|
|
77
|
+
description?: string | object | undefined;
|
|
78
|
+
defaultMessage?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
81
|
+
isDisabled: boolean;
|
|
82
|
+
dataAttributes: {
|
|
83
|
+
[key: string]: string;
|
|
84
|
+
};
|
|
85
|
+
children?: undefined;
|
|
86
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
87
|
+
displayName: string;
|
|
88
|
+
defaultProps: Pick<{
|
|
89
|
+
label: string | {
|
|
90
|
+
id: string;
|
|
91
|
+
description?: string | object | undefined;
|
|
92
|
+
defaultMessage?: string | undefined;
|
|
93
|
+
};
|
|
94
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
95
|
+
isDisabled: boolean;
|
|
96
|
+
dataAttributes: {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
children?: undefined;
|
|
100
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
101
|
+
};
|
|
102
|
+
PageHeaderTitle: {
|
|
103
|
+
(props: {
|
|
104
|
+
title: string;
|
|
105
|
+
titleSize: "big" | "small";
|
|
106
|
+
truncate: boolean;
|
|
107
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
108
|
+
children?: undefined;
|
|
109
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
110
|
+
displayName: string;
|
|
111
|
+
defaultProps: Pick<{
|
|
112
|
+
title: string;
|
|
113
|
+
titleSize: "big" | "small";
|
|
114
|
+
truncate: boolean;
|
|
115
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
116
|
+
children?: undefined;
|
|
117
|
+
}, "truncate" | "titleSize">;
|
|
118
|
+
};
|
|
119
|
+
Intl: {
|
|
120
|
+
cancel: {
|
|
121
|
+
id: string;
|
|
122
|
+
defaultMessage: string;
|
|
123
|
+
};
|
|
124
|
+
revert: {
|
|
125
|
+
id: string;
|
|
126
|
+
defaultMessage: string;
|
|
127
|
+
};
|
|
128
|
+
confirm: {
|
|
129
|
+
id: string;
|
|
130
|
+
defaultMessage: string;
|
|
131
|
+
};
|
|
132
|
+
save: {
|
|
133
|
+
id: string;
|
|
134
|
+
defaultMessage: string;
|
|
135
|
+
};
|
|
136
|
+
update: {
|
|
137
|
+
id: string;
|
|
138
|
+
defaultMessage: string;
|
|
139
|
+
};
|
|
140
|
+
create: {
|
|
141
|
+
id: string;
|
|
142
|
+
defaultMessage: string;
|
|
143
|
+
};
|
|
144
|
+
delete: {
|
|
145
|
+
id: string;
|
|
146
|
+
defaultMessage: string;
|
|
147
|
+
};
|
|
148
|
+
add: {
|
|
149
|
+
id: string;
|
|
150
|
+
defaultMessage: string;
|
|
151
|
+
};
|
|
152
|
+
remove: {
|
|
153
|
+
id: string;
|
|
154
|
+
defaultMessage: string;
|
|
155
|
+
};
|
|
156
|
+
close: {
|
|
157
|
+
id: string;
|
|
158
|
+
defaultMessage: string;
|
|
159
|
+
};
|
|
160
|
+
edit: {
|
|
161
|
+
id: string;
|
|
162
|
+
defaultMessage: string;
|
|
163
|
+
};
|
|
164
|
+
open: {
|
|
165
|
+
id: string;
|
|
166
|
+
defaultMessage: string;
|
|
167
|
+
};
|
|
168
|
+
activate: {
|
|
169
|
+
id: string;
|
|
170
|
+
defaultMessage: string;
|
|
171
|
+
};
|
|
172
|
+
deactivate: {
|
|
173
|
+
id: string;
|
|
174
|
+
defaultMessage: string;
|
|
175
|
+
};
|
|
176
|
+
active: {
|
|
177
|
+
id: string;
|
|
178
|
+
defaultMessage: string;
|
|
179
|
+
};
|
|
180
|
+
inactive: {
|
|
181
|
+
id: string;
|
|
182
|
+
defaultMessage: string;
|
|
183
|
+
};
|
|
184
|
+
enable: {
|
|
185
|
+
id: string;
|
|
186
|
+
defaultMessage: string;
|
|
187
|
+
};
|
|
188
|
+
disable: {
|
|
189
|
+
id: string;
|
|
190
|
+
defaultMessage: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export default TabularMainPage;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { default as version } from './version';
|
|
2
|
+
export { default as TabHeader } from './components/tab-header';
|
|
3
|
+
export { default as TabularMainPage } from './components/tabular-main-page';
|
|
4
|
+
export { default as TabularDetailPage } from './components/tabular-detail-page';
|
|
2
5
|
export { default as InfoDialog } from './components/dialogs/info-dialog';
|
|
3
6
|
export { default as ConfirmationDialog } from './components/dialogs/confirmation-dialog';
|
|
4
7
|
export { default as FormDialog } from './components/dialogs/form-dialog';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.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": {
|
|
@@ -27,45 +27,49 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@babel/runtime": "^7.
|
|
31
|
-
"@babel/runtime-corejs3": "^7.
|
|
32
|
-
"@commercetools-frontend/application-shell-connectors": "21.
|
|
30
|
+
"@babel/runtime": "^7.17.8",
|
|
31
|
+
"@babel/runtime-corejs3": "^7.17.8",
|
|
32
|
+
"@commercetools-frontend/application-shell-connectors": "21.3.0",
|
|
33
33
|
"@commercetools-frontend/assets": "21.0.0",
|
|
34
|
-
"@commercetools-frontend/constants": "21.
|
|
35
|
-
"@commercetools-frontend/i18n": "21.
|
|
36
|
-
"@commercetools-frontend/l10n": "21.
|
|
37
|
-
"@commercetools-uikit/card": "^
|
|
38
|
-
"@commercetools-uikit/constraints": "^
|
|
39
|
-
"@commercetools-uikit/design-system": "^
|
|
40
|
-
"@commercetools-uikit/flat-button": "^
|
|
41
|
-
"@commercetools-uikit/icon-button": "^
|
|
42
|
-
"@commercetools-uikit/icons": "^
|
|
43
|
-
"@commercetools-uikit/messages": "^
|
|
44
|
-
"@commercetools-uikit/primary-button": "^
|
|
45
|
-
"@commercetools-uikit/secondary-button": "^
|
|
46
|
-
"@commercetools-uikit/secondary-icon-button": "^
|
|
47
|
-
"@commercetools-uikit/spacings": "^
|
|
48
|
-
"@commercetools-uikit/text": "^
|
|
49
|
-
"@
|
|
50
|
-
"@emotion/
|
|
51
|
-
"@
|
|
34
|
+
"@commercetools-frontend/constants": "21.3.0",
|
|
35
|
+
"@commercetools-frontend/i18n": "21.3.0",
|
|
36
|
+
"@commercetools-frontend/l10n": "21.3.0",
|
|
37
|
+
"@commercetools-uikit/card": "^14.0.1",
|
|
38
|
+
"@commercetools-uikit/constraints": "^14.0.1",
|
|
39
|
+
"@commercetools-uikit/design-system": "^14.0.0",
|
|
40
|
+
"@commercetools-uikit/flat-button": "^14.0.2",
|
|
41
|
+
"@commercetools-uikit/icon-button": "^14.0.2",
|
|
42
|
+
"@commercetools-uikit/icons": "^14.0.1",
|
|
43
|
+
"@commercetools-uikit/messages": "^14.0.1",
|
|
44
|
+
"@commercetools-uikit/primary-button": "^14.0.1",
|
|
45
|
+
"@commercetools-uikit/secondary-button": "^14.0.2",
|
|
46
|
+
"@commercetools-uikit/secondary-icon-button": "^14.0.2",
|
|
47
|
+
"@commercetools-uikit/spacings": "^14.0.1",
|
|
48
|
+
"@commercetools-uikit/text": "^14.0.1",
|
|
49
|
+
"@commercetools-uikit/utils": "^14.0.1",
|
|
50
|
+
"@emotion/react": "11.8.2",
|
|
51
|
+
"@emotion/styled": "11.8.1",
|
|
52
|
+
"@types/history": "4.7.11",
|
|
53
|
+
"@types/lodash": "^4.14.181",
|
|
52
54
|
"@types/prop-types": "^15.7.4",
|
|
53
|
-
"@types/react": "^17.0.
|
|
54
|
-
"@types/react-dom": "^17.0.
|
|
55
|
+
"@types/react": "^17.0.43",
|
|
56
|
+
"@types/react-dom": "^17.0.14",
|
|
55
57
|
"@types/react-modal": "^3.13.1",
|
|
58
|
+
"history": "4.10.1",
|
|
56
59
|
"lodash": "4.17.21",
|
|
57
60
|
"prop-types": "15.8.1",
|
|
58
|
-
"react-modal": "3.14.4"
|
|
59
|
-
"react-required-if": "1.0.3"
|
|
61
|
+
"react-modal": "3.14.4"
|
|
60
62
|
},
|
|
61
63
|
"devDependencies": {
|
|
62
64
|
"react": "17.0.2",
|
|
63
65
|
"react-dom": "17.0.2",
|
|
64
|
-
"react-intl": "5.24.
|
|
66
|
+
"react-intl": "5.24.8",
|
|
67
|
+
"react-router-dom": "5.3.0"
|
|
65
68
|
},
|
|
66
69
|
"peerDependencies": {
|
|
67
70
|
"react": "17.x",
|
|
68
71
|
"react-dom": "17.x",
|
|
69
|
-
"react-intl": "5.x"
|
|
72
|
+
"react-intl": "5.x",
|
|
73
|
+
"react-router-dom": "5.x"
|
|
70
74
|
}
|
|
71
75
|
}
|