@tant/icons 1.1.56 → 1.1.66

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.
@@ -44,7 +44,7 @@ var Detail = function Detail(props) {
44
44
  animationTimingFunction: 'linear'
45
45
  } : {})
46
46
  }), /*#__PURE__*/React.createElement("path", {
47
- d: "M20.222 22H7.778a.767.767 0 01-.55-.234A.812.812 0 017 21.2V6.8c0-.212.082-.416.228-.566A.767.767 0 017.778 6h12.444c.206 0 .404.084.55.234.146.15.228.354.228.566v14.4a.812.812 0 01-.228.566.767.767 0 01-.55.234zm-.778-1.6V7.6H8.556v12.8h10.888zm-8.555-8.8h6.222v1.6H10.89v-1.6zm0 3.2h6.222v1.6H10.89v-1.6z"
47
+ d: "M18.222 20H5.778a.767.767 0 01-.55-.234A.812.812 0 015 19.2V4.8c0-.212.082-.416.228-.566A.767.767 0 015.778 4h12.444c.206 0 .404.084.55.234.146.15.228.354.228.566v14.4a.812.812 0 01-.228.566.767.767 0 01-.55.234zm-.778-1.6V5.6H6.556v12.8h10.888zM8.89 9.6h6.222v1.6H8.89V9.6zm0 3.2h6.222v1.6H8.89v-1.6z"
48
48
  })));
49
49
  };
50
50
 
@@ -0,0 +1,68 @@
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 { display: inline-flex; align-items: center; justify-content: center } .tant-icon-span > svg { cursor: pointer }';
18
+
19
+ var UpdateData = function UpdateData(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
+ className: className ? 'tant-icon-span ' + className : 'tant-icon-span'
30
+ }, /*#__PURE__*/React.createElement("style", {
31
+ children: loadingCircleStyle
32
+ }), /*#__PURE__*/React.createElement("svg", _extends({
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ width: size,
35
+ height: size,
36
+ viewBox: "0 0 24 24",
37
+ fill: color
38
+ }, otherProps, {
39
+ className: iconClassName,
40
+ style: _objectSpread(_objectSpread({}, style), spin ? {
41
+ animationDuration: '1s',
42
+ animationIterationCount: 'infinite',
43
+ animationName: 'loadingCircle',
44
+ animationTimingFunction: 'linear'
45
+ } : {})
46
+ }), /*#__PURE__*/React.createElement("path", {
47
+ d: "M12.999 12h3l-4-4-4 4h3v4h2v-4z"
48
+ }), /*#__PURE__*/React.createElement("rect", {
49
+ x: "3",
50
+ y: "3",
51
+ width: "18",
52
+ height: "18",
53
+ rx: "9"
54
+ })));
55
+ };
56
+
57
+ UpdateData.propTypes = {
58
+ iconClassName: PropTypes.string,
59
+ spin: PropTypes.bool,
60
+ color: PropTypes.string,
61
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
62
+ };
63
+ UpdateData.defaultProps = {
64
+ spin: false,
65
+ color: 'currentColor',
66
+ size: '16'
67
+ };
68
+ export default UpdateData;
package/dist/es/index.js CHANGED
@@ -235,6 +235,7 @@ export { default as TaRename } from './icons/rename';
235
235
  export { default as TaPlayCircle } from './icons/play-circle';
236
236
  export { default as TaPauseCircle } from './icons/pause-circle';
237
237
  export { default as TaUpload } from './icons/upload';
238
+ export { default as TaUpdateData } from './icons/update-data';
238
239
  export { default as TaReport } from './icons/report';
239
240
  export { default as TaReportRemoval } from './icons/report-removal';
240
241
  export { default as TaFileAdd } from './icons/file-add';
package/dist/index.d.ts CHANGED
@@ -246,6 +246,7 @@ export const TaRename: Icon;
246
246
  export const TaPlayCircle: Icon;
247
247
  export const TaPauseCircle: Icon;
248
248
  export const TaUpload: Icon;
249
+ export const TaUpdateData: Icon;
249
250
  export const TaReport: Icon;
250
251
  export const TaReportRemoval: Icon;
251
252
  export const TaFileAdd: Icon;
@@ -55,7 +55,7 @@ var Detail = function Detail(props) {
55
55
  animationTimingFunction: 'linear'
56
56
  } : {})
