@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.
Files changed (102) 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.d.ts.map +1 -0
  5. package/dist/commercetools-frontend-application-components.cjs.dev.js +2878 -0
  6. package/dist/commercetools-frontend-application-components.cjs.js +7 -0
  7. package/dist/commercetools-frontend-application-components.cjs.prod.js +2168 -0
  8. package/dist/commercetools-frontend-application-components.esm.js +2807 -0
  9. package/dist/declarations/src/components/custom-views/custom-view-loader/custom-view-loader.d.ts +8 -0
  10. package/dist/declarations/src/components/custom-views/custom-view-loader/index.d.ts +1 -0
  11. package/dist/declarations/src/components/custom-views/custom-view-loader/messages.d.ts +7 -0
  12. package/dist/declarations/src/components/custom-views/custom-views-selector/custom-views-selector.d.ts +10 -0
  13. package/dist/declarations/src/components/custom-views/custom-views-selector/index.d.ts +1 -0
  14. package/dist/declarations/src/components/custom-views/custom-views-selector/messages.d.ts +7 -0
  15. package/dist/declarations/src/components/custom-views/custom-views-selector/use-custom-views-connector.d.ts +11 -0
  16. package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +237 -0
  17. package/dist/declarations/src/components/detail-pages/custom-form-detail-page/index.d.ts +1 -0
  18. package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +180 -0
  19. package/dist/declarations/src/components/detail-pages/form-detail-page/index.d.ts +1 -0
  20. package/dist/declarations/src/components/detail-pages/info-detail-page/index.d.ts +1 -0
  21. package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +59 -0
  22. package/dist/declarations/src/components/detail-pages/tabular-detail-page/index.d.ts +1 -0
  23. package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +240 -0
  24. package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +111 -0
  25. package/dist/declarations/src/components/dialogs/confirmation-dialog/index.d.ts +1 -0
  26. package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +113 -0
  27. package/dist/declarations/src/components/dialogs/form-dialog/index.d.ts +1 -0
  28. package/dist/declarations/src/components/dialogs/info-dialog/index.d.ts +1 -0
  29. package/dist/declarations/src/components/dialogs/info-dialog/info-dialog.d.ts +19 -0
  30. package/dist/declarations/src/components/dialogs/internals/dialog-container.d.ts +18 -0
  31. package/dist/declarations/src/components/dialogs/internals/dialog-content.d.ts +6 -0
  32. package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +29 -0
  33. package/dist/declarations/src/components/dialogs/internals/dialog-header.d.ts +15 -0
  34. package/dist/declarations/src/components/dialogs/internals/dialog.styles.d.ts +8 -0
  35. package/dist/declarations/src/components/drawer/drawer.d.ts +181 -0
  36. package/dist/declarations/src/components/drawer/index.d.ts +1 -0
  37. package/dist/declarations/src/components/internals/default-form-buttons.d.ts +38 -0
  38. package/dist/declarations/src/components/internals/messages.d.ts +11 -0
  39. package/dist/declarations/src/components/internals/page-header-title.d.ts +15 -0
  40. package/dist/declarations/src/components/internals/page-header.d.ts +15 -0
  41. package/dist/declarations/src/components/internals/page-top-bar.d.ts +20 -0
  42. package/dist/declarations/src/components/internals/page.styles.d.ts +13 -0
  43. package/dist/declarations/src/components/internals/tabular-page.d.ts +27 -0
  44. package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +233 -0
  45. package/dist/declarations/src/components/main-pages/custom-form-main-page/index.d.ts +1 -0
  46. package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +174 -0
  47. package/dist/declarations/src/components/main-pages/form-main-page/index.d.ts +1 -0
  48. package/dist/declarations/src/components/main-pages/info-main-page/index.d.ts +1 -0
  49. package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +45 -0
  50. package/dist/declarations/src/components/main-pages/internals/main-page.styles.d.ts +13 -0
  51. package/dist/declarations/src/components/main-pages/tabular-main-page/index.d.ts +1 -0
  52. package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +228 -0
  53. package/dist/declarations/src/components/maintenance-page-layout/index.d.ts +1 -0
  54. package/dist/declarations/src/components/maintenance-page-layout/maintenance-page-layout.d.ts +15 -0
  55. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +207 -0
  56. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/index.d.ts +1 -0
  57. package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +129 -0
  58. package/dist/declarations/src/components/modal-pages/form-modal-page/index.d.ts +1 -0
  59. package/dist/declarations/src/components/modal-pages/info-modal-page/index.d.ts +1 -0
  60. package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +38 -0
  61. package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +40 -0
  62. package/dist/declarations/src/components/modal-pages/internals/modal-page.styles.d.ts +31 -0
  63. package/dist/declarations/src/components/modal-pages/tabular-modal-page/index.d.ts +1 -0
  64. package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +211 -0
  65. package/dist/declarations/src/components/modal-pages/utils/index.d.ts +1 -0
  66. package/dist/declarations/src/components/modal-pages/utils/modal-page-top-bar.d.ts +27 -0
  67. package/dist/declarations/src/components/page-content-containers/page-content-full/index.d.ts +2 -0
  68. package/dist/declarations/src/components/page-content-containers/page-content-full/page-content-full.d.ts +6 -0
  69. package/dist/declarations/src/components/page-content-containers/page-content-narrow/index.d.ts +2 -0
  70. package/dist/declarations/src/components/page-content-containers/page-content-narrow/page-content-narrow.d.ts +6 -0
  71. package/dist/declarations/src/components/page-content-containers/page-content-wide/index.d.ts +2 -0
  72. package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +12 -0
  73. package/dist/declarations/src/components/page-not-found/index.d.ts +1 -0
  74. package/dist/declarations/src/components/page-not-found/messages.d.ts +11 -0
  75. package/dist/declarations/src/components/page-not-found/page-not-found.d.ts +5 -0
  76. package/dist/declarations/src/components/page-unauthorized/index.d.ts +1 -0
  77. package/dist/declarations/src/components/page-unauthorized/messages.d.ts +15 -0
  78. package/dist/declarations/src/components/page-unauthorized/page-unauthorized.d.ts +5 -0
  79. package/dist/declarations/src/components/portals-container/index.d.ts +1 -0
  80. package/dist/declarations/src/components/portals-container/portals-container.d.ts +44 -0
  81. package/dist/declarations/src/components/project-stamp/messages.d.ts +19 -0
  82. package/dist/declarations/src/components/project-stamp/project-stamp.d.ts +9 -0
  83. package/dist/declarations/src/components/public-page-layout/index.d.ts +8 -0
  84. package/dist/declarations/src/components/public-page-layout/public-page-layout.d.ts +26 -0
  85. package/dist/declarations/src/components/public-page-layout/public-page-layout.styles.d.ts +13 -0
  86. package/dist/declarations/src/components/tab-header/index.d.ts +1 -0
  87. package/dist/declarations/src/components/tab-header/tab-header.d.ts +37 -0
  88. package/dist/declarations/src/components/tab-header/tab.styles.d.ts +2 -0
  89. package/dist/declarations/src/hooks/use-custom-view-locator-selector/index.d.ts +1 -0
  90. package/dist/declarations/src/hooks/use-custom-view-locator-selector/use-custom-view-locator-selector.d.ts +5 -0
  91. package/dist/declarations/src/hooks/use-modal-state/index.d.ts +1 -0
  92. package/dist/declarations/src/hooks/use-modal-state/use-modal-state.d.ts +6 -0
  93. package/dist/declarations/src/index.d.ts +35 -0
  94. package/dist/declarations/src/theming.d.ts +13 -0
  95. package/dist/declarations/src/types/generated/settings.d.ts +2116 -0
  96. package/dist/declarations/src/utils/filter-data-attributes.d.ts +1 -0
  97. package/dist/declarations/src/version.d.ts +2 -0
  98. package/dist/public-page-layout-3fba954d.esm.js +110 -0
  99. package/dist/public-page-layout-81be35b4.cjs.dev.js +128 -0
  100. package/dist/public-page-layout-d365f38f.cjs.prod.js +108 -0
  101. package/materials/media-queries.css +15 -0
  102. package/package.json +103 -0
