@livechat/design-system-react-components 1.0.0-alpha.9 → 1.0.0-y.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.
Files changed (102) hide show
  1. package/dist/dsrc.cjs.js +15 -1
  2. package/dist/dsrc.es.js +3158 -971
  3. package/dist/dsrc.umd.js +15 -1
  4. package/dist/shadow/shadow.css +7 -0
  5. package/dist/shadow/shadow.css.map +1 -0
  6. package/dist/shadow/spacing.css +18 -0
  7. package/dist/shadow/spacing.css.map +1 -0
  8. package/dist/spacing/shadow.css +7 -0
  9. package/dist/spacing/shadow.css.map +1 -0
  10. package/dist/spacing/spacing.css +18 -0
  11. package/dist/spacing/spacing.css.map +1 -0
  12. package/dist/src/components/Alert/Alert.d.ts +3 -7
  13. package/dist/src/components/Avatar/Avatar.d.ts +19 -0
  14. package/dist/src/components/Avatar/Avatar.helpers.d.ts +2 -0
  15. package/dist/src/components/Avatar/index.d.ts +1 -0
  16. package/dist/src/components/Badge/Badge.d.ts +6 -2
  17. package/dist/src/components/Badge/Badge.helpers.d.ts +1 -0
  18. package/dist/src/components/Button/Button.d.ts +4 -3
  19. package/dist/src/components/Button/index.d.ts +1 -1
  20. package/dist/src/components/Card/Card.d.ts +8 -2
  21. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -3
  22. package/dist/src/components/Checkbox/index.d.ts +0 -1
  23. package/dist/src/components/DatePicker/DatePicker.d.ts +4 -0
  24. package/dist/src/components/DatePicker/DatePickerNavbar.d.ts +4 -0
  25. package/dist/src/components/DatePicker/RangeDatePicker.d.ts +16 -0
  26. package/dist/src/components/DatePicker/helpers.d.ts +39 -0
  27. package/dist/src/components/DatePicker/hooks.d.ts +6 -0
  28. package/dist/src/components/DatePicker/index.d.ts +2 -0
  29. package/dist/src/components/DatePicker/types.d.ts +100 -0
  30. package/dist/src/components/FileUploadProgress/FileUploadProgress.d.ts +15 -0
  31. package/dist/src/components/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
  32. package/dist/src/components/FileUploadProgress/index.d.ts +2 -0
  33. package/dist/src/components/{TextField/TextField.d.ts → FormField/FormField.d.ts} +2 -2
  34. package/dist/src/components/FormField/index.d.ts +1 -0
  35. package/dist/src/components/Icon/Icon.d.ts +6 -62
  36. package/dist/src/components/Icon/index.d.ts +1 -1
  37. package/dist/src/components/Input/Input.d.ts +14 -0
  38. package/dist/src/components/Input/index.d.ts +1 -0
  39. package/dist/src/components/Modal/Modal.d.ts +2 -0
  40. package/dist/src/components/Modal/ModalBase.d.ts +1 -0
  41. package/dist/src/components/Modal/ModalCloseButton.d.ts +4 -1
  42. package/dist/src/components/Modal/ModalPortal.d.ts +1 -1
  43. package/dist/src/components/Modal/index.d.ts +0 -2
  44. package/dist/src/components/NumericInput/index.d.ts +0 -1
  45. package/dist/src/components/Picker/Picker.d.ts +23 -0
  46. package/dist/src/components/Picker/PickerList.d.ts +23 -0
  47. package/dist/src/components/Picker/Trigger.d.ts +15 -0
  48. package/dist/src/components/Picker/TriggerBody.d.ts +16 -0
  49. package/dist/src/components/Picker/constants.d.ts +21 -0
  50. package/dist/src/components/Picker/index.d.ts +2 -0
  51. package/dist/src/components/Popover/Popover.d.ts +4 -7
  52. package/dist/src/components/Progress/ProgressBar.d.ts +9 -0
  53. package/dist/src/components/Progress/ProgressCircle.d.ts +1 -1
  54. package/dist/src/components/Progress/constants.d.ts +2 -10
  55. package/dist/src/components/Progress/index.d.ts +1 -0
  56. package/dist/src/components/PromoBanner/PromoBanner.d.ts +0 -6
  57. package/dist/src/components/RadioButton/RadioButton.d.ts +2 -2
  58. package/dist/src/components/Search/Search.d.ts +12 -0
  59. package/dist/src/components/Search/index.d.ts +1 -0
  60. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +18 -0
  61. package/dist/src/components/SegmentedControl/index.d.ts +2 -0
  62. package/dist/src/components/Switch/Switch.d.ts +5 -8
  63. package/dist/src/components/Tab/Tab.d.ts +4 -1
  64. package/dist/src/components/Tag/Tag.d.ts +3 -1
  65. package/dist/src/components/TagInput/TagInput.d.ts +1 -0
  66. package/dist/src/components/Textarea/Textarea.d.ts +6 -0
  67. package/dist/src/components/Textarea/index.d.ts +1 -0
  68. package/dist/src/components/Toast/Toast.d.ts +7 -13
  69. package/dist/src/components/Toast/ToastWrapper.d.ts +2 -9
  70. package/dist/src/components/Tooltip/Info.d.ts +8 -0
  71. package/dist/src/components/Tooltip/Interactive.d.ts +14 -0
  72. package/dist/src/components/Tooltip/Simple.d.ts +4 -0
  73. package/dist/src/components/Tooltip/SpotlightOverlay.d.ts +7 -0
  74. package/dist/src/components/Tooltip/Tooltip.d.ts +22 -0
  75. package/dist/src/components/Tooltip/UserGuide.d.ts +12 -0
  76. package/dist/src/components/Tooltip/helpers.d.ts +2 -0
  77. package/dist/src/components/Tooltip/index.d.ts +5 -0
  78. package/dist/src/components/Tooltip/virtualElementReference.d.ts +9 -0
  79. package/dist/src/components/UploadBar/UploadBar.d.ts +16 -0
  80. package/dist/src/components/UploadBar/index.d.ts +1 -0
  81. package/dist/src/foundations/shadow-token.d.ts +5 -0
  82. package/dist/src/foundations/spacing-token.d.ts +16 -0
  83. package/dist/src/index.d.ts +16 -4
  84. package/dist/src/themes/{designTokens.d.ts → design-token.d.ts} +104 -4
  85. package/dist/src/utils/constants.d.ts +1 -0
  86. package/dist/src/utils/index.d.ts +1 -0
  87. package/dist/style.css +1 -1
  88. package/dist/themes/dark.css +128 -21
  89. package/dist/themes/dark.css.map +1 -1
  90. package/dist/themes/legacy.css +116 -9
  91. package/dist/themes/legacy.css.map +1 -1
  92. package/dist/themes/light.css +116 -9
  93. package/dist/themes/light.css.map +1 -1
  94. package/package.json +21 -11
  95. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +0 -11
  96. package/dist/src/components/ButtonGroup/index.d.ts +0 -1
  97. package/dist/src/components/Checkbox/CheckboxField.d.ts +0 -7
  98. package/dist/src/components/InputField/InputField.d.ts +0 -15
  99. package/dist/src/components/InputField/index.d.ts +0 -1
  100. package/dist/src/components/Modal/ActionModal.d.ts +0 -8
  101. package/dist/src/components/NumericInput/NumericInputField.d.ts +0 -19
  102. package/dist/src/components/TextField/index.d.ts +0 -1
