@muraldevkit/ui-toolkit 2.20.0 → 2.21.0

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,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 {};
@@ -115,7 +115,7 @@ export declare const colorPictoStoryData: {
115
115
  export declare const animateStoryData: {
116
116
  args: {
117
117
  delay: number;
118
- state: "stop" | "play";
118
+ state: "play" | "stop";
119
119
  };
120
120
  argTypes: {
121
121
  delay: {