@@ -0,0 +1,8 @@
1
+ import { CustomViewData } from '@commercetools-frontend/constants';
2
+ type TCustomViewLoaderProps = {
3
+ customView: CustomViewData;
4
+ hostUrl?: string;
5
+ onClose: () => void;
6
+ };
7
+ declare function CustomViewLoader(props: TCustomViewLoaderProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
8
+ export default CustomViewLoader;
@@ -0,0 +1 @@
1
+ export { default } from './custom-view-loader';
@@ -0,0 +1,7 @@
1
+ declare const messages: {
2
+ loadError: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ };
7
+ export default messages;
@@ -0,0 +1,10 @@
1
+ import type { CustomViewData } from '@commercetools-frontend/constants';
2
+ type TCustomViewSelectorBaseProps = {
3
+ onCustomViewsResolved?: (customViews: CustomViewData[]) => void;
4
+ };
5
+ type TCustomViewSelectorProps = TCustomViewSelectorBaseProps & {
6
+ customViewLocatorCode?: string;
7
+ margin?: string;
8
+ };
9
+ declare const CustomViewSelectorOrNothing: (props: TCustomViewSelectorProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
10
+ export default CustomViewSelectorOrNothing;
@@ -0,0 +1 @@
1
+ export { default } from './custom-views-selector';
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ title: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { CustomViewData } from '@commercetools-frontend/constants';
2
+ type TUseCustomViewsFetcherParams = {
3
+ customViewLocatorCode: string;
4
+ };
5
+ type TUseCustomViewsFetcher = (props: TUseCustomViewsFetcherParams) => {
6
+ customViews: CustomViewData[];
7
+ error?: Error;
8
+ loading: boolean;
9
+ };
10
+ export declare const useCustomViewsConnector: TUseCustomViewsFetcher;
11
+ export {};
@@ -0,0 +1,237 @@
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 CustomFormDetailPageProps = {
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
+ * Any React node to be rendered as the form controls
27
+ */
28
+ formControls?: ReactNode;
29
+ /**
30
+ * Determines if the form controls should be rendered.
31
+ */
32
+ hideControls?: boolean;
33
+ /**
34
+ * A return route path label.
35
+ */
36
+ previousPathLabel?: string | MessageDescriptor;
37
+ /**
38
+ * This code is used to configure which Custom Views are available for this page.
39
+ */
40
+ customViewLocatorCode?: string;
41
+ /**
42
+ * Function called when back button is pressed.
43
+ */
44
+ onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
45
+ };
46
+ declare const CustomFormDetailPage: {
47
+ (props: CustomFormDetailPageProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
48
+ displayName: string;
49
+ defaultProps: Pick<CustomFormDetailPageProps, "hideControls">;
50
+ PageHeaderTitle: {
51
+ (props: {
52
+ title: string;
53
+ titleSize: "big" | "small" | "medium";
54
+ truncate: boolean;
55
+ subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
56
+ children?: undefined;
57
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
58
+ displayName: string;
59
+ defaultProps: Pick<{
60
+ title: string;
61
+ titleSize: "big" | "small" | "medium";
62
+ truncate: boolean;
63
+ subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
64
+ children?: undefined;
65
+ }, "truncate" | "titleSize">;
66
+ };
67
+ FormPrimaryButton: {
68
+ (props: {
69
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
70
+ } & {
71
+ label: string | {
72
+ id: string;
73
+ description?: string | object | undefined;
74
+ defaultMessage?: string | undefined;
75
+ };
76
+ onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
77
+ isDisabled: boolean;
78
+ dataAttributes: {
79
+ [key: string]: string;
80
+ };
81
+ children?: undefined;
82
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
83
+ displayName: string;
84
+ defaultProps: Pick<{
85
+ label: string | {
86
+ id: string;
87
+ description?: string | object | undefined;
88
+ defaultMessage?: string | undefined;
89
+ };
90
+ onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
91
+ isDisabled: boolean;
92
+ dataAttributes: {
93
+ [key: string]: string;
94
+ };
95
+ children?: undefined;
96
+ }, "label" | "isDisabled" | "dataAttributes">;
97
+ };
98
+ FormSecondaryButton: {
99
+ (props: {
100
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
101
+ } & {
102
+ label: string | {
103
+ id: string;
104
+ description?: string | object | undefined;
105
+ defaultMessage?: string | undefined;
106
+ };
107
+ onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
108
+ isDisabled: boolean;
109
+ dataAttributes: {
110
+ [key: string]: string;
111
+ };
112
+ children?: undefined;
113
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
114
+ displayName: string;
115
+ defaultProps: Pick<{
116
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
117
+ } & {
118
+ label: string | {
119
+ id: string;
120
+ description?: string | object | undefined;
121
+ defaultMessage?: string | undefined;
122
+ };
123
+ onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
124
+ isDisabled: boolean;
125
+ dataAttributes: {
126
+ [key: string]: string;
127
+ };
128
+ children?: undefined;
129
+ }, "label" | "isDisabled" | "dataAttributes">; /**
130
+ * Function called when back button is pressed.
131
+ */
132
+ };
133
+ FormDeleteButton: {
134
+ (props: {
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
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
147
+ displayName: string;
148
+ defaultProps: Pick<{
149
+ label: string | {
150
+ id: string;
151
+ description?: string | object | undefined;
152
+ defaultMessage?: string | undefined;
153
+ };
154
+ onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
155
+ isDisabled: boolean;
156
+ dataAttributes: {
157
+ [key: string]: string;
158
+ };
159
+ children?: undefined;
160
+ }, "label" | "isDisabled" | "dataAttributes">;
161
+ };
162
+ Intl: {
163
+ cancel: {
164
+ id: string;
165
+ defaultMessage: string;
166
+ };
167
+ revert: {
168
+ id: string;
169
+ defaultMessage: string;
170
+ };
171
+ confirm: {
172
+ id: string;
173
+ defaultMessage: string;
174
+ };
175
+ save: {
176
+ id: string;
177
+ defaultMessage: string;
178
+ };
179
+ update: {
180
+ id: string;
181
+ defaultMessage: string;
182
+ };
183
+ create: {
184
+ id: string;
185
+ defaultMessage: string;
186
+ };
187
+ delete: {
188
+ id: string;
189
+ defaultMessage: string;
190
+ };
191
+ add: {
192
+ id: string;
193
+ defaultMessage: string;
194
+ };
195
+ remove: {
196
+ id: string;
197
+ defaultMessage: string;
198
+ };
199
+ close: {
200
+ id: string;
201
+ defaultMessage: string;
202
+ };
203
+ edit: {
204
+ id: string;
205
+ defaultMessage: string;
206
+ };
207
+ open: {
208
+ id: string;
209
+ defaultMessage: string;
210
+ };
211
+ activate: {
212
+ id: string;
213
+ defaultMessage: string;
214
+ };
215
+ deactivate: {
216
+ id: string;
217
+ defaultMessage: string;
218
+ };
219
+ active: {
220
+ id: string;
221
+ defaultMessage: string;
222
+ };
223
+ inactive: {
224
+ id: string;
225
+ defaultMessage: string;
226
+ };
227
+ enable: {
228
+ id: string;
229
+ defaultMessage: string;
230
+ };
231
+ disable: {
232
+ id: string;
233
+ defaultMessage: string;
234
+ };
235
+ };
236
+ };
237
+ export default CustomFormDetailPage;
@@ -0,0 +1 @@
1
+ export { default } from './custom-form-detail-page';
@@ -0,0 +1,180 @@
1
+ import type { ReactElement, ReactNode, MouseEvent, KeyboardEvent, SyntheticEvent } from 'react';
2
+ type MessageDescriptor = {
3
+ id: string;
4
+ description?: string | object;
5
+ defaultMessage?: string;
6
+ };
7
+ type Label = string | MessageDescriptor;
8
+ type FormDetailPageProps = {
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
+ * This code is used to configure which Custom Views are available for this page.
23
+ */
24
+ customViewLocatorCode?: string;
25
+ /**
26
+ * Any React node displayed as the content within the page.
27
+ */
28
+ children: ReactNode;
29
+ /**
30
+ * A return route path label.
31
+ */
32
+ previousPathLabel?: string | MessageDescriptor;
33
+ /**
34
+ * Function called when back button is pressed.
35
+ */
36
+ onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
37
+ /**
38
+ * Indicates whether the primary button is deactivated or not.
39
+ */
40
+ isPrimaryButtonDisabled?: boolean;
41
+ /**
42
+ * Indicates whether the secondary button is deactivated or not.
43
+ */
44
+ isSecondaryButtonDisabled?: boolean;
45
+ /**
46
+ * Use this prop to pass `data-` attributes to the primary button
47
+ */
48
+ dataAttributesPrimaryButton?: {
49
+ [key: string]: string;
50
+ };
51
+ /**
52
+ * Use this prop to pass `data-` attributes to the secondary button.
53
+ */
54
+ dataAttributesSecondaryButton?: {
55
+ [key: string]: string;
56
+ };
57
+ /**
58
+ * `Save` | The label for the primary button as a string, or as an Intl message.
59
+ */
60
+ labelPrimaryButton?: Label;
61
+ /**
62
+ * `Cancel` | The label for the secondary button as a string, or as an Intl message.
63
+ */
64
+ labelSecondaryButton?: Label;
65
+ /**
66
+ * Called when the primary button is clicked.
67
+ */
68
+ onPrimaryButtonClick: (event: SyntheticEvent) => void;
69
+ /**
70
+ * Called when the secondary button is clicked.
71
+ */
72
+ onSecondaryButtonClick: (event: SyntheticEvent) => void;
73
+ /**
74
+ * Hides the form controls.
75
+ */
76
+ hideControls: boolean;
77
+ /**
78
+ * The Icon for the secondary button label
79
+ */
80
+ iconLeftSecondaryButton?: ReactElement;
81
+ };
82
+ declare const FormDetailPage: {
83
+ (props: FormDetailPageProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
84
+ displayName: string;
85
+ defaultProps: Pick<FormDetailPageProps, "hideControls">;
86
+ PageHeaderTitle: {
87
+ (props: {
88
+ title: string;
89
+ titleSize: "big" | "small" | "medium";
90
+ truncate: boolean;
91
+ subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
92
+ children?: undefined;
93
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
94
+ displayName: string;
95
+ defaultProps: Pick<{
96
+ title: string;
97
+ titleSize: "big" | "small" | "medium";
98
+ truncate: boolean;
99
+ subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
100
+ children?: undefined;
101
+ }, "truncate" | "titleSize">;
102
+ };
103
+ Intl: {
104
+ cancel: {
105
+ id: string;
106
+ defaultMessage: string;
107
+ };
108
+ revert: {
109
+ id: string;
110
+ defaultMessage: string;
111
+ };
112
+ confirm: {
113
+ id: string;
114
+ defaultMessage: string;
115
+ };
116
+ save: {
117
+ id: string;
118
+ defaultMessage: string;
119
+ };
120
+ update: {
121
+ id: string;
122
+ defaultMessage: string;
123
+ };
124
+ create: {
125
+ id: string;
126
+ defaultMessage: string;
127
+ };
128
+ delete: {
129
+ id: string;
130
+ defaultMessage: string;
131
+ };
132
+ add: {
133
+ id: string;
134
+ defaultMessage: string;
135
+ };
136
+ remove: {
137
+ id: string;
138
+ defaultMessage: string;
139
+ };
140
+ close: {
141
+ id: string; /**
142
+ * Any React node displayed as the content within the page.
143
+ */
144
+ defaultMessage: string;
145
+ };
146
+ edit: {
147
+ id: string;
148
+ defaultMessage: string;
149
+ };
150
+ open: {
151
+ id: string;
152
+ defaultMessage: string;
153
+ };
154
+ activate: {
155
+ id: string;
156
+ defaultMessage: string;
157
+ };
158
+ deactivate: {
159
+ id: string;
160
+ defaultMessage: string;
161
+ };
162
+ active: {
163
+ id: string;
164
+ defaultMessage: string;
165
+ };
166
+ inactive: {
167
+ id: string;
168
+ defaultMessage: string;
169
+ };
170
+ enable: {
171
+ id: string;
172
+ defaultMessage: string;
173
+ };
174
+ disable: {
175
+ id: string;
176
+ defaultMessage: string;
177
+ };
178
+ };
179
+ };
180
+ export default FormDetailPage;
@@ -0,0 +1 @@
1
+ export { default } from './form-detail-page';
@@ -0,0 +1 @@
1
+ export { default } from './info-detail-page';
@@ -0,0 +1,59 @@
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/types/jsx-namespace").EmotionJSX.Element;
40
+ displayName: string;
41
+ PageHeaderTitle: {
42
+ (props: {
43
+ title: string;
44
+ titleSize: "big" | "small" | "medium";
45
+ truncate: boolean;
46
+ subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
47
+ children?: undefined;
48
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
49
+ displayName: string;
50
+ defaultProps: Pick<{
51
+ title: string;
52
+ titleSize: "big" | "small" | "medium";
53
+ truncate: boolean;
54
+ subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
55
+ children?: undefined;
56
+ }, "truncate" | "titleSize">;
57
+ };
58
+ };
59
+ export default InfoDetailPage;
@@ -0,0 +1 @@
1
+ export { default } from './tabular-detail-page';