@commercetools-frontend/application-components 0.0.0-CRAFT-1791-20251006162610

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 (76) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/dist/commercetools-frontend-application-components.cjs.d.ts +2 -0
  4. package/dist/commercetools-frontend-application-components.cjs.dev.js +2303 -0
  5. package/dist/commercetools-frontend-application-components.cjs.js +7 -0
  6. package/dist/commercetools-frontend-application-components.cjs.prod.js +2108 -0
  7. package/dist/commercetools-frontend-application-components.esm.js +2236 -0
  8. package/dist/custom-views-selector-03d0524e.cjs.prod.js +245 -0
  9. package/dist/custom-views-selector-9f964e68.esm.js +245 -0
  10. package/dist/custom-views-selector-d167f024.cjs.dev.js +266 -0
  11. package/dist/declarations/src/components/custom-views/custom-view-loader/custom-view-loader.d.ts +9 -0
  12. package/dist/declarations/src/components/custom-views/custom-view-loader/index.d.ts +1 -0
  13. package/dist/declarations/src/components/custom-views/custom-views-selector/index.d.ts +2 -0
  14. package/dist/declarations/src/components/custom-views/custom-views-selector/types.d.ts +12 -0
  15. package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +186 -0
  16. package/dist/declarations/src/components/detail-pages/custom-form-detail-page/index.d.ts +1 -0
  17. package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +171 -0
  18. package/dist/declarations/src/components/detail-pages/form-detail-page/index.d.ts +1 -0
  19. package/dist/declarations/src/components/detail-pages/info-detail-page/index.d.ts +1 -0
  20. package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +52 -0
  21. package/dist/declarations/src/components/detail-pages/tabular-detail-page/index.d.ts +1 -0
  22. package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +191 -0
  23. package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +110 -0
  24. package/dist/declarations/src/components/dialogs/confirmation-dialog/index.d.ts +1 -0
  25. package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +114 -0
  26. package/dist/declarations/src/components/dialogs/form-dialog/index.d.ts +1 -0
  27. package/dist/declarations/src/components/dialogs/info-dialog/index.d.ts +1 -0
  28. package/dist/declarations/src/components/dialogs/info-dialog/info-dialog.d.ts +19 -0
  29. package/dist/declarations/src/components/drawer/drawer.d.ts +153 -0
  30. package/dist/declarations/src/components/drawer/index.d.ts +1 -0
  31. package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +177 -0
  32. package/dist/declarations/src/components/main-pages/custom-form-main-page/index.d.ts +1 -0
  33. package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +163 -0
  34. package/dist/declarations/src/components/main-pages/form-main-page/index.d.ts +1 -0
  35. package/dist/declarations/src/components/main-pages/info-main-page/index.d.ts +1 -0
  36. package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +38 -0
  37. package/dist/declarations/src/components/main-pages/tabular-main-page/index.d.ts +1 -0
  38. package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +177 -0
  39. package/dist/declarations/src/components/maintenance-page-layout/index.d.ts +1 -0
  40. package/dist/declarations/src/components/maintenance-page-layout/maintenance-page-layout.d.ts +15 -0
  41. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +166 -0
  42. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/index.d.ts +1 -0
  43. package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +127 -0
  44. package/dist/declarations/src/components/modal-pages/form-modal-page/index.d.ts +1 -0
  45. package/dist/declarations/src/components/modal-pages/info-modal-page/index.d.ts +1 -0
  46. package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +42 -0
  47. package/dist/declarations/src/components/modal-pages/tabular-modal-page/index.d.ts +1 -0
  48. package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +169 -0
  49. package/dist/declarations/src/components/modal-pages/utils/index.d.ts +1 -0
  50. package/dist/declarations/src/components/modal-pages/utils/modal-page-top-bar.d.ts +26 -0
  51. package/dist/declarations/src/components/page-content-containers/page-content-full/index.d.ts +2 -0
  52. package/dist/declarations/src/components/page-content-containers/page-content-full/page-content-full.d.ts +6 -0
  53. package/dist/declarations/src/components/page-content-containers/page-content-narrow/index.d.ts +2 -0
  54. package/dist/declarations/src/components/page-content-containers/page-content-narrow/page-content-narrow.d.ts +6 -0
  55. package/dist/declarations/src/components/page-content-containers/page-content-wide/index.d.ts +2 -0
  56. package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +9 -0
  57. package/dist/declarations/src/components/page-not-found/index.d.ts +1 -0
  58. package/dist/declarations/src/components/page-not-found/page-not-found.d.ts +5 -0
  59. package/dist/declarations/src/components/page-unauthorized/index.d.ts +1 -0
  60. package/dist/declarations/src/components/page-unauthorized/page-unauthorized.d.ts +5 -0
  61. package/dist/declarations/src/components/portals-container/index.d.ts +1 -0
  62. package/dist/declarations/src/components/portals-container/portals-container.d.ts +44 -0
  63. package/dist/declarations/src/components/project-stamp/project-stamp.d.ts +9 -0
  64. package/dist/declarations/src/components/public-page-layout/index.d.ts +7 -0
  65. package/dist/declarations/src/components/tab-header/index.d.ts +1 -0
  66. package/dist/declarations/src/components/tab-header/tab-header.d.ts +36 -0
  67. package/dist/declarations/src/hooks/use-modal-state/index.d.ts +1 -0
  68. package/dist/declarations/src/hooks/use-modal-state/use-modal-state.d.ts +6 -0
  69. package/dist/declarations/src/index.d.ts +35 -0
  70. package/dist/declarations/src/theming.d.ts +15 -0
  71. package/dist/declarations/src/version.d.ts +2 -0
  72. package/dist/public-page-layout-7d1cb99f.esm.js +94 -0
  73. package/dist/public-page-layout-b182d2dd.cjs.prod.js +94 -0
  74. package/dist/public-page-layout-b92fb7e4.cjs.dev.js +103 -0
  75. package/materials/media-queries.css +15 -0
  76. package/package.json +101 -0
