create-emotion-styled
Advanced tools
Comparing version 9.2.0 to 9.2.1
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("prop-types")):"function"==typeof define&&define.amd?define(["prop-types"],t):e["create-emotion-styled"]=t(e.PropTypes)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t,r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o=("object"==typeof Reflect&&Reflect.construct,"__EMOTION_THEMING__"),v=((t={})[o]=e.object,t);var n,i;var b=(n=RegExp.prototype.test.bind(/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan)|(on[A-Z].*)|((data|aria)-.*))$/),i={},function(e){return void 0===i[e]&&(i[e]=n(e)),i[e]}),k=function(e){return"theme"!==e&&"innerRef"!==e},x=function(){return!0},_=function(e,t){for(var r=2,o=arguments.length;r<o;r++){var n=arguments[r],i=void 0;for(i in n)e(i)&&(t[i]=n[i])}return t};function P(){void 0!==this.context[o]&&(this.unsubscribe=this.context[o].subscribe(function(e){this.setState({theme:e})}.bind(this)))}function S(){void 0!==this.unsubscribe&&this.context[o].unsubscribe(this.unsubscribe)}return function(h,g){var y=function(a,s){var l,c,p,d;void 0!==s&&(l=s.e,c=s.label,p=s.target,d=a.__emotion_forwardProp&&s.shouldForwardProp?function(e){return a.__emotion_forwardProp(e)&&s.shouldForwardProp(e)}:s.shouldForwardProp);var u=a.__emotion_real===a,f=void 0===l&&u&&a.__emotion_base||a;function m(){return"."+p}return"function"!=typeof d&&(d="string"==typeof f&&f.charAt(0)===f.charAt(0).toLowerCase()?b:k),function(){var e=arguments,n=u&&void 0!==a.__emotion_styles?a.__emotion_styles.slice(0):[];if(void 0!==c&&n.push("label:"+c+";"),void 0===l)if(null==e[0]||void 0===e[0].raw)n.push.apply(n,e);else{n.push(e[0][0]);for(var t=e.length,r=1;r<t;r++)n.push(e[r],e[0][r])}function i(){var e=this.props,t=this.state;this.mergedProps=_(x,{},e,{theme:null!==t&&t.theme||e.theme||{}});var r="",o=[];return e.className&&(r+=void 0===l?h.getRegisteredStyles(o,e.className):e.className+" "),r+=void 0===l?h.css.apply(this,n.concat(o)):l,void 0!==p&&(r+=" "+p),g.createElement(f,_(d,{},e,{className:r,ref:e.innerRef}))}var o=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),(t.prototype.constructor=t).__proto__=r;var n=o.prototype;return n.componentWillMount=P,n.componentWillUnmount=S,n.render=i,o}(g.Component);return o.displayName=void 0!==c?c:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",void 0!==a.defaultProps&&(o.defaultProps=a.defaultProps),o.contextTypes=v,o.__emotion_styles=n,o.__emotion_base=f,(o.__emotion_real=o).__emotion_forwardProp=d,Object.defineProperty(o,"toString",{enumerable:!1,value:m}),o.withComponent=function(e,t){return y(e,void 0!==t?_(x,{},s,t):s).apply(void 0,n)},o}};return y}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("prop-types")):"function"==typeof define&&define.amd?define(["prop-types"],t):e["create-emotion-styled"]=t(e.PropTypes)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t,r="__EMOTION_THEMING__",v=((t={})[r]=e.object,t);var o,n;var i=(o=RegExp.prototype.test.bind(/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan)|(on[A-Z].*)|((data|aria)-.*))$/),n={},function(e){return void 0===n[e]&&(n[e]=o(e)),n[e]}),k=function(e){return"theme"!==e&&"innerRef"!==e},b=function(){return!0},x=function(e,t){for(var r=2,o=arguments.length;r<o;r++){var n=arguments[r],i=void 0;for(i in n)e(i)&&(t[i]=n[i])}return t};function _(){void 0!==this.context[r]&&(this.unsubscribe=this.context[r].subscribe(function(e){this.setState({theme:e})}.bind(this)))}function S(){void 0!==this.unsubscribe&&this.context[r].unsubscribe(this.unsubscribe)}return function(h,g){var y=function(a,s){var l,c,p,d;void 0!==s&&(l=s.e,c=s.label,p=s.target,d=a.__emotion_forwardProp&&s.shouldForwardProp?function(e){return a.__emotion_forwardProp(e)&&s.shouldForwardProp(e)}:s.shouldForwardProp);var u=a.__emotion_real===a,m=void 0===l&&u&&a.__emotion_base||a;function f(){return"."+p}return"function"!=typeof d&&(d="string"==typeof m&&m.charAt(0)===m.charAt(0).toLowerCase()?i:k),function(){var e=arguments,n=u&&void 0!==a.__emotion_styles?a.__emotion_styles.slice(0):[];if(void 0!==c&&n.push("label:"+c+";"),void 0===l)if(null==e[0]||void 0===e[0].raw)n.push.apply(n,e);else{n.push(e[0][0]);for(var t=e.length,r=1;r<t;r++)n.push(e[r],e[0][r])}function i(){var e=this.props,t=this.state;this.mergedProps=x(b,{},e,{theme:null!==t&&t.theme||e.theme||{}});var r="",o=[];return e.className&&(r+=void 0===l?h.getRegisteredStyles(o,e.className):e.className+" "),r+=void 0===l?h.css.apply(this,n.concat(o)):l,void 0!==p&&(r+=" "+p),g.createElement(m,x(d,{},e,{className:r,ref:e.innerRef}))}var o=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),(t.prototype.constructor=t).__proto__=r;var n=o.prototype;return n.componentWillMount=_,n.componentWillUnmount=S,n.render=i,o}(g.Component);return o.displayName=void 0!==c?c:"Styled("+("string"==typeof m?m:m.displayName||m.name||"Component")+")",void 0!==a.defaultProps&&(o.defaultProps=a.defaultProps),o.contextTypes=v,o.__emotion_styles=n,o.__emotion_base=m,(o.__emotion_real=o).__emotion_forwardProp=d,Object.defineProperty(o,"toString",{enumerable:!1,value:f}),o.withComponent=function(e,t){return y(e,void 0!==t?x(b,{},s,t):s).apply(void 0,n)},o}};return y}}); | ||
//# sourceMappingURL=emotion.umd.min.js.map |
@@ -14,15 +14,2 @@ 'use strict'; | ||
var _sPO = Object.setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
var _construct = typeof Reflect === "object" && Reflect.construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
var channel = '__EMOTION_THEMING__'; | ||
@@ -33,3 +20,2 @@ | ||
var _contextTypes; | ||
var contextTypes = (_contextTypes = {}, _contextTypes[channel] = PropTypes.object, _contextTypes); | ||
@@ -80,3 +66,3 @@ | ||
function _get(target, property) { | ||
function _get$1(target, property) { | ||
switch (property) { | ||
@@ -240,3 +226,3 @@ // react-hot-loader tries to access this stuff | ||
_createStyled = new Proxy(_createStyled, { | ||
get: _get | ||
get: _get$1 | ||
}); | ||
@@ -243,0 +229,0 @@ } |
@@ -10,15 +10,2 @@ import PropTypes from 'prop-types'; | ||
var _sPO = Object.setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
var _construct = typeof Reflect === "object" && Reflect.construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
var channel = '__EMOTION_THEMING__'; | ||
@@ -29,3 +16,2 @@ | ||
var _contextTypes; | ||
var contextTypes = (_contextTypes = {}, _contextTypes[channel] = PropTypes.object, _contextTypes); | ||
@@ -76,3 +62,3 @@ | ||
function _get(target, property) { | ||
function _get$1(target, property) { | ||
switch (property) { | ||
@@ -236,3 +222,3 @@ // react-hot-loader tries to access this stuff | ||
_createStyled = new Proxy(_createStyled, { | ||
get: _get | ||
get: _get$1 | ||
}); | ||
@@ -239,0 +225,0 @@ } |
{ | ||
"name": "create-emotion-styled", | ||
"version": "9.2.0", | ||
"version": "9.2.1", | ||
"description": "The styled API for emotion", | ||
@@ -32,3 +32,3 @@ "main": "dist/index.cjs.js", | ||
"rimraf": "^2.6.1", | ||
"rollup": "^0.51.3" | ||
"rollup": "^0.60.1" | ||
}, | ||
@@ -35,0 +35,0 @@ "author": "Kye Hohenberger", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
84804
960