@tant/icons 1.4.5 → 1.4.8
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/reject.js +66 -0
- package/dist/es/icons/undo.js +60 -0
- package/dist/es/index.js +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/lib/icons/reject.js +74 -0
- package/dist/lib/icons/undo.js +68 -0
- package/dist/lib/index.js +17 -3
- package/dist/tant-icons.cjs.js +1473 -1367
- package/dist/tant-icons.esm.js +1472 -1368
- package/package.json +2 -2
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
14
|
+
var Reject = function Reject(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
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
22
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
23
|
+
role: "img",
|
|
24
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
25
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
26
|
+
children: loadingCircleStyle
|
|
27
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
+
width: size,
|
|
30
|
+
height: size,
|
|
31
|
+
viewBox: "0 0 24 24",
|
|
32
|
+
fill: color
|
|
33
|
+
}, otherProps, {
|
|
34
|
+
className: iconClassName,
|
|
35
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
36
|
+
animationDuration: '1s',
|
|
37
|
+
animationIterationCount: 'infinite',
|
|
38
|
+
animationName: 'loadingCircle',
|
|
39
|
+
animationTimingFunction: 'linear'
|
|
40
|
+
} : {})
|
|
41
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
42
|
+
width: "24",
|
|
43
|
+
height: "24",
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
45
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
46
|
+
d: "M8.695 10.752a5 5 0 117.038-.426 7.965 7.965 0 00-2.306 1.11l-.224-.684c-.203-.502.039-.985.407-1.22a3 3 0 10-3.22 0c.59.376.604.633.404 1.245-.192.587-.389 1.174-.585 1.76l-.26.78A1 1 0 019 14H4v2h6.252A8.016 8.016 0 0010 18H3a1 1 0 01-1-1v-4a1 1 0 011-1h5.28l.415-1.248z"
|
|
47
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
d: "M11.07 22a7.954 7.954 0 01-.818-2H2.5a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h8.57z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
+
fillRule: "evenodd",
|
|
51
|
+
clipRule: "evenodd",
|
|
52
|
+
d: "M18 24a6 6 0 100-12 6 6 0 000 12zm0-2a4 4 0 003.446-6.032l-5.478 5.478c.596.352 1.29.554 2.032.554zm2.032-7.446l-5.478 5.478a4 4 0 015.478-5.478z"
|
|
53
|
+
}))));
|
|
54
|
+
};
|
|
55
|
+
Reject.propTypes = {
|
|
56
|
+
iconClassName: PropTypes.string,
|
|
57
|
+
spin: PropTypes.bool,
|
|
58
|
+
color: PropTypes.string,
|
|
59
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
60
|
+
};
|
|
61
|
+
Reject.defaultProps = {
|
|
62
|
+
spin: false,
|
|
63
|
+
color: 'currentColor',
|
|
64
|
+
size: '1em'
|
|
65
|
+
};
|
|
66
|
+
export default Reject;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
14
|
+
var Undo = function Undo(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
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
22
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
23
|
+
role: "img",
|
|
24
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
25
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
26
|
+
children: loadingCircleStyle
|
|
27
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
+
width: size,
|
|
30
|
+
height: size,
|
|
31
|
+
viewBox: "0 0 24 24",
|
|
32
|
+
fill: color
|
|
33
|
+
}, otherProps, {
|
|
34
|
+
className: iconClassName,
|
|
35
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
36
|
+
animationDuration: '1s',
|
|
37
|
+
animationIterationCount: 'infinite',
|
|
38
|
+
animationName: 'loadingCircle',
|
|
39
|
+
animationTimingFunction: 'linear'
|
|
40
|
+
} : {})
|
|
41
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
42
|
+
width: "24",
|
|
43
|
+
height: "24",
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
45
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
46
|
+
d: "M19.973 14.042c0-1.19-.255-2.237-.766-3.141-.511-.904-1.247-1.612-2.207-2.123-.96-.51-2.11-.766-3.45-.766H7.783l-2.032.092 1.508-1.261L9.4 4.739c.1-.093.178-.196.234-.308a.974.974 0 00.084-.421.995.995 0 00-.28-.72C9.25 3.097 9.005 3 8.699 3c-.287 0-.539.11-.757.327l-5.03 4.956a1.1 1.1 0 00-.244.364c-.056.131-.084.268-.084.412 0 .143.028.283.084.42.056.138.138.256.243.356l5.03 4.955c.219.219.471.328.758.328.306 0 .552-.094.739-.28.187-.194.28-.437.28-.73a.95.95 0 00-.084-.412 1.015 1.015 0 00-.234-.327l-2.14-2.094-1.51-1.262 2.033.093h5.795c.923 0 1.705.165 2.347.496.648.324 1.14.779 1.477 1.365.337.58.505 1.246.505 2 0 .761-.168 1.437-.505 2.03-.336.585-.829 1.047-1.477 1.383-.642.343-1.425.515-2.347.515h-2.066c-.312 0-.568.102-.767.308-.2.206-.3.452-.3.739s.1.533.3.738c.2.206.455.31.767.31h2.15c1.315 0 2.444-.247 3.385-.74.947-.492 1.67-1.184 2.17-2.075.504-.892.756-1.936.756-3.133z"
|
|
47
|
+
}))));
|
|
48
|
+
};
|
|
49
|
+
Undo.propTypes = {
|
|
50
|
+
iconClassName: PropTypes.string,
|
|
51
|
+
spin: PropTypes.bool,
|
|
52
|
+
color: PropTypes.string,
|
|
53
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
54
|
+
};
|
|
55
|
+
Undo.defaultProps = {
|
|
56
|
+
spin: false,
|
|
57
|
+
color: 'currentColor',
|
|
58
|
+
size: '1em'
|
|
59
|
+
};
|
|
60
|
+
export default Undo;
|
package/dist/es/index.js
CHANGED
|
@@ -53,15 +53,17 @@ export { default as TaRecurring } from './icons/recurring';
|
|
|
53
53
|
export { default as TaManual } from './icons/manual';
|
|
54
54
|
export { default as TaMute } from './icons/mute';
|
|
55
55
|
export { default as TaApprove } from './icons/approve';
|
|
56
|
+
export { default as TaReject } from './icons/reject';
|
|
56
57
|
export { default as TaEndTask } from './icons/end-task';
|
|
57
|
-
export { default as
|
|
58
|
-
export { default as TaSmile } from './icons/smile';
|
|
58
|
+
export { default as TaTask } from './icons/task';
|
|
59
59
|
export { default as TaProperty } from './icons/property';
|
|
60
60
|
export { default as TaLab } from './icons/lab';
|
|
61
61
|
export { default as TaRuler } from './icons/ruler';
|
|
62
|
+
export { default as TaSmile } from './icons/smile';
|
|
62
63
|
export { default as TaNewTask } from './icons/new-task';
|
|
63
64
|
export { default as TaSubmit } from './icons/submit';
|
|
64
|
-
export { default as
|
|
65
|
+
export { default as TaApproveCancelled } from './icons/approve-cancelled';
|
|
66
|
+
export { default as TaUndo } from './icons/undo';
|
|
65
67
|
export { default as TaTdLogo } from './icons/td-logo';
|
|
66
68
|
export { default as TaLanguage } from './icons/language';
|
|
67
69
|
export { default as TaCalendar } from './icons/calendar';
|
package/dist/index.d.ts
CHANGED
|
@@ -64,15 +64,17 @@ export const TaRecurring: Icon;
|
|
|
64
64
|
export const TaManual: Icon;
|
|
65
65
|
export const TaMute: Icon;
|
|
66
66
|
export const TaApprove: Icon;
|
|
67
|
+
export const TaReject: Icon;
|
|
67
68
|
export const TaEndTask: Icon;
|
|
68
|
-
export const
|
|
69
|
-
export const TaSmile: Icon;
|
|
69
|
+
export const TaTask: Icon;
|
|
70
70
|
export const TaProperty: Icon;
|
|
71
71
|
export const TaLab: Icon;
|
|
72
72
|
export const TaRuler: Icon;
|
|
73
|
+
export const TaSmile: Icon;
|
|
73
74
|
export const TaNewTask: Icon;
|
|
74
75
|
export const TaSubmit: Icon;
|
|
75
|
-
export const
|
|
76
|
+
export const TaApproveCancelled: Icon;
|
|
77
|
+
export const TaUndo: Icon;
|
|
76
78
|
export const TaTdLogo: Icon;
|
|
77
79
|
export const TaLanguage: Icon;
|
|
78
80
|
export const TaCalendar: Icon;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
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"];
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
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; }
|
|
19
|
+
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; }
|
|
20
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
21
|
+
var Reject = function Reject(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
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
30
|
+
role: "img",
|
|
31
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
33
|
+
children: loadingCircleStyle
|
|
34
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
width: size,
|
|
37
|
+
height: size,
|
|
38
|
+
viewBox: "0 0 24 24",
|
|
39
|
+
fill: color
|
|
40
|
+
}, otherProps, {
|
|
41
|
+
className: iconClassName,
|
|
42
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
43
|
+
animationDuration: '1s',
|
|
44
|
+
animationIterationCount: 'infinite',
|
|
45
|
+
animationName: 'loadingCircle',
|
|
46
|
+
animationTimingFunction: 'linear'
|
|
47
|
+
} : {})
|
|
48
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", {
|
|
49
|
+
width: "24",
|
|
50
|
+
height: "24",
|
|
51
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
53
|
+
d: "M8.695 10.752a5 5 0 117.038-.426 7.965 7.965 0 00-2.306 1.11l-.224-.684c-.203-.502.039-.985.407-1.22a3 3 0 10-3.22 0c.59.376.604.633.404 1.245-.192.587-.389 1.174-.585 1.76l-.26.78A1 1 0 019 14H4v2h6.252A8.016 8.016 0 0010 18H3a1 1 0 01-1-1v-4a1 1 0 011-1h5.28l.415-1.248z"
|
|
54
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
55
|
+
d: "M11.07 22a7.954 7.954 0 01-.818-2H2.5a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h8.57z"
|
|
56
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
clipRule: "evenodd",
|
|
59
|
+
d: "M18 24a6 6 0 100-12 6 6 0 000 12zm0-2a4 4 0 003.446-6.032l-5.478 5.478c.596.352 1.29.554 2.032.554zm2.032-7.446l-5.478 5.478a4 4 0 015.478-5.478z"
|
|
60
|
+
}))));
|
|
61
|
+
};
|
|
62
|
+
Reject.propTypes = {
|
|
63
|
+
iconClassName: _propTypes["default"].string,
|
|
64
|
+
spin: _propTypes["default"].bool,
|
|
65
|
+
color: _propTypes["default"].string,
|
|
66
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
67
|
+
};
|
|
68
|
+
Reject.defaultProps = {
|
|
69
|
+
spin: false,
|
|
70
|
+
color: 'currentColor',
|
|
71
|
+
size: '1em'
|
|
72
|
+
};
|
|
73
|
+
var _default = Reject;
|
|
74
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
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"];
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
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; }
|
|
19
|
+
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; }
|
|
20
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
21
|
+
var Undo = function Undo(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
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
30
|
+
role: "img",
|
|
31
|
+
className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
33
|
+
children: loadingCircleStyle
|
|
34
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
width: size,
|
|
37
|
+
height: size,
|
|
38
|
+
viewBox: "0 0 24 24",
|
|
39
|
+
fill: color
|
|
40
|
+
}, otherProps, {
|
|
41
|
+
className: iconClassName,
|
|
42
|
+
style: _objectSpread(_objectSpread({}, style), spin ? {
|
|
43
|
+
animationDuration: '1s',
|
|
44
|
+
animationIterationCount: 'infinite',
|
|
45
|
+
animationName: 'loadingCircle',
|
|
46
|
+
animationTimingFunction: 'linear'
|
|
47
|
+
} : {})
|
|
48
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", {
|
|
49
|
+
width: "24",
|
|
50
|
+
height: "24",
|
|
51
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
53
|
+
d: "M19.973 14.042c0-1.19-.255-2.237-.766-3.141-.511-.904-1.247-1.612-2.207-2.123-.96-.51-2.11-.766-3.45-.766H7.783l-2.032.092 1.508-1.261L9.4 4.739c.1-.093.178-.196.234-.308a.974.974 0 00.084-.421.995.995 0 00-.28-.72C9.25 3.097 9.005 3 8.699 3c-.287 0-.539.11-.757.327l-5.03 4.956a1.1 1.1 0 00-.244.364c-.056.131-.084.268-.084.412 0 .143.028.283.084.42.056.138.138.256.243.356l5.03 4.955c.219.219.471.328.758.328.306 0 .552-.094.739-.28.187-.194.28-.437.28-.73a.95.95 0 00-.084-.412 1.015 1.015 0 00-.234-.327l-2.14-2.094-1.51-1.262 2.033.093h5.795c.923 0 1.705.165 2.347.496.648.324 1.14.779 1.477 1.365.337.58.505 1.246.505 2 0 .761-.168 1.437-.505 2.03-.336.585-.829 1.047-1.477 1.383-.642.343-1.425.515-2.347.515h-2.066c-.312 0-.568.102-.767.308-.2.206-.3.452-.3.739s.1.533.3.738c.2.206.455.31.767.31h2.15c1.315 0 2.444-.247 3.385-.74.947-.492 1.67-1.184 2.17-2.075.504-.892.756-1.936.756-3.133z"
|
|
54
|
+
}))));
|
|
55
|
+
};
|
|
56
|
+
Undo.propTypes = {
|
|
57
|
+
iconClassName: _propTypes["default"].string,
|
|
58
|
+
spin: _propTypes["default"].bool,
|
|
59
|
+
color: _propTypes["default"].string,
|
|
60
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
61
|
+
};
|
|
62
|
+
Undo.defaultProps = {
|
|
63
|
+
spin: false,
|
|
64
|
+
color: 'currentColor',
|
|
65
|
+
size: '1em'
|
|
66
|
+
};
|
|
67
|
+
var _default = Undo;
|
|
68
|
+
exports["default"] = _default;
|
package/dist/lib/index.js
CHANGED
|
@@ -1767,6 +1767,12 @@ Object.defineProperty(exports, "TaRecurring", {
|
|
|
1767
1767
|
return _recurring["default"];
|
|
1768
1768
|
}
|
|
1769
1769
|
});
|
|
1770
|
+
Object.defineProperty(exports, "TaReject", {
|
|
1771
|
+
enumerable: true,
|
|
1772
|
+
get: function get() {
|
|
1773
|
+
return _reject["default"];
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1770
1776
|
Object.defineProperty(exports, "TaRelatedProp", {
|
|
1771
1777
|
enumerable: true,
|
|
1772
1778
|
get: function get() {
|
|
@@ -2253,6 +2259,12 @@ Object.defineProperty(exports, "TaUTagSm", {
|
|
|
2253
2259
|
return _uTagSm["default"];
|
|
2254
2260
|
}
|
|
2255
2261
|
});
|
|
2262
|
+
Object.defineProperty(exports, "TaUndo", {
|
|
2263
|
+
enumerable: true,
|
|
2264
|
+
get: function get() {
|
|
2265
|
+
return _undo["default"];
|
|
2266
|
+
}
|
|
2267
|
+
});
|
|
2256
2268
|
Object.defineProperty(exports, "TaUnlink", {
|
|
2257
2269
|
enumerable: true,
|
|
2258
2270
|
get: function get() {
|
|
@@ -2428,15 +2440,17 @@ var _recurring = _interopRequireDefault(require("./icons/recurring"));
|
|
|
2428
2440
|
var _manual = _interopRequireDefault(require("./icons/manual"));
|
|
2429
2441
|
var _mute = _interopRequireDefault(require("./icons/mute"));
|
|
2430
2442
|
var _approve = _interopRequireDefault(require("./icons/approve"));
|
|
2443
|
+
var _reject = _interopRequireDefault(require("./icons/reject"));
|
|
2431
2444
|
var _endTask = _interopRequireDefault(require("./icons/end-task"));
|
|
2432
|
-
var
|
|
2433
|
-
var _smile = _interopRequireDefault(require("./icons/smile"));
|
|
2445
|
+
var _task = _interopRequireDefault(require("./icons/task"));
|
|
2434
2446
|
var _property = _interopRequireDefault(require("./icons/property"));
|
|
2435
2447
|
var _lab = _interopRequireDefault(require("./icons/lab"));
|
|
2436
2448
|
var _ruler = _interopRequireDefault(require("./icons/ruler"));
|
|
2449
|
+
var _smile = _interopRequireDefault(require("./icons/smile"));
|
|
2437
2450
|
var _newTask = _interopRequireDefault(require("./icons/new-task"));
|
|
2438
2451
|
var _submit = _interopRequireDefault(require("./icons/submit"));
|
|
2439
|
-
var
|
|
2452
|
+
var _approveCancelled = _interopRequireDefault(require("./icons/approve-cancelled"));
|
|
2453
|
+
var _undo = _interopRequireDefault(require("./icons/undo"));
|
|
2440
2454
|
var _tdLogo = _interopRequireDefault(require("./icons/td-logo"));
|
|
2441
2455
|
var _language = _interopRequireDefault(require("./icons/language"));
|
|
2442
2456
|
var _calendar = _interopRequireDefault(require("./icons/calendar"));
|