@rescui/input 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_virtual/close-outline.js +106 -0
- package/lib/_virtual/index.css.js +12 -12
- package/lib/_virtual/{loading.js → loading-outline.js} +24 -24
- package/lib/index.css +127 -127
- package/lib/input.js +2 -2
- package/lib/input.p.module.css.js +28 -28
- package/lib/parts/right-icons.js +2 -2
- package/package.json +2 -2
- package/lib/_virtual/close.js +0 -106
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import cn from 'classnames';
|
|
5
|
+
import styles from './index.css.js';
|
|
6
|
+
const sizeStyles = {
|
|
7
|
+
"xs": styles.sizeXS,
|
|
8
|
+
"s": styles.sizeS,
|
|
9
|
+
"m": styles.sizeM,
|
|
10
|
+
"l": styles.sizeL
|
|
11
|
+
};
|
|
12
|
+
const Size = {
|
|
13
|
+
"xs": "xs",
|
|
14
|
+
"s": "s",
|
|
15
|
+
"m": "m",
|
|
16
|
+
"l": "l"
|
|
17
|
+
};
|
|
18
|
+
const CloseOutlineIcon16 = /*#__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.646 2.646a.5.5 0 0 1 .708 0L8 7.293l4.646-4.647a.5.5 0 0 1 .708.708L8.707 8l4.647 4.646a.5.5 0 0 1-.708.708L8 8.707l-4.646 4.647a.5.5 0 0 1-.708-.708L7.293 8 2.646 3.354a.5.5 0 0 1 0-.708"
|
|
24
|
+
})));
|
|
25
|
+
CloseOutlineIcon16.displayName = 'CloseOutlineIcon16';
|
|
26
|
+
const CloseOutlineIcon20 = /*#__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.47 3.47a.75.75 0 0 1 1.06 0L10 8.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L11.06 10l5.47 5.47a.75.75 0 1 1-1.06 1.06L10 11.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L8.94 10 3.47 4.53a.75.75 0 0 1 0-1.06"
|
|
32
|
+
})));
|
|
33
|
+
CloseOutlineIcon20.displayName = 'CloseOutlineIcon20';
|
|
34
|
+
const CloseOutlineIcon24 = /*#__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.793 3.793a1 1 0 0 1 1.414 0L12 10.586l6.793-6.793a1 1 0 1 1 1.414 1.414L13.414 12l6.793 6.793a1 1 0 0 1-1.414 1.414L12 13.414l-6.793 6.793a1 1 0 0 1-1.414-1.414L10.586 12 3.793 5.207a1 1 0 0 1 0-1.414"
|
|
40
|
+
})));
|
|
41
|
+
CloseOutlineIcon24.displayName = 'CloseOutlineIcon24';
|
|
42
|
+
const CloseOutlineIcon28 = /*#__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.793 4.793a1 1 0 0 1 1.414 0L14 12.586l7.793-7.793a1 1 0 1 1 1.414 1.414L15.414 14l7.793 7.793a1 1 0 0 1-1.414 1.414L14 15.414l-7.793 7.793a1 1 0 0 1-1.414-1.414L12.586 14 4.793 6.207a1 1 0 0 1 0-1.414"
|
|
48
|
+
})));
|
|
49
|
+
CloseOutlineIcon28.displayName = 'CloseOutlineIcon28';
|
|
50
|
+
const CloseOutlineIcon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
51
|
+
let {
|
|
52
|
+
theme,
|
|
53
|
+
size: sizeFromProps = "m",
|
|
54
|
+
className,
|
|
55
|
+
style,
|
|
56
|
+
['data-render-all-sizes']: renderAllSizes = false,
|
|
57
|
+
...props
|
|
58
|
+
} = _ref;
|
|
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(CloseOutlineIcon16, {
|
|
74
|
+
className: styles.variant16
|
|
75
|
+
}), /*#__PURE__*/React__default.createElement(CloseOutlineIcon20, {
|
|
76
|
+
className: styles.variant20
|
|
77
|
+
}), /*#__PURE__*/React__default.createElement(CloseOutlineIcon24, {
|
|
78
|
+
className: styles.variant24
|
|
79
|
+
}), /*#__PURE__*/React__default.createElement(CloseOutlineIcon28, {
|
|
80
|
+
className: styles.variant28
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (size === Size['xs']) {
|
|
85
|
+
return /*#__PURE__*/React__default.createElement(CloseOutlineIcon16, mainProps);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (size === Size['s']) {
|
|
89
|
+
return /*#__PURE__*/React__default.createElement(CloseOutlineIcon20, mainProps);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (size === Size['m']) {
|
|
93
|
+
return /*#__PURE__*/React__default.createElement(CloseOutlineIcon24, mainProps);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return /*#__PURE__*/React__default.createElement(CloseOutlineIcon28, mainProps);
|
|
97
|
+
});
|
|
98
|
+
CloseOutlineIcon.displayName = 'CloseOutlineIcon';
|
|
99
|
+
CloseOutlineIcon.propTypes = {
|
|
100
|
+
className: PropTypes.string,
|
|
101
|
+
theme: PropTypes.oneOf(["light", "dark"]),
|
|
102
|
+
size: PropTypes.oneOf(["xs", "s", "m", "l"]),
|
|
103
|
+
'data-render-all-sizes': PropTypes.bool,
|
|
104
|
+
style: PropTypes.object
|
|
105
|
+
};
|
|
106
|
+
export { Size, CloseOutlineIcon as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"icon": "
|
|
3
|
-
"sizeXS": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"light": "
|
|
8
|
-
"dark": "
|
|
9
|
-
"allVariants": "
|
|
10
|
-
"variant16": "
|
|
11
|
-
"variant20": "
|
|
12
|
-
"variant24": "
|
|
13
|
-
"variant28": "
|
|
2
|
+
"icon": "_icon_gpkxqm_4",
|
|
3
|
+
"sizeXS": "_sizeXS_gpkxqm_14",
|
|
4
|
+
"sizeS": "_sizeS_gpkxqm_18",
|
|
5
|
+
"sizeM": "_sizeM_gpkxqm_22",
|
|
6
|
+
"sizeL": "_sizeL_gpkxqm_26",
|
|
7
|
+
"light": "_light_gpkxqm_30",
|
|
8
|
+
"dark": "_dark_gpkxqm_34",
|
|
9
|
+
"allVariants": "_allVariants_gpkxqm_48",
|
|
10
|
+
"variant16": "_variant16_gpkxqm_53",
|
|
11
|
+
"variant20": "_variant20_gpkxqm_54",
|
|
12
|
+
"variant24": "_variant24_gpkxqm_55",
|
|
13
|
+
"variant28": "_variant28_gpkxqm_58"
|
|
14
14
|
};
|
|
15
15
|
export { styles as default };
|
|
@@ -15,55 +15,55 @@ const Size = {
|
|
|
15
15
|
"m": "m",
|
|
16
16
|
"l": "l"
|
|
17
17
|
};
|
|
18
|
-
const
|
|
18
|
+
const LoadingOutlineIcon16 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
19
19
|
viewBox: "0 0 16 16"
|
|
20
20
|
}, props, {
|
|
21
21
|
ref: ref
|
|
22
22
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
23
|
-
d: "M8
|
|
23
|
+
d: "M8 3a5 5 0 1 0 4.933 4.177.5.5 0 0 1 .986-.163Q14 7.496 14 8a6 6 0 1 1-5.014-5.92.5.5 0 1 1-.163.987A5 5 0 0 0 8 3",
|
|
24
24
|
style: {
|
|
25
25
|
animation: "rs-icon-rotate 1s linear infinite",
|
|
26
26
|
transformOrigin: "center center"
|
|
27
27
|
}
|
|
28
28
|
})));
|
|
29
|
-
|
|
30
|
-
const
|
|
29
|
+
LoadingOutlineIcon16.displayName = 'LoadingOutlineIcon16';
|
|
30
|
+
const LoadingOutlineIcon20 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
31
31
|
viewBox: "0 0 20 20"
|
|
32
32
|
}, props, {
|
|
33
33
|
ref: ref
|
|
34
34
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
35
|
-
d: "M10
|
|
35
|
+
d: "M10 3.75a6.25 6.25 0 1 0 6.166 5.221.75.75 0 0 1 1.48-.244 7.75 7.75 0 1 1-6.372-6.372.75.75 0 0 1-.245 1.48A6.3 6.3 0 0 0 10 3.75",
|
|
36
36
|
style: {
|
|
37
37
|
animation: "rs-icon-rotate 1s linear infinite",
|
|
38
38
|
transformOrigin: "center center"
|
|
39
39
|
}
|
|
40
40
|
})));
|
|
41
|
-
|
|
42
|
-
const
|
|
41
|
+
LoadingOutlineIcon20.displayName = 'LoadingOutlineIcon20';
|
|
42
|
+
const LoadingOutlineIcon24 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
43
43
|
viewBox: "0 0 24 24"
|
|
44
44
|
}, props, {
|
|
45
45
|
ref: ref
|
|
46
46
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
47
|
-
d: "M12
|
|
47
|
+
d: "M12 5a7 7 0 1 0 6.906 5.848 1 1 0 1 1 1.973-.327q.12.724.121 1.479a9 9 0 1 1-7.521-8.879 1 1 0 0 1-.327 1.973A7 7 0 0 0 12 5",
|
|
48
48
|
style: {
|
|
49
49
|
animation: "rs-icon-rotate 1s linear infinite",
|
|
50
50
|
transformOrigin: "center center"
|
|
51
51
|
}
|
|
52
52
|
})));
|
|
53
|
-
|
|
54
|
-
const
|
|
53
|
+
LoadingOutlineIcon24.displayName = 'LoadingOutlineIcon24';
|
|
54
|
+
const LoadingOutlineIcon28 = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
55
55
|
viewBox: "0 0 28 28"
|
|
56
56
|
}, props, {
|
|
57
57
|
ref: ref
|
|
58
58
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
59
|
-
d: "M14
|
|
59
|
+
d: "M14 6a8 8 0 1 0 7.892 6.683 1 1 0 1 1 1.974-.326q.133.803.134 1.643c0 5.523-4.477 10-10 10S4 19.523 4 14 8.477 4 14 4q.775.001 1.52.115a1 1 0 1 1-.302 1.977A8 8 0 0 0 14 6",
|
|
60
60
|
style: {
|
|
61
61
|
animation: "rs-icon-rotate 1s linear infinite",
|
|
62
62
|
transformOrigin: "center center"
|
|
63
63
|
}
|
|
64
64
|
})));
|
|
65
|
-
|
|
66
|
-
const
|
|
65
|
+
LoadingOutlineIcon28.displayName = 'LoadingOutlineIcon28';
|
|
66
|
+
const LoadingOutlineIcon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
67
67
|
let {
|
|
68
68
|
theme,
|
|
69
69
|
size: sizeFromProps = "m",
|
|
@@ -86,37 +86,37 @@ const LoadingIcon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
86
86
|
if (renderAllSizes) {
|
|
87
87
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
88
88
|
viewBox: "0 0 28 28"
|
|
89
|
-
}, mainProps), /*#__PURE__*/React__default.createElement(
|
|
89
|
+
}, mainProps), /*#__PURE__*/React__default.createElement(LoadingOutlineIcon16, {
|
|
90
90
|
className: styles.variant16
|
|
91
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
91
|
+
}), /*#__PURE__*/React__default.createElement(LoadingOutlineIcon20, {
|
|
92
92
|
className: styles.variant20
|
|
93
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
93
|
+
}), /*#__PURE__*/React__default.createElement(LoadingOutlineIcon24, {
|
|
94
94
|
className: styles.variant24
|
|
95
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
95
|
+
}), /*#__PURE__*/React__default.createElement(LoadingOutlineIcon28, {
|
|
96
96
|
className: styles.variant28
|
|
97
97
|
}));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
if (size === Size['xs']) {
|
|
101
|
-
return /*#__PURE__*/React__default.createElement(
|
|
101
|
+
return /*#__PURE__*/React__default.createElement(LoadingOutlineIcon16, mainProps);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
if (size === Size['s']) {
|
|
105
|
-
return /*#__PURE__*/React__default.createElement(
|
|
105
|
+
return /*#__PURE__*/React__default.createElement(LoadingOutlineIcon20, mainProps);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
if (size === Size['m']) {
|
|
109
|
-
return /*#__PURE__*/React__default.createElement(
|
|
109
|
+
return /*#__PURE__*/React__default.createElement(LoadingOutlineIcon24, mainProps);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
return /*#__PURE__*/React__default.createElement(
|
|
112
|
+
return /*#__PURE__*/React__default.createElement(LoadingOutlineIcon28, mainProps);
|
|
113
113
|
});
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
LoadingOutlineIcon.displayName = 'LoadingOutlineIcon';
|
|
115
|
+
LoadingOutlineIcon.propTypes = {
|
|
116
116
|
className: PropTypes.string,
|
|
117
117
|
theme: PropTypes.oneOf(["light", "dark"]),
|
|
118
118
|
size: PropTypes.oneOf(["xs", "s", "m", "l"]),
|
|
119
119
|
'data-render-all-sizes': PropTypes.bool,
|
|
120
120
|
style: PropTypes.object
|
|
121
121
|
};
|
|
122
|
-
export { Size,
|
|
122
|
+
export { Size, LoadingOutlineIcon as default };
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_gpkxqm_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_gpkxqm_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_gpkxqm_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_gpkxqm_4{
|
|
29
29
|
|
|
30
30
|
fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
|
|
31
31
|
|
|
32
32
|
width:var(--rs-icons-width, auto);
|
|
33
33
|
height:var(--rs-icons-height, var(--_rs-icons-height));
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
._sizeXS_gpkxqm_14{
|
|
36
36
|
--_rs-icons-height:16px;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
._sizeS_gpkxqm_18{
|
|
39
39
|
--_rs-icons-height:20px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
._sizeM_gpkxqm_22{
|
|
42
42
|
--_rs-icons-height:24px;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._sizeL_gpkxqm_26{
|
|
45
45
|
--_rs-icons-height:28px;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
._light_gpkxqm_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_gpkxqm_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,56 +60,56 @@
|
|
|
60
60
|
transform:rotate(360deg);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
._allVariants_gpkxqm_48{
|
|
64
64
|
aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
|
|
65
65
|
container:rs-icon / size;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
68
|
-
.
|
|
69
|
-
.
|
|
67
|
+
._variant16_gpkxqm_53,
|
|
68
|
+
._variant20_gpkxqm_54,
|
|
69
|
+
._variant24_gpkxqm_55{
|
|
70
70
|
display:none;
|
|
71
71
|
}
|
|
72
|
-
.
|
|
72
|
+
._variant28_gpkxqm_58{
|
|
73
73
|
display:block;
|
|
74
74
|
}
|
|
75
75
|
@container rs-icon (max-height: 24px){
|
|
76
|
-
.
|
|
76
|
+
._variant24_gpkxqm_55{
|
|
77
77
|
display:block;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
._variant28_gpkxqm_58{
|
|
80
80
|
display:none;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
@container rs-icon (max-height: 20px){
|
|
84
|
-
.
|
|
84
|
+
._variant20_gpkxqm_54{
|
|
85
85
|
display:block;
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
._variant24_gpkxqm_55{
|
|
88
88
|
display:none;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
@container rs-icon (max-height: 16px){
|
|
92
|
-
.
|
|
92
|
+
._variant16_gpkxqm_53{
|
|
93
93
|
display:block;
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
._variant20_gpkxqm_54{
|
|
96
96
|
display:none;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
._light_i23q0j_8{
|
|
100
100
|
--rs-theme-dark:0;
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
._dark_i23q0j_11{
|
|
103
103
|
--rs-theme-dark:1;
|
|
104
104
|
}
|
|
105
|
-
.
|
|
105
|
+
._sizeS_i23q0j_15{
|
|
106
106
|
--_rs-input-vertical-padding:6px;
|
|
107
107
|
--_rs-input-horizontal-padding:8px;
|
|
108
108
|
--_rs-input-parts-offset:4px;
|
|
109
109
|
--_rs-input-icon-offset:8px;
|
|
110
110
|
--_rs-input-icon-size:20px;
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
113
113
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
114
114
|
--_rs-typography-text-transform:initial;
|
|
115
115
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -143,10 +143,10 @@
|
|
|
143
143
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
144
144
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
145
145
|
}
|
|
146
|
-
.
|
|
147
|
-
.
|
|
148
|
-
.
|
|
149
|
-
.
|
|
146
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__label'],
|
|
147
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__inner'],
|
|
148
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__inner']::placeholder,
|
|
149
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__suffix']{
|
|
150
150
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
151
151
|
--_rs-typography-text-transform:initial;
|
|
152
152
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
181
181
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
182
182
|
}
|
|
183
|
-
.
|
|
183
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__bold-label']{
|
|
184
184
|
--_rs-typography-letter-spacing:var(--rs-h5-letter-spacing, normal);
|
|
185
185
|
--_rs-typography-text-transform:initial;
|
|
186
186
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
212
212
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
213
213
|
}
|
|
214
|
-
.
|
|
214
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__note']{
|
|
215
215
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
216
216
|
--_rs-typography-text-transform:initial;
|
|
217
217
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
246
246
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
247
247
|
}
|
|
248
|
-
.
|
|
248
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__error-message']{
|
|
249
249
|
--_rs-typography-letter-spacing:var(--rs-h5-letter-spacing, normal);
|
|
250
250
|
--_rs-typography-text-transform:initial;
|
|
251
251
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -276,17 +276,17 @@
|
|
|
276
276
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
277
277
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
278
278
|
}
|
|
279
|
-
.
|
|
279
|
+
._sizeS_i23q0j_15 [data-rs-internal='input__error-icon']:not(html){
|
|
280
280
|
--_rs-icons-height:20px;
|
|
281
281
|
}
|
|
282
|
-
.
|
|
282
|
+
._sizeM_i23q0j_18{
|
|
283
283
|
--_rs-input-vertical-padding:8px;
|
|
284
284
|
--_rs-input-horizontal-padding:8px;
|
|
285
285
|
--_rs-input-parts-offset:8px;
|
|
286
286
|
--_rs-input-icon-offset:8px;
|
|
287
287
|
--_rs-input-icon-size:24px;
|
|
288
288
|
}
|
|
289
|
-
.
|
|
289
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
290
290
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
291
291
|
--_rs-typography-text-transform:initial;
|
|
292
292
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -324,14 +324,14 @@
|
|
|
324
324
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
325
325
|
}
|
|
326
326
|
@media screen and (max-width: 640px){
|
|
327
|
-
.
|
|
327
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
328
328
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
.
|
|
332
|
-
.
|
|
333
|
-
.
|
|
334
|
-
.
|
|
331
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__label'],
|
|
332
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__inner'],
|
|
333
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__inner']::placeholder,
|
|
334
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__suffix']{
|
|
335
335
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
336
336
|
--_rs-typography-text-transform:initial;
|
|
337
337
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -369,14 +369,14 @@
|
|
|
369
369
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
370
370
|
}
|
|
371
371
|
@media screen and (max-width: 640px){
|
|
372
|
-
.
|
|
373
|
-
.
|
|
374
|
-
.
|
|
375
|
-
.
|
|
372
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__label'],
|
|
373
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__inner'],
|
|
374
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__inner']::placeholder,
|
|
375
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__suffix']{
|
|
376
376
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
.
|
|
379
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__bold-label']{
|
|
380
380
|
--_rs-typography-letter-spacing:var(--rs-h4-letter-spacing, normal);
|
|
381
381
|
--_rs-typography-text-transform:initial;
|
|
382
382
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
408
408
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
409
409
|
}
|
|
410
|
-
.
|
|
410
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__note']{
|
|
411
411
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
412
412
|
--_rs-typography-text-transform:initial;
|
|
413
413
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
442
442
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
443
443
|
}
|
|
444
|
-
.
|
|
444
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__error-message']{
|
|
445
445
|
--_rs-typography-letter-spacing:var(--rs-h5-letter-spacing, normal);
|
|
446
446
|
--_rs-typography-text-transform:initial;
|
|
447
447
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -472,17 +472,17 @@
|
|
|
472
472
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
473
473
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
474
474
|
}
|
|
475
|
-
.
|
|
475
|
+
._sizeM_i23q0j_18 [data-rs-internal='input__error-icon']:not(html){
|
|
476
476
|
--_rs-icons-height:20px;
|
|
477
477
|
}
|
|
478
|
-
.
|
|
478
|
+
._sizeL_i23q0j_21{
|
|
479
479
|
--_rs-input-vertical-padding:12px;
|
|
480
480
|
--_rs-input-horizontal-padding:16px;
|
|
481
481
|
--_rs-input-parts-offset:8px;
|
|
482
482
|
--_rs-input-icon-offset:16px;
|
|
483
483
|
--_rs-input-icon-size:28px;
|
|
484
484
|
}
|
|
485
|
-
.
|
|
485
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
486
486
|
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
487
487
|
--_rs-typography-text-transform:initial;
|
|
488
488
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -520,14 +520,14 @@
|
|
|
520
520
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
521
521
|
}
|
|
522
522
|
@media screen and (max-width: 640px){
|
|
523
|
-
.
|
|
523
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__inner']::-moz-placeholder{
|
|
524
524
|
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
.
|
|
528
|
-
.
|
|
529
|
-
.
|
|
530
|
-
.
|
|
527
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__label'],
|
|
528
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__inner'],
|
|
529
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__inner']::placeholder,
|
|
530
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__suffix']{
|
|
531
531
|
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
532
532
|
--_rs-typography-text-transform:initial;
|
|
533
533
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -565,14 +565,14 @@
|
|
|
565
565
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
566
566
|
}
|
|
567
567
|
@media screen and (max-width: 640px){
|
|
568
|
-
.
|
|
569
|
-
.
|
|
570
|
-
.
|
|
571
|
-
.
|
|
568
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__label'],
|
|
569
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__inner'],
|
|
570
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__inner']::placeholder,
|
|
571
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__suffix']{
|
|
572
572
|
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
.
|
|
575
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__bold-label']{
|
|
576
576
|
--_rs-typography-letter-spacing:var(--rs-h3-letter-spacing, normal);
|
|
577
577
|
--_rs-typography-text-transform:initial;
|
|
578
578
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
604
604
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
605
605
|
}
|
|
606
|
-
.
|
|
606
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__note']{
|
|
607
607
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
608
608
|
--_rs-typography-text-transform:initial;
|
|
609
609
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -641,11 +641,11 @@
|
|
|
641
641
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
642
642
|
}
|
|
643
643
|
@media screen and (max-width: 640px){
|
|
644
|
-
.
|
|
644
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__note']{
|
|
645
645
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
.
|
|
648
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__error-message']{
|
|
649
649
|
--_rs-typography-letter-spacing:var(--rs-h4-letter-spacing, normal);
|
|
650
650
|
--_rs-typography-text-transform:initial;
|
|
651
651
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -676,10 +676,10 @@
|
|
|
676
676
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
677
677
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
678
678
|
}
|
|
679
|
-
.
|
|
679
|
+
._sizeL_i23q0j_21 [data-rs-internal='input__error-icon']:not(html){
|
|
680
680
|
--_rs-icons-height:24px;
|
|
681
681
|
}
|
|
682
|
-
.
|
|
682
|
+
._classic_i23q0j_25{
|
|
683
683
|
--_rs-input-focused-enabled-wrapper-border-width:2px;
|
|
684
684
|
--_rs-input-focused-enabled-wrapper-background:rgb(
|
|
685
685
|
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)
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
0.5
|
|
705
705
|
);
|
|
706
706
|
}
|
|
707
|
-
.
|
|
707
|
+
._rock_i23q0j_28{
|
|
708
708
|
--_rs-input-focused-enabled-wrapper-border-width:0px;
|
|
709
709
|
--_rs-input-focused-enabled-wrapper-background:rgb(
|
|
710
710
|
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)
|
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
0.7
|
|
729
729
|
);
|
|
730
730
|
}
|
|
731
|
-
.
|
|
731
|
+
._container_i23q0j_32{
|
|
732
732
|
--_rs-theme-dark:var(
|
|
733
733
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
734
734
|
var(--rs-theme-dark, 0)
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
739
739
|
}
|
|
740
740
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
741
|
-
.
|
|
741
|
+
._container_i23q0j_32{
|
|
742
742
|
--_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)));
|
|
743
743
|
--_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)));
|
|
744
744
|
--_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)));
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
750
|
-
.
|
|
750
|
+
._container_i23q0j_32{
|
|
751
751
|
--_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);
|
|
752
752
|
--_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));
|
|
753
753
|
--_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));
|
|
@@ -755,11 +755,11 @@
|
|
|
755
755
|
--_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));
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
.
|
|
758
|
+
._container_i23q0j_32 {
|
|
759
759
|
|
|
760
760
|
display:block;
|
|
761
761
|
}
|
|
762
|
-
.
|
|
762
|
+
._wrapper_i23q0j_39{
|
|
763
763
|
--_rs-input-border-width:1px;
|
|
764
764
|
--_rs-input-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.2);
|
|
765
765
|
--_rs-input-background-color: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));
|
|
@@ -774,36 +774,36 @@
|
|
|
774
774
|
|
|
775
775
|
box-shadow:inset 0 0 0 var(--_rs-input-border-width) var(--_rs-input-border-color);
|
|
776
776
|
}
|
|
777
|
-
.
|
|
777
|
+
._error_i23q0j_55 ._wrapper_i23q0j_39{
|
|
778
778
|
--_rs-input-border-width:2px;
|
|
779
779
|
--_rs-input-border-color:#F45C4A;
|
|
780
780
|
--_rs-input-background-color: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));
|
|
781
781
|
}
|
|
782
|
-
.
|
|
782
|
+
._disabled_i23q0j_61 ._wrapper_i23q0j_39{
|
|
783
783
|
--_rs-input-background-color:rgb(calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*181));
|
|
784
784
|
|
|
785
785
|
cursor:auto;
|
|
786
786
|
}
|
|
787
|
-
.
|
|
787
|
+
._enabled_i23q0j_67._focused_i23q0j_67 ._wrapper_i23q0j_39{
|
|
788
788
|
--_rs-input-background-color:var(
|
|
789
789
|
--_rs-input-focused-enabled-wrapper-background
|
|
790
790
|
);
|
|
791
791
|
}
|
|
792
|
-
.
|
|
792
|
+
._enabled_i23q0j_67:not(._error_i23q0j_55)._filled_i23q0j_73 ._wrapper_i23q0j_39{
|
|
793
793
|
--_rs-input-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);
|
|
794
794
|
}
|
|
795
795
|
@media (hover: hover){
|
|
796
|
-
.
|
|
796
|
+
._enabled_i23q0j_67:not(._error_i23q0j_55):hover ._wrapper_i23q0j_39{
|
|
797
797
|
--_rs-input-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);
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
|
-
.
|
|
800
|
+
._enabled_i23q0j_67:not(._error_i23q0j_55)._focused_i23q0j_67 ._wrapper_i23q0j_39{
|
|
801
801
|
--_rs-input-border-width:var(
|
|
802
802
|
--_rs-input-focused-enabled-wrapper-border-width
|
|
803
803
|
);
|
|
804
804
|
--_rs-input-border-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));
|
|
805
805
|
}
|
|
806
|
-
.
|
|
806
|
+
._field_i23q0j_91{
|
|
807
807
|
display:flex;
|
|
808
808
|
|
|
809
809
|
flex:1 1 auto;
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
|
|
813
813
|
padding:var(--_rs-input-vertical-padding) var(--_rs-input-horizontal-padding);
|
|
814
814
|
}
|
|
815
|
-
.
|
|
815
|
+
._inner_i23q0j_101{
|
|
816
816
|
letter-spacing:var(
|
|
817
817
|
--rs-text-base-letter-spacing,
|
|
818
818
|
var(--_rs-typography-letter-spacing)
|
|
@@ -825,26 +825,26 @@
|
|
|
825
825
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
826
826
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
827
827
|
}
|
|
828
|
-
.
|
|
828
|
+
._inner_i23q0j_101::-ms-clear{
|
|
829
829
|
display:none;
|
|
830
830
|
|
|
831
831
|
width:0;
|
|
832
832
|
height:0;
|
|
833
833
|
}
|
|
834
|
-
.
|
|
834
|
+
._dark_i23q0j_11 ._inner_i23q0j_101{
|
|
835
835
|
color-scheme:dark;
|
|
836
836
|
}
|
|
837
837
|
@container style(--_rs-theme-dark-coefficient: 1){
|
|
838
|
-
.
|
|
838
|
+
._inner_i23q0j_101{
|
|
839
839
|
color-scheme:dark
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
@container style(--_rs-theme-dark-coefficient: 0){
|
|
843
|
-
.
|
|
843
|
+
._inner_i23q0j_101{
|
|
844
844
|
color-scheme:light
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
|
-
.
|
|
847
|
+
._inner_i23q0j_101 {
|
|
848
848
|
|
|
849
849
|
display:block;
|
|
850
850
|
|
|
@@ -866,17 +866,17 @@
|
|
|
866
866
|
-moz-appearance:none;
|
|
867
867
|
appearance:none;
|
|
868
868
|
}
|
|
869
|
-
.
|
|
869
|
+
._inner_i23q0j_101:focus{
|
|
870
870
|
outline:none;
|
|
871
871
|
}
|
|
872
|
-
.
|
|
873
|
-
.
|
|
872
|
+
._disabled_i23q0j_61 ._inner_i23q0j_101,
|
|
873
|
+
._inner_i23q0j_101:disabled{
|
|
874
874
|
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);
|
|
875
875
|
}
|
|
876
|
-
.
|
|
876
|
+
._focused_i23q0j_67 ._inner_i23q0j_101{
|
|
877
877
|
color:var(--_rs-input-focused-inner-color);
|
|
878
878
|
}
|
|
879
|
-
.
|
|
879
|
+
._inner_i23q0j_101::-moz-placeholder{
|
|
880
880
|
letter-spacing:var(
|
|
881
881
|
--rs-text-base-letter-spacing,
|
|
882
882
|
var(--_rs-typography-letter-spacing)
|
|
@@ -892,10 +892,10 @@
|
|
|
892
892
|
|
|
893
893
|
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);
|
|
894
894
|
}
|
|
895
|
-
.
|
|
895
|
+
._focused_i23q0j_67 ._inner_i23q0j_101::-moz-placeholder{
|
|
896
896
|
color:var(--_rs-input-focused-inner-placeholder-color);
|
|
897
897
|
}
|
|
898
|
-
.
|
|
898
|
+
._inner_i23q0j_101::placeholder{
|
|
899
899
|
letter-spacing:var(
|
|
900
900
|
--rs-text-base-letter-spacing,
|
|
901
901
|
var(--_rs-typography-letter-spacing)
|
|
@@ -911,38 +911,38 @@
|
|
|
911
911
|
|
|
912
912
|
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);
|
|
913
913
|
}
|
|
914
|
-
.
|
|
914
|
+
._focused_i23q0j_67 ._inner_i23q0j_101::placeholder{
|
|
915
915
|
color:var(--_rs-input-focused-inner-placeholder-color);
|
|
916
916
|
}
|
|
917
|
-
.
|
|
917
|
+
._inner_i23q0j_101:-moz-ui-invalid{
|
|
918
918
|
box-shadow:none;
|
|
919
919
|
}
|
|
920
|
-
.
|
|
920
|
+
._inner_i23q0j_101:-moz-ui-invalid:-moz-focusring{
|
|
921
921
|
box-shadow:none;
|
|
922
922
|
}
|
|
923
|
-
.
|
|
924
|
-
.
|
|
925
|
-
.
|
|
926
|
-
.
|
|
923
|
+
._inner_i23q0j_101:-webkit-autofill,
|
|
924
|
+
._inner_i23q0j_101:-webkit-autofill:hover,
|
|
925
|
+
._inner_i23q0j_101:-webkit-autofill:active,
|
|
926
|
+
._inner_i23q0j_101:-webkit-autofill:focus{
|
|
927
927
|
-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;
|
|
928
928
|
|
|
929
929
|
transition-delay:9999s;
|
|
930
930
|
-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));
|
|
931
931
|
}
|
|
932
|
-
.
|
|
932
|
+
._focused_i23q0j_67 ._inner_i23q0j_101:-webkit-autofill, ._focused_i23q0j_67 ._inner_i23q0j_101:-webkit-autofill:hover, ._focused_i23q0j_67 ._inner_i23q0j_101:-webkit-autofill:active, ._focused_i23q0j_67 ._inner_i23q0j_101:-webkit-autofill:focus{
|
|
933
933
|
-webkit-box-shadow:0 0 0 1000px var(--_rs-input-focused-autofill-box-shadow) inset;
|
|
934
934
|
-webkit-text-fill-color:var(--_rs-input-focused-autofill-color);
|
|
935
935
|
}
|
|
936
|
-
.
|
|
936
|
+
._offSystemMicroelements_i23q0j_202 ._inner_i23q0j_101{
|
|
937
937
|
-moz-appearance:textfield;
|
|
938
938
|
}
|
|
939
|
-
.
|
|
940
|
-
.
|
|
939
|
+
._offSystemMicroelements_i23q0j_202 ._inner_i23q0j_101::-webkit-outer-spin-button,
|
|
940
|
+
._offSystemMicroelements_i23q0j_202 ._inner_i23q0j_101::-webkit-inner-spin-button{
|
|
941
941
|
margin:0;
|
|
942
942
|
-webkit-appearance:none;
|
|
943
943
|
appearance:none;
|
|
944
944
|
}
|
|
945
|
-
.
|
|
945
|
+
._iconWrapper_i23q0j_212{
|
|
946
946
|
display:inline-flex;
|
|
947
947
|
flex:0 0 auto;
|
|
948
948
|
|
|
@@ -953,15 +953,15 @@
|
|
|
953
953
|
|
|
954
954
|
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);
|
|
955
955
|
}
|
|
956
|
-
.
|
|
956
|
+
._iconWrapper_i23q0j_212._action_i23q0j_223{
|
|
957
957
|
position:relative;
|
|
958
958
|
|
|
959
959
|
cursor:pointer;
|
|
960
960
|
}
|
|
961
|
-
.
|
|
961
|
+
._iconWrapper_i23q0j_212._action_i23q0j_223:focus{
|
|
962
962
|
outline:none;
|
|
963
963
|
}
|
|
964
|
-
.
|
|
964
|
+
._iconWrapper_i23q0j_212._action_i23q0j_223::before{
|
|
965
965
|
position:absolute;
|
|
966
966
|
top:-4px;
|
|
967
967
|
right:-4px;
|
|
@@ -976,46 +976,46 @@
|
|
|
976
976
|
content:'';
|
|
977
977
|
pointer-events:none;
|
|
978
978
|
}
|
|
979
|
-
.
|
|
979
|
+
._iconWrapper_i23q0j_212._action_i23q0j_223:focus[data-focus-method='key']::before{
|
|
980
980
|
display:block;
|
|
981
981
|
}
|
|
982
|
-
.
|
|
982
|
+
._disabled_i23q0j_61 ._iconWrapper_i23q0j_212{
|
|
983
983
|
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);
|
|
984
984
|
}
|
|
985
|
-
.
|
|
985
|
+
._disabled_i23q0j_61 ._iconWrapper_i23q0j_212._action_i23q0j_223{
|
|
986
986
|
pointer-events:none;
|
|
987
987
|
}
|
|
988
|
-
.
|
|
988
|
+
._iconWrapper_i23q0j_212._right_i23q0j_261{
|
|
989
989
|
margin-left:var(--_rs-input-icon-offset);
|
|
990
990
|
}
|
|
991
|
-
.
|
|
991
|
+
._iconWrapper_i23q0j_212._left_i23q0j_265{
|
|
992
992
|
margin-right:var(--_rs-input-icon-offset);
|
|
993
993
|
}
|
|
994
|
-
.
|
|
994
|
+
._focused_i23q0j_67 ._iconWrapper_i23q0j_212{
|
|
995
995
|
color:var(--_rs-input-focused-icon-color);
|
|
996
996
|
}
|
|
997
997
|
@media (hover: hover){
|
|
998
|
-
.
|
|
998
|
+
._enabled_i23q0j_67 ._iconWrapper_i23q0j_212._action_i23q0j_223:hover{
|
|
999
999
|
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));
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
|
-
.
|
|
1002
|
+
._enabled_i23q0j_67._focused_i23q0j_67 ._iconWrapper_i23q0j_212._action_i23q0j_223:hover{
|
|
1003
1003
|
color:var(--_rs-input-focused-icon-accent-color);
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
.
|
|
1006
|
+
._enabled_i23q0j_67 ._iconWrapper_i23q0j_212._action_i23q0j_223:focus[data-focus-method='key']{
|
|
1007
1007
|
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));
|
|
1008
1008
|
}
|
|
1009
|
-
.
|
|
1009
|
+
._enabled_i23q0j_67._focused_i23q0j_67 ._iconWrapper_i23q0j_212._action_i23q0j_223:focus[data-focus-method='key']{
|
|
1010
1010
|
color:var(--_rs-input-focused-icon-accent-color);
|
|
1011
1011
|
}
|
|
1012
|
-
.
|
|
1012
|
+
._iconWrapper_i23q0j_212 ._icon_i23q0j_212{
|
|
1013
1013
|
fill:currentColor;
|
|
1014
1014
|
|
|
1015
1015
|
width:auto;
|
|
1016
1016
|
height:var(--_rs-input-icon-size);
|
|
1017
1017
|
}
|
|
1018
|
-
.
|
|
1018
|
+
._divider_i23q0j_299{
|
|
1019
1019
|
--_rs-input-divider-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);
|
|
1020
1020
|
|
|
1021
1021
|
display:block;
|
|
@@ -1026,10 +1026,10 @@
|
|
|
1026
1026
|
|
|
1027
1027
|
background:var(--_rs-input-divider-color);
|
|
1028
1028
|
}
|
|
1029
|
-
.
|
|
1029
|
+
._focused_i23q0j_67 ._divider_i23q0j_299{
|
|
1030
1030
|
--_rs-input-divider-color:var(--_rs-input-focused-divider-background);
|
|
1031
1031
|
}
|
|
1032
|
-
.
|
|
1032
|
+
._suffix_i23q0j_315{
|
|
1033
1033
|
letter-spacing:var(
|
|
1034
1034
|
--rs-text-base-letter-spacing,
|
|
1035
1035
|
var(--_rs-typography-letter-spacing)
|
|
@@ -1048,10 +1048,10 @@
|
|
|
1048
1048
|
|
|
1049
1049
|
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);
|
|
1050
1050
|
}
|
|
1051
|
-
.
|
|
1051
|
+
._focused_i23q0j_67 ._suffix_i23q0j_315{
|
|
1052
1052
|
color:var(--_rs-input-focused-suffix-color);
|
|
1053
1053
|
}
|
|
1054
|
-
.
|
|
1054
|
+
._errorMessage_i23q0j_329{
|
|
1055
1055
|
letter-spacing:var(
|
|
1056
1056
|
--rs-text-base-letter-spacing,
|
|
1057
1057
|
var(--_rs-typography-letter-spacing)
|
|
@@ -1073,12 +1073,12 @@
|
|
|
1073
1073
|
-moz-column-gap:8px;
|
|
1074
1074
|
column-gap:8px;
|
|
1075
1075
|
}
|
|
1076
|
-
.
|
|
1076
|
+
._errorIcon_i23q0j_341{
|
|
1077
1077
|
flex:0 0 auto;
|
|
1078
1078
|
|
|
1079
1079
|
color:#F45C4A;
|
|
1080
1080
|
}
|
|
1081
|
-
.
|
|
1081
|
+
._note_i23q0j_347{
|
|
1082
1082
|
letter-spacing:var(
|
|
1083
1083
|
--rs-text-base-letter-spacing,
|
|
1084
1084
|
var(--_rs-typography-letter-spacing)
|
|
@@ -1097,13 +1097,13 @@
|
|
|
1097
1097
|
|
|
1098
1098
|
margin-top:var(--_rs-input-parts-offset);
|
|
1099
1099
|
}
|
|
1100
|
-
.
|
|
1100
|
+
._disabled_i23q0j_61 ._note_i23q0j_347{
|
|
1101
1101
|
color:var(
|
|
1102
1102
|
--rs-color-pale,
|
|
1103
1103
|
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)
|
|
1104
1104
|
);
|
|
1105
1105
|
}
|
|
1106
|
-
.
|
|
1106
|
+
._label_i23q0j_358{
|
|
1107
1107
|
letter-spacing:var(
|
|
1108
1108
|
--rs-text-base-letter-spacing,
|
|
1109
1109
|
var(--_rs-typography-letter-spacing)
|
|
@@ -1122,7 +1122,7 @@
|
|
|
1122
1122
|
|
|
1123
1123
|
margin-bottom:var(--_rs-input-parts-offset);
|
|
1124
1124
|
}
|
|
1125
|
-
.
|
|
1125
|
+
._disabled_i23q0j_61 ._label_i23q0j_358{
|
|
1126
1126
|
color:var(
|
|
1127
1127
|
--rs-color-pale,
|
|
1128
1128
|
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
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
6
6
|
import WarningIcon from './_virtual/warning.js';
|
|
7
|
-
import
|
|
7
|
+
import CloseOutlineIcon from './_virtual/close-outline.js';
|
|
8
8
|
import styles from './input.p.module.css.js';
|
|
9
9
|
import { RightIcons } from './parts/right-icons.js';
|
|
10
10
|
import { CustomIcon } from './parts/custom-icon.js';
|
|
@@ -40,7 +40,7 @@ const Input = /*#__PURE__*/React.forwardRef( // eslint-disable-next-line complex
|
|
|
40
40
|
iconType = 'right',
|
|
41
41
|
label,
|
|
42
42
|
note,
|
|
43
|
-
clearIcon = /*#__PURE__*/React.createElement(
|
|
43
|
+
clearIcon = /*#__PURE__*/React.createElement(CloseOutlineIcon, null),
|
|
44
44
|
suffix,
|
|
45
45
|
offSystemMicroelements,
|
|
46
46
|
style,
|
|
@@ -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
|
-
"error": "
|
|
12
|
-
"disabled": "
|
|
13
|
-
"enabled": "
|
|
14
|
-
"focused": "
|
|
15
|
-
"filled": "
|
|
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_i23q0j_8",
|
|
3
|
+
"dark": "_dark_i23q0j_11",
|
|
4
|
+
"sizeS": "_sizeS_i23q0j_15",
|
|
5
|
+
"sizeM": "_sizeM_i23q0j_18",
|
|
6
|
+
"sizeL": "_sizeL_i23q0j_21",
|
|
7
|
+
"classic": "_classic_i23q0j_25",
|
|
8
|
+
"rock": "_rock_i23q0j_28",
|
|
9
|
+
"container": "_container_i23q0j_32",
|
|
10
|
+
"wrapper": "_wrapper_i23q0j_39",
|
|
11
|
+
"error": "_error_i23q0j_55",
|
|
12
|
+
"disabled": "_disabled_i23q0j_61",
|
|
13
|
+
"enabled": "_enabled_i23q0j_67",
|
|
14
|
+
"focused": "_focused_i23q0j_67",
|
|
15
|
+
"filled": "_filled_i23q0j_73",
|
|
16
|
+
"field": "_field_i23q0j_91",
|
|
17
|
+
"inner": "_inner_i23q0j_101",
|
|
18
|
+
"offSystemMicroelements": "_offSystemMicroelements_i23q0j_202",
|
|
19
|
+
"iconWrapper": "_iconWrapper_i23q0j_212",
|
|
20
|
+
"action": "_action_i23q0j_223",
|
|
21
|
+
"right": "_right_i23q0j_261",
|
|
22
|
+
"left": "_left_i23q0j_265",
|
|
23
|
+
"icon": "_icon_i23q0j_212",
|
|
24
|
+
"divider": "_divider_i23q0j_299",
|
|
25
|
+
"suffix": "_suffix_i23q0j_315",
|
|
26
|
+
"errorMessage": "_errorMessage_i23q0j_329",
|
|
27
|
+
"errorIcon": "_errorIcon_i23q0j_341",
|
|
28
|
+
"note": "_note_i23q0j_347",
|
|
29
|
+
"label": "_label_i23q0j_358"
|
|
30
30
|
};
|
|
31
31
|
export { styles as default };
|
package/lib/parts/right-icons.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import
|
|
3
|
+
import LoadingOutlineIcon from '../_virtual/loading-outline.js';
|
|
4
4
|
import styles from '../input.p.module.css.js';
|
|
5
5
|
import { CustomIcon } from './custom-icon.js'; // eslint-disable-next-line complexity
|
|
6
6
|
|
|
@@ -47,7 +47,7 @@ const RightIcons = _ref => {
|
|
|
47
47
|
return /*#__PURE__*/React.createElement(React.Fragment, null, icons.slice(0, busy ? -1 : icons.length), busy && /*#__PURE__*/React.createElement("span", {
|
|
48
48
|
key: "loading",
|
|
49
49
|
className: cn(styles.iconWrapper, styles.right)
|
|
50
|
-
}, /*#__PURE__*/React.createElement(
|
|
50
|
+
}, /*#__PURE__*/React.createElement(LoadingOutlineIcon, {
|
|
51
51
|
"data-test": "input__busy-icon",
|
|
52
52
|
className: styles.icon,
|
|
53
53
|
"data-render-all-sizes": true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/input",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -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": "66c499bb620ffa7b651301dfb24dbb4e5782435d"
|
|
42
42
|
}
|
package/lib/_virtual/close.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import cn from 'classnames';
|
|
5
|
-
import styles from './index.css.js';
|
|
6
|
-
const sizeStyles = {
|
|
7
|
-
"xs": styles.sizeXS,
|
|
8
|
-
"s": styles.sizeS,
|
|
9
|
-
"m": styles.sizeM,
|
|
10
|
-
"l": styles.sizeL
|
|
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';
|
|
50
|
-
const CloseIcon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
51
|
-
let {
|
|
52
|
-
theme,
|
|
53
|
-
size: sizeFromProps = "m",
|
|
54
|
-
className,
|
|
55
|
-
style,
|
|
56
|
-
['data-render-all-sizes']: renderAllSizes = false,
|
|
57
|
-
...props
|
|
58
|
-
} = _ref;
|
|
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);
|
|
97
|
-
});
|
|
98
|
-
CloseIcon.displayName = 'CloseIcon';
|
|
99
|
-
CloseIcon.propTypes = {
|
|
100
|
-
className: PropTypes.string,
|
|
101
|
-
theme: PropTypes.oneOf(["light", "dark"]),
|
|
102
|
-
size: PropTypes.oneOf(["xs", "s", "m", "l"]),
|
|
103
|
-
'data-render-all-sizes': PropTypes.bool,
|
|
104
|
-
style: PropTypes.object
|
|
105
|
-
};
|
|
106
|
-
export { Size, CloseIcon as default };
|