@chakra-ui/icon
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -145,6 +145,6 @@ 'use strict'; | ||
pathDefinition = options.d, | ||
path = options.path, | ||
displayName = options.displayName, | ||
_options$defaultProps = options.defaultProps, | ||
defaultProps = _options$defaultProps === void 0 ? {} : _options$defaultProps; | ||
var path = React__namespace.Children.toArray(options.path); | ||
var Comp = /*#__PURE__*/system.forwardRef(function (props, ref) { | ||
@@ -154,3 +154,3 @@ return /*#__PURE__*/React__namespace.createElement(Icon, _extends({ | ||
viewBox: viewBox | ||
}, defaultProps, props), path != null ? path : /*#__PURE__*/React__namespace.createElement("path", { | ||
}, defaultProps, props), path.length ? path : /*#__PURE__*/React__namespace.createElement("path", { | ||
fill: "currentColor", | ||
@@ -157,0 +157,0 @@ d: pathDefinition |
@@ -145,6 +145,6 @@ 'use strict'; | ||
pathDefinition = options.d, | ||
path = options.path, | ||
displayName = options.displayName, | ||
_options$defaultProps = options.defaultProps, | ||
defaultProps = _options$defaultProps === void 0 ? {} : _options$defaultProps; | ||
var path = React__namespace.Children.toArray(options.path); | ||
var Comp = /*#__PURE__*/system.forwardRef(function (props, ref) { | ||
@@ -154,3 +154,3 @@ return /*#__PURE__*/React__namespace.createElement(Icon, _extends({ | ||
viewBox: viewBox | ||
}, defaultProps, props), path != null ? path : /*#__PURE__*/React__namespace.createElement("path", { | ||
}, defaultProps, props), path.length ? path : /*#__PURE__*/React__namespace.createElement("path", { | ||
fill: "currentColor", | ||
@@ -157,0 +157,0 @@ d: pathDefinition |
@@ -121,6 +121,6 @@ import { forwardRef, chakra } from '@chakra-ui/system'; | ||
pathDefinition = options.d, | ||
path = options.path, | ||
displayName = options.displayName, | ||
_options$defaultProps = options.defaultProps, | ||
defaultProps = _options$defaultProps === void 0 ? {} : _options$defaultProps; | ||
var path = React.Children.toArray(options.path); | ||
var Comp = /*#__PURE__*/forwardRef(function (props, ref) { | ||
@@ -130,3 +130,3 @@ return /*#__PURE__*/React.createElement(Icon, _extends({ | ||
viewBox: viewBox | ||
}, defaultProps, props), path != null ? path : /*#__PURE__*/React.createElement("path", { | ||
}, defaultProps, props), path.length ? path : /*#__PURE__*/React.createElement("path", { | ||
fill: "currentColor", | ||
@@ -133,0 +133,0 @@ d: pathDefinition |
{ | ||
"name": "@chakra-ui/icon", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"description": "A base React component for icons", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@chakra-ui/system": "1.8.1", | ||
"@chakra-ui/system": "1.8.3", | ||
"react": "^17.0.1" | ||
@@ -41,0 +41,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20203
16