@dev-blinq/ui-systems 1.0.123 → 1.0.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,6 +125,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
125
125
|
*/const Fh=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ml=Ge("x",Fh),Ph=e=>Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",...e},Pe.createElement("path",{d:"M17.5 12.5786C17.5 14.8829 15.9627 16.7559 13.6819 16.7503H6.31811C4.0373 16.7559 2.5 14.8829 2.5 12.5786V7.42754C2.5 5.12565 4.0373 3.25024 6.31811 3.25024H13.6819C15.9627 3.25024 17.5 5.12565 17.5 7.42754V12.5786Z",stroke:"#939197",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),Pe.createElement("path",{d:"M14.4267 7.63843L11.0943 10.3482C10.4667 10.8468 9.57726 10.8468 8.94968 10.3482L5.58887 7.63843",stroke:"#939197",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_l=e=>Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",...e},Pe.createElement("path",{d:"M13.5306 8.53065L8.5306 13.5307C8.46083 13.6004 8.37801 13.6558 8.28686 13.6935C8.19571 13.7313 8.09801 13.7507 7.99935 13.7507C7.90069 13.7507 7.80299 13.7313 7.71184 13.6935C7.62069 13.6558 7.53786 13.6004 7.4681 13.5307C7.39833 13.4609 7.34299 13.3781 7.30524 13.2869C7.26748 13.1958 7.24805 13.0981 7.24805 12.9994C7.24805 12.9007 7.26748 12.803 7.30524 12.7119C7.34299 12.6207 7.39833 12.5379 7.4681 12.4682L12.4681 7.46815C12.5379 7.39839 12.6207 7.34304 12.7118 7.30529C12.803 7.26753 12.9007 7.2481 12.9993 7.2481C13.098 7.2481 13.1957 7.26753 13.2869 7.30529C13.378 7.34304 13.4608 7.39839 13.5306 7.46815C13.6004 7.53791 13.6557 7.62074 13.6935 7.71189C13.7312 7.80304 13.7506 7.90074 13.7506 7.9994C13.7506 8.09806 13.7312 8.19576 13.6935 8.28691C13.6557 8.37806 13.6004 8.46089 13.5306 8.53065ZM12.5306 1.96815C12.4609 1.89823 12.3781 1.84275 12.287 1.8049C12.1958 1.76704 12.0981 1.74756 11.9993 1.74756C11.9006 1.74756 11.8029 1.76704 11.7117 1.8049C11.6206 1.84275 11.5378 1.89823 11.4681 1.96815L1.9681 11.4682C1.8272 11.609 1.74805 11.8001 1.74805 11.9994C1.74805 12.1987 1.8272 12.3898 1.9681 12.5307C2.10899 12.6715 2.30009 12.7507 2.49935 12.7507C2.69861 12.7507 2.8897 12.6715 3.0306 12.5307L12.5306 3.03065C12.6003 2.961 12.6556 2.87828 12.6934 2.78723C12.7311 2.69618 12.7506 2.59859 12.7506 2.50003C12.7506 2.40146 12.7311 2.30387 12.6934 2.21282C12.6556 2.12177 12.6003 2.03905 12.5306 1.9694V1.96815Z",fill:"#717076"})),Rh=e=>E.jsx(Bh,{...e}),ti=e=>E.jsx(Ml,{...e}),Io=e=>E.jsx(ch,{...e}),yr=e=>E.jsx(ih,{...e}),Il=e=>E.jsx(yh,{...e}),ni=e=>E.jsx(nh,{...e}),Ol=e=>E.jsx(mh,{...e}),Nl=e=>E.jsx(ph,{...e}),Oo=e=>E.jsx(Sh,{...e}),No=e=>E.jsx(Th,{...e}),jo=e=>E.jsx(dh,{...e}),jl=e=>E.jsx(Ah,{...e}),kh=e=>E.jsx(uh,{...e}),Lo=e=>E.jsx(oh,{...e}),Ll=e=>E.jsx(Ll,{...e}),Mh=({size:e="lg",designType:t="default",disabled:n=!1,label:r="",errExists:i=!1,errorMsg:a="",placeholder:o,leftIcon:s,rightIcon:l,style:c,onAction:u,...f})=>{const d={designType:t,placeholder:o,disabled:n,errExists:i,leftIcon:s,rightIcon:l,style:c,onAction:u,props:f};return E.jsxs("div",{children:[r&&E.jsx(pt,{category:"text",Size:"sm",bold:"semibold",children:r}),E.jsx(qd,{...d}),i&&E.jsx("p",{className:"error-message-input",children:a})]})},_h=({placeholder:e,disabled:t=!1,errExists:n=!1,label:r,counterVisibility:i=!0,...a})=>{const[o,s]=V.useState(""),[l,c]=V.useState(a.rows||8),u=f=>{c(d=>{const p=f==="down"?d+1:d-1;return p<2?2:p})};return E.jsxs("div",{children:[E.jsx(pt,{category:"text",Size:"sm",bold:"bold",children:r}),E.jsxs("div",{className:"text-area-container","data-error":n,children:[E.jsx("textarea",{placeholder:e||"Enter your text here...",maxLength:i?300:void 0,disabled:t,...a,rows:l,onChange:f=>{s(f.target.value),a.onChange&&a.onChange(f)},style:{width:"100%",border:"none",outline:"none",resize:"none",fontFamily:'var(--font-family, "Plus Jakarta Sans", sans-serif)',...a.style}}),E.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i&&E.jsxs(pt,{category:"text",Size:"sm",bold:"medium",children:[o.length,"/300"]}),E.jsx(_l,{style:{cursor:"ns-resize",marginLeft:"auto"},onMouseDown:f=>{let d=f.clientY;const p=10,x=v=>{const b=v.clientY-d;if(Math.abs(b)>p){const g=b>0?"down":"up";u(g),d=v.clientY}},h=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",h)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",h)}})]})]})]})},Ih=({size:e="md",disabled:t=!1,children:n,...r})=>{const[i,a]=V.useState(r.defaultChecked||!1),o=()=>{a(!i),r.onChange&&r.onChange()};return E.jsxs("label",{className:"blinq-checkbox",children:[E.jsx("input",{type:"checkbox",checked:i,onChange:o,"data-size":e,disabled:t,...r}),E.jsx("span",{className:"checkmark"}),n]})},Oh=({size:e="md",disabled:t=!1,children:n,...r})=>{const[i,a]=V.useState(r.checked||!1),o=()=>{a(!i),r.onChange&&r.onChange()};return E.jsxs("label",{className:"blinq-radio-button",children:[E.jsx("input",{type:"radio",checked:i,onChange:o,"data-size":e,disabled:t,...r}),E.jsx("span",{className:"checkmark"}),n]})},Nh=({left:e,right:t,onToggle:n,value:r,customToggleSwitchs:i})=>{const a=(o,s)=>{s.stopPropagation(),n(o)};return E.jsxs("div",{className:"toggle-switch",children:[E.jsx("div",{className:`toggle-option ${r===e?"active":""}`,onClick:o=>a(e,o),children:E.jsx(pt,{bold:"bold",color:"textSecondary",category:"text",Size:"sm",children:e})}),E.jsx("div",{className:`toggle-option ${r===t?"active":""}`,onClick:o=>a(t,o),children:E.jsx(pt,{bold:"bold",color:"textSecondary",category:"text",Size:"sm",children:t})}),i&&i.map(({text:o,place:s})=>E.jsx("div",{className:`toggle-option ${r===s?"active":""}`,onClick:l=>a(s,l),children:E.jsx(pt,{bold:"bold",color:"textSecondary",category:"text",Size:"sm",children:o})},s))]})};function jh({showFirst:e,firstComponent:t,secondComponent:n}){return E.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:[E.jsx("div",{style:{transition:"opacity 1s ease",opacity:e?1:0,position:"absolute",display:"flex",alignItems:"center"},children:t}),E.jsx("div",{style:{transition:"opacity 1s ease",opacity:e?0:1,position:"absolute",display:"flex",alignItems:"center"},children:n})]})}function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},to.apply(null,arguments)}function Vl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Lh=/^((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|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)-.*))$/,Vh=Vl(function(e){return Lh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$h=!1;function Uh(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Hh(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var zh=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!$h:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Hh(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Uh(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ue="-ms-",ri="-moz-",ue="-webkit-",$l="comm",Vo="rule",$o="decl",Wh="@import",Ul="@keyframes",Kh="@layer",Gh=Math.abs,xi=String.fromCharCode,Yh=Object.assign;function qh(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}function Hl(e){return e.trim()}function Xh(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,n){return e.replace(t,n)}function no(e,t){return e.indexOf(t)}function Le(e,t){return e.charCodeAt(t)|0}function sr(e,t,n){return e.slice(t,n)}function bt(e){return e.length}function Uo(e){return e.length}function Ir(e,t){return t.push(e),e}function Zh(e,t){return e.map(t).join("")}var mi=1,Fn=1,zl=0,Xe=0,Ie=0,kn="";function gi(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:mi,column:Fn,length:o,return:""}}function Yn(e,t){return Yh(gi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Jh(){return Ie}function Qh(){return Ie=Xe>0?Le(kn,--Xe):0,Fn--,Ie===10&&(Fn=1,mi--),Ie}function Qe(){return Ie=Xe<zl?Le(kn,Xe++):0,Fn++,Ie===10&&(Fn=1,mi++),Ie}function At(){return Le(kn,Xe)}function Kr(){return Xe}function vr(e,t){return sr(kn,e,t)}function cr(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 Wl(e){return mi=Fn=1,zl=bt(kn=e),Xe=0,[]}function Kl(e){return kn="",e}function Gr(e){return Hl(vr(Xe-1,ro(e===91?e+2:e===40?e+1:e)))}function ep(e){for(;(Ie=At())&&Ie<33;)Qe();return cr(e)>2||cr(Ie)>3?"":" "}function tp(e,t){for(;--t&&Qe()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return vr(e,Kr()+(t<6&&At()==32&&Qe()==32))}function ro(e){for(;Qe();)switch(Ie){case e:return Xe;case 34:case 39:e!==34&&e!==39&&ro(Ie);break;case 40:e===41&&ro(e);break;case 92:Qe();break}return Xe}function np(e,t){for(;Qe()&&e+Ie!==57;)if(e+Ie===84&&At()===47)break;return"/*"+vr(t,Xe-1)+"*"+xi(e===47?e:Qe())}function rp(e){for(;!cr(At());)Qe();return vr(e,Xe)}function ip(e){return Kl(Yr("",null,null,null,[""],e=Wl(e),0,[0],e))}function Yr(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,d=0,p=0,x=0,h=1,v=1,b=1,g=0,y="",C=i,A=a,S=r,w=y;v;)switch(x=g,g=Qe()){case 40:if(x!=108&&Le(w,f-1)==58){no(w+=fe(Gr(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:w+=Gr(g);break;case 9:case 10:case 13:case 32:w+=ep(x);break;case 92:w+=tp(Kr()-1,7);continue;case 47:switch(At()){case 42:case 47:Ir(ap(np(Qe(),Kr()),t,n),l);break;default:w+="/"}break;case 123*h:s[c++]=bt(w)*b;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:b==-1&&(w=fe(w,/\f/g,"")),p>0&&bt(w)-f&&Ir(p>32?js(w+";",r,n,f-1):js(fe(w," ","")+";",r,n,f-2),l);break;case 59:w+=";";default:if(Ir(S=Ns(w,t,n,c,u,i,s,y,C=[],A=[],f),a),g===123)if(u===0)Yr(w,t,S,S,C,a,f,s,A);else switch(d===99&&Le(w,3)===110?100:d){case 100:case 108:case 109:case 115:Yr(e,S,S,r&&Ir(Ns(e,S,S,0,0,i,s,y,i,C=[],f),A),i,A,f,s,r?C:A);break;default:Yr(w,S,S,S,[""],A,0,s,A)}}c=u=p=0,h=b=1,y=w="",f=o;break;case 58:f=1+bt(w),p=x;default:if(h<1){if(g==123)--h;else if(g==125&&h++==0&&Qh()==125)continue}switch(w+=xi(g),g*h){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(bt(w)-1)*b,b=1;break;case 64:At()===45&&(w+=Gr(Qe())),d=At(),u=f=bt(y=w+=rp(Kr())),g++;break;case 45:x===45&&bt(w)==2&&(h=0)}}return a}function Ns(e,t,n,r,i,a,o,s,l,c,u){for(var f=i-1,d=i===0?a:[""],p=Uo(d),x=0,h=0,v=0;x<r;++x)for(var b=0,g=sr(e,f+1,f=Gh(h=o[x])),y=e;b<p;++b)(y=Hl(h>0?d[b]+" "+g:fe(g,/&\f/g,d[b])))&&(l[v++]=y);return gi(e,t,n,i===0?Vo:s,l,c,u)}function ap(e,t,n){return gi(e,t,n,$l,xi(Jh()),sr(e,2,-2),0)}function js(e,t,n,r){return gi(e,t,n,$o,sr(e,0,r),sr(e,r+1,-1),r)}function Bn(e,t){for(var n="",r=Uo(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function op(e,t,n,r){switch(e.type){case Kh:if(e.children.length)break;case Wh:case $o:return e.return=e.return||e.value;case $l:return"";case Ul:return e.return=e.value+"{"+Bn(e.children,r)+"}";case Vo:e.value=e.props.join(",")}return bt(n=Bn(e.children,r))?e.return=e.value+"{"+n+"}":""}function sp(e){var t=Uo(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 cp(e){return function(t){t.root||(t=t.return)&&e(t)}}var lp=function(t,n,r){for(var i=0,a=0;i=a,a=At(),i===38&&a===12&&(n[r]=1),!cr(a);)Qe();return vr(t,Xe)},up=function(t,n){var r=-1,i=44;do switch(cr(i)){case 0:i===38&&At()===12&&(n[r]=1),t[r]+=lp(Xe-1,n,r);break;case 2:t[r]+=Gr(i);break;case 4:if(i===44){t[++r]=At()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=xi(i)}while(i=Qe());return t},fp=function(t,n){return Kl(up(Wl(t),n))},Ls=new WeakMap,dp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ls.get(r))&&!i){Ls.set(t,!0);for(var a=[],o=fp(n,a),s=r.props,l=0,c=0;l<o.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?o[l].replace(/&\f/g,s[u]):s[u]+" "+o[l]}}},hp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Gl(e,t){switch(qh(e,t)){case 5103:return ue+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ue+e+ri+e+Ue+e+e;case 6828:case 4268:return ue+e+Ue+e+e;case 6165:return ue+e+Ue+"flex-"+e+e;case 5187:return ue+e+fe(e,/(\w+).+(:[^]+)/,ue+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return ue+e+Ue+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return ue+e+Ue+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return ue+e+Ue+fe(e,"shrink","negative")+e;case 5292:return ue+e+Ue+fe(e,"basis","preferred-size")+e;case 6060:return ue+"box-"+fe(e,"-grow","")+ue+e+Ue+fe(e,"grow","positive")+e;case 4554:return ue+fe(e,/([^-])(transform)/g,"$1"+ue+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,ue+"$1"),/(image-set)/,ue+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,ue+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,ue+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ue+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,ue+"$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(bt(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+ue+"$2-$3$1"+ri+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~no(e,"stretch")?Gl(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,bt(e)-3-(~no(e,"!important")&&10))){case 107:return fe(e,":",":"+ue)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ue+(Le(e,14)===45?"inline-":"")+"box$3$1"+ue+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return ue+e+Ue+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ue+e+Ue+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ue+e+Ue+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ue+e+Ue+e+e}return e}var pp=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case $o:t.return=Gl(t.value,t.length);break;case Ul:return Bn([Yn(t,{value:fe(t.value,"@","@"+ue)})],i);case Vo:if(t.length)return Zh(t.props,function(a){switch(Xh(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bn([Yn(t,{props:[fe(a,/:(read-\w+)/,":"+ri+"$1")]})],i);case"::placeholder":return Bn([Yn(t,{props:[fe(a,/:(plac\w+)/,":"+ue+"input-$1")]}),Yn(t,{props:[fe(a,/:(plac\w+)/,":"+ri+"$1")]}),Yn(t,{props:[fe(a,/:(plac\w+)/,Ue+"input-$1")]})],i)}return""})}},xp=[pp],mp=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||xp,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)a[v[b]]=!0;s.push(h)});var l,c=[dp,hp];{var u,f=[op,cp(function(h){u.insert(h)})],d=sp(c.concat(i,f)),p=function(v){return Bn(ip(v),d)};l=function(v,b,g,y){u=g,p(v?v+"{"+b.styles+"}":b.styles),y&&(x.inserted[b.name]=!0)}}var x={key:n,sheet:new zh({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return x.sheet.hydrate(s),x},gp=!0;function yp(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Yl=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||gp===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},vp=function(t,n,r){Yl(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function bp(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ap=!1,Ep=/[A-Z]|^ms/g,Sp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ql=function(t){return t.charCodeAt(1)===45},Vs=function(t){return t!=null&&typeof t!="boolean"},Ki=Vl(function(e){return ql(e)?e:e.replace(Ep,"-$&").toLowerCase()}),$s=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Sp,function(r,i,a){return Ct={name:i,styles:a,next:Ct},i})}return Cp[t]!==1&&!ql(t)&&typeof n=="number"&&n!==0?n+"px":n},wp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function lr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Ct={name:i.name,styles:i.styles,next:Ct},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Ct={name:o.name,styles:o.styles,next:Ct},o=o.next;var s=a.styles+";";return s}return Bp(e,t,n)}case"function":{if(e!==void 0){var l=Ct,c=n(e);return Ct=l,lr(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function Bp(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=lr(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?r+=a+"{"+t[s]+"}":Vs(s)&&(r+=Ki(a)+":"+$s(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Ap)throw new Error(wp);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)Vs(o[l])&&(r+=Ki(a)+":"+$s(a,o[l])+";");else{var c=lr(e,t,o);switch(a){case"animation":case"animationName":{r+=Ki(a)+":"+c+";";break}default:r+=a+"{"+c+"}"}}}}return r}var Us=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function Dp(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Ct=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=lr(n,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=lr(n,t,e[s]),r){var l=a;i+=l[s]}Us.lastIndex=0;for(var c="",u;(u=Us.exec(i))!==null;)c+="-"+u[1];var f=bp(i)+c;return{name:f,styles:i,next:Ct}}var Tp=function(t){return t()},Fp=Pe.useInsertionEffect?Pe.useInsertionEffect:!1,Pp=Fp||Tp,Xl=Pe.createContext(typeof HTMLElement<"u"?mp({key:"css"}):null);Xl.Provider;var Rp=function(t){return V.forwardRef(function(n,r){var i=V.useContext(Xl);return t(n,i,r)})},kp=Pe.createContext({}),Mp=Vh,_p=function(t){return t!=="theme"},Hs=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Mp:_p},zs=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Ip=!1,Op=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Yl(n,r,i),Pp(function(){return vp(n,r,i)}),null},Np=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=zs(t,n,r),l=s||Hs(i),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var d=u.length,p=1;p<d;p++)f.push(u[p],u[0][p])}var x=Rp(function(h,v,b){var g=c&&h.as||i,y="",C=[],A=h;if(h.theme==null){A={};for(var S in h)A[S]=h[S];A.theme=Pe.useContext(kp)}typeof h.className=="string"?y=yp(v.registered,C,h.className):h.className!=null&&(y=h.className+" ");var w=Dp(f.concat(C),v.registered,A);y+=v.key+"-"+w.name,o!==void 0&&(y+=" "+o);var T=c&&s===void 0?Hs(g):l,k={};for(var m in h)c&&m==="as"||T(m)&&(k[m]=h[m]);return k.className=y,b&&(k.ref=b),Pe.createElement(Pe.Fragment,null,Pe.createElement(Op,{cache:v,serialized:w,isStringTag:typeof g=="string"}),Pe.createElement(g,k))});return x.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=i,x.__emotion_styles=f,x.__emotion_forwardProp=s,Object.defineProperty(x,"toString",{value:function(){return o===void 0&&Ip?"NO_COMPONENT_SELECTOR":"."+o}}),x.withComponent=function(h,v){return e(h,to({},n,v,{shouldForwardProp:zs(x,v,!0)})).apply(void 0,f)},x}},jp=["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Y=Np.bind();jp.forEach(function(e){Y[e]=Y(e)});const Lp=Y($.IconButton)``,vt=({size:e="medium",children:t,...n})=>E.jsx(Lp,{size:e,tabIndex:-1,...n,children:t}),Vp=Y($.Tabs)`
|
|
126
126
|
display: flex;
|
|
127
127
|
align-items: flex-start;
|
|
128
|
+
min-height: 2rem;
|
|
128
129
|
border-radius: 12px;
|
|
129
130
|
background: var(--color-grey-20);
|
|
130
131
|
.tab-indicator {
|
|
@@ -133,7 +134,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
133
134
|
padding: 0 4px;
|
|
134
135
|
`,$p=Y($.Tab)`
|
|
135
136
|
display: flex;
|
|
136
|
-
min-height:
|
|
137
|
+
min-height: 1.5rem;
|
|
137
138
|
padding: 0px 12px;
|
|
138
139
|
justify-content: center;
|
|
139
140
|
align-items: center;
|
|
@@ -164,7 +165,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
164
165
|
gap: 4px;
|
|
165
166
|
border-radius: 50%;
|
|
166
167
|
background: var(--color-error-100);
|
|
167
|
-
`;function Zl({value:e,onChange:t,tabs:n,variant:r}){return E.jsx(Vp,{value:e,onChange:t,variant:r||"scrollable",scrollButtons:!1,sx:{width:r==="fullWidth"?"100%":"fit-content"},classes:{indicator:"tab-indicator"},children:n==null?void 0:n.map(({value:i,label:a,count:o=0})=>E.jsx($p,{label:E.jsxs(Up,{children:[E.jsx(Ae,{value:a,size:"
|
|
168
|
+
`;function Zl({value:e,onChange:t,tabs:n,variant:r}){return E.jsx(Vp,{value:e,onChange:t,variant:r||"scrollable",scrollButtons:!1,sx:{width:r==="fullWidth"?"100%":"fit-content"},classes:{indicator:"tab-indicator"},children:n==null?void 0:n.map(({value:i,label:a,count:o=0})=>E.jsx($p,{label:E.jsxs(Up,{children:[E.jsx(Ae,{value:a,size:"xs",weight:"bold",color:e===i?"var(--color-grey-110)":"var(--color-grey-80)"}),o>0&&E.jsx(Hp,{children:E.jsx(Ae,{value:o.toString(),size:"xs",weight:"semi",color:"var(--color-white)"})})]}),value:i,classes:{selected:"selected-tab"}},a))})}function zp(e){V.useLayoutEffect(()=>(e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)),[e])}const Wp=Y(({className:e,...t})=>E.jsx($.Tooltip,{...t,classes:{popper:e}}))(({theme:e})=>({"& .MuiTooltip-tooltip":{backgroundColor:"var(--color-grey-110)",color:"var(--color-white)",fontSize:"14px",borderRadius:"12px",padding:"8px 16px",boxShadow:"0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03)",maxHeight:"450px",overflow:"auto",maxWidth:"100%",wordBreak:"break-all"}}));function Ho(e){const{placement:t="bottom-start",enterDelay:n=800,enterNextDelay:r=800,textId:i,...a}=e,[o,s]=V.useState(!1);return zp(()=>{if(i){const c=document.getElementById(i),u=(c==null?void 0:c.scrollWidth)||0,f=(c==null?void 0:c.clientWidth)||0,d=(c==null?void 0:c.scrollHeight)||0,p=(c==null?void 0:c.clientHeight)||0,x=u>f||d>p;s(x)}else s(!0)}),E.jsx(Wp,{interactive:!0,disableHoverListener:!o,placement:t,enterNextDelay:r,enterDelay:n,disableInteractive:!0,...a})}function Ae({value:e,size:t,weight:n,shouldTruncate:r,...i}){const a=()=>{let u="14px";switch(t){case"xxs":u="10px";break;case"xs":u="12px";break;case"sm":u="14px";break;case"md":u="16px";break;case"lg":u="18px";break;case"xl":u="20px";break;case"xxl":u="24px";break;case"heading":u="30px";break;case"headingXL":u="36px";break}return i.fontSize?i.fontSize:u},o=()=>{let u=400;switch(n){case"medium":u=500;break;case"semi":u=600;break;case"bold":u=700;break;case"extra":u=800;break}return u},s=()=>{let u="20px";switch(t){case"xxs":u="16px";break;case"xs":u="18px";break;case"sm":u="20px";break;case"md":u="22px";break;case"lg":u="24px";break;case"xl":u="26px";break;case"xxl":u="30px";break;case"heading":u="38px";break;case"headingXL":u="44px";break}return i.lineHeight?i.lineHeight:u},l=()=>{let u="var(--color-grey-110)";return u=i.color?i.color:"var(--color-grey-110)",u},c={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};return E.jsx($.Typography,{...i,fontSize:a(),fontWeight:o(),color:l(),lineHeight:s(),style:{...i.style,...r?c:{},wordBreak:"break-word"},children:e})}const Kp=Y($.Menu)`
|
|
168
169
|
.MuiMenu-paper {
|
|
169
170
|
display: flex;
|
|
170
171
|
padding: 4px;
|
package/dist/index.mjs
CHANGED
|
@@ -2810,6 +2810,7 @@ o1.forEach(function(e) {
|
|
|
2810
2810
|
const s1 = K(Td)``, Mt = ({ size: e = "medium", children: t, ...n }) => /* @__PURE__ */ E.jsx(s1, { size: e, tabIndex: -1, ...n, children: t }), c1 = K(Fd)`
|
|
2811
2811
|
display: flex;
|
|
2812
2812
|
align-items: flex-start;
|
|
2813
|
+
min-height: 2rem;
|
|
2813
2814
|
border-radius: 12px;
|
|
2814
2815
|
background: var(--color-grey-20);
|
|
2815
2816
|
.tab-indicator {
|
|
@@ -2818,7 +2819,7 @@ const s1 = K(Td)``, Mt = ({ size: e = "medium", children: t, ...n }) => /* @__PU
|
|
|
2818
2819
|
padding: 0 4px;
|
|
2819
2820
|
`, l1 = K(Pd)`
|
|
2820
2821
|
display: flex;
|
|
2821
|
-
min-height:
|
|
2822
|
+
min-height: 1.5rem;
|
|
2822
2823
|
padding: 0px 12px;
|
|
2823
2824
|
justify-content: center;
|
|
2824
2825
|
align-items: center;
|
|
@@ -2870,7 +2871,7 @@ function d1({ value: e, onChange: t, tabs: n, variant: r }) {
|
|
|
2870
2871
|
Se,
|
|
2871
2872
|
{
|
|
2872
2873
|
value: a,
|
|
2873
|
-
size: "
|
|
2874
|
+
size: "xs",
|
|
2874
2875
|
weight: "bold",
|
|
2875
2876
|
color: e === i ? "var(--color-grey-110)" : "var(--color-grey-80)"
|
|
2876
2877
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/ui-systems",
|
|
3
3
|
"description": "this package contains all ui components like button, input, checkbox, colors that blinq.io needs",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.124",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|