@rescui/chip-list 0.9.5 → 0.9.7

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/lib/index.css CHANGED
@@ -1,19 +1,19 @@
1
- ._light_5bc08n_8{
1
+ ._light_1142mdl_8{
2
2
  --rs-theme-dark:0;
3
3
  }
4
- ._dark_5bc08n_11{
4
+ ._dark_1142mdl_11{
5
5
  --rs-theme-dark:1;
6
6
  }
7
- ._alignLeft_5bc08n_15{
7
+ ._alignLeft_1142mdl_15{
8
8
  --_rs-cl-align:left;
9
9
  }
10
- ._alignCenter_5bc08n_18{
10
+ ._alignCenter_1142mdl_18{
11
11
  --_rs-cl-align:center;
12
12
  }
13
- ._alignRight_5bc08n_21{
13
+ ._alignRight_1142mdl_21{
14
14
  --_rs-cl-align:right;
15
15
  }
16
- ._sizeXs_5bc08n_25{
16
+ ._sizeXs_1142mdl_25{
17
17
  --_rs-cl-chip-base-border-radius:4px;
18
18
  --_rs-cl-chip-compact-border-radius:var(--_rs-cl-chip-base-border-radius);
19
19
  --_rs-cl-chip-vertical-padding:2px;
@@ -27,7 +27,7 @@
27
27
  --_rs-cl-compact-horizontal-gap:4px;
28
28
  --_rs-cl-sparse-horizontal-gap:12px;
29
29
  }
30
- ._sizeXs_5bc08n_25 [data-rs-internal='chip-list__chip']{
30
+ ._sizeXs_1142mdl_25 [data-rs-internal='chip-list__chip']{
31
31
  --_rs-typography-letter-spacing:0.0045em;
32
32
  --_rs-typography-text-transform:initial;
33
33
  --_rs-typography-font-variant-numeric:initial;
@@ -61,7 +61,7 @@
61
61
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
62
62
  --_rs-typography-link-border-bottom-width-from-text:1px;
63
63
  }
64
- ._sizeS_5bc08n_28{
64
+ ._sizeS_1142mdl_28{
65
65
  --_rs-cl-chip-base-border-radius:16px;
66
66
  --_rs-cl-chip-compact-border-radius:4px;
67
67
  --_rs-cl-chip-vertical-padding:6px;
@@ -74,7 +74,7 @@
74
74
  --_rs-cl-compact-horizontal-gap:6px;
75
75
  --_rs-cl-sparse-horizontal-gap:12px;
76
76
  }
77
- ._sizeS_5bc08n_28 [data-rs-internal='chip-list__chip']{
77
+ ._sizeS_1142mdl_28 [data-rs-internal='chip-list__chip']{
78
78
  --_rs-typography-letter-spacing:0.0045em;
79
79
  --_rs-typography-text-transform:initial;
80
80
  --_rs-typography-font-variant-numeric:initial;
@@ -108,7 +108,7 @@
108
108
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
109
109
  --_rs-typography-link-border-bottom-width-from-text:1px;
110
110
  }
111
- ._sizeM_5bc08n_31{
111
+ ._sizeM_1142mdl_31{
112
112
  --_rs-cl-chip-base-border-radius:20px;
113
113
  --_rs-cl-chip-compact-border-radius:8px;
114
114
  --_rs-cl-chip-vertical-padding:8px;
@@ -121,7 +121,7 @@
121
121
  --_rs-cl-compact-horizontal-gap:6px;
122
122
  --_rs-cl-sparse-horizontal-gap:16px;
123
123
  }
124
- ._sizeM_5bc08n_31 [data-rs-internal='chip-list__chip']{
124
+ ._sizeM_1142mdl_31 [data-rs-internal='chip-list__chip']{
125
125
  --_rs-typography-letter-spacing:0.0015em;
126
126
  --_rs-typography-text-transform:initial;
127
127
  --_rs-typography-font-variant-numeric:initial;
@@ -156,11 +156,11 @@
156
156
  --_rs-typography-link-border-bottom-width-from-text:1px;
157
157
  }
158
158
  @media screen and (max-width: 640px){
159
- ._sizeM_5bc08n_31 [data-rs-internal='chip-list__chip']{
159
+ ._sizeM_1142mdl_31 [data-rs-internal='chip-list__chip']{
160
160
  --_rs-typography-list-li-margin-top-from-text:12px;
161
161
  }
162
162
  }
163
- ._sizeL_5bc08n_34{
163
+ ._sizeL_1142mdl_34{
164
164
  --_rs-cl-chip-base-border-radius:26px;
165
165
  --_rs-cl-chip-compact-border-radius:12px;
166
166
  --_rs-cl-chip-vertical-padding:12px;
@@ -174,11 +174,11 @@
174
174
  --_rs-cl-sparse-horizontal-gap:16px;
175
175
  }
176
176
  @media screen and (max-width: 640px){
177
- ._sizeL_5bc08n_34{
177
+ ._sizeL_1142mdl_34{
178
178
  --_rs-cl-vertical-gap:12px;
179
179
  }
180
180
  }
181
- ._sizeL_5bc08n_34 [data-rs-internal='chip-list__chip']{
181
+ ._sizeL_1142mdl_34 [data-rs-internal='chip-list__chip']{
182
182
  --_rs-typography-letter-spacing:normal;
183
183
  --_rs-typography-text-transform:initial;
184
184
  --_rs-typography-font-variant-numeric:initial;
@@ -213,34 +213,34 @@
213
213
  --_rs-typography-link-border-bottom-width-from-text:1px;
214
214
  }
215
215
  @media screen and (max-width: 640px){
216
- ._sizeL_5bc08n_34 [data-rs-internal='chip-list__chip']{
216
+ ._sizeL_1142mdl_34 [data-rs-internal='chip-list__chip']{
217
217
  --_rs-typography-list-li-margin-top-from-text:16px;
218
218
  }
219
219
  }
220
- ._innerOffsetL_5bc08n_38{
220
+ ._innerOffsetL_1142mdl_38{
221
221
  --_rs-cl-horizontal-gap-from-sparse:var(--_rs-cl-sparse-horizontal-gap);
222
222
  }
223
223
  @media screen and (max-width: 640px){
224
- ._innerOffsetL_5bc08n_38{
224
+ ._innerOffsetL_1142mdl_38{
225
225
  --_rs-cl-horizontal-gap-from-sparse:var(--_rs-cl-base-horizontal-gap);
226
226
  }
227
227
  }
228
- ._innerOffsetM_5bc08n_41{
228
+ ._innerOffsetM_1142mdl_41{
229
229
  --_rs-cl-horizontal-gap-from-sparse:initial;
230
230
  }
231
- ._classic_5bc08n_45{
231
+ ._classic_1142mdl_45{
232
232
  --_rs-cl-chip-active-border-color:var(--_rs-color-primary);
233
233
  --_rs-cl-chip-selected-border-color:var(--_rs-color-primary);
234
234
  --_rs-cl-chip-hover-background:var(--_rs-color-primary-t-fog);
235
235
  --_rs-cl-chip-active-background:var(--_rs-color-primary-t-fog);
236
236
  }
237
- ._rock_5bc08n_48{
237
+ ._rock_1142mdl_48{
238
238
  --_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));
239
239
  --_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));
240
240
  --_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);
241
241
  --_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);
242
242
  }
243
- ._compact_5bc08n_52{
243
+ ._compact_1142mdl_52{
244
244
  --_rs-cl-chip-border-radius-from-compact:var(
245
245
  --_rs-cl-chip-compact-border-radius
246
246
  );
@@ -249,7 +249,7 @@
249
249
  );
250
250
  --_rs-cl-horizontal-gap-from-compact:var(--_rs-cl-compact-horizontal-gap);
251
251
  }
252
- ._main_5bc08n_56{
252
+ ._main_1142mdl_56{
253
253
  --_rs-theme-dark:var(
254
254
  --_rs-internal-force-theme-dark-consult-rescui-before-using,
255
255
  var(--rs-theme-dark, 0)
@@ -259,7 +259,7 @@
259
259
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
260
260
  }
261
261
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
262
- ._main_5bc08n_56{
262
+ ._main_1142mdl_56{
263
263
  --_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
264
264
  --_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
265
265
  --_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
@@ -268,7 +268,7 @@
268
268
  }
269
269
  }
270
270
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
271
- ._main_5bc08n_56{
271
+ ._main_1142mdl_56{
272
272
  --_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
273
273
  --_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
274
274
  --_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
@@ -276,7 +276,7 @@
276
276
  --_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
277
277
  }
278
278
  }
279
- ._main_5bc08n_56 {
279
+ ._main_1142mdl_56 {
280
280
  --_rs-cl-chip-border-radius:var(
281
281
  --_rs-cl-chip-border-radius-from-compact,
282
282
  var(--_rs-cl-chip-base-border-radius)
@@ -290,7 +290,7 @@
290
290
  var(--_rs-cl-horizontal-gap-from-sparse, var(--_rs-cl-base-horizontal-gap))
291
291
  );
292
292
  }
293
- ._chipsContainer_5bc08n_62{
293
+ ._chipsContainer_1142mdl_62{
294
294
  position:relative;
295
295
 
296
296
  display:-webkit-box;
@@ -306,17 +306,17 @@
306
306
 
307
307
  gap:var(--_rs-cl-vertical-gap) var(--_rs-cl-horizontal-gap);
308
308
  }
309
- ._alignIconLeft_5bc08n_72{
309
+ ._alignIconLeft_1142mdl_72{
310
310
  --_rs-cl-chip-icon-flex-direction:row;
311
311
  --_rs-cl-chip-icon-position-multiplier-left:1;
312
312
  --_rs-cl-chip-icon-position-multiplier-right:0;
313
313
  }
314
- ._alignIconRight_5bc08n_75{
314
+ ._alignIconRight_1142mdl_75{
315
315
  --_rs-cl-chip-icon-flex-direction:row-reverse;
316
316
  --_rs-cl-chip-icon-position-multiplier-left:0;
317
317
  --_rs-cl-chip-icon-position-multiplier-right:1;
318
318
  }
319
- ._chip_5bc08n_62{
319
+ ._chip_1142mdl_62{
320
320
  --_rs-cl-chip-icon-margin-right:calc(var(--_rs-cl-chip-icon-offset)*(1 - var(--_rs-cl-chip-icon-position-multiplier-right)) + -2px*var(--_rs-cl-chip-icon-position-multiplier-right));
321
321
  --_rs-cl-chip-icon-margin-left:calc(var(--_rs-cl-chip-icon-offset)*(1 - var(--_rs-cl-chip-icon-position-multiplier-left)) + -2px*var(--_rs-cl-chip-icon-position-multiplier-left));
322
322
  letter-spacing:var(
@@ -331,12 +331,6 @@
331
331
  font-variant-numeric:var(--_rs-typography-font-variant-numeric);
332
332
  -webkit-font-feature-settings:'kern', 'liga', 'calt';
333
333
  font-feature-settings:'kern', 'liga', 'calt';
334
- }
335
- ._chip_5bc08n_62 > p:not(:nth-child(1)),
336
- ._chip_5bc08n_62 > pre:not(:nth-child(1)){
337
- padding-top:var(--_rs-typography-auto-offset-or-initial);
338
- }
339
- ._chip_5bc08n_62 {
340
334
 
341
335
  position:relative;
342
336
  z-index:1;
@@ -388,23 +382,23 @@
388
382
  -moz-osx-font-smoothing:inherit;
389
383
  -webkit-appearance:none;
390
384
  }
391
- ._chip_5bc08n_62::-moz-focus-inner{
385
+ ._chip_1142mdl_62::-moz-focus-inner{
392
386
  padding:0;
393
387
 
394
388
  border:none;
395
389
  }
396
- ._chip_5bc08n_62:hover,
397
- ._chip_5bc08n_62:focus,
398
- ._chip_5bc08n_62:active{
390
+ ._chip_1142mdl_62:hover,
391
+ ._chip_1142mdl_62:focus,
392
+ ._chip_1142mdl_62:active{
399
393
  outline:none;
400
394
 
401
395
  text-decoration:none;
402
396
  }
403
- ._chip_5bc08n_62:focus[data-focus-method='key']{
397
+ ._chip_1142mdl_62:focus[data-focus-method='key']{
404
398
  -webkit-box-shadow:var(--_rs-color-primary-t-dim) 0 0 0 4px;
405
399
  box-shadow:var(--_rs-color-primary-t-dim) 0 0 0 4px;
406
400
  }
407
- ._chip_5bc08n_62:focus{
401
+ ._chip_1142mdl_62:focus{
408
402
  border-color:rgba(
409
403
  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),
410
404
  calc(0.3 + var(--_rs-theme-dark-coefficient)*0.1)
@@ -413,7 +407,7 @@
413
407
  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));
414
408
  }
415
409
  @media (hover: hover){
416
- ._chip_5bc08n_62:hover{
410
+ ._chip_1142mdl_62:hover{
417
411
  border-color:rgba(
418
412
  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),
419
413
  calc(0.3 + var(--_rs-theme-dark-coefficient)*0.1)
@@ -424,14 +418,14 @@
424
418
  background:var(--_rs-cl-chip-hover-background);
425
419
  }
426
420
  }
427
- ._chip_5bc08n_62:active{
421
+ ._chip_1142mdl_62:active{
428
422
  border-color:var(--_rs-cl-chip-active-border-color);
429
423
 
430
424
  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));
431
425
 
432
426
  background:var(--_rs-cl-chip-active-background);
433
427
  }
434
- ._chip_5bc08n_62._selected_5bc08n_166{
428
+ ._chip_1142mdl_62._selected_1142mdl_166{
435
429
  padding:calc(var(--_rs-cl-chip-vertical-padding) - 2px) calc(var(--_rs-cl-chip-horizontal-padding) - 2px);
436
430
 
437
431
  border-width:2px;
@@ -439,7 +433,7 @@
439
433
 
440
434
  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));
441
435
  }
442
- ._chip_5bc08n_62 ._icon_5bc08n_176{
436
+ ._chip_1142mdl_62 ._icon_1142mdl_176{
443
437
  -webkit-box-flex:0;
444
438
  -ms-flex:0 0 auto;
445
439
  flex:0 0 auto;
@@ -450,6 +444,6 @@
450
444
  margin:0 var(--_rs-cl-chip-icon-margin-right) 0 var(--_rs-cl-chip-icon-margin-left);
451
445
  fill:currentColor;
452
446
  }
453
- ._chip_5bc08n_62._withoutText_5bc08n_187 ._icon_5bc08n_176{
447
+ ._chip_1142mdl_62._withoutText_1142mdl_187 ._icon_1142mdl_176{
454
448
  margin:0;
455
449
  }
@@ -1,25 +1,25 @@
1
1
  var styles = {
2
- "light": "_light_5bc08n_8",
3
- "dark": "_dark_5bc08n_11",
4
- "alignLeft": "_alignLeft_5bc08n_15",
5
- "alignCenter": "_alignCenter_5bc08n_18",
6
- "alignRight": "_alignRight_5bc08n_21",
7
- "sizeXs": "_sizeXs_5bc08n_25",
8
- "sizeS": "_sizeS_5bc08n_28",
9
- "sizeM": "_sizeM_5bc08n_31",
10
- "sizeL": "_sizeL_5bc08n_34",
11
- "innerOffsetL": "_innerOffsetL_5bc08n_38",
12
- "innerOffsetM": "_innerOffsetM_5bc08n_41",
13
- "classic": "_classic_5bc08n_45",
14
- "rock": "_rock_5bc08n_48",
15
- "compact": "_compact_5bc08n_52",
16
- "main": "_main_5bc08n_56",
17
- "chipsContainer": "_chipsContainer_5bc08n_62",
18
- "alignIconLeft": "_alignIconLeft_5bc08n_72",
19
- "alignIconRight": "_alignIconRight_5bc08n_75",
20
- "chip": "_chip_5bc08n_62",
21
- "selected": "_selected_5bc08n_166",
22
- "icon": "_icon_5bc08n_176",
23
- "withoutText": "_withoutText_5bc08n_187"
2
+ "light": "_light_1142mdl_8",
3
+ "dark": "_dark_1142mdl_11",
4
+ "alignLeft": "_alignLeft_1142mdl_15",
5
+ "alignCenter": "_alignCenter_1142mdl_18",
6
+ "alignRight": "_alignRight_1142mdl_21",
7
+ "sizeXs": "_sizeXs_1142mdl_25",
8
+ "sizeS": "_sizeS_1142mdl_28",
9
+ "sizeM": "_sizeM_1142mdl_31",
10
+ "sizeL": "_sizeL_1142mdl_34",
11
+ "innerOffsetL": "_innerOffsetL_1142mdl_38",
12
+ "innerOffsetM": "_innerOffsetM_1142mdl_41",
13
+ "classic": "_classic_1142mdl_45",
14
+ "rock": "_rock_1142mdl_48",
15
+ "compact": "_compact_1142mdl_52",
16
+ "main": "_main_1142mdl_56",
17
+ "chipsContainer": "_chipsContainer_1142mdl_62",
18
+ "alignIconLeft": "_alignIconLeft_1142mdl_72",
19
+ "alignIconRight": "_alignIconRight_1142mdl_75",
20
+ "chip": "_chip_1142mdl_62",
21
+ "selected": "_selected_1142mdl_166",
22
+ "icon": "_icon_1142mdl_176",
23
+ "withoutText": "_withoutText_1142mdl_187"
24
24
  };
25
25
  export { styles as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/chip-list",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -16,7 +16,6 @@
16
16
  "dependencies": {
17
17
  "@babel/runtime-corejs3": "^7.14.0",
18
18
  "@juggle/resize-observer": "3.3.0",
19
- "@rescui/icons": "^0.16.3",
20
19
  "classnames": "^2.2.6",
21
20
  "core-js": "^3.9.1"
22
21
  },
@@ -26,9 +25,9 @@
26
25
  "react": ">=16.8.0 <19"
27
26
  },
28
27
  "devDependencies": {
29
- "@rescui/colors": "^0.2.1",
30
- "@rescui/scripts": "^0.3.1",
31
- "@rescui/typography": "^0.16.3",
28
+ "@rescui/colors": "^0.2.3",
29
+ "@rescui/scripts": "^0.3.3",
30
+ "@rescui/typography": "^0.17.0",
32
31
  "@rescui/visual-regression": "^0.1.2"
33
32
  },
34
33
  "scripts": {
@@ -36,5 +35,5 @@
36
35
  "build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
37
36
  },
38
37
  "nx": {},
39
- "gitHead": "950fab43f95d8788d3b4a266957a73233c5ea72e"
38
+ "gitHead": "b422496bacb5df4a601008c646abfb08cebe461c"
40
39
  }