@tant/icons 1.0.23 → 1.0.24
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/currency.js +66 -0
- package/dist/es/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/icons/currency.js +78 -0
- package/dist/lib/index.js +8 -0
- package/dist/tant-icons.cjs.js +396 -345
- package/dist/tant-icons.esm.js +396 -346
- package/package.json +2 -2
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var _excluded = ["color", "size", "spin", "style", "className"];
|
|
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) }}';
|
|
18
|
+
|
|
19
|
+
var Currency = function Currency(props) {
|
|
20
|
+
var color = props.color,
|
|
21
|
+
size = props.size,
|
|
22
|
+
spin = props.spin,
|
|
23
|
+
style = props.style,
|
|
24
|
+
className = props.className,
|
|
25
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
28
|
+
className: className,
|
|
29
|
+
style: {
|
|
30
|
+
display: 'inline-flex',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center'
|
|
33
|
+
}
|
|
34
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
35
|
+
children: loadingCircleStyle
|
|
36
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
width: size,
|
|
39
|
+
height: size,
|
|
40
|
+
viewBox: "0 0 24 24",
|
|
41
|
+
fill: color
|
|
42
|
+
}, otherProps, {
|
|
43
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, style), spin ? {
|
|
44
|
+
animationDuration: '1s',
|
|
45
|
+
animationIterationCount: 'infinite',
|
|
46
|
+
animationName: 'loadingCircle',
|
|
47
|
+
animationTimingFunction: 'linear'
|
|
48
|
+
} : {}), {}, {
|
|
49
|
+
cursor: 'pointer'
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
52
|
+
d: "M17 16h2V4H9v2h8v10zm0 2v3c0 .552-.45 1-1.007 1H4.007A1 1 0 013 21l.003-14c0-.552.45-1 1.007-1H7V3a1 1 0 011-1h12a1 1 0 011 1v14a1 1 0 01-1 1h-3zM5.003 8L5 20h10V8H5.003zM7 16h4.5a.5.5 0 000-1h-3a2.5 2.5 0 010-5H9V9h2v1h2v2H8.5a.5.5 0 000 1h3a2.5 2.5 0 010 5H11v1H9v-1H7v-2z"
|
|
53
|
+
})));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
Currency.propTypes = {
|
|
57
|
+
spin: PropTypes.bool,
|
|
58
|
+
color: PropTypes.string,
|
|
59
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
60
|
+
};
|
|
61
|
+
Currency.defaultProps = {
|
|
62
|
+
spin: false,
|
|
63
|
+
color: 'currentColor',
|
|
64
|
+
size: '16'
|
|
65
|
+
};
|
|
66
|
+
export default Currency;
|
package/dist/es/index.js
CHANGED
|
@@ -106,6 +106,7 @@ export { default as TaAttribution } from './icons/attribution';
|
|
|
106
106
|
export { default as TaCost } from './icons/cost';
|
|
107
107
|
export { default as TaExposure } from './icons/exposure';
|
|
108
108
|
export { default as TaIndicator } from './icons/indicator';
|
|
109
|
+
export { default as TaCurrency } from './icons/currency';
|
|
109
110
|
export { default as TaOperatorEqual } from './icons/operator-equal';
|
|
110
111
|
export { default as TaOperatorUnequal } from './icons/operator-unequal';
|
|
111
112
|
export { default as TaOperatorDivide } from './icons/operator-divide';
|
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ export const TaAttribution: Icon;
|
|
|
116
116
|
export const TaCost: Icon;
|
|
117
117
|
export const TaExposure: Icon;
|
|
118
118
|
export const TaIndicator: Icon;
|
|
119
|
+
export const TaCurrency: Icon;
|
|
119
120
|
export const TaOperatorEqual: Icon;
|
|
120
121
|
export const TaOperatorUnequal: Icon;
|
|
121
122
|
export const TaOperatorDivide: Icon;
|
|
@@ -0,0 +1,78 @@
|
|
|
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"];
|
|
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) }}';
|
|
29
|
+
|
|
30
|
+
var Currency = function Currency(props) {
|
|
31
|
+
var color = props.color,
|
|
32
|
+
size = props.size,
|
|
33
|
+
spin = props.spin,
|
|
34
|
+
style = props.style,
|
|
35
|
+
className = props.className,
|
|
36
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
37
|
+
|
|
38
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
39
|
+
className: className,
|
|
40
|
+
style: {
|
|
41
|
+
display: 'inline-flex',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
justifyContent: 'center'
|
|
44
|
+
}
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
46
|
+
children: loadingCircleStyle
|
|
47
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
48
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
49
|
+
width: size,
|
|
50
|
+
height: size,
|
|
51
|
+
viewBox: "0 0 24 24",
|
|
52
|
+
fill: color
|
|
53
|
+
}, otherProps, {
|
|
54
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, style), spin ? {
|
|
55
|
+
animationDuration: '1s',
|
|
56
|
+
animationIterationCount: 'infinite',
|
|
57
|
+
animationName: 'loadingCircle',
|
|
58
|
+
animationTimingFunction: 'linear'
|
|
59
|
+
} : {}), {}, {
|
|
60
|
+
cursor: 'pointer'
|
|
61
|
+
})
|
|
62
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
63
|
+
d: "M17 16h2V4H9v2h8v10zm0 2v3c0 .552-.45 1-1.007 1H4.007A1 1 0 013 21l.003-14c0-.552.45-1 1.007-1H7V3a1 1 0 011-1h12a1 1 0 011 1v14a1 1 0 01-1 1h-3zM5.003 8L5 20h10V8H5.003zM7 16h4.5a.5.5 0 000-1h-3a2.5 2.5 0 010-5H9V9h2v1h2v2H8.5a.5.5 0 000 1h3a2.5 2.5 0 010 5H11v1H9v-1H7v-2z"
|
|
64
|
+
})));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
Currency.propTypes = {
|
|
68
|
+
spin: _propTypes["default"].bool,
|
|
69
|
+
color: _propTypes["default"].string,
|
|
70
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
71
|
+
};
|
|
72
|
+
Currency.defaultProps = {
|
|
73
|
+
spin: false,
|
|
74
|
+
color: 'currentColor',
|
|
75
|
+
size: '16'
|
|
76
|
+
};
|
|
77
|
+
var _default = Currency;
|
|
78
|
+
exports["default"] = _default;
|
package/dist/lib/index.js
CHANGED
|
@@ -363,6 +363,12 @@ Object.defineProperty(exports, "TaCost", {
|
|
|
363
363
|
return _cost["default"];
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
|
+
Object.defineProperty(exports, "TaCurrency", {
|
|
367
|
+
enumerable: true,
|
|
368
|
+
get: function get() {
|
|
369
|
+
return _currency["default"];
|
|
370
|
+
}
|
|
371
|
+
});
|
|
366
372
|
Object.defineProperty(exports, "TaCustomPartition", {
|
|
367
373
|
enumerable: true,
|
|
368
374
|
get: function get() {
|
|
@@ -1906,6 +1912,8 @@ var _exposure = _interopRequireDefault(require("./icons/exposure"));
|
|
|
1906
1912
|
|
|
1907
1913
|
var _indicator = _interopRequireDefault(require("./icons/indicator"));
|
|
1908
1914
|
|
|
1915
|
+
var _currency = _interopRequireDefault(require("./icons/currency"));
|
|
1916
|
+
|
|
1909
1917
|
var _operatorEqual = _interopRequireDefault(require("./icons/operator-equal"));
|
|
1910
1918
|
|
|
1911
1919
|
var _operatorUnequal = _interopRequireDefault(require("./icons/operator-unequal"));
|