@rescui/tag 0.10.3 → 0.10.4

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.
@@ -0,0 +1,37 @@
1
+ import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
3
+ import React from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import cn from 'classnames';
6
+ import styles from './index.css.js';
7
+ var _excluded = ["theme", "size", "className"];
8
+ var sizeStyles = {
9
+ "xs": styles.sizeXS,
10
+ "s": styles.sizeS,
11
+ "m": styles.sizeM,
12
+ "l": styles.sizeL
13
+ };
14
+ var CloseIcon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15
+ var theme = _ref.theme,
16
+ size = _ref.size,
17
+ className = _ref.className,
18
+ props = _objectWithoutProperties(_ref, _excluded);
19
+
20
+ return /*#__PURE__*/React.createElement("svg", _extends({
21
+ viewBox: "0 0 24 24"
22
+ }, props, {
23
+ className: cn(styles.icon, styles[theme], sizeStyles[size], className),
24
+ ref: ref
25
+ }), /*#__PURE__*/React.createElement("path", {
26
+ d: "M5.67 19.751l6.342-6.34 6.34 6.34 1.41-1.409-6.341-6.34 6.34-6.341-1.408-1.409-6.341 6.341L5.67 4.251 4.26 5.66l6.342 6.342-6.34 6.34 1.408 1.409z"
27
+ }));
28
+ });
29
+ CloseIcon.propTypes = {
30
+ className: PropTypes.string,
31
+ theme: PropTypes.oneOf(["light", "dark"]),
32
+ size: PropTypes.oneOf(["xs", "s", "m", "l"])
33
+ };
34
+ CloseIcon.defaultProps = {
35
+ size: "m"
36
+ };
37
+ export { CloseIcon as default };
@@ -0,0 +1,10 @@
1
+ var styles = {
2
+ "icon": "_icon_1jmu341_4",
3
+ "sizeXS": "_sizeXS_1jmu341_14",
4
+ "sizeS": "_sizeS_1jmu341_18",
5
+ "sizeM": "_sizeM_1jmu341_22",
6
+ "sizeL": "_sizeL_1jmu341_26",
7
+ "light": "_light_1jmu341_30",
8
+ "dark": "_dark_1jmu341_34"
9
+ };
10
+ export { styles as default };
package/lib/index.css CHANGED
@@ -1,16 +1,90 @@
1
- ._alignIconLeft_zunxfq_7{
1
+ ._icon_1jmu341_4{
2
+ --_rs-theme-dark:var(
3
+ --_rs-internal-force-theme-dark-consult-rescui-before-using,
4
+ var(--rs-theme-dark, 0)
5
+ );
6
+ --_rs-theme-flip:var(--rs-theme-flip, 0);
7
+ --_rs-theme-dark-coefficient:calc(var(--_rs-theme-dark)*(1 - var(--_rs-theme-flip)) + var(--_rs-theme-flip)*(1 - var(--_rs-theme-dark)));
8
+ --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
9
+ }
10
+ @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
11
+ ._icon_1jmu341_4{
12
+ --_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)));
13
+ --_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)));
14
+ --_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)));
15
+ --_rs-color-primary-t-dim:color-mix(in srgb, var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8)) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
16
+ --_rs-color-primary-t-fog:color-mix(in srgb, var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2)) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3)) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
17
+ }
18
+ }
19
+ @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
20
+ ._icon_1jmu341_4{
21
+ --_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);
22
+ --_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));
23
+ --_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));
24
+ --_rs-color-primary-t-dim: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, 0.8);
25
+ --_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));
26
+ }
27
+ }
28
+ ._icon_1jmu341_4{
29
+
30
+ fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
31
+
32
+ width:auto;
33
+ height:var(--_rs-icons-height);
34
+ }
35
+ ._sizeXS_1jmu341_14{
36
+ --_rs-icons-height:16px;
37
+ }
38
+ ._sizeS_1jmu341_18{
39
+ --_rs-icons-height:20px;
40
+ }
41
+ ._sizeM_1jmu341_22{
42
+ --_rs-icons-height:24px;
43
+ }
44
+ ._sizeL_1jmu341_26{
45
+ --_rs-icons-height:28px;
46
+ }
47
+ ._light_1jmu341_30{
48
+ --rs-theme-dark:0;
49
+ --_rs-icons-themed-fill-or-initial:rgb(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));
50
+ }
51
+ ._dark_1jmu341_34{
52
+ --rs-theme-dark:1;
53
+ --_rs-icons-themed-fill-or-initial:rgb(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));
54
+ }
55
+ @-webkit-keyframes rs-icon-rotate{
56
+ from{
57
+ -webkit-transform:rotate(0deg);
58
+ transform:rotate(0deg);
59
+ }
60
+ to{
61
+ -webkit-transform:rotate(360deg);
62
+ transform:rotate(360deg);
63
+ }
64
+ }
65
+ @keyframes rs-icon-rotate{
66
+ from{
67
+ -webkit-transform:rotate(0deg);
68
+ transform:rotate(0deg);
69
+ }
70
+ to{
71
+ -webkit-transform:rotate(360deg);
72
+ transform:rotate(360deg);
73
+ }
74
+ }
75
+ ._alignIconLeft_ri7lj7_7{
2
76
  --_rs-tag-flex-direction:row;
3
77
  }
