@commercetools-frontend/application-components 20.9.4 → 20.10.5

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.
Files changed (47) hide show
  1. package/dist/commercetools-frontend-application-components.cjs.dev.js +17 -6
  2. package/dist/commercetools-frontend-application-components.cjs.prod.js +8 -2
  3. package/dist/commercetools-frontend-application-components.esm.js +17 -6
  4. package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +107 -107
  5. package/dist/declarations/src/components/dialogs/confirmation-dialog/index.d.ts +1 -1
  6. package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +107 -107
  7. package/dist/declarations/src/components/dialogs/form-dialog/index.d.ts +1 -1
  8. package/dist/declarations/src/components/dialogs/info-dialog/index.d.ts +1 -1
  9. package/dist/declarations/src/components/dialogs/info-dialog/info-dialog.d.ts +15 -15
  10. package/dist/declarations/src/components/dialogs/internals/dialog-container.d.ts +17 -17
  11. package/dist/declarations/src/components/dialogs/internals/dialog-content.d.ts +6 -6
  12. package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +27 -27
  13. package/dist/declarations/src/components/dialogs/internals/dialog-header.d.ts +11 -11
  14. package/dist/declarations/src/components/dialogs/internals/dialog.styles.d.ts +6 -6
  15. package/dist/declarations/src/components/maintenance-page-layout/index.d.ts +1 -1
  16. package/dist/declarations/src/components/maintenance-page-layout/maintenance-page-layout.d.ts +24 -24
  17. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +191 -189
  18. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/index.d.ts +1 -1
  19. package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +116 -114
  20. package/dist/declarations/src/components/modal-pages/form-modal-page/index.d.ts +1 -1
  21. package/dist/declarations/src/components/modal-pages/info-modal-page/index.d.ts +1 -1
  22. package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +28 -26
  23. package/dist/declarations/src/components/modal-pages/internals/default-form-buttons.d.ts +32 -32
  24. package/dist/declarations/src/components/modal-pages/internals/messages.d.ts +11 -11
  25. package/dist/declarations/src/components/modal-pages/internals/modal-page-header-title.d.ts +13 -13
  26. package/dist/declarations/src/components/modal-pages/internals/modal-page-header.d.ts +11 -11
  27. package/dist/declarations/src/components/modal-pages/internals/modal-page-top-bar.d.ts +20 -20
  28. package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +30 -28
  29. package/dist/declarations/src/components/modal-pages/internals/modal-page.styles.d.ts +18 -18
  30. package/dist/declarations/src/components/modal-pages/tabular-modal-page/index.d.ts +1 -1
  31. package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +194 -192
  32. package/dist/declarations/src/components/page-not-found/index.d.ts +1 -1
  33. package/dist/declarations/src/components/page-not-found/messages.d.ts +11 -11
  34. package/dist/declarations/src/components/page-not-found/page-not-found.d.ts +5 -5
  35. package/dist/declarations/src/components/page-unauthorized/index.d.ts +1 -1
  36. package/dist/declarations/src/components/page-unauthorized/messages.d.ts +15 -15
  37. package/dist/declarations/src/components/page-unauthorized/page-unauthorized.d.ts +5 -5
  38. package/dist/declarations/src/components/portals-container/index.d.ts +1 -1
  39. package/dist/declarations/src/components/portals-container/portals-container.d.ts +5 -5
  40. package/dist/declarations/src/components/public-page-layout/index.d.ts +1 -1
  41. package/dist/declarations/src/components/public-page-layout/public-page-layout.d.ts +9 -9
  42. package/dist/declarations/src/hooks/use-modal-state/index.d.ts +1 -1
  43. package/dist/declarations/src/hooks/use-modal-state/use-modal-state.d.ts +6 -6
  44. package/dist/declarations/src/index.d.ts +14 -14
  45. package/dist/declarations/src/utils/filter-data-attributes.d.ts +1 -1
  46. package/dist/declarations/src/version.d.ts +2 -2
  47. package/package.json +10 -10
