demio-ui 2.5.31 → 2.5.33
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.
|
@@ -13,6 +13,7 @@ export type Props = {
|
|
|
13
13
|
title?: ReactNode;
|
|
14
14
|
body?: ReactNode;
|
|
15
15
|
isClosable?: boolean | null;
|
|
16
|
+
portalContainer?: HTMLElement | null;
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
- Focus is automatically trapped when modal.
|
|
@@ -20,5 +21,5 @@ export type Props = {
|
|
|
20
21
|
- Esc closes the component automatically.
|
|
21
22
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
22
23
|
**/
|
|
23
|
-
declare function Modal({ children, contentClassName, isCloseButtonVisible, onClose, onOpenChange, open, overlayClassName, title, isClosable, ...props }: Props): React.JSX.Element;
|
|
24
|
+
declare function Modal({ children, contentClassName, isCloseButtonVisible, onClose, onOpenChange, open, overlayClassName, title, isClosable, portalContainer, ...props }: Props): React.JSX.Element;
|
|
24
25
|
export default Modal;
|
package/dist/types.d.ts
CHANGED
|
@@ -256,6 +256,7 @@ type Props$6 = {
|
|
|
256
256
|
title?: ReactNode;
|
|
257
257
|
body?: ReactNode;
|
|
258
258
|
isClosable?: boolean | null;
|
|
259
|
+
portalContainer?: HTMLElement | null;
|
|
259
260
|
};
|
|
260
261
|
/**
|
|
261
262
|
- Focus is automatically trapped when modal.
|
|
@@ -263,7 +264,7 @@ type Props$6 = {
|
|
|
263
264
|
- Esc closes the component automatically.
|
|
264
265
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
265
266
|
**/
|
|
266
|
-
declare function Modal({ children, contentClassName, isCloseButtonVisible, onClose, onOpenChange, open, overlayClassName, title, isClosable, ...props }: Props$6): React__default.JSX.Element;
|
|
267
|
+
declare function Modal({ children, contentClassName, isCloseButtonVisible, onClose, onOpenChange, open, overlayClassName, title, isClosable, portalContainer, ...props }: Props$6): React__default.JSX.Element;
|
|
267
268
|
|
|
268
269
|
type Option = unknown;
|
|
269
270
|
interface Props$5 {
|