@internxt/ui 0.0.25 → 0.0.26
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/components/modal/Modal.d.ts +5 -1
- package/dist/index.cjs.js +56 -56
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1038 -1035
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export interface ModalProps {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
width?: string;
|
|
10
10
|
preventClosing?: boolean;
|
|
11
|
+
stopMouseDownPropagation?: boolean;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Modal component
|
|
@@ -37,6 +38,9 @@ export interface ModalProps {
|
|
|
37
38
|
* @property {boolean} [preventClosing=false]
|
|
38
39
|
* - Optional flag to prevent the modal from closing when clicking outside or pressing the 'Escape' key.
|
|
39
40
|
*
|
|
41
|
+
* @property {boolean} [stopMouseDownPropagation=false]
|
|
42
|
+
* - Optional flag to stop event propagation on mousedown events.
|
|
43
|
+
*
|
|
40
44
|
* @returns {JSX.Element | null}
|
|
41
45
|
* - The rendered Modal component, or `null` if `isOpen` is `false`.
|
|
42
46
|
*
|
|
@@ -49,5 +53,5 @@ export interface ModalProps {
|
|
|
49
53
|
* The modal is displayed with a fixed position in the center of the screen, with a backdrop overlay.
|
|
50
54
|
* The content of the modal is rendered inside a flex container with transition effects to animate its appearance.
|
|
51
55
|
*/
|
|
52
|
-
declare const Modal: ({ isOpen, onClose, children, maxWidth, className, width, preventClosing, }: ModalProps) => JSX.Element | null;
|
|
56
|
+
declare const Modal: ({ isOpen, onClose, children, maxWidth, className, width, preventClosing, stopMouseDownPropagation, }: ModalProps) => JSX.Element | null;
|
|
53
57
|
export default Modal;
|