@leancodepl/styled-tools 9.7.4 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.js +13 -1252
- package/dist/index.umd.cjs +1 -60
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,60 +1 @@
|
|
|
1
|
-
(function(q,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(q=typeof globalThis<"u"?globalThis:q||self,x(q["@leancodepl/styled-tools"]={},q.o))})(this,(function(q,x){"use strict";var R=function(){return R=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},R.apply(this,arguments)};function Q(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Zt(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Jt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/,Qt=Zt(function(e){return Jt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),A="-ms-",pe="-moz-",h="-webkit-",st="comm",ye="rule",ze="decl",er="@import",tr="@namespace",it="@keyframes",rr="@layer",at=Math.abs,Le=String.fromCharCode,Fe=Object.assign;function nr(e,t){return T(e,0)^45?(((t<<2^T(e,0))<<2^T(e,1))<<2^T(e,2))<<2^T(e,3):0}function ct(e){return e.trim()}function F(e,t){return(e=t.exec(e))?e[0]:e}function f(e,t,r){return e.replace(t,r)}function ve(e,t,r){return e.indexOf(t,r)}function T(e,t){return e.charCodeAt(t)|0}function W(e,t,r){return e.slice(t,r)}function j(e){return e.length}function ut(e){return e.length}function fe(e,t){return t.push(e),e}function or(e,t){return e.map(t).join("")}function lt(e,t){return e.filter(function(r){return!F(r,t)})}var be=1,ee=1,pt=0,D=0,N=0,te="";function we(e,t,r,n,o,s,i,p){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:be,column:ee,length:i,return:"",siblings:p}}function G(e,t){return Fe(we("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function re(e){for(;e.root;)e=G(e.root,{children:[e]});fe(e,e.siblings)}function sr(){return N}function ir(){return N=D>0?T(te,--D):0,ee--,N===10&&(ee=1,be--),N}function M(){return N=D<pt?T(te,D++):0,ee++,N===10&&(ee=1,be++),N}function H(){return T(te,D)}function Se(){return D}function ke(e,t){return W(te,e,t)}function de(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ar(e){return be=ee=1,pt=j(te=e),D=0,[]}function cr(e){return te="",e}function Ve(e){return ct(ke(D-1,Be(e===91?e+2:e===40?e+1:e)))}function ur(e){for(;(N=H())&&N<33;)M();return de(e)>2||de(N)>3?"":" "}function lr(e,t){for(;--t&&M()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return ke(e,Se()+(t<6&&H()==32&&M()==32))}function Be(e){for(;M();)switch(N){case e:return D;case 34:case 39:e!==34&&e!==39&&Be(N);break;case 40:e===41&&Be(e);break;case 92:M();break}return D}function pr(e,t){for(;M()&&e+N!==57;)if(e+N===84&&H()===47)break;return"/*"+ke(t,D-1)+"*"+Le(e===47?e:M())}function fr(e){for(;!de(H());)M();return ke(e,D)}function dr(e){return cr(Ae("",null,null,null,[""],e=ar(e),0,[0],e))}function Ae(e,t,r,n,o,s,i,p,u){for(var b=0,m=0,g=i,w=0,v=0,S=0,C=1,_=1,O=1,E=0,c="",d=o,y=s,l=n,a=c;_;)switch(S=E,E=M()){case 40:if(S!=108&&T(a,g-1)==58){ve(a+=f(Ve(E),"&","&\f"),"&\f",at(b?p[b-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:a+=Ve(E);break;case 9:case 10:case 13:case 32:a+=ur(S);break;case 92:a+=lr(Se()-1,7);continue;case 47:switch(H()){case 42:case 47:fe(hr(pr(M(),Se()),t,r,u),u),(de(S||1)==5||de(H()||1)==5)&&j(a)&&W(a,-1,void 0)!==" "&&(a+=" ");break;default:a+="/"}break;case 123*C:p[b++]=j(a)*O;case 125*C:case 59:case 0:switch(E){case 0:case 125:_=0;case 59+m:O==-1&&(a=f(a,/\f/g,"")),v>0&&(j(a)-g||C===0&&S===47)&&fe(v>32?dt(a+";",n,r,g-1,u):dt(f(a," ","")+";",n,r,g-2,u),u);break;case 59:a+=";";default:if(fe(l=ft(a,t,r,b,m,o,p,c,d=[],y=[],g,s),s),E===123)if(m===0)Ae(a,t,l,l,d,s,g,p,y);else{switch(w){case 99:if(T(a,3)===110)break;case 108:if(T(a,2)===97)break;default:m=0;case 100:case 109:case 115:}m?Ae(e,l,l,n&&fe(ft(e,l,l,0,0,o,p,c,o,d=[],g,y),y),o,y,g,p,n?d:y):Ae(a,l,l,l,[""],y,0,p,y)}}b=m=v=0,C=O=1,c=a="",g=i;break;case 58:g=1+j(a),v=S;default:if(C<1){if(E==123)--C;else if(E==125&&C++==0&&ir()==125)continue}switch(a+=Le(E),E*C){case 38:O=m>0?1:(a+="\f",-1);break;case 44:p[b++]=(j(a)-1)*O,O=1;break;case 64:H()===45&&(a+=Ve(M())),w=H(),m=g=j(c=a+=fr(Se())),E++;break;case 45:S===45&&j(a)==2&&(C=0)}}return s}function ft(e,t,r,n,o,s,i,p,u,b,m,g){for(var w=o-1,v=o===0?s:[""],S=ut(v),C=0,_=0,O=0;C<n;++C)for(var E=0,c=W(e,w+1,w=at(_=i[C])),d=e;E<S;++E)(d=ct(_>0?v[E]+" "+c:f(c,/&\f/g,v[E])))&&(u[O++]=d);return we(e,t,r,o===0?ye:p,u,b,m,g)}function hr(e,t,r,n){return we(e,t,r,st,Le(sr()),W(e,2,-2),0,n)}function dt(e,t,r,n,o){return we(e,t,r,ze,W(e,0,n),W(e,n+1,-1),n,o)}function ht(e,t,r){switch(nr(e,t)){case 5103:return h+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return h+e+e;case 4855:return h+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return h+e+pe+e+A+e+e;case 5936:switch(T(e,t+11)){case 114:return h+e+A+f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return h+e+A+f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return h+e+A+f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return h+e+A+e+e;case 6165:return h+e+A+"flex-"+e+e;case 5187:return h+e+f(e,/(\w+).+(:[^]+)/,h+"box-$1$2"+A+"flex-$1$2")+e;case 5443:return h+e+A+"flex-item-"+f(e,/flex-|-self/g,"")+(F(e,/flex-|baseline/)?"":A+"grid-row-"+f(e,/flex-|-self/g,""))+e;case 4675:return h+e+A+"flex-line-pack"+f(e,/align-content|flex-|-self/g,"")+e;case 5548:return h+e+A+f(e,"shrink","negative")+e;case 5292:return h+e+A+f(e,"basis","preferred-size")+e;case 6060:return h+"box-"+f(e,"-grow","")+h+e+A+f(e,"grow","positive")+e;case 4554:return h+f(e,/([^-])(transform)/g,"$1"+h+"$2")+e;case 6187:return f(f(f(e,/(zoom-|grab)/,h+"$1"),/(image-set)/,h+"$1"),e,"")+e;case 5495:case 3959:return f(e,/(image-set\([^]*)/,h+"$1$`$1");case 4968:return f(f(e,/(.+:)(flex-)?(.*)/,h+"box-pack:$3"+A+"flex-pack:$3"),/space-between/,"justify")+h+e+e;case 4200:if(!F(e,/flex-|baseline/))return A+"grid-column-align"+W(e,t)+e;break;case 2592:case 3360:return A+f(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,F(n.props,/grid-\w+-end/)})?~ve(e+(r=r[t].value),"span",0)?e:A+f(e,"-start","")+e+A+"grid-row-span:"+(~ve(r,"span",0)?F(r,/\d+/):+F(r,/\d+/)-+F(e,/\d+/))+";":A+f(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return F(n.props,/grid-\w+-start/)})?e:A+f(f(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return f(e,/(.+)-inline(.+)/,h+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(j(e)-1-t>6)switch(T(e,t+1)){case 109:if(T(e,t+4)!==45)break;case 102:return f(e,/(.+:)(.+)-([^]+)/,"$1"+h+"$2-$3$1"+pe+(T(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ve(e,"stretch",0)?ht(f(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return f(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,s,i,p,u,b){return A+o+":"+s+b+(i?A+o+"-span:"+(p?u:+u-+s)+b:"")+e});case 4949:if(T(e,t+6)===121)return f(e,":",":"+h)+e;break;case 6444:switch(T(e,T(e,14)===45?18:11)){case 120:return f(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+h+(T(e,14)===45?"inline-":"")+"box$3$1"+h+"$2$3$1"+A+"$2box$3")+e;case 100:return f(e,":",":"+A)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return f(e,"scroll-","scroll-snap-")+e}return e}function xe(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function mr(e,t,r,n){switch(e.type){case rr:if(e.children.length)break;case er:case tr:case ze:return e.return=e.return||e.value;case st:return"";case it:return e.return=e.value+"{"+xe(e.children,n)+"}";case ye:if(!j(e.value=e.props.join(",")))return""}return j(r=xe(e.children,n))?e.return=e.value+"{"+r+"}":""}function gr(e){var t=ut(e);return function(r,n,o,s){for(var i="",p=0;p<t;p++)i+=e[p](r,n,o,s)||"";return i}}function yr(e){return function(t){t.root||(t=t.return)&&e(t)}}function vr(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ze:e.return=ht(e.value,e.length,r);return;case it:return xe([G(e,{value:f(e.value,"@","@"+h)})],n);case ye:if(e.length)return or(r=e.props,function(o){switch(F(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":re(G(e,{props:[f(o,/:(read-\w+)/,":"+pe+"$1")]})),re(G(e,{props:[o]})),Fe(e,{props:lt(r,n)});break;case"::placeholder":re(G(e,{props:[f(o,/:(plac\w+)/,":"+h+"input-$1")]})),re(G(e,{props:[f(o,/:(plac\w+)/,":"+pe+"$1")]})),re(G(e,{props:[f(o,/:(plac\w+)/,A+"input-$1")]})),re(G(e,{props:[o]})),Fe(e,{props:lt(r,n)});break}return""})}}var br={animationIterationCount:1,aspectRatio: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,scale: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},U=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",mt="active",gt="data-styled-version",Ce="6.3.8",Ge=`/*!sc*/
|
|
2
|
-
`,Ee=typeof window<"u"&&typeof document<"u",Y=x.createContext===void 0,wr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),yt=/invalid hook call/i,Pe=new Set,Sr=function(e,t){if(process.env.NODE_ENV!=="production"){if(Y)return;var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
3
|
-
`)+`You may see this warning because you've called styled inside another component.
|
|
4
|
-
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
|
-
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var s=!0;console.error=function(i){for(var p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];yt.test(i)?(s=!1,Pe.delete(n)):o.apply(void 0,Q([i],p,!1))},typeof x.useState=="function"&&x.useState(null),s&&!Pe.has(n)&&(console.warn(n),Pe.add(n))}catch(i){yt.test(i.message)&&Pe.delete(n)}finally{console.error=o}}},Ne=Object.freeze([]),ne=Object.freeze({});function kr(e,t,r){return r===void 0&&(r=ne),e.theme!==r.theme&&e.theme||t||r.theme}var He=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Ar=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xr=/(^-|-$)/g;function vt(e){return e.replace(Ar,"-").replace(xr,"")}var Cr=/(a)(d)/gi,bt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ye(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=bt(t%52)+r;return(bt(t%52)+r).replace(Cr,"$1-$2")}var qe,X=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},wt=function(e){return X(5381,e)};function Er(e){return Ye(wt(e)>>>0)}function St(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function We(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var kt=typeof Symbol=="function"&&Symbol.for,At=kt?Symbol.for("react.memo"):60115,Pr=kt?Symbol.for("react.forward_ref"):60112,Nr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Or={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tr=((qe={})[Pr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qe[At]=xt,qe);function Ct(e){return("type"in(t=e)&&t.type.$$typeof)===At?xt:"$$typeof"in e?Tr[e.$$typeof]:Nr;var t}var Ir=Object.defineProperty,Rr=Object.getOwnPropertyNames,Et=Object.getOwnPropertySymbols,_r=Object.getOwnPropertyDescriptor,Dr=Object.getPrototypeOf,Pt=Object.prototype;function Nt(e,t,r){if(typeof t!="string"){if(Pt){var n=Dr(t);n&&n!==Pt&&Nt(e,n,r)}var o=Rr(t);Et&&(o=o.concat(Et(t)));for(var s=Ct(e),i=Ct(t),p=0;p<o.length;++p){var u=o[p];if(!(u in Or||r&&r[u]||i&&u in i||s&&u in s)){var b=_r(t,u);try{Ir(e,u,b)}catch{}}}}return e}function oe(e){return typeof e=="function"}function Ue(e){return typeof e=="object"&&"styledComponentId"in e}function K(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ot(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function se(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xe(e,t,r){if(r===void 0&&(r=!1),!r&&!se(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Xe(e[n],t[n]);else if(se(t))for(var n in t)e[n]=Xe(e[n],t[n]);return e}function Ke(e,t){Object.defineProperty(e,"toString",{value:t})}var $r=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
7
|
-
|
|
8
|
-
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
9
|
-
|
|
10
|
-
- Are you trying to reuse it across renders?
|
|
11
|
-
- Are you accidentally calling collectStyles twice?
|
|
12
|
-
|
|
13
|
-
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
14
|
-
|
|
15
|
-
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
16
|
-
|
|
17
|
-
- Does this error occur on the client and is your target falsy?
|
|
18
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
19
|
-
|
|
20
|
-
`,5:`The clone method cannot be used on the client!
|
|
21
|
-
|
|
22
|
-
- Are you running in a client-like environment on the server?
|
|
23
|
-
- Are you trying to run SSR on the client?
|
|
24
|
-
|
|
25
|
-
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
26
|
-
|
|
27
|
-
- Are you using a custom target that isn't mounted?
|
|
28
|
-
- Does your document not have a valid head element?
|
|
29
|
-
- Have you accidentally removed a style tag manually?
|
|
30
|
-
|
|
31
|
-
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
32
|
-
|
|
33
|
-
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
34
|
-
|
|
35
|
-
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
36
|
-
|
|
37
|
-
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
38
|
-
|
|
39
|
-
`,14:`ThemeProvider: "theme" prop is required.
|
|
40
|
-
|
|
41
|
-
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
42
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
43
|
-
as for instance in your render method then you may be running into this limitation.
|
|
44
|
-
|
|
45
|
-
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
46
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
47
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,s=e.length;o<s;o+=1)n.push(e[o]);return n.forEach(function(i){r=r.replace(/%[a-z]/,i)}),r}function Z(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(jr.apply(void 0,Q([$r[e]],t,!1)).trim())}var Mr=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,s=o;t>=s;)if((s<<=1)<0)throw Z(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var p=this.indexOfGroup(t+1),u=(i=0,r.length);i<u;i++)this.tag.insertRule(p,r[i])&&(this.groupSizes[t]++,p++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var s=n;s<o;s++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),s=o+n,i=o;i<s;i++)r+="".concat(this.tag.getRule(i)).concat(Ge);return r},e})(),zr=1<<30,Oe=new Map,Te=new Map,Ie=1,he=function(e){if(Oe.has(e))return Oe.get(e);for(;Te.has(Ie);)Ie++;var t=Ie++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>zr))throw Z(16,"".concat(t));return Oe.set(e,t),Te.set(t,e),t},Lr=function(e,t){Ie=t+1,Oe.set(e,t),Te.set(t,e)},Fr="style[".concat(U,"][").concat(gt,'="').concat(Ce,'"]'),Vr=new RegExp("^".concat(U,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Br=function(e,t,r){for(var n,o=r.split(","),s=0,i=o.length;s<i;s++)(n=o[s])&&e.registerName(t,n)},Gr=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ge),o=[],s=0,i=n.length;s<i;s++){var p=n[s].trim();if(p){var u=p.match(Vr);if(u){var b=0|parseInt(u[1],10),m=u[2];b!==0&&(Lr(m,b),Br(e,m,u[3]),e.getTag().insertRules(b,o)),o.length=0}else o.push(p)}}},Tt=function(e){for(var t=document.querySelectorAll(Fr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(U)!==mt&&(Gr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Hr(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var It=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(p){var u=Array.from(p.querySelectorAll("style[".concat(U,"]")));return u[u.length-1]})(r),s=o!==void 0?o.nextSibling:null;n.setAttribute(U,mt),n.setAttribute(gt,Ce);var i=Hr();return i&&n.setAttribute("nonce",i),r.insertBefore(n,s),n},Yr=(function(){function e(t){this.element=It(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,s=n.length;o<s;o++){var i=n[o];if(i.ownerNode===r)return i}throw Z(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),qr=(function(){function e(t){this.element=It(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Wr=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Rt=Ee,Ur={isServer:!Ee,useCSSOMInjection:!wr},_t=(function(){function e(t,r,n){t===void 0&&(t=ne),r===void 0&&(r={});var o=this;this.options=R(R({},Ur),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Ee&&Rt&&(Rt=!1,Tt(this)),Ke(this,function(){return(function(s){for(var i=s.getTag(),p=i.length,u="",b=function(g){var w=(function(O){return Te.get(O)})(g);if(w===void 0)return"continue";var v=s.names.get(w),S=i.getGroup(g);if(v===void 0||!v.size||S.length===0)return"continue";var C="".concat(U,".g").concat(g,'[id="').concat(w,'"]'),_="";v!==void 0&&v.forEach(function(O){O.length>0&&(_+="".concat(O,","))}),u+="".concat(S).concat(C,'{content:"').concat(_,'"}').concat(Ge)},m=0;m<p;m++)b(m);return u})(o)})}return e.registerId=function(t){return he(t)},e.prototype.rehydrate=function(){!this.server&&Ee&&Tt(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(R(R({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new Wr(o):n?new Yr(o):new qr(o)})(this.options),new Mr(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(he(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(he(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(he(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Xr=/&/g,ie=47;function Dt(e){if(e.indexOf("}")===-1)return!1;for(var t=e.length,r=0,n=0,o=!1,s=0;s<t;s++){var i=e.charCodeAt(s);if(n!==0||o||i!==ie||e.charCodeAt(s+1)!==42)if(o)i===42&&e.charCodeAt(s+1)===ie&&(o=!1,s++);else if(i!==34&&i!==39||s!==0&&e.charCodeAt(s-1)===92){if(n===0){if(i===123)r++;else if(i===125&&--r<0)return!0}}else n===0?n=i:n===i&&(n=0);else o=!0,s++}return r!==0||n!==0}function $t(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=$t(r.children,t)),r})}function Kr(e){var t,r,n,o=ne,s=o.options,i=s===void 0?ne:s,p=o.plugins,u=p===void 0?Ne:p,b=function(w,v,S){return S.startsWith(r)&&S.endsWith(r)&&S.replaceAll(r,"").length>0?".".concat(t):w},m=u.slice();m.push(function(w){w.type===ye&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(Xr,r).replace(n,b))}),i.prefix&&m.push(vr),m.push(mr);var g=function(w,v,S,C){v===void 0&&(v=""),S===void 0&&(S=""),C===void 0&&(C="&"),t=C,r=v,n=new RegExp("\\".concat(r,"\\b"),"g");var _=(function(c){if(!Dt(c))return c;for(var d=c.length,y="",l=0,a=0,P=0,I=!1,k=0;k<d;k++){var z=c.charCodeAt(k);if(P!==0||I||z!==ie||c.charCodeAt(k+1)!==42)if(I)z===42&&c.charCodeAt(k+1)===ie&&(I=!1,k++);else if(z!==34&&z!==39||k!==0&&c.charCodeAt(k-1)===92){if(P===0)if(z===123)a++;else if(z===125){if(--a<0){for(var L=k+1;L<d;){var ae=c.charCodeAt(L);if(ae===59||ae===10)break;L++}L<d&&c.charCodeAt(L)===59&&L++,a=0,k=L-1,l=L;continue}a===0&&(y+=c.substring(l,k+1),l=k+1)}else z===59&&a===0&&(y+=c.substring(l,k+1),l=k+1)}else P===0?P=z:P===z&&(P=0);else I=!0,k++}if(l<d){var _e=c.substring(l);Dt(_e)||(y+=_e)}return y})((function(c){if(c.indexOf("//")===-1)return c;for(var d=c.length,y=[],l=0,a=0,P=0,I=0;a<d;){var k=c.charCodeAt(a);if(k!==34&&k!==39||a!==0&&c.charCodeAt(a-1)===92)if(P===0)if(k===40&&a>=3&&(32|c.charCodeAt(a-1))==108&&(32|c.charCodeAt(a-2))==114&&(32|c.charCodeAt(a-3))==117)I=1,a++;else if(I>0)k===41?I--:k===40&&I++,a++;else if(k===ie&&a+1<d&&c.charCodeAt(a+1)===ie){for(a>l&&y.push(c.substring(l,a));a<d&&c.charCodeAt(a)!==10;)a++;l=a}else a++;else a++;else P===0?P=k:P===k&&(P=0),a++}return l===0?c:(l<d&&y.push(c.substring(l)),y.join(""))})(w)),O=dr(S||v?"".concat(S," ").concat(v," { ").concat(_," }"):_);i.namespace&&(O=$t(O,i.namespace));var E=[];return xe(O,gr(m.concat(yr(function(c){return E.push(c)})))),E};return g.hash=u.length?u.reduce(function(w,v){return v.name||Z(15),X(w,v.name)},5381).toString():"",g}var Zr=new _t,Ze=Kr(),Je={shouldForwardProp:void 0,styleSheet:Zr,stylis:Ze},jt=Y?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Je)}}:x.createContext(Je);jt.Consumer,Y||x.createContext(void 0);function Mt(){return Y?Je:x.useContext(jt)}var zt=(function(){function e(t,r){var n=this;this.inject=function(o,s){s===void 0&&(s=Ze);var i=n.name+s.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,s(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Ke(this,function(){throw Z(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ze),this.name+t.hash},e})();function Jr(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in br||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Qr=function(e){return e>="A"&&e<="Z"};function Lt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Qr(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ft=function(e){return e==null||e===!1||e===""},Vt=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!Ft(n)&&(Array.isArray(n)&&n.isCss||oe(n)?t.push("".concat(Lt(r),":"),n,";"):se(n)?t.push.apply(t,Q(Q(["".concat(r," {")],Vt(n),!1),["}"],!1)):t.push("".concat(Lt(r),": ").concat(Jr(r,n),";")))}return t};function J(e,t,r,n){if(Ft(e))return[];if(Ue(e))return[".".concat(e.styledComponentId)];if(oe(e)){if(!oe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof zt||se(o)||o===null||console.error("".concat(St(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),J(o,t,r,n)}var s;return e instanceof zt?r?(e.inject(r,n),[e.getName(n)]):[e]:se(e)?Vt(e):Array.isArray(e)?Array.prototype.concat.apply(Ne,e.map(function(i){return J(i,t,r,n)})):[e.toString()]}function en(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(oe(r)&&!Ue(r))return!1}return!0}var tn=wt(Ce),rn=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&en(t),this.componentId=r,this.baseHash=X(tn,r),this.baseStyle=n,_t.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=K(o,this.staticRulesId);else{var s=Ot(J(this.rules,t,r,n)),i=Ye(X(this.baseHash,s)>>>0);if(!r.hasNameForId(this.componentId,i)){var p=n(s,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,p)}o=K(o,i),this.staticRulesId=i}else{for(var u=X(this.baseHash,n.hash),b="",m=0;m<this.rules.length;m++){var g=this.rules[m];if(typeof g=="string")b+=g,process.env.NODE_ENV!=="production"&&(u=X(u,g));else if(g){var w=Ot(J(g,t,r,n));u=X(u,w+m),b+=w}}if(b){var v=Ye(u>>>0);if(!r.hasNameForId(this.componentId,v)){var S=n(b,".".concat(v),void 0,this.componentId);r.insertRules(this.componentId,v,S)}o=K(o,v)}}return{className:o,css:typeof window>"u"?r.getTag().getGroup(he(this.componentId)):""}},e})(),Qe=Y?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:x.createContext(void 0);Qe.Consumer;function nn(){var e=Y?void 0:x.useContext(Qe);if(!e)throw Z(18);return e}var et={},Bt=new Set;function on(e,t,r){var n=Ue(e),o=e,s=!We(e),i=t.attrs,p=i===void 0?Ne:i,u=t.componentId,b=u===void 0?(function(d,y){var l=typeof d!="string"?"sc":vt(d);et[l]=(et[l]||0)+1;var a="".concat(l,"-").concat(Er(Ce+l+et[l]));return y?"".concat(y,"-").concat(a):a})(t.displayName,t.parentComponentId):u,m=t.displayName,g=m===void 0?(function(d){return We(d)?"styled.".concat(d):"Styled(".concat(St(d),")")})(e):m,w=t.displayName&&t.componentId?"".concat(vt(t.displayName),"-").concat(t.componentId):t.componentId||b,v=n&&o.attrs?o.attrs.concat(p).filter(Boolean):p,S=t.shouldForwardProp;if(n&&o.shouldForwardProp){var C=o.shouldForwardProp;if(t.shouldForwardProp){var _=t.shouldForwardProp;S=function(d,y){return C(d,y)&&_(d,y)}}else S=C}var O=new rn(r,w,n?o.componentStyle:void 0);function E(d,y){return(function(l,a,P){var I=l.attrs,k=l.componentStyle,z=l.defaultProps,L=l.foldedComponentIds,ae=l.styledComponentId,_e=l.target,ln=Y?void 0:x.useContext(Qe),pn=Mt(),rt=l.shouldForwardProp||pn.shouldForwardProp;process.env.NODE_ENV!=="production"&&x.useDebugValue&&x.useDebugValue(ae);var Wt=kr(a,ln,z)||ne,V=(function($e,ce,je){for(var ue,B=R(R({},ce),{className:void 0,theme:je}),ot=0;ot<$e.length;ot+=1){var Me=oe(ue=$e[ot])?ue(B):ue;for(var le in Me)le==="className"?B.className=K(B.className,Me[le]):le==="style"?B.style=R(R({},B.style),Me[le]):B[le]=Me[le]}return"className"in ce&&typeof ce.className=="string"&&(B.className=K(B.className,ce.className)),B})(I,a,Wt),me=V.as||_e,ge={};for(var $ in V)V[$]===void 0||$[0]==="$"||$==="as"||$==="theme"&&V.theme===Wt||($==="forwardedAs"?ge.as=V.forwardedAs:rt&&!rt($,me)||(ge[$]=V[$],rt||process.env.NODE_ENV!=="development"||Qt($)||Bt.has($)||!He.has(me)||(Bt.add($),console.warn('styled-components: it looks like an unknown prop "'.concat($,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Ut=(function($e,ce){var je=Mt(),ue=$e.generateAndInjectStyles(ce,je.styleSheet,je.stylis);return process.env.NODE_ENV!=="production"&&x.useDebugValue&&x.useDebugValue(ue.className),ue})(k,V),De=Ut.className,Xt=Ut.css;process.env.NODE_ENV!=="production"&&l.warnTooManyClasses&&l.warnTooManyClasses(De);var nt=K(L,ae);De&&(nt+=" "+De),V.className&&(nt+=" "+V.className),ge[We(me)&&!He.has(me)?"class":"className"]=nt,P&&(ge.ref=P);var Kt=x.createElement(me,ge);return Y&&Xt?x.createElement(x.Fragment,null,x.createElement("style",{precedence:"styled-components",href:"sc-".concat(ae,"-").concat(De),children:Xt}),Kt):Kt})(c,d,y)}E.displayName=g;var c=x.forwardRef(E);return c.attrs=v,c.componentStyle=O,c.displayName=g,c.shouldForwardProp=S,c.foldedComponentIds=n?K(o.foldedComponentIds,o.styledComponentId):"",c.styledComponentId=w,c.target=n?o.target:e,Object.defineProperty(c,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(d){this._foldedDefaultProps=n?(function(y){for(var l=[],a=1;a<arguments.length;a++)l[a-1]=arguments[a];for(var P=0,I=l;P<I.length;P++)Xe(y,I[P],!0);return y})({},o.defaultProps,d):d}}),process.env.NODE_ENV!=="production"&&(Sr(g,w),c.warnTooManyClasses=(function(d,y){var l={},a=!1;return function(P){if(!a&&(l[P]=!0,Object.keys(l).length>=200)){var I=y?' with the id of "'.concat(y,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(d).concat(I,`.
|
|
48
|
-
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
|
-
Example:
|
|
50
|
-
const Component = styled.div.attrs(props => ({
|
|
51
|
-
style: {
|
|
52
|
-
background: props.background,
|
|
53
|
-
},
|
|
54
|
-
}))\`width: 100%;\`
|
|
55
|
-
|
|
56
|
-
<Component />`),a=!0,l={}}}})(g,w)),Ke(c,function(){return".".concat(c.styledComponentId)}),s&&Nt(c,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),c}function Gt(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Ht=function(e){return Object.assign(e,{isCss:!0})};function sn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(oe(e)||se(e))return Ht(J(Gt(Ne,Q([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?J(n):Ht(J(Gt(n,t)))}function tt(e,t,r){if(r===void 0&&(r=ne),!t)throw Z(1,t);var n=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,r,sn.apply(void 0,Q([o],s,!1)))};return n.attrs=function(o){return tt(e,t,R(R({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return tt(e,t,R(R({},r),o))},n}var Yt=function(e){return tt(on,e)},an=Yt;He.forEach(function(e){an[e]=Yt(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
58
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Re="__sc-".concat(U,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Re]||(window[Re]=0),window[Re]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
|
-
|
|
60
|
-
See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Re]+=1);function qt(e){const t={};return new Proxy(e,{get(r,n){return n==="prototype"?Function.prototype:(t[n]??=qt(o=>{const s=r(o);return cn(s)?s?.[n]:void 0}),t[n])}})}function cn(e){return typeof e=="object"}function un(){return{theme:qt(e=>e.theme),useTheme:()=>nn()}}q.mkTheme=un,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("styled-components")):typeof define=="function"&&define.amd?define(["exports","styled-components"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["@leancodepl/styled-tools"]={},e.styledComponents))})(this,(function(e,t){"use strict";function u(n){const i={};return new Proxy(n,{get(r,o){return o==="prototype"?Function.prototype:(i[o]??=u(c=>{const s=r(c);return d(s)?s?.[o]:void 0}),i[o])}})}function d(n){return typeof n=="object"}function f(){return{theme:u(n=>n.theme),useTheme:()=>t.useTheme()}}e.mkTheme=f,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|