@rescui/tag 0.10.17 → 0.10.19-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,28 +9,98 @@ const sizeStyles = {
9
9
  "m": styles.sizeM,
10
10
  "l": styles.sizeL
11
11
  };
12
+ const Size = {
13
+ "xs": "xs",
14
+ "s": "s",
15
+ "m": "m",
16
+ "l": "l"
17
+ };
18
+ const CloseIcon16 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
19
+ viewBox: "0 0 16 16"
20
+ }, props, {
21
+ ref: ref
22
+ }), /*#__PURE__*/React.createElement("path", {
23
+ d: "M2.47 2.47a.75.75 0 0 1 1.06 0L8 6.94l4.47-4.47a.75.75 0 1 1 1.06 1.06L9.06 8l4.47 4.47a.75.75 0 1 1-1.06 1.06L8 9.06l-4.47 4.47a.75.75 0 0 1-1.06-1.06L6.94 8 2.47 3.53a.75.75 0 0 1 0-1.06"
24
+ })));
25
+ CloseIcon16.displayName = 'CloseIcon16';
26
+ const CloseIcon20 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
27
+ viewBox: "0 0 20 20"
28
+ }, props, {
29
+ ref: ref
30
+ }), /*#__PURE__*/React.createElement("path", {
31
+ d: "M3.293 3.293a1 1 0 0 1 1.414 0L10 8.586l5.293-5.293a1 1 0 1 1 1.414 1.414L11.414 10l5.293 5.293a1 1 0 0 1-1.414 1.414L10 11.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L8.586 10 3.293 4.707a1 1 0 0 1 0-1.414"
32
+ })));
33
+ CloseIcon20.displayName = 'CloseIcon20';
34
+ const CloseIcon24 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
35
+ viewBox: "0 0 24 24"
36
+ }, props, {
37
+ ref: ref
38
+ }), /*#__PURE__*/React.createElement("path", {
39
+ d: "M3.44 3.44a1.5 1.5 0 0 1 2.12 0L12 9.878l6.44-6.44a1.5 1.5 0 0 1 2.12 2.122L14.122 12l6.44 6.44a1.5 1.5 0 0 1-2.122 2.12L12 14.122l-6.44 6.44a1.5 1.5 0 0 1-2.12-2.122L9.878 12l-6.44-6.44a1.5 1.5 0 0 1 0-2.12"
40
+ })));
41
+ CloseIcon24.displayName = 'CloseIcon24';
42
+ const CloseIcon28 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
43
+ viewBox: "0 0 28 28"
44
+ }, props, {
45
+ ref: ref
46
+ }), /*#__PURE__*/React.createElement("path", {
47
+ d: "M4.44 4.44a1.5 1.5 0 0 1 2.12 0L14 11.878l7.44-7.44a1.5 1.5 0 0 1 2.12 2.122L16.122 14l7.44 7.44a1.5 1.5 0 0 1-2.122 2.12L14 16.122l-7.44 7.44a1.5 1.5 0 0 1-2.12-2.122L11.878 14l-7.44-7.44a1.5 1.5 0 0 1 0-2.12"
48
+ })));
49
+ CloseIcon28.displayName = 'CloseIcon28';
12
50
  const CloseIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
13
51
  let {
14
52
  theme,
15
- size,
53
+ size: sizeFromProps = "m",
16
54
  className,
55
+ style,
56
+ ['data-render-all-sizes']: renderAllSizes = false,
17
57
  ...props
18
58
  } = _ref;
