sodtrack-web-ui 0.35.4 → 0.35.5
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/{chunk-BAKMNOZ6.mjs → chunk-2CQADSOJ.mjs} +1 -1
- package/dist/{chunk-MAZZOBPE.mjs → chunk-2JOHLCWM.mjs} +1 -1
- package/dist/chunk-3AQYQJHG.mjs +11 -0
- package/dist/{chunk-IQF3RLCG.mjs → chunk-EHAVZFJ6.mjs} +1 -1
- package/dist/chunk-GT52YLYD.mjs +8 -0
- package/dist/{chunk-EMDJTTOT.mjs → chunk-VCMCSR7H.mjs} +1 -1
- package/dist/{chunk-D7I2HSJ6.mjs → chunk-VDMK4M2M.mjs} +1 -1
- package/dist/{chunk-CVXQ7LRS.mjs → chunk-WONJKCFU.mjs} +1 -1
- package/dist/{chunk-A32RCKG3.mjs → chunk-X6CBUD64.mjs} +1 -1
- package/dist/data-table.js +1 -1
- package/dist/data-table.mjs +2 -2
- package/dist/dialog.js +1 -1
- package/dist/dialog.mjs +2 -2
- package/dist/drawer.js +1 -1
- package/dist/drawer.mjs +2 -2
- package/dist/flag-select.js +1 -1
- package/dist/flag-select.mjs +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +40 -40
- package/dist/index.mjs +9 -9
- package/dist/list-item-arrow.css +1 -1
- package/dist/list-item-arrow.mjs +9 -9
- package/dist/list-item-checkbox.css +1 -1
- package/dist/list-item-checkbox.mjs +9 -9
- package/dist/list-item.css +1 -1
- package/dist/list-item.mjs +9 -9
- package/dist/scrollarea.js +1 -1
- package/dist/scrollarea.mjs +1 -1
- package/dist/select.js +1 -1
- package/dist/select.mjs +2 -2
- package/dist/tab.d.mts +2 -2
- package/dist/tab.d.ts +2 -2
- package/dist/tab.js +4 -4
- package/dist/tab.mjs +1 -1
- package/dist/time-picker.js +1 -1
- package/dist/time-picker.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-4L4MN7MH.mjs +0 -11
- package/dist/chunk-NO2HLKR4.mjs +0 -8
package/dist/select.js
CHANGED
|
@@ -30,7 +30,7 @@ var re__default = /*#__PURE__*/_interopDefault(re);
|
|
|
30
30
|
var y__namespace = /*#__PURE__*/_interopNamespace(y);
|
|
31
31
|
var Oe__namespace = /*#__PURE__*/_interopNamespace(Oe);
|
|
32
32
|
|
|
33
|
-
function pe(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=pe(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function me(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=pe(e))&&(o&&(o+=" "),o+=a);return o}var le="-",He=e=>{let a=Ee(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:d=>{let l=d.split(le);return l[0]===""&&l.length!==1&&l.shift(),Ie(l,a)||Ge(d)},getConflictingClassGroupIds:(d,l)=>{let p=t[d]||[];return l&&o[d]?[...p,...o[d]]:p}}},Ie=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?Ie(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},Le=/^\[(.+)\]$/,Ge=e=>{if(Le.test(e)){let a=Le.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Ee=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return Ve(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:xe(a,r);u.classGroupId=t;return}if(typeof r=="function"){if(ze(r)){oe(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([u,d])=>{oe(d,xe(a,u),t,o);});});},xe=(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},ze=e=>e.isThemeGetter,Ve=(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,We=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);}}},Ce="!",Ne=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],u=a.length,d=l=>{let p=[],i=0,c=0,h;for(let n=0;n<l.length;n++){let m=l[n];if(i===0){if(m===r&&(o||l.slice(n,n+u)===a)){p.push(l.slice(c,n)),c=n+u;continue}if(m==="/"){h=n;continue}}m==="["?i++:m==="]"&&i--;}let w=p.length===0?l:l.substring(c),b=w.startsWith(Ce),g=b?w.substring(1):w,I=h&&h>c?h-c:void 0;return {modifiers:p,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:I}};return t?l=>t({className:l,parseClassName:d}):d},Xe=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},Ke=e=>({cache:We(e.cacheSize),parseClassName:Ne(e),...He(e)}),Ze=/\s+/,Je=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,u=[],d=e.trim().split(Ze),l="";for(let p=d.length-1;p>=0;p-=1){let i=d[p],{modifiers:c,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:b}=t(i),g=!!b,I=o(g?w.substring(0,b):w);if(!I){if(!g){l=i+(l.length>0?" "+l:l);continue}if(I=o(w),!I){l=i+(l.length>0?" "+l:l);continue}g=!1;}let n=Xe(c).join(":"),m=h?n+Ce:n,L=m+I;if(u.includes(L))continue;u.push(L);let P=r(I,g);for(let k=0;k<P.length;++k){let B=P[k];u.push(m+B);}l=i+(l.length>0?" "+l:l);}return l};function Qe(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=ge(a))&&(o&&(o+=" "),o+=t);return o}var ge=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=ge(e[o]))&&(t&&(t+=" "),t+=a);return t};function je(e,...a){let t,o,r,u=d;function d(p){let i=a.reduce((c,h)=>h(c),e());return t=Ke(i),o=t.cache.get,r=t.cache.set,u=l,l(p)}function l(p){let i=o(p);if(i)return i;let c=Je(p,t);return r(p,c),c}return function(){return u(Qe.apply(null,arguments))}}var x=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},he=/^\[(?:([a-z-]+):)?(.+)\]$/i,$e=/^\d+\/\d+$/,Ye=new Set(["px","full","screen"]),_e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ea=/\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$/,aa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ta=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=e=>O(e)||Ye.has(e)||$e.test(e),v=e=>H(e,"length",ca),O=e=>!!e&&!Number.isNaN(Number(e)),te=e=>H(e,"number",O),W=e=>!!e&&Number.isInteger(Number(e)),la=e=>e.endsWith("%")&&O(e.slice(0,-1)),f=e=>he.test(e),T=e=>_e.test(e),ua=new Set(["length","size","percentage"]),ra=e=>H(e,ua,Se),da=e=>H(e,"position",Se),sa=new Set(["image","url"]),fa=e=>H(e,sa,pa),ia=e=>H(e,"",na),N=()=>!0,H=(e,a,t)=>{let o=he.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},ca=e=>ea.test(e)&&!aa.test(e),Se=()=>!1,na=e=>ta.test(e),pa=e=>oa.test(e);var ma=()=>{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"),p=x("contrast"),i=x("grayscale"),c=x("hueRotate"),h=x("invert"),w=x("gap"),b=x("gradientColorStops"),g=x("gradientColorStopPositions"),I=x("inset"),n=x("margin"),m=x("opacity"),L=x("padding"),P=x("saturate"),k=x("scale"),B=x("sepia"),R=x("skew"),s=x("space"),A=x("translate"),U=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",f,a],C=()=>[f,a],fe=()=>["",F,v],$=()=>["auto",O,f],ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],ce=()=>["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",f],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[O,f];return {cacheSize:500,separator:":",theme:{colors:[N],spacing:[F,v],blur:["none","",T,f],brightness:M(),borderColor:[e],borderRadius:["none","","full",T,f],borderSpacing:C(),borderWidth:fe(),contrast:M(),grayscale:V(),hueRotate:M(),invert:V(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[la,v],inset:z(),margin:z(),opacity:M(),padding:C(),saturate:M(),scale:M(),sepia:V(),skew:M(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:[...ie(),f]}],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:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,f]}],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",f]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",W,f]}],"grid-cols":[{"grid-cols":[N]}],"col-start-end":[{col:["auto",{span:["full",W,f]},f]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[N]}],"row-start-end":[{row:["auto",{span:[W,f]},f]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],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:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[n]}],mx:[{mx:[n]}],my:[{my:[n]}],ms:[{ms:[n]}],me:[{me:[n]}],mt:[{mt:[n]}],mr:[{mr:[n]}],mb:[{mb:[n]}],ml:[{ml:[n]}],"space-x":[{"space-x":[s]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[s]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,a]}],"min-w":[{"min-w":[f,a,"min","max","fit"]}],"max-w":[{"max-w":[f,a,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[f,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",f]}],"line-clamp":[{"line-clamp":["none",O,te]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"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:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",F,v]}],"underline-offset":[{"underline-offset":["auto",F,f]}],"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",f]}],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",f]}],"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:[...ie(),da]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ra]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"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":[m]}],"border-style":[{border:[...Y(),"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:Y()}],"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:["",...Y()]}],"outline-offset":[{"outline-offset":[F,f]}],"outline-w":[{outline:[F,v]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:fe()}],"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,ia]}],"shadow-color":[{shadow:[N]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ce()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",T,f]}],grayscale:[{grayscale:[i]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[P]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"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",f]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[W,f]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"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",f]}],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",f]}],"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",f]}],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 we=je(ma);function S(...e){return we(me(e))}var ue=re.forwardRef(({className:e,children:a,onScrollEnd:t,isInfiniteScroll:o=!1,viewPortClassName:r,...u},d)=>{let l=re.useRef(null);return re.useEffect(()=>{if(!o)return;let p=()=>{if(l.current){let{scrollTop:c,scrollHeight:h,clientHeight:w}=l.current;c+w>=h-10&&t?.();}},i=l.current;return i?.addEventListener("scroll",p),()=>{i?.removeEventListener("scroll",p);}},[t,o]),re.useImperativeHandle(d,()=>l.current,[l]),jsxRuntime.jsxs(y__namespace.Root,{className:S("relative h-full overflow-hidden",e),...u,children:[jsxRuntime.jsx(y__namespace.Viewport,{ref:l,className:S("h-full w-full rounded-[inherit] [&>div]:!flex [&>div]:h-full [&>div]:flex-col",r),children:a}),jsxRuntime.jsx(ke,{forceMount:o},o?l.current?.scrollHeight:1),jsxRuntime.jsx(y__namespace.Corner,{})]})});ue.displayName=y__namespace.Root.displayName;var ke=re.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")})}));ke.displayName=y__namespace.ScrollAreaScrollbar.displayName;var be=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_=(...e)=>e.filter((a,t,o)=>!!a&&o.indexOf(a)===t).join(" ");var Ae={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 Be=re.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:u,iconNode:d,...l},p)=>re.createElement("svg",{ref:p,...Ae,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:_("lucide",r),...l},[...d.map(([i,c])=>re.createElement(i,c)),...Array.isArray(u)?u:[u]]));var G=(e,a)=>{let t=re.forwardRef(({className:o,...r},u)=>re.createElement(Be,{ref:u,iconNode:a,className:_(`lucide-${be(e)}`,o),...r}));return t.displayName=`${e}`,t};var K=G("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var q=G("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var Z=G("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Me=q,Fe=Z;var De=K;var wa=({error:e,helperText:a,disabled:t})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:a&&jsxRuntime.jsx("span",{className:S("mx-1 mt-1 text-start text-xs leading-[110%] text-neutral-600 transition-all ease-linear peer-hover:text-primary-500",e&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",t&&"text-neutral-400"),children:a})}),ve=wa;var qe=re.forwardRef(({label:e,placeholder:a,error:t,selectMode:o=!1,showClearButton:r=!0,helperText:u,className:d,size:l="lg",onClean:p,onChange:i,startIcon:c,endIcon:h,startComponent:w,fixedTopLabel:b,startText:g,disabled:I,...n},m)=>{let L=re.useRef(null),[P,k]=re.useState(!1),B=!L.current?.value,R=re.useCallback(()=>{if(L.current&&!I){L.current.value="",k(!1),p?.();let s={target:L.current,currentTarget:L.current,type:"change",bubbles:!0,cancelable:!1,defaultPrevented:!1,eventPhase:0,isTrusted:!0,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>!1,isPropagationStopped:()=>!1,timeStamp:Date.now(),nativeEvent:new Event("change")};i?.(s);}},[I,i,L.current]);return re.useEffect(()=>{L.current&&k(L.current.value.length>0);},[]),jsxRuntime.jsxs("div",{className:S("flex flex-col",d),children:[jsxRuntime.jsxs("div",{className:S("relative flex flex-col",l==="lg"&&"h-12",l==="md"&&"h-10",l==="sm"&&"h-8"),children:[jsxRuntime.jsx("input",{disabled:I,className:S("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral peer absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500/0 caret-neutral-900 outline-0 ring-1 ring-inset ring-neutral-400 transition-all ease-linear hover:placeholder-neutral-500/0 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-100 disabled:text-neutral-400 disabled:ring-neutral-100 [&:not(:placeholder-shown)]:z-10",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-base",l==="sm"&&"text-sm",c?l==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":w?"pl-[6.5rem]":"pl-4",g&&"pl-[1.94rem]",h?l==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:a??"",ref:s=>{typeof m=="function"?m(s):m&&(m.current=s),L.current=s;},onChange:s=>{k(s.target.value.length>0),i?.(s);},...n}),w&&re__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&&!P&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),c&&re__default.default.cloneElement(c,{size:l==="lg"?24: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&&!P&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),g&&jsxRuntime.jsx("p",{className:S("items-center pl-3 pt-3 text-neutral-700",l==="lg"?"pt-3":"pt-2",t&&"text-error-700"),children:g}),e&&jsxRuntime.jsx(reactLabel.Label,{className:S("peer-hover:text-neutral-00 absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-600 transition-all duration-75 ease-linear peer-disabled:z-20 peer-disabled:bg-neutral-100 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",P&&"peer-disabled:bg-neutral-50",l==="lg"?"text-base placeholder-shown:text-xs peer-placeholder-shown:top-3":l==="md"?"text-base placeholder-shown:text-xs peer-placeholder-shown:top-2":"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-[6px]",!B&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",c?l==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":w?"peer-placeholder-shown:ml-[6rem]":"ml-3",b&&"!-top-[0.375rem] z-20 ml-3 !text-xs !transition-none",g&&"peer-placeholder-shown:ml-[1.94rem]"),children:e}),r&&(!B||P)&&jsxRuntime.jsx("div",{className:S("peer-hover:text-neutral absolute z-10 hidden h-full cursor-pointer items-center rounded-full peer-focus:flex peer-focus:text-primary-800 peer-disabled:cursor-not-allowed peer-disabled:text-neutral-400",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",o||h?l==="lg"?"right-[2.81rem]":l==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:t?jsxRuntime.jsx(Me,{onMouseDown:R,size:l==="lg"?24:l==="md"?18:14,className:"text-error-700"}):jsxRuntime.jsx(Fe,{onMouseDown:R,size:l==="lg"?24:l==="md"?18:14,className:"text-neutral-900"})}),h&&re__default.default.cloneElement(h,{size:l==="lg"?24:l==="md"?18:14,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&&!P&&"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(De,{className:l==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsxRuntime.jsx(ve,{helperText:u,error:t,disabled:I})]})});var J=56,Q=6,Nt=({options:e,noResults:a,selectedOption:t,onSelect:o,onChange:r,onClick:u,className:d,...l})=>{let p=re.useId(),i=re.useRef(null),c=re.useRef(null),h=re.useRef(null),[w,b]=re.useState("bottom"),[g,I]=re.useState(),[n,m]=re.useState(-1),[L,P]=re.useState(t??null),k=s=>{i.current.style.display="none",c.current.value=s.label,P(s),o?.(s);},B=s=>{if(s.key==="ArrowDown"){if(n===e.length-1)return;m(A=>A+1),i.current.style.display="flex",R();}else if(s.key==="ArrowUp"){if(n===0)return;m(A=>A-1),R();}else s.key==="Enter"&&(k(e[n]),m(-1));},R=()=>{let s=J*Q;h.current.scroll({top:(n+2)*J<=s?0:J*(n+2)-s,behavior:"smooth"});};return re.useEffect(()=>{if(!c.current)return;let s=()=>{if(!c.current)return;let A=J*(e.length<Q?e.length:Q)+16,U=c.current.getBoundingClientRect();I(U);let E=window.innerHeight-U.bottom>A,z=U.top>A;b(E?"bottom":z?"top":"bottom");};return s(),c.current.addEventListener("mousedown",s),window.addEventListener("scroll",s,!0),window.addEventListener("resize",s),()=>{c.current?.removeEventListener("mousedown",s),window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",s);}},[c.current]),re.useEffect(()=>{function s(A){i.current&&!i.current.contains(A.target)&&(i.current.style.display="none",m(-1));}return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s);}},[i.current]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qe,{className:S("w-full !cursor-pointer",d),readOnly:!0,ref:c,autoComplete:"off",list:"",selectMode:!0,value:L?.label,showClearButton:!1,onClick:s=>{i.current.style.display="flex",u?.(s);},onChange:s=>{m(-1),P(null),r?.(s);},onKeyDown:B,...l}),jsxRuntime.jsx(Oe__namespace.Root,{asChild:!0,children:jsxRuntime.jsx("ul",{ref:i,className:"pointer-events-auto absolute z-[10000] hidden w-full",style:g?{width:`${g.width}px`,left:g.left,top:w==="bottom"?`${g.height+g.top+window.scrollY}px`:window.scrollY+g.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:[re__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((s,A)=>jsxRuntime.jsx("li",{onClick:()=>{k(s);},className:S("w-full flex-shrink-0 cursor-pointer py-4 pl-4 pr-6 text-left hover:bg-primary-100",L?.value===s.value&&"bg-primary-200",n===A&&"bg-primary-200"),value:s.value,children:s.label},`select-option-${p}-${s.key??s.value}`))]})})})]})};/*! Bundled license information:
|
|
33
|
+
function pe(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=pe(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function me(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=pe(e))&&(o&&(o+=" "),o+=a);return o}var le="-",He=e=>{let a=Ee(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:d=>{let l=d.split(le);return l[0]===""&&l.length!==1&&l.shift(),Ie(l,a)||Ge(d)},getConflictingClassGroupIds:(d,l)=>{let p=t[d]||[];return l&&o[d]?[...p,...o[d]]:p}}},Ie=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?Ie(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},Le=/^\[(.+)\]$/,Ge=e=>{if(Le.test(e)){let a=Le.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Ee=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return Ve(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:xe(a,r);u.classGroupId=t;return}if(typeof r=="function"){if(ze(r)){oe(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([u,d])=>{oe(d,xe(a,u),t,o);});});},xe=(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},ze=e=>e.isThemeGetter,Ve=(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,We=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);}}},Ce="!",Ne=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],u=a.length,d=l=>{let p=[],i=0,c=0,h;for(let n=0;n<l.length;n++){let m=l[n];if(i===0){if(m===r&&(o||l.slice(n,n+u)===a)){p.push(l.slice(c,n)),c=n+u;continue}if(m==="/"){h=n;continue}}m==="["?i++:m==="]"&&i--;}let w=p.length===0?l:l.substring(c),b=w.startsWith(Ce),g=b?w.substring(1):w,I=h&&h>c?h-c:void 0;return {modifiers:p,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:I}};return t?l=>t({className:l,parseClassName:d}):d},Xe=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},Ke=e=>({cache:We(e.cacheSize),parseClassName:Ne(e),...He(e)}),Ze=/\s+/,Je=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,u=[],d=e.trim().split(Ze),l="";for(let p=d.length-1;p>=0;p-=1){let i=d[p],{modifiers:c,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:b}=t(i),g=!!b,I=o(g?w.substring(0,b):w);if(!I){if(!g){l=i+(l.length>0?" "+l:l);continue}if(I=o(w),!I){l=i+(l.length>0?" "+l:l);continue}g=!1;}let n=Xe(c).join(":"),m=h?n+Ce:n,L=m+I;if(u.includes(L))continue;u.push(L);let P=r(I,g);for(let k=0;k<P.length;++k){let B=P[k];u.push(m+B);}l=i+(l.length>0?" "+l:l);}return l};function Qe(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=ge(a))&&(o&&(o+=" "),o+=t);return o}var ge=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=ge(e[o]))&&(t&&(t+=" "),t+=a);return t};function je(e,...a){let t,o,r,u=d;function d(p){let i=a.reduce((c,h)=>h(c),e());return t=Ke(i),o=t.cache.get,r=t.cache.set,u=l,l(p)}function l(p){let i=o(p);if(i)return i;let c=Je(p,t);return r(p,c),c}return function(){return u(Qe.apply(null,arguments))}}var x=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},he=/^\[(?:([a-z-]+):)?(.+)\]$/i,$e=/^\d+\/\d+$/,Ye=new Set(["px","full","screen"]),_e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ea=/\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$/,aa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ta=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=e=>O(e)||Ye.has(e)||$e.test(e),v=e=>H(e,"length",ca),O=e=>!!e&&!Number.isNaN(Number(e)),te=e=>H(e,"number",O),W=e=>!!e&&Number.isInteger(Number(e)),la=e=>e.endsWith("%")&&O(e.slice(0,-1)),f=e=>he.test(e),T=e=>_e.test(e),ua=new Set(["length","size","percentage"]),ra=e=>H(e,ua,Se),da=e=>H(e,"position",Se),sa=new Set(["image","url"]),fa=e=>H(e,sa,pa),ia=e=>H(e,"",na),N=()=>!0,H=(e,a,t)=>{let o=he.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},ca=e=>ea.test(e)&&!aa.test(e),Se=()=>!1,na=e=>ta.test(e),pa=e=>oa.test(e);var ma=()=>{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"),p=x("contrast"),i=x("grayscale"),c=x("hueRotate"),h=x("invert"),w=x("gap"),b=x("gradientColorStops"),g=x("gradientColorStopPositions"),I=x("inset"),n=x("margin"),m=x("opacity"),L=x("padding"),P=x("saturate"),k=x("scale"),B=x("sepia"),R=x("skew"),s=x("space"),A=x("translate"),U=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",f,a],C=()=>[f,a],fe=()=>["",F,v],$=()=>["auto",O,f],ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],ce=()=>["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",f],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[O,f];return {cacheSize:500,separator:":",theme:{colors:[N],spacing:[F,v],blur:["none","",T,f],brightness:M(),borderColor:[e],borderRadius:["none","","full",T,f],borderSpacing:C(),borderWidth:fe(),contrast:M(),grayscale:V(),hueRotate:M(),invert:V(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[la,v],inset:z(),margin:z(),opacity:M(),padding:C(),saturate:M(),scale:M(),sepia:V(),skew:M(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:[...ie(),f]}],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:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,f]}],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",f]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",W,f]}],"grid-cols":[{"grid-cols":[N]}],"col-start-end":[{col:["auto",{span:["full",W,f]},f]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[N]}],"row-start-end":[{row:["auto",{span:[W,f]},f]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],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:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[n]}],mx:[{mx:[n]}],my:[{my:[n]}],ms:[{ms:[n]}],me:[{me:[n]}],mt:[{mt:[n]}],mr:[{mr:[n]}],mb:[{mb:[n]}],ml:[{ml:[n]}],"space-x":[{"space-x":[s]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[s]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,a]}],"min-w":[{"min-w":[f,a,"min","max","fit"]}],"max-w":[{"max-w":[f,a,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[f,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",f]}],"line-clamp":[{"line-clamp":["none",O,te]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"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:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",F,v]}],"underline-offset":[{"underline-offset":["auto",F,f]}],"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",f]}],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",f]}],"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:[...ie(),da]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ra]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"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":[m]}],"border-style":[{border:[...Y(),"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:Y()}],"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:["",...Y()]}],"outline-offset":[{"outline-offset":[F,f]}],"outline-w":[{outline:[F,v]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:fe()}],"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,ia]}],"shadow-color":[{shadow:[N]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ce()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",T,f]}],grayscale:[{grayscale:[i]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[P]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"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",f]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[W,f]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"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",f]}],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",f]}],"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",f]}],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 we=je(ma);function S(...e){return we(me(e))}var ue=re.forwardRef(({className:e,children:a,onScrollEnd:t,isInfiniteScroll:o=!1,viewPortClassName:r,...u},d)=>{let l=re.useRef(null);return re.useEffect(()=>{if(!o)return;let p=()=>{if(l.current){let{scrollTop:c,scrollHeight:h,clientHeight:w}=l.current;c+w>=h-10&&t?.();}},i=l.current;return i?.addEventListener("scroll",p),()=>{i?.removeEventListener("scroll",p);}},[t,o]),re.useImperativeHandle(d,()=>l.current,[l]),jsxRuntime.jsxs(y__namespace.Root,{className:S("relative overflow-hidden",e),...u,children:[jsxRuntime.jsx(y__namespace.Viewport,{ref:l,className:S("h-full w-full rounded-[inherit] [&>div]:!flex [&>div]:h-full [&>div]:flex-col",r),children:a}),jsxRuntime.jsx(ke,{forceMount:o},o?l.current?.scrollHeight:1),jsxRuntime.jsx(y__namespace.Corner,{})]})});ue.displayName=y__namespace.Root.displayName;var ke=re.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")})}));ke.displayName=y__namespace.ScrollAreaScrollbar.displayName;var be=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_=(...e)=>e.filter((a,t,o)=>!!a&&o.indexOf(a)===t).join(" ");var Ae={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 Be=re.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:u,iconNode:d,...l},p)=>re.createElement("svg",{ref:p,...Ae,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:_("lucide",r),...l},[...d.map(([i,c])=>re.createElement(i,c)),...Array.isArray(u)?u:[u]]));var G=(e,a)=>{let t=re.forwardRef(({className:o,...r},u)=>re.createElement(Be,{ref:u,iconNode:a,className:_(`lucide-${be(e)}`,o),...r}));return t.displayName=`${e}`,t};var K=G("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var q=G("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var Z=G("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Me=q,Fe=Z;var De=K;var wa=({error:e,helperText:a,disabled:t})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:a&&jsxRuntime.jsx("span",{className:S("mx-1 mt-1 text-start text-xs leading-[110%] text-neutral-600 transition-all ease-linear peer-hover:text-primary-500",e&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",t&&"text-neutral-400"),children:a})}),ve=wa;var qe=re.forwardRef(({label:e,placeholder:a,error:t,selectMode:o=!1,showClearButton:r=!0,helperText:u,className:d,size:l="lg",onClean:p,onChange:i,startIcon:c,endIcon:h,startComponent:w,fixedTopLabel:b,startText:g,disabled:I,...n},m)=>{let L=re.useRef(null),[P,k]=re.useState(!1),B=!L.current?.value,R=re.useCallback(()=>{if(L.current&&!I){L.current.value="",k(!1),p?.();let s={target:L.current,currentTarget:L.current,type:"change",bubbles:!0,cancelable:!1,defaultPrevented:!1,eventPhase:0,isTrusted:!0,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>!1,isPropagationStopped:()=>!1,timeStamp:Date.now(),nativeEvent:new Event("change")};i?.(s);}},[I,i,L.current]);return re.useEffect(()=>{L.current&&k(L.current.value.length>0);},[]),jsxRuntime.jsxs("div",{className:S("flex flex-col",d),children:[jsxRuntime.jsxs("div",{className:S("relative flex flex-col",l==="lg"&&"h-12",l==="md"&&"h-10",l==="sm"&&"h-8"),children:[jsxRuntime.jsx("input",{disabled:I,className:S("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral peer absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500/0 caret-neutral-900 outline-0 ring-1 ring-inset ring-neutral-400 transition-all ease-linear hover:placeholder-neutral-500/0 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-100 disabled:text-neutral-400 disabled:ring-neutral-100 [&:not(:placeholder-shown)]:z-10",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-base",l==="sm"&&"text-sm",c?l==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":w?"pl-[6.5rem]":"pl-4",g&&"pl-[1.94rem]",h?l==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:a??"",ref:s=>{typeof m=="function"?m(s):m&&(m.current=s),L.current=s;},onChange:s=>{k(s.target.value.length>0),i?.(s);},...n}),w&&re__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&&!P&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),c&&re__default.default.cloneElement(c,{size:l==="lg"?24: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&&!P&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),g&&jsxRuntime.jsx("p",{className:S("items-center pl-3 pt-3 text-neutral-700",l==="lg"?"pt-3":"pt-2",t&&"text-error-700"),children:g}),e&&jsxRuntime.jsx(reactLabel.Label,{className:S("peer-hover:text-neutral-00 absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-600 transition-all duration-75 ease-linear peer-disabled:z-20 peer-disabled:bg-neutral-100 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",P&&"peer-disabled:bg-neutral-50",l==="lg"?"text-base placeholder-shown:text-xs peer-placeholder-shown:top-3":l==="md"?"text-base placeholder-shown:text-xs peer-placeholder-shown:top-2":"text-sm placeholder-shown:text-xs peer-placeholder-shown:top-[6px]",!B&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",c?l==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":w?"peer-placeholder-shown:ml-[6rem]":"ml-3",b&&"!-top-[0.375rem] z-20 ml-3 !text-xs !transition-none",g&&"peer-placeholder-shown:ml-[1.94rem]"),children:e}),r&&(!B||P)&&jsxRuntime.jsx("div",{className:S("peer-hover:text-neutral absolute z-10 hidden h-full cursor-pointer items-center rounded-full peer-focus:flex peer-focus:text-primary-800 peer-disabled:cursor-not-allowed peer-disabled:text-neutral-400",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",o||h?l==="lg"?"right-[2.81rem]":l==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:t?jsxRuntime.jsx(Me,{onMouseDown:R,size:l==="lg"?24:l==="md"?18:14,className:"text-error-700"}):jsxRuntime.jsx(Fe,{onMouseDown:R,size:l==="lg"?24:l==="md"?18:14,className:"text-neutral-900"})}),h&&re__default.default.cloneElement(h,{size:l==="lg"?24:l==="md"?18:14,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&&!P&&"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(De,{className:l==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsxRuntime.jsx(ve,{helperText:u,error:t,disabled:I})]})});var J=56,Q=6,Nt=({options:e,noResults:a,selectedOption:t,onSelect:o,onChange:r,onClick:u,className:d,...l})=>{let p=re.useId(),i=re.useRef(null),c=re.useRef(null),h=re.useRef(null),[w,b]=re.useState("bottom"),[g,I]=re.useState(),[n,m]=re.useState(-1),[L,P]=re.useState(t??null),k=s=>{i.current.style.display="none",c.current.value=s.label,P(s),o?.(s);},B=s=>{if(s.key==="ArrowDown"){if(n===e.length-1)return;m(A=>A+1),i.current.style.display="flex",R();}else if(s.key==="ArrowUp"){if(n===0)return;m(A=>A-1),R();}else s.key==="Enter"&&(k(e[n]),m(-1));},R=()=>{let s=J*Q;h.current.scroll({top:(n+2)*J<=s?0:J*(n+2)-s,behavior:"smooth"});};return re.useEffect(()=>{if(!c.current)return;let s=()=>{if(!c.current)return;let A=J*(e.length<Q?e.length:Q)+16,U=c.current.getBoundingClientRect();I(U);let E=window.innerHeight-U.bottom>A,z=U.top>A;b(E?"bottom":z?"top":"bottom");};return s(),c.current.addEventListener("mousedown",s),window.addEventListener("scroll",s,!0),window.addEventListener("resize",s),()=>{c.current?.removeEventListener("mousedown",s),window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",s);}},[c.current]),re.useEffect(()=>{function s(A){i.current&&!i.current.contains(A.target)&&(i.current.style.display="none",m(-1));}return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s);}},[i.current]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qe,{className:S("w-full !cursor-pointer",d),readOnly:!0,ref:c,autoComplete:"off",list:"",selectMode:!0,value:L?.label,showClearButton:!1,onClick:s=>{i.current.style.display="flex",u?.(s);},onChange:s=>{m(-1),P(null),r?.(s);},onKeyDown:B,...l}),jsxRuntime.jsx(Oe__namespace.Root,{asChild:!0,children:jsxRuntime.jsx("ul",{ref:i,className:"pointer-events-auto absolute z-[10000] hidden w-full",style:g?{width:`${g.width}px`,left:g.left,top:w==="bottom"?`${g.height+g.top+window.scrollY}px`:window.scrollY+g.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:[re__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((s,A)=>jsxRuntime.jsx("li",{onClick:()=>{k(s);},className:S("w-full flex-shrink-0 cursor-pointer py-4 pl-4 pr-6 text-left hover:bg-primary-100",L?.value===s.value&&"bg-primary-200",n===A&&"bg-primary-200"),value:s.value,children:s.label},`select-option-${p}-${s.key??s.value}`))]})})})]})};/*! Bundled license information:
|
|
34
34
|
|
|
35
35
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
36
36
|
(**
|
package/dist/select.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as Select } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { a as Select } from './chunk-VDMK4M2M.mjs';
|
|
2
|
+
import './chunk-GT52YLYD.mjs';
|
|
3
3
|
import './chunk-ZY2CFYRT.mjs';
|
|
4
4
|
import './chunk-AXGV7DEU.mjs';
|
|
5
5
|
import './chunk-CYXKXVPJ.mjs';
|
package/dist/tab.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
-
import React__default from 'react';
|
|
2
|
+
import React__default, { PointerEvent } from 'react';
|
|
3
3
|
import { LucideProps } from 'lucide-react';
|
|
4
4
|
import { VariantProps } from 'cva';
|
|
5
5
|
|
|
@@ -75,7 +75,7 @@ declare const TabsList: React__default.ForwardRefExoticComponent<Omit<TabsPrimit
|
|
|
75
75
|
declare const TabsTrigger: React__default.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
76
76
|
StartIcon?: React__default.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React__default.RefAttributes<SVGSVGElement>>;
|
|
77
77
|
badgeNumber?: number;
|
|
78
|
-
onClose?: () => void;
|
|
78
|
+
onClose?: (event: PointerEvent<SVGSVGElement>) => void;
|
|
79
79
|
} & TabTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
80
80
|
declare const TabsContent: React__default.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
81
81
|
|
package/dist/tab.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
-
import React__default from 'react';
|
|
2
|
+
import React__default, { PointerEvent } from 'react';
|
|
3
3
|
import { LucideProps } from 'lucide-react';
|
|
4
4
|
import { VariantProps } from 'cva';
|
|
5
5
|
|
|
@@ -75,7 +75,7 @@ declare const TabsList: React__default.ForwardRefExoticComponent<Omit<TabsPrimit
|
|
|
75
75
|
declare const TabsTrigger: React__default.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
76
76
|
StartIcon?: React__default.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React__default.RefAttributes<SVGSVGElement>>;
|
|
77
77
|
badgeNumber?: number;
|
|
78
|
-
onClose?: () => void;
|
|
78
|
+
onClose?: (event: PointerEvent<SVGSVGElement>) => void;
|
|
79
79
|
} & TabTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
80
80
|
declare const TabsContent: React__default.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
81
81
|
|
package/dist/tab.js
CHANGED
|
@@ -28,7 +28,7 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var h__namespace = /*#__PURE__*/_interopNamespace(h);
|
|
29
29
|
var y__default = /*#__PURE__*/_interopDefault(y);
|
|
30
30
|
|
|
31
|
-
function ue(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(a=0;a<u;a++)e[a]&&(t=ue(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function de(){for(var e,a,t=0,o="",u=arguments.length;t<u;t++)(e=arguments[t])&&(a=ue(e))&&(o&&(o+=" "),o+=a);return o}var j="-",we=e=>{let a=Pe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:r=>{let d=r.split(j);return d[0]===""&&d.length!==1&&d.shift(),fe(d,a)||be(r)},getConflictingClassGroupIds:(r,d)=>{let f=t[r]||[];return d&&o[r]?[...f,...o[r]]:f}}},fe=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),u=o?fe(e.slice(1),o):void 0;if(u)return u;if(a.validators.length===0)return;let l=e.join(j);return a.validators.find(({validator:r})=>r(l))?.classGroupId},re=/^\[(.+)\]$/,be=e=>{if(re.test(e)){let a=re.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Pe=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return Ae(Object.entries(e.classGroups),t).forEach(([l,r])=>{Q(r,o,l,a);}),o},Q=(e,a,t,o)=>{e.forEach(u=>{if(typeof u=="string"){let l=u===""?a:se(a,u);l.classGroupId=t;return}if(typeof u=="function"){if(ke(u)){Q(u(o),a,t,o);return}a.validators.push({validator:u,classGroupId:t});return}Object.entries(u).forEach(([l,r])=>{Q(r,se(a,l),t,o);});});},se=(e,a)=>{let t=e;return a.split(j).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},ke=e=>e.isThemeGetter,Ae=(e,a)=>a?e.map(([t,o])=>{let u=o.map(l=>typeof l=="string"?a+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([r,d])=>[a+r,d])):l);return [t,u]}):e,Be=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,u=(l,r)=>{t.set(l,r),a++,a>e&&(a=0,o=t,t=new Map);};return {get(l){let r=t.get(l);if(r!==void 0)return r;if((r=o.get(l))!==void 0)return u(l,r),r},set(l,r){t.has(l)?t.set(l,r):u(l,r);}}},ie="!",ye=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,u=a[0],l=a.length,r=d=>{let f=[],m=0,c=0,C;for(let p=0;p<d.length;p++){let I=d[p];if(m===0){if(I===u&&(o||d.slice(p,p+l)===a)){f.push(d.slice(c,p)),c=p+l;continue}if(I==="/"){C=p;continue}}I==="["?m++:I==="]"&&m--;}let g=f.length===0?d:d.substring(c),w=g.startsWith(ie),S=w?g.substring(1):g,L=C&&C>c?C-c:void 0;return {modifiers:f,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:L}};return t?d=>t({className:d,parseClassName:r}):r},Me=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},Fe=e=>({cache:Be(e.cacheSize),parseClassName:ye(e),...we(e)}),De=/\s+/,Re=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:u}=a,l=[],r=e.trim().split(De),d="";for(let f=r.length-1;f>=0;f-=1){let m=r[f],{modifiers:c,hasImportantModifier:C,baseClassName:g,maybePostfixModifierPosition:w}=t(m),S=!!w,L=o(S?g.substring(0,w):g);if(!L){if(!S){d=m+(d.length>0?" "+d:d);continue}if(L=o(g),!L){d=m+(d.length>0?" "+d:d);continue}S=!1;}let p=Me(c).join(":"),I=C?p+ie:p,x=I+L;if(l.includes(x))continue;l.push(x);let T=u(L,S);for(let M=0;M<T.length;++M){let H=T[M];l.push(I+H);}d=m+(d.length>0?" "+d:d);}return d};function Te(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=ce(a))&&(o&&(o+=" "),o+=t);return o}var ce=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=ce(e[o]))&&(t&&(t+=" "),t+=a);return t};function ve(e,...a){let t,o,u,l=r;function r(f){let m=a.reduce((c,C)=>C(c),e());return t=Fe(m),o=t.cache.get,u=t.cache.set,l=d,d(f)}function d(f){let m=o(f);if(m)return m;let c=Re(f,t);return u(f,c),c}return function(){return l(Te.apply(null,arguments))}}var i=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},ne=/^\[(?:([a-z-]+):)?(.+)\]$/i,qe=/^\d+\/\d+$/,Ue=new Set(["px","full","screen"]),Oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,He=/\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$/,Ge=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ze=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ve=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>F(e)||Ue.has(e)||qe.test(e),A=e=>D(e,"length",Qe),F=e=>!!e&&!Number.isNaN(Number(e)),J=e=>D(e,"number",F),q=e=>!!e&&Number.isInteger(Number(e)),We=e=>e.endsWith("%")&&F(e.slice(0,-1)),s=e=>ne.test(e),B=e=>Oe.test(e),Ee=new Set(["length","size","percentage"]),Ne=e=>D(e,Ee,pe),Xe=e=>D(e,"position",pe),Ke=new Set(["image","url"]),Ze=e=>D(e,Ke,Ye),Je=e=>D(e,"",je),U=()=>!0,D=(e,a,t)=>{let o=ne.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},Qe=e=>He.test(e)&&!Ge.test(e),pe=()=>!1,je=e=>ze.test(e),Ye=e=>Ve.test(e);var _e=()=>{let e=i("colors"),a=i("spacing"),t=i("blur"),o=i("brightness"),u=i("borderColor"),l=i("borderRadius"),r=i("borderSpacing"),d=i("borderWidth"),f=i("contrast"),m=i("grayscale"),c=i("hueRotate"),C=i("invert"),g=i("gap"),w=i("gradientColorStops"),S=i("gradientColorStopPositions"),L=i("inset"),p=i("margin"),I=i("opacity"),x=i("padding"),T=i("saturate"),M=i("scale"),H=i("sepia"),_=i("skew"),$=i("space"),ee=i("translate"),N=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",s,a],n=()=>[s,a],ae=()=>["",P,A],G=()=>["auto",F,s],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],v=()=>["","0",s],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>[F,s];return {cacheSize:500,separator:":",theme:{colors:[U],spacing:[P,A],blur:["none","",B,s],brightness:b(),borderColor:[e],borderRadius:["none","","full",B,s],borderSpacing:n(),borderWidth:ae(),contrast:b(),grayscale:v(),hueRotate:b(),invert:v(),gap:n(),gradientColorStops:[e],gradientColorStopPositions:[We,A],inset:K(),margin:K(),opacity:b(),padding:n(),saturate:b(),scale:b(),sepia:v(),skew:b(),space:n(),translate:n()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"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:[...te(),s]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],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",q,s]}],basis:[{basis:K()}],"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",q,s]}],"grid-cols":[{"grid-cols":[U]}],"col-start-end":[{col:["auto",{span:["full",q,s]},s]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[q,s]},s]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"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:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],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":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"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:[B]},B]}],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",B,A]}],"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:[U]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",s]}],"line-clamp":[{"line-clamp":["none",F,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,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":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,A]}],"underline-offset":[{"underline-offset":["auto",P,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":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),Xe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ze]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:z()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[P,s]}],"outline-w":[{outline:[P,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[P,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",B,Je]}],"shadow-color":[{shadow:[U]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,s]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[C]}],saturate:[{saturate:[T]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"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:b()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:b()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[q,s]}],"translate-x":[{"translate-x":[ee]}],"translate-y":[{"translate-y":[ee]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"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:[P,A,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 me=ve(_e);function R(...e){return me(de(e))}var Le=({content:e,variant:a="select",size:t="lg",className:o,...u})=>jsxRuntime.jsx("div",{className:R("content-center px-1 text-center text-neutral-50",t==="sm"&&"h-4 min-w-4 text-xs",t==="md"&&"min-w-4.5 h-4.5 text-xs",t==="lg"&&"h-6 min-w-6",a==="select"&&"rounded-sm bg-primary-700",a==="alert"&&"rounded-full bg-error-700",a==="alert"&&t==="sm"&&"h-[0.375rem] min-w-[0.375rem] p-0",a==="alert"&&t==="md"&&"h-4 min-w-4",o),...u,children:!(a==="alert"&&t==="sm")&&e});var Ie=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),V=(...e)=>e.filter((a,t,o)=>!!a&&o.indexOf(a)===t).join(" ");var xe={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 ge=y.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:u="",children:l,iconNode:r,...d},f)=>y.createElement("svg",{ref:f,...xe,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:V("lucide",u),...d},[...r.map(([m,c])=>y.createElement(m,c)),...Array.isArray(l)?l:[l]]));var he=(e,a)=>{let t=y.forwardRef(({className:o,...u},l)=>y.createElement(ge,{ref:l,iconNode:a,className:V(`lucide-${Ie(e)}`,o),...u}));return t.displayName=`${e}`,t};var O=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Se=O;var at=["ghost","fill","fillWithCloseButton"],tt=["sm","md"],oa=cva.cva({base:"group relative px-4 leading-[130%] transition-all text-neutral-900 disabled:text-neutral-500",variants:{variant:{ghost:"[&:not(:disabled)]:hover:bg-primary-100 rounded font-semibold",fill:"border-1 !border-b-0 border-transparent [&:not(:disabled)]:aria-selected:elevation-10 [&:not(:disabled)]:hover:border-primary-300 !rounded-b-none aria-selected:font-semibold aria-selected:bg-neutral-50 rounded-lg [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500",fillWithCloseButton:"rounded-lg border-1 !border-b-0 [&:not(:disabled)]:aria-selected:elevation-10 border-transparent [&:not(:disabled)]:hover:aria-selected:border-transparent aria-selected:font-semibold [&:not(:disabled)]:hover:border-primary-300 bg-primary-100 [&:not(:disabled)]:hover:aria-selected:bg-neutral-50 [&:not(:disabled)]:hover:bg-primary-100 !rounded-b-none [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500 [&:not(:disabled)]:[&:not(:hover)]:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),la=cva.cva({base:"mr-2 shrink-0 flex transition-all ease-linear [&:not(:disabled)]:group-aria-selected:text-neutral-900",variants:{size:{sm:"",md:""}}}),ua=cva.cva({base:"absolute bottom-0 h-0 w-full rounded transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-aria-selected:bg-primary-500 group-aria-selected:group-disabled:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),da=cva.cva({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:bg-neutral-50 before:content-[''] before:rounded-lg before:rounded-b-none",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:bg-neutral-50 before:content-[''] before:rounded-lg before:rounded-b-none"},size:{sm:"before:top-10",md:"before:top-12"}}}),E=y__default.default.createContext({}),ot=y__default.default.forwardRef(({className:e,size:a="sm",variant:t="ghost",...o},u)=>jsxRuntime.jsx(E.Provider,{value:{size:a,variant:t},children:jsxRuntime.jsx(h__namespace.Root,{ref:u,...o,className:R(e,"relative")})})),ra=y__default.default.forwardRef(({className:e,...a},t)=>{let{variant:o}=y__default.default.useContext(E);return jsxRuntime.jsx(h__namespace.List,{ref:t,...a,className:R(o!=="ghost"&&"mx-6 space-x-2",e)})});ra.displayName=h__namespace.List.displayName;var sa=y__default.default.forwardRef(({className:e,badgeNumber:a,disabled:t,variant:o,StartIcon:u,onClose:l,...r},d)=>{let{size:f,variant:m}=y__default.default.useContext(E),c=o??m;return jsxRuntime.jsx(h__namespace.Trigger,{ref:d,disabled:t,className:oa({size:f,variant:c,className:e}),...r,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-center",children:[u&&jsxRuntime.jsx(u,{className:la({size:f}),size:f==="sm"?12:14}),r.children,jsxRuntime.jsxs("div",{className:R("flex items-center gap-1 empty:hidden",c==="ghost"&&"ml-1",c==="fill"&&"ml-3",c==="fillWithCloseButton"&&"ml-3"),children:[!t&&a&&jsxRuntime.jsx(Le,{variant:"alert",size:f==="sm"?"sm":"md",content:String(a)}),c==="fillWithCloseButton"&&jsxRuntime.jsx(Se,{onClick:l,className:"transition-colors [&:not(:disabled)]:group-aria-selected:text-neutral-900",size:14})]})]}),jsxRuntime.jsx("div",{className:ua({variant:c})})]})})});sa.displayName=h__namespace.Trigger.displayName;var fa=y__default.default.forwardRef(({className:e,...a},t)=>{let{variant:o,size:u}=y__default.default.useContext(E);return jsxRuntime.jsx(h__namespace.Content,{ref:t,className:da({variant:o,size:u,className:e}),...a})});fa.displayName=h__namespace.Content.displayName;/*! Bundled license information:
|
|
31
|
+
function ue(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(a=0;a<u;a++)e[a]&&(t=ue(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function de(){for(var e,a,t=0,o="",u=arguments.length;t<u;t++)(e=arguments[t])&&(a=ue(e))&&(o&&(o+=" "),o+=a);return o}var j="-",we=e=>{let a=Pe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:r=>{let d=r.split(j);return d[0]===""&&d.length!==1&&d.shift(),fe(d,a)||be(r)},getConflictingClassGroupIds:(r,d)=>{let f=t[r]||[];return d&&o[r]?[...f,...o[r]]:f}}},fe=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),u=o?fe(e.slice(1),o):void 0;if(u)return u;if(a.validators.length===0)return;let l=e.join(j);return a.validators.find(({validator:r})=>r(l))?.classGroupId},re=/^\[(.+)\]$/,be=e=>{if(re.test(e)){let a=re.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Pe=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return Ae(Object.entries(e.classGroups),t).forEach(([l,r])=>{Q(r,o,l,a);}),o},Q=(e,a,t,o)=>{e.forEach(u=>{if(typeof u=="string"){let l=u===""?a:se(a,u);l.classGroupId=t;return}if(typeof u=="function"){if(ke(u)){Q(u(o),a,t,o);return}a.validators.push({validator:u,classGroupId:t});return}Object.entries(u).forEach(([l,r])=>{Q(r,se(a,l),t,o);});});},se=(e,a)=>{let t=e;return a.split(j).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},ke=e=>e.isThemeGetter,Ae=(e,a)=>a?e.map(([t,o])=>{let u=o.map(l=>typeof l=="string"?a+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([r,d])=>[a+r,d])):l);return [t,u]}):e,Be=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,u=(l,r)=>{t.set(l,r),a++,a>e&&(a=0,o=t,t=new Map);};return {get(l){let r=t.get(l);if(r!==void 0)return r;if((r=o.get(l))!==void 0)return u(l,r),r},set(l,r){t.has(l)?t.set(l,r):u(l,r);}}},ie="!",ye=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,u=a[0],l=a.length,r=d=>{let f=[],m=0,c=0,x;for(let p=0;p<d.length;p++){let I=d[p];if(m===0){if(I===u&&(o||d.slice(p,p+l)===a)){f.push(d.slice(c,p)),c=p+l;continue}if(I==="/"){x=p;continue}}I==="["?m++:I==="]"&&m--;}let g=f.length===0?d:d.substring(c),w=g.startsWith(ie),S=w?g.substring(1):g,L=x&&x>c?x-c:void 0;return {modifiers:f,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:L}};return t?d=>t({className:d,parseClassName:r}):r},Me=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},Fe=e=>({cache:Be(e.cacheSize),parseClassName:ye(e),...we(e)}),De=/\s+/,Re=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:u}=a,l=[],r=e.trim().split(De),d="";for(let f=r.length-1;f>=0;f-=1){let m=r[f],{modifiers:c,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:w}=t(m),S=!!w,L=o(S?g.substring(0,w):g);if(!L){if(!S){d=m+(d.length>0?" "+d:d);continue}if(L=o(g),!L){d=m+(d.length>0?" "+d:d);continue}S=!1;}let p=Me(c).join(":"),I=x?p+ie:p,C=I+L;if(l.includes(C))continue;l.push(C);let T=u(L,S);for(let M=0;M<T.length;++M){let H=T[M];l.push(I+H);}d=m+(d.length>0?" "+d:d);}return d};function Te(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=ce(a))&&(o&&(o+=" "),o+=t);return o}var ce=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=ce(e[o]))&&(t&&(t+=" "),t+=a);return t};function ve(e,...a){let t,o,u,l=r;function r(f){let m=a.reduce((c,x)=>x(c),e());return t=Fe(m),o=t.cache.get,u=t.cache.set,l=d,d(f)}function d(f){let m=o(f);if(m)return m;let c=Re(f,t);return u(f,c),c}return function(){return l(Te.apply(null,arguments))}}var i=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},ne=/^\[(?:([a-z-]+):)?(.+)\]$/i,qe=/^\d+\/\d+$/,Ue=new Set(["px","full","screen"]),Oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,He=/\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$/,Ge=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ze=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ve=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>F(e)||Ue.has(e)||qe.test(e),A=e=>D(e,"length",Qe),F=e=>!!e&&!Number.isNaN(Number(e)),J=e=>D(e,"number",F),q=e=>!!e&&Number.isInteger(Number(e)),We=e=>e.endsWith("%")&&F(e.slice(0,-1)),s=e=>ne.test(e),B=e=>Oe.test(e),Ee=new Set(["length","size","percentage"]),Ne=e=>D(e,Ee,pe),Xe=e=>D(e,"position",pe),Ke=new Set(["image","url"]),Ze=e=>D(e,Ke,Ye),Je=e=>D(e,"",je),U=()=>!0,D=(e,a,t)=>{let o=ne.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},Qe=e=>He.test(e)&&!Ge.test(e),pe=()=>!1,je=e=>ze.test(e),Ye=e=>Ve.test(e);var _e=()=>{let e=i("colors"),a=i("spacing"),t=i("blur"),o=i("brightness"),u=i("borderColor"),l=i("borderRadius"),r=i("borderSpacing"),d=i("borderWidth"),f=i("contrast"),m=i("grayscale"),c=i("hueRotate"),x=i("invert"),g=i("gap"),w=i("gradientColorStops"),S=i("gradientColorStopPositions"),L=i("inset"),p=i("margin"),I=i("opacity"),C=i("padding"),T=i("saturate"),M=i("scale"),H=i("sepia"),_=i("skew"),$=i("space"),ee=i("translate"),N=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",s,a],n=()=>[s,a],ae=()=>["",P,A],G=()=>["auto",F,s],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],v=()=>["","0",s],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>[F,s];return {cacheSize:500,separator:":",theme:{colors:[U],spacing:[P,A],blur:["none","",B,s],brightness:b(),borderColor:[e],borderRadius:["none","","full",B,s],borderSpacing:n(),borderWidth:ae(),contrast:b(),grayscale:v(),hueRotate:b(),invert:v(),gap:n(),gradientColorStops:[e],gradientColorStopPositions:[We,A],inset:K(),margin:K(),opacity:b(),padding:n(),saturate:b(),scale:b(),sepia:v(),skew:b(),space:n(),translate:n()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"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:[...te(),s]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],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",q,s]}],basis:[{basis:K()}],"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",q,s]}],"grid-cols":[{"grid-cols":[U]}],"col-start-end":[{col:["auto",{span:["full",q,s]},s]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[q,s]},s]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"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:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[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":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"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:[B]},B]}],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",B,A]}],"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:[U]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",s]}],"line-clamp":[{"line-clamp":["none",F,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,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":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,A]}],"underline-offset":[{"underline-offset":["auto",P,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":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),Xe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ze]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:z()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[P,s]}],"outline-w":[{outline:[P,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[P,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",B,Je]}],"shadow-color":[{shadow:[U]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,s]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[x]}],saturate:[{saturate:[T]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"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:b()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:b()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[q,s]}],"translate-x":[{"translate-x":[ee]}],"translate-y":[{"translate-y":[ee]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"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:[P,A,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 me=ve(_e);function R(...e){return me(de(e))}var Le=({content:e,variant:a="select",size:t="lg",className:o,...u})=>jsxRuntime.jsx("div",{className:R("content-center px-1 text-center text-neutral-50",t==="sm"&&"h-4 min-w-4 text-xs",t==="md"&&"min-w-4.5 h-4.5 text-xs",t==="lg"&&"h-6 min-w-6",a==="select"&&"rounded-sm bg-primary-700",a==="alert"&&"rounded-full bg-error-700",a==="alert"&&t==="sm"&&"h-[0.375rem] min-w-[0.375rem] p-0",a==="alert"&&t==="md"&&"h-4 min-w-4",o),...u,children:!(a==="alert"&&t==="sm")&&e});var Ie=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),V=(...e)=>e.filter((a,t,o)=>!!a&&o.indexOf(a)===t).join(" ");var xe={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 ge=y.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:u="",children:l,iconNode:r,...d},f)=>y.createElement("svg",{ref:f,...xe,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:V("lucide",u),...d},[...r.map(([m,c])=>y.createElement(m,c)),...Array.isArray(l)?l:[l]]));var he=(e,a)=>{let t=y.forwardRef(({className:o,...u},l)=>y.createElement(ge,{ref:l,iconNode:a,className:V(`lucide-${Ie(e)}`,o),...u}));return t.displayName=`${e}`,t};var O=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Se=O;var tt=["ghost","fill","fillWithCloseButton"],ot=["sm","md"],oa=cva.cva({base:"group shrink-0 relative px-4 leading-[130%] transition-all text-neutral-900 disabled:text-neutral-500",variants:{variant:{ghost:"[&:not(:disabled)]:hover:bg-primary-100 rounded font-semibold",fill:"border-1 !border-b-0 border-transparent [&:not(:disabled)]:aria-selected:elevation-10 [&:not(:disabled)]:hover:border-primary-300 !rounded-b-none aria-selected:font-semibold aria-selected:bg-neutral-50 rounded-lg [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500",fillWithCloseButton:"rounded-lg border-1 !border-b-0 [&:not(:disabled)]:aria-selected:elevation-10 border-transparent [&:not(:disabled)]:hover:aria-selected:border-transparent aria-selected:font-semibold [&:not(:disabled)]:hover:border-primary-300 bg-primary-100 [&:not(:disabled)]:hover:aria-selected:bg-neutral-50 [&:not(:disabled)]:hover:bg-primary-100 !rounded-b-none [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500 [&:not(:disabled)]:[&:not(:hover)]:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),la=cva.cva({base:"mr-2 shrink-0 flex transition-all ease-linear [&:not(:disabled)]:group-aria-selected:text-neutral-900",variants:{size:{sm:"",md:""}}}),ua=cva.cva({base:"absolute bottom-0 h-0 w-full rounded transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-aria-selected:bg-primary-500 group-aria-selected:group-disabled:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),da=cva.cva({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:bg-neutral-50 before:content-[''] before:rounded-lg before:rounded-b-none",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:bg-neutral-50 before:content-[''] before:rounded-lg before:rounded-b-none"},size:{sm:"before:top-10",md:"before:top-12"}}}),E=y__default.default.createContext({}),lt=y__default.default.forwardRef(({className:e,size:a="sm",variant:t="ghost",...o},u)=>jsxRuntime.jsx(E.Provider,{value:{size:a,variant:t},children:jsxRuntime.jsx(h__namespace.Root,{ref:u,...o,className:R(e,"relative")})})),ra=y__default.default.forwardRef(({className:e,...a},t)=>{let{variant:o}=y__default.default.useContext(E);return jsxRuntime.jsx(h__namespace.List,{ref:t,...a,className:R("no-scrollbar flex max-w-full space-x-2 overflow-x-scroll pb-1",o!=="ghost"&&"px-6",e)})});ra.displayName=h__namespace.List.displayName;var sa=y__default.default.forwardRef(({className:e,badgeNumber:a,disabled:t,variant:o,StartIcon:u,onClose:l,...r},d)=>{let{size:f,variant:m}=y__default.default.useContext(E),c=o??m;return jsxRuntime.jsx(h__namespace.Trigger,{ref:d,disabled:t,className:oa({size:f,variant:c,className:e}),...r,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-center",children:[u&&jsxRuntime.jsx(u,{className:la({size:f}),size:f==="sm"?12:14}),r.children,jsxRuntime.jsxs("div",{className:R("flex items-center gap-1 empty:hidden",c==="ghost"&&"ml-1",c==="fill"&&"ml-3",c==="fillWithCloseButton"&&"ml-3"),children:[!t&&a&&jsxRuntime.jsx(Le,{variant:"alert",size:f==="sm"?"sm":"md",content:String(a)}),c==="fillWithCloseButton"&&jsxRuntime.jsx(Se,{onPointerDown:x=>{x.preventDefault(),x.stopPropagation(),l?.(x);},className:"transition-colors [&:not(:disabled)]:group-aria-selected:text-neutral-900",size:14})]})]}),jsxRuntime.jsx("div",{className:ua({variant:c})})]})})});sa.displayName=h__namespace.Trigger.displayName;var fa=y__default.default.forwardRef(({className:e,...a},t)=>{let{variant:o,size:u}=y__default.default.useContext(E);return jsxRuntime.jsx(h__namespace.Content,{ref:t,className:da({variant:o,size:u,className:e}),...a})});fa.displayName=h__namespace.Content.displayName;/*! Bundled license information:
|
|
32
32
|
|
|
33
33
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
34
34
|
(**
|
|
@@ -79,9 +79,9 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
79
79
|
*)
|
|
80
80
|
*/
|
|
81
81
|
|
|
82
|
-
exports.Tabs =
|
|
82
|
+
exports.Tabs = lt;
|
|
83
83
|
exports.TabsContent = fa;
|
|
84
84
|
exports.TabsList = ra;
|
|
85
|
-
exports.TabsSizes =
|
|
85
|
+
exports.TabsSizes = ot;
|
|
86
86
|
exports.TabsTrigger = sa;
|
|
87
|
-
exports.TabsVariants =
|
|
87
|
+
exports.TabsVariants = tt;
|
package/dist/tab.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as Tabs, f as TabsContent, d as TabsList, b as TabsSizes, e as TabsTrigger, a as TabsVariants } from './chunk-
|
|
1
|
+
export { c as Tabs, f as TabsContent, d as TabsList, b as TabsSizes, e as TabsTrigger, a as TabsVariants } from './chunk-3AQYQJHG.mjs';
|
|
2
2
|
import './chunk-UOTH67KT.mjs';
|
|
3
3
|
import './chunk-CYXKXVPJ.mjs';
|
|
4
4
|
import './chunk-YTVQ4PUI.mjs';
|