@@ -1,53 +1,151 @@
1
1
  :root,
2
2
  .lc-legacy-theme {
3
3
  --background: #fff;
4
+ --background-01: #fff;
5
+ --background-02: #fff;
6
+ --background-03: #f1f1f2;
4
7
  --surface-basic-default: #fff;
8
+ --surface-primary-default: #fff;
5
9
  --surface-basic-subtle: #f1f6f8;
10
+ --surface-secondary-default: #f1f6f8;
11
+ --surface-secondary-hover: #e0e8eb;
12
+ --surface-secondary-active: #dae4eb;
13
+ --surface-secondary-disabled: #eaedf0;
6
14
  --surface-basic-hover: #e0e8eb;
15
+ --surface-primary-hover: #f3f6f7;
7
16
  --surface-basic-active: #dae4eb;
17
+ --surface-primary-active: #ebf1f4;
18
+ --surface-primary-active-colored: rgb(66 132 245 / 25%);
8
19
  --surface-basic-disabled: #eaedf0;
9
- --surface-secondary-default: #bdc7d1;
20
+ --surface-primary-disabled: #f9fafb;
21
+ --surface-tertiary-default: #e4e8ec;
10
22
  --surface-secondary-subtle: #e4e8ec;
11
- --surface-secondary-hover: #a0a6ab;
12
- --surface-secondary-disabled: #dee3e8;
23
+ --surface-moderate-default: #bdc7d1;
24
+ --surface-moderate-hover: #b7c2cd;
25
+ --surface-moderate-active: #b1bdc9;
26
+ --surface-tertiary-hover: #c2c2c6;
27
+ --surface-tertiary-active: #bababe;
28
+ --surface-tertiary-disabled: #e4e8ec;
13
29
  --surface-feedback-info: #e5f3ff;
30
+ --surface-accent-emphasis-low-info: #e6f3ff;
14
31
  --surface-feedback-negative: #fbeaed;
32
+ --surface-accent-emphasis-low-negative: #fbeaed;
15
33
  --surface-feedback-warning: #fff8e0;
34
+ --surface-accent-emphasis-low-warning: #fff8e0;
16
35
  --surface-feedback-positive: #e6f4ec;
36
+ --surface-accent-emphasis-low-positive: #e6f4ec;
37
+ --surface-accent-emphasis-low-purple: #eee8ff;
38
+ --surface-accent-emphasis-min-info: #f4faff;
39
+ --surface-accent-emphasis-min-negative: #fff8f8;
40
+ --surface-accent-emphasis-min-warning: #fff9ed;
41
+ --surface-accent-emphasis-min-positive: #f3fcf4;
42
+ --surface-accent-emphasis-min-purple: #faf8ff;
17
43
  --surface-invert-default: #424d57;
44
+ --surface-invert-primary: #424d57;
18
45
  --surface-invert-subtle: #677179;
46
+ --surface-invert-secondary: #677179;
19
47
  --surface-invert-disabled: #a0a6ab;
20
- --surface-overlay: rgba(0, 0, 0, 0.7);
48
+ --surface-locked-default: #fff;
49
+ --surface-locked-hover: #efeff0;
50
+ --surface-locked-active: #daedff;
51
+ --surface-locked-disabled: rgb(255 255 255 / 70%);
52
+ --surface-locked-white: #fff;
53
+ --surface-locked-black: #000;
54
+ --surface-accent-emphasis-high-info: #4284f5;
55
+ --surface-accent-emphasis-high-negative: #d74747;
56
+ --surface-accent-emphasis-high-warning: #fbbd04;
57
+ --surface-accent-emphasis-high-positive: #22aa61;
58
+ --surface-accent-emphasis-high-purple: #9642f5;
59
+ --surface-overlay: rgb(0 0 0 / 70%);
60
+ --surface-other-overlay: rgb(0 0 0 / 70%);
61
+ --surface-other-agent: #4284f5;
62
+ --surface-other-skeleton: #e5e8ec;
21
63
  --content-default: #424d57;
64
+ --content-basic-primary: #424d57;
22
65
  --content-subtle: #677179;
66
+ --content-basic-secondary: #677179;
23
67
  --content-disabled: #a0a6ab;
68
+ --content-basic-disabled: #a0a6ab;
69
+ --content-basic-negative: #930002;
70
+ --content-basic-warning: #755b00;
71
+ --content-basic-positive: #005321;
72
+ --content-basic-info: #003fa4;
73
+ --content-basic-purple: #6100bd;
74
+ --content-basic-gradient-01: linear-gradient(
75
+ 254.49deg,
76
+ #b99aff -0.38%,
77
+ #68afff 94.44%
78
+ );
24
79
  --content-white-locked: #fff;
80
+ --content-locked-white: #fff;
81
+ --content-black-locked: #424d57;
82
+ --content-locked-black: #000;
83
+ --content-locked-default: #424d57;
84
+ --content-locked-hover: #131317;
85
+ --content-locked-active: #003fa4;
86
+ --content-locked-disabled: #8d8d95;
25
87
  --content-invert-default: #fff;
26
- --content-invert-subtle: rgba(255, 255, 255, 0.7);
27
- --content-invert-disabled: rgba(255, 255, 255, 0.5);
88
+ --content-invert-primary: #fff;
89
+ --content-invert-subtle: rgb(255 255 255 / 70%);
90
+ --content-invert-secondary: rgb(255 255 255 / 70%);
91
+ --content-invert-disabled: rgb(255 255 255 / 50%);
92
+ --content-invert-gradient-01: linear-gradient(
93
+ 254.49deg,
94
+ #b99aff -0.38%,
95
+ #68afff 94.44%
96
+ );
28
97
  --border-default: #bdc7d1;
98
+ --border-basic-primary: #bdc7d1;
99
+ --border-basic-secondary: #e4e8ec;
29
100
  --border-subtle: #e4e8ec;
101
+ --border-basic-tertiary: #e9edf0;
30
102
  --border-hover: #a0a6ab;
103
+ --border-basic-hover: #a0a6ab;
31
104
  --border-disabled: #dee3e8;
32
- --border-invert-default: rgba(255, 255, 255, 0.7);
33
- --border-invert-subtle: rgba(255, 255, 255, 0.3);
105
+ --border-basic-disabled: #dee3e8;
106
+ --border-basic-negative: #930002;
107
+ --border-basic-warning: #755b00;
108
+ --border-basic-positive: #005321;
109
+ --border-basic-info: #003fa4;
110
+ --border-basic-purple: #6100bd;
111
+ --border-invert-default: rgb(255 255 255 / 70%);
112
+ --border-invert-primary: rgb(255 255 255 / 70%);
113
+ --border-invert-subtle: rgb(255 255 255 / 30%);
114
+ --border-invert-secondary: rgb(255 255 255 / 30%);
34
115
  --border-invert-hover: #fff;
35
- --border-invert-disabled: rgba(255, 255, 255, 0.5);
116
+ --border-invert-disabled: rgb(255 255 255 / 50%);
36
117
  --color-action-active: #295fbc;
118
+ --action-primary-active: #295fbc;
37
119
  --color-action-hover: #4379d6;
120
+ --action-primary-hover: #4379d6;
38
121
  --color-action-default: #4284f5;
122
+ --action-primary-default: #4284f5;
39
123
  --color-action-default-rgb: 66, 132, 245;
40
124
  --color-action-disabled: #a3c3fa;
125
+ --action-primary-disabled: #a3c3fa;
41
126
  --color-negative-active: #94383a;
127
+ --action-negative-active: #94383a;
42
128
  --color-negative-hover: #b94648;
129
+ --action-negative-hover: #b94648;
43
130
  --color-negative-default: #d74747;
131
+ --action-negative-default: #d74747;
44
132
  --color-negative-disabled: #eba3a3;
133
+ --action-negative-disabled: #eba3a3;
45
134
  --color-warning-default: #fbbd04;
135
+ --action-warning-default: #fbbd04;
46
136
  --color-warning-hover: #f99a01;
137
+ --action-warning-hover: #f99a01;
47
138
  --color-positive-default: #22aa61;
139
+ --action-positive-default: #22aa61;
48
140
  --color-positive-hover: #0d874a;
141
+ --action-positive-hover: #0d874a;
49
142
  --color-positive-disabled: #90d5c4;
143
+ --action-positive-disabled: #90d5c4;
144
+ --action-neutral-default: #bdc7d1;
145
+ --action-neutral-hover: #a0a6ab;
146
+ --action-neutral-disabled: #dee3e8;
50
147
  --color-bot: #6b5aba;
148
+ --surface-other-bot: #6b5aba;
51
149
  --color-black: #424d57;
52
150
  --color-white: #fff;
53
151
  --decor-blue900: #003288;
@@ -125,6 +223,15 @@
125
223
  --decor-purple200: #d1c0ff;
126
224
  --decor-purple100: #eee8ff;
127
225
  --decor-purple50: #faf8ff;
226
+ --products-livechat: #fe5100;
227
+ --products-helpdesk: #00c057;
228
+ --products-chatbot: #06f;
229
+ --products-knowledgebase: #9146ff;
230
+ --illustrations-primary: #ffd000;
231
+ --illustrations-secondary: #e2e2e4;
232
+ --illustrations-stroke: #1b1b20;
233
+ --tag-surface-01: #e4e8ec;
234
+ --tag-content-01: #424d57;
128
235
  }
