@companycam/slab-web 0.0.23 → 1.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/index.d.ts +3 -0
- package/index.js +210 -0
- package/index.mjs +1945 -0
- package/lib/Badge/Badge.d.ts +34 -0
- package/lib/Spinner/Spinner.d.ts +14 -0
- package/lib/Text/Text.d.ts +24 -0
- package/lib/shared/styles.d.ts +20 -0
- package/package.json +9 -58
- package/dist/bundle.js +0 -1436
- package/shared/index.js +0 -13
- package/shared/legacyStyles.js +0 -78
- package/shared/package.json +0 -3
- package/shared/theming/CCThemeProvider.js +0 -22
- package/shared/theming/CCThemeProvider.native.js +0 -22
- package/shared/theming/themes/base.js +0 -42
- package/shared/theming/themes/dark_environment.js +0 -57
- package/shared/theming/themes/light_environment.js +0 -57
- package/shared/theming/useCCTheme.js +0 -16
- package/shared/theming/utils.js +0 -23
- package/shared/theming/withTheme.js +0 -29
- package/shared/tokens/build/css/base.css +0 -324
- package/shared/tokens/build/css/dark_environment.css +0 -334
- package/shared/tokens/build/css/light_environment.css +0 -334
- package/shared/tokens/build/docs/token_docs.js +0 -1015
- package/shared/tokens/build/js/tokens.js +0 -126
- package/shared/tokens/build/json/tokens.json +0 -123
- package/shared/tokens/build/scss/tokens.scss +0 -125
- package/shared/tokens/config.js +0 -231
- package/shared/tokens/properties/color.json +0 -344
- package/shared/tokens/properties/size.json +0 -113
- package/web/components/Icon/Icon.jsx +0 -92
- package/web/components/Icon/index.js +0 -3
- package/web/components/Icon/names.js +0 -3
- package/web/components/Icon/utils.js +0 -12
- package/web/components/index.js +0 -3
- package/web/index.js +0 -6
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("react/jsx-runtime"),se=require("react");function At(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var je={exports:{}},M={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-is.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Qe;function kt(){if(Qe)return M;Qe=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.server_context"),_=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function S(s){if(typeof s=="object"&&s!==null){var R=s.$$typeof;switch(R){case e:switch(s=s.type,s){case t:case a:case r:case m:case v:return s;default:switch(s=s&&s.$$typeof,s){case f:case c:case _:case z:case b:case l:return s;default:return R}}case n:return R}}}return M.ContextConsumer=c,M.ContextProvider=l,M.Element=e,M.ForwardRef=_,M.Fragment=t,M.Lazy=z,M.Memo=b,M.Portal=n,M.Profiler=a,M.StrictMode=r,M.Suspense=m,M.SuspenseList=v,M.isAsyncMode=function(){return!1},M.isConcurrentMode=function(){return!1},M.isContextConsumer=function(s){return S(s)===c},M.isContextProvider=function(s){return S(s)===l},M.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===e},M.isForwardRef=function(s){return S(s)===_},M.isFragment=function(s){return S(s)===t},M.isLazy=function(s){return S(s)===z},M.isMemo=function(s){return S(s)===b},M.isPortal=function(s){return S(s)===n},M.isProfiler=function(s){return S(s)===a},M.isStrictMode=function(s){return S(s)===r},M.isSuspense=function(s){return S(s)===m},M.isSuspenseList=function(s){return S(s)===v},M.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===t||s===a||s===r||s===m||s===v||s===I||typeof s=="object"&&s!==null&&(s.$$typeof===z||s.$$typeof===b||s.$$typeof===l||s.$$typeof===c||s.$$typeof===_||s.$$typeof===x||s.getModuleId!==void 0)},M.typeOf=S,M}var D={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-is.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Je;function Tt(){return Je||(Je=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.server_context"),_=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),x=!1,S=!1,s=!1,R=!1,A=!1,k;k=Symbol.for("react.module.reference");function w(p){return!!(typeof p=="string"||typeof p=="function"||p===t||p===a||A||p===r||p===m||p===v||R||p===I||x||S||s||typeof p=="object"&&p!==null&&(p.$$typeof===z||p.$$typeof===b||p.$$typeof===l||p.$$typeof===c||p.$$typeof===_||p.$$typeof===k||p.getModuleId!==void 0))}function i(p){if(typeof p=="object"&&p!==null){var T=p.$$typeof;switch(T){case e:var V=p.type;switch(V){case t:case a:case r:case m:case v:return V;default:var N=V&&V.$$typeof;switch(N){case f:case c:case _:case z:case b:case l:return N;default:return T}}case n:return T}}}var H=c,te=l,Z=e,J=_,re=t,ce=z,W=b,K=n,ee=a,U=r,de=m,Q=v,G=!1,le=!1;function oe(p){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function fe(p){return le||(le=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function g(p){return i(p)===c}function h(p){return i(p)===l}function y(p){return typeof p=="object"&&p!==null&&p.$$typeof===e}function E(p){return i(p)===_}function o(p){return i(p)===t}function $(p){return i(p)===z}function d(p){return i(p)===b}function L(p){return i(p)===n}function O(p){return i(p)===a}function P(p){return i(p)===r}function u(p){return i(p)===m}function Y(p){return i(p)===v}D.ContextConsumer=H,D.ContextProvider=te,D.Element=Z,D.ForwardRef=J,D.Fragment=re,D.Lazy=ce,D.Memo=W,D.Portal=K,D.Profiler=ee,D.StrictMode=U,D.Suspense=de,D.SuspenseList=Q,D.isAsyncMode=oe,D.isConcurrentMode=fe,D.isContextConsumer=g,D.isContextProvider=h,D.isElement=y,D.isForwardRef=E,D.isFragment=o,D.isLazy=$,D.isMemo=d,D.isPortal=L,D.isProfiler=O,D.isStrictMode=P,D.isSuspense=u,D.isSuspenseList=Y,D.isValidElementType=w,D.typeOf=i}()),D}process.env.NODE_ENV==="production"?je.exports=kt():je.exports=Tt();var We=je.exports;function Rt(e){function n(g,h,y,E,o){for(var $=0,d=0,L=0,O=0,P,u,Y=0,p=0,T,V=T=P=0,N=0,q=0,xe=0,X=0,ke=y.length,we=ke-1,ae,C="",B="",Ie="",Me="",_e;N<ke;){if(u=y.charCodeAt(N),N===we&&d+O+L+$!==0&&(d!==0&&(u=d===47?10:47),O=L=$=0,ke++,we++),d+O+L+$===0){if(N===we&&(0<q&&(C=C.replace(z,"")),0<C.trim().length)){switch(u){case 32:case 9:case 59:case 13:case 10:break;default:C+=y.charAt(N)}u=59}switch(u){case 123:for(C=C.trim(),P=C.charCodeAt(0),T=1,X=++N;N<ke;){switch(u=y.charCodeAt(N)){case 123:T++;break;case 125:T--;break;case 47:switch(u=y.charCodeAt(N+1)){case 42:case 47:e:{for(V=N+1;V<we;++V)switch(y.charCodeAt(V)){case 47:if(u===42&&y.charCodeAt(V-1)===42&&N+2!==V){N=V+1;break e}break;case 10:if(u===47){N=V+1;break e}}N=V}}break;case 91:u++;case 40:u++;case 34:case 39:for(;N++<we&&y.charCodeAt(N)!==u;);}if(T===0)break;N++}switch(T=y.substring(X,N),P===0&&(P=(C=C.replace(b,"").trim()).charCodeAt(0)),P){case 64:switch(0<q&&(C=C.replace(z,"")),u=C.charCodeAt(1),u){case 100:case 109:case 115:case 45:q=h;break;default:q=de}if(T=n(h,q,T,u,o+1),X=T.length,0<G&&(q=t(de,C,xe),_e=f(3,T,q,h,K,W,X,u,o,E),C=q.join(""),_e!==void 0&&(X=(T=_e.trim()).length)===0&&(u=0,T="")),0<X)switch(u){case 115:C=C.replace(H,c);case 100:case 109:case 45:T=C+"{"+T+"}";break;case 107:C=C.replace(A,"$1 $2"),T=C+"{"+T+"}",T=U===1||U===2&&l("@"+T,3)?"@-webkit-"+T+"@"+T:"@"+T;break;default:T=C+T,E===112&&(T=(B+=T,""))}else T="";break;default:T=n(h,t(h,C,xe),T,E,o+1)}Ie+=T,T=xe=q=V=P=0,C="",u=y.charCodeAt(++N);break;case 125:case 59:if(C=(0<q?C.replace(z,""):C).trim(),1<(X=C.length))switch(V===0&&(P=C.charCodeAt(0),P===45||96<P&&123>P)&&(X=(C=C.replace(" ",":")).length),0<G&&(_e=f(1,C,h,g,K,W,B.length,E,o,E))!==void 0&&(X=(C=_e.trim()).length)===0&&(C="\0\0"),P=C.charCodeAt(0),u=C.charCodeAt(1),P){case 0:break;case 64:if(u===105||u===99){Me+=C+y.charAt(N);break}default:C.charCodeAt(X-1)!==58&&(B+=a(C,P,u,C.charCodeAt(2)))}xe=q=V=P=0,C="",u=y.charCodeAt(++N)}}switch(u){case 13:case 10:d===47?d=0:1+P===0&&E!==107&&0<C.length&&(q=1,C+="\0"),0<G*oe&&f(0,C,h,g,K,W,B.length,E,o,E),W=1,K++;break;case 59:case 125:if(d+O+L+$===0){W++;break}default:switch(W++,ae=y.charAt(N),u){case 9:case 32:if(O+$+d===0)switch(Y){case 44:case 58:case 9:case 32:ae="";break;default:u!==32&&(ae=" ")}break;case 0:ae="\\0";break;case 12:ae="\\f";break;case 11:ae="\\v";break;case 38:O+d+$===0&&(q=xe=1,ae="\f"+ae);break;case 108:if(O+d+$+ee===0&&0<V)switch(N-V){case 2:Y===112&&y.charCodeAt(N-3)===58&&(ee=Y);case 8:p===111&&(ee=p)}break;case 58:O+d+$===0&&(V=N);break;case 44:d+L+O+$===0&&(q=1,ae+="\r");break;case 34:case 39:d===0&&(O=O===u?0:O===0?u:O);break;case 91:O+d+L===0&&$++;break;case 93:O+d+L===0&&$--;break;case 41:O+d+$===0&&L--;break;case 40:if(O+d+$===0){if(P===0)switch(2*Y+3*p){case 533:break;default:P=1}L++}break;case 64:d+L+O+$+V+T===0&&(T=1);break;case 42:case 47:if(!(0<O+$+L))switch(d){case 0:switch(2*u+3*y.charCodeAt(N+1)){case 235:d=47;break;case 220:X=N,d=42}break;case 42:u===47&&Y===42&&X+2!==N&&(y.charCodeAt(X+2)===33&&(B+=y.substring(X,N+1)),ae="",d=0)}}d===0&&(C+=ae)}p=Y,Y=u,N++}if(X=B.length,0<X){if(q=h,0<G&&(_e=f(2,B,q,g,K,W,X,E,o,E),_e!==void 0&&(B=_e).length===0))return Me+B+Ie;if(B=q.join(",")+"{"+B+"}",U*ee!==0){switch(U!==2||l(B,2)||(ee=0),ee){case 111:B=B.replace(w,":-moz-$1")+B;break;case 112:B=B.replace(k,"::-webkit-input-$1")+B.replace(k,"::-moz-$1")+B.replace(k,":-ms-input-$1")+B}ee=0}}return Me+B+Ie}function t(g,h,y){var E=h.trim().split(s);h=E;var o=E.length,$=g.length;switch($){case 0:case 1:var d=0;for(g=$===0?"":g[0]+" ";d<o;++d)h[d]=r(g,h[d],y).trim();break;default:var L=d=0;for(h=[];d<o;++d)for(var O=0;O<$;++O)h[L++]=r(g[O]+" ",E[d],y).trim()}return h}function r(g,h,y){var E=h.charCodeAt(0);switch(33>E&&(E=(h=h.trim()).charCodeAt(0)),E){case 38:return h.replace(R,"$1"+g.trim());case 58:return g.trim()+h.replace(R,"$1"+g.trim());default:if(0<1*y&&0<h.indexOf("\f"))return h.replace(R,(g.charCodeAt(0)===58?"":"$1")+g.trim())}return g+h}function a(g,h,y,E){var o=g+";",$=2*h+3*y+4*E;if($===944){g=o.indexOf(":",9)+1;var d=o.substring(g,o.length-1).trim();return d=o.substring(0,g).trim()+d+";",U===1||U===2&&l(d,1)?"-webkit-"+d+d:d}if(U===0||U===2&&!l(o,1))return o;switch($){case 1015:return o.charCodeAt(10)===97?"-webkit-"+o+o:o;case 951:return o.charCodeAt(3)===116?"-webkit-"+o+o:o;case 963:return o.charCodeAt(5)===110?"-webkit-"+o+o:o;case 1009:if(o.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(o.charCodeAt(8)===45)return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(ce,"$1-webkit-$2")+o;break;case 932:if(o.charCodeAt(4)===45)switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(o.charCodeAt(8)!==99)break;return d=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+d+"-webkit-"+o+"-ms-flex-pack"+d+o;case 1005:return x.test(o)?o.replace(I,":-webkit-")+o.replace(I,":-moz-")+o:o;case 1e3:switch(d=o.substring(13).trim(),h=d.indexOf("-")+1,d.charCodeAt(0)+d.charCodeAt(h)){case 226:d=o.replace(i,"tb");break;case 232:d=o.replace(i,"tb-rl");break;case 220:d=o.replace(i,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+d+o;case 1017:if(o.indexOf("sticky",9)===-1)break;case 975:switch(h=(o=g).length-10,d=(o.charCodeAt(h)===33?o.substring(0,h):o).substring(g.indexOf(":",7)+1).trim(),$=d.charCodeAt(0)+(d.charCodeAt(7)|0)){case 203:if(111>d.charCodeAt(8))break;case 115:o=o.replace(d,"-webkit-"+d)+";"+o;break;case 207:case 102:o=o.replace(d,"-webkit-"+(102<$?"inline-":"")+"box")+";"+o.replace(d,"-webkit-"+d)+";"+o.replace(d,"-ms-"+d+"box")+";"+o}return o+";";case 938:if(o.charCodeAt(5)===45)switch(o.charCodeAt(6)){case 105:return d=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+d+"-ms-flex-"+d+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(Z,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(Z,"")+o}break;case 973:case 989:if(o.charCodeAt(3)!==45||o.charCodeAt(4)===122)break;case 931:case 953:if(re.test(g)===!0)return(d=g.substring(g.indexOf(":")+1)).charCodeAt(0)===115?a(g.replace("stretch","fill-available"),h,y,E).replace(":fill-available",":stretch"):o.replace(d,"-webkit-"+d)+o.replace(d,"-moz-"+d.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(o.charCodeAt(5)===102?"-ms-"+o:"")+o,y+E===211&&o.charCodeAt(13)===105&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(S,"$1-webkit-$2")+o}return o}function l(g,h){var y=g.indexOf(h===1?":":"{"),E=g.substring(0,h!==3?y:10);return y=g.substring(y+1,g.length-1),le(h!==2?E:E.replace(J,"$1"),y,h)}function c(g,h){var y=a(h,h.charCodeAt(0),h.charCodeAt(1),h.charCodeAt(2));return y!==h+";"?y.replace(te," or ($1)").substring(4):"("+h+")"}function f(g,h,y,E,o,$,d,L,O,P){for(var u=0,Y=h,p;u<G;++u)switch(p=Q[u].call(v,g,Y,y,E,o,$,d,L,O,P)){case void 0:case!1:case!0:case null:break;default:Y=p}if(Y!==h)return Y}function _(g){switch(g){case void 0:case null:G=Q.length=0;break;default:if(typeof g=="function")Q[G++]=g;else if(typeof g=="object")for(var h=0,y=g.length;h<y;++h)_(g[h]);else oe=!!g|0}return _}function m(g){return g=g.prefix,g!==void 0&&(le=null,g?typeof g!="function"?U=1:(U=2,le=g):U=0),m}function v(g,h){var y=g;if(33>y.charCodeAt(0)&&(y=y.trim()),fe=y,y=[fe],0<G){var E=f(-1,h,y,y,K,W,0,0,0,0);E!==void 0&&typeof E=="string"&&(h=E)}var o=n(de,y,h,0,0);return 0<G&&(E=f(-2,o,y,y,K,W,o.length,0,0,0),E!==void 0&&(o=E)),fe="",ee=0,W=K=1,o}var b=/^\0+/g,z=/[\0\r\f]/g,I=/: */g,x=/zoo|gra/,S=/([,: ])(transform)/g,s=/,\r+?/g,R=/([\t\r\n ])*\f?&/g,A=/@(k\w+)\s*(\S*)\s*/,k=/::(place)/g,w=/:(read-only)/g,i=/[svh]\w+-[tblr]{2}/,H=/\(\s*(.*)\s*\)/g,te=/([\s\S]*?);/g,Z=/-self|flex-/g,J=/[^]*?(:[rp][el]a[\w-]+)[^]*/,re=/stretch|:\s*\w+\-(?:conte|avail)/,ce=/([^-])(image-set\()/,W=1,K=1,ee=0,U=1,de=[],Q=[],G=0,le=null,oe=0,fe="";return v.use=_,v.set=m,e!==void 0&&m(e),v}var Pt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function zt(e){var n=Object.create(null);return function(t){return n[t]===void 0&&(n[t]=e(t)),n[t]}}var $t=/^((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)-.*))$/,et=zt(function(e){return $t.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Le={exports:{}},F={};/** @license React v16.13.1
|
|
18
|
+
* react-is.production.min.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/var tt;function Ot(){if(tt)return F;tt=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,z=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,s=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function k(i){if(typeof i=="object"&&i!==null){var H=i.$$typeof;switch(H){case n:switch(i=i.type,i){case _:case m:case r:case l:case a:case b:return i;default:switch(i=i&&i.$$typeof,i){case f:case v:case x:case I:case c:return i;default:return H}}case t:return H}}}function w(i){return k(i)===m}return F.AsyncMode=_,F.ConcurrentMode=m,F.ContextConsumer=f,F.ContextProvider=c,F.Element=n,F.ForwardRef=v,F.Fragment=r,F.Lazy=x,F.Memo=I,F.Portal=t,F.Profiler=l,F.StrictMode=a,F.Suspense=b,F.isAsyncMode=function(i){return w(i)||k(i)===_},F.isConcurrentMode=w,F.isContextConsumer=function(i){return k(i)===f},F.isContextProvider=function(i){return k(i)===c},F.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===n},F.isForwardRef=function(i){return k(i)===v},F.isFragment=function(i){return k(i)===r},F.isLazy=function(i){return k(i)===x},F.isMemo=function(i){return k(i)===I},F.isPortal=function(i){return k(i)===t},F.isProfiler=function(i){return k(i)===l},F.isStrictMode=function(i){return k(i)===a},F.isSuspense=function(i){return k(i)===b},F.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===r||i===m||i===l||i===a||i===b||i===z||typeof i=="object"&&i!==null&&(i.$$typeof===x||i.$$typeof===I||i.$$typeof===c||i.$$typeof===f||i.$$typeof===v||i.$$typeof===s||i.$$typeof===R||i.$$typeof===A||i.$$typeof===S)},F.typeOf=k,F}var j={};/** @license React v16.13.1
|
|
25
|
+
* react-is.development.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/var rt;function Nt(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,z=e?Symbol.for("react.suspense_list"):60120,I=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,s=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function k(u){return typeof u=="string"||typeof u=="function"||u===r||u===m||u===l||u===a||u===b||u===z||typeof u=="object"&&u!==null&&(u.$$typeof===x||u.$$typeof===I||u.$$typeof===c||u.$$typeof===f||u.$$typeof===v||u.$$typeof===s||u.$$typeof===R||u.$$typeof===A||u.$$typeof===S)}function w(u){if(typeof u=="object"&&u!==null){var Y=u.$$typeof;switch(Y){case n:var p=u.type;switch(p){case _:case m:case r:case l:case a:case b:return p;default:var T=p&&p.$$typeof;switch(T){case f:case v:case x:case I:case c:return T;default:return Y}}case t:return Y}}}var i=_,H=m,te=f,Z=c,J=n,re=v,ce=r,W=x,K=I,ee=t,U=l,de=a,Q=b,G=!1;function le(u){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),oe(u)||w(u)===_}function oe(u){return w(u)===m}function fe(u){return w(u)===f}function g(u){return w(u)===c}function h(u){return typeof u=="object"&&u!==null&&u.$$typeof===n}function y(u){return w(u)===v}function E(u){return w(u)===r}function o(u){return w(u)===x}function $(u){return w(u)===I}function d(u){return w(u)===t}function L(u){return w(u)===l}function O(u){return w(u)===a}function P(u){return w(u)===b}j.AsyncMode=i,j.ConcurrentMode=H,j.ContextConsumer=te,j.ContextProvider=Z,j.Element=J,j.ForwardRef=re,j.Fragment=ce,j.Lazy=W,j.Memo=K,j.Portal=ee,j.Profiler=U,j.StrictMode=de,j.Suspense=Q,j.isAsyncMode=le,j.isConcurrentMode=oe,j.isContextConsumer=fe,j.isContextProvider=g,j.isElement=h,j.isForwardRef=y,j.isFragment=E,j.isLazy=o,j.isMemo=$,j.isPortal=d,j.isProfiler=L,j.isStrictMode=O,j.isSuspense=P,j.isValidElementType=k,j.typeOf=w}()),j}process.env.NODE_ENV==="production"?Le.exports=Ot():Le.exports=Nt();var It=Le.exports,qe=It,Mt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Dt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ft={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xe={};Xe[qe.ForwardRef]=Ft;Xe[qe.Memo]=pt;function nt(e){return qe.isMemo(e)?pt:Xe[e.$$typeof]||Mt}var jt=Object.defineProperty,Lt=Object.getOwnPropertyNames,ot=Object.getOwnPropertySymbols,Yt=Object.getOwnPropertyDescriptor,Vt=Object.getPrototypeOf,at=Object.prototype;function _t(e,n,t){if(typeof n!="string"){if(at){var r=Vt(n);r&&r!==at&&_t(e,r,t)}var a=Lt(n);ot&&(a=a.concat(ot(n)));for(var l=nt(e),c=nt(n),f=0;f<a.length;++f){var _=a[f];if(!Dt[_]&&!(t&&t[_])&&!(c&&c[_])&&!(l&&l[_])){var m=Yt(n,_);try{jt(e,_,m)}catch{}}}}return e}var Bt=_t;const Ht=At(Bt);function pe(){return(pe=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var st=function(e,n){for(var t=[e[0]],r=0,a=n.length;r<a;r+=1)t.push(n[r],e[r+1]);return t},Ye=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!We.typeOf(e)},Oe=Object.freeze([]),he=Object.freeze({});function Ce(e){return typeof e=="function"}function Ve(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ze(e){return e&&typeof e.styledComponentId=="string"}var ge=typeof process<"u"&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ke=typeof window<"u"&&"HTMLElement"in window,Ut=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&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.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"),Gt=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
32
|
+
|
|
33
|
+
`,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.
|
|
34
|
+
|
|
35
|
+
- Are you trying to reuse it across renders?
|
|
36
|
+
- Are you accidentally calling collectStyles twice?
|
|
37
|
+
|
|
38
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
39
|
+
|
|
40
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
41
|
+
|
|
42
|
+
- Does this error occur on the client and is your target falsy?
|
|
43
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
44
|
+
|
|
45
|
+
`,5:`The clone method cannot be used on the client!
|
|
46
|
+
|
|
47
|
+
- Are you running in a client-like environment on the server?
|
|
48
|
+
- Are you trying to run SSR on the client?
|
|
49
|
+
|
|
50
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
51
|
+
|
|
52
|
+
- Are you using a custom target that isn't mounted?
|
|
53
|
+
- Does your document not have a valid head element?
|
|
54
|
+
- Have you accidentally removed a style tag manually?
|
|
55
|
+
|
|
56
|
+
`,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.
|
|
57
|
+
|
|
58
|
+
`,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
|
|
59
|
+
|
|
60
|
+
`,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.
|
|
61
|
+
|
|
62
|
+
`,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.
|
|
63
|
+
|
|
64
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
65
|
+
|
|
66
|
+
`,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.
|
|
67
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
68
|
+
as for instance in your render method then you may be running into this limitation.
|
|
69
|
+
|
|
70
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
71
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
72
|
+
`}:{};function Wt(){for(var e=arguments.length<=0?void 0:arguments[0],n=[],t=1,r=arguments.length;t<r;t+=1)n.push(t<0||arguments.length<=t?void 0:arguments[t]);return n.forEach(function(a){e=e.replace(/%[a-z]/,a)}),e}function Se(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];throw process.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(t.length>0?" Args: "+t.join(", "):"")):new Error(Wt.apply(void 0,[Gt[e]].concat(t)).trim())}var qt=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var n=e.prototype;return n.indexOfGroup=function(t){for(var r=0,a=0;a<t;a++)r+=this.groupSizes[a];return r},n.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var a=this.groupSizes,l=a.length,c=l;t>=c;)(c<<=1)<0&&Se(16,""+t);this.groupSizes=new Uint32Array(c),this.groupSizes.set(a),this.length=c;for(var f=l;f<c;f++)this.groupSizes[f]=0}for(var _=this.indexOfGroup(t+1),m=0,v=r.length;m<v;m++)this.tag.insertRule(_,r[m])&&(this.groupSizes[t]++,_++)},n.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],a=this.indexOfGroup(t),l=a+r;this.groupSizes[t]=0;for(var c=a;c<l;c++)this.tag.deleteRule(a)}},n.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var a=this.groupSizes[t],l=this.indexOfGroup(t),c=l+a,f=l;f<c;f++)r+=this.tag.getRule(f)+`/*!sc*/
|
|
73
|
+
`;return r},e}(),$e=new Map,Ne=new Map,Ee=1,Te=function(e){if($e.has(e))return $e.get(e);for(;Ne.has(Ee);)Ee++;var n=Ee++;return process.env.NODE_ENV!=="production"&&((0|n)<0||n>1<<30)&&Se(16,""+n),$e.set(e,n),Ne.set(n,e),n},Xt=function(e){return Ne.get(e)},Zt=function(e,n){n>=Ee&&(Ee=n+1),$e.set(e,n),Ne.set(n,e)},Kt="style["+ge+'][data-styled-version="5.3.6"]',Qt=new RegExp("^"+ge+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Jt=function(e,n,t){for(var r,a=t.split(","),l=0,c=a.length;l<c;l++)(r=a[l])&&e.registerName(n,r)},er=function(e,n){for(var t=(n.textContent||"").split(`/*!sc*/
|
|
74
|
+
`),r=[],a=0,l=t.length;a<l;a++){var c=t[a].trim();if(c){var f=c.match(Qt);if(f){var _=0|parseInt(f[1],10),m=f[2];_!==0&&(Zt(m,_),Jt(e,m,f[3]),e.getTag().insertRules(_,r)),r.length=0}else r.push(c)}}},tr=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},ht=function(e){var n=document.head,t=e||n,r=document.createElement("style"),a=function(f){for(var _=f.childNodes,m=_.length;m>=0;m--){var v=_[m];if(v&&v.nodeType===1&&v.hasAttribute(ge))return v}}(t),l=a!==void 0?a.nextSibling:null;r.setAttribute(ge,"active"),r.setAttribute("data-styled-version","5.3.6");var c=tr();return c&&r.setAttribute("nonce",c),t.insertBefore(r,l),r},rr=function(){function e(t){var r=this.element=ht(t);r.appendChild(document.createTextNode("")),this.sheet=function(a){if(a.sheet)return a.sheet;for(var l=document.styleSheets,c=0,f=l.length;c<f;c++){var _=l[c];if(_.ownerNode===a)return _}Se(17)}(r),this.length=0}var n=e.prototype;return n.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},n.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},n.getRule=function(t){var r=this.sheet.cssRules[t];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},e}(),nr=function(){function e(t){var r=this.element=ht(t);this.nodes=r.childNodes,this.length=0}var n=e.prototype;return n.insertRule=function(t,r){if(t<=this.length&&t>=0){var a=document.createTextNode(r),l=this.nodes[t];return this.element.insertBefore(a,l||null),this.length++,!0}return!1},n.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},n.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),or=function(){function e(t){this.rules=[],this.length=0}var n=e.prototype;return n.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},n.deleteRule=function(t){this.rules.splice(t,1),this.length--},n.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),it=Ke,ar={isServer:!Ke,useCSSOMInjection:!Ut},mt=function(){function e(t,r,a){t===void 0&&(t=he),r===void 0&&(r={}),this.options=pe({},ar,{},t),this.gs=r,this.names=new Map(a),this.server=!!t.isServer,!this.server&&Ke&&it&&(it=!1,function(l){for(var c=document.querySelectorAll(Kt),f=0,_=c.length;f<_;f++){var m=c[f];m&&m.getAttribute(ge)!=="active"&&(er(l,m),m.parentNode&&m.parentNode.removeChild(m))}}(this))}e.registerId=function(t){return Te(t)};var n=e.prototype;return n.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(pe({},this.options,{},t),this.gs,r&&this.names||void 0)},n.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},n.getTag=function(){return this.tag||(this.tag=(a=(r=this.options).isServer,l=r.useCSSOMInjection,c=r.target,t=a?new or(c):l?new rr(c):new nr(c),new qt(t)));var t,r,a,l,c},n.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},n.registerName=function(t,r){if(Te(t),this.names.has(t))this.names.get(t).add(r);else{var a=new Set;a.add(r),this.names.set(t,a)}},n.insertRules=function(t,r,a){this.registerName(t,r),this.getTag().insertRules(Te(t),a)},n.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},n.clearRules=function(t){this.getTag().clearGroup(Te(t)),this.clearNames(t)},n.clearTag=function(){this.tag=void 0},n.toString=function(){return function(t){for(var r=t.getTag(),a=r.length,l="",c=0;c<a;c++){var f=Xt(c);if(f!==void 0){var _=t.names.get(f),m=r.getGroup(c);if(_&&m&&_.size){var v=ge+".g"+c+'[id="'+f+'"]',b="";_!==void 0&&_.forEach(function(z){z.length>0&&(b+=z+",")}),l+=""+m+v+'{content:"'+b+`"}/*!sc*/
|
|
75
|
+
`}}}return l}(this)},e}(),sr=/(a)(d)/gi,ct=function(e){return String.fromCharCode(e+(e>25?39:97))};function Be(e){var n,t="";for(n=Math.abs(e);n>52;n=n/52|0)t=ct(n%52)+t;return(ct(n%52)+t).replace(sr,"$1-$2")}var me=function(e,n){for(var t=n.length;t;)e=33*e^n.charCodeAt(--t);return e},yt=function(e){return me(5381,e)};function ir(e){for(var n=0;n<e.length;n+=1){var t=e[n];if(Ce(t)&&!Ze(t))return!1}return!0}var cr=yt("5.3.6"),lr=function(){function e(n,t,r){this.rules=n,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&ir(n),this.componentId=t,this.baseHash=me(cr,t),this.baseStyle=r,mt.registerId(t)}return e.prototype.generateAndInjectStyles=function(n,t,r){var a=this.componentId,l=[];if(this.baseStyle&&l.push(this.baseStyle.generateAndInjectStyles(n,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(a,this.staticRulesId))l.push(this.staticRulesId);else{var c=ve(this.rules,n,t,r).join(""),f=Be(me(this.baseHash,c)>>>0);if(!t.hasNameForId(a,f)){var _=r(c,"."+f,void 0,a);t.insertRules(a,f,_)}l.push(f),this.staticRulesId=f}else{for(var m=this.rules.length,v=me(this.baseHash,r.hash),b="",z=0;z<m;z++){var I=this.rules[z];if(typeof I=="string")b+=I,process.env.NODE_ENV!=="production"&&(v=me(v,I+z));else if(I){var x=ve(I,n,t,r),S=Array.isArray(x)?x.join(""):x;v=me(v,S+z),b+=S}}if(b){var s=Be(v>>>0);if(!t.hasNameForId(a,s)){var R=r(b,"."+s,void 0,a);t.insertRules(a,s,R)}l.push(s)}}return l.join(" ")},e}(),ur=/^\s*\/\/.*$/gm,dr=[":","[",".","#"];function fr(e){var n,t,r,a,l=e===void 0?he:e,c=l.options,f=c===void 0?he:c,_=l.plugins,m=_===void 0?Oe:_,v=new Rt(f),b=[],z=function(S){function s(R){if(R)try{S(R+"}")}catch{}}return function(R,A,k,w,i,H,te,Z,J,re){switch(R){case 1:if(J===0&&A.charCodeAt(0)===64)return S(A+";"),"";break;case 2:if(Z===0)return A+"/*|*/";break;case 3:switch(Z){case 102:case 112:return S(k[0]+A),"";default:return A+(re===0?"/*|*/":"")}case-2:A.split("/*|*/}").forEach(s)}}}(function(S){b.push(S)}),I=function(S,s,R){return s===0&&dr.indexOf(R[t.length])!==-1||R.match(a)?S:"."+n};function x(S,s,R,A){A===void 0&&(A="&");var k=S.replace(ur,""),w=s&&R?R+" "+s+" { "+k+" }":k;return n=A,t=s,r=new RegExp("\\"+t+"\\b","g"),a=new RegExp("(\\"+t+"\\b){2,}"),v(R||!s?"":s,w)}return v.use([].concat(m,[function(S,s,R){S===2&&R.length&&R[0].lastIndexOf(t)>0&&(R[0]=R[0].replace(r,I))},z,function(S){if(S===-2){var s=b;return b=[],s}}])),x.hash=m.length?m.reduce(function(S,s){return s.name||Se(15),me(S,s.name)},5381).toString():"",x}var gt=se.createContext();gt.Consumer;var vt=se.createContext(),pr=(vt.Consumer,new mt),He=fr();function _r(){return se.useContext(gt)||pr}function hr(){return se.useContext(vt)||He}var bt=function(){function e(n,t){var r=this;this.inject=function(a,l){l===void 0&&(l=He);var c=r.name+l.hash;a.hasNameForId(r.id,c)||a.insertRules(r.id,c,l(r.rules,c,"@keyframes"))},this.toString=function(){return Se(12,String(r.name))},this.name=n,this.id="sc-keyframes-"+n,this.rules=t}return e.prototype.getName=function(n){return n===void 0&&(n=He),this.name+n.hash},e}(),mr=/([A-Z])/,yr=/([A-Z])/g,gr=/^ms-/,vr=function(e){return"-"+e.toLowerCase()};function lt(e){return mr.test(e)?e.replace(yr,vr).replace(gr,"-ms-"):e}var ut=function(e){return e==null||e===!1||e===""};function ve(e,n,t,r){if(Array.isArray(e)){for(var a,l=[],c=0,f=e.length;c<f;c+=1)(a=ve(e[c],n,t,r))!==""&&(Array.isArray(a)?l.push.apply(l,a):l.push(a));return l}if(ut(e))return"";if(Ze(e))return"."+e.styledComponentId;if(Ce(e)){if(typeof(m=e)!="function"||m.prototype&&m.prototype.isReactComponent||!n)return e;var _=e(n);return process.env.NODE_ENV!=="production"&&We.isElement(_)&&console.warn(Ve(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."),ve(_,n,t,r)}var m;return e instanceof bt?t?(e.inject(t,r),e.getName(r)):e:Ye(e)?function v(b,z){var I,x,S=[];for(var s in b)b.hasOwnProperty(s)&&!ut(b[s])&&(Array.isArray(b[s])&&b[s].isCss||Ce(b[s])?S.push(lt(s)+":",b[s],";"):Ye(b[s])?S.push.apply(S,v(b[s],s)):S.push(lt(s)+": "+(I=s,(x=b[s])==null||typeof x=="boolean"||x===""?"":typeof x!="number"||x===0||I in Pt?String(x).trim():x+"px")+";"));return z?[z+" {"].concat(S,["}"]):S}(e):e.toString()}var dt=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function be(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return Ce(e)||Ye(e)?dt(ve(st(Oe,[e].concat(t)))):t.length===0&&e.length===1&&typeof e[0]=="string"?e:dt(ve(st(e,t)))}var ft=/invalid hook call/i,Re=new Set,br=function(e,n){if(process.env.NODE_ENV!=="production"){var t="The component "+e+(n?' with the id of "'+n+'"':"")+` has been created dynamically.
|
|
76
|
+
You may see this warning because you've called styled inside another component.
|
|
77
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var a=!0;console.error=function(l){if(ft.test(l))a=!1,Re.delete(t);else{for(var c=arguments.length,f=new Array(c>1?c-1:0),_=1;_<c;_++)f[_-1]=arguments[_];r.apply(void 0,[l].concat(f))}},se.useRef(),a&&!Re.has(t)&&(console.warn(t),Re.add(t))}catch(l){ft.test(l.message)&&Re.delete(t)}finally{console.error=r}}},Sr=function(e,n,t){return t===void 0&&(t=he),e.theme!==t.theme&&e.theme||n||t.theme},xr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wr=/(^-|-$)/g;function De(e){return e.replace(xr,"-").replace(wr,"")}var St=function(e){return Be(yt(e)>>>0)};function Pe(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ue=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},Er=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function Cr(e,n,t){var r=e[t];Ue(n)&&Ue(r)?xt(r,n):e[t]=n}function xt(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];for(var a=0,l=t;a<l.length;a++){var c=l[a];if(Ue(c))for(var f in c)Er(f)&&Cr(e,c[f],f)}return e}var wt=se.createContext();wt.Consumer;var Fe={};function Et(e,n,t){var r=Ze(e),a=!Pe(e),l=n.attrs,c=l===void 0?Oe:l,f=n.componentId,_=f===void 0?function(A,k){var w=typeof A!="string"?"sc":De(A);Fe[w]=(Fe[w]||0)+1;var i=w+"-"+St("5.3.6"+w+Fe[w]);return k?k+"-"+i:i}(n.displayName,n.parentComponentId):f,m=n.displayName,v=m===void 0?function(A){return Pe(A)?"styled."+A:"Styled("+Ve(A)+")"}(e):m,b=n.displayName&&n.componentId?De(n.displayName)+"-"+n.componentId:n.componentId||_,z=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,I=n.shouldForwardProp;r&&e.shouldForwardProp&&(I=n.shouldForwardProp?function(A,k,w){return e.shouldForwardProp(A,k,w)&&n.shouldForwardProp(A,k,w)}:e.shouldForwardProp);var x,S=new lr(t,b,r?e.componentStyle:void 0),s=S.isStatic&&c.length===0,R=function(A,k){return function(w,i,H,te){var Z=w.attrs,J=w.componentStyle,re=w.defaultProps,ce=w.foldedComponentIds,W=w.shouldForwardProp,K=w.styledComponentId,ee=w.target;process.env.NODE_ENV!=="production"&&se.useDebugValue(K);var U=function(E,o,$){E===void 0&&(E=he);var d=pe({},o,{theme:E}),L={};return $.forEach(function(O){var P,u,Y,p=O;for(P in Ce(p)&&(p=p(d)),p)d[P]=L[P]=P==="className"?(u=L[P],Y=p[P],u&&Y?u+" "+Y:u||Y):p[P]}),[d,L]}(Sr(i,se.useContext(wt),re)||he,i,Z),de=U[0],Q=U[1],G=function(E,o,$,d){var L=_r(),O=hr(),P=o?E.generateAndInjectStyles(he,L,O):E.generateAndInjectStyles($,L,O);return process.env.NODE_ENV!=="production"&&se.useDebugValue(P),process.env.NODE_ENV!=="production"&&!o&&d&&d(P),P}(J,te,de,process.env.NODE_ENV!=="production"?w.warnTooManyClasses:void 0),le=H,oe=Q.$as||i.$as||Q.as||i.as||ee,fe=Pe(oe),g=Q!==i?pe({},i,{},Q):i,h={};for(var y in g)y[0]!=="$"&&y!=="as"&&(y==="forwardedAs"?h.as=g[y]:(W?W(y,et,oe):!fe||et(y))&&(h[y]=g[y]));return i.style&&Q.style!==i.style&&(h.style=pe({},i.style,{},Q.style)),h.className=Array.prototype.concat(ce,K,G!==K?G:null,i.className,Q.className).filter(Boolean).join(" "),h.ref=le,se.createElement(oe,h)}(x,A,k,s)};return R.displayName=v,(x=se.forwardRef(R)).attrs=z,x.componentStyle=S,x.displayName=v,x.shouldForwardProp=I,x.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Oe,x.styledComponentId=b,x.target=r?e.target:e,x.withComponent=function(A){var k=n.componentId,w=function(H,te){if(H==null)return{};var Z,J,re={},ce=Object.keys(H);for(J=0;J<ce.length;J++)Z=ce[J],te.indexOf(Z)>=0||(re[Z]=H[Z]);return re}(n,["componentId"]),i=k&&k+"-"+(Pe(A)?A:De(Ve(A)));return Et(A,pe({},w,{attrs:z,componentId:i}),t)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?xt({},e.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(br(v,b),x.warnTooManyClasses=function(A,k){var w={},i=!1;return function(H){if(!i&&(w[H]=!0,Object.keys(w).length>=200)){var te=k?' with the id of "'+k+'"':"";console.warn("Over 200 classes were generated for component "+A+te+`.
|
|
78
|
+
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
79
|
+
Example:
|
|
80
|
+
const Component = styled.div.attrs(props => ({
|
|
81
|
+
style: {
|
|
82
|
+
background: props.background,
|
|
83
|
+
},
|
|
84
|
+
}))\`width: 100%;\`
|
|
85
|
+
|
|
86
|
+
<Component />`),i=!0,w={}}}}(v,b)),x.toString=function(){return"."+x.styledComponentId},a&&Ht(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var Ge=function(e){return function n(t,r,a){if(a===void 0&&(a=he),!We.isValidElementType(r))return Se(1,String(r));var l=function(){return t(r,a,be.apply(void 0,arguments))};return l.withConfig=function(c){return n(t,r,pe({},a,{},c))},l.attrs=function(c){return n(t,r,pe({},a,{attrs:Array.prototype.concat(a.attrs,c).filter(Boolean)}))},l}(Et,e)};["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","marquee","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","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ge[e]=Ge(e)});function Ct(e){process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var a=be.apply(void 0,[e].concat(t)).join(""),l=St(a);return new bt(l,a)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
87
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
88
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===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.
|
|
89
|
+
|
|
90
|
+
See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const ue=Ge,ie={add_on:"add_on",assigned:"assigned",caution:"caution",destroy:"destroy",info:"info",success:"success",upgrade:"upgrade"},Ae={small:"small",medium:"medium"},Ar=e=>{switch(e){case ie.info:return"var(--cc_color_background_2)";case ie.upgrade:return"var(--cc_color_brand_upgrade_alpha_20)";case ie.assigned:return"var(--cc_color_utility_assigned_alpha_20)";case ie.add_on:return"var(--cc_color_brand_add_on_alpha_20)";default:return`var(--cc_color_utility_${e}_alpha_20)`}},kr=e=>{switch(e){case ie.info:return"var(--cc_color_border_default)";case ie.upgrade:return"var(--cc_color_brand_upgrade_alpha_60)";case ie.assigned:return"var(--cc_color_utility_assigned_alpha_60)";case ie.add_on:return"var(--cc_color_brand_add_on_alpha_60)";default:return`var(--cc_color_utility_${e}_alpha_60)`}},Tr=ue.span`
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
gap: var(--cc_size_spacing_xs);
|
|
95
|
+
background-color: ${e=>Ar(e.color||ie.info)};
|
|
96
|
+
border-radius: var(--cc_size_border_radius_pill);
|
|
97
|
+
border: var(--cc_size_border_width_s) solid
|
|
98
|
+
${e=>kr(e.color||ie.info)};
|
|
99
|
+
padding: ${e=>e.size===Ae.small?"6px":"var(--cc_size_spacing_s)"};
|
|
100
|
+
height: ${e=>e.size===Ae.small?"var(--cc_size_avatar_xs)":"var(--cc_size_avatar_s)"};
|
|
101
|
+
line-height: 1.5;
|
|
102
|
+
`,Rr=ue.i`
|
|
103
|
+
color: var(--cc_color_text_default);
|
|
104
|
+
font-size: ${e=>e.size===Ae.small?"11px":"14px"};
|
|
105
|
+
line-height: 0;
|
|
106
|
+
`,Pr=ue.span`
|
|
107
|
+
color: var(--cc_color_text_default);
|
|
108
|
+
font-family: 'Averta', system-ui, sans-serif;
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
font-size: ${e=>e.size===Ae.small?"9px":"10px"};
|
|
111
|
+
text-transform: uppercase;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
text-overflow: ellipsis;
|
|
115
|
+
letter-spacing: 0.25px;
|
|
116
|
+
|
|
117
|
+
&:empty {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
`;function zr({children:e,color:n=ie.info,className:t,iconName:r,size:a=Ae.medium,style:l,testId:c}){return ne.jsxs(Tr,{size:a,className:t,color:n,style:l,"data-testid":c,children:[r?ne.jsx(Rr,{size:a,className:`mdi mdi-${r}`}):null,ne.jsx(Pr,{size:a,children:e})]})}const $r="#0967d2",Or="#142334",Nr="#ffd000",Ir="#0ce8d6",Mr="#7949d1",Dr="#bca4e8",Fr="#ef4e4e",jr="#f48585",Lr="#ffd000",Yr="#12a537",Vr="#3ebd93",Br="#42608a",Hr="#e76119",Ur="#ffffff",Gr="#142334",Wr="#f5f7fa",qr="#192d43",Xr="#ebeff5",Zr="#1f3751",Kr="rgba(31, 55, 81, 0.75)",Qr="#142334",Jr="#ffffff",en="#4d5a68",tn="#c3c8cc",rn="#8191a2",nn="#a0a7af",on="#0967d2",an="#6fabf1",sn="#1f3751",cn="#ffffff",ln="#ebeff5",un="#2a415a",dn="#ef4e4e",fn="#f48585",pn="#12a537",_n="#3ebd93",hn="#e5f1ff",mn="rgba(255, 255, 255, 0.1)",yn="#ffffff",gn="#142334",vn="#ffffff",bn="#142334",Sn="#4d5a68",xn="#c3c8cc",wn="#ffffff",En="#142334",Cn="#ffffff",An="#142334",kn="#0967d2",Tn="#6fabf1",Rn="#142334",Pn="#ffffff",zn="#4d5a68",$n="#c3c8cc",On="rgba(20, 35, 52, 0.12)",Nn="rgba(255, 255, 255, 0.15)",In="rgba(20, 35, 52, 0.2)",Mn="rgba(255, 255, 255, 0.22)",Dn="#0967d2",Fn="#6fabf1",jn="rgba(20, 35, 52, 0.13)",Ln="rgba(6, 10, 16, 0.5)",Yn="rgba(20, 35, 52, 0.13)",Vn="rgba(6, 10, 16, 0.6)",Bn="rgba(20, 35, 52, 0.2)",Hn="rgba(6, 10, 16, 0.7)",Un="#31a03c",Gn="#4191ed",Wn="#a227c5",qn="#354b62",Xn="#ffd000",Zn="#e76119",Kn="#c73732",Qn="#828c95",Jn="#4d5a68",eo="#a227c5",to="#e76119",ro="#31a03c",no="#4191ed",oo="#c73732",ao="#d28e09",so="#354b62",io="#413ecf",co="#d63baa",lo="#745138",uo="#ffd000",fo=2,po=4,_o=8,ho=16,mo=24,yo=32,go=48,vo=1,bo=2,So=4,xo=8,wo=2,Eo=4,Co=8,Ao=16,ko=24,To=1e3,Ro=10,Po=12,zo=14,$o=16,Oo=20,No=24,Io=32,Mo=42,Do=16,Fo=24,jo=32,Lo=40,Yo=3,Vo=1,Bo=6,Ho=2,Uo=12,Go=4,Wo=Object.freeze(Object.defineProperty({__proto__:null,color_background_1_de:Gr,color_background_1_le:Ur,color_background_2_de:qr,color_background_2_le:Wr,color_background_3_de:Zr,color_background_3_le:Xr,color_background_backdrop:Kr,color_border_default_de:Nn,color_border_default_le:On,color_border_input_active_de:Fn,color_border_input_active_le:Dn,color_border_input_inactive_de:Mn,color_border_input_inactive_le:In,color_brand_accent:Nr,color_brand_add_on_de:Dr,color_brand_add_on_le:Mr,color_brand_primary:$r,color_brand_secondary:Or,color_brand_upgrade:Ir,color_button_background_destroy_de:fn,color_button_background_destroy_le:dn,color_button_background_primary_de:an,color_button_background_primary_le:on,color_button_background_secondary_de:cn,color_button_background_secondary_le:sn,color_button_background_subtle_de:un,color_button_background_subtle_le:ln,color_button_background_success_de:_n,color_button_background_success_le:pn,color_button_background_tint_de:mn,color_button_background_tint_le:hn,color_button_text_destroy_de:En,color_button_text_destroy_le:wn,color_button_text_primary_de:gn,color_button_text_primary_le:yn,color_button_text_secondary_de:bn,color_button_text_secondary_le:vn,color_button_text_subtle_de:xn,color_button_text_subtle_le:Sn,color_button_text_success_de:An,color_button_text_success_le:Cn,color_collab_blue:no,color_collab_brown:lo,color_collab_green:ro,color_collab_magenta:co,color_collab_navy:so,color_collab_orange:to,color_collab_owner:uo,color_collab_plum:io,color_collab_purple:eo,color_collab_red:oo,color_collab_yellow:ao,color_depth_1_de:Ln,color_depth_1_le:jn,color_depth_2_de:Vn,color_depth_2_le:Yn,color_depth_3_de:Hn,color_depth_3_le:Bn,color_label_blue:Gn,color_label_dark_gray:Jn,color_label_green:Un,color_label_light_gray:Qn,color_label_navy:qn,color_label_orange:Zn,color_label_purple:Wn,color_label_red:Kn,color_label_yellow:Xn,color_link_primary_de:Tn,color_link_primary_le:kn,color_link_secondary_de:Pn,color_link_secondary_le:Rn,color_link_subtle_de:$n,color_link_subtle_le:zn,color_text_default_de:Jr,color_text_default_le:Qr,color_text_nonessential_de:nn,color_text_nonessential_le:rn,color_text_subtle_de:tn,color_text_subtle_le:en,color_utility_assigned:Hr,color_utility_caution:Lr,color_utility_destroy_de:jr,color_utility_destroy_le:Fr,color_utility_info:Br,color_utility_success_de:Vr,color_utility_success_le:Yr,size_avatar_l:Lo,size_avatar_m:jo,size_avatar_s:Fo,size_avatar_xs:Do,size_border_radius_l:Co,size_border_radius_m:Eo,size_border_radius_pill:To,size_border_radius_s:wo,size_border_radius_xl:Ao,size_border_radius_xxl:ko,size_border_width_l:So,size_border_width_m:bo,size_border_width_s:vo,size_border_width_xl:xo,size_depth_1_blur:Yo,size_depth_1_y:Vo,size_depth_2_blur:Bo,size_depth_2_y:Ho,size_depth_3_blur:Uo,size_depth_3_y:Go,size_spacing_l:mo,size_spacing_m:ho,size_spacing_s:_o,size_spacing_xl:yo,size_spacing_xs:po,size_spacing_xxl:go,size_spacing_xxs:fo,size_text_l:Oo,size_text_m:$o,size_text_s:zo,size_text_xl:No,size_text_xs:Po,size_text_xxl:Io,size_text_xxs:Ro,size_text_xxxl:Mo},Symbol.toStringTag,{value:"Module"})),ze={...Wo},qo=`font-family: system-ui, -apple-system, BlinkMacSystemFont,
|
|
121
|
+
'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;`,Xo=`font-family: 'Averta', system-ui, -apple-system, BlinkMacSystemFont,
|
|
122
|
+
'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;`;be`
|
|
123
|
+
outline: var(--cc_size_border_width_m) solid
|
|
124
|
+
var(--cc_color_border_input_active);
|
|
125
|
+
outline-offset: var(--cc_size_spacing_xxs);
|
|
126
|
+
`;be`
|
|
127
|
+
margin: -1px;
|
|
128
|
+
padding: 0;
|
|
129
|
+
width: 1px;
|
|
130
|
+
height: 1px;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
clip: rect(0 0 0 0);
|
|
133
|
+
clip: rect(0, 0, 0, 0);
|
|
134
|
+
position: absolute;
|
|
135
|
+
`;const Zo=e=>{const n=["xxl","xl","l","m","s","xs","xxs"],t=e.split(" "),r=[];return t.forEach(a=>{n.includes(a)?r.push(`var(--cc_size_spacing_${a})`):r.push("0")}),r.join(" ")},Ko={large:ze.size_avatar_l,medium:ze.size_avatar_m,small:ze.size_avatar_s,xsmall:ze.size_avatar_xs},Qo=Ct`
|
|
136
|
+
to {
|
|
137
|
+
stroke-dashoffset: 200;
|
|
138
|
+
}
|
|
139
|
+
`,Jo=Ct`
|
|
140
|
+
to {
|
|
141
|
+
transform: rotate(1turn);
|
|
142
|
+
}
|
|
143
|
+
`,ea=ue.span`
|
|
144
|
+
display: inline-flex;
|
|
145
|
+
flex-direction: ${e=>e.layout==="vertical"?"column":"row"};
|
|
146
|
+
align-items: center;
|
|
147
|
+
`,ta=ue.span`
|
|
148
|
+
font-family: system-ui, sans-serif;
|
|
149
|
+
font-weight: 400;
|
|
150
|
+
font-size: ${e=>e.labelFontSize}px;
|
|
151
|
+
color: var(--cc_color_text_nonessential);
|
|
152
|
+
margin-${e=>e.layout==="vertical"?"block-start":"inline-start"}: 12px;
|
|
153
|
+
`,ra=ue.span`
|
|
154
|
+
display: block;
|
|
155
|
+
position: relative;
|
|
156
|
+
width: ${e=>e.size}px;
|
|
157
|
+
height: ${e=>e.size}px;
|
|
158
|
+
`,na=ue.svg`
|
|
159
|
+
position: absolute;
|
|
160
|
+
top: 0;
|
|
161
|
+
bottom: 0;
|
|
162
|
+
left: 0;
|
|
163
|
+
right: 0;
|
|
164
|
+
transform: rotate(0turn);
|
|
165
|
+
animation-name: ${Jo};
|
|
166
|
+
animation-duration: 0.75s;
|
|
167
|
+
animation-iteration-count: infinite;
|
|
168
|
+
animation-timing-function: linear;
|
|
169
|
+
`,oa=ue.circle`
|
|
170
|
+
stroke: ${e=>e.trackColor};
|
|
171
|
+
fill: transparent;
|
|
172
|
+
stroke-width: 28;
|
|
173
|
+
`,aa=ue.circle`
|
|
174
|
+
stroke: ${e=>e.meterColor};
|
|
175
|
+
stroke-width: 28;
|
|
176
|
+
fill: transparent;
|
|
177
|
+
stroke-dasharray: 540;
|
|
178
|
+
stroke-dashoffset: 506;
|
|
179
|
+
animation-name: ${Qo};
|
|
180
|
+
animation-duration: 1s;
|
|
181
|
+
animation-iteration-count: infinite;
|
|
182
|
+
animation-direction: alternate;
|
|
183
|
+
animation-timing-function: linear;
|
|
184
|
+
`,sa=({accessibilityLabel:e,testId:n,className:t,label:r,layout:a="horizontal",meterColor:l="var(--cc_color_border_input_inactive)",size:c="medium",style:f,trackColor:_="var(--cc_color_background_2)"})=>{const m=typeof c=="number"?c:Ko[c],v=m<=24?12:14,b=ne.jsx(ra,{size:m,className:t,style:f,"data-testid":n,children:ne.jsxs(na,{viewBox:"0 0 200 200",focusable:"false","data-svg-type":"spinner",children:[ne.jsx("title",{children:e}),ne.jsxs("g",{role:"presentation",children:[ne.jsx(oa,{r:"86",cy:"100",cx:"100",trackColor:_}),ne.jsx(aa,{r:"86",cy:"100",cx:"100",meterColor:l})]})]})});return r?ne.jsxs(ea,{layout:a,children:[b,ne.jsx(ta,{labelFontSize:v,layout:a,children:r})]}):b},ye={xxxl:{size:"var(--cc_size_text_xxxl)",family:"heading",weight:800,lineHeight:1.1},xxl:{size:"var(--cc_size_text_xxl)",family:"heading",weight:800,lineHeight:1.1},xl:{size:"var(--cc_size_text_xl)",family:"heading",weight:700,lineHeight:1.1},l:{size:"var(--cc_size_text_l)",family:"system",weight:700,lineHeight:1.2},m:{size:"var(--cc_size_text_m)",family:"system",lineHeight:1.4},s:{size:"var(--cc_size_text_s)",family:"system",lineHeight:1.4},xs:{size:"var(--cc_size_text_xs)",family:"system",lineHeight:1.4},xxs:{size:"var(--cc_size_text_xxs)",family:"system",lineHeight:1.4}},ia=ue.span`
|
|
185
|
+
/* unset all global typography styles */
|
|
186
|
+
all: unset;
|
|
187
|
+
|
|
188
|
+
/* default is block */
|
|
189
|
+
display: ${e=>e.textDisplay};
|
|
190
|
+
|
|
191
|
+
/* Component can inherit font color for one-offs */
|
|
192
|
+
color: ${e=>e.textColor==="inherit"?"inherit":`var(--cc_color_text_${e.textColor})`};
|
|
193
|
+
|
|
194
|
+
/* Use either Averta (heading) or system font stack default */
|
|
195
|
+
${e=>e.textFontFamily&&e.textFontFamily==="heading"||ye[e.size].family==="heading"?Xo:qo}
|
|
196
|
+
|
|
197
|
+
/* Add 1px to font size if heading font family, due to Averta lookin' too small */
|
|
198
|
+
font-size: ${e=>e.textFontFamily==="heading"?`calc(${ye[e.size].size} + 1px)`:ye[e.size].size};
|
|
199
|
+
line-height: ${e=>ye[e.size].lineHeight};
|
|
200
|
+
|
|
201
|
+
/* if ccMargin is specified in props, convert spacing tokens to CSS variables */
|
|
202
|
+
${e=>e.ccMargin?be`
|
|
203
|
+
margin: ${Zo(e.ccMargin)};
|
|
204
|
+
`:null}
|
|
205
|
+
|
|
206
|
+
/* if user specifies weight in props OR there is a weight default for the font size, set it in CSS */
|
|
207
|
+
${e=>e.weight||ye[e.size].weight?be`
|
|
208
|
+
font-weight: ${e.weight||ye[e.size].weight};
|
|
209
|
+
`:null}
|
|
210
|
+
`;function ca({as:e,children:n,color:t="default",size:r="s",family:a,ccMargin:l,weight:c,display:f="block",className:_,style:m,...v}){return ne.jsx(ia,{as:e,size:r,textFontFamily:a,ccMargin:l,textColor:t,weight:c,textDisplay:f,className:_,style:m,...v,children:n})}exports.Badge=zr;exports.Spinner=sa;exports.Text=ca;
|