@tant/icons 1.18.15 → 1.18.16

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,75 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["color", "size", "spin", "style", "className", "iconClassName", "testid"];
3
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
11
+ import React from 'react';
12
+ import PropTypes from 'prop-types';
13
+ var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
14
+ var AutoLayout = function AutoLayout(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
+ testid = props.testid,
22
+ otherProps = _objectWithoutProperties(props, _excluded);
23
+ return /*#__PURE__*/React.createElement("span", {
24
+ role: "img",
25
+ className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
26
+ }, /*#__PURE__*/React.createElement("style", {
27
+ children: loadingCircleStyle
28
+ }), /*#__PURE__*/React.createElement("svg", _extends({
29
+ xmlns: "http://www.w3.org/2000/svg",
30
+ width: size,
31
+ height: size,
32
+ viewBox: "0 0 24 24",
33
+ fill: color
34
+ }, otherProps, {
35
+ className: iconClassName,
36
+ "data-testid": testid,
37
+ style: _objectSpread(_objectSpread({}, style), spin ? {
38
+ animationDuration: '1s',
39
+ animationIterationCount: 'infinite',
40
+ animationName: 'loadingCircle',
41
+ animationTimingFunction: 'linear'
42
+ } : {})
43
+ }), /*#__PURE__*/React.createElement("svg", {
44
+ width: "24",
45
+ height: "24",
46
+ xmlns: "http://www.w3.org/2000/svg"
47
+ }, /*#__PURE__*/React.createElement("path", {
48
+ fillRule: "evenodd",
49
+ clipRule: "evenodd",
50
+ d: "M7.5 12a4.5 4.5 0 110-9 4.5 4.5 0 010 9zm0-2a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"
51
+ }), /*#__PURE__*/React.createElement("path", {
52
+ fillRule: "evenodd",
53
+ clipRule: "evenodd",
54
+ d: "M17.5 22a4.5 4.5 0 110-9 4.5 4.5 0 010 9zm0-2a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"
55
+ }), /*#__PURE__*/React.createElement("path", {
56
+ d: "M18.303 11.019l-.278.636a.57.57 0 01-1.05 0l-.278-.636a4.908 4.908 0 00-2.496-2.533l-.854-.38c-.463-.205-.463-.878 0-1.083l.806-.359a4.911 4.911 0 002.533-2.617l.285-.688a.57.57 0 011.058 0l.285.688a4.911 4.911 0 002.533 2.617l.806.359c.463.205.463.878 0 1.083l-.854.38a4.908 4.908 0 00-2.496 2.533z"
57
+ }), /*#__PURE__*/React.createElement("path", {
58
+ fillRule: "evenodd",
59
+ clipRule: "evenodd",
60
+ d: "M3.5 14.5a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1h-6a1 1 0 01-1-1v-6zm2 5v-4h4v4h-4z"
61
+ }))));
62
+ };
63
+ AutoLayout.propTypes = {
64
+ iconClassName: PropTypes.string,
65
+ spin: PropTypes.bool,
66
+ color: PropTypes.string,
67
+ testid: PropTypes.string,
68
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
69
+ };
70
+ AutoLayout.defaultProps = {
71
+ spin: false,
72
+ color: 'currentColor',
73
+ size: '1em'
74
+ };
75
+ export default AutoLayout;
package/dist/es/index.js CHANGED
@@ -281,6 +281,7 @@ export { default as TaTableRow } from './icons/table-row';
281
281
  export { default as TaTableCol } from './icons/table-col';
282
282
  export { default as TaCopyQuery } from './icons/copy-query';
283
283
  export { default as TaCopyDdl } from './icons/copy-ddl';
284
+ export { default as TaAutoLayout } from './icons/auto-layout';
284
285
  export { default as TaUser1 } from './icons/user-1';
285
286
  export { default as TaUser1Fill } from './icons/user-1-fill';
286
287
  export { default as TaUser2 } from './icons/user-2';
package/dist/index.d.ts CHANGED
@@ -293,6 +293,7 @@ export const TaTableRow: Icon;
293
293
  export const TaTableCol: Icon;
294
294
  export const TaCopyQuery: Icon;
295
295
  export const TaCopyDdl: Icon;
296
+ export const TaAutoLayout: Icon;
296
297
  export const TaUser1: Icon;
297
298
  export const TaUser1Fill: Icon;
