@commercetools-frontend/application-components 20.9.3 → 20.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-frontend-application-components.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-application-components.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-application-components.esm.js +1 -1
- package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +107 -107
- package/dist/declarations/src/components/dialogs/confirmation-dialog/index.d.ts +1 -1
- package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +107 -107
- package/dist/declarations/src/components/dialogs/form-dialog/index.d.ts +1 -1
- package/dist/declarations/src/components/dialogs/info-dialog/index.d.ts +1 -1
- package/dist/declarations/src/components/dialogs/info-dialog/info-dialog.d.ts +15 -15
- package/dist/declarations/src/components/dialogs/internals/dialog-container.d.ts +17 -17
- package/dist/declarations/src/components/dialogs/internals/dialog-content.d.ts +6 -6
- package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +27 -27
- package/dist/declarations/src/components/dialogs/internals/dialog-header.d.ts +11 -11
- package/dist/declarations/src/components/dialogs/internals/dialog.styles.d.ts +6 -6
- package/dist/declarations/src/components/maintenance-page-layout/index.d.ts +1 -1
- package/dist/declarations/src/components/maintenance-page-layout/maintenance-page-layout.d.ts +24 -24
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +189 -189
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/index.d.ts +1 -1
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +114 -114
- package/dist/declarations/src/components/modal-pages/form-modal-page/index.d.ts +1 -1
- package/dist/declarations/src/components/modal-pages/info-modal-page/index.d.ts +1 -1
- package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +26 -26
- package/dist/declarations/src/components/modal-pages/internals/default-form-buttons.d.ts +32 -32
- package/dist/declarations/src/components/modal-pages/internals/messages.d.ts +11 -11
- package/dist/declarations/src/components/modal-pages/internals/modal-page-header-title.d.ts +13 -13
- package/dist/declarations/src/components/modal-pages/internals/modal-page-header.d.ts +11 -11
- package/dist/declarations/src/components/modal-pages/internals/modal-page-top-bar.d.ts +20 -20
- package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +28 -28
- package/dist/declarations/src/components/modal-pages/internals/modal-page.styles.d.ts +18 -18
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/index.d.ts +1 -1
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +192 -192
- package/dist/declarations/src/components/page-not-found/index.d.ts +1 -1
- package/dist/declarations/src/components/page-not-found/messages.d.ts +11 -11
- package/dist/declarations/src/components/page-not-found/page-not-found.d.ts +5 -5
- package/dist/declarations/src/components/page-unauthorized/index.d.ts +1 -1
- package/dist/declarations/src/components/page-unauthorized/messages.d.ts +15 -15
- package/dist/declarations/src/components/page-unauthorized/page-unauthorized.d.ts +5 -5
- package/dist/declarations/src/components/portals-container/index.d.ts +1 -1
- package/dist/declarations/src/components/portals-container/portals-container.d.ts +5 -5
- package/dist/declarations/src/components/public-page-layout/index.d.ts +1 -1
- package/dist/declarations/src/components/public-page-layout/public-page-layout.d.ts +9 -9
- package/dist/declarations/src/hooks/use-modal-state/index.d.ts +1 -1
- package/dist/declarations/src/hooks/use-modal-state/use-modal-state.d.ts +6 -6
- package/dist/declarations/src/index.d.ts +14 -14
- package/dist/declarations/src/utils/filter-data-attributes.d.ts +1 -1
- package/dist/declarations/src/version.d.ts +2 -2
- package/package.json +12 -12
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
declare type MessageDescriptor = {
|
|
3
|
-
id: string;
|
|
4
|
-
description?: string | object;
|
|
5
|
-
defaultMessage?: string;
|
|
6
|
-
};
|
|
7
|
-
declare type Label = string | MessageDescriptor;
|
|
8
|
-
declare type Props = {
|
|
9
|
-
level?: number;
|
|
10
|
-
title: string;
|
|
11
|
-
isOpen: boolean;
|
|
12
|
-
onClose?: (event: SyntheticEvent) => void;
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
zIndex?: number;
|
|
15
|
-
baseZIndex?: number;
|
|
16
|
-
getParentSelector?: () => HTMLElement;
|
|
17
|
-
shouldDelayOnClose?: boolean;
|
|
18
|
-
topBarCurrentPathLabel?: string;
|
|
19
|
-
topBarPreviousPathLabel?: Label;
|
|
20
|
-
subtitle?: string | ReactElement;
|
|
21
|
-
};
|
|
22
|
-
declare const InfoModalPage: {
|
|
23
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
-
displayName: string;
|
|
25
|
-
};
|
|
26
|
-
export default InfoModalPage;
|
|
1
|
+
import { ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
declare type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
declare type Label = string | MessageDescriptor;
|
|
8
|
+
declare type Props = {
|
|
9
|
+
level?: number;
|
|
10
|
+
title: string;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose?: (event: SyntheticEvent) => void;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
zIndex?: number;
|
|
15
|
+
baseZIndex?: number;
|
|
16
|
+
getParentSelector?: () => HTMLElement;
|
|
17
|
+
shouldDelayOnClose?: boolean;
|
|
18
|
+
topBarCurrentPathLabel?: string;
|
|
19
|
+
topBarPreviousPathLabel?: Label;
|
|
20
|
+
subtitle?: string | ReactElement;
|
|
21
|
+
};
|
|
22
|
+
declare const InfoModalPage: {
|
|
23
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
export default InfoModalPage;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { SyntheticEvent } from 'react';
|
|
2
|
-
declare type MessageDescriptor = {
|
|
3
|
-
id: string;
|
|
4
|
-
description?: string | object;
|
|
5
|
-
defaultMessage?: string;
|
|
6
|
-
};
|
|
7
|
-
declare type Label = string | MessageDescriptor;
|
|
8
|
-
declare type Props = {
|
|
9
|
-
label: Label;
|
|
10
|
-
onClick: (event: SyntheticEvent) => void;
|
|
11
|
-
isDisabled: boolean;
|
|
12
|
-
dataAttributes: {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
};
|
|
15
|
-
children?: never;
|
|
16
|
-
};
|
|
17
|
-
declare const FormPrimaryButton: {
|
|
18
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
-
displayName: string;
|
|
20
|
-
defaultProps: Pick<Props, "label" | "isDisabled" | "dataAttributes">;
|
|
21
|
-
};
|
|
22
|
-
declare const FormSecondaryButton: {
|
|
23
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
-
displayName: string;
|
|
25
|
-
defaultProps: Pick<Props, "label" | "isDisabled" | "dataAttributes">;
|
|
26
|
-
};
|
|
27
|
-
declare const FormDeleteButton: {
|
|
28
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
-
displayName: string;
|
|
30
|
-
defaultProps: Pick<Props, "label" | "isDisabled" | "dataAttributes">;
|
|
31
|
-
};
|
|
32
|
-
export { FormPrimaryButton, FormSecondaryButton, FormDeleteButton };
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
declare type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
declare type Label = string | MessageDescriptor;
|
|
8
|
+
declare type Props = {
|
|
9
|
+
label: Label;
|
|
10
|
+
onClick: (event: SyntheticEvent) => void;
|
|
11
|
+
isDisabled: boolean;
|
|
12
|
+
dataAttributes: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
children?: never;
|
|
16
|
+
};
|
|
17
|
+
declare const FormPrimaryButton: {
|
|
18
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
defaultProps: Pick<Props, "label" | "isDisabled" | "dataAttributes">;
|
|
21
|
+
};
|
|
22
|
+
declare const FormSecondaryButton: {
|
|
23
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
defaultProps: Pick<Props, "label" | "isDisabled" | "dataAttributes">;
|
|
26
|
+
};
|
|
27
|
+
declare const FormDeleteButton: {
|
|
28
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
defaultProps: Pick<Props, "label" | "isDisabled" | "dataAttributes">;
|
|
31
|
+
};
|
|
32
|
+
export { FormPrimaryButton, FormSecondaryButton, FormDeleteButton };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const messages: {
|
|
2
|
-
back: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
};
|
|
6
|
-
close: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default messages;
|
|
1
|
+
declare const messages: {
|
|
2
|
+
back: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
};
|
|
6
|
+
close: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default messages;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
title: string;
|
|
4
|
-
titleSize: 'big' | 'small';
|
|
5
|
-
subtitle?: string | ReactElement;
|
|
6
|
-
children?: never;
|
|
7
|
-
};
|
|
8
|
-
declare const ModalPageHeaderTitle: {
|
|
9
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
defaultProps: Pick<Props, "titleSize">;
|
|
12
|
-
};
|
|
13
|
-
export default ModalPageHeaderTitle;
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
titleSize: 'big' | 'small';
|
|
5
|
+
subtitle?: string | ReactElement;
|
|
6
|
+
children?: never;
|
|
7
|
+
};
|
|
8
|
+
declare const ModalPageHeaderTitle: {
|
|
9
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
defaultProps: Pick<Props, "titleSize">;
|
|
12
|
+
};
|
|
13
|
+
export default ModalPageHeaderTitle;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
title: string;
|
|
4
|
-
subtitle?: string | ReactElement;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
};
|
|
7
|
-
declare const ModalPageHeader: {
|
|
8
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
export default ModalPageHeader;
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string | ReactElement;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const ModalPageHeader: {
|
|
8
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default ModalPageHeader;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { SyntheticEvent } from 'react';
|
|
2
|
-
declare type MessageDescriptor = {
|
|
3
|
-
id: string;
|
|
4
|
-
description?: string | object;
|
|
5
|
-
defaultMessage?: string;
|
|
6
|
-
};
|
|
7
|
-
declare type Label = string | MessageDescriptor;
|
|
8
|
-
declare type Props = {
|
|
9
|
-
color: 'surface' | 'neutral';
|
|
10
|
-
currentPathLabel?: string;
|
|
11
|
-
previousPathLabel: Label;
|
|
12
|
-
onClose: (event: SyntheticEvent) => void;
|
|
13
|
-
children?: never;
|
|
14
|
-
};
|
|
15
|
-
declare const ModalPageTopBar: {
|
|
16
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
defaultProps: Pick<Props, "color" | "previousPathLabel">;
|
|
19
|
-
};
|
|
20
|
-
export default ModalPageTopBar;
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
declare type MessageDescriptor = {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string | object;
|
|
5
|
+
defaultMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
declare type Label = string | MessageDescriptor;
|
|
8
|
+
declare type Props = {
|
|
9
|
+
color: 'surface' | 'neutral';
|
|
10
|
+
currentPathLabel?: string;
|
|
11
|
+
previousPathLabel: Label;
|
|
12
|
+
onClose: (event: SyntheticEvent) => void;
|
|
13
|
+
children?: never;
|
|
14
|
+
};
|
|
15
|
+
declare const ModalPageTopBar: {
|
|
16
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
defaultProps: Pick<Props, "color" | "previousPathLabel">;
|
|
19
|
+
};
|
|
20
|
+
export default ModalPageTopBar;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
declare const getDefaultParentSelector: () => HTMLElement;
|
|
3
|
-
declare type MessageDescriptor = {
|
|
4
|
-
id: string;
|
|
5
|
-
description?: string | object;
|
|
6
|
-
defaultMessage?: string;
|
|
7
|
-
};
|
|
8
|
-
declare type Label = string | MessageDescriptor;
|
|
9
|
-
declare type Props = {
|
|
10
|
-
level: number;
|
|
11
|
-
title: string;
|
|
12
|
-
isOpen: boolean;
|
|
13
|
-
onClose?: (event: SyntheticEvent) => void;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
zIndex?: number;
|
|
16
|
-
baseZIndex: number;
|
|
17
|
-
getParentSelector: typeof getDefaultParentSelector;
|
|
18
|
-
shouldDelayOnClose: boolean;
|
|
19
|
-
topBarColor?: 'surface' | 'neutral';
|
|
20
|
-
currentPathLabel?: string;
|
|
21
|
-
previousPathLabel?: Label;
|
|
22
|
-
};
|
|
23
|
-
declare const ModalPage: {
|
|
24
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
-
displayName: string;
|
|
26
|
-
defaultProps: Pick<Props, "getParentSelector" | "level" | "baseZIndex" | "shouldDelayOnClose">;
|
|
27
|
-
};
|
|
28
|
-
export default ModalPage;
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
declare const getDefaultParentSelector: () => HTMLElement;
|
|
3
|
+
declare type MessageDescriptor = {
|
|
4
|
+
id: string;
|
|
5
|
+
description?: string | object;
|
|
6
|
+
defaultMessage?: string;
|
|
7
|
+
};
|
|
8
|
+
declare type Label = string | MessageDescriptor;
|
|
9
|
+
declare type Props = {
|
|
10
|
+
level: number;
|
|
11
|
+
title: string;
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
onClose?: (event: SyntheticEvent) => void;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
baseZIndex: number;
|
|
17
|
+
getParentSelector: typeof getDefaultParentSelector;
|
|
18
|
+
shouldDelayOnClose: boolean;
|
|
19
|
+
topBarColor?: 'surface' | 'neutral';
|
|
20
|
+
currentPathLabel?: string;
|
|
21
|
+
previousPathLabel?: Label;
|
|
22
|
+
};
|
|
23
|
+
declare const ModalPage: {
|
|
24
|
+
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
defaultProps: Pick<Props, "getParentSelector" | "level" | "baseZIndex" | "shouldDelayOnClose">;
|
|
27
|
+
};
|
|
28
|
+
export default ModalPage;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const TRANSITION_DURATION = 200;
|
|
3
|
-
declare type StyleProps = {
|
|
4
|
-
level: number;
|
|
5
|
-
zIndex?: number;
|
|
6
|
-
baseZIndex: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const getContainerStyles: (props: StyleProps) => import("@emotion/utils").SerializedStyles;
|
|
9
|
-
export declare const getOverlayStyles: (props: StyleProps) => import("@emotion/utils").SerializedStyles;
|
|
10
|
-
export declare const getAfterOpenContainerAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
11
|
-
export declare const getAfterOpenOverlayAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
12
|
-
export declare const getBeforeCloseContainerAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
13
|
-
export declare const getBeforeCloseOverlayAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
14
|
-
export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TRANSITION_DURATION = 200;
|
|
3
|
+
declare type StyleProps = {
|
|
4
|
+
level: number;
|
|
5
|
+
zIndex?: number;
|
|
6
|
+
baseZIndex: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const getContainerStyles: (props: StyleProps) => import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const getOverlayStyles: (props: StyleProps) => import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const getAfterOpenContainerAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
11
|
+
export declare const getAfterOpenOverlayAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
12
|
+
export declare const getBeforeCloseContainerAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
13
|
+
export declare const getBeforeCloseOverlayAnimation: () => import("@emotion/utils").SerializedStyles;
|
|
14
|
+
export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './tabular-modal-page';
|
|
1
|
+
export { default } from './tabular-modal-page';
|