@emotion/styled-base
Advanced tools
Comparing version 10.0.10 to 10.0.13
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
function _interopDefault(ex) { | ||
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex; | ||
} | ||
var _extends = _interopDefault(require('@babel/runtime/helpers/extends')); | ||
var React = require('react'); | ||
var isPropValid = _interopDefault(require('@emotion/is-prop-valid')); | ||
var _objectAssign = _interopDefault(require('object-assign')); | ||
var core = require('@emotion/core'); | ||
var utils = require('@emotion/utils'); | ||
var serialize = require('@emotion/serialize'); | ||
@@ -125,3 +134,2 @@ | ||
var ele = React.createElement(finalTag, newProps); | ||
return ele; | ||
@@ -148,3 +156,3 @@ }); | ||
Styled.withComponent = function (nextTag, nextOptions) { | ||
return createStyled(nextTag, nextOptions !== undefined ? _objectAssign({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
return createStyled(nextTag, nextOptions !== undefined ? _extends({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
}; | ||
@@ -151,0 +159,0 @@ |
@@ -0,4 +1,4 @@ | ||
import _extends from '@babel/runtime/helpers/extends'; | ||
import { createElement } from 'react'; | ||
import isPropValid from '@emotion/is-prop-valid'; | ||
import _objectAssign from 'object-assign'; | ||
import { withEmotionCache, ThemeContext } from '@emotion/core'; | ||
@@ -141,3 +141,3 @@ import { getRegisteredStyles, insertStyles } from '@emotion/utils'; | ||
Styled.withComponent = function (nextTag, nextOptions) { | ||
return createStyled(nextTag, nextOptions !== undefined ? _objectAssign({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
return createStyled(nextTag, nextOptions !== undefined ? _extends({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
}; | ||
@@ -144,0 +144,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
function _interopDefault(ex) { | ||
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex; | ||
} | ||
var _extends = _interopDefault(require('@babel/runtime/helpers/extends')); | ||
var React = require('react'); | ||
var isPropValid = _interopDefault(require('@emotion/is-prop-valid')); | ||
var _objectAssign = _interopDefault(require('object-assign')); | ||
var core = require('@emotion/core'); | ||
var utils = require('@emotion/utils'); | ||
var serialize = require('@emotion/serialize'); | ||
@@ -165,3 +174,3 @@ | ||
Styled.withComponent = function (nextTag, nextOptions) { | ||
return createStyled(nextTag, nextOptions !== undefined ? _objectAssign({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
return createStyled(nextTag, nextOptions !== undefined ? _extends({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
}; | ||
@@ -168,0 +177,0 @@ |
"use strict"; | ||
function _interopDefault(ex) { | ||
return ex && "object" == typeof ex && "default" in ex ? ex.default : ex; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: !0 }); | ||
var React = require("react"), | ||
isPropValid = _interopDefault(require("@emotion/is-prop-valid")), | ||
_objectAssign = _interopDefault(require("object-assign")), | ||
core = require("@emotion/core"), | ||
utils = require("@emotion/utils"), | ||
serialize = require("@emotion/serialize"), | ||
testOmitPropsOnStringTag = isPropValid, | ||
testOmitPropsOnComponent = function(key) { | ||
return "theme" !== key && "innerRef" !== key; | ||
}, | ||
getDefaultShouldForwardProp = function(tag) { | ||
return "string" == typeof tag && 96 < tag.charCodeAt(0) | ||
? testOmitPropsOnStringTag | ||
: testOmitPropsOnComponent; | ||
}, | ||
isBrowser = "undefined" != typeof document, | ||
createStyled = function createStyled(tag, options) { | ||
var identifierName, shouldForwardProp, targetClassName; | ||
void 0 !== options && | ||
((identifierName = options.label), | ||
(targetClassName = options.target), | ||
(shouldForwardProp = | ||
tag.__emotion_forwardProp && options.shouldForwardProp | ||
? function(propName) { | ||
return ( | ||
tag.__emotion_forwardProp(propName) && | ||
options.shouldForwardProp(propName) | ||
); | ||
} | ||
: options.shouldForwardProp)); | ||
var isReal = tag.__emotion_real === tag, | ||
baseTag = (isReal && tag.__emotion_base) || tag; | ||
"function" != typeof shouldForwardProp && | ||
isReal && | ||
(shouldForwardProp = tag.__emotion_forwardProp); | ||
var defaultShouldForwardProp = | ||
shouldForwardProp || getDefaultShouldForwardProp(baseTag), | ||
shouldUseAs = !defaultShouldForwardProp("as"); | ||
return function() { | ||
var args = arguments, | ||
styles = | ||
isReal && void 0 !== tag.__emotion_styles | ||
? tag.__emotion_styles.slice(0) | ||
: []; | ||
if ( | ||
(void 0 !== identifierName && | ||
styles.push("label:" + identifierName + ";"), | ||
null == args[0] || void 0 === args[0].raw) | ||
) | ||
styles.push.apply(styles, args); | ||
else { | ||
styles.push(args[0][0]); | ||
for (var len = args.length, i = 1; i < len; i++) | ||
styles.push(args[i], args[0][i]); | ||
} | ||
var Styled = core.withEmotionCache(function(props, context, ref) { | ||
return React.createElement(core.ThemeContext.Consumer, null, function( | ||
theme | ||
) { | ||
var finalTag = (shouldUseAs && props.as) || baseTag, | ||
className = "", | ||
classInterpolations = [], | ||
mergedProps = props; | ||
if (null == props.theme) { | ||
for (var key in ((mergedProps = {}), props)) | ||
mergedProps[key] = props[key]; | ||
mergedProps.theme = theme; | ||
} | ||
"string" == typeof props.className && | ||
(className += utils.getRegisteredStyles( | ||
context.registered, | ||
classInterpolations, | ||
props.className | ||
)); | ||
var serialized = serialize.serializeStyles( | ||
styles.concat(classInterpolations), | ||
context.registered, | ||
mergedProps | ||
), | ||
rules = utils.insertStyles( | ||
context, | ||
serialized, | ||
"string" == typeof finalTag | ||
); | ||
(className += context.key + "-" + serialized.name), | ||
void 0 !== targetClassName && (className += " " + targetClassName); | ||
var finalShouldForwardProp = | ||
shouldUseAs && void 0 === shouldForwardProp | ||
? getDefaultShouldForwardProp(finalTag) | ||
: defaultShouldForwardProp, | ||
newProps = {}; | ||
for (var _key in props) | ||
(shouldUseAs && "as" === _key) || | ||
(finalShouldForwardProp(_key) && (newProps[_key] = props[_key])); | ||
(newProps.className = className), | ||
(newProps.ref = ref || props.innerRef); | ||
var ele = React.createElement(finalTag, newProps); | ||
if (!isBrowser && void 0 !== rules) { | ||
for ( | ||
var _ref, | ||
serializedNames = serialized.name, | ||
next = serialized.next; | ||
void 0 !== next; | ||
) | ||
(serializedNames += " " + next.name), (next = next.next); | ||
return React.createElement( | ||
React.Fragment, | ||
null, | ||
React.createElement( | ||
"style", | ||
(((_ref = {})["data-emotion-" + context.key] = serializedNames), | ||
(_ref.dangerouslySetInnerHTML = { __html: rules }), | ||
(_ref.nonce = context.sheet.nonce), | ||
_ref) | ||
), | ||
ele | ||
); | ||
} | ||
return ele; | ||
}); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: !0 | ||
}); | ||
var _extends = _interopDefault(require("@babel/runtime/helpers/extends")), React = require("react"), isPropValid = _interopDefault(require("@emotion/is-prop-valid")), core = require("@emotion/core"), utils = require("@emotion/utils"), serialize = require("@emotion/serialize"), testOmitPropsOnStringTag = isPropValid, testOmitPropsOnComponent = function(key) { | ||
return "theme" !== key && "innerRef" !== key; | ||
}, getDefaultShouldForwardProp = function(tag) { | ||
return "string" == typeof tag && tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent; | ||
}, isBrowser = "undefined" != typeof document, createStyled = function createStyled(tag, options) { | ||
var identifierName, shouldForwardProp, targetClassName; | ||
void 0 !== options && (identifierName = options.label, targetClassName = options.target, | ||
shouldForwardProp = tag.__emotion_forwardProp && options.shouldForwardProp ? function(propName) { | ||
return tag.__emotion_forwardProp(propName) && options.shouldForwardProp(propName); | ||
} : options.shouldForwardProp); | ||
var isReal = tag.__emotion_real === tag, baseTag = isReal && tag.__emotion_base || tag; | ||
"function" != typeof shouldForwardProp && isReal && (shouldForwardProp = tag.__emotion_forwardProp); | ||
var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag), shouldUseAs = !defaultShouldForwardProp("as"); | ||
return function() { | ||
var args = arguments, styles = isReal && void 0 !== tag.__emotion_styles ? tag.__emotion_styles.slice(0) : []; | ||
if (void 0 !== identifierName && styles.push("label:" + identifierName + ";"), null == args[0] || void 0 === args[0].raw) styles.push.apply(styles, args); else { | ||
styles.push(args[0][0]); | ||
for (var len = args.length, i = 1; i < len; i++) styles.push(args[i], args[0][i]); | ||
} | ||
var Styled = core.withEmotionCache(function(props, context, ref) { | ||
return React.createElement(core.ThemeContext.Consumer, null, function(theme) { | ||
var finalTag = shouldUseAs && props.as || baseTag, className = "", classInterpolations = [], mergedProps = props; | ||
if (null == props.theme) { | ||
for (var key in mergedProps = {}, props) mergedProps[key] = props[key]; | ||
mergedProps.theme = theme; | ||
} | ||
"string" == typeof props.className && (className += utils.getRegisteredStyles(context.registered, classInterpolations, props.className)); | ||
var serialized = serialize.serializeStyles(styles.concat(classInterpolations), context.registered, mergedProps), rules = utils.insertStyles(context, serialized, "string" == typeof finalTag); | ||
className += context.key + "-" + serialized.name, void 0 !== targetClassName && (className += " " + targetClassName); | ||
var finalShouldForwardProp = shouldUseAs && void 0 === shouldForwardProp ? getDefaultShouldForwardProp(finalTag) : defaultShouldForwardProp, newProps = {}; | ||
for (var _key in props) shouldUseAs && "as" === _key || finalShouldForwardProp(_key) && (newProps[_key] = props[_key]); | ||
newProps.className = className, newProps.ref = ref || props.innerRef; | ||
var ele = React.createElement(finalTag, newProps); | ||
if (!isBrowser && void 0 !== rules) { | ||
for (var _ref, serializedNames = serialized.name, next = serialized.next; void 0 !== next; ) serializedNames += " " + next.name, | ||
next = next.next; | ||
return React.createElement(React.Fragment, null, React.createElement("style", ((_ref = {})["data-emotion-" + context.key] = serializedNames, | ||
_ref.dangerouslySetInnerHTML = { | ||
__html: rules | ||
}, _ref.nonce = context.sheet.nonce, _ref)), ele); | ||
} | ||
return ele; | ||
}); | ||
return ( | ||
(Styled.displayName = | ||
void 0 !== identifierName | ||
? identifierName | ||
: "Styled(" + | ||
("string" == typeof baseTag | ||
? baseTag | ||
: baseTag.displayName || baseTag.name || "Component") + | ||
")"), | ||
(Styled.defaultProps = tag.defaultProps), | ||
((Styled.__emotion_real = Styled).__emotion_base = baseTag), | ||
(Styled.__emotion_styles = styles), | ||
(Styled.__emotion_forwardProp = shouldForwardProp), | ||
Object.defineProperty(Styled, "toString", { | ||
value: function() { | ||
return "." + targetClassName; | ||
} | ||
}), | ||
(Styled.withComponent = function(nextTag, nextOptions) { | ||
return createStyled( | ||
nextTag, | ||
void 0 !== nextOptions | ||
? _objectAssign({}, options || {}, nextOptions) | ||
: options | ||
).apply(void 0, styles); | ||
}), | ||
Styled | ||
); | ||
}; | ||
}); | ||
return Styled.displayName = void 0 !== identifierName ? identifierName : "Styled(" + ("string" == typeof baseTag ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")", | ||
Styled.defaultProps = tag.defaultProps, Styled.__emotion_real = Styled, Styled.__emotion_base = baseTag, | ||
Styled.__emotion_styles = styles, Styled.__emotion_forwardProp = shouldForwardProp, | ||
Object.defineProperty(Styled, "toString", { | ||
value: function() { | ||
return "." + targetClassName; | ||
} | ||
}), Styled.withComponent = function(nextTag, nextOptions) { | ||
return createStyled(nextTag, void 0 !== nextOptions ? _extends({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
}, Styled; | ||
}; | ||
}; | ||
exports.default = createStyled; |
@@ -0,4 +1,4 @@ | ||
import _extends from '@babel/runtime/helpers/extends'; | ||
import { createElement, Fragment } from 'react'; | ||
import isPropValid from '@emotion/is-prop-valid'; | ||
import _objectAssign from 'object-assign'; | ||
import { withEmotionCache, ThemeContext } from '@emotion/core'; | ||
@@ -159,3 +159,3 @@ import { getRegisteredStyles, insertStyles } from '@emotion/utils'; | ||
Styled.withComponent = function (nextTag, nextOptions) { | ||
return createStyled(nextTag, nextOptions !== undefined ? _objectAssign({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
return createStyled(nextTag, nextOptions !== undefined ? _extends({}, options || {}, nextOptions) : options).apply(void 0, styles); | ||
}; | ||
@@ -162,0 +162,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("@emotion/core")):"function"==typeof define&&define.amd?define(["react","@emotion/core"],t):e.emotionStyledBase=t(e.React,e.emotionCore)}(this,function(w,c){"use strict";function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function e(t){var r={};return function(e){return void 0===r[e]&&(r[e]=t(e)),r[e]}}var t=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|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|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=e(function(e){return t.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),n=function(e){return"theme"!==e&&"innerRef"!==e},_=function(e){return"string"==typeof e&&96<e.charCodeAt(0)?r:n};var o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=e(function(e){return e.replace(i,"-$&").toLowerCase()}),u=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(a,function(e,t,r){return S={name:t,styles:r,next:S},t}))}return 1!==o[e]&&45!==e.charCodeAt(1)&&"number"==typeof t&&0!==t?t+"px":t};function A(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return S={name:r.name,styles:r.styles,next:S},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)S={name:o.name,styles:o.styles,next:S},o=o.next;return r.styles}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=A(e,t,r[o],!1);else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":n+=l(i)+":"+u(i,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]])n+=i+"{"+A(e,t,a,!1)+"}";else for(var s=0;s<a.length;s++)n+=l(i)+":"+u(i,a[s])+";"}return n}(e,t,r);case"function":if(void 0!==e){var i=S,a=r(e);return S=i,A(e,t,a,n)}default:if(null==t)return r;var s=t[r];return void 0===s||n?r:s}}var S,P=/label:\s*([^\s;\n{]+)\s*;/g;return function o(i,a){var s,v,x;void 0!==a&&(s=a.label,x=a.target,v=i.__emotion_forwardProp&&a.shouldForwardProp?function(e){return i.__emotion_forwardProp(e)&&a.shouldForwardProp(e)}:a.shouldForwardProp);var l=i.__emotion_real===i,k=l&&i.__emotion_base||i;"function"!=typeof v&&l&&(v=i.__emotion_forwardProp);var b=v||_(k),C=!b("as");return function(){var e=arguments,y=l&&void 0!==i.__emotion_styles?i.__emotion_styles.slice(0):[];if(void 0!==s&&y.push("label:"+s+";"),null==e[0]||void 0===e[0].raw)y.push.apply(y,e);else{y.push(e[0][0]);for(var t=e.length,r=1;r<t;r++)y.push(e[r],e[0][r])}var n=c.withEmotionCache(function(m,h,g){return w.createElement(c.ThemeContext.Consumer,null,function(e){var t,r,n,o,i=C&&m.as||k,a="",s=[],l=m;if(null==m.theme){for(var c in l={},m)l[c]=m[c];l.theme=e}"string"==typeof m.className&&(a+=(t=h.registered,r=s,n=m.className,o="",n.split(" ").forEach(function(e){void 0!==t[e]?r.push(t[e]):o+=e+" "}),o));var d=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";S=void 0;var i=e[0];null==i||void 0===i.raw?o+=A(r,t,i,n=!1):o+=i[0];for(var a=1;a<e.length;a++)o+=A(r,t,e[a],46===o.charCodeAt(o.length-1)),n&&(o+=i[a]);P.lastIndex=0;for(var s,l="";null!==(s=P.exec(o));)l+="-"+s[1];return{name:function(e){for(var t,r=e.length,n=r^r,o=0;4<=r;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)}(o)+l,styles:o,next:S}}(y.concat(s),h.registered,l);!function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name])for(var o=t;e.insert("."+n,o,e.sheet,!0),void 0!==(o=o.next););}(h,d,"string"==typeof i),a+=h.key+"-"+d.name,void 0!==x&&(a+=" "+x);var u=C&&void 0===v?_(i):b,p={};for(var f in m)C&&"as"===f||u(f)&&(p[f]=m[f]);return p.className=a,p.ref=g||m.innerRef,w.createElement(i,p)})});return n.displayName=void 0!==s?s:"Styled("+("string"==typeof k?k:k.displayName||k.name||"Component")+")",n.defaultProps=i.defaultProps,(n.__emotion_real=n).__emotion_base=k,n.__emotion_styles=y,n.__emotion_forwardProp=v,Object.defineProperty(n,"toString",{value:function(){return"."+x}}),n.withComponent=function(e,t){return o(e,void 0!==t?d({},a||{},t):a).apply(void 0,y)},n}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("@emotion/core")):"function"==typeof define&&define.amd?define(["react","@emotion/core"],t):(e=e||self).emotionStyledBase=t(e.React,e.emotionCore)}(this,function(e,t){"use strict";var r,n=(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}(r={exports:{}},r.exports),r.exports);function o(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|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|decoding|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|loading|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|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=o(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),s=function(e){return"theme"!==e&&"innerRef"!==e},l=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?a:s};var c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},d=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p=function(e){return 45===e.charCodeAt(1)},f=o(function(e){return p(e)?e:e.replace(d,"-$&").toLowerCase()}),m=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(u,function(e,t,r){return g={name:t,styles:r,next:g},t}))}return 1===c[e]||p(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return g={name:r.name,styles:r.styles,next:g},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)g={name:o.name,styles:o.styles,next:g},o=o.next;return r.styles}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=h(e,t,r[o],!1);else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":n+=f(i)+":"+m(i,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]])n+=i+"{"+h(e,t,a,!1)+"}";else for(var s=0;s<a.length;s++)n+=f(i)+":"+m(i,a[s])+";"}return n}(e,t,r);case"function":if(void 0!==e){var i=g,a=r(e);return g=i,h(e,t,a,n)}default:if(null==t)return r;var s=t[r];return void 0===s||n?r:s}}var g,y=/label:\s*([^\s;\n{]+)\s*;/g;return function r(o,i){var a,s,c;void 0!==i&&(a=i.label,c=i.target,s=o.__emotion_forwardProp&&i.shouldForwardProp?function(e){return o.__emotion_forwardProp(e)&&i.shouldForwardProp(e)}:i.shouldForwardProp);var d=o.__emotion_real===o,u=d&&o.__emotion_base||o;"function"!=typeof s&&d&&(s=o.__emotion_forwardProp);var p=s||l(u),f=!p("as");return function(){var m=arguments,v=d&&void 0!==o.__emotion_styles?o.__emotion_styles.slice(0):[];if(void 0!==a&&v.push("label:"+a+";"),null==m[0]||void 0===m[0].raw)v.push.apply(v,m);else{v.push(m[0][0]);for(var x=m.length,k=1;k<x;k++)v.push(m[k],m[0][k])}var b=t.withEmotionCache(function(r,n,o){return e.createElement(t.ThemeContext.Consumer,null,function(t){var i,a,d,m,x=f&&r.as||u,k="",b=[],C=r;if(null==r.theme){for(var w in C={},r)C[w]=r[w];C.theme=t}"string"==typeof r.className&&(k+=(i=n.registered,a=b,d=r.className,m="",d.split(" ").forEach(function(e){void 0!==i[e]?a.push(i[e]):m+=e+" "}),m));var _=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";g=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=h(r,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=h(r,t,e[a],46===o.charCodeAt(o.length-1)),n&&(o+=i[a]);y.lastIndex=0;for(var s,l="";null!==(s=y.exec(o));)l+="-"+s[1];return{name:function(e){for(var t,r=e.length,n=r^r,o=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)}(o)+l,styles:o,next:g}}(v.concat(b),n.registered,C);!function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+n,o,e.sheet,!0),o=o.next}while(void 0!==o)}}(n,_,"string"==typeof x),k+=n.key+"-"+_.name,void 0!==c&&(k+=" "+c);var A=f&&void 0===s?l(x):p,S={};for(var P in r)f&&"as"===P||A(P)&&(S[P]=r[P]);return S.className=k,S.ref=o||r.innerRef,e.createElement(x,S)})});return b.displayName=void 0!==a?a:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",b.defaultProps=o.defaultProps,b.__emotion_real=b,b.__emotion_base=u,b.__emotion_styles=v,b.__emotion_forwardProp=s,Object.defineProperty(b,"toString",{value:function(){return"."+c}}),b.withComponent=function(e,t){return r(e,void 0!==t?n({},i||{},t):i).apply(void 0,v)},b}}}); | ||
//# sourceMappingURL=styled-base.umd.min.js.map |
{ | ||
"name": "@emotion/styled-base", | ||
"version": "10.0.10", | ||
"version": "10.0.13", | ||
"description": "base styled API for emotion", | ||
@@ -18,6 +18,6 @@ "main": "dist/styled-base.cjs.js", | ||
"dependencies": { | ||
"@emotion/is-prop-valid": "0.7.3", | ||
"@emotion/serialize": "^0.11.6", | ||
"@emotion/utils": "0.11.1", | ||
"object-assign": "^4.1.1" | ||
"@babel/runtime": "^7.4.3", | ||
"@emotion/is-prop-valid": "0.8.1", | ||
"@emotion/serialize": "^0.11.7", | ||
"@emotion/utils": "0.11.1" | ||
}, | ||
@@ -44,2 +44,2 @@ "devDependencies": { | ||
} | ||
} | ||
} |
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
89915
18
1246
+ Added@babel/runtime@^7.4.3
+ Added@emotion/is-prop-valid@0.8.1(transitive)
- Removedobject-assign@^4.1.1
- Removed@emotion/is-prop-valid@0.7.3(transitive)
- Removedobject-assign@4.1.1(transitive)
Updated@emotion/is-prop-valid@0.8.1
Updated@emotion/serialize@^0.11.7