129
236
 
130
237
  /*# sourceMappingURL=legacy.css.map */
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/themes/legacy.scss"],"names":[],"mappings":"AAAA;AAAA;EAEE;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":"legacy.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../src/themes/legacy.scss"],"names":[],"mappings":"AAAA;AAAA;EAEE;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;AAAA;AAAA;AAAA;AAAA;EAKA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAAA;AAAA;AAAA;AAAA;EAKA;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;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"legacy.css"}
@@ -1,52 +1,150 @@
1
1
  .lc-light-theme {
2
2
  --background: #fff;
3
+ --background-01: #fff;
4
+ --background-02: #fff;
5
+ --background-03: #f1f1f2;
3
6
  --surface-basic-default: #fff;
7
+ --surface-primary-default: #fff;
4
8
  --surface-basic-subtle: #f6f6f7;
9
+ --surface-secondary-default: #f1f1f2;
10
+ --surface-secondary-hover: #e8e8ea;
11
+ --surface-secondary-active: #dfdfe1;
12
+ --surface-secondary-disabled: #f6f6f7;
5
13
  --surface-basic-hover: #e2e2e4;
14
+ --surface-primary-hover: #f6f6f6;
6
15
  --surface-basic-active: #c9c9cd;
16
+ --surface-primary-active: #ececec;
17
+ --surface-primary-active-colored: rgb(0 102 255 / 25%);
7
18
  --surface-basic-disabled: #f6f6f7;
8
- --surface-secondary-default: #c9c9cd;
19
+ --surface-primary-disabled: #f6f6f7;
20
+ --surface-tertiary-default: #e2e2e4;
9
21
  --surface-secondary-subtle: #e4e8ec;
10
- --surface-secondary-hover: #ababb1;
11
- --surface-secondary-disabled: #eeeeef;
22
+ --surface-moderate-default: #c9c9cd;
23
+ --surface-moderate-hover: #c2c2c6;
24
+ --surface-moderate-active: #bababe;
25
+ --surface-tertiary-hover: #dadadc;
26
+ --surface-tertiary-active: #d1d1d4;
27
+ --surface-tertiary-disabled: #eeeeef;
12
28
  --surface-feedback-info: #daedff;
29
+ --surface-accent-emphasis-low-info: #daedff;
13
30
  --surface-feedback-negative: #ffe5e5;
31
+ --surface-accent-emphasis-low-negative: #ffe5e5;
14
32
  --surface-feedback-warning: #fff2d6;
33
+ --surface-accent-emphasis-low-warning: #ffe9bc;
15
34
  --surface-feedback-positive: #e4f4ed;
35
+ --surface-accent-emphasis-low-positive: #d1f4d5;
36
+ --surface-accent-emphasis-low-purple: #eee8ff;
37
+ --surface-accent-emphasis-min-info: #f4faff;
38
+ --surface-accent-emphasis-min-negative: #fff8f8;
39
+ --surface-accent-emphasis-min-warning: #fff9ed;
40
+ --surface-accent-emphasis-min-positive: #f3fcf4;
41
+ --surface-accent-emphasis-min-purple: #faf8ff;
16
42
  --surface-invert-default: #1b1b20;
43
+ --surface-invert-primary: #1b1b20;
17
44
  --surface-invert-subtle: #4e4e58;
45
+ --surface-invert-secondary: #3b3b43;
18
46
  --surface-invert-disabled: #8d8d95;
19
- --surface-overlay: rgba(19, 19, 23, 0.7);
47
+ --surface-locked-default: #fff;
48
+ --surface-locked-hover: #eeeeef;
49
+ --surface-locked-active: #daedff;
50
+ --surface-locked-disabled: rgb(255 255 255 / 70%);
51
+ --surface-locked-white: #fff;
52
+ --surface-locked-black: #000;
53
+ --surface-accent-emphasis-high-info: #06f;
54
+ --surface-accent-emphasis-high-negative: #ca0005;
55
+ --surface-accent-emphasis-high-warning: #e8bb00;
56
+ --surface-accent-emphasis-high-positive: #00893c;
57
+ --surface-accent-emphasis-high-purple: #9146ff;
58
+ --surface-overlay: rgb(19 19 23 / 70%);
59
+ --surface-other-overlay: rgb(19 19 23 / 70%);
60
+ --surface-other-agent: #06f;
61
+ --surface-other-skeleton: #e2e2e4;
20
62
  --content-default: #131317;
63
+ --content-basic-primary: #131317;
21
64
  --content-subtle: #62626d;
65
+ --content-basic-secondary: #4e4e58;
22
66
  --content-disabled: #8d8d95;
67
+ --content-basic-disabled: #8d8d95;
68
+ --content-basic-negative: #ca0005;
69
+ --content-basic-warning: #755b00;
70
+ --content-basic-positive: #005321;
71
+ --content-basic-info: #003fa4;
72
+ --content-basic-purple: #6100bd;
73
+ --content-basic-gradient-01: linear-gradient(
74
+ 254.49deg,
75
+ #b99aff -0.38%,
76
+ #68afff 94.44%
77
+ );
23
78
  --content-white-locked: #fff;
79
+ --content-locked-white: #fff;
80
+ --content-black-locked: #131317;
81
+ --content-locked-black: #000;
82
+ --content-locked-default: #131317;
83
+ --content-locked-hover: #131317;
84
+ --content-locked-active: #003fa4;
85
+ --content-locked-disabled: #8d8d95;
24
86
  --content-invert-default: #fff;
25
- --content-invert-subtle: rgba(255, 255, 255, 0.7);
26
- --content-invert-disabled: rgba(255, 255, 255, 0.5);
87
+ --content-invert-primary: #fff;
88
+ --content-invert-subtle: rgb(255 255 255 / 70%);
89
+ --content-invert-secondary: rgb(255 255 255 / 70%);
90
+ --content-invert-disabled: rgb(255 255 255 / 50%);
91
+ --content-invert-gradient-01: linear-gradient(
92
+ 254.49deg,
93
+ #b99aff -0.38%,
94
+ #68afff 94.44%
95
+ );
27
96
  --border-default: #c9c9cd;
97
+ --border-basic-primary: #c9c9cd;
98
+ --border-basic-secondary: #e2e2e4;
28
99
  --border-subtle: #eeeeef;
100
+ --border-basic-tertiary: #e5e5e6;
29
101
  --border-hover: #ababb1;
102
+ --border-basic-hover: #ababb1;
30
103
  --border-disabled: #e2e2e4;
31
- --border-invert-default: rgba(255, 255, 255, 0.7);
32
- --border-invert-subtle: rgba(255, 255, 255, 0.3);
104
+ --border-basic-disabled: #e2e2e4;
105
+ --border-basic-negative: #ca0005;
106
+ --border-basic-warning: #755b00;
107
+ --border-basic-positive: #005321;
108
+ --border-basic-info: #003fa4;
109
+ --border-basic-purple: #6100bd;
110
+ --border-invert-default: rgb(255 255 255 / 70%);
111
+ --border-invert-primary: rgb(255 255 255 / 70%);
112
+ --border-invert-subtle: rgb(255 255 255 / 30%);
113
+ --border-invert-secondary: rgb(255 255 255 / 30%);
33
114
  --border-invert-hover: #fff;
34
- --border-invert-disabled: rgba(255, 255, 255, 0.5);
115
+ --border-invert-disabled: rgb(255 255 255 / 50%);
35
116
  --color-action-active: #003fa4;
117
+ --action-primary-active: #b7cbea;
36
118
  --color-action-hover: #004bc2;
119
+ --action-primary-hover: #064db9;
37
120
  --color-action-default: #06f;
121
+ --action-primary-default: #06f;
38
122
  --color-action-default-rgb: 0, 102, 255;
39
123
  --color-action-disabled: #9dceff;
124
+ --action-primary-disabled: rgb(0 102 255 / 20%);
40
125
  --color-negative-active: #930002;
126
+ --action-negative-active: #6f090e;
41
127
  --color-negative-hover: #ae0003;
128
+ --action-negative-hover: #8d0004;
42
129
  --color-negative-default: #ca0005;
130
+ --action-negative-default: #ca0005;
43
131
  --color-negative-disabled: #eba3a3;
132
+ --action-negative-disabled: rgb(202 0 5 / 20%);
44
133
  --color-warning-default: #e8bb00;
134
+ --action-warning-default: #e8bb00;
45
135
  --color-warning-hover: #c9a100;
136
+ --action-warning-hover: #a88907;
46
137
  --color-positive-default: #00893c;
138
+ --action-positive-default: #00893c;
47
139
  --color-positive-hover: #006329;
140
+ --action-positive-hover: #066631;
48
141
  --color-positive-disabled: #d1f4d5;
142
+ --action-positive-disabled: rgb(0 137 60 / 20%);
143
+ --action-neutral-default: #8d8d95;
144
+ --action-neutral-hover: #68686f;
145
+ --action-neutral-disabled: rgb(141 141 149 / 20%);
49
146
  --color-bot: #50009c;
147
+ --surface-other-bot: #50009c;
50
148
  --color-black: #131317;
51
149
  --color-white: #fff;
52
150
  --decor-blue900: #003288;
@@ -124,6 +222,15 @@
124
222
  --decor-purple200: #d1c0ff;
125
223
  --decor-purple100: #eee8ff;
126
224
  --decor-purple50: #faf8ff;
225
+ --products-livechat: #fe5100;
226
+ --products-helpdesk: #00c057;
227
+ --products-chatbot: #06f;
228
+ --products-knowledgebase: #9146ff;
229
+ --illustrations-primary: #ffd000;
230
+ --illustrations-secondary: #e2e2e4;
231
+ --illustrations-stroke: #1b1b20;
232
+ --tag-surface-01: #e2e2e4;
233
+ --tag-content-01: #131317;
127
234
  }
