@livechat/design-system-react-components 1.0.0-beta.8 → 1.0.0-icons-remake.1
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/Avatar/Avatar.helpers.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -15
- package/dist/components/Modal/components/ModalHeader.d.ts +7 -1
- package/dist/components/Picker/Picker.d.ts +1 -1
- package/dist/components/Picker/TriggerBody.d.ts +1 -1
- package/dist/components/Picker/constants.d.ts +1 -1
- package/dist/components/Picker/types.d.ts +1 -2
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tooltip/helpers.d.ts +1 -1
- package/dist/dsrc.cjs.js +8 -8
- package/dist/dsrc.es.js +1165 -1197
- package/dist/dsrc.umd.js +8 -8
- package/dist/index.d.ts +0 -1
- package/dist/preview-stats.json +615 -723
- package/dist/stories/components/IconsShowcase.d.ts +0 -4
- package/dist/stories/components/Radius.d.ts +2 -0
- package/dist/stories/components/RadiusExamples.d.ts +2 -0
- package/dist/stories/components/TablerIconsShowcase.d.ts +0 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/components/Icon/Icon.d.ts +0 -32
- package/dist/components/Icon/Icon.stories.d.ts +0 -15
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/Icon/types.d.ts +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function getBackgroundColor(
|
|
1
|
+
export declare function getBackgroundColor(text?: string): string | undefined;
|
|
2
2
|
export declare function getInitials(name?: string, count?: number): string;
|
|
3
3
|
export declare function getFontColor(color: string): string;
|
|
@@ -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:
|
|
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 {
|
|
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 { PickerType, IPickerListItem } from './types';
|
|
5
5
|
export interface ITriggerBodyProps {
|
|
6
6
|
isOpen: boolean;
|
|
@@ -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?:
|
|
11
|
+
icon?: string;
|
|
13
12
|
avatarSrc?: string;
|
|
14
13
|
secondaryText?: string;
|
|
15
14
|
showCheckbox?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconKind } from '
|
|
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>;
|