298
299
  export const TaUser2: Icon;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
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", "testid"];
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
19
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
20
+ var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
21
+ var AutoLayout = function AutoLayout(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
+ testid = props.testid,
29
+ otherProps = _objectWithoutProperties(props, _excluded);
30
+ return /*#__PURE__*/_react["default"].createElement("span", {
31
+ role: "img",
32
+ className: className ? 'tant-icon-span anticon ' + className : 'tant-icon-span anticon'
33
+ }, /*#__PURE__*/_react["default"].createElement("style", {
34
+ children: loadingCircleStyle
35
+ }), /*#__PURE__*/_react["default"].createElement("svg", _extends({
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ width: size,
38
+ height: size,
39
+ viewBox: "0 0 24 24",
40
+ fill: color
41
+ }, otherProps, {
42
+ className: iconClassName,
43
+ "data-testid": testid,
44
+ style: _objectSpread(_objectSpread({}, style), spin ? {
45
+ animationDuration: '1s',
46
+ animationIterationCount: 'infinite',
47
+ animationName: 'loadingCircle',
48
+ animationTimingFunction: 'linear'
49
+ } : {})
50
+ }), /*#__PURE__*/_react["default"].createElement("svg", {
51
+ width: "24",
52
+ height: "24",
53
+ xmlns: "http://www.w3.org/2000/svg"
54
+ }, /*#__PURE__*/_react["default"].createElement("path", {
55
+ fillRule: "evenodd",
56
+ clipRule: "evenodd",
57
+ d: "M7.5 12a4.5 4.5 0 110-9 4.5 4.5 0 010 9zm0-2a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"
58
+ }), /*#__PURE__*/_react["default"].createElement("path", {
59
+ fillRule: "evenodd",
60
+ clipRule: "evenodd",
61
+ d: "M17.5 22a4.5 4.5 0 110-9 4.5 4.5 0 010 9zm0-2a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"
62
+ }), /*#__PURE__*/_react["default"].createElement("path", {
63
+ d: "M18.303 11.019l-.278.636a.57.57 0 01-1.05 0l-.278-.636a4.908 4.908 0 00-2.496-2.533l-.854-.38c-.463-.205-.463-.878 0-1.083l.806-.359a4.911 4.911 0 002.533-2.617l.285-.688a.57.57 0 011.058 0l.285.688a4.911 4.911 0 002.533 2.617l.806.359c.463.205.463.878 0 1.083l-.854.38a4.908 4.908 0 00-2.496 2.533z"
64
+ }), /*#__PURE__*/_react["default"].createElement("path", {
65
+ fillRule: "evenodd",
66
+ clipRule: "evenodd",
67
+ d: "M3.5 14.5a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1h-6a1 1 0 01-1-1v-6zm2 5v-4h4v4h-4z"
68
+ }))));
69
+ };
70
+ AutoLayout.propTypes = {
71
+ iconClassName: _propTypes["default"].string,
72
+ spin: _propTypes["default"].bool,
73
+ color: _propTypes["default"].string,
74
+ testid: _propTypes["default"].string,
75
+ size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
76
+ };
77
+ AutoLayout.defaultProps = {
78
+ spin: false,
79
+ color: 'currentColor',
80
+ size: '1em'
81
+ };
82
+ var _default = exports["default"] = AutoLayout;
package/dist/lib/index.js CHANGED
@@ -177,6 +177,12 @@ Object.defineProperty(exports, "TaAttribution", {
177
177
  return _attribution["default"];
178
178
  }
179
179
  });
180
+ Object.defineProperty(exports, "TaAutoLayout", {
181
+ enumerable: true,
182
+ get: function get() {
183
+ return _autoLayout["default"];
184
+ }
185
+ });
180
186
  Object.defineProperty(exports, "TaAvatarGroupCl", {
181
187
  enumerable: true,
182
188
  get: function get() {
@@ -3100,6 +3106,7 @@ var _tableRow = _interopRequireDefault(require("./icons/table-row"));
3100
3106
  var _tableCol = _interopRequireDefault(require("./icons/table-col"));
3101
3107
  var _copyQuery = _interopRequireDefault(require("./icons/copy-query"));
3102
3108
  var _copyDdl = _interopRequireDefault(require("./icons/copy-ddl"));
3109
+ var _autoLayout = _interopRequireDefault(require("./icons/auto-layout"));
3103
3110
  var _user = _interopRequireDefault(require("./icons/user-1"));
3104
3111
  var _user1Fill = _interopRequireDefault(require("./icons/user-1-fill"));
3105
3112
  var _user2 = _interopRequireDefault(require("./icons/user-2"));