@rescui/select 0.13.1-RUI-270-Update-select-options-label-types-b99bd91c.3 → 0.14.1-RUI-274-Fix-tooltip-rendering-for-React-19-abd1bdf9.7
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/check-outline.js +106 -0
- package/lib/_virtual/close-outline.js +106 -0
- package/lib/_virtual/down-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 +161 -161
- package/lib/parts/common-select.p.module.css.js +12 -12
- package/lib/parts/form-trigger.p.module.css.js +10 -10
- package/lib/parts/multiselect.js +2 -2
- package/lib/parts/native-select.p.module.css.js +6 -6
- package/lib/parts/trigger.js +6 -6
- package/lib/parts/trigger.p.module.css.js +28 -28
- package/lib/utils.js +1 -1
- package/package.json +8 -8
- package/lib/_virtual/check.js +0 -106
- package/lib/_virtual/close.js +0 -106
- package/lib/_virtual/down.js +0 -106
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
|
|
2
|
+
import React 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 CheckOutlineIcon16 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
19
|
+
viewBox: "0 0 16 16"
|
|
20
|
+
}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
d: "M13.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.793l6.646-6.647a.5.5 0 0 1 .708 0"
|
|
24
|
+
})));
|
|
25
|
+
CheckOutlineIcon16.displayName = 'CheckOutlineIcon16';
|
|
26
|
+
const CheckOutlineIcon20 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
27
|
+
viewBox: "0 0 20 20"
|
|
28
|
+
}, props, {
|
|
29
|
+
ref: ref
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
d: "M16.53 5.47a.75.75 0 0 1 0 1.06l-8 8a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94l7.47-7.47a.75.75 0 0 1 1.06 0"
|
|
32
|
+
})));
|
|
33
|
+
CheckOutlineIcon20.displayName = 'CheckOutlineIcon20';
|
|
34
|
+
const CheckOutlineIcon24 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
35
|
+
viewBox: "0 0 24 24"
|
|
36
|
+
}, props, {
|
|
37
|
+
ref: ref
|
|
38
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
39
|
+
d: "M19.707 6.293a1 1 0 0 1 0 1.414l-10 10a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L9 15.586l9.293-9.293a1 1 0 0 1 1.414 0"
|
|
40
|
+
})));
|
|
41
|
+
CheckOutlineIcon24.displayName = 'CheckOutlineIcon24';
|
|
42
|
+
const CheckOutlineIcon28 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
43
|
+
viewBox: "0 0 28 28"
|
|
44
|
+
}, props, {
|
|
45
|
+
ref: ref
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
d: "M22.676 7.263a1 1 0 0 1 .061 1.413l-11 12a1 1 0 0 1-1.444.031l-6-6a1 1 0 1 1 1.414-1.414l5.262 5.261 10.294-11.23a1 1 0 0 1 1.413-.061"
|
|
48
|
+
})));
|
|
49
|
+
CheckOutlineIcon28.displayName = 'CheckOutlineIcon28';
|
|
50
|
+
const CheckOutlineIcon = /*#__PURE__*/React.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.createElement("svg", _extends({
|
|
72
|
+
viewBox: "0 0 28 28"
|
|
73
|
+
}, mainProps), /*#__PURE__*/React.createElement(CheckOutlineIcon16, {
|
|
74
|
+
className: styles.variant16
|
|
75
|
+
}), /*#__PURE__*/React.createElement(CheckOutlineIcon20, {
|
|
76
|
+
className: styles.variant20
|
|
77
|
+
}), /*#__PURE__*/React.createElement(CheckOutlineIcon24, {
|
|
78
|
+
className: styles.variant24
|
|
79
|
+
}), /*#__PURE__*/React.createElement(CheckOutlineIcon28, {
|
|
80
|
+
className: styles.variant28
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (size === Size['xs']) {
|
|
85
|
+
return /*#__PURE__*/React.createElement(CheckOutlineIcon16, mainProps);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (size === Size['s']) {
|
|
89
|
+
return /*#__PURE__*/React.createElement(CheckOutlineIcon20, mainProps);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (size === Size['m']) {
|
|
93
|
+
return /*#__PURE__*/React.createElement(CheckOutlineIcon24, mainProps);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return /*#__PURE__*/React.createElement(CheckOutlineIcon28, mainProps);
|
|
97
|
+
});
|
|
98
|
+
CheckOutlineIcon.displayName = 'CheckOutlineIcon';
|
|
99
|
+
CheckOutlineIcon.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, CheckOutlineIcon as default };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
|
|
2
|
+
import React 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.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
19
|
+
viewBox: "0 0 16 16"
|
|
20
|
+
}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
d: "M2.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.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
27
|
+
viewBox: "0 0 20 20"
|
|
28
|
+
}, props, {
|
|
29
|
+
ref: ref
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
d: "M3.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.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
35
|
+
viewBox: "0 0 24 24"
|
|
36
|
+
}, props, {
|
|
37
|
+
ref: ref
|
|
38
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
39
|
+
d: "M3.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.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
43
|
+
viewBox: "0 0 28 28"
|
|
44
|
+
}, props, {
|
|
45
|
+
ref: ref
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
d: "M4.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.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.createElement("svg", _extends({
|
|
72
|
+
viewBox: "0 0 28 28"
|
|
73
|
+
}, mainProps), /*#__PURE__*/React.createElement(CloseOutlineIcon16, {
|
|
74
|
+
className: styles.variant16
|
|
75
|
+
}), /*#__PURE__*/React.createElement(CloseOutlineIcon20, {
|
|
76
|
+
className: styles.variant20
|
|
77
|
+
}), /*#__PURE__*/React.createElement(CloseOutlineIcon24, {
|
|
78
|
+
className: styles.variant24
|
|
79
|
+
}), /*#__PURE__*/React.createElement(CloseOutlineIcon28, {
|
|
80
|
+
className: styles.variant28
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (size === Size['xs']) {
|
|
85
|
+
return /*#__PURE__*/React.createElement(CloseOutlineIcon16, mainProps);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (size === Size['s']) {
|
|
89
|
+
return /*#__PURE__*/React.createElement(CloseOutlineIcon20, mainProps);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (size === Size['m']) {
|
|
93
|
+
return /*#__PURE__*/React.createElement(CloseOutlineIcon24, mainProps);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return /*#__PURE__*/React.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 };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
|
|
2
|
+
import React 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 DownOutlineIcon16 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
19
|
+
viewBox: "0 0 16 16"
|
|
20
|
+
}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
d: "M11.354 6.146a.5.5 0 0 0-.708 0L8 8.793 5.354 6.146a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0 0-.708"
|
|
24
|
+
})));
|
|
25
|
+
DownOutlineIcon16.displayName = 'DownOutlineIcon16';
|
|
26
|
+
const DownOutlineIcon20 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
27
|
+
viewBox: "0 0 20 20"
|
|
28
|
+
}, props, {
|
|
29
|
+
ref: ref
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
d: "M14.53 7.47a.75.75 0 0 0-1.06 0L10 10.94 6.53 7.47a.75.75 0 0 0-1.06 1.06l4 4a.75.75 0 0 0 1.06 0l4-4a.75.75 0 0 0 0-1.06"
|
|
32
|
+
})));
|
|
33
|
+
DownOutlineIcon20.displayName = 'DownOutlineIcon20';
|
|
34
|
+
const DownOutlineIcon24 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
35
|
+
viewBox: "0 0 24 24"
|
|
36
|
+
}, props, {
|
|
37
|
+
ref: ref
|
|
38
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
39
|
+
d: "M18.707 8.293a1 1 0 0 0-1.414 0L12 13.586 6.707 8.293a1 1 0 0 0-1.414 1.414l6 6a1 1 0 0 0 1.414 0l6-6a1 1 0 0 0 0-1.414"
|
|
40
|
+
})));
|
|
41
|
+
DownOutlineIcon24.displayName = 'DownOutlineIcon24';
|
|
42
|
+
const DownOutlineIcon28 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
43
|
+
viewBox: "0 0 28 28"
|
|
44
|
+
}, props, {
|
|
45
|
+
ref: ref
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
d: "M21.707 9.793a1 1 0 0 0-1.414 0L14 16.086 7.707 9.793a1 1 0 0 0-1.414 1.414l7 7a1 1 0 0 0 1.414 0l7-7a1 1 0 0 0 0-1.414"
|
|
48
|
+
})));
|
|
49
|
+
DownOutlineIcon28.displayName = 'DownOutlineIcon28';
|
|
50
|
+
const DownOutlineIcon = /*#__PURE__*/React.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.createElement("svg", _extends({
|
|
72
|
+
viewBox: "0 0 28 28"
|
|
73
|
+
}, mainProps), /*#__PURE__*/React.createElement(DownOutlineIcon16, {
|
|
74
|
+
className: styles.variant16
|
|
75
|
+
}), /*#__PURE__*/React.createElement(DownOutlineIcon20, {
|
|
76
|
+
className: styles.variant20
|
|
77
|
+
}), /*#__PURE__*/React.createElement(DownOutlineIcon24, {
|
|
78
|
+
className: styles.variant24
|
|
79
|
+
}), /*#__PURE__*/React.createElement(DownOutlineIcon28, {
|
|
80
|
+
className: styles.variant28
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (size === Size['xs']) {
|
|
85
|
+
return /*#__PURE__*/React.createElement(DownOutlineIcon16, mainProps);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (size === Size['s']) {
|
|
89
|
+
return /*#__PURE__*/React.createElement(DownOutlineIcon20, mainProps);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (size === Size['m']) {
|
|
93
|
+
return /*#__PURE__*/React.createElement(DownOutlineIcon24, mainProps);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return /*#__PURE__*/React.createElement(DownOutlineIcon28, mainProps);
|
|
97
|
+
});
|
|
98
|
+
DownOutlineIcon.displayName = 'DownOutlineIcon';
|
|
99
|
+
DownOutlineIcon.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, DownOutlineIcon 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_19yj7hj_4",
|
|
3
|
+
"sizeXS": "_sizeXS_19yj7hj_14",
|
|
4
|
+
"sizeS": "_sizeS_19yj7hj_18",
|
|
5
|
+
"sizeM": "_sizeM_19yj7hj_22",
|
|
6
|
+
"sizeL": "_sizeL_19yj7hj_26",
|
|
7
|
+
"light": "_light_19yj7hj_30",
|
|
8
|
+
"dark": "_dark_19yj7hj_34",
|
|
9
|
+
"allVariants": "_allVariants_19yj7hj_48",
|
|
10
|
+
"variant16": "_variant16_19yj7hj_53",
|
|
11
|
+
"variant20": "_variant20_19yj7hj_54",
|
|
12
|
+
"variant24": "_variant24_19yj7hj_55",
|
|
13
|
+
"variant28": "_variant28_19yj7hj_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.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
19
19
|
viewBox: "0 0 16 16"
|
|
20
20
|
}, props, {
|
|
21
21
|
ref: ref
|
|
22
22
|
}), /*#__PURE__*/React.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.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
31
31
|
viewBox: "0 0 20 20"
|
|
32
32
|
}, props, {
|
|
33
33
|
ref: ref
|
|
34
34
|
}), /*#__PURE__*/React.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.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
43
43
|
viewBox: "0 0 24 24"
|
|
44
44
|
}, props, {
|
|
45
45
|
ref: ref
|
|
46
46
|
}), /*#__PURE__*/React.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.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
55
55
|
viewBox: "0 0 28 28"
|
|
56
56
|
}, props, {
|
|
57
57
|
ref: ref
|
|
58
58
|
}), /*#__PURE__*/React.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.forwardRef((_ref, ref) => {
|
|
67
67
|
let {
|
|
68
68
|
theme,
|
|
69
69
|
size: sizeFromProps = "m",
|
|
@@ -86,37 +86,37 @@ const LoadingIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
86
86
|
if (renderAllSizes) {
|
|
87
87
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
88
88
|
viewBox: "0 0 28 28"
|
|
89
|
-
}, mainProps), /*#__PURE__*/React.createElement(
|
|
89
|
+
}, mainProps), /*#__PURE__*/React.createElement(LoadingOutlineIcon16, {
|
|
90
90
|
className: styles.variant16
|
|
91
|
-
}), /*#__PURE__*/React.createElement(
|
|
91
|
+
}), /*#__PURE__*/React.createElement(LoadingOutlineIcon20, {
|
|
92
92
|
className: styles.variant20
|
|
93
|
-
}), /*#__PURE__*/React.createElement(
|
|
93
|
+
}), /*#__PURE__*/React.createElement(LoadingOutlineIcon24, {
|
|
94
94
|
className: styles.variant24
|
|
95
|
-
}), /*#__PURE__*/React.createElement(
|
|
95
|
+
}), /*#__PURE__*/React.createElement(LoadingOutlineIcon28, {
|
|
96
96
|
className: styles.variant28
|
|
97
97
|
}));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
if (size === Size['xs']) {
|
|
101
|
-
return /*#__PURE__*/React.createElement(
|
|
101
|
+
return /*#__PURE__*/React.createElement(LoadingOutlineIcon16, mainProps);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
if (size === Size['s']) {
|
|
105
|
-
return /*#__PURE__*/React.createElement(
|
|
105
|
+
return /*#__PURE__*/React.createElement(LoadingOutlineIcon20, mainProps);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
if (size === Size['m']) {
|
|
109
|
-
return /*#__PURE__*/React.createElement(
|
|
109
|
+
return /*#__PURE__*/React.createElement(LoadingOutlineIcon24, mainProps);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
return /*#__PURE__*/React.createElement(
|
|
112
|
+
return /*#__PURE__*/React.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 };
|