@tant/icons 1.21.89 → 1.21.90
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/calculate.js +3 -3
- package/dist/es/icons/cart.js +65 -0
- package/dist/es/icons/discount.js +2 -2
- package/dist/es/icons/hammer.js +67 -0
- package/dist/es/icons/magic.js +99 -0
- package/dist/es/icons/price.js +1 -1
- package/dist/es/icons/system-build.js +2 -2
- package/dist/es/index.js +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/lib/icons/calculate.js +3 -3
- package/dist/lib/icons/cart.js +72 -0
- package/dist/lib/icons/discount.js +2 -2
- package/dist/lib/icons/hammer.js +74 -0
- package/dist/lib/icons/magic.js +106 -0
- package/dist/lib/icons/price.js +1 -1
- package/dist/lib/icons/system-build.js +2 -2
- package/dist/lib/index.js +24 -3
- package/dist/tant-icons.cjs.js +2584 -2383
- package/dist/tant-icons.esm.js +2582 -2384
- package/package.json +1 -1
|
@@ -45,7 +45,7 @@ var Calculate = function Calculate(props) {
|
|
|
45
45
|
height: "24",
|
|
46
46
|
xmlns: "http://www.w3.org/2000/svg"
|
|
47
47
|
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
-
d: "M8.95 14.293a1 1 0 011.414 1.414l-2.122 2.121 2.122 2.122a1 1 0 01-1.415 1.414l-2.12-2.122-2.122 2.122a1 1 0 01-1.414-1.414l2.121-2.122-2.
|
|
48
|
+
d: "M8.95 14.293a1 1 0 011.414 1.414l-2.122 2.121 2.122 2.122a1 1 0 01-1.415 1.414l-2.12-2.122-2.122 2.122a1 1 0 01-1.414-1.414l2.121-2.122-2.121-2.121a1 1 0 111.414-1.414l2.121 2.121 2.121-2.121z"
|
|
49
49
|
}), /*#__PURE__*/React.createElement("path", {
|
|
50
50
|
d: "M21 19a1 1 0 010 2h-7a1 1 0 110-2h7z"
|
|
51
51
|
}), /*#__PURE__*/React.createElement("path", {
|
|
@@ -55,9 +55,9 @@ var Calculate = function Calculate(props) {
|
|
|
55
55
|
}), /*#__PURE__*/React.createElement("path", {
|
|
56
56
|
d: "M9.364 4.06a1 1 0 011.414 1.415l-5.657 5.657a1 1 0 01-1.414-1.414L9.364 4.06z"
|
|
57
57
|
}), /*#__PURE__*/React.createElement("path", {
|
|
58
|
-
d: "M8.833 8.834a1.
|
|
58
|
+
d: "M8.833 8.834a1.251 1.251 0 111.768 1.77 1.251 1.251 0 01-1.768-1.77z"
|
|
59
59
|
}), /*#__PURE__*/React.createElement("path", {
|
|
60
|
-
d: "M3.884 3.
|
|
60
|
+
d: "M3.884 3.884A1.25 1.25 0 115.65 5.652a1.25 1.25 0 01-1.767-1.768z"
|
|
61
61
|
}))));
|
|
62
62
|
};
|
|
63
63
|
Calculate.propTypes = {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName", "testid"];
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
14
|
+
var Cart = function Cart(props) {
|
|
15
|
+
var color = props.color,
|
|
16
|
+
size = props.size,
|
|
17
|
+
spin = props.spin,
|
|
18
|
+
style = props.style,
|
|
19
|
+
className = props.className,
|
|
20
|
+
iconClassName = props.iconClassName,
|
|
21
|
+
testid = props.testid,
|
|
22
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
23
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
24
|
+
role: "img",
|
|
25
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
26
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
27
|
+
children: loadingCircleStyle
|
|
28
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: size,
|
|
31
|
+
height: size,
|
|
32
|
+
viewBox: "0 0 24 24",
|
|
33
|
+
fill: color
|
|
34
|
+
}, otherProps, {
|
|
35
|
+
className: iconClassName,
|
|
36
|
+
"data-testid": testid,
|
|
37
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
38
|
+
animationDuration: '1s',
|
|
39
|
+
animationIterationCount: 'infinite',
|
|
40
|
+
animationName: 'loadingCircle',
|
|
41
|
+
animationTimingFunction: 'linear'
|
|
42
|
+
} : {})
|
|
43
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
44
|
+
width: "24",
|
|
45
|
+
height: "24",
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
47
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
fillRule: "evenodd",
|
|
49
|
+
clipRule: "evenodd",
|
|
50
|
+
d: "M3.653 3a2 2 0 011.973 1.67l.062.379A1 1 0 016 5h13.334a2 2 0 011.977 2.304l-.692 4.5a2.001 2.001 0 01-1.977 1.696H7.097l.25 1.5H18.5a1 1 0 01.563 1.826c.576.547.937 1.317.937 2.174a3 3 0 11-6 0c0-.77.292-1.469.769-2H10.23c.477.531.769 1.23.769 2a3 3 0 11-4.824-2.379 1.997 1.997 0 01-.802-1.292L3.654 5H3a1 1 0 010-2h.653zM8 18a1 1 0 100 2 1 1 0 000-2zm9 0a1 1 0 100 2 1 1 0 000-2zM6.764 11.5h11.878l.692-4.5H6.014l.75 4.5z"
|
|
51
|
+
}))));
|
|
52
|
+
};
|
|
53
|
+
Cart.propTypes = {
|
|
54
|
+
iconClassName: PropTypes.string,
|
|
55
|
+
spin: PropTypes.bool,
|
|
56
|
+
color: PropTypes.string,
|
|
57
|
+
testid: PropTypes.string,
|
|
58
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
59
|
+
};
|
|
60
|
+
Cart.defaultProps = {
|
|
61
|
+
spin: false,
|
|
62
|
+
color: 'currentColor',
|
|
63
|
+
size: '1em'
|
|
64
|
+
};
|
|
65
|
+
export default Cart;
|
|
@@ -45,9 +45,9 @@ var Discount = function Discount(props) {
|
|
|
45
45
|
height: "24",
|
|
46
46
|
xmlns: "http://www.w3.org/2000/svg"
|
|
47
47
|
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
-
d: "M12.314 2.414a2 2 0 012.828 0l1.061 1.06c.195.196.188.51.047.748a2 2 0 002.741 2.741c.238-.14.552-.148.747.047L20.8 8.
|
|
48
|
+
d: "M12.314 2.414a2 2 0 012.828 0l1.061 1.06c.195.196.188.51.047.748a2 2 0 002.741 2.741c.238-.14.552-.148.747.047L20.8 8.072a2 2 0 010 2.828l-1.795-1.796a3.994 3.994 0 01-4.895-4.895l-.381-.38-2.743 2.742.472.472-1.414 1.414-.472-.472-5.743 5.743.381.38a3.995 3.995 0 014.895 4.896L10.9 20.8a2 2 0 01-2.828 0L7.01 19.74c-.195-.196-.189-.51-.048-.748a2 2 0 00-2.595-2.82l-.146.08c-.237.14-.552.147-.747-.049l-1.06-1.06a2 2 0 010-2.828l9.899-9.9z"
|
|
49
49
|
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
-
d: "M20.8 10.9l-9.9 9.
|
|
50
|
+
d: "M20.8 10.9l-9.9 9.9-1.414-1.415 5.742-5.743-.685-.685 1.414-1.414.685.685 2.743-2.742 1.414 1.414z"
|
|
51
51
|
}), /*#__PURE__*/React.createElement("path", {
|
|
52
52
|
d: "M14.457 10.043l-1.414 1.414-1.5-1.5 1.414-1.414 1.5 1.5z"
|
|
53
53
|
}))));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName", "testid"];
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
14
|
+
var Hammer = function Hammer(props) {
|
|
15
|
+
var color = props.color,
|
|
16
|
+
size = props.size,
|
|
17
|
+
spin = props.spin,
|
|
18
|
+
style = props.style,
|
|
19
|
+
className = props.className,
|
|
20
|
+
iconClassName = props.iconClassName,
|
|
21
|
+
testid = props.testid,
|
|
22
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
23
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
24
|
+
role: "img",
|
|
25
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
26
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
27
|
+
children: loadingCircleStyle
|
|
28
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: size,
|
|
31
|
+
height: size,
|
|
32
|
+
viewBox: "0 0 24 24",
|
|
33
|
+
fill: color
|
|
34
|
+
}, otherProps, {
|
|
35
|
+
className: iconClassName,
|
|
36
|
+
"data-testid": testid,
|
|
37
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
38
|
+
animationDuration: '1s',
|
|
39
|
+
animationIterationCount: 'infinite',
|
|
40
|
+
animationName: 'loadingCircle',
|
|
41
|
+
animationTimingFunction: 'linear'
|
|
42
|
+
} : {})
|
|
43
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
44
|
+
width: "24",
|
|
45
|
+
height: "24",
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
47
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
d: "M13 20a1 1 0 110 2H3a1 1 0 010-2h10z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
+
fillRule: "evenodd",
|
|
51
|
+
clipRule: "evenodd",
|
|
52
|
+
d: "M11.192 1.707a1 1 0 011.414 0l5.658 5.657a1 1 0 010 1.414l-.707.707a1 1 0 01-1.34.069l-.075-.069-2.121 2.121 7.07 7.072a1 1 0 11-1.413 1.414l-7.072-7.072-2.12 2.122.068.076a1 1 0 01-.069 1.338l-.707.708a1 1 0 01-1.414 0l-5.657-5.658a1 1 0 010-1.414l.707-.707a1 1 0 011.414 0l5.657-5.657a1 1 0 010-1.414l.707-.707zm.706 3.535l-5.656 5.656 2.828 2.83 5.657-5.657-2.829-2.829z"
|
|
53
|
+
}))));
|
|
54
|
+
};
|
|
55
|
+
Hammer.propTypes = {
|
|
56
|
+
iconClassName: PropTypes.string,
|
|
57
|
+
spin: PropTypes.bool,
|
|
58
|
+
color: PropTypes.string,
|
|
59
|
+
testid: PropTypes.string,
|
|
60
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
61
|
+
};
|
|
62
|
+
Hammer.defaultProps = {
|
|
63
|
+
spin: false,
|
|
64
|
+
color: 'currentColor',
|
|
65
|
+
size: '1em'
|
|
66
|
+
};
|
|
67
|
+
export default Hammer;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName", "testid"];
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
14
|
+
var Magic = function Magic(props) {
|
|
15
|
+
var color = props.color,
|
|
16
|
+
size = props.size,
|
|
17
|
+
spin = props.spin,
|
|
18
|
+
style = props.style,
|
|
19
|
+
className = props.className,
|
|
20
|
+
iconClassName = props.iconClassName,
|
|
21
|
+
testid = props.testid,
|
|
22
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
23
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
24
|
+
role: "img",
|
|
25
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
26
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
27
|
+
children: loadingCircleStyle
|
|
28
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: size,
|
|
31
|
+
height: size,
|
|
32
|
+
viewBox: "0 0 24 24",
|
|
33
|
+
fill: color
|
|
34
|
+
}, otherProps, {
|
|
35
|
+
className: iconClassName,
|
|
36
|
+
"data-testid": testid,
|
|
37
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
38
|
+
animationDuration: '1s',
|
|
39
|
+
animationIterationCount: 'infinite',
|
|
40
|
+
animationName: 'loadingCircle',
|
|
41
|
+
animationTimingFunction: 'linear'
|
|
42
|
+
} : {})
|
|
43
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
44
|
+
width: "24",
|
|
45
|
+
height: "24",
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
47
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
d: "M5.495 6.785l3.45 1.436-1.258-3.444 1.257-3.444-3.45 1.048-3.449-1.048 1.337 3.444-1.337 3.444 3.45-1.436zm14.62-1.493l2.218.923L21.525 4l.808-2.214-2.217.674-2.218-.674.86 2.214-.86 2.214 2.218-.923zM18.969 18.56l-1.79-.745-1.79.745.694-1.787-.694-1.788 1.79.544 1.79-.544-.652 1.788.652 1.787zM15.167 6.147a1.003 1.003 0 00-1.442 0L1.64 18.213a1 1 0 000 1.44l2.376 2.371a1 1 0 001.446 0L17.54 9.963a.997.997 0 000-1.445l-2.374-2.371zm-3.303 3.51l2.475-2.478 2.174 2.165-2.48 2.476-2.17-2.164z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
50
|
+
x: "14.667",
|
|
51
|
+
y: "14.667",
|
|
52
|
+
width: "5.333",
|
|
53
|
+
height: "5.333"
|
|
54
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
55
|
+
x: "14.667",
|
|
56
|
+
y: "14.667",
|
|
57
|
+
width: "2.667",
|
|
58
|
+
height: "2.667"
|
|
59
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
60
|
+
d: "M17.333 14.667H20v2.666h-2.667v-2.666z",
|
|
61
|
+
fillOpacity: ".3"
|
|
62
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
63
|
+
x: "14.667",
|
|
64
|
+
y: "17.333",
|
|
65
|
+
width: "2.667",
|
|
66
|
+
height: "2.667",
|
|
67
|
+
fillOpacity: ".3"
|
|
68
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
69
|
+
x: "17.333",
|
|
70
|
+
y: "17.333",
|
|
71
|
+
width: "2.667",
|
|
72
|
+
height: "2.667"
|
|
73
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
74
|
+
id: "paint0_linear_11657_77",
|
|
75
|
+
x1: "11.833",
|
|
76
|
+
y1: "1.333",
|
|
77
|
+
x2: "11.833",
|
|
78
|
+
y2: "22.333",
|
|
79
|
+
gradientUnits: "userSpaceOnUse"
|
|
80
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
81
|
+
stopColor: "#6098FF"
|
|
82
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
83
|
+
offset: "1",
|
|
84
|
+
stopColor: "#5240FF"
|
|
85
|
+
}))))));
|
|
86
|
+
};
|
|
87
|
+
Magic.propTypes = {
|
|
88
|
+
iconClassName: PropTypes.string,
|
|
89
|
+
spin: PropTypes.bool,
|
|
90
|
+
color: PropTypes.string,
|
|
91
|
+
testid: PropTypes.string,
|
|
92
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
93
|
+
};
|
|
94
|
+
Magic.defaultProps = {
|
|
95
|
+
spin: false,
|
|
96
|
+
color: 'currentColor',
|
|
97
|
+
size: '1em'
|
|
98
|
+
};
|
|
99
|
+
export default Magic;
|
package/dist/es/icons/price.js
CHANGED
|
@@ -47,7 +47,7 @@ var Price = function Price(props) {
|
|
|
47
47
|
}, /*#__PURE__*/React.createElement("path", {
|
|
48
48
|
fillRule: "evenodd",
|
|
49
49
|
clipRule: "evenodd",
|
|
50
|
-
d: "M19.26 1.865c.821-.145 1.652-.024 2.225.549.675.675.
|
|
50
|
+
d: "M19.26 1.865c.821-.145 1.652-.024 2.225.549.675.675.723 1.7.445 2.673-.283.991-.932 2.057-1.86 2.984-.26.26-.533.496-.81.71l.223 2.236.01.224a2 2 0 01-.438 1.223l-.148.167-7.715 7.713-.151.137a2 2 0 01-2.526 0l-.151-.137-4.95-4.949a2.001 2.001 0 01-.137-2.678l.137-.15 7.715-7.715.167-.148a2 2 0 011.446-.428l4.499.45a2.001 2.001 0 011.792 1.791l.105 1.059c.075-.07.152-.138.226-.212.83-.83 1.377-1.752 1.605-2.552.234-.818.11-1.39-.191-1.691-.256-.256-.703-.385-1.345-.272-.636.112-1.39.453-2.132 1.016a.5.5 0 11-.603-.797c.836-.634 1.734-1.057 2.561-1.203zM4.828 13.98l4.949 4.95 7.715-7.716-.138-1.372a5.06 5.06 0 01-.268.087c-.478.137-.968.193-1.422.137a1.498 1.498 0 01-2.887-.567 1.5 1.5 0 012.935-.439c.293.053.66.034 1.1-.092.143-.04.289-.096.439-.157l-.21-2.095-4.5-.45L4.83 13.98z"
|
|
51
51
|
}))));
|
|
52
52
|
};
|
|
53
53
|
Price.propTypes = {
|
|
@@ -45,11 +45,11 @@ var SystemBuild = function SystemBuild(props) {
|
|
|
45
45
|
height: "24",
|
|
46
46
|
xmlns: "http://www.w3.org/2000/svg"
|
|
47
47
|
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
-
d: "M2 12c0-.865.11-1.703.316-2.504A3 3 0 004.99 4.867a9.99 9.99 0 014.335-2.505 3 3 0 005.348 0 9.99 9.99 0 014.335 2.505 3 3 0 002.675 4.63 10.036 10.036 0 010 5.007 3 3 0 00-2.675 4.
|
|
48
|
+
d: "M2 12c0-.865.11-1.703.316-2.504A3 3 0 004.99 4.867a9.99 9.99 0 014.335-2.505 3 3 0 005.348 0 9.99 9.99 0 014.335 2.505 3 3 0 002.675 4.63 10.036 10.036 0 010 5.007 3 3 0 00-2.675 4.63 9.99 9.99 0 01-4.335 2.504 3 3 0 00-5.348 0 9.99 9.99 0 01-4.335-2.505 3 3 0 00-2.675-4.63A10.056 10.056 0 012 12zm4.804 3c.63 1.091.81 2.346.564 3.524.408.29.842.541 1.297.75A4.993 4.993 0 0112 18c1.26 0 2.438.471 3.335 1.274.455-.209.889-.46 1.297-.75A4.993 4.993 0 0117.196 15a4.992 4.992 0 012.77-2.25 8.134 8.134 0 000-1.5A4.993 4.993 0 0117.195 9a4.993 4.993 0 01-.564-3.524 7.988 7.988 0 00-1.297-.75A4.993 4.993 0 0112 6a4.993 4.993 0 01-3.335-1.274 7.99 7.99 0 00-1.297.75A4.993 4.993 0 016.804 9a4.993 4.993 0 01-2.77 2.25 8.125 8.125 0 000 1.5A4.99 4.99 0 016.804 15z"
|
|
49
49
|
}), /*#__PURE__*/React.createElement("path", {
|
|
50
50
|
fillRule: "evenodd",
|
|
51
51
|
clipRule: "evenodd",
|
|
52
|
-
d: "M11.102 12.
|
|
52
|
+
d: "M11.102 12.342l4.013-3.462 1.385 1.385-5.539 4.846L7.5 11.649l1.385-1.384 2.217 2.077z"
|
|
53
53
|
}))));
|
|
54
54
|
};
|
|
55
55
|
SystemBuild.propTypes = {
|
package/dist/es/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export { default as TaGroupCl } from './icons/group-cl';
|
|
|
29
29
|
export { default as TaVPropCl } from './icons/v-prop-cl';
|
|
30
30
|
export { default as TaBiVendorFillCl } from './icons/bi-vendor-fill-cl';
|
|
31
31
|
export { default as TaCollectCl } from './icons/collect-cl';
|
|
32
|
+
export { default as TaMagic } from './icons/magic';
|
|
32
33
|
export { default as TaDataOpsAiCl } from './icons/DataOps-AI-cl';
|
|
33
34
|
export { default as TaEngageAiCl } from './icons/Engage-AI-cl';
|
|
34
35
|
export { default as TaDashboardReadingCl } from './icons/Dashboard-Reading-cl';
|
|
@@ -267,9 +268,6 @@ export { default as TaSortUp } from './icons/sort-up';
|
|
|
267
268
|
export { default as TaSortDown } from './icons/sort-down';
|
|
268
269
|
export { default as TaFunction } from './icons/function';
|
|
269
270
|
export { default as TaPartition } from './icons/partition';
|
|
270
|
-
export { default as TaDiscount } from './icons/discount';
|
|
271
|
-
export { default as TaCalculate } from './icons/calculate';
|
|
272
|
-
export { default as TaPrice } from './icons/price';
|
|
273
271
|
export { default as TaDataProcessing } from './icons/data-processing';
|
|
274
272
|
export { default as TaMultidimensionalFiltering } from './icons/multidimensional-filtering';
|
|
275
273
|
export { default as TaEducation } from './icons/education';
|
|
@@ -330,6 +328,11 @@ export { default as TaOfficial } from './icons/official';
|
|
|
330
328
|
export { default as TaStream } from './icons/stream';
|
|
331
329
|
export { default as TaCyctime } from './icons/cyctime';
|
|
332
330
|
export { default as TaCpu } from './icons/cpu';
|
|
331
|
+
export { default as TaDiscount } from './icons/discount';
|
|
332
|
+
export { default as TaCalculate } from './icons/calculate';
|
|
333
|
+
export { default as TaPrice } from './icons/price';
|
|
334
|
+
export { default as TaHammer } from './icons/hammer';
|
|
335
|
+
export { default as TaCart } from './icons/cart';
|
|
333
336
|
export { default as TaFontSize } from './icons/font-size';
|
|
334
337
|
export { default as TaFontBold } from './icons/font-bold';
|
|
335
338
|
export { default as TaFontItalic } from './icons/font- italic';
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export const TaGroupCl: Icon;
|
|
|
41
41
|
export const TaVPropCl: Icon;
|
|
42
42
|
export const TaBiVendorFillCl: Icon;
|
|
43
43
|
export const TaCollectCl: Icon;
|
|
44
|
+
export const TaMagic: Icon;
|
|
44
45
|
export const TaDataOpsAiCl: Icon;
|
|
45
46
|
export const TaEngageAiCl: Icon;
|
|
46
47
|
export const TaDashboardReadingCl: Icon;
|
|
@@ -279,9 +280,6 @@ export const TaSortUp: Icon;
|
|
|
279
280
|
export const TaSortDown: Icon;
|
|
280
281
|
export const TaFunction: Icon;
|
|
281
282
|
export const TaPartition: Icon;
|
|
282
|
-
export const TaDiscount: Icon;
|
|
283
|
-
export const TaCalculate: Icon;
|
|
284
|
-
export const TaPrice: Icon;
|
|
285
283
|
export const TaDataProcessing: Icon;
|
|
286
284
|
export const TaMultidimensionalFiltering: Icon;
|
|
287
285
|
export const TaEducation: Icon;
|
|
@@ -342,6 +340,11 @@ export const TaOfficial: Icon;
|
|
|
342
340
|
export const TaStream: Icon;
|
|
343
341
|
export const TaCyctime: Icon;
|
|
344
342
|
export const TaCpu: Icon;
|
|
343
|
+
export const TaDiscount: Icon;
|
|
344
|
+
export const TaCalculate: Icon;
|
|
345
|
+
export const TaPrice: Icon;
|
|
346
|
+
export const TaHammer: Icon;
|
|
347
|
+
export const TaCart: Icon;
|
|
345
348
|
export const TaFontSize: Icon;
|
|
346
349
|
export const TaFontBold: Icon;
|
|
347
350
|
export const TaFontItalic: Icon;
|
|
@@ -52,7 +52,7 @@ var Calculate = function Calculate(props) {
|
|
|
52
52
|
height: "24",
|
|
53
53
|
xmlns: "http://www.w3.org/2000/svg"
|
|
54
54
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
55
|
-
d: "M8.95 14.293a1 1 0 011.414 1.414l-2.122 2.121 2.122 2.122a1 1 0 01-1.415 1.414l-2.12-2.122-2.122 2.122a1 1 0 01-1.414-1.414l2.121-2.122-2.
|
|
55
|
+
d: "M8.95 14.293a1 1 0 011.414 1.414l-2.122 2.121 2.122 2.122a1 1 0 01-1.415 1.414l-2.12-2.122-2.122 2.122a1 1 0 01-1.414-1.414l2.121-2.122-2.121-2.121a1 1 0 111.414-1.414l2.121 2.121 2.121-2.121z"
|
|
56
56
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
57
57
|
d: "M21 19a1 1 0 010 2h-7a1 1 0 110-2h7z"
|
|
58
58
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
@@ -62,9 +62,9 @@ var Calculate = function Calculate(props) {
|
|
|
62
62
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
63
63
|
d: "M9.364 4.06a1 1 0 011.414 1.415l-5.657 5.657a1 1 0 01-1.414-1.414L9.364 4.06z"
|
|
64
64
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
65
|
-
d: "M8.833 8.834a1.
|
|
65
|
+
d: "M8.833 8.834a1.251 1.251 0 111.768 1.77 1.251 1.251 0 01-1.768-1.77z"
|
|
66
66
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
67
|
-
d: "M3.884 3.
|
|
67
|
+
d: "M3.884 3.884A1.25 1.25 0 115.65 5.652a1.25 1.25 0 01-1.767-1.768z"
|
|
68
68
|
}))));
|
|
69
69
|
};
|
|
70
70
|
Calculate.propTypes = {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName", "testid"];
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
20
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
21
|
+
var Cart = function Cart(props) {
|
|
22
|
+
var color = props.color,
|
|
23
|
+
size = props.size,
|
|
24
|
+
spin = props.spin,
|
|
25
|
+
style = props.style,
|
|
26
|
+
className = props.className,
|
|
27
|
+
iconClassName = props.iconClassName,
|
|
28
|
+
testid = props.testid,
|
|
29
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
31
|
+
role: "img",
|
|
32
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
33
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
34
|
+
children: loadingCircleStyle
|
|
35
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
width: size,
|
|
38
|
+
height: size,
|
|
39
|
+
viewBox: "0 0 24 24",
|
|
40
|
+
fill: color
|
|
41
|
+
}, otherProps, {
|
|
42
|
+
className: iconClassName,
|
|
43
|
+
"data-testid": testid,
|
|
44
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
45
|
+
animationDuration: '1s',
|
|
46
|
+
animationIterationCount: 'infinite',
|
|
47
|
+
animationName: 'loadingCircle',
|
|
48
|
+
animationTimingFunction: 'linear'
|
|
49
|
+
} : {})
|
|
50
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", {
|
|
51
|
+
width: "24",
|
|
52
|
+
height: "24",
|
|
53
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
55
|
+
fillRule: "evenodd",
|
|
56
|
+
clipRule: "evenodd",
|
|
57
|
+
d: "M3.653 3a2 2 0 011.973 1.67l.062.379A1 1 0 016 5h13.334a2 2 0 011.977 2.304l-.692 4.5a2.001 2.001 0 01-1.977 1.696H7.097l.25 1.5H18.5a1 1 0 01.563 1.826c.576.547.937 1.317.937 2.174a3 3 0 11-6 0c0-.77.292-1.469.769-2H10.23c.477.531.769 1.23.769 2a3 3 0 11-4.824-2.379 1.997 1.997 0 01-.802-1.292L3.654 5H3a1 1 0 010-2h.653zM8 18a1 1 0 100 2 1 1 0 000-2zm9 0a1 1 0 100 2 1 1 0 000-2zM6.764 11.5h11.878l.692-4.5H6.014l.75 4.5z"
|
|
58
|
+
}))));
|
|
59
|
+
};
|
|
60
|
+
Cart.propTypes = {
|
|
61
|
+
iconClassName: _propTypes["default"].string,
|
|
62
|
+
spin: _propTypes["default"].bool,
|
|
63
|
+
color: _propTypes["default"].string,
|
|
64
|
+
testid: _propTypes["default"].string,
|
|
65
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
66
|
+
};
|
|
67
|
+
Cart.defaultProps = {
|
|
68
|
+
spin: false,
|
|
69
|
+
color: 'currentColor',
|
|
70
|
+
size: '1em'
|
|
71
|
+
};
|
|
72
|
+
var _default = exports["default"] = Cart;
|
|
@@ -52,9 +52,9 @@ var Discount = function Discount(props) {
|
|
|
52
52
|
height: "24",
|
|
53
53
|
xmlns: "http://www.w3.org/2000/svg"
|
|
54
54
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
55
|
-
d: "M12.314 2.414a2 2 0 012.828 0l1.061 1.06c.195.196.188.51.047.748a2 2 0 002.741 2.741c.238-.14.552-.148.747.047L20.8 8.
|
|
55
|
+
d: "M12.314 2.414a2 2 0 012.828 0l1.061 1.06c.195.196.188.51.047.748a2 2 0 002.741 2.741c.238-.14.552-.148.747.047L20.8 8.072a2 2 0 010 2.828l-1.795-1.796a3.994 3.994 0 01-4.895-4.895l-.381-.38-2.743 2.742.472.472-1.414 1.414-.472-.472-5.743 5.743.381.38a3.995 3.995 0 014.895 4.896L10.9 20.8a2 2 0 01-2.828 0L7.01 19.74c-.195-.196-.189-.51-.048-.748a2 2 0 00-2.595-2.82l-.146.08c-.237.14-.552.147-.747-.049l-1.06-1.06a2 2 0 010-2.828l9.899-9.9z"
|
|
56
56
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
57
|
-
d: "M20.8 10.9l-9.9 9.
|
|
57
|
+
d: "M20.8 10.9l-9.9 9.9-1.414-1.415 5.742-5.743-.685-.685 1.414-1.414.685.685 2.743-2.742 1.414 1.414z"
|
|
58
58
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
59
59
|
d: "M14.457 10.043l-1.414 1.414-1.5-1.5 1.414-1.414 1.5 1.5z"
|
|
60
60
|
}))));
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName", "testid"];
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
20
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
21
|
+
var Hammer = function Hammer(props) {
|
|
22
|
+
var color = props.color,
|
|
23
|
+
size = props.size,
|
|
24
|
+
spin = props.spin,
|
|
25
|
+
style = props.style,
|
|
26
|
+
className = props.className,
|
|
27
|
+
iconClassName = props.iconClassName,
|
|
28
|
+
testid = props.testid,
|
|
29
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
31
|
+
role: "img",
|
|
32
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
33
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
34
|
+
children: loadingCircleStyle
|
|
35
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
width: size,
|
|
38
|
+
height: size,
|
|
39
|
+
viewBox: "0 0 24 24",
|
|
40
|
+
fill: color
|
|
41
|
+
}, otherProps, {
|
|
42
|
+
className: iconClassName,
|
|
43
|
+
"data-testid": testid,
|
|
44
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
45
|
+
animationDuration: '1s',
|
|
46
|
+
animationIterationCount: 'infinite',
|
|
47
|
+
animationName: 'loadingCircle',
|
|
48
|
+
animationTimingFunction: 'linear'
|
|
49
|
+
} : {})
|
|
50
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", {
|
|
51
|
+
width: "24",
|
|
52
|
+
height: "24",
|
|
53
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
55
|
+
d: "M13 20a1 1 0 110 2H3a1 1 0 010-2h10z"
|
|
56
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
clipRule: "evenodd",
|
|
59
|
+
d: "M11.192 1.707a1 1 0 011.414 0l5.658 5.657a1 1 0 010 1.414l-.707.707a1 1 0 01-1.34.069l-.075-.069-2.121 2.121 7.07 7.072a1 1 0 11-1.413 1.414l-7.072-7.072-2.12 2.122.068.076a1 1 0 01-.069 1.338l-.707.708a1 1 0 01-1.414 0l-5.657-5.658a1 1 0 010-1.414l.707-.707a1 1 0 011.414 0l5.657-5.657a1 1 0 010-1.414l.707-.707zm.706 3.535l-5.656 5.656 2.828 2.83 5.657-5.657-2.829-2.829z"
|
|
60
|
+
}))));
|
|
61
|
+
};
|
|
62
|
+
Hammer.propTypes = {
|
|
63
|
+
iconClassName: _propTypes["default"].string,
|
|
64
|
+
spin: _propTypes["default"].bool,
|
|
65
|
+
color: _propTypes["default"].string,
|
|
66
|
+
testid: _propTypes["default"].string,
|
|
67
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
68
|
+
};
|
|
69
|
+
Hammer.defaultProps = {
|
|
70
|
+
spin: false,
|
|
71
|
+
color: 'currentColor',
|
|
72
|
+
size: '1em'
|
|
73
|
+
};
|
|
74
|
+
var _default = exports["default"] = Hammer;
|