@rescui/chip-list 0.7.11 → 0.8.1

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { useTheme } from '@rescui/ui-contexts';
3
+ import { useThemeWithUndefined } from '@rescui/ui-contexts';
4
4
  import { ChipListContext } from './chip-list-context.js';
5
5
  import styles from './chip-list.p.module.css.js';
6
6
  import { useItemsIds } from './use-items-ids.js';
@@ -32,7 +32,7 @@ function ChipListBase(_ref) {
32
32
  compareValues = _ref.compareValues,
33
33
  children = _ref.children,
34
34
  e2eId = _ref['data-e2e'];
35
- var theme = useTheme(themeFromProps);
35
+ var theme = useThemeWithUndefined(themeFromProps);
36
36
 
37
37
  var _useItemsIds = useItemsIds({
38
38
  children: children,
@@ -48,11 +48,12 @@ function ChipListBase(_ref) {
48
48
  selectedIds: selectedIds
49
49
  }
50
50
  }, /*#__PURE__*/React.createElement("div", {
51
- className: cn(styles[theme], styles[mode], STYLES_SIZES[size], sparse ? styles.innerOffsetL : styles.innerOffsetM, className),
51
+ className: cn(styles.main, styles[theme], styles[mode], STYLES_SIZES[size], sparse ? styles.innerOffsetL : styles.innerOffsetM, ALIGN_ITEMS_STYLES[alignItems], className),
52
52
  "data-e2e": e2eId ? "".concat(e2eId, "__chips-container") : null,
53
+ "data-rs-internal": 'chip-list',
53
54
  "data-test": 'chip-list'
54
55
  }, /*#__PURE__*/React.createElement("div", {
55
- className: cn(styles.chipsContainer, ALIGN_ITEMS_STYLES[alignItems])
56
+ className: styles.chipsContainer
56
57
  }, childrenWithValues)));
57
58
  }
58
59
 
@@ -1,24 +1,24 @@
1
1
  var styles = {
2
- "chipsContainer": "_chipsContainer_8pqfm6_9",
3
- "sizeXs": "_sizeXs_8pqfm6_15",
4
- "sizeS": "_sizeS_8pqfm6_23",
5
- "sizeM": "_sizeM_8pqfm6_24",
6
- "sizeL": "_sizeL_8pqfm6_28",
7
- "innerOffsetL": "_innerOffsetL_8pqfm6_36",
8
- "innerOffsetM": "_innerOffsetM_8pqfm6_58",
9
- "alignLeft": "_alignLeft_8pqfm6_69",
10
- "alignCenter": "_alignCenter_8pqfm6_72",
11
- "alignRight": "_alignRight_8pqfm6_75",
12
- "chip": "_chip_8pqfm6_9",
13
- "light": "_light_8pqfm6_135",
14
- "dark": "_dark_8pqfm6_140",
15
- "selected": "_selected_8pqfm6_145",
16
- "withoutText": "_withoutText_8pqfm6_146",
17
- "rs-reset-letter-spacing": "_rs-reset-letter-spacing_8pqfm6_1",
18
- "rock": "_rock_8pqfm6_189",
19
- "classic": "_classic_8pqfm6_261",
20
- "icon": "_icon_8pqfm6_366",
21
- "iconLeft": "_iconLeft_8pqfm6_370",
22
- "iconRight": "_iconRight_8pqfm6_371"
2
+ "light": "_light_sqs1ga_8",
3
+ "dark": "_dark_sqs1ga_11",
4
+ "alignLeft": "_alignLeft_sqs1ga_15",
5
+ "alignCenter": "_alignCenter_sqs1ga_18",
6
+ "alignRight": "_alignRight_sqs1ga_21",
7
+ "sizeXs": "_sizeXs_sqs1ga_25",
8
+ "sizeS": "_sizeS_sqs1ga_28",
9
+ "sizeM": "_sizeM_sqs1ga_31",
10
+ "sizeL": "_sizeL_sqs1ga_34",
11
+ "innerOffsetL": "_innerOffsetL_sqs1ga_38",
12
+ "innerOffsetM": "_innerOffsetM_sqs1ga_41",
13
+ "classic": "_classic_sqs1ga_45",
14
+ "rock": "_rock_sqs1ga_48",
15
+ "main": "_main_sqs1ga_52",
16
+ "chipsContainer": "_chipsContainer_sqs1ga_58",
17
+ "alignIconLeft": "_alignIconLeft_sqs1ga_68",
18
+ "alignIconRight": "_alignIconRight_sqs1ga_71",
19
+ "chip": "_chip_sqs1ga_58",
20
+ "selected": "_selected_sqs1ga_162",
21
+ "icon": "_icon_sqs1ga_172",
22
+ "withoutText": "_withoutText_sqs1ga_183"
23
23
  };
