@rescui/tag 0.10.12 → 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 +84 -14
- package/lib/_virtual/index.css.js +12 -7
- package/lib/index.css +131 -83
- package/lib/parts/base-tag.js +2 -1
- package/lib/parts/base-tag.p.module.css.js +9 -9
- package/lib/parts/removable-tag.js +5 -3
- package/lib/parts/removable-tag.p.module.css.js +12 -12
- 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/package.json +7 -6
package/lib/_virtual/close.js
CHANGED
|
@@ -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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
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": "
|
|
3
|
-
"sizeXS": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"light": "
|
|
8
|
-
"dark": "
|
|
2
|
+
"icon": "_icon_15yklic_4",
|
|
3
|
+
"sizeXS": "_sizeXS_15yklic_14",
|
|
4
|
+
"sizeS": "_sizeS_15yklic_18",
|
|
5
|
+
"sizeM": "_sizeM_15yklic_22",
|
|
6
|
+
"sizeL": "_sizeL_15yklic_26",
|
|
7
|
+
"light": "_light_15yklic_30",
|
|
8
|
+
"dark": "_dark_15yklic_34",
|
|
9
|
+
"allVariants": "_allVariants_15yklic_48",
|
|
10
|
+
"variant16": "_variant16_15yklic_53",
|
|
11
|
+
"variant20": "_variant20_15yklic_54",
|
|
12
|
+
"variant24": "_variant24_15yklic_55",
|
|
13
|
+
"variant28": "_variant28_15yklic_58"
|
|
9
14
|
};
|
|
10
15
|
export { styles as default };
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_15yklic_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
|
-
.
|
|
11
|
+
._icon_15yklic_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
|
-
.
|
|
20
|
+
._icon_15yklic_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
|
-
.
|
|
28
|
+
._icon_15yklic_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
|
-
.
|
|
35
|
+
._sizeXS_15yklic_14{
|
|
36
36
|
--_rs-icons-height:16px;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
._sizeS_15yklic_18{
|
|
39
39
|
--_rs-icons-height:20px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
._sizeM_15yklic_22{
|
|
42
42
|
--_rs-icons-height:24px;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._sizeL_15yklic_26{
|
|
45
45
|
--_rs-icons-height:28px;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
._light_15yklic_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
|
-
.
|
|
51
|
+
._dark_15yklic_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
|
-
.
|
|
63
|
+
._allVariants_15yklic_48{
|
|
64
|
+
aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
|
|
65
|
+
container:rs-icon / size;
|
|
66
|
+
}
|
|
67
|
+
._variant16_15yklic_53,
|
|
68
|
+
._variant20_15yklic_54,
|
|
69
|
+
._variant24_15yklic_55{
|
|
70
|
+
display:none;
|
|
71
|
+
}
|
|
72
|
+
._variant28_15yklic_58{
|
|
73
|
+
display:block;
|
|
74
|
+
}
|
|
75
|
+
@container rs-icon (max-height: 24px){
|
|
76
|
+
._variant24_15yklic_55{
|
|
77
|
+
display:block;
|
|
78
|
+
}
|
|
79
|
+
._variant28_15yklic_58{
|
|
80
|
+
display:none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
@container rs-icon (max-height: 20px){
|
|
84
|
+
._variant20_15yklic_54{
|
|
85
|
+
display:block;
|
|
86
|
+
}
|
|
87
|
+
._variant24_15yklic_55{
|
|
88
|
+
display:none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@container rs-icon (max-height: 16px){
|
|
92
|
+
._variant16_15yklic_53{
|
|
93
|
+
display:block;
|
|
94
|
+
}
|
|
95
|
+
._variant20_15yklic_54{
|
|
96
|
+
display:none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
._alignIconLeft_1xhj7j_7{
|
|
64
100
|
--_rs-tag-flex-direction:row;
|
|
65
101
|
}
|
|
66
|
-
.
|
|
102
|
+
._alignIconRight_1xhj7j_10{
|
|
67
103
|
--_rs-tag-flex-direction:row-reverse;
|
|
68
104
|
}
|
|
69
|
-
.
|
|
105
|
+
._uppercase_1xhj7j_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
|
-
.
|
|
111
|
+
._sizeXs_1xhj7j_18{
|
|
76
112
|
--_rs-tag-vertical-padding:2px;
|
|
77
113
|
--_rs-tag-base-horizontal-padding:8px;
|
|
78
114
|
--_rs-tag-uppercase-horizontal-padding:var(
|
|
@@ -80,7 +116,7 @@
|
|
|
80
116
|
);
|
|
81
117
|
--_rs-tag-icon-size:20px;
|
|
82
118
|
--_rs-tag-border-radius:4px;
|
|
83
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
119
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
84
120
|
--_rs-typography-text-transform:initial;
|
|
85
121
|
--_rs-typography-font-variant-numeric:initial;
|
|
86
122
|
--_rs-typography-font-family:var(
|
|
@@ -113,13 +149,13 @@
|
|
|
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
|
-
.
|
|
152
|
+
._sizeS_1xhj7j_21{
|
|
117
153
|
--_rs-tag-vertical-padding:4px;
|
|
118
154
|
--_rs-tag-base-horizontal-padding:8px;
|
|
119
155
|
--_rs-tag-uppercase-horizontal-padding:10px;
|
|
120
156
|
--_rs-tag-icon-size:20px;
|
|
121
157
|
--_rs-tag-border-radius:4px;
|
|
122
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
158
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
123
159
|
--_rs-typography-text-transform:initial;
|
|
124
160
|
--_rs-typography-font-variant-numeric:initial;
|
|
125
161
|
--_rs-typography-font-family:var(
|
|
@@ -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
|
-
.
|
|
191
|
+
._sizeM_1xhj7j_24{
|
|
156
192
|
--_rs-tag-vertical-padding:6px;
|
|
157
193
|
--_rs-tag-base-horizontal-padding:12px;
|
|
158
194
|
--_rs-tag-uppercase-horizontal-padding:var(
|
|
@@ -160,7 +196,7 @@
|
|
|
160
196
|
);
|
|
161
197
|
--_rs-tag-icon-size:24px;
|
|
162
198
|
--_rs-tag-border-radius:6px;
|
|
163
|
-
--_rs-typography-letter-spacing:0.0015em;
|
|
199
|
+
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
164
200
|
--_rs-typography-text-transform:initial;
|
|
165
201
|
--_rs-typography-font-variant-numeric:initial;
|
|
166
202
|
--_rs-typography-font-family:var(
|
|
@@ -188,17 +224,20 @@
|
|
|
188
224
|
--_rs-typography-text-auto-offset:16px;
|
|
189
225
|
--_rs-typography-ul-list-li-padding-left:22px;
|
|
190
226
|
--_rs-typography-ol-list-li-padding-left:26px;
|
|
191
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
227
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
228
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text,
|
|
229
|
+
16px
|
|
230
|
+
);
|
|
192
231
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
193
232
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
194
233
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
195
234
|
}
|
|
196
235
|
@media screen and (max-width: 640px){
|
|
197
|
-
.
|
|
198
|
-
--_rs-typography-list-li-margin-top-from-text:12px;
|
|
236
|
+
._sizeM_1xhj7j_24{
|
|
237
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
199
238
|
}
|
|
200
239
|
}
|
|
201
|
-
.
|
|
240
|
+
._sizeL_1xhj7j_27{
|
|
202
241
|
--_rs-tag-vertical-padding:8px;
|
|
203
242
|
--_rs-tag-base-horizontal-padding:16px;
|
|
204
243
|
--_rs-tag-uppercase-horizontal-padding:var(
|
|
@@ -206,7 +245,7 @@
|
|
|
206
245
|
);
|
|
207
246
|
--_rs-tag-icon-size:28px;
|
|
208
247
|
--_rs-tag-border-radius:8px;
|
|
209
|
-
--_rs-typography-letter-spacing:normal;
|
|
248
|
+
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
210
249
|
--_rs-typography-text-transform:initial;
|
|
211
250
|
--_rs-typography-font-variant-numeric:initial;
|
|
212
251
|
--_rs-typography-font-family:var(
|
|
@@ -234,17 +273,20 @@
|
|
|
234
273
|
--_rs-typography-text-auto-offset:32px;
|
|
235
274
|
--_rs-typography-ul-list-li-padding-left:26px;
|
|
236
275
|
--_rs-typography-ol-list-li-padding-left:32px;
|
|
237
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
276
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
277
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text,
|
|
278
|
+
24px
|
|
279
|
+
);
|
|
238
280
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
239
281
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
240
282
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
241
283
|
}
|
|
242
284
|
@media screen and (max-width: 640px){
|
|
243
|
-
.
|
|
244
|
-
--_rs-typography-list-li-margin-top-from-text:16px;
|
|
285
|
+
._sizeL_1xhj7j_27{
|
|
286
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
245
287
|
}
|
|
246
288
|
}
|
|
247
|
-
.
|
|
289
|
+
._main_1xhj7j_31{
|
|
248
290
|
--_rs-tag-border-width:1px;
|
|
249
291
|
|
|
250
292
|
--_rs-tag-horizontal-padding:var(
|
|
@@ -285,24 +327,24 @@
|
|
|
285
327
|
background:transparent;
|
|
286
328
|
gap:8px;
|
|
287
329
|
}
|
|
288
|
-
.
|
|
330
|
+
._main_1xhj7j_31 ._icon_1xhj7j_60{
|
|
289
331
|
fill:currentColor;
|
|
290
332
|
|
|
291
333
|
width:auto;
|
|
292
334
|
height:var(--_rs-tag-icon-size);
|
|
293
335
|
}
|
|
294
336
|
|
|
295
|
-
.
|
|
337
|
+
._main_48cl6x_1{
|
|
296
338
|
border-radius:var(--_rs-tag-border-radius);
|
|
297
339
|
}
|
|
298
340
|
|
|
299
|
-
.
|
|
341
|
+
._themeLight_1bjrvnd_7{
|
|
300
342
|
--rs-theme-dark:0;
|
|
301
343
|
}
|
|
302
|
-
.
|
|
344
|
+
._themeDark_1bjrvnd_10{
|
|
303
345
|
--rs-theme-dark:1;
|
|
304
346
|
}
|
|
305
|
-
.
|
|
347
|
+
._sizeXs_1bjrvnd_14{
|
|
306
348
|
--_rs-tag-removable-vertical-padding:2px;
|
|
307
349
|
--_rs-tag-removable-left-padding:8px;
|
|
308
350
|
--_rs-tag-removable-right-padding:2px;
|
|
@@ -310,11 +352,11 @@
|
|
|
310
352
|
--_rs-tag-removable-close-icon-size:28px;
|
|
311
353
|
--_rs-tag-removable-custom-icon-size:20px;
|
|
312
354
|
}
|
|
313
|
-
.
|
|
355
|
+
._sizeXs_1bjrvnd_14 [data-rs-internal="removable-tag__close-icon"]:not(html){
|
|
314
356
|
--_rs-icons-height:20px;
|
|
315
357
|
}
|
|
316
|
-
.
|
|
317
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
358
|
+
._sizeXs_1bjrvnd_14 {
|
|
359
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
318
360
|
--_rs-typography-text-transform:initial;
|
|
319
361
|
--_rs-typography-font-variant-numeric:initial;
|
|
320
362
|
--_rs-typography-font-family:var(
|
|
@@ -347,7 +389,7 @@
|
|
|
347
389
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
348
390
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
349
391
|
}
|
|
350
|
-
.
|
|
392
|
+
._sizeS_1bjrvnd_17{
|
|
351
393
|
--_rs-tag-removable-vertical-padding:4px;
|
|
352
394
|
--_rs-tag-removable-left-padding:8px;
|
|
353
395
|
--_rs-tag-removable-right-padding:2px;
|
|
@@ -355,11 +397,11 @@
|
|
|
355
397
|
--_rs-tag-removable-close-icon-size:28px;
|
|
356
398
|
--_rs-tag-removable-custom-icon-size:20px;
|
|
357
399
|
}
|
|
358
|
-
.
|
|
400
|
+
._sizeS_1bjrvnd_17 [data-rs-internal="removable-tag__close-icon"]:not(html){
|
|
359
401
|
--_rs-icons-height:20px;
|
|
360
402
|
}
|
|
361
|
-
.
|
|
362
|
-
--_rs-typography-letter-spacing:0.0045em;
|
|
403
|
+
._sizeS_1bjrvnd_17 {
|
|
404
|
+
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
363
405
|
--_rs-typography-text-transform:initial;
|
|
364
406
|
--_rs-typography-font-variant-numeric:initial;
|
|
365
407
|
--_rs-typography-font-family:var(
|
|
@@ -392,7 +434,7 @@
|
|
|
392
434
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
393
435
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
394
436
|
}
|
|
395
|
-
.
|
|
437
|
+
._sizeM_1bjrvnd_20{
|
|
396
438
|
--_rs-tag-removable-vertical-padding:6px;
|
|
397
439
|
--_rs-tag-removable-left-padding:12px;
|
|
398
440
|
--_rs-tag-removable-right-padding:2px;
|
|
@@ -400,11 +442,11 @@
|
|
|
400
442
|
--_rs-tag-removable-close-icon-size:36px;
|
|
401
443
|
--_rs-tag-removable-custom-icon-size:24px;
|
|
402
444
|
}
|
|
403
|
-
.
|
|
445
|
+
._sizeM_1bjrvnd_20 [data-rs-internal="removable-tag__close-icon"]:not(html){
|
|
404
446
|
--_rs-icons-height:24px;
|
|
405
447
|
}
|
|
406
|
-
.
|
|
407
|
-
--_rs-typography-letter-spacing:0.0015em;
|
|
448
|
+
._sizeM_1bjrvnd_20 {
|
|
449
|
+
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
408
450
|
--_rs-typography-text-transform:initial;
|
|
409
451
|
--_rs-typography-font-variant-numeric:initial;
|
|
410
452
|
--_rs-typography-font-family:var(
|
|
@@ -432,17 +474,20 @@
|
|
|
432
474
|
--_rs-typography-text-auto-offset:16px;
|
|
433
475
|
--_rs-typography-ul-list-li-padding-left:22px;
|
|
434
476
|
--_rs-typography-ol-list-li-padding-left:26px;
|
|
435
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
477
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
478
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text,
|
|
479
|
+
16px
|
|
480
|
+
);
|
|
436
481
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
437
482
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
438
483
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
439
484
|
}
|
|
440
485
|
@media screen and (max-width: 640px){
|
|
441
|
-
.
|
|
442
|
-
--_rs-typography-list-li-margin-top-from-text:12px;
|
|
486
|
+
._sizeM_1bjrvnd_20 {
|
|
487
|
+
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
443
488
|
}
|
|
444
489
|
}
|
|
445
|
-
.
|
|
490
|
+
._sizeL_1bjrvnd_23{
|
|
446
491
|
--_rs-tag-removable-vertical-padding:8px;
|
|
447
492
|
--_rs-tag-removable-left-padding:16px;
|
|
448
493
|
--_rs-tag-removable-right-padding:4px;
|
|
@@ -450,11 +495,11 @@
|
|
|
450
495
|
--_rs-tag-removable-close-icon-size:44px;
|
|
451
496
|
--_rs-tag-removable-custom-icon-size:28px;
|
|
452
497
|
}
|
|
453
|
-
.
|
|
498
|
+
._sizeL_1bjrvnd_23 [data-rs-internal="removable-tag__close-icon"]:not(html){
|
|
454
499
|
--_rs-icons-height:28px;
|
|
455
500
|
}
|
|
456
|
-
.
|
|
457
|
-
--_rs-typography-letter-spacing:normal;
|
|
501
|
+
._sizeL_1bjrvnd_23 {
|
|
502
|
+
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
458
503
|
--_rs-typography-text-transform:initial;
|
|
459
504
|
--_rs-typography-font-variant-numeric:initial;
|
|
460
505
|
--_rs-typography-font-family:var(
|
|
@@ -482,17 +527,20 @@
|
|
|
482
527
|
--_rs-typography-text-auto-offset:32px;
|
|
483
528
|
--_rs-typography-ul-list-li-padding-left:26px;
|
|
484
529
|
--_rs-typography-ol-list-li-padding-left:32px;
|
|
485
|
-
--_rs-typography-list-li-margin-top-from-text:
|
|
530
|
+
--_rs-typography-list-li-margin-top-from-text:var(
|
|
531
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text,
|
|
532
|
+
24px
|
|
533
|
+
);
|
|
486
534
|
--_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
|
|
487
535
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
488
536
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
489
537
|
}
|
|
490
538
|
@media screen and (max-width: 640px){
|
|
491
|
-
.
|
|
492
|
-
--_rs-typography-list-li-margin-top-from-text:16px;
|
|
539
|
+
._sizeL_1bjrvnd_23 {
|
|
540
|
+
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
493
541
|
}
|
|
494
542
|
}
|
|
495
|
-
.
|
|
543
|
+
._wrapper_1bjrvnd_27{
|
|
496
544
|
--_rs-theme-dark:var(
|
|
497
545
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
498
546
|
var(--rs-theme-dark, 0)
|
|
@@ -502,7 +550,7 @@
|
|
|
502
550
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
503
551
|
}
|
|
504
552
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
505
|
-
.
|
|
553
|
+
._wrapper_1bjrvnd_27{
|
|
506
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)));
|
|
507
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)));
|
|
508
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)));
|
|
@@ -511,7 +559,7 @@
|
|
|
511
559
|
}
|
|
512
560
|
}
|
|
513
561
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
514
|
-
.
|
|
562
|
+
._wrapper_1bjrvnd_27{
|
|
515
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);
|
|
516
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));
|
|
517
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));
|
|
@@ -519,7 +567,7 @@
|
|
|
519
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));
|
|
520
568
|
}
|
|
521
569
|
}
|
|
522
|
-
.
|
|
570
|
+
._wrapper_1bjrvnd_27 {
|
|
523
571
|
letter-spacing:var(
|
|
524
572
|
--rs-text-base-letter-spacing,
|
|
525
573
|
var(--_rs-typography-letter-spacing)
|
|
@@ -548,17 +596,17 @@
|
|
|
548
596
|
|
|
549
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);
|
|
550
598
|
}
|
|
551
|
-
.
|
|
599
|
+
._wrapper_1bjrvnd_27 > *{
|
|
552
600
|
vertical-align:top;
|
|
553
601
|
}
|
|
554
|
-
.
|
|
602
|
+
._disabled_1bjrvnd_50{
|
|
555
603
|
pointer-events:none;
|
|
556
604
|
color:var(
|
|
557
605
|
--rs-color-pale,
|
|
558
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)
|
|
559
607
|
);
|
|
560
608
|
}
|
|
561
|
-
.
|
|
609
|
+
._main_1bjrvnd_55{
|
|
562
610
|
display:inline-flex;
|
|
563
611
|
flex:1 1 auto;
|
|
564
612
|
justify-content:center;
|
|
@@ -572,10 +620,10 @@
|
|
|
572
620
|
|
|
573
621
|
background:transparent;
|
|
574
622
|
}
|
|
575
|
-
.
|
|
623
|
+
._wrap_1bjrvnd_27 ._main_1bjrvnd_55{
|
|
576
624
|
white-space:normal;
|
|
577
625
|
}
|
|
578
|
-
.
|
|
626
|
+
._close_1bjrvnd_74{
|
|
579
627
|
top:0;
|
|
580
628
|
right:0;
|
|
581
629
|
bottom:0;
|
|
@@ -603,33 +651,33 @@
|
|
|
603
651
|
-webkit-font-smoothing:inherit;
|
|
604
652
|
-moz-osx-font-smoothing:inherit;
|
|
605
653
|
}
|
|
606
|
-
.
|
|
654
|
+
._close_1bjrvnd_74::-moz-focus-inner{
|
|
607
655
|
padding:0;
|
|
608
656
|
|
|
609
657
|
border:0;
|
|
610
658
|
}
|
|
611
|
-
.
|
|
612
|
-
.
|
|
613
|
-
.
|
|
659
|
+
._close_1bjrvnd_74:active,
|
|
660
|
+
._close_1bjrvnd_74:hover,
|
|
661
|
+
._close_1bjrvnd_74:focus{
|
|
614
662
|
outline:none;
|
|
615
663
|
|
|
616
664
|
text-decoration:none;
|
|
617
665
|
}
|
|
618
|
-
.
|
|
666
|
+
._close_1bjrvnd_74:hover{
|
|
619
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));
|
|
620
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);
|
|
621
669
|
}
|
|
622
|
-
.
|
|
670
|
+
._close_1bjrvnd_74:active{
|
|
623
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));
|
|
624
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);
|
|
625
673
|
}
|
|
626
|
-
.
|
|
674
|
+
._close_1bjrvnd_74:focus[data-focus-method='key']{
|
|
627
675
|
box-shadow:inset 0 0 0 4px var(--_rs-color-primary-dim);
|
|
628
676
|
}
|
|
629
|
-
.
|
|
677
|
+
._disabled_1bjrvnd_50 ._close_1bjrvnd_74{
|
|
630
678
|
pointer-events:none;
|
|
631
679
|
}
|
|
632
|
-
.
|
|
680
|
+
._icon_1bjrvnd_135{
|
|
633
681
|
flex:1 0 auto;
|
|
634
682
|
|
|
635
683
|
width:auto;
|
|
@@ -642,55 +690,55 @@
|
|
|
642
690
|
fill:currentColor;
|
|
643
691
|
}
|
|
644
692
|
|
|
645
|
-
.
|
|
693
|
+
._wrapper_octfqj_3{
|
|
646
694
|
position:relative;
|
|
647
695
|
}
|
|
648
|
-
.
|
|
696
|
+
._offset16_octfqj_7{
|
|
649
697
|
--_rs-tag-sticky-side-offset:16px;
|
|
650
698
|
}
|
|
651
|
-
.
|
|
699
|
+
._offset24_octfqj_10{
|
|
652
700
|
--_rs-tag-sticky-side-offset:24px;
|
|
653
701
|
}
|
|
654
|
-
.
|
|
702
|
+
._offset32_octfqj_13{
|
|
655
703
|
--_rs-tag-sticky-side-offset:32px;
|
|
656
704
|
}
|
|
657
|
-
.
|
|
705
|
+
._alignTop_octfqj_17{
|
|
658
706
|
--_rs-tag-sticky-border-radius:var(--_rs-tag-border-radius) var(--_rs-tag-border-radius) 0 0;
|
|
659
707
|
--_rs-tag-sticky-translate-y:-100%;
|
|
660
708
|
}
|
|
661
|
-
.
|
|
709
|
+
._alignMiddle_octfqj_20{
|
|
662
710
|
--_rs-tag-sticky-border-radius:var(--_rs-tag-border-radius);
|
|
663
711
|
--_rs-tag-sticky-translate-y:-50%;
|
|
664
712
|
}
|
|
665
|
-
.
|
|
713
|
+
._topStart_octfqj_24{
|
|
666
714
|
--_rs-tag-sticky-top:0;
|
|
667
715
|
--_rs-tag-sticky-right:initial;
|
|
668
716
|
--_rs-tag-sticky-left:var(--_rs-tag-sticky-side-offset);
|
|
669
717
|
--_rs-tag-sticky-transform:translate(0, var(--_rs-tag-sticky-translate-y));
|
|
670
718
|
--_rs-tag-sticky-transform-origin:initial;
|
|
671
719
|
}
|
|
672
|
-
.
|
|
720
|
+
._topEnd_octfqj_27{
|
|
673
721
|
--_rs-tag-sticky-top:0;
|
|
674
722
|
--_rs-tag-sticky-right:var(--_rs-tag-sticky-side-offset);
|
|
675
723
|
--_rs-tag-sticky-left:initial;
|
|
676
724
|
--_rs-tag-sticky-transform:translate(0, var(--_rs-tag-sticky-translate-y));
|
|
677
725
|
--_rs-tag-sticky-transform-origin:initial;
|
|
678
726
|
}
|
|
679
|
-
.
|
|
727
|
+
._leftStart_octfqj_30{
|
|
680
728
|
--_rs-tag-sticky-top:var(--_rs-tag-sticky-side-offset);
|
|
681
729
|
--_rs-tag-sticky-right:100%;
|
|
682
730
|
--_rs-tag-sticky-left:initial;
|
|
683
731
|
--_rs-tag-sticky-transform:rotate(270deg) translate(0, var(--_rs-tag-sticky-translate-y));
|
|
684
732
|
--_rs-tag-sticky-transform-origin:100% 0;
|
|
685
733
|
}
|
|
686
|
-
.
|
|
734
|
+
._leftEnd_octfqj_33{
|
|
687
735
|
--_rs-tag-sticky-top:calc(100% - var(--_rs-tag-sticky-side-offset));
|
|
688
736
|
--_rs-tag-sticky-right:100%;
|
|
689
737
|
--_rs-tag-sticky-left:initial;
|
|
690
738
|
--_rs-tag-sticky-transform:rotate(270deg) translate(100%, var(--_rs-tag-sticky-translate-y));
|
|
691
739
|
--_rs-tag-sticky-transform-origin:100% 0;
|
|
692
740
|
}
|
|
693
|
-
.
|
|
741
|
+
._tag_octfqj_37{
|
|
694
742
|
position:absolute;
|
|
695
743
|
top:var(--_rs-tag-sticky-top);
|
|
696
744
|
right:var(--_rs-tag-sticky-right);
|
package/lib/parts/base-tag.js
CHANGED
|
@@ -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": "
|
|
3
|
-
"alignIconRight": "
|
|
4
|
-
"uppercase": "
|
|
5
|
-
"sizeXs": "
|
|
6
|
-
"sizeS": "
|
|
7
|
-
"sizeM": "
|
|
8
|
-
"sizeL": "
|
|
9
|
-
"main": "
|
|
10
|
-
"icon": "
|
|
2
|
+
"alignIconLeft": "_alignIconLeft_1xhj7j_7",
|
|
3
|
+
"alignIconRight": "_alignIconRight_1xhj7j_10",
|
|
4
|
+
"uppercase": "_uppercase_1xhj7j_14",
|
|
5
|
+
"sizeXs": "_sizeXs_1xhj7j_18",
|
|
6
|
+
"sizeS": "_sizeS_1xhj7j_21",
|
|
7
|
+
"sizeM": "_sizeM_1xhj7j_24",
|
|
8
|
+
"sizeL": "_sizeL_1xhj7j_27",
|
|
9
|
+
"main": "_main_1xhj7j_31",
|
|
10
|
+
"icon": "_icon_1xhj7j_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": "
|
|
3
|
-
"themeDark": "
|
|
4
|
-
"sizeXs": "
|
|
5
|
-
"sizeS": "
|
|
6
|
-
"sizeM": "
|
|
7
|
-
"sizeL": "
|
|
8
|
-
"wrapper": "
|
|
9
|
-
"disabled": "
|
|
10
|
-
"main": "
|
|
11
|
-
"wrap": "
|
|
12
|
-
"close": "
|
|
13
|
-
"icon": "
|
|
2
|
+
"themeLight": "_themeLight_1bjrvnd_7",
|
|
3
|
+
"themeDark": "_themeDark_1bjrvnd_10",
|
|
4
|
+
"sizeXs": "_sizeXs_1bjrvnd_14",
|
|
5
|
+
"sizeS": "_sizeS_1bjrvnd_17",
|
|
6
|
+
"sizeM": "_sizeM_1bjrvnd_20",
|
|
7
|
+
"sizeL": "_sizeL_1bjrvnd_23",
|
|
8
|
+
"wrapper": "_wrapper_1bjrvnd_27",
|
|
9
|
+
"disabled": "_disabled_1bjrvnd_50",
|
|
10
|
+
"main": "_main_1bjrvnd_55",
|
|
11
|
+
"wrap": "_wrap_1bjrvnd_27",
|
|
12
|
+
"close": "_close_1bjrvnd_74",
|
|
13
|
+
"icon": "_icon_1bjrvnd_135"
|
|
14
14
|
};
|
|
15
15
|
export { styles as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"wrapper": "
|
|
3
|
-
"offset16": "
|
|
4
|
-
"offset24": "
|
|
5
|
-
"offset32": "
|
|
6
|
-
"alignTop": "
|
|
7
|
-
"alignMiddle": "
|
|
8
|
-
"topStart": "
|
|
9
|
-
"topEnd": "
|
|
10
|
-
"leftStart": "
|
|
11
|
-
"leftEnd": "
|
|
12
|
-
"tag": "
|
|
2
|
+
"wrapper": "_wrapper_octfqj_3",
|
|
3
|
+
"offset16": "_offset16_octfqj_7",
|
|
4
|
+
"offset24": "_offset24_octfqj_10",
|
|
5
|
+
"offset32": "_offset32_octfqj_13",
|
|
6
|
+
"alignTop": "_alignTop_octfqj_17",
|
|
7
|
+
"alignMiddle": "_alignMiddle_octfqj_20",
|
|
8
|
+
"topStart": "_topStart_octfqj_24",
|
|
9
|
+
"topEnd": "_topEnd_octfqj_27",
|
|
10
|
+
"leftStart": "_leftStart_octfqj_30",
|
|
11
|
+
"leftEnd": "_leftEnd_octfqj_33",
|
|
12
|
+
"tag": "_tag_octfqj_37"
|
|
13
13
|
};
|
|
14
14
|
export { styles as default };
|
package/lib/public-api.p.css
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/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/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",
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"@babel/runtime-corejs3": "^7.26.0",
|
|
18
|
-
"@rescui/colors": "
|
|
19
|
+
"@rescui/colors": "0.2.7-RUI-226-Update-card-cn-6e43cc89.60+6e43cc89",
|
|
19
20
|
"classnames": "^2.3.1"
|
|
20
21
|
},
|
|
21
22
|
"peerDependencies": {
|
|
@@ -24,14 +25,14 @@
|
|
|
24
25
|
"react": ">=16.8.0 <19"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@rescui/icons": "
|
|
28
|
-
"@rescui/scripts": "
|
|
29
|
-
"@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"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
|
32
33
|
"build": "rescui-scripts build && yarn run build-pcss-api",
|
|
33
34
|
"build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
|
|
34
35
|
},
|
|
35
36
|
"nx": {},
|
|
36
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "6e43cc893fafb22b990273901bc0a070fb15761f"
|
|
37
38
|
}
|