@rescui/tag 0.10.11 → 0.10.13-RUI-226-Update-card-cn-6e43cc89.60
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/_virtual/close.js +90 -21
- package/lib/_virtual/index.css.js +12 -7
- package/lib/index.css +145 -152
- package/lib/parts/base-tag.js +31 -45
- package/lib/parts/base-tag.p.module.css.js +9 -9
- package/lib/parts/presets.js +7 -20
- package/lib/parts/removable-tag.js +26 -40
- package/lib/parts/removable-tag.p.module.css.js +12 -12
- package/lib/parts/sticky-tag.js +21 -39
- package/lib/parts/sticky-tag.p.module.css.js +11 -11
- package/lib/parts/tag.p.module.css.js +1 -1
- package/lib/public-api.p.css +42 -24
- package/lib/public-api.pcss +42 -24
- package/lib/tag.js +12 -27
- package/package.json +9 -9
package/lib/public-api.pcss
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
);
|
|
8
8
|
--_rs-tag-icon-size:20px;
|
|
9
9
|
--_rs-tag-border-radius:4px;
|
|
10
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
10
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
11
11
|
--_rs-typography-text-transform:initial;
|
|
12
12
|
--_rs-typography-font-variant-numeric:initial;
|
|
13
13
|
--_rs-typography-font-family:var(
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
--_rs-tag-uppercase-horizontal-padding:10px;
|
|
49
49
|
--_rs-tag-icon-size:20px;
|
|
50
50
|
--_rs-tag-border-radius:4px;
|
|
51
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
51
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
52
52
|
--_rs-typography-text-transform:initial;
|
|
53
53
|
--_rs-typography-font-variant-numeric:initial;
|
|
54
54
|
--_rs-typography-font-family:var(
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
);
|
|
92
92
|
--_rs-tag-icon-size:24px;
|
|
93
93
|
--_rs-tag-border-radius:6px;
|
|
94
|
-
--_rs-typography-letter-spacing:0.0015em;
|
|
94
|
+
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
95
95
|
--_rs-typography-text-transform:initial;
|
|
96
96
|
--_rs-typography-font-variant-numeric:initial;
|
|
97
97
|
--_rs-typography-font-family:var(
|
|
@@ -119,14 +119,17 @@
|
|
|
119
119
|
--_rs-typography-text-auto-offset:16px;
|
|
120
120
|
--_rs-typography-ul-list-li-padding-left:22px;
|
|
121
121
|
--_rs-typography-ol-list-li-padding-left:26px;
|
|
122
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
122
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
123
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text,
|
|
124
|
+
16px
|
|
125
|
+
);
|
|
123
126
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
124
127
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
125
128
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
126
129
|
}
|
|
127
130
|
@media screen and (max-width: 640px){
|
|
128
131
|
&:not(html){
|
|
129
|
-
--_rs-typography-list-li-margin-top-from-text:12px;
|
|
132
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
130
133
|
}
|
|
131
134
|
}
|
|
132
135
|
}
|
|
@@ -139,7 +142,7 @@
|
|
|
139
142
|
);
|
|
140
143
|
--_rs-tag-icon-size:28px;
|
|
141
144
|
--_rs-tag-border-radius:8px;
|
|
142
|
-
--_rs-typography-letter-spacing:normal;
|
|
145
|
+
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
143
146
|
--_rs-typography-text-transform:initial;
|
|
144
147
|
--_rs-typography-font-variant-numeric:initial;
|
|
145
148
|
--_rs-typography-font-family:var(
|
|
@@ -167,14 +170,17 @@
|
|
|
167
170
|
--_rs-typography-text-auto-offset:32px;
|
|
168
171
|
--_rs-typography-ul-list-li-padding-left:26px;
|
|
169
172
|
--_rs-typography-ol-list-li-padding-left:32px;
|
|
170
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
173
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
174
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text,
|
|
175
|
+
24px
|
|
176
|
+
);
|
|
171
177
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
172
178
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
173
179
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
174
180
|
}
|
|
175
181
|
@media screen and (max-width: 640px){
|
|
176
182
|
&:not(html){
|
|
177
|
-
--_rs-typography-list-li-margin-top-from-text:16px;
|
|
183
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
178
184
|
}
|
|
179
185
|
}
|
|
180
186
|
}
|
|
@@ -211,7 +217,7 @@
|
|
|
211
217
|
);
|
|
212
218
|
--_rs-tag-icon-size:20px;
|
|
213
219
|
--_rs-tag-border-radius:4px;
|
|
214
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
220
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
215
221
|
--_rs-typography-text-transform:initial;
|
|
216
222
|
--_rs-typography-font-variant-numeric:initial;
|
|
217
223
|
--_rs-typography-font-family:var(
|
|
@@ -252,7 +258,7 @@
|
|
|
252
258
|
--_rs-tag-uppercase-horizontal-padding:10px;
|
|
253
259
|
--_rs-tag-icon-size:20px;
|
|
254
260
|
--_rs-tag-border-radius:4px;
|
|
255
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
261
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
256
262
|
--_rs-typography-text-transform:initial;
|
|
257
263
|
--_rs-typography-font-variant-numeric:initial;
|
|
258
264
|
--_rs-typography-font-family:var(
|
|
@@ -295,7 +301,7 @@
|
|
|
295
301
|
);
|
|
296
302
|
--_rs-tag-icon-size:24px;
|
|
297
303
|
--_rs-tag-border-radius:6px;
|
|
298
|
-
--_rs-typography-letter-spacing:0.0015em;
|
|
304
|
+
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
299
305
|
--_rs-typography-text-transform:initial;
|
|
300
306
|
--_rs-typography-font-variant-numeric:initial;
|
|
301
307
|
--_rs-typography-font-family:var(
|
|
@@ -323,14 +329,17 @@
|
|
|
323
329
|
--_rs-typography-text-auto-offset:16px;
|
|
324
330
|
--_rs-typography-ul-list-li-padding-left:22px;
|
|
325
331
|
--_rs-typography-ol-list-li-padding-left:26px;
|
|
326
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
332
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
333
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text,
|
|
334
|
+
16px
|
|
335
|
+
);
|
|
327
336
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
328
337
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
329
338
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
330
339
|
}
|
|
331
340
|
@media screen and (max-width: 640px){
|
|
332
341
|
&:not(html){
|
|
333
|
-
--_rs-typography-list-li-margin-top-from-text:12px;
|
|
342
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
334
343
|
}
|
|
335
344
|
}
|
|
336
345
|
}
|
|
@@ -343,7 +352,7 @@
|
|
|
343
352
|
);
|
|
344
353
|
--_rs-tag-icon-size:28px;
|
|
345
354
|
--_rs-tag-border-radius:8px;
|
|
346
|
-
--_rs-typography-letter-spacing:normal;
|
|
355
|
+
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
347
356
|
--_rs-typography-text-transform:initial;
|
|
348
357
|
--_rs-typography-font-variant-numeric:initial;
|
|
349
358
|
--_rs-typography-font-family:var(
|
|
@@ -371,14 +380,17 @@
|
|
|
371
380
|
--_rs-typography-text-auto-offset:32px;
|
|
372
381
|
--_rs-typography-ul-list-li-padding-left:26px;
|
|
373
382
|
--_rs-typography-ol-list-li-padding-left:32px;
|
|
374
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
383
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
384
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text,
|
|
385
|
+
24px
|
|
386
|
+
);
|
|
375
387
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
376
388
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
377
389
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
378
390
|
}
|
|
379
391
|
@media screen and (max-width: 640px){
|
|
380
392
|
&:not(html){
|
|
381
|
-
--_rs-typography-list-li-margin-top-from-text:16px;
|
|
393
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
382
394
|
}
|
|
383
395
|
}
|
|
384
396
|
}
|
|
@@ -482,7 +494,7 @@
|
|
|
482
494
|
--_rs-icons-height:20px;
|
|
483
495
|
}
|
|
484
496
|
&:not(html){
|
|
485
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
497
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
486
498
|
--_rs-typography-text-transform:initial;
|
|
487
499
|
--_rs-typography-font-variant-numeric:initial;
|
|
488
500
|
--_rs-typography-font-family:var(
|
|
@@ -529,7 +541,7 @@
|
|
|
529
541
|
--_rs-icons-height:20px;
|
|
530
542
|
}
|
|
531
543
|
&:not(html){
|
|
532
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
544
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
533
545
|
--_rs-typography-text-transform:initial;
|
|
534
546
|
--_rs-typography-font-variant-numeric:initial;
|
|
535
547
|
--_rs-typography-font-family:var(
|
|
@@ -576,7 +588,7 @@
|
|
|
576
588
|
--_rs-icons-height:24px;
|
|
577
589
|
}
|
|
578
590
|
&:not(html){
|
|
579
|
-
--_rs-typography-letter-spacing:0.0015em;
|
|
591
|
+
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
580
592
|
--_rs-typography-text-transform:initial;
|
|
581
593
|
--_rs-typography-font-variant-numeric:initial;
|
|
582
594
|
--_rs-typography-font-family:var(
|
|
@@ -604,14 +616,17 @@
|
|
|
604
616
|
--_rs-typography-text-auto-offset:16px;
|
|
605
617
|
--_rs-typography-ul-list-li-padding-left:22px;
|
|
606
618
|
--_rs-typography-ol-list-li-padding-left:26px;
|
|
607
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
619
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
620
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text,
|
|
621
|
+
16px
|
|
622
|
+
);
|
|
608
623
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
609
624
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
610
625
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
611
626
|
}
|
|
612
627
|
@media screen and (max-width: 640px){
|
|
613
628
|
&:not(html){
|
|
614
|
-
--_rs-typography-list-li-margin-top-from-text:12px;
|
|
629
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
615
630
|
}
|
|
616
631
|
}
|
|
617
632
|
}
|
|
@@ -628,7 +643,7 @@
|
|
|
628
643
|
--_rs-icons-height:28px;
|
|
629
644
|
}
|
|
630
645
|
&:not(html){
|
|
631
|
-
--_rs-typography-letter-spacing:normal;
|
|
646
|
+
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
632
647
|
--_rs-typography-text-transform:initial;
|
|
633
648
|
--_rs-typography-font-variant-numeric:initial;
|
|
634
649
|
--_rs-typography-font-family:var(
|
|
@@ -656,14 +671,17 @@
|
|
|
656
671
|
--_rs-typography-text-auto-offset:32px;
|
|
657
672
|
--_rs-typography-ul-list-li-padding-left:26px;
|
|
658
673
|
--_rs-typography-ol-list-li-padding-left:32px;
|
|
659
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
674
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
675
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text,
|
|
676
|
+
24px
|
|
677
|
+
);
|
|
660
678
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
661
679
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
662
680
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
663
681
|
}
|
|
664
682
|
@media screen and (max-width: 640px){
|
|
665
683
|
&:not(html){
|
|
666
|
-
--_rs-typography-list-li-margin-top-from-text:16px;
|
|
684
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
667
685
|
}
|
|
668
686
|
}
|
|
669
687
|
}
|
package/lib/tag.js
CHANGED
|
@@ -1,38 +1,23 @@
|
|
|
1
|
-
import "core-js/modules/es.object.to-string.js";
|
|
2
|
-
import "core-js/modules/web.dom-collections.for-each.js";
|
|
3
|
-
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
4
|
-
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
5
|
-
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
6
|
-
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
7
|
-
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
8
|
-
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
9
|
-
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
10
|
-
var _excluded = ["className", "children", "size"];
|
|
11
|
-
|
|
12
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
-
|
|
14
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
-
|
|
16
1
|
import React from 'react';
|
|
17
2
|
import cn from 'classnames';
|
|
18
3
|
import PropTypes from 'prop-types';
|
|
19
4
|
import { BaseTag } from './parts/base-tag.js';
|
|
20
5
|
import styles from './parts/tag.p.module.css.js';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return /*#__PURE__*/React.createElement(BaseTag,
|
|
30
|
-
"data-test": 'tag'
|
|
31
|
-
|
|
6
|
+
const Tag = /*#__PURE__*/React.forwardRef( // eslint-disable-next-line complexity
|
|
7
|
+
(_ref, ref) => {
|
|
8
|
+
let {
|
|
9
|
+
className,
|
|
10
|
+
children,
|
|
11
|
+
size = 'xs',
|
|
12
|
+
...restProps
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/React.createElement(BaseTag, {
|
|
15
|
+
"data-test": 'tag',
|
|
16
|
+
...restProps,
|
|
32
17
|
size: size,
|
|
33
18
|
ref: ref,
|
|
34
19
|
className: cn(styles.main, className)
|
|
35
|
-
}
|
|
20
|
+
}, children);
|
|
36
21
|
});
|
|
37
22
|
Tag.displayName = 'Tag';
|
|
38
23
|
Tag.propTypes = {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/tag",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13-RUI-226-Update-card-cn-6e43cc89.60+6e43cc89",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
|
+
"module": "lib/index.js",
|
|
8
9
|
"src:main": "src/index.ts",
|
|
9
10
|
"files": [
|
|
10
11
|
"lib",
|
|
@@ -14,10 +15,9 @@
|
|
|
14
15
|
"access": "public"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
|
-
"@babel/runtime-corejs3": "^7.
|
|
18
|
-
"@rescui/colors": "
|
|
19
|
-
"classnames": "^2.3.1"
|
|
20
|
-
"core-js": "^3.9.1"
|
|
18
|
+
"@babel/runtime-corejs3": "^7.26.0",
|
|
19
|
+
"@rescui/colors": "0.2.7-RUI-226-Update-card-cn-6e43cc89.60+6e43cc89",
|
|
20
|
+
"classnames": "^2.3.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@rescui/ui-contexts": "^0.5.0",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"react": ">=16.8.0 <19"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@rescui/icons": "
|
|
29
|
-
"@rescui/scripts": "
|
|
30
|
-
"@rescui/typography": "
|
|
28
|
+
"@rescui/icons": "0.16.13-RUI-226-Update-card-cn-6e43cc89.60+6e43cc89",
|
|
29
|
+
"@rescui/scripts": "0.4.0",
|
|
30
|
+
"@rescui/typography": "0.19.2-RUI-226-Update-card-cn-6e43cc89.60+6e43cc89"
|
|
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": "
|
|
37
|
+
"gitHead": "6e43cc893fafb22b990273901bc0a070fb15761f"
|
|
38
38
|
}
|