@tant/icons 1.21.73 → 1.21.74
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/chart-view.js +67 -0
- package/dist/es/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/icons/chart-view.js +74 -0
- package/dist/lib/index.js +7 -0
- package/dist/tant-icons.cjs.js +1478 -1421
- package/dist/tant-icons.esm.js +1478 -1422
- 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 n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(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 (-1 !== e.indexOf(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 ChartView = function ChartView(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: "M15 11c2.28 0 4.004 1.018 5.129 1.994.564.49.99.977 1.275 1.345a7.998 7.998 0 01.418.59l.026.04.008.013.002.005.001.002.14.498-.152.544-.001.003-.003.005-.009.013a8.378 8.378 0 01-.118.175 10.215 10.215 0 01-1.639 1.784C18.947 18.977 17.224 20 15 20c-2.224 0-3.946-1.023-5.077-1.99a10.217 10.217 0 01-1.639-1.783 5.575 5.575 0 01-.118-.175l-.009-.013c0-.002-.003-.005-.003-.005v-.002L8 15.487l.14-.497.002-.003.003-.005.007-.012a3.934 3.934 0 01.115-.178c.076-.113.185-.269.329-.453a9.62 9.62 0 011.275-1.345C10.996 12.018 12.72 11 15 11zm0 2c-1.65 0-2.926.732-3.818 1.506a7.645 7.645 0 00-.945.981c.234.283.565.643.985 1.002C12.139 17.273 13.417 18 15 18c1.583 0 2.861-.727 3.778-1.51.42-.36.75-.72.984-1.003a7.622 7.622 0 00-.944-.981C17.926 13.732 16.65 13 15 13zm-7 2.487l.152.544a1.002 1.002 0 01-.012-1.04l-.14.496zm13.86-.496a1 1 0 01-.013 1.04l.152-.544-.139-.496z"
|
|
49
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
+
d: "M21 4a1 1 0 011 1v6h-2V8H4v10h4v2H3a1 1 0 01-1-1V5a1 1 0 011-1h18z"
|
|
51
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
52
|
+
d: "M17 15.5a2 2 0 11-4 0 2 2 0 014 0z"
|
|
53
|
+
}))));
|
|
54
|
+
};
|
|
55
|
+
ChartView.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
|
+
ChartView.defaultProps = {
|
|
63
|
+
spin: false,
|
|
64
|
+
color: 'currentColor',
|
|
65
|
+
size: '1em'
|
|
66
|
+
};
|
|
67
|
+
export default ChartView;
|
package/dist/es/index.js
CHANGED
|
@@ -193,6 +193,7 @@ export { default as TaChartTrophy } from './icons/chart-trophy';
|
|
|
193
193
|
export { default as TaProgress } from './icons/progress';
|
|
194
194
|
export { default as TaDashboardPlan } from './icons/dashboard-plan';
|
|
195
195
|
export { default as TaRipple } from './icons/ripple';
|
|
196
|
+
export { default as TaChartView } from './icons/chart-view';
|
|
196
197
|
export { default as TaMEvent } from './icons/m-event';
|
|
197
198
|
export { default as TaMRetention } from './icons/m-retention';
|
|
198
199
|
export { default as TaMFunnel } from './icons/m-funnel';
|
package/dist/index.d.ts
CHANGED
|
@@ -205,6 +205,7 @@ export const TaChartTrophy: Icon;
|
|
|
205
205
|
export const TaProgress: Icon;
|
|
206
206
|
export const TaDashboardPlan: Icon;
|
|
207
207
|
export const TaRipple: Icon;
|
|
208
|
+
export const TaChartView: Icon;
|
|
208
209
|
export const TaMEvent: Icon;
|
|
209
210
|
export const TaMRetention: Icon;
|
|
210
211
|
export const TaMFunnel: 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 n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(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 (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
20
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
21
|
+
var ChartView = function ChartView(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: "M15 11c2.28 0 4.004 1.018 5.129 1.994.564.49.99.977 1.275 1.345a7.998 7.998 0 01.418.59l.026.04.008.013.002.005.001.002.14.498-.152.544-.001.003-.003.005-.009.013a8.378 8.378 0 01-.118.175 10.215 10.215 0 01-1.639 1.784C18.947 18.977 17.224 20 15 20c-2.224 0-3.946-1.023-5.077-1.99a10.217 10.217 0 01-1.639-1.783 5.575 5.575 0 01-.118-.175l-.009-.013c0-.002-.003-.005-.003-.005v-.002L8 15.487l.14-.497.002-.003.003-.005.007-.012a3.934 3.934 0 01.115-.178c.076-.113.185-.269.329-.453a9.62 9.62 0 011.275-1.345C10.996 12.018 12.72 11 15 11zm0 2c-1.65 0-2.926.732-3.818 1.506a7.645 7.645 0 00-.945.981c.234.283.565.643.985 1.002C12.139 17.273 13.417 18 15 18c1.583 0 2.861-.727 3.778-1.51.42-.36.75-.72.984-1.003a7.622 7.622 0 00-.944-.981C17.926 13.732 16.65 13 15 13zm-7 2.487l.152.544a1.002 1.002 0 01-.012-1.04l-.14.496zm13.86-.496a1 1 0 01-.013 1.04l.152-.544-.139-.496z"
|
|
56
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
57
|
+
d: "M21 4a1 1 0 011 1v6h-2V8H4v10h4v2H3a1 1 0 01-1-1V5a1 1 0 011-1h18z"
|
|
58
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
59
|
+
d: "M17 15.5a2 2 0 11-4 0 2 2 0 014 0z"
|
|
60
|
+
}))));
|
|
61
|
+
};
|
|
62
|
+
ChartView.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
|
+
ChartView.defaultProps = {
|
|
70
|
+
spin: false,
|
|
71
|
+
color: 'currentColor',
|
|
72
|
+
size: '1em'
|
|
73
|
+
};
|
|
74
|
+
var _default = exports["default"] = ChartView;
|
package/dist/lib/index.js
CHANGED
|
@@ -543,6 +543,12 @@ Object.defineProperty(exports, "TaChartTrophy", {
|
|
|
543
543
|
return _chartTrophy["default"];
|
|
544
544
|
}
|
|
545
545
|
});
|
|
546
|
+
Object.defineProperty(exports, "TaChartView", {
|
|
547
|
+
enumerable: true,
|
|
548
|
+
get: function get() {
|
|
549
|
+
return _chartView["default"];
|
|
550
|
+
}
|
|
551
|
+
});
|
|
546
552
|
Object.defineProperty(exports, "TaChartWordcloud", {
|
|
547
553
|
enumerable: true,
|
|
548
554
|
get: function get() {
|
|
@@ -3504,6 +3510,7 @@ var _chartTrophy = _interopRequireDefault(require("./icons/chart-trophy"));
|
|
|
3504
3510
|
var _progress = _interopRequireDefault(require("./icons/progress"));
|
|
3505
3511
|
var _dashboardPlan = _interopRequireDefault(require("./icons/dashboard-plan"));
|
|
3506
3512
|
var _ripple = _interopRequireDefault(require("./icons/ripple"));
|
|
3513
|
+
var _chartView = _interopRequireDefault(require("./icons/chart-view"));
|
|
3507
3514
|
var _mEvent = _interopRequireDefault(require("./icons/m-event"));
|
|
3508
3515
|
var _mRetention = _interopRequireDefault(require("./icons/m-retention"));
|
|
3509
3516
|
var _mFunnel = _interopRequireDefault(require("./icons/m-funnel"));
|