@livechat/design-system-react-components 1.22.1 → 1.22.3

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,2 +1,2 @@
1
- export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'link-inverted' | 'plain' | 'float' | 'dotted' | 'high-contrast';
1
+ export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'link-inverted' | 'plain' | 'float' | 'dotted' | 'high-contrast' | 'plain-lock-black' | 'text-lock-black';
2
2
  export type ButtonSize = 'xcompact' | 'compact' | 'medium' | 'large';
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { IconSource } from './types';
3
3
  export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
4
- export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral';
4
+ export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral' | 'lock-black';
5
5
  export interface IconProps {
6
6
  /**
7
7
  * Specify the source of svg element
@@ -21,6 +21,6 @@ export interface ModalHeaderProps {
21
21
  /**
22
22
  * Define class name for container
23
23
  */
24
- className?: 'string';
24
+ className?: string;
25
25
  }
26
26
  export declare const ModalHeader: React.FC<ModalHeaderProps>;
@@ -10,8 +10,6 @@ export interface IPickerListProps {
10
10
  floatingStyles: React.CSSProperties;
11
11
  maxHeight: number;
12
12
  listElementsRef: React.MutableRefObject<(HTMLElement | null)[]>;
13
- isPositioned: boolean;
14
- pointer: boolean;
15
13
  activeIndex: number | null;
16
14
  selectedKeys: string[];
17
15
  setPointer: (pointer: boolean) => void;
@@ -13,5 +13,6 @@ export interface PickerTriggerProps {
13
13
  isError?: boolean;
14
14
  isOpen: boolean;
15
15
  onClear: () => void;
16
+ setTriggerFocus: (v: boolean) => void;
16
17
  }
17
18
  export declare const PickerTrigger: React.FC<React.PropsWithChildren<PickerTriggerProps>>;
@@ -14,6 +14,8 @@ export interface ITriggerBodyProps {
14
14
  onItemRemove: (key: string) => void;
15
15
  onSelect: (key: string) => void;
16
16
  onFilter: (text: string) => void;
17
+ onClear: () => void;
17
18
  virtualItemRef: React.MutableRefObject<HTMLElement | null>;
19
+ isTriggerFocused: boolean;
18
20
  }
19
21
  export declare const PickerTriggerBody: React.FC<ITriggerBodyProps>;
@@ -4,3 +4,7 @@ import { TooltipTheme } from './types';
4
4
  export declare function getIconType(theme: TooltipTheme): IconKind;
5
5
  export declare const sleep: (milliseconds: number) => Promise<void>;
6
6
  export declare function getArrowPositionStyles(arrowOffsetY?: number, arrowOffsetX?: number, arrowY?: number, arrowX?: number): CSSProperties | undefined;
7
+ export declare const getArrowTokens: (tooltipStyle: string | undefined) => {
8
+ stroke: string;
9
+ fill: string;
10
+ };
@@ -11,6 +11,8 @@ interface IProps {
11
11
  customColor?: string;
12
12
  /** Optional prop to set the text align */
13
13
  textAlign?: TTextAlign;
14
+ /** Optional prop to set the bold */
15
+ bold?: boolean;
14
16
  }
15
17
  export declare const Display: React.FC<React.PropsWithChildren<IProps>>;
16
18
  export {};
@@ -1,4 +1,4 @@
1
1
  export type TTextSize = 'xs' | 'sm' | 'md';
2
2
  export type THeadingSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- export type TDisplaySize = 'sm' | 'md' | 'max';
3
+ export type TDisplaySize = 'sm' | 'md' | 'lg' | 'max';
4
4
  export type TTextAlign = 'left' | 'right' | 'center' | 'justify';
@@ -344,10 +344,15 @@ export declare const DesignToken: {
344
344
  TooltipBackgroundBasic: string;
345
345
  TooltipBackgroundInvert: string;
346
346
  TooltipBorder: string;
347
+ TooltipBorderForSvg: string;
347
348
  AnimatedGradientValue1: string;
348
349
  AnimatedGradientValue2: string;
349
350
  AnimatedGradientValue3: string;
350
351
  ContentBasicInternalNote: string;
351
352
  ContentBasicBot: string;
353
+ ActionLockDefault: string;
354
+ ActionLockHover: string;
355
+ ActionLockActive: string;
356
+ ActionLockDisabled: string;
352
357
  };
353
358
  export type DesignTokenKey = keyof typeof DesignToken;