128
235
 
129
236
  /*# sourceMappingURL=light.css.map */
@@ -1 +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","file":"light.css"}
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;AAAA;AAAA;AAAA;AAAA;EAKA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAAA;AAAA;AAAA;AAAA;EAKA;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;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"light.css"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/design-system-react-components",
3
- "version": "1.0.0-alpha.9",
3
+ "version": "1.0.0-y.0",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -21,8 +21,8 @@
21
21
  "dev:styles": "npm run build:styles -- --watch",
22
22
  "build": "run-s build:*",
23
23
  "build:lib": "tsc && vite build",
24
- "build:styles": "sass src/themes:dist/themes",
25
- "build-storybook": "build-storybook",
24
+ "build:styles": "sass src/themes:dist/themes; sass src/foundations:dist/spacing; sass src/foundations:dist/shadow",
25
+ "build-storybook": "export SET NODE_OPTIONS=--openssl-legacy-provider && build-storybook",
26
26
  "chromatic": "dotenv -e ../../.env chromatic -- --exit-zero-on-changes",
27
27
  "lint": "eslint src --ext js,jsx,ts,tsx",
28
28
  "test": "vitest run",
@@ -35,13 +35,18 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@babel/core": "^7.17.7",
38
- "@storybook/addon-actions": "^6.4.13",
39
- "@storybook/addon-essentials": "^6.4.13",
40
- "@storybook/addon-links": "^6.4.13",
41
- "@storybook/react": "^6.4.13",
38
+ "@storybook/addon-a11y": "^6.5.16",
39
+ "@storybook/addon-actions": "^6.4.22",
40
+ "@storybook/addon-docs": "^6.4.22",
41
+ "@storybook/addon-essentials": "^6.4.22",
42
+ "@storybook/addon-links": "^6.4.22",
43
+ "@storybook/builder-vite": "^0.1.28",
44
+ "@storybook/core-common": "^6.4.22",
45
+ "@storybook/react": "^6.4.22",
42
46
  "@testing-library/jest-dom": "^5.16.2",
