@muraldevkit/ui-toolkit 4.8.4 → 4.10.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.
@@ -80,7 +80,7 @@ export declare const colorPictoStoryData: {
80
80
  export declare const animateStoryData: {
81
81
  args: {
82
82
  delay: number;
83
- state: "stop" | "play";
83
+ state: "play" | "stop";
84
84
  };
85
85
  argTypes: {
86
86
  delay: {
@@ -1,11 +1,16 @@
1
1
  import * as React from 'react';
2
2
  import { AttrsObject } from '../../../utils';
3
3
  import { TextSizes } from '../constants';
4
- interface MrlTextProps {
5
- /** Applies additional HTML attributes to the text element */
4
+ import { DataQa } from '../../../utils/dataQa';
5
+ interface MrlTextProps extends React.ComponentPropsWithoutRef<'p'>, DataQa {
6
+ /**
7
+ * Applies additional HTML attributes to the text element
8
+ *
9
+ * @deprecated - use the regular HTML attributes instead.
10
+ */
6
11
  attrs?: AttrsObject;
7
12
  /** Children to be rendered within the text component */
8
- children?: React.ReactNode | string;
13
+ children?: React.ReactNode;
9
14
  /** Visual size of the text element */
10
15
  size?: TextSizes;
11
16
  /** Textual content when it's a static string; if you have nested elements, use children to provide content */
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { AttrsObject } from '../../../utils';
3
3
  import { LevelType, HeadingHierarchies, HeadingSizes, TextSizes, HeadingKinds } from '../constants';
4
- interface MrlTextHeadingProps extends React.ComponentPropsWithRef<'h1'> {
4
+ import { DataQa } from '../../../utils/dataQa';
5
+ interface MrlTextHeadingProps extends React.ComponentPropsWithRef<'h1'>, DataQa {
5
6
  /**
6
7
  * Applies additional HTML attributes to the text element
7
8
  *
8
- * @deprecated - use `attrs` instead
9
+ * @deprecated - use the regular HTML attributes instead.
9
10
  */
10
11
  attrs?: AttrsObject;
11
12
  /** Children to be rendered within the text heading component */
@@ -34,5 +35,5 @@ interface MrlTextHeadingProps extends React.ComponentPropsWithRef<'h1'> {
34
35
  * @param {MrlTextHeadingProps} props - MrlTextHeading component props
35
36
  * @returns a heading element
36
37
  */
37
- export declare function MrlTextHeading({ attrs, children, className, hierarchy, kind, level, size, text }: MrlTextHeadingProps): JSX.Element;
38
+ export declare function MrlTextHeading(props: MrlTextHeadingProps): JSX.Element;
38
39
  export {};