@dfds-ui/modal 2.2.0-alpha.07a3a716 → 2.2.0-alpha.32eece3d

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.
@@ -89,5 +89,5 @@ export declare type ModalProps = React.PropsWithChildren<{
89
89
  */
90
90
  backdropVariant?: BackdropVariant;
91
91
  }>;
92
- export declare const Modal: ({ showClose, heading, headerClassName, noContentPadding, onRequestClose, children, closeTabIndex, closeLabel, column, zIndex, sizes, renderWhenClosed, backdrop, backdropVariant, actions, ...rest }: ModalProps) => JSX.Element;
92
+ export declare const Modal: ({ showClose, heading, headerClassName, noContentPadding, onRequestClose, children, closeTabIndex, closeLabel, column, zIndex, sizes, renderWhenClosed, backdrop, backdropVariant, actions, ...rest }: ModalProps) => React.JSX.Element;
93
93
  export default Modal;
@@ -11,7 +11,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
11
11
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
12
12
  const ModalAction = props => {
13
13
  return (0, _react2.jsx)("div", _extends({
14
- css: /*#__PURE__*/(0, _react2.css)("display:flex;flex-wrap:nowrap;justify-content:flex-end;flex-grow:1;padding-top:", _theme.theme.spacing.s, ";padding-bottom:", _theme.theme.spacing.s, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ModalAction;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2RhbC9Nb2RhbEFjdGlvbnNDb250YWluZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNjIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9tb2RhbC9Nb2RhbEFjdGlvbnND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Glvbj59PC9kaXY+XG59XG5cbmV4cG9ydCBkZWZhdWx0IE1vZGFsQWN0aW9uc0NvbnRhaW5lclxuIl19 */")
14
+ css: /*#__PURE__*/(0, _react2.css)("display:flex;flex-wrap:nowrap;justify-content:flex-end;flex-grow:1;padding-top:", _theme.theme.spacing.s, ";padding-bottom:", _theme.theme.spacing.s, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ModalAction;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2RhbC9Nb2RhbEFjdGlvbnNDb250YWluZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNjIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9tb2RhbC9Nb2RhbEFjdGlvbnNDb250YWluZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuXG5leHBvcnQgdHlwZSBNb2RhbEFjdGlvbnNQcm9wcyA9IHtcbiAgLyoqXG4gICAqIEFjdGlvbnMgdG8gYmUgZGlzcGxheWVkIGF0IHRoZSBib3R0b20gb2YgdGhlIG1vZGFsXG4gICAqL1xuICBhY3Rpb25zPzogUmVhY3QuUmVhY3ROb2RlXG59XG5cbmNvbnN0IE1vZGFsQWN0aW9uOiBSZWFjdC5GdW5jdGlvbkNvbXBvbmVudDx7IGNoaWxkcmVuPzogUmVhY3QuUmVhY3ROb2RlOyBjbGFzc05hbWU/OiBzdHJpbmcgfT4gPSAocHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgZmxleC13cmFwOiBub3dyYXA7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG4gICAgICAgIGZsZXgtZ3JvdzogMTtcbiAgICAgICAgcGFkZGluZy10b3A6ICR7dGhlbWUuc3BhY2luZy5zfTtcbiAgICAgICAgcGFkZGluZy1ib3R0b206ICR7dGhlbWUuc3BhY2luZy5zfTtcbiAgICAgIGB9XG4gICAgICB7Li4ucHJvcHN9XG4gICAgLz5cbiAgKVxufVxuXG5jb25zdCBNb2RhbEFjdGlvbnNDb250YWluZXI6IFJlYWN0LkZ1bmN0aW9uQ29tcG9uZW50PE1vZGFsQWN0aW9uc1Byb3BzPiA9ICh7IGFjdGlvbnMsIC4uLnJlc3QgfSkgPT4ge1xuICByZXR1cm4gPGRpdiB7Li4ucmVzdH0+e2FjdGlvbnMgJiYgPE1vZGFsQWN0aW9uPnthY3Rpb25zfTwvTW9kYWxBY3Rpb24+fTwvZGl2PlxufVxuXG5leHBvcnQgZGVmYXVsdCBNb2RhbEFjdGlvbnNDb250YWluZXJcbiJdfQ== */")
15
15
  }, props));
16
16
  };
17
17
  const ModalActionsContainer = ({
@@ -5,6 +5,6 @@ export declare type ModalBodyProps = {
5
5
  };
6
6
  export declare const ModalBody: 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
  } & ModalBodyProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export default ModalBody;
@@ -9,5 +9,5 @@ export declare type ModalCloseButtonProps = {
9
9
  closeLabel?: string;
10
10
  children?: React.ReactNode;
11
11
  };
12
- export declare const ModalCloseButton: ({ onRequestClose, className, icon, size, closeLabel, ...rest }: ModalCloseButtonProps) => JSX.Element;
12
+ export declare const ModalCloseButton: ({ onRequestClose, className, icon, size, closeLabel, ...rest }: ModalCloseButtonProps) => React.JSX.Element;
13
13
  export default ModalCloseButton;
@@ -38,5 +38,5 @@ export declare const defaultProps: {
38
38
  backdrop: "lowEmphasis" | "mediumEmphasis" | "highEmphasis";
39
39
  backdropVariant: BackdropVariant;
40
40
  };
41
- declare const ModalDialog: ({ isOpen, onRequestClose, shouldCloseOnOverlayClick, shouldCloseOnEsc, variation, zIndex, className, sizes, fixedTopPosition, renderWhenClosed, backdrop, backdropVariant, children, ...rest }: ModalDialogProps) => JSX.Element | null;
41
+ declare const ModalDialog: ({ isOpen, onRequestClose, shouldCloseOnOverlayClick, shouldCloseOnEsc, variation, zIndex, className, sizes, fixedTopPosition, renderWhenClosed, backdrop, backdropVariant, children, ...rest }: ModalDialogProps) => React.JSX.Element | null;
42
42
  export default ModalDialog;
@@ -1,8 +1,8 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type ModalFooterProps = {
3
3
  className?: string;
4
4
  sticky?: boolean;
5
5
  children?: ReactNode;
6
6
  };
7
- export declare const ModalFooter: ({ children, className, sticky, ...rest }: ModalFooterProps) => JSX.Element;
7
+ export declare const ModalFooter: ({ children, className, sticky, ...rest }: ModalFooterProps) => React.JSX.Element;
8
8
  export default ModalFooter;
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type ModalHeaderProps = {
3
3
  className?: string;
4
4
  sticky?: boolean;
5
5
  children?: ReactNode;
6
6
  noDivider?: boolean;
7
7
  };
8
- export declare const ModalHeader: ({ children, className, sticky, noDivider, ...rest }: ModalHeaderProps) => JSX.Element;
8
+ export declare const ModalHeader: ({ children, className, sticky, noDivider, ...rest }: ModalHeaderProps) => React.JSX.Element;
9
9
  export default ModalHeader;
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type ModalHeadlineProps = {
3
3
  className?: string;
4
4
  children?: ReactNode;
5
5
  };
6
- export declare const ModalHeadline: ({ className, children }: ModalHeadlineProps) => JSX.Element;
6
+ export declare const ModalHeadline: ({ className, children }: ModalHeadlineProps) => React.JSX.Element;
7
7
  export default ModalHeadline;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type ModalPanelProps = {
3
3
  /**
4
4
  * Determines if the modal should be shown or not.
@@ -22,7 +22,7 @@ export declare type ModalPanelProps = {
22
22
  className?: string;
23
23
  children?: ReactNode;
24
24
  };
25
- export declare const ModalPanel: ({ isOpen, shouldCloseOnEsc, onRequestClose, zIndex, className, children, }: ModalPanelProps) => JSX.Element;
25
+ export declare const ModalPanel: ({ isOpen, shouldCloseOnEsc, onRequestClose, zIndex, className, children, }: ModalPanelProps) => React.JSX.Element;
26
26
  export declare type ModalPanelHeaderProps = {
27
27
  /**
28
28
  * className to be assigned to component
@@ -30,7 +30,7 @@ export declare type ModalPanelHeaderProps = {
30
30
  className?: string;
31
31
  children: ReactNode;
32
32
  };
33
- export declare const ModalPanelHeader: ({ className, children }: ModalPanelHeaderProps) => JSX.Element;
33
+ export declare const ModalPanelHeader: ({ className, children }: ModalPanelHeaderProps) => React.JSX.Element;
34
34
  export declare type ModalPanelContent = {
35
35
  /**
36
36
  * className to be assigned to component
@@ -38,7 +38,7 @@ export declare type ModalPanelContent = {
38
38
  className?: string;
39
39
  children: ReactNode;
40
40
  };
41
- export declare const ModalPanelContent: ({ className, children }: ModalPanelContent) => JSX.Element;
41
+ export declare const ModalPanelContent: ({ className, children }: ModalPanelContent) => React.JSX.Element;
42
42
  export declare type ModalPanelFooterProps = {
43
43
  /**
44
44
  * className to be assigned to component
@@ -46,4 +46,4 @@ export declare type ModalPanelFooterProps = {
46
46
  className?: string;
47
47
  children: ReactNode;
48
48
  };
49
- export declare const ModalPanelFooter: ({ className, children }: ModalPanelFooterProps) => JSX.Element;
49
+ export declare const ModalPanelFooter: ({ className, children }: ModalPanelFooterProps) => React.JSX.Element;
@@ -4,4 +4,4 @@ export declare type ReactModalWrapperProps = ReactModal.Props & {
4
4
  className?: string;
5
5
  children?: React.ReactNode;
6
6
  };
7
- export declare const ReactModalWrapper: ({ className, ...rest }: ReactModalWrapperProps) => JSX.Element;
7
+ export declare const ReactModalWrapper: ({ className, ...rest }: ReactModalWrapperProps) => React.JSX.Element;
package/modal/Modal.d.ts CHANGED
@@ -89,5 +89,5 @@ export declare type ModalProps = React.PropsWithChildren<{
89
89
  */
90
90
  backdropVariant?: BackdropVariant;
91
91
  }>;
92
- export declare const Modal: ({ showClose, heading, headerClassName, noContentPadding, onRequestClose, children, closeTabIndex, closeLabel, column, zIndex, sizes, renderWhenClosed, backdrop, backdropVariant, actions, ...rest }: ModalProps) => JSX.Element;
92
+ export declare const Modal: ({ showClose, heading, headerClassName, noContentPadding, onRequestClose, children, closeTabIndex, closeLabel, column, zIndex, sizes, renderWhenClosed, backdrop, backdropVariant, actions, ...rest }: ModalProps) => React.JSX.Element;
93
93
  export default Modal;
@@ -8,7 +8,7 @@ import { css } from '@emotion/react';
8
8
  import { jsx as ___EmotionJSX } from "@emotion/react";
9
9
  var ModalAction = function ModalAction(props) {
10
10
  return ___EmotionJSX("div", _extends({
11
- css: /*#__PURE__*/css("display:flex;flex-wrap:nowrap;justify-content:flex-end;flex-grow:1;padding-top:", theme.spacing.s, ";padding-bottom:", theme.spacing.s, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ModalAction;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2RhbC9Nb2RhbEFjdGlvbnNDb250YWluZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNjIiwiZmlsZSI6Ii4uLy4uL3NyYy9tb2RhbC9Nb2RhbEFjdGlvbnNDb250YWluZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsi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Wx0IE1vZGFsQWN0aW9uc0NvbnRhaW5lclxuIl19 */")
11
+ css: /*#__PURE__*/css("display:flex;flex-wrap:nowrap;justify-content:flex-end;flex-grow:1;padding-top:", theme.spacing.s, ";padding-bottom:", theme.spacing.s, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ModalAction;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2RhbC9Nb2RhbEFjdGlvbnNDb250YWluZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNjIiwiZmlsZSI6Ii4uLy4uL3NyYy9tb2RhbC9Nb2RhbEFjdGlvbnNDb250YWluZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuXG5leHBvcnQgdHlwZSBNb2RhbEFjdGlvbnNQcm9wcyA9IHtcbiAgLyoqXG4gICAqIEFjdGlvbnMgdG8gYmUgZGlzcGxheWVkIGF0IHRoZSBib3R0b20gb2YgdGhlIG1vZGFsXG4gICAqL1xuICBhY3Rpb25zPzogUmVhY3QuUmVhY3ROb2RlXG59XG5cbmNvbnN0IE1vZGFsQWN0aW9uOiBSZWFjdC5GdW5jdGlvbkNvbXBvbmVudDx7IGNoaWxkcmVuPzogUmVhY3QuUmVhY3ROb2RlOyBjbGFzc05hbWU/OiBzdHJpbmcgfT4gPSAocHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgZmxleC13cmFwOiBub3dyYXA7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG4gICAgICAgIGZsZXgtZ3JvdzogMTtcbiAgICAgICAgcGFkZGluZy10b3A6ICR7dGhlbWUuc3BhY2luZy5zfTtcbiAgICAgICAgcGFkZGluZy1ib3R0b206ICR7dGhlbWUuc3BhY2luZy5zfTtcbiAgICAgIGB9XG4gICAgICB7Li4ucHJvcHN9XG4gICAgLz5cbiAgKVxufVxuXG5jb25zdCBNb2RhbEFjdGlvbnNDb250YWluZXI6IFJlYWN0LkZ1bmN0aW9uQ29tcG9uZW50PE1vZGFsQWN0aW9uc1Byb3BzPiA9ICh7IGFjdGlvbnMsIC4uLnJlc3QgfSkgPT4ge1xuICByZXR1cm4gPGRpdiB7Li4ucmVzdH0+e2FjdGlvbnMgJiYgPE1vZGFsQWN0aW9uPnthY3Rpb25zfTwvTW9kYWxBY3Rpb24+fTwvZGl2PlxufVxuXG5leHBvcnQgZGVmYXVsdCBNb2RhbEFjdGlvbnNDb250YWluZXJcbiJdfQ== */")
12
12
  }, props));
13
13
  };
14
14
  var ModalActionsContainer = function ModalActionsContainer(_ref) {
@@ -5,6 +5,6 @@ export declare type ModalBodyProps = {
5
5
  };
6
6
  export declare const ModalBody: 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
  } & ModalBodyProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export default ModalBody;
@@ -9,5 +9,5 @@ export declare type ModalCloseButtonProps = {
9
9
  closeLabel?: string;
10
10
  children?: React.ReactNode;
11
11
  };
12
- export declare const ModalCloseButton: ({ onRequestClose, className, icon, size, closeLabel, ...rest }: ModalCloseButtonProps) => JSX.Element;
12
+ export declare const ModalCloseButton: ({ onRequestClose, className, icon, size, closeLabel, ...rest }: ModalCloseButtonProps) => React.JSX.Element;
13
13
  export default ModalCloseButton;
@@ -38,5 +38,5 @@ export declare const defaultProps: {
38
38
  backdrop: "lowEmphasis" | "mediumEmphasis" | "highEmphasis";
39
39
  backdropVariant: BackdropVariant;
40
40
  };
41
- declare const ModalDialog: ({ isOpen, onRequestClose, shouldCloseOnOverlayClick, shouldCloseOnEsc, variation, zIndex, className, sizes, fixedTopPosition, renderWhenClosed, backdrop, backdropVariant, children, ...rest }: ModalDialogProps) => JSX.Element | null;
41
+ declare const ModalDialog: ({ isOpen, onRequestClose, shouldCloseOnOverlayClick, shouldCloseOnEsc, variation, zIndex, className, sizes, fixedTopPosition, renderWhenClosed, backdrop, backdropVariant, children, ...rest }: ModalDialogProps) => React.JSX.Element | null;
42
42
  export default ModalDialog;
@@ -1,8 +1,8 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type ModalFooterProps = {
3
3
  className?: string;
4
4
  sticky?: boolean;
5
5
  children?: ReactNode;
6
6
  };
7
- export declare const ModalFooter: ({ children, className, sticky, ...rest }: ModalFooterProps) => JSX.Element;
7
+ export declare const ModalFooter: ({ children, className, sticky, ...rest }: ModalFooterProps) => React.JSX.Element;
8
8
  export default ModalFooter;
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type ModalHeaderProps = {
3
3
  className?: string;
4
4
  sticky?: boolean;
5
5
  children?: ReactNode;
6
6
  noDivider?: boolean;
7
7
  };
8
- export declare const ModalHeader: ({ children, className, sticky, noDivider, ...rest }: ModalHeaderProps) => JSX.Element;
8
+ export declare const ModalHeader: ({ children, className, sticky, noDivider, ...rest }: ModalHeaderProps) => React.JSX.Element;
9
9
  export default ModalHeader;
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type ModalHeadlineProps = {
3
3
  className?: string;
4
4
  children?: ReactNode;
5
5
  };
6
- export declare const ModalHeadline: ({ className, children }: ModalHeadlineProps) => JSX.Element;
6
+ export declare const ModalHeadline: ({ className, children }: ModalHeadlineProps) => React.JSX.Element;
7
7
  export default ModalHeadline;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type ModalPanelProps = {
3
3
  /**
4
4
  * Determines if the modal should be shown or not.
@@ -22,7 +22,7 @@ export declare type ModalPanelProps = {
22
22
  className?: string;
23
23
  children?: ReactNode;
24
24
  };
25
- export declare const ModalPanel: ({ isOpen, shouldCloseOnEsc, onRequestClose, zIndex, className, children, }: ModalPanelProps) => JSX.Element;
25
+ export declare const ModalPanel: ({ isOpen, shouldCloseOnEsc, onRequestClose, zIndex, className, children, }: ModalPanelProps) => React.JSX.Element;
26
26
  export declare type ModalPanelHeaderProps = {
27
27
  /**
28
28
  * className to be assigned to component
@@ -30,7 +30,7 @@ export declare type ModalPanelHeaderProps = {
30
30
  className?: string;
31
31
  children: ReactNode;
32
32
  };
33
- export declare const ModalPanelHeader: ({ className, children }: ModalPanelHeaderProps) => JSX.Element;
33
+ export declare const ModalPanelHeader: ({ className, children }: ModalPanelHeaderProps) => React.JSX.Element;
34
34
  export declare type ModalPanelContent = {
35
35
  /**
36
36
  * className to be assigned to component
@@ -38,7 +38,7 @@ export declare type ModalPanelContent = {
38
38
  className?: string;
39
39
  children: ReactNode;
40
40
  };
41
- export declare const ModalPanelContent: ({ className, children }: ModalPanelContent) => JSX.Element;
41
+ export declare const ModalPanelContent: ({ className, children }: ModalPanelContent) => React.JSX.Element;
42
42
  export declare type ModalPanelFooterProps = {
43
43
  /**
44
44
  * className to be assigned to component
@@ -46,4 +46,4 @@ export declare type ModalPanelFooterProps = {
46
46
  className?: string;
47
47
  children: ReactNode;
48
48
  };
49
- export declare const ModalPanelFooter: ({ className, children }: ModalPanelFooterProps) => JSX.Element;
49
+ export declare const ModalPanelFooter: ({ className, children }: ModalPanelFooterProps) => React.JSX.Element;
@@ -4,4 +4,4 @@ export declare type ReactModalWrapperProps = ReactModal.Props & {
4
4
  className?: string;
5
5
  children?: React.ReactNode;
6
6
  };
7
- export declare const ReactModalWrapper: ({ className, ...rest }: ReactModalWrapperProps) => JSX.Element;
7
+ export declare const ReactModalWrapper: ({ className, ...rest }: ReactModalWrapperProps) => React.JSX.Element;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Modal components",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.2.0-alpha.07a3a716",
6
+ "version": "2.2.0-alpha.32eece3d",
7
7
  "sideEffects": false,
8
8
  "main": "./cjs/index.js",
9
9
  "module": "./index.js",
@@ -12,18 +12,18 @@
12
12
  "peerDependencies": {
13
13
  "@emotion/react": "11.11.4",
14
14
  "@emotion/styled": "11.11.5",
15
- "react": ">= 17.0.2",
16
- "react-dom": ">= 17.0.2"
15
+ "react": ">= 18.3.1",
16
+ "react-dom": ">= 18.3.1"
17
17
  },
18
18
  "dependencies": {
19
- "@dfds-ui/colors": "2.2.0-alpha.07a3a716",
20
- "@dfds-ui/icons": "2.2.0-alpha.07a3a716",
21
- "@dfds-ui/react-components": "2.2.0-alpha.07a3a716",
22
- "@dfds-ui/theme": "2.2.0-alpha.07a3a716",
23
- "@dfds-ui/typography": "2.2.0-alpha.07a3a716",
24
- "react-modal": "^3.16.1"
19
+ "@dfds-ui/colors": "2.2.0-alpha.32eece3d",
20
+ "@dfds-ui/icons": "2.2.0-alpha.32eece3d",
21
+ "@dfds-ui/react-components": "2.2.0-alpha.32eece3d",
22
+ "@dfds-ui/theme": "2.2.0-alpha.32eece3d",
23
+ "@dfds-ui/typography": "2.2.0-alpha.32eece3d",
24
+ "react-modal": "3.16.3"
25
25
  },
26
- "gitHead": "07a3a716ccdba2666c18875b7e696daf45115aab",
26
+ "gitHead": "32eece3d9838c4d530c5e21b63815021b472c717",
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  }