minordm-test-ui-kit 0.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/README.md +73 -0
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/minordm-test-ui-kit.es.d.ts +1 -0
- package/dist/minordm-test-ui-kit.es.js +1548 -0
- package/dist/minordm-test-ui-kit.umd.js +168 -0
- package/package.json +59 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`react`)):typeof define==`function`&&define.amd?define([`react`],t):(e=typeof globalThis<`u`?globalThis:e||self,e[`minordm-test-ui-kit`]=t(e.React))})(this,function(e){var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e};e=((e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)))(e);var l=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),u=s((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case ee:return`SuspenseList`;case ne:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case w:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===w)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=ie.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(ae.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){D||(D=!0,console.error("%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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return O[e]||(O[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(T(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`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 f(p);if(ae.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,oe[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,o,p,m,p),oe[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===w&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),w=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.client.reference`),ie=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=Object.prototype.hasOwnProperty,T=Array.isArray,E=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var D,O={},k=m.react_stack_bottom_frame.bind(m,o)(),A=E(i(o)),oe={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>ie.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):k,r?E(i(e)):A)},e.jsxs=function(e,t,n){var r=1e4>ie.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):k,r?E(i(e)):A)}})()})),d=s(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=l():t.exports=u()}))(),f=()=>(0,d.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,d.jsx)(`path`,{d:`M23.1563 12.8438C22.6898 12.8438 22.3125 12.4664 22.3125 12C22.3125 10.6078 22.0406 9.25781 21.5016 7.98516C20.983 6.75998 20.2325 5.64659 19.2914 4.70625C18.3521 3.76387 17.2385 3.01321 16.0125 2.49609C14.7422 1.95938 13.3922 1.6875 12 1.6875C11.5336 1.6875 11.1562 1.31016 11.1562 0.84375C11.1562 0.377344 11.5336 0 12 0C13.6195 0 15.1922 0.316406 16.6711 0.944531C18.1008 1.54688 19.3828 2.41406 20.4844 3.51562C21.5859 4.61719 22.4508 5.90156 23.0555 7.32891C23.6813 8.80781 23.9977 10.3805 23.9977 12C24 12.4664 23.6227 12.8438 23.1563 12.8438Z`})});function p(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var m=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,h=p(function(e){return m.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),g=`-ms-`,_=`-moz-`,v=`-webkit-`,y=`comm`,b=`rule`,x=`decl`,S=`@import`,C=`@namespace`,ee=`@keyframes`,te=`@layer`,w=Math.abs,ne=String.fromCharCode,re=Object.assign;function ie(e,t){return O(e,0)^45?(((t<<2^O(e,0))<<2^O(e,1))<<2^O(e,2))<<2^O(e,3):0}function ae(e){return e.trim()}function T(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function D(e,t,n){return e.indexOf(t,n)}function O(e,t){return e.charCodeAt(t)|0}function k(e,t,n){return e.slice(t,n)}function A(e){return e.length}function oe(e){return e.length}function j(e,t){return t.push(e),e}function se(e,t){return e.map(t).join(``)}function ce(e,t){return e.filter(function(e){return!T(e,t)})}var le=1,M=1,ue=0,N=0,P=0,F=``;function de(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:le,column:M,length:o,return:``,siblings:s}}function I(e,t){return re(de(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function L(e){for(;e.root;)e=I(e.root,{children:[e]});j(e,e.siblings)}function fe(){return P}function pe(){return P=N>0?O(F,--N):0,M--,P===10&&(M=1,le--),P}function R(){return P=N<ue?O(F,N++):0,M++,P===10&&(M=1,le++),P}function z(){return O(F,N)}function me(){return N}function B(e,t){return k(F,e,t)}function V(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 he(e){return le=M=1,ue=A(F=e),N=0,[]}function ge(e){return F=``,e}function _e(e){return ae(B(N-1,be(e===91?e+2:e===40?e+1:e)))}function ve(e){for(;(P=z())&&P<33;)R();return V(e)>2||V(P)>3?``:` `}function ye(e,t){for(;--t&&R()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return B(e,me()+(t<6&&z()==32&&R()==32))}function be(e){for(;R();)switch(P){case e:return N;case 34:case 39:e!==34&&e!==39&&be(P);break;case 40:e===41&&be(e);break;case 92:R();break}return N}function xe(e,t){for(;R()&&e+P!==57&&!(e+P===84&&z()===47););return`/*`+B(t,N-1)+`*`+ne(e===47?e:R())}function Se(e){for(;!V(z());)R();return B(e,N)}function Ce(e){return ge(we(``,null,null,null,[``],e=he(e),0,[0],e))}function we(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=R()){case 40:if(m!=108&&O(C,d-1)==58){D(C+=E(_e(v),`&`,`&\f`),`&\f`,w(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=_e(v);break;case 9:case 10:case 13:case 32:C+=ve(m);break;case 92:C+=ye(me()-1,7);continue;case 47:switch(z()){case 42:case 47:j(Ee(xe(R(),me()),t,n,c),c),(V(m||1)==5||V(z()||1)==5)&&A(C)&&k(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=A(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=E(C,/\f/g,``)),p>0&&(A(C)-d||h===0&&m===47)&&j(p>32?De(C+`;`,r,n,d-1,c):De(E(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(j(S=Te(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)we(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(O(C,3)===110)break;case 108:if(O(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?we(e,S,S,r&&j(Te(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):we(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+A(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&pe()==125)continue}switch(C+=ne(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(A(C)-1)*_,_=1;break;case 64:z()===45&&(C+=_e(R())),f=z(),u=d=A(y=C+=Se(me())),v++;break;case 45:m===45&&A(C)==2&&(h=0)}}return a}function Te(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=oe(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=k(e,f+1,f=w(g=o[h])),x=e;v<m;++v)(x=ae(g>0?p[v]+` `+y:E(y,/&\f/g,p[v])))&&(c[_++]=x);return de(e,t,n,i===0?b:s,c,l,u,d)}function Ee(e,t,n,r){return de(e,t,n,y,ne(fe()),k(e,2,-2),0,r)}function De(e,t,n,r,i){return de(e,t,n,x,k(e,0,r),k(e,r+1,-1),r,i)}function Oe(e,t,n){switch(ie(e,t)){case 5103:return v+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return v+e+e;case 4855:return v+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return _+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return v+e+_+e+g+e+e;case 5936:switch(O(e,t+11)){case 114:return v+e+g+E(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return v+e+g+E(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return v+e+g+E(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return v+e+g+e+e;case 6165:return v+e+g+`flex-`+e+e;case 5187:return v+e+E(e,/(\w+).+(:[^]+)/,v+`box-$1$2`+g+`flex-$1$2`)+e;case 5443:return v+e+g+`flex-item-`+E(e,/flex-|-self/g,``)+(T(e,/flex-|baseline/)?``:g+`grid-row-`+E(e,/flex-|-self/g,``))+e;case 4675:return v+e+g+`flex-line-pack`+E(e,/align-content|flex-|-self/g,``)+e;case 5548:return v+e+g+E(e,`shrink`,`negative`)+e;case 5292:return v+e+g+E(e,`basis`,`preferred-size`)+e;case 6060:return v+`box-`+E(e,`-grow`,``)+v+e+g+E(e,`grow`,`positive`)+e;case 4554:return v+E(e,/([^-])(transform)/g,`$1`+v+`$2`)+e;case 6187:return E(E(E(e,/(zoom-|grab)/,v+`$1`),/(image-set)/,v+`$1`),e,``)+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,v+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,v+`box-pack:$3`+g+`flex-pack:$3`),/space-between/,`justify`)+v+e+e;case 4200:if(!T(e,/flex-|baseline/))return g+`grid-column-align`+k(e,t)+e;break;case 2592:case 3360:return g+E(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,T(e.props,/grid-\w+-end/)})?~D(e+(n=n[t].value),`span`,0)?e:g+E(e,`-start`,``)+e+g+`grid-row-span:`+(~D(n,`span`,0)?T(n,/\d+/):T(n,/\d+/)-+T(e,/\d+/))+`;`:g+E(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return T(e.props,/grid-\w+-start/)})?e:g+E(E(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,v+`$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(A(e)-1-t>6)switch(O(e,t+1)){case 109:if(O(e,t+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,`$1`+v+`$2-$3$1`+_+(O(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~D(e,`stretch`,0)?Oe(E(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return g+n+`:`+r+s+(i?g+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(O(e,t+6)===121)return E(e,`:`,`:`+v)+e;break;case 6444:switch(O(e,O(e,14)===45?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+v+(O(e,14)===45?`inline-`:``)+`box$3$1`+v+`$2$3$1`+g+`$2box$3`)+e;case 100:return E(e,`:`,`:`+g)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,`scroll-`,`scroll-snap-`)+e}return e}function ke(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Ae(e,t,n,r){switch(e.type){case te:if(e.children.length)break;case S:case C:case x:return e.return=e.return||e.value;case y:return``;case ee:return e.return=e.value+`{`+ke(e.children,r)+`}`;case b:if(!A(e.value=e.props.join(`,`)))return``}return A(n=ke(e.children,r))?e.return=e.value+`{`+n+`}`:``}function je(e){var t=oe(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Me(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ne(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case x:e.return=Oe(e.value,e.length,n);return;case ee:return ke([I(e,{value:E(e.value,`@`,`@`+v)})],r);case b:if(e.length)return se(n=e.props,function(t){switch(T(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:L(I(e,{props:[E(t,/:(read-\w+)/,`:`+_+`$1`)]})),L(I(e,{props:[t]})),re(e,{props:ce(n,r)});break;case`::placeholder`:L(I(e,{props:[E(t,/:(plac\w+)/,`:`+v+`input-$1`)]})),L(I(e,{props:[E(t,/:(plac\w+)/,`:`+_+`$1`)]})),L(I(e,{props:[E(t,/:(plac\w+)/,g+`input-$1`)]})),L(I(e,{props:[t]})),re(e,{props:ce(n,r)});break}return``})}}var H=typeof process<`u`&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||`data-styled`,Pe=`active`,Fe=`data-styled-version`,Ie=`6.4.0`,Le=`/*!sc*/
|
|
7
|
+
`,U=typeof window<`u`&&typeof document<`u`;function Re(e){if(typeof process<`u`&&process.env!==void 0){let t=process.env[e];if(t!==void 0&&t!==``)return t!==`false`}}var ze=!!(typeof SC_DISABLE_SPEEDY==`boolean`?SC_DISABLE_SPEEDY:Re(`REACT_APP_SC_DISABLE_SPEEDY`)??Re(`SC_DISABLE_SPEEDY`)??(typeof process>`u`||process.env===void 0||process.env.NODE_ENV!==`production`)),Be=`sc-keyframes-`,Ve=process.env.NODE_ENV===`production`?{}:{1:`Cannot create styled-component for component: %s.
|
|
8
|
+
|
|
9
|
+
`,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.
|
|
10
|
+
|
|
11
|
+
- Are you trying to reuse it across renders?
|
|
12
|
+
- Are you accidentally calling collectStyles twice?
|
|
13
|
+
|
|
14
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
15
|
+
|
|
16
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
17
|
+
|
|
18
|
+
- Does this error occur on the client and is your target falsy?
|
|
19
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
20
|
+
|
|
21
|
+
`,5:`The clone method cannot be used on the client!
|
|
22
|
+
|
|
23
|
+
- Are you running in a client-like environment on the server?
|
|
24
|
+
- Are you trying to run SSR on the client?
|
|
25
|
+
|
|
26
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
27
|
+
|
|
28
|
+
- Are you using a custom target that isn't mounted?
|
|
29
|
+
- Does your document not have a valid head element?
|
|
30
|
+
- Have you accidentally removed a style tag manually?
|
|
31
|
+
|
|
32
|
+
`,7:`ThemeProvider: Please return an object from your "theme" prop function, e.g.
|
|
33
|
+
|
|
34
|
+
\`\`\`js
|
|
35
|
+
theme={() => ({})}
|
|
36
|
+
\`\`\`
|
|
37
|
+
|
|
38
|
+
`,8:`ThemeProvider: Please make your "theme" prop an object.
|
|
39
|
+
|
|
40
|
+
`,9:`Missing document \`<head>\`
|
|
41
|
+
|
|
42
|
+
`,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
|
|
43
|
+
|
|
44
|
+
`,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.
|
|
45
|
+
|
|
46
|
+
`,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
|
|
47
|
+
|
|
48
|
+
`,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.
|
|
49
|
+
|
|
50
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
51
|
+
|
|
52
|
+
`,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.
|
|
53
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
54
|
+
as for instance in your render method then you may be running into this limitation.
|
|
55
|
+
|
|
56
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
57
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
58
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"};function W(e,...t){return process.env.NODE_ENV===`production`?Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(`, `)}`:``}`):Error(function(...e){let t=e[0],n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(Ve[e],...t).trim())}var He=1<<30,Ue=new Map,We=new Map,Ge=1,G=e=>{if(Ue.has(e))return Ue.get(e);for(;We.has(Ge);)Ge++;let t=Ge++;if(process.env.NODE_ENV!==`production`&&((0|t)<0||t>He))throw W(16,`${t}`);return Ue.set(e,t),We.set(t,e),t},Ke=e=>We.get(e),qe=(e,t)=>{Ge=t+1,Ue.set(e,t),We.set(t,e)},Je=/invalid hook call/i,Ye=new Set,Xe=(t,n)=>{if(process.env.NODE_ENV!==`production`){let r=`The component ${t}${n?` with the id of "${n}"`:``} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,i=console.error;try{let t=!0;console.error=(e,...n)=>{Je.test(e)?(t=!1,Ye.delete(r)):i(e,...n)},typeof e.default.useState==`function`&&e.default.useState(null),t&&!Ye.has(r)&&(console.warn(r),Ye.add(r))}catch(e){Je.test(e.message)&&Ye.delete(r)}finally{console.error=i}}},Ze=Object.freeze([]),K=Object.freeze({});function Qe(e,t,n=K){return e.theme!==n.theme&&e.theme||t||n.theme}var $e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,et=/(^-|-$)/g;function tt(e){return e.replace($e,`-`).replace(et,``)}var nt=/(a)(d)/gi,rt=e=>String.fromCharCode(e+(e>25?39:97));function it(e){let t,n=``;for(t=Math.abs(e);t>52;t=t/52|0)n=rt(t%52)+n;return(rt(t%52)+n).replace(nt,`$1-$2`)}var at=5381,q=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ot=e=>q(at,e);function st(e){return it(ot(e)>>>0)}function ct(e){return process.env.NODE_ENV!==`production`&&typeof e==`string`&&e||e.displayName||e.name||`Component`}function lt(e){return typeof e==`string`&&(process.env.NODE_ENV===`production`||e.charAt(0)===e.charAt(0).toLowerCase())}function ut(e){return lt(e)?`styled.${e}`:`Styled(${ct(e)})`}var dt=Symbol.for(`react.memo`),ft=Symbol.for(`react.forward_ref`),pt={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},mt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ht={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gt={[ft]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[dt]:ht};function _t(e){return(`type`in(t=e)&&t.type.$$typeof)===dt?ht:`$$typeof`in e?gt[e.$$typeof]:pt;var t}var vt=Object.defineProperty,yt=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,xt=Object.getOwnPropertyDescriptor,St=Object.getPrototypeOf,Ct=Object.prototype;function wt(e,t,n){if(typeof t!=`string`){let r=St(t);r&&r!==Ct&&wt(e,r,n);let i=yt(t).concat(bt(t)),a=_t(e),o=_t(t);for(let r=0;r<i.length;++r){let s=i[r];if(!(s in mt||n&&n[s]||o&&s in o||a&&s in a)){let n=xt(t,s);try{vt(e,s,n)}catch{}}}}return e}function Tt(e){return typeof e==`function`}function Et(e){return typeof e==`object`&&`styledComponentId`in e}function J(e,t){return e&&t?e+` `+t:e||t||``}function Dt(e,t){return e.join(t||``)}function Y(e){return typeof e==`object`&&!!e&&e.constructor.name===Object.name&&!(`props`in e&&e.$$typeof)}function Ot(e,t,n=!1){if(!n&&!Y(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Ot(e[n],t[n]);else if(Y(t))for(let n in t)e[n]=Ot(e[n],t[n]);return e}function kt(e,t){Object.defineProperty(e,`toString`,{value:t})}var At=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if(r<<=1,r<0)throw W(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,a=t.length;i<a;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t=``;if(e>=this.length||this.groupSizes[e]===0)return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Le;return t}},jt=`style[${H}][${Fe}="${Ie}"]`,Mt=RegExp(`^${H}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Nt=e=>typeof ShadowRoot<`u`&&e instanceof ShadowRoot||`host`in e&&e.nodeType===11,Pt=e=>{if(!e)return document;if(Nt(e))return e;if(`getRootNode`in e){let t=e.getRootNode();if(Nt(t))return t}return document},Ft=(e,t,n)=>{let r=n.split(`,`),i;for(let n=0,a=r.length;n<a;n++)(i=r[n])&&e.registerName(t,i)},It=(e,t)=>{let n=(t.textContent??``).split(Le),r=[];for(let t=0,i=n.length;t<i;t++){let i=n[t].trim();if(!i)continue;let a=i.match(Mt);if(a){let t=0|parseInt(a[1],10),n=a[2];t!==0&&(qe(n,t),Ft(e,n,a[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(i)}},Lt=e=>{let t=Pt(e.options.target).querySelectorAll(jt);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(H)!==Pe&&(It(e,r),r.parentNode&&r.parentNode.removeChild(r))}},X=!1;function Rt(){if(!1!==X)return X;if(typeof document<`u`){let e=document.head.querySelector(`meta[property="csp-nonce"]`);if(e)return X=e.nonce||e.getAttribute(`content`)||void 0;let t=document.head.querySelector(`meta[name="sc-nonce"]`);if(t)return X=t.getAttribute(`content`)||void 0}return X=typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}var zt=(e,t)=>{let n=document.head,r=e||n,i=document.createElement(`style`),a=(e=>{let t=Array.from(e.querySelectorAll(`style[${H}]`));return t[t.length-1]})(r),o=a===void 0?null:a.nextSibling;i.setAttribute(H,Pe),i.setAttribute(Fe,Ie);let s=t||Rt();return s&&i.setAttribute(`nonce`,s),r.insertBefore(i,o),i},Bt=class{constructor(e,t){this.element=zt(e,t),this.element.appendChild(document.createTextNode(``)),this.sheet=(e=>{if(e.sheet)return e.sheet;let t=e.getRootNode().styleSheets??document.styleSheets;for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.ownerNode===e)return r}throw W(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:``}},Vt=class{constructor(e,t){this.element=zt(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:``}},Ht=U,Ut={isServer:!U,useCSSOMInjection:!ze},Wt=class e{static registerId(e){return G(e)}constructor(e=K,t={},n){this.options=Object.assign(Object.assign({},Ut),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&U&&Ht&&(Ht=!1,Lt(this)),kt(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r=``;for(let i=0;i<n;i++){let n=Ke(i);if(n===void 0)continue;let a=e.names.get(n);if(a===void 0||!a.size)continue;let o=t.getGroup(i);if(o.length===0)continue;let s=H+`.g`+i+`[id="`+n+`"]`,c=``;for(let e of a)e.length>0&&(c+=e+`,`);r+=o+s+`{content:"`+c+`"}/*!sc*/
|
|
59
|
+
`}return r})(this))}rehydrate(){!this.server&&U&&Lt(this)}reconstructWithOptions(t,n=!0){let r=new e(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&U&&t.target!==this.options.target&&Pt(this.options.target)!==Pt(t.target)&&Lt(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Bt(t,n):new Vt(t,n))(this.options),new At(e));var e}hasNameForId(e,t){var n;return(n=this.names.get(e)?.has(t))!=null&&n}registerName(e,t){G(e),e.startsWith(Be)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(G(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(G(e)),this.clearNames(e)}clearTag(){this.tag=void 0}},Gt=new WeakSet,Kt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function qt(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t!=`number`||t===0||e in Kt||e.startsWith(`--`)?String(t).trim():t+`px`}var Jt=e=>e>=`A`&&e<=`Z`;function Yt(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(n===1&&r===`-`&&e[0]===`-`)return e;Jt(r)?t+=`-`+r.toLowerCase():t+=r}return t.startsWith(`ms-`)?`-`+t:t}var Xt=Symbol.for(`sc-keyframes`);function Zt(e){return typeof e==`object`&&!!e&&Xt in e}function Qt(e){return Tt(e)&&!(e.prototype&&e.prototype.isReactComponent)}var $t=e=>e==null||!1===e||e===``,en=Symbol.for(`react.client.reference`);function tn(e){return e.$$typeof===en}function nn(e){let t=e.$$id,n=(t&&t.includes(`#`)?t.split(`#`).pop():t)||e.name||`unknown`;console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}var rn=e=>{let t=[];for(let n in e){let r=e[n];e.hasOwnProperty(n)&&!$t(r)&&(Array.isArray(r)&&Gt.has(r)||Tt(r)?t.push(Yt(n)+`:`,r,`;`):Y(r)?t.push(n+` {`,...rn(r),`}`):t.push(Yt(n)+`: `+qt(n,r)+`;`))}return t};function Z(e,t,n,r,i=[]){if($t(e))return i;let a=typeof e;if(a===`string`)return i.push(e),i;if(a===`function`){if(tn(e))return process.env.NODE_ENV!==`production`&&nn(e),i;if(Qt(e)&&t){let a=e(t);return process.env.NODE_ENV===`production`||typeof a!=`object`||Array.isArray(a)||Zt(a)||Y(a)||a===null||console.error(`${ct(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.`),Z(a,t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let a=0;a<e.length;a++)Z(e[a],t,n,r,i);return i}if(Et(e))return i.push(`.${e.styledComponentId}`),i;if(Zt(e))return n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i;if(tn(e))return process.env.NODE_ENV!==`production`&&nn(e),i;if(Y(e)){let t=rn(e);for(let e=0;e<t.length;e++)i.push(t[e]);return i}return i.push(e.toString()),i}var an=ot(Ie),on=class{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=q(an,t),this.baseStyle=n,Wt.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):``;{let i=``;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(typeof a==`string`)i+=a;else if(a)if(Qt(a)){let r=a(e);typeof r==`string`?i+=r:r!=null&&!1!==r&&(process.env.NODE_ENV===`production`||typeof r!=`object`||Array.isArray(r)||Zt(r)||Y(r)||console.error(`${ct(a)} 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.`),i+=Dt(Z(r,e,t,n)))}else i+=Dt(Z(a,e,t,n))}if(i){this.dynamicNameCache||=new Map;let e=n.hash?n.hash+i:i,a=this.dynamicNameCache.get(e);if(!a){if(a=it(q(q(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;e!==void 0&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,a)}if(!t.hasNameForId(this.componentId,a)){let e=n(i,`.`+a,void 0,this.componentId);t.insertRules(this.componentId,a,e)}r=J(r,a)}}return r}},sn=/&/g,Q=47;function cn(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function ln(e){let t=e.length,n=``,r=0,i=0,a=0,o=!1,s=!1;for(let c=0;c<t;c++){let l=e.charCodeAt(c);if(a!==0||o||l!==Q||e.charCodeAt(c+1)!==42)if(o)l===42&&e.charCodeAt(c+1)===Q&&(o=!1,c++);else if(l!==34&&l!==39||cn(e,c)){if(a===0)if(l===123)i++;else if(l===125){if(i--,i<0){s=!0;let n=c+1;for(;n<t;){let t=e.charCodeAt(n);if(t===59||t===10)break;n++}n<t&&e.charCodeAt(n)===59&&n++,i=0,c=n-1,r=n;continue}i===0&&(n+=e.substring(r,c+1),r=c+1)}else l===59&&i===0&&(n+=e.substring(r,c+1),r=c+1)}else a===0?a=l:a===l&&(a=0);else o=!0,c++}return s||i!==0||a!==0?(r<t&&i===0&&a===0&&(n+=e.substring(r)),n):e}function un(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(r.type===`rule`){r.value=t+` `+r.value,r.value=r.value.replaceAll(`,`,`,`+t+` `);let e=r.props,n=[];for(let r=0;r<e.length;r++)n[r]=t+` `+e[r];r.props=n}Array.isArray(r.children)&&r.type!==`@keyframes`&&(r.children=un(r.children,t))}return e}function dn({options:e=K,plugins:t=Ze}=K){let n,r,i,a=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,``).length>0?`.${n}`:e,o=t.slice();o.push(e=>{e.type===`rule`&&e.value.includes(`&`)&&(i||=RegExp(`\\${r}\\b`,`g`),e.props[0]=e.props[0].replace(sn,r).replace(i,a))}),e.prefix&&o.push(Ne),o.push(Ae);let s=[],c=je(o.concat(Me(e=>s.push(e)))),l=(t,a=``,o=``,l=`&`)=>{n=l,r=a,i=void 0;let u=function(e){let t=e.indexOf(`//`)!==-1,n=e.indexOf(`}`)!==-1;if(!t&&!n)return e;if(!t)return ln(e);let r=e.length,i=``,a=0,o=0,s=0,c=0,l=0,u=!1;for(;o<r;){let t=e.charCodeAt(o);if(t!==34&&t!==39||cn(e,o))if(s===0)if(t===Q&&o+1<r&&e.charCodeAt(o+1)===42){for(o+=2;o+1<r&&(e.charCodeAt(o)!==42||e.charCodeAt(o+1)!==Q);)o++;o+=2}else if(t!==40)if(t!==41)if(c>0)o++;else if(t===42&&o+1<r&&e.charCodeAt(o+1)===Q)i+=e.substring(a,o),o+=2,a=o,u=!0;else if(t===Q&&o+1<r&&e.charCodeAt(o+1)===Q){for(i+=e.substring(a,o);o<r&&e.charCodeAt(o)!==10;)o++;a=o,u=!0}else t===123?l++:t===125&&l--,o++;else c>0&&c--,o++;else c++,o++;else o++;else s===0?s=t:s===t&&(s=0),o++}return u?(a<r&&(i+=e.substring(a)),l===0?i:ln(i)):l===0?e:ln(e)}(t),d=Ce(o||a?o+` `+a+` { `+u+` }`:u);return e.namespace&&(d=un(d,e.namespace)),s=[],ke(d,c),s},u=e,d=at;for(let e=0;e<t.length;e++)t[e].name||W(15),d=q(d,t[e].name);return u!=null&&u.namespace&&(d=q(d,u.namespace)),u!=null&&u.prefix&&(d=q(d,`p`)),l.hash=d===at?``:d.toString(),l}var fn=new Wt,pn=dn(),mn=e.default.createContext({shouldForwardProp:void 0,styleSheet:fn,stylis:pn,stylisPlugins:void 0});mn.Consumer;function hn(){return e.default.useContext(mn)}var gn=e.default.createContext(void 0);gn.Consumer;var _n=Object.prototype.hasOwnProperty,vn={};function yn(e,t){let n=typeof e==`string`?tt(e):`sc`;vn[n]=(vn[n]||0)+1;let r=n+`-`+st(Ie+n+vn[n]);return t?t+`-`+r:r}var bn;function xn(t,n,r){let i=Et(t),a=t,o=!lt(t),{attrs:s=Ze,componentId:c=yn(n.displayName,n.parentComponentId),displayName:l=ut(t)}=n,u=n.displayName&&n.componentId?tt(n.displayName)+`-`+n.componentId:n.componentId||c,d=i&&a.attrs?a.attrs.concat(s).filter(Boolean):s,{shouldForwardProp:f}=n;if(i&&a.shouldForwardProp){let e=a.shouldForwardProp;if(n.shouldForwardProp){let t=n.shouldForwardProp;f=(n,r)=>e(n,r)&&t(n,r)}else f=e}let p=new on(r,u,i?a.componentStyle:void 0);function m(t,n){return function(t,n,r){let{attrs:i,componentStyle:a,defaultProps:o,foldedComponentIds:s,styledComponentId:c,target:l}=t,u=e.default.useContext(gn),d=hn(),f=t.shouldForwardProp||d.shouldForwardProp;process.env.NODE_ENV!==`production`&&e.default.useDebugValue&&e.default.useDebugValue(c);let p=Qe(n,u,o)||K,m,g;{let t=e.default.useRef(null),r=t.current;if(r!==null&&r[1]===p&&r[2]===d.styleSheet&&r[3]===d.stylis&&r[7]===a&&function(e,t,n){let r=e,i=t,a=0;for(let e in i)if(_n.call(i,e)&&(a++,r[e]!==i[e]))return!1;return a===n}(r[0],n,r[4]))m=r[5],g=r[6];else{m=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let a=e[n],o=Tt(a)?a(i?Object.assign({},r):r):a;for(let e in o)e===`className`?r.className=J(r.className,o[e]):e===`style`?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&t[e]===void 0||(r[e]=o[e])}return`className`in t&&typeof t.className==`string`&&(r.className=J(r.className,t.className)),r}(i,n,p),g=function(t,n,r,i){let a=t.generateAndInjectStyles(n,r,i);return process.env.NODE_ENV!==`production`&&e.default.useDebugValue&&e.default.useDebugValue(a),a}(a,m,d.styleSheet,d.stylis);let r=0;for(let e in n)_n.call(n,e)&&r++;t.current=[n,p,d.styleSheet,d.stylis,r,m,g,a]}}process.env.NODE_ENV!==`production`&&t.warnTooManyClasses&&t.warnTooManyClasses(g);let _=m.as||l,v=function(e,t,n,r){let i={};for(let a in e)e[a]===void 0||a[0]===`$`||a===`as`||a===`theme`&&e.theme===n||(a===`forwardedAs`?i.as=e.forwardedAs:r&&!r(a,t)||(i[a]=e[a],r||process.env.NODE_ENV!==`development`||h(a)||(bn||=new Set).has(a)||!lt(t)||t.includes(`-`)||(bn.add(a),console.warn(`styled-components: it looks like an unknown prop "${a}" 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.)`))));return i}(m,_,p,f),y=J(s,c);return g&&(y+=` `+g),m.className&&(y+=` `+m.className),v[lt(_)&&_.includes(`-`)?`class`:`className`]=y,r&&(v.ref=r),(0,e.createElement)(_,v)}(g,t,n)}m.displayName=l;let g=e.default.forwardRef(m);return g.attrs=d,g.componentStyle=p,g.displayName=l,g.shouldForwardProp=f,g.foldedComponentIds=i?J(a.foldedComponentIds,a.styledComponentId):``,g.styledComponentId=u,g.target=i?a.target:t,Object.defineProperty(g,`defaultProps`,{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(let n of t)Ot(e,n,!0);return e}({},a.defaultProps,e):e}}),process.env.NODE_ENV!==`production`&&(Xe(l,u),g.warnTooManyClasses=((e,t)=>{let n={},r=!1;return i=>{!r&&(n[i]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:``}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),r=!0,n={})}})(l,u)),kt(g,()=>`.${g.styledComponentId}`),o&&wt(g,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var Sn=new Set(`a.abbr.address.area.article.aside.audio.b.bdi.bdo.blockquote.body.button.br.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.map.mark.menu.meter.nav.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.slot.small.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.switch.symbol.text.textPath.tspan.use`.split(`.`));function Cn(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var wn=e=>(Gt.add(e),e);function Tn(e,...t){if(Tt(e)||Y(e))return wn(Z(Cn(Ze,[e,...t])));let n=e;return t.length===0&&n.length===1&&typeof n[0]==`string`?Z(n):wn(Z(Cn(n,t)))}function En(e,t,n=K){if(!t)throw W(1,t);let r=(r,...i)=>e(t,n,Tn(r,...i));return r.attrs=r=>En(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>En(e,t,Object.assign(Object.assign({},n),r)),r}var Dn=e=>En(xn,e),On=Dn;Sn.forEach(e=>{On[e]=Dn(e)});var kn,An=class{constructor(e,t){this[kn]=!0,this.inject=(e,t=pn)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,`@keyframes`);e.insertRules(this.id,n,r)}},this.name=e,this.id=Be+e,this.rules=t,G(this.id),kt(this,()=>{throw W(12,String(this.name))})}getName(e=pn){return e.hash?this.name+it(e.hash>>>0):this.name}};function jn(e,...t){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.");let n=Dt(Tn(e,...t));return new An(st(n),n)}kn=Xt,process.env.NODE_ENV!==`production`&&typeof navigator<`u`&&navigator.product===`ReactNative`&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
60
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
61
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Mn=`__sc-${H}__`;process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&typeof window<`u`&&(window[Mn]||(window[Mn]=0),window[Mn]===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.
|
|
62
|
+
|
|
63
|
+
See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Mn]+=1),`${H}`,`${H}`;var Nn={white:`#FFF`,blue:{1:{light:`#111A2C`,dark:`#E6F4FF`},2:{light:`#BAE0FF`,dark:`#112545`},3:{light:`#91CAFF`,dark:`#15325B`},4:{light:`#69B1F`,dark:`#15417E`},5:{light:`#4096FF`,dark:`#1554AD`},6:{light:`#1677FF`,dark:`#1668DC`},7:{light:`#0958D9`,dark:`#3C89E8`},8:{light:`#003EB3`,dark:`#65A9F3`},9:{light:`#002C8C`,dark:`#8DC5F8`},10:{light:`#001D66`,dark:`#B7DCFA`}}},$={colors:{base:Nn,neutral:{backgroundBase:{colorBgMask:{light:`rgba(0, 0, 0, 0.45)`,dark:`rgba(0, 0, 0, 0.45)`}}},brand:{primary:{colorPrimary:{light:Nn.blue[6].light,dark:Nn.blue[6].dark}}}},size:{size:{xxxs:2,xxs:4,xs:8,sm:12,size:16,ms:18,md:20,lg:28,xl:32,xxl:44},height:{xs:16,sm:22,height:32,lg:40},radius:{xs:2,sm:4,normal:6,lg:8,xxl:16}}},Pn=jn`
|
|
64
|
+
from {
|
|
65
|
+
transform: rotate(0deg);
|
|
66
|
+
}
|
|
67
|
+
to {
|
|
68
|
+
transform: rotate(360deg);
|
|
69
|
+
}
|
|
70
|
+
`,Fn=On.div`
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
column-gap: ${$.size.size.sm}px;
|
|
74
|
+
position: relative;
|
|
75
|
+
`,In=On.input.attrs(e=>({size:e.size,loading:e.loading}))`
|
|
76
|
+
&[type="checkbox"] {
|
|
77
|
+
height: 0;
|
|
78
|
+
width: 0;
|
|
79
|
+
visibility: hidden;
|
|
80
|
+
position: absolute;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
${e=>{switch(e.size){case`small`:return`& + label {
|
|
84
|
+
width: ${$.size.size.lg}px;
|
|
85
|
+
height: ${$.size.height.xs}px;
|
|
86
|
+
|
|
87
|
+
div {
|
|
88
|
+
width: ${$.size.size.sm}px;
|
|
89
|
+
height: ${$.size.size.sm}px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:active div {
|
|
93
|
+
width: ${e.disabled?$.size.size.sm:$.size.size.size}px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
svg {
|
|
97
|
+
width: calc(${$.size.size.sm}px - ${$.size.size.xxs}px);
|
|
98
|
+
height: calc(${$.size.size.sm}px - ${$.size.size.xxs}px);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`;default:return`& + label {
|
|
102
|
+
width: ${$.size.size.xxl}px;
|
|
103
|
+
height: ${$.size.height.sm}px;
|
|
104
|
+
|
|
105
|
+
div {
|
|
106
|
+
width: ${$.size.size.ms}px;
|
|
107
|
+
height: ${$.size.size.ms}px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:active div {
|
|
111
|
+
width: ${e.disabled?$.size.size.ms:$.size.size.lg}px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
svg {
|
|
115
|
+
width: calc(${$.size.size.ms}px - ${$.size.size.xxs}px);
|
|
116
|
+
height: calc(${$.size.size.ms}px - ${$.size.size.xxs}px);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`}}}
|
|
120
|
+
|
|
121
|
+
&:checked + label {
|
|
122
|
+
background: ${$.colors.brand.primary.colorPrimary.light};
|
|
123
|
+
}
|
|
124
|
+
&:checked + label div {
|
|
125
|
+
transform: translateX(-100%);
|
|
126
|
+
left: calc(100% - ${$.size.size.xxxs}px);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
${e=>(e.disabled||e.loading)&&`& + label {
|
|
130
|
+
opacity: 0.65;
|
|
131
|
+
cursor: not-allowed;
|
|
132
|
+
}
|
|
133
|
+
`}
|
|
134
|
+
|
|
135
|
+
${e=>e.loading&&`& + label {
|
|
136
|
+
svg {
|
|
137
|
+
display: block;
|
|
138
|
+
fill: ${e.checked?$.colors.brand.primary.colorPrimary.light:$.colors.neutral.backgroundBase.colorBgMask.light};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
`}
|
|
142
|
+
`,Ln=On.label`
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
text-indent: -9999px;
|
|
145
|
+
background: ${$.colors.neutral.backgroundBase.colorBgMask.light};
|
|
146
|
+
display: block;
|
|
147
|
+
border-radius: ${$.size.radius.xxl}px;
|
|
148
|
+
position: relative;
|
|
149
|
+
|
|
150
|
+
svg {
|
|
151
|
+
display: none;
|
|
152
|
+
width: calc(${$.size.size.ms}px - ${$.size.size.xxs}px);
|
|
153
|
+
height: calc(${$.size.size.ms}px - ${$.size.size.xxs}px);
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: ${$.size.size.xxxs}px;
|
|
156
|
+
left: ${$.size.size.xxxs}px;
|
|
157
|
+
animation: ${Pn} 1s linear infinite;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
div {
|
|
161
|
+
position: relative;
|
|
162
|
+
top: ${$.size.size.xxxs}px;
|
|
163
|
+
left: ${$.size.size.xxxs}px;
|
|
164
|
+
background: ${$.colors.base.white};
|
|
165
|
+
border-radius: ${$.size.radius.xxl}px;
|
|
166
|
+
transition: all 0.15s ease;
|
|
167
|
+
}
|
|
168
|
+
`;return{variables:$,icons:{Loading:f},components:{Switch:({uniqId:e=`switch`,labelFor:t=`switch`,defaultChecked:n,checked:r,disabled:i,loading:a,size:o=`default`,label:s,className:c})=>(0,d.jsxs)(Fn,{className:c,children:[s&&(0,d.jsx)(`div`,{children:s}),(0,d.jsx)(In,{disabled:i||a,checked:r,defaultChecked:n,type:`checkbox`,id:e,size:o,loading:a}),(0,d.jsx)(Ln,{htmlFor:t,children:(0,d.jsx)(`div`,{children:(0,d.jsx)(f,{})})})]})}}});
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "minordm-test-ui-kit",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist/minordm-test-ui-kit.umd.js",
|
|
10
|
+
"module": "./dist/minordm-test-ui-kit.es.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/minordm-test-ui-kit.es.d.ts",
|
|
15
|
+
"import": "./dist/minordm-test-ui-kit.es.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "tsc -b && vite build",
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"preview": "vite preview",
|
|
23
|
+
"storybook": "storybook dev -p 6006",
|
|
24
|
+
"build-storybook": "storybook build"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@storybook/blocks": "^8.6.14",
|
|
28
|
+
"react": "^19.2.4",
|
|
29
|
+
"react-dom": "^19.2.4"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@chromatic-com/storybook": "^5.1.1",
|
|
33
|
+
"@eslint/js": "^9.39.4",
|
|
34
|
+
"@storybook/addon-a11y": "^10.3.5",
|
|
35
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
36
|
+
"@storybook/addon-onboarding": "^10.3.5",
|
|
37
|
+
"@storybook/addon-vitest": "^10.3.5",
|
|
38
|
+
"@storybook/react-vite": "^10.3.5",
|
|
39
|
+
"@types/node": "^24.12.2",
|
|
40
|
+
"@types/react": "^19.2.14",
|
|
41
|
+
"@types/react-dom": "^19.2.3",
|
|
42
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
43
|
+
"@vitest/browser-playwright": "^4.1.4",
|
|
44
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
45
|
+
"eslint": "^9.39.4",
|
|
46
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
47
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
48
|
+
"eslint-plugin-storybook": "^10.3.5",
|
|
49
|
+
"globals": "^17.4.0",
|
|
50
|
+
"playwright": "^1.59.1",
|
|
51
|
+
"storybook": "^10.3.5",
|
|
52
|
+
"styled-components": "^6.4.0",
|
|
53
|
+
"typescript": "~6.0.2",
|
|
54
|
+
"typescript-eslint": "^8.58.0",
|
|
55
|
+
"vite": "^8.0.4",
|
|
56
|
+
"vite-plugin-dts": "^4.5.4",
|
|
57
|
+
"vitest": "^4.1.4"
|
|
58
|
+
}
|
|
59
|
+
}
|