create-emotion-styled
Advanced tools
Comparing version 9.2.6 to 9.2.8
@@ -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.createEmotionStyled=t(null)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t,g="__EMOTION_THEMING__",y=((t={})[g]=e.object,t);var r,o;var i=(r=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|for|class)|(on[A-Z].*)|((data|aria)-.*))$/i),o={},function(e){return void 0===o[e]&&(o[e]=r(e)),o[e]}),v=function(e){return"theme"!==e&&"innerRef"!==e},k=function(){return!0},b=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};return function(m,f){var h=function(n,a){var s,l,c,p;void 0!==a&&(s=a.e,l=a.label,c=a.target,p=n.__emotion_forwardProp&&a.shouldForwardProp?function(e){return n.__emotion_forwardProp(e)&&a.shouldForwardProp(e)}:a.shouldForwardProp);var d=n.__emotion_real===n,u=void 0===s&&d&&n.__emotion_base||n;return"function"!=typeof p&&(p="string"==typeof u&&u.charAt(0)===u.charAt(0).toLowerCase()?i:v),function(){var e=arguments,i=d&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==l&&i.push("label:"+l+";"),void 0===s)if(null==e[0]||void 0===e[0].raw)i.push.apply(i,e);else{i.push(e[0][0]);for(var t=e.length,r=1;r<t;r++)i.push(e[r],e[0][r])}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=function(){void 0!==this.context[g]&&(this.unsubscribe=this.context[g].subscribe(function(e){this.setState({theme:e})}.bind(this)))},n.componentWillUnmount=function(){void 0!==this.unsubscribe&&this.context[g].unsubscribe(this.unsubscribe)},n.render=function(){var e=this.props,t=this.state;this.mergedProps=b(k,{},e,{theme:null!==t&&t.theme||e.theme||{}});var r="",o=[];return e.className&&(r+=void 0===s?m.getRegisteredStyles(o,e.className):e.className+" "),r+=void 0===s?m.css.apply(this,i.concat(o)):s,void 0!==c&&(r+=" "+c),f.createElement(u,b(p,{},e,{className:r,ref:e.innerRef}))},o}(f.Component);return o.displayName=void 0!==l?l:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",void 0!==n.defaultProps&&(o.defaultProps=n.defaultProps),o.contextTypes=y,o.__emotion_styles=i,o.__emotion_base=u,(o.__emotion_real=o).__emotion_forwardProp=p,Object.defineProperty(o,"toString",{enumerable:!1,value:function(){return"."+c}}),o.withComponent=function(e,t){return h(e,void 0!==t?b(k,{},a,t):a).apply(void 0,i)},o}};return h}}); | ||
!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.createEmotionStyled=t(null)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t,g="__EMOTION_THEMING__",y=((t={})[g]=e.object,t);var r,n,o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|valueLink|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|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|for|class)|(on[A-Z].*)|((data|aria|x)-.*))$/i;var i=(r=o.test.bind(o),n={},function(e){return void 0===n[e]&&(n[e]=r(e)),n[e]}),v=function(e){return"theme"!==e&&"innerRef"!==e},k=function(){return!0},b=function(e,t){for(var r=2,n=arguments.length;r<n;r++){var o=arguments[r],i=void 0;for(i in o)e(i)&&(t[i]=o[i])}return t};return function(m,f){var h=function(o,a){var s,l,c,p;void 0!==a&&(s=a.e,l=a.label,c=a.target,p=o.__emotion_forwardProp&&a.shouldForwardProp?function(e){return o.__emotion_forwardProp(e)&&a.shouldForwardProp(e)}:a.shouldForwardProp);var d=o.__emotion_real===o,u=void 0===s&&d&&o.__emotion_base||o;return"function"!=typeof p&&(p="string"==typeof u&&u.charAt(0)===u.charAt(0).toLowerCase()?i:v),function(){var e=arguments,i=d&&void 0!==o.__emotion_styles?o.__emotion_styles.slice(0):[];if(void 0!==l&&i.push("label:"+l+";"),void 0===s)if(null==e[0]||void 0===e[0].raw)i.push.apply(i,e);else{i.push(e[0][0]);for(var t=e.length,r=1;r<t;r++)i.push(e[r],e[0][r])}var n=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),(t.prototype.constructor=t).__proto__=r;var o=n.prototype;return o.componentWillMount=function(){void 0!==this.context[g]&&(this.unsubscribe=this.context[g].subscribe(function(e){this.setState({theme:e})}.bind(this)))},o.componentWillUnmount=function(){void 0!==this.unsubscribe&&this.context[g].unsubscribe(this.unsubscribe)},o.render=function(){var e=this.props,t=this.state;this.mergedProps=b(k,{},e,{theme:null!==t&&t.theme||e.theme||{}});var r="",n=[];return e.className&&(r+=void 0===s?m.getRegisteredStyles(n,e.className):e.className+" "),r+=void 0===s?m.css.apply(this,i.concat(n)):s,void 0!==c&&(r+=" "+c),f.createElement(u,b(p,{},e,{className:r,ref:e.innerRef}))},n}(f.Component);return n.displayName=void 0!==l?l:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",void 0!==o.defaultProps&&(n.defaultProps=o.defaultProps),n.contextTypes=y,n.__emotion_styles=i,n.__emotion_base=u,(n.__emotion_real=n).__emotion_forwardProp=p,Object.defineProperty(n,"toString",{value:function(){return"."+c}}),n.withComponent=function(e,t){return h(e,void 0!==t?b(k,{},a,t):a).apply(void 0,i)},n}};return h}}); | ||
//# sourceMappingURL=emotion.umd.min.js.map |
@@ -52,2 +52,4 @@ 'use strict'; | ||
var warnedAboutExtractStatic = false; | ||
function createEmotionStyled(emotion, view) { | ||
@@ -103,2 +105,5 @@ var _createStyled = function createStyled(tag, options) { | ||
} | ||
} else if (process.env.NODE_ENV !== 'production' && !warnedAboutExtractStatic) { | ||
console.warn('extractStatic is deprecated and will be removed in emotion@10. We recommend disabling extractStatic or using other libraries like linaria or css-literal-loader'); | ||
warnedAboutExtractStatic = true; | ||
} | ||
@@ -179,3 +184,2 @@ | ||
Object.defineProperty(Styled, 'toString', { | ||
enumerable: false, | ||
value: function value() { | ||
@@ -226,2 +230,1 @@ if (process.env.NODE_ENV !== 'production' && stableClassName === undefined) { | ||
module.exports = createEmotionStyled; | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -48,2 +48,4 @@ import PropTypes from 'prop-types'; | ||
var warnedAboutExtractStatic = false; | ||
function createEmotionStyled(emotion, view) { | ||
@@ -99,2 +101,5 @@ var _createStyled = function createStyled(tag, options) { | ||
} | ||
} else if (process.env.NODE_ENV !== 'production' && !warnedAboutExtractStatic) { | ||
console.warn('extractStatic is deprecated and will be removed in emotion@10. We recommend disabling extractStatic or using other libraries like linaria or css-literal-loader'); | ||
warnedAboutExtractStatic = true; | ||
} | ||
@@ -175,3 +180,2 @@ | ||
Object.defineProperty(Styled, 'toString', { | ||
enumerable: false, | ||
value: function value() { | ||
@@ -222,2 +226,1 @@ if (process.env.NODE_ENV !== 'production' && stableClassName === undefined) { | ||
export default createEmotionStyled; | ||
//# sourceMappingURL=index.esm.js.map |
{ | ||
"name": "create-emotion-styled", | ||
"version": "9.2.6", | ||
"version": "9.2.8", | ||
"description": "The styled API for emotion", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -7,3 +7,2 @@ # create-emotion-styled | ||
```jsx | ||
@@ -10,0 +9,0 @@ import React from 'react' |
@@ -15,2 +15,4 @@ // @flow | ||
let warnedAboutExtractStatic = false | ||
function createEmotionStyled(emotion: Emotion, view: ReactType) { | ||
@@ -75,2 +77,10 @@ let createStyled: CreateStyled = (tag, options) => { | ||
} | ||
} else if ( | ||
process.env.NODE_ENV !== 'production' && | ||
!warnedAboutExtractStatic | ||
) { | ||
console.warn( | ||
'extractStatic is deprecated and will be removed in emotion@10. We recommend disabling extractStatic or using other libraries like linaria or css-literal-loader' | ||
) | ||
warnedAboutExtractStatic = true | ||
} | ||
@@ -162,3 +172,2 @@ | ||
Object.defineProperty(Styled, 'toString', { | ||
enumerable: false, | ||
value() { | ||
@@ -165,0 +174,0 @@ if ( |
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
982
57917
14
17
13