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

@superlogica/chip-native

Package Overview
Dependencies
Maintainers
5
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.11 to 0.0.12

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 _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;return _react.default.createElement(Styled.ChipContainer,{bgColor:bgColor,__source:{fileName:_jsxFileName,lineNumber:6}},_react.default.createElement(Styled.ChipText,{txtColor:txtColor,__source:{fileName:_jsxFileName,lineNumber:7}},children));};Chip.propTypes={children:_propTypes.node,txtColor:_propTypes.string,bgColor:_propTypes.string};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/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,rest=(0,_objectWithoutProperties2.default)(_ref,["children","txtColor","bgColor"]);return _react.default.createElement(Styled.ChipContainer,(0,_extends2.default)({bgColor:bgColor},rest,{__source:{fileName:_jsxFileName,lineNumber:6}}),_react.default.createElement(Styled.ChipText,(0,_extends2.default)({txtColor:txtColor},rest,{__source:{fileName:_jsxFileName,lineNumber:7}}),children));};Chip.propTypes={children:_propTypes.node,txtColor:_propTypes.string,bgColor:_propTypes.string};Chip.defaultProps={txtColor:'neutral600',bgColor:'neutral100'};var _default=Chip;exports.default=_default;
{
"name": "@superlogica/chip-native",
"version": "0.0.11",
"version": "0.0.12",
"description": "",

@@ -14,3 +14,3 @@ "main": "Chip.js",

"license": "ISC",
"gitHead": "44a86ac02f6a52a82eeb8a3aaaba99a207b7ed86"
"gitHead": "2cb6e6d604d6d3d2fb9bcf14fcce78316385265e"
}

@@ -1,1 +0,1 @@

var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ChipText=exports.ChipContainer=void 0;var _taggedTemplateLiteralLoose2=_interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));var _native=_interopRequireDefault(require("styled-components/native"));function _templateObject2(){var data=(0,_taggedTemplateLiteralLoose2.default)(["\n ","\n"]);_templateObject2=function _templateObject2(){return data;};return data;}function _templateObject(){var data=(0,_taggedTemplateLiteralLoose2.default)(["\n ","\n"]);_templateObject=function _templateObject(){return data;};return data;}var ChipContainer=_native.default.View(_templateObject(),function(_ref){var _ref$theme=_ref.theme,padding=_ref$theme.chip.padding,color=_ref$theme.color,bgColor=_ref.bgColor;return"\n padding-top: "+padding.top+"px;\n padding-right: "+padding.right+"px;\n padding-bottom: "+padding.bottom+"px;\n padding-left: "+padding.left+"px;\n background: "+(color[bgColor]||color.neutral100)+";\n ";});exports.ChipContainer=ChipContainer;var ChipText=_native.default.Text(_templateObject2(),function(_ref2){var theme=_ref2.theme,_ref2$theme=_ref2.theme,typography=_ref2$theme.chip.typography,color=_ref2$theme.color,txtColor=_ref2.txtColor;return"\n font-family: "+theme.typography.fontFamily+typography.fontFamily+";\n font-size: "+typography.fontSize+"px;\n line-height: "+typography.lineHeight+"px;\n color: "+(color[txtColor]||color.neutral600)+";\n ";});exports.ChipText=ChipText;
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ChipText=exports.ChipContainer=void 0;var _taggedTemplateLiteralLoose2=_interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));var _native=_interopRequireDefault(require("styled-components/native"));function _templateObject2(){var data=(0,_taggedTemplateLiteralLoose2.default)(["\n ","\n"]);_templateObject2=function _templateObject2(){return data;};return data;}function _templateObject(){var data=(0,_taggedTemplateLiteralLoose2.default)(["\n ","\n"]);_templateObject=function _templateObject(){return data;};return data;}var ChipContainer=_native.default.View(_templateObject(),function(_ref){var _ref$theme=_ref.theme,padding=_ref$theme.chip.padding,color=_ref$theme.color,bgColor=_ref.bgColor;return"\n padding-top: "+padding.top+"px;\n padding-right: "+padding.right+"px;\n padding-bottom: "+padding.bottom+"px;\n padding-left: "+padding.left+"px;\n background: "+(color[bgColor]||color.neutral100)+";\n ";});exports.ChipContainer=ChipContainer;var ChipText=_native.default.Text(_templateObject2(),function(_ref2){var _ref2$theme=_ref2.theme,typography=_ref2$theme.typography,color=_ref2$theme.color,txtColor=_ref2.txtColor;return"\n font-family: "+typography.fontFamily+typography.label.caption.fontFamily+";\n font-size: "+typography.label.caption.fontSize+"px;\n letter-spacing: "+typography.label.caption.letterSpacing+"px;\n line-height: "+typography.label.caption.lineHeight+"px;\n color: "+(color[txtColor]||color.neutral600)+";\n ";});exports.ChipText=ChipText;
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