@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.
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Modal/components/ModalHeader.d.ts +1 -1
- package/dist/components/Picker/components/PickerList.d.ts +0 -2
- package/dist/components/Picker/components/PickerTrigger.d.ts +1 -0
- package/dist/components/Picker/components/PickerTriggerBody.d.ts +2 -0
- package/dist/components/Tooltip/helpers.d.ts +4 -0
- package/dist/components/Typography/Display.d.ts +2 -0
- package/dist/components/Typography/types.d.ts +1 -1
- package/dist/foundations/design-token.d.ts +5 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1814 -1751
- package/dist/preview-stats.json +553 -553
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
@@ -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;
|
|
@@ -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;
|