@livechat/design-system-react-components 1.0.0-alpha.2 → 1.0.0-alpha.22
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/dsrc.cjs.js +15 -0
- package/dist/dsrc.es.js +3255 -0
- package/dist/dsrc.umd.js +15 -0
- package/dist/shadow/shadow.css +7 -0
- package/dist/shadow/shadow.css.map +1 -0
- package/dist/shadow/spacing.css +18 -0
- package/dist/shadow/spacing.css.map +1 -0
- package/dist/spacing/shadow.css +7 -0
- package/dist/spacing/shadow.css.map +1 -0
- package/dist/spacing/spacing.css +18 -0
- package/dist/spacing/spacing.css.map +1 -0
- package/dist/src/components/Alert/Alert.d.ts +9 -0
- package/dist/src/components/Alert/index.d.ts +1 -0
- package/dist/src/components/Avatar/Avatar.d.ts +19 -0
- package/dist/src/components/Avatar/Avatar.helpers.d.ts +2 -0
- package/dist/src/components/Avatar/index.d.ts +1 -0
- package/dist/src/components/Badge/Badge.d.ts +9 -0
- package/dist/src/components/Badge/Badge.helpers.d.ts +1 -0
- package/dist/src/components/Badge/index.d.ts +1 -0
- package/dist/{components → src/components/Button}/Button.d.ts +14 -13
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/{components → src/components/ButtonGroup}/ButtonGroup.d.ts +11 -11
- package/dist/src/components/ButtonGroup/index.d.ts +1 -0
- package/dist/src/components/Card/Card.d.ts +12 -0
- package/dist/src/components/Card/index.d.ts +2 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +7 -0
- package/dist/src/components/Checkbox/index.d.ts +1 -0
- package/dist/src/components/FieldDescription/FieldDescription.d.ts +3 -0
- package/dist/src/components/FieldDescription/index.d.ts +1 -0
- package/dist/src/components/FieldError/FieldError.d.ts +3 -0
- package/dist/src/components/FieldError/index.d.ts +1 -0
- package/dist/src/components/FieldGroup/FieldGroup.d.ts +8 -0
- package/dist/src/components/FieldGroup/index.d.ts +1 -0
- package/dist/src/components/Form/Form.d.ts +7 -0
- package/dist/src/components/Form/index.d.ts +2 -0
- package/dist/src/components/FormField/FormField.d.ts +13 -0
- package/dist/src/components/FormField/index.d.ts +1 -0
- package/dist/src/components/FormGroup/FormGroup.d.ts +7 -0
- package/dist/src/components/FormGroup/index.d.ts +1 -0
- package/dist/src/components/Icon/Icon.d.ts +14 -0
- package/dist/src/components/Icon/index.d.ts +1 -0
- package/dist/src/components/Input/Input.d.ts +9 -0
- package/dist/src/components/Input/index.d.ts +1 -0
- package/dist/src/components/Link/Link.d.ts +14 -0
- package/dist/src/components/Link/index.d.ts +1 -0
- package/dist/{components → src/components/Loader}/Loader.d.ts +10 -10
- package/dist/src/components/Loader/index.d.ts +1 -0
- package/dist/src/components/Modal/ActionModal.d.ts +8 -0
- package/dist/src/components/Modal/Modal.d.ts +7 -0
- package/dist/src/components/Modal/ModalBase.d.ts +6 -0
- package/dist/src/components/Modal/ModalCloseButton.d.ts +3 -0
- package/dist/src/components/Modal/ModalPortal.d.ts +7 -0
- package/dist/src/components/Modal/index.d.ts +10 -0
- package/dist/src/components/NumericInput/NumericInput.d.ts +14 -0
- package/dist/src/components/NumericInput/index.d.ts +1 -0
- package/dist/src/components/Picker/Picker.d.ts +17 -0
- package/dist/src/components/Picker/PickerList.d.ts +18 -0
- package/dist/src/components/Picker/Trigger.d.ts +15 -0
- package/dist/src/components/Picker/index.d.ts +1 -0
- package/dist/src/components/Popover/Popover.d.ts +10 -0
- package/dist/src/components/Popover/index.d.ts +1 -0
- package/dist/{components → src/components/Progress}/ProgressBar.d.ts +9 -9
- package/dist/src/components/Progress/ProgressCircle.d.ts +9 -0
- package/dist/src/components/Progress/constants.d.ts +4 -0
- package/dist/{components → src/components/Progress}/helpers.d.ts +3 -3
- package/dist/src/components/Progress/index.d.ts +2 -0
- package/dist/{components → src/components/PromoBanner}/PromoBanner.d.ts +13 -19
- package/dist/src/components/PromoBanner/index.d.ts +1 -0
- package/dist/src/components/RadioButton/RadioButton.d.ts +7 -0
- package/dist/src/components/RadioButton/index.d.ts +1 -0
- package/dist/src/components/Search/Search.d.ts +16 -0
- package/dist/src/components/Search/index.d.ts +1 -0
- package/dist/{components → src/components/Switch}/Switch.d.ts +16 -17
- package/dist/src/components/Switch/index.d.ts +1 -0
- package/dist/{components → src/components/Tab}/Tab.d.ts +12 -12
- package/dist/{components → src/components/Tab}/TabsWrapper.d.ts +3 -3
- package/dist/src/components/Tab/index.d.ts +2 -0
- package/dist/src/components/Tag/Tag.d.ts +12 -0
- package/dist/src/components/Tag/index.d.ts +1 -0
- package/dist/src/components/TagInput/EditableTag.d.ts +11 -0
- package/dist/src/components/TagInput/EditableTagContent.d.ts +11 -0
- package/dist/src/components/TagInput/EmailTagInput.d.ts +5 -0
- package/dist/src/components/TagInput/TagInput.d.ts +12 -0
- package/dist/src/components/TagInput/index.d.ts +4 -0
- package/dist/src/components/Toast/Toast.d.ts +16 -0
- package/dist/src/components/Toast/ToastWrapper.d.ts +20 -0
- package/dist/src/components/Toast/index.d.ts +2 -0
- package/dist/src/components/Tooltip/Info.d.ts +8 -0
- package/dist/src/components/Tooltip/Interactive.d.ts +14 -0
- package/dist/src/components/Tooltip/Simple.d.ts +4 -0
- package/dist/src/components/Tooltip/SpotlightOverlay.d.ts +7 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/src/components/Tooltip/UserGuide.d.ts +12 -0
- package/dist/src/components/Tooltip/helpers.d.ts +2 -0
- package/dist/src/components/Tooltip/index.d.ts +5 -0
- package/dist/src/components/Tooltip/virtualElementReference.d.ts +9 -0
- package/dist/{components → src/components/Typography}/Heading.d.ts +11 -11
- package/dist/{components → src/components/Typography}/Text.d.ts +15 -15
- package/dist/src/components/Typography/index.d.ts +2 -0
- package/dist/src/foundations/shadow-token.d.ts +5 -0
- package/dist/src/foundations/spacing-token.d.ts +16 -0
- package/dist/src/index.d.ts +36 -0
- package/dist/src/themes/design-token.d.ts +126 -0
- package/dist/src/utils/keyCodes.d.ts +12 -0
- package/dist/{utils → src/utils}/noop.d.ts +1 -1
- package/dist/src/vite-env.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/themes/dark.css +130 -0
- package/dist/themes/dark.css.map +1 -0
- package/dist/themes/legacy.css +131 -0
- package/dist/themes/legacy.css.map +1 -0
- package/dist/themes/light.css +130 -0
- package/dist/themes/light.css.map +1 -0
- package/package.json +51 -36
- package/dist/components/Alert.d.ts +0 -19
- package/dist/components/Alert.spec.d.ts +0 -1
- package/dist/components/Badge.d.ts +0 -6
- package/dist/components/Badge.spec.d.ts +0 -1
- package/dist/components/Button.spec.d.ts +0 -1
- package/dist/components/ButtonGroup.spec.d.ts +0 -1
- package/dist/components/Card.d.ts +0 -6
- package/dist/components/Card.spec.d.ts +0 -1
- package/dist/components/Checkbox.d.ts +0 -7
- package/dist/components/CheckboxField.d.ts +0 -7
- package/dist/components/CheckboxField.spec.d.ts +0 -1
- package/dist/components/FieldDescription.d.ts +0 -3
- package/dist/components/FieldError.d.ts +0 -3
- package/dist/components/FieldGroup.d.ts +0 -8
- package/dist/components/FieldGroup.spec.d.ts +0 -1
- package/dist/components/FieldLabel.d.ts +0 -3
- package/dist/components/Form.d.ts +0 -7
- package/dist/components/Form.spec.d.ts +0 -1
- package/dist/components/FormGroup.d.ts +0 -7
- package/dist/components/FormGroup.spec.d.ts +0 -1
- package/dist/components/Icon.d.ts +0 -69
- package/dist/components/Loader.spec.d.ts +0 -1
- package/dist/components/Modal/ActionModal.d.ts +0 -8
- package/dist/components/Modal/Modal.d.ts +0 -7
- package/dist/components/Modal/ModalBase.d.ts +0 -6
- package/dist/components/Modal/ModalBase.spec.d.ts +0 -1
- package/dist/components/Modal/ModalCloseButton.d.ts +0 -3
- package/dist/components/Modal/ModalPortal.d.ts +0 -7
- package/dist/components/ProgressBar.spec.d.ts +0 -1
- package/dist/components/ProgressCircle.d.ts +0 -9
- package/dist/components/ProgressCircle.spec.d.ts +0 -1
- package/dist/components/PromoBanner.spec.d.ts +0 -1
- package/dist/components/RadioButton.d.ts +0 -7
- package/dist/components/RadioButton.spec.d.ts +0 -1
- package/dist/components/Switch.spec.d.ts +0 -1
- package/dist/components/Tab.spec.d.ts +0 -1
- package/dist/components/TabsWrapper.spec.d.ts +0 -1
- package/dist/components/Toast.d.ts +0 -22
- package/dist/components/Toast.spec.d.ts +0 -1
- package/dist/components/ToastWrapper.d.ts +0 -26
- package/dist/components/ToastWrapper.spec.d.ts +0 -1
- package/dist/components/constants.d.ts +0 -12
- package/dist/constants/keyCodes.d.ts +0 -3
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -2
- package/dist/index.modern.js.map +0 -1
- package/dist/index.module.js +0 -2
- package/dist/index.module.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/stories/Alert.stories.d.ts +0 -14
- package/dist/stories/Badge.stories.d.ts +0 -16
- package/dist/stories/Button.stories.d.ts +0 -20
- package/dist/stories/ButtonGroup.stories.d.ts +0 -18
- package/dist/stories/Card.stories.d.ts +0 -10
- package/dist/stories/CheckboxField.stories.d.ts +0 -9
- package/dist/stories/FieldGroup.stories.d.ts +0 -9
- package/dist/stories/Form.stories.d.ts +0 -6
- package/dist/stories/FormGroup.stories.d.ts +0 -9
- package/dist/stories/Icon.stories.d.ts +0 -14
- package/dist/stories/Loader.stories.d.ts +0 -8
- package/dist/stories/Modal.stories.d.ts +0 -19
- package/dist/stories/ProgressCircle.stories.d.ts +0 -13
- package/dist/stories/Progressbar.stories.d.ts +0 -13
- package/dist/stories/PromoBanner.stories.d.ts +0 -13
- package/dist/stories/RadioButton.stories.d.ts +0 -9
- package/dist/stories/Switch.stories.d.ts +0 -12
- package/dist/stories/Tab.stories.d.ts +0 -10
- package/dist/stories/TabsWrapper.stories.d.ts +0 -15
- package/dist/stories/Toast.stories.d.ts +0 -15
- package/dist/stories/ToastWrapper.stories.d.ts +0 -40
- package/dist/stories/foundations/components/ColorTokens.d.ts +0 -2
- package/dist/stories/foundations/components/IconsShowcase.d.ts +0 -6
- package/dist/test-utils.d.ts +0 -2
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
.lc-light-theme {
|
|
2
|
+
--background: #fff;
|
|
3
|
+
--surface-basic-default: #fff;
|
|
4
|
+
--surface-basic-subtle: #f6f6f7;
|
|
5
|
+
--surface-basic-hover: #e2e2e4;
|
|
6
|
+
--surface-basic-active: #c9c9cd;
|
|
7
|
+
--surface-basic-disabled: #f6f6f7;
|
|
8
|
+
--surface-secondary-default: #c9c9cd;
|
|
9
|
+
--surface-secondary-subtle: #e4e8ec;
|
|
10
|
+
--surface-secondary-hover: #ababb1;
|
|
11
|
+
--surface-secondary-disabled: #eeeeef;
|
|
12
|
+
--surface-feedback-info: #daedff;
|
|
13
|
+
--surface-feedback-negative: #ffe5e5;
|
|
14
|
+
--surface-feedback-warning: #fff2d6;
|
|
15
|
+
--surface-feedback-positive: #e4f4ed;
|
|
16
|
+
--surface-invert-default: #1b1b20;
|
|
17
|
+
--surface-invert-subtle: #4e4e58;
|
|
18
|
+
--surface-invert-disabled: #8d8d95;
|
|
19
|
+
--surface-overlay: rgb(19 19 23 / 70%);
|
|
20
|
+
--content-default: #131317;
|
|
21
|
+
--content-subtle: #62626d;
|
|
22
|
+
--content-disabled: #8d8d95;
|
|
23
|
+
--content-white-locked: #fff;
|
|
24
|
+
--content-black-locked: #131317;
|
|
25
|
+
--content-invert-default: #fff;
|
|
26
|
+
--content-invert-subtle: rgb(255 255 255 / 70%);
|
|
27
|
+
--content-invert-disabled: rgb(255 255 255 / 50%);
|
|
28
|
+
--border-default: #c9c9cd;
|
|
29
|
+
--border-subtle: #eeeeef;
|
|
30
|
+
--border-hover: #ababb1;
|
|
31
|
+
--border-disabled: #e2e2e4;
|
|
32
|
+
--border-invert-default: rgb(255 255 255 / 70%);
|
|
33
|
+
--border-invert-subtle: rgb(255 255 255 / 30%);
|
|
34
|
+
--border-invert-hover: #fff;
|
|
35
|
+
--border-invert-disabled: rgb(255 255 255 / 50%);
|
|
36
|
+
--color-action-active: #003fa4;
|
|
37
|
+
--color-action-hover: #004bc2;
|
|
38
|
+
--color-action-default: #06f;
|
|
39
|
+
--color-action-default-rgb: 0, 102, 255;
|
|
40
|
+
--color-action-disabled: #9dceff;
|
|
41
|
+
--color-negative-active: #930002;
|
|
42
|
+
--color-negative-hover: #ae0003;
|
|
43
|
+
--color-negative-default: #ca0005;
|
|
44
|
+
--color-negative-disabled: #eba3a3;
|
|
45
|
+
--color-warning-default: #e8bb00;
|
|
46
|
+
--color-warning-hover: #c9a100;
|
|
47
|
+
--color-positive-default: #00893c;
|
|
48
|
+
--color-positive-hover: #006329;
|
|
49
|
+
--color-positive-disabled: #d1f4d5;
|
|
50
|
+
--color-bot: #50009c;
|
|
51
|
+
--color-black: #131317;
|
|
52
|
+
--color-white: #fff;
|
|
53
|
+
--decor-blue900: #003288;
|
|
54
|
+
--decor-blue800: #003fa4;
|
|
55
|
+
--decor-blue700: #004bc2;
|
|
56
|
+
--decor-blue600: #0059e1;
|
|
57
|
+
--decor-blue500: #06f;
|
|
58
|
+
--decor-blue400: #328dff;
|
|
59
|
+
--decor-blue300: #68afff;
|
|
60
|
+
--decor-blue200: #9dceff;
|
|
61
|
+
--decor-blue100: #daedff;
|
|
62
|
+
--decor-blue50: #f4faff;
|
|
63
|
+
--decor-orange900: #6c1d00;
|
|
64
|
+
--decor-orange800: #842600;
|
|
65
|
+
--decor-orange700: #9c2e00;
|
|
66
|
+
--decor-orange600: #b43700;
|
|
67
|
+
--decor-orange500: #d54300;
|
|
68
|
+
--decor-orange400: #ff5100;
|
|
69
|
+
--decor-orange300: #ff8a77;
|
|
70
|
+
--decor-orange200: #ffb8af;
|
|
71
|
+
--decor-orange100: #ffe5e3;
|
|
72
|
+
--decor-orange50: #fff8f7;
|
|
73
|
+
--decor-yellow900: #493700;
|
|
74
|
+
--decor-yellow800: #755b00;
|
|
75
|
+
--decor-yellow700: #c9a100;
|
|
76
|
+
--decor-yellow600: #e8bb00;
|
|
77
|
+
--decor-yellow500: #f3c600;
|
|
78
|
+
--decor-yellow400: #d1aa00;
|
|
79
|
+
--decor-yellow300: #fed65e;
|
|
80
|
+
--decor-yellow200: #fedc89;
|
|
81
|
+
--decor-yellow100: #fff2d6;
|
|
82
|
+
--decor-yellow50: #fff9ed;
|
|
83
|
+
--decor-gray950: #131317;
|
|
84
|
+
--decor-gray900: #1b1b20;
|
|
85
|
+
--decor-gray800: #29292f;
|
|
86
|
+
--decor-gray700: #3b3b43;
|
|
87
|
+
--decor-gray600: #4e4e58;
|
|
88
|
+
--decor-gray500: #62626d;
|
|
89
|
+
--decor-gray400: #767680;
|
|
90
|
+
--decor-gray300: #8d8d95;
|
|
91
|
+
--decor-gray200: #ababb1;
|
|
92
|
+
--decor-gray150: #c9c9cd;
|
|
93
|
+
--decor-gray100: #c9c9cd;
|
|
94
|
+
--decor-gray75: #eeeeef;
|
|
95
|
+
--decor-gray50: #e2e2e4;
|
|
96
|
+
--decor-gray40: #eeeeef;
|
|
97
|
+
--decor-gray20: #fcfcfc;
|
|
98
|
+
--decor-green900: #00431a;
|
|
99
|
+
--decor-green800: #005321;
|
|
100
|
+
--decor-green700: #006329;
|
|
101
|
+
--decor-green600: #007331;
|
|
102
|
+
--decor-green500: #00893c;
|
|
103
|
+
--decor-green400: #00a449;
|
|
104
|
+
--decor-green300: #00c057;
|
|
105
|
+
--decor-green200: #7edd92;
|
|
106
|
+
--decor-green100: #e4f4ed;
|
|
107
|
+
--decor-green50: #f3fcf4;
|
|
108
|
+
--decor-red900: #790002;
|
|
109
|
+
--decor-red800: #930002;
|
|
110
|
+
--decor-red700: #ae0003;
|
|
111
|
+
--decor-red600: #ca0005;
|
|
112
|
+
--decor-red500: #ee0007;
|
|
113
|
+
--decor-red400: #ff4c4d;
|
|
114
|
+
--decor-red300: #ff8889;
|
|
115
|
+
--decor-red200: #ffb7b7;
|
|
116
|
+
--decor-red100: #ffe5e5;
|
|
117
|
+
--decor-red50: #fff8f8;
|
|
118
|
+
--decor-purple900: #50009c;
|
|
119
|
+
--decor-purple800: #6100bd;
|
|
120
|
+
--decor-purple700: #7400df;
|
|
121
|
+
--decor-purple600: #8609ff;
|
|
122
|
+
--decor-purple500: #9146ff;
|
|
123
|
+
--decor-purple400: #a372ff;
|
|
124
|
+
--decor-purple300: #b99aff;
|
|
125
|
+
--decor-purple200: #d1c0ff;
|
|
126
|
+
--decor-purple100: #eee8ff;
|
|
127
|
+
--decor-purple50: #faf8ff;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/*# sourceMappingURL=light.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/themes/light.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"light.css"}
|
package/package.json
CHANGED
|
@@ -1,67 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/design-system-react-components",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"author": "",
|
|
9
9
|
"license": "ISC",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"unpkg": "./dist/index.umd.js",
|
|
15
|
-
"types": "dist/index.d.ts",
|
|
16
|
-
"styles": "dist/index.css",
|
|
10
|
+
"main": "./dist/dsrc.cjs.js",
|
|
11
|
+
"module": "./dist/dsrc.es.js",
|
|
12
|
+
"unpkg": "./dist/dsrc.umd.js",
|
|
13
|
+
"types": "./dist/src/index.d.ts",
|
|
17
14
|
"files": [
|
|
18
15
|
"dist"
|
|
19
16
|
],
|
|
20
17
|
"scripts": {
|
|
21
18
|
"dev": "run-p dev:*",
|
|
22
19
|
"dev:storybook": "start-storybook -p 6006 --quiet",
|
|
23
|
-
"dev:lib": "
|
|
24
|
-
"
|
|
20
|
+
"dev:lib": "vite build -w",
|
|
21
|
+
"dev:styles": "npm run build:styles -- --watch",
|
|
22
|
+
"build": "run-s build:*",
|
|
23
|
+
"build:lib": "tsc && vite build",
|
|
24
|
+
"build:styles": "sass src/themes:dist/themes; sass src/foundations:dist/spacing; sass src/foundations:dist/shadow",
|
|
25
25
|
"build-storybook": "build-storybook",
|
|
26
26
|
"chromatic": "dotenv -e ../../.env chromatic -- --exit-zero-on-changes",
|
|
27
27
|
"lint": "eslint src --ext js,jsx,ts,tsx",
|
|
28
|
-
"test": "
|
|
29
|
-
"test:watch": "
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest watch",
|
|
30
|
+
"test:coverage": "vitest run --coverage"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
|
-
"react": "
|
|
33
|
-
"react-dom": "
|
|
33
|
+
"react": ">= 17.0.2",
|
|
34
|
+
"react-dom": ">= 17.0.2"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@babel/core": "^7.
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@storybook/addon-
|
|
41
|
-
"@storybook/
|
|
42
|
-
"@storybook/
|
|
43
|
-
"@storybook/react": "^6.
|
|
44
|
-
"@testing-library/jest-dom": "^5.
|
|
45
|
-
"@testing-library/react": "^12.1.
|
|
46
|
-
"@testing-library/user-event": "^13.
|
|
47
|
-
"@types/
|
|
48
|
-
"@types/
|
|
37
|
+
"@babel/core": "^7.17.7",
|
|
38
|
+
"@storybook/addon-actions": "^6.4.22",
|
|
39
|
+
"@storybook/addon-docs": "^6.4.22",
|
|
40
|
+
"@storybook/addon-essentials": "^6.4.22",
|
|
41
|
+
"@storybook/addon-links": "^6.4.22",
|
|
42
|
+
"@storybook/builder-vite": "^0.1.28",
|
|
43
|
+
"@storybook/core-common": "^6.4.22",
|
|
44
|
+
"@storybook/react": "^6.4.22",
|
|
45
|
+
"@testing-library/jest-dom": "^5.16.2",
|
|
46
|
+
"@testing-library/react": "^12.1.4",
|
|
47
|
+
"@testing-library/user-event": "^13.5.0",
|
|
48
|
+
"@types/lodash.debounce": "^4.0.6",
|
|
49
|
+
"@types/lodash.escape": "^4.0.6",
|
|
50
|
+
"@types/react": "^17.0.33",
|
|
49
51
|
"@types/react-dom": "^17.0.10",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
+
"@types/react-transition-group": "^4.4.4",
|
|
53
|
+
"@vitejs/plugin-react": "^1.0.7",
|
|
54
|
+
"babel-loader": "^8.2.3",
|
|
52
55
|
"chromatic": "^5.9.2",
|
|
53
|
-
"
|
|
54
|
-
"microbundle": "^0.14.0",
|
|
56
|
+
"jsdom": "^19.0.0",
|
|
55
57
|
"react": "^17.0.2",
|
|
56
58
|
"react-dom": "^17.0.2",
|
|
59
|
+
"sass": "^1.49.9",
|
|
57
60
|
"storybook-addon-themes": "^6.1.0",
|
|
58
|
-
"typescript": "^4.4
|
|
61
|
+
"typescript": "^4.5.4",
|
|
62
|
+
"vite": "^2.8.0",
|
|
63
|
+
"vite-plugin-dts": "^0.9.10",
|
|
64
|
+
"vitest": "^0.6.3"
|
|
59
65
|
},
|
|
60
66
|
"dependencies": {
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
67
|
+
"@emotion/css": "^11.9.0",
|
|
68
|
+
"@floating-ui/react-dom": "^0.7.0",
|
|
69
|
+
"@floating-ui/react-dom-interactions": "^0.6.1",
|
|
70
|
+
"@livechat/data-utils": "^0.2.16",
|
|
71
|
+
"@livechat/design-system-icons": "^1.0.0-alpha.21",
|
|
72
|
+
"@popperjs/core": "^2.11.2",
|
|
73
|
+
"clsx": "^1.1.1",
|
|
74
|
+
"date-fns": "^2.28.0",
|
|
75
|
+
"lodash.debounce": "^4.0.8",
|
|
76
|
+
"lodash.escape": "^4.0.1",
|
|
77
|
+
"polished": "^4.1.3",
|
|
78
|
+
"react-day-picker": "^7.4.10",
|
|
64
79
|
"react-transition-group": "^4.4.2"
|
|
65
80
|
},
|
|
66
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "8204a7a578a8561456fb2fc0b37b4cd1a7340664"
|
|
67
82
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare enum AlertSize {
|
|
3
|
-
Small = "small",
|
|
4
|
-
Medium = "medium",
|
|
5
|
-
Large = "large"
|
|
6
|
-
}
|
|
7
|
-
export declare enum AlertType {
|
|
8
|
-
Info = "info",
|
|
9
|
-
Warning = "warning",
|
|
10
|
-
Success = "success",
|
|
11
|
-
Error = "error"
|
|
12
|
-
}
|
|
13
|
-
export interface IAlertProps {
|
|
14
|
-
className?: string;
|
|
15
|
-
size?: AlertSize;
|
|
16
|
-
type?: AlertType;
|
|
17
|
-
onClose?: () => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const Alert: React.FC<IAlertProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IFieldGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
description?: React.ReactNode;
|
|
4
|
-
error?: string;
|
|
5
|
-
inline?: boolean;
|
|
6
|
-
stretch?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const FieldGroup: React.FC<IFieldGroupProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare enum IconSizeName {
|
|
3
|
-
XSmall = "xsmall",
|
|
4
|
-
Small = "small",
|
|
5
|
-
Medium = "medium",
|
|
6
|
-
Large = "large",
|
|
7
|
-
XLarge = "xlarge"
|
|
8
|
-
}
|
|
9
|
-
export declare const IconSize: {
|
|
10
|
-
xsmall: {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
};
|
|
14
|
-
small: {
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
};
|
|
18
|
-
medium: {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
};
|
|
22
|
-
large: {
|
|
23
|
-
width: number;
|
|
24
|
-
height: number;
|
|
25
|
-
};
|
|
26
|
-
xlarge: {
|
|
27
|
-
width: number;
|
|
28
|
-
height: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare enum IconTypeName {
|
|
32
|
-
Primary = "primary",
|
|
33
|
-
Subtle = "subtle",
|
|
34
|
-
Inverted = "inverted",
|
|
35
|
-
InvertedSubtle = "inverted_subtle",
|
|
36
|
-
Link = "link",
|
|
37
|
-
Success = "success",
|
|
38
|
-
Warning = "warning",
|
|
39
|
-
Error = "error"
|
|
40
|
-
}
|
|
41
|
-
export declare const IconColorMapper: {
|
|
42
|
-
primary: string;
|
|
43
|
-
subtle: string;
|
|
44
|
-
inverted: string;
|
|
45
|
-
inverted_subtle: string;
|
|
46
|
-
link: string;
|
|
47
|
-
success: string;
|
|
48
|
-
warning: string;
|
|
49
|
-
error: string;
|
|
50
|
-
};
|
|
51
|
-
export declare const IconColorDisabledMapper: {
|
|
52
|
-
primary: string;
|
|
53
|
-
subtle: string;
|
|
54
|
-
inverted: string;
|
|
55
|
-
inverted_subtle: string;
|
|
56
|
-
link: string;
|
|
57
|
-
success: string;
|
|
58
|
-
warning: string;
|
|
59
|
-
error: string;
|
|
60
|
-
};
|
|
61
|
-
export interface IIconProps {
|
|
62
|
-
source: React.FC<React.SVGProps<SVGSVGElement>> | string;
|
|
63
|
-
size?: IconSizeName;
|
|
64
|
-
iconType?: IconTypeName;
|
|
65
|
-
disabled?: boolean;
|
|
66
|
-
className?: string;
|
|
67
|
-
}
|
|
68
|
-
export declare const Icon: React.FC<IIconProps>;
|
|
69
|
-
export default Icon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IModalBaseProps } from './ModalBase';
|
|
3
|
-
export interface IActionModalProps extends IModalBaseProps {
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
heading?: React.ReactNode;
|
|
6
|
-
actions?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const ActionModal: React.FC<IActionModalProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ProgressSize, ProgressStatus } from './constants';
|
|
3
|
-
export interface IProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
percent: number;
|
|
6
|
-
status?: ProgressStatus;
|
|
7
|
-
size?: ProgressSize;
|
|
8
|
-
}
|
|
9
|
-
export declare const ProgressCircle: React.ExoticComponent<IProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare enum Variants {
|
|
3
|
-
Success = "success",
|
|
4
|
-
Warning = "warning",
|
|
5
|
-
Error = "error",
|
|
6
|
-
Info = "info",
|
|
7
|
-
Notification = "notification"
|
|
8
|
-
}
|
|
9
|
-
interface IToastActionProps {
|
|
10
|
-
handler: () => void;
|
|
11
|
-
label: string;
|
|
12
|
-
closeOnClick?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface IToastProps {
|
|
15
|
-
action?: IToastActionProps;
|
|
16
|
-
className?: string;
|
|
17
|
-
removable?: boolean;
|
|
18
|
-
variant?: Variants;
|
|
19
|
-
onClose?: () => void;
|
|
20
|
-
}
|
|
21
|
-
export declare const Toast: React.FC<IToastProps>;
|
|
22
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IToastProps } from './Toast';
|
|
3
|
-
export declare enum HorizontalPosition {
|
|
4
|
-
Left = "left",
|
|
5
|
-
Center = "center",
|
|
6
|
-
Right = "right"
|
|
7
|
-
}
|
|
8
|
-
export declare enum VerticalPosition {
|
|
9
|
-
Top = "top",
|
|
10
|
-
Bottom = "bottom"
|
|
11
|
-
}
|
|
12
|
-
export declare const ANIMATION_TIME = 200;
|
|
13
|
-
export interface IToastsProps extends IToastProps {
|
|
14
|
-
id: string;
|
|
15
|
-
content: React.ReactElement | string;
|
|
16
|
-
}
|
|
17
|
-
export interface IToastWrapperProps {
|
|
18
|
-
className?: string;
|
|
19
|
-
toasts: IToastsProps[];
|
|
20
|
-
fixed?: boolean;
|
|
21
|
-
block?: boolean;
|
|
22
|
-
animationType?: string;
|
|
23
|
-
verticalPosition?: VerticalPosition;
|
|
24
|
-
horizontalPosition?: HorizontalPosition;
|
|
25
|
-
}
|
|
26
|
-
export declare const ToastWrapper: React.FC<IToastWrapperProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum ProgressStatus {
|
|
2
|
-
Normal = "normal",
|
|
3
|
-
Error = "error",
|
|
4
|
-
Success = "success"
|
|
5
|
-
}
|
|
6
|
-
export declare enum ProgressSize {
|
|
7
|
-
Small = "small",
|
|
8
|
-
Medium = "medium",
|
|
9
|
-
Large = "large"
|
|
10
|
-
}
|
|
11
|
-
export declare const PROGRESS_STATUSES: ProgressStatus[];
|
|
12
|
-
export declare const PROGRESS_SIZES: ProgressSize[];
|