@commercetools-frontend/application-components 23.4.0 → 24.0.0

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 (30) hide show
  1. package/dist/commercetools-frontend-application-components.cjs.dev.js +46 -37
  2. package/dist/commercetools-frontend-application-components.cjs.prod.js +31 -22
  3. package/dist/commercetools-frontend-application-components.esm.js +47 -38
  4. package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +3 -3
  5. package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +4 -5
  6. package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +1 -1
  7. package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +3 -6
  8. package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +3 -2
  9. package/dist/declarations/src/components/dialogs/internals/dialog-content.d.ts +1 -1
  10. package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +3 -2
  11. package/dist/declarations/src/components/dialogs/internals/dialog.styles.d.ts +2 -2
  12. package/dist/declarations/src/components/drawer/drawer.d.ts +4 -3
  13. package/dist/declarations/src/components/internals/default-form-buttons.d.ts +3 -2
  14. package/dist/declarations/src/components/internals/page.styles.d.ts +3 -3
  15. package/dist/declarations/src/components/internals/tabular-page.d.ts +4 -4
  16. package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +3 -3
  17. package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +14 -10
  18. package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +1 -1
  19. package/dist/declarations/src/components/main-pages/internals/main-page.styles.d.ts +3 -3
  20. package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +15 -15
  21. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +2 -2
  22. package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +3 -4
  23. package/dist/declarations/src/components/modal-pages/internals/modal-page.styles.d.ts +1 -1
  24. package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +2 -2
  25. package/dist/declarations/src/components/modal-pages/utils/modal-page-top-bar.d.ts +1 -1
  26. package/dist/declarations/src/components/public-page-layout/public-page-layout.styles.d.ts +3 -3
  27. package/package.json +37 -39
  28. /package/dist/{custom-views-selector-f49cbaed.esm.js → custom-views-selector-17209139.esm.js} +0 -0
  29. /package/dist/{custom-views-selector-005d9211.cjs.prod.js → custom-views-selector-4f4e8c43.cjs.prod.js} +0 -0
  30. /package/dist/{custom-views-selector-a3e9d9dd.cjs.dev.js → custom-views-selector-f1e800af.cjs.dev.js} +0 -0
@@ -51,14 +51,14 @@ declare const CustomFormDetailPage: {
51
51
  title: string;
52
52
  titleSize?: ("big" | "small" | "medium") | undefined;
53
53
  truncate?: boolean | undefined;
54
- subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
54
+ subtitle?: string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
55
55
  children?: undefined;
56
56
  }): import("@emotion/react/jsx-runtime").JSX.Element;
57
57
  displayName: string;
58
58
  };
