@tant/icons 1.2.1 → 1.2.2
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/dist/es/icons/folder-cl.js +68 -0
- package/dist/es/icons/folder-open-cl.js +68 -0
- package/dist/es/icons/page-cl.js +83 -0
- package/dist/es/icons/space-cl.js +72 -0
- package/dist/es/icons/space-open-cl.js +76 -0
- package/dist/es/index.js +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/lib/icons/folder-cl.js +80 -0
- package/dist/lib/icons/folder-open-cl.js +80 -0
- package/dist/lib/icons/page-cl.js +95 -0
- package/dist/lib/icons/space-cl.js +84 -0
- package/dist/lib/icons/space-open-cl.js +88 -0
- package/dist/lib/index.js +40 -0
- package/dist/tant-icons.cjs.js +950 -653
- package/dist/tant-icons.esm.js +946 -654
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
|
|
11
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
|
+
|
|
13
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
+
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import PropTypes from 'prop-types';
|
|
17
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
18
|
+
|
|
19
|
+
var FolderCl = function FolderCl(props) {
|
|
20
|
+
var color = props.color,
|
|
21
|
+
size = props.size,
|
|
22
|
+
spin = props.spin,
|
|
23
|
+
style = props.style,
|
|
24
|
+
className = props.className,
|
|
25
|
+
iconClassName = props.iconClassName,
|
|
26
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
27
|
+
|
|
28
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
role: "img",
|
|
30
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
31
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
32
|
+
children: loadingCircleStyle
|
|
33
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: size,
|
|
36
|
+
height: size,
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: color
|
|
39
|
+
}, otherProps, {
|
|
40
|
+
className: iconClassName,
|
|
41
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
42
|
+
animationDuration: '1s',
|
|
43
|
+
animationIterationCount: 'infinite',
|
|
44
|
+
animationName: 'loadingCircle',
|
|
45
|
+
animationTimingFunction: 'linear'
|
|
46
|
+
} : {})
|
|
47
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
d: "M2 6a2 2 0 012-2h6.607a2 2 0 012 2v1.75H2V6z",
|
|
49
|
+
fill: "#0A1032"
|
|
50
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
51
|
+
opacity: ".15",
|
|
52
|
+
d: "M2 7h18a2 2 0 012 2v9a2 2 0 01-2 2H4a2 2 0 01-2-2V7z",
|
|
53
|
+
fill: "#0A1032"
|
|
54
|
+
})));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
FolderCl.propTypes = {
|
|
58
|
+
iconClassName: PropTypes.string,
|
|
59
|
+
spin: PropTypes.bool,
|
|
60
|
+
color: PropTypes.string,
|
|
61
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
62
|
+
};
|
|
63
|
+
FolderCl.defaultProps = {
|
|
64
|
+
spin: false,
|
|
65
|
+
color: 'currentColor',
|
|
66
|
+
size: '1em'
|
|
67
|
+
};
|
|
68
|
+
export default FolderCl;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
|
|
11
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
|
+
|
|
13
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
+
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import PropTypes from 'prop-types';
|
|
17
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
18
|
+
|
|
19
|
+
var FolderOpenCl = function FolderOpenCl(props) {
|
|
20
|
+
var color = props.color,
|
|
21
|
+
size = props.size,
|
|
22
|
+
spin = props.spin,
|
|
23
|
+
style = props.style,
|
|
24
|
+
className = props.className,
|
|
25
|
+
iconClassName = props.iconClassName,
|
|
26
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
27
|
+
|
|
28
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
role: "img",
|
|
30
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
31
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
32
|
+
children: loadingCircleStyle
|
|
33
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: size,
|
|
36
|
+
height: size,
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: color
|
|
39
|
+
}, otherProps, {
|
|
40
|
+
className: iconClassName,
|
|
41
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
42
|
+
animationDuration: '1s',
|
|
43
|
+
animationIterationCount: 'infinite',
|
|
44
|
+
animationName: 'loadingCircle',
|
|
45
|
+
animationTimingFunction: 'linear'
|
|
46
|
+
} : {})
|
|
47
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
d: "M2 5v15l2.499-9.911a1 1 0 01.97-.756H16V7a1 1 0 00-1-1h-4a1 1 0 01-.8-.4l-.9-1.2a1 1 0 00-.8-.4H3a1 1 0 00-1 1z",
|
|
49
|
+
fill: "#0A1032"
|
|
50
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
51
|
+
opacity: ".3",
|
|
52
|
+
d: "M18.174 20H2l2.499-9.911a1 1 0 01.97-.756H20.67a1 1 0 01.961 1.277l-2.497 8.667a1 1 0 01-.96.723z",
|
|
53
|
+
fill: "#0A1032"
|
|
54
|
+
})));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
FolderOpenCl.propTypes = {
|
|
58
|
+
iconClassName: PropTypes.string,
|
|
59
|
+
spin: PropTypes.bool,
|
|
60
|
+
color: PropTypes.string,
|
|
61
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
62
|
+
};
|
|
63
|
+
FolderOpenCl.defaultProps = {
|
|
64
|
+
spin: false,
|
|
65
|
+
color: 'currentColor',
|
|
66
|
+
size: '1em'
|
|
67
|
+
};
|
|
68
|
+
export default FolderOpenCl;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
|
|
11
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
|
+
|
|
13
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
+
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import PropTypes from 'prop-types';
|
|
17
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
18
|
+
|
|
19
|
+
var PageCl = function PageCl(props) {
|
|
20
|
+
var color = props.color,
|
|
21
|
+
size = props.size,
|
|
22
|
+
spin = props.spin,
|
|
23
|
+
style = props.style,
|
|
24
|
+
className = props.className,
|
|
25
|
+
iconClassName = props.iconClassName,
|
|
26
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
27
|
+
|
|
28
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
role: "img",
|
|
30
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
31
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
32
|
+
children: loadingCircleStyle
|
|
33
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: size,
|
|
36
|
+
height: size,
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: color
|
|
39
|
+
}, otherProps, {
|
|
40
|
+
className: iconClassName,
|
|
41
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
42
|
+
animationDuration: '1s',
|
|
43
|
+
animationIterationCount: 'infinite',
|
|
44
|
+
animationName: 'loadingCircle',
|
|
45
|
+
animationTimingFunction: 'linear'
|
|
46
|
+
} : {})
|
|
47
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
48
|
+
opacity: ".15",
|
|
49
|
+
x: "3",
|
|
50
|
+
y: "3",
|
|
51
|
+
width: "18",
|
|
52
|
+
height: "18",
|
|
53
|
+
rx: "2",
|
|
54
|
+
fill: "#0A1032"
|
|
55
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
56
|
+
x: "6.857",
|
|
57
|
+
y: "6.857",
|
|
58
|
+
width: "10.286",
|
|
59
|
+
height: "1.929",
|
|
60
|
+
rx: ".964",
|
|
61
|
+
fill: "#0A1032"
|
|
62
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
63
|
+
x: "6.857",
|
|
64
|
+
y: "10.714",
|
|
65
|
+
width: "6.429",
|
|
66
|
+
height: "1.929",
|
|
67
|
+
rx: ".964",
|
|
68
|
+
fill: "#0A1032"
|
|
69
|
+
})));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
PageCl.propTypes = {
|
|
73
|
+
iconClassName: PropTypes.string,
|
|
74
|
+
spin: PropTypes.bool,
|
|
75
|
+
color: PropTypes.string,
|
|
76
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
77
|
+
};
|
|
78
|
+
PageCl.defaultProps = {
|
|
79
|
+
spin: false,
|
|
80
|
+
color: 'currentColor',
|
|
81
|
+
size: '1em'
|
|
82
|
+
};
|
|
83
|
+
export default PageCl;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
|
|
11
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
|
+
|
|
13
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
+
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import PropTypes from 'prop-types';
|
|
17
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
18
|
+
|
|
19
|
+
var SpaceCl = function SpaceCl(props) {
|
|
20
|
+
var color = props.color,
|
|
21
|
+
size = props.size,
|
|
22
|
+
spin = props.spin,
|
|
23
|
+
style = props.style,
|
|
24
|
+
className = props.className,
|
|
25
|
+
iconClassName = props.iconClassName,
|
|
26
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
27
|
+
|
|
28
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
role: "img",
|
|
30
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
31
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
32
|
+
children: loadingCircleStyle
|
|
33
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: size,
|
|
36
|
+
height: size,
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: color
|
|
39
|
+
}, otherProps, {
|
|
40
|
+
className: iconClassName,
|
|
41
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
42
|
+
animationDuration: '1s',
|
|
43
|
+
animationIterationCount: 'infinite',
|
|
44
|
+
animationName: 'loadingCircle',
|
|
45
|
+
animationTimingFunction: 'linear'
|
|
46
|
+
} : {})
|
|
47
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
opacity: ".3",
|
|
49
|
+
d: "M2.667 17.672V6.49l9.109 2.489v12.444l-8.425-2.801a1 1 0 01-.684-.949z",
|
|
50
|
+
fill: "#0A1032"
|
|
51
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
52
|
+
opacity: ".15",
|
|
53
|
+
d: "M21.109 17.591V6.489l-9.333 2.489v12.444l8.65-2.882a1 1 0 00.683-.949z",
|
|
54
|
+
fill: "#0A1032"
|
|
55
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
56
|
+
d: "M11.9 8.978L2.666 6.454l8.978-2.386a1 1 0 01.509-.002l9.18 2.388-9.435 2.524z",
|
|
57
|
+
fill: "#0A1032"
|
|
58
|
+
})));
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
SpaceCl.propTypes = {
|
|
62
|
+
iconClassName: PropTypes.string,
|
|
63
|
+
spin: PropTypes.bool,
|
|
64
|
+
color: PropTypes.string,
|
|
65
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
66
|
+
};
|
|
67
|
+
SpaceCl.defaultProps = {
|
|
68
|
+
spin: false,
|
|
69
|
+
color: 'currentColor',
|
|
70
|
+
size: '1em'
|
|
71
|
+
};
|
|
72
|
+
export default SpaceCl;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
|
|
11
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
|
+
|
|
13
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
+
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import PropTypes from 'prop-types';
|
|
17
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
18
|
+
|
|
19
|
+
var SpaceOpenCl = function SpaceOpenCl(props) {
|
|
20
|
+
var color = props.color,
|
|
21
|
+
size = props.size,
|
|
22
|
+
spin = props.spin,
|
|
23
|
+
style = props.style,
|
|
24
|
+
className = props.className,
|
|
25
|
+
iconClassName = props.iconClassName,
|
|
26
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
27
|
+
|
|
28
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
role: "img",
|
|
30
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
31
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
32
|
+
children: loadingCircleStyle
|
|
33
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: size,
|
|
36
|
+
height: size,
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: color
|
|
39
|
+
}, otherProps, {
|
|
40
|
+
className: iconClassName,
|
|
41
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
42
|
+
animationDuration: '1s',
|
|
43
|
+
animationIterationCount: 'infinite',
|
|
44
|
+
animationName: 'loadingCircle',
|
|
45
|
+
animationTimingFunction: 'linear'
|
|
46
|
+
} : {})
|
|
47
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
opacity: ".3",
|
|
49
|
+
d: "M2.667 17.828v-5.534l9.22 5.239v6.465l-8.66-5.181a1.152 1.152 0 01-.56-.989z",
|
|
50
|
+
fill: "#0A1032"
|
|
51
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
52
|
+
opacity: ".15",
|
|
53
|
+
d: "M21.333 17.735v-5.438l-9.446 5.236V24l8.882-5.275c.35-.207.564-.584.564-.99z",
|
|
54
|
+
fill: "#0A1032"
|
|
55
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
56
|
+
d: "M7.293 9.696l3.844 2.406c.405.253.915.256 1.322.006l4.05-2.48 4.824 2.689-9.421 5.402-9.22-5.402 4.6-2.62z",
|
|
57
|
+
fill: "#0A1032"
|
|
58
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
59
|
+
opacity: ".3",
|
|
60
|
+
d: "M11.137 12.102L3.272 7.18c-.813-.51-.806-1.715.014-2.213L11.15.183a1.253 1.253 0 011.295-.006l8.037 4.785c.833.496.84 1.719.013 2.225l-8.036 4.921c-.407.25-.917.247-1.322-.006z",
|
|
61
|
+
fill: "#0A1032"
|
|
62
|
+
})));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
SpaceOpenCl.propTypes = {
|
|
66
|
+
iconClassName: PropTypes.string,
|
|
67
|
+
spin: PropTypes.bool,
|
|
68
|
+
color: PropTypes.string,
|
|
69
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
70
|
+
};
|
|
71
|
+
SpaceOpenCl.defaultProps = {
|
|
72
|
+
spin: false,
|
|
73
|
+
color: 'currentColor',
|
|
74
|
+
size: '1em'
|
|
75
|
+
};
|
|
76
|
+
export default SpaceOpenCl;
|
package/dist/es/index.js
CHANGED
|
@@ -153,6 +153,11 @@ export { default as TaReportCl } from './icons/report-cl';
|
|
|
153
153
|
export { default as TaUserTagCl } from './icons/user-tag-cl';
|
|
154
154
|
export { default as TaGroupCl } from './icons/group-cl';
|
|
155
155
|
export { default as TaVPropCl } from './icons/v-prop-cl';
|
|
156
|
+
export { default as TaFolderCl } from './icons/folder-cl';
|
|
157
|
+
export { default as TaFolderOpenCl } from './icons/folder-open-cl';
|
|
158
|
+
export { default as TaSpaceCl } from './icons/space-cl';
|
|
159
|
+
export { default as TaSpaceOpenCl } from './icons/space-open-cl';
|
|
160
|
+
export { default as TaPageCl } from './icons/page-cl';
|
|
156
161
|
export { default as TaInfo } from './icons/info';
|
|
157
162
|
export { default as TaInfoFill } from './icons/info-fill';
|
|
158
163
|
export { default as TaHelp } from './icons/help';
|
package/dist/index.d.ts
CHANGED
|
@@ -164,6 +164,11 @@ export const TaReportCl: Icon;
|
|
|
164
164
|
export const TaUserTagCl: Icon;
|
|
165
165
|
export const TaGroupCl: Icon;
|
|
166
166
|
export const TaVPropCl: Icon;
|
|
167
|
+
export const TaFolderCl: Icon;
|
|
168
|
+
export const TaFolderOpenCl: Icon;
|
|
169
|
+
export const TaSpaceCl: Icon;
|
|
170
|
+
export const TaSpaceOpenCl: Icon;
|
|
171
|
+
export const TaPageCl: Icon;
|
|
167
172
|
export const TaInfo: Icon;
|
|
168
173
|
export const TaInfoFill: Icon;
|
|
169
174
|
export const TaHelp: Icon;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
29
|
+
|
|
30
|
+
var FolderCl = function FolderCl(props) {
|
|
31
|
+
var color = props.color,
|
|
32
|
+
size = props.size,
|
|
33
|
+
spin = props.spin,
|
|
34
|
+
style = props.style,
|
|
35
|
+
className = props.className,
|
|
36
|
+
iconClassName = props.iconClassName,
|
|
37
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
38
|
+
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
40
|
+
role: "img",
|
|
41
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
43
|
+
children: loadingCircleStyle
|
|
44
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
width: size,
|
|
47
|
+
height: size,
|
|
48
|
+
viewBox: "0 0 24 24",
|
|
49
|
+
fill: color
|
|
50
|
+
}, otherProps, {
|
|
51
|
+
className: iconClassName,
|
|
52
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
53
|
+
animationDuration: '1s',
|
|
54
|
+
animationIterationCount: 'infinite',
|
|
55
|
+
animationName: 'loadingCircle',
|
|
56
|
+
animationTimingFunction: 'linear'
|
|
57
|
+
} : {})
|
|
58
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
59
|
+
d: "M2 6a2 2 0 012-2h6.607a2 2 0 012 2v1.75H2V6z",
|
|
60
|
+
fill: "#0A1032"
|
|
61
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
62
|
+
opacity: ".15",
|
|
63
|
+
d: "M2 7h18a2 2 0 012 2v9a2 2 0 01-2 2H4a2 2 0 01-2-2V7z",
|
|
64
|
+
fill: "#0A1032"
|
|
65
|
+
})));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
FolderCl.propTypes = {
|
|
69
|
+
iconClassName: _propTypes["default"].string,
|
|
70
|
+
spin: _propTypes["default"].bool,
|
|
71
|
+
color: _propTypes["default"].string,
|
|
72
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
73
|
+
};
|
|
74
|
+
FolderCl.defaultProps = {
|
|
75
|
+
spin: false,
|
|
76
|
+
color: 'currentColor',
|
|
77
|
+
size: '1em'
|
|
78
|
+
};
|
|
79
|
+
var _default = FolderCl;
|
|
80
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
29
|
+
|
|
30
|
+
var FolderOpenCl = function FolderOpenCl(props) {
|
|
31
|
+
var color = props.color,
|
|
32
|
+
size = props.size,
|
|
33
|
+
spin = props.spin,
|
|
34
|
+
style = props.style,
|
|
35
|
+
className = props.className,
|
|
36
|
+
iconClassName = props.iconClassName,
|
|
37
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
38
|
+
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
40
|
+
role: "img",
|
|
41
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
43
|
+
children: loadingCircleStyle
|
|
44
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
width: size,
|
|
47
|
+
height: size,
|
|
48
|
+
viewBox: "0 0 24 24",
|
|
49
|
+
fill: color
|
|
50
|
+
}, otherProps, {
|
|
51
|
+
className: iconClassName,
|
|
52
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
53
|
+
animationDuration: '1s',
|
|
54
|
+
animationIterationCount: 'infinite',
|
|
55
|
+
animationName: 'loadingCircle',
|
|
56
|
+
animationTimingFunction: 'linear'
|
|
57
|
+
} : {})
|
|
58
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
59
|
+
d: "M2 5v15l2.499-9.911a1 1 0 01.97-.756H16V7a1 1 0 00-1-1h-4a1 1 0 01-.8-.4l-.9-1.2a1 1 0 00-.8-.4H3a1 1 0 00-1 1z",
|
|
60
|
+
fill: "#0A1032"
|
|
61
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
62
|
+
opacity: ".3",
|
|
63
|
+
d: "M18.174 20H2l2.499-9.911a1 1 0 01.97-.756H20.67a1 1 0 01.961 1.277l-2.497 8.667a1 1 0 01-.96.723z",
|
|
64
|
+
fill: "#0A1032"
|
|
65
|
+
})));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
FolderOpenCl.propTypes = {
|
|
69
|
+
iconClassName: _propTypes["default"].string,
|
|
70
|
+
spin: _propTypes["default"].bool,
|
|
71
|
+
color: _propTypes["default"].string,
|
|
72
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
73
|
+
};
|
|
74
|
+
FolderOpenCl.defaultProps = {
|
|
75
|
+
spin: false,
|
|
76
|
+
color: 'currentColor',
|
|
77
|
+
size: '1em'
|
|
78
|
+
};
|
|
79
|
+
var _default = FolderOpenCl;
|
|
80
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
29
|
+
|
|
30
|
+
var PageCl = function PageCl(props) {
|
|
31
|
+
var color = props.color,
|
|
32
|
+
size = props.size,
|
|
33
|
+
spin = props.spin,
|
|
34
|
+
style = props.style,
|
|
35
|
+
className = props.className,
|
|
36
|
+
iconClassName = props.iconClassName,
|
|
37
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
38
|
+
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
40
|
+
role: "img",
|
|
41
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
43
|
+
children: loadingCircleStyle
|
|
44
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
width: size,
|
|
47
|
+
height: size,
|
|
48
|
+
viewBox: "0 0 24 24",
|
|
49
|
+
fill: color
|
|
50
|
+
}, otherProps, {
|
|
51
|
+
className: iconClassName,
|
|
52
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
53
|
+
animationDuration: '1s',
|
|
54
|
+
animationIterationCount: 'infinite',
|
|
55
|
+
animationName: 'loadingCircle',
|
|
56
|
+
animationTimingFunction: 'linear'
|
|
57
|
+
} : {})
|
|
58
|
+
}), /*#__PURE__*/_react["default"].createElement("rect", {
|
|
59
|
+
opacity: ".15",
|
|
60
|
+
x: "3",
|
|
61
|
+
y: "3",
|
|
62
|
+
width: "18",
|
|
63
|
+
height: "18",
|
|
64
|
+
rx: "2",
|
|
65
|
+
fill: "#0A1032"
|
|
66
|
+
}), /*#__PURE__*/_react["default"].createElement("rect", {
|
|
67
|
+
x: "6.857",
|
|
68
|
+
y: "6.857",
|
|
69
|
+
width: "10.286",
|
|
70
|
+
height: "1.929",
|
|
71
|
+
rx: ".964",
|
|
72
|
+
fill: "#0A1032"
|
|
73
|
+
}), /*#__PURE__*/_react["default"].createElement("rect", {
|
|
74
|
+
x: "6.857",
|
|
75
|
+
y: "10.714",
|
|
76
|
+
width: "6.429",
|
|
77
|
+
height: "1.929",
|
|
78
|
+
rx: ".964",
|
|
79
|
+
fill: "#0A1032"
|
|
80
|
+
})));
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
PageCl.propTypes = {
|
|
84
|
+
iconClassName: _propTypes["default"].string,
|
|
85
|
+
spin: _propTypes["default"].bool,
|
|
86
|
+
color: _propTypes["default"].string,
|
|
87
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
88
|
+
};
|
|
89
|
+
PageCl.defaultProps = {
|
|
90
|
+
spin: false,
|
|
91
|
+
color: 'currentColor',
|
|
92
|
+
size: '1em'
|
|
93
|
+
};
|
|
94
|
+
var _default = PageCl;
|
|
95
|
+
exports["default"] = _default;
|