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

@xstyled/styled-components

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xstyled/styled-components - npm Package Compare versions

Comparing version 1.8.2 to 1.8.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [1.8.3](https://github.com/smooth-code/xstyled/compare/v1.8.2...v1.8.3) (2019-07-09)
**Note:** Version bump only for package @xstyled/styled-components
## [1.8.2](https://github.com/smooth-code/xstyled/compare/v1.8.1...v1.8.2) (2019-07-09)

@@ -8,0 +16,0 @@

2

dist/xstyled-styled-components.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("styled-components"),require("@xstyled/system"),require("react")):"function"==typeof define&&define.amd?define(["exports","styled-components","@xstyled/system","react"],t):t((e=e||self).xstyled={},e.styled,e.xstyledSystem,e.React)}(this,function(e,t,r,n){"use strict";var o="default"in t?t.default:t;function i(){return["&&{",r.system,"}"]}n=n&&n.hasOwnProperty("default")?n.default:n,i.meta=r.system.meta;var u=function(e){return function(t){var r=Number(t);return e(Number.isNaN(r)?t:r)}},d=/\s+/,l=function(e){return function(t){var r=t.split(d);return function(t){return r.map(function(r){return e(r)(t)}).join(" ")}}},a=u(r.getSpace),f=l(a),g=u(r.getBorder),c=u(r.getBorderWidth),s=l(c),m=u(r.getSize),y=l(r.getBorderStyle),p={margin:f,"margin-top":a,"margin-bottom":a,"margin-left":a,"margin-right":a,padding:f,"padding-top":a,"padding-bottom":a,"padding-left":a,"padding-right":a,"grid-gap":f,"grid-row-gap":a,color:r.getColor,"background-color":r.getColor,"border-color":r.getColor,"border-top-color":r.getColor,"border-right-color":r.getColor,"border-bottom-color":r.getColor,"border-left-color":r.getColor,"border-radius":l(u(r.getRadius)),border:g,"border-top":g,"border-right":g,"border-bottom":g,"border-left":g,"border-width":s,"boder-top-width":c,"boder-right-width":c,"boder-bottom-width":c,"boder-left-width":c,"border-style":y,"boder-top-style":r.getBorderStyle,"boder-right-style":r.getBorderStyle,"boder-bottom-style":r.getBorderStyle,"boder-left-style":r.getBorderStyle,"box-shadow":r.getShadow,width:m,height:m,"max-width":m,"max-height":m,"min-width":m,"min-height":m,"z-index":r.getZIndex,"font-family":r.getFont,"font-size":r.getFontSize,"line-height":r.getLineHeight,"font-weight":r.getFontWeight,"letter-spacing":u(r.getLetterSpacing),transition:r.getTransition},b=/(\s*)([^&{}:;\n]+):\s*([^&{}:;\n]+)(\s*);/g,h=/\s*!important\s*/;function S(e){if("string"!=typeof e)return e;for(var t,r=0,n=[],o=function(){var o=t,i=o[1],u=o[2],d=o[3],l=o[4],a=p[u];if(a){var f=h.test(d),g=d.replace(h,"");n.push(e.slice(r,t.index)),n.push(function(e){return""+i+u+": "+a(g)(e)+(f?" !important":"")+";"+l}),r=t.index+t[0].length}};t=b.exec(e);)o();return n.push(e.slice(r,e.length)),n}function O(){var e=t.css.apply(void 0,arguments);return e.reduce(function(e,t){var r=e.length-1,n=e[r];return"string"==typeof n&&"string"==typeof t?e[r]=n+t:e.push(t),e},[]).map(S)}function _(e){return function e(t){var r=function(){return t([O.apply(void 0,arguments)])};return r.attrs=function(r){return e(t.attrs(r))},r.withConfig=function(r){return e(t.withConfig(r))},r}(o(e))}var x=_(r.createSystemComponent(n))(i);_.box=_(x),Object.keys(o).forEach(function(e){_[e]=_(e),_[e+"Box"]=_(x.withComponent(r.createSystemComponent(n,e)))}),Object.defineProperty(e,"ServerStyleSheet",{enumerable:!0,get:function(){return t.ServerStyleSheet}}),Object.defineProperty(e,"StyleSheetConsumer",{enumerable:!0,get:function(){return t.StyleSheetConsumer}}),Object.defineProperty(e,"StyleSheetContext",{enumerable:!0,get:function(){return t.StyleSheetContext}}),Object.defineProperty(e,"StyleSheetManager",{enumerable:!0,get:function(){return t.StyleSheetManager}}),Object.defineProperty(e,"ThemeConsumer",{enumerable:!0,get:function(){return t.ThemeConsumer}}),Object.defineProperty(e,"ThemeContext",{enumerable:!0,get:function(){return t.ThemeContext}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return t.ThemeProvider}}),Object.defineProperty(e,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",{enumerable:!0,get:function(){return t.__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS}}),Object.defineProperty(e,"isStyledComponent",{enumerable:!0,get:function(){return t.isStyledComponent}}),Object.defineProperty(e,"keyframes",{enumerable:!0,get:function(){return t.keyframes}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return t.withTheme}}),e.Box=x,e.createGlobalStyle=function(){return t.createGlobalStyle([O.apply(void 0,arguments)])},e.css=O,e.default=_,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("styled-components"),require("@xstyled/system"),require("react")):"function"==typeof define&&define.amd?define(["exports","styled-components","@xstyled/system","react"],t):t((e=e||self).xstyled={},e.styled,e.xstyledSystem,e.React)}(this,function(e,t,r,n){"use strict";var o="default"in t?t.default:t;function i(){return["&&{",r.system,"}"]}n=n&&n.hasOwnProperty("default")?n.default:n,i.meta=r.system.meta;var u=function(e){return function(t){var r=Number(t);return e(Number.isNaN(r)?t:r)}},d=/\s+/,l=function(e){return function(t){var r=t.split(d);return function(t){return r.map(function(r){return e(r)(t)}).join(" ")}}},a=u(r.getSpace),f=l(a),g=u(r.getBorder),c=u(r.getBorderWidth),s=l(c),m=u(r.getSize),y=l(r.getBorderStyle),p={margin:f,"margin-top":a,"margin-bottom":a,"margin-left":a,"margin-right":a,padding:f,"padding-top":a,"padding-bottom":a,"padding-left":a,"padding-right":a,"grid-gap":f,"grid-row-gap":a,color:r.getColor,"background-color":r.getColor,"border-color":r.getColor,"border-top-color":r.getColor,"border-right-color":r.getColor,"border-bottom-color":r.getColor,"border-left-color":r.getColor,"border-radius":l(u(r.getRadius)),border:g,"border-top":g,"border-right":g,"border-bottom":g,"border-left":g,"border-width":s,"boder-top-width":c,"boder-right-width":c,"boder-bottom-width":c,"boder-left-width":c,"border-style":y,"boder-top-style":r.getBorderStyle,"boder-right-style":r.getBorderStyle,"boder-bottom-style":r.getBorderStyle,"boder-left-style":r.getBorderStyle,"box-shadow":r.getShadow,width:m,height:m,"max-width":m,"max-height":m,"min-width":m,"min-height":m,"z-index":u(r.getZIndex),"font-family":r.getFont,"font-size":u(r.getFontSize),"line-height":u(r.getLineHeight),"font-weight":r.getFontWeight,"letter-spacing":u(r.getLetterSpacing),transition:r.getTransition},b=/(\s*)([^&{}:;\n]+):\s*([^&{}:;\n]+)(\s*);/g,h=/\s*!important\s*/;function S(e){if("string"!=typeof e)return e;for(var t,r=0,n=[],o=function(){var o=t,i=o[1],u=o[2],d=o[3],l=o[4],a=p[u];if(a){var f=h.test(d),g=d.replace(h,"");n.push(e.slice(r,t.index)),n.push(function(e){return""+i+u+": "+a(g)(e)+(f?" !important":"")+";"+l}),r=t.index+t[0].length}};t=b.exec(e);)o();return n.push(e.slice(r,e.length)),n}function O(){var e=t.css.apply(void 0,arguments);return e.reduce(function(e,t){var r=e.length-1,n=e[r];return"string"==typeof n&&"string"==typeof t?e[r]=n+t:e.push(t),e},[]).map(S)}function _(e){return function e(t){var r=function(){return t([O.apply(void 0,arguments)])};return r.attrs=function(r){return e(t.attrs(r))},r.withConfig=function(r){return e(t.withConfig(r))},r}(o(e))}var x=_(r.createSystemComponent(n))(i);_.box=_(x),Object.keys(o).forEach(function(e){_[e]=_(e),_[e+"Box"]=_(x.withComponent(r.createSystemComponent(n,e)))}),Object.defineProperty(e,"ServerStyleSheet",{enumerable:!0,get:function(){return t.ServerStyleSheet}}),Object.defineProperty(e,"StyleSheetConsumer",{enumerable:!0,get:function(){return t.StyleSheetConsumer}}),Object.defineProperty(e,"StyleSheetContext",{enumerable:!0,get:function(){return t.StyleSheetContext}}),Object.defineProperty(e,"StyleSheetManager",{enumerable:!0,get:function(){return t.StyleSheetManager}}),Object.defineProperty(e,"ThemeConsumer",{enumerable:!0,get:function(){return t.ThemeConsumer}}),Object.defineProperty(e,"ThemeContext",{enumerable:!0,get:function(){return t.ThemeContext}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return t.ThemeProvider}}),Object.defineProperty(e,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",{enumerable:!0,get:function(){return t.__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS}}),Object.defineProperty(e,"isStyledComponent",{enumerable:!0,get:function(){return t.isStyledComponent}}),Object.defineProperty(e,"keyframes",{enumerable:!0,get:function(){return t.keyframes}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return t.withTheme}}),e.Box=x,e.createGlobalStyle=function(){return t.createGlobalStyle([O.apply(void 0,arguments)])},e.css=O,e.default=_,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -113,9 +113,15 @@ (function (global, factory) {

// getZIndex
'z-index': system.getZIndex,
'z-index':
/*#__PURE__*/
getNumber(system.getZIndex),
// getFont
'font-family': system.getFont,
// getFontSize
'font-size': system.getFontSize,
'font-size':
/*#__PURE__*/
getNumber(system.getFontSize),
// getLineHeight
'line-height': system.getLineHeight,
'line-height':
/*#__PURE__*/
getNumber(system.getLineHeight),
// getFontWeight

@@ -122,0 +128,0 @@ 'font-weight': system.getFontWeight,

{
"name": "@xstyled/styled-components",
"description": "Xstyled bindings for styled-components.",
"version": "1.8.2",
"version": "1.8.3",
"keywords": [

@@ -29,5 +29,5 @@ "styled-components",

"@babel/runtime": "^7.4.4",
"@xstyled/core": "^1.8.2"
"@xstyled/core": "^1.8.3"
},
"gitHead": "0d96082812fbd3098bb73ed0803dbdf0830723aa"
"gitHead": "68c9335075c4746c0e655b926f7761cca6f13690"
}
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