@welcome-ui/icon
Advanced tools
Comparing version 2.0.0-alpha.26 to 2.0.0-alpha.30
@@ -45,16 +45,7 @@ 'use strict'; | ||
} | ||
var iconSvgStrokedStyles = | ||
/*#__PURE__*/ | ||
styled.css( | ||
/*#__PURE__*/ | ||
_templateObject()); | ||
var iconSvgFilledStyles = | ||
/*#__PURE__*/ | ||
styled.css( | ||
/*#__PURE__*/ | ||
_templateObject2()); | ||
var Icon = | ||
/*#__PURE__*/ | ||
styled__default.svg(function (_ref) { | ||
var _ref$size = _ref.size, | ||
var iconSvgStrokedStyles = /*#__PURE__*/styled.css( /*#__PURE__*/_templateObject()); | ||
var iconSvgFilledStyles = /*#__PURE__*/styled.css( /*#__PURE__*/_templateObject2()); | ||
var Icon = /*#__PURE__*/styled__default.svg(function (_ref) { | ||
var isFlag = _ref.isFlag, | ||
_ref$size = _ref.size, | ||
size = _ref$size === void 0 ? 'md' : _ref$size, | ||
@@ -64,8 +55,6 @@ stroked = _ref.stroked, | ||
var formattedSize = theme.icons[size] || size; | ||
return styled.css(_templateObject3(), stroked ? iconSvgStrokedStyles : iconSvgFilledStyles, formattedSize, formattedSize, system.system); | ||
return styled.css(_templateObject3(), !isFlag && (stroked ? iconSvgStrokedStyles : iconSvgFilledStyles), formattedSize, formattedSize, system.system); | ||
}); | ||
var Icon$1 = | ||
/*#__PURE__*/ | ||
React.forwardRef(function (_ref, ref) { | ||
var Icon$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) { | ||
var content = _ref.content, | ||
@@ -82,3 +71,3 @@ dataTestId = _ref.dataTestId, | ||
return React__default.createElement(Icon, _extends({ | ||
return /*#__PURE__*/React__default.createElement(Icon, _extends({ | ||
alt: title, | ||
@@ -89,2 +78,3 @@ dangerouslySetInnerHTML: { | ||
"data-testid": dataTestId && "icon-" + dataTestId, | ||
isFlag: content.isFlag, | ||
ref: ref, | ||
@@ -91,0 +81,0 @@ role: "img", |
@@ -37,16 +37,7 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
} | ||
var iconSvgStrokedStyles = | ||
/*#__PURE__*/ | ||
css( | ||
/*#__PURE__*/ | ||
_templateObject()); | ||
var iconSvgFilledStyles = | ||
/*#__PURE__*/ | ||
css( | ||
/*#__PURE__*/ | ||
_templateObject2()); | ||
var Icon = | ||
/*#__PURE__*/ | ||
styled.svg(function (_ref) { | ||
var _ref$size = _ref.size, | ||
var iconSvgStrokedStyles = /*#__PURE__*/css( /*#__PURE__*/_templateObject()); | ||
var iconSvgFilledStyles = /*#__PURE__*/css( /*#__PURE__*/_templateObject2()); | ||
var Icon = /*#__PURE__*/styled.svg(function (_ref) { | ||
var isFlag = _ref.isFlag, | ||
_ref$size = _ref.size, | ||
size = _ref$size === void 0 ? 'md' : _ref$size, | ||
@@ -56,8 +47,6 @@ stroked = _ref.stroked, | ||
var formattedSize = theme.icons[size] || size; | ||
return css(_templateObject3(), stroked ? iconSvgStrokedStyles : iconSvgFilledStyles, formattedSize, formattedSize, system); | ||
return css(_templateObject3(), !isFlag && (stroked ? iconSvgStrokedStyles : iconSvgFilledStyles), formattedSize, formattedSize, system); | ||
}); | ||
var Icon$1 = | ||
/*#__PURE__*/ | ||
forwardRef(function (_ref, ref) { | ||
var Icon$1 = /*#__PURE__*/forwardRef(function (_ref, ref) { | ||
var content = _ref.content, | ||
@@ -74,3 +63,3 @@ dataTestId = _ref.dataTestId, | ||
return React.createElement(Icon, _extends({ | ||
return /*#__PURE__*/React.createElement(Icon, _extends({ | ||
alt: title, | ||
@@ -81,2 +70,3 @@ dangerouslySetInnerHTML: { | ||
"data-testid": dataTestId && "icon-" + dataTestId, | ||
isFlag: content.isFlag, | ||
ref: ref, | ||
@@ -83,0 +73,0 @@ role: "img", |
{ | ||
"name": "@welcome-ui/icon", | ||
"version": "2.0.0-alpha.26", | ||
"version": "2.0.0-alpha.30", | ||
"description": "Customizable design system with react • styled-components • styled-system and reakit.", | ||
"main": "dist/icon.cjs.js", | ||
"module": "dist/icon.es.js", | ||
"scripts": {}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"watch": "rollup -c -w", | ||
"test": "jest" | ||
}, | ||
"publishConfig": { | ||
@@ -34,3 +38,3 @@ "access": "public" | ||
"dependencies": { | ||
"@welcome-ui/system": "^2.0.0-alpha.26" | ||
"@welcome-ui/system": "^2.0.0-alpha.30" | ||
}, | ||
@@ -44,3 +48,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "f8606dc9f13252290a9bddf0ef5ffd604e63bc39", | ||
"gitHead": "aa51a6ebe09677a94ddac61d49cfb08223acb56b", | ||
"sideEffects": false, | ||
@@ -47,0 +51,0 @@ "component": "Icon", |
11091
138