norma-library 0.2.1 → 0.2.3
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/dist/Card/Card.d.ts +3 -0
- package/dist/Card/CardHeader.d.ts +3 -0
- package/dist/Card/index.d.ts +4 -2
- package/dist/Card/styles.d.ts +546 -0
- package/dist/Card/types.d.ts +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1539 -379
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +82 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,76 @@
|
|
|
1
|
-
(function(h,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],w):(h=typeof globalThis<"u"?globalThis:h||self,w(h["norma-library"]={},h.React))})(this,function(h,w){"use strict";const Z=(p=>p&&typeof p=="object"&&"default"in p?p:{default:p})(w);var Q={exports:{}},j={};/**
|
|
1
|
+
(function(oe,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],q):(oe=typeof globalThis<"u"?globalThis:oe||self,q(oe["norma-library"]={},oe.React))})(this,function(oe,q){"use strict";const ue=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(q);var z=function(){return z=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},z.apply(this,arguments)};function ve(e,t,r){if(r||arguments.length===2)for(var o=0,a=t.length,s;o<a;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ar(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Nr=/^((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|download|draggable|encType|enterKeyHint|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|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)-.*))$/,Ir=Ar(function(e){return Nr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),A="-ms-",Ie="-moz-",k="-webkit-",Ot="comm",Me="rule",nt="decl",Dr="@import",At="@keyframes",jr="@layer",$r=Math.abs,ot=String.fromCharCode,at=Object.assign;function Fr(e,t){return F(e,0)^45?(((t<<2^F(e,0))<<2^F(e,1))<<2^F(e,2))<<2^F(e,3):0}function Nt(e){return e.trim()}function Z(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function Le(e,t){return e.indexOf(t)}function F(e,t){return e.charCodeAt(t)|0}function be(e,t,r){return e.slice(t,r)}function X(e){return e.length}function It(e){return e.length}function De(e,t){return t.push(e),e}function Mr(e,t){return e.map(t).join("")}function Dt(e,t){return e.filter(function(r){return!Z(r,t)})}var Ve=1,we=1,jt=0,Y=0,j=0,Se="";function ze(e,t,r,o,a,s,c,f){return{value:e,root:t,parent:r,type:o,props:a,children:s,line:Ve,column:we,length:c,return:"",siblings:f}}function ae(e,t){return at(ze("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ee(e){for(;e.root;)e=ae(e.root,{children:[e]});De(e,e.siblings)}function Lr(){return j}function Vr(){return j=Y>0?F(Se,--Y):0,we--,j===10&&(we=1,Ve--),j}function G(){return j=Y<jt?F(Se,Y++):0,we++,j===10&&(we=1,Ve++),j}function le(){return F(Se,Y)}function Ye(){return Y}function We(e,t){return be(Se,e,t)}function it(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 zr(e){return Ve=we=1,jt=X(Se=e),Y=0,[]}function Yr(e){return Se="",e}function st(e){return Nt(We(Y-1,ct(e===91?e+2:e===40?e+1:e)))}function Wr(e){for(;(j=le())&&j<33;)G();return it(e)>2||it(j)>3?"":" "}function Br(e,t){for(;--t&&G()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return We(e,Ye()+(t<6&&le()==32&&G()==32))}function ct(e){for(;G();)switch(j){case e:return Y;case 34:case 39:e!==34&&e!==39&&ct(j);break;case 40:e===41&&ct(e);break;case 92:G();break}return Y}function Ur(e,t){for(;G()&&e+j!==47+10;)if(e+j===42+42&&le()===47)break;return"/*"+We(t,Y-1)+"*"+ot(e===47?e:G())}function Gr(e){for(;!it(le());)G();return We(e,Y)}function Hr(e){return Yr(Be("",null,null,null,[""],e=zr(e),0,[0],e))}function Be(e,t,r,o,a,s,c,f,l){for(var y=0,p=0,h=c,b=0,E=0,x=0,I=1,M=1,C=1,v=0,P="",O=a,N=s,S=o,m=P;M;)switch(x=v,v=G()){case 40:if(x!=108&&F(m,h-1)==58){Le(m+=g(st(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:m+=st(v);break;case 9:case 10:case 13:case 32:m+=Wr(x);break;case 92:m+=Br(Ye()-1,7);continue;case 47:switch(le()){case 42:case 47:De(qr(Ur(G(),Ye()),t,r,l),l);break;default:m+="/"}break;case 123*I:f[y++]=X(m)*C;case 125*I:case 59:case 0:switch(v){case 0:case 125:M=0;case 59+p:C==-1&&(m=g(m,/\f/g,"")),E>0&&X(m)-h&&De(E>32?Ft(m+";",o,r,h-1,l):Ft(g(m," ","")+";",o,r,h-2,l),l);break;case 59:m+=";";default:if(De(S=$t(m,t,r,y,p,a,f,P,O=[],N=[],h,s),s),v===123)if(p===0)Be(m,t,S,S,O,s,h,f,N);else switch(b===99&&F(m,3)===110?100:b){case 100:case 108:case 109:case 115:Be(e,S,S,o&&De($t(e,S,S,0,0,a,f,P,a,O=[],h,N),N),a,N,h,f,o?O:N);break;default:Be(m,S,S,S,[""],N,0,f,N)}}y=p=E=0,I=C=1,P=m="",h=c;break;case 58:h=1+X(m),E=x;default:if(I<1){if(v==123)--I;else if(v==125&&I++==0&&Vr()==125)continue}switch(m+=ot(v),v*I){case 38:C=p>0?1:(m+="\f",-1);break;case 44:f[y++]=(X(m)-1)*C,C=1;break;case 64:le()===45&&(m+=st(G())),b=le(),p=h=X(P=m+=Gr(Ye())),v++;break;case 45:x===45&&X(m)==2&&(I=0)}}return s}function $t(e,t,r,o,a,s,c,f,l,y,p,h){for(var b=a-1,E=a===0?s:[""],x=It(E),I=0,M=0,C=0;I<o;++I)for(var v=0,P=be(e,b+1,b=$r(M=c[I])),O=e;v<x;++v)(O=Nt(M>0?E[v]+" "+P:g(P,/&\f/g,E[v])))&&(l[C++]=O);return ze(e,t,r,a===0?Me:f,l,y,p,h)}function qr(e,t,r,o){return ze(e,t,r,Ot,ot(Lr()),be(e,2,-2),0,o)}function Ft(e,t,r,o,a){return ze(e,t,r,nt,be(e,0,o),be(e,o+1,-1),o,a)}function Mt(e,t,r){switch(Fr(e,t)){case 5103:return k+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+e+e;case 4789:return Ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+Ie+e+A+e+e;case 5936:switch(F(e,t+11)){case 114:return k+e+A+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+A+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+A+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+A+e+e;case 6165:return k+e+A+"flex-"+e+e;case 5187:return k+e+g(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+A+"flex-$1$2")+e;case 5443:return k+e+A+"flex-item-"+g(e,/flex-|-self/g,"")+(Z(e,/flex-|baseline/)?"":A+"grid-row-"+g(e,/flex-|-self/g,""))+e;case 4675:return k+e+A+"flex-line-pack"+g(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+A+g(e,"shrink","negative")+e;case 5292:return k+e+A+g(e,"basis","preferred-size")+e;case 6060:return k+"box-"+g(e,"-grow","")+k+e+A+g(e,"grow","positive")+e;case 4554:return k+g(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+A+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!Z(e,/flex-|baseline/))return A+"grid-column-align"+be(e,t)+e;break;case 2592:case 3360:return A+g(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,a){return t=a,Z(o.props,/grid-\w+-end/)})?~Le(e+(r=r[t].value),"span")?e:A+g(e,"-start","")+e+A+"grid-row-span:"+(~Le(r,"span")?Z(r,/\d+/):+Z(r,/\d+/)-+Z(e,/\d+/))+";":A+g(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Z(o.props,/grid-\w+-start/)})?e:A+g(g(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,k+"$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(X(e)-1-t>6)switch(F(e,t+1)){case 109:if(F(e,t+4)!==45)break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+Ie+(F(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Le(e,"stretch")?Mt(g(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,a,s,c,f,l,y){return A+a+":"+s+y+(c?A+a+"-span:"+(f?l:+l-+s)+y:"")+e});case 4949:if(F(e,t+6)===121)return g(e,":",":"+k)+e;break;case 6444:switch(F(e,F(e,14)===45?18:11)){case 120:return g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(F(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+A+"$2box$3")+e;case 100:return g(e,":",":"+A)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(e,"scroll-","scroll-snap-")+e}return e}function Ue(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function Xr(e,t,r,o){switch(e.type){case jr:if(e.children.length)break;case Dr:case nt:return e.return=e.return||e.value;case Ot:return"";case At:return e.return=e.value+"{"+Ue(e.children,o)+"}";case Me:if(!X(e.value=e.props.join(",")))return""}return X(r=Ue(e.children,o))?e.return=e.value+"{"+r+"}":""}function Kr(e){var t=It(e);return function(r,o,a,s){for(var c="",f=0;f<t;f++)c+=e[f](r,o,a,s)||"";return c}}function Jr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Zr(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=Mt(e.value,e.length,r);return;case At:return Ue([ae(e,{value:g(e.value,"@","@"+k)})],o);case Me:if(e.length)return Mr(r=e.props,function(a){switch(Z(a,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ee(ae(e,{props:[g(a,/:(read-\w+)/,":"+Ie+"$1")]})),Ee(ae(e,{props:[a]})),at(e,{props:Dt(r,o)});break;case"::placeholder":Ee(ae(e,{props:[g(a,/:(plac\w+)/,":"+k+"input-$1")]})),Ee(ae(e,{props:[g(a,/:(plac\w+)/,":"+Ie+"$1")]})),Ee(ae(e,{props:[g(a,/:(plac\w+)/,A+"input-$1")]})),Ee(ae(e,{props:[a]})),at(e,{props:Dt(r,o)});break}return""})}}var Qr={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,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},fe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ut=typeof window<"u"&&"HTMLElement"in window,en=Boolean(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"),Lt=/invalid hook call/i,Ge=new Set,tn=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(e).concat(r,` has been created dynamically.
|
|
2
|
+
`)+`You may see this warning because you've called styled inside another component.
|
|
3
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,a=console.error;try{var s=!0;console.error=function(c){for(var f=[],l=1;l<arguments.length;l++)f[l-1]=arguments[l];Lt.test(c)?(s=!1,Ge.delete(o)):a.apply(void 0,ve([c],f,!1))},q.useRef(),s&&!Ge.has(o)&&(console.warn(o),Ge.add(o))}catch(c){Lt.test(c.message)&&Ge.delete(o)}finally{console.error=a}}},He=Object.freeze([]),_e=Object.freeze({});function rn(e,t,r){return r===void 0&&(r=_e),e.theme!==r.theme&&e.theme||t||r.theme}var lt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),nn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,on=/(^-|-$)/g;function Vt(e){return e.replace(nn,"-").replace(on,"")}var an=/(a)(d)/gi,zt=function(e){return String.fromCharCode(e+(e>25?39:97))};function ft(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=zt(t%52)+r;return(zt(t%52)+r).replace(an,"$1-$2")}var dt,de=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Yt=function(e){return de(5381,e)};function sn(e){return ft(Yt(e)>>>0)}function Wt(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function pt(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Bt=typeof Symbol=="function"&&Symbol.for,Ut=Bt?Symbol.for("react.memo"):60115,cn=Bt?Symbol.for("react.forward_ref"):60112,un={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ln={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Gt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fn=((dt={})[cn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dt[Ut]=Gt,dt);function Ht(e){return("type"in(t=e)&&t.type.$$typeof)===Ut?Gt:"$$typeof"in e?fn[e.$$typeof]:un;var t}var dn=Object.defineProperty,pn=Object.getOwnPropertyNames,qt=Object.getOwnPropertySymbols,hn=Object.getOwnPropertyDescriptor,mn=Object.getPrototypeOf,Xt=Object.prototype;function Kt(e,t,r){if(typeof t!="string"){if(Xt){var o=mn(t);o&&o!==Xt&&Kt(e,o,r)}var a=pn(t);qt&&(a=a.concat(qt(t)));for(var s=Ht(e),c=Ht(t),f=0;f<a.length;++f){var l=a[f];if(!(l in ln||r&&r[l]||c&&l in c||s&&l in s)){var y=hn(t,l);try{dn(e,l,y)}catch{}}}}return e}function Re(e){return typeof e=="function"}function ht(e){return typeof e=="object"&&"styledComponentId"in e}function pe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Jt(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=t?t+e[o]:e[o];return r}function ke(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function mt(e,t,r){if(r===void 0&&(r=!1),!r&&!ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=mt(e[o],t[o]);else if(ke(t))for(var o in t)e[o]=mt(e[o],t[o]);return e}function gt(e,t){Object.defineProperty(e,"toString",{value:t})}var gn=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
4
|
+
|
|
5
|
+
`,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.
|
|
6
|
+
|
|
7
|
+
- Are you trying to reuse it across renders?
|
|
8
|
+
- Are you accidentally calling collectStyles twice?
|
|
9
|
+
|
|
10
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
11
|
+
|
|
12
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
13
|
+
|
|
14
|
+
- Does this error occur on the client and is your target falsy?
|
|
15
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
16
|
+
|
|
17
|
+
`,5:`The clone method cannot be used on the client!
|
|
18
|
+
|
|
19
|
+
- Are you running in a client-like environment on the server?
|
|
20
|
+
- Are you trying to run SSR on the client?
|
|
21
|
+
|
|
22
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
23
|
+
|
|
24
|
+
- Are you using a custom target that isn't mounted?
|
|
25
|
+
- Does your document not have a valid head element?
|
|
26
|
+
- Have you accidentally removed a style tag manually?
|
|
27
|
+
|
|
28
|
+
`,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.
|
|
29
|
+
|
|
30
|
+
`,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
|
|
31
|
+
|
|
32
|
+
`,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.
|
|
33
|
+
|
|
34
|
+
`,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.
|
|
35
|
+
|
|
36
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
37
|
+
|
|
38
|
+
`,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.
|
|
39
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
40
|
+
as for instance in your render method then you may be running into this limitation.
|
|
41
|
+
|
|
42
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
43
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
44
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],o=[],a=1,s=e.length;a<s;a+=1)o.push(e[a]);return o.forEach(function(c){r=r.replace(/%[a-z]/,c)}),r}function xe(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(yn.apply(void 0,ve([gn[e]],t,!1)).trim())}var vn=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,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,a=o.length,s=a;t>=s;)if((s<<=1)<0)throw xe(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(o),this.length=s;for(var c=a;c<s;c++)this.groupSizes[c]=0}for(var f=this.indexOfGroup(t+1),l=(c=0,r.length);c<l;c++)this.tag.insertRule(f,r[c])&&(this.groupSizes[t]++,f++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r;this.groupSizes[t]=0;for(var s=o;s<a;s++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],a=this.indexOfGroup(t),s=a+o,c=a;c<s;c++)r+="".concat(this.tag.getRule(c)).concat(`/*!sc*/
|
|
45
|
+
`);return r},e}(),qe=new Map,Xe=new Map,yt=1,Ke=function(e){if(qe.has(e))return qe.get(e);for(;Xe.has(yt);)yt++;var t=yt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw xe(16,"".concat(t));return qe.set(e,t),Xe.set(t,e),t},bn=function(e,t){qe.set(e,t),Xe.set(t,e)},wn="style[".concat(fe,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),Sn=new RegExp("^".concat(fe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),En=function(e,t,r){for(var o,a=r.split(","),s=0,c=a.length;s<c;s++)(o=a[s])&&e.registerName(t,o)},_n=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split(`/*!sc*/
|
|
46
|
+
`),a=[],s=0,c=o.length;s<c;s++){var f=o[s].trim();if(f){var l=f.match(Sn);if(l){var y=0|parseInt(l[1],10),p=l[2];y!==0&&(bn(p,y),En(e,p,l[3]),e.getTag().insertRules(y,a)),a.length=0}else a.push(f)}}};function Rn(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Zt=function(e){var t=document.head,r=e||t,o=document.createElement("style"),a=function(f){var l=Array.from(f.querySelectorAll("style[".concat(fe,"]")));return l[l.length-1]}(r),s=a!==void 0?a.nextSibling:null;o.setAttribute(fe,"active"),o.setAttribute("data-styled-version","6.0.7");var c=Rn();return c&&o.setAttribute("nonce",c),r.insertBefore(o,s),o},kn=function(){function e(t){this.element=Zt(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var c=o[a];if(c.ownerNode===r)return c}throw xe(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}(),xn=function(){function e(t){this.element=Zt(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,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}(),Cn=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}(),Qt=ut,Pn={isServer:!ut,useCSSOMInjection:!en},er=function(){function e(t,r,o){t===void 0&&(t=_e),r===void 0&&(r={});var a=this;this.options=z(z({},Pn),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&ut&&Qt&&(Qt=!1,function(s){for(var c=document.querySelectorAll(wn),f=0,l=c.length;f<l;f++){var y=c[f];y&&y.getAttribute(fe)!=="active"&&(_n(s,y),y.parentNode&&y.parentNode.removeChild(y))}}(this)),gt(this,function(){return function(s){for(var c=s.getTag(),f=c.length,l="",y=function(h){var b=function(C){return Xe.get(C)}(h);if(b===void 0)return"continue";var E=s.names.get(b),x=c.getGroup(h);if(E===void 0||x.length===0)return"continue";var I="".concat(fe,".g").concat(h,'[id="').concat(b,'"]'),M="";E!==void 0&&E.forEach(function(C){C.length>0&&(M+="".concat(C,","))}),l+="".concat(x).concat(I,'{content:"').concat(M,'"}').concat(`/*!sc*/
|
|
47
|
+
`)},p=0;p<f;p++)y(p);return l}(a)})}return e.registerId=function(t){return Ke(t)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(z(z({},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 o=r.useCSSOMInjection,a=r.target;return r.isServer?new Cn(a):o?new kn(a):new xn(a)}(this.options),new vn(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(Ke(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(Ke(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ke(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Tn=/&/g,On=/^\s*\/\/.*$/gm;function tr(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(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=tr(r.children,t)),r})}function An(e){var t,r,o,a=e===void 0?_e:e,s=a.options,c=s===void 0?_e:s,f=a.plugins,l=f===void 0?He:f,y=function(b,E,x){return x===r||x.startsWith(r)&&x.endsWith(r)&&x.replaceAll(r,"").length>0?".".concat(t):b},p=l.slice();p.push(function(b){b.type===Me&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(Tn,r).replace(o,y))}),c.prefix&&p.push(Zr),p.push(Xr);var h=function(b,E,x,I){E===void 0&&(E=""),x===void 0&&(x=""),I===void 0&&(I="&"),t=I,r=E,o=new RegExp("\\".concat(r,"\\b"),"g");var M=b.replace(On,""),C=Hr(x||E?"".concat(x," ").concat(E," { ").concat(M," }"):M);c.namespace&&(C=tr(C,c.namespace));var v=[];return Ue(C,Kr(p.concat(Jr(function(P){return v.push(P)})))),v};return h.hash=l.length?l.reduce(function(b,E){return E.name||xe(15),de(b,E.name)},5381).toString():"",h}var Nn=new er,vt=An(),rr=ue.default.createContext({shouldForwardProp:void 0,styleSheet:Nn,stylis:vt});rr.Consumer,ue.default.createContext(void 0);function nr(){return q.useContext(rr)}var or=function(){function e(t,r){var o=this;this.inject=function(a,s){s===void 0&&(s=vt);var c=o.name+s.hash;a.hasNameForId(o.id,c)||a.insertRules(o.id,c,s(o.rules,c,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,gt(this,function(){throw xe(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=vt),this.name+t.hash},e}(),In=function(e){return e>="A"&&e<="Z"};function ar(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;In(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var ir=function(e){return e==null||e===!1||e===""},sr=function(e){var t,r,o=[];for(var a in e){var s=e[a];e.hasOwnProperty(a)&&!ir(s)&&(Array.isArray(s)&&s.isCss||Re(s)?o.push("".concat(ar(a),":"),s,";"):ke(s)?o.push.apply(o,ve(ve(["".concat(a," {")],sr(s),!1),["}"],!1)):o.push("".concat(ar(a),": ").concat((t=a,(r=s)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Qr||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function he(e,t,r,o){if(ir(e))return[];if(ht(e))return[".".concat(e.styledComponentId)];if(Re(e)){if(!Re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var a=e(t);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof or||ke(a)||a===null||console.error("".concat(Wt(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.")),he(a,t,r,o)}var s;return e instanceof or?r?(e.inject(r,o),[e.getName(o)]):[e]:ke(e)?sr(e):Array.isArray(e)?Array.prototype.concat.apply(He,e.map(function(c){return he(c,t,r,o)})):[e.toString()]}function Dn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Re(r)&&!ht(r))return!1}return!0}var jn=Yt("6.0.7"),$n=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(o===void 0||o.isStatic)&&Dn(t),this.componentId=r,this.baseHash=de(jn,r),this.baseStyle=o,er.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))a=pe(a,this.staticRulesId);else{var s=Jt(he(this.rules,t,r,o)),c=ft(de(this.baseHash,s)>>>0);if(!r.hasNameForId(this.componentId,c)){var f=o(s,".".concat(c),void 0,this.componentId);r.insertRules(this.componentId,c,f)}a=pe(a,c),this.staticRulesId=c}else{for(var l=de(this.baseHash,o.hash),y="",p=0;p<this.rules.length;p++){var h=this.rules[p];if(typeof h=="string")y+=h,process.env.NODE_ENV!=="production"&&(l=de(l,h));else if(h){var b=Jt(he(h,t,r,o));l=de(l,b),y+=b}}if(y){var E=ft(l>>>0);r.hasNameForId(this.componentId,E)||r.insertRules(this.componentId,E,o(y,".".concat(E),void 0,this.componentId)),a=pe(a,E)}}return a},e}(),cr=ue.default.createContext(void 0);cr.Consumer;var bt={},ur=new Set;function Fn(e,t,r){var o=ht(e),a=e,s=!pt(e),c=t.attrs,f=c===void 0?He:c,l=t.componentId,y=l===void 0?function(O,N){var S=typeof O!="string"?"sc":Vt(O);bt[S]=(bt[S]||0)+1;var m="".concat(S,"-").concat(sn("6.0.7"+S+bt[S]));return N?"".concat(N,"-").concat(m):m}(t.displayName,t.parentComponentId):l,p=t.displayName,h=p===void 0?function(O){return pt(O)?"styled.".concat(O):"Styled(".concat(Wt(O),")")}(e):p,b=t.displayName&&t.componentId?"".concat(Vt(t.displayName),"-").concat(t.componentId):t.componentId||y,E=o&&a.attrs?a.attrs.concat(f).filter(Boolean):f,x=t.shouldForwardProp;if(o&&a.shouldForwardProp){var I=a.shouldForwardProp;if(t.shouldForwardProp){var M=t.shouldForwardProp;x=function(O,N){return I(O,N)&&M(O,N)}}else x=I}var C=new $n(r,b,o?a.componentStyle:void 0);function v(O,N){return function(S,m,Q){var ee=S.attrs,_t=S.componentStyle,Rt=S.defaultProps,Ze=S.foldedComponentIds,W=S.styledComponentId,te=S.target,me=ue.default.useContext(cr),Qe=nr(),Ce=S.shouldForwardProp||Qe.shouldForwardProp;process.env.NODE_ENV!=="production"&&q.useDebugValue(W);var H=function(Oe,ge,ce){for(var K,B=z(z({},ge),{className:void 0,theme:ce}),ye=0;ye<Oe.length;ye+=1){var re=Re(K=Oe[ye])?K(B):K;for(var J in re)B[J]=J==="className"?pe(B[J],re[J]):J==="style"?z(z({},B[J]),re[J]):re[J]}return ge.className&&(B.className=pe(B.className,ge.className)),B}(ee,m,rn(m,me,Rt)||_e),ie=H.as||te,se={};for(var L in H)H[L]===void 0||L[0]==="$"||L==="as"||L==="theme"||(L==="forwardedAs"?se.as=H.forwardedAs:Ce&&!Ce(L,ie)||(se[L]=H[L],Ce||process.env.NODE_ENV!=="development"||Ir(L)||ur.has(L)||!lt.has(ie)||(ur.add(L),console.warn('styled-components: it looks like an unknown prop "'.concat(L,'" 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 Pe=function(Oe,ge){var ce=nr(),K=Oe.generateAndInjectStyles(ge,ce.styleSheet,ce.stylis);return process.env.NODE_ENV!=="production"&&q.useDebugValue(K),K}(_t,H);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(Pe);var Te=pe(Ze,W);return Pe&&(Te+=" "+Pe),H.className&&(Te+=" "+H.className),se[pt(ie)&&!lt.has(ie)?"class":"className"]=Te,se.ref=Q,q.createElement(ie,se)}(P,O,N)}process.env.NODE_ENV!=="production"&&(v.displayName=h);var P=ue.default.forwardRef(v);return P.attrs=E,P.componentStyle=C,P.shouldForwardProp=x,process.env.NODE_ENV!=="production"&&(P.displayName=h),P.foldedComponentIds=o?pe(a.foldedComponentIds,a.styledComponentId):"",P.styledComponentId=b,P.target=o?a.target:e,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=o?function(N){for(var S=[],m=1;m<arguments.length;m++)S[m-1]=arguments[m];for(var Q=0,ee=S;Q<ee.length;Q++)mt(N,ee[Q],!0);return N}({},a.defaultProps,O):O}}),process.env.NODE_ENV!=="production"&&(tn(h,b),P.warnTooManyClasses=function(O,N){var S={},m=!1;return function(Q){if(!m&&(S[Q]=!0,Object.keys(S).length>=200)){var ee=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(O).concat(ee,`.
|
|
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 />`),m=!0,S={}}}}(h,b)),gt(P,function(){return".".concat(P.styledComponentId)}),s&&Kt(P,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),P}function lr(e,t){for(var r=[e[0]],o=0,a=t.length;o<a;o+=1)r.push(t[o],e[o+1]);return r}var fr=function(e){return Object.assign(e,{isCss:!0})};function Mn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Re(e)||ke(e)){var o=e;return fr(he(lr(He,ve([o],t,!0))))}var a=e;return t.length===0&&a.length===1&&typeof a[0]=="string"?he(a):fr(he(lr(a,t)))}function wt(e,t,r){if(r===void 0&&(r=_e),!t)throw xe(1,t);var o=function(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];return e(t,r,Mn.apply(void 0,ve([a],s,!1)))};return o.attrs=function(a){return wt(e,t,z(z({},r),{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},o.withConfig=function(a){return wt(e,t,z(z({},r),a))},o}var dr=function(e){return wt(Fn,e)},St=dr;lt.forEach(function(e){St[e]=dr(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 Je="__sc-".concat(fe,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Je]||(window[Je]=0),window[Je]===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://s-c.sh/2BAXzed for more info.`),window[Je]+=1);const Ln=St.div`
|
|
61
|
+
border: 1px solid #ccc;
|
|
62
|
+
padding: 16px;
|
|
63
|
+
border-radius: 4px;
|
|
64
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
65
|
+
`,Vn=St.div`
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: space-between;
|
|
68
|
+
align-items: center;
|
|
69
|
+
margin-bottom: 16px;
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
border-bottom: 1px solid #ccc;
|
|
72
|
+
padding-bottom: 8px;
|
|
73
|
+
`;var Et={exports:{}},je={};/**
|
|
2
74
|
* @license React
|
|
3
75
|
* react-jsx-runtime.production.min.js
|
|
4
76
|
*
|
|
@@ -6,7 +78,7 @@
|
|
|
6
78
|
*
|
|
7
79
|
* This source code is licensed under the MIT license found in the
|
|
8
80
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
81
|
+
*/var pr;function zn(){if(pr)return je;pr=1;var e=ue.default,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(f,l,y){var p,h={},b=null,E=null;y!==void 0&&(b=""+y),l.key!==void 0&&(b=""+l.key),l.ref!==void 0&&(E=l.ref);for(p in l)o.call(l,p)&&!s.hasOwnProperty(p)&&(h[p]=l[p]);if(f&&f.defaultProps)for(p in l=f.defaultProps,l)h[p]===void 0&&(h[p]=l[p]);return{$$typeof:t,type:f,key:b,ref:E,props:h,_owner:a.current}}return je.Fragment=r,je.jsx=c,je.jsxs=c,je}var $e={};/**
|
|
10
82
|
* @license React
|
|
11
83
|
* react-jsx-runtime.development.js
|
|
12
84
|
*
|
|
@@ -14,15 +86,15 @@
|
|
|
14
86
|
*
|
|
15
87
|
* This source code is licensed under the MIT license found in the
|
|
16
88
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),d
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
89
|
+
*/var hr;function Yn(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&function(){var e=ue.default,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),x=Symbol.iterator,I="@@iterator";function M(n){if(n===null||typeof n!="object")return null;var i=x&&n[x]||n[I];return typeof i=="function"?i:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(n){{for(var i=arguments.length,u=new Array(i>1?i-1:0),d=1;d<i;d++)u[d-1]=arguments[d];P("error",n,u)}}function P(n,i,u){{var d=C.ReactDebugCurrentFrame,R=d.getStackAddendum();R!==""&&(i+="%s",u=u.concat([R]));var T=u.map(function(_){return String(_)});T.unshift("Warning: "+i),Function.prototype.apply.call(console[n],console,T)}}var O=!1,N=!1,S=!1,m=!1,Q=!1,ee;ee=Symbol.for("react.module.reference");function _t(n){return!!(typeof n=="string"||typeof n=="function"||n===o||n===s||Q||n===a||n===y||n===p||m||n===E||O||N||S||typeof n=="object"&&n!==null&&(n.$$typeof===b||n.$$typeof===h||n.$$typeof===c||n.$$typeof===f||n.$$typeof===l||n.$$typeof===ee||n.getModuleId!==void 0))}function Rt(n,i,u){var d=n.displayName;if(d)return d;var R=i.displayName||i.name||"";return R!==""?u+"("+R+")":u}function Ze(n){return n.displayName||"Context"}function W(n){if(n==null)return null;if(typeof n.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case o:return"Fragment";case r:return"Portal";case s:return"Profiler";case a:return"StrictMode";case y:return"Suspense";case p:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case f:var i=n;return Ze(i)+".Consumer";case c:var u=n;return Ze(u._context)+".Provider";case l:return Rt(n,n.render,"ForwardRef");case h:var d=n.displayName||null;return d!==null?d:W(n.type)||"Memo";case b:{var R=n,T=R._payload,_=R._init;try{return W(_(T))}catch{return null}}}return null}var te=Object.assign,me=0,Qe,Ce,H,ie,se,L,Pe;function Te(){}Te.__reactDisabledLog=!0;function Oe(){{if(me===0){Qe=console.log,Ce=console.info,H=console.warn,ie=console.error,se=console.group,L=console.groupCollapsed,Pe=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}me++}}function ge(){{if(me--,me===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},n,{value:Qe}),info:te({},n,{value:Ce}),warn:te({},n,{value:H}),error:te({},n,{value:ie}),group:te({},n,{value:se}),groupCollapsed:te({},n,{value:L}),groupEnd:te({},n,{value:Pe})})}me<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=C.ReactCurrentDispatcher,K;function B(n,i,u){{if(K===void 0)try{throw Error()}catch(R){var d=R.stack.trim().match(/\n( *(at )?)/);K=d&&d[1]||""}return`
|
|
90
|
+
`+K+n}}var ye=!1,re;{var J=typeof WeakMap=="function"?WeakMap:Map;re=new J}function yr(n,i){if(!n||ye)return"";{var u=re.get(n);if(u!==void 0)return u}var d;ye=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var T;T=ce.current,ce.current=null,Oe();try{if(i){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(ne){d=ne}Reflect.construct(n,[],_)}else{try{_.call()}catch(ne){d=ne}n.call(_.prototype)}}else{try{throw Error()}catch(ne){d=ne}n()}}catch(ne){if(ne&&d&&typeof ne.stack=="string"){for(var w=ne.stack.split(`
|
|
91
|
+
`),V=d.stack.split(`
|
|
92
|
+
`),D=w.length-1,$=V.length-1;D>=1&&$>=0&&w[D]!==V[$];)$--;for(;D>=1&&$>=0;D--,$--)if(w[D]!==V[$]){if(D!==1||$!==1)do if(D--,$--,$<0||w[D]!==V[$]){var U=`
|
|
93
|
+
`+w[D].replace(" at new "," at ");return n.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",n.displayName)),typeof n=="function"&&re.set(n,U),U}while(D>=1&&$>=0);break}}}finally{ye=!1,ce.current=T,ge(),Error.prepareStackTrace=R}var Ne=n?n.displayName||n.name:"",Or=Ne?B(Ne):"";return typeof n=="function"&&re.set(n,Or),Or}function Un(n,i,u){return yr(n,!1)}function Gn(n){var i=n.prototype;return!!(i&&i.isReactComponent)}function et(n,i,u){if(n==null)return"";if(typeof n=="function")return yr(n,Gn(n));if(typeof n=="string")return B(n);switch(n){case y:return B("Suspense");case p:return B("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case l:return Un(n.render);case h:return et(n.type,i,u);case b:{var d=n,R=d._payload,T=d._init;try{return et(T(R),i,u)}catch{}}}return""}var tt=Object.prototype.hasOwnProperty,vr={},br=C.ReactDebugCurrentFrame;function rt(n){if(n){var i=n._owner,u=et(n.type,n._source,i?i.type:null);br.setExtraStackFrame(u)}else br.setExtraStackFrame(null)}function Hn(n,i,u,d,R){{var T=Function.call.bind(tt);for(var _ in n)if(T(n,_)){var w=void 0;try{if(typeof n[_]!="function"){var V=Error((d||"React class")+": "+u+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}w=n[_](i,_,d,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D){w=D}w&&!(w instanceof Error)&&(rt(R),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",u,_,typeof w),rt(null)),w instanceof Error&&!(w.message in vr)&&(vr[w.message]=!0,rt(R),v("Failed %s type: %s",u,w.message),rt(null))}}}var qn=Array.isArray;function kt(n){return qn(n)}function Xn(n){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&n[Symbol.toStringTag]||n.constructor.name||"Object";return u}}function Kn(n){try{return wr(n),!1}catch{return!0}}function wr(n){return""+n}function Sr(n){if(Kn(n))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xn(n)),wr(n)}var Fe=C.ReactCurrentOwner,Jn={key:!0,ref:!0,__self:!0,__source:!0},Er,_r,xt;xt={};function Zn(n){if(tt.call(n,"ref")){var i=Object.getOwnPropertyDescriptor(n,"ref").get;if(i&&i.isReactWarning)return!1}return n.ref!==void 0}function Qn(n){if(tt.call(n,"key")){var i=Object.getOwnPropertyDescriptor(n,"key").get;if(i&&i.isReactWarning)return!1}return n.key!==void 0}function eo(n,i){if(typeof n.ref=="string"&&Fe.current&&i&&Fe.current.stateNode!==i){var u=W(Fe.current.type);xt[u]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(Fe.current.type),n.ref),xt[u]=!0)}}function to(n,i){{var u=function(){Er||(Er=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};u.isReactWarning=!0,Object.defineProperty(n,"key",{get:u,configurable:!0})}}function ro(n,i){{var u=function(){_r||(_r=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};u.isReactWarning=!0,Object.defineProperty(n,"ref",{get:u,configurable:!0})}}var no=function(n,i,u,d,R,T,_){var w={$$typeof:t,type:n,key:i,ref:u,props:_,_owner:T};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function oo(n,i,u,d,R){{var T,_={},w=null,V=null;u!==void 0&&(Sr(u),w=""+u),Qn(i)&&(Sr(i.key),w=""+i.key),Zn(i)&&(V=i.ref,eo(i,R));for(T in i)tt.call(i,T)&&!Jn.hasOwnProperty(T)&&(_[T]=i[T]);if(n&&n.defaultProps){var D=n.defaultProps;for(T in D)_[T]===void 0&&(_[T]=D[T])}if(w||V){var $=typeof n=="function"?n.displayName||n.name||"Unknown":n;w&&to(_,$),V&&ro(_,$)}return no(n,w,V,R,d,Fe.current,_)}}var Ct=C.ReactCurrentOwner,Rr=C.ReactDebugCurrentFrame;function Ae(n){if(n){var i=n._owner,u=et(n.type,n._source,i?i.type:null);Rr.setExtraStackFrame(u)}else Rr.setExtraStackFrame(null)}var Pt;Pt=!1;function Tt(n){return typeof n=="object"&&n!==null&&n.$$typeof===t}function kr(){{if(Ct.current){var n=W(Ct.current.type);if(n)return`
|
|
22
94
|
|
|
23
|
-
Check the render method of \``+
|
|
95
|
+
Check the render method of \``+n+"`."}return""}}function ao(n){{if(n!==void 0){var i=n.fileName.replace(/^.*[\\\/]/,""),u=n.lineNumber;return`
|
|
24
96
|
|
|
25
|
-
Check your code at `+
|
|
97
|
+
Check your code at `+i+":"+u+"."}return""}}var xr={};function io(n){{var i=kr();if(!i){var u=typeof n=="string"?n:n.displayName||n.name;u&&(i=`
|
|
26
98
|
|
|
27
|
-
Check the top-level render call using <`+
|
|
99
|
+
Check the top-level render call using <`+u+">.")}return i}}function Cr(n,i){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var u=io(i);if(xr[u])return;xr[u]=!0;var d="";n&&n._owner&&n._owner!==Ct.current&&(d=" It was passed a child from "+W(n._owner.type)+"."),Ae(n),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,d),Ae(null)}}function Pr(n,i){{if(typeof n!="object")return;if(kt(n))for(var u=0;u<n.length;u++){var d=n[u];Tt(d)&&Cr(d,i)}else if(Tt(n))n._store&&(n._store.validated=!0);else if(n){var R=M(n);if(typeof R=="function"&&R!==n.entries)for(var T=R.call(n),_;!(_=T.next()).done;)Tt(_.value)&&Cr(_.value,i)}}}function so(n){{var i=n.type;if(i==null||typeof i=="string")return;var u;if(typeof i=="function")u=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===l||i.$$typeof===h))u=i.propTypes;else return;if(u){var d=W(i);Hn(u,n.props,"prop",d,n)}else if(i.PropTypes!==void 0&&!Pt){Pt=!0;var R=W(i);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function co(n){{for(var i=Object.keys(n.props),u=0;u<i.length;u++){var d=i[u];if(d!=="children"&&d!=="key"){Ae(n),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),Ae(null);break}}n.ref!==null&&(Ae(n),v("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}}function Tr(n,i,u,d,R,T){{var _=_t(n);if(!_){var w="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var V=ao(R);V?w+=V:w+=kr();var D;n===null?D="null":kt(n)?D="array":n!==void 0&&n.$$typeof===t?(D="<"+(W(n.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):D=typeof n,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",D,w)}var $=oo(n,i,u,R,T);if($==null)return $;if(_){var U=i.children;if(U!==void 0)if(d)if(kt(U)){for(var Ne=0;Ne<U.length;Ne++)Pr(U[Ne],n);Object.freeze&&Object.freeze(U)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pr(U,n)}return n===o?co($):so($),$}}function uo(n,i,u){return Tr(n,i,u,!0)}function lo(n,i,u){return Tr(n,i,u,!1)}var fo=lo,po=uo;$e.Fragment=o,$e.jsx=fo,$e.jsxs=po}()),$e}(function(e){process.env.NODE_ENV==="production"?e.exports=zn():e.exports=Yn()})(Et);const mr=Et.exports.jsx,Wn=Et.exports.jsxs,gr=({title:e})=>mr(Vn,{children:e}),Bn=({children:e,title:t})=>Wn(Ln,{children:[t&&mr(gr,{title:t}),e]});oe.Card=Bn,oe.CardHeader=gr,Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
28
100
|
//# sourceMappingURL=index.umd.js.map
|