@rescui/select 0.11.11-RUI-230-Update-icons-experiments-872b9bf9.15 → 0.11.11-RUI-230-Update-icons-tree-shaking-ec76507a.10
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/index.css.js +7 -7
- package/lib/_virtual/pure.js +76 -0
- package/lib/_virtual/pure2.js +76 -0
- package/lib/_virtual/pure3.js +92 -0
- package/lib/_virtual/pure4.js +76 -0
- package/lib/_virtual/pure5.js +76 -0
- package/lib/index.css +157 -157
- package/lib/parts/common-select.p.module.css.js +12 -12
- package/lib/parts/form-trigger-wrapper.js +1 -1
- package/lib/parts/form-trigger.p.module.css.js +10 -10
- package/lib/parts/multiselect.js +1 -1
- package/lib/parts/native-select.p.module.css.js +6 -6
- package/lib/parts/trigger.js +3 -3
- package/lib/parts/trigger.p.module.css.js +27 -27
- package/package.json +8 -8
- package/lib/_virtual/index.js +0 -36
- package/lib/_virtual/index2.js +0 -36
- package/lib/_virtual/index3.js +0 -44
- package/lib/_virtual/index4.js +0 -36
- package/lib/_virtual/index5.js +0 -36
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"sizeS": "
|
|
3
|
-
"sizeM": "
|
|
4
|
-
"sizeL": "
|
|
5
|
-
"menu": "
|
|
6
|
-
"menuSizeS": "
|
|
7
|
-
"menuSizeM": "
|
|
8
|
-
"menuSizeL": "
|
|
9
|
-
"withGroupsLabel": "
|
|
10
|
-
"lastOption": "
|
|
11
|
-
"divider": "
|
|
12
|
-
"checkIcon": "
|
|
13
|
-
"observable": "
|
|
2
|
+
"sizeS": "_sizeS_rrdv1m_3",
|
|
3
|
+
"sizeM": "_sizeM_rrdv1m_6",
|
|
4
|
+
"sizeL": "_sizeL_rrdv1m_9",
|
|
5
|
+
"menu": "_menu_rrdv1m_13",
|
|
6
|
+
"menuSizeS": "_menuSizeS_rrdv1m_26",
|
|
7
|
+
"menuSizeM": "_menuSizeM_rrdv1m_30",
|
|
8
|
+
"menuSizeL": "_menuSizeL_rrdv1m_34",
|
|
9
|
+
"withGroupsLabel": "_withGroupsLabel_rrdv1m_40",
|
|
10
|
+
"lastOption": "_lastOption_rrdv1m_39",
|
|
11
|
+
"divider": "_divider_rrdv1m_45",
|
|
12
|
+
"checkIcon": "_checkIcon_rrdv1m_51",
|
|
13
|
+
"observable": "_observable_rrdv1m_56"
|
|
14
14
|
};
|
|
15
15
|
export { styles as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
4
|
-
import
|
|
4
|
+
import WarningIcon from '../_virtual/pure4.js';
|
|
5
5
|
import styles from './form-trigger.p.module.css.js';
|
|
6
6
|
const SIZE_STYLES = {
|
|
7
7
|
l: styles.sizeL,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"themeLight": "
|
|
3
|
-
"themeDark": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"main": "
|
|
8
|
-
"label": "
|
|
9
|
-
"errorMessage": "
|
|
10
|
-
"errorIcon": "
|
|
11
|
-
"note": "
|
|
2
|
+
"themeLight": "_themeLight_dmav9r_7",
|
|
3
|
+
"themeDark": "_themeDark_dmav9r_10",
|
|
4
|
+
"sizeS": "_sizeS_dmav9r_14",
|
|
5
|
+
"sizeM": "_sizeM_dmav9r_17",
|
|
6
|
+
"sizeL": "_sizeL_dmav9r_20",
|
|
7
|
+
"main": "_main_dmav9r_24",
|
|
8
|
+
"label": "_label_dmav9r_28",
|
|
9
|
+
"errorMessage": "_errorMessage_dmav9r_34",
|
|
10
|
+
"errorIcon": "_errorIcon_dmav9r_45",
|
|
11
|
+
"note": "_note_dmav9r_50"
|
|
12
12
|
};
|
|
13
13
|
export { styles as default };
|
package/lib/parts/multiselect.js
CHANGED
|
@@ -6,7 +6,7 @@ import scrollIntoView from 'scroll-into-view-if-needed';
|
|
|
6
6
|
import { Dropdown } from '@rescui/dropdown';
|
|
7
7
|
import { Menu, MenuItem, Divider, GroupHeader } from '@rescui/menu';
|
|
8
8
|
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
9
|
-
import
|
|
9
|
+
import CheckIcon from '../_virtual/pure5.js';
|
|
10
10
|
import { useStrongMemo, getDefaultCursorIndex, isGroupsEmpty, getOptionValue, getMovedCursorIndex, shouldOpenSelect, isIndexMatchCursor, withoutGroupsLabel, getPlainOptionsFromGroups, getEmptyMessage, OptionGroupTypes, convertToOptionGroupsIfNeeded, calculateMaxHeight } from '../utils.js';
|
|
11
11
|
import { optionType, optionsGroupType, noOptionsMessageType } from '../common-prop-types.js';
|
|
12
12
|
import { ARROW_DOWN, ARROW_UP, ENTER, SPACE, TAB, ESCAPE, BACKSPACE } from '../key-codes.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"sizeS": "
|
|
3
|
-
"sizeM": "
|
|
4
|
-
"sizeL": "
|
|
5
|
-
"main": "
|
|
6
|
-
"wrapper": "
|
|
7
|
-
"select": "
|
|
2
|
+
"sizeS": "_sizeS_1ilhp21_6",
|
|
3
|
+
"sizeM": "_sizeM_1ilhp21_9",
|
|
4
|
+
"sizeL": "_sizeL_1ilhp21_12",
|
|
5
|
+
"main": "_main_1ilhp21_16",
|
|
6
|
+
"wrapper": "_wrapper_1ilhp21_20",
|
|
7
|
+
"select": "_select_1ilhp21_24"
|
|
8
8
|
};
|
|
9
9
|
export { styles as default };
|
package/lib/parts/trigger.js
CHANGED
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { RemovableTag, Tag, presets } from '@rescui/tag';
|
|
5
5
|
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import DownIcon from '../_virtual/pure.js';
|
|
7
|
+
import CloseIcon from '../_virtual/pure2.js';
|
|
8
|
+
import LoadingIcon from '../_virtual/pure3.js';
|
|
9
9
|
import { optionType } from '../common-prop-types.js';
|
|
10
10
|
import { reverseTheme } from '../utils.js';
|
|
11
11
|
import Foldable from './foldable.js';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"themeLight": "
|
|
3
|
-
"themeDark": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"classic": "
|
|
8
|
-
"rock": "
|
|
9
|
-
"main": "
|
|
10
|
-
"open": "
|
|
11
|
-
"focused": "
|
|
12
|
-
"searchFocused": "
|
|
13
|
-
"error": "
|
|
14
|
-
"searchKeyFocused": "
|
|
15
|
-
"enabled": "
|
|
16
|
-
"disabled": "
|
|
17
|
-
"isMulti": "
|
|
18
|
-
"iconsWrapper": "
|
|
19
|
-
"labelWrapper": "
|
|
20
|
-
"label": "
|
|
21
|
-
"labelNotSelected": "
|
|
22
|
-
"searchInput": "
|
|
23
|
-
"multi": "
|
|
24
|
-
"tagsContainer": "
|
|
25
|
-
"tag": "
|
|
26
|
-
"toggle": "
|
|
27
|
-
"icon": "
|
|
28
|
-
"clearIcon": "
|
|
2
|
+
"themeLight": "_themeLight_1m1v1gl_27",
|
|
3
|
+
"themeDark": "_themeDark_1m1v1gl_30",
|
|
4
|
+
"sizeS": "_sizeS_1m1v1gl_34",
|
|
5
|
+
"sizeM": "_sizeM_1m1v1gl_37",
|
|
6
|
+
"sizeL": "_sizeL_1m1v1gl_40",
|
|
7
|
+
"classic": "_classic_1m1v1gl_44",
|
|
8
|
+
"rock": "_rock_1m1v1gl_47",
|
|
9
|
+
"main": "_main_1m1v1gl_51",
|
|
10
|
+
"open": "_open_1m1v1gl_73",
|
|
11
|
+
"focused": "_focused_1m1v1gl_77",
|
|
12
|
+
"searchFocused": "_searchFocused_1m1v1gl_78",
|
|
13
|
+
"error": "_error_1m1v1gl_80",
|
|
14
|
+
"searchKeyFocused": "_searchKeyFocused_1m1v1gl_85",
|
|
15
|
+
"enabled": "_enabled_1m1v1gl_89",
|
|
16
|
+
"disabled": "_disabled_1m1v1gl_95",
|
|
17
|
+
"isMulti": "_isMulti_1m1v1gl_125",
|
|
18
|
+
"iconsWrapper": "_iconsWrapper_1m1v1gl_143",
|
|
19
|
+
"labelWrapper": "_labelWrapper_1m1v1gl_168",
|
|
20
|
+
"label": "_label_1m1v1gl_168",
|
|
21
|
+
"labelNotSelected": "_labelNotSelected_1m1v1gl_218",
|
|
22
|
+
"searchInput": "_searchInput_1m1v1gl_231",
|
|
23
|
+
"multi": "_multi_1m1v1gl_271",
|
|
24
|
+
"tagsContainer": "_tagsContainer_1m1v1gl_291",
|
|
25
|
+
"tag": "_tag_1m1v1gl_291",
|
|
26
|
+
"toggle": "_toggle_1m1v1gl_313",
|
|
27
|
+
"icon": "_icon_1m1v1gl_143",
|
|
28
|
+
"clearIcon": "_clearIcon_1m1v1gl_380"
|
|
29
29
|
};
|
|
30
30
|
export { styles as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/select",
|
|
3
|
-
"version": "0.11.11-RUI-230-Update-icons-
|
|
3
|
+
"version": "0.11.11-RUI-230-Update-icons-tree-shaking-ec76507a.10+ec76507a",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime-corejs3": "^7.26.0",
|
|
18
|
-
"@rescui/dropdown": "0.7.15-RUI-230-Update-icons-
|
|
19
|
-
"@rescui/menu": "0.10.13-RUI-230-Update-icons-
|
|
20
|
-
"@rescui/tag": "0.10.15-RUI-230-Update-icons-
|
|
21
|
-
"@rescui/use-resize-observer": "0.2.6-RUI-230-Update-icons-
|
|
18
|
+
"@rescui/dropdown": "0.7.15-RUI-230-Update-icons-tree-shaking-ec76507a.10+ec76507a",
|
|
19
|
+
"@rescui/menu": "0.10.13-RUI-230-Update-icons-tree-shaking-ec76507a.10+ec76507a",
|
|
20
|
+
"@rescui/tag": "0.10.15-RUI-230-Update-icons-tree-shaking-ec76507a.10+ec76507a",
|
|
21
|
+
"@rescui/use-resize-observer": "0.2.6-RUI-230-Update-icons-tree-shaking-ec76507a.34+ec76507a",
|
|
22
22
|
"classnames": "^2.2.6",
|
|
23
23
|
"scroll-into-view-if-needed": "2.2.20"
|
|
24
24
|
},
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"react": ">=16.8.0 <19"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@rescui/colors": "0.2.7-RUI-230-Update-icons-
|
|
31
|
+
"@rescui/colors": "0.2.7-RUI-230-Update-icons-tree-shaking-ec76507a.34+ec76507a",
|
|
32
32
|
"@rescui/scripts": "0.3.5",
|
|
33
|
-
"@rescui/typography": "0.21.1-RUI-230-Update-icons-
|
|
33
|
+
"@rescui/typography": "0.21.1-RUI-230-Update-icons-tree-shaking-ec76507a.10+ec76507a",
|
|
34
34
|
"@rescui/visual-regression": "0.1.2",
|
|
35
35
|
"sniffr": "^1.2.0"
|
|
36
36
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
|
|
40
40
|
},
|
|
41
41
|
"nx": {},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ec76507ad979df68d58a0a414b1ae497975090cd"
|
|
43
43
|
}
|
package/lib/_virtual/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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 DownIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
|
-
let {
|
|
14
|
-
theme,
|
|
15
|
-
size,
|
|
16
|
-
className,
|
|
17
|
-
...props
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
20
|
-
viewBox: "0 0 24 24"
|
|
21
|
-
}, props, {
|
|
22
|
-
className: cn(styles.icon, styles[theme], sizeStyles[size], className),
|
|
23
|
-
ref: ref
|
|
24
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
-
d: "M19.004 9h-14l7 8 7-8z"
|
|
26
|
-
}));
|
|
27
|
-
});
|
|
28
|
-
DownIcon.propTypes = {
|
|
29
|
-
className: PropTypes.string,
|
|
30
|
-
theme: PropTypes.oneOf(["light", "dark"]),
|
|
31
|
-
size: PropTypes.oneOf(["xs", "s", "m", "l"])
|
|
32
|
-
};
|
|
33
|
-
DownIcon.defaultProps = {
|
|
34
|
-
size: "m"
|
|
35
|
-
};
|
|
36
|
-
export { DownIcon, DownIcon as default };
|
package/lib/_virtual/index2.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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 CloseIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
|
-
let {
|
|
14
|
-
theme,
|
|
15
|
-
size,
|
|
16
|
-
className,
|
|
17
|
-
...props
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
20
|
-
viewBox: "0 0 24 24"
|
|
21
|
-
}, props, {
|
|
22
|
-
className: cn(styles.icon, styles[theme], sizeStyles[size], className),
|
|
23
|
-
ref: ref
|
|
24
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
-
d: "M5.67 19.751l6.342-6.34 6.34 6.34 1.41-1.409-6.341-6.34 6.34-6.341-1.408-1.409-6.341 6.341L5.67 4.251 4.26 5.66l6.342 6.342-6.34 6.34 1.408 1.409z"
|
|
26
|
-
}));
|
|
27
|
-
});
|
|
28
|
-
CloseIcon.propTypes = {
|
|
29
|
-
className: PropTypes.string,
|
|
30
|
-
theme: PropTypes.oneOf(["light", "dark"]),
|
|
31
|
-
size: PropTypes.oneOf(["xs", "s", "m", "l"])
|
|
32
|
-
};
|
|
33
|
-
CloseIcon.defaultProps = {
|
|
34
|
-
size: "m"
|
|
35
|
-
};
|
|
36
|
-
export { CloseIcon, CloseIcon as default };
|
package/lib/_virtual/index3.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
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 LoadingIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
|
-
let {
|
|
14
|
-
theme,
|
|
15
|
-
size,
|
|
16
|
-
className,
|
|
17
|
-
...props
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
20
|
-
viewBox: "0 0 24 24"
|
|
21
|
-
}, props, {
|
|
22
|
-
className: cn(styles.icon, styles[theme], sizeStyles[size], className),
|
|
23
|
-
ref: ref
|
|
24
|
-
}), /*#__PURE__*/React.createElement("g", {
|
|
25
|
-
style: {
|
|
26
|
-
animation: "rs-icon-rotate 1s linear infinite",
|
|
27
|
-
transformOrigin: "center center"
|
|
28
|
-
}
|
|
29
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
-
opacity: 0.2,
|
|
31
|
-
d: "M12 2c5.523 0 10 4.477 10 10h-2a8 8 0 00-8-8V2z"
|
|
32
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10h-2a8 8 0 11-8-8V2z"
|
|
34
|
-
})));
|
|
35
|
-
});
|
|
36
|
-
LoadingIcon.propTypes = {
|
|
37
|
-
className: PropTypes.string,
|
|
38
|
-
theme: PropTypes.oneOf(["light", "dark"]),
|
|
39
|
-
size: PropTypes.oneOf(["xs", "s", "m", "l"])
|
|
40
|
-
};
|
|
41
|
-
LoadingIcon.defaultProps = {
|
|
42
|
-
size: "m"
|
|
43
|
-
};
|
|
44
|
-
export { LoadingIcon, LoadingIcon as default };
|
package/lib/_virtual/index4.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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 WarningIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
|
-
let {
|
|
14
|
-
theme,
|
|
15
|
-
size,
|
|
16
|
-
className,
|
|
17
|
-
...props
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
20
|
-
viewBox: "0 0 24 24"
|
|
21
|
-
}, props, {
|
|
22
|
-
className: cn(styles.icon, styles[theme], sizeStyles[size], className),
|
|
23
|
-
ref: ref
|
|
24
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
-
d: "M2.769 20h18.363a.615.615 0 00.546-.891L12.504 2.8a.566.566 0 00-.989-.002C9.8 5.891 4.026 16.101 2.322 19.112A.61.61 0 002.77 20zm8.229-12h2v6h-2V8zm0 8h2v2h-2v-2z"
|
|
26
|
-
}));
|
|
27
|
-
});
|
|
28
|
-
WarningIcon.propTypes = {
|
|
29
|
-
className: PropTypes.string,
|
|
30
|
-
theme: PropTypes.oneOf(["light", "dark"]),
|
|
31
|
-
size: PropTypes.oneOf(["xs", "s", "m", "l"])
|
|
32
|
-
};
|
|
33
|
-
WarningIcon.defaultProps = {
|
|
34
|
-
size: "m"
|
|
35
|
-
};
|
|
36
|
-
export { WarningIcon, WarningIcon as default };
|
package/lib/_virtual/index5.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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 CheckIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
|
-
let {
|
|
14
|
-
theme,
|
|
15
|
-
size,
|
|
16
|
-
className,
|
|
17
|
-
...props
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
20
|
-
viewBox: "0 0 24 24"
|
|
21
|
-
}, props, {
|
|
22
|
-
className: cn(styles.icon, styles[theme], sizeStyles[size], className),
|
|
23
|
-
ref: ref
|
|
24
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
-
d: "M8 20l-6-5.98 1.42-1.41L8 17.18l12.59-12.6L22 6 8 20z"
|
|
26
|
-
}));
|
|
27
|
-
});
|
|
28
|
-
CheckIcon.propTypes = {
|
|
29
|
-
className: PropTypes.string,
|
|
30
|
-
theme: PropTypes.oneOf(["light", "dark"]),
|
|
31
|
-
size: PropTypes.oneOf(["xs", "s", "m", "l"])
|
|
32
|
-
};
|
|
33
|
-
CheckIcon.defaultProps = {
|
|
34
|
-
size: "m"
|
|
35
|
-
};
|
|
36
|
-
export { CheckIcon, CheckIcon as default };
|