@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.
- package/dist/components/Typography/Display.d.ts +3 -1
- package/dist/components/Typography/Heading.d.ts +7 -3
- package/dist/components/Typography/Text.d.ts +13 -3
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/components/Typography/types.d.ts +3 -0
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +1144 -1114
- package/dist/preview-stats.json +554 -521
- package/dist/stories/foundations/Typography/components/DisplayExamples.d.ts +2 -0
- package/dist/stories/foundations/Typography/components/HeadingExamples.d.ts +2 -0
- package/dist/stories/foundations/Typography/components/TextExamples.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface IProps {
|
|
4
|
-
size?:
|
|
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
|
-
|
|
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
|
-
|
|
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>>;
|