@muraldevkit/ui-toolkit 1.13.0 → 1.13.2

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.
@@ -1,7 +1,7 @@
1
1
  import React, { ReactElement } from 'react';
2
- import { AttrsObject } from '../../../utils';
2
+ import { MrlComponentProps } from '../../../utils';
3
3
  import { ModalSize, ModalState } from '../constants';
4
- interface ModalProps {
4
+ interface ModalProps extends MrlComponentProps {
5
5
  /**
6
6
  * Content of the modal
7
7
  */
@@ -12,12 +12,6 @@ interface ModalProps {
12
12
  state?: ModalState;
13
13
  /** Additional function to be run when the modal closes */
14
14
  hookClose?: (() => void) | undefined;
15
- /**
16
- * Attributes that are applied to the component during the initial render.
17
- *
18
- * Example usage: html attributes, custom data attributes (data-qa), aria
19
- */
20
- attrs?: AttrsObject;
21
15
  /**
22
16
  * Modal Wrapper Class
23
17
  */
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
- import { AttrsObject } from '../../../utils';
3
- interface MrlModalFooterProps {
2
+ import { MrlComponentProps } from '../../../utils';
3
+ interface MrlModalFooterProps extends MrlComponentProps {
4
4
  /**
5
- * Attributes that are applied to the component during the initial render.
6
- *
7
- * Example usage: html attributes, custom data attributes (data-qa), aria
5
+ * Content of the modal footer
8
6
  */
9
- attrs?: AttrsObject;
7
+ children?: React.ReactElement | React.ReactElement[];
10
8
  /**
11
9
  * Wrapper Class
12
10
  */
@@ -28,5 +26,5 @@ interface MrlModalFooterProps {
28
26
  * @param {React.ReactElement} props.tertiary - tertiary modal element
29
27
  * @returns {React.ReactElement} The rendered MrlModalFooter component
30
28
  */
31
- export declare const MrlModalFooter: ({ attrs, className, primary, secondary, tertiary }: MrlModalFooterProps) => JSX.Element;
29
+ export declare const MrlModalFooter: ({ attrs, children, className, primary, secondary, tertiary }: MrlModalFooterProps) => JSX.Element;
32
30
  export {};
@@ -1,11 +1,10 @@
1
- import { AttrsObject } from '../../../utils';
2
- interface MrlModalHeaderProps {
1
+ import React from 'react';
2
+ import { MrlComponentProps } from '../../../utils';
3
+ export interface MrlModalHeaderProps extends MrlComponentProps {
3
4
  /**
4
- * Attributes that are applied to the component during the initial render.
5
- *
6
- * Example usage: html attributes, custom data attributes (data-qa), aria
5
+ * Content of the modal header
7
6
  */
8
- attrs?: AttrsObject;
7
+ children?: React.ReactNode;
9
8
  /**
10
9
  * Wrapper Class
11
10
  */
@@ -22,5 +21,4 @@ interface MrlModalHeaderProps {
22
21
  * @param {AttrsObject} props.attrs - Additional HTML attributes for the `mrl-modal` element
23
22
  * @returns {React.ReactElement} The rendered MrlModalFooter component
24
23
  */
25
- export declare const MrlModalHeader: ({ attrs, className, text }: MrlModalHeaderProps) => JSX.Element;
26
- export {};
24
+ export declare const MrlModalHeader: ({ attrs, children, className, text }: MrlModalHeaderProps) => JSX.Element;