@rescui/input 0.11.14 → 0.11.16
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/_virtual/loading.js +100 -22
- package/lib/_virtual/warning.js +84 -14
- package/lib/index.css +163 -127
- package/lib/input.js +3 -2
- package/lib/input.p.module.css.js +28 -28
- package/lib/parts/custom-icon.js +1 -0
- package/lib/parts/right-icons.js +4 -2
- package/package.json +7 -7
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__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
19
|
+
viewBox: "0 0 16 16"
|
|
20
|
+
}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}), /*#__PURE__*/React__default.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__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
27
|
+
viewBox: "0 0 20 20"
|
|
28
|
+
}, props, {
|
|
29
|
+
ref: ref
|
|
30
|
+
}), /*#__PURE__*/React__default.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__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
35
|
+
viewBox: "0 0 24 24"
|
|
36
|
+
}, props, {
|
|
37
|
+
ref: ref
|
|
38
|
+
}), /*#__PURE__*/React__default.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__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
43
|
+
viewBox: "0 0 28 28"
|
|
44
|
+
}, props, {
|
|
45
|
+
ref: ref
|
|
46
|
+
}), /*#__PURE__*/React__default.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__default.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__default.createElement("svg", _extends({
|
|
72
|
+
viewBox: "0 0 28 28"
|
|
73
|
+
}, mainProps), /*#__PURE__*/React__default.createElement(CloseIcon16, {
|
|
74
|
+
className: styles.variant16
|
|
75
|
+
}), /*#__PURE__*/React__default.createElement(CloseIcon20, {
|
|
76
|
+
className: styles.variant20
|
|
77
|
+
}), /*#__PURE__*/React__default.createElement(CloseIcon24, {
|
|
78
|
+
className: styles.variant24
|
|
79
|
+
}), /*#__PURE__*/React__default.createElement(CloseIcon28, {
|
|
80
|
+
className: styles.variant28
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (size === Size['xs']) {
|
|
85
|
+
return /*#__PURE__*/React__default.createElement(CloseIcon16, mainProps);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (size === Size['s']) {
|
|
89
|
+
return /*#__PURE__*/React__default.createElement(CloseIcon20, mainProps);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (size === Size['m']) {
|
|
93
|
+
return /*#__PURE__*/React__default.createElement(CloseIcon24, mainProps);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return /*#__PURE__*/React__default.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_oeje7x_4",
|
|
3
|
+
"sizeXS": "_sizeXS_oeje7x_14",
|
|
4
|
+
"sizeS": "_sizeS_oeje7x_18",
|
|
5
|
+
"sizeM": "_sizeM_oeje7x_22",
|
|
6
|
+
"sizeL": "_sizeL_oeje7x_26",
|
|
7
|
+
"light": "_light_oeje7x_30",
|
|
8
|
+
"dark": "_dark_oeje7x_34",
|
|
9
|
+
"allVariants": "_allVariants_oeje7x_48",
|
|
10
|
+
"variant16": "_variant16_oeje7x_53",
|
|
11
|
+
"variant20": "_variant20_oeje7x_54",
|
|
12
|
+
"variant24": "_variant24_oeje7x_55",
|
|
13
|
+
"variant28": "_variant28_oeje7x_58"
|
|
9
14
|
};
|
|
10
15
|
export { styles as default };
|
package/lib/_virtual/loading.js
CHANGED
|
@@ -9,36 +9,114 @@ 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 LoadingIcon16 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
19
|
+
viewBox: "0 0 16 16"
|
|
20
|
+
}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
23
|
+
d: "M8 3.25a4.75 4.75 0 1 0 4.686 3.968.75.75 0 1 1 1.48-.245q.083.503.084 1.027a6.25 6.25 0 1 1-5.223-6.166.75.75 0 0 1-.245 1.48A5 5 0 0 0 8 3.25",
|
|
24
|
+
style: {
|
|
25
|
+
animation: "rs-icon-rotate 1s linear infinite",
|
|
26
|
+
transformOrigin: "center center"
|
|
27
|
+
}
|
|
28
|
+
})));
|
|
29
|
+
LoadingIcon16.displayName = 'LoadingIcon16';
|
|
30
|
+
const LoadingIcon20 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
31
|
+
viewBox: "0 0 20 20"
|
|
32
|
+
}, props, {
|
|
33
|
+
ref: ref
|
|
34
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
35
|
+
d: "M10 4a6 6 0 1 0 5.92 5.012 1 1 0 0 1 1.972-.326Q18 9.329 18 10a8 8 0 1 1-6.686-7.892 1 1 0 0 1-.326 1.973A6 6 0 0 0 10 4",
|
|
36
|
+
style: {
|
|
37
|
+
animation: "rs-icon-rotate 1s linear infinite",
|
|
38
|
+
transformOrigin: "center center"
|
|
39
|
+
}
|
|
40
|
+
})));
|
|
41
|
+
LoadingIcon20.displayName = 'LoadingIcon20';
|
|
42
|
+
const LoadingIcon24 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
43
|
+
viewBox: "0 0 24 24"
|
|
44
|
+
}, props, {
|
|
45
|
+
ref: ref
|
|
46
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
47
|
+
d: "M12 6a6 6 0 1 0 5.92 5.012 1.5 1.5 0 0 1 2.959-.49q.12.724.121 1.478a9 9 0 1 1-7.522-8.879 1.5 1.5 0 0 1-.49 2.96Q12.508 6 12 6",
|
|
48
|
+
style: {
|
|
49
|
+
animation: "rs-icon-rotate 1s linear infinite",
|
|
50
|
+
transformOrigin: "center center"
|
|
51
|
+
}
|
|
52
|
+
})));
|
|
53
|
+
LoadingIcon24.displayName = 'LoadingIcon24';
|
|
54
|
+
const LoadingIcon28 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
55
|
+
viewBox: "0 0 28 28"
|
|
56
|
+
}, props, {
|
|
57
|
+
ref: ref
|
|
58
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
59
|
+
d: "M14 6.5a7.5 7.5 0 1 0 7.399 6.265 1.5 1.5 0 0 1 2.96-.49q.14.844.141 1.725c0 5.799-4.701 10.5-10.5 10.5S3.5 19.799 3.5 14 8.201 3.5 14 3.5q.813 0 1.595.12a1.5 1.5 0 0 1-.453 2.966A7.6 7.6 0 0 0 14 6.5",
|
|
60
|
+
style: {
|
|
61
|
+
animation: "rs-icon-rotate 1s linear infinite",
|
|
62
|
+
transformOrigin: "center center"
|
|
63
|
+
}
|
|
64
|
+
})));
|
|
65
|
+
LoadingIcon28.displayName = 'LoadingIcon28';
|
|
12
66
|
const LoadingIcon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
13
67
|
let {
|
|
14
68
|
theme,
|
|
15
|
-
size,
|
|
69
|
+
size: sizeFromProps = "m",
|
|
16
70
|
className,
|
|
71
|
+
style,
|
|
72
|
+
['data-render-all-sizes']: renderAllSizes = false,
|
|
17
73
|
...props
|
|
18
74
|
} = _ref;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
75
|
+
const size = sizeFromProps in Size ? sizeFromProps : "m";
|
|
76
|
+
const mainProps = { ...props,
|
|
77
|
+
className: cn(styles.icon, styles[theme], sizeStyles[size], renderAllSizes && styles.allVariants, className),
|
|
78
|
+
style: renderAllSizes ? {
|
|
79
|
+
'--rs-icon-ar-width': 28,
|
|
80
|
+
'--rs-icon-ar-height': 28,
|
|
81
|
+
...style
|
|
82
|
+
} : style,
|
|
83
|
+
ref
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
if (renderAllSizes) {
|
|
87
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
88
|
+
viewBox: "0 0 28 28"
|
|
89
|
+
}, mainProps), /*#__PURE__*/React__default.createElement(LoadingIcon16, {
|
|
90
|
+
className: styles.variant16
|
|
91
|
+
}), /*#__PURE__*/React__default.createElement(LoadingIcon20, {
|
|
92
|
+
className: styles.variant20
|
|
93
|
+
}), /*#__PURE__*/React__default.createElement(LoadingIcon24, {
|
|
94
|
+
className: styles.variant24
|
|
95
|
+
}), /*#__PURE__*/React__default.createElement(LoadingIcon28, {
|
|
96
|
+
className: styles.variant28
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (size === Size['xs']) {
|
|
101
|
+
return /*#__PURE__*/React__default.createElement(LoadingIcon16, mainProps);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (size === Size['s']) {
|
|
105
|
+
return /*#__PURE__*/React__default.createElement(LoadingIcon20, mainProps);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (size === Size['m']) {
|
|
109
|
+
return /*#__PURE__*/React__default.createElement(LoadingIcon24, mainProps);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return /*#__PURE__*/React__default.createElement(LoadingIcon28, mainProps);
|
|
35
113
|
});
|
|
114
|
+
LoadingIcon.displayName = 'LoadingIcon';
|
|
36
115
|
LoadingIcon.propTypes = {
|
|
37
116
|
className: PropTypes.string,
|
|
38
117
|
theme: PropTypes.oneOf(["light", "dark"]),
|
|
39
|
-
size: PropTypes.oneOf(["xs", "s", "m", "l"])
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
size: "m"
|
|
118
|
+
size: PropTypes.oneOf(["xs", "s", "m", "l"]),
|
|
119
|
+
'data-render-all-sizes': PropTypes.bool,
|
|
120
|
+
style: PropTypes.object
|
|
43
121
|
};
|
|
44
|
-
export { LoadingIcon as default };
|
|
122
|
+
export { Size, LoadingIcon as default };
|
package/lib/_virtual/warning.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 WarningIcon16 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
19
|
+
viewBox: "0 0 16 16"
|
|
20
|
+
}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
23
|
+
d: "m6.303 1.989-5.027 8.874C.483 12.263 1.494 14 3.103 14h9.793c1.609 0 2.62-1.736 1.827-3.137L9.696 1.99C8.949.67 7.05.67 6.303 1.989M8 12a1 1 0 1 1 0-2 1 1 0 0 1 0 2m0-8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0v-4A.5.5 0 0 1 8 4"
|
|
24
|
+
})));
|
|
25
|
+
WarningIcon16.displayName = 'WarningIcon16';
|
|
26
|
+
const WarningIcon20 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
27
|
+
viewBox: "0 0 20 20"
|
|
28
|
+
}, props, {
|
|
29
|
+
ref: ref
|
|
30
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
31
|
+
d: "m8.042 3.141-5.8 10.24C1.327 14.997 2.494 17 4.35 17h11.3c1.856 0 3.023-2.003 2.108-3.62l-5.8-10.239c-.862-1.521-3.054-1.521-3.916 0M10 5.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V6a.75.75 0 0 1 .75-.75m0 9.25a1 1 0 1 1 0-2 1 1 0 0 1 0 2"
|
|
32
|
+
})));
|
|
33
|
+
WarningIcon20.displayName = 'WarningIcon20';
|
|
34
|
+
const WarningIcon24 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
35
|
+
viewBox: "0 0 24 24"
|
|
36
|
+
}, props, {
|
|
37
|
+
ref: ref
|
|
38
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
39
|
+
d: "m9.52 3.446-7.346 12.97C1.014 18.463 2.492 21 4.844 21h14.312c2.352 0 3.83-2.537 2.67-4.584L14.48 3.446c-1.092-1.928-3.868-1.928-4.96 0M12 7a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1m0 11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"
|
|
40
|
+
})));
|
|
41
|
+
WarningIcon24.displayName = 'WarningIcon24';
|
|
42
|
+
const WarningIcon28 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
43
|
+
viewBox: "0 0 28 28"
|
|
44
|
+
}, props, {
|
|
45
|
+
ref: ref
|
|
46
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
47
|
+
d: "M11.26 4.598 3.14 18.933C1.858 21.195 3.492 24 6.09 24h15.82c2.599 0 4.232-2.805 2.951-5.067l-8.12-14.335c-1.207-2.13-4.275-2.13-5.481 0M14 8a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1m0 12a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"
|
|
48
|
+
})));
|
|
49
|
+
WarningIcon28.displayName = 'WarningIcon28';
|
|
12
50
|
const WarningIcon = /*#__PURE__*/React__default.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__default.createElement("svg", _extends({
|
|
72
|
+
viewBox: "0 0 28 28"
|
|
73
|
+
}, mainProps), /*#__PURE__*/React__default.createElement(WarningIcon16, {
|
|
74
|
+
className: styles.variant16
|
|
75
|
+
}), /*#__PURE__*/React__default.createElement(WarningIcon20, {
|
|
76
|
+
className: styles.variant20
|
|
77
|
+
}), /*#__PURE__*/React__default.createElement(WarningIcon24, {
|
|
78
|
+
className: styles.variant24
|
|
79
|
+
}), /*#__PURE__*/React__default.createElement(WarningIcon28, {
|
|
80
|
+
className: styles.variant28
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (size === Size['xs']) {
|
|
85
|
+
return /*#__PURE__*/React__default.createElement(WarningIcon16, mainProps);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (size === Size['s']) {
|
|
89
|
+
return /*#__PURE__*/React__default.createElement(WarningIcon20, mainProps);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (size === Size['m']) {
|
|
93
|
+
return /*#__PURE__*/React__default.createElement(WarningIcon24, mainProps);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return /*#__PURE__*/React__default.createElement(WarningIcon28, mainProps);
|
|
27
97
|
});
|
|
98
|
+
WarningIcon.displayName = 'WarningIcon';
|
|
28
99
|
WarningIcon.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 { WarningIcon as default };
|
|
106
|
+
export { Size, WarningIcon as default };
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_oeje7x_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_oeje7x_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_oeje7x_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_oeje7x_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_oeje7x_14{
|
|
36
36
|
--_rs-icons-height:16px;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
._sizeS_oeje7x_18{
|
|
39
39
|
--_rs-icons-height:20px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
._sizeM_oeje7x_22{
|
|
42
42
|
--_rs-icons-height:24px;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._sizeL_oeje7x_26{
|
|
45
45
|
--_rs-icons-height:28px;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
._light_oeje7x_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_oeje7x_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,20 +60,56 @@
|
|
|
60
60
|
transform:rotate(360deg);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
._allVariants_oeje7x_48{
|
|
64
|
+
aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
|
|
65
|
+
container:rs-icon / size;
|
|
66
|
+
}
|
|
67
|
+
._variant16_oeje7x_53,
|
|
68
|
+
._variant20_oeje7x_54,
|
|
69
|
+
._variant24_oeje7x_55{
|
|
70
|
+
display:none;
|
|
71
|
+
}
|
|
72
|
+
._variant28_oeje7x_58{
|
|
73
|
+
display:block;
|
|
74
|
+
}
|
|
75
|
+
@container rs-icon (max-height: 24px){
|
|
76
|
+
._variant24_oeje7x_55{
|
|
77
|
+
display:block;
|
|
78
|
+
}
|
|
79
|
+
._variant28_oeje7x_58{
|
|
80
|
+
display:none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
@container rs-icon (max-height: 20px){
|
|
84
|
+
._variant20_oeje7x_54{
|
|
85
|
+
display:block;
|
|
86
|
+
}
|
|
87
|
+
._variant24_oeje7x_55{
|
|
88
|
+
display:none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@container rs-icon (max-height: 16px){
|
|
92
|
+
._variant16_oeje7x_53{
|
|
93
|
+
display:block;
|
|
94
|
+
}
|
|
95
|
+
._variant20_oeje7x_54{
|
|
96
|
+
display:none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
._light_k8s6zh_8{
|
|
64
100
|
--rs-theme-dark:0;
|
|
65
101
|
}
|
|
66
|
-
.
|
|
102
|
+
._dark_k8s6zh_11{
|
|
67
103
|
--rs-theme-dark:1;
|
|
68
104
|
}
|
|
69
|
-
.
|
|
105
|
+
._sizeS_k8s6zh_15{
|
|
70
106
|
--_rs-input-vertical-padding:6px;
|
|
71
107
|
--_rs-input-horizontal-padding:8px;
|
|
72
108
|
--_rs-input-parts-offset:4px;
|
|
73
109
|
--_rs-input-icon-offset:8px;
|
|
74
110
|
--_rs-input-icon-size:20px;
|
|
75
111
|
}
|
|
76
|
-
.
|
|
112
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
77
113
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
78
114
|
--_rs-typography-text-transform:initial;
|
|
79
115
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -107,10 +143,10 @@
|
|
|
107
143
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
108
144
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
109
145
|
}
|
|
110
|
-
.
|
|
111
|
-
.
|
|
112
|
-
.
|
|
113
|
-
.
|
|
146
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__label'],
|
|
147
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__inner'],
|
|
148
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__inner']::placeholder,
|
|
149
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__suffix']{
|
|
114
150
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
115
151
|
--_rs-typography-text-transform:initial;
|
|
116
152
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -144,7 +180,7 @@
|
|
|
144
180
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
145
181
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
146
182
|
}
|
|
147
|
-
.
|
|
183
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__bold-label']{
|
|
148
184
|
--_rs-typography-letter-spacing:var(--rs-h5-letter-spacing, normal);
|
|
149
185
|
--_rs-typography-text-transform:initial;
|
|
150
186
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -175,7 +211,7 @@
|
|
|
175
211
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
176
212
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
177
213
|
}
|
|
178
|
-
.
|
|
214
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__note']{
|
|
179
215
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
180
216
|
--_rs-typography-text-transform:initial;
|
|
181
217
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -209,7 +245,7 @@
|
|
|
209
245
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
210
246
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
211
247
|
}
|
|
212
|
-
.
|
|
248
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__error-message']{
|
|
213
249
|
--_rs-typography-letter-spacing:var(--rs-h5-letter-spacing, normal);
|
|
214
250
|
--_rs-typography-text-transform:initial;
|
|
215
251
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -240,17 +276,17 @@
|
|
|
240
276
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
241
277
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
242
278
|
}
|
|
243
|
-
.
|
|
279
|
+
._sizeS_k8s6zh_15 [data-rs-internal='input__error-icon']:not(html){
|
|
244
280
|
--_rs-icons-height:20px;
|
|
245
281
|
}
|
|
246
|
-
.
|
|
282
|
+
._sizeM_k8s6zh_18{
|
|
247
283
|
--_rs-input-vertical-padding:8px;
|
|
248
284
|
--_rs-input-horizontal-padding:8px;
|
|
249
285
|
--_rs-input-parts-offset:8px;
|
|
250
286
|
--_rs-input-icon-offset:8px;
|
|
251
287
|
--_rs-input-icon-size:24px;
|
|
252
288
|
}
|
|
253
|
-
.
|
|
289
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
254
290
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
255
291
|
--_rs-typography-text-transform:initial;
|
|
256
292
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -288,14 +324,14 @@
|
|
|
288
324
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
289
325
|
}
|
|
290
326
|
@media screen and (max-width: 640px){
|
|
291
|
-
.
|
|
327
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
292
328
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
293
329
|
}
|
|
294
330
|
}
|
|
295
|
-
.
|
|
296
|
-
.
|
|
297
|
-
.
|
|
298
|
-
.
|
|
331
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__label'],
|
|
332
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__inner'],
|
|
333
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__inner']::placeholder,
|
|
334
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__suffix']{
|
|
299
335
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
300
336
|
--_rs-typography-text-transform:initial;
|
|
301
337
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -333,14 +369,14 @@
|
|
|
333
369
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
334
370
|
}
|
|
335
371
|
@media screen and (max-width: 640px){
|
|
336
|
-
.
|
|
337
|
-
.
|
|
338
|
-
.
|
|
339
|
-
.
|
|
372
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__label'],
|
|
373
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__inner'],
|
|
374
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__inner']::placeholder,
|
|
375
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__suffix']{
|
|
340
376
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
341
377
|
}
|
|
342
378
|
}
|
|
343
|
-
.
|
|
379
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__bold-label']{
|
|
344
380
|
--_rs-typography-letter-spacing:var(--rs-h4-letter-spacing, normal);
|
|
345
381
|
--_rs-typography-text-transform:initial;
|
|
346
382
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -371,7 +407,7 @@
|
|
|
371
407
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
372
408
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
373
409
|
}
|
|
374
|
-
.
|
|
410
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__note']{
|
|
375
411
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
376
412
|
--_rs-typography-text-transform:initial;
|
|
377
413
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -405,7 +441,7 @@
|
|
|
405
441
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
406
442
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
407
443
|
}
|
|
408
|
-
.
|
|
444
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__error-message']{
|
|
409
445
|
--_rs-typography-letter-spacing:var(--rs-h5-letter-spacing, normal);
|
|
410
446
|
--_rs-typography-text-transform:initial;
|
|
411
447
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -436,17 +472,17 @@
|
|
|
436
472
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
437
473
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
438
474
|
}
|
|
439
|
-
.
|
|
475
|
+
._sizeM_k8s6zh_18 [data-rs-internal='input__error-icon']:not(html){
|
|
440
476
|
--_rs-icons-height:20px;
|
|
441
477
|
}
|
|
442
|
-
.
|
|
478
|
+
._sizeL_k8s6zh_21{
|
|
443
479
|
--_rs-input-vertical-padding:12px;
|
|
444
480
|
--_rs-input-horizontal-padding:16px;
|
|
445
481
|
--_rs-input-parts-offset:8px;
|
|
446
482
|
--_rs-input-icon-offset:16px;
|
|
447
483
|
--_rs-input-icon-size:28px;
|
|
448
484
|
}
|
|
449
|
-
.
|
|
485
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
450
486
|
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
451
487
|
--_rs-typography-text-transform:initial;
|
|
452
488
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -484,14 +520,14 @@
|
|
|
484
520
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
485
521
|
}
|
|
486
522
|
@media screen and (max-width: 640px){
|
|
487
|
-
.
|
|
523
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
488
524
|
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
489
525
|
}
|
|
490
526
|
}
|
|
491
|
-
.
|
|
492
|
-
.
|
|
493
|
-
.
|
|
494
|
-
.
|
|
527
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__label'],
|
|
528
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__inner'],
|
|
529
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__inner']::placeholder,
|
|
530
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__suffix']{
|
|
495
531
|
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
496
532
|
--_rs-typography-text-transform:initial;
|
|
497
533
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -529,14 +565,14 @@
|
|
|
529
565
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
530
566
|
}
|
|
531
567
|
@media screen and (max-width: 640px){
|
|
532
|
-
.
|
|
533
|
-
.
|
|
534
|
-
.
|
|
535
|
-
.
|
|
568
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__label'],
|
|
569
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__inner'],
|
|
570
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__inner']::placeholder,
|
|
571
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__suffix']{
|
|
536
572
|
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
537
573
|
}
|
|
538
574
|
}
|
|
539
|
-
.
|
|
575
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__bold-label']{
|
|
540
576
|
--_rs-typography-letter-spacing:var(--rs-h3-letter-spacing, normal);
|
|
541
577
|
--_rs-typography-text-transform:initial;
|
|
542
578
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -567,7 +603,7 @@
|
|
|
567
603
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
568
604
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
569
605
|
}
|
|
570
|
-
.
|
|
606
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__note']{
|
|
571
607
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
572
608
|
--_rs-typography-text-transform:initial;
|
|
573
609
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -605,11 +641,11 @@
|
|
|
605
641
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
606
642
|
}
|
|
607
643
|
@media screen and (max-width: 640px){
|
|
608
|
-
.
|
|
644
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__note']{
|
|
609
645
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
610
646
|
}
|
|
611
647
|
}
|
|
612
|
-
.
|
|
648
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__error-message']{
|
|
613
649
|
--_rs-typography-letter-spacing:var(--rs-h4-letter-spacing, normal);
|
|
614
650
|
--_rs-typography-text-transform:initial;
|
|
615
651
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -640,10 +676,10 @@
|
|
|
640
676
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
641
677
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
642
678
|
}
|
|
643
|
-
.
|
|
679
|
+
._sizeL_k8s6zh_21 [data-rs-internal='input__error-icon']:not(html){
|
|
644
680
|
--_rs-icons-height:24px;
|
|
645
681
|
}
|
|
646
|
-
.
|
|
682
|
+
._classic_k8s6zh_25{
|
|
647
683
|
--_rs-input-focused-enabled-wrapper-border-width:2px;
|
|
648
684
|
--_rs-input-focused-enabled-wrapper-background:rgb(
|
|
649
685
|
calc(255 - var(--_rs-theme-dark-coefficient, 0)*184), calc(255 - var(--_rs-theme-dark-coefficient, 0)*184), calc(255 - var(--_rs-theme-dark-coefficient, 0)*182)
|
|
@@ -693,7 +729,7 @@
|
|
|
693
729
|
0.5
|
|
694
730
|
);
|
|
695
731
|
}
|
|
696
|
-
.
|
|
732
|
+
._rock_k8s6zh_28{
|
|
697
733
|
--_rs-input-focused-enabled-wrapper-border-width:0px;
|
|
698
734
|
--_rs-input-focused-enabled-wrapper-background:rgb(
|
|
699
735
|
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)
|
|
@@ -725,7 +761,7 @@
|
|
|
725
761
|
);
|
|
726
762
|
--_rs-input-error-focused-suffix-color:rgba(255,255,255,0.7);
|
|
727
763
|
}
|
|
728
|
-
.
|
|
764
|
+
._container_k8s6zh_32{
|
|
729
765
|
--_rs-theme-dark:var(
|
|
730
766
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
731
767
|
var(--rs-theme-dark, 0)
|
|
@@ -735,7 +771,7 @@
|
|
|
735
771
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
736
772
|
}
|
|
737
773
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
738
|
-
.
|
|
774
|
+
._container_k8s6zh_32{
|
|
739
775
|
--_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)));
|
|
740
776
|
--_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)));
|
|
741
777
|
--_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)));
|
|
@@ -744,7 +780,7 @@
|
|
|
744
780
|
}
|
|
745
781
|
}
|
|
746
782
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
747
|
-
.
|
|
783
|
+
._container_k8s6zh_32{
|
|
748
784
|
--_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);
|
|
749
785
|
--_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));
|
|
750
786
|
--_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));
|
|
@@ -752,11 +788,11 @@
|
|
|
752
788
|
--_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));
|
|
753
789
|
}
|
|
754
790
|
}
|
|
755
|
-
.
|
|
791
|
+
._container_k8s6zh_32 {
|
|
756
792
|
|
|
757
793
|
display:block;
|
|
758
794
|
}
|
|
759
|
-
.
|
|
795
|
+
._wrapper_k8s6zh_39{
|
|
760
796
|
--_rs-input-border-width:1px;
|
|
761
797
|
|
|
762
798
|
display:flex;
|
|
@@ -767,27 +803,27 @@
|
|
|
767
803
|
|
|
768
804
|
background-color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*207), calc(255 - var(--_rs-theme-dark-coefficient, 0)*207), calc(255 - var(--_rs-theme-dark-coefficient, 0)*204));
|
|
769
805
|
}
|
|
770
|
-
.
|
|
806
|
+
._disabled_k8s6zh_51 ._wrapper_k8s6zh_39{
|
|
771
807
|
cursor:auto;
|
|
772
808
|
|
|
773
809
|
background-color:rgb(calc(244 - var(--_rs-theme-dark-coefficient, 0)*219), calc(244 - var(--_rs-theme-dark-coefficient, 0)*219), calc(244 - var(--_rs-theme-dark-coefficient, 0)*216));
|
|
774
810
|
}
|
|
775
|
-
.
|
|
811
|
+
._error_k8s6zh_57 ._wrapper_k8s6zh_39{
|
|
776
812
|
--_rs-input-border-width:2px;
|
|
777
813
|
|
|
778
814
|
border-color:#F45C4A;
|
|
779
815
|
}
|
|
780
|
-
.
|
|
816
|
+
._enabled_k8s6zh_63._filled_k8s6zh_63 ._wrapper_k8s6zh_39{
|
|
781
817
|
border-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.3);
|
|
782
818
|
}
|
|
783
819
|
@media (hover: hover){
|
|
784
|
-
.
|
|
820
|
+
._enabled_k8s6zh_63:hover ._wrapper_k8s6zh_39{
|
|
785
821
|
border-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.5);
|
|
786
822
|
|
|
787
823
|
background-color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*184), calc(255 - var(--_rs-theme-dark-coefficient, 0)*184), calc(255 - var(--_rs-theme-dark-coefficient, 0)*182));
|
|
788
824
|
}
|
|
789
825
|
}
|
|
790
|
-
.
|
|
826
|
+
._enabled_k8s6zh_63._focused_k8s6zh_75 ._wrapper_k8s6zh_39{
|
|
791
827
|
--_rs-input-border-width:var(
|
|
792
828
|
--_rs-input-focused-enabled-wrapper-border-width
|
|
793
829
|
);
|
|
@@ -797,18 +833,18 @@
|
|
|
797
833
|
background-color:var(--_rs-input-focused-enabled-wrapper-background);
|
|
798
834
|
}
|
|
799
835
|
@media (hover: hover){
|
|
800
|
-
.
|
|
836
|
+
._error_k8s6zh_57._enabled_k8s6zh_63:hover ._wrapper_k8s6zh_39{
|
|
801
837
|
border-color:#F45C4A;
|
|
802
838
|
}
|
|
803
839
|
}
|
|
804
|
-
.
|
|
805
|
-
.
|
|
840
|
+
._error_k8s6zh_57._enabled_k8s6zh_63._focused_k8s6zh_75 ._wrapper_k8s6zh_39,
|
|
841
|
+
._error_k8s6zh_57._enabled_k8s6zh_63._filled_k8s6zh_63 ._wrapper_k8s6zh_39{
|
|
806
842
|
border-color:#F45C4A;
|
|
807
843
|
}
|
|
808
|
-
.
|
|
844
|
+
._error_k8s6zh_57._enabled_k8s6zh_63._focused_k8s6zh_75 ._wrapper_k8s6zh_39{
|
|
809
845
|
background:var(--_rs-input-error-focused-enabled-wrapper-background);
|
|
810
846
|
}
|
|
811
|
-
.
|
|
847
|
+
._field_k8s6zh_101{
|
|
812
848
|
display:flex;
|
|
813
849
|
|
|
814
850
|
flex:1 1 auto;
|
|
@@ -817,7 +853,7 @@
|
|
|
817
853
|
|
|
818
854
|
padding:calc(var(--_rs-input-vertical-padding) - var(--_rs-input-border-width)) calc(var(--_rs-input-horizontal-padding) - var(--_rs-input-border-width));
|
|
819
855
|
}
|
|
820
|
-
.
|
|
856
|
+
._inner_k8s6zh_114{
|
|
821
857
|
letter-spacing:var(
|
|
822
858
|
--rs-text-base-letter-spacing,
|
|
823
859
|
var(--_rs-typography-letter-spacing)
|
|
@@ -830,26 +866,26 @@
|
|
|
830
866
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
831
867
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
832
868
|
}
|
|
833
|
-
.
|
|
869
|
+
._inner_k8s6zh_114::-ms-clear{
|
|
834
870
|
display:none;
|
|
835
871
|
|
|
836
872
|
width:0;
|
|
837
873
|
height:0;
|
|
838
874
|
}
|
|
839
|
-
.
|
|
875
|
+
._dark_k8s6zh_11 ._inner_k8s6zh_114{
|
|
840
876
|
color-scheme:dark;
|
|
841
877
|
}
|
|
842
878
|
@container style(--_rs-theme-dark-coefficient: 1){
|
|
843
|
-
.
|
|
879
|
+
._inner_k8s6zh_114{
|
|
844
880
|
color-scheme:dark
|
|
845
881
|
}
|
|
846
882
|
}
|
|
847
883
|
@container style(--_rs-theme-dark-coefficient: 0){
|
|
848
|
-
.
|
|
884
|
+
._inner_k8s6zh_114{
|
|
849
885
|
color-scheme:light
|
|
850
886
|
}
|
|
851
887
|
}
|
|
852
|
-
.
|
|
888
|
+
._inner_k8s6zh_114 {
|
|
853
889
|
|
|
854
890
|
display:block;
|
|
855
891
|
|
|
@@ -871,20 +907,20 @@
|
|
|
871
907
|
-moz-appearance:none;
|
|
872
908
|
appearance:none;
|
|
873
909
|
}
|
|
874
|
-
.
|
|
910
|
+
._inner_k8s6zh_114:focus{
|
|
875
911
|
outline:none;
|
|
876
912
|
}
|
|
877
|
-
.
|
|
878
|
-
.
|
|
913
|
+
._disabled_k8s6zh_51 ._inner_k8s6zh_114,
|
|
914
|
+
._inner_k8s6zh_114:disabled{
|
|
879
915
|
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.7);
|
|
880
916
|
}
|
|
881
|
-
.
|
|
917
|
+
._focused_k8s6zh_75 ._inner_k8s6zh_114{
|
|
882
918
|
color:var(--_rs-input-focused-inner-color);
|
|
883
919
|
}
|
|
884
|
-
.
|
|
920
|
+
._error_k8s6zh_57._focused_k8s6zh_75 ._inner_k8s6zh_114{
|
|
885
921
|
color:var(--_rs-input-error-focused-inner-color);
|
|
886
922
|
}
|
|
887
|
-
.
|
|
923
|
+
._inner_k8s6zh_114::-moz-placeholder{
|
|
888
924
|
letter-spacing:var(
|
|
889
925
|
--rs-text-base-letter-spacing,
|
|
890
926
|
var(--_rs-typography-letter-spacing)
|
|
@@ -900,13 +936,13 @@
|
|
|
900
936
|
|
|
901
937
|
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.5);
|
|
902
938
|
}
|
|
903
|
-
.
|
|
939
|
+
._focused_k8s6zh_75 ._inner_k8s6zh_114::-moz-placeholder{
|
|
904
940
|
color:var(--_rs-input-focused-inner-placeholder-color);
|
|
905
941
|
}
|
|
906
|
-
.
|
|
942
|
+
._error_k8s6zh_57._focused_k8s6zh_75 ._inner_k8s6zh_114::-moz-placeholder{
|
|
907
943
|
color:var(--_rs-input-error-focused-inner-placeholder-color);
|
|
908
944
|
}
|
|
909
|
-
.
|
|
945
|
+
._inner_k8s6zh_114::placeholder{
|
|
910
946
|
letter-spacing:var(
|
|
911
947
|
--rs-text-base-letter-spacing,
|
|
912
948
|
var(--_rs-typography-letter-spacing)
|
|
@@ -922,45 +958,45 @@
|
|
|
922
958
|
|
|
923
959
|
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.5);
|
|
924
960
|
}
|
|
925
|
-
.
|
|
961
|
+
._focused_k8s6zh_75 ._inner_k8s6zh_114::placeholder{
|
|
926
962
|
color:var(--_rs-input-focused-inner-placeholder-color);
|
|
927
963
|
}
|
|
928
|
-
.
|
|
964
|
+
._error_k8s6zh_57._focused_k8s6zh_75 ._inner_k8s6zh_114::placeholder{
|
|
929
965
|
color:var(--_rs-input-error-focused-inner-placeholder-color);
|
|
930
966
|
}
|
|
931
|
-
.
|
|
967
|
+
._inner_k8s6zh_114:-moz-ui-invalid{
|
|
932
968
|
box-shadow:none;
|
|
933
969
|
}
|
|
934
|
-
.
|
|
970
|
+
._inner_k8s6zh_114:-moz-ui-invalid:-moz-focusring{
|
|
935
971
|
box-shadow:none;
|
|
936
972
|
}
|
|
937
|
-
.
|
|
938
|
-
.
|
|
939
|
-
.
|
|
940
|
-
.
|
|
973
|
+
._inner_k8s6zh_114:-webkit-autofill,
|
|
974
|
+
._inner_k8s6zh_114:-webkit-autofill:hover,
|
|
975
|
+
._inner_k8s6zh_114:-webkit-autofill:active,
|
|
976
|
+
._inner_k8s6zh_114:-webkit-autofill:focus{
|
|
941
977
|
-webkit-box-shadow:0 0 0 1000px rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*227)) inset;
|
|
942
978
|
|
|
943
979
|
transition-delay:9999s;
|
|
944
980
|
-webkit-text-fill-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));
|
|
945
981
|
}
|
|
946
|
-
.
|
|
982
|
+
._focused_k8s6zh_75 ._inner_k8s6zh_114:-webkit-autofill, ._focused_k8s6zh_75 ._inner_k8s6zh_114:-webkit-autofill:hover, ._focused_k8s6zh_75 ._inner_k8s6zh_114:-webkit-autofill:active, ._focused_k8s6zh_75 ._inner_k8s6zh_114:-webkit-autofill:focus{
|
|
947
983
|
-webkit-box-shadow:0 0 0 1000px var(--_rs-input-focused-autofill-box-shadow) inset;
|
|
948
984
|
-webkit-text-fill-color:var(--_rs-input-focused-autofill-color);
|
|
949
985
|
}
|
|
950
|
-
.
|
|
986
|
+
._error_k8s6zh_57._focused_k8s6zh_75 ._inner_k8s6zh_114:-webkit-autofill, ._error_k8s6zh_57._focused_k8s6zh_75 ._inner_k8s6zh_114:-webkit-autofill:hover, ._error_k8s6zh_57._focused_k8s6zh_75 ._inner_k8s6zh_114:-webkit-autofill:active, ._error_k8s6zh_57._focused_k8s6zh_75 ._inner_k8s6zh_114:-webkit-autofill:focus{
|
|
951
987
|
-webkit-box-shadow:0 0 0 1000px var(--_rs-input-error-focused-autofill-box-shadow) inset;
|
|
952
988
|
-webkit-text-fill-color:var(--_rs-input-error-focused-autofill-color);
|
|
953
989
|
}
|
|
954
|
-
.
|
|
990
|
+
._offSystemMicroelements_k8s6zh_229 ._inner_k8s6zh_114{
|
|
955
991
|
-moz-appearance:textfield;
|
|
956
992
|
}
|
|
957
|
-
.
|
|
958
|
-
.
|
|
993
|
+
._offSystemMicroelements_k8s6zh_229 ._inner_k8s6zh_114::-webkit-outer-spin-button,
|
|
994
|
+
._offSystemMicroelements_k8s6zh_229 ._inner_k8s6zh_114::-webkit-inner-spin-button{
|
|
959
995
|
margin:0;
|
|
960
996
|
-webkit-appearance:none;
|
|
961
997
|
appearance:none;
|
|
962
998
|
}
|
|
963
|
-
.
|
|
999
|
+
._iconWrapper_k8s6zh_239{
|
|
964
1000
|
--_rs-input-icon-overlap:calc(var(--_rs-input-vertical-padding) - var(--_rs-input-border-width));
|
|
965
1001
|
|
|
966
1002
|
display:inline-flex;
|
|
@@ -973,15 +1009,15 @@
|
|
|
973
1009
|
|
|
974
1010
|
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.7);
|
|
975
1011
|
}
|
|
976
|
-
.
|
|
1012
|
+
._iconWrapper_k8s6zh_239._action_k8s6zh_254{
|
|
977
1013
|
position:relative;
|
|
978
1014
|
|
|
979
1015
|
cursor:pointer;
|
|
980
1016
|
}
|
|
981
|
-
.
|
|
1017
|
+
._iconWrapper_k8s6zh_239._action_k8s6zh_254:focus{
|
|
982
1018
|
outline:none;
|
|
983
1019
|
}
|
|
984
|
-
.
|
|
1020
|
+
._iconWrapper_k8s6zh_239._action_k8s6zh_254::before{
|
|
985
1021
|
position:absolute;
|
|
986
1022
|
top:-4px;
|
|
987
1023
|
right:-4px;
|
|
@@ -996,56 +1032,56 @@
|
|
|
996
1032
|
content:'';
|
|
997
1033
|
pointer-events:none;
|
|
998
1034
|
}
|
|
999
|
-
.
|
|
1035
|
+
._iconWrapper_k8s6zh_239._action_k8s6zh_254:focus[data-focus-method='key']::before{
|
|
1000
1036
|
display:block;
|
|
1001
1037
|
}
|
|
1002
|
-
.
|
|
1038
|
+
._disabled_k8s6zh_51 ._iconWrapper_k8s6zh_239{
|
|
1003
1039
|
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.5);
|
|
1004
1040
|
}
|
|
1005
|
-
.
|
|
1041
|
+
._disabled_k8s6zh_51 ._iconWrapper_k8s6zh_239._action_k8s6zh_254{
|
|
1006
1042
|
pointer-events:none;
|
|
1007
1043
|
}
|
|
1008
|
-
.
|
|
1044
|
+
._iconWrapper_k8s6zh_239._right_k8s6zh_292{
|
|
1009
1045
|
margin-left:var(--_rs-input-icon-offset);
|
|
1010
1046
|
}
|
|
1011
|
-
.
|
|
1047
|
+
._iconWrapper_k8s6zh_239._left_k8s6zh_296{
|
|
1012
1048
|
margin-right:var(--_rs-input-icon-offset);
|
|
1013
1049
|
}
|
|
1014
|
-
.
|
|
1050
|
+
._focused_k8s6zh_75 ._iconWrapper_k8s6zh_239{
|
|
1015
1051
|
color:var(--_rs-input-focused-icon-color);
|
|
1016
1052
|
}
|
|
1017
|
-
.
|
|
1053
|
+
._error_k8s6zh_57._focused_k8s6zh_75 ._iconWrapper_k8s6zh_239{
|
|
1018
1054
|
color:var(--_rs-input-error-focused-icon-color);
|
|
1019
1055
|
}
|
|
1020
1056
|
@media (hover: hover){
|
|
1021
|
-
.
|
|
1057
|
+
._enabled_k8s6zh_63 ._iconWrapper_k8s6zh_239._action_k8s6zh_254:hover{
|
|
1022
1058
|
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));
|
|
1023
1059
|
}
|
|
1024
1060
|
|
|
1025
|
-
.
|
|
1061
|
+
._enabled_k8s6zh_63._focused_k8s6zh_75 ._iconWrapper_k8s6zh_239._action_k8s6zh_254:hover{
|
|
1026
1062
|
color:var(--_rs-input-focused-icon-accent-color);
|
|
1027
1063
|
}
|
|
1028
1064
|
|
|
1029
|
-
.
|
|
1065
|
+
._enabled_k8s6zh_63._error_k8s6zh_57._focused_k8s6zh_75 ._iconWrapper_k8s6zh_239._action_k8s6zh_254:hover{
|
|
1030
1066
|
color:var(--_rs-input-error-focused-icon-accent-color);
|
|
1031
1067
|
}
|
|
1032
1068
|
}
|
|
1033
|
-
.
|
|
1069
|
+
._enabled_k8s6zh_63 ._iconWrapper_k8s6zh_239._action_k8s6zh_254:focus[data-focus-method='key']{
|
|
1034
1070
|
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));
|
|
1035
1071
|
}
|
|
1036
|
-
.
|
|
1072
|
+
._enabled_k8s6zh_63._focused_k8s6zh_75 ._iconWrapper_k8s6zh_239._action_k8s6zh_254:focus[data-focus-method='key']{
|
|
1037
1073
|
color:var(--_rs-input-focused-icon-accent-color);
|
|
1038
1074
|
}
|
|
1039
|
-
.
|
|
1075
|
+
._enabled_k8s6zh_63._error_k8s6zh_57._focused_k8s6zh_75 ._iconWrapper_k8s6zh_239._action_k8s6zh_254:focus[data-focus-method='key']{
|
|
1040
1076
|
color:var(--_rs-input-error-focused-icon-accent-color);
|
|
1041
1077
|
}
|
|
1042
|
-
.
|
|
1078
|
+
._iconWrapper_k8s6zh_239 ._icon_k8s6zh_239{
|
|
1043
1079
|
fill:currentColor;
|
|
1044
1080
|
|
|
1045
1081
|
width:auto;
|
|
1046
1082
|
height:var(--_rs-input-icon-size);
|
|
1047
1083
|
}
|
|
1048
|
-
.
|
|
1084
|
+
._divider_k8s6zh_342{
|
|
1049
1085
|
display:block;
|
|
1050
1086
|
|
|
1051
1087
|
width:1px;
|
|
@@ -1054,10 +1090,10 @@
|
|
|
1054
1090
|
|
|
1055
1091
|
background: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);
|
|
1056
1092
|
}
|
|
1057
|
-
.
|
|
1093
|
+
._focused_k8s6zh_75 ._divider_k8s6zh_342{
|
|
1058
1094
|
background:var(--_rs-input-focused-divider-background);
|
|
1059
1095
|
}
|
|
1060
|
-
.
|
|
1096
|
+
._suffix_k8s6zh_356{
|
|
1061
1097
|
letter-spacing:var(
|
|
1062
1098
|
--rs-text-base-letter-spacing,
|
|
1063
1099
|
var(--_rs-typography-letter-spacing)
|
|
@@ -1076,13 +1112,13 @@
|
|
|
1076
1112
|
|
|
1077
1113
|
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.5);
|
|
1078
1114
|
}
|
|
1079
|
-
.
|
|
1115
|
+
._focused_k8s6zh_75 ._suffix_k8s6zh_356{
|
|
1080
1116
|
color:var(--_rs-input-focused-suffix-color);
|
|
1081
1117
|
}
|
|
1082
|
-
.
|
|
1118
|
+
._error_k8s6zh_57._focused_k8s6zh_75 ._suffix_k8s6zh_356{
|
|
1083
1119
|
color:var(--_rs-input-error-focused-suffix-color);
|
|
1084
1120
|
}
|
|
1085
|
-
.
|
|
1121
|
+
._errorMessage_k8s6zh_376{
|
|
1086
1122
|
letter-spacing:var(
|
|
1087
1123
|
--rs-text-base-letter-spacing,
|
|
1088
1124
|
var(--_rs-typography-letter-spacing)
|
|
@@ -1104,12 +1140,12 @@
|
|
|
1104
1140
|
-moz-column-gap:8px;
|
|
1105
1141
|
column-gap:8px;
|
|
1106
1142
|
}
|
|
1107
|
-
.
|
|
1143
|
+
._errorIcon_k8s6zh_388{
|
|
1108
1144
|
flex:0 0 auto;
|
|
1109
1145
|
|
|
1110
1146
|
color:#F45C4A;
|
|
1111
1147
|
}
|
|
1112
|
-
.
|
|
1148
|
+
._note_k8s6zh_394{
|
|
1113
1149
|
letter-spacing:var(
|
|
1114
1150
|
--rs-text-base-letter-spacing,
|
|
1115
1151
|
var(--_rs-typography-letter-spacing)
|
|
@@ -1128,13 +1164,13 @@
|
|
|
1128
1164
|
|
|
1129
1165
|
margin-top:var(--_rs-input-parts-offset);
|
|
1130
1166
|
}
|
|
1131
|
-
.
|
|
1167
|
+
._disabled_k8s6zh_51 ._note_k8s6zh_394{
|
|
1132
1168
|
color:var(
|
|
1133
1169
|
--rs-color-pale,
|
|
1134
1170
|
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)
|
|
1135
1171
|
);
|
|
1136
1172
|
}
|
|
1137
|
-
.
|
|
1173
|
+
._label_k8s6zh_405{
|
|
1138
1174
|
letter-spacing:var(
|
|
1139
1175
|
--rs-text-base-letter-spacing,
|
|
1140
1176
|
var(--_rs-typography-letter-spacing)
|
|
@@ -1153,7 +1189,7 @@
|
|
|
1153
1189
|
|
|
1154
1190
|
margin-bottom:var(--_rs-input-parts-offset);
|
|
1155
1191
|
}
|
|
1156
|
-
.
|
|
1192
|
+
._disabled_k8s6zh_51 ._label_k8s6zh_405{
|
|
1157
1193
|
color:var(
|
|
1158
1194
|
--rs-color-pale,
|
|
1159
1195
|
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)
|
package/lib/input.js
CHANGED
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
5
|
-
import CloseIcon from './_virtual/close.js';
|
|
6
5
|
import WarningIcon from './_virtual/warning.js';
|
|
6
|
+
import CloseIcon from './_virtual/close.js';
|
|
7
7
|
import styles from './input.p.module.css.js';
|
|
8
8
|
import { RightIcons } from './parts/right-icons.js';
|
|
9
9
|
import { CustomIcon } from './parts/custom-icon.js';
|
|
@@ -166,7 +166,8 @@ const Input = /*#__PURE__*/React.forwardRef( // eslint-disable-next-line complex
|
|
|
166
166
|
"data-rs-internal": "input__error-message"
|
|
167
167
|
}, /*#__PURE__*/React.createElement(WarningIcon, {
|
|
168
168
|
className: styles.errorIcon,
|
|
169
|
-
"data-rs-internal": "input__error-icon"
|
|
169
|
+
"data-rs-internal": "input__error-icon",
|
|
170
|
+
"data-render-all-sizes": true
|
|
170
171
|
}), /*#__PURE__*/React.createElement("span", null, error)), note && /*#__PURE__*/React.createElement("div", {
|
|
171
172
|
className: styles.note,
|
|
172
173
|
"data-rs-internal": "input__note"
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"light": "
|
|
3
|
-
"dark": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"classic": "
|
|
8
|
-
"rock": "
|
|
9
|
-
"container": "
|
|
10
|
-
"wrapper": "
|
|
11
|
-
"disabled": "
|
|
12
|
-
"error": "
|
|
13
|
-
"enabled": "
|
|
14
|
-
"filled": "
|
|
15
|
-
"focused": "
|
|
16
|
-
"field": "
|
|
17
|
-
"inner": "
|
|
18
|
-
"offSystemMicroelements": "
|
|
19
|
-
"iconWrapper": "
|
|
20
|
-
"action": "
|
|
21
|
-
"right": "
|
|
22
|
-
"left": "
|
|
23
|
-
"icon": "
|
|
24
|
-
"divider": "
|
|
25
|
-
"suffix": "
|
|
26
|
-
"errorMessage": "
|
|
27
|
-
"errorIcon": "
|
|
28
|
-
"note": "
|
|
29
|
-
"label": "
|
|
2
|
+
"light": "_light_k8s6zh_8",
|
|
3
|
+
"dark": "_dark_k8s6zh_11",
|
|
4
|
+
"sizeS": "_sizeS_k8s6zh_15",
|
|
5
|
+
"sizeM": "_sizeM_k8s6zh_18",
|
|
6
|
+
"sizeL": "_sizeL_k8s6zh_21",
|
|
7
|
+
"classic": "_classic_k8s6zh_25",
|
|
8
|
+
"rock": "_rock_k8s6zh_28",
|
|
9
|
+
"container": "_container_k8s6zh_32",
|
|
10
|
+
"wrapper": "_wrapper_k8s6zh_39",
|
|
11
|
+
"disabled": "_disabled_k8s6zh_51",
|
|
12
|
+
"error": "_error_k8s6zh_57",
|
|
13
|
+
"enabled": "_enabled_k8s6zh_63",
|
|
14
|
+
"filled": "_filled_k8s6zh_63",
|
|
15
|
+
"focused": "_focused_k8s6zh_75",
|
|
16
|
+
"field": "_field_k8s6zh_101",
|
|
17
|
+
"inner": "_inner_k8s6zh_114",
|
|
18
|
+
"offSystemMicroelements": "_offSystemMicroelements_k8s6zh_229",
|
|
19
|
+
"iconWrapper": "_iconWrapper_k8s6zh_239",
|
|
20
|
+
"action": "_action_k8s6zh_254",
|
|
21
|
+
"right": "_right_k8s6zh_292",
|
|
22
|
+
"left": "_left_k8s6zh_296",
|
|
23
|
+
"icon": "_icon_k8s6zh_239",
|
|
24
|
+
"divider": "_divider_k8s6zh_342",
|
|
25
|
+
"suffix": "_suffix_k8s6zh_356",
|
|
26
|
+
"errorMessage": "_errorMessage_k8s6zh_376",
|
|
27
|
+
"errorIcon": "_errorIcon_k8s6zh_388",
|
|
28
|
+
"note": "_note_k8s6zh_394",
|
|
29
|
+
"label": "_label_k8s6zh_405"
|
|
30
30
|
};
|
|
31
31
|
export { styles as default };
|
package/lib/parts/custom-icon.js
CHANGED
|
@@ -27,6 +27,7 @@ const CustomIcon = _ref => {
|
|
|
27
27
|
const iconJsx = /*#__PURE__*/React.cloneElement(icon, {
|
|
28
28
|
focusable: false,
|
|
29
29
|
className: cn(icon.props.className, styles.icon),
|
|
30
|
+
'data-render-all-sizes': true,
|
|
30
31
|
...mouseEvents.icon
|
|
31
32
|
});
|
|
32
33
|
return /*#__PURE__*/React.createElement("span", {
|
package/lib/parts/right-icons.js
CHANGED
|
@@ -29,7 +29,8 @@ const RightIcons = _ref => {
|
|
|
29
29
|
tabIndex: -1
|
|
30
30
|
}, /*#__PURE__*/React.cloneElement(clearIcon, {
|
|
31
31
|
focusable: false,
|
|
32
|
-
className: cn(clearIcon.props.className, styles.icon)
|
|
32
|
+
className: cn(clearIcon.props.className, styles.icon),
|
|
33
|
+
'data-render-all-sizes': true
|
|
33
34
|
})));
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -48,7 +49,8 @@ const RightIcons = _ref => {
|
|
|
48
49
|
className: cn(styles.iconWrapper, styles.right)
|
|
49
50
|
}, /*#__PURE__*/React.createElement(LoadingIcon, {
|
|
50
51
|
"data-test": "input__busy-icon",
|
|
51
|
-
className: styles.icon
|
|
52
|
+
className: styles.icon,
|
|
53
|
+
"data-render-all-sizes": true
|
|
52
54
|
})));
|
|
53
55
|
};
|
|
54
56
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/input",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"react": ">=16.8.0 <19"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@rescui/colors": "^0.2.
|
|
28
|
-
"@rescui/icons": "^0.
|
|
27
|
+
"@rescui/colors": "^0.2.8",
|
|
28
|
+
"@rescui/icons": "^1.0.0",
|
|
29
29
|
"@rescui/postcss-preset-library": "^0.2.2",
|
|
30
|
-
"@rescui/scripts": "^0.
|
|
31
|
-
"@rescui/tooltip": "^0.9.
|
|
32
|
-
"@rescui/typography": "^0.
|
|
30
|
+
"@rescui/scripts": "^0.4.0",
|
|
31
|
+
"@rescui/tooltip": "^0.9.6",
|
|
32
|
+
"@rescui/typography": "^0.23.1",
|
|
33
33
|
"@rescui/visual-regression": "^0.1.2",
|
|
34
34
|
"@types/classnames": "^2.2.11"
|
|
35
35
|
},
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
|
|
39
39
|
},
|
|
40
40
|
"nx": {},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "f521c66dfa4124f1cac34821bf8531a0f9596bcc"
|
|
42
42
|
}
|