@superlogica/chip-native
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -1,1 +0,1 @@ | ||
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var Styled=_interopRequireWildcard(require("./Styled"));var _propTypes=require("prop-types");var _jsxFileName="/Users/wilson.prado/Projetos/designsystem-mobile/src/components/Chip/src/Chip.js";var Chip=function Chip(_ref){var children=_ref.children,txtColor=_ref.txtColor,bgColor=_ref.bgColor,onPress=_ref.onPress,outColor=_ref.outColor,iconLeft=_ref.iconLeft,onPressIconLeft=_ref.onPressIconLeft,icon=_ref.icon,onPressIcon=_ref.onPressIcon,rest=(0,_objectWithoutProperties2.default)(_ref,["children","txtColor","bgColor","onPress","outColor","iconLeft","onPressIconLeft","icon","onPressIcon"]);return _react.default.createElement(Styled.ChipContainer,(0,_extends2.default)({outColor:outColor,bgColor:bgColor,onPress:onPress},rest,{__source:{fileName:_jsxFileName,lineNumber:17,columnNumber:3}}),iconLeft&&_react.default.createElement(Styled.IconBox,{onPress:onPressIconLeft,__source:{fileName:_jsxFileName,lineNumber:18,columnNumber:18}},iconLeft),_react.default.createElement(Styled.TextBox,{icon:icon,iconLeft:iconLeft,__source:{fileName:_jsxFileName,lineNumber:19,columnNumber:5}},_react.default.createElement(Styled.ChipText,(0,_extends2.default)({txtColor:txtColor},rest,{__source:{fileName:_jsxFileName,lineNumber:20,columnNumber:7}}),children)),icon&&_react.default.createElement(Styled.IconBox,{onPress:onPressIcon,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:14}},icon));};Chip.propTypes={children:_propTypes.node,txtColor:_propTypes.string,bgColor:_propTypes.string,outColor:_propTypes.string,icon:_propTypes.element,onPressIcon:_propTypes.func,iconLeft:_propTypes.element,onPressIconLeft:_propTypes.func,onPress:_propTypes.func};Chip.defaultProps={txtColor:'neutral600',bgColor:'neutral100'};var _default=Chip;exports.default=_default; | ||
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var Styled=_interopRequireWildcard(require("./Styled"));var _propTypes=require("prop-types");var _jsxFileName="/Users/gustavo.zanardi/Documents/Projetos/designsystem-mobile/src/components/Chip/src/Chip.js";var Chip=function Chip(_ref){var children=_ref.children,txtColor=_ref.txtColor,bgColor=_ref.bgColor,onPress=_ref.onPress,outColor=_ref.outColor,iconLeft=_ref.iconLeft,onPressIconLeft=_ref.onPressIconLeft,icon=_ref.icon,onPressIcon=_ref.onPressIcon,rest=(0,_objectWithoutProperties2.default)(_ref,["children","txtColor","bgColor","onPress","outColor","iconLeft","onPressIconLeft","icon","onPressIcon"]);return _react.default.createElement(Styled.ChipContainer,(0,_extends2.default)({outColor:outColor,bgColor:bgColor,onPress:onPress},rest,{__source:{fileName:_jsxFileName,lineNumber:17,columnNumber:3}}),iconLeft&&_react.default.createElement(Styled.IconBox,{onPress:onPressIconLeft,__source:{fileName:_jsxFileName,lineNumber:18,columnNumber:18}},iconLeft),_react.default.createElement(Styled.TextBox,{icon:icon,iconLeft:iconLeft,__source:{fileName:_jsxFileName,lineNumber:19,columnNumber:5}},_react.default.createElement(Styled.ChipText,(0,_extends2.default)({txtColor:txtColor},rest,{__source:{fileName:_jsxFileName,lineNumber:20,columnNumber:7}}),children)),icon&&_react.default.createElement(Styled.IconBox,{onPress:onPressIcon,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:14}},icon));};Chip.propTypes={children:_propTypes.node,txtColor:_propTypes.string,bgColor:_propTypes.string,outColor:_propTypes.string,icon:_propTypes.element,onPressIcon:_propTypes.func,iconLeft:_propTypes.element,onPressIconLeft:_propTypes.func,onPress:_propTypes.func};Chip.defaultProps={txtColor:'neutral600',bgColor:'neutral100'};var _default=Chip;exports.default=_default; |
{ | ||
"name": "@superlogica/chip-native", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "", | ||
@@ -14,3 +14,3 @@ "main": "Chip.js", | ||
"license": "ISC", | ||
"gitHead": "eb879634d7409bd2cddce222a105451e2931b687" | ||
"gitHead": "dd6f711685fc13c53f236f721b2b3e8a83e38bb2" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
6822
1