@@ -0,0 +1,171 @@
1
+ import type { ReactElement, ReactNode, MouseEvent, KeyboardEvent, SyntheticEvent } from 'react';
2
+ import type { TIconProps } from '@commercetools-uikit/design-system';
3
+ type MessageDescriptor = {
4
+ id: string;
5
+ description?: string | object;
6
+ defaultMessage?: string;
7
+ };
8
+ type Label = string | MessageDescriptor;
9
+ type FormDetailPageProps = {
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
+ * This code is used to configure which Custom Views are available for this page.
24
+ */
25
+ customViewLocatorCode?: string;
26
+ /**
27
+ * Any React node displayed as the content within the page.
28
+ */
29
+ children: ReactNode;
30
+ /**
31
+ * A return route path label.
32
+ */
33
+ previousPathLabel?: string | MessageDescriptor;
34
+ /**
35
+ * Function called when back button is pressed.
36
+ */
37
+ onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
38
+ /**
39
+ * Indicates whether the primary button is deactivated or not.
40
+ */
41
+ isPrimaryButtonDisabled?: boolean;
42
+ /**
43
+ * Indicates whether the secondary button is deactivated or not.
44
+ */
45
+ isSecondaryButtonDisabled?: boolean;
46
+ /**
47
+ * Use this prop to pass `data-` attributes to the primary button
48
+ */
49
+ dataAttributesPrimaryButton?: {
50
+ [key: string]: string;
51
+ };
52
+ /**
53
+ * Use this prop to pass `data-` attributes to the secondary button.
54
+ */
55
+ dataAttributesSecondaryButton?: {
56
+ [key: string]: string;
57
+ };
58
+ /**
59
+ * `Save` | The label for the primary button as a string, or as an Intl message.
60
+ */
61
+ labelPrimaryButton?: Label;
62
+ /**
63
+ * `Cancel` | The label for the secondary button as a string, or as an Intl message.
64
+ */
65
+ labelSecondaryButton?: Label;
66
+ /**
67
+ * Called when the primary button is clicked.
68
+ */
69
+ onPrimaryButtonClick: (event: SyntheticEvent) => void;
70
+ /**
71
+ * Called when the secondary button is clicked.
72
+ */
73
+ onSecondaryButtonClick: (event: SyntheticEvent) => void;
74
+ /**
75
+ * Hides the form controls.
76
+ */
77
+ hideControls?: boolean;
78
+ /**
79
+ * The Icon for the secondary button label
80
+ */
81
+ iconLeftSecondaryButton?: ReactElement<TIconProps>;
82
+ };
83
+ declare const FormDetailPage: {
84
+ ({ hideControls, ...props }: FormDetailPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
85
+ displayName: string;
86
+ PageHeaderTitle: {
87
+ ({ titleSize, truncate, ...props }: {
88
+ title: string;
89
+ titleSize?: "big" | "small" | "medium";
90
+ truncate?: boolean;
91
+ subtitle?: string | ReactElement;
92
+ children?: never;
93
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
94
+ displayName: string;
95
+ };
96
+ Intl: {
97
+ cancel: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ };
101
+ revert: {
102
+ id: string;
103
+ defaultMessage: string;
104
+ };
105
+ confirm: {
106
+ id: string;
107
+ defaultMessage: string;
108
+ };
109
+ save: {
110
+ id: string;
111
+ defaultMessage: string;
112
+ };
113
+ update: {
114
+ id: string;
115
+ defaultMessage: string;
116
+ };
117
+ create: {
118
+ id: string;
119
+ defaultMessage: string;
120
+ };
121
+ delete: {
122
+ id: string;
123
+ defaultMessage: string;
124
+ };
125
+ add: {
126
+ id: string;
127
+ defaultMessage: string;
128
+ };
129
+ remove: {
130
+ id: string;
131
+ defaultMessage: string;
132
+ };
133
+ close: {
134
+ id: string;
135
+ defaultMessage: string;
136
+ };
137
+ edit: {
138
+ id: string;
139
+ defaultMessage: string;
140
+ };
141
+ open: {
142
+ id: string;
143
+ defaultMessage: string;
144
+ };
145
+ activate: {
146
+ id: string;
147
+ defaultMessage: string;
148
+ };
149
+ deactivate: {
150
+ id: string;
151
+ defaultMessage: string;
152
+ };
153
+ active: {
154
+ id: string;
155
+ defaultMessage: string;
156
+ };
157
+ inactive: {
158
+ id: string;
159
+ defaultMessage: string;
160
+ };
161
+ enable: {
162
+ id: string;
163
+ defaultMessage: string;
164
+ };
165
+ disable: {
166
+ id: string;
167
+ defaultMessage: string;
168
+ };
169
+ };
170
+ };
171
+ export default FormDetailPage;
@@ -0,0 +1 @@
1
+ export { default } from "./form-detail-page.js";
@@ -0,0 +1 @@
1
+ export { default } from "./info-detail-page.js";
@@ -0,0 +1,52 @@
1
+ import type { ReactElement, ReactNode, MouseEvent, KeyboardEvent } from 'react';
2
+ type MessageDescriptor = {
3
+ id: string;
4
+ description?: string | object;
5
+ defaultMessage?: string;
6
+ values?: Record<string, ReactNode>;
7
+ };
8
+ type InfoDetailPageProps = {
9
+ /**
10
+ * The title of the page.
11
+ */
12
+ title?: string;
13
+ /**
14
+ * The subtitle of the page.
15
+ */
16
+ subtitle?: string | ReactElement;
17
+ /**
18
+ * Replaces the title/subtitle row with a custom one (for special use cases)
19
+ */
20
+ customTitleRow?: ReactNode;
21
+ /**
22
+ * Any React node displayed as the content within the page.
23
+ */
24
+ children: ReactNode;
25
+ /**
26
+ * A return route path label.
27
+ */
28
+ previousPathLabel?: string | MessageDescriptor;
29
+ /**
30
+ * This code is used to configure which Custom Views are available for this page.
31
+ */
32
+ customViewLocatorCode?: string;
33
+ /**
34
+ * Function called when back button is pressed.
35
+ */
36
+ onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
37
+ };
38
+ declare const InfoDetailPage: {
39
+ (props: InfoDetailPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
40
+ displayName: string;
41
+ PageHeaderTitle: {
42
+ ({ titleSize, truncate, ...props }: {
43
+ title: string;
44
+ titleSize?: "big" | "small" | "medium";
45
+ truncate?: boolean;
46
+ subtitle?: string | ReactElement;
47
+ children?: never;
48
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
49
+ displayName: string;
50
+ };
51
+ };
52
+ export default InfoDetailPage;
@@ -0,0 +1 @@
1
+ export { default } from "./tabular-detail-page.js";
@@ -0,0 +1,191 @@
1
+ import type { ReactElement, ReactNode, MouseEvent, KeyboardEvent } from 'react';
2
+ import type { TCustomViewSelectorProps } from "../../custom-views/custom-views-selector/types.js";
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?: TCustomViewSelectorProps['customViewLocatorCodes'];
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
+ ({ hideControls, ...props }: TTabularDetailPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
53
+ displayName: string;
54
+ FormPrimaryButton: {
55
+ ({ label, isDisabled, dataAttributes, ...props }: {
56
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps>;
57
+ } & {
58
+ label?: string | {
59
+ id: string;
60
+ description?: string | object;
61
+ defaultMessage?: string;
62
+ };
63
+ onClick: (event: import("react").SyntheticEvent) => void;
64
+ isDisabled?: boolean;
65
+ dataAttributes?: {
66
+ [key: string]: string;
67
+ };
68
+ children?: never;
69
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
70
+ displayName: string;
71
+ };
72
+ FormSecondaryButton: {
73
+ ({ label, isDisabled, dataAttributes, ...props }: {
74
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps>;
75
+ } & {
76
+ label?: string | {
77
+ id: string;
78
+ description?: string | object;
79
+ defaultMessage?: string;
80
+ };
81
+ onClick: (event: import("react").SyntheticEvent) => void;
82
+ isDisabled?: boolean;
83
+ dataAttributes?: {
84
+ [key: string]: string;
85
+ };
86
+ children?: never;
87
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
88
+ displayName: string;
89
+ };
90
+ FormDeleteButton: {
91
+ ({ label, isDisabled, dataAttributes, ...props }: {
92
+ label?: string | {
93
+ id: string;
94
+ description?: string | object;
95
+ defaultMessage?: string;
96
+ };
97
+ onClick: (event: import("react").SyntheticEvent) => void;
98
+ isDisabled?: boolean;
99
+ dataAttributes?: {
100
+ [key: string]: string;
101
+ };
102
+ children?: never;
103
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
104
+ displayName: string;
105
+ };
106
+ PageHeaderTitle: {
107
+ ({ titleSize, truncate, ...props }: {
108
+ title: string;
109
+ titleSize?: "big" | "small" | "medium";
110
+ truncate?: boolean;
111
+ subtitle?: string | ReactElement;
112
+ children?: never;
113
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
114
+ displayName: string;
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 TabularDetailPage;
@@ -0,0 +1,110 @@
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
+ ({ labelSecondary, labelPrimary, ...props }: TConfirmationDialogProps): import("@emotion/react/jsx-runtime").JSX.Element;
31
+ displayName: string;
32
+ Intl: {
33
+ cancel: {
34
+ id: string;
35
+ defaultMessage: string;
36
+ };
37
+ revert: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ };
41
+ confirm: {
42
+ id: string;
43
+ defaultMessage: string;
44
+ };
45
+ save: {
46
+ id: string;
47
+ defaultMessage: string;
48
+ };
49
+ update: {
50
+ id: string;
51
+ defaultMessage: string;
52
+ };
53
+ create: {
54
+ id: string;
55
+ defaultMessage: string;
56
+ };
57
+ delete: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ };
61
+ add: {
62
+ id: string;
63
+ defaultMessage: string;
64
+ };
65
+ remove: {
66
+ id: string;
67
+ defaultMessage: string;
68
+ };
69
+ close: {
70
+ id: string;
71
+ defaultMessage: string;
72
+ };
73
+ edit: {
74
+ id: string;
75
+ defaultMessage: string;
76
+ };
77
+ open: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ };
81
+ activate: {
82
+ id: string;
83
+ defaultMessage: string;
84
+ };
85
+ deactivate: {
86
+ id: string;
87
+ defaultMessage: string;
88
+ };
89
+ active: {
90
+ id: string;
91
+ defaultMessage: string;
92
+ };
93
+ inactive: {
94
+ id: string;
95
+ defaultMessage: string;
96
+ };
97
+ enable: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ };
101
+ disable: {
102
+ id: string;
103
+ defaultMessage: string;
104
+ };
105
+ };
106
+ TextTitle: (props: {
107
+ title: string;
108
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
109
+ };
110
+ export default ConfirmationDialog;
@@ -0,0 +1 @@
1
+ export { default, type TConfirmationDialogProps } from "./confirmation-dialog.js";
@@ -0,0 +1,114 @@
1
+ import type { SyntheticEvent, ReactNode, ReactElement } from 'react';
2
+ import type { TIconProps } from '@commercetools-uikit/design-system';
3
+ type MessageDescriptor = {
4
+ id: string;
5
+ description?: string | object;
6
+ defaultMessage?: string;
7
+ };
8
+ type Label = string | MessageDescriptor;
9
+ export type TFormDialogProps = {
10
+ isOpen: boolean;
11
+ onClose?: (event: SyntheticEvent) => void;
12
+ title: ReactNode;
13
+ 'aria-label'?: string;
14
+ size?: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
15
+ zIndex?: number;
16
+ children: ReactNode;
17
+ labelSecondary?: Label;
18
+ labelPrimary?: Label;
19
+ isPrimaryButtonDisabled?: boolean;
20
+ onSecondaryButtonClick: (event: SyntheticEvent) => void;
21
+ onPrimaryButtonClick: (event: SyntheticEvent) => void;
22
+ dataAttributesSecondaryButton?: {
23
+ [key: string]: string;
24
+ };
25
+ dataAttributesPrimaryButton?: {
26
+ [key: string]: string;
27
+ };
28
+ getParentSelector?: () => HTMLElement;
29
+ iconLeftSecondaryButton?: ReactElement<TIconProps>;
30
+ iconLeftPrimaryButton?: ReactElement<TIconProps>;
31
+ footerContent?: ReactNode;
32
+ };
33
+ declare const FormDialog: {
34
+ ({ labelSecondary, labelPrimary, ...props }: TFormDialogProps): import("@emotion/react/jsx-runtime").JSX.Element;
35
+ displayName: string;
36
+ Intl: {
37
+ cancel: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ };
41
+ revert: {
42
+ id: string;
43
+ defaultMessage: string;
44
+ };
45
+ confirm: {
46
+ id: string;
47
+ defaultMessage: string;
48
+ };
49
+ save: {
50
+ id: string;
51
+ defaultMessage: string;
52
+ };
53
+ update: {
54
+ id: string;
55
+ defaultMessage: string;
56
+ };
57
+ create: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ };
61
+ delete: {
62
+ id: string;
63
+ defaultMessage: string;
64
+ };
65
+ add: {
66
+ id: string;
67
+ defaultMessage: string;
68
+ };
69
+ remove: {
70
+ id: string;
71
+ defaultMessage: string;
72
+ };
73
+ close: {
74
+ id: string;
75
+ defaultMessage: string;
76
+ };
77
+ edit: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ };
81
+ open: {
82
+ id: string;
83
+ defaultMessage: string;
84
+ };
85
+ activate: {
86
+ id: string;
87
+ defaultMessage: string;
88
+ };
89
+ deactivate: {
90
+ id: string;
91
+ defaultMessage: string;
92
+ };
93
+ active: {
94
+ id: string;
95
+ defaultMessage: string;
96
+ };
97
+ inactive: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ };
101
+ enable: {
102
+ id: string;
103
+ defaultMessage: string;
104
+ };
105
+ disable: {
106
+ id: string;
107
+ defaultMessage: string;
108
+ };
109
+ };
110
+ TextTitle: (props: {
111
+ title: string;
112
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
113
+ };
114
+ export default FormDialog;
@@ -0,0 +1 @@
1
+ export { default, type TFormDialogProps } from "./form-dialog.js";
@@ -0,0 +1 @@
1
+ export { default, type TInfoDialogProps } from "./info-dialog.js";
@@ -0,0 +1,19 @@
1
+ import type { ReactNode, SyntheticEvent } 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/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ TextTitle: (props: {
16
+ title: string;
17
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
18
+ };
19
+ export default InfoDialog;