4
- ._alignIconRight_zunxfq_10{
78
+ ._alignIconRight_ri7lj7_10{
5
79
  --_rs-tag-flex-direction:row-reverse;
6
80
  }
7
- ._uppercase_zunxfq_14{
81
+ ._uppercase_ri7lj7_14{
8
82
  --_rs-tag-text-transform:uppercase;
9
83
  --_rs-tag-horizontal-padding-or-initial:var(
10
84
  --_rs-tag-uppercase-horizontal-padding
11
85
  );
12
86
  }
13
- ._sizeXs_zunxfq_18{
87
+ ._sizeXs_ri7lj7_18{
14
88
  --_rs-tag-vertical-padding:2px;
15
89
  --_rs-tag-base-horizontal-padding:8px;
16
90
  --_rs-tag-uppercase-horizontal-padding:var(
@@ -51,7 +125,7 @@
51
125
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
52
126
  --_rs-typography-link-border-bottom-width-from-text:1px;
53
127
  }
54
- ._sizeS_zunxfq_21{
128
+ ._sizeS_ri7lj7_21{
55
129
  --_rs-tag-vertical-padding:4px;
56
130
  --_rs-tag-base-horizontal-padding:8px;
57
131
  --_rs-tag-uppercase-horizontal-padding:10px;
@@ -90,7 +164,7 @@
90
164
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
91
165
  --_rs-typography-link-border-bottom-width-from-text:1px;
92
166
  }
93
- ._sizeM_zunxfq_24{
167
+ ._sizeM_ri7lj7_24{
94
168
  --_rs-tag-vertical-padding:6px;
95
169
  --_rs-tag-base-horizontal-padding:12px;
96
170
  --_rs-tag-uppercase-horizontal-padding:var(
@@ -132,11 +206,11 @@
132
206
  --_rs-typography-link-border-bottom-width-from-text:1px;
133
207
  }
134
208
  @media screen and (max-width: 640px){
135
- ._sizeM_zunxfq_24{
209
+ ._sizeM_ri7lj7_24{
136
210
  --_rs-typography-list-li-margin-top-from-text:12px;
137
211
  }
138
212
  }
139
- ._sizeL_zunxfq_27{
213
+ ._sizeL_ri7lj7_27{
140
214
  --_rs-tag-vertical-padding:8px;
141
215
  --_rs-tag-base-horizontal-padding:16px;
142
216
  --_rs-tag-uppercase-horizontal-padding:var(
@@ -178,11 +252,11 @@
178
252
  --_rs-typography-link-border-bottom-width-from-text:1px;
179
253
  }
180
254
  @media screen and (max-width: 640px){
181
- ._sizeL_zunxfq_27{
255
+ ._sizeL_ri7lj7_27{
182
256
  --_rs-typography-list-li-margin-top-from-text:16px;
183
257
  }
184
258
  }
185
- ._main_zunxfq_31{
259
+ ._main_ri7lj7_31{
186
260
  --_rs-tag-border-width:1px;
187
261
 
188
262
  --_rs-tag-horizontal-padding:var(
@@ -202,11 +276,11 @@
202
276
  -webkit-font-feature-settings:'kern', 'liga', 'calt';
203
277
  font-feature-settings:'kern', 'liga', 'calt';
204
278
  }
205
- ._main_zunxfq_31 > p:not(:nth-child(1)),
206
- ._main_zunxfq_31 > pre:not(:nth-child(1)){
279
+ ._main_ri7lj7_31 > p:not(:nth-child(1)),
280
+ ._main_ri7lj7_31 > pre:not(:nth-child(1)){
207
281
  padding-top:var(--_rs-typography-auto-offset-or-initial);
208
282
  }
209
- ._main_zunxfq_31 {
283
+ ._main_ri7lj7_31 {
210
284
 
211
285
  position:relative;
212
286
 
@@ -243,24 +317,24 @@
243
317
  background:transparent;
244
318
  gap:8px;
245
319
  }
246
- ._main_zunxfq_31 ._icon_zunxfq_60{
320
+ ._main_ri7lj7_31 ._icon_ri7lj7_60{
247
321
  fill:currentColor;
248
322
 
249
323
  width:auto;
250
324
  height:var(--_rs-tag-icon-size);
251
325
  }
252
326
 
253
- ._main_fazfn4_1{
327
+ ._main_olte45_1{
254
328
  border-radius:var(--_rs-tag-border-radius);
255
329
  }
256
330
 
257
- ._themeLight_fmw9bj_7{
331
+ ._themeLight_1xhc4lm_7{
258
332
  --rs-theme-dark:0;
259
333
  }
260
- ._themeDark_fmw9bj_10{
334
+ ._themeDark_1xhc4lm_10{
261
335
  --rs-theme-dark:1;
262
336
  }
263
- ._sizeXs_fmw9bj_14{
337
+ ._sizeXs_1xhc4lm_14{
264
338
  --_rs-tag-removable-vertical-padding:2px;
265
339
  --_rs-tag-removable-left-padding:8px;
266
340
  --_rs-tag-removable-right-padding:2px;
@@ -268,10 +342,10 @@
268
342
  --_rs-tag-removable-close-icon-size:28px;
269
343
  --_rs-tag-removable-custom-icon-size:20px;
270
344
  }
271
- ._sizeXs_fmw9bj_14 [data-rs-internal="removable-tag__close-icon"]:not(html){
345
+ ._sizeXs_1xhc4lm_14 [data-rs-internal="removable-tag__close-icon"]:not(html){
272
346
  --_rs-icons-height:20px;
273
347
  }
274
- ._sizeXs_fmw9bj_14 {
348
+ ._sizeXs_1xhc4lm_14 {
275
349
  --_rs-typography-letter-spacing:0.0045em;
276
350
  --_rs-typography-text-transform:initial;
277
351
  --_rs-typography-font-variant-numeric:initial;
@@ -305,7 +379,7 @@
305
379
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
306
380
  --_rs-typography-link-border-bottom-width-from-text:1px;
307
381
  }
308
- ._sizeS_fmw9bj_17{
382
+ ._sizeS_1xhc4lm_17{
309
383
  --_rs-tag-removable-vertical-padding:4px;
310
384
  --_rs-tag-removable-left-padding:8px;
311
385
  --_rs-tag-removable-right-padding:2px;
@@ -313,10 +387,10 @@
313
387
  --_rs-tag-removable-close-icon-size:28px;
314
388
  --_rs-tag-removable-custom-icon-size:20px;
315
389
  }
316
- ._sizeS_fmw9bj_17 [data-rs-internal="removable-tag__close-icon"]:not(html){
390
+ ._sizeS_1xhc4lm_17 [data-rs-internal="removable-tag__close-icon"]:not(html){
317
391
  --_rs-icons-height:20px;
318
392
  }
319
- ._sizeS_fmw9bj_17 {
393
+ ._sizeS_1xhc4lm_17 {
320
394
  --_rs-typography-letter-spacing:0.0045em;
321
395
  --_rs-typography-text-transform:initial;
322
396
  --_rs-typography-font-variant-numeric:initial;
@@ -350,7 +424,7 @@
350
424
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
351
425
  --_rs-typography-link-border-bottom-width-from-text:1px;
352
426
  }
353
- ._sizeM_fmw9bj_20{
427
+ ._sizeM_1xhc4lm_20{
354
428
  --_rs-tag-removable-vertical-padding:6px;
355
429
  --_rs-tag-removable-left-padding:12px;
356
430
  --_rs-tag-removable-right-padding:2px;
@@ -358,10 +432,10 @@
358
432
  --_rs-tag-removable-close-icon-size:36px;
359
433
  --_rs-tag-removable-custom-icon-size:24px;
360
434
  }
361
- ._sizeM_fmw9bj_20 [data-rs-internal="removable-tag__close-icon"]:not(html){
435
+ ._sizeM_1xhc4lm_20 [data-rs-internal="removable-tag__close-icon"]:not(html){
362
436
  --_rs-icons-height:24px;
363
437
  }
364
- ._sizeM_fmw9bj_20 {
438
+ ._sizeM_1xhc4lm_20 {
365
439
  --_rs-typography-letter-spacing:0.0015em;
366
440
  --_rs-typography-text-transform:initial;
367
441
  --_rs-typography-font-variant-numeric:initial;
@@ -396,11 +470,11 @@
396
470
  --_rs-typography-link-border-bottom-width-from-text:1px;
397
471
  }
398
472
  @media screen and (max-width: 640px){
399
- ._sizeM_fmw9bj_20 {
473
+ ._sizeM_1xhc4lm_20 {
400
474
  --_rs-typography-list-li-margin-top-from-text:12px;
401
475
  }
402
476
  }
403
- ._sizeL_fmw9bj_23{
477
+ ._sizeL_1xhc4lm_23{
404
478
  --_rs-tag-removable-vertical-padding:8px;
405
479
  --_rs-tag-removable-left-padding:16px;
406
480
  --_rs-tag-removable-right-padding:4px;
@@ -408,10 +482,10 @@
408
482
  --_rs-tag-removable-close-icon-size:44px;
409
483
  --_rs-tag-removable-custom-icon-size:28px;
410
484
  }
411
- ._sizeL_fmw9bj_23 [data-rs-internal="removable-tag__close-icon"]:not(html){
485
+ ._sizeL_1xhc4lm_23 [data-rs-internal="removable-tag__close-icon"]:not(html){
412
486
  --_rs-icons-height:28px;
413
487
  }
414
- ._sizeL_fmw9bj_23 {
488
+ ._sizeL_1xhc4lm_23 {
415
489
  --_rs-typography-letter-spacing:normal;
416
490
  --_rs-typography-text-transform:initial;
417
491
  --_rs-typography-font-variant-numeric:initial;
@@ -446,11 +520,11 @@
446
520
  --_rs-typography-link-border-bottom-width-from-text:1px;
447
521
  }
448
522
  @media screen and (max-width: 640px){
449
- ._sizeL_fmw9bj_23 {
523
+ ._sizeL_1xhc4lm_23 {
450
524
  --_rs-typography-list-li-margin-top-from-text:16px;
451
525
  }
452
526
  }
453
- ._wrapper_fmw9bj_27{
527
+ ._wrapper_1xhc4lm_27{
454
528
  --_rs-theme-dark:var(
455
529
  --_rs-internal-force-theme-dark-consult-rescui-before-using,
456
530
  var(--rs-theme-dark, 0)
@@ -460,7 +534,7 @@
460
534
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
461
535
  }
462
536
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
463
- ._wrapper_fmw9bj_27{
537
+ ._wrapper_1xhc4lm_27{
464
538
  --_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)));
465
539
  --_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)));
466
540
  --_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)));
@@ -469,7 +543,7 @@
469
543
  }
470
544
  }
471
545
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
472
- ._wrapper_fmw9bj_27{
546
+ ._wrapper_1xhc4lm_27{
473
547
  --_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);
474
548
  --_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));
475
549
  --_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));
@@ -477,7 +551,7 @@
477
551
  --_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));
478
552
  }
479
553
  }
480
- ._wrapper_fmw9bj_27 {
554
+ ._wrapper_1xhc4lm_27 {
481
555
  letter-spacing:var(
482
556
  --rs-text-base-letter-spacing,
483
557
  var(--_rs-typography-letter-spacing)
@@ -491,11 +565,11 @@
491
565
  -webkit-font-feature-settings:'kern', 'liga', 'calt';
492
566
  font-feature-settings:'kern', 'liga', 'calt';
493
567
  }
494
- ._wrapper_fmw9bj_27 > p:not(:nth-child(1)),
495
- ._wrapper_fmw9bj_27 > pre:not(:nth-child(1)){
568
+ ._wrapper_1xhc4lm_27 > p:not(:nth-child(1)),
569
+ ._wrapper_1xhc4lm_27 > pre:not(:nth-child(1)){
496
570
  padding-top:var(--_rs-typography-auto-offset-or-initial);
497
571
  }
498
- ._wrapper_fmw9bj_27 {
572
+ ._wrapper_1xhc4lm_27 {
499
573
  --_rs-typography-hardness-color:var(
500
574
  --rs-color-average,
501
575
  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)
@@ -518,17 +592,17 @@
518
592
  color:var(--_rs-typography-hardness-color);
519
593
  background-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), 0.1);
520
594
  }
521
- ._wrapper_fmw9bj_27 > *{
595
+ ._wrapper_1xhc4lm_27 > *{
522
596
  vertical-align:top;
523
597
  }
524
- ._disabled_fmw9bj_51{
598
+ ._disabled_1xhc4lm_51{
525
599
  pointer-events:none;
526
600
  --_rs-typography-hardness-color:var(
527
601
  --rs-color-pale,
528
602
  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.5)
529
603
  );
530
604
  }
531
- ._main_fmw9bj_56{
605
+ ._main_1xhc4lm_56{
532
606
  display:-webkit-inline-box;
533
607
  display:-ms-inline-flexbox;
534
608
  display:inline-flex;
@@ -550,10 +624,10 @@
550
624
 
551
625
  background:transparent;
552
626
  }
553
- ._wrap_fmw9bj_27 ._main_fmw9bj_56{
627
+ ._wrap_1xhc4lm_27 ._main_1xhc4lm_56{
554
628
  white-space:normal;
555
629
  }
556
- ._close_fmw9bj_75{
630
+ ._close_1xhc4lm_75{
557
631
  top:0;
558
632
  right:0;
559
633
  bottom:0;
@@ -591,34 +665,34 @@
591
665
  -webkit-font-smoothing:inherit;
592
666
  -moz-osx-font-smoothing:inherit;
593
667
  }
594
- ._close_fmw9bj_75::-moz-focus-inner{
668
+ ._close_1xhc4lm_75::-moz-focus-inner{
595
669
  padding:0;
596
670
 
597
671
  border:0;
598
672
  }
599
- ._close_fmw9bj_75:active,
600
- ._close_fmw9bj_75:hover,
601
- ._close_fmw9bj_75:focus{
673
+ ._close_1xhc4lm_75:active,
674
+ ._close_1xhc4lm_75:hover,
675
+ ._close_1xhc4lm_75:focus{
602
676
  outline:none;
603
677
 
604
678
  text-decoration:none;
605
679
  }
606
- ._close_fmw9bj_75:hover{
680
+ ._close_1xhc4lm_75:hover{
607
681
  color:rgb(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));
608
682
  background-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), 0.1);
609
683
  }
610
- ._close_fmw9bj_75:active{
684
+ ._close_1xhc4lm_75:active{
611
685
  color:rgb(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));
612
686
  background-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), 0.2);
613
687
  }
614
- ._close_fmw9bj_75:focus[data-focus-method='key']{
688
+ ._close_1xhc4lm_75:focus[data-focus-method='key']{
615
689
  -webkit-box-shadow:inset 0 0 0 4px var(--_rs-color-primary-dim);
616
690
  box-shadow:inset 0 0 0 4px var(--_rs-color-primary-dim);
617
691
  }
618
- ._disabled_fmw9bj_51 ._close_fmw9bj_75{
692
+ ._disabled_1xhc4lm_51 ._close_1xhc4lm_75{
619
693
  pointer-events:none;
620
694
  }
621
- ._icon_fmw9bj_136{
695
+ ._icon_1xhc4lm_136{
622
696
  -webkit-box-flex:1;
623
697
  -ms-flex:1 0 auto;
624
698
  flex:1 0 auto;
@@ -633,55 +707,55 @@
633
707
  fill:currentColor;
634
708
  }
635
709
 
636
- ._wrapper_b4s7xu_3{
710
+ ._wrapper_1soxljr_3{
637
711
  position:relative;
638
712
  }
639
- ._offset16_b4s7xu_7{
713
+ ._offset16_1soxljr_7{
640
714
  --_rs-tag-sticky-side-offset:16px;
641
715
  }
642
- ._offset24_b4s7xu_10{
716
+ ._offset24_1soxljr_10{
643
717
  --_rs-tag-sticky-side-offset:24px;
644
718
  }
645
- ._offset32_b4s7xu_13{
719
+ ._offset32_1soxljr_13{
646
720
  --_rs-tag-sticky-side-offset:32px;
647
721
  }
648
- ._alignTop_b4s7xu_17{
722
+ ._alignTop_1soxljr_17{
649
723
  --_rs-tag-sticky-border-radius:var(--_rs-tag-border-radius) var(--_rs-tag-border-radius) 0 0;
650
724
  --_rs-tag-sticky-translate-y:-100%;
651
725
  }
652
- ._alignMiddle_b4s7xu_20{
726
+ ._alignMiddle_1soxljr_20{
653
727
  --_rs-tag-sticky-border-radius:var(--_rs-tag-border-radius);
654
728
  --_rs-tag-sticky-translate-y:-50%;
655
729
  }
656
- ._topStart_b4s7xu_24{
730
+ ._topStart_1soxljr_24{
657
731
  --_rs-tag-sticky-top:0;
658
732
  --_rs-tag-sticky-right:initial;
659
733
  --_rs-tag-sticky-left:var(--_rs-tag-sticky-side-offset);
660
734
  --_rs-tag-sticky-transform:translate(0, var(--_rs-tag-sticky-translate-y));
661
735
  --_rs-tag-sticky-transform-origin:initial;
662
736
  }
663
- ._topEnd_b4s7xu_27{
737
+ ._topEnd_1soxljr_27{
664
738
  --_rs-tag-sticky-top:0;
665
739
  --_rs-tag-sticky-right:var(--_rs-tag-sticky-side-offset);
666
740
  --_rs-tag-sticky-left:initial;
667
741
  --_rs-tag-sticky-transform:translate(0, var(--_rs-tag-sticky-translate-y));
668
742
  --_rs-tag-sticky-transform-origin:initial;
669
743
  }
670
- ._leftStart_b4s7xu_30{
744
+ ._leftStart_1soxljr_30{
671
745
  --_rs-tag-sticky-top:var(--_rs-tag-sticky-side-offset);
672
746
  --_rs-tag-sticky-right:100%;
673
747
  --_rs-tag-sticky-left:initial;
674
748
  --_rs-tag-sticky-transform:rotate(270deg) translate(0, var(--_rs-tag-sticky-translate-y));
675
749
  --_rs-tag-sticky-transform-origin:100% 0;
676
750
  }
677
- ._leftEnd_b4s7xu_33{
751
+ ._leftEnd_1soxljr_33{
678
752
  --_rs-tag-sticky-top:calc(100% - var(--_rs-tag-sticky-side-offset));
679
753
  --_rs-tag-sticky-right:100%;
680
754
  --_rs-tag-sticky-left:initial;
681
755
  --_rs-tag-sticky-transform:rotate(270deg) translate(100%, var(--_rs-tag-sticky-translate-y));
682
756
  --_rs-tag-sticky-transform-origin:100% 0;
683
757
  }
684
- ._tag_b4s7xu_37{
758
+ ._tag_1soxljr_37{
685
759
  position:absolute;
686
760
  top:var(--_rs-tag-sticky-top);
687
761
  right:var(--_rs-tag-sticky-right);
@@ -1,12 +1,12 @@
1
1
  var styles = {
2
- "alignIconLeft": "_alignIconLeft_zunxfq_7",
3
- "alignIconRight": "_alignIconRight_zunxfq_10",
4
- "uppercase": "_uppercase_zunxfq_14",
5
- "sizeXs": "_sizeXs_zunxfq_18",
6
- "sizeS": "_sizeS_zunxfq_21",
7
- "sizeM": "_sizeM_zunxfq_24",
8
- "sizeL": "_sizeL_zunxfq_27",
9
- "main": "_main_zunxfq_31",
10
- "icon": "_icon_zunxfq_60"
2
+ "alignIconLeft": "_alignIconLeft_ri7lj7_7",
3
+ "alignIconRight": "_alignIconRight_ri7lj7_10",
4
+ "uppercase": "_uppercase_ri7lj7_14",
5
+ "sizeXs": "_sizeXs_ri7lj7_18",
6
+ "sizeS": "_sizeS_ri7lj7_21",
7
+ "sizeM": "_sizeM_ri7lj7_24",
8
+ "sizeL": "_sizeL_ri7lj7_27",
9
+ "main": "_main_ri7lj7_31",
10
+ "icon": "_icon_ri7lj7_60"
11
11
  };
12
12
  export { styles as default };
@@ -17,7 +17,7 @@ import React, { cloneElement } from 'react';
17
17
  import PropTypes from 'prop-types';
18
18
  import cn from 'classnames';
19
19
  import { useThemeWithUndefined } from '@rescui/ui-contexts';
20
- import { CloseIcon } from '@rescui/icons';
20
+ import CloseIcon from '../_virtual/close.js';
21
21
  import styles from './removable-tag.p.module.css.js';
22
22
  var SIZE_STYLES = {
23
23
  xs: styles.sizeXs,
@@ -1,15 +1,15 @@
1
1
  var styles = {
2
- "themeLight": "_themeLight_fmw9bj_7",
3
- "themeDark": "_themeDark_fmw9bj_10",
4
- "sizeXs": "_sizeXs_fmw9bj_14",
5
- "sizeS": "_sizeS_fmw9bj_17",
6
- "sizeM": "_sizeM_fmw9bj_20",
7
- "sizeL": "_sizeL_fmw9bj_23",
8
- "wrapper": "_wrapper_fmw9bj_27",
9
- "disabled": "_disabled_fmw9bj_51",
10
- "main": "_main_fmw9bj_56",
11
- "wrap": "_wrap_fmw9bj_27",
12
- "close": "_close_fmw9bj_75",
13
- "icon": "_icon_fmw9bj_136"
2
+ "themeLight": "_themeLight_1xhc4lm_7",
3
+ "themeDark": "_themeDark_1xhc4lm_10",
4
+ "sizeXs": "_sizeXs_1xhc4lm_14",
5
+ "sizeS": "_sizeS_1xhc4lm_17",
6
+ "sizeM": "_sizeM_1xhc4lm_20",
7
+ "sizeL": "_sizeL_1xhc4lm_23",
8
+ "wrapper": "_wrapper_1xhc4lm_27",
9
+ "disabled": "_disabled_1xhc4lm_51",
10
+ "main": "_main_1xhc4lm_56",
11
+ "wrap": "_wrap_1xhc4lm_27",
12
+ "close": "_close_1xhc4lm_75",
13
+ "icon": "_icon_1xhc4lm_136"
14
14
  };
15
15
  export { styles as default };
@@ -1,14 +1,14 @@
1
1
  var styles = {
2
- "wrapper": "_wrapper_b4s7xu_3",
3
- "offset16": "_offset16_b4s7xu_7",
4
- "offset24": "_offset24_b4s7xu_10",
5
- "offset32": "_offset32_b4s7xu_13",
6
- "alignTop": "_alignTop_b4s7xu_17",
7
- "alignMiddle": "_alignMiddle_b4s7xu_20",
8
- "topStart": "_topStart_b4s7xu_24",
9
- "topEnd": "_topEnd_b4s7xu_27",
10
- "leftStart": "_leftStart_b4s7xu_30",
11
- "leftEnd": "_leftEnd_b4s7xu_33",
12
- "tag": "_tag_b4s7xu_37"
2
+ "wrapper": "_wrapper_1soxljr_3",
3
+ "offset16": "_offset16_1soxljr_7",
4
+ "offset24": "_offset24_1soxljr_10",
5
+ "offset32": "_offset32_1soxljr_13",
6
+ "alignTop": "_alignTop_1soxljr_17",
7
+ "alignMiddle": "_alignMiddle_1soxljr_20",
8
+ "topStart": "_topStart_1soxljr_24",
9
+ "topEnd": "_topEnd_1soxljr_27",
10
+ "leftStart": "_leftStart_1soxljr_30",
11
+ "leftEnd": "_leftEnd_1soxljr_33",
12
+ "tag": "_tag_1soxljr_37"
13
13
  };
14
14
  export { styles as default };
@@ -1,4 +1,4 @@
1
1
  var styles = {
2
- "main": "_main_fazfn4_1"
2
+ "main": "_main_olte45_1"
3
3
  };
4
4
  export { styles as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/tag",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -15,8 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@babel/runtime-corejs3": "^7.14.0",
18
- "@rescui/colors": "^0.2.1",
19
- "@rescui/icons": "^0.16.3",
18
+ "@rescui/colors": "^0.2.2",
20
19
  "classnames": "^2.3.1",
21
20
  "core-js": "^3.9.1"
22
21
  },
@@ -26,13 +25,14 @@
26
25
  "react": ">=16.8.0 <19"
27
26
  },
28
27
  "devDependencies": {
29
- "@rescui/scripts": "^0.3.1",
30
- "@rescui/typography": "^0.16.3"
28
+ "@rescui/icons": "^0.16.4",
29
+ "@rescui/scripts": "^0.3.2",
30
+ "@rescui/typography": "^0.16.4"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "rescui-scripts build && yarn run build-pcss-api",
34
34
  "build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
35
35
  },
36
36
  "nx": {},
37
- "gitHead": "950fab43f95d8788d3b4a266957a73233c5ea72e"
37
+ "gitHead": "d4bb4a95bc321907bc55b9ad9768f7e822acbd2d"
38
38
  }