@livechat/design-system-react-components 1.0.0-alpha.30 → 1.0.0-alpha.32

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,3 +1,6 @@
1
1
  import * as React from 'react';
2
- export declare type ModalCloseButtonProps = React.HTMLAttributes<HTMLButtonElement>;
2
+ export interface ModalCloseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ labelType?: boolean;
4
+ customColor?: string;
5
+ }
3
6
  export declare const ModalCloseButton: React.FC<ModalCloseButtonProps>;
@@ -1,9 +1,7 @@
1
- export { ActionModal } from './ActionModal';
2
1
  export { Modal } from './Modal';
3
2
  export { ModalBase } from './ModalBase';
4
3
  export { ModalCloseButton } from './ModalCloseButton';
5
4
  export { ModalPortal } from './ModalPortal';
6
- export type { ActionModalProps } from './ActionModal';
7
5
  export type { ModalProps } from './Modal';
8
6
  export type { ModalBaseProps } from './ModalBase';
9
7
  export type { ModalCloseButtonProps } from './ModalCloseButton';
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { IPickerListItem } from './PickerList';
3
+ import { IconSize } from '../Icon';
3
4
  import { Size } from 'utils';
4
5
  export declare type PickerType = 'single' | 'multi';
5
6
  export interface IPickerProps {
@@ -10,6 +11,7 @@ export interface IPickerProps {
10
11
  options: IPickerListItem[];
11
12
  selected?: IPickerListItem[] | null;
12
13
  size?: Size;
14
+ tagIconSize?: IconSize;
13
15
  placeholder?: string;
14
16
  isRequired?: boolean;
15
17
  noSearchResultText?: string;
@@ -1,12 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { IPickerListItem } from './PickerList';
3
3
  import { PickerType } from './Picker';
4
+ import { IconSize } from 'index';
4
5
  export interface ITriggerBodyProps {
5
6
  isOpen: boolean;
6
7
  isSearchDisabled?: boolean;
8
+ isDisabled?: boolean;
7
9
  placeholder: string;
8
10
  items?: IPickerListItem[] | null;
9
11
  type: PickerType;
12
+ iconSize?: IconSize;
10
13
  onItemRemove: (item: IPickerListItem) => void;
11
14
  onFilter: (text: string) => void;
12
15
  }
@@ -7,5 +7,6 @@ export interface IPopoverProps {
7
7
  isVisible?: boolean;
8
8
  flipOptions?: Parameters<typeof flip>[0];
9
9
  triggerRenderer: () => React.ReactNode;
10
+ onClose?: () => void;
10
11
  }
11
12
  export declare const Popover: React.FC<IPopoverProps>;
@@ -1,16 +1,11 @@
1
1
  import * as React from 'react';
2
- export declare const enum SearchSize {
3
- Compact = "compact",
4
- Medium = "medium",
5
- Large = "large"
6
- }
7
2
  export interface ISearchInputProps {
8
3
  isCollapsable?: boolean;
9
4
  isDisabled?: boolean;
10
5
  isLoading?: boolean;
11
6
  placeholder?: string;
12
- size?: SearchSize;
13
- value?: string;
7
+ size?: 'compact' | 'medium' | 'large';
8
+ value: string;
14
9
  className?: string;
15
10
  onChange: (value: string) => void;
16
11
  }
@@ -1,12 +1,15 @@
1
1
  import * as React from 'react';
2
+ import { Size } from 'utils';
2
3
  declare type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
3
4
  href: string;
4
5
  }) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
5
6
  href?: never;
6
7
  });
7
8
  export declare type TabProps = HTMLProps & {
8
- description?: React.ReactNode;
9
+ count?: number;
9
10
  isSelected?: boolean;
11
+ asBadge?: boolean;
12
+ size?: Size;
10
13
  };
11
14
  export declare const Tab: React.FC<TabProps>;
12
15
  export {};
@@ -1,8 +1,9 @@
1
1
  import * as React from 'react';
2
- import { IconSource } from '../Icon';
2
+ import { IconSize, IconSource } from '../Icon';
3
3
  export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  kind?: 'default' | 'info' | 'warning' | 'success' | 'error';
5
5
  size?: 'medium' | 'large';
6
+ iconSize?: IconSize;
6
7
  customColor?: string;