43
47
  "@testing-library/react": "^12.1.4",
44
48
  "@testing-library/user-event": "^13.5.0",
49
+ "@types/lodash.debounce": "^4.0.6",
45
50
  "@types/lodash.escape": "^4.0.6",
46
51
  "@types/react": "^17.0.33",
47
52
  "@types/react-dom": "^17.0.10",
@@ -54,20 +59,25 @@
54
59
  "react-dom": "^17.0.2",
55
60
  "sass": "^1.49.9",
56
61
  "storybook-addon-themes": "^6.1.0",
57
- "storybook-builder-vite": "^0.1.20",
58
62
  "typescript": "^4.5.4",
59
63
  "vite": "^2.8.0",
60
64
  "vite-plugin-dts": "^0.9.10",
61
65
  "vitest": "^0.6.3"
62
66
  },
63
67
  "dependencies": {
64
- "@livechat/design-system-icons": "^1.0.0-alpha.9",
68
+ "@emotion/css": "^11.9.0",
69
+ "@floating-ui/react-dom": "^0.7.0",
70
+ "@floating-ui/react-dom-interactions": "^0.6.1",
71
+ "@livechat/data-utils": "^0.2.16",
72
+ "@livechat/design-system-icons": "^1.0.0-alpha.35",
65
73
  "@popperjs/core": "^2.11.2",
66
74
  "clsx": "^1.1.1",
75
+ "date-fns": "^2.28.0",
76
+ "lodash.debounce": "^4.0.8",
67
77
  "lodash.escape": "^4.0.1",
68
78
  "polished": "^4.1.3",
69
- "react-popper": "^2.2.5",
79
+ "react-day-picker": "^7.4.10",
70
80
  "react-transition-group": "^4.4.2"
71
81
  },
