@livechat/design-system-react-components 1.16.6 → 1.16.7

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,6 +1,8 @@
1
1
  import * as React from 'react';
2
+ import { TDisplaySize } from './types';
2
3
  interface IProps {
3
- size?: 'md' | 'sm';
4
+ /** Size of the text */
5
+ size?: TDisplaySize;
4
6
  /** DOM element name that will be rendered */
5
7
  as?: string;
6
8
  /** Optional custom className */
@@ -1,11 +1,15 @@
1
1
  import * as React from 'react';
2
- type TSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
3
- interface IProps {
4
- size?: TSize;
2
+ import { THeadingSize } from './types';
3
+ interface IProps extends React.HTMLAttributes<HTMLElement> {
4
+ size?: THeadingSize;
5
5
  /** DOM element name that will be rendered */
6
6
  as?: string;
7
7
  /** Optional custom className */
8
8
  className?: string;
9
+ /** Optional prop to set the uppercase */
10
+ uppercase?: boolean;
11
+ /** Optional prop to set the bold */
12
+ bold?: boolean;
9
13
  }
10
14
  export declare const Heading: React.FC<React.PropsWithChildren<IProps>>;
11
15
  export {};
@@ -1,14 +1,24 @@
1
1
  import * as React from 'react';
2
- type TSize = 'md' | 'sm' | 'xs';
3
- interface IProps {
2
+ import { TTextSize } from './types';
3
+ interface IProps extends React.HTMLAttributes<HTMLElement> {
4
4
  /** DOM element name that will be rendered */
5
5
  as?: string;
6
- size?: TSize;
6
+ /** Size of the text */
7
+ size?: TTextSize;
7
8
  /** Optional custom className */
8
9
  className?: string;
10
+ /**
11
+ * Optional prop to set the uppercase
12
+ * @deprecated Use `uppercase` instead
13
+ * */
9
14
  caps?: boolean;
15
+ /** Optional prop to set the uppercase */
16
+ uppercase?: boolean;
17
+ /** Optional prop to set the bold */
10
18
  bold?: boolean;
19
+ /** Optional prop to set the underline */
11
20
  underline?: boolean;
21
+ /** Optional prop to set the strike */
12
22
  strike?: boolean;
13
23
  }
14
24
  export declare const Text: React.FC<React.PropsWithChildren<IProps>>;
@@ -1,3 +1,4 @@
1
1
  export { Heading } from './Heading';
2
2
  export { Text } from './Text';
3
3
  export { Display } from './Display';
4
+ export type { THeadingSize, TTextSize, TDisplaySize } from './types';
@@ -0,0 +1,3 @@
1
+ export type TTextSize = 'xs' | 'sm' | 'md';
2
+ export type THeadingSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
+ export type TDisplaySize = 'sm' | 'md' | 'max';