@tant/icons 1.0.28 → 1.1.39
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/arrow-down-2.js +1 -1
- package/dist/es/icons/arrow-left-2.js +1 -1
- package/dist/es/icons/arrow-right-2.js +1 -1
- package/dist/es/icons/arrow-up-2.js +1 -1
- package/dist/es/icons/asset-convert.js +67 -0
- package/dist/es/icons/contrast.js +61 -0
- package/dist/es/icons/{placeholder.js → info-fill.js} +6 -7
- package/dist/es/icons/logo-garena -cl.js +62 -0
- package/dist/es/icons/rename.js +63 -0
- package/dist/es/icons/u-property-sm.js +4 -6
- package/dist/es/index.js +7 -3
- package/dist/index.d.ts +6 -2
- package/dist/lib/icons/arrow-down-2.js +1 -1
- package/dist/lib/icons/arrow-left-2.js +1 -1
- package/dist/lib/icons/arrow-right-2.js +1 -1
- package/dist/lib/icons/arrow-up-2.js +1 -1
- package/dist/lib/icons/asset-convert.js +79 -0
- package/dist/lib/icons/contrast.js +73 -0
- package/dist/lib/icons/{placeholder.js → info-fill.js} +6 -7
- package/dist/lib/icons/logo-garena -cl.js +74 -0
- package/dist/lib/icons/rename.js +75 -0
- package/dist/lib/icons/u-property-sm.js +4 -6
- package/dist/lib/index.js +42 -10
- package/dist/tant-icons.cjs.js +634 -444
- package/dist/tant-icons.esm.js +630 -444
- package/package.json +2 -2
|
@@ -44,7 +44,7 @@ var ArrowDown2 = function ArrowDown2(props) {
|
|
|
44
44
|
cursor: 'pointer'
|
|
45
45
|
})
|
|
46
46
|
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
-
d: "
|
|
47
|
+
d: "M19.082 10.857l1.418 1.42L11.764 21 3 12.278l1.415-1.423 6.397 6.367V3h2.006v14.112l6.264-6.255z"
|
|
48
48
|
})));
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -44,7 +44,7 @@ var ArrowLeft2 = function ArrowLeft2(props) {
|
|
|
44
44
|
cursor: 'pointer'
|
|
45
45
|
})
|
|
46
46
|
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
-
d: "
|
|
47
|
+
d: "M13.143 4.418L11.723 3 3 11.736l8.722 8.764 1.423-1.415-6.367-6.397H21v-2.006H6.888l6.255-6.264z"
|
|
48
48
|
})));
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -44,7 +44,7 @@ var ArrowRight2 = function ArrowRight2(props) {
|
|
|
44
44
|
cursor: 'pointer'
|
|
45
45
|
})
|
|
46
46
|
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
-
d: "
|
|
47
|
+
d: "M10.857 4.418L12.277 3 21 11.736 12.278 20.5l-1.423-1.415 6.367-6.397H3v-2.006h14.112l-6.255-6.264z"
|
|
48
48
|
})));
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -44,7 +44,7 @@ var ArrowUp2 = function ArrowUp2(props) {
|
|
|
44
44
|
cursor: 'pointer'
|
|
45
45
|
})
|
|
46
46
|
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
-
d: "
|
|
47
|
+
d: "M19.082 13.143l1.418-1.42L11.764 3 3 11.722l1.415 1.423 6.397-6.367V21h2.006V6.888l6.264 6.255z"
|
|
48
48
|
})));
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -0,0 +1,67 @@
|
|
|
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) }} .tant-icon-span { display: inline-flex; align-items: center; justify-content: center }';
|
|
18
|
+
|
|
19
|
+
var AssetConvert = function AssetConvert(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 ? 'tant-icon-span ' + className : 'tant-icon-span'
|
|
29
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
30
|
+
children: loadingCircleStyle
|
|
31
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
+
width: size,
|
|
34
|
+
height: size,
|
|
35
|
+
viewBox: "0 0 24 24",
|
|
36
|
+
fill: color
|
|
37
|
+
}, otherProps, {
|
|
38
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, style), spin ? {
|
|
39
|
+
animationDuration: '1s',
|
|
40
|
+
animationIterationCount: 'infinite',
|
|
41
|
+
animationName: 'loadingCircle',
|
|
42
|
+
animationTimingFunction: 'linear'
|
|
43
|
+
} : {}), {}, {
|
|
44
|
+
cursor: 'pointer'
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
fillRule: "evenodd",
|
|
48
|
+
clipRule: "evenodd",
|
|
49
|
+
d: "M5.636 18.364H2.91a.91.91 0 01-.909-.91V2.91A.91.91 0 012.91 2h14.544a.91.91 0 01.91.91v2.726h2.727a.91.91 0 01.909.91V21.09a.91.91 0 01-.91.909H6.546a.91.91 0 01-.909-.91v-2.726zm-1.818-1.819V3.819h12.728v1.818h-10a.91.91 0 00-.91.91v10H3.818zm4.546-9.09a.91.91 0 00-.91.909v11.818h12.728V7.455H8.364z"
|
|
50
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
51
|
+
d: "M11 10v4H9l4 4v-8h-2z"
|
|
52
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
53
|
+
d: "M17 18v-4h2l-4-4v8h2z"
|
|
54
|
+
})));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
AssetConvert.propTypes = {
|
|
58
|
+
spin: PropTypes.bool,
|
|
59
|
+
color: PropTypes.string,
|
|
60
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
61
|
+
};
|
|
62
|
+
AssetConvert.defaultProps = {
|
|
63
|
+
spin: false,
|
|
64
|
+
color: 'currentColor',
|
|
65
|
+
size: '16'
|
|
66
|
+
};
|
|
67
|
+
export default AssetConvert;
|
|
@@ -0,0 +1,61 @@
|
|
|
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) }} .tant-icon-span { display: inline-flex; align-items: center; justify-content: center }';
|
|
18
|
+
|
|
19
|
+
var Contrast = function Contrast(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 ? 'tant-icon-span ' + className : 'tant-icon-span'
|
|
29
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
30
|
+
children: loadingCircleStyle
|
|
31
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
+
width: size,
|
|
34
|
+
height: size,
|
|
35
|
+
viewBox: "0 0 24 24",
|
|
36
|
+
fill: color
|
|
37
|
+
}, otherProps, {
|
|
38
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, style), spin ? {
|
|
39
|
+
animationDuration: '1s',
|
|
40
|
+
animationIterationCount: 'infinite',
|
|
41
|
+
animationName: 'loadingCircle',
|
|
42
|
+
animationTimingFunction: 'linear'
|
|
43
|
+
} : {}), {}, {
|
|
44
|
+
cursor: 'pointer'
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
d: "M3.905 18.682h5.714v1.909H2V3.409h7.619v1.91H3.905v13.363zm10.476 0h1.905v1.909H14.38v-1.91zm2.857 0h1.905v1.909h-1.905v-1.91zm2.857 1.909v-1.91H22v1.91h-1.905zm0-6.682V12H22v1.91h-1.905zm0 2.864v-1.91H22v1.91h-1.905zm0-5.727v-1.91H22v1.91h-1.905zm0-2.864v-1.91H22v1.91h-1.905zm0-2.864V3.41H22v1.91h-1.905zm-.952 0h-1.905V3.41h1.905v1.91zm-2.857 0H14.38V3.41h1.905v1.91zM11.524 1.5h1.905v21h-1.905v-21z"
|
|
48
|
+
})));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
Contrast.propTypes = {
|
|
52
|
+
spin: PropTypes.bool,
|
|
53
|
+
color: PropTypes.string,
|
|
54
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
55
|
+
};
|
|
56
|
+
Contrast.defaultProps = {
|
|
57
|
+
spin: false,
|
|
58
|
+
color: 'currentColor',
|
|
59
|
+
size: '16'
|
|
60
|
+
};
|
|
61
|
+
export default Contrast;
|
|
@@ -16,7 +16,7 @@ import React from 'react';
|
|
|
16
16
|
import PropTypes from 'prop-types';
|
|
17
17
|
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} .tant-icon-span { display: inline-flex; align-items: center; justify-content: center }';
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var InfoFill = function InfoFill(props) {
|
|
20
20
|
var color = props.color,
|
|
21
21
|
size = props.size,
|
|
22
22
|
spin = props.spin,
|
|
@@ -43,20 +43,19 @@ var Placeholder = function Placeholder(props) {
|
|
|
43
43
|
} : {}), {}, {
|
|
44
44
|
cursor: 'pointer'
|
|
45
45
|
})
|
|
46
|
-
}), /*#__PURE__*/React.createElement("
|
|
47
|
-
|
|
48
|
-
height: "24"
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12zm9 5h2v-6h-2v6zm0-10v2h2V7h-2z"
|
|
49
48
|
})));
|
|
50
49
|
};
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
InfoFill.propTypes = {
|
|
53
52
|
spin: PropTypes.bool,
|
|
54
53
|
color: PropTypes.string,
|
|
55
54
|
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
56
55
|
};
|
|
57
|
-
|
|
56
|
+
InfoFill.defaultProps = {
|
|
58
57
|
spin: false,
|
|
59
58
|
color: 'currentColor',
|
|
60
59
|
size: '16'
|
|
61
60
|
};
|
|
62
|
-
export default
|
|
61
|
+
export default InfoFill;
|
|
@@ -0,0 +1,62 @@
|
|
|
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) }} .tant-icon-span { display: inline-flex; align-items: center; justify-content: center }';
|
|
18
|
+
|
|
19
|
+
var LogoGarenaCl = function LogoGarenaCl(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 ? 'tant-icon-span ' + className : 'tant-icon-span'
|
|
29
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
30
|
+
children: loadingCircleStyle
|
|
31
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
+
width: size,
|
|
34
|
+
height: size,
|
|
35
|
+
viewBox: "0 0 24 24",
|
|
36
|
+
fill: color
|
|
37
|
+
}, otherProps, {
|
|
38
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, style), spin ? {
|
|
39
|
+
animationDuration: '1s',
|
|
40
|
+
animationIterationCount: 'infinite',
|
|
41
|
+
animationName: 'loadingCircle',
|
|
42
|
+
animationTimingFunction: 'linear'
|
|
43
|
+
} : {}), {}, {
|
|
44
|
+
cursor: 'pointer'
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
d: "M7.932 12.964s1.469-2.947 7.601-1.245c0 0 .931 1.3 4.916.897 0 0-2.025 1.935-3.404 5.073 0 0-1.338 4.206-9.192 3.137 0 0-6.49-1.5-5.459-7.11 0 0 1.054-4.858 6.773-5.637l.638-.166s-2.028-1.122-6.048.676l-1.167.537L0 8.885s1.037-2.228 3.507-3.731h.25l3.714-2.228-2.025 1.825 2.717-1.18S12.41 2.466 14.013 2l-5.22 3.261s2.663-.563 3.925-.59l.288.59s2.682-.08 4.3.752c0 0-1.124 2.442 6.694 1.395l-.453.505-2.921 1.052-1.059.322.733.355.326.236h-4.257s-5.063-3.546-8.773 1.154c0 0-4.127 4.719-.432 8.106 0 0 6.594 3.301 7.859-4.697 0 0-1.015-4.077-6.119-1.37 0 0 1.029 1.287.027 1.716 0 0-2.337.553-.923-1.715",
|
|
48
|
+
fill: "#E41E26"
|
|
49
|
+
})));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
LogoGarenaCl.propTypes = {
|
|
53
|
+
spin: PropTypes.bool,
|
|
54
|
+
color: PropTypes.string,
|
|
55
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
56
|
+
};
|
|
57
|
+
LogoGarenaCl.defaultProps = {
|
|
58
|
+
spin: false,
|
|
59
|
+
color: 'currentColor',
|
|
60
|
+
size: '16'
|
|
61
|
+
};
|
|
62
|
+
export default LogoGarenaCl;
|
|
@@ -0,0 +1,63 @@
|
|
|
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) }} .tant-icon-span { display: inline-flex; align-items: center; justify-content: center }';
|
|
18
|
+
|
|
19
|
+
var Rename = function Rename(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 ? 'tant-icon-span ' + className : 'tant-icon-span'
|
|
29
|
+
}, /*#__PURE__*/React.createElement("style", {
|
|
30
|
+
children: loadingCircleStyle
|
|
31
|
+
}), /*#__PURE__*/React.createElement("svg", _extends({
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
+
width: size,
|
|
34
|
+
height: size,
|
|
35
|
+
viewBox: "0 0 24 24",
|
|
36
|
+
fill: color
|
|
37
|
+
}, otherProps, {
|
|
38
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, style), spin ? {
|
|
39
|
+
animationDuration: '1s',
|
|
40
|
+
animationIterationCount: 'infinite',
|
|
41
|
+
animationName: 'loadingCircle',
|
|
42
|
+
animationTimingFunction: 'linear'
|
|
43
|
+
} : {}), {}, {
|
|
44
|
+
cursor: 'pointer'
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
fillRule: "evenodd",
|
|
48
|
+
clipRule: "evenodd",
|
|
49
|
+
d: "M8 4h2v16H8v-2H5a3 3 0 01-3-3V9a3 3 0 013-3h3V4zm0 12V8H5a1 1 0 00-1 1v6a1 1 0 001 1h3zm4 0h7a1 1 0 001-1V9a1 1 0 00-1-1h-7V6h7a3 3 0 013 3v6a3 3 0 01-3 3h-7v-2z"
|
|
50
|
+
})));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
Rename.propTypes = {
|
|
54
|
+
spin: PropTypes.bool,
|
|
55
|
+
color: PropTypes.string,
|
|
56
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
57
|
+
};
|
|
58
|
+
Rename.defaultProps = {
|
|
59
|
+
spin: false,
|
|
60
|
+
color: 'currentColor',
|
|
61
|
+
size: '16'
|
|
62
|
+
};
|
|
63
|
+
export default Rename;
|
|
@@ -44,15 +44,13 @@ var UPropertySm = function UPropertySm(props) {
|
|
|
44
44
|
cursor: 'pointer'
|
|
45
45
|
})
|
|
46
46
|
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
-
d: "
|
|
47
|
+
d: "M8.272 5.25A2.745 2.745 0 015.532 8a2.745 2.745 0 01-2.74-2.75 2.745 2.745 0 012.74-2.75 2.745 2.745 0 012.74 2.75zm-1.023 0a1.72 1.72 0 00-1.717-1.723A1.72 1.72 0 003.815 5.25a1.72 1.72 0 001.717 1.723A1.72 1.72 0 007.249 5.25z"
|
|
48
48
|
}), /*#__PURE__*/React.createElement("path", {
|
|
49
|
-
d: "
|
|
49
|
+
d: "M1.391 11.37c0-1.138.92-2.06 2.053-2.06h4.007c1.133 0 2.052.922 2.052 2.06v2.13H1.391v-2.13zm2.053-1.03c-.567 0-1.026.461-1.026 1.03v1.1h6.059v-1.1c0-.569-.46-1.03-1.026-1.03H3.444z"
|
|
50
50
|
}), /*#__PURE__*/React.createElement("path", {
|
|
51
|
-
d: "
|
|
51
|
+
d: "M14.392 3.78h-4.106V2.75h4.106v1.03z"
|
|
52
52
|
}), /*#__PURE__*/React.createElement("path", {
|
|
53
|
-
d: "
|
|
54
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
55
|
-
d: "M1 3a2 2 0 012-2h10a2 2 0 012 2v10a2 2 0 01-2 2H3a2 2 0 01-2-2V3zm1 0v10a1 1 0 001 1h10a1 1 0 001-1V3a1 1 0 00-1-1H3a1 1 0 00-1 1z"
|
|
53
|
+
d: "M10.286 6.976h4.106v-1.03h-4.106v1.03z"
|
|
56
54
|
})));
|
|
57
55
|
};
|
|
58
56
|
|
package/dist/es/index.js
CHANGED
|
@@ -107,6 +107,7 @@ 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
109
|
export { default as TaCurrency } from './icons/currency';
|
|
110
|
+
export { default as TaContrast } from './icons/contrast';
|
|
110
111
|
export { default as TaOperatorEqual } from './icons/operator-equal';
|
|
111
112
|
export { default as TaOperatorUnequal } from './icons/operator-unequal';
|
|
112
113
|
export { default as TaOperatorDivide } from './icons/operator-divide';
|
|
@@ -131,8 +132,10 @@ export { default as TaLogoWechatCl } from './icons/logo-wechat-cl';
|
|
|
131
132
|
export { default as TaLogoWechatGray } from './icons/logo-wechat-gray';
|
|
132
133
|
export { default as TaLogoFeishuCl } from './icons/logo-feishu-cl';
|
|
133
134
|
export { default as TaLogoKingCl } from './icons/logo-king-cl';
|
|
135
|
+
export { default as TaLogoGarenaCl } from './icons/logo-garena -cl';
|
|
134
136
|
export { default as TaLogoCurrencylayerCl } from './icons/logo-currencylayer-cl';
|
|
135
137
|
export { default as TaInfo } from './icons/info';
|
|
138
|
+
export { default as TaInfoFill } from './icons/info-fill';
|
|
136
139
|
export { default as TaHelp } from './icons/help';
|
|
137
140
|
export { default as TaHistory } from './icons/history';
|
|
138
141
|
export { default as TaBackup } from './icons/backup';
|
|
@@ -220,6 +223,7 @@ export { default as TaAdd3Fill } from './icons/add-3-fill';
|
|
|
220
223
|
export { default as TaSubtract } from './icons/subtract';
|
|
221
224
|
export { default as TaSubtract2 } from './icons/subtract-2';
|
|
222
225
|
export { default as TaUpdate } from './icons/update';
|
|
226
|
+
export { default as TaRename } from './icons/rename';
|
|
223
227
|
export { default as TaReport } from './icons/report';
|
|
224
228
|
export { default as TaReportRemoval } from './icons/report-removal';
|
|
225
229
|
export { default as TaFileAdd } from './icons/file-add';
|
|
@@ -229,14 +233,15 @@ export { default as TaFileMove } from './icons/file-move';
|
|
|
229
233
|
export { default as TaFileImport } from './icons/file-import';
|
|
230
234
|
export { default as TaFileInfo } from './icons/file-info';
|
|
231
235
|
export { default as TaFileConvert } from './icons/file-convert';
|
|
236
|
+
export { default as TaAssetConvert } from './icons/asset-convert';
|
|
232
237
|
export { default as TaFileLock } from './icons/file-lock';
|
|
238
|
+
export { default as TaFilePdf } from './icons/file-pdf';
|
|
233
239
|
export { default as TaDetail } from './icons/detail';
|
|
234
240
|
export { default as TaMessageCenter } from './icons/message-center';
|
|
235
241
|
export { default as TaSystemMsg } from './icons/system-msg';
|
|
236
242
|
export { default as TaComment } from './icons/comment';
|
|
237
243
|
export { default as TaBook } from './icons/book';
|
|
238
244
|
export { default as TaBook2 } from './icons/book-2';
|
|
239
|
-
export { default as TaFilePdf } from './icons/file-pdf';
|
|
240
245
|
export { default as TaSticker } from './icons/sticker';
|
|
241
246
|
export { default as TaStickerFill } from './icons/sticker-fill';
|
|
242
247
|
export { default as TaEventSm } from './icons/event-sm';
|
|
@@ -279,5 +284,4 @@ export { default as TaDrag } from './icons/drag';
|
|
|
279
284
|
export { default as TaDrag2 } from './icons/drag-2';
|
|
280
285
|
export { default as TaExternal } from './icons/external';
|
|
281
286
|
export { default as TaDisplayS } from './icons/display-s';
|
|
282
|
-
export { default as TaShare } from './icons/share';
|
|
283
|
-
export { default as TaPlaceholder } from './icons/placeholder';
|
|
287
|
+
export { default as TaShare } from './icons/share';
|
package/dist/index.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export const TaCost: Icon;
|
|
|
117
117
|
export const TaExposure: Icon;
|
|
118
118
|
export const TaIndicator: Icon;
|
|
119
119
|
export const TaCurrency: Icon;
|
|
120
|
+
export const TaContrast: Icon;
|
|
120
121
|
export const TaOperatorEqual: Icon;
|
|
121
122
|
export const TaOperatorUnequal: Icon;
|
|
122
123
|
export const TaOperatorDivide: Icon;
|
|
@@ -141,8 +142,10 @@ export const TaLogoWechatCl: Icon;
|
|
|
141
142
|
export const TaLogoWechatGray: Icon;
|
|
142
143
|
export const TaLogoFeishuCl: Icon;
|
|
143
144
|
export const TaLogoKingCl: Icon;
|
|
145
|
+
export const TaLogoGarenaCl: Icon;
|
|
144
146
|
export const TaLogoCurrencylayerCl: Icon;
|
|
145
147
|
export const TaInfo: Icon;
|
|
148
|
+
export const TaInfoFill: Icon;
|
|
146
149
|
export const TaHelp: Icon;
|
|
147
150
|
export const TaHistory: Icon;
|
|
148
151
|
export const TaBackup: Icon;
|
|
@@ -230,6 +233,7 @@ export const TaAdd3Fill: Icon;
|
|
|
230
233
|
export const TaSubtract: Icon;
|
|
231
234
|
export const TaSubtract2: Icon;
|
|
232
235
|
export const TaUpdate: Icon;
|
|
236
|
+
export const TaRename: Icon;
|
|
233
237
|
export const TaReport: Icon;
|
|
234
238
|
export const TaReportRemoval: Icon;
|
|
235
239
|
export const TaFileAdd: Icon;
|
|
@@ -239,14 +243,15 @@ export const TaFileMove: Icon;
|
|
|
239
243
|
export const TaFileImport: Icon;
|
|
240
244
|
export const TaFileInfo: Icon;
|
|
241
245
|
export const TaFileConvert: Icon;
|
|
246
|
+
export const TaAssetConvert: Icon;
|
|
242
247
|
export const TaFileLock: Icon;
|
|
248
|
+
export const TaFilePdf: Icon;
|
|
243
249
|
export const TaDetail: Icon;
|
|
244
250
|
export const TaMessageCenter: Icon;
|
|
245
251
|
export const TaSystemMsg: Icon;
|
|
246
252
|
export const TaComment: Icon;
|
|
247
253
|
export const TaBook: Icon;
|
|
248
254
|
export const TaBook2: Icon;
|
|
249
|
-
export const TaFilePdf: Icon;
|
|
250
255
|
export const TaSticker: Icon;
|
|
251
256
|
export const TaStickerFill: Icon;
|
|
252
257
|
export const TaEventSm: Icon;
|
|
@@ -290,4 +295,3 @@ export const TaDrag2: Icon;
|
|
|
290
295
|
export const TaExternal: Icon;
|
|
291
296
|
export const TaDisplayS: Icon;
|
|
292
297
|
export const TaShare: Icon;
|
|
293
|
-
export const TaPlaceholder: Icon;
|
|
@@ -55,7 +55,7 @@ var ArrowDown2 = function ArrowDown2(props) {
|
|
|
55
55
|
cursor: 'pointer'
|
|
56
56
|
})
|
|
57
57
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
58
|
-
d: "
|
|
58
|
+
d: "M19.082 10.857l1.418 1.42L11.764 21 3 12.278l1.415-1.423 6.397 6.367V3h2.006v14.112l6.264-6.255z"
|
|
59
59
|
})));
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -55,7 +55,7 @@ var ArrowLeft2 = function ArrowLeft2(props) {
|
|
|
55
55
|
cursor: 'pointer'
|
|
56
56
|
})
|
|
57
57
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
58
|
-
d: "
|
|
58
|
+
d: "M13.143 4.418L11.723 3 3 11.736l8.722 8.764 1.423-1.415-6.367-6.397H21v-2.006H6.888l6.255-6.264z"
|
|
59
59
|
})));
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -55,7 +55,7 @@ var ArrowRight2 = function ArrowRight2(props) {
|
|
|
55
55
|
cursor: 'pointer'
|
|
56
56
|
})
|
|
57
57
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
58
|
-
d: "
|
|
58
|
+
d: "M10.857 4.418L12.277 3 21 11.736 12.278 20.5l-1.423-1.415 6.367-6.397H3v-2.006h14.112l-6.255-6.264z"
|
|
59
59
|
})));
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -55,7 +55,7 @@ var ArrowUp2 = function ArrowUp2(props) {
|
|
|
55
55
|
cursor: 'pointer'
|
|
56
56
|
})
|
|
57
57
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
58
|
-
d: "
|
|
58
|
+
d: "M19.082 13.143l1.418-1.42L11.764 3 3 11.722l1.415 1.423 6.397-6.367V21h2.006V6.888l6.264 6.255z"
|
|
59
59
|
})));
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -0,0 +1,79 @@
|
|
|
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) }} .tant-icon-span { display: inline-flex; align-items: center; justify-content: center }';
|
|
29
|
+
|
|
30
|
+
var AssetConvert = function AssetConvert(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 ? 'tant-icon-span ' + className : 'tant-icon-span'
|
|
40
|
+
}, /*#__PURE__*/_react["default"].createElement("style", {
|
|
41
|
+
children: loadingCircleStyle
|
|
42
|
+
}), /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
43
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
+
width: size,
|
|
45
|
+
height: size,
|
|
46
|
+
viewBox: "0 0 24 24",
|
|
47
|
+
fill: color
|
|
48
|
+
}, otherProps, {
|
|
49
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, style), spin ? {
|
|
50
|
+
animationDuration: '1s',
|
|
51
|
+
animationIterationCount: 'infinite',
|
|
52
|
+
animationName: 'loadingCircle',
|
|
53
|
+
animationTimingFunction: 'linear'
|
|
54
|
+
} : {}), {}, {
|
|
55
|
+
cursor: 'pointer'
|
|
56
|
+
})
|
|
57
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
58
|
+
fillRule: "evenodd",
|
|
59
|
+
clipRule: "evenodd",
|
|
60
|
+
d: "M5.636 18.364H2.91a.91.91 0 01-.909-.91V2.91A.91.91 0 012.91 2h14.544a.91.91 0 01.91.91v2.726h2.727a.91.91 0 01.909.91V21.09a.91.91 0 01-.91.909H6.546a.91.91 0 01-.909-.91v-2.726zm-1.818-1.819V3.819h12.728v1.818h-10a.91.91 0 00-.91.91v10H3.818zm4.546-9.09a.91.91 0 00-.91.909v11.818h12.728V7.455H8.364z"
|
|
61
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
62
|
+
d: "M11 10v4H9l4 4v-8h-2z"
|
|
63
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
64
|
+
d: "M17 18v-4h2l-4-4v8h2z"
|
|
65
|
+
})));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
AssetConvert.propTypes = {
|
|
69
|
+
spin: _propTypes["default"].bool,
|
|
70
|
+
color: _propTypes["default"].string,
|
|
71
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
72
|
+
};
|
|
73
|
+
AssetConvert.defaultProps = {
|
|
74
|
+
spin: false,
|
|
75
|
+
color: 'currentColor',
|
|
76
|
+
size: '16'
|
|
77
|
+
};
|
|
78
|
+
var _default = AssetConvert;
|
|
79
|
+
exports["default"] = _default;
|