@livechat/design-system-react-components 1.16.5 → 1.16.6
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/README.md +82 -0
- package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +11 -0
- package/dist/components/Icon/IconsShowcase/constans.d.ts +2 -0
- package/dist/components/Icon/IconsShowcase/helpers.d.ts +2 -0
- package/dist/components/Icon/IconsShowcase/types.d.ts +9 -0
- package/dist/components/Picker/helpers.d.ts +1 -0
- package/dist/components/Picker/hooks/useFloatingPicker.d.ts +33 -0
- package/dist/components/Picker/hooks/usePickerItems.d.ts +20 -0
- package/dist/components/Picker/types.d.ts +17 -1
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +1827 -1719
- package/dist/{themes → foundations}/design-token.d.ts +2 -0
- package/dist/foundations/radius-token.d.ts +6 -0
- package/dist/foundations/shadow-token.d.ts +1 -0
- package/dist/foundations/spacing-token.d.ts +4 -0
- package/dist/foundations/transition-token.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/preview-stats.json +598 -568
- package/dist/stories/components/Table/Table.d.ts +13 -0
- package/dist/stories/foundations/Color/ColorTable.d.ts +7 -0
- package/dist/stories/foundations/Color/constants.d.ts +2 -0
- package/dist/stories/foundations/Color/data.d.ts +7 -0
- package/dist/stories/foundations/Color/helpers.d.ts +2 -0
- package/dist/stories/foundations/Color/types.d.ts +43 -0
- package/dist/stories/foundations/Radius/RadiusTable.d.ts +7 -0
- package/dist/stories/foundations/Radius/constants.d.ts +2 -0
- package/dist/stories/foundations/Radius/types.d.ts +8 -0
- package/dist/stories/foundations/Shadow/ShadowTable.d.ts +7 -0
- package/dist/stories/foundations/Shadow/constants.d.ts +2 -0
- package/dist/stories/foundations/Shadow/types.d.ts +6 -0
- package/dist/stories/foundations/Spacing/SpacingTable.d.ts +7 -0
- package/dist/stories/foundations/Spacing/constants.d.ts +2 -0
- package/dist/stories/foundations/Spacing/types.d.ts +7 -0
- package/dist/stories/foundations/Transition/TransitionTable.d.ts +7 -0
- package/dist/stories/foundations/Transition/components/TransitionDelayExample.d.ts +2 -0
- package/dist/stories/foundations/Transition/components/TransitionDurationExample.d.ts +2 -0
- package/dist/stories/foundations/Transition/components/TransitionTimingExample.d.ts +2 -0
- package/dist/stories/foundations/Transition/constants.d.ts +4 -0
- package/dist/stories/foundations/Transition/types.d.ts +16 -0
- package/dist/stories/helpers.d.ts +6 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/docs/components/ColorTokens.d.ts +0 -2
- package/dist/docs/components/Icons/TablerIconsShowcase.d.ts +0 -6
- package/dist/docs/components/Radius/Radius.d.ts +0 -2
- package/dist/docs/components/Radius/RadiusExamples.d.ts +0 -2
- package/dist/docs/components/Shadow/Shadow.d.ts +0 -2
- package/dist/docs/components/Shadow/ShadowExamples.d.ts +0 -2
- package/dist/docs/components/Spacing/Spacing.d.ts +0 -2
- package/dist/docs/components/Spacing/SpacingExamples.d.ts +0 -2
- package/dist/docs/components/Transition/TransitionTable.d.ts +0 -10
- package/dist/docs/components/Transition/transitionDelay.d.ts +0 -6
- package/dist/docs/components/Transition/transitionDuration.d.ts +0 -5
- package/dist/docs/components/Transition/transitionTiming.d.ts +0 -5
- /package/dist/{docs → stories}/components/BlockColumns/BlockColumns.d.ts +0 -0
- /package/dist/{docs → stories}/components/StoryDescriptor.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type BasicTableData = Record<string, unknown> & {
|
|
3
|
+
enum: string | number;
|
|
4
|
+
token: string;
|
|
5
|
+
deprecated?: boolean;
|
|
6
|
+
};
|
|
7
|
+
interface ITable {
|
|
8
|
+
data: BasicTableData[];
|
|
9
|
+
columnNames: string[];
|
|
10
|
+
renderExample?: (token: string) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Table: React.FC<ITable>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DesignTokenKey } from '../../../foundations/design-token';
|
|
2
|
+
export declare enum ColorGroup {
|
|
3
|
+
ContentBasic = 0,
|
|
4
|
+
ContentGradient = 1,
|
|
5
|
+
ContentInvert = 2,
|
|
6
|
+
ContentLocked = 3,
|
|
7
|
+
SurfacePrimary = 4,
|
|
8
|
+
SurfaceSecondary = 5,
|
|
9
|
+
SurfaceTertiary = 6,
|
|
10
|
+
SurfaceModerate = 7,
|
|
11
|
+
SurfaceInvert = 8,
|
|
12
|
+
SurfaceAccentEmphasisHigh = 9,
|
|
13
|
+
SurfaceAccentEmphasisLow = 10,
|
|
14
|
+
SurfaceAccentEmphasisMin = 11,
|
|
15
|
+
SurfaceAccentEmphasisMedium = 12,
|
|
16
|
+
SurfaceLocked = 13,
|
|
17
|
+
SurfaceOther = 14,
|
|
18
|
+
SurfaceAvatar = 15,
|
|
19
|
+
SurfaceGradient = 16,
|
|
20
|
+
Background = 17,
|
|
21
|
+
BorderBasic = 18,
|
|
22
|
+
BorderInvert = 19,
|
|
23
|
+
ActionPrimary = 20,
|
|
24
|
+
ActionNegative = 21,
|
|
25
|
+
ActionPositive = 22,
|
|
26
|
+
ActionWarning = 23,
|
|
27
|
+
ActionNeutral = 24,
|
|
28
|
+
ActionHighContrast = 25,
|
|
29
|
+
Illustration = 26,
|
|
30
|
+
Products = 27,
|
|
31
|
+
Decor = 28,
|
|
32
|
+
SurfaceComponentSpecific = 29,
|
|
33
|
+
Deprecated = 30
|
|
34
|
+
}
|
|
35
|
+
export type ColorBaseBody = {
|
|
36
|
+
enum: DesignTokenKey;
|
|
37
|
+
token: string;
|
|
38
|
+
};
|
|
39
|
+
export type ColorShape = ColorBaseBody & {
|
|
40
|
+
desc: string;
|
|
41
|
+
group: ColorGroup | string;
|
|
42
|
+
deprecated?: boolean;
|
|
43
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TransitionDelayShape, TransitionDurationShape, TransitionTimingShape } from './types';
|
|
2
|
+
export declare const TransitionDurationTokens: TransitionDurationShape[];
|
|
3
|
+
export declare const TransitionTimingTokens: TransitionTimingShape[];
|
|
4
|
+
export declare const TransitionDelayTokens: TransitionDelayShape[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TransitionDelayTokenKey, TransitionDurationTokenKey, TransitionTimingTokenKey } from '../../../foundations/transition-token';
|
|
2
|
+
export type TransitionShape = {
|
|
3
|
+
enum: string;
|
|
4
|
+
token: string;
|
|
5
|
+
value: string;
|
|
6
|
+
desc: string;
|
|
7
|
+
};
|
|
8
|
+
export type TransitionDurationShape = TransitionShape & {
|
|
9
|
+
enum: TransitionDurationTokenKey;
|
|
10
|
+
};
|
|
11
|
+
export type TransitionTimingShape = TransitionShape & {
|
|
12
|
+
enum: TransitionTimingTokenKey;
|
|
13
|
+
};
|
|
14
|
+
export type TransitionDelayShape = TransitionShape & {
|
|
15
|
+
enum: TransitionDelayTokenKey;
|
|
16
|
+
};
|