sodtrack-web-ui 0.61.2 → 0.61.4
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/chip-form-complementary.d.mts +3 -3
- package/dist/chip-form-complementary.d.ts +3 -3
- package/dist/chip-form.d.mts +3 -3
- package/dist/chip-form.d.ts +3 -3
- package/dist/chip-status-complementary.d.mts +1 -1
- package/dist/chip-status-complementary.d.ts +1 -1
- package/dist/{chunk-QBX2P5NO.mjs → chunk-6656TD7P.mjs} +1 -1
- package/dist/{chunk-GQSPOA7L.mjs → chunk-AHN4ESWA.mjs} +1 -1
- package/dist/chunk-AYAULBBH.mjs +1 -0
- package/dist/{chunk-7OZLSN3F.mjs → chunk-CFQB4JDC.mjs} +1 -1
- package/dist/chunk-DEMXLQGG.mjs +1 -0
- package/dist/{chunk-EOB2KGVR.mjs → chunk-HYCZHDLP.mjs} +1 -1
- package/dist/{chunk-5MZNJAI4.mjs → chunk-KBCKNFAA.mjs} +1 -1
- package/dist/{chunk-6FW654CF.mjs → chunk-LBI4WRGE.mjs} +1 -1
- package/dist/{chunk-VSILLNPF.mjs → chunk-NVZAHHEB.mjs} +1 -1
- package/dist/{chunk-UVBUJL4P.mjs → chunk-PJ5ZUPVG.mjs} +1 -1
- package/dist/{chunk-D7F6I4QH.mjs → chunk-SFABS5IQ.mjs} +1 -1
- package/dist/{chunk-VY3HVT62.mjs → chunk-T3EYW66N.mjs} +1 -1
- package/dist/country-text-field.js +1 -1
- package/dist/country-text-field.mjs +1 -1
- package/dist/data-table.mjs +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-picker.mjs +1 -1
- package/dist/flag-select.js +1 -1
- package/dist/flag-select.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.mts +0 -8
- package/dist/index.d.ts +0 -8
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/list-item-arrow.css +1 -1
- package/dist/list-item-arrow.mjs +1 -1
- package/dist/list-item-button.css +1 -1
- package/dist/list-item-button.mjs +1 -1
- package/dist/list-item-checkbox.css +1 -1
- package/dist/list-item-checkbox.mjs +1 -1
- package/dist/list-item.css +1 -1
- package/dist/list-item.mjs +1 -1
- package/dist/search-bar.js +1 -1
- package/dist/search-bar.mjs +1 -1
- package/dist/select.js +1 -1
- package/dist/select.mjs +1 -1
- package/dist/snackbar.d.mts +2 -2
- package/dist/snackbar.d.ts +2 -2
- package/dist/snackbar.js +2 -2
- package/dist/snackbar.mjs +1 -1
- package/dist/tab.d.mts +1 -1
- package/dist/tab.d.ts +1 -1
- package/dist/text-field.js +1 -1
- package/dist/text-field.mjs +1 -1
- package/dist/time-picker.js +1 -1
- package/dist/time-picker.mjs +1 -1
- package/dist/toast.d.mts +9 -2
- package/dist/toast.d.ts +9 -2
- package/dist/toast.js +2 -2
- package/dist/toast.mjs +1 -1
- package/dist/tooltip.d.mts +2 -2
- package/dist/tooltip.d.ts +2 -2
- package/dist/tooltip.js +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +2 -6
- package/dist/checkbox_old.d.mts +0 -17
- package/dist/checkbox_old.d.ts +0 -17
- package/dist/checkbox_old.js +0 -16
- package/dist/checkbox_old.mjs +0 -1
- package/dist/chunk-6T3T33NK.mjs +0 -1
- package/dist/chunk-A7OUZRND.mjs +0 -1
- package/dist/chunk-BNYSNYRJ.mjs +0 -1
- package/dist/chunk-HPADBBCW.mjs +0 -1
- package/dist/chunk-HTBT6CLR.mjs +0 -1
- package/dist/chunk-PGGV7VMC.mjs +0 -1
- package/dist/snackbar_old.d.mts +0 -14
- package/dist/snackbar_old.d.ts +0 -14
- package/dist/snackbar_old.js +0 -15
- package/dist/snackbar_old.mjs +0 -1
- package/dist/toggle.d.mts +0 -11
- package/dist/toggle.d.ts +0 -11
- package/dist/toggle.js +0 -1
- package/dist/toggle.mjs +0 -1
- package/dist/tooltip_old.d.mts +0 -12
- package/dist/tooltip_old.d.ts +0 -12
- package/dist/tooltip_old.js +0 -1
- package/dist/tooltip_old.mjs +0 -1
package/dist/search-bar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var ae=require('react'),reactLabel=require('@radix-ui/react-label'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ae__default=/*#__PURE__*/_interopDefault(ae);function re(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(a=0;a<d;a++)e[a]&&(t=re(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function se(){for(var e,a,t=0,o="",d=arguments.length;t<d;t++)(e=arguments[t])&&(a=re(e))&&(o&&(o+=" "),o+=a);return o}var $="-",ye=e=>{let a=Re(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:r=>{let l=r.split($);return l[0]===""&&l.length!==1&&l.shift(),ce(l,a)||De(r)},getConflictingClassGroupIds:(r,l)=>{let i=t[r]||[];return l&&o[r]?[...i,...o[r]]:i}}},ce=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),d=o?ce(e.slice(1),o):void 0;if(d)return d;if(a.validators.length===0)return;let u=e.join($);return a.validators.find(({validator:r})=>r(u))?.classGroupId},fe=/^\[(.+)\]$/,De=e=>{if(fe.test(e)){let a=fe.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Re=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return qe(Object.entries(e.classGroups),t).forEach(([u,r])=>{Y(r,o,u,a);}),o},Y=(e,a,t,o)=>{e.forEach(d=>{if(typeof d=="string"){let u=d===""?a:ie(a,d);u.classGroupId=t;return}if(typeof d=="function"){if(Te(d)){Y(d(o),a,t,o);return}a.validators.push({validator:d,classGroupId:t});return}Object.entries(d).forEach(([u,r])=>{Y(r,ie(a,u),t,o);});});},ie=(e,a)=>{let t=e;return a.split($).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},Te=e=>e.isThemeGetter,qe=(e,a)=>a?e.map(([t,o])=>{let d=o.map(u=>typeof u=="string"?a+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([r,l])=>[a+r,l])):u);return [t,d]}):e,ve=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,d=(u,r)=>{t.set(u,r),a++,a>e&&(a=0,o=t,t=new Map);};return {get(u){let r=t.get(u);if(r!==void 0)return r;if((r=o.get(u))!==void 0)return d(u,r),r},set(u,r){t.has(u)?t.set(u,r):d(u,r);}}},ne="!",Ue=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,d=a[0],u=a.length,r=l=>{let i=[],m=0,L=0,I;for(let p=0;p<l.length;p++){let x=l[p];if(m===0){if(x===d&&(o||l.slice(p,p+u)===a)){i.push(l.slice(L,p)),L=p+u;continue}if(x==="/"){I=p;continue}}x==="["?m++:x==="]"&&m--;}let C=i.length===0?l:l.substring(L),P=C.startsWith(ne),g=P?C.substring(1):C,n=I&&I>L?I-L:void 0;return {modifiers:i,hasImportantModifier:P,baseClassName:g,maybePostfixModifierPosition:n}};return t?l=>t({className:l,parseClassName:r}):r},Oe=e=>{if(e.length<=1)return e;let a=[],t=[];return e.forEach(o=>{o[0]==="["?(a.push(...t.sort(),o),t=[]):t.push(o);}),a.push(...t.sort()),a},He=e=>({cache:ve(e.cacheSize),parseClassName:Ue(e),...ye(e)}),Ge=/\s+/,Ee=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:d}=a,u=[],r=e.trim().split(Ge),l="";for(let i=r.length-1;i>=0;i-=1){let m=r[i],{modifiers:L,hasImportantModifier:I,baseClassName:C,maybePostfixModifierPosition:P}=t(m),g=!!P,n=o(g?C.substring(0,P):C);if(!n){if(!g){l=m+(l.length>0?" "+l:l);continue}if(n=o(C),!n){l=m+(l.length>0?" "+l:l);continue}g=false;}let p=Oe(L).join(":"),x=I?p+ne:p,h=x+n;if(u.includes(h))continue;u.push(h);let S=d(n,g);for(let w=0;w<S.length;++w){let F=S[w];u.push(x+F);}l=m+(l.length>0?" "+l:l);}return l};function ze(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=pe(a))&&(o&&(o+=" "),o+=t);return o}var pe=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=pe(e[o]))&&(t&&(t+=" "),t+=a);return t};function Ve(e,...a){let t,o,d,u=r;function r(i){let m=a.reduce((L,I)=>I(L),e());return t=He(m),o=t.cache.get,d=t.cache.set,u=l,l(i)}function l(i){let m=o(i);if(m)return m;let L=Ee(i,t);return d(i,L),L}return function(){return u(ze.apply(null,arguments))}}var f=e=>{let a=t=>t[e]||[];return a.isThemeGetter=true,a},me=/^\[(?:([a-z-]+):)?(.+)\]$/i,We=/^\d+\/\d+$/,Xe=new Set(["px","full","screen"]),Ne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ke=/\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$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Je=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>q(e)||Xe.has(e)||We.test(e),y=e=>v(e,"length",oa),q=e=>!!e&&!Number.isNaN(Number(e)),j=e=>v(e,"number",q),H=e=>!!e&&Number.isInteger(Number(e)),_e=e=>e.endsWith("%")&&q(e.slice(0,-1)),s=e=>me.test(e),D=e=>Ne.test(e),je=new Set(["length","size","percentage"]),Ye=e=>v(e,je,Le),$e=e=>v(e,"position",Le),ea=new Set(["image","url"]),aa=e=>v(e,ea,ua),ta=e=>v(e,"",la),G=()=>true,v=(e,a,t)=>{let o=me.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):false},oa=e=>Ke.test(e)&&!Ze.test(e),Le=()=>false,la=e=>Je.test(e),ua=e=>Qe.test(e);var da=()=>{let e=f("colors"),a=f("spacing"),t=f("blur"),o=f("brightness"),d=f("borderColor"),u=f("borderRadius"),r=f("borderSpacing"),l=f("borderWidth"),i=f("contrast"),m=f("grayscale"),L=f("hueRotate"),I=f("invert"),C=f("gap"),P=f("gradientColorStops"),g=f("gradientColorStopPositions"),n=f("inset"),p=f("margin"),x=f("opacity"),h=f("padding"),S=f("saturate"),w=f("scale"),F=f("sepia"),U=f("skew"),W=f("space"),b=f("translate"),Z=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",s,a],c=()=>[s,a],oe=()=>["",B,y],X=()=>["auto",q,s],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",s],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[q,s];return {cacheSize:500,separator:":",theme:{colors:[G],spacing:[B,y],blur:["none","",D,s],brightness:A(),borderColor:[e],borderRadius:["none","","full",D,s],borderSpacing:c(),borderWidth:oe(),contrast:A(),grayscale:O(),hueRotate:A(),invert:O(),gap:c(),gradientColorStops:[e],gradientColorStopPositions:[_e,y],inset:Q(),margin:Q(),opacity:A(),padding:c(),saturate:A(),scale:A(),sepia:O(),skew:A(),space:c(),translate:c()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[D]}],"break-after":[{"break-after":de()}],"break-before":[{"break-before":de()}],"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"],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:[...le(),s]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[n]}],"inset-x":[{"inset-x":[n]}],"inset-y":[{"inset-y":[n]}],start:[{start:[n]}],end:[{end:[n]}],top:[{top:[n]}],right:[{right:[n]}],bottom:[{bottom:[n]}],left:[{left:[n]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,s]}],basis:[{basis:Q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",s]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",H,s]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",H,s]},s]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[H,s]},s]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",s]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",s]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[W]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[W]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",s,a]}],"min-w":[{"min-w":[s,a,"min","max","fit"]}],"max-w":[{"max-w":[s,a,"none","full","min","max","fit","prose",{screen:[D]},D]}],h:[{h:[s,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[s,a,"auto","min","max","fit"]}],"font-size":[{text:["base",D,y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j]}],"font-family":[{font:[G]}],"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:["tighter","tight","normal","wide","wider","widest",s]}],"line-clamp":[{"line-clamp":["none",q,j]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,s]}],"list-image":[{"list-image":["none",s]}],"list-style-type":[{list:["none","disc","decimal",s]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,y]}],"underline-offset":[{"underline-offset":["auto",B,s]}],"text-decoration-color":[{decoration:[e]}],"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",s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),$e]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ye]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:N()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[B,s]}],"outline-w":[{outline:[B,y]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[B,y]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",D,ta]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...ue(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ue()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",D,s]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[L]}],invert:[{invert:[I]}],saturate:[{saturate:[S]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-y":[{"border-spacing-y":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[H,s]}],"translate-x":[{"translate-x":[b]}],"translate-y":[{"translate-y":[b]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",s]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",s]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],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",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,y,j]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}};var xe=Ve(da);function k(...e){return xe(se(e))}var Ie=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ra=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),ee=e=>{let a=ra(e);return a.charAt(0).toUpperCase()+a.slice(1)},K=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim(),Ce=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var ge={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Se=ae.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:d="",children:u,iconNode:r,...l},i)=>ae.createElement("svg",{ref:i,...ge,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:K("lucide",d),...!u&&!Ce(l)&&{"aria-hidden":"true"},...l},[...r.map(([m,L])=>ae.createElement(m,L)),...Array.isArray(u)?u:[u]]));var R=(e,a)=>{let t=ae.forwardRef(({className:o,...d},u)=>ae.createElement(Se,{ref:u,iconNode:a,className:K(`lucide-${Ie(ee(e))}`,`lucide-${e}`,o),...d}));return t.displayName=ee(e),t};var ca=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],E=R("chevron-down",ca);var na=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],T=R("circle-alert",na);var pa=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],z=R("search",pa);var ma=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],V=R("x",ma);var we=V;var ke=E;var Pe=z,be=T;var La=({error:e,helperText:a,disabled:t})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:a&&jsxRuntime.jsx("span",{className:k("mx-4 mt-1 text-start text-xs leading-[130%] text-neutral-600",t&&"text-neutral-400",e&&"text-error-700"),children:a})}),Be=La;var Me=ae.forwardRef(({label:e,placeholder:a,error:t,selectMode:o=false,showClearButton:d=true,helperText:u,className:r,size:l="md",onClean:i,onChange:m,startIcon:L,endIcon:I,startComponent:C,fixedTopLabel:P,startText:g,disabled:n,...p},x)=>{let h=ae.useId(),S=ae.useRef(null),[w,F]=ae.useState(false),U=!S.current?.value,W=ae.useCallback(()=>{if(S.current&&!n){S.current.value="",F(false),i?.();let b={target:S.current,currentTarget:S.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};m?.(b);}},[n,m,S.current]);return ae.useEffect(()=>{S.current&&F(S.current.value.length>0);},[]),jsxRuntime.jsxs("div",{className:k("flex flex-col",r),children:[jsxRuntime.jsxs("div",{className:k("relative flex flex-col rounded-lg bg-neutral-50",l==="lg"&&"h-12",l==="md"&&"h-10",l==="sm"&&"h-8"),children:[jsxRuntime.jsx("input",{id:h,disabled:n,className:k("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500/100 caret-neutral-900 outline-0 ring-1 ring-inset ring-neutral-400 transition-all ease-linear focus:text-neutral-900 focus:placeholder-neutral-500 focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-[2px] focus:ring-primary-800 disabled:bg-neutral-80 disabled:text-neutral-400 disabled:ring-neutral-100 [&:not(:placeholder-shown)]:z-10",e&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:text-neutral-900 hover:ring-error-700 focus:ring-error-700",l==="lg"&&"text-base",l==="md"&&"text-sm",l==="sm"&&"text-sm",L?l==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":C?"pl-[6.5rem]":"pl-4",g&&"pl-[1.94rem]",I?l==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:a??"",ref:b=>{typeof x=="function"?x(b):x&&(x.current=b),S.current=b;},onChange:b=>{F(b.target.value.length>0),m?.(b);},...p}),C&&ae__default.default.cloneElement(C,{className:k("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!w&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),L&&ae__default.default.cloneElement(L,{size:18,className:k("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!w&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),g&&jsxRuntime.jsx("div",{className:"flex h-full items-center pl-3",children:jsxRuntime.jsx("p",{className:k("text-neutral-700",t&&"text-error-700"),children:g})}),e&&jsxRuntime.jsx(reactLabel.Label,{htmlFor:h,className:k("absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-hover:text-primary-800 peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs peer-focus:text-primary-800 peer-[:placeholder-shown]:peer-[:not(:focus)]:peer-[:disabled]:bg-neutral-80",!t&&"peer-[:not(:focus)]:peer-[:not(:disabled)]:text-neutral-400 peer-[:not(:placeholder-shown)]:peer-[:not(:focus)]:peer-[:not(:disabled)]:text-neutral-900",w&&"peer-disabled:bg-neutral-80",l==="lg"?"text-base placeholder-shown:text-xs peer-placeholder-shown:top-3":l==="md"?"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-2.5":"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-1.5",!U&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",L?l==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":C?"peer-placeholder-shown:ml-[6rem]":"ml-3",P&&"!-top-[0.375rem] z-20 ml-3 !text-xs !transition-none",g&&"peer-placeholder-shown:ml-[1.94rem]"),children:e}),(d&&(!U||w)||t)&&jsxRuntime.jsxs("div",{className:k("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!n&&"flex",o||I?l==="lg"?"right-[2.81rem]":l==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsxRuntime.jsx(be,{size:l==="sm"?14:18,className:"text-error-700"}),!t&&jsxRuntime.jsx(we,{onMouseDown:W,size:l==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),I&&ae__default.default.cloneElement(I,{size:l==="sm"?14:18,className:k("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!w&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),o&&jsxRuntime.jsx("div",{className:k("peer-hover:text-neutral absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-focus:text-primary-900 peer-disabled:text-neutral-400"),children:jsxRuntime.jsx(ke,{className:l==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsxRuntime.jsx(Be,{helperText:u,error:t,disabled:n})]})});var yt=({size:e="md",...a})=>jsxRuntime.jsx(Me,{endIcon:jsxRuntime.jsx(Pe,{}),type:"search",...a,size:e});/*! Bundled license information:
|
|
1
|
+
'use strict';var te=require('react'),reactLabel=require('@radix-ui/react-label'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var te__default=/*#__PURE__*/_interopDefault(te);function re(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(a=0;a<d;a++)e[a]&&(t=re(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function se(){for(var e,a,t=0,o="",d=arguments.length;t<d;t++)(e=arguments[t])&&(a=re(e))&&(o&&(o+=" "),o+=a);return o}var ee="-",ye=e=>{let a=Re(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:r=>{let l=r.split(ee);return l[0]===""&&l.length!==1&&l.shift(),ce(l,a)||De(r)},getConflictingClassGroupIds:(r,l)=>{let i=t[r]||[];return l&&o[r]?[...i,...o[r]]:i}}},ce=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),d=o?ce(e.slice(1),o):void 0;if(d)return d;if(a.validators.length===0)return;let u=e.join(ee);return a.validators.find(({validator:r})=>r(u))?.classGroupId},fe=/^\[(.+)\]$/,De=e=>{if(fe.test(e)){let a=fe.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Re=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return qe(Object.entries(e.classGroups),t).forEach(([u,r])=>{$(r,o,u,a);}),o},$=(e,a,t,o)=>{e.forEach(d=>{if(typeof d=="string"){let u=d===""?a:ie(a,d);u.classGroupId=t;return}if(typeof d=="function"){if(Te(d)){$(d(o),a,t,o);return}a.validators.push({validator:d,classGroupId:t});return}Object.entries(d).forEach(([u,r])=>{$(r,ie(a,u),t,o);});});},ie=(e,a)=>{let t=e;return a.split(ee).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},Te=e=>e.isThemeGetter,qe=(e,a)=>a?e.map(([t,o])=>{let d=o.map(u=>typeof u=="string"?a+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([r,l])=>[a+r,l])):u);return [t,d]}):e,ve=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,d=(u,r)=>{t.set(u,r),a++,a>e&&(a=0,o=t,t=new Map);};return {get(u){let r=t.get(u);if(r!==void 0)return r;if((r=o.get(u))!==void 0)return d(u,r),r},set(u,r){t.has(u)?t.set(u,r):d(u,r);}}},ne="!",Ue=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,d=a[0],u=a.length,r=l=>{let i=[],m=0,L=0,g;for(let c=0;c<l.length;c++){let x=l[c];if(m===0){if(x===d&&(o||l.slice(c,c+u)===a)){i.push(l.slice(L,c)),L=c+u;continue}if(x==="/"){g=c;continue}}x==="["?m++:x==="]"&&m--;}let h=i.length===0?l:l.substring(L),P=h.startsWith(ne),S=P?h.substring(1):h,p=g&&g>L?g-L:void 0;return {modifiers:i,hasImportantModifier:P,baseClassName:S,maybePostfixModifierPosition:p}};return t?l=>t({className:l,parseClassName:r}):r},Oe=e=>{if(e.length<=1)return e;let a=[],t=[];return e.forEach(o=>{o[0]==="["?(a.push(...t.sort(),o),t=[]):t.push(o);}),a.push(...t.sort()),a},He=e=>({cache:ve(e.cacheSize),parseClassName:Ue(e),...ye(e)}),Ge=/\s+/,Ee=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:d}=a,u=[],r=e.trim().split(Ge),l="";for(let i=r.length-1;i>=0;i-=1){let m=r[i],{modifiers:L,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:P}=t(m),S=!!P,p=o(S?h.substring(0,P):h);if(!p){if(!S){l=m+(l.length>0?" "+l:l);continue}if(p=o(h),!p){l=m+(l.length>0?" "+l:l);continue}S=false;}let c=Oe(L).join(":"),x=g?c+ne:c,I=x+p;if(u.includes(I))continue;u.push(I);let M=d(p,S);for(let C=0;C<M.length;++C){let b=M[C];u.push(x+b);}l=m+(l.length>0?" "+l:l);}return l};function ze(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=pe(a))&&(o&&(o+=" "),o+=t);return o}var pe=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=pe(e[o]))&&(t&&(t+=" "),t+=a);return t};function Ve(e,...a){let t,o,d,u=r;function r(i){let m=a.reduce((L,g)=>g(L),e());return t=He(m),o=t.cache.get,d=t.cache.set,u=l,l(i)}function l(i){let m=o(i);if(m)return m;let L=Ee(i,t);return d(i,L),L}return function(){return u(ze.apply(null,arguments))}}var f=e=>{let a=t=>t[e]||[];return a.isThemeGetter=true,a},me=/^\[(?:([a-z-]+):)?(.+)\]$/i,We=/^\d+\/\d+$/,Xe=new Set(["px","full","screen"]),Ne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ke=/\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$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Je=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>v(e)||Xe.has(e)||We.test(e),F=e=>U(e,"length",oa),v=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>U(e,"number",v),G=e=>!!e&&Number.isInteger(Number(e)),_e=e=>e.endsWith("%")&&v(e.slice(0,-1)),s=e=>me.test(e),y=e=>Ne.test(e),je=new Set(["length","size","percentage"]),Ye=e=>U(e,je,Le),$e=e=>U(e,"position",Le),ea=new Set(["image","url"]),aa=e=>U(e,ea,ua),ta=e=>U(e,"",la),E=()=>true,U=(e,a,t)=>{let o=me.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):false},oa=e=>Ke.test(e)&&!Ze.test(e),Le=()=>false,la=e=>Je.test(e),ua=e=>Qe.test(e);var da=()=>{let e=f("colors"),a=f("spacing"),t=f("blur"),o=f("brightness"),d=f("borderColor"),u=f("borderRadius"),r=f("borderSpacing"),l=f("borderWidth"),i=f("contrast"),m=f("grayscale"),L=f("hueRotate"),g=f("invert"),h=f("gap"),P=f("gradientColorStops"),S=f("gradientColorStopPositions"),p=f("inset"),c=f("margin"),x=f("opacity"),I=f("padding"),M=f("saturate"),C=f("scale"),b=f("sepia"),q=f("skew"),O=f("space"),X=f("translate"),k=()=>["auto","contain","none"],Q=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",s,a],n=()=>[s,a],oe=()=>["",B,F],N=()=>["auto",v,s],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",s],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[v,s];return {cacheSize:500,separator:":",theme:{colors:[E],spacing:[B,F],blur:["none","",y,s],brightness:A(),borderColor:[e],borderRadius:["none","","full",y,s],borderSpacing:n(),borderWidth:oe(),contrast:A(),grayscale:H(),hueRotate:A(),invert:H(),gap:n(),gradientColorStops:[e],gradientColorStopPositions:[_e,F],inset:_(),margin:_(),opacity:A(),padding:n(),saturate:A(),scale:A(),sepia:H(),skew:A(),space:n(),translate:n()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[y]}],"break-after":[{"break-after":de()}],"break-before":[{"break-before":de()}],"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"],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:[...le(),s]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,s]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",s]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",G,s]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",G,s]},s]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[G,s]},s]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",s]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",s]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[c]}],mx:[{mx:[c]}],my:[{my:[c]}],ms:[{ms:[c]}],me:[{me:[c]}],mt:[{mt:[c]}],mr:[{mr:[c]}],mb:[{mb:[c]}],ml:[{ml:[c]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",s,a]}],"min-w":[{"min-w":[s,a,"min","max","fit"]}],"max-w":[{"max-w":[s,a,"none","full","min","max","fit","prose",{screen:[y]},y]}],h:[{h:[s,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[s,a,"auto","min","max","fit"]}],"font-size":[{text:["base",y,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[E]}],"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:["tighter","tight","normal","wide","wider","widest",s]}],"line-clamp":[{"line-clamp":["none",v,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,s]}],"list-image":[{"list-image":["none",s]}],"list-style-type":[{list:["none","disc","decimal",s]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,F]}],"underline-offset":[{"underline-offset":["auto",B,s]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:n()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),$e]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ye]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:K()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[B,s]}],"outline-w":[{outline:[B,F]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[B,F]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",y,ta]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...ue(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ue()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",y,s]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[L]}],invert:[{invert:[g]}],saturate:[{saturate:[M]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-y":[{"border-spacing-y":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[G,s]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",s]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",s]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":n()}],"scroll-mx":[{"scroll-mx":n()}],"scroll-my":[{"scroll-my":n()}],"scroll-ms":[{"scroll-ms":n()}],"scroll-me":[{"scroll-me":n()}],"scroll-mt":[{"scroll-mt":n()}],"scroll-mr":[{"scroll-mr":n()}],"scroll-mb":[{"scroll-mb":n()}],"scroll-ml":[{"scroll-ml":n()}],"scroll-p":[{"scroll-p":n()}],"scroll-px":[{"scroll-px":n()}],"scroll-py":[{"scroll-py":n()}],"scroll-ps":[{"scroll-ps":n()}],"scroll-pe":[{"scroll-pe":n()}],"scroll-pt":[{"scroll-pt":n()}],"scroll-pr":[{"scroll-pr":n()}],"scroll-pb":[{"scroll-pb":n()}],"scroll-pl":[{"scroll-pl":n()}],"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",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,F,Y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}};var xe=Ve(da);function w(...e){return xe(se(e))}var Ie=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ra=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),ae=e=>{let a=ra(e);return a.charAt(0).toUpperCase()+a.slice(1)},Z=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim(),Ce=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var ge={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Se=te.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:d="",children:u,iconNode:r,...l},i)=>te.createElement("svg",{ref:i,...ge,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Z("lucide",d),...!u&&!Ce(l)&&{"aria-hidden":"true"},...l},[...r.map(([m,L])=>te.createElement(m,L)),...Array.isArray(u)?u:[u]]));var D=(e,a)=>{let t=te.forwardRef(({className:o,...d},u)=>te.createElement(Se,{ref:u,iconNode:a,className:Z(`lucide-${Ie(ae(e))}`,`lucide-${e}`,o),...d}));return t.displayName=ae(e),t};var ca=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],z=D("chevron-down",ca);var na=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],R=D("circle-alert",na);var pa=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],V=D("search",pa);var ma=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],W=D("x",ma);var we=W;var ke=z;var Pe=V,be=R;var La=({error:e,helperText:a,disabled:t})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:a&&jsxRuntime.jsx("span",{className:w("mx-4 mt-1 text-start text-xs leading-[130%] text-neutral-600",t&&"text-neutral-400",e&&"text-error-700"),children:a})}),Be=La;var Me=te.forwardRef(({label:e,placeholder:a,error:t,selectMode:o=false,showClearButton:d=true,helperText:u,className:r,size:l="md",onClean:i,onChange:m,startIcon:L,endIcon:g,startComponent:h,fixedTopLabel:P,startText:S,disabled:p,required:c,...x},I)=>{let M=te.useId(),C=te.useRef(null),[b,q]=te.useState(false),O=!C.current?.value,X=te.useCallback(()=>{if(C.current&&!p){C.current.value="",q(false),i?.();let k={target:C.current,currentTarget:C.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};m?.(k);}},[p,m,C.current]);return te.useEffect(()=>{C.current&&q(C.current.value.length>0);},[]),jsxRuntime.jsxs("div",{className:w("flex flex-col",r),children:[jsxRuntime.jsxs("div",{className:w("relative flex flex-col rounded-lg bg-neutral-50",l==="lg"&&"h-12",l==="md"&&"h-10",l==="sm"&&"h-8"),children:[jsxRuntime.jsx("input",{id:M,disabled:p,required:c,className:w("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500/100 caret-neutral-900 outline-0 ring-1 ring-inset ring-neutral-400 transition-all ease-linear focus:text-neutral-900 focus:placeholder-neutral-500 focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-[2px] focus:ring-primary-800 disabled:bg-neutral-80 disabled:text-neutral-400 disabled:ring-neutral-100 [&:not(:placeholder-shown)]:z-10",e&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:text-neutral-900 hover:ring-error-700 focus:ring-error-700",l==="lg"&&"text-base",l==="md"&&"text-sm",l==="sm"&&"text-sm",L?l==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":h?"pl-[6.5rem]":"pl-4",S&&"pl-[1.94rem]",g?l==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:a??"",ref:k=>{typeof I=="function"?I(k):I&&(I.current=k),C.current=k;},onChange:k=>{q(k.target.value.length>0),m?.(k);},...x}),h&&te__default.default.cloneElement(h,{className:w("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!b&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),L&&te__default.default.cloneElement(L,{size:18,className:w("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!b&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),S&&jsxRuntime.jsx("div",{className:"flex h-full items-center pl-3",children:jsxRuntime.jsx("p",{className:w("text-neutral-700",t&&"text-error-700"),children:S})}),e&&jsxRuntime.jsxs(reactLabel.Label,{htmlFor:M,className:w("absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-hover:text-primary-800 peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs peer-focus:text-primary-800 peer-[:placeholder-shown]:peer-[:not(:focus)]:peer-[:disabled]:bg-neutral-80",!t&&"peer-[:not(:focus)]:peer-[:not(:disabled)]:text-neutral-400 peer-[:not(:placeholder-shown)]:peer-[:not(:focus)]:peer-[:not(:disabled)]:text-neutral-900",b&&"peer-disabled:bg-neutral-80",l==="lg"?"text-base placeholder-shown:text-xs peer-placeholder-shown:top-3":l==="md"?"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-2.5":"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-1.5",!O&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",L?l==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":h?"peer-placeholder-shown:ml-[6rem]":"ml-3",P&&"!-top-[0.375rem] z-20 ml-3 !text-xs !transition-none",S&&"peer-placeholder-shown:ml-[1.94rem]"),children:[c&&"*",e]}),(d&&(!O||b)||t)&&jsxRuntime.jsxs("div",{className:w("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!p&&"flex",o||g?l==="lg"?"right-[2.81rem]":l==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsxRuntime.jsx(be,{size:l==="sm"?14:18,className:"text-error-700"}),!t&&jsxRuntime.jsx(we,{onMouseDown:X,size:l==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),g&&te__default.default.cloneElement(g,{size:l==="sm"?14:18,className:w("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!b&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),o&&jsxRuntime.jsx("div",{className:w("peer-hover:text-neutral absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-focus:text-primary-900 peer-disabled:text-neutral-400"),children:jsxRuntime.jsx(ke,{className:l==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsxRuntime.jsx(Be,{helperText:u,error:t,disabled:p})]})});var yt=({size:e="md",...a})=>jsxRuntime.jsx(Me,{endIcon:jsxRuntime.jsx(Pe,{}),type:"search",...a,size:e});/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
lucide-react/dist/esm/defaultAttributes.js:
|
package/dist/search-bar.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SearchBar}from'./chunk-
|
|
1
|
+
export{a as SearchBar}from'./chunk-PJ5ZUPVG.mjs';import'./chunk-AYAULBBH.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-QWBSZY37.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var de=require('react'),y=require('@radix-ui/react-scroll-area'),jsxRuntime=require('react/jsx-runtime'),Ge=require('@radix-ui/react-portal'),reactLabel=require('@radix-ui/react-label');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var de__default=/*#__PURE__*/_interopDefault(de);var y__namespace=/*#__PURE__*/_interopNamespace(y);var Ge__namespace=/*#__PURE__*/_interopNamespace(Ge);function Le(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=Le(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function xe(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=Le(e))&&(o&&(o+=" "),o+=a);return o}var le="-",Ee=e=>{let a=Ve(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:d=>{let l=d.split(le);return l[0]===""&&l.length!==1&&l.shift(),ge(l,a)||ze(d)},getConflictingClassGroupIds:(d,l)=>{let i=t[d]||[];return l&&o[d]?[...i,...o[d]]:i}}},ge=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?ge(e.slice(1),o):void 0;if(r)return r;if(a.validators.length===0)return;let u=e.join(le);return a.validators.find(({validator:d})=>d(u))?.classGroupId},Ie=/^\[(.+)\]$/,ze=e=>{if(Ie.test(e)){let a=Ie.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Ve=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return Ne(Object.entries(e.classGroups),t).forEach(([u,d])=>{oe(d,o,u,a);}),o},oe=(e,a,t,o)=>{e.forEach(r=>{if(typeof r=="string"){let u=r===""?a:Ce(a,r);u.classGroupId=t;return}if(typeof r=="function"){if(We(r)){oe(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([u,d])=>{oe(d,Ce(a,u),t,o);});});},Ce=(e,a)=>{let t=e;return a.split(le).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},We=e=>e.isThemeGetter,Ne=(e,a)=>a?e.map(([t,o])=>{let r=o.map(u=>typeof u=="string"?a+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([d,l])=>[a+d,l])):u);return [t,r]}):e,Xe=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,r=(u,d)=>{t.set(u,d),a++,a>e&&(a=0,o=t,t=new Map);};return {get(u){let d=t.get(u);if(d!==void 0)return d;if((d=o.get(u))!==void 0)return r(u,d),d},set(u,d){t.has(u)?t.set(u,d):r(u,d);}}},he="!",Ke=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],u=a.length,d=l=>{let i=[],c=0,n=0,h;for(let p=0;p<l.length;p++){let m=l[p];if(c===0){if(m===r&&(o||l.slice(p,p+u)===a)){i.push(l.slice(n,p)),n=p+u;continue}if(m==="/"){h=p;continue}}m==="["?c++:m==="]"&&c--;}let w=i.length===0?l:l.substring(n),A=w.startsWith(he),C=A?w.substring(1):w,L=h&&h>n?h-n:void 0;return {modifiers:i,hasImportantModifier:A,baseClassName:C,maybePostfixModifierPosition:L}};return t?l=>t({className:l,parseClassName:d}):d},Ze=e=>{if(e.length<=1)return e;let a=[],t=[];return e.forEach(o=>{o[0]==="["?(a.push(...t.sort(),o),t=[]):t.push(o);}),a.push(...t.sort()),a},Je=e=>({cache:Xe(e.cacheSize),parseClassName:Ke(e),...Ee(e)}),Qe=/\s+/,_e=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,u=[],d=e.trim().split(Qe),l="";for(let i=d.length-1;i>=0;i-=1){let c=d[i],{modifiers:n,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:A}=t(c),C=!!A,L=o(C?w.substring(0,A):w);if(!L){if(!C){l=c+(l.length>0?" "+l:l);continue}if(L=o(w),!L){l=c+(l.length>0?" "+l:l);continue}C=false;}let p=Ze(n).join(":"),m=h?p+he:p,P=m+L;if(u.includes(P))continue;u.push(P);let k=r(L,C);for(let b=0;b<k.length;++b){let B=k[b];u.push(m+B);}l=c+(l.length>0?" "+l:l);}return l};function je(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=Se(a))&&(o&&(o+=" "),o+=t);return o}var Se=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=Se(e[o]))&&(t&&(t+=" "),t+=a);return t};function $e(e,...a){let t,o,r,u=d;function d(i){let c=a.reduce((n,h)=>h(n),e());return t=Je(c),o=t.cache.get,r=t.cache.set,u=l,l(i)}function l(i){let c=o(i);if(c)return c;let n=_e(i,t);return r(i,n),n}return function(){return u(je.apply(null,arguments))}}var x=e=>{let a=t=>t[e]||[];return a.isThemeGetter=true,a},we=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ye=/^\d+\/\d+$/,ea=new Set(["px","full","screen"]),aa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ta=/\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$/,oa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,la=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ua=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=e=>O(e)||ea.has(e)||Ye.test(e),v=e=>H(e,"length",pa),O=e=>!!e&&!Number.isNaN(Number(e)),te=e=>H(e,"number",O),W=e=>!!e&&Number.isInteger(Number(e)),ra=e=>e.endsWith("%")&&O(e.slice(0,-1)),s=e=>we.test(e),T=e=>aa.test(e),da=new Set(["length","size","percentage"]),sa=e=>H(e,da,Pe),fa=e=>H(e,"position",Pe),ia=new Set(["image","url"]),ca=e=>H(e,ia,La),na=e=>H(e,"",ma),N=()=>true,H=(e,a,t)=>{let o=we.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):false},pa=e=>ta.test(e)&&!oa.test(e),Pe=()=>false,ma=e=>la.test(e),La=e=>ua.test(e);var xa=()=>{let e=x("colors"),a=x("spacing"),t=x("blur"),o=x("brightness"),r=x("borderColor"),u=x("borderRadius"),d=x("borderSpacing"),l=x("borderWidth"),i=x("contrast"),c=x("grayscale"),n=x("hueRotate"),h=x("invert"),w=x("gap"),A=x("gradientColorStops"),C=x("gradientColorStopPositions"),L=x("inset"),p=x("margin"),m=x("opacity"),P=x("padding"),k=x("saturate"),b=x("scale"),B=x("sepia"),R=x("skew"),f=x("space"),g=x("translate"),U=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",s,a],I=()=>[s,a],ce=()=>["",F,v],j=()=>["auto",O,s],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",s],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[O,s];return {cacheSize:500,separator:":",theme:{colors:[N],spacing:[F,v],blur:["none","",T,s],brightness:M(),borderColor:[e],borderRadius:["none","","full",T,s],borderSpacing:I(),borderWidth:ce(),contrast:M(),grayscale:V(),hueRotate:M(),invert:V(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[ra,v],inset:z(),margin:z(),opacity:M(),padding:I(),saturate:M(),scale:M(),sepia:V(),skew:M(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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"],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:[...ne(),s]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,s]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",s]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",W,s]}],"grid-cols":[{"grid-cols":[N]}],"col-start-end":[{col:["auto",{span:["full",W,s]},s]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[N]}],"row-start-end":[{row:["auto",{span:[W,s]},s]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",s]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",s]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[f]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[f]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",s,a]}],"min-w":[{"min-w":[s,a,"min","max","fit"]}],"max-w":[{"max-w":[s,a,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[s,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[s,a,"auto","min","max","fit"]}],"font-size":[{text:["base",T,v]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",te]}],"font-family":[{font:[N]}],"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:["tighter","tight","normal","wide","wider","widest",s]}],"line-clamp":[{"line-clamp":["none",O,te]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,s]}],"list-image":[{"list-image":["none",s]}],"list-style-type":[{list:["none","disc","decimal",s]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",F,v]}],"underline-offset":[{"underline-offset":["auto",F,s]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),fa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sa]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ca]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:$()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[F,s]}],"outline-w":[{outline:[F,v]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[F,v]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",T,na]}],"shadow-color":[{shadow:[N]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",T,s]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[n]}],invert:[{invert:[h]}],saturate:[{saturate:[k]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[W,s]}],"translate-x":[{"translate-x":[g]}],"translate-y":[{"translate-y":[g]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",s]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",s]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[F,v,te]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}};var ke=$e(xa);function S(...e){return ke(xe(e))}var ue=de.forwardRef(({className:e,children:a,onScrollEnd:t,isInfiniteScroll:o=false,viewPortClassName:r,viewPortStyle:u,...d},l)=>{let i=de.useRef(null);return de.useEffect(()=>{if(!o)return;let c=()=>{if(i.current){let{scrollTop:h,scrollHeight:w,clientHeight:A}=i.current;h+A>=w-10&&t?.();}},n=i.current;return n?.addEventListener("scroll",c),()=>{n?.removeEventListener("scroll",c);}},[t,o]),de.useImperativeHandle(l,()=>i.current,[i]),jsxRuntime.jsxs(y__namespace.Root,{className:S("relative overflow-hidden",e),...d,children:[jsxRuntime.jsx(y__namespace.Viewport,{ref:i,className:S("h-full w-full rounded-[inherit] [&>div]:!flex [&>div]:h-full [&>div]:flex-col",r),style:u,children:a}),jsxRuntime.jsx(Ae,{forceMount:o},o?i.current?.scrollHeight:1),jsxRuntime.jsx(y__namespace.Corner,{})]})});ue.displayName=y__namespace.Root.displayName;var Ae=de.forwardRef(({className:e,orientation:a="vertical",...t},o)=>jsxRuntime.jsx(y__namespace.ScrollAreaScrollbar,{ref:o,orientation:a,className:S("flex touch-none select-none bg-neutral-100 transition-colors",a==="vertical"&&"h-full w-4 py-2",a==="horizontal"&&"h-4 flex-col px-2",e),...t,children:jsxRuntime.jsx(y__namespace.ScrollAreaThumb,{className:S("relative flex-1 rounded bg-primary-500",a==="vertical"&&"mx-1 w-2",a==="horizontal"&&"my-1 h-2")})}));Ae.displayName=y__namespace.ScrollAreaScrollbar.displayName;var ye=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),re=e=>{let a=Sa(e);return a.charAt(0).toUpperCase()+a.slice(1)},Y=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim(),Be=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var De=de.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:u,iconNode:d,...l},i)=>de.createElement("svg",{ref:i,...Me,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Y("lucide",r),...!u&&!Be(l)&&{"aria-hidden":"true"},...l},[...d.map(([c,n])=>de.createElement(c,n)),...Array.isArray(u)?u:[u]]));var G=(e,a)=>{let t=de.forwardRef(({className:o,...r},u)=>de.createElement(De,{ref:u,iconNode:a,className:Y(`lucide-${ye(re(e))}`,`lucide-${e}`,o),...r}));return t.displayName=re(e),t};var ba=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],K=G("chevron-down",ba);var Aa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],q=G("circle-alert",Aa);var ya=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Z=G("x",ya);var Re=Z;var ve=K;var Te=q;var Ba=({error:e,helperText:a,disabled:t})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:a&&jsxRuntime.jsx("span",{className:S("mx-4 mt-1 text-start text-xs leading-[130%] text-neutral-600",t&&"text-neutral-400",e&&"text-error-700"),children:a})}),Ue=Ba;var Oe=de.forwardRef(({label:e,placeholder:a,error:t,selectMode:o=false,showClearButton:r=true,helperText:u,className:d,size:l="md",onClean:i,onChange:c,startIcon:n,endIcon:h,startComponent:w,fixedTopLabel:A,startText:C,disabled:L,...p},m)=>{let P=de.useId(),k=de.useRef(null),[b,B]=de.useState(false),R=!k.current?.value,f=de.useCallback(()=>{if(k.current&&!L){k.current.value="",B(false),i?.();let g={target:k.current,currentTarget:k.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};c?.(g);}},[L,c,k.current]);return de.useEffect(()=>{k.current&&B(k.current.value.length>0);},[]),jsxRuntime.jsxs("div",{className:S("flex flex-col",d),children:[jsxRuntime.jsxs("div",{className:S("relative flex flex-col rounded-lg bg-neutral-50",l==="lg"&&"h-12",l==="md"&&"h-10",l==="sm"&&"h-8"),children:[jsxRuntime.jsx("input",{id:P,disabled:L,className:S("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500/100 caret-neutral-900 outline-0 ring-1 ring-inset ring-neutral-400 transition-all ease-linear focus:text-neutral-900 focus:placeholder-neutral-500 focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-[2px] focus:ring-primary-800 disabled:bg-neutral-80 disabled:text-neutral-400 disabled:ring-neutral-100 [&:not(:placeholder-shown)]:z-10",e&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:text-neutral-900 hover:ring-error-700 focus:ring-error-700",l==="lg"&&"text-base",l==="md"&&"text-sm",l==="sm"&&"text-sm",n?l==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":w?"pl-[6.5rem]":"pl-4",C&&"pl-[1.94rem]",h?l==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:a??"",ref:g=>{typeof m=="function"?m(g):m&&(m.current=g),k.current=g;},onChange:g=>{B(g.target.value.length>0),c?.(g);},...p}),w&&de__default.default.cloneElement(w,{className:S("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!b&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),n&&de__default.default.cloneElement(n,{size:18,className:S("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!b&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),C&&jsxRuntime.jsx("div",{className:"flex h-full items-center pl-3",children:jsxRuntime.jsx("p",{className:S("text-neutral-700",t&&"text-error-700"),children:C})}),e&&jsxRuntime.jsx(reactLabel.Label,{htmlFor:P,className:S("absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-hover:text-primary-800 peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs peer-focus:text-primary-800 peer-[:placeholder-shown]:peer-[:not(:focus)]:peer-[:disabled]:bg-neutral-80",!t&&"peer-[:not(:focus)]:peer-[:not(:disabled)]:text-neutral-400 peer-[:not(:placeholder-shown)]:peer-[:not(:focus)]:peer-[:not(:disabled)]:text-neutral-900",b&&"peer-disabled:bg-neutral-80",l==="lg"?"text-base placeholder-shown:text-xs peer-placeholder-shown:top-3":l==="md"?"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-2.5":"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-1.5",!R&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",n?l==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":w?"peer-placeholder-shown:ml-[6rem]":"ml-3",A&&"!-top-[0.375rem] z-20 ml-3 !text-xs !transition-none",C&&"peer-placeholder-shown:ml-[1.94rem]"),children:e}),(r&&(!R||b)||t)&&jsxRuntime.jsxs("div",{className:S("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!L&&"flex",o||h?l==="lg"?"right-[2.81rem]":l==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsxRuntime.jsx(Te,{size:l==="sm"?14:18,className:"text-error-700"}),!t&&jsxRuntime.jsx(Re,{onMouseDown:f,size:l==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),h&&de__default.default.cloneElement(h,{size:l==="sm"?14:18,className:S("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!b&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),o&&jsxRuntime.jsx("div",{className:S("peer-hover:text-neutral absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-focus:text-primary-900 peer-disabled:text-neutral-400"),children:jsxRuntime.jsx(ve,{className:l==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsxRuntime.jsx(Ue,{helperText:u,error:t,disabled:L})]})});var J=56,Q=6,Yt=({options:e,noResults:a,selectedOption:t,onSelect:o,onChange:r,onClick:u,className:d,...l})=>{let i=de.useId(),c=de.useRef(null),n=de.useRef(null),h=de.useRef(null),[w,A]=de.useState("bottom"),[C,L]=de.useState(),[p,m]=de.useState(-1),[P,k]=de.useState(t??null),b=f=>{c.current.style.display="none",n.current.value=f.label,k(f),o?.(f);},B=f=>{if(f.key==="ArrowDown"){if(p===e.length-1)return;m(g=>g+1),c.current.style.display="flex",R();}else if(f.key==="ArrowUp"){if(p===0)return;m(g=>g-1),R();}else f.key==="Enter"&&(b(e[p]),m(-1));},R=()=>{let f=J*Q;h.current.scroll({top:(p+2)*J<=f?0:J*(p+2)-f,behavior:"smooth"});};return de.useEffect(()=>{if(!n.current)return;let f=()=>{if(!n.current)return;let g=J*(e.length<Q?e.length:Q)+16,U=n.current.getBoundingClientRect();L(U);let E=window.innerHeight-U.bottom>g,z=U.top>g;A(E?"bottom":z?"top":"bottom");};return f(),n.current.addEventListener("mousedown",f),window.addEventListener("scroll",f,true),window.addEventListener("resize",f),()=>{n.current?.removeEventListener("mousedown",f),window.removeEventListener("scroll",f,true),window.removeEventListener("resize",f);}},[n.current]),de.useEffect(()=>{function f(g){c.current&&!c.current.contains(g.target)&&(c.current.style.display="none",m(-1));}return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f);}},[c.current]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Oe,{className:S("w-full !cursor-pointer",d),readOnly:true,ref:n,autoComplete:"off",list:"",selectMode:true,value:P?.label,showClearButton:false,onClick:f=>{c.current.style.display="flex",u?.(f);},onChange:f=>{m(-1),k(null),r?.(f);},onKeyDown:B,...l}),jsxRuntime.jsx(Ge__namespace.Root,{asChild:true,children:jsxRuntime.jsx("ul",{ref:c,className:"pointer-events-auto absolute z-[10000] hidden w-full",style:C?{width:`${C.width}px`,left:C.left,top:w==="bottom"?`${C.height+C.top+window.scrollY}px`:window.scrollY+C.top-(e.length<Q?e.length:Q)*J-16}:void 0,children:jsxRuntime.jsxs(ue,{className:"elevation-8 my-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",ref:h,children:[e.length===0&&jsxRuntime.jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col items-center justify-center rounded-lg bg-neutral-50 px-8 py-6",children:[de__default.default.cloneElement(a.icon,{className:"mb-2 h-8 w-8 text-neutral-300"}),jsxRuntime.jsx("p",{className:"text-center text-sm leading-[120%] text-neutral-500",children:a.message})]}),e.map((f,g)=>jsxRuntime.jsx("li",{onClick:()=>{f.disabled||b(f);},className:S("w-full flex-shrink-0 py-4 pl-4 pr-6 text-left",P?.value===f.value&&"bg-primary-200",p===g&&!f.disabled&&"bg-primary-200",f.disabled?"cursor-not-allowed text-neutral-400":"cursor-pointer hover:bg-primary-100"),children:f.label},`select-option-${i}-${f.key??f.value}`))]})})})]})};/*! Bundled license information:
|
|
1
|
+
'use strict';var se=require('react'),B=require('@radix-ui/react-scroll-area'),jsxRuntime=require('react/jsx-runtime'),Ge=require('@radix-ui/react-portal'),reactLabel=require('@radix-ui/react-label');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var se__default=/*#__PURE__*/_interopDefault(se);var B__namespace=/*#__PURE__*/_interopNamespace(B);var Ge__namespace=/*#__PURE__*/_interopNamespace(Ge);function Le(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=Le(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function xe(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=Le(e))&&(o&&(o+=" "),o+=a);return o}var ue="-",Ee=e=>{let a=Ve(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:d=>{let l=d.split(ue);return l[0]===""&&l.length!==1&&l.shift(),ge(l,a)||ze(d)},getConflictingClassGroupIds:(d,l)=>{let i=t[d]||[];return l&&o[d]?[...i,...o[d]]:i}}},ge=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?ge(e.slice(1),o):void 0;if(r)return r;if(a.validators.length===0)return;let u=e.join(ue);return a.validators.find(({validator:d})=>d(u))?.classGroupId},Ie=/^\[(.+)\]$/,ze=e=>{if(Ie.test(e)){let a=Ie.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Ve=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return Ne(Object.entries(e.classGroups),t).forEach(([u,d])=>{le(d,o,u,a);}),o},le=(e,a,t,o)=>{e.forEach(r=>{if(typeof r=="string"){let u=r===""?a:Ce(a,r);u.classGroupId=t;return}if(typeof r=="function"){if(We(r)){le(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([u,d])=>{le(d,Ce(a,u),t,o);});});},Ce=(e,a)=>{let t=e;return a.split(ue).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},We=e=>e.isThemeGetter,Ne=(e,a)=>a?e.map(([t,o])=>{let r=o.map(u=>typeof u=="string"?a+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([d,l])=>[a+d,l])):u);return [t,r]}):e,Xe=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,r=(u,d)=>{t.set(u,d),a++,a>e&&(a=0,o=t,t=new Map);};return {get(u){let d=t.get(u);if(d!==void 0)return d;if((d=o.get(u))!==void 0)return r(u,d),d},set(u,d){t.has(u)?t.set(u,d):r(u,d);}}},he="!",Ke=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],u=a.length,d=l=>{let i=[],c=0,n=0,g;for(let p=0;p<l.length;p++){let x=l[p];if(c===0){if(x===r&&(o||l.slice(p,p+u)===a)){i.push(l.slice(n,p)),n=p+u;continue}if(x==="/"){g=p;continue}}x==="["?c++:x==="]"&&c--;}let S=i.length===0?l:l.substring(n),b=S.startsWith(he),C=b?S.substring(1):S,m=g&&g>n?g-n:void 0;return {modifiers:i,hasImportantModifier:b,baseClassName:C,maybePostfixModifierPosition:m}};return t?l=>t({className:l,parseClassName:d}):d},Ze=e=>{if(e.length<=1)return e;let a=[],t=[];return e.forEach(o=>{o[0]==="["?(a.push(...t.sort(),o),t=[]):t.push(o);}),a.push(...t.sort()),a},Je=e=>({cache:Xe(e.cacheSize),parseClassName:Ke(e),...Ee(e)}),Qe=/\s+/,_e=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,u=[],d=e.trim().split(Qe),l="";for(let i=d.length-1;i>=0;i-=1){let c=d[i],{modifiers:n,hasImportantModifier:g,baseClassName:S,maybePostfixModifierPosition:b}=t(c),C=!!b,m=o(C?S.substring(0,b):S);if(!m){if(!C){l=c+(l.length>0?" "+l:l);continue}if(m=o(S),!m){l=c+(l.length>0?" "+l:l);continue}C=false;}let p=Ze(n).join(":"),x=g?p+he:p,w=x+m;if(u.includes(w))continue;u.push(w);let M=r(m,C);for(let P=0;P<M.length;++P){let y=M[P];u.push(x+y);}l=c+(l.length>0?" "+l:l);}return l};function je(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=Se(a))&&(o&&(o+=" "),o+=t);return o}var Se=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=Se(e[o]))&&(t&&(t+=" "),t+=a);return t};function $e(e,...a){let t,o,r,u=d;function d(i){let c=a.reduce((n,g)=>g(n),e());return t=Je(c),o=t.cache.get,r=t.cache.set,u=l,l(i)}function l(i){let c=o(i);if(c)return c;let n=_e(i,t);return r(i,n),n}return function(){return u(je.apply(null,arguments))}}var L=e=>{let a=t=>t[e]||[];return a.isThemeGetter=true,a},we=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ye=/^\d+\/\d+$/,ea=new Set(["px","full","screen"]),aa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ta=/\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$/,oa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,la=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ua=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>O(e)||ea.has(e)||Ye.test(e),v=e=>H(e,"length",pa),O=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>H(e,"number",O),W=e=>!!e&&Number.isInteger(Number(e)),ra=e=>e.endsWith("%")&&O(e.slice(0,-1)),s=e=>we.test(e),T=e=>aa.test(e),da=new Set(["length","size","percentage"]),sa=e=>H(e,da,Pe),fa=e=>H(e,"position",Pe),ia=new Set(["image","url"]),ca=e=>H(e,ia,La),na=e=>H(e,"",ma),N=()=>true,H=(e,a,t)=>{let o=we.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):false},pa=e=>ta.test(e)&&!oa.test(e),Pe=()=>false,ma=e=>la.test(e),La=e=>ua.test(e);var xa=()=>{let e=L("colors"),a=L("spacing"),t=L("blur"),o=L("brightness"),r=L("borderColor"),u=L("borderRadius"),d=L("borderSpacing"),l=L("borderWidth"),i=L("contrast"),c=L("grayscale"),n=L("hueRotate"),g=L("invert"),S=L("gap"),b=L("gradientColorStops"),C=L("gradientColorStopPositions"),m=L("inset"),p=L("margin"),x=L("opacity"),w=L("padding"),M=L("saturate"),P=L("scale"),y=L("sepia"),F=L("skew"),f=L("space"),A=L("translate"),k=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",s,a],I=()=>[s,a],ce=()=>["",R,v],j=()=>["auto",O,s],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",s],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[O,s];return {cacheSize:500,separator:":",theme:{colors:[N],spacing:[R,v],blur:["none","",T,s],brightness:D(),borderColor:[e],borderRadius:["none","","full",T,s],borderSpacing:I(),borderWidth:ce(),contrast:D(),grayscale:V(),hueRotate:D(),invert:V(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[ra,v],inset:z(),margin:z(),opacity:D(),padding:I(),saturate:D(),scale:D(),sepia:V(),skew:D(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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"],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:[...ne(),s]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,s]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",s]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",W,s]}],"grid-cols":[{"grid-cols":[N]}],"col-start-end":[{col:["auto",{span:["full",W,s]},s]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[N]}],"row-start-end":[{row:["auto",{span:[W,s]},s]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",s]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",s]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[f]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[f]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",s,a]}],"min-w":[{"min-w":[s,a,"min","max","fit"]}],"max-w":[{"max-w":[s,a,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[s,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[s,a,"auto","min","max","fit"]}],"font-size":[{text:["base",T,v]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",oe]}],"font-family":[{font:[N]}],"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:["tighter","tight","normal","wide","wider","widest",s]}],"line-clamp":[{"line-clamp":["none",O,oe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,s]}],"list-image":[{"list-image":["none",s]}],"list-style-type":[{list:["none","disc","decimal",s]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,v]}],"underline-offset":[{"underline-offset":["auto",R,s]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),fa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sa]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ca]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:$()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[R,s]}],"outline-w":[{outline:[R,v]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[R,v]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",T,na]}],"shadow-color":[{shadow:[N]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",T,s]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[n]}],invert:[{invert:[g]}],saturate:[{saturate:[M]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[W,s]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",s]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",s]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,v,oe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}};var ke=$e(xa);function h(...e){return ke(xe(e))}var re=se.forwardRef(({className:e,children:a,onScrollEnd:t,isInfiniteScroll:o=false,viewPortClassName:r,viewPortStyle:u,...d},l)=>{let i=se.useRef(null);return se.useEffect(()=>{if(!o)return;let c=()=>{if(i.current){let{scrollTop:g,scrollHeight:S,clientHeight:b}=i.current;g+b>=S-10&&t?.();}},n=i.current;return n?.addEventListener("scroll",c),()=>{n?.removeEventListener("scroll",c);}},[t,o]),se.useImperativeHandle(l,()=>i.current,[i]),jsxRuntime.jsxs(B__namespace.Root,{className:h("relative overflow-hidden",e),...d,children:[jsxRuntime.jsx(B__namespace.Viewport,{ref:i,className:h("h-full w-full rounded-[inherit] [&>div]:!flex [&>div]:h-full [&>div]:flex-col",r),style:u,children:a}),jsxRuntime.jsx(Ae,{forceMount:o},o?i.current?.scrollHeight:1),jsxRuntime.jsx(B__namespace.Corner,{})]})});re.displayName=B__namespace.Root.displayName;var Ae=se.forwardRef(({className:e,orientation:a="vertical",...t},o)=>jsxRuntime.jsx(B__namespace.ScrollAreaScrollbar,{ref:o,orientation:a,className:h("flex touch-none select-none bg-neutral-100 transition-colors",a==="vertical"&&"h-full w-4 py-2",a==="horizontal"&&"h-4 flex-col px-2",e),...t,children:jsxRuntime.jsx(B__namespace.ScrollAreaThumb,{className:h("relative flex-1 rounded bg-primary-500",a==="vertical"&&"mx-1 w-2",a==="horizontal"&&"my-1 h-2")})}));Ae.displayName=B__namespace.ScrollAreaScrollbar.displayName;var ye=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),de=e=>{let a=Sa(e);return a.charAt(0).toUpperCase()+a.slice(1)},Y=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim(),Be=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var De=se.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:u,iconNode:d,...l},i)=>se.createElement("svg",{ref:i,...Me,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Y("lucide",r),...!u&&!Be(l)&&{"aria-hidden":"true"},...l},[...d.map(([c,n])=>se.createElement(c,n)),...Array.isArray(u)?u:[u]]));var G=(e,a)=>{let t=se.forwardRef(({className:o,...r},u)=>se.createElement(De,{ref:u,iconNode:a,className:Y(`lucide-${ye(de(e))}`,`lucide-${e}`,o),...r}));return t.displayName=de(e),t};var ba=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],K=G("chevron-down",ba);var Aa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],q=G("circle-alert",Aa);var ya=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Z=G("x",ya);var Re=Z;var ve=K;var Te=q;var Ba=({error:e,helperText:a,disabled:t})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:a&&jsxRuntime.jsx("span",{className:h("mx-4 mt-1 text-start text-xs leading-[130%] text-neutral-600",t&&"text-neutral-400",e&&"text-error-700"),children:a})}),Ue=Ba;var Oe=se.forwardRef(({label:e,placeholder:a,error:t,selectMode:o=false,showClearButton:r=true,helperText:u,className:d,size:l="md",onClean:i,onChange:c,startIcon:n,endIcon:g,startComponent:S,fixedTopLabel:b,startText:C,disabled:m,required:p,...x},w)=>{let M=se.useId(),P=se.useRef(null),[y,F]=se.useState(false),f=!P.current?.value,A=se.useCallback(()=>{if(P.current&&!m){P.current.value="",F(false),i?.();let k={target:P.current,currentTarget:P.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};c?.(k);}},[m,c,P.current]);return se.useEffect(()=>{P.current&&F(P.current.value.length>0);},[]),jsxRuntime.jsxs("div",{className:h("flex flex-col",d),children:[jsxRuntime.jsxs("div",{className:h("relative flex flex-col rounded-lg bg-neutral-50",l==="lg"&&"h-12",l==="md"&&"h-10",l==="sm"&&"h-8"),children:[jsxRuntime.jsx("input",{id:M,disabled:m,required:p,className:h("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500/100 caret-neutral-900 outline-0 ring-1 ring-inset ring-neutral-400 transition-all ease-linear focus:text-neutral-900 focus:placeholder-neutral-500 focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-[2px] focus:ring-primary-800 disabled:bg-neutral-80 disabled:text-neutral-400 disabled:ring-neutral-100 [&:not(:placeholder-shown)]:z-10",e&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:text-neutral-900 hover:ring-error-700 focus:ring-error-700",l==="lg"&&"text-base",l==="md"&&"text-sm",l==="sm"&&"text-sm",n?l==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":S?"pl-[6.5rem]":"pl-4",C&&"pl-[1.94rem]",g?l==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:a??"",ref:k=>{typeof w=="function"?w(k):w&&(w.current=k),P.current=k;},onChange:k=>{F(k.target.value.length>0),c?.(k);},...x}),S&&se__default.default.cloneElement(S,{className:h("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!y&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),n&&se__default.default.cloneElement(n,{size:18,className:h("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!y&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),C&&jsxRuntime.jsx("div",{className:"flex h-full items-center pl-3",children:jsxRuntime.jsx("p",{className:h("text-neutral-700",t&&"text-error-700"),children:C})}),e&&jsxRuntime.jsxs(reactLabel.Label,{htmlFor:M,className:h("absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-hover:text-primary-800 peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs peer-focus:text-primary-800 peer-[:placeholder-shown]:peer-[:not(:focus)]:peer-[:disabled]:bg-neutral-80",!t&&"peer-[:not(:focus)]:peer-[:not(:disabled)]:text-neutral-400 peer-[:not(:placeholder-shown)]:peer-[:not(:focus)]:peer-[:not(:disabled)]:text-neutral-900",y&&"peer-disabled:bg-neutral-80",l==="lg"?"text-base placeholder-shown:text-xs peer-placeholder-shown:top-3":l==="md"?"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-2.5":"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-1.5",!f&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",n?l==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":S?"peer-placeholder-shown:ml-[6rem]":"ml-3",b&&"!-top-[0.375rem] z-20 ml-3 !text-xs !transition-none",C&&"peer-placeholder-shown:ml-[1.94rem]"),children:[p&&"*",e]}),(r&&(!f||y)||t)&&jsxRuntime.jsxs("div",{className:h("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!m&&"flex",o||g?l==="lg"?"right-[2.81rem]":l==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsxRuntime.jsx(Te,{size:l==="sm"?14:18,className:"text-error-700"}),!t&&jsxRuntime.jsx(Re,{onMouseDown:A,size:l==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),g&&se__default.default.cloneElement(g,{size:l==="sm"?14:18,className:h("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!y&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),o&&jsxRuntime.jsx("div",{className:h("peer-hover:text-neutral absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-focus:text-primary-900 peer-disabled:text-neutral-400"),children:jsxRuntime.jsx(ve,{className:l==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsxRuntime.jsx(Ue,{helperText:u,error:t,disabled:m})]})});var J=56,Q=6,Yt=({options:e,noResults:a,selectedOption:t,onSelect:o,onChange:r,onClick:u,className:d,...l})=>{let i=se.useId(),c=se.useRef(null),n=se.useRef(null),g=se.useRef(null),[S,b]=se.useState("bottom"),[C,m]=se.useState(),[p,x]=se.useState(-1),[w,M]=se.useState(t??null),P=f=>{c.current.style.display="none",n.current.value=f.label,M(f),o?.(f);},y=f=>{if(f.key==="ArrowDown"){if(p===e.length-1)return;x(A=>A+1),c.current.style.display="flex",F();}else if(f.key==="ArrowUp"){if(p===0)return;x(A=>A-1),F();}else f.key==="Enter"&&(P(e[p]),x(-1));},F=()=>{let f=J*Q;g.current.scroll({top:(p+2)*J<=f?0:J*(p+2)-f,behavior:"smooth"});};return se.useEffect(()=>{if(!n.current)return;let f=()=>{if(!n.current)return;let A=J*(e.length<Q?e.length:Q)+16,k=n.current.getBoundingClientRect();m(k);let E=window.innerHeight-k.bottom>A,z=k.top>A;b(E?"bottom":z?"top":"bottom");};return f(),n.current.addEventListener("mousedown",f),window.addEventListener("scroll",f,true),window.addEventListener("resize",f),()=>{n.current?.removeEventListener("mousedown",f),window.removeEventListener("scroll",f,true),window.removeEventListener("resize",f);}},[n.current]),se.useEffect(()=>{function f(A){c.current&&!c.current.contains(A.target)&&(c.current.style.display="none",x(-1));}return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f);}},[c.current]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Oe,{className:h("w-full !cursor-pointer",d),readOnly:true,ref:n,autoComplete:"off",list:"",selectMode:true,value:w?.label,showClearButton:false,onClick:f=>{c.current.style.display="flex",u?.(f);},onChange:f=>{x(-1),M(null),r?.(f);},onKeyDown:y,...l}),jsxRuntime.jsx(Ge__namespace.Root,{asChild:true,children:jsxRuntime.jsx("ul",{ref:c,className:"pointer-events-auto absolute z-[10000] hidden w-full",style:C?{width:`${C.width}px`,left:C.left,top:S==="bottom"?`${C.height+C.top+window.scrollY}px`:window.scrollY+C.top-(e.length<Q?e.length:Q)*J-16}:void 0,children:jsxRuntime.jsxs(re,{className:"elevation-8 my-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",ref:g,children:[e.length===0&&jsxRuntime.jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col items-center justify-center rounded-lg bg-neutral-50 px-8 py-6",children:[se__default.default.cloneElement(a.icon,{className:"mb-2 h-8 w-8 text-neutral-300"}),jsxRuntime.jsx("p",{className:"text-center text-sm leading-[120%] text-neutral-500",children:a.message})]}),e.map((f,A)=>jsxRuntime.jsx("li",{onClick:()=>{f.disabled||P(f);},className:h("w-full flex-shrink-0 py-4 pl-4 pr-6 text-left",w?.value===f.value&&"bg-primary-200",p===A&&!f.disabled&&"bg-primary-200",f.disabled?"cursor-not-allowed text-neutral-400":"cursor-pointer hover:bg-primary-100"),children:f.label},`select-option-${i}-${f.key??f.value}`))]})})})]})};/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
lucide-react/dist/esm/defaultAttributes.js:
|
package/dist/select.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Select}from'./chunk-
|
|
1
|
+
export{a as Select}from'./chunk-SFABS5IQ.mjs';import'./chunk-AYAULBBH.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-QWBSZY37.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/snackbar.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ToasterProps,
|
|
2
|
+
import { ToasterProps, CreateToasterReturn } from '@ark-ui/react/toast';
|
|
3
3
|
|
|
4
4
|
type SnackbarProps = Omit<Omit<ToasterProps, "children">, "toaster">;
|
|
5
5
|
type SnackbarActionOptions = {
|
|
@@ -12,7 +12,7 @@ type SnackbarStatusChangeDetails = {
|
|
|
12
12
|
status: SnackbarStatus;
|
|
13
13
|
src?: string | undefined;
|
|
14
14
|
};
|
|
15
|
-
declare const snackbar: Omit<
|
|
15
|
+
declare const snackbar: Omit<CreateToasterReturn, "loading" | "error" | "success" | "warning" | "info">;
|
|
16
16
|
declare const SnackbarProvider: FC<SnackbarProps>;
|
|
17
17
|
|
|
18
18
|
export { type SnackbarActionOptions, type SnackbarPlacement, type SnackbarProps, SnackbarProvider, type SnackbarStatus, type SnackbarStatusChangeDetails, snackbar };
|
package/dist/snackbar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ToasterProps,
|
|
2
|
+
import { ToasterProps, CreateToasterReturn } from '@ark-ui/react/toast';
|
|
3
3
|
|
|
4
4
|
type SnackbarProps = Omit<Omit<ToasterProps, "children">, "toaster">;
|
|
5
5
|
type SnackbarActionOptions = {
|
|
@@ -12,7 +12,7 @@ type SnackbarStatusChangeDetails = {
|
|
|
12
12
|
status: SnackbarStatus;
|
|
13
13
|
src?: string | undefined;
|
|
14
14
|
};
|
|
15
|
-
declare const snackbar: Omit<
|
|
15
|
+
declare const snackbar: Omit<CreateToasterReturn, "loading" | "error" | "success" | "warning" | "info">;
|
|
16
16
|
declare const SnackbarProvider: FC<SnackbarProps>;
|
|
17
17
|
|
|
18
18
|
export { type SnackbarActionOptions, type SnackbarPlacement, type SnackbarProps, SnackbarProvider, type SnackbarStatus, type SnackbarStatusChangeDetails, snackbar };
|