@rescui/tag 0.10.3 → 0.10.5

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_ekw7ne_4",
3
+ "sizeXS": "_sizeXS_ekw7ne_14",
4
+ "sizeS": "_sizeS_ekw7ne_18",
5
+ "sizeM": "_sizeM_ekw7ne_22",
6
+ "sizeL": "_sizeL_ekw7ne_26",
7
+ "light": "_light_ekw7ne_30",
8
+ "dark": "_dark_ekw7ne_34"
9
+ };
10
+ export { styles as default };
package/lib/index.css CHANGED
@@ -1,16 +1,90 @@
1
- ._alignIconLeft_zunxfq_7{
1
+ ._icon_ekw7ne_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_ekw7ne_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_ekw7ne_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_ekw7ne_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_ekw7ne_14{
36
+ --_rs-icons-height:16px;
37
+ }
38
+ ._sizeS_ekw7ne_18{
39
+ --_rs-icons-height:20px;
40
+ }
41
+ ._sizeM_ekw7ne_22{
42
+ --_rs-icons-height:24px;
43
+ }
44
+ ._sizeL_ekw7ne_26{
45
+ --_rs-icons-height:28px;
46
+ }
47
+ ._light_ekw7ne_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_ekw7ne_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_1jzlv7c_7{
2
76
  --_rs-tag-flex-direction:row;
3
77
  }
4
- ._alignIconRight_zunxfq_10{
78
+ ._alignIconRight_1jzlv7c_10{
5
79
  --_rs-tag-flex-direction:row-reverse;
6
80
  }
7
- ._uppercase_zunxfq_14{
81
+ ._uppercase_1jzlv7c_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_1jzlv7c_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_1jzlv7c_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_1jzlv7c_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_1jzlv7c_24{
136
210
  --_rs-typography-list-li-margin-top-from-text:12px;
137
211
  }
138
212
  }
139
- ._sizeL_zunxfq_27{
213
+ ._sizeL_1jzlv7c_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_1jzlv7c_27{
182
256
  --_rs-typography-list-li-margin-top-from-text:16px;
183
257
  }
184
258
  }
185
- ._main_zunxfq_31{
259
+ ._main_1jzlv7c_31{
186
260
  --_rs-tag-border-width:1px;
187
261
 
188
262
  --_rs-tag-horizontal-padding:var(
@@ -201,12 +275,6 @@
201
275
  font-variant-numeric:var(--_rs-typography-font-variant-numeric);
202
276
  -webkit-font-feature-settings:'kern', 'liga', 'calt';
203
277
  font-feature-settings:'kern', 'liga', 'calt';
204
- }
205
- ._main_zunxfq_31 > p:not(:nth-child(1)),
206
- ._main_zunxfq_31 > pre:not(:nth-child(1)){
207
- padding-top:var(--_rs-typography-auto-offset-or-initial);
208
- }
209
- ._main_zunxfq_31 {
210
278
 
211
279
  position:relative;
212
280
 
@@ -243,24 +311,24 @@
243
311
  background:transparent;
244
312
  gap:8px;
245
313
  }
246
- ._main_zunxfq_31 ._icon_zunxfq_60{
314
+ ._main_1jzlv7c_31 ._icon_1jzlv7c_60{
247
315
  fill:currentColor;
248
316
 
249
317
  width:auto;
250
318
  height:var(--_rs-tag-icon-size);
251
319
  }
252
320
 
253
- ._main_fazfn4_1{
321
+ ._main_1qofngu_1{
254
322
  border-radius:var(--_rs-tag-border-radius);
255
323
  }
256
324
 
257
- ._themeLight_fmw9bj_7{
325
+ ._themeLight_zsgvo1_7{
258
326
  --rs-theme-dark:0;
259
327
  }
260
- ._themeDark_fmw9bj_10{
328
+ ._themeDark_zsgvo1_10{
261
329
  --rs-theme-dark:1;
262
330
  }
263
- ._sizeXs_fmw9bj_14{
331
+ ._sizeXs_zsgvo1_14{
264
332
  --_rs-tag-removable-vertical-padding:2px;
265
333
  --_rs-tag-removable-left-padding:8px;
266
334
  --_rs-tag-removable-right-padding:2px;
@@ -268,10 +336,10 @@
268
336
  --_rs-tag-removable-close-icon-size:28px;
269
337
  --_rs-tag-removable-custom-icon-size:20px;
270
338
  }
271
- ._sizeXs_fmw9bj_14 [data-rs-internal="removable-tag__close-icon"]:not(html){
339
+ ._sizeXs_zsgvo1_14 [data-rs-internal="removable-tag__close-icon"]:not(html){
272
340
  --_rs-icons-height:20px;
273
341
  }
274
- ._sizeXs_fmw9bj_14 {
342
+ ._sizeXs_zsgvo1_14 {
275
343
  --_rs-typography-letter-spacing:0.0045em;
276
344
  --_rs-typography-text-transform:initial;
277
345
  --_rs-typography-font-variant-numeric:initial;
@@ -305,7 +373,7 @@
305
373
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
306
374
  --_rs-typography-link-border-bottom-width-from-text:1px;
307
375
  }
308
- ._sizeS_fmw9bj_17{
376
+ ._sizeS_zsgvo1_17{
309
377
  --_rs-tag-removable-vertical-padding:4px;
310
378
  --_rs-tag-removable-left-padding:8px;
311
379
  --_rs-tag-removable-right-padding:2px;
@@ -313,10 +381,10 @@
313
381
  --_rs-tag-removable-close-icon-size:28px;
314
382
  --_rs-tag-removable-custom-icon-size:20px;
315
383
  }
316
- ._sizeS_fmw9bj_17 [data-rs-internal="removable-tag__close-icon"]:not(html){
384
+ ._sizeS_zsgvo1_17 [data-rs-internal="removable-tag__close-icon"]:not(html){
317
385
  --_rs-icons-height:20px;
318
386
  }
319
- ._sizeS_fmw9bj_17 {
387
+ ._sizeS_zsgvo1_17 {
320
388
  --_rs-typography-letter-spacing:0.0045em;
321
389
  --_rs-typography-text-transform:initial;
322
390
  --_rs-typography-font-variant-numeric:initial;
@@ -350,7 +418,7 @@
350
418
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
351
419
  --_rs-typography-link-border-bottom-width-from-text:1px;
352
420
  }
353
- ._sizeM_fmw9bj_20{
421
+ ._sizeM_zsgvo1_20{
354
422
  --_rs-tag-removable-vertical-padding:6px;
355
423
  --_rs-tag-removable-left-padding:12px;
356
424
  --_rs-tag-removable-right-padding:2px;
@@ -358,10 +426,10 @@
358
426
  --_rs-tag-removable-close-icon-size:36px;
359
427
  --_rs-tag-removable-custom-icon-size:24px;
360
428
  }
361
- ._sizeM_fmw9bj_20 [data-rs-internal="removable-tag__close-icon"]:not(html){
429
+ ._sizeM_zsgvo1_20 [data-rs-internal="removable-tag__close-icon"]:not(html){
362
430
  --_rs-icons-height:24px;
363
431
  }
364
- ._sizeM_fmw9bj_20 {
432
+ ._sizeM_zsgvo1_20 {
365
433
  --_rs-typography-letter-spacing:0.0015em;
366
434
  --_rs-typography-text-transform:initial;
367
435
  --_rs-typography-font-variant-numeric:initial;
@@ -396,11 +464,11 @@
396
464
  --_rs-typography-link-border-bottom-width-from-text:1px;
397
465
  }
398
466
  @media screen and (max-width: 640px){
399
- ._sizeM_fmw9bj_20 {
467
+ ._sizeM_zsgvo1_20 {
400
468
  --_rs-typography-list-li-margin-top-from-text:12px;
401
469
  }
402
470
  }
403
- ._sizeL_fmw9bj_23{
471
+ ._sizeL_zsgvo1_23{
404
472
  --_rs-tag-removable-vertical-padding:8px;
405
473
  --_rs-tag-removable-left-padding:16px;
406
474
  --_rs-tag-removable-right-padding:4px;
@@ -408,10 +476,10 @@
408
476
  --_rs-tag-removable-close-icon-size:44px;
409
477
  --_rs-tag-removable-custom-icon-size:28px;
410
478
  }
411
- ._sizeL_fmw9bj_23 [data-rs-internal="removable-tag__close-icon"]:not(html){
479
+ ._sizeL_zsgvo1_23 [data-rs-internal="removable-tag__close-icon"]:not(html){
412
480
  --_rs-icons-height:28px;
413
481
  }
414
- ._sizeL_fmw9bj_23 {
482
+ ._sizeL_zsgvo1_23 {
415
483
  --_rs-typography-letter-spacing:normal;
416
484
  --_rs-typography-text-transform:initial;
417
485
  --_rs-typography-font-variant-numeric:initial;
@@ -446,11 +514,11 @@
446
514
  --_rs-typography-link-border-bottom-width-from-text:1px;
447
515
  }
448
516
  @media screen and (max-width: 640px){
449
- ._sizeL_fmw9bj_23 {
517
+ ._sizeL_zsgvo1_23 {
450
518
  --_rs-typography-list-li-margin-top-from-text:16px;
451
519
  }
452
520
  }
453
- ._wrapper_fmw9bj_27{
521
+ ._wrapper_zsgvo1_27{
454
522
  --_rs-theme-dark:var(
455
523
  --_rs-internal-force-theme-dark-consult-rescui-before-using,
456
524
  var(--rs-theme-dark, 0)
@@ -460,7 +528,7 @@
460
528
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
461
529
  }
462
530
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
463
- ._wrapper_fmw9bj_27{
531
+ ._wrapper_zsgvo1_27{
464
532
  --_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
533
  --_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
534
  --_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 +537,7 @@
469
537
  }
470
538
  }
471
539
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
472
- ._wrapper_fmw9bj_27{
540
+ ._wrapper_zsgvo1_27{
473
541
  --_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
542
  --_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
543
  --_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 +545,7 @@
477
545
  --_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
546
  }
479
547
  }
480
- ._wrapper_fmw9bj_27 {
548
+ ._wrapper_zsgvo1_27 {
481
549
  letter-spacing:var(
482
550
  --rs-text-base-letter-spacing,
483
551
  var(--_rs-typography-letter-spacing)
@@ -490,12 +558,6 @@
490
558
  font-variant-numeric:var(--_rs-typography-font-variant-numeric);
491
559
  -webkit-font-feature-settings:'kern', 'liga', 'calt';
492
560
  font-feature-settings:'kern', 'liga', 'calt';
493
- }
494
- ._wrapper_fmw9bj_27 > p:not(:nth-child(1)),
495
- ._wrapper_fmw9bj_27 > pre:not(:nth-child(1)){
496
- padding-top:var(--_rs-typography-auto-offset-or-initial);
497
- }
498
- ._wrapper_fmw9bj_27 {
499
561
  --_rs-typography-hardness-color:var(
500
562
  --rs-color-average,
501
563
  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 +580,17 @@
518
580
  color:var(--_rs-typography-hardness-color);
519
581
  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
582
  }
521
- ._wrapper_fmw9bj_27 > *{
583
+ ._wrapper_zsgvo1_27 > *{
522
584
  vertical-align:top;
523
585
  }
524
- ._disabled_fmw9bj_51{
586
+ ._disabled_zsgvo1_51{
525
587
  pointer-events:none;
526
588
  --_rs-typography-hardness-color:var(
527
589
  --rs-color-pale,
528
590
  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
591
  );
530
592
  }
531
- ._main_fmw9bj_56{
593
+ ._main_zsgvo1_56{
532
594
  display:-webkit-inline-box;
533
595
  display:-ms-inline-flexbox;
534
596
  display:inline-flex;
@@ -550,10 +612,10 @@
550
612
 
551
613
  background:transparent;
552
614
  }
553
- ._wrap_fmw9bj_27 ._main_fmw9bj_56{
615
+ ._wrap_zsgvo1_27 ._main_zsgvo1_56{
554
616
  white-space:normal;
555
617
  }
556
- ._close_fmw9bj_75{
618
+ ._close_zsgvo1_75{
557
619
  top:0;
558
620
  right:0;
559
621
  bottom:0;
@@ -591,34 +653,34 @@
591
653
  -webkit-font-smoothing:inherit;
592
654
  -moz-osx-font-smoothing:inherit;
593
655
  }
594
- ._close_fmw9bj_75::-moz-focus-inner{
656
+ ._close_zsgvo1_75::-moz-focus-inner{
595
657
  padding:0;
596
658
 
597
659
  border:0;
598
660
  }
599
- ._close_fmw9bj_75:active,
600
- ._close_fmw9bj_75:hover,
601
- ._close_fmw9bj_75:focus{
661
+ ._close_zsgvo1_75:active,
662
+ ._close_zsgvo1_75:hover,
663
+ ._close_zsgvo1_75:focus{
602
664
  outline:none;
603
665
 
604
666
  text-decoration:none;
605
667
  }
606
- ._close_fmw9bj_75:hover{
668
+ ._close_zsgvo1_75:hover{
607
669
  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
670
  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
671
  }
610
- ._close_fmw9bj_75:active{
672
+ ._close_zsgvo1_75:active{
611
673
  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
674
  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
675
  }
614
- ._close_fmw9bj_75:focus[data-focus-method='key']{
676
+ ._close_zsgvo1_75:focus[data-focus-method='key']{
615
677
  -webkit-box-shadow:inset 0 0 0 4px var(--_rs-color-primary-dim);
616
678
  box-shadow:inset 0 0 0 4px var(--_rs-color-primary-dim);
617
679
  }
618
- ._disabled_fmw9bj_51 ._close_fmw9bj_75{
680
+ ._disabled_zsgvo1_51 ._close_zsgvo1_75{
619
681
  pointer-events:none;
620
682
  }
621
- ._icon_fmw9bj_136{
683
+ ._icon_zsgvo1_136{
622
684
  -webkit-box-flex:1;
623
685
  -ms-flex:1 0 auto;
624
686
  flex:1 0 auto;
@@ -633,55 +695,55 @@
633
695
  fill:currentColor;
634
696
  }
635
697
 
636
- ._wrapper_b4s7xu_3{
698
+ ._wrapper_6iy4cs_3{
637
699
  position:relative;
638
700
  }
639
- ._offset16_b4s7xu_7{
701
+ ._offset16_6iy4cs_7{
640
702
  --_rs-tag-sticky-side-offset:16px;
641
703
  }
642
- ._offset24_b4s7xu_10{
704
+ ._offset24_6iy4cs_10{
643
705
  --_rs-tag-sticky-side-offset:24px;
644
706
  }
645
- ._offset32_b4s7xu_13{
707
+ ._offset32_6iy4cs_13{
646
708
  --_rs-tag-sticky-side-offset:32px;
647
709
  }
648
- ._alignTop_b4s7xu_17{
710
+ ._alignTop_6iy4cs_17{
649
711
  --_rs-tag-sticky-border-radius:var(--_rs-tag-border-radius) var(--_rs-tag-border-radius) 0 0;
650
712
  --_rs-tag-sticky-translate-y:-100%;
651
713
  }
652
- ._alignMiddle_b4s7xu_20{
714
+ ._alignMiddle_6iy4cs_20{
653
715
  --_rs-tag-sticky-border-radius:var(--_rs-tag-border-radius);
654
716
  --_rs-tag-sticky-translate-y:-50%;
655
717
  }
656
- ._topStart_b4s7xu_24{
718
+ ._topStart_6iy4cs_24{
657
719
  --_rs-tag-sticky-top:0;
658
720
  --_rs-tag-sticky-right:initial;
659
721
  --_rs-tag-sticky-left:var(--_rs-tag-sticky-side-offset);
660
722
  --_rs-tag-sticky-transform:translate(0, var(--_rs-tag-sticky-translate-y));
661
723
  --_rs-tag-sticky-transform-origin:initial;
662
724
  }
663
- ._topEnd_b4s7xu_27{
725
+ ._topEnd_6iy4cs_27{
664
726
  --_rs-tag-sticky-top:0;
665
727
  --_rs-tag-sticky-right:var(--_rs-tag-sticky-side-offset);
666
728
  --_rs-tag-sticky-left:initial;
667
729
  --_rs-tag-sticky-transform:translate(0, var(--_rs-tag-sticky-translate-y));
668
730
  --_rs-tag-sticky-transform-origin:initial;
669
731
  }
670
- ._leftStart_b4s7xu_30{
732
+ ._leftStart_6iy4cs_30{
671
733
  --_rs-tag-sticky-top:var(--_rs-tag-sticky-side-offset);
672
734
  --_rs-tag-sticky-right:100%;
673
735
  --_rs-tag-sticky-left:initial;
674
736
  --_rs-tag-sticky-transform:rotate(270deg) translate(0, var(--_rs-tag-sticky-translate-y));
675
737
  --_rs-tag-sticky-transform-origin:100% 0;
676
738
  }
677
- ._leftEnd_b4s7xu_33{
739
+ ._leftEnd_6iy4cs_33{
678
740
  --_rs-tag-sticky-top:calc(100% - var(--_rs-tag-sticky-side-offset));
679
741
  --_rs-tag-sticky-right:100%;
680
742
  --_rs-tag-sticky-left:initial;
681
743
  --_rs-tag-sticky-transform:rotate(270deg) translate(100%, var(--_rs-tag-sticky-translate-y));
682
744
  --_rs-tag-sticky-transform-origin:100% 0;
683
745
  }
684
- ._tag_b4s7xu_37{
746
+ ._tag_6iy4cs_37{
685
747
  position:absolute;
686
748
  top:var(--_rs-tag-sticky-top);
687
749
  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_1jzlv7c_7",
3
+ "alignIconRight": "_alignIconRight_1jzlv7c_10",
4
+ "uppercase": "_uppercase_1jzlv7c_14",
5
+ "sizeXs": "_sizeXs_1jzlv7c_18",
6
+ "sizeS": "_sizeS_1jzlv7c_21",
7
+ "sizeM": "_sizeM_1jzlv7c_24",
8
+ "sizeL": "_sizeL_1jzlv7c_27",
9
+ "main": "_main_1jzlv7c_31",
10
+ "icon": "_icon_1jzlv7c_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_zsgvo1_7",
3
+ "themeDark": "_themeDark_zsgvo1_10",
4
+ "sizeXs": "_sizeXs_zsgvo1_14",
5
+ "sizeS": "_sizeS_zsgvo1_17",
6
+ "sizeM": "_sizeM_zsgvo1_20",
7
+ "sizeL": "_sizeL_zsgvo1_23",
8
+ "wrapper": "_wrapper_zsgvo1_27",
9
+ "disabled": "_disabled_zsgvo1_51",
10
+ "main": "_main_zsgvo1_56",
11
+ "wrap": "_wrap_zsgvo1_27",
12
+ "close": "_close_zsgvo1_75",
13
+ "icon": "_icon_zsgvo1_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_6iy4cs_3",
3
+ "offset16": "_offset16_6iy4cs_7",
4
+ "offset24": "_offset24_6iy4cs_10",
5
+ "offset32": "_offset32_6iy4cs_13",
6
+ "alignTop": "_alignTop_6iy4cs_17",
7
+ "alignMiddle": "_alignMiddle_6iy4cs_20",
8
+ "topStart": "_topStart_6iy4cs_24",
9
+ "topEnd": "_topEnd_6iy4cs_27",
10
+ "leftStart": "_leftStart_6iy4cs_30",
11
+ "leftEnd": "_leftEnd_6iy4cs_33",
12
+ "tag": "_tag_6iy4cs_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_1qofngu_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.5",
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.3",
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.5",
29
+ "@rescui/scripts": "^0.3.3",
30
+ "@rescui/typography": "^0.17.0"
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": "b422496bacb5df4a601008c646abfb08cebe461c"
38
38
  }