24
24
  export { styles as default };
package/lib/parts/chip.js CHANGED
@@ -59,10 +59,8 @@ var Chip = /*#__PURE__*/forwardRef(function (_ref, ref) {
59
59
 
60
60
  var selected = _includesInstanceProperty(selectedIds).call(selectedIds, itemId);
61
61
 
62
- var isRenderLeftIcon = icon && iconPosition === 'left';
63
- var isRenderRightIcon = icon && iconPosition === 'right';
64
62
  return /*#__PURE__*/React.createElement(ChipTag, _objectSpread(_objectSpread({}, restProps), {}, {
65
- className: cn(styles.chip, (_cn = {}, _defineProperty(_cn, styles.selected, selected), _defineProperty(_cn, styles.withoutText, isWithoutChildren(children)), _cn), className),
63
+ className: cn(styles.chip, (_cn = {}, _defineProperty(_cn, styles.selected, selected), _defineProperty(_cn, styles.withoutText, isWithoutChildren(children)), _cn), iconPosition === 'right' ? styles.alignIconRight : styles.alignIconLeft, className),
66
64
  onClick: function onClick(e) {
67
65
  if (_onClick) {
68
66
  _onClick(e);
@@ -84,12 +82,11 @@ var Chip = /*#__PURE__*/forwardRef(function (_ref, ref) {
84
82
  tabIndex: 0,
85
83
  ref: ref,
86
84
  "data-e2e": e2eId,
87
- "data-test": "chip".concat(selected ? ' chip-selected' : '')
88
- }), isRenderLeftIcon && /*#__PURE__*/cloneElement(icon, {
89
- className: cn(icon.props.className, styles.icon, styles.iconLeft)
90
- }), /*#__PURE__*/React.createElement("span", null, children), isRenderRightIcon && /*#__PURE__*/cloneElement(icon, {
91
- className: cn(icon.props.className, styles.icon, styles.iconRight)
92
- }));
85
+ "data-test": "chip".concat(selected ? ' chip-selected' : ''),
86
+ "data-rs-internal": 'chip-list__chip'
87
+ }), icon && /*#__PURE__*/cloneElement(icon, {
88
+ className: cn(icon.props.className, styles.icon)
89
+ }), /*#__PURE__*/React.createElement("span", null, children));
93
90
  });
94
91
  Chip.displayName = 'Chip';
95
92
  Chip.propTypes = {
@@ -0,0 +1,520 @@
1
+ @define-mixin rs-chip-list-align-left{
2
+ &:not(html){
3
+ --_rs-cl-align:left;
4
+ }
5
+ }
6
+ @define-mixin rs-chip-list-align-center{
7
+ &:not(html){
8
+ --_rs-cl-align:center;
9
+ }
10
+ }
11
+ @define-mixin rs-chip-list-align-right{
12
+ &:not(html){
13
+ --_rs-cl-align:right;
14
+ }
15
+ }
16
+ @define-mixin rs-chip-list-sparse-true{
17
+ &:not(html){
18
+ --_rs-cl-sparse-horizontal-gap-or-initial:var(
19
+ --_rs-cl-sparse-horizontal-gap
20
+ );
21
+ }
22
+ @media screen and (max-width: 640px){
23
+ &:not(html){
24
+ --_rs-cl-sparse-horizontal-gap-or-initial:8px;
25
+ }
26
+ }
27
+ }
28
+ @define-mixin rs-chip-list-sparse-false{
29
+ &:not(html){
30
+ --_rs-cl-sparse-horizontal-gap-or-initial:initial;
31
+ }
32
+ }
33
+ @define-mixin rs-chip-list-size-xs{
34
+ &:not(html){
35
+ --_rs-cl-chip-border-radius:4px;
36
+ --_rs-cl-chip-multiline-border-radius:4px;
37
+ --_rs-cl-chip-vertical-padding:2px;
38
+ --_rs-cl-chip-horizontal-padding:16px;
39
+ --_rs-cl-chip-icon-size:16px;
40
+ --_rs-cl-chip-icon-offset:8px;
41
+ --_rs-cl-chip-icon-margin-top:2px;
42
+ --_rs-cl-vertical-gap:12px;
43
+ --_rs-cl-sparse-horizontal-gap:12px;
44
+ }
45
+ @media screen and (max-width: 640px){
46
+ &:not(html){
47
+ --_rs-cl-vertical-gap:8px;
48
+ }
49
+ }
50
+ &:not(html) [data-rs-internal='chip-list__chip']{
51
+ --_rs-typography-letter-spacing:0.0045em;
52
+ --_rs-typography-text-transform:initial;
53
+ --_rs-typography-font-variant-numeric:initial;
54
+ --_rs-typography-font-family:var(
55
+ --rs-font-family-ui,
56
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
57
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
58
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
59
+ );
60
+ --_rs-typography-font-size:var(--rs-text-3-font-size, 13px);
61
+ --_rs-typography-font-weight:var(
62
+ --rs-font-weight-regular,
63
+ 400
64
+ );
65
+ --_rs-typography-line-height:var(
66
+ --rs-text-3-line-height,
67
+ 20px
68
+ );
69
+ --_rs-typography-base-color:var(
70
+ --_rs-typography-hardness-color,
71
+ var(
72
+ --rs-color-average,
73
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
74
+ )
75
+ );
76
+ --_rs-typography-text-auto-offset:8px;
77
+ --_rs-typography-ul-list-li-padding-left:28px;
78
+ --_rs-typography-ol-list-li-padding-left:21px;
79
+ --_rs-typography-list-li-margin-top-from-text:8px;
80
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
81
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
82
+ --_rs-typography-link-border-bottom-width-from-text:1px;
83
+ }
84
+ }
85
+ @define-mixin rs-chip-list-size-s{
86
+ &:not(html){
87
+ --_rs-cl-chip-border-radius:24px;
88
+ --_rs-cl-chip-multiline-border-radius:4px;
89
+ --_rs-cl-chip-vertical-padding:6px;
90
+ --_rs-cl-chip-horizontal-padding:16px;
91
+ --_rs-cl-chip-icon-size:20px;
92
+ --_rs-cl-chip-icon-offset:8px;
93
+ --_rs-cl-vertical-gap:12px;
94
+ --_rs-cl-sparse-horizontal-gap:12px;
95
+ }
96
+ &:not(html) [data-rs-internal='chip-list__chip']{
97
+ --_rs-typography-letter-spacing:0.0045em;
98
+ --_rs-typography-text-transform:initial;
99
+ --_rs-typography-font-variant-numeric:initial;
100
+ --_rs-typography-font-family:var(
101
+ --rs-font-family-ui,
102
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
103
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
104
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
105
+ );
106
+ --_rs-typography-font-size:var(--rs-text-3-font-size, 13px);
107
+ --_rs-typography-font-weight:var(
108
+ --rs-font-weight-regular,
109
+ 400
110
+ );
111
+ --_rs-typography-line-height:var(
112
+ --rs-text-3-line-height,
113
+ 20px
114
+ );
115
+ --_rs-typography-base-color:var(
116
+ --_rs-typography-hardness-color,
117
+ var(
118
+ --rs-color-average,
119
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
120
+ )
121
+ );
122
+ --_rs-typography-text-auto-offset:8px;
123
+ --_rs-typography-ul-list-li-padding-left:28px;
124
+ --_rs-typography-ol-list-li-padding-left:21px;
125
+ --_rs-typography-list-li-margin-top-from-text:8px;
126
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
127
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
128
+ --_rs-typography-link-border-bottom-width-from-text:1px;
129
+ }
130
+ }
131
+ @define-mixin rs-chip-list-size-m{
132
+ &:not(html){
133
+ --_rs-cl-chip-border-radius:24px;
134
+ --_rs-cl-chip-multiline-border-radius:8px;
135
+ --_rs-cl-chip-vertical-padding:8px;
136
+ --_rs-cl-chip-horizontal-padding:24px;
137
+ --_rs-cl-chip-icon-size:24px;
138
+ --_rs-cl-chip-icon-offset:8px;
139
+ --_rs-cl-vertical-gap:12px;
140
+ --_rs-cl-sparse-horizontal-gap:16px;
141
+ }
142
+ &:not(html) [data-rs-internal='chip-list__chip']{
143
+ --_rs-typography-letter-spacing:0.0015em;
144
+ --_rs-typography-text-transform:initial;
145
+ --_rs-typography-font-variant-numeric:initial;
146
+ --_rs-typography-font-family:var(
147
+ --rs-font-family-ui,
148
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
149
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
150
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
151
+ );
152
+ --_rs-typography-font-size:var(--rs-text-2-font-size, 16px);
153
+ --_rs-typography-font-weight:var(
154
+ --rs-font-weight-regular,
155
+ 400
156
+ );
157
+ --_rs-typography-line-height:var(
158
+ --rs-text-2-line-height,
159
+ 24px
160
+ );
161
+ --_rs-typography-base-color:var(
162
+ --_rs-typography-hardness-color,
163
+ var(
164
+ --rs-color-average,
165
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
166
+ )
167
+ );
168
+ --_rs-typography-text-auto-offset:16px;
169
+ --_rs-typography-ul-list-li-padding-left:22px;
170
+ --_rs-typography-ol-list-li-padding-left:26px;
171
+ --_rs-typography-list-li-margin-top-from-text:16px;
172
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
173
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
174
+ --_rs-typography-link-border-bottom-width-from-text:1px;
175
+ }
176
+ @media screen and (max-width: 640px){
177
+ &:not(html) [data-rs-internal='chip-list__chip']{
178
+ --_rs-typography-list-li-margin-top-from-text:12px;
179
+ }
180
+ }
181
+ }
182
+ @define-mixin rs-chip-list-size-l{
183
+ &:not(html){
184
+ --_rs-cl-chip-border-radius:36px;
185
+ --_rs-cl-chip-multiline-border-radius:12px;
186
+ --_rs-cl-chip-vertical-padding:12px;
187
+ --_rs-cl-chip-horizontal-padding:32px;
188
+ --_rs-cl-chip-icon-size:28px;
189
+ --_rs-cl-chip-icon-offset:16px;
190
+ --_rs-cl-vertical-gap:16px;
191
+ --_rs-cl-sparse-horizontal-gap:16px;
192
+ }
193
+ @media screen and (max-width: 640px){
194
+ &:not(html){
195
+ --_rs-cl-vertical-gap:12px;
196
+ }
197
+ }
198
+ &:not(html) [data-rs-internal='chip-list__chip']{
199
+ --_rs-typography-letter-spacing:normal;
200
+ --_rs-typography-text-transform:initial;
201
+ --_rs-typography-font-variant-numeric:initial;
202
+ --_rs-typography-font-family:var(
203
+ --rs-font-family-ui,
204
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
205
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
206
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
207
+ );
208
+ --_rs-typography-font-size:var(--rs-text-1-font-size, 20px);
209
+ --_rs-typography-font-weight:var(
210
+ --rs-font-weight-regular,
211
+ 400
212
+ );
213
+ --_rs-typography-line-height:var(
214
+ --rs-text-1-line-height,
215
+ 28px
216
+ );
217
+ --_rs-typography-base-color:var(
218
+ --_rs-typography-hardness-color,
219
+ var(
220
+ --rs-color-average,
221
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
222
+ )
223
+ );
224
+ --_rs-typography-text-auto-offset:32px;
225
+ --_rs-typography-ul-list-li-padding-left:26px;
226
+ --_rs-typography-ol-list-li-padding-left:32px;
227
+ --_rs-typography-list-li-margin-top-from-text:24px;
228
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
229
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
230
+ --_rs-typography-link-border-bottom-width-from-text:1px;
231
+ }
232
+ @media screen and (max-width: 640px){
233
+ &:not(html) [data-rs-internal='chip-list__chip']{
234
+ --_rs-typography-list-li-margin-top-from-text:16px;
235
+ }
236
+ }
237
+ }
238
+ @define-mixin rs-chip-list-mode-classic{
239
+ &:not(html){
240
+ --_rs-cl-chip-active-border-color:var(--_rs-color-primary);
241
+ --_rs-cl-chip-selected-border-color:var(--_rs-color-primary);
242
+ --_rs-cl-chip-hover-background:var(--_rs-color-primary-t-fog);
243
+ --_rs-cl-chip-active-background:var(--_rs-color-primary-t-fog);
244
+ }
245
+ }
246
+ @define-mixin rs-chip-list-mode-rock{
247
+ &:not(html){
248
+ --_rs-cl-chip-active-border-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
249
+ --_rs-cl-chip-selected-border-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
250
+ --_rs-cl-chip-hover-background:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.1);
251
+ --_rs-cl-chip-active-background:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.1);
252
+ }
253
+ }
254
+ @define-mixin rs-chip-icon-left{
255
+ &:not(html){
256
+ --_rs-cl-chip-icon-flex-direction:row;
257
+ --_rs-cl-chip-icon-position-multiplier-left:1;
258
+ --_rs-cl-chip-icon-position-multiplier-right:0;
259
+ }
260
+ }
261
+ @define-mixin rs-chip-icon-right{
262
+ &:not(html){
263
+ --_rs-cl-chip-icon-flex-direction:row-reverse;
264
+ --_rs-cl-chip-icon-position-multiplier-left:0;
265
+ --_rs-cl-chip-icon-position-multiplier-right:1;
266
+ }
267
+ }
268
+ @define-mixin rs-chip-list-multi-align-left{
269
+ &:not(html){
270
+ --_rs-cl-align:left;
271
+ }
272
+ }
273
+ @define-mixin rs-chip-list-multi-align-center{
274
+ &:not(html){
275
+ --_rs-cl-align:center;
276
+ }
277
+ }
278
+ @define-mixin rs-chip-list-multi-align-right{
279
+ &:not(html){
280
+ --_rs-cl-align:right;
281
+ }
282
+ }
283
+ @define-mixin rs-chip-list-multi-sparse-true{
284
+ &:not(html){
285
+ --_rs-cl-sparse-horizontal-gap-or-initial:var(
286
+ --_rs-cl-sparse-horizontal-gap
287
+ );
288
+ }
289
+ @media screen and (max-width: 640px){
290
+ &:not(html){
291
+ --_rs-cl-sparse-horizontal-gap-or-initial:8px;
292
+ }
293
+ }
294
+ }
295
+ @define-mixin rs-chip-list-multi-sparse-false{
296
+ &:not(html){
297
+ --_rs-cl-sparse-horizontal-gap-or-initial:initial;
298
+ }
299
+ }
300
+ @define-mixin rs-chip-list-multi-size-xs{
301
+ &:not(html){
302
+ --_rs-cl-chip-border-radius:4px;
303
+ --_rs-cl-chip-multiline-border-radius:4px;
304
+ --_rs-cl-chip-vertical-padding:2px;
305
+ --_rs-cl-chip-horizontal-padding:16px;
306
+ --_rs-cl-chip-icon-size:16px;
307
+ --_rs-cl-chip-icon-offset:8px;
308
+ --_rs-cl-chip-icon-margin-top:2px;
309
+ --_rs-cl-vertical-gap:12px;
310
+ --_rs-cl-sparse-horizontal-gap:12px;
311
+ }
312
+ @media screen and (max-width: 640px){
313
+ &:not(html){
314
+ --_rs-cl-vertical-gap:8px;
315
+ }
316
+ }
317
+ &:not(html) [data-rs-internal='chip-list__chip']{
318
+ --_rs-typography-letter-spacing:0.0045em;
319
+ --_rs-typography-text-transform:initial;
320
+ --_rs-typography-font-variant-numeric:initial;
321
+ --_rs-typography-font-family:var(
322
+ --rs-font-family-ui,
323
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
324
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
325
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
326
+ );
327
+ --_rs-typography-font-size:var(--rs-text-3-font-size, 13px);
328
+ --_rs-typography-font-weight:var(
329
+ --rs-font-weight-regular,
330
+ 400
331
+ );
332
+ --_rs-typography-line-height:var(
333
+ --rs-text-3-line-height,
334
+ 20px
335
+ );
336
+ --_rs-typography-base-color:var(
337
+ --_rs-typography-hardness-color,
338
+ var(
339
+ --rs-color-average,
340
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
341
+ )
342
+ );
343
+ --_rs-typography-text-auto-offset:8px;
344
+ --_rs-typography-ul-list-li-padding-left:28px;
345
+ --_rs-typography-ol-list-li-padding-left:21px;
346
+ --_rs-typography-list-li-margin-top-from-text:8px;
347
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
348
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
349
+ --_rs-typography-link-border-bottom-width-from-text:1px;
350
+ }
351
+ }
352
+ @define-mixin rs-chip-list-multi-size-s{
353
+ &:not(html){
354
+ --_rs-cl-chip-border-radius:24px;
355
+ --_rs-cl-chip-multiline-border-radius:4px;
356
+ --_rs-cl-chip-vertical-padding:6px;
357
+ --_rs-cl-chip-horizontal-padding:16px;
358
+ --_rs-cl-chip-icon-size:20px;
359
+ --_rs-cl-chip-icon-offset:8px;
360
+ --_rs-cl-vertical-gap:12px;
361
+ --_rs-cl-sparse-horizontal-gap:12px;
362
+ }
363
+ &:not(html) [data-rs-internal='chip-list__chip']{
364
+ --_rs-typography-letter-spacing:0.0045em;
365
+ --_rs-typography-text-transform:initial;
366
+ --_rs-typography-font-variant-numeric:initial;
367
+ --_rs-typography-font-family:var(
368
+ --rs-font-family-ui,
369
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
370
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
371
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
372
+ );
373
+ --_rs-typography-font-size:var(--rs-text-3-font-size, 13px);
374
+ --_rs-typography-font-weight:var(
375
+ --rs-font-weight-regular,
376
+ 400
377
+ );
378
+ --_rs-typography-line-height:var(
379
+ --rs-text-3-line-height,
380
+ 20px
381
+ );
382
+ --_rs-typography-base-color:var(
383
+ --_rs-typography-hardness-color,
384
+ var(
385
+ --rs-color-average,
386
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
387
+ )
388
+ );
389
+ --_rs-typography-text-auto-offset:8px;
390
+ --_rs-typography-ul-list-li-padding-left:28px;
391
+ --_rs-typography-ol-list-li-padding-left:21px;
392
+ --_rs-typography-list-li-margin-top-from-text:8px;
393
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
394
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
395
+ --_rs-typography-link-border-bottom-width-from-text:1px;
396
+ }
397
+ }
398
+ @define-mixin rs-chip-list-multi-size-m{
399
+ &:not(html){
400
+ --_rs-cl-chip-border-radius:24px;
401
+ --_rs-cl-chip-multiline-border-radius:8px;
402
+ --_rs-cl-chip-vertical-padding:8px;
403
+ --_rs-cl-chip-horizontal-padding:24px;
404
+ --_rs-cl-chip-icon-size:24px;
405
+ --_rs-cl-chip-icon-offset:8px;
406
+ --_rs-cl-vertical-gap:12px;
407
+ --_rs-cl-sparse-horizontal-gap:16px;
408
+ }
409
+ &:not(html) [data-rs-internal='chip-list__chip']{
410
+ --_rs-typography-letter-spacing:0.0015em;
411
+ --_rs-typography-text-transform:initial;
412
+ --_rs-typography-font-variant-numeric:initial;
413
+ --_rs-typography-font-family:var(
414
+ --rs-font-family-ui,
415
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
416
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
417
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
418
+ );
419
+ --_rs-typography-font-size:var(--rs-text-2-font-size, 16px);
420
+ --_rs-typography-font-weight:var(
421
+ --rs-font-weight-regular,
422
+ 400
423
+ );
424
+ --_rs-typography-line-height:var(
425
+ --rs-text-2-line-height,
426
+ 24px
427
+ );
428
+ --_rs-typography-base-color:var(
429
+ --_rs-typography-hardness-color,
430
+ var(
431
+ --rs-color-average,
432
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
433
+ )
434
+ );
435
+ --_rs-typography-text-auto-offset:16px;
436
+ --_rs-typography-ul-list-li-padding-left:22px;
437
+ --_rs-typography-ol-list-li-padding-left:26px;
438
+ --_rs-typography-list-li-margin-top-from-text:16px;
439
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
440
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
441
+ --_rs-typography-link-border-bottom-width-from-text:1px;
442
+ }
443
+ @media screen and (max-width: 640px){
444
+ &:not(html) [data-rs-internal='chip-list__chip']{
445
+ --_rs-typography-list-li-margin-top-from-text:12px;
446
+ }
447
+ }
448
+ }
449
+ @define-mixin rs-chip-list-multi-size-l{
450
+ &:not(html){
451
+ --_rs-cl-chip-border-radius:36px;
452
+ --_rs-cl-chip-multiline-border-radius:12px;
453
+ --_rs-cl-chip-vertical-padding:12px;
454
+ --_rs-cl-chip-horizontal-padding:32px;
455
+ --_rs-cl-chip-icon-size:28px;
456
+ --_rs-cl-chip-icon-offset:16px;
457
+ --_rs-cl-vertical-gap:16px;
458
+ --_rs-cl-sparse-horizontal-gap:16px;
459
+ }
460
+ @media screen and (max-width: 640px){
461
+ &:not(html){
462
+ --_rs-cl-vertical-gap:12px;
463
+ }
464
+ }
465
+ &:not(html) [data-rs-internal='chip-list__chip']{
466
+ --_rs-typography-letter-spacing:normal;
467
+ --_rs-typography-text-transform:initial;
468
+ --_rs-typography-font-variant-numeric:initial;
469
+ --_rs-typography-font-family:var(
470
+ --rs-font-family-ui,
471
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
472
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
473
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
474
+ );
475
+ --_rs-typography-font-size:var(--rs-text-1-font-size, 20px);
476
+ --_rs-typography-font-weight:var(
477
+ --rs-font-weight-regular,
478
+ 400
479
+ );
480
+ --_rs-typography-line-height:var(
481
+ --rs-text-1-line-height,
482
+ 28px
483
+ );
484
+ --_rs-typography-base-color:var(
485
+ --_rs-typography-hardness-color,
486
+ var(
487
+ --rs-color-average,
488
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
489
+ )
490
+ );
491
+ --_rs-typography-text-auto-offset:32px;
492
+ --_rs-typography-ul-list-li-padding-left:26px;
493
+ --_rs-typography-ol-list-li-padding-left:32px;
494
+ --_rs-typography-list-li-margin-top-from-text:24px;
495
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
496
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
497
+ --_rs-typography-link-border-bottom-width-from-text:1px;
498
+ }
499
+ @media screen and (max-width: 640px){
500
+ &:not(html) [data-rs-internal='chip-list__chip']{
501
+ --_rs-typography-list-li-margin-top-from-text:16px;
502
+ }
503
+ }
504
+ }
505
+ @define-mixin rs-chip-list-multi-mode-classic{
506
+ &:not(html){
507
+ --_rs-cl-chip-active-border-color:var(--_rs-color-primary);
508
+ --_rs-cl-chip-selected-border-color:var(--_rs-color-primary);
509
+ --_rs-cl-chip-hover-background:var(--_rs-color-primary-t-fog);
510
+ --_rs-cl-chip-active-background:var(--_rs-color-primary-t-fog);
511
+ }
512
+ }
513
+ @define-mixin rs-chip-list-multi-mode-rock{
514
+ &:not(html){
515
+ --_rs-cl-chip-active-border-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
516
+ --_rs-cl-chip-selected-border-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
517
+ --_rs-cl-chip-hover-background:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.1);
518
+ --_rs-cl-chip-active-background:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.1);
519
+ }
520
+ }