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.3 to 1.8.4

11

CHANGELOG.md

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

## [1.8.4](https://github.com/smooth-code/xstyled/compare/v1.8.3...v1.8.4) (2019-07-15)
### Bug Fixes
* do not export styled-components internals ([3f98ca5](https://github.com/smooth-code/xstyled/commit/3f98ca5)), closes [#37](https://github.com/smooth-code/xstyled/issues/37)
## [1.8.3](https://github.com/smooth-code/xstyled/compare/v1.8.2...v1.8.3) (2019-07-09)

@@ -8,0 +19,0 @@

6

dist/xstyled-styled-components.cjs.js

@@ -103,8 +103,2 @@ 'use strict';

});
Object.defineProperty(exports, '__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS', {
enumerable: true,
get: function () {
return scStyled.__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS;
}
});
Object.defineProperty(exports, 'isStyledComponent', {

@@ -111,0 +105,0 @@ enumerable: true,

2

dist/xstyled-styled-components.es.js
import scStyled, { css as css$1, createGlobalStyle as createGlobalStyle$1 } from 'styled-components';
export { ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, __DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS, isStyledComponent, keyframes, withTheme } from 'styled-components';
export { ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, isStyledComponent, keyframes, withTheme } from 'styled-components';
import { flattenStrings, transform, createBox } from '@xstyled/core';

@@ -4,0 +4,0 @@ import React from 'react';

@@ -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":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})});
!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 d=function(e){return function(t){var r=Number(t);return e(Number.isNaN(r)?t:r)}},u=/\s+/,l=function(e){return function(t){var r=t.split(u);return function(t){return r.map(function(r){return e(r)(t)}).join(" ")}}},a=d(r.getSpace),f=l(a),g=d(r.getBorder),c=d(r.getBorderWidth),s=l(c),m=d(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(d(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":d(r.getZIndex),"font-family":r.getFont,"font-size":d(r.getFontSize),"line-height":d(r.getLineHeight),"font-weight":r.getFontWeight,"letter-spacing":d(r.getLetterSpacing),transition:r.getTransition},h=/(\s*)([^&{}:;\n]+):\s*([^&{}:;\n]+)(\s*);/g,b=/\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],d=o[2],u=o[3],l=o[4],a=p[d];if(a){var f=b.test(u),g=u.replace(b,"");n.push(e.slice(r,t.index)),n.push(function(e){return""+i+d+": "+a(g)(e)+(f?" !important":"")+";"+l}),r=t.index+t[0].length}};t=h.exec(e);)o();return n.push(e.slice(r,e.length)),n}function x(){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 C(e){return function e(t){var r=function(){return t([x.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 v=C(r.createSystemComponent(n))(i);C.box=C(v),Object.keys(o).forEach(function(e){C[e]=C(e),C[e+"Box"]=C(v.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,"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=v,e.createGlobalStyle=function(){return t.createGlobalStyle([x.apply(void 0,arguments)])},e.css=x,e.default=C,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -280,8 +280,2 @@ (function (global, factory) {

});
Object.defineProperty(exports, '__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS', {
enumerable: true,
get: function () {
return scStyled.__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS;
}
});
Object.defineProperty(exports, 'isStyledComponent', {

@@ -288,0 +282,0 @@ enumerable: true,

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

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

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