57
57
  }), /*#__PURE__*/_react["default"].createElement("path", {
58
- d: "M20.222 22H7.778a.767.767 0 01-.55-.234A.812.812 0 017 21.2V6.8c0-.212.082-.416.228-.566A.767.767 0 017.778 6h12.444c.206 0 .404.084.55.234.146.15.228.354.228.566v14.4a.812.812 0 01-.228.566.767.767 0 01-.55.234zm-.778-1.6V7.6H8.556v12.8h10.888zm-8.555-8.8h6.222v1.6H10.89v-1.6zm0 3.2h6.222v1.6H10.89v-1.6z"
58
+ d: "M18.222 20H5.778a.767.767 0 01-.55-.234A.812.812 0 015 19.2V4.8c0-.212.082-.416.228-.566A.767.767 0 015.778 4h12.444c.206 0 .404.084.55.234.146.15.228.354.228.566v14.4a.812.812 0 01-.228.566.767.767 0 01-.55.234zm-.778-1.6V5.6H6.556v12.8h10.888zM8.89 9.6h6.222v1.6H8.89V9.6zm0 3.2h6.222v1.6H8.89v-1.6z"
59
59
  })));
60
60
  };
61
61
 
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _excluded = ["color", "size", "spin", "style", "className", "iconClassName"];
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _extends() { _extends = Object.assign || 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 { display: inline-flex; align-items: center; justify-content: center } .tant-icon-span > svg { cursor: pointer }';
29
+
30
+ var UpdateData = function UpdateData(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
+ className: className ? 'tant-icon-span ' + className : 'tant-icon-span'
41
+ }, /*#__PURE__*/_react["default"].createElement("style", {
42
+ children: loadingCircleStyle
43
+ }), /*#__PURE__*/_react["default"].createElement("svg", _extends({
44
+ xmlns: "http://www.w3.org/2000/svg",
45
+ width: size,
46
+ height: size,
47
+ viewBox: "0 0 24 24",
48
+ fill: color
49
+ }, otherProps, {
50
+ className: iconClassName,
51
+ style: _objectSpread(_objectSpread({}, style), spin ? {
52
+ animationDuration: '1s',
53
+ animationIterationCount: 'infinite',
54
+ animationName: 'loadingCircle',
55
+ animationTimingFunction: 'linear'
56
+ } : {})
57
+ }), /*#__PURE__*/_react["default"].createElement("path", {
58
+ d: "M12.999 12h3l-4-4-4 4h3v4h2v-4z"
59
+ }), /*#__PURE__*/_react["default"].createElement("rect", {
60
+ x: "3",
61
+ y: "3",
62
+ width: "18",
63
+ height: "18",
64
+ rx: "9"
65
+ })));
66
+ };
67
+
68
+ UpdateData.propTypes = {
69
+ iconClassName: _propTypes["default"].string,
70
+ spin: _propTypes["default"].bool,
71
+ color: _propTypes["default"].string,
72
+ size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
73
+ };
74
+ UpdateData.defaultProps = {
75
+ spin: false,
76
+ color: 'currentColor',
77
+ size: '16'
78
+ };
79
+ var _default = UpdateData;
80
+ exports["default"] = _default;
package/dist/lib/index.js CHANGED
@@ -1713,6 +1713,12 @@ Object.defineProperty(exports, "TaUpdate", {
1713
1713
  return _update["default"];
1714
1714
  }
1715
1715
  });
1716
+ Object.defineProperty(exports, "TaUpdateData", {
1717
+ enumerable: true,
1718
+ get: function get() {
1719
+ return _updateData["default"];
1720
+ }
1721
+ });
1716
1722
  Object.defineProperty(exports, "TaUpload", {
1717
1723
  enumerable: true,
1718
1724
  get: function get() {
@@ -2272,6 +2278,8 @@ var _pauseCircle = _interopRequireDefault(require("./icons/pause-circle"));
2272
2278
 
2273
2279
  var _upload = _interopRequireDefault(require("./icons/upload"));
2274
2280
 
2281
+ var _updateData = _interopRequireDefault(require("./icons/update-data"));
2282
+
2275
2283
  var _report = _interopRequireDefault(require("./icons/report"));
2276
2284
 
2277
2285
  var _reportRemoval = _interopRequireDefault(require("./icons/report-removal"));