Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@superlogica/chip-native

Package Overview
Dependencies
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superlogica/chip-native - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

2

Chip.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc