@tant/icons 1.1.76 → 1.1.82
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/approve.js +69 -0
- package/dist/es/icons/expand.js +63 -0
- package/dist/es/icons/grid.js +65 -0
- package/dist/es/icons/link-2.js +63 -0
- package/dist/es/icons/zoom-area-open.js +65 -0
- package/dist/es/icons/zoom-area-resrore.js +65 -0
- package/dist/es/icons/zoom-area.js +65 -0
- package/dist/es/index.js +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/lib/icons/approve.js +81 -0
- package/dist/lib/icons/expand.js +75 -0
- package/dist/lib/icons/grid.js +77 -0
- package/dist/lib/icons/link-2.js +75 -0
- package/dist/lib/icons/zoom-area-open.js +77 -0
- package/dist/lib/icons/zoom-area-resrore.js +77 -0
- package/dist/lib/icons/zoom-area.js +77 -0
- package/dist/lib/index.js +56 -0
- package/dist/tant-icons.cjs.js +877 -527
- package/dist/tant-icons.esm.js +871 -528
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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 Approve = function Approve(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
|
+
fillRule: "evenodd",
|
|
49
|
+
clipRule: "evenodd",
|
|
50
|
+
d: "M6 17v3h12v-3h2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3h2z"
|
|
51
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
52
|
+
fillRule: "evenodd",
|
|
53
|
+
clipRule: "evenodd",
|
|
54
|
+
d: "M6.975 4.02c0-1.116.901-2.02 2.013-2.02h6.04c1.112 0 2.014.904 2.014 2.02v.847c0 .63-.293 1.223-.791 1.605l-1.276.978.045 3.94 5.16 1.897a2.692 2.692 0 011.82 2.55v1.142c0 1.116-.901 2.02-2.013 2.02L4.013 19A2.017 2.017 0 012 16.98v-1.143c0-1.153.732-2.18 1.82-2.55l5.168-1.894V7.446l-1.245-.983a2.022 2.022 0 01-.768-1.587V4.02zm8.053 0h-6.04v.856l1.245.983c.485.383.769.968.769 1.587v3.947a2.02 2.02 0 01-1.323 1.897l-5.193 1.904-.014.004a.673.673 0 00-.459.64v1.142h15.974v-1.144a.672.672 0 00-.46-.638l-.014-.005-5.186-1.906a2.02 2.02 0 01-1.32-1.873l-.045-3.94a2.022 2.022 0 01.79-1.628l1.276-.979V4.02z"
|
|
55
|
+
})));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
Approve.propTypes = {
|
|
59
|
+
iconClassName: PropTypes.string,
|
|
60
|
+
spin: PropTypes.bool,
|
|
61
|
+
color: PropTypes.string,
|
|
62
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
63
|
+
};
|
|
64
|
+
Approve.defaultProps = {
|
|
65
|
+
spin: false,
|
|
66
|
+
color: 'currentColor',
|
|
67
|
+
size: '1em'
|
|
68
|
+
};
|
|
69
|
+
export default Approve;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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 Expand = function Expand(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: "M13.27 3.963a.915.915 0 00.943.933h.734l3.096-.198-2.441 2.333-2.808 2.78a.899.899 0 00-.278.675c0 .291.09.53.268.715.178.192.413.288.704.288a.875.875 0 00.378-.08.915.915 0 00.317-.208l2.808-2.8 2.312-2.442-.188 3.117v.745c0 .278.086.506.258.685a.878.878 0 00.674.278.91.91 0 00.685-.278A.928.928 0 0021 9.82V4.618c0-.516-.142-.916-.427-1.201-.284-.278-.678-.417-1.18-.417h-5.18c-.265 0-.49.09-.675.268a.962.962 0 00-.268.695zM3 14.169v5.213c0 .516.142.913.427 1.191.278.285.671.427 1.18.427h5.17a.898.898 0 00.675-.278.91.91 0 00.278-.685.916.916 0 00-.953-.943h-.734l-3.096.208 2.441-2.333 2.808-2.79a.853.853 0 00.288-.665c0-.291-.093-.533-.278-.725-.178-.185-.413-.278-.704-.278-.133 0-.258.024-.377.07a.912.912 0 00-.318.208L7.01 15.6l-2.322 2.442.188-3.117v-.755a.97.97 0 00-.258-.685.882.882 0 00-.664-.268.927.927 0 00-.685.268.95.95 0 00-.268.685z"
|
|
49
|
+
})));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
Expand.propTypes = {
|
|
53
|
+
iconClassName: PropTypes.string,
|
|
54
|
+
spin: PropTypes.bool,
|
|
55
|
+
color: PropTypes.string,
|
|
56
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
57
|
+
};
|
|
58
|
+
Expand.defaultProps = {
|
|
59
|
+
spin: false,
|
|
60
|
+
color: 'currentColor',
|
|
61
|
+
size: '1em'
|
|
62
|
+
};
|
|
63
|
+
export default Expand;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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 Grid = function Grid(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
|
+
fillRule: "evenodd",
|
|
49
|
+
clipRule: "evenodd",
|
|
50
|
+
d: "M5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm7 0c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm2 9c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2 5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9-12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2 5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm2 9c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zM5 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm2 9c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
Grid.propTypes = {
|
|
55
|
+
iconClassName: PropTypes.string,
|
|
56
|
+
spin: PropTypes.bool,
|
|
57
|
+
color: PropTypes.string,
|
|
58
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
59
|
+
};
|
|
60
|
+
Grid.defaultProps = {
|
|
61
|
+
spin: false,
|
|
62
|
+
color: 'currentColor',
|
|
63
|
+
size: '1em'
|
|
64
|
+
};
|
|
65
|
+
export default Grid;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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 Link2 = function Link2(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: "M13.06 8.11l1.415 1.415a7 7 0 010 9.9l-.354.353a7 7 0 01-9.9-9.9l1.415 1.415a5 5 0 107.07 7.071l.355-.354a5 5 0 000-7.07l-1.415-1.415 1.415-1.414-.001-.001zm6.718 6.011l-1.414-1.414a5 5 0 10-7.071-7.071l-.354.354a5 5 0 000 7.07l1.415 1.415-1.415 1.414-1.414-1.414a7 7 0 010-9.9l.354-.353a7 7 0 019.9 9.9l-.001-.001z"
|
|
49
|
+
})));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
Link2.propTypes = {
|
|
53
|
+
iconClassName: PropTypes.string,
|
|
54
|
+
spin: PropTypes.bool,
|
|
55
|
+
color: PropTypes.string,
|
|
56
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
57
|
+
};
|
|
58
|
+
Link2.defaultProps = {
|
|
59
|
+
spin: false,
|
|
60
|
+
color: 'currentColor',
|
|
61
|
+
size: '1em'
|
|
62
|
+
};
|
|
63
|
+
export default Link2;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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 ZoomAreaOpen = function ZoomAreaOpen(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: "M21 11V4a1 1 0 00-1-1H4a1 1 0 00-1 1v16a1 1 0 001 1h7v-2H5V5h14v6h2z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
+
d: "M19 19v4h-2v-4h-4v-2h4v-4h2v4h4v2h-4z"
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
ZoomAreaOpen.propTypes = {
|
|
55
|
+
iconClassName: PropTypes.string,
|
|
56
|
+
spin: PropTypes.bool,
|
|
57
|
+
color: PropTypes.string,
|
|
58
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
59
|
+
};
|
|
60
|
+
ZoomAreaOpen.defaultProps = {
|
|
61
|
+
spin: false,
|
|
62
|
+
color: 'currentColor',
|
|
63
|
+
size: '1em'
|
|
64
|
+
};
|
|
65
|
+
export default ZoomAreaOpen;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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 ZoomAreaResrore = function ZoomAreaResrore(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: "M3 13v7a1 1 0 001 1h16a1 1 0 001-1V4a1 1 0 00-1-1H7v2h12v14H5v-6H3z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
+
d: "M11 1.384L9.588 0 5 4.5 9.588 9 11 7.616 7.823 4.5 11 1.384z"
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
ZoomAreaResrore.propTypes = {
|
|
55
|
+
iconClassName: PropTypes.string,
|
|
56
|
+
spin: PropTypes.bool,
|
|
57
|
+
color: PropTypes.string,
|
|
58
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
59
|
+
};
|
|
60
|
+
ZoomAreaResrore.defaultProps = {
|
|
61
|
+
spin: false,
|
|
62
|
+
color: 'currentColor',
|
|
63
|
+
size: '1em'
|
|
64
|
+
};
|
|
65
|
+
export default ZoomAreaResrore;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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 ZoomArea = function ZoomArea(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: "M3 13v7a1 1 0 001 1h16a1 1 0 001-1V4a1 1 0 00-1-1h-7v2h6v14H5v-6H3z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
+
d: "M5 5V1h2v4h4v2H7v4H5V7H1V5h4z"
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
ZoomArea.propTypes = {
|
|
55
|
+
iconClassName: PropTypes.string,
|
|
56
|
+
spin: PropTypes.bool,
|
|
57
|
+
color: PropTypes.string,
|
|
58
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
59
|
+
};
|
|
60
|
+
ZoomArea.defaultProps = {
|
|
61
|
+
spin: false,
|
|
62
|
+
color: 'currentColor',
|
|
63
|
+
size: '1em'
|
|
64
|
+
};
|
|
65
|
+
export default ZoomArea;
|
package/dist/es/index.js
CHANGED
|
@@ -50,6 +50,7 @@ export { default as TaEarth } from './icons/earth';
|
|
|
50
50
|
export { default as TaGoal } from './icons/goal';
|
|
51
51
|
export { default as TaOneTime } from './icons/one-time';
|
|
52
52
|
export { default as TaRecurring } from './icons/recurring';
|
|
53
|
+
export { default as TaApprove } from './icons/approve';
|
|
53
54
|
export { default as TaTdLogo } from './icons/td-logo';
|
|
54
55
|
export { default as TaLanguage } from './icons/language';
|
|
55
56
|
export { default as TaCalendar } from './icons/calendar';
|
|
@@ -225,6 +226,7 @@ export { default as TaFullscreen } from './icons/fullscreen';
|
|
|
225
226
|
export { default as TaArrowLeftDown } from './icons/arrow-left-down';
|
|
226
227
|
export { default as TaLink } from './icons/link';
|
|
227
228
|
export { default as TaUnlink } from './icons/unlink';
|
|
229
|
+
export { default as TaLink2 } from './icons/link-2';
|
|
228
230
|
export { default as TaMenuUnfold } from './icons/menu-unfold';
|
|
229
231
|
export { default as TaMenuFold } from './icons/menu-fold';
|
|
230
232
|
export { default as TaList } from './icons/list';
|
|
@@ -248,6 +250,10 @@ export { default as TaUpdateData } from './icons/update-data';
|
|
|
248
250
|
export { default as TaUpload } from './icons/upload';
|
|
249
251
|
export { default as TaClick } from './icons/click';
|
|
250
252
|
export { default as TaInstall } from './icons/install';
|
|
253
|
+
export { default as TaZoomArea } from './icons/zoom-area';
|
|
254
|
+
export { default as TaZoomAreaOpen } from './icons/zoom-area-open';
|
|
255
|
+
export { default as TaZoomAreaResrore } from './icons/zoom-area-resrore';
|
|
256
|
+
export { default as TaExpand } from './icons/expand';
|
|
251
257
|
export { default as TaReport } from './icons/report';
|
|
252
258
|
export { default as TaReportRemoval } from './icons/report-removal';
|
|
253
259
|
export { default as TaFileAdd } from './icons/file-add';
|
|
@@ -306,6 +312,7 @@ export { default as TaDropUp } from './icons/drop-up';
|
|
|
306
312
|
export { default as TaMore1 } from './icons/more-1';
|
|
307
313
|
export { default as TaMore2 } from './icons/more-2';
|
|
308
314
|
export { default as TaDrag } from './icons/drag';
|
|
315
|
+
export { default as TaGrid } from './icons/grid';
|
|
309
316
|
export { default as TaDrag2 } from './icons/drag-2';
|
|
310
317
|
export { default as TaExternal } from './icons/external';
|
|
311
318
|
export { default as TaDisplayS } from './icons/display-s';
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export const TaEarth: Icon;
|
|
|
61
61
|
export const TaGoal: Icon;
|
|
62
62
|
export const TaOneTime: Icon;
|
|
63
63
|
export const TaRecurring: Icon;
|
|
64
|
+
export const TaApprove: Icon;
|
|
64
65
|
export const TaTdLogo: Icon;
|
|
65
66
|
export const TaLanguage: Icon;
|
|
66
67
|
export const TaCalendar: Icon;
|
|
@@ -236,6 +237,7 @@ export const TaFullscreen: Icon;
|
|
|
236
237
|
export const TaArrowLeftDown: Icon;
|
|
237
238
|
export const TaLink: Icon;
|
|
238
239
|
export const TaUnlink: Icon;
|
|
240
|
+
export const TaLink2: Icon;
|
|
239
241
|
export const TaMenuUnfold: Icon;
|
|
240
242
|
export const TaMenuFold: Icon;
|
|
241
243
|
export const TaList: Icon;
|
|
@@ -259,6 +261,10 @@ export const TaUpdateData: Icon;
|
|
|
259
261
|
export const TaUpload: Icon;
|
|
260
262
|
export const TaClick: Icon;
|
|
261
263
|
export const TaInstall: Icon;
|
|
264
|
+
export const TaZoomArea: Icon;
|
|
265
|
+
export const TaZoomAreaOpen: Icon;
|
|
266
|
+
export const TaZoomAreaResrore: Icon;
|
|
267
|
+
export const TaExpand: Icon;
|
|
262
268
|
export const TaReport: Icon;
|
|
263
269
|
export const TaReportRemoval: Icon;
|
|
264
270
|
export const TaFileAdd: Icon;
|
|
@@ -317,6 +323,7 @@ export const TaDropUp: Icon;
|
|
|
317
323
|
export const TaMore1: Icon;
|
|
318
324
|
export const TaMore2: Icon;
|
|
319
325
|
export const TaDrag: Icon;
|
|
326
|
+
export const TaGrid: Icon;
|
|
320
327
|
export const TaDrag2: Icon;
|
|
321
328
|
export const TaExternal: Icon;
|
|
322
329
|
export const TaDisplayS: Icon;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 || 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 Approve = function Approve(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
|
+
fillRule: "evenodd",
|
|
60
|
+
clipRule: "evenodd",
|
|
61
|
+
d: "M6 17v3h12v-3h2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3h2z"
|
|
62
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
63
|
+
fillRule: "evenodd",
|
|
64
|
+
clipRule: "evenodd",
|
|
65
|
+
d: "M6.975 4.02c0-1.116.901-2.02 2.013-2.02h6.04c1.112 0 2.014.904 2.014 2.02v.847c0 .63-.293 1.223-.791 1.605l-1.276.978.045 3.94 5.16 1.897a2.692 2.692 0 011.82 2.55v1.142c0 1.116-.901 2.02-2.013 2.02L4.013 19A2.017 2.017 0 012 16.98v-1.143c0-1.153.732-2.18 1.82-2.55l5.168-1.894V7.446l-1.245-.983a2.022 2.022 0 01-.768-1.587V4.02zm8.053 0h-6.04v.856l1.245.983c.485.383.769.968.769 1.587v3.947a2.02 2.02 0 01-1.323 1.897l-5.193 1.904-.014.004a.673.673 0 00-.459.64v1.142h15.974v-1.144a.672.672 0 00-.46-.638l-.014-.005-5.186-1.906a2.02 2.02 0 01-1.32-1.873l-.045-3.94a2.022 2.022 0 01.79-1.628l1.276-.979V4.02z"
|
|
66
|
+
})));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
Approve.propTypes = {
|
|
70
|
+
iconClassName: _propTypes["default"].string,
|
|
71
|
+
spin: _propTypes["default"].bool,
|
|
72
|
+
color: _propTypes["default"].string,
|
|
73
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
74
|
+
};
|
|
75
|
+
Approve.defaultProps = {
|
|
76
|
+
spin: false,
|
|
77
|
+
color: 'currentColor',
|
|
78
|
+
size: '1em'
|
|
79
|
+
};
|
|
80
|
+
var _default = Approve;
|
|
81
|
+
exports["default"] = _default;
|