@tant/icons 1.3.12 → 1.3.13

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,56 @@
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 CmdMac = function CmdMac(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("path", {
42
+ d: "M9.778 7.556h4.444V5.889a3.889 3.889 0 113.89 3.889h-1.668v4.444h1.667a3.89 3.89 0 11-3.889 3.89v-1.668H9.778v1.667a3.89 3.89 0 11-3.89-3.889h1.668V9.778H5.889a3.889 3.889 0 113.889-3.89v1.668zm-2.222 0V5.889a1.667 1.667 0 10-1.667 1.667h1.667zm0 8.888H5.889a1.667 1.667 0 101.667 1.667v-1.667zm8.888-8.888h1.667a1.667 1.667 0 10-1.667-1.667v1.667zm0 8.888v1.667a1.667 1.667 0 101.667-1.667h-1.667zM9.778 9.778v4.444h4.444V9.778H9.778z"
43
+ })));
44
+ };
45
+ CmdMac.propTypes = {
46
+ iconClassName: PropTypes.string,
47
+ spin: PropTypes.bool,
48
+ color: PropTypes.string,
49
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
50
+ };
51
+ CmdMac.defaultProps = {
52
+ spin: false,
53
+ color: 'currentColor',
54
+ size: '1em'
55
+ };
56
+ export default CmdMac;
package/dist/es/index.js CHANGED
@@ -288,6 +288,7 @@ export { default as TaNewIndicator } from './icons/new-indicator';
288
288
  export { default as TaBoxOpen } from './icons/box-open';
289
289
  export { default as TaInterval } from './icons/interval';
290
290
  export { default as TaRevert } from './icons/revert';
291
+ export { default as TaCmdMac } from './icons/cmd-mac';
291
292
  export { default as TaReport } from './icons/report';
292
293
  export { default as TaReportRemoval } from './icons/report-removal';
293
294
  export { default as TaFileAdd } from './icons/file-add';
package/dist/index.d.ts CHANGED
@@ -299,6 +299,7 @@ export const TaNewIndicator: Icon;
299
299
  export const TaBoxOpen: Icon;
300
300
  export const TaInterval: Icon;
301
301
  export const TaRevert: Icon;
302
+ export const TaCmdMac: Icon;
302
303
  export const TaReport: Icon;
303
304
  export const TaReportRemoval: Icon;
304
305
  export const TaFileAdd: Icon;
@@ -0,0 +1,64 @@
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 CmdMac = function CmdMac(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("path", {
49
+ d: "M9.778 7.556h4.444V5.889a3.889 3.889 0 113.89 3.889h-1.668v4.444h1.667a3.89 3.89 0 11-3.889 3.89v-1.668H9.778v1.667a3.89 3.89 0 11-3.89-3.889h1.668V9.778H5.889a3.889 3.889 0 113.889-3.89v1.668zm-2.222 0V5.889a1.667 1.667 0 10-1.667 1.667h1.667zm0 8.888H5.889a1.667 1.667 0 101.667 1.667v-1.667zm8.888-8.888h1.667a1.667 1.667 0 10-1.667-1.667v1.667zm0 8.888v1.667a1.667 1.667 0 101.667-1.667h-1.667zM9.778 9.778v4.444h4.444V9.778H9.778z"
50
+ })));
51
+ };
52
+ CmdMac.propTypes = {
53
+ iconClassName: _propTypes["default"].string,
54
+ spin: _propTypes["default"].bool,
55
+ color: _propTypes["default"].string,
56
+ size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
57
+ };
58
+ CmdMac.defaultProps = {
59
+ spin: false,
60
+ color: 'currentColor',
61
+ size: '1em'
62
+ };
63
+ var _default = CmdMac;
64
+ exports["default"] = _default;
package/dist/lib/index.js CHANGED
@@ -381,6 +381,12 @@ Object.defineProperty(exports, "TaClose", {
381
381
  return _close["default"];
382
382
  }
383
383
  });
384
+ Object.defineProperty(exports, "TaCmdMac", {
385
+ enumerable: true,
386
+ get: function get() {
387
+ return _cmdMac["default"];
388
+ }
389
+ });
384
390
  Object.defineProperty(exports, "TaCode", {
385
391
  enumerable: true,
386
392
  get: function get() {
@@ -2411,6 +2417,7 @@ var _newIndicator = _interopRequireDefault(require("./icons/new-indicator"));
2411
2417
  var _boxOpen = _interopRequireDefault(require("./icons/box-open"));
2412
2418
  var _interval = _interopRequireDefault(require("./icons/interval"));
2413
2419
  var _revert = _interopRequireDefault(require("./icons/revert"));
2420
+ var _cmdMac = _interopRequireDefault(require("./icons/cmd-mac"));
2414
2421
  var _report = _interopRequireDefault(require("./icons/report"));
2415
2422
  var _reportRemoval = _interopRequireDefault(require("./icons/report-removal"));
2416
2423
  var _fileAdd = _interopRequireDefault(require("./icons/file-add"));