@tant/icons 1.18.2 → 1.18.4
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/code-variable.js +67 -0
- package/dist/es/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/icons/code-variable.js +74 -0
- package/dist/lib/index.js +7 -0
- package/dist/tant-icons.cjs.js +790 -733
- package/dist/tant-icons.esm.js +790 -734
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
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 CodeVariable = function CodeVariable(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
|
+
d: "M5.618 20c-1.149 0-1.992-.192-2.53-.577-.54-.384-.809-1.073-.809-2.065 0-.446.012-.83.036-1.153.036-.335.066-.658.09-.968a9.31 9.31 0 00.054-1.06 1.06 1.06 0 00-.215-.633c-.144-.21-.395-.384-.754-.52-.347-.137-.844-.212-1.49-.224v-1.6c.646-.012 1.143-.087 1.49-.223.359-.137.61-.304.754-.503.143-.21.215-.428.215-.65 0-.385-.018-.733-.054-1.043a30.265 30.265 0 00-.09-.986c-.024-.335-.036-.719-.036-1.153 0-1.005.27-1.693.808-2.065C3.626 4.192 4.47 4 5.618 4H7v1.451h-.736c-.49 0-.867.037-1.13.112-.264.074-.45.204-.557.39-.096.187-.144.453-.144.8 0 .497.012.987.036 1.47.036.484.054 1.005.054 1.563 0 .707-.138 1.222-.413 1.544-.275.31-.736.521-1.382.633v.074c.646.112 1.107.329 1.382.651.275.31.413.819.413 1.526 0 .558-.018 1.079-.054 1.563a29.75 29.75 0 00-.036 1.47c0 .347.048.613.144.8.108.186.293.316.556.39.264.075.64.112 1.131.112H7V20H5.618z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
+
d: "M7 16.575l3.471-4.973L7.234 7h2.438l1.247 1.813c.156.26.325.534.508.82.194.273.377.546.546.819h.077c.143-.274.3-.553.468-.839.17-.286.325-.559.468-.819L14.117 7h2.36l-3.257 4.836 3.491 4.739h-2.437l-1.385-1.892-.585-.838c-.195-.3-.39-.586-.585-.859h-.078a79.75 79.75 0 01-.527.839c-.169.286-.338.579-.507.878L9.36 16.575H7z"
|
|
51
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
52
|
+
d: "M20.913 19.423c-.539.385-1.382.577-2.53.577H17v-1.451h.736c.49 0 .867-.037 1.13-.112.264-.074.45-.204.557-.39.096-.187.144-.453.144-.8 0-.497-.012-.986-.036-1.47a21.18 21.18 0 01-.054-1.563c0-.707.137-1.216.413-1.526.275-.322.736-.54 1.382-.65v-.075c-.646-.112-1.107-.323-1.382-.633-.276-.322-.413-.837-.413-1.544 0-.558.018-1.079.054-1.563.024-.483.036-.973.036-1.47 0-.347-.048-.613-.144-.8-.108-.186-.293-.316-.556-.39-.264-.075-.64-.112-1.131-.112H17V4h1.382c1.149 0 1.992.192 2.53.577.54.372.809 1.06.809 2.065 0 .434-.012.818-.036 1.153a30.18 30.18 0 00-.09.986c-.036.31-.054.658-.054 1.042 0 .223.072.44.215.651.144.199.395.366.754.503.347.136.844.21 1.49.223v1.6c-.646.012-1.143.087-1.49.223-.359.137-.61.31-.754.521a1.06 1.06 0 00-.215.633c0 .397.018.75.054 1.06.024.31.054.633.09.968.024.322.036.707.036 1.153 0 .992-.27 1.68-.808 2.065z"
|
|
53
|
+
}))));
|
|
54
|
+
};
|
|
55
|
+
CodeVariable.propTypes = {
|
|
56
|
+
iconClassName: PropTypes.string,
|
|
57
|
+
spin: PropTypes.bool,
|
|
58
|
+
color: PropTypes.string,
|
|
59
|
+
testid: PropTypes.string,
|
|
60
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
61
|
+
};
|
|
62
|
+
CodeVariable.defaultProps = {
|
|
63
|
+
spin: false,
|
|
64
|
+
color: 'currentColor',
|
|
65
|
+
size: '1em'
|
|
66
|
+
};
|
|
67
|
+
export default CodeVariable;
|
package/dist/es/index.js
CHANGED
|
@@ -265,6 +265,7 @@ export { default as TaHand } from './icons/hand';
|
|
|
265
265
|
export { default as TaLayoutFocus } from './icons/layout-focus';
|
|
266
266
|
export { default as TaLayoutSide } from './icons/layout-side';
|
|
267
267
|
export { default as TaBuildMode } from './icons/build-mode';
|
|
268
|
+
export { default as TaCodeVariable } from './icons/code-variable';
|
|
268
269
|
export { default as TaUser1 } from './icons/user-1';
|
|
269
270
|
export { default as TaUser1Fill } from './icons/user-1-fill';
|
|
270
271
|
export { default as TaUser2 } from './icons/user-2';
|
package/dist/index.d.ts
CHANGED
|
@@ -277,6 +277,7 @@ export const TaHand: Icon;
|
|
|
277
277
|
export const TaLayoutFocus: Icon;
|
|
278
278
|
export const TaLayoutSide: Icon;
|
|
279
279
|
export const TaBuildMode: Icon;
|
|
280
|
+
export const TaCodeVariable: Icon;
|
|
280
281
|
export const TaUser1: Icon;
|
|
281
282
|
export const TaUser1Fill: Icon;
|
|
282
283
|
export const TaUser2: Icon;
|
|
@@ -0,0 +1,74 @@
|
|
|
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 CodeVariable = function CodeVariable(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
|
+
d: "M5.618 20c-1.149 0-1.992-.192-2.53-.577-.54-.384-.809-1.073-.809-2.065 0-.446.012-.83.036-1.153.036-.335.066-.658.09-.968a9.31 9.31 0 00.054-1.06 1.06 1.06 0 00-.215-.633c-.144-.21-.395-.384-.754-.52-.347-.137-.844-.212-1.49-.224v-1.6c.646-.012 1.143-.087 1.49-.223.359-.137.61-.304.754-.503.143-.21.215-.428.215-.65 0-.385-.018-.733-.054-1.043a30.265 30.265 0 00-.09-.986c-.024-.335-.036-.719-.036-1.153 0-1.005.27-1.693.808-2.065C3.626 4.192 4.47 4 5.618 4H7v1.451h-.736c-.49 0-.867.037-1.13.112-.264.074-.45.204-.557.39-.096.187-.144.453-.144.8 0 .497.012.987.036 1.47.036.484.054 1.005.054 1.563 0 .707-.138 1.222-.413 1.544-.275.31-.736.521-1.382.633v.074c.646.112 1.107.329 1.382.651.275.31.413.819.413 1.526 0 .558-.018 1.079-.054 1.563a29.75 29.75 0 00-.036 1.47c0 .347.048.613.144.8.108.186.293.316.556.39.264.075.64.112 1.131.112H7V20H5.618z"
|
|
56
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
57
|
+
d: "M7 16.575l3.471-4.973L7.234 7h2.438l1.247 1.813c.156.26.325.534.508.82.194.273.377.546.546.819h.077c.143-.274.3-.553.468-.839.17-.286.325-.559.468-.819L14.117 7h2.36l-3.257 4.836 3.491 4.739h-2.437l-1.385-1.892-.585-.838c-.195-.3-.39-.586-.585-.859h-.078a79.75 79.75 0 01-.527.839c-.169.286-.338.579-.507.878L9.36 16.575H7z"
|
|
58
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
59
|
+
d: "M20.913 19.423c-.539.385-1.382.577-2.53.577H17v-1.451h.736c.49 0 .867-.037 1.13-.112.264-.074.45-.204.557-.39.096-.187.144-.453.144-.8 0-.497-.012-.986-.036-1.47a21.18 21.18 0 01-.054-1.563c0-.707.137-1.216.413-1.526.275-.322.736-.54 1.382-.65v-.075c-.646-.112-1.107-.323-1.382-.633-.276-.322-.413-.837-.413-1.544 0-.558.018-1.079.054-1.563.024-.483.036-.973.036-1.47 0-.347-.048-.613-.144-.8-.108-.186-.293-.316-.556-.39-.264-.075-.64-.112-1.131-.112H17V4h1.382c1.149 0 1.992.192 2.53.577.54.372.809 1.06.809 2.065 0 .434-.012.818-.036 1.153a30.18 30.18 0 00-.09.986c-.036.31-.054.658-.054 1.042 0 .223.072.44.215.651.144.199.395.366.754.503.347.136.844.21 1.49.223v1.6c-.646.012-1.143.087-1.49.223-.359.137-.61.31-.754.521a1.06 1.06 0 00-.215.633c0 .397.018.75.054 1.06.024.31.054.633.09.968.024.322.036.707.036 1.153 0 .992-.27 1.68-.808 2.065z"
|
|
60
|
+
}))));
|
|
61
|
+
};
|
|
62
|
+
CodeVariable.propTypes = {
|
|
63
|
+
iconClassName: _propTypes["default"].string,
|
|
64
|
+
spin: _propTypes["default"].bool,
|
|
65
|
+
color: _propTypes["default"].string,
|
|
66
|
+
testid: _propTypes["default"].string,
|
|
67
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
68
|
+
};
|
|
69
|
+
CodeVariable.defaultProps = {
|
|
70
|
+
spin: false,
|
|
71
|
+
color: 'currentColor',
|
|
72
|
+
size: '1em'
|
|
73
|
+
};
|
|
74
|
+
var _default = exports["default"] = CodeVariable;
|
package/dist/lib/index.js
CHANGED
|
@@ -453,6 +453,12 @@ Object.defineProperty(exports, "TaCode", {
|
|
|
453
453
|
return _code["default"];
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
|
+
Object.defineProperty(exports, "TaCodeVariable", {
|
|
457
|
+
enumerable: true,
|
|
458
|
+
get: function get() {
|
|
459
|
+
return _codeVariable["default"];
|
|
460
|
+
}
|
|
461
|
+
});
|
|
456
462
|
Object.defineProperty(exports, "TaComment", {
|
|
457
463
|
enumerable: true,
|
|
458
464
|
get: function get() {
|
|
@@ -2976,6 +2982,7 @@ var _hand = _interopRequireDefault(require("./icons/hand"));
|
|
|
2976
2982
|
var _layoutFocus = _interopRequireDefault(require("./icons/layout-focus"));
|
|
2977
2983
|
var _layoutSide = _interopRequireDefault(require("./icons/layout-side"));
|
|
2978
2984
|
var _buildMode = _interopRequireDefault(require("./icons/build-mode"));
|
|
2985
|
+
var _codeVariable = _interopRequireDefault(require("./icons/code-variable"));
|
|
2979
2986
|
var _user = _interopRequireDefault(require("./icons/user-1"));
|
|
2980
2987
|
var _user1Fill = _interopRequireDefault(require("./icons/user-1-fill"));
|
|
2981
2988
|
var _user2 = _interopRequireDefault(require("./icons/user-2"));
|