@zimyo/ui 1.6.1 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,4 +24,4 @@ var on={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */function un(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=un(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const dn=e=>{const t=mn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),bn(n,t)||pn(e)},getConflictingClassGroupIds:(e,t)=>{const i=n[e]||[];return t&&o[e]?[...i,...o[e]]:i}}},bn=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),i=o?bn(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const r=e.join("-");return t.validators.find(({validator:e})=>e(r))?.classGroupId},gn=/^\[(.+)\]$/,pn=e=>{if(gn.test(e)){const t=gn.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},mn=e=>{const{theme:t,classGroups:n}=e,o={nextPart:new Map,validators:[]};for(const e in n)In(n[e],o,e,t);return o},In=(e,t,n,o)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:fn(t,e)).classGroupId=n)}if("function"==typeof e)return hn(e)?void In(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,i])=>{In(i,fn(t,e),n,o)})})},fn=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},hn=e=>e.isThemeGetter,vn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const i=(i,r)=>{n.set(i,r),t++,t>e&&(t=0,o=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},Cn=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=e=>{const t=[];let n,o=0,i=0,r=0;for(let l=0;l<e.length;l++){let s=e[l];if(0===o&&0===i){if(":"===s){t.push(e.slice(r,l)),r=l+1;continue}if("/"===s){n=l;continue}}"["===s?o++:"]"===s?o--:"("===s?i++:")"===s&&i--}const l=0===t.length?e:e.substring(r),s=xn(l);return{modifiers:t,hasImportantModifier:s!==l,baseClassName:s,maybePostfixModifierPosition:n&&n>r?n-r:void 0}};if(t){const e=t+":",n=o;o=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=o;o=t=>n({className:t,parseClassName:e})}return o},xn=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,yn=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let o=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...o.sort(),e),o=[]):o.push(e)}),n.push(...o.sort()),n}},Gn=/\s+/;function An(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=wn(e))&&(o&&(o+=" "),o+=t);return o}const wn=e=>{if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=wn(e[o]))&&(n&&(n+=" "),n+=t);return n};function Xn(e,...t){let n,o,i,r=function(s){const a=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:vn(e.cacheSize),parseClassName:Cn(e),sortModifiers:yn(e),...dn(e)}))(a),o=n.cache.get,i=n.cache.set,r=l,l(s)};function l(e){const t=o(e);if(t)return t;const r=((e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:r}=t,l=[],s=e.trim().split(Gn);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:b,maybePostfixModifierPosition:g}=n(t);if(c){a=t+(a.length>0?" "+a:a);continue}let p=!!g,m=o(p?b.substring(0,g):b);if(!m){if(!p){a=t+(a.length>0?" "+a:a);continue}if(m=o(b),!m){a=t+(a.length>0?" "+a:a);continue}p=!1}const I=r(u).join(":"),f=d?I+"!":I,h=f+m;if(l.includes(h))continue;l.push(h);const v=i(m,p);for(let e=0;e<v.length;++e){const t=v[e];l.push(f+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return i(e,r),r}return function(){return r(An.apply(null,arguments))}}const Vn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Bn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zn=/^\d+\/\d+$/,Wn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pn=e=>Zn.test(e),Jn=e=>!!e&&!Number.isNaN(Number(e)),Mn=e=>!!e&&Number.isInteger(Number(e)),Tn=e=>e.endsWith("%")&&Jn(e.slice(0,-1)),Yn=e=>Wn.test(e),Fn=()=>!0,On=e=>zn.test(e)&&!Nn.test(e),Sn=()=>!1,jn=e=>kn.test(e),Ln=e=>Hn.test(e),En=e=>!Un(e)&&!eo(e),Dn=e=>so(e,bo,Sn),Un=e=>Bn.test(e),Qn=e=>so(e,go,On),Kn=e=>so(e,po,Jn),qn=e=>so(e,co,Sn),_n=e=>so(e,uo,Ln),$n=e=>so(e,Io,jn),eo=e=>Rn.test(e),to=e=>ao(e,go),no=e=>ao(e,mo),oo=e=>ao(e,co),io=e=>ao(e,bo),ro=e=>ao(e,uo),lo=e=>ao(e,Io,!0),so=(e,t,n)=>{const o=Bn.exec(e);return!!o&&(o[1]?t(o[1]):n(o[2]))},ao=(e,t,n=!1)=>{const o=Rn.exec(e);return!!o&&(o[1]?t(o[1]):n)},co=e=>"position"===e||"percentage"===e,uo=e=>"image"===e||"url"===e,bo=e=>"length"===e||"size"===e||"bg-size"===e,go=e=>"length"===e,po=e=>"number"===e,mo=e=>"family-name"===e,Io=e=>"shadow"===e,fo=Xn(()=>{const e=Vn("color"),t=Vn("font"),n=Vn("text"),o=Vn("font-weight"),i=Vn("tracking"),r=Vn("leading"),l=Vn("breakpoint"),s=Vn("container"),a=Vn("spacing"),c=Vn("radius"),u=Vn("shadow"),d=Vn("inset-shadow"),b=Vn("text-shadow"),g=Vn("drop-shadow"),p=Vn("blur"),m=Vn("perspective"),I=Vn("aspect"),f=Vn("ease"),h=Vn("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",eo,Un],C=()=>[eo,Un,a],x=()=>[Pn,"full","auto",...C()],y=()=>[Mn,"none","subgrid",eo,Un],G=()=>["auto",{span:["full",Mn,eo,Un]},Mn,eo,Un],A=()=>[Mn,"auto",eo,Un],w=()=>["auto","min","max","fr",eo,Un],X=()=>["auto",...C()],V=()=>[Pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],B=()=>[e,eo,Un],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",oo,qn,{position:[eo,Un]}],Z=()=>["auto","cover","contain",io,Dn,{size:[eo,Un]}],W=()=>[Tn,to,Qn],z=()=>["","none","full",c,eo,Un],N=()=>["",Jn,to,Qn],k=()=>[Jn,Tn,oo,qn],H=()=>["","none",p,eo,Un],P=()=>["none",Jn,eo,Un],J=()=>["none",Jn,eo,Un],M=()=>[Jn,eo,Un],T=()=>[Pn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yn],breakpoint:[Yn],color:[Fn],container:[Yn],"drop-shadow":[Yn],ease:["in","out","in-out"],font:[En],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yn],shadow:[Yn],spacing:["px",Jn],text:[Yn],"text-shadow":[Yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pn,Un,eo,I]}],container:["container"],columns:[{columns:[Jn,Un,eo,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Mn,"auto",eo,Un]}],basis:[{basis:[Pn,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Jn,Pn,"auto","initial","none",Un]}],grow:[{grow:["",Jn,eo,Un]}],shrink:[{shrink:["",Jn,eo,Un]}],order:[{order:[Mn,"first","last","none",eo,Un]}],"grid-cols":[{"grid-cols":y()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":y()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":w()}],"auto-rows":[{"auto-rows":w()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[s,"screen",...V()]}],"min-w":[{"min-w":[s,"screen","none",...V()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,to,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,eo,Kn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tn,Un]}],"font-family":[{font:[no,Un,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,eo,Un]}],"line-clamp":[{"line-clamp":[Jn,"none",eo,Kn]}],leading:[{leading:[r,...C()]}],"list-image":[{"list-image":["none",eo,Un]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",eo,Un]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Jn,"from-font","auto",eo,Qn]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Jn,"auto",eo,Un]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",eo,Un]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",eo,Un]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mn,eo,Un],radial:["",eo,Un],conic:[Mn,eo,Un]},ro,_n]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Jn,eo,Un]}],"outline-w":[{outline:["",Jn,to,Qn]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",u,lo,$n]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",d,lo,$n]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Jn,Qn]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",b,lo,$n]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Jn,eo,Un]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Jn]}],"mask-image-linear-from-pos":[{"mask-linear-from":k()}],"mask-image-linear-to-pos":[{"mask-linear-to":k()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":k()}],"mask-image-t-to-pos":[{"mask-t-to":k()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":k()}],"mask-image-r-to-pos":[{"mask-r-to":k()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":k()}],"mask-image-b-to-pos":[{"mask-b-to":k()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":k()}],"mask-image-l-to-pos":[{"mask-l-to":k()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":k()}],"mask-image-x-to-pos":[{"mask-x-to":k()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":k()}],"mask-image-y-to-pos":[{"mask-y-to":k()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[eo,Un]}],"mask-image-radial-from-pos":[{"mask-radial-from":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Jn]}],"mask-image-conic-from-pos":[{"mask-conic-from":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",eo,Un]}],filter:[{filter:["","none",eo,Un]}],blur:[{blur:H()}],brightness:[{brightness:[Jn,eo,Un]}],contrast:[{contrast:[Jn,eo,Un]}],"drop-shadow":[{"drop-shadow":["","none",g,lo,$n]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Jn,eo,Un]}],"hue-rotate":[{"hue-rotate":[Jn,eo,Un]}],invert:[{invert:["",Jn,eo,Un]}],saturate:[{saturate:[Jn,eo,Un]}],sepia:[{sepia:["",Jn,eo,Un]}],"backdrop-filter":[{"backdrop-filter":["","none",eo,Un]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[Jn,eo,Un]}],"backdrop-contrast":[{"backdrop-contrast":[Jn,eo,Un]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Jn,eo,Un]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Jn,eo,Un]}],"backdrop-invert":[{"backdrop-invert":["",Jn,eo,Un]}],"backdrop-opacity":[{"backdrop-opacity":[Jn,eo,Un]}],"backdrop-saturate":[{"backdrop-saturate":[Jn,eo,Un]}],"backdrop-sepia":[{"backdrop-sepia":["",Jn,eo,Un]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",eo,Un]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Jn,"initial",eo,Un]}],ease:[{ease:["linear","initial",f,eo,Un]}],delay:[{delay:[Jn,eo,Un]}],animate:[{animate:["none",h,eo,Un]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,eo,Un]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:P()}],"rotate-x":[{"rotate-x":P()}],"rotate-y":[{"rotate-y":P()}],"rotate-z":[{"rotate-z":P()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[eo,Un,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:T()}],"translate-x":[{"translate-x":T()}],"translate-y":[{"translate-y":T()}],"translate-z":[{"translate-z":T()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",eo,Un]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",eo,Un]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Jn,to,Qn,Kn]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ho=[];for(let e=0;e<256;++e)ho.push((e+256).toString(16).slice(1));let vo;const Co=new Uint8Array(16);var xo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yo(e,t,n){if(xo.randomUUID&&!t&&!e)return xo.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!vo){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vo=crypto.getRandomValues.bind(crypto)}return vo(Co)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(ho[e[t+0]]+ho[e[t+1]]+ho[e[t+2]]+ho[e[t+3]]+"-"+ho[e[t+4]]+ho[e[t+5]]+"-"+ho[e[t+6]]+ho[e[t+7]]+"-"+ho[e[t+8]]+ho[e[t+9]]+"-"+ho[e[t+10]]+ho[e[t+11]]+ho[e[t+12]]+ho[e[t+13]]+ho[e[t+14]]+ho[e[t+15]]).toLowerCase()}(o)}function Go(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fo(function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=un(e))&&(o&&(o+=" "),o+=t);return o}(e))}var Ao={xs:"zui:h-8 zui:px-3 zui:text-xs",sm:"zui:h-9 zui:px-3 zui:text-sm",md:"zui:h-10 zui:px-3 zui:text-sm",lg:"zui:h-11 zui:px-3 zui:text-base"},wo=function(t){var n=t.innerProps,o=n.ref,i=s(n,["ref"]);return e.jsx("div",l({},i,{className:"zui:cursor-pointer",ref:o,children:e.jsx(cn,{className:"zui:text-neutral-400 zui:h-4 zui:w-4"})}))},Xo=function(t){var n=t.innerRef,o=t.innerProps;return e.jsx("div",l({},o,{ref:n,className:"zui:ml-2 zui:flex zui:items-center zui:justify-center zui:cursor-pointer",children:e.jsx(an,{className:"zui:size-4 zui:opacity-50"})}))},Vo=function(t){return e.jsx(qe.Option,l({},t,{children:e.jsxs("div",{className:"zui:flex zui:items-center zui:gap-1 zui:justify-between",children:[e.jsx("span",{children:t.children}),t.isSelected&&e.jsx(sn,{className:"zui:h-4 zui:w-4"})]})}))};function Bo(n){var o,i=n.label,r=n.error,a=n.className,c=n.size,u=void 0===c?"md":c,d=n.required,b=n.valueKey,g=void 0===b?"value":b,p=n.labelKey,m=void 0===p?"label":p,I=n.isMulti,f=n.value,h=n.options,v=n.onChange,C=n.searchByID,x=void 0!==C&&C,y=n.floatingLabel,G=void 0!==y&&y,A=s(n,["label","error","className","size","required","valueKey","labelKey","isMulti","value","options","onChange","searchByID","floatingLabel"]),w=(void 0===(o="select")&&(o="id"),t.useRef("".concat(o,"-").concat(yo())).current),X=t.useMemo(function(){if(!x||!h)return f;return I?Array.isArray(f)?f.map(function(e){return h.find(function(t){return t[g]===e})}).filter(Boolean):[]:h.find(function(e){return e[g]===f})||null},[f,h,x,g,I]);return e.jsxs("div",{className:Go("zui:w-full zui:space-y-1",a),children:[!G&&i&&e.jsxs("label",{htmlFor:w,className:"zui:block zui:mb-2 zui:text-sm zui:font-medium zui:leading-none",children:[i,d&&e.jsx("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),G&&i&&e.jsxs("label",{htmlFor:w,className:Go("zui:pointer-events-none zui:absolute zui:left-5 zui:-top-[1px] zui:z-10 zui:bg-background zui:px-1 zui:text-xs zui:text-muted-foreground zui:transition-all"),children:[i,d&&e.jsx("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),e.jsx($t,l({},A,{value:X,onChange:function(e){var t,n;if(x)if(I){var o=null!==(t=null==e?void 0:e.map(function(e){return e[g]}))&&void 0!==t?t:[];null==v||v(o,null)}else{var i=null!==(n=null==e?void 0:e[g])&&void 0!==n?n:null;null==v||v(i,null)}else null==v||v(e,null)},isMulti:I,options:h,hideSelectedOptions:!1,unstyled:!0,id:w,menuPortalTarget:document.body,className:Go(a),getOptionValue:function(e){return null==e?void 0:e[g]},getOptionLabel:function(e){return null==e?void 0:e[m]},components:{DropdownIndicator:Xo,ClearIndicator:wo,Option:Vo},styles:{menuPortal:function(e){return l(l({},e),{zIndex:1700})}},classNames:{control:function(e){var t=e.isFocused,n=e.isDisabled;return Go("zui:flex zui:items-center zui:justify-between zui:rounded-md zui:border zui:border-input zui:ring-offset-background","zui:placeholder:text-muted-foreground focus:zui:outline-none focus:zui:ring-2 focus:zui:ring-ring focus:zui:ring-offset-2",Ao[null!=u?u:"md"],n?"zui:bg-gray-100 zui:cursor-not-allowed zui:opacity-60":"zui:bg-background",t&&"zui:ring-1 zui:ring-ring zui:ring-offset-1",r&&"zui:border-destructive zui:focus-within:ring-destructive")},menu:function(){return"zui:relative zui:mt-2 zui:overflow-hidden zui:rounded-md zui:border zui:border-gray-300 zui:bg-white zui:text-popover-foreground zui:shadow-sm zui:transition-all"},menuList:function(){return"zui:p-1"},option:function(e){var t=e.isFocused,n=e.isSelected;return Go("zui:relative zui:flex zui:cursor-default zui:select-none zui:items-center zui:rounded-sm zui:px-2 zui:py-1.5 zui:text-sm zui:outline-none zui:transition-colors","zui:data-[disabled]:pointer-events-none zui:data-[disabled]:opacity-50",{"zui:bg-accent zui:text-accent-foreground":t||n})},placeholder:function(){return"zui:text-muted-foreground"},singleValue:function(){return"zui:text-foreground"},input:function(){return"zui:text-foreground"},valueContainer:function(){return"zui:flex zui:gap-1"},multiValue:function(){return"zui:bg-secondary zui:text-secondary-foreground zui:inline-flex zui:items-center zui:rounded-sm zui:border zui:px-1 zui:py-0.5"},multiValueLabel:function(){return"zui:text-xs"},multiValueRemove:function(){return"zui:ml-1 zui:rounded-sm hover:zui:bg-secondary hover:zui:text-secondary-foreground"},indicatorSeparator:function(){return"zui:hidden"},noOptionsMessage:function(){return"zui:px-3 zui:py-2 zui:text-sm zui:text-muted-foreground zui:text-center"}}})),r&&e.jsx("p",{className:"zui:mt-1 zui:text-sm zui:text-red-500",children:r})]})}exports.Select=Bo,exports.default=Bo;
27
+ */function un(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=un(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const dn=e=>{const t=mn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),bn(n,t)||pn(e)},getConflictingClassGroupIds:(e,t)=>{const i=n[e]||[];return t&&o[e]?[...i,...o[e]]:i}}},bn=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),i=o?bn(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const r=e.join("-");return t.validators.find(({validator:e})=>e(r))?.classGroupId},gn=/^\[(.+)\]$/,pn=e=>{if(gn.test(e)){const t=gn.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},mn=e=>{const{theme:t,classGroups:n}=e,o={nextPart:new Map,validators:[]};for(const e in n)In(n[e],o,e,t);return o},In=(e,t,n,o)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:fn(t,e)).classGroupId=n)}if("function"==typeof e)return hn(e)?void In(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,i])=>{In(i,fn(t,e),n,o)})})},fn=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},hn=e=>e.isThemeGetter,vn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const i=(i,r)=>{n.set(i,r),t++,t>e&&(t=0,o=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},Cn=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=e=>{const t=[];let n,o=0,i=0,r=0;for(let l=0;l<e.length;l++){let s=e[l];if(0===o&&0===i){if(":"===s){t.push(e.slice(r,l)),r=l+1;continue}if("/"===s){n=l;continue}}"["===s?o++:"]"===s?o--:"("===s?i++:")"===s&&i--}const l=0===t.length?e:e.substring(r),s=xn(l);return{modifiers:t,hasImportantModifier:s!==l,baseClassName:s,maybePostfixModifierPosition:n&&n>r?n-r:void 0}};if(t){const e=t+":",n=o;o=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=o;o=t=>n({className:t,parseClassName:e})}return o},xn=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,yn=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let o=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...o.sort(),e),o=[]):o.push(e)}),n.push(...o.sort()),n}},Gn=/\s+/;function An(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=wn(e))&&(o&&(o+=" "),o+=t);return o}const wn=e=>{if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=wn(e[o]))&&(n&&(n+=" "),n+=t);return n};function Xn(e,...t){let n,o,i,r=function(s){const a=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:vn(e.cacheSize),parseClassName:Cn(e),sortModifiers:yn(e),...dn(e)}))(a),o=n.cache.get,i=n.cache.set,r=l,l(s)};function l(e){const t=o(e);if(t)return t;const r=((e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:r}=t,l=[],s=e.trim().split(Gn);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:b,maybePostfixModifierPosition:g}=n(t);if(c){a=t+(a.length>0?" "+a:a);continue}let p=!!g,m=o(p?b.substring(0,g):b);if(!m){if(!p){a=t+(a.length>0?" "+a:a);continue}if(m=o(b),!m){a=t+(a.length>0?" "+a:a);continue}p=!1}const I=r(u).join(":"),f=d?I+"!":I,h=f+m;if(l.includes(h))continue;l.push(h);const v=i(m,p);for(let e=0;e<v.length;++e){const t=v[e];l.push(f+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return i(e,r),r}return function(){return r(An.apply(null,arguments))}}const Vn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Bn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zn=/^\d+\/\d+$/,Wn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pn=e=>Zn.test(e),Jn=e=>!!e&&!Number.isNaN(Number(e)),Mn=e=>!!e&&Number.isInteger(Number(e)),Tn=e=>e.endsWith("%")&&Jn(e.slice(0,-1)),Yn=e=>Wn.test(e),Fn=()=>!0,On=e=>zn.test(e)&&!Nn.test(e),Sn=()=>!1,jn=e=>kn.test(e),Ln=e=>Hn.test(e),En=e=>!Un(e)&&!eo(e),Dn=e=>so(e,bo,Sn),Un=e=>Bn.test(e),Qn=e=>so(e,go,On),Kn=e=>so(e,po,Jn),qn=e=>so(e,co,Sn),_n=e=>so(e,uo,Ln),$n=e=>so(e,Io,jn),eo=e=>Rn.test(e),to=e=>ao(e,go),no=e=>ao(e,mo),oo=e=>ao(e,co),io=e=>ao(e,bo),ro=e=>ao(e,uo),lo=e=>ao(e,Io,!0),so=(e,t,n)=>{const o=Bn.exec(e);return!!o&&(o[1]?t(o[1]):n(o[2]))},ao=(e,t,n=!1)=>{const o=Rn.exec(e);return!!o&&(o[1]?t(o[1]):n)},co=e=>"position"===e||"percentage"===e,uo=e=>"image"===e||"url"===e,bo=e=>"length"===e||"size"===e||"bg-size"===e,go=e=>"length"===e,po=e=>"number"===e,mo=e=>"family-name"===e,Io=e=>"shadow"===e,fo=Xn(()=>{const e=Vn("color"),t=Vn("font"),n=Vn("text"),o=Vn("font-weight"),i=Vn("tracking"),r=Vn("leading"),l=Vn("breakpoint"),s=Vn("container"),a=Vn("spacing"),c=Vn("radius"),u=Vn("shadow"),d=Vn("inset-shadow"),b=Vn("text-shadow"),g=Vn("drop-shadow"),p=Vn("blur"),m=Vn("perspective"),I=Vn("aspect"),f=Vn("ease"),h=Vn("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",eo,Un],C=()=>[eo,Un,a],x=()=>[Pn,"full","auto",...C()],y=()=>[Mn,"none","subgrid",eo,Un],G=()=>["auto",{span:["full",Mn,eo,Un]},Mn,eo,Un],A=()=>[Mn,"auto",eo,Un],w=()=>["auto","min","max","fr",eo,Un],X=()=>["auto",...C()],V=()=>[Pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],B=()=>[e,eo,Un],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",oo,qn,{position:[eo,Un]}],Z=()=>["auto","cover","contain",io,Dn,{size:[eo,Un]}],W=()=>[Tn,to,Qn],z=()=>["","none","full",c,eo,Un],N=()=>["",Jn,to,Qn],k=()=>[Jn,Tn,oo,qn],H=()=>["","none",p,eo,Un],P=()=>["none",Jn,eo,Un],J=()=>["none",Jn,eo,Un],M=()=>[Jn,eo,Un],T=()=>[Pn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yn],breakpoint:[Yn],color:[Fn],container:[Yn],"drop-shadow":[Yn],ease:["in","out","in-out"],font:[En],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yn],shadow:[Yn],spacing:["px",Jn],text:[Yn],"text-shadow":[Yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pn,Un,eo,I]}],container:["container"],columns:[{columns:[Jn,Un,eo,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Mn,"auto",eo,Un]}],basis:[{basis:[Pn,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Jn,Pn,"auto","initial","none",Un]}],grow:[{grow:["",Jn,eo,Un]}],shrink:[{shrink:["",Jn,eo,Un]}],order:[{order:[Mn,"first","last","none",eo,Un]}],"grid-cols":[{"grid-cols":y()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":y()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":w()}],"auto-rows":[{"auto-rows":w()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[s,"screen",...V()]}],"min-w":[{"min-w":[s,"screen","none",...V()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,to,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,eo,Kn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tn,Un]}],"font-family":[{font:[no,Un,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,eo,Un]}],"line-clamp":[{"line-clamp":[Jn,"none",eo,Kn]}],leading:[{leading:[r,...C()]}],"list-image":[{"list-image":["none",eo,Un]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",eo,Un]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Jn,"from-font","auto",eo,Qn]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Jn,"auto",eo,Un]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",eo,Un]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",eo,Un]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mn,eo,Un],radial:["",eo,Un],conic:[Mn,eo,Un]},ro,_n]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Jn,eo,Un]}],"outline-w":[{outline:["",Jn,to,Qn]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",u,lo,$n]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",d,lo,$n]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Jn,Qn]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",b,lo,$n]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Jn,eo,Un]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Jn]}],"mask-image-linear-from-pos":[{"mask-linear-from":k()}],"mask-image-linear-to-pos":[{"mask-linear-to":k()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":k()}],"mask-image-t-to-pos":[{"mask-t-to":k()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":k()}],"mask-image-r-to-pos":[{"mask-r-to":k()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":k()}],"mask-image-b-to-pos":[{"mask-b-to":k()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":k()}],"mask-image-l-to-pos":[{"mask-l-to":k()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":k()}],"mask-image-x-to-pos":[{"mask-x-to":k()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":k()}],"mask-image-y-to-pos":[{"mask-y-to":k()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[eo,Un]}],"mask-image-radial-from-pos":[{"mask-radial-from":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Jn]}],"mask-image-conic-from-pos":[{"mask-conic-from":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",eo,Un]}],filter:[{filter:["","none",eo,Un]}],blur:[{blur:H()}],brightness:[{brightness:[Jn,eo,Un]}],contrast:[{contrast:[Jn,eo,Un]}],"drop-shadow":[{"drop-shadow":["","none",g,lo,$n]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Jn,eo,Un]}],"hue-rotate":[{"hue-rotate":[Jn,eo,Un]}],invert:[{invert:["",Jn,eo,Un]}],saturate:[{saturate:[Jn,eo,Un]}],sepia:[{sepia:["",Jn,eo,Un]}],"backdrop-filter":[{"backdrop-filter":["","none",eo,Un]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[Jn,eo,Un]}],"backdrop-contrast":[{"backdrop-contrast":[Jn,eo,Un]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Jn,eo,Un]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Jn,eo,Un]}],"backdrop-invert":[{"backdrop-invert":["",Jn,eo,Un]}],"backdrop-opacity":[{"backdrop-opacity":[Jn,eo,Un]}],"backdrop-saturate":[{"backdrop-saturate":[Jn,eo,Un]}],"backdrop-sepia":[{"backdrop-sepia":["",Jn,eo,Un]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",eo,Un]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Jn,"initial",eo,Un]}],ease:[{ease:["linear","initial",f,eo,Un]}],delay:[{delay:[Jn,eo,Un]}],animate:[{animate:["none",h,eo,Un]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,eo,Un]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:P()}],"rotate-x":[{"rotate-x":P()}],"rotate-y":[{"rotate-y":P()}],"rotate-z":[{"rotate-z":P()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[eo,Un,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:T()}],"translate-x":[{"translate-x":T()}],"translate-y":[{"translate-y":T()}],"translate-z":[{"translate-z":T()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",eo,Un]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",eo,Un]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Jn,to,Qn,Kn]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ho=[];for(let e=0;e<256;++e)ho.push((e+256).toString(16).slice(1));let vo;const Co=new Uint8Array(16);var xo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yo(e,t,n){if(xo.randomUUID&&!t&&!e)return xo.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!vo){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vo=crypto.getRandomValues.bind(crypto)}return vo(Co)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(ho[e[t+0]]+ho[e[t+1]]+ho[e[t+2]]+ho[e[t+3]]+"-"+ho[e[t+4]]+ho[e[t+5]]+"-"+ho[e[t+6]]+ho[e[t+7]]+"-"+ho[e[t+8]]+ho[e[t+9]]+"-"+ho[e[t+10]]+ho[e[t+11]]+ho[e[t+12]]+ho[e[t+13]]+ho[e[t+14]]+ho[e[t+15]]).toLowerCase()}(o)}function Go(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fo(function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=un(e))&&(o&&(o+=" "),o+=t);return o}(e))}var Ao={xs:"zui:h-8 zui:px-3 zui:text-xs",sm:"zui:h-9 zui:px-3 zui:text-sm",md:"zui:h-10 zui:px-3 zui:text-sm",lg:"zui:h-11 zui:px-3 zui:text-base"},wo=function(t){var n=t.innerProps,o=n.ref,i=s(n,["ref"]);return e.jsx("div",l({},i,{className:"zui:cursor-pointer",ref:o,children:e.jsx(cn,{className:"zui:text-neutral-400 zui:h-4 zui:w-4"})}))},Xo=function(t){var n=t.innerRef,o=t.innerProps;return e.jsx("div",l({},o,{ref:n,className:"zui:ml-2 zui:flex zui:items-center zui:justify-center zui:cursor-pointer",children:e.jsx(an,{className:"zui:size-4 zui:opacity-50"})}))},Vo=function(t){return e.jsx(qe.Option,l({},t,{children:e.jsxs("div",{className:"zui:flex zui:items-center zui:gap-1 zui:justify-between",children:[e.jsx("span",{children:t.children}),t.isSelected&&e.jsx(sn,{className:"zui:h-4 zui:w-4"})]})}))};function Bo(n){var o,i=n.label,r=n.error,a=n.className,c=n.size,u=void 0===c?"md":c,d=n.required,b=n.valueKey,g=void 0===b?"value":b,p=n.labelKey,m=void 0===p?"label":p,I=n.isMulti,f=n.value,h=n.options,v=n.onChange,C=n.searchByID,x=void 0!==C&&C,y=n.floatingLabel,G=void 0!==y&&y,A=n.maxChipVisible,w=void 0===A?2:A,X=s(n,["label","error","className","size","required","valueKey","labelKey","isMulti","value","options","onChange","searchByID","floatingLabel","maxChipVisible"]),V=(void 0===(o="select")&&(o="id"),t.useRef("".concat(o,"-").concat(yo())).current),B=t.useMemo(function(){if(!x||!h)return f;return I?Array.isArray(f)?f.map(function(e){return h.find(function(t){return t[g]===e})}).filter(Boolean):[]:h.find(function(e){return e[g]===f})||null},[f,h,x,g,I]),R=Go("zui:relative zui:flex zui:items-center zui:justify-between zui:rounded-md zui:border zui:border-input zui:ring-offset-background","zui:placeholder:text-muted-foreground focus:zui:outline-none focus:zui:ring-2 focus:zui:ring-ring focus:zui:ring-offset-2",Ao[u],r&&"zui:border-destructive focus:zui:ring-destructive");return e.jsxs("div",{className:Go("zui:w-full zui:relative",a),children:[G&&i&&e.jsxs("label",{htmlFor:V,className:Go("zui:absolute zui:left-3 zui:-top-2.5 zui:z-10 zui:bg-background zui:px-1 zui:text-xs zui:text-muted-foreground zui:transition-all","zui:pointer-events-none"),children:[i,d&&e.jsx("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),!G&&i&&e.jsxs("label",{htmlFor:V,className:"zui:block zui:mb-2 zui:text-sm zui:font-medium",children:[i,d&&e.jsx("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),e.jsx($t,l({hideSelectedOptions:!1},X,{id:V,value:B,onChange:function(e){var t,n;if(x)if(I){var o=null!==(t=null==e?void 0:e.map(function(e){return e[g]}))&&void 0!==t?t:[];null==v||v(o,null)}else{var i=null!==(n=null==e?void 0:e[g])&&void 0!==n?n:null;null==v||v(i,null)}else null==v||v(e,null)},isMulti:I,options:h,unstyled:!0,menuPortalTarget:document.body,getOptionValue:function(e){return null==e?void 0:e[g]},getOptionLabel:function(e){return null==e?void 0:e[m]},components:{DropdownIndicator:Xo,ClearIndicator:wo,Option:Vo,ValueContainer:function(t){var n=t.getValue,o=t.children,i=n(),r=i.length,s=o;if(r>w){i.slice(0,w);var a=e.jsxs("div",{style:{background:"#e5e7eb",color:"#111827",borderRadius:"4px",padding:"0 6px",fontSize:"12px",display:"inline-flex",alignItems:"center",margin:"2px"},children:["+",r-w," more"]},"more-chip");s=[o[0].slice(0,w),a,o[1]]}return e.jsx(qe.ValueContainer,l({},t,{children:s}))}},styles:{menuPortal:function(e){return l(l({},e),{zIndex:1700})}},classNames:{control:function(e){var t=e.isFocused,n=e.isDisabled;return Go(R,n?"zui:bg-muted zui:cursor-not-allowed zui:opacity-60":"zui:bg-background",t&&"zui:ring-1 zui:ring-ring zui:ring-offset-1")},menu:function(){return"zui:relative zui:mt-2 zui:overflow-hidden zui:rounded-md zui:border zui:border-gray-300 zui:bg-white zui:text-popover-foreground zui:shadow-sm zui:transition-all"},menuList:function(){return"zui:p-1"},option:function(e){var t=e.isFocused,n=e.isSelected;return Go("zui:relative zui:flex zui:cursor-default zui:select-none zui:items-center zui:rounded-sm zui:px-2 zui:py-1.5 zui:text-sm zui:outline-none zui:transition-colors","zui:data-[disabled]:pointer-events-none zui:data-[disabled]:opacity-50",{"zui:bg-accent zui:text-accent-foreground":t||n})},placeholder:function(){return"zui:text-muted-foreground"},singleValue:function(){return"zui:text-foreground"},input:function(){return"zui:text-foreground"},valueContainer:function(){return"zui:flex zui:gap-1"},multiValue:function(){return"zui:bg-secondary zui:text-secondary-foreground zui:inline-flex zui:items-center zui:rounded-sm zui:border zui:px-1 zui:py-0.5"},multiValueLabel:function(){return"zui:text-xs"},multiValueRemove:function(){return"zui:ml-1 zui:rounded-sm hover:zui:bg-secondary hover:zui:text-secondary-foreground"},indicatorSeparator:function(){return"zui:hidden"},noOptionsMessage:function(){return"zui:px-3 zui:py-2 zui:text-sm zui:text-muted-foreground zui:text-center"}}})),r&&e.jsx("p",{className:"zui:mt-1 zui:text-sm zui:text-red-500",children:r})]})}exports.Select=Bo,exports.default=Bo;
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ interface Option {
24
24
  [key: string]: any;
25
25
  }
26
26
  type SelectSize = "xs" | "sm" | "md" | "lg";
27
- type SelectProps<OptionType extends Option> = {
27
+ interface SelectProps<OptionType extends Option> extends Props<OptionType, boolean, GroupBase<OptionType>> {
28
28
  label?: string;
29
29
  error?: string;
30
30
  isClearable?: boolean;
@@ -37,8 +37,9 @@ type SelectProps<OptionType extends Option> = {
37
37
  searchByID?: boolean;
38
38
  value?: any;
39
39
  floatingLabel?: boolean;
40
- } & Props<OptionType, boolean, GroupBase<OptionType>>;
41
- declare function Select<OptionType extends Option>({ label, error, className, size, required, valueKey, labelKey, isMulti, value, options, onChange, searchByID, floatingLabel, ...props }: SelectProps<OptionType>): react_jsx_runtime.JSX.Element;
40
+ maxChipVisible?: number;
41
+ }
42
+ declare function Select<OptionType extends Option>({ label, error, className, size, required, valueKey, labelKey, isMulti, value, options, onChange, searchByID, floatingLabel, maxChipVisible, ...props }: SelectProps<OptionType>): react_jsx_runtime.JSX.Element;
42
43
 
43
44
  interface AccordionProps extends Omit<AccordionProps$1, 'sx' | 'onChange' | 'expanded'> {
44
45
  type?: 'single' | 'multiple';
@@ -133,7 +134,7 @@ declare const Code: ({ children, sx }: CodeProps) => react_jsx_runtime.JSX.Eleme
133
134
  interface ModalProps {
134
135
  open: boolean;
135
136
  onClose: () => void;
136
- title?: string;
137
+ title?: string | any;
137
138
  description?: string;
138
139
  children?: React$1.ReactNode;
139
140
  actions?: React$1.ReactNode;
@@ -179,7 +180,7 @@ interface BadgeProps extends VariantProps<typeof badgeVariants> {
179
180
  declare const badgeVariants: (props?: ({
180
181
  variant?: "text" | "outlined" | "contained" | null | undefined;
181
182
  size?: "sm" | "md" | "lg" | null | undefined;
182
- type?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
183
+ type?: "default" | "success" | "error" | "info" | "warning" | null | undefined;
183
184
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
184
185
  declare const Badge: ({ label, icon, iconPosition, dot, dotPosition, variant, size, type, color, className, }: BadgeProps) => react_jsx_runtime.JSX.Element;
185
186