@tant/icons 1.6.0 → 1.17.3
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/consent.js +65 -0
- package/dist/es/icons/reject.js +1 -5
- package/dist/es/icons/sticky.js +63 -0
- package/dist/es/index.js +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/lib/icons/consent.js +72 -0
- package/dist/lib/icons/reject.js +1 -5
- package/dist/lib/icons/sticky.js +70 -0
- package/dist/lib/index.js +15 -1
- package/dist/tant-icons.cjs.js +1547 -1443
- package/dist/tant-icons.esm.js +1546 -1444
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
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() { _extends = Object.assign ? Object.assign.bind() : 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
|
+
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(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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(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; }
|
|
10
|
+
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; }
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
14
|
+
var Consent = function Consent(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 7c0 1.495.656 2.836 1.695 3.752L8.28 12H3a1 1 0 00-1 1v4a1 1 0 001 1h5.055a9.097 9.097 0 010-2H4v-2h4.512a9.01 9.01 0 012.385-3.615c.056-.352-.06-.568-.507-.853a3 3 0 114.317-1.237A9.007 9.007 0 0116.9 8 5 5 0 107 7zm1.512 13c.252.712.59 1.383 1.004 2H2.5a.5.5 0 01-.5-.5v-1a.5.5 0 01.5-.5h6.012zM17 22a5 5 0 100-10 5 5 0 000 10zm0 2a7 7 0 100-14 7 7 0 000 14zm.087-4.247l4.572-4-1.317-1.506-3.967 3.47-2.781-2.052-1.188 1.609 3.429 2.53.647.478.605-.53z"
|
|
51
|
+
}))));
|
|
52
|
+
};
|
|
53
|
+
Consent.propTypes = {
|
|
54
|
+
iconClassName: PropTypes.string,
|
|
55
|
+
spin: PropTypes.bool,
|
|
56
|
+
color: PropTypes.string,
|
|
57
|
+
testid: PropTypes.string,
|
|
58
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
59
|
+
};
|
|
60
|
+
Consent.defaultProps = {
|
|
61
|
+
spin: false,
|
|
62
|
+
color: 'currentColor',
|
|
63
|
+
size: '1em'
|
|
64
|
+
};
|
|
65
|
+
export default Consent;
|
package/dist/es/icons/reject.js
CHANGED
|
@@ -45,13 +45,9 @@ var Reject = function Reject(props) {
|
|
|
45
45
|
height: "24",
|
|
46
46
|
xmlns: "http://www.w3.org/2000/svg"
|
|
47
47
|
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
-
d: "M8.695 10.752a5 5 0 117.038-.426 7.965 7.965 0 00-2.306 1.11l-.224-.684c-.203-.502.039-.985.407-1.22a3 3 0 10-3.22 0c.59.376.604.633.404 1.245-.192.587-.389 1.174-.585 1.76l-.26.78A1 1 0 019 14H4v2h6.252A8.016 8.016 0 0010 18H3a1 1 0 01-1-1v-4a1 1 0 011-1h5.28l.415-1.248z"
|
|
49
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
-
d: "M11.07 22a7.954 7.954 0 01-.818-2H2.5a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h8.57z"
|
|
51
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
52
48
|
fillRule: "evenodd",
|
|
53
49
|
clipRule: "evenodd",
|
|
54
|
-
d: "
|
|
50
|
+
d: "M7 7c0 1.495.656 2.836 1.695 3.752L8.28 12H3a1 1 0 00-1 1v4a1 1 0 001 1h5.055a9.097 9.097 0 010-2H4v-2h4.512a9.01 9.01 0 012.385-3.615c.056-.352-.06-.568-.507-.853a3 3 0 114.317-1.237A9.007 9.007 0 0116.9 8 5 5 0 107 7zm1.512 13c.252.712.59 1.383 1.004 2H2.5a.5.5 0 01-.5-.5v-1a.5.5 0 01.5-.5h6.012zM17 22a5 5 0 004.172-7.757l-6.93 6.929c.791.523 1.739.828 2.758.828zm-4.172-2.243l6.93-6.929a5 5 0 00-6.929 6.929zM17 24a7 7 0 100-14 7 7 0 000 14z"
|
|
55
51
|
}))));
|
|
56
52
|
};
|
|
57
53
|
Reject.propTypes = {
|
|
@@ -0,0 +1,63 @@
|
|
|
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() { _extends = Object.assign ? Object.assign.bind() : 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
|
+
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(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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(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; }
|
|
10
|
+
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; }
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
14
|
+
var Sticky = function Sticky(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: "20",
|
|
45
|
+
height: "20",
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
47
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
d: "M6.667 9.167h2.5V17.5h1.666V9.167h2.5L10 5.833 6.667 9.167zm10-5V2.5H3.332v1.667h13.333z"
|
|
49
|
+
}))));
|
|
50
|
+
};
|
|
51
|
+
Sticky.propTypes = {
|
|
52
|
+
iconClassName: PropTypes.string,
|
|
53
|
+
spin: PropTypes.bool,
|
|
54
|
+
color: PropTypes.string,
|
|
55
|
+
testid: PropTypes.string,
|
|
56
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
57
|
+
};
|
|
58
|
+
Sticky.defaultProps = {
|
|
59
|
+
spin: false,
|
|
60
|
+
color: 'currentColor',
|
|
61
|
+
size: '1em'
|
|
62
|
+
};
|
|
63
|
+
export default Sticky;
|
package/dist/es/index.js
CHANGED
|
@@ -55,8 +55,8 @@ export { default as TaManual } from './icons/manual';
|
|
|
55
55
|
export { default as TaMute } from './icons/mute';
|
|
56
56
|
export { default as TaApprove } from './icons/approve';
|
|
57
57
|
export { default as TaReject } from './icons/reject';
|
|
58
|
+
export { default as TaConsent } from './icons/consent';
|
|
58
59
|
export { default as TaEndTask } from './icons/end-task';
|
|
59
|
-
export { default as TaTask } from './icons/task';
|
|
60
60
|
export { default as TaProperty } from './icons/property';
|
|
61
61
|
export { default as TaLab } from './icons/lab';
|
|
62
62
|
export { default as TaRuler } from './icons/ruler';
|
|
@@ -64,6 +64,7 @@ export { default as TaSmile } from './icons/smile';
|
|
|
64
64
|
export { default as TaNewTask } from './icons/new-task';
|
|
65
65
|
export { default as TaSubmit } from './icons/submit';
|
|
66
66
|
export { default as TaUndo } from './icons/undo';
|
|
67
|
+
export { default as TaTask } from './icons/task';
|
|
67
68
|
export { default as TaFlash } from './icons/flash';
|
|
68
69
|
export { default as TaMap } from './icons/map';
|
|
69
70
|
export { default as TaTestSplit } from './icons/test-split';
|
|
@@ -334,6 +335,7 @@ export { default as TaEventModify } from './icons/event-modify';
|
|
|
334
335
|
export { default as TaPin } from './icons/pin';
|
|
335
336
|
export { default as TaPinUnsave } from './icons/pin-unsave';
|
|
336
337
|
export { default as TaUnsave } from './icons/unsave';
|
|
338
|
+
export { default as TaSticky } from './icons/sticky';
|
|
337
339
|
export { default as TaReport } from './icons/report';
|
|
338
340
|
export { default as TaReportRemoval } from './icons/report-removal';
|
|
339
341
|
export { default as TaFileAdd } from './icons/file-add';
|
package/dist/index.d.ts
CHANGED
|
@@ -67,8 +67,8 @@ export const TaManual: Icon;
|
|
|
67
67
|
export const TaMute: Icon;
|
|
68
68
|
export const TaApprove: Icon;
|
|
69
69
|
export const TaReject: Icon;
|
|
70
|
+
export const TaConsent: Icon;
|
|
70
71
|
export const TaEndTask: Icon;
|
|
71
|
-
export const TaTask: Icon;
|
|
72
72
|
export const TaProperty: Icon;
|
|
73
73
|
export const TaLab: Icon;
|
|
74
74
|
export const TaRuler: Icon;
|
|
@@ -76,6 +76,7 @@ export const TaSmile: Icon;
|
|
|
76
76
|
export const TaNewTask: Icon;
|
|
77
77
|
export const TaSubmit: Icon;
|
|
78
78
|
export const TaUndo: Icon;
|
|
79
|
+
export const TaTask: Icon;
|
|
79
80
|
export const TaFlash: Icon;
|
|
80
81
|
export const TaMap: Icon;
|
|
81
82
|
export const TaTestSplit: Icon;
|
|
@@ -346,6 +347,7 @@ export const TaEventModify: Icon;
|
|
|
346
347
|
export const TaPin: Icon;
|
|
347
348
|
export const TaPinUnsave: Icon;
|
|
348
349
|
export const TaUnsave: Icon;
|
|
350
|
+
export const TaSticky: Icon;
|
|
349
351
|
export const TaReport: Icon;
|
|
350
352
|
export const TaReportRemoval: Icon;
|
|
351
353
|
export const TaFileAdd: Icon;
|
|
@@ -0,0 +1,72 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
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(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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(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; }
|
|
19
|
+
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; }
|
|
20
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
21
|
+
var Consent = function Consent(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 7c0 1.495.656 2.836 1.695 3.752L8.28 12H3a1 1 0 00-1 1v4a1 1 0 001 1h5.055a9.097 9.097 0 010-2H4v-2h4.512a9.01 9.01 0 012.385-3.615c.056-.352-.06-.568-.507-.853a3 3 0 114.317-1.237A9.007 9.007 0 0116.9 8 5 5 0 107 7zm1.512 13c.252.712.59 1.383 1.004 2H2.5a.5.5 0 01-.5-.5v-1a.5.5 0 01.5-.5h6.012zM17 22a5 5 0 100-10 5 5 0 000 10zm0 2a7 7 0 100-14 7 7 0 000 14zm.087-4.247l4.572-4-1.317-1.506-3.967 3.47-2.781-2.052-1.188 1.609 3.429 2.53.647.478.605-.53z"
|
|
58
|
+
}))));
|
|
59
|
+
};
|
|
60
|
+
Consent.propTypes = {
|
|
61
|
+
iconClassName: _propTypes["default"].string,
|
|
62
|
+
spin: _propTypes["default"].bool,
|
|
63
|
+
color: _propTypes["default"].string,
|
|
64
|
+
testid: _propTypes["default"].string,
|
|
65
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
66
|
+
};
|
|
67
|
+
Consent.defaultProps = {
|
|
68
|
+
spin: false,
|
|
69
|
+
color: 'currentColor',
|
|
70
|
+
size: '1em'
|
|
71
|
+
};
|
|
72
|
+
var _default = exports["default"] = Consent;
|
package/dist/lib/icons/reject.js
CHANGED
|
@@ -52,13 +52,9 @@ var Reject = function Reject(props) {
|
|
|
52
52
|
height: "24",
|
|
53
53
|
xmlns: "http://www.w3.org/2000/svg"
|
|
54
54
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
55
|
-
d: "M8.695 10.752a5 5 0 117.038-.426 7.965 7.965 0 00-2.306 1.11l-.224-.684c-.203-.502.039-.985.407-1.22a3 3 0 10-3.22 0c.59.376.604.633.404 1.245-.192.587-.389 1.174-.585 1.76l-.26.78A1 1 0 019 14H4v2h6.252A8.016 8.016 0 0010 18H3a1 1 0 01-1-1v-4a1 1 0 011-1h5.28l.415-1.248z"
|
|
56
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
57
|
-
d: "M11.07 22a7.954 7.954 0 01-.818-2H2.5a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h8.57z"
|
|
58
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
59
55
|
fillRule: "evenodd",
|
|
60
56
|
clipRule: "evenodd",
|
|
61
|
-
d: "
|
|
57
|
+
d: "M7 7c0 1.495.656 2.836 1.695 3.752L8.28 12H3a1 1 0 00-1 1v4a1 1 0 001 1h5.055a9.097 9.097 0 010-2H4v-2h4.512a9.01 9.01 0 012.385-3.615c.056-.352-.06-.568-.507-.853a3 3 0 114.317-1.237A9.007 9.007 0 0116.9 8 5 5 0 107 7zm1.512 13c.252.712.59 1.383 1.004 2H2.5a.5.5 0 01-.5-.5v-1a.5.5 0 01.5-.5h6.012zM17 22a5 5 0 004.172-7.757l-6.93 6.929c.791.523 1.739.828 2.758.828zm-4.172-2.243l6.93-6.929a5 5 0 00-6.929 6.929zM17 24a7 7 0 100-14 7 7 0 000 14z"
|
|
62
58
|
}))));
|
|
63
59
|
};
|
|
64
60
|
Reject.propTypes = {
|
|
@@ -0,0 +1,70 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
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(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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(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; }
|
|
19
|
+
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; }
|
|
20
|
+
var loadingCircleStyle = '@keyframes loadingCircle { 100% { transform: rotate(360deg) }} ';
|
|
21
|
+
var Sticky = function Sticky(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: "20",
|
|
52
|
+
height: "20",
|
|
53
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
55
|
+
d: "M6.667 9.167h2.5V17.5h1.666V9.167h2.5L10 5.833 6.667 9.167zm10-5V2.5H3.332v1.667h13.333z"
|
|
56
|
+
}))));
|
|
57
|
+
};
|
|
58
|
+
Sticky.propTypes = {
|
|
59
|
+
iconClassName: _propTypes["default"].string,
|
|
60
|
+
spin: _propTypes["default"].bool,
|
|
61
|
+
color: _propTypes["default"].string,
|
|
62
|
+
testid: _propTypes["default"].string,
|
|
63
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
64
|
+
};
|
|
65
|
+
Sticky.defaultProps = {
|
|
66
|
+
spin: false,
|
|
67
|
+
color: 'currentColor',
|
|
68
|
+
size: '1em'
|
|
69
|
+
};
|
|
70
|
+
var _default = exports["default"] = Sticky;
|
package/dist/lib/index.js
CHANGED
|
@@ -411,6 +411,12 @@ Object.defineProperty(exports, "TaConfig", {
|
|
|
411
411
|
return _config["default"];
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
|
+
Object.defineProperty(exports, "TaConsent", {
|
|
415
|
+
enumerable: true,
|
|
416
|
+
get: function get() {
|
|
417
|
+
return _consent["default"];
|
|
418
|
+
}
|
|
419
|
+
});
|
|
414
420
|
Object.defineProperty(exports, "TaContrast", {
|
|
415
421
|
enumerable: true,
|
|
416
422
|
get: function get() {
|
|
@@ -2121,6 +2127,12 @@ Object.defineProperty(exports, "TaStickerFill", {
|
|
|
2121
2127
|
return _stickerFill["default"];
|
|
2122
2128
|
}
|
|
2123
2129
|
});
|
|
2130
|
+
Object.defineProperty(exports, "TaSticky", {
|
|
2131
|
+
enumerable: true,
|
|
2132
|
+
get: function get() {
|
|
2133
|
+
return _sticky["default"];
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2124
2136
|
Object.defineProperty(exports, "TaStringSm", {
|
|
2125
2137
|
enumerable: true,
|
|
2126
2138
|
get: function get() {
|
|
@@ -2550,8 +2562,8 @@ var _manual = _interopRequireDefault(require("./icons/manual"));
|
|
|
2550
2562
|
var _mute = _interopRequireDefault(require("./icons/mute"));
|
|
2551
2563
|
var _approve = _interopRequireDefault(require("./icons/approve"));
|
|
2552
2564
|
var _reject = _interopRequireDefault(require("./icons/reject"));
|
|
2565
|
+
var _consent = _interopRequireDefault(require("./icons/consent"));
|
|
2553
2566
|
var _endTask = _interopRequireDefault(require("./icons/end-task"));
|
|
2554
|
-
var _task = _interopRequireDefault(require("./icons/task"));
|
|
2555
2567
|
var _property = _interopRequireDefault(require("./icons/property"));
|
|
2556
2568
|
var _lab = _interopRequireDefault(require("./icons/lab"));
|
|
2557
2569
|
var _ruler = _interopRequireDefault(require("./icons/ruler"));
|
|
@@ -2559,6 +2571,7 @@ var _smile = _interopRequireDefault(require("./icons/smile"));
|
|
|
2559
2571
|
var _newTask = _interopRequireDefault(require("./icons/new-task"));
|
|
2560
2572
|
var _submit = _interopRequireDefault(require("./icons/submit"));
|
|
2561
2573
|
var _undo = _interopRequireDefault(require("./icons/undo"));
|
|
2574
|
+
var _task = _interopRequireDefault(require("./icons/task"));
|
|
2562
2575
|
var _flash = _interopRequireDefault(require("./icons/flash"));
|
|
2563
2576
|
var _map = _interopRequireDefault(require("./icons/map"));
|
|
2564
2577
|
var _testSplit = _interopRequireDefault(require("./icons/test-split"));
|
|
@@ -2829,6 +2842,7 @@ var _eventModify = _interopRequireDefault(require("./icons/event-modify"));
|
|
|
2829
2842
|
var _pin = _interopRequireDefault(require("./icons/pin"));
|
|
2830
2843
|
var _pinUnsave = _interopRequireDefault(require("./icons/pin-unsave"));
|
|
2831
2844
|
var _unsave = _interopRequireDefault(require("./icons/unsave"));
|
|
2845
|
+
var _sticky = _interopRequireDefault(require("./icons/sticky"));
|
|
2832
2846
|
var _report = _interopRequireDefault(require("./icons/report"));
|
|
2833
2847
|
var _reportRemoval = _interopRequireDefault(require("./icons/report-removal"));
|
|
2834
2848
|
var _fileAdd = _interopRequireDefault(require("./icons/file-add"));
|