7
8
  dismissible?: boolean;
8
9
  outline?: boolean;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { ProgressStatus, ProgressSize } from '../Progress/constants';
3
+ export interface UploadBarProps {
4
+ className?: string;
5
+ progressValue: number;
6
+ title: string;
7
+ isExpanded?: boolean;
8
+ errorMessage?: string;
9
+ status?: ProgressStatus;
10
+ icon?: React.ReactNode;
11
+ size?: ProgressSize;
12
+ mode?: 'single' | 'multiple';
13
+ onCloseButtonClick?: () => void;
14
+ onRetryButtonClick?: () => void;
15
+ }
16
+ export declare const UploadBar: React.FC<UploadBarProps>;
@@ -0,0 +1 @@
1
+ export * from './UploadBar';
@@ -37,3 +37,5 @@ export * from './components/Toast';
37
37
  export * from './components/Tooltip';
38
38
  export * from './components/Typography';
39
39
  export * from './components/Textarea';
40
+ export * from './components/FileUploadProgress';
41
+ export * from './components/UploadBar';
@@ -1,51 +1,140 @@
1
1
  export declare const DesignToken: {
2
2
  Background: string;
3
+ Background01: string;
4
+ Background02: string;
5
+ Background03: string;
3
6
  SurfaceBasicDefault: string;
7
+ SurfacePrimaryDefault: string;
4
8
  SurfaceBasicSubtle: string;
9
+ SurfaceSecondaryDefault: string;
10
+ SurfaceSecondaryHover: string;
11
+ SurfaceSecondaryActive: string;
12
+ SurfaceSecondaryDisabled: string;
5
13
  SurfaceBasicHover: string;
14
+ SurfacePrimaryHover: string;
6
15
  SurfaceBasicActive: string;
16
+ SurfacePrimaryActive: string;
17
+ SurfacePrimaryActiveColored: string;
7
18
  SurfaceBasicDisabled: string;
8
- SurfaceSecondaryDefault: string;
19
+ SurfacePrimaryDisabled: string;
20
+ SurfaceTertiaryDefault: string;
9
21
  SurfaceSecondarySubtle: string;
10
- SurfaceSecondaryHover: string;
11
- SurfaceSecondaryDisabled: string;
22
+ SurfaceModerateDefault: string;
23
+ SurfaceModerateHover: string;
24
+ SurfaceModerateActive: string;
25
+ SurfaceTertiaryHover: string;
26
+ SurfaceTertiaryActive: string;
27
+ SurfaceTertiaryDisabled: string;
12
28
  SurfaceFeedbackInfo: string;
29
+ SurfaceAccentEmphasisLowInfo: string;
13
30
  SurfaceFeedbackNegative: string;
31
+ SurfaceAccentEmphasisLowNegative: string;
14
32
  SurfaceFeedbackWarning: string;
33
+ SurfaceAccentEmphasisLowWarning: string;
15
34
  SurfaceFeedbackPositive: string;
35
+ SurfaceAccentEmphasisLowPositive: string;
36
+ SurfaceAccentEmphasisLowPurple: string;
37
+ SurfaceAccentEmphasisMinInfo: string;
38
+ SurfaceAccentEmphasisMinNegative: string;
39
+ SurfaceAccentEmphasisMinWarning: string;
40
+ SurfaceAccentEmphasisMinPositive: string;
41
+ SurfaceAccentEmphasisMinPurple: string;
16
42
  SurfaceInvertDefault: string;
43
+ SurfaceInvertPrimary: string;
17
44
  SurfaceInvertSubtle: string;
45
+ SurfaceInvertSecondary: string;
18
46
  SurfaceInvertDisabled: string;
47
+ SurfaceLockedDefault: string;
48
+ SurfaceLockedHover: string;
49
+ SurfaceLockedActive: string;
50
+ SurfaceLockedDisabled: string;
51
+ SurfaceLockedWhite: string;
52
+ SurfaceLockedBlack: string;
53
+ SurfaceAccentEmphasisHighInfo: string;
54
+ SurfaceAccentEmphasisHighNegative: string;
55
+ SurfaceAccentEmphasisHighWarning: string;
56
+ SurfaceAccentEmphasisHighPositive: string;
57
+ SurfaceAccentEmphasisHighPurple: string;
19
58
  SurfaceOverlay: string;
59
+ SurfaceOtherOverlay: string;
60
+ SurfaceOtherAgent: string;
61
+ SurfaceOtherSkeleton: string;
20
62
  ContentDefault: string;
63
+ ContentBasicPrimary: string;
21
64
  ContentSubtle: string;
65
+ ContentBasicSecondary: string;
22
66
  ContentDisabled: string;
67
+ ContentBasicDisabled: string;
68
+ ContentBasicNegative: string;
69
+ ContentBasicWarning: string;
70
+ ContentBasicPositive: string;
71
+ ContentBasicInfo: string;
72
+ ContentBasicPurple: string;
23
73
  ContentWhiteLocked: string;
74
+ ContentLockedWhite: string;
75
+ ContentBlackLocked: string;
76
+ ContentLockedBlack: string;
77
+ ContentLockedDefault: string;
78
+ ContentLockedHover: string;
79
+ ContentLockedActive: string;
80
+ ContentLockedDisabled: string;
24
81
  ContentInvertDefault: string;
82
+ ContentInvertPrimary: string;
25
83
  ContentInvertSubtle: string;
84
+ ContentInvertSecondary: string;
26
85
  ContentInvertDisabled: string;
27
86
  BorderDefault: string;
87
+ BorderBasicPrimary: string;
88
+ BorderBasicSecondary: string;
28
89
  BorderSubtle: string;
90
+ BorderBasicTertiary: string;
29
91
  BorderHover: string;
92
+ BorderBasicHover: string;
30
93
  BorderDisabled: string;
94
+ BorderBasicDisabled: string;
95
+ BorderBasicNegative: string;
96
+ BorderBasicWarning: string;
97
+ BorderBasicPositive: string;
98
+ BorderBasicInfo: string;
99
+ BorderBasicPurple: string;
31
100
  BorderInvertDefault: string;
101
+ BorderInvertPrimary: string;
32
102
  BorderInvertSubtle: string;
103
+ BorderInvertSecondary: string;
33
104
  BorderInvertHover: string;
34
105
  BorderInvertDisabled: string;
35
106
  ColorActionActive: string;
107
+ ActionPrimaryActive: string;
36
108
  ColorActionHover: string;
109
+ ActionPrimaryHover: string;
37
110
  ColorActionDefault: string;
111
+ ActionPrimaryDefault: string;
112
+ ColorActionDefaultRgb: string;
38
113
  ColorActionDisabled: string;
114
+ ActionPrimaryDisabled: string;
39
115
  ColorNegativeActive: string;
116
+ ActionNegativeActive: string;
40
117
  ColorNegativeHover: string;
118
+ ActionNegativeHover: string;
41
119
  ColorNegativeDefault: string;
120
+ ActionNegativeDefault: string;
42
121
  ColorNegativeDisabled: string;
122
+ ActionNegativeDisabled: string;
43
123
  ColorWarningDefault: string;
124
+ ActionWarningDefault: string;
44
125
  ColorWarningHover: string;
126
+ ActionWarningHover: string;
45
127
  ColorPositiveDefault: string;
128
+ ActionPositiveDefault: string;
46
129
  ColorPositiveHover: string;
130
+ ActionPositiveHover: string;
47
131
  ColorPositiveDisabled: string;
132
+ ActionPositiveDisabled: string;
133
+ ActionNeutralDefault: string;
134
+ ActionNeutralHover: string;
135
+ ActionNeutralDisabled: string;
48
136
  ColorBot: string;
137
+ SurfaceOtherBot: string;
49
138
  ColorBlack: string;
50
139
  ColorWhite: string;
51
140
  DecorBlue900: string;
@@ -123,4 +212,13 @@ export declare const DesignToken: {
123
212
  DecorPurple200: string;
124
213
  DecorPurple100: string;
125
214
  DecorPurple50: string;
215
+ ProductsLivechat: string;
216
+ ProductsHelpdesk: string;
217
+ ProductsChatbot: string;
218
+ ProductsKnowledgebase: string;
219
+ IllustrationsPrimary: string;
220
+ IllustrationsSecondary: string;
221
+ IllustrationsStroke: string;
222
+ TagSurface01: string;
223
+ TagContent01: string;
126
224
  };