@@ -1,189 +1,191 @@
1
- import { SyntheticEvent, ReactNode, ReactElement } 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 Props = {
9
- level?: number;
10
- title: string;
11
- isOpen: boolean;
12
- onClose?: (event: SyntheticEvent) => void;
13
- children: ReactNode;
14
- zIndex?: number;
15
- baseZIndex?: number;
16
- getParentSelector?: () => HTMLElement;
17
- shouldDelayOnClose?: boolean;
18
- topBarCurrentPathLabel?: string;
19
- topBarPreviousPathLabel?: Label;
20
- subtitle?: string | ReactElement;
21
- formControls?: ReactNode;
22
- hideControls?: boolean;
23
- };
24
- declare const CustomFormModalPage: {
25
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
26
- displayName: string;
27
- FormPrimaryButton: {
28
- (props: {
29
- label: string | {
30
- id: string;
31
- description?: string | object | undefined;
32
- defaultMessage?: string | undefined;
33
- };
34
- onClick: (event: SyntheticEvent<Element, Event>) => void;
35
- isDisabled: boolean;
36
- dataAttributes: {
37
- [key: string]: string;
38
- };
39
- children?: undefined;
40
- }): import("@emotion/react/jsx-runtime").JSX.Element;
41
- displayName: string;
42
- defaultProps: Pick<{
43
- label: string | {
44
- id: string;
45
- description?: string | object | undefined;
46
- defaultMessage?: string | undefined;
47
- };
48
- onClick: (event: SyntheticEvent<Element, Event>) => void;
49
- isDisabled: boolean;
50
- dataAttributes: {
51
- [key: string]: string;
52
- };
53
- children?: undefined;
54
- }, "label" | "isDisabled" | "dataAttributes">;
55
- };
56
- FormSecondaryButton: {
57
- (props: {
58
- label: string | {
59
- id: string;
60
- description?: string | object | undefined;
61
- defaultMessage?: string | undefined;
62
- };
63
- onClick: (event: SyntheticEvent<Element, Event>) => void;
64
- isDisabled: boolean;
65
- dataAttributes: {
66
- [key: string]: string;
67
- };
68
- children?: undefined;
69
- }): import("@emotion/react/jsx-runtime").JSX.Element;
70
- displayName: string;
71
- defaultProps: Pick<{
72
- label: string | {
73
- id: string;
74
- description?: string | object | undefined;
75
- defaultMessage?: string | undefined;
76
- };
77
- onClick: (event: SyntheticEvent<Element, Event>) => void;
78
- isDisabled: boolean;
79
- dataAttributes: {
80
- [key: string]: string;
81
- };
82
- children?: undefined;
83
- }, "label" | "isDisabled" | "dataAttributes">;
84
- };
85
- FormDeleteButton: {
86
- (props: {
87
- label: string | {
88
- id: string;
89
- description?: string | object | undefined;
90
- defaultMessage?: string | undefined;
91
- };
92
- onClick: (event: SyntheticEvent<Element, Event>) => void;
93
- isDisabled: boolean;
94
- dataAttributes: {
95
- [key: string]: string;
96
- };
97
- children?: undefined;
98
- }): import("@emotion/react/jsx-runtime").JSX.Element;
99
- displayName: string;
100
- defaultProps: Pick<{
101
- label: string | {
102
- id: string;
103
- description?: string | object | undefined;
104
- defaultMessage?: string | undefined;
105
- };
106
- onClick: (event: SyntheticEvent<Element, Event>) => void;
107
- isDisabled: boolean;
108
- dataAttributes: {
109
- [key: string]: string;
110
- };
111
- children?: undefined;
112
- }, "label" | "isDisabled" | "dataAttributes">;
113
- };
114
- Intl: {
115
- cancel: {
116
- id: string;
117
- defaultMessage: string;
118
- };
119
- revert: {
120
- id: string;
121
- defaultMessage: string;
122
- };
123
- confirm: {
124
- id: string;
125
- defaultMessage: string;
126
- };
127
- save: {
128
- id: string;
129
- defaultMessage: string;
130
- };
131
- update: {
132
- id: string;
133
- defaultMessage: string;
134
- };
135
- create: {
136
- id: string;
137
- defaultMessage: string;
138
- };
139
- delete: {
140
- id: string;
141
- defaultMessage: string;
142
- };
143
- add: {
144
- id: string;
145
- defaultMessage: string;
146
- };
147
- remove: {
148
- id: string;
149
- defaultMessage: string;
150
- };
151
- close: {
152
- id: string;
153
- defaultMessage: string;
154
- };
155
- edit: {
156
- id: string;
157
- defaultMessage: string;
158
- };
159
- open: {
160
- id: string;
161
- defaultMessage: string;
162
- };
163
- activate: {
164
- id: string;
165
- defaultMessage: string;
166
- };
167
- deactivate: {
168
- id: string;
169
- defaultMessage: string;
170
- };
171
- active: {
172
- id: string;
173
- defaultMessage: string;
174
- };
175
- inactive: {
176
- id: string;
177
- defaultMessage: string;
178
- };
179
- enable: {
180
- id: string;
181
- defaultMessage: string;
182
- };
183
- disable: {
184
- id: string;
185
- defaultMessage: string;
186
- };
187
- };
188
- };
189
- export default CustomFormModalPage;
1
+ import type { CSSObject } from '@emotion/react';
2
+ import { SyntheticEvent, ReactNode, ReactElement } from 'react';
3
+ declare type MessageDescriptor = {
4
+ id: string;
5
+ description?: string | object;
6
+ defaultMessage?: string;
7
+ };
8
+ declare type Label = string | MessageDescriptor;
9
+ declare type Props = {
10
+ level?: number;
11
+ title: string;
12
+ isOpen: boolean;
13
+ onClose?: (event: SyntheticEvent) => void;
14
+ children: ReactNode;
15
+ zIndex?: number;
16
+ baseZIndex?: number;
17
+ getParentSelector?: () => HTMLElement;
18
+ shouldDelayOnClose?: boolean;
19
+ afterOpenStyles?: string | CSSObject;
20
+ topBarCurrentPathLabel?: string;
21
+ topBarPreviousPathLabel?: Label;
22
+ subtitle?: string | ReactElement;
23
+ formControls?: ReactNode;
24
+ hideControls?: boolean;
25
+ };
26
+ declare const CustomFormModalPage: {
27
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
28
+ displayName: string;
29
+ FormPrimaryButton: {
30
+ (props: {
31
+ label: string | {
32
+ id: string;
33
+ description?: string | object | undefined;
34
+ defaultMessage?: string | undefined;
35
+ };
36
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
37
+ isDisabled: boolean;
38
+ dataAttributes: {
39
+ [key: string]: string;
40
+ };
41
+ children?: undefined;
42
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
43
+ displayName: string;
44
+ defaultProps: Pick<{
45
+ label: string | {
46
+ id: string;
47
+ description?: string | object | undefined;
48
+ defaultMessage?: string | undefined;
49
+ };
50
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
51
+ isDisabled: boolean;
52
+ dataAttributes: {
53
+ [key: string]: string;
54
+ };
55
+ children?: undefined;
56
+ }, "label" | "isDisabled" | "dataAttributes">;
57
+ };
58
+ FormSecondaryButton: {
59
+ (props: {
60
+ label: string | {
61
+ id: string;
62
+ description?: string | object | undefined;
63
+ defaultMessage?: string | undefined;
64
+ };
65
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
66
+ isDisabled: boolean;
67
+ dataAttributes: {
68
+ [key: string]: string;
69
+ };
70
+ children?: undefined;
71
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
72
+ displayName: string;
73
+ defaultProps: Pick<{
74
+ label: string | {
75
+ id: string;
76
+ description?: string | object | undefined;
77
+ defaultMessage?: string | undefined;
78
+ };
79
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
80
+ isDisabled: boolean;
81
+ dataAttributes: {
82
+ [key: string]: string;
83
+ };
84
+ children?: undefined;
85
+ }, "label" | "isDisabled" | "dataAttributes">;
86
+ };
87
+ FormDeleteButton: {
88
+ (props: {
89
+ label: string | {
90
+ id: string;
91
+ description?: string | object | undefined;
92
+ defaultMessage?: string | undefined;
93
+ };
94
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
95
+ isDisabled: boolean;
96
+ dataAttributes: {
97
+ [key: string]: string;
98
+ };
99
+ children?: undefined;
100
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
101
+ displayName: string;
102
+ defaultProps: Pick<{
103
+ label: string | {
104
+ id: string;
105
+ description?: string | object | undefined;
106
+ defaultMessage?: string | undefined;
107
+ };
108
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
109
+ isDisabled: boolean;
110
+ dataAttributes: {
111
+ [key: string]: string;
112
+ };
113
+ children?: undefined;
114
+ }, "label" | "isDisabled" | "dataAttributes">;
115
+ };
116
+ Intl: {
117
+ cancel: {
118
+ id: string;
119
+ defaultMessage: string;
120
+ };
121
+ revert: {
122
+ id: string;
123
+ defaultMessage: string;
124
+ };
125
+ confirm: {
126
+ id: string;
127
+ defaultMessage: string;
128
+ };
129
+ save: {
130
+ id: string;
131
+ defaultMessage: string;
132
+ };
133
+ update: {
134
+ id: string;
135
+ defaultMessage: string;
136
+ };
137
+ create: {
138
+ id: string;
139
+ defaultMessage: string;
140
+ };
141
+ delete: {
142
+ id: string;
143
+ defaultMessage: string;
144
+ };
145
+ add: {
146
+ id: string;
147
+ defaultMessage: string;
148
+ };
149
+ remove: {
150
+ id: string;
151
+ defaultMessage: string;
152
+ };
153
+ close: {
154
+ id: string;
155
+ defaultMessage: string;
156
+ };
157
+ edit: {
158
+ id: string;
159
+ defaultMessage: string;
160
+ };
161
+ open: {
162
+ id: string;
163
+ defaultMessage: string;
164
+ };
165
+ activate: {
166
+ id: string;
167
+ defaultMessage: string;
168
+ };
169
+ deactivate: {
170
+ id: string;
171
+ defaultMessage: string;
172
+ };
173
+ active: {
174
+ id: string;
175
+ defaultMessage: string;
176
+ };
177
+ inactive: {
178
+ id: string;
179
+ defaultMessage: string;
180
+ };
181
+ enable: {
182
+ id: string;
183
+ defaultMessage: string;
184
+ };
185
+ disable: {
186
+ id: string;
187
+ defaultMessage: string;
188
+ };
189
+ };
190
+ };
191
+ export default CustomFormModalPage;
@@ -1 +1 @@
1
- export { default } from './custom-form-modal-page';
1
+ export { default } from './custom-form-modal-page';
@@ -1,114 +1,116 @@
1
- import { SyntheticEvent, ReactNode, ReactElement } 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 Props = {
9
- level?: number;
10
- title: string;
11
- isOpen: boolean;
12
- onClose?: (event: SyntheticEvent) => void;
13
- children: ReactNode;
14
- zIndex?: number;
15
- baseZIndex?: number;
16
- getParentSelector?: () => HTMLElement;
17
- shouldDelayOnClose?: boolean;
18
- topBarCurrentPathLabel?: string;
19
- topBarPreviousPathLabel?: Label;
20
- subtitle?: string | ReactElement;
21
- isPrimaryButtonDisabled?: boolean;
22
- isSecondaryButtonDisabled?: boolean;
23
- dataAttributesPrimaryButton?: {
24
- [key: string]: string;
25
- };
26
- dataAttributesSecondaryButton?: {
27
- [key: string]: string;
28
- };
29
- labelPrimaryButton?: Label;
30
- labelSecondaryButton?: Label;
31
- onPrimaryButtonClick: (event: SyntheticEvent) => void;
32
- onSecondaryButtonClick: (event: SyntheticEvent) => void;
33
- hideControls: boolean;
34
- };
35
- declare const FormModalPage: {
36
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
37
- displayName: string;
38
- defaultProps: Pick<Props, "hideControls">;
39
- Intl: {
40
- cancel: {
41
- id: string;
42
- defaultMessage: string;
43
- };
44
- revert: {
45
- id: string;
46
- defaultMessage: string;
47
- };
48
- confirm: {
49
- id: string;
50
- defaultMessage: string;
51
- };
52
- save: {
53
- id: string;
54
- defaultMessage: string;
55
- };
56
- update: {
57
- id: string;
58
- defaultMessage: string;
59
- };
60
- create: {
61
- id: string;
62
- defaultMessage: string;
63
- };
64
- delete: {
65
- id: string;
66
- defaultMessage: string;
67
- };
68
- add: {
69
- id: string;
70
- defaultMessage: string;
71
- };
72
- remove: {
73
- id: string;
74
- defaultMessage: string;
75
- };
76
- close: {
77
- id: string;
78
- defaultMessage: string;
79
- };
80
- edit: {
81
- id: string;
82
- defaultMessage: string;
83
- };
84
- open: {
85
- id: string;
86
- defaultMessage: string;
87
- };
88
- activate: {
89
- id: string;
90
- defaultMessage: string;
91
- };
92
- deactivate: {
93
- id: string;
94
- defaultMessage: string;
95
- };
96
- active: {
97
- id: string;
98
- defaultMessage: string;
99
- };
100
- inactive: {
101
- id: string;
102
- defaultMessage: string;
103
- };
104
- enable: {
105
- id: string;
106
- defaultMessage: string;
107
- };
108
- disable: {
109
- id: string;
110
- defaultMessage: string;
111
- };
112
- };
113
- };
114
- export default FormModalPage;
1
+ import type { CSSObject } from '@emotion/react';
2
+ import { SyntheticEvent, ReactNode, ReactElement } from 'react';
3
+ declare type MessageDescriptor = {
4
+ id: string;
5
+ description?: string | object;
6
+ defaultMessage?: string;
7
+ };
8
+ declare type Label = string | MessageDescriptor;
9
+ declare type Props = {
10
+ level?: number;
11
+ title: string;
12
+ isOpen: boolean;
13
+ onClose?: (event: SyntheticEvent) => void;
14
+ children: ReactNode;
15
+ zIndex?: number;
16
+ baseZIndex?: number;
17
+ getParentSelector?: () => HTMLElement;
18
+ shouldDelayOnClose?: boolean;
19
+ afterOpenStyles?: string | CSSObject;
20
+ topBarCurrentPathLabel?: string;
21
+ topBarPreviousPathLabel?: Label;
22
+ subtitle?: string | ReactElement;
23
+ isPrimaryButtonDisabled?: boolean;
24
+ isSecondaryButtonDisabled?: boolean;
25
+ dataAttributesPrimaryButton?: {
26
+ [key: string]: string;
27
+ };
28
+ dataAttributesSecondaryButton?: {
29
+ [key: string]: string;
30
+ };
31
+ labelPrimaryButton?: Label;
32
+ labelSecondaryButton?: Label;
33
+ onPrimaryButtonClick: (event: SyntheticEvent) => void;
34
+ onSecondaryButtonClick: (event: SyntheticEvent) => void;
35
+ hideControls: boolean;
36
+ };
37
+ declare const FormModalPage: {
38
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
39
+ displayName: string;
40
+ defaultProps: Pick<Props, "hideControls">;
41
+ Intl: {
42
+ cancel: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ };
46
+ revert: {
47
+ id: string;
48
+ defaultMessage: string;
49
+ };
50
+ confirm: {
51
+ id: string;
52
+ defaultMessage: string;
53
+ };
54
+ save: {
55
+ id: string;
56
+ defaultMessage: string;
57
+ };
58
+ update: {
59
+ id: string;
60
+ defaultMessage: string;
61
+ };
62
+ create: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ };
66
+ delete: {
67
+ id: string;
68
+ defaultMessage: string;
69
+ };
70
+ add: {
71
+ id: string;
72
+ defaultMessage: string;
73
+ };
74
+ remove: {
75
+ id: string;
76
+ defaultMessage: string;
77
+ };
78
+ close: {
79
+ id: string;
80
+ defaultMessage: string;
81
+ };
82
+ edit: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ };
86
+ open: {
87
+ id: string;
88
+ defaultMessage: string;
89
+ };
90
+ activate: {
91
+ id: string;
92
+ defaultMessage: string;
93
+ };
94
+ deactivate: {
95
+ id: string;
96
+ defaultMessage: string;
97
+ };
98
+ active: {
99
+ id: string;
100
+ defaultMessage: string;
101
+ };
102
+ inactive: {
103
+ id: string;
104
+ defaultMessage: string;
105
+ };
106
+ enable: {
107
+ id: string;
108
+ defaultMessage: string;
109
+ };
110
+ disable: {
111
+ id: string;
112
+ defaultMessage: string;
113
+ };
114
+ };
115
+ };
116
+ export default FormModalPage;
@@ -1 +1 @@
1
- export { default } from './form-modal-page';
1
+ export { default } from './form-modal-page';
@@ -1 +1 @@
1
- export { default } from './info-modal-page';
1
+ export { default } from './info-modal-page';