@tant/icons 1.1.72 → 1.1.73
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/one-time.js +67 -0
- package/dist/es/icons/recurring.js +65 -0
- package/dist/es/index.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/lib/icons/one-time.js +79 -0
- package/dist/lib/icons/recurring.js +77 -0
- package/dist/lib/index.js +16 -0
- package/dist/tant-icons.cjs.js +609 -507
- package/dist/tant-icons.esm.js +608 -508
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
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) }} .tant-icon-span > svg { cursor: pointer }';
|
|
18
|
+
|
|
19
|
+
var OneTime = function OneTime(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: "M16.913 13.57l-5.447 4.935-3.88-3.88L9 13.211l2.534 2.534 4.036-3.657 1.343 1.482z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
+
fillRule: "evenodd",
|
|
51
|
+
clipRule: "evenodd",
|
|
52
|
+
d: "M8 2v2h8V2h2v2h1.2C20.77 4 22 5.298 22 6.846v12.308C22 20.702 20.77 22 19.2 22H4.8C3.23 22 2 20.702 2 19.154V6.846C2 5.298 3.23 4 4.8 4H6V2h2zm8 4v1h2V6h1.2c.418 0 .8.355.8.846V9H4V6.846C4 6.355 4.382 6 4.8 6H6v1h2V6h8zM4 11v8.154c0 .491.382.846.8.846h14.4c.418 0 .8-.355.8-.846V11H4z"
|
|
53
|
+
})));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
OneTime.propTypes = {
|
|
57
|
+
iconClassName: PropTypes.string,
|
|
58
|
+
spin: PropTypes.bool,
|
|
59
|
+
color: PropTypes.string,
|
|
60
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
61
|
+
};
|
|
62
|
+
OneTime.defaultProps = {
|
|
63
|
+
spin: false,
|
|
64
|
+
color: 'currentColor',
|
|
65
|
+
size: '1em'
|
|
66
|
+
};
|
|
67
|
+
export default OneTime;
|
|
@@ -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) }} .tant-icon-span > svg { cursor: pointer }';
|
|
18
|
+
|
|
19
|
+
var Recurring = function Recurring(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: "M12.663 19.849a8.51 8.51 0 01-5.372-1.267A7.749 7.749 0 014.58 15.67l4.082 1.302a1.111 1.111 0 00.676-2.117l-6-1.914a1.111 1.111 0 00-1.45 1.069l.007.62c-.01.083-.009.17.002.255l.05 5.127a1.111 1.111 0 002.222-.022l-.011-1.13a10.174 10.174 0 001.941 1.6 10.732 10.732 0 006.779 1.601c2.383-.23 4.615-1.244 6.305-2.877a9.643 9.643 0 002.777-5.045 1.111 1.111 0 10-2.18-.434 7.42 7.42 0 01-2.142 3.88c-1.317 1.274-3.076 2.08-4.975 2.265zm9.39-15.86a1.111 1.111 0 10-2.222.022l.011 1.13a10.175 10.175 0 00-1.941-1.6 10.732 10.732 0 00-6.779-1.601c-2.383.23-4.615 1.244-6.305 2.877a9.648 9.648 0 00-2.759 4.955 1.111 1.111 0 002.175.456 7.426 7.426 0 012.129-3.813c1.317-1.273 3.076-2.08 4.975-2.264a8.51 8.51 0 015.372 1.266 7.748 7.748 0 012.711 2.914L15.338 7.03a1.111 1.111 0 10-.676 2.117l6 1.914a1.111 1.111 0 001.449-1.069l-.006-.62c.01-.083.008-.17-.002-.255l-.05-5.127z"
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
Recurring.propTypes = {
|
|
55
|
+
iconClassName: PropTypes.string,
|
|
56
|
+
spin: PropTypes.bool,
|
|
57
|
+
color: PropTypes.string,
|
|
58
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
59
|
+
};
|
|
60
|
+
Recurring.defaultProps = {
|
|
61
|
+
spin: false,
|
|
62
|
+
color: 'currentColor',
|
|
63
|
+
size: '1em'
|
|
64
|
+
};
|
|
65
|
+
export default Recurring;
|
package/dist/es/index.js
CHANGED
|
@@ -48,6 +48,8 @@ export { default as TaShop } from './icons/shop';
|
|
|
48
48
|
export { default as TaShopFill } from './icons/shop-fill';
|
|
49
49
|
export { default as TaEarth } from './icons/earth';
|
|
50
50
|
export { default as TaGoal } from './icons/goal';
|
|
51
|
+
export { default as TaOneTime } from './icons/one-time';
|
|
52
|
+
export { default as TaRecurring } from './icons/recurring';
|
|
51
53
|
export { default as TaTdLogo } from './icons/td-logo';
|
|
52
54
|
export { default as TaLanguage } from './icons/language';
|
|
53
55
|
export { default as TaCalendar } from './icons/calendar';
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export const TaShop: Icon;
|
|
|
59
59
|
export const TaShopFill: Icon;
|
|
60
60
|
export const TaEarth: Icon;
|
|
61
61
|
export const TaGoal: Icon;
|
|
62
|
+
export const TaOneTime: Icon;
|
|
63
|
+
export const TaRecurring: Icon;
|
|
62
64
|
export const TaTdLogo: Icon;
|
|
63
65
|
export const TaLanguage: Icon;
|
|
64
66
|
export const TaCalendar: Icon;
|
|
@@ -0,0 +1,79 @@
|
|
|
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) }} .tant-icon-span > svg { cursor: pointer }';
|
|
29
|
+
|
|
30
|
+
var OneTime = function OneTime(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: "M16.913 13.57l-5.447 4.935-3.88-3.88L9 13.211l2.534 2.534 4.036-3.657 1.343 1.482z"
|
|
60
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
61
|
+
fillRule: "evenodd",
|
|
62
|
+
clipRule: "evenodd",
|
|
63
|
+
d: "M8 2v2h8V2h2v2h1.2C20.77 4 22 5.298 22 6.846v12.308C22 20.702 20.77 22 19.2 22H4.8C3.23 22 2 20.702 2 19.154V6.846C2 5.298 3.23 4 4.8 4H6V2h2zm8 4v1h2V6h1.2c.418 0 .8.355.8.846V9H4V6.846C4 6.355 4.382 6 4.8 6H6v1h2V6h8zM4 11v8.154c0 .491.382.846.8.846h14.4c.418 0 .8-.355.8-.846V11H4z"
|
|
64
|
+
})));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
OneTime.propTypes = {
|
|
68
|
+
iconClassName: _propTypes["default"].string,
|
|
69
|
+
spin: _propTypes["default"].bool,
|
|
70
|
+
color: _propTypes["default"].string,
|
|
71
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
72
|
+
};
|
|
73
|
+
OneTime.defaultProps = {
|
|
74
|
+
spin: false,
|
|
75
|
+
color: 'currentColor',
|
|
76
|
+
size: '1em'
|
|
77
|
+
};
|
|
78
|
+
var _default = OneTime;
|
|
79
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
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) }} .tant-icon-span > svg { cursor: pointer }';
|
|
29
|
+
|
|
30
|
+
var Recurring = function Recurring(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: "M12.663 19.849a8.51 8.51 0 01-5.372-1.267A7.749 7.749 0 014.58 15.67l4.082 1.302a1.111 1.111 0 00.676-2.117l-6-1.914a1.111 1.111 0 00-1.45 1.069l.007.62c-.01.083-.009.17.002.255l.05 5.127a1.111 1.111 0 002.222-.022l-.011-1.13a10.174 10.174 0 001.941 1.6 10.732 10.732 0 006.779 1.601c2.383-.23 4.615-1.244 6.305-2.877a9.643 9.643 0 002.777-5.045 1.111 1.111 0 10-2.18-.434 7.42 7.42 0 01-2.142 3.88c-1.317 1.274-3.076 2.08-4.975 2.265zm9.39-15.86a1.111 1.111 0 10-2.222.022l.011 1.13a10.175 10.175 0 00-1.941-1.6 10.732 10.732 0 00-6.779-1.601c-2.383.23-4.615 1.244-6.305 2.877a9.648 9.648 0 00-2.759 4.955 1.111 1.111 0 002.175.456 7.426 7.426 0 012.129-3.813c1.317-1.273 3.076-2.08 4.975-2.264a8.51 8.51 0 015.372 1.266 7.748 7.748 0 012.711 2.914L15.338 7.03a1.111 1.111 0 10-.676 2.117l6 1.914a1.111 1.111 0 001.449-1.069l-.006-.62c.01-.083.008-.17-.002-.255l-.05-5.127z"
|
|
62
|
+
})));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
Recurring.propTypes = {
|
|
66
|
+
iconClassName: _propTypes["default"].string,
|
|
67
|
+
spin: _propTypes["default"].bool,
|
|
68
|
+
color: _propTypes["default"].string,
|
|
69
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
70
|
+
};
|
|
71
|
+
Recurring.defaultProps = {
|
|
72
|
+
spin: false,
|
|
73
|
+
color: 'currentColor',
|
|
74
|
+
size: '1em'
|
|
75
|
+
};
|
|
76
|
+
var _default = Recurring;
|
|
77
|
+
exports["default"] = _default;
|
package/dist/lib/index.js
CHANGED
|
@@ -1167,6 +1167,12 @@ Object.defineProperty(exports, "TaNumSm", {
|
|
|
1167
1167
|
return _numSm["default"];
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
|
+
Object.defineProperty(exports, "TaOneTime", {
|
|
1171
|
+
enumerable: true,
|
|
1172
|
+
get: function get() {
|
|
1173
|
+
return _oneTime["default"];
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1170
1176
|
Object.defineProperty(exports, "TaOperatorBigger", {
|
|
1171
1177
|
enumerable: true,
|
|
1172
1178
|
get: function get() {
|
|
@@ -1341,6 +1347,12 @@ Object.defineProperty(exports, "TaProjectMgr", {
|
|
|
1341
1347
|
return _projectMgr["default"];
|
|
1342
1348
|
}
|
|
1343
1349
|
});
|
|
1350
|
+
Object.defineProperty(exports, "TaRecurring", {
|
|
1351
|
+
enumerable: true,
|
|
1352
|
+
get: function get() {
|
|
1353
|
+
return _recurring["default"];
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1344
1356
|
Object.defineProperty(exports, "TaRelatedProp", {
|
|
1345
1357
|
enumerable: true,
|
|
1346
1358
|
get: function get() {
|
|
@@ -1928,6 +1940,10 @@ var _earth = _interopRequireDefault(require("./icons/earth"));
|
|
|
1928
1940
|
|
|
1929
1941
|
var _goal = _interopRequireDefault(require("./icons/goal"));
|
|
1930
1942
|
|
|
1943
|
+
var _oneTime = _interopRequireDefault(require("./icons/one-time"));
|
|
1944
|
+
|
|
1945
|
+
var _recurring = _interopRequireDefault(require("./icons/recurring"));
|
|
1946
|
+
|
|
1931
1947
|
var _tdLogo = _interopRequireDefault(require("./icons/td-logo"));
|
|
1932
1948
|
|
|
1933
1949
|
var _language = _interopRequireDefault(require("./icons/language"));
|