@carbon/icons-react 10.2.0 → 10.3.0
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/CHANGELOG.md +1 -429
- package/es/checkmark--filled/16.js +1 -0
- package/es/checkmark--filled/32.js +2 -1
- package/es/edit--off/16.js +74 -0
- package/es/edit--off/20.js +74 -0
- package/es/edit--off/24.js +74 -0
- package/es/edit--off/32.js +74 -0
- package/lib/checkmark--filled/16.js +1 -0
- package/lib/checkmark--filled/32.js +2 -1
- package/lib/edit--off/16.js +78 -0
- package/lib/edit--off/20.js +78 -0
- package/lib/edit--off/24.js +78 -0
- package/lib/edit--off/32.js +78 -0
- package/package.json +3 -3
- package/umd/checkmark--filled/16.js +1 -0
- package/umd/checkmark--filled/32.js +2 -1
- package/umd/edit--off/16.js +81 -0
- package/umd/edit--off/20.js +81 -0
- package/umd/edit--off/24.js +81 -0
- package/umd/edit--off/32.js +81 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@carbon/icon-helpers'), require('prop-types'), require('react')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['@carbon/icon-helpers', 'prop-types', 'react'], factory) :
|
|
4
|
+
(global.EditOff24 = factory(global.CarbonIconHelpers,global.PropTypes,global.React));
|
|
5
|
+
}(this, (function (iconHelpers,PropTypes,React) { 'use strict';
|
|
6
|
+
|
|
7
|
+
PropTypes = PropTypes && PropTypes.hasOwnProperty('default') ? PropTypes['default'] : PropTypes;
|
|
8
|
+
React = React && React.hasOwnProperty('default') ? React['default'] : React;
|
|
9
|
+
|
|
10
|
+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
11
|
+
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
13
|
+
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
var defaultStyle = {
|
|
20
|
+
"willChange": "transform"
|
|
21
|
+
};
|
|
22
|
+
var EditOff24 = React.forwardRef(function (_ref, ref) {
|
|
23
|
+
var className = _ref.className,
|
|
24
|
+
children = _ref.children,
|
|
25
|
+
style = _ref.style,
|
|
26
|
+
tabIndex = _ref.tabIndex,
|
|
27
|
+
rest = _objectWithoutProperties(_ref, ["className", "children", "style", "tabIndex"]);
|
|
28
|
+
|
|
29
|
+
var _getAttributes = iconHelpers.getAttributes(_objectSpread({}, rest, {
|
|
30
|
+
tabindex: tabIndex
|
|
31
|
+
})),
|
|
32
|
+
tabindex = _getAttributes.tabindex,
|
|
33
|
+
props = _objectWithoutProperties(_getAttributes, ["tabindex"]);
|
|
34
|
+
|
|
35
|
+
if (className) {
|
|
36
|
+
props.className = className;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (tabindex !== undefined && tabindex !== null) {
|
|
40
|
+
props.tabIndex = tabindex;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (_typeof(style) === 'object') {
|
|
44
|
+
props.style = _objectSpread({}, defaultStyle, style);
|
|
45
|
+
} else {
|
|
46
|
+
props.style = defaultStyle;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (ref) {
|
|
50
|
+
props.ref = ref;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return React.createElement('svg', props, children, React.createElement('path', {
|
|
54
|
+
d: 'M30 28.59L3.41 2 2 3.41 12.09 13.5 4 21.59V28h6.41l8.09-8.09L28.59 30zM9.59 26H6v-3.59l7.5-7.5 3.59 3.59zM29.41 6.17l-3.58-3.58a2 2 0 0 0-2.83 0l-8.08 8.08 1.41 1.41L20 8.41 23.59 12l-3.67 3.67 1.41 1.41L29.41 9a2 2 0 0 0 0-2.83zM25 10.59L21.41 7l3-3L28 7.59z'
|
|
55
|
+
}));
|
|
56
|
+
});
|
|
57
|
+
EditOff24.displayName = 'EditOff24';
|
|
58
|
+
EditOff24.propTypes = {
|
|
59
|
+
'aria-hidden': PropTypes.bool,
|
|
60
|
+
'aria-label': PropTypes.string,
|
|
61
|
+
'aria-labelledby': PropTypes.string,
|
|
62
|
+
className: PropTypes.string,
|
|
63
|
+
children: PropTypes.node,
|
|
64
|
+
height: PropTypes.number,
|
|
65
|
+
preserveAspectRatio: PropTypes.string,
|
|
66
|
+
tabIndex: PropTypes.string,
|
|
67
|
+
viewBox: PropTypes.string,
|
|
68
|
+
width: PropTypes.number,
|
|
69
|
+
xmlns: PropTypes.string
|
|
70
|
+
};
|
|
71
|
+
EditOff24.defaultProps = {
|
|
72
|
+
width: 24,
|
|
73
|
+
height: 24,
|
|
74
|
+
viewBox: '0 0 32 32',
|
|
75
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
76
|
+
preserveAspectRatio: 'xMidYMid meet'
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return EditOff24;
|
|
80
|
+
|
|
81
|
+
})));
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@carbon/icon-helpers'), require('prop-types'), require('react')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['@carbon/icon-helpers', 'prop-types', 'react'], factory) :
|
|
4
|
+
(global.EditOff32 = factory(global.CarbonIconHelpers,global.PropTypes,global.React));
|
|
5
|
+
}(this, (function (iconHelpers,PropTypes,React) { 'use strict';
|
|
6
|
+
|
|
7
|
+
PropTypes = PropTypes && PropTypes.hasOwnProperty('default') ? PropTypes['default'] : PropTypes;
|
|
8
|
+
React = React && React.hasOwnProperty('default') ? React['default'] : React;
|
|
9
|
+
|
|
10
|
+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
11
|
+
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
13
|
+
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
var defaultStyle = {
|
|
20
|
+
"willChange": "transform"
|
|
21
|
+
};
|
|
22
|
+
var EditOff32 = React.forwardRef(function (_ref, ref) {
|
|
23
|
+
var className = _ref.className,
|
|
24
|
+
children = _ref.children,
|
|
25
|
+
style = _ref.style,
|
|
26
|
+
tabIndex = _ref.tabIndex,
|
|
27
|
+
rest = _objectWithoutProperties(_ref, ["className", "children", "style", "tabIndex"]);
|
|
28
|
+
|
|
29
|
+
var _getAttributes = iconHelpers.getAttributes(_objectSpread({}, rest, {
|
|
30
|
+
tabindex: tabIndex
|
|
31
|
+
})),
|
|
32
|
+
tabindex = _getAttributes.tabindex,
|
|
33
|
+
props = _objectWithoutProperties(_getAttributes, ["tabindex"]);
|
|
34
|
+
|
|
35
|
+
if (className) {
|
|
36
|
+
props.className = className;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (tabindex !== undefined && tabindex !== null) {
|
|
40
|
+
props.tabIndex = tabindex;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (_typeof(style) === 'object') {
|
|
44
|
+
props.style = _objectSpread({}, defaultStyle, style);
|
|
45
|
+
} else {
|
|
46
|
+
props.style = defaultStyle;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (ref) {
|
|
50
|
+
props.ref = ref;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return React.createElement('svg', props, children, React.createElement('path', {
|
|
54
|
+
d: 'M30 28.59L3.41 2 2 3.41 12.09 13.5 4 21.59V28h6.41l8.09-8.09L28.59 30zM9.59 26H6v-3.59l7.5-7.5 3.59 3.59zM29.41 6.17l-3.58-3.58a2 2 0 0 0-2.83 0l-8.08 8.08 1.41 1.41L20 8.41 23.59 12l-3.67 3.67 1.41 1.41L29.41 9a2 2 0 0 0 0-2.83zM25 10.59L21.41 7l3-3L28 7.59z'
|
|
55
|
+
}));
|
|
56
|
+
});
|
|
57
|
+
EditOff32.displayName = 'EditOff32';
|
|
58
|
+
EditOff32.propTypes = {
|
|
59
|
+
'aria-hidden': PropTypes.bool,
|
|
60
|
+
'aria-label': PropTypes.string,
|
|
61
|
+
'aria-labelledby': PropTypes.string,
|
|
62
|
+
className: PropTypes.string,
|
|
63
|
+
children: PropTypes.node,
|
|
64
|
+
height: PropTypes.number,
|
|
65
|
+
preserveAspectRatio: PropTypes.string,
|
|
66
|
+
tabIndex: PropTypes.string,
|
|
67
|
+
viewBox: PropTypes.string,
|
|
68
|
+
width: PropTypes.number,
|
|
69
|
+
xmlns: PropTypes.string
|
|
70
|
+
};
|
|
71
|
+
EditOff32.defaultProps = {
|
|
72
|
+
width: 32,
|
|
73
|
+
height: 32,
|
|
74
|
+
viewBox: '0 0 32 32',
|
|
75
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
76
|
+
preserveAspectRatio: 'xMidYMid meet'
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return EditOff32;
|
|
80
|
+
|
|
81
|
+
})));
|