@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,129 @@
1
+ import { SyntheticEvent, ReactNode, ReactElement } from 'react';
2
+ import type { CSSObject } from '@emotion/react';
3
+ type MessageDescriptor = {
4
+ id: string;
5
+ description?: string | object;
6
+ defaultMessage?: string;
7
+ };
8
+ type Label = string | MessageDescriptor;
9
+ type Props = {
10
+ /**
11
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
12
+ */
13
+ level?: number;
14
+ title: string;
15
+ isOpen: boolean;
16
+ onClose?: (event: SyntheticEvent) => void;
17
+ /**
18
+ * This code is used to configure which Custom Views are available for this page.
19
+ */
20
+ customViewLocatorCode?: string;
21
+ children: ReactNode;
22
+ zIndex?: number;
23
+ /**
24
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
25
+ */
26
+ baseZIndex?: number;
27
+ getParentSelector?: () => HTMLElement;
28
+ shouldDelayOnClose?: boolean;
29
+ afterOpenStyles?: string | CSSObject;
30
+ topBarCurrentPathLabel?: string;
31
+ topBarPreviousPathLabel?: Label;
32
+ subtitle?: string | ReactElement;
33
+ isPrimaryButtonDisabled?: boolean;
34
+ isSecondaryButtonDisabled?: boolean;
35
+ dataAttributesPrimaryButton?: {
36
+ [key: string]: string;
37
+ };
38
+ dataAttributesSecondaryButton?: {
39
+ [key: string]: string;
40
+ };
41
+ labelPrimaryButton?: Label;
42
+ labelSecondaryButton?: Label;
43
+ onPrimaryButtonClick: (event: SyntheticEvent) => void;
44
+ onSecondaryButtonClick: (event: SyntheticEvent) => void;
45
+ hideControls: boolean;
46
+ iconLeftSecondaryButton?: ReactElement;
47
+ };
48
+ declare const FormModalPage: {
49
+ (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
50
+ displayName: string;
51
+ defaultProps: Pick<Props, "hideControls">;
52
+ Intl: {
53
+ cancel: {
54
+ id: string;
55
+ defaultMessage: string;
56
+ };
57
+ revert: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ };
61
+ confirm: {
62
+ id: string;
63
+ defaultMessage: string;
64
+ };
65
+ save: {
66
+ id: string; /**
67
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
68
+ */
69
+ defaultMessage: string;
70
+ };
71
+ update: {
72
+ id: string;
73
+ defaultMessage: string;
74
+ };
75
+ create: {
76
+ id: string;
77
+ defaultMessage: string;
78
+ };
79
+ delete: {
80
+ id: string;
81
+ defaultMessage: string;
82
+ };
83
+ add: {
84
+ id: string;
85
+ defaultMessage: string;
86
+ };
87
+ remove: {
88
+ id: string;
89
+ defaultMessage: string;
90
+ };
91
+ close: {
92
+ id: string;
93
+ defaultMessage: string;
94
+ };
95
+ edit: {
96
+ id: string;
97
+ defaultMessage: string;
98
+ };
99
+ open: {
100
+ id: string;
101
+ defaultMessage: string;
102
+ };
103
+ activate: {
104
+ id: string;
105
+ defaultMessage: string;
106
+ };
107
+ deactivate: {
108
+ id: string;
109
+ defaultMessage: string;
110
+ };
111
+ active: {
112
+ id: string;
113
+ defaultMessage: string;
114
+ };
115
+ inactive: {
116
+ id: string;
117
+ defaultMessage: string;
118
+ };
119
+ enable: {
120
+ id: string;
121
+ defaultMessage: string;
122
+ };
123
+ disable: {
124
+ id: string;
125
+ defaultMessage: string;
126
+ };
127
+ };
128
+ };
129
+ export default FormModalPage;
@@ -0,0 +1 @@
1
+ export { default } from './form-modal-page';
@@ -0,0 +1 @@
1
+ export { default } from './info-modal-page';
@@ -0,0 +1,38 @@
1
+ import { ReactElement, ReactNode, SyntheticEvent } from 'react';
2
+ import type { CSSObject } from '@emotion/react';
3
+ type MessageDescriptor = {
4
+ id: string;
5
+ description?: string | object;
6
+ defaultMessage?: string;
7
+ };
8
+ type Label = string | MessageDescriptor;
9
+ type Props = {
10
+ /**
11
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
12
+ */
13
+ level?: number;
14
+ title: string;
15
+ isOpen: boolean;
16
+ /**
17
+ * This code is used to configure which Custom Views are available for this page.
18
+ */
19
+ customViewLocatorCode?: string;
20
+ onClose?: (event: SyntheticEvent) => void;
21
+ children: ReactNode;
22
+ zIndex?: number;
23
+ /**
24
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
25
+ */
26
+ baseZIndex?: number;
27
+ getParentSelector?: () => HTMLElement;
28
+ shouldDelayOnClose?: boolean;
29
+ afterOpenStyles?: string | CSSObject;
30
+ topBarCurrentPathLabel?: string;
31
+ topBarPreviousPathLabel?: Label;
32
+ subtitle?: string | ReactElement;
33
+ };
34
+ declare const InfoModalPage: {
35
+ (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
36
+ displayName: string;
37
+ };
38
+ export default InfoModalPage;
@@ -0,0 +1,40 @@
1
+ import { type ReactNode, type SyntheticEvent } from 'react';
2
+ import { type CSSObject } from '@emotion/react';
3
+ declare const getDefaultParentSelector: () => HTMLElement;
4
+ type MessageDescriptor = {
5
+ id: string;
6
+ description?: string | object;
7
+ defaultMessage?: string;
8
+ };
9
+ type Label = string | MessageDescriptor;
10
+ export type TModalPageSize = 10 | 20 | 30 | 'scale';
11
+ type Props = {
12
+ /**
13
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
14
+ */
15
+ level?: number;
16
+ title: string;
17
+ isOpen: boolean;
18
+ onClose?: (event: SyntheticEvent) => void;
19
+ children: ReactNode;
20
+ zIndex?: number;
21
+ /**
22
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
23
+ */
24
+ baseZIndex?: number;
25
+ getParentSelector: typeof getDefaultParentSelector;
26
+ shouldDelayOnClose: boolean;
27
+ afterOpenStyles?: string | CSSObject;
28
+ topBarColor?: 'surface' | 'neutral';
29
+ currentPathLabel?: string;
30
+ previousPathLabel?: Label;
31
+ hidePathLabel?: boolean;
32
+ size: TModalPageSize;
33
+ hideTopBar?: boolean;
34
+ };
35
+ declare const ModalPage: {
36
+ (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
37
+ displayName: string;
38
+ defaultProps: Pick<Props, "size" | "getParentSelector" | "shouldDelayOnClose">;
39
+ };
40
+ export default ModalPage;
@@ -0,0 +1,31 @@
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ import type { TModalPageSize } from './modal-page';
3
+ type StyleProps = {
4
+ zIndex?: number;
5
+ size: TModalPageSize;
6
+ };
7
+ export declare const stylesBySize: {
8
+ '10': {
9
+ width: string;
10
+ transitionTime: number;
11
+ };
12
+ '20': {
13
+ width: string;
14
+ transitionTime: number;
15
+ };
16
+ '30': {
17
+ width: string;
18
+ transitionTime: number;
19
+ };
20
+ scale: {
21
+ width: string;
22
+ transitionTime: number;
23
+ };
24
+ };
25
+ export declare const getContainerStyles: (props: StyleProps) => SerializedStyles;
26
+ export declare const getOverlayStyles: (props: StyleProps) => SerializedStyles;
27
+ export declare const getAfterOpenContainerAnimation: () => SerializedStyles;
28
+ export declare const getAfterOpenOverlayAnimation: () => SerializedStyles;
29
+ export declare const getBeforeCloseContainerAnimation: (props: StyleProps) => SerializedStyles;
30
+ export declare const getBeforeCloseOverlayAnimation: () => SerializedStyles;
31
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './tabular-modal-page';
@@ -0,0 +1,211 @@
1
+ import { ReactElement, ReactNode, SyntheticEvent } from 'react';
2
+ import type { CSSObject } from '@emotion/react';
3
+ import { LocationDescriptor } from 'history';
4
+ type MessageDescriptor = {
5
+ id: string;
6
+ description?: string | object;
7
+ defaultMessage?: string;
8
+ };
9
+ type Label = string | MessageDescriptor;
10
+ type Props = {
11
+ /**
12
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
13
+ */
14
+ level?: number;
15
+ title: string;
16
+ isOpen: boolean;
17
+ /**
18
+ * These codes are used to configure which Custom Views are available for every tab.
19
+ */
20
+ customViewLocatorCodes?: Record<string, LocationDescriptor>;
21
+ onClose?: (event: SyntheticEvent) => void;
22
+ children: ReactNode;
23
+ zIndex?: number;
24
+ /**
25
+ * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
26
+ */
27
+ baseZIndex?: number;
28
+ getParentSelector?: () => HTMLElement;
29
+ shouldDelayOnClose?: boolean;
30
+ afterOpenStyles?: string | CSSObject;
31
+ topBarCurrentPathLabel?: string;
32
+ topBarPreviousPathLabel?: Label;
33
+ customTitleRow?: ReactNode;
34
+ tabControls: ReactNode;
35
+ subtitle?: string | ReactElement;
36
+ formControls?: ReactNode;
37
+ hideControls: boolean;
38
+ };
39
+ declare const TabularModalPage: {
40
+ (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
41
+ displayName: string;
42
+ defaultProps: Pick<Props, "hideControls">;
43
+ FormPrimaryButton: {
44
+ (props: {
45
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
46
+ } & {
47
+ label: string | {
48
+ id: string;
49
+ description?: string | object | undefined;
50
+ defaultMessage?: string | undefined;
51
+ };
52
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
53
+ isDisabled: boolean;
54
+ dataAttributes: {
55
+ [key: string]: string;
56
+ };
57
+ children?: undefined;
58
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
59
+ displayName: string;
60
+ defaultProps: Pick<{
61
+ label: string | {
62
+ id: string;
63
+ description?: string | object | undefined;
64
+ defaultMessage?: string | undefined;
65
+ };
66
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
67
+ isDisabled: boolean;
68
+ dataAttributes: {
69
+ [key: string]: string;
70
+ };
71
+ children?: undefined;
72
+ }, "label" | "isDisabled" | "dataAttributes">;
73
+ };
74
+ FormSecondaryButton: {
75
+ (props: {
76
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
77
+ } & {
78
+ label: string | {
79
+ id: string;
80
+ description?: string | object | undefined;
81
+ defaultMessage?: string | undefined;
82
+ };
83
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
84
+ isDisabled: boolean;
85
+ dataAttributes: {
86
+ [key: string]: string;
87
+ };
88
+ children?: undefined;
89
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
90
+ displayName: string;
91
+ defaultProps: Pick<{
92
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
93
+ } & {
94
+ label: string | {
95
+ id: string;
96
+ description?: string | object | undefined;
97
+ defaultMessage?: string | undefined;
98
+ };
99
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
100
+ isDisabled: boolean;
101
+ dataAttributes: {
102
+ [key: string]: string;
103
+ };
104
+ children?: undefined;
105
+ }, "label" | "isDisabled" | "dataAttributes">;
106
+ };
107
+ FormDeleteButton: {
108
+ (props: {
109
+ label: string | {
110
+ id: string;
111
+ description?: string | object | undefined;
112
+ defaultMessage?: string | undefined;
113
+ };
114
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
115
+ isDisabled: boolean;
116
+ dataAttributes: {
117
+ [key: string]: string;
118
+ };
119
+ children?: undefined;
120
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
121
+ displayName: string;
122
+ defaultProps: Pick<{
123
+ label: string | {
124
+ id: string;
125
+ description?: string | object | undefined;
126
+ defaultMessage?: string | undefined;
127
+ };
128
+ onClick: (event: SyntheticEvent<Element, Event>) => void;
129
+ isDisabled: boolean;
130
+ dataAttributes: {
131
+ [key: string]: string;
132
+ };
133
+ children?: undefined;
134
+ }, "label" | "isDisabled" | "dataAttributes">;
135
+ };
136
+ Intl: {
137
+ cancel: {
138
+ id: string;
139
+ defaultMessage: string;
140
+ };
141
+ revert: {
142
+ id: string;
143
+ defaultMessage: string;
144
+ };
145
+ confirm: {
146
+ id: string;
147
+ defaultMessage: string;
148
+ };
149
+ save: {
150
+ id: string;
151
+ defaultMessage: string;
152
+ };
153
+ update: {
154
+ id: string;
155
+ defaultMessage: string;
156
+ };
157
+ create: {
158
+ id: string;
159
+ defaultMessage: string;
160
+ };
161
+ delete: {
162
+ id: string;
163
+ defaultMessage: string;
164
+ };
165
+ add: {
166
+ id: string;
167
+ defaultMessage: string;
168
+ };
169
+ remove: {
170
+ id: string;
171
+ defaultMessage: string;
172
+ };
173
+ close: {
174
+ id: string;
175
+ defaultMessage: string;
176
+ };
177
+ edit: {
178
+ id: string;
179
+ defaultMessage: string;
180
+ };
181
+ open: {
182
+ id: string;
183
+ defaultMessage: string;
184
+ };
185
+ activate: {
186
+ id: string;
187
+ defaultMessage: string;
188
+ };
189
+ deactivate: {
190
+ id: string;
191
+ defaultMessage: string;
192
+ };
193
+ active: {
194
+ id: string;
195
+ defaultMessage: string;
196
+ };
197
+ inactive: {
198
+ id: string;
199
+ defaultMessage: string;
200
+ };
201
+ enable: {
202
+ id: string;
203
+ defaultMessage: string;
204
+ };
205
+ disable: {
206
+ id: string;
207
+ defaultMessage: string;
208
+ };
209
+ };
210
+ };
211
+ export default TabularModalPage;
@@ -0,0 +1 @@
1
+ export { default as ModalPageTopBar, LargeIconWrapper, } from './modal-page-top-bar';
@@ -0,0 +1,27 @@
1
+ import { type SyntheticEvent, type ReactElement } from 'react';
2
+ import { type TSecondaryButtonIconProps } from '@commercetools-uikit/secondary-icon-button';
3
+ type TLargeIconWrapperProps = {
4
+ children: ReactElement;
5
+ size?: TSecondaryButtonIconProps['size'];
6
+ };
7
+ export declare const LargeIconWrapper: (props: TLargeIconWrapperProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
8
+ type MessageDescriptor = {
9
+ id: string;
10
+ description?: string | object;
11
+ defaultMessage?: string;
12
+ };
13
+ type Label = string | MessageDescriptor;
14
+ type Props = {
15
+ color: 'surface' | 'neutral';
16
+ currentPathLabel?: string;
17
+ previousPathLabel: Label;
18
+ hidePathLabel?: boolean;
19
+ onClose: (event: SyntheticEvent) => void;
20
+ children?: never;
21
+ };
22
+ declare const ModalPageTopBar: {
23
+ (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
24
+ displayName: string;
25
+ defaultProps: Pick<Props, "color" | "previousPathLabel" | "hidePathLabel">;
26
+ };
27
+ export default ModalPageTopBar;
@@ -0,0 +1,2 @@
1
+ export { default } from './page-content-full';
2
+ export type { TPageContentFull } from './page-content-full';
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type TPageContentFull = {
3
+ children: ReactNode;
4
+ };
5
+ declare function PageContentFull(props: TPageContentFull): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
6
+ export default PageContentFull;
@@ -0,0 +1,2 @@
1
+ export { default } from './page-content-narrow';
2
+ export type { TPageContentNarrow } from './page-content-narrow';
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type TPageContentNarrow = {
3
+ children: ReactNode;
4
+ };
5
+ declare function PageContentNarrow(props: TPageContentNarrow): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
6
+ export default PageContentNarrow;
@@ -0,0 +1,2 @@
1
+ export { default } from './page-content-wide';
2
+ export type { TPageContentWide } from './page-content-wide';
@@ -0,0 +1,12 @@
1
+ import { type ReactNode } from 'react';
2
+ export type TPageContentWide = {
3
+ columns: '1' | '1/1' | '2/1';
4
+ gapSize: '10' | '20';
5
+ children: ReactNode;
6
+ themeParentSelector?: () => HTMLElement | null;
7
+ };
8
+ declare function PageContentWide(props: TPageContentWide): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
9
+ declare namespace PageContentWide {
10
+ var defaultProps: Pick<TPageContentWide, "columns" | "gapSize">;
11
+ }
12
+ export default PageContentWide;
@@ -0,0 +1 @@
1
+ export { default } from './page-not-found';
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ title: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ paragraph1: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const PageNotFound: {
2
+ (): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default PageNotFound;
@@ -0,0 +1 @@
1
+ export { default } from './page-unauthorized';
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ title: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ paragraph1: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ paragraph2: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ };
15
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const PageUnauthorized: {
2
+ (): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default PageUnauthorized;
@@ -0,0 +1 @@
1
+ export { default } from './portals-container';
@@ -0,0 +1,44 @@
1
+ import { type MutableRefObject } from 'react';
2
+ type TLayoutRefs = {
3
+ notificationsGlobalRef: MutableRefObject<HTMLDivElement>;
4
+ notificationsPageRef: MutableRefObject<HTMLDivElement>;
5
+ };
6
+ type TPortalsContainerProps = {
7
+ /**
8
+ * The offset value for positioning the container from the top, when opened.
9
+ * Usually this corresponds to the height of the header section.
10
+ * Defaults to `0px`.
11
+ */
12
+ offsetTop?: string;
13
+ /**
14
+ * The offset value for positioning the container from the left, when opened.
15
+ * Usually this corresponds to the min width of the nav menu.
16
+ * Defaults to `0px`.
17
+ */
18
+ offsetLeft?: string;
19
+ /**
20
+ * The offset value for positioning the container from the left, when opened.
21
+ * The value is only applied when the `.body__menu-open` global class is added to the DOM.
22
+ * Usually this corresponds to the width of the expanded nav menu.
23
+ * Defaults to `0px`.
24
+ */
25
+ offsetLeftOnExpandedMenu?: string;
26
+ /**
27
+ * The CSS selector to apply the `overflow: hidden` style to (preventing scrolling)
28
+ * when a modal container is open.
29
+ * Defaults to `main`.
30
+ */
31
+ containerSelectorToPreventScrollingOnOpen?: string;
32
+ /**
33
+ * The `z-index` value to apply to the portal container..
34
+ * Defaults to `10000`.
35
+ */
36
+ zIndex?: number;
37
+ /**
38
+ * The base `z-index` value to apply to each modal container.
39
+ * Defaults to `1000`.
40
+ */
41
+ baseModalZIndex?: number;
42
+ };
43
+ declare const PortalsContainer: import("react").ForwardRefExoticComponent<TPortalsContainerProps & import("react").RefAttributes<TLayoutRefs>>;
44
+ export default PortalsContainer;
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ ProjectProduction: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ ProjectSuspended: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ ProjectExpired: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ ProjectWillExpire: {
15
+ id: string;
16
+ defaultMessage: string;
17
+ };
18
+ };
19
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const ProjectStamp: {
2
+ IsProduction: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
+ IsSuspended: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
+ IsExpired: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
5
+ WillExpire: (props: {
6
+ daysLeft: number;
7
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
8
+ };
9
+ export default ProjectStamp;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const PublicPageLayout: import("react").LazyExoticComponent<import("react").FC<{
3
+ welcomeMessage?: string | undefined;
4
+ legalMessage?: import("react").ReactNode;
5
+ contentScale?: "normal" | "wide" | undefined;
6
+ children: import("react").ReactNode;
7
+ }>>;
8
+ export default PublicPageLayout;