19
- return /*#__PURE__*/React.createElement("svg", _extends({
20
- viewBox: "0 0 24 24"
21
- }, props, {
22
- className: cn(styles.icon, styles[theme], sizeStyles[size], className),
23
- ref: ref
24
- }), /*#__PURE__*/React.createElement("path", {
25
- 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"
26
- }));
59
+ const size = sizeFromProps in Size ? sizeFromProps : "m";
60
+ const mainProps = { ...props,
61
+ className: cn(styles.icon, styles[theme], sizeStyles[size], renderAllSizes && styles.allVariants, className),
62
+ style: renderAllSizes ? {
63
+ '--rs-icon-ar-width': 28,
64
+ '--rs-icon-ar-height': 28,
65
+ ...style
66
+ } : style,
67
+ ref
68
+ };
69
+
70
+ if (renderAllSizes) {
71
+ return /*#__PURE__*/React.createElement("svg", _extends({
72
+ viewBox: "0 0 28 28"
73
+ }, mainProps), /*#__PURE__*/React.createElement(CloseIcon16, {
74
+ className: styles.variant16
75
+ }), /*#__PURE__*/React.createElement(CloseIcon20, {
76
+ className: styles.variant20
77
+ }), /*#__PURE__*/React.createElement(CloseIcon24, {
78
+ className: styles.variant24
79
+ }), /*#__PURE__*/React.createElement(CloseIcon28, {
80
+ className: styles.variant28
81
+ }));
82
+ }
83
+
84
+ if (size === Size['xs']) {
85
+ return /*#__PURE__*/React.createElement(CloseIcon16, mainProps);
86
+ }
87
+
88
+ if (size === Size['s']) {
89
+ return /*#__PURE__*/React.createElement(CloseIcon20, mainProps);
90
+ }
91
+
92
+ if (size === Size['m']) {
93
+ return /*#__PURE__*/React.createElement(CloseIcon24, mainProps);
94
+ }
95
+
96
+ return /*#__PURE__*/React.createElement(CloseIcon28, mainProps);
27
97
  });
98
+ CloseIcon.displayName = 'CloseIcon';
28
99
  CloseIcon.propTypes = {
29
100
  className: PropTypes.string,
30
101
  theme: PropTypes.oneOf(["light", "dark"]),
31
- size: PropTypes.oneOf(["xs", "s", "m", "l"])
32
- };
33
- CloseIcon.defaultProps = {
34
- size: "m"
102
+ size: PropTypes.oneOf(["xs", "s", "m", "l"]),
103
+ 'data-render-all-sizes': PropTypes.bool,
104
+ style: PropTypes.object
35
105
  };
36
- export { CloseIcon as default };
106
+ export { Size, CloseIcon as default };
@@ -1,10 +1,15 @@
1
1
  var styles = {
2
- "icon": "_icon_afka1x_4",
3
- "sizeXS": "_sizeXS_afka1x_14",
4
- "sizeS": "_sizeS_afka1x_18",
5
- "sizeM": "_sizeM_afka1x_22",
6
- "sizeL": "_sizeL_afka1x_26",
7
- "light": "_light_afka1x_30",
8
- "dark": "_dark_afka1x_34"
2
+ "icon": "_icon_1yrim0e_4",
3
+ "sizeXS": "_sizeXS_1yrim0e_14",
4
+ "sizeS": "_sizeS_1yrim0e_18",
5
+ "sizeM": "_sizeM_1yrim0e_22",
6
+ "sizeL": "_sizeL_1yrim0e_26",
7
+ "light": "_light_1yrim0e_30",
8
+ "dark": "_dark_1yrim0e_34",
9
+ "allVariants": "_allVariants_1yrim0e_48",
10
+ "variant16": "_variant16_1yrim0e_53",
11
+ "variant20": "_variant20_1yrim0e_54",
12
+ "variant24": "_variant24_1yrim0e_55",
13
+ "variant28": "_variant28_1yrim0e_58"
9
14
  };
10
15
  export { styles as default };
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- ._icon_afka1x_4{
1
+ ._icon_1yrim0e_4{
2
2
  --_rs-theme-dark:var(
3
3
  --_rs-internal-force-theme-dark-consult-rescui-before-using,
4
4
  var(--rs-theme-dark, 0)
@@ -8,7 +8,7 @@
8
8
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
9
9
  }
10
10
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
11
- ._icon_afka1x_4{
11
+ ._icon_1yrim0e_4{
12
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
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
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)));
@@ -17,7 +17,7 @@
17
17
  }
18
18
  }
19
19
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
20
- ._icon_afka1x_4{
20
+ ._icon_1yrim0e_4{
21
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
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
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));
@@ -25,30 +25,30 @@
25
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
26
  }
27
27
  }
