@commercetools-frontend/application-components 0.0.0-FEC-157-preview-releases-20241126230331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/commercetools-frontend-application-components.cjs.d.ts +2 -0
- package/dist/commercetools-frontend-application-components.cjs.d.ts.map +1 -0
- package/dist/commercetools-frontend-application-components.cjs.dev.js +2878 -0
- package/dist/commercetools-frontend-application-components.cjs.js +7 -0
- package/dist/commercetools-frontend-application-components.cjs.prod.js +2168 -0
- package/dist/commercetools-frontend-application-components.esm.js +2807 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/custom-view-loader.d.ts +8 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/messages.d.ts +7 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/custom-views-selector.d.ts +10 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/messages.d.ts +7 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/use-custom-views-connector.d.ts +11 -0
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +237 -0
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +180 -0
- package/dist/declarations/src/components/detail-pages/form-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/info-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +59 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +240 -0
- package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +111 -0
- package/dist/declarations/src/components/dialogs/confirmation-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +113 -0
- package/dist/declarations/src/components/dialogs/form-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/info-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/info-dialog/info-dialog.d.ts +19 -0
- package/dist/declarations/src/components/dialogs/internals/dialog-container.d.ts +18 -0
- package/dist/declarations/src/components/dialogs/internals/dialog-content.d.ts +6 -0
- package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +29 -0
- package/dist/declarations/src/components/dialogs/internals/dialog-header.d.ts +15 -0
- package/dist/declarations/src/components/dialogs/internals/dialog.styles.d.ts +8 -0
- package/dist/declarations/src/components/drawer/drawer.d.ts +181 -0
- package/dist/declarations/src/components/drawer/index.d.ts +1 -0
- package/dist/declarations/src/components/internals/default-form-buttons.d.ts +38 -0
- package/dist/declarations/src/components/internals/messages.d.ts +11 -0
- package/dist/declarations/src/components/internals/page-header-title.d.ts +15 -0
- package/dist/declarations/src/components/internals/page-header.d.ts +15 -0
- package/dist/declarations/src/components/internals/page-top-bar.d.ts +20 -0
- package/dist/declarations/src/components/internals/page.styles.d.ts +13 -0
- package/dist/declarations/src/components/internals/tabular-page.d.ts +27 -0
- package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +233 -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 +174 -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 +45 -0
- package/dist/declarations/src/components/main-pages/internals/main-page.styles.d.ts +13 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +228 -0
- package/dist/declarations/src/components/maintenance-page-layout/index.d.ts +1 -0
- package/dist/declarations/src/components/maintenance-page-layout/maintenance-page-layout.d.ts +15 -0
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +207 -0
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +129 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/info-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +38 -0
- package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +40 -0
- package/dist/declarations/src/components/modal-pages/internals/modal-page.styles.d.ts +31 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +211 -0
- package/dist/declarations/src/components/modal-pages/utils/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/utils/modal-page-top-bar.d.ts +27 -0
- package/dist/declarations/src/components/page-content-containers/page-content-full/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-full/page-content-full.d.ts +6 -0
- package/dist/declarations/src/components/page-content-containers/page-content-narrow/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-narrow/page-content-narrow.d.ts +6 -0
- package/dist/declarations/src/components/page-content-containers/page-content-wide/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +12 -0
- package/dist/declarations/src/components/page-not-found/index.d.ts +1 -0
- package/dist/declarations/src/components/page-not-found/messages.d.ts +11 -0
- package/dist/declarations/src/components/page-not-found/page-not-found.d.ts +5 -0
- package/dist/declarations/src/components/page-unauthorized/index.d.ts +1 -0
- package/dist/declarations/src/components/page-unauthorized/messages.d.ts +15 -0
- package/dist/declarations/src/components/page-unauthorized/page-unauthorized.d.ts +5 -0
- package/dist/declarations/src/components/portals-container/index.d.ts +1 -0
- package/dist/declarations/src/components/portals-container/portals-container.d.ts +44 -0
- package/dist/declarations/src/components/project-stamp/messages.d.ts +19 -0
- package/dist/declarations/src/components/project-stamp/project-stamp.d.ts +9 -0
- package/dist/declarations/src/components/public-page-layout/index.d.ts +8 -0
- package/dist/declarations/src/components/public-page-layout/public-page-layout.d.ts +26 -0
- package/dist/declarations/src/components/public-page-layout/public-page-layout.styles.d.ts +13 -0
- package/dist/declarations/src/components/tab-header/index.d.ts +1 -0
- package/dist/declarations/src/components/tab-header/tab-header.d.ts +37 -0
- package/dist/declarations/src/components/tab-header/tab.styles.d.ts +2 -0
- package/dist/declarations/src/hooks/use-custom-view-locator-selector/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-custom-view-locator-selector/use-custom-view-locator-selector.d.ts +5 -0
- package/dist/declarations/src/hooks/use-modal-state/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-modal-state/use-modal-state.d.ts +6 -0
- package/dist/declarations/src/index.d.ts +35 -0
- package/dist/declarations/src/theming.d.ts +13 -0
- package/dist/declarations/src/types/generated/settings.d.ts +2116 -0
- package/dist/declarations/src/utils/filter-data-attributes.d.ts +1 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/dist/public-page-layout-3fba954d.esm.js +110 -0
- package/dist/public-page-layout-81be35b4.cjs.dev.js +128 -0
- package/dist/public-page-layout-d365f38f.cjs.prod.js +108 -0
- package/materials/media-queries.css +15 -0
- package/package.json +103 -0
package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode, MouseEvent, KeyboardEvent } from 'react';
|
|
2
|
+
import { LocationDescriptor } from 'history';
|
|
3
|
+
type MessageDescriptor = {
|
|
4
|
+
id: string;
|
|
5
|
+
description?: string | object;
|
|
6
|
+
defaultMessage?: string;
|
|
7
|
+
values?: Record<string, ReactNode>;
|
|
8
|
+
};
|
|
9
|
+
type TTabularDetailPageProps = {
|
|
10
|
+
/**
|
|
11
|
+
* The title of the page.
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The subtitle of the page.
|
|
16
|
+
*/
|
|
17
|
+
subtitle?: string | ReactElement;
|
|
18
|
+
/**
|
|
19
|
+
* Replaces the title/subtitle row with a custom one (for special use cases)
|
|
20
|
+
*/
|
|
21
|
+
customTitleRow?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Any React node displayed as the tab panel.
|
|
24
|
+
*/
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* A composition of tab components.
|
|
28
|
+
*/
|
|
29
|
+
tabControls: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Any React node to be rendered as the form controls
|
|
32
|
+
*/
|
|
33
|
+
formControls?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Determines if the form controls should be rendered.
|
|
36
|
+
*/
|
|
37
|
+
hideControls: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* These codes are used to configure which Custom Views are available for every tab.
|
|
40
|
+
*/
|
|
41
|
+
customViewLocatorCodes?: Record<string, LocationDescriptor>;
|
|
42
|
+
/**
|
|
43
|
+
* A return route path label.
|
|
44
|
+
*/
|
|
45
|
+
previousPathLabel?: string | MessageDescriptor;
|
|
46
|
+
/**
|
|
47
|
+
* Function called when back button is pressed.
|
|
48
|
+
*/
|
|
49
|
+
onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
50
|
+
};
|
|
51
|
+
declare const TabularDetailPage: {
|
|
52
|
+
(props: TTabularDetailPageProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
53
|
+
displayName: string;
|
|
54
|
+
defaultProps: Pick<TTabularDetailPageProps, "hideControls">;
|
|
55
|
+
FormPrimaryButton: {
|
|
56
|
+
(props: {
|
|
57
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
label: string | {
|
|
60
|
+
id: string;
|
|
61
|
+
description?: string | object | undefined;
|
|
62
|
+
defaultMessage?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
65
|
+
isDisabled: boolean;
|
|
66
|
+
dataAttributes: {
|
|
67
|
+
[key: string]: string;
|
|
68
|
+
};
|
|
69
|
+
children?: undefined;
|
|
70
|
+
}): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
defaultProps: Pick<{
|
|
73
|
+
label: string | {
|
|
74
|
+
id: string;
|
|
75
|
+
description?: string | object | undefined;
|
|
76
|
+
defaultMessage?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
79
|
+
isDisabled: boolean;
|
|
80
|
+
dataAttributes: {
|
|
81
|
+
[key: string]: string;
|
|
82
|
+
};
|
|
83
|
+
children?: undefined;
|
|
84
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
85
|
+
};
|
|
86
|
+
FormSecondaryButton: {
|
|
87
|
+
(props: {
|
|
88
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
89
|
+
} & {
|
|
90
|
+
label: string | {
|
|
91
|
+
id: string;
|
|
92
|
+
description?: string | object | undefined;
|
|
93
|
+
defaultMessage?: string | undefined;
|
|
94
|
+
};
|
|
95
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
96
|
+
isDisabled: boolean;
|
|
97
|
+
dataAttributes: {
|
|
98
|
+
[key: string]: string;
|
|
99
|
+
};
|
|
100
|
+
children?: undefined;
|
|
101
|
+
}): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
102
|
+
displayName: string;
|
|
103
|
+
defaultProps: Pick<{
|
|
104
|
+
iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
label: string | {
|
|
107
|
+
id: string;
|
|
108
|
+
description?: string | object | undefined;
|
|
109
|
+
defaultMessage?: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
112
|
+
isDisabled: boolean;
|
|
113
|
+
dataAttributes: {
|
|
114
|
+
[key: string]: string;
|
|
115
|
+
};
|
|
116
|
+
children?: undefined;
|
|
117
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
118
|
+
};
|
|
119
|
+
FormDeleteButton: {
|
|
120
|
+
(props: {
|
|
121
|
+
label: string | {
|
|
122
|
+
id: string;
|
|
123
|
+
description?: string | object | undefined;
|
|
124
|
+
defaultMessage?: string | undefined;
|
|
125
|
+
};
|
|
126
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
127
|
+
isDisabled: boolean;
|
|
128
|
+
dataAttributes: {
|
|
129
|
+
[key: string]: string;
|
|
130
|
+
};
|
|
131
|
+
children?: undefined;
|
|
132
|
+
}): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
133
|
+
displayName: string;
|
|
134
|
+
defaultProps: Pick<{
|
|
135
|
+
label: string | {
|
|
136
|
+
id: string;
|
|
137
|
+
description?: string | object | undefined;
|
|
138
|
+
defaultMessage?: string | undefined;
|
|
139
|
+
};
|
|
140
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
141
|
+
isDisabled: boolean;
|
|
142
|
+
dataAttributes: {
|
|
143
|
+
[key: string]: string;
|
|
144
|
+
};
|
|
145
|
+
children?: undefined;
|
|
146
|
+
}, "label" | "isDisabled" | "dataAttributes">;
|
|
147
|
+
};
|
|
148
|
+
PageHeaderTitle: {
|
|
149
|
+
(props: {
|
|
150
|
+
title: string;
|
|
151
|
+
titleSize: "big" | "small" | "medium";
|
|
152
|
+
truncate: boolean;
|
|
153
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
154
|
+
children?: undefined;
|
|
155
|
+
}): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
156
|
+
displayName: string;
|
|
157
|
+
defaultProps: Pick<{
|
|
158
|
+
title: string;
|
|
159
|
+
titleSize: "big" | "small" | "medium";
|
|
160
|
+
truncate: boolean;
|
|
161
|
+
subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
162
|
+
children?: undefined;
|
|
163
|
+
}, "truncate" | "titleSize">;
|
|
164
|
+
};
|
|
165
|
+
Intl: {
|
|
166
|
+
cancel: {
|
|
167
|
+
id: string;
|
|
168
|
+
defaultMessage: string;
|
|
169
|
+
};
|
|
170
|
+
revert: {
|
|
171
|
+
id: string;
|
|
172
|
+
defaultMessage: string;
|
|
173
|
+
};
|
|
174
|
+
confirm: {
|
|
175
|
+
id: string;
|
|
176
|
+
defaultMessage: string;
|
|
177
|
+
};
|
|
178
|
+
save: {
|
|
179
|
+
id: string;
|
|
180
|
+
defaultMessage: string;
|
|
181
|
+
};
|
|
182
|
+
update: {
|
|
183
|
+
id: string;
|
|
184
|
+
defaultMessage: string;
|
|
185
|
+
};
|
|
186
|
+
create: {
|
|
187
|
+
id: string;
|
|
188
|
+
defaultMessage: string;
|
|
189
|
+
};
|
|
190
|
+
delete: {
|
|
191
|
+
id: string;
|
|
192
|
+
defaultMessage: string;
|
|
193
|
+
};
|
|
194
|
+
add: {
|
|
195
|
+
id: string;
|
|
196
|
+
defaultMessage: string;
|
|
197
|
+
};
|
|
198
|
+
remove: {
|
|
199
|
+
id: string;
|
|
200
|
+
defaultMessage: string;
|
|
201
|
+
};
|
|
202
|
+
close: {
|
|
203
|
+
id: string;
|
|
204
|
+
defaultMessage: string;
|
|
205
|
+
};
|
|
206
|
+
edit: {
|
|
207
|
+
id: string;
|
|
208
|
+
defaultMessage: string;
|
|
209
|
+
};
|
|
210
|
+
open: {
|
|
211
|
+
id: string;
|
|
212
|
+
defaultMessage: string;
|
|
213
|
+
};
|
|
214
|
+
activate: {
|
|
215
|
+
id: string;
|
|
216
|
+
defaultMessage: string;
|
|
217
|
+
};
|
|
218
|
+
deactivate: {
|
|
219
|
+
id: string;
|
|
220
|
+
defaultMessage: string;
|
|
221
|
+
};
|
|
222
|
+
active: {
|
|
223
|
+
id: string;
|
|
224
|
+
defaultMessage: string;
|
|
225
|
+
};
|
|
226
|
+
inactive: {
|
|
227
|
+
id: string;
|
|
228
|
+
defaultMessage: string;
|
|
229
|
+
};
|
|
230
|
+
enable: {
|
|
231
|
+
id: string;
|
|
232
|
+
defaultMessage: string;
|
|
233
|
+
};
|
|
234
|
+
disable: {
|
|
235
|
+
id: string;
|
|
236
|
+
defaultMessage: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
export default TabularDetailPage;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
type Label = string | MessageDescriptor;
|
|
8
|
+
export type TConfirmationDialogProps = {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose?: (event: SyntheticEvent) => void;
|
|
11
|
+
title: ReactNode;
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
size?: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
|
|
14
|
+
zIndex?: number;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
labelSecondary: Label;
|
|
17
|
+
labelPrimary: Label;
|
|
18
|
+
isPrimaryButtonDisabled?: boolean;
|
|
19
|
+
onCancel: (event: SyntheticEvent) => void;
|
|
20
|
+
onConfirm: (event: SyntheticEvent) => void;
|
|
21
|
+
dataAttributesSecondaryButton?: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
dataAttributesPrimaryButton?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
getParentSelector?: () => HTMLElement;
|
|
28
|
+
};
|
|
29
|
+
declare const ConfirmationDialog: {
|
|
30
|
+
(props: TConfirmationDialogProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
defaultProps: Pick<TConfirmationDialogProps, "labelSecondary" | "labelPrimary">;
|
|
33
|
+
Intl: {
|
|
34
|
+
cancel: {
|
|
35
|
+
id: string;
|
|
36
|
+
defaultMessage: string;
|
|
37
|
+
};
|
|
38
|
+
revert: {
|
|
39
|
+
id: string;
|
|
40
|
+
defaultMessage: string;
|
|
41
|
+
};
|
|
42
|
+
confirm: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
};
|
|
46
|
+
save: {
|
|
47
|
+
id: string;
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
};
|
|
50
|
+
update: {
|
|
51
|
+
id: string;
|
|
52
|
+
defaultMessage: string;
|
|
53
|
+
};
|
|
54
|
+
create: {
|
|
55
|
+
id: string;
|
|
56
|
+
defaultMessage: string;
|
|
57
|
+
};
|
|
58
|
+
delete: {
|
|
59
|
+
id: string;
|
|
60
|
+
defaultMessage: string;
|
|
61
|
+
};
|
|
62
|
+
add: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
};
|
|
66
|
+
remove: {
|
|
67
|
+
id: string;
|
|
68
|
+
defaultMessage: string;
|
|
69
|
+
};
|
|
70
|
+
close: {
|
|
71
|
+
id: string;
|
|
72
|
+
defaultMessage: string;
|
|
73
|
+
};
|
|
74
|
+
edit: {
|
|
75
|
+
id: string;
|
|
76
|
+
defaultMessage: string;
|
|
77
|
+
};
|
|
78
|
+
open: {
|
|
79
|
+
id: string;
|
|
80
|
+
defaultMessage: string;
|
|
81
|
+
};
|
|
82
|
+
activate: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
};
|
|
86
|
+
deactivate: {
|
|
87
|
+
id: string;
|
|
88
|
+
defaultMessage: string;
|
|
89
|
+
};
|
|
90
|
+
active: {
|
|
91
|
+
id: string;
|
|
92
|
+
defaultMessage: string;
|
|
93
|
+
};
|
|
94
|
+
inactive: {
|
|
95
|
+
id: string;
|
|
96
|
+
defaultMessage: string;
|
|
97
|
+
};
|
|
98
|
+
enable: {
|
|
99
|
+
id: string;
|
|
100
|
+
defaultMessage: string;
|
|
101
|
+
};
|
|
102
|
+
disable: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
TextTitle: (props: {
|
|
108
|
+
title: string;
|
|
109
|
+
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
110
|
+
};
|
|
111
|
+
export default ConfirmationDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type TConfirmationDialogProps } from './confirmation-dialog';
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { SyntheticEvent, ReactNode, ReactElement } from 'react';
|
|
2
|
+
type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
type Label = string | MessageDescriptor;
|
|
8
|
+
export type TFormDialogProps = {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose?: (event: SyntheticEvent) => void;
|
|
11
|
+
title: ReactNode;
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
size?: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
|
|
14
|
+
zIndex?: number;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
labelSecondary: Label;
|
|
17
|
+
labelPrimary: Label;
|
|
18
|
+
isPrimaryButtonDisabled?: boolean;
|
|
19
|
+
onSecondaryButtonClick: (event: SyntheticEvent) => void;
|
|
20
|
+
onPrimaryButtonClick: (event: SyntheticEvent) => void;
|
|
21
|
+
dataAttributesSecondaryButton?: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
dataAttributesPrimaryButton?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
getParentSelector?: () => HTMLElement;
|
|
28
|
+
iconLeftSecondaryButton?: ReactElement;
|
|
29
|
+
footerContent?: ReactNode;
|
|
30
|
+
};
|
|
31
|
+
declare const FormDialog: {
|
|
32
|
+
(props: TFormDialogProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
defaultProps: Pick<TFormDialogProps, "labelSecondary" | "labelPrimary">;
|
|
35
|
+
Intl: {
|
|
36
|
+
cancel: {
|
|
37
|
+
id: string;
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
};
|
|
40
|
+
revert: {
|
|
41
|
+
id: string;
|
|
42
|
+
defaultMessage: string;
|
|
43
|
+
};
|
|
44
|
+
confirm: {
|
|
45
|
+
id: string;
|
|
46
|
+
defaultMessage: string;
|
|
47
|
+
};
|
|
48
|
+
save: {
|
|
49
|
+
id: string;
|
|
50
|
+
defaultMessage: string;
|
|
51
|
+
};
|
|
52
|
+
update: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
};
|
|
56
|
+
create: {
|
|
57
|
+
id: string;
|
|
58
|
+
defaultMessage: string;
|
|
59
|
+
};
|
|
60
|
+
delete: {
|
|
61
|
+
id: string;
|
|
62
|
+
defaultMessage: string;
|
|
63
|
+
};
|
|
64
|
+
add: {
|
|
65
|
+
id: string;
|
|
66
|
+
defaultMessage: string;
|
|
67
|
+
};
|
|
68
|
+
remove: {
|
|
69
|
+
id: string;
|
|
70
|
+
defaultMessage: string;
|
|
71
|
+
};
|
|
72
|
+
close: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
};
|
|
76
|
+
edit: {
|
|
77
|
+
id: string;
|
|
78
|
+
defaultMessage: string;
|
|
79
|
+
};
|
|
80
|
+
open: {
|
|
81
|
+
id: string;
|
|
82
|
+
defaultMessage: string;
|
|
83
|
+
};
|
|
84
|
+
activate: {
|
|
85
|
+
id: string;
|
|
86
|
+
defaultMessage: string;
|
|
87
|
+
};
|
|
88
|
+
deactivate: {
|
|
89
|
+
id: string;
|
|
90
|
+
defaultMessage: string;
|
|
91
|
+
};
|
|
92
|
+
active: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
};
|
|
96
|
+
inactive: {
|
|
97
|
+
id: string;
|
|
98
|
+
defaultMessage: string;
|
|
99
|
+
};
|
|
100
|
+
enable: {
|
|
101
|
+
id: string;
|
|
102
|
+
defaultMessage: string;
|
|
103
|
+
};
|
|
104
|
+
disable: {
|
|
105
|
+
id: string;
|
|
106
|
+
defaultMessage: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
TextTitle: (props: {
|
|
110
|
+
title: string;
|
|
111
|
+
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
112
|
+
};
|
|
113
|
+
export default FormDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type TFormDialogProps } from './form-dialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type TInfoDialogProps } from './info-dialog';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SyntheticEvent, ReactNode } from 'react';
|
|
2
|
+
export type TInfoDialogProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose?: (event: SyntheticEvent) => void;
|
|
5
|
+
size?: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
|
|
6
|
+
zIndex?: number;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
'aria-label'?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
getParentSelector?: () => HTMLElement;
|
|
11
|
+
};
|
|
12
|
+
declare const InfoDialog: {
|
|
13
|
+
(props: TInfoDialogProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
TextTitle: (props: {
|
|
16
|
+
title: string;
|
|
17
|
+
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export default InfoDialog;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
declare const getDefaultParentSelector: () => HTMLElement;
|
|
3
|
+
type Props = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose?: (event: SyntheticEvent) => void;
|
|
6
|
+
size: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
'aria-label'?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
getParentSelector: typeof getDefaultParentSelector;
|
|
12
|
+
};
|
|
13
|
+
declare const DialogContainer: {
|
|
14
|
+
(props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
defaultProps: Pick<Props, "size" | "getParentSelector">;
|
|
17
|
+
};
|
|
18
|
+
export default DialogContainer;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DialogContent: 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 default DialogContent;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactElement, SyntheticEvent, ReactNode } from 'react';
|
|
2
|
+
type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
type Label = string | MessageDescriptor;
|
|
8
|
+
type Props = {
|
|
9
|
+
labelSecondary: Label;
|
|
10
|
+
labelPrimary: Label;
|
|
11
|
+
onCancel: (event: SyntheticEvent) => void;
|
|
12
|
+
onConfirm: (event: SyntheticEvent) => void;
|
|
13
|
+
isPrimaryButtonDisabled: boolean;
|
|
14
|
+
dataAttributesPrimaryButton: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
dataAttributesSecondaryButton: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
children?: never;
|
|
21
|
+
iconLeftSecondaryButton?: ReactElement;
|
|
22
|
+
footerContent?: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
declare const DialogFooter: {
|
|
25
|
+
(props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
defaultProps: Pick<Props, "isPrimaryButtonDisabled" | "dataAttributesSecondaryButton" | "dataAttributesPrimaryButton">;
|
|
28
|
+
};
|
|
29
|
+
export default DialogFooter;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
onClose?: (event: SyntheticEvent) => void;
|
|
5
|
+
children?: never;
|
|
6
|
+
};
|
|
7
|
+
type TTextTitleProps = {
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const TextTitle: (props: TTextTitleProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
11
|
+
declare const DialogHeader: {
|
|
12
|
+
(props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default DialogHeader;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
type StyleProps = {
|
|
3
|
+
size: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
|
|
4
|
+
zIndex?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const getModalContentStyles: (props: StyleProps) => SerializedStyles;
|
|
7
|
+
export declare const getOverlayStyles: (props: StyleProps) => SerializedStyles;
|
|
8
|
+
export {};
|