@muraldevkit/ui-toolkit 1.12.1 → 1.13.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.
@@ -17,7 +17,11 @@ interface ModalProps {
17
17
  *
18
18
  * Example usage: html attributes, custom data attributes (data-qa), aria
19
19
  */
20
- attrs?: AttrsObject | string;
20
+ attrs?: AttrsObject;
21
+ /**
22
+ * Modal Wrapper Class
23
+ */
24
+ className?: string;
21
25
  }
22
26
  /**
23
27
  * Modal Component
@@ -30,5 +34,5 @@ interface ModalProps {
30
34
  * @param {React.ReactElement} props.children - Children to be rendered within the modal. The first child is used as the trigger.
31
35
  * @returns {React.ReactElement} an instance of the MrlModal
32
36
  */
33
- export declare const MrlModal: ({ children, size, state, hookClose, attrs }: ModalProps) => ReactElement;
37
+ export declare const MrlModal: ({ children, className, size, state, hookClose, attrs }: ModalProps) => ReactElement;
34
38
  export {};
@@ -4,6 +4,10 @@ interface MrlModalHeaderProps {
4
4
  * Children to be rendered within the component.
5
5
  */
6
6
  children: React.ReactElement | React.ReactElement[];
7
+ /**
8
+ * Wrapper Class
9
+ */
10
+ className?: string;
7
11
  }
8
12
  /**
9
13
  * Modal Content component for the MrlModal
@@ -12,5 +16,5 @@ interface MrlModalHeaderProps {
12
16
  * @param {React.ReactElement} props.children - The children to be rendered within the component
13
17
  * @returns {React.ReactElement}} The rendered MrlModalContent component
14
18
  */
15
- export declare const MrlModalContent: ({ children }: MrlModalHeaderProps) => JSX.Element;
19
+ export declare const MrlModalContent: ({ children, className }: MrlModalHeaderProps) => JSX.Element;
16
20
  export {};
@@ -7,6 +7,10 @@ interface MrlModalFooterProps {
7
7
  * Example usage: html attributes, custom data attributes (data-qa), aria
8
8
  */
9
9
  attrs?: AttrsObject;
10
+ /**
11
+ * Wrapper Class
12
+ */
13
+ className?: string;
10
14
  /**
11
15
  * Slots for primary, secondary, and tertiary modal regions
12
16
  */
@@ -24,5 +28,5 @@ interface MrlModalFooterProps {
24
28
  * @param {React.ReactElement} props.tertiary - tertiary modal element
25
29
  * @returns {React.ReactElement} The rendered MrlModalFooter component
26
30
  */
27
- export declare const MrlModalFooter: ({ attrs, primary, secondary, tertiary }: MrlModalFooterProps) => JSX.Element;
31
+ export declare const MrlModalFooter: ({ attrs, className, primary, secondary, tertiary }: MrlModalFooterProps) => JSX.Element;
28
32
  export {};
@@ -6,6 +6,10 @@ interface MrlModalHeaderProps {
6
6
  * Example usage: html attributes, custom data attributes (data-qa), aria
7
7
  */
8
8
  attrs?: AttrsObject;
9
+ /**
10
+ * Wrapper Class
11
+ */
12
+ className?: string;
9
13
  /**
10
14
  * Text the h1 element of modal header
11
15
  */
@@ -18,5 +22,5 @@ interface MrlModalHeaderProps {
18
22
  * @param {AttrsObject} props.attrs - Additional HTML attributes for the `mrl-modal` element
19
23
  * @returns {React.ReactElement} The rendered MrlModalFooter component
20
24
  */
21
- export declare const MrlModalHeader: ({ attrs, text }: MrlModalHeaderProps) => JSX.Element;
25
+ export declare const MrlModalHeader: ({ attrs, className, text }: MrlModalHeaderProps) => JSX.Element;
22
26
  export {};