@livechat/design-system-react-components 1.1.0 → 1.3.0

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.
@@ -50,17 +50,29 @@ export declare const DesignToken: {
50
50
  SurfaceLockedDisabled: string;
51
51
  SurfaceLockedWhite: string;
52
52
  SurfaceLockedBlack: string;
53
+ SurfaceAccentEmphasisMediumNegative: string;
54
+ SurfaceAccentEmphasisMediumPositive: string;
53
55
  SurfaceAccentEmphasisHighInfo: string;
54
56
  SurfaceAccentEmphasisHighNegative: string;
55
57
  SurfaceAccentEmphasisHighWarning: string;
56
58
  SurfaceAccentEmphasisHighPositive: string;
57
59
  SurfaceAccentEmphasisHighPurple: string;
58
60
  SurfaceOverlay: string;
61
+ SurfaceGradient01: string;
62
+ SurfaceGradient02: string;
63
+ SurfaceGradient03: string;
64
+ SurfaceGradient04: string;
65
+ SurfaceGradient05: string;
66
+ SurfaceGradient06: string;
67
+ SurfaceGradient07: string;
68
+ SurfaceGradient08: string;
69
+ SurfaceGradient09: string;
70
+ SurfaceGradient10: string;
71
+ SurfaceGradient11: string;
59
72
  SurfaceOtherOverlay: string;
60
73
  SurfaceOtherAgent: string;
74
+ SurfaceOtherAgentHover: string;
61
75
  SurfaceOtherSkeleton: string;
62
- SurfaceGradient01: string;
63
- SurfaceGradient02: string;
64
76
  ContentDefault: string;
65
77
  ContentBasicPrimary: string;
66
78
  ContentSubtle: string;
@@ -101,6 +113,7 @@ export declare const DesignToken: {
101
113
  BorderBasicPositive: string;
102
114
  BorderBasicInfo: string;
103
115
  BorderBasicPurple: string;
116
+ BorderBasicContrast: string;
104
117
  BorderInvertDefault: string;
105
118
  BorderInvertPrimary: string;
106
119
  BorderInvertSubtle: string;
@@ -128,6 +141,7 @@ export declare const DesignToken: {
128
141
  ActionWarningDefault: string;
129
142
  ColorWarningHover: string;
130
143
  ActionWarningHover: string;
144
+ ActionWarningDisabled: string;
131
145
  ColorPositiveDefault: string;
132
146
  ActionPositiveDefault: string;
133
147
  ColorPositiveHover: string;
@@ -137,8 +151,13 @@ export declare const DesignToken: {
137
151
  ActionNeutralDefault: string;
138
152
  ActionNeutralHover: string;
139
153
  ActionNeutralDisabled: string;
154
+ ActionHighContrastDefault: string;
155
+ ActionHighContrastHover: string;
156
+ ActionHighContrastActive: string;
157
+ ActionHighContrastDisabled: string;
140
158
  ColorBot: string;
141
159
  SurfaceOtherBot: string;
160
+ SurfaceOtherBotHover: string;
142
161
  ColorBlack: string;
143
162
  ColorWhite: string;
144
163
  DecorBlue900: string;
@@ -225,4 +244,33 @@ export declare const DesignToken: {
225
244
  IllustrationsStroke: string;
226
245
  TagSurface01: string;
227
246
  TagContent01: string;
247
+ BtnBasicBackgroundEnabled: string;
248
+ BtnBasicBackgroundHover: string;
249
+ BtnBasicBackgroundDisabled: string;
250
+ BtnBasicBackgroundActive: string;
251
+ BtnBasicBackgroundLoading: string;
252
+ BtnSecondaryBackgroundEnabled: string;
253
+ BtnSecondaryBackgroundHover: string;
254
+ BtnSecondaryBackgroundDisabled: string;
255
+ BtnSecondaryBackgroundActive: string;
256
+ BtnSecondaryBackgroundLoading: string;
257
+ BtnPlainIconBackgroundHover: string;
258
+ BtnPlainIconBackgroundActive: string;
259
+ PickerListBackground: string;
260
+ PickerListGroupBackground: string;
261
+ PickerListOptionBackgroundHover: string;
262
+ PickerListOptionBackgroundActiveHover: string;
263
+ PickerListOptionBackgroundFocus: string;
264
+ PickerListOptionBackgroundActive: string;
265
+ PopoverBackground: string;
266
+ SurfaceAvatar1: string;
267
+ SurfaceAvatar2: string;
268
+ SurfaceAvatar3: string;
269
+ SurfaceAvatar4: string;
270
+ SurfaceAvatar5: string;
271
+ SurfaceAvatar6: string;
272
+ SurfaceAvatar7: string;
273
+ SurfaceAvatar8: string;
274
+ SurfaceAvatar9: string;
275
+ SurfaceAvatar10: string;
228
276
  };
@@ -0,0 +1 @@
1
+ export declare const getDesignTokenWithOpacity: (token: string, opacityInPercent: string) => string;
@@ -1 +1,2 @@
1
1
  export type { Size } from './constants';
2
+ export { getDesignTokenWithOpacity } from './getDesignTokenWithOpacity';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/design-system-react-components",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,6 +23,7 @@
23
23
  "build:styles": "sass src/themes:dist/themes; sass src/foundations:dist/spacing; sass src/foundations:dist/shadow",
24
24
  "build-storybook": "export SET NODE_OPTIONS=--openssl-legacy-provider && storybook build",
25
25
  "chromatic": "dotenv -e ../../.env chromatic -- --exit-zero-on-changes --only-changed --skip 'dependabot/**'",
26
+ "generateDesignTokenEnum": "node scripts/generateDesignTokenEnum.js",
26
27
  "lint": "eslint src --ext js,jsx,ts,tsx",
27
28
  "test": "vitest run",
28
29
  "test:watch": "vitest watch",
@@ -33,7 +34,6 @@
33
34
  "react-dom": ">= 17.0.2"
34
35
  },
35
36
  "devDependencies": {
36
- "@babel/core": "^7.17.7",
37
37
  "@storybook/addon-a11y": "^7.1.1",
38
38
  "@storybook/addon-actions": "^7.1.1",
39
39
  "@storybook/addon-designs": "^7.0.1",
@@ -53,7 +53,7 @@
53
53
  "@types/react-dom": "^17.0.10",
54
54
  "@types/react-transition-group": "^4.4.4",
55
55
  "@vitejs/plugin-react": "^1.0.7",
56
- "babel-loader": "^8.2.3",
56
+ "@vitest/coverage-c8": "^0.33.0",
57
57
  "chromatic": "^6.19.7",
58
58
  "jsdom": "^19.0.0",
59
59
  "react": "^17.0.2",
@@ -70,10 +70,11 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@emotion/css": "^11.9.0",
73
+ "@floating-ui/react": "^0.26.1",
73
74
  "@floating-ui/react-dom": "^0.7.0",
74
75
  "@floating-ui/react-dom-interactions": "^0.6.1",
75
76
  "@livechat/data-utils": "^0.2.16",
76
- "@livechat/design-system-icons": "^1.1.0",
77
+ "@livechat/design-system-icons": "^1.3.0",
77
78
  "@popperjs/core": "^2.11.2",
78
79
  "clsx": "^1.1.1",
79
80
  "date-fns": "^2.28.0",
@@ -83,5 +84,5 @@
83
84
  "react-day-picker": "^7.4.10",
84
85
  "react-transition-group": "^4.4.2"
85
86
  },
86
- "gitHead": "b76751f067261431debc16664eafea4468b8d547"
87
+ "gitHead": "c215defb7892eac6cbaef0a0adde2420fad5f062"
87
88
  }