@povio/ui 2.1.22 → 2.1.23

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/Modal.js CHANGED
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { clsx } from "clsx";
8
8
  import { Dialog, Modal, ModalOverlay } from "react-aria-components";
9
9
  import { useTranslation } from "react-i18next";
10
- const Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable = true, shouldCloseOnInteractOutside }) => {
10
+ const Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable = true, isKeyboardDismissable, shouldCloseOnInteractOutside }) => {
11
11
  const { t } = useTranslation("ui");
12
12
  const uiStyle = UIStyle.useConfig();
13
13
  const modalMainCva = uiStyle?.modal?.mainCva ?? modalMain;
@@ -20,6 +20,7 @@ const Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalCl
20
20
  className: overlayClassName
21
21
  }),
22
22
  isDismissable,
23
+ isKeyboardDismissDisabled: !(isKeyboardDismissable ?? isDismissable),
23
24
  isOpen,
24
25
  shouldCloseOnInteractOutside: () => {
25
26
  if (shouldCloseOnInteractOutside) {
@@ -9,6 +9,7 @@ export interface ModalProps extends ModalVariantProps {
9
9
  overlayClassName?: string;
10
10
  showCloseIcon?: boolean;
11
11
  isDismissable?: boolean;
12
+ isKeyboardDismissable?: boolean;
12
13
  shouldCloseOnInteractOutside?: () => boolean;
13
14
  }
14
- export declare const Modal: ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable, shouldCloseOnInteractOutside, }: PropsWithChildren<ModalProps>) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const Modal: ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable, isKeyboardDismissable, shouldCloseOnInteractOutside, }: PropsWithChildren<ModalProps>) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "2.1.22",
3
+ "version": "2.1.23",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",