59
59
  FormPrimaryButton: {
60
60
  ({ label, isDisabled, dataAttributes, ...props }: {
61
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
61
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
62
62
  } & {
63
63
  label?: (string | {
64
64
  id: string;
@@ -76,7 +76,7 @@ declare const CustomFormDetailPage: {
76
76
  };
77
77
  FormSecondaryButton: {
78
78
  ({ label, isDisabled, dataAttributes, ...props }: {
79
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
79
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
80
80
  } & {
81
81
  label?: (string | {
82
82
  id: string;
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement, ReactNode, MouseEvent, KeyboardEvent, SyntheticEvent } from 'react';
2
+ import type { TIconProps } from '@commercetools-uikit/design-system';
2
3
  type MessageDescriptor = {
3
4
  id: string;
4
5
  description?: string | object;
@@ -77,7 +78,7 @@ type FormDetailPageProps = {
77
78
  /**
78
79
  * The Icon for the secondary button label
79
80
  */
80
- iconLeftSecondaryButton?: ReactElement;
81
+ iconLeftSecondaryButton?: ReactElement<TIconProps>;
81
82
  };
82
83
  declare const FormDetailPage: {
83
84
  ({ hideControls, ...props }: FormDetailPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -87,7 +88,7 @@ declare const FormDetailPage: {
87
88
  title: string;
88
89
  titleSize?: ("big" | "small" | "medium") | undefined;
89
90
  truncate?: boolean | undefined;
90
- subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
91
+ subtitle?: string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
91
92
  children?: undefined;
92
93
  }): import("@emotion/react/jsx-runtime").JSX.Element;
93
94
  displayName: string;
@@ -130,9 +131,7 @@ declare const FormDetailPage: {
130
131
  defaultMessage: string;
131
132
  };
132
133
  close: {
133
- id: string; /**
134
- * Any React node displayed as the content within the page.
135
- */
134
+ id: string;
136
135
  defaultMessage: string;
137
136
  };
138
137
  edit: {
@@ -43,7 +43,7 @@ declare const InfoDetailPage: {
43
43
  title: string;
44
44
  titleSize?: ("big" | "small" | "medium") | undefined;
45
45
  truncate?: boolean | undefined;
46
- subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
46
+ subtitle?: string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
47
47
  children?: undefined;
48
48
  }): import("@emotion/react/jsx-runtime").JSX.Element;
49
49
  displayName: string;
@@ -53,7 +53,7 @@ declare const TabularDetailPage: {
53
53
  displayName: string;
54
54
  FormPrimaryButton: {
55
55
  ({ label, isDisabled, dataAttributes, ...props }: {
56
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
56
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
57
57
  } & {
58
58
  label?: (string | {
59
59
  id: string;
@@ -71,7 +71,7 @@ declare const TabularDetailPage: {
71
71
  };
72
72
  FormSecondaryButton: {
73
73
  ({ label, isDisabled, dataAttributes, ...props }: {
74
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
74
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
75
75
  } & {
76
76
  label?: (string | {
77
77
  id: string;
@@ -85,9 +85,6 @@ declare const TabularDetailPage: {
85
85
  } | undefined;
86
86
  children?: undefined;
87
87
  }): import("@emotion/react/jsx-runtime").JSX.Element;
88
- /**
89
- * A return route path label.
90
- */
91
88
  displayName: string;
92
89
  };
93
90
  FormDeleteButton: {
@@ -111,7 +108,7 @@ declare const TabularDetailPage: {
111
108
  title: string;
112
109
  titleSize?: ("big" | "small" | "medium") | undefined;
113
110
  truncate?: boolean | undefined;
114
- subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
111
+ subtitle?: string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
115
112
  children?: undefined;
116
113
  }): import("@emotion/react/jsx-runtime").JSX.Element;
117
114
  displayName: string;
@@ -1,4 +1,5 @@
1
1
  import type { SyntheticEvent, ReactNode, ReactElement } from 'react';
2
+ import type { TIconProps } from '@commercetools-uikit/design-system';
2
3
  type MessageDescriptor = {
3
4
  id: string;
4
5
  description?: string | object;
@@ -25,8 +26,8 @@ export type TFormDialogProps = {
25
26
  [key: string]: string;
26
27
  };
27
28
  getParentSelector?: () => HTMLElement;
28
- iconLeftSecondaryButton?: ReactElement;
29
- iconLeftPrimaryButton?: ReactElement;
29
+ iconLeftSecondaryButton?: ReactElement<TIconProps>;
30
+ iconLeftPrimaryButton?: ReactElement<TIconProps>;
30
31
  footerContent?: ReactNode;
31
32
  };
32
33
  declare const FormDialog: {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const DialogContent: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export default DialogContent;
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement, SyntheticEvent, ReactNode } from 'react';
2
+ import type { TIconProps } from '@commercetools-uikit/design-system';
2
3
  type MessageDescriptor = {
3
4
  id: string;
4
5
  description?: string | object;
@@ -18,8 +19,8 @@ type Props = {
18
19
  [key: string]: string;
19
20
  };
20
21
  children?: never;
21
- iconLeftSecondaryButton?: ReactElement;
22
- iconLeftPrimaryButton?: ReactElement;
22
+ iconLeftSecondaryButton?: ReactElement<TIconProps>;
23
+ iconLeftPrimaryButton?: ReactElement<TIconProps>;
23
24
  footerContent?: ReactNode;
24
25
  };
25
26
  declare const DialogFooter: {
@@ -10,10 +10,10 @@ export declare const ClickableDialogContent: import("@emotion/styled").StyledCom
10
10
  } & StyleProps, {}, {}>;
11
11
  export declare const DialogOverlay: import("@emotion/styled").StyledComponent<{
12
12
  theme?: import("@emotion/react").Theme | undefined;
13
- as?: import("react").ElementType<any> | undefined;
13
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
14
14
  } & Pick<StyleProps, "zIndex">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
15
  export declare const DialogContent: import("@emotion/styled").StyledComponent<{
16
16
  theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
17
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
18
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
19
  export {};
@@ -1,5 +1,6 @@
1
1
  import type { ReactElement, ReactNode, SyntheticEvent } from 'react';
2
2
  import { type CSSObject } from '@emotion/styled';
3
+ import { type TIconProps } from '@commercetools-uikit/design-system';
3
4
  type MessageDescriptor = {
4
5
  id: string;
5
6
  description?: string | object;
@@ -33,14 +34,14 @@ type TDrawerProps = {
33
34
  labelSecondaryButton?: Label;
34
35
  onPrimaryButtonClick?: (event: SyntheticEvent) => void;
35
36
  onSecondaryButtonClick?: (event: SyntheticEvent) => void;
36
- iconLeftSecondaryButton?: ReactElement;
37
+ iconLeftSecondaryButton?: ReactElement<TIconProps>;
37
38
  };
38
39
  declare function Drawer({ size, hideControls, onPrimaryButtonClick, onSecondaryButtonClick, ...props }: TDrawerProps): import("@emotion/react/jsx-runtime").JSX.Element;
39
40
  declare namespace Drawer {
40
41
  var displayName: string;
41
42
  var FormPrimaryButton: {
42
43
  ({ label, isDisabled, dataAttributes, ...props }: {
43
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
44
+ iconLeft?: ReactElement<TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
44
45
  } & {
45
46
  label?: (string | {
46
47
  id: string;
@@ -58,7 +59,7 @@ declare namespace Drawer {
58
59
  };
59
60
  var FormSecondaryButton: {
60
61
  ({ label, isDisabled, dataAttributes, ...props }: {
61
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
62
+ iconLeft?: ReactElement<TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
62
63
  } & {
63
64
  label?: (string | {
64
65
  id: string;
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement, SyntheticEvent } from 'react';
2
+ import type { TIconProps } from '@commercetools-uikit/design-system';
2
3
  type MessageDescriptor = {
3
4
  id: string;
4
5
  description?: string | object;
@@ -15,14 +16,14 @@ type Props = {
15
16
  children?: never;
16
17
  };
17
18
  type PrimaryButtonProps = {
18
- iconLeft?: ReactElement;
19
+ iconLeft?: ReactElement<TIconProps>;
19
20
  } & Props;
20
21
  declare const FormPrimaryButton: {
21
22
  ({ label, isDisabled, dataAttributes, ...props }: PrimaryButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
22
23
  displayName: string;
23
24
  };
24
25
  type SecondaryButtonProps = {
25
- iconLeft?: ReactElement;
26
+ iconLeft?: ReactElement<TIconProps>;
26
27
  } & Props;
27
28
  declare const FormSecondaryButton: {
28
29
  ({ label, isDisabled, dataAttributes, ...props }: SecondaryButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const ModalContentWrapper: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export declare const PageWrapper: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -10,18 +10,18 @@ declare const ControlsContainter: {
10
10
  };
11
11
  declare const TabularPageContainer: import("@emotion/styled").StyledComponent<{
12
12
  theme?: import("@emotion/react").Theme | undefined;
13
- as?: import("react").ElementType<any> | undefined;
13
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
14
14
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
15
  declare const FormControlsContainer: import("@emotion/styled").StyledComponent<{
16
16
  theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
17
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
18
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
19
  declare const CustomViewsSelectorWrapper: import("@emotion/styled").StyledComponent<{
20
20
  theme?: import("@emotion/react").Theme | undefined;
21
- as?: import("react").ElementType<any> | undefined;
21
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
22
22
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
23
  declare const TabularModalPageContainer: import("@emotion/styled").StyledComponent<{
24
24
  theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
25
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
26
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
27
27
  export { ControlsContainter, TabularPageContainer, TabularModalPageContainer, FormControlsContainer, CustomViewsSelectorWrapper, };
@@ -42,14 +42,14 @@ declare const CustomFormMainPage: {
42
42
  title: string;
43
43
  titleSize?: ("big" | "small" | "medium") | undefined;
44
44
  truncate?: boolean | undefined;
45
- subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
45
+ subtitle?: string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
46
46
  children?: undefined;
47
47
  }): import("@emotion/react/jsx-runtime").JSX.Element;
48
48
  displayName: string;
49
49
  };
50
50
  FormPrimaryButton: {
51
51
  ({ label, isDisabled, dataAttributes, ...props }: {
52
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
52
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
53
53
  } & {
54
54
  label?: (string | {
55
55
  id: string;
@@ -67,7 +67,7 @@ declare const CustomFormMainPage: {
67
67
  };
68
68
  FormSecondaryButton: {
69
69
  ({ label, isDisabled, dataAttributes, ...props }: {
70
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
70
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
71
71
  } & {
72
72
  label?: (string | {
73
73
  id: string;
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement, ReactNode, SyntheticEvent } from 'react';
2
+ import type { TIconProps } from '@commercetools-uikit/design-system';
2
3
  type MessageDescriptor = {
3
4
  id: string;
4
5
  description?: string | object;
@@ -57,7 +58,7 @@ type FormMainPageProps = {
57
58
  /**
58
59
  * The Icon for the secondary button label
59
60
  */
60
- iconLeftSecondaryButton?: ReactElement;
61
+ iconLeftSecondaryButton?: ReactElement<TIconProps>;
61
62
  /**
62
63
  * This code is used to configure which Custom Views are available for this page.
63
64
  */
@@ -79,7 +80,7 @@ declare const FormMainPage: {
79
80
  title: string;
80
81
  titleSize?: ("big" | "small" | "medium") | undefined;
81
82
  truncate?: boolean | undefined;
82
- subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
83
+ subtitle?: string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
83
84
  children?: undefined;
84
85
  }): import("@emotion/react/jsx-runtime").JSX.Element;
85
86
  displayName: string;
@@ -99,20 +100,22 @@ declare const FormMainPage: {
99
100
  };
100
101
  save: {
101
102
  id: string;
102
- defaultMessage: string; /**
103
- * The title of the page.
104
- */
103
+ defaultMessage: string;
105
104
  };
106
105
  update: {
107
106
  id: string;
108
107
  defaultMessage: string;
109
108
  };
110
109
  create: {
111
- id: string;
110
+ id: string; /**
111
+ * The subtitle of the page.
112
+ */
112
113
  defaultMessage: string;
113
114
  };
114
115
  delete: {
115
- id: string;
116
+ id: string; /**
117
+ * Replaces the title/subtitle row with a custom one (for special use cases)
118
+ */
116
119
  defaultMessage: string;
117
120
  };
118
121
  add: {
@@ -120,9 +123,7 @@ declare const FormMainPage: {
120
123
  defaultMessage: string;
121
124
  };
122
125
  remove: {
123
- id: string; /**
124
- * Determines if the form controls should be rendered.
125
- */
126
+ id: string;
126
127
  defaultMessage: string;
127
128
  };
128
129
  close: {
@@ -143,6 +144,9 @@ declare const FormMainPage: {
143
144
  };
144
145
  deactivate: {
145
146
  id: string;
147
+ /**
148
+ * Use this prop to pass `data-` attributes to the primary button
149
+ */
146
150
  defaultMessage: string;
147
151
  };
148
152
  active: {
@@ -29,7 +29,7 @@ declare const InfoMainPage: {
29
29
  title: string;
30
30
  titleSize?: ("big" | "small" | "medium") | undefined;
31
31
  truncate?: boolean | undefined;
32
- subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
32
+ subtitle?: string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
33
33
  children?: undefined;
34
34
  }): import("@emotion/react/jsx-runtime").JSX.Element;
35
35
  displayName: string;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const MainPageContainer: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const Divider: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {}>;
10
10
  export declare const MainPageContent: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -39,40 +39,40 @@ declare const TabularMainPage: {
39
39
  displayName: string;
40
40
  FormPrimaryButton: {
41
41
  ({ label, isDisabled, dataAttributes, ...props }: {
42
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
42
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
43
43
  } & {
44
44
  label?: (string | {
45
45
  id: string;
46
46
  description?: string | object | undefined;
47
47
  defaultMessage?: string | undefined;
48
48
  }) | undefined;
49
- onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
49
+ onClick: (event: import("react").SyntheticEvent<Element, Event>) => void; /**
50
+ * The title of the page.
51
+ */
50
52
  isDisabled?: boolean | undefined;
51
53
  dataAttributes?: {
52
54
  [key: string]: string;
53
- } | undefined; /**
54
- * The title of the page.
55
- */
55
+ } | undefined;
56
56
  children?: undefined;
57
57
  }): import("@emotion/react/jsx-runtime").JSX.Element;
58
58
  displayName: string;
59
59
  };
60
60
  FormSecondaryButton: {
61
61
  ({ label, isDisabled, dataAttributes, ...props }: {
62
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
62
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
63
63
  } & {
64
64
  label?: (string | {
65
65
  id: string;
66
66
  description?: string | object | undefined;
67
67
  defaultMessage?: string | undefined;
68
68
  }) | undefined;
69
- onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
69
+ onClick: (event: import("react").SyntheticEvent<Element, Event>) => void; /**
70
+ * The title of the page.
71
+ */
70
72
  isDisabled?: boolean | undefined;
71
73
  dataAttributes?: {
72
74
  [key: string]: string;
73
- } | undefined; /**
74
- * The title of the page.
75
- */
75
+ } | undefined;
76
76
  children?: undefined;
77
77
  }): import("@emotion/react/jsx-runtime").JSX.Element;
78
78
  displayName: string;
@@ -84,13 +84,13 @@ declare const TabularMainPage: {
84
84
  description?: string | object | undefined;
85
85
  defaultMessage?: string | undefined;
86
86
  }) | undefined;
87
- onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
87
+ onClick: (event: import("react").SyntheticEvent<Element, Event>) => void; /**
88
+ * The title of the page.
89
+ */
88
90
  isDisabled?: boolean | undefined;
89
91
  dataAttributes?: {
90
92
  [key: string]: string;
91
- } | undefined; /**
92
- * The title of the page.
93
- */
93
+ } | undefined;
94
94
  children?: undefined;
95
95
  }): import("@emotion/react/jsx-runtime").JSX.Element;
96
96
  displayName: string;
@@ -100,7 +100,7 @@ declare const TabularMainPage: {
100
100
  title: string;
101
101
  titleSize?: ("big" | "small" | "medium") | undefined;
102
102
  truncate?: boolean | undefined;
103
- subtitle?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
103
+ subtitle?: string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
104
104
  children?: undefined;
105
105
  }): import("@emotion/react/jsx-runtime").JSX.Element;
106
106
  displayName: string;
@@ -38,7 +38,7 @@ declare const CustomFormModalPage: {
38
38
  displayName: string;
39
39
  FormPrimaryButton: {
40
40
  ({ label, isDisabled, dataAttributes, ...props }: {
41
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
41
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
42
42
  } & {
43
43
  label?: (string | {
44
44
  id: string;
@@ -56,7 +56,7 @@ declare const CustomFormModalPage: {
56
56
  };
57
57
  FormSecondaryButton: {
58
58
  ({ label, isDisabled, dataAttributes, ...props }: {
59
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
59
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
60
60
  } & {
61
61
  label?: (string | {
62
62
  id: string;
@@ -1,5 +1,6 @@
1
1
  import { SyntheticEvent, ReactNode, ReactElement } from 'react';
2
2
  import type { CSSObject } from '@emotion/react';
3
+ import type { TIconProps } from '@commercetools-uikit/design-system';
3
4
  type MessageDescriptor = {
4
5
  id: string;
5
6
  description?: string | object;
@@ -43,7 +44,7 @@ type Props = {
43
44
  onPrimaryButtonClick: (event: SyntheticEvent) => void;
44
45
  onSecondaryButtonClick: (event: SyntheticEvent) => void;
45
46
  hideControls?: boolean;
46
- iconLeftSecondaryButton?: ReactElement;
47
+ iconLeftSecondaryButton?: ReactElement<TIconProps>;
47
48
  };
48
49
  declare const FormModalPage: {
49
50
  ({ hideControls, ...props }: Props): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -62,9 +63,7 @@ declare const FormModalPage: {
62
63
  defaultMessage: string;
63
64
  };
64
65
  save: {
65
- id: string; /**
66
- * @deprecated Not used anymore, as the value is controlled via the Stacking Layer System.
67
- */
66
+ id: string;
68
67
  defaultMessage: string;
69
68
  };
70
69
  update: {
@@ -20,7 +20,7 @@ export declare const stylesBySize: {
20
20
  };
21
21
  export declare const ModalOverlay: import("@emotion/styled").StyledComponent<{
22
22
  theme?: import("@emotion/react").Theme | undefined;
23
- as?: import("react").ElementType<any> | undefined;
23
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
24
24
  } & {
25
25
  size: TModalPageSize;
26
26
  zIndex?: number | undefined;
@@ -41,7 +41,7 @@ declare const TabularModalPage: {
41
41
  displayName: string;
42
42
  FormPrimaryButton: {
43
43
  ({ label, isDisabled, dataAttributes, ...props }: {
44
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
44
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
45
45
  } & {
46
46
  label?: (string | {
47
47
  id: string;
@@ -59,7 +59,7 @@ declare const TabularModalPage: {
59
59
  };
60
60
  FormSecondaryButton: {
61
61
  ({ label, isDisabled, dataAttributes, ...props }: {
62
- iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
62
+ iconLeft?: ReactElement<import("@commercetools-uikit/design-system").TIconProps, string | import("react").JSXElementConstructor<any>> | undefined;
63
63
  } & {
64
64
  label?: (string | {
65
65
  id: string;
@@ -1,7 +1,7 @@
1
1
  import { type SyntheticEvent, type ReactElement } from 'react';
2
2
  import { type TSecondaryButtonIconProps } from '@commercetools-uikit/secondary-icon-button';
3
3
  type TLargeIconWrapperProps = {
4
- children: ReactElement;
4
+ children: ReactElement<TLargeIconWrapperProps>;
5
5
  size?: TSecondaryButtonIconProps['size'];
6
6
  };
7
7
  export declare const LargeIconWrapper: (props: TLargeIconWrapperProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Container: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const ContainerColumn: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export declare const ContainerColumnWide: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;