@livechat/design-system-react-components 1.2.0 → 1.3.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,6 @@
1
1
  import * as React from 'react';
2
2
  import { Size } from 'utils';
3
- export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'plain' | 'float' | 'dotted' | 'high-contrast';
3
+ import { ButtonKind } from './types';
4
4
  export type ButtonProps = {
5
5
  /**
6
6
  * Specify the button kind
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ButtonProps } from './Button';
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
4
- kind?: import("./Button").ButtonKind | undefined;
4
+ kind?: import("./types").ButtonKind | undefined;
5
5
  size?: import("../..").Size | undefined;
6
6
  loading?: boolean | undefined;
7
7
  fullWidth?: boolean | undefined;
@@ -0,0 +1,2 @@
1
+ import { ButtonKind } from './types';
2
+ export declare const getSpinnerColors: (kind: ButtonKind) => Record<string, string> | undefined;
@@ -1,2 +1,3 @@
1
1
  export { Button } from './Button';
2
- export type { ButtonKind, ButtonProps } from './Button';
2
+ export type { ButtonProps } from './Button';
3
+ export type { ButtonKind } from './types';
@@ -0,0 +1 @@
1
+ export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'link-inverted' | 'plain' | 'float' | 'dotted' | 'high-contrast';
@@ -28,5 +28,13 @@ export interface TagInputProps extends Omit<React.InputHTMLAttributes<HTMLInputE
28
28
  * Specify the input size
29
29
  */
30
30
  size?: 'medium' | 'large';
31
+ /**
32
+ * Set the input custom class
33
+ */
34
+ inputClassName?: string;
35
+ /**
36
+ * Add Tag on blur
37
+ */
38
+ addOnBlur?: boolean;
31
39
  }
32
40
  export declare const TagInput: React.FC<TagInputProps>;