72
- "gitHead": "af900ac11e106f7af4bd2d9e50e33013421198a4"
82
+ "gitHead": "9cc7c1e91158f40b580474c2d61d26b52c81fb01"
73
83
  }
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { ButtonSize, ButtonProps } from '../Button';
3
- export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
4
- currentIndex?: number;
5
- initialIndex?: number;
6
- fullWidth?: boolean;
7
- size?: ButtonSize;
8
- children: ReadonlyArray<React.ReactElement<React.PropsWithChildren<ButtonProps>>>;
9
- onIndexChange?: (currentIndex: number, event: React.MouseEvent<HTMLButtonElement>) => void;
10
- }
11
- export declare const ButtonGroup: React.FC<ButtonGroupProps>;
@@ -1 +0,0 @@
1
- export { ButtonGroup } from './ButtonGroup';
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export interface ICheckboxFieldProps extends React.HTMLAttributes<HTMLInputElement> {
3
- description?: string;
4
- checked?: boolean;
5
- disabled?: boolean;
6
- }
7
- export declare const CheckboxField: React.FC<ICheckboxFieldProps>;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- export interface InputFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
- id: string;
4
- labelText?: string;
5
- labelAdornment?: React.ReactNode;
6
- className?: string;
7
- inline?: boolean;
8
- error?: string;
9
- description?: React.ReactNode;
10
- labelRightNode?: React.ReactNode;
11
- fieldClassName?: string;
12
- maxLength?: number;
13
- onChange: () => void;
14
- }
15
- export declare const InputField: React.FC<InputFieldProps>;
@@ -1 +0,0 @@
1
- export { InputField } from './InputField';
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { ModalBaseProps } from './ModalBase';
3
- export interface ActionModalProps extends ModalBaseProps {
4
- icon?: React.ReactNode;
5
- heading?: React.ReactNode;
6
- actions?: React.ReactNode;
7
- }
8
- export declare const ActionModal: React.FC<ActionModalProps>;
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- interface Props {
3
- id: string;
4
- labelText?: string;
5
- labelAdornment?: React.ReactNode;
6
- className?: string;
7
- inline?: boolean;
8
- error?: string;
9
- description?: React.ReactNode;
10
- labelRightNode?: React.ReactNode;
11
- fieldClassName?: string;
12
- value: string;
13
- max?: number;
14
- min?: number;
15
- onChange: (value: string) => void;
16
- }
17
- export declare type NumericInputFieldProps = Props & React.InputHTMLAttributes<HTMLInputElement>;
18
- export declare const NumericInputField: React.FC<NumericInputFieldProps>;
19
- export {};
@@ -1 +0,0 @@
1
- export { TextField } from './TextField';