@livechat/design-system-react-components 1.16.4 → 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/Alert/Alert.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +4 -4
- package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +2 -2
- package/dist/components/FieldGroup/FieldGroup.stories.d.ts +1 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +3 -3
- package/dist/components/Form/Form.stories.d.ts +1 -1
- package/dist/components/FormField/FormField.stories.d.ts +3 -3
- package/dist/components/FormGroup/FormGroup.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +1 -1
- 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/Input/Input.stories.d.ts +1 -1
- package/dist/components/Link/Link.stories.d.ts +1 -1
- package/dist/components/Loader/Loader.stories.d.ts +1 -1
- package/dist/components/Modal/Modal.stories.d.ts +5 -5
- package/dist/components/NumericInput/NumericInput.stories.d.ts +6 -6
- package/dist/components/Picker/Picker.stories.d.ts +2 -2
- 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/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/Progress/ProgressBar.stories.d.ts +1 -1
- package/dist/components/Progress/ProgressCircle.stories.d.ts +1 -1
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +6 -6
- package/dist/components/RadioButton/RadioButton.stories.d.ts +1 -1
- package/dist/components/Search/Search.stories.d.ts +2 -2
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +1 -1
- package/dist/components/Switch/Switch.stories.d.ts +1 -1
- package/dist/components/Tab/Tab.stories.d.ts +1 -19
- package/dist/components/Tab/TabsWrapper.stories.d.ts +1 -1
- package/dist/components/Tag/Tag.stories.d.ts +1 -1
- package/dist/components/TagInput/TagInput.stories.d.ts +1 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +1 -1
- package/dist/components/Toast/Toast.stories.d.ts +1 -1
- package/dist/components/Toast/ToastWrapper.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/components/UploadBar/UploadBar.stories.d.ts +1 -1
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +1804 -1707
- 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 +570 -540
- 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 +17 -15
- package/dist/stories/components/ColorTokens.d.ts +0 -2
- package/dist/stories/components/Radius.d.ts +0 -2
- package/dist/stories/components/RadiusExamples.d.ts +0 -2
- package/dist/stories/components/Shadow.d.ts +0 -2
- package/dist/stories/components/ShadowExamples.d.ts +0 -2
- package/dist/stories/components/Spacing.d.ts +0 -2
- package/dist/stories/components/SpacingExamples.d.ts +0 -2
- package/dist/stories/components/TablerIconsShowcase.d.ts +0 -6
- package/dist/stories/components/Transition/TransitionTable.d.ts +0 -10
- package/dist/stories/components/Transition/transitionDelay.d.ts +0 -6
- package/dist/stories/components/Transition/transitionDuration.d.ts +0 -5
- package/dist/stories/components/Transition/transitionTiming.d.ts +0 -5
- /package/dist/stories/components/{BlockColumns.d.ts → BlockColumns/BlockColumns.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
|
+
};
|