@livechat/design-system-react-components 1.13.0 → 1.15.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.
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Size } from 'utils';
3
- import { ButtonKind } from './types';
2
+ import { ButtonKind, ButtonSize } from './types';
4
3
  export type ButtonProps = {
5
4
  /**
6
5
  * Specify the button kind
@@ -9,7 +8,7 @@ export type ButtonProps = {
9
8
  /**
10
9
  * Specify the button size
11
10
  */
12
- size?: Size;
11
+ size?: ButtonSize;
13
12
  /**
14
13
  * Set the loading state
15
14
  */
@@ -39,7 +38,7 @@ export declare const Button: React.ForwardRefExoticComponent<{
39
38
  /**
40
39
  * Specify the button size
41
40
  */
42
- size?: Size | undefined;
41
+ size?: ButtonSize | undefined;
43
42
  /**
44
43
  * Set the loading state
45
44
  */
@@ -1,8 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { ButtonProps } from './Button';
3
+ import { ButtonKind, ButtonSize } from './types';
3
4
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
4
- kind?: import("./types").ButtonKind | undefined;
5
- size?: import("../..").Size | undefined;
5
+ kind?: ButtonKind | undefined;
6
+ size?: ButtonSize | undefined;
6
7
  loading?: boolean | undefined;
7
8
  fullWidth?: boolean | undefined;
8
9
  loaderLabel?: string | undefined;
@@ -1 +1,2 @@
1
1
  export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'link-inverted' | 'plain' | 'float' | 'dotted' | 'high-contrast';
2
+ export type ButtonSize = 'xcompact' | 'compact' | 'medium' | 'large';
@@ -15,7 +15,7 @@ export interface IDetailsCardProps {
15
15
  /**
16
16
  * Set the label
17
17
  */
18
- label: string;
18
+ label: React.ReactNode;
19
19
  /**
20
20
  * Define if divider should be visible
21
21
  */