@livechat/design-system-react-components 1.0.0-beta.9 → 1.0.0-icons-remake.2

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.
@@ -12,20 +12,6 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
12
12
  export default _default;
13
13
  export declare const Default: {
14
14
  (args: ButtonProps): React.ReactElement;
15
- argTypes: {
16
- icon: {
17
- options: string[];
18
- mapping: {
19
- [k: string]: React.JSX.Element;
20
- } & {
21
- None: null;
22
- };
23
- control: {
24
- type: string;
25
- labels: string[];
26
- };
27
- };
28
- };
29
15
  args: {
30
16
  loading: boolean;
31
17
  disabled: boolean;
@@ -34,7 +20,7 @@ export declare const Default: {
34
20
  children: string;
35
21
  fullWidth: boolean;
36
22
  iconPosition: string;
37
- icon: string;
23
+ icon: React.JSX.Element;
38
24
  };
39
25
  };
40
26
  export declare const KindsAndStates: () => React.ReactElement;
@@ -1,5 +1,11 @@
1
1
  import * as React from 'react';
2
- import { IconProps } from '../../Icon';
2
+ import { IconSize, IconKind, Tabler } from '@livechat/design-system-icons';
3
+ export interface IconProps {
4
+ name: Tabler;
5
+ kind?: IconKind;
6
+ size?: IconSize;
7
+ customColor?: string;
8
+ }
3
9
  export interface ModalHeaderProps {
4
10
  title?: React.ReactNode;
5
11
  iconProps?: IconProps;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
+ import { IconSize } from '@livechat/design-system-icons';
2
3
  import { Size } from 'utils';
3
- import { IconSize } from '../Icon';
4
4
  import { IPickerListItem, PickerType } from './types';
5
5
  export interface IPickerProps {
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
+ import { IconSize } from '@livechat/design-system-icons';
2
3
  import { Size } from 'utils';
3
- import { IconSize } from '../Icon';
4
4
  import { PickerType, IPickerListItem } from './types';
5
5
  export interface ITriggerBodyProps {
6
6
  isOpen: boolean;
@@ -35,7 +35,7 @@ export declare const DEFAULT_MORE_PICKER_OPTIONS: ({
35
35
  } | {
36
36
  key: string;
37
37
  name: string;
38
- icon: any;
38
+ icon: string;
39
39
  secondaryText?: undefined;
40
40
  showCheckbox?: undefined;
41
41
  avatarSrc?: undefined;
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import { IconSource } from '../Icon';
3
2
  export interface IPickerListItem {
4
3
  key: string;
5
4
  name: string;
@@ -9,7 +8,7 @@ export interface IPickerListItem {
9
8
  };
10
9
  groupHeader?: boolean;
11
10
  disabled?: boolean;
12
- icon?: IconSource;
11
+ icon?: string;
13
12
  avatarSrc?: string;
14
13
  secondaryText?: string;
15
14
  showCheckbox?: boolean;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { IconSize } from '../Icon';
2
+ import { IconSize } from '@livechat/design-system-icons';
3
3
  export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * Specify the tag kind
@@ -1,4 +1,4 @@
1
- import { IconKind } from '../Icon';
1
+ import { IconKind } from '@livechat/design-system-icons';
2
2
  import { TooltipTheme } from './types';
3
3
  export declare function getIconType(theme: TooltipTheme): IconKind;
4
4
  export declare const sleep: (milliseconds: number) => Promise<void>;