@tant/icons 1.1.68 → 1.1.69

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.
@@ -0,0 +1,62 @@
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 Install = function Install(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: "M9 2v2H5l-.001 10h14L19 4h-4V2h5a1 1 0 011 1v18a1 1 0 01-1 1H4a1 1 0 01-1-1V3a1 1 0 011-1h5zm9.999 14h-14L5 20h14l-.001-4zM17 17v2h-2v-2h2zM13 2v5h3l-4 4-4-4h3V2h2z"
48
+ })));
49
+ };
50
+
51
+ Install.propTypes = {
52
+ iconClassName: PropTypes.string,
53
+ spin: PropTypes.bool,
54
+ color: PropTypes.string,
55
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
56
+ };
57
+ Install.defaultProps = {
58
+ spin: false,
59
+ color: 'currentColor',
60
+ size: '16'
61
+ };
62
+ export default Install;
package/dist/es/index.js CHANGED
@@ -239,6 +239,7 @@ export { default as TaPauseCircle } from './icons/pause-circle';
239
239
  export { default as TaUpdateData } from './icons/update-data';
240
240
  export { default as TaUpload } from './icons/upload';
241
241
  export { default as TaClick } from './icons/click';
242
+ export { default as TaInstall } from './icons/install';
242
243
  export { default as TaReport } from './icons/report';
243
244
  export { default as TaReportRemoval } from './icons/report-removal';
244
245
  export { default as TaFileAdd } from './icons/file-add';
package/dist/index.d.ts CHANGED
@@ -250,6 +250,7 @@ export const TaPauseCircle: Icon;
250
250
  export const TaUpdateData: Icon;
251
251
  export const TaUpload: Icon;
252
252
  export const TaClick: Icon;
253
+ export const TaInstall: Icon;
253
254
  export const TaReport: Icon;
254
255
  export const TaReportRemoval: Icon;
255
256
  export const TaFileAdd: Icon;
@@ -0,0 +1,74 @@
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 Install = function Install(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: "M9 2v2H5l-.001 10h14L19 4h-4V2h5a1 1 0 011 1v18a1 1 0 01-1 1H4a1 1 0 01-1-1V3a1 1 0 011-1h5zm9.999 14h-14L5 20h14l-.001-4zM17 17v2h-2v-2h2zM13 2v5h3l-4 4-4-4h3V2h2z"
59
+ })));
60
+ };
61
+
62
+ Install.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
+ Install.defaultProps = {
69
+ spin: false,
70
+ color: 'currentColor',
71
+ size: '16'
72
+ };
73
+ var _default = Install;
74
+ exports["default"] = _default;
package/dist/lib/index.js CHANGED
@@ -915,6 +915,12 @@ Object.defineProperty(exports, "TaInfoFill", {
915
915
  return _infoFill["default"];
916
916
  }
917
917
  });
918
+ Object.defineProperty(exports, "TaInstall", {
919
+ enumerable: true,
920
+ get: function get() {
921
+ return _install["default"];
922
+ }
923
+ });
918
924
  Object.defineProperty(exports, "TaLandscape", {
919
925
  enumerable: true,
920
926
  get: function get() {
@@ -2304,6 +2310,8 @@ var _upload = _interopRequireDefault(require("./icons/upload"));
2304
2310
 
2305
2311
  var _click = _interopRequireDefault(require("./icons/click"));
2306
2312
 
2313
+ var _install = _interopRequireDefault(require("./icons/install"));
2314
+
2307
2315
  var _report = _interopRequireDefault(require("./icons/report"));
2308
2316
 
2309
2317
  var _reportRemoval = _interopRequireDefault(require("./icons/report-removal"));