@povio/ui 2.1.12 → 2.1.13
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.
|
@@ -6,7 +6,8 @@ export interface ModalProps extends ModalVariantProps {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
modalClassName?: string;
|
|
8
8
|
closeIconClassName?: string;
|
|
9
|
+
overlayClassName?: string;
|
|
9
10
|
showCloseIcon?: boolean;
|
|
10
11
|
isDismissable?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare const Modal: ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, showCloseIcon, isDismissable, }: PropsWithChildren<ModalProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Modal: ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable, }: PropsWithChildren<ModalProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,6 +15,7 @@ const Modal = ({
|
|
|
15
15
|
children,
|
|
16
16
|
modalClassName,
|
|
17
17
|
closeIconClassName,
|
|
18
|
+
overlayClassName,
|
|
18
19
|
showCloseIcon,
|
|
19
20
|
isDismissable = true
|
|
20
21
|
}) => {
|
|
@@ -27,7 +28,7 @@ const Modal = ({
|
|
|
27
28
|
ModalOverlay,
|
|
28
29
|
{
|
|
29
30
|
UNSTABLE_portalContainer: portalContainerRef?.current,
|
|
30
|
-
className: modalOverlayCva({ aside }),
|
|
31
|
+
className: modalOverlayCva({ aside, className: overlayClassName }),
|
|
31
32
|
isDismissable,
|
|
32
33
|
isOpen,
|
|
33
34
|
shouldCloseOnInteractOutside: () => {
|
|
@@ -49,7 +50,8 @@ const Modal = ({
|
|
|
49
50
|
"absolute top-0 right-0 p-modal-gap-desktop-modal-close-icon-top-right",
|
|
50
51
|
closeIconClassName
|
|
51
52
|
),
|
|
52
|
-
label: t(($) => $.ui.modal.closeBtn)
|
|
53
|
+
label: t(($) => $.ui.modal.closeBtn),
|
|
54
|
+
disableTooltip: true
|
|
53
55
|
}
|
|
54
56
|
),
|
|
55
57
|
children
|