28
- ._icon_afka1x_4{
28
+ ._icon_1yrim0e_4{
29
29
 
30
30
  fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
31
31
 
32
32
  width:auto;
33
33
  height:var(--_rs-icons-height);
34
34
  }
35
- ._sizeXS_afka1x_14{
35
+ ._sizeXS_1yrim0e_14{
36
36
  --_rs-icons-height:16px;
37
37
  }
38
- ._sizeS_afka1x_18{
38
+ ._sizeS_1yrim0e_18{
39
39
  --_rs-icons-height:20px;
40
40
  }
41
- ._sizeM_afka1x_22{
41
+ ._sizeM_1yrim0e_22{
42
42
  --_rs-icons-height:24px;
43
43
  }
44
- ._sizeL_afka1x_26{
44
+ ._sizeL_1yrim0e_26{
45
45
  --_rs-icons-height:28px;
46
46
  }
47
- ._light_afka1x_30{
47
+ ._light_1yrim0e_30{
48
48
  --rs-theme-dark:0;
49
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
50
  }
51
- ._dark_afka1x_34{
51
+ ._dark_1yrim0e_34{
52
52
  --rs-theme-dark:1;
53
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
54
  }
@@ -60,19 +60,55 @@
60
60
  transform:rotate(360deg);
61
61
  }
62
62
  }
63
- ._alignIconLeft_1mtt76v_7{
63
+ ._allVariants_1yrim0e_48{
64
+ aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
65
+ container:rs-icon / size;
66
+ }
67
+ ._variant16_1yrim0e_53,
68
+ ._variant20_1yrim0e_54,
69
+ ._variant24_1yrim0e_55{
70
+ display:none;
71
+ }
72
+ ._variant28_1yrim0e_58{
73
+ display:block;
74
+ }
75
+ @container rs-icon (max-height: 24px){
76
+ ._variant24_1yrim0e_55{
77
+ display:block;
78
+ }
79
+ ._variant28_1yrim0e_58{
80
+ display:none;
81
+ }
82
+ }
83
+ @container rs-icon (max-height: 20px){
84
+ ._variant20_1yrim0e_54{
85
+ display:block;
86
+ }
87
+ ._variant24_1yrim0e_55{
88
+ display:none;
89
+ }
90
+ }
91
+ @container rs-icon (max-height: 16px){
92
+ ._variant16_1yrim0e_53{
93
+ display:block;
94
+ }
95
+ ._variant20_1yrim0e_54{
96
+ display:none;
97
+ }
98
+ }
99
+ ._alignIconLeft_11wfchh_7{
64
100
  --_rs-tag-flex-direction:row;
65
101
  }
66
- ._alignIconRight_1mtt76v_10{
102
+ ._alignIconRight_11wfchh_10{
67
103
  --_rs-tag-flex-direction:row-reverse;
68
104
  }
69
- ._uppercase_1mtt76v_14{
105
+ ._uppercase_11wfchh_14{
70
106
  --_rs-tag-text-transform:uppercase;
71
107
  --_rs-tag-horizontal-padding-or-initial:var(
72
108
  --_rs-tag-uppercase-horizontal-padding
73
109
  );
74
110
  }
75
- ._sizeXs_1mtt76v_18{
111
+ ._sizeXs_11wfchh_18{
76
112
  --_rs-tag-vertical-padding:2px;
77
113
  --_rs-tag-base-horizontal-padding:8px;
78
114
  --_rs-tag-uppercase-horizontal-padding:var(
@@ -113,7 +149,7 @@
113
149
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
114
150
  --_rs-typography-link-border-bottom-width-from-text:1px;
115
151
  }
116
- ._sizeS_1mtt76v_21{
152
+ ._sizeS_11wfchh_21{
117
153
  --_rs-tag-vertical-padding:4px;
118
154
  --_rs-tag-base-horizontal-padding:8px;
119
155
  --_rs-tag-uppercase-horizontal-padding:10px;
@@ -152,7 +188,7 @@
152
188
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
153
189
  --_rs-typography-link-border-bottom-width-from-text:1px;
154
190
  }
155
- ._sizeM_1mtt76v_24{
191
+ ._sizeM_11wfchh_24{
156
192
  --_rs-tag-vertical-padding:6px;
157
193
  --_rs-tag-base-horizontal-padding:12px;
158
194
  --_rs-tag-uppercase-horizontal-padding:var(
@@ -197,11 +233,11 @@
197
233
  --_rs-typography-link-border-bottom-width-from-text:1px;
198
234
  }
199
235
  @media screen and (max-width: 640px){
200
- ._sizeM_1mtt76v_24{
236
+ ._sizeM_11wfchh_24{
201
237
  --_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
202
238
  }
203
239
  }
204
- ._sizeL_1mtt76v_27{
240
+ ._sizeL_11wfchh_27{
205
241
  --_rs-tag-vertical-padding:8px;
206
242
  --_rs-tag-base-horizontal-padding:16px;
207
243
  --_rs-tag-uppercase-horizontal-padding:var(
@@ -246,11 +282,11 @@
246
282
  --_rs-typography-link-border-bottom-width-from-text:1px;
247
283
  }
248
284
  @media screen and (max-width: 640px){
249
- ._sizeL_1mtt76v_27{
285
+ ._sizeL_11wfchh_27{
250
286
  --_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
251
287
  }
252
288
  }
253
- ._main_1mtt76v_31{
289
+ ._main_11wfchh_31{
254
290
  --_rs-tag-border-width:1px;
255
291
 
256
292
  --_rs-tag-horizontal-padding:var(
@@ -291,24 +327,24 @@
291
327
  background:transparent;
292
328
  gap:8px;
293
329
  }
294
- ._main_1mtt76v_31 ._icon_1mtt76v_60{
330
+ ._main_11wfchh_31 ._icon_11wfchh_60{
295
331
  fill:currentColor;
296
332
 
297
333
  width:auto;
298
334
  height:var(--_rs-tag-icon-size);
299
335
  }
300
336
 
301
- ._main_fa6hox_1{
337
+ ._main_y6cjsz_1{
302
338
  border-radius:var(--_rs-tag-border-radius);
303
339
  }
304
340
 
305
- ._themeLight_16y0eqp_7{
341
+ ._themeLight_iglipf_7{
306
342
  --rs-theme-dark:0;
307
343
  }
308
- ._themeDark_16y0eqp_10{
344
+ ._themeDark_iglipf_10{
309
345
  --rs-theme-dark:1;
310
346
  }
311
- ._sizeXs_16y0eqp_14{
347
+ ._sizeXs_iglipf_14{
312
348
  --_rs-tag-removable-vertical-padding:2px;
313
349
  --_rs-tag-removable-left-padding:8px;
314
350
  --_rs-tag-removable-right-padding:2px;
@@ -316,10 +352,10 @@
316
352
  --_rs-tag-removable-close-icon-size:28px;
317
353
  --_rs-tag-removable-custom-icon-size:20px;
318
354
  }
319
- ._sizeXs_16y0eqp_14 [data-rs-internal="removable-tag__close-icon"]:not(html){
355
+ ._sizeXs_iglipf_14 [data-rs-internal="removable-tag__close-icon"]:not(html){
320
356
  --_rs-icons-height:20px;
321
357
  }
322
- ._sizeXs_16y0eqp_14 {
358
+ ._sizeXs_iglipf_14 {
323
359
  --_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
324
360
  --_rs-typography-text-transform:initial;
325
361
  --_rs-typography-font-variant-numeric:initial;
@@ -353,7 +389,7 @@
353
389
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
354
390
  --_rs-typography-link-border-bottom-width-from-text:1px;
355
391
  }
356
- ._sizeS_16y0eqp_17{
392
+ ._sizeS_iglipf_17{
357
393
  --_rs-tag-removable-vertical-padding:4px;
358
394
  --_rs-tag-removable-left-padding:8px;
359
395
  --_rs-tag-removable-right-padding:2px;
@@ -361,10 +397,10 @@
361
397
  --_rs-tag-removable-close-icon-size:28px;
362
398
  --_rs-tag-removable-custom-icon-size:20px;
363
399
  }
364
- ._sizeS_16y0eqp_17 [data-rs-internal="removable-tag__close-icon"]:not(html){
400
+ ._sizeS_iglipf_17 [data-rs-internal="removable-tag__close-icon"]:not(html){
365
401
  --_rs-icons-height:20px;
366
402
  }
367
- ._sizeS_16y0eqp_17 {
403
+ ._sizeS_iglipf_17 {
368
404
  --_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
369
405
  --_rs-typography-text-transform:initial;
370
406
  --_rs-typography-font-variant-numeric:initial;
@@ -398,7 +434,7 @@
398
434
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
399
435
  --_rs-typography-link-border-bottom-width-from-text:1px;
400
436
  }
401
- ._sizeM_16y0eqp_20{
437
+ ._sizeM_iglipf_20{
402
438
  --_rs-tag-removable-vertical-padding:6px;
403
439
  --_rs-tag-removable-left-padding:12px;
404
440
  --_rs-tag-removable-right-padding:2px;
@@ -406,10 +442,10 @@
406
442
  --_rs-tag-removable-close-icon-size:36px;
407
443
  --_rs-tag-removable-custom-icon-size:24px;
408
444
  }
409
- ._sizeM_16y0eqp_20 [data-rs-internal="removable-tag__close-icon"]:not(html){
445
+ ._sizeM_iglipf_20 [data-rs-internal="removable-tag__close-icon"]:not(html){
410
446
  --_rs-icons-height:24px;
411
447
  }
412
- ._sizeM_16y0eqp_20 {
448
+ ._sizeM_iglipf_20 {
413
449
  --_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
414
450
  --_rs-typography-text-transform:initial;
415
451
  --_rs-typography-font-variant-numeric:initial;
@@ -447,11 +483,11 @@
447
483
  --_rs-typography-link-border-bottom-width-from-text:1px;
448
484
  }
449
485
  @media screen and (max-width: 640px){
450
- ._sizeM_16y0eqp_20 {
486
+ ._sizeM_iglipf_20 {
451
487
  --_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
452
488
  }
453
489
  }
454
- ._sizeL_16y0eqp_23{
490
+ ._sizeL_iglipf_23{
455
491
  --_rs-tag-removable-vertical-padding:8px;
456
492
  --_rs-tag-removable-left-padding:16px;
457
493
  --_rs-tag-removable-right-padding:4px;
@@ -459,10 +495,10 @@
459
495
  --_rs-tag-removable-close-icon-size:44px;
460
496
  --_rs-tag-removable-custom-icon-size:28px;
461
497
  }
462
- ._sizeL_16y0eqp_23 [data-rs-internal="removable-tag__close-icon"]:not(html){
498
+ ._sizeL_iglipf_23 [data-rs-internal="removable-tag__close-icon"]:not(html){
463
499
  --_rs-icons-height:28px;
464
500
  }
465
- ._sizeL_16y0eqp_23 {
501
+ ._sizeL_iglipf_23 {
466
502
  --_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
467
503
  --_rs-typography-text-transform:initial;
468
504
  --_rs-typography-font-variant-numeric:initial;
@@ -500,11 +536,11 @@
500
536
  --_rs-typography-link-border-bottom-width-from-text:1px;
501
537
  }
502
538
  @media screen and (max-width: 640px){
503
- ._sizeL_16y0eqp_23 {
539
+ ._sizeL_iglipf_23 {
504
540
  --_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
505
541
  }
506
542
  }
507
- ._wrapper_16y0eqp_27{
543
+ ._wrapper_iglipf_27{
508
544
  --_rs-theme-dark:var(
509
545
  --_rs-internal-force-theme-dark-consult-rescui-before-using,
510
546
  var(--rs-theme-dark, 0)
@@ -514,7 +550,7 @@
514
550
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
515
551
  }
516
552
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
517
- ._wrapper_16y0eqp_27{
553
+ ._wrapper_iglipf_27{
518
554
  --_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)));
519
555
  --_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)));
520
556
  --_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)));
@@ -523,7 +559,7 @@
523
559
  }
524
560
  }
525
561
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
526
- ._wrapper_16y0eqp_27{
562
+ ._wrapper_iglipf_27{
527
563
  --_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);
528
564
  --_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));
529
565
  --_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));
@@ -531,7 +567,7 @@
531
567
  --_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));
532
568
  }
533
569
  }
534
- ._wrapper_16y0eqp_27 {
570
+ ._wrapper_iglipf_27 {
535
571
  letter-spacing:var(
536
572
  --rs-text-base-letter-spacing,
537
573
  var(--_rs-typography-letter-spacing)
@@ -560,17 +596,17 @@
560
596
 
561
597
  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);
562
598
  }
563
- ._wrapper_16y0eqp_27 > *{
599
+ ._wrapper_iglipf_27 > *{
564
600
  vertical-align:top;
565
601
  }
566
- ._disabled_16y0eqp_50{
602
+ ._disabled_iglipf_50{
567
603
  pointer-events:none;
568
604
  color:var(
569
605
  --rs-color-pale,
570
606
  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)
571
607
  );
572
608
  }
573
- ._main_16y0eqp_55{
609
+ ._main_iglipf_55{
574
610
  display:inline-flex;
575
611
  flex:1 1 auto;
576
612
  justify-content:center;
@@ -584,10 +620,10 @@
584
620
 
585
621
  background:transparent;
586
622
  }
587
- ._wrap_16y0eqp_27 ._main_16y0eqp_55{
623
+ ._wrap_iglipf_27 ._main_iglipf_55{
588
624
  white-space:normal;
589
625
  }
590
- ._close_16y0eqp_74{
626
+ ._close_iglipf_74{
591
627
  top:0;
592
628
  right:0;
593
629
  bottom:0;
@@ -615,33 +651,33 @@
615
651
  -webkit-font-smoothing:inherit;
616
652
  -moz-osx-font-smoothing:inherit;
617
653
  }
618
- ._close_16y0eqp_74::-moz-focus-inner{
654
+ ._close_iglipf_74::-moz-focus-inner{
619
655
  padding:0;
620
656
 
621
657
  border:0;
622
658
  }
623
- ._close_16y0eqp_74:active,
624
- ._close_16y0eqp_74:hover,
625
- ._close_16y0eqp_74:focus{
659
+ ._close_iglipf_74:active,
660
+ ._close_iglipf_74:hover,
661
+ ._close_iglipf_74:focus{
626
662
  outline:none;
627
663
 
628
664
  text-decoration:none;
629
665
  }
630
- ._close_16y0eqp_74:hover{
666
+ ._close_iglipf_74:hover{
631
667
  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));
632
668
  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);
633
669
  }
634
- ._close_16y0eqp_74:active{
670
+ ._close_iglipf_74:active{
635
671
  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));
636
672
  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);
637
673
  }
638
- ._close_16y0eqp_74:focus[data-focus-method='key']{
674
+ ._close_iglipf_74:focus[data-focus-method='key']{
639
675
  box-shadow:inset 0 0 0 4px var(--_rs-color-primary-dim);
640
676
  }
641
- ._disabled_16y0eqp_50 ._close_16y0eqp_74{
677
+ ._disabled_iglipf_50 ._close_iglipf_74{
642
678
  pointer-events:none;
643
679
  }
644
- ._icon_16y0eqp_135{
680
+ ._icon_iglipf_135{
645
681
  flex:1 0 auto;
646
682
 
647
683
  width:auto;
@@ -654,55 +690,55 @@
654
690
  fill:currentColor;
655
691
  }
656
692
 
657
- ._wrapper_3j5cc3_3{
693
+ ._wrapper_1375o9t_3{
658
694
  position:relative;
659
695
  }
660
- ._offset16_3j5cc3_7{
696
+ ._offset16_1375o9t_7{
661
697
  --_rs-tag-sticky-side-offset:16px;
662
698
  }
663
- ._offset24_3j5cc3_10{
699
+ ._offset24_1375o9t_10{
664
700
  --_rs-tag-sticky-side-offset:24px;
665
701
  }
666
- ._offset32_3j5cc3_13{
702
+ ._offset32_1375o9t_13{
667
703
  --_rs-tag-sticky-side-offset:32px;
668
704
  }
669
- ._alignTop_3j5cc3_17{
705
+ ._alignTop_1375o9t_17{
670
706
  --_rs-tag-sticky-border-radius:var(--_rs-tag-border-radius) var(--_rs-tag-border-radius) 0 0;
671
707
  --_rs-tag-sticky-translate-y:-100%;
672
708
  }
673
- ._alignMiddle_3j5cc3_20{
709
+ ._alignMiddle_1375o9t_20{
674
710
  --_rs-tag-sticky-border-radius:var(--_rs-tag-border-radius);
675
711
  --_rs-tag-sticky-translate-y:-50%;
676
712
  }
677
- ._topStart_3j5cc3_24{
713
+ ._topStart_1375o9t_24{
678
714
  --_rs-tag-sticky-top:0;
679
715
  --_rs-tag-sticky-right:initial;
680
716
  --_rs-tag-sticky-left:var(--_rs-tag-sticky-side-offset);
681
717
  --_rs-tag-sticky-transform:translate(0, var(--_rs-tag-sticky-translate-y));
682
718
  --_rs-tag-sticky-transform-origin:initial;
683
719
  }
684
- ._topEnd_3j5cc3_27{
720
+ ._topEnd_1375o9t_27{
685
721
  --_rs-tag-sticky-top:0;
686
722
  --_rs-tag-sticky-right:var(--_rs-tag-sticky-side-offset);
687
723
  --_rs-tag-sticky-left:initial;
688
724
  --_rs-tag-sticky-transform:translate(0, var(--_rs-tag-sticky-translate-y));
689
725
  --_rs-tag-sticky-transform-origin:initial;
690
726
  }
691
- ._leftStart_3j5cc3_30{
727
+ ._leftStart_1375o9t_30{
692
728
  --_rs-tag-sticky-top:var(--_rs-tag-sticky-side-offset);
693
729
  --_rs-tag-sticky-right:100%;
694
730
  --_rs-tag-sticky-left:initial;
695
731
  --_rs-tag-sticky-transform:rotate(270deg) translate(0, var(--_rs-tag-sticky-translate-y));
696
732
  --_rs-tag-sticky-transform-origin:100% 0;
697
733
  }
698
- ._leftEnd_3j5cc3_33{
734
+ ._leftEnd_1375o9t_33{
699
735
  --_rs-tag-sticky-top:calc(100% - var(--_rs-tag-sticky-side-offset));
700
736
  --_rs-tag-sticky-right:100%;
701
737
  --_rs-tag-sticky-left:initial;
702
738
  --_rs-tag-sticky-transform:rotate(270deg) translate(100%, var(--_rs-tag-sticky-translate-y));
703
739
  --_rs-tag-sticky-transform-origin:100% 0;
704
740
  }
705
- ._tag_3j5cc3_37{
741
+ ._tag_1375o9t_37{
706
742
  position:absolute;
707
743
  top:var(--_rs-tag-sticky-top);
708
744
  right:var(--_rs-tag-sticky-right);
@@ -29,7 +29,8 @@ const BaseTag = /*#__PURE__*/React.forwardRef( // eslint-disable-next-line compl
29
29
  } = _ref;
30
30
  const withIcon = /*#__PURE__*/React.isValidElement(icon);
31
31
  const iconSlot = withIcon && /*#__PURE__*/cloneElement(icon, {
32
- className: cn(icon.props.className, styles.icon)
32
+ className: cn(icon.props.className, styles.icon),
33
+ 'data-render-all-sizes': true
33
34
  });
34
35
  return /*#__PURE__*/React.createElement("span", {
35
36
  "data-test": 'tag',
@@ -1,12 +1,12 @@
1
1
  var styles = {
2
- "alignIconLeft": "_alignIconLeft_1mtt76v_7",
3
- "alignIconRight": "_alignIconRight_1mtt76v_10",
4
- "uppercase": "_uppercase_1mtt76v_14",
5
- "sizeXs": "_sizeXs_1mtt76v_18",
6
- "sizeS": "_sizeS_1mtt76v_21",
7
- "sizeM": "_sizeM_1mtt76v_24",
8
- "sizeL": "_sizeL_1mtt76v_27",
9
- "main": "_main_1mtt76v_31",
10
- "icon": "_icon_1mtt76v_60"
2
+ "alignIconLeft": "_alignIconLeft_11wfchh_7",
3
+ "alignIconRight": "_alignIconRight_11wfchh_10",
4
+ "uppercase": "_uppercase_11wfchh_14",
5
+ "sizeXs": "_sizeXs_11wfchh_18",
6
+ "sizeS": "_sizeS_11wfchh_21",
7
+ "sizeM": "_sizeM_11wfchh_24",
8
+ "sizeL": "_sizeL_11wfchh_27",
9
+ "main": "_main_11wfchh_31",
10
+ "icon": "_icon_11wfchh_60"
11
11
  };
12
12
  export { styles as default };
@@ -1,6 +1,6 @@
1
1
  import React, { cloneElement } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import cn from 'classnames';
3
+ import PropTypes from 'prop-types';
4
4
  import { useThemeWithUndefined } from '@rescui/ui-contexts';
5
5
  import CloseIcon from '../_virtual/close.js';
6
6
  import styles from './removable-tag.p.module.css.js';
@@ -34,7 +34,8 @@ const RemovableTag = /*#__PURE__*/React.forwardRef(function Tag(_ref, ref) {
34
34
  ...restProps,
35
35
  ref: ref
36
36
  }, /*#__PURE__*/React.isValidElement(icon) && /*#__PURE__*/cloneElement(icon, {
37
- className: cn(icon.props.className, styles.icon)
37
+ className: cn(icon.props.className, styles.icon),
38
+ 'data-render-all-sizes': true
38
39
  }), /*#__PURE__*/React.createElement("span", {
39
40
  className: styles.main,
40
41
  "data-test": "removable-tag"
@@ -48,7 +49,8 @@ const RemovableTag = /*#__PURE__*/React.forwardRef(function Tag(_ref, ref) {
48
49
  onRemoveClick();
49
50
  }
50
51
  }, /*#__PURE__*/React.createElement(CloseIcon, {
51
- "data-rs-internal": "removable-tag__close-icon"
52
+ "data-rs-internal": "removable-tag__close-icon",
53
+ "data-render-all-sizes": true
52
54
  })));
53
55
  });
54
56
  RemovableTag.propTypes = {
@@ -1,15 +1,15 @@
1
1
  var styles = {
2
- "themeLight": "_themeLight_16y0eqp_7",
3
- "themeDark": "_themeDark_16y0eqp_10",
4
- "sizeXs": "_sizeXs_16y0eqp_14",
5
- "sizeS": "_sizeS_16y0eqp_17",
6
- "sizeM": "_sizeM_16y0eqp_20",
7
- "sizeL": "_sizeL_16y0eqp_23",
8
- "wrapper": "_wrapper_16y0eqp_27",
9
- "disabled": "_disabled_16y0eqp_50",
10
- "main": "_main_16y0eqp_55",
11
- "wrap": "_wrap_16y0eqp_27",
12
- "close": "_close_16y0eqp_74",
13
- "icon": "_icon_16y0eqp_135"
2
+ "themeLight": "_themeLight_iglipf_7",
3
+ "themeDark": "_themeDark_iglipf_10",
4
+ "sizeXs": "_sizeXs_iglipf_14",
5
+ "sizeS": "_sizeS_iglipf_17",
6
+ "sizeM": "_sizeM_iglipf_20",
7
+ "sizeL": "_sizeL_iglipf_23",
8
+ "wrapper": "_wrapper_iglipf_27",
9
+ "disabled": "_disabled_iglipf_50",
10
+ "main": "_main_iglipf_55",
11
+ "wrap": "_wrap_iglipf_27",
12
+ "close": "_close_iglipf_74",
13
+ "icon": "_icon_iglipf_135"
14
14
  };
15
15
  export { styles as default };
@@ -1,14 +1,14 @@
1
1
  var styles = {
2
- "wrapper": "_wrapper_3j5cc3_3",
3
- "offset16": "_offset16_3j5cc3_7",
4
- "offset24": "_offset24_3j5cc3_10",
5
- "offset32": "_offset32_3j5cc3_13",
6
- "alignTop": "_alignTop_3j5cc3_17",
7
- "alignMiddle": "_alignMiddle_3j5cc3_20",
8
- "topStart": "_topStart_3j5cc3_24",
9
- "topEnd": "_topEnd_3j5cc3_27",
10
- "leftStart": "_leftStart_3j5cc3_30",
11
- "leftEnd": "_leftEnd_3j5cc3_33",
12
- "tag": "_tag_3j5cc3_37"
2
+ "wrapper": "_wrapper_1375o9t_3",
3
+ "offset16": "_offset16_1375o9t_7",
4
+ "offset24": "_offset24_1375o9t_10",
5
+ "offset32": "_offset32_1375o9t_13",
6
+ "alignTop": "_alignTop_1375o9t_17",
7
+ "alignMiddle": "_alignMiddle_1375o9t_20",
8
+ "topStart": "_topStart_1375o9t_24",
9
+ "topEnd": "_topEnd_1375o9t_27",
10
+ "leftStart": "_leftStart_1375o9t_30",
11
+ "leftEnd": "_leftEnd_1375o9t_33",
12
+ "tag": "_tag_1375o9t_37"
13
13
  };
14
14
  export { styles as default };
@@ -1,4 +1,4 @@
1
1
  var styles = {
2
- "main": "_main_fa6hox_1"
2
+ "main": "_main_y6cjsz_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.17",
3
+ "version": "0.10.19-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@babel/runtime-corejs3": "^7.26.0",
19
- "@rescui/colors": "^0.2.7",
19
+ "@rescui/colors": "0.2.9-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8",
20
20
  "classnames": "^2.3.1"
21
21
  },
22
22
  "peerDependencies": {
@@ -25,14 +25,14 @@
25
25
  "react": ">=16.8.0 <19"
26
26
  },
27
27
  "devDependencies": {
28
- "@rescui/icons": "^0.16.17",
29
- "@rescui/scripts": "^0.3.5",
30
- "@rescui/typography": "^0.23.0"
28
+ "@rescui/icons": "1.0.1-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8",
29
+ "@rescui/scripts": "0.4.0",
30
+ "@rescui/typography": "0.23.2-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8"
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": "f9a0228790b099e343e9017980e7635c12815bda"
37
+ "gitHead": "0fe433a8b558a82a822caf687a9da723f44aa041"
38
38
  }