@commercetools-frontend/application-components 22.40.0 → 22.41.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.
@@ -33,7 +33,7 @@ var constants = require('@commercetools-frontend/constants');
33
33
  var jsxRuntime = require('@emotion/react/jsx-runtime');
34
34
  require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
35
35
  require('@commercetools-uikit/utils');
36
- require('react-modal');
36
+ require('@radix-ui/react-dialog');
37
37
  require('@commercetools-uikit/card');
38
38
  require('@commercetools-uikit/secondary-icon-button');
39
39
  require('@commercetools-frontend/i18n');
@@ -31,7 +31,7 @@ import { featureFlags, GRAPHQL_TARGETS } from '@commercetools-frontend/constants
31
31
  import { jsx, jsxs } from '@emotion/react/jsx-runtime';
32
32
  import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
33
33
  import '@commercetools-uikit/utils';
34
- import 'react-modal';
34
+ import '@radix-ui/react-dialog';
35
35
  import '@commercetools-uikit/card';
36
36
  import '@commercetools-uikit/secondary-icon-button';
37
37
  import '@commercetools-frontend/i18n';
@@ -33,7 +33,7 @@ var constants = require('@commercetools-frontend/constants');
33
33
  var jsxRuntime = require('@emotion/react/jsx-runtime');
34
34
  require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
35
35
  require('@commercetools-uikit/utils');
36
- require('react-modal');
36
+ require('@radix-ui/react-dialog');
37
37
  require('@commercetools-uikit/card');
38
38
  require('@commercetools-uikit/secondary-icon-button');
39
39
  require('@commercetools-frontend/i18n');
@@ -1,4 +1,4 @@
1
- import { SyntheticEvent, ReactNode } from 'react';
1
+ import type { ReactNode, SyntheticEvent } from 'react';
2
2
  export type TInfoDialogProps = {
3
3
  isOpen: boolean;
4
4
  onClose?: (event: SyntheticEvent) => void;
@@ -1,4 +1,4 @@
1
- import type { ReactNode, SyntheticEvent } from 'react';
1
+ import { type ReactNode, type SyntheticEvent } from 'react';
2
2
  declare const getDefaultParentSelector: () => HTMLElement;
3
3
  type Props = {
4
4
  isOpen: boolean;
@@ -1,8 +1,19 @@
1
+ /// <reference types="react" />
1
2
  import { type SerializedStyles } from '@emotion/react';
2
3
  type StyleProps = {
3
4
  size: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
4
5
  zIndex?: number;
5
6
  };
6
7
  export declare const getModalContentStyles: (props: StyleProps) => SerializedStyles;
7
- export declare const getOverlayStyles: (props: StyleProps) => SerializedStyles;
8
+ export declare const ClickableDialogContent: import("@emotion/styled").StyledComponent<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement> & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ } & StyleProps, {}, {}>;
11
+ export declare const DialogOverlay: import("@emotion/styled").StyledComponent<{
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
+ } & Pick<StyleProps, "zIndex">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
+ export declare const DialogContent: import("@emotion/styled").StyledComponent<{
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
19
  export {};
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode, type SyntheticEvent } from 'react';
2
- import { type CSSObject } from '@emotion/react';
2
+ import type { CSSObject } from '@emotion/react';
3
3
  declare const getDefaultParentSelector: () => HTMLElement;
4
4
  type MessageDescriptor = {
5
5
  id: string;
@@ -1,9 +1,5 @@
1
- import { type SerializedStyles } from '@emotion/react';
1
+ /// <reference types="react" />
2
2
  import type { TModalPageSize } from './modal-page';
3
- type StyleProps = {
4
- zIndex?: number;
5
- size: TModalPageSize;
6
- };
7
3
  export declare const stylesBySize: {
8
4
  '10': {
9
5
  width: string;
@@ -22,10 +18,15 @@ export declare const stylesBySize: {
22
18
  transitionTime: number;
23
19
  };
24
20
  };
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 {};
21
+ export declare const ModalOverlay: import("@emotion/styled").StyledComponent<{
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
+ } & {
25
+ size: TModalPageSize;
26
+ zIndex?: number | undefined;
27
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
28
+ export declare const ModalContent: import("@emotion/styled").StyledComponent<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement> & {
29
+ theme?: import("@emotion/react").Theme | undefined;
30
+ } & {
31
+ size: TModalPageSize;
32
+ }, {}, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-components",
3
- "version": "22.40.0",
3
+ "version": "22.41.0",
4
4
  "description": "Generic components for building Merchant Center applications",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -36,14 +36,14 @@
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.22.15",
38
38
  "@babel/runtime-corejs3": "^7.22.15",
39
- "@commercetools-frontend/actions-global": "22.40.0",
40
- "@commercetools-frontend/application-config": "22.40.0",
41
- "@commercetools-frontend/application-shell-connectors": "22.40.0",
42
- "@commercetools-frontend/assets": "22.40.0",
43
- "@commercetools-frontend/constants": "22.40.0",
44
- "@commercetools-frontend/i18n": "22.40.0",
45
- "@commercetools-frontend/l10n": "22.40.0",
46
- "@commercetools-frontend/sentry": "22.40.0",
39
+ "@commercetools-frontend/actions-global": "22.41.0",
40
+ "@commercetools-frontend/application-config": "22.41.0",
41
+ "@commercetools-frontend/application-shell-connectors": "22.41.0",
42
+ "@commercetools-frontend/assets": "22.41.0",
43
+ "@commercetools-frontend/constants": "22.41.0",
44
+ "@commercetools-frontend/i18n": "22.41.0",
45
+ "@commercetools-frontend/l10n": "22.41.0",
46
+ "@commercetools-frontend/sentry": "22.41.0",
47
47
  "@commercetools-uikit/accessible-button": "^19.17.1",
48
48
  "@commercetools-uikit/card": "^19.17.1",
49
49
  "@commercetools-uikit/constraints": "^19.17.1",
@@ -64,6 +64,7 @@
64
64
  "@emotion/react": "^11.11.4",
65
65
  "@emotion/styled": "^11.11.0",
66
66
  "@flopflip/react-broadcast": "14.0.2",
67
+ "@radix-ui/react-dialog": "1.1.4",
67
68
  "@react-hook/latest": "1.0.3",
68
69
  "@react-hook/resize-observer": "1.2.6",
69
70
  "@types/history": "^4.7.11",
@@ -76,8 +77,7 @@
76
77
  "history": "4.10.1",
77
78
  "lodash": "4.17.21",
78
79
  "prop-types": "15.8.1",
79
- "raf-schd": "^4.0.3",
80
- "react-modal": "3.16.1"
80
+ "raf-schd": "^4.0.3"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@apollo/client": "3.7.14",