@muraldevkit/ui-toolkit 2.20.0 → 2.21.1
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/MrlModal/MrlModal.d.ts +10 -1
- package/dist/components/modal/demo/ModalWithTriggerDemo.d.ts +2 -1
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/hooks/useBreakpoint/useBreakpointDemo.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/styles/MrlModalContent/module.scss +1 -1
- package/dist/styles/MrlModalFooter/module.scss +1 -1
- package/dist/styles/MrlModalHeader/module.scss +2 -2
- package/dist/styles/modal/variables.scss +4 -1
- package/package.json +1 -1
|
@@ -13,6 +13,15 @@ interface ModalProps extends MrlComponentProps {
|
|
|
13
13
|
*/
|
|
14
14
|
className?: string;
|
|
15
15
|
client?: MrlDeviceClient;
|
|
16
|
+
/**
|
|
17
|
+
* !!!!! WARNING: do not use this prop without an explicit requirement from the design team !!!!!
|
|
18
|
+
*
|
|
19
|
+
* Enables/disables the ability to close the modal. This prop does the following:
|
|
20
|
+
* - removes close button
|
|
21
|
+
* - disables clicking on the overlay to close the modal
|
|
22
|
+
* - disables the escape key to close the modal
|
|
23
|
+
*/
|
|
24
|
+
closable?: boolean;
|
|
16
25
|
/**
|
|
17
26
|
* Tells the modal whether we are in a loading state.
|
|
18
27
|
* This is used to disabled FocusTrap until the contents of the modal are loaded
|
|
@@ -38,5 +47,5 @@ interface ModalProps extends MrlComponentProps {
|
|
|
38
47
|
* @param {React.ReactElement} props.children - Children to be rendered within the modal. The first child is used as the trigger.
|
|
39
48
|
* @returns {React.ReactElement} an instance of the MrlModal
|
|
40
49
|
*/
|
|
41
|
-
export declare const MrlModal: ({ children, className, client, loading, size, state, hookClose, attrs }: ModalProps) => ReactElement;
|
|
50
|
+
export declare const MrlModal: ({ children, className, client, closable, loading, size, state, hookClose, attrs }: ModalProps) => ReactElement;
|
|
42
51
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
interface ModalDemoProps {
|
|
3
3
|
/** Additional function to be run when the modal closes */
|
|
4
4
|
hookClose?: (() => void) | undefined;
|
|
5
|
+
closable?: boolean;
|
|
5
6
|
}
|
|
6
7
|
/**
|
|
7
8
|
* Demo for a modal with a trigger button
|
|
@@ -10,5 +11,5 @@ interface ModalDemoProps {
|
|
|
10
11
|
* @param {Function} props.hookClose - hookClose for modal
|
|
11
12
|
* @returns {Element} Rendered demo
|
|
12
13
|
*/
|
|
13
|
-
export declare const ModalWithTriggerDemo: ({ hookClose }: ModalDemoProps) => JSX.Element;
|
|
14
|
+
export declare const ModalWithTriggerDemo: ({ closable, hookClose }: ModalDemoProps) => JSX.Element;
|
|
14
15
|
export {};
|