Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lui-ui/lui-vue

Package Overview
Dependencies
Maintainers
3
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lui-ui/lui-vue - npm Package Compare versions

Comparing version 0.33.8 to 0.34.0

.vscode/extensions.json

2

dist/lui-vue.umd.js

@@ -1,1 +0,1 @@

var cn=Object.defineProperty;var j=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var oe=(m,t,d)=>t in m?cn(m,t,{enumerable:!0,configurable:!0,writable:!0,value:d}):m[t]=d,c=(m,t)=>{for(var d in t||(t={}))le.call(t,d)&&oe(m,d,t[d]);if(j)for(var d of j(t))ie.call(t,d)&&oe(m,d,t[d]);return m};var ae=(m,t)=>{var d={};for(var w in m)le.call(m,w)&&t.indexOf(w)<0&&(d[w]=m[w]);if(m!=null&&j)for(var w of j(m))t.indexOf(w)<0&&ie.call(m,w)&&(d[w]=m[w]);return d};(function(m,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(m=typeof globalThis!="undefined"?globalThis:m||self,t(m.LuiVue={},m.Vue))})(this,function(m,t){"use strict";function d(e){const l=[];return e.map(i=>{l.push(...Object.values(i))}),l.join(" ").toString().replace(/\s+/g," ")}function w(e,l){const i=l==="none"?`bg-${e}`:l==="darker"?`bg-${e}-900`:`bg-${e}-100`,n=e==="white"?"text-primary":l==="none"?"text-white":l==="darker"?`text-${e}-50`:`text-${e}-500`;return{backgroundColor:i,fontColor:n}}function O(e,l,i){return{colorClasses:l==="none"||["white","black","light","dark"].includes(e)?`${i}-${e}`:l==="darker"?`${i}-${e}-800`:`${i}-${e}-50`}}function S(e,l){return{props:{[e||"variant"]:{type:String,default:l||"primary",validator(i){return(e==="variant"?["primary","secondary","info","success","warning","danger"]:["light","dark","white","black","primary","secondary","info","success","warning","danger"]).includes(i)}}}}}function $(e){return{props:{[e||"filter"]:{type:String,default:"none",validator(l){return["darker","lighter","none"].includes(l)}}}}}function p(e,l){const n=l||["2xs","xs","sm","md","lg"];return{props:{size:{type:String,default:e||"md",validator:a=>n.includes(a)}}}}function g(e,l){return{props:{[e]:{type:Boolean,default:l||!1}}}}function b(e,l,i){let n={type:String,default:l||""};return i!==void 0&&(n.validator=a=>i.includes(a)),{props:{[e]:n}}}function _(e,l,i,n){let a={type:l,default:i||""};return n!==void 0&&(a.validator=function(r){return n.includes(r)}),console.log("multiple",a),{props:{[e]:a}}}var y=(e,l)=>{const i=e.__vccOpts||e;for(const[n,a]of l)i[n]=a;return i};const re={mixins:[_("icon",[String,Object],"")],setup(e){const l=n=>n=="type"?e.icon[n]!==void 0:e.icon[n]!==void 0&&e.icon[n]!=="";return{classes:t.computed(()=>typeof e.icon=="string"?`ri-${e.icon}-line`:[`ri-${e.icon.name}${l("type")?e.icon.type!==""?`-${e.icon.type}`:"":"-line"}`,l("size")?`ri-${e.icon.size}`:""])}}};function se(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(n.classes)},null,2)}var L=y(re,[["render",se]]);const de={components:{LuiIcon:L},mixins:[b("title","title"),g("active",!1),g("disabled",!1),S(null,"secondary")],setup(e,{emit:l}){let i=t.inject("activeAccordion",t.ref(null)),n=t.computed(()=>i.value===e.title);function a(){const f=i.value!==e.title;l("onExpand",f),f?i.value=e.title:i.value=""}let r=t.ref(!1);const o=t.computed(()=>{const f={wrapper:{width:"w-full",border:"border",borderColor:e.disabled?"border-secondary-100":"border-secondary-200",borderRadius:"rounded-2xl",paddingY:"py-8",paddingX:"px-6",margin:"mb-7",focus:r.value?"ring-2 ring-primary ring-offset-2":""},button:{width:"w-full",display:"flex",alignItems:"items-center",justifyContent:"justify-between",color:`text-${e.variant}-700`,disabled:"disabled:text-secondary-300",outline:"outline-none"},title:{fontSize:"text-lg",fontWeight:"font-semibold",lineHeight:"leading-normal",textAlign:"text-left"},icon:{lineHeight:"leading-none",fontSize:"text-2xl"},content:{marginTop:"mt-6",fontColor:"text-secondary-600"}},{wrapper:s,button:C,title:h,icon:z,content:x}=f;return{wrapper:d([c({},s)]),button:d([c({},C)]),title:d([c({},h)]),icon:d([c({},z)]),content:d([c({},x)])}});return{expandItem:a,isActive:n,computedClasses:o,btnFocus:r}}},ce=["aria-expanded","disabled"];function me(e,l,i,n,a,r){const o=t.resolveComponent("lui-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.computedClasses.wrapper)},[t.createElementVNode("h3",null,[t.createElementVNode("button",{"aria-expanded":n.isActive,disabled:e.disabled,class:t.normalizeClass(n.computedClasses.button),onClick:l[0]||(l[0]=(...f)=>n.expandItem&&n.expandItem(...f)),onFocus:l[1]||(l[1]=f=>n.btnFocus=!0),onFocusout:l[2]||(l[2]=f=>n.btnFocus=!1)},[t.createElementVNode("span",{class:t.normalizeClass(n.computedClasses.title)},t.toDisplayString(e.title),3),t.createVNode(o,{icon:n.isActive?"close":"add",class:t.normalizeClass(n.computedClasses.icon)},null,8,["icon","class"])],42,ce)]),n.isActive?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.computedClasses.content),role:"region",tabindex:"0"},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)}var ue=y(de,[["render",me]]);const fe={setup(){let e=t.ref(null);t.provide("activeAccordion",e)}},ge={ref:"LuiAccordionGroup",class:"accordionGroup"};function be(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("div",ge,[t.renderSlot(e.$slots,"default")],512)}var he=y(fe,[["render",be]]);const ye={mixins:[S(),g("border"),p(),$()],setup(e){return{computedClasses:t.computed(()=>{const i={width:e.size==="2xs"?"w-2":e.size==="xs"?"w-3":e.size==="sm"?"w-4":e.size==="md"?"w-5":"w-6",height:e.size==="2xs"?"h-2":e.size==="xs"?"h-3":e.size==="sm"?"h-4":e.size==="md"?"h-5":"h-6",backgroundColor:w(e.variant,e.filter).backgroundColor,border:e.border?"border border-white":"",display:"inline-block",borderRadius:"rounded-full"};return d([c({},i)])})}}};function ke(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(n.computedClasses)},null,2)}var H=y(ye,[["render",ke]]);const Ce={components:{LuiIcon:L,LuiBadge:H},mixins:[S(),$(),p("md",["xs","sm","md","lg"]),g("rounded"),g("roundedFull"),g("border"),_("icon",[String,Object],""),b("img","none")],inheritAttrs:!1,props:{text:{type:String,default:"",validator(e){return e.length<=2}},badge:{type:[Object],default(){return{position:"",variant:""}},validator(e){return["","primary","secondary","info","success","warning","danger"].includes(e.variant)&&["","top","bottom"].includes(e.position)}}},emits:["click"],setup(e){const l=t.computed(()=>{const r={width:e.size==="xs"?"w-6":e.size==="sm"?"w-8":e.size==="md"?"w-12":e.size==="lg"?"w-16":"w-12",height:e.size==="xs"?"h-6":e.size==="sm"?"h-8":e.size==="md"?"h-12":e.size==="lg"?"h-16":"h-12",display:"flex",justifyContent:"justify-center",alignItems:"items-center",verticalAlign:"align-middle",textAlign:"text-center",position:"relative",borderSize:e.border?["xs","sm"].includes(e.size)?"border":"border-2":"",borderColor:e.border?"border-white":"",borderStyle:e.border?"border-solid":"",borderRadius:e.roundedFull?"rounded-full":e.rounded?e.size==="xs"?"rounded":e.size==="sm"?"rounded-md":e.size==="md"?"rounded-lg":"rounded-xl":"",backgroundColor:w(e.variant,e.filter).backgroundColor,fontColor:w(e.variant,e.filter).fontColor,fontSize:e.size==="2xs"||e.size==="xs"?"text-xs":e.size==="sm"?"text-sm":e.size==="md"?"text-md":e.size==="lg"?"text-xl":"",fontWeight:"font-semibold"};return d([c({},r)])}),i=t.computed(()=>{const r={lineHeight:"leading-none",fontSize:["2xs","xs"].includes(e.size)?"text-xs":e.size==="sm"?"text-sm":e.size==="md"?"text-xl":"text-2xl"};return d([c({},r)])}),n=t.computed(()=>{const r={width:"w-full",height:"h-full",borderRadius:e.roundedFull?"rounded-full":e.rounded?e.size==="xs"?"rounded":e.size==="sm"?"rounded-md":e.size==="md"?"rounded-lg":"rounded-xl":"",objectFit:"object-cover"};return d([c({},r)])}),a=t.computed(()=>{const r={position:"absolute",top:e.badge.position==="top"?"bottom-full":"top-full",left:"left-full",transform:e.badge.position==="top"?"-translate-x-1/2 translate-y-1/2":"-translate-x-1/2 -translate-y-1/2",margin:e.roundedFull?e.badge.position==="top"?e.size==="lg"?"-ml-2 -mb-2":e.size==="md"?"-ml-1.5 -mb-1.5":e.size==="sm"?"-ml-1 -mb-1":(e.size==="xs","-ml-0.5 -mb-0.5"):e.size==="lg"?"-ml-2 -mt-2":e.size==="md"?"-ml-1.5 -mt-1.5":e.size==="sm"?"-ml-1 -mt-1":(e.size==="xs","-ml-0.5 -mt-0.5"):""};return d([c({},r)])});return{computedClasses:l,iconClasses:i,imgClasses:n,badgeClasses:a}}},xe=["src"],we={key:2};function ze(e,l,i,n,a,r){const o=t.resolveComponent("lui-icon"),f=t.resolveComponent("lui-badge");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["lui-avatar",[n.computedClasses]]},e.$attrs,{onClick:l[0]||(l[0]=s=>e.$emit("click"))}),[e.icon!==""?(t.openBlock(),t.createBlock(o,{key:0,icon:e.icon,class:t.normalizeClass(n.iconClasses)},null,8,["icon","class"])):t.createCommentVNode("",!0),e.img!=="none"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.img,class:t.normalizeClass(n.imgClasses),alt:"Lui avatar"},null,10,xe)):(t.openBlock(),t.createElementBlock("span",we,t.toDisplayString(i.text.toUpperCase().slice(0,2)),1)),i.badge.variant!==""&&i.badge.position!==""?(t.openBlock(),t.createBlock(f,{key:3,class:t.normalizeClass(n.badgeClasses),variant:i.badge.variant,border:"",size:["xs","sm"].includes(e.size)?"2xs":"xs"},null,8,["class","variant","size"])):t.createCommentVNode("",!0)],16)}var pe=y(Ce,[["render",ze]]);const Be={components:{LuiIcon:L},mixins:[S(),$(),g("rounded"),g("roundedFull"),g("block"),g("uppercase"),g("fontBold"),_("prepend",[String,Object],"none"),_("icon",[String,Object],"none"),b("type","default",["default","text","outline","link","link-underline"]),p("md",["sm","md","lg"])],inheritAttrs:!1,props:{disableStyles:{type:[Array,Boolean],default:()=>[""],validator(e){return typeof e=="boolean"||["hover","focus","disable","underline",""].some(l=>e.indexOf(l)>=0)}}},setup(e,l){const i=t.computed(()=>{const a={padding:e.type==="link"||e.type==="link-underline"?"p-0":l.slots.default?e.size==="lg"?"px-6 py-3":e.size==="md"?"px-4 py-2":"px-3 py-1.5":e.size==="lg"?"p-3":e.size==="md"?"p-2.5":"p-1.5",backgroundColor:e.type==="default"?w(e.variant,e.filter).backgroundColor:"",fontColor:e.type==="default"?w(e.variant,e.filter).fontColor:e.filter==="none"?`text-${e.variant}`:e.filter==="darker"?`text-${e.variant}-800`:`text-${e.variant}-50`,fontWeight:e.fontBold===!0?"font-semibold":"",fontSize:e.size==="sm"?"text-xs":"text-base",lineHeight:"leading-normal",borderWidth:e.type==="outline"||e.type==="default"?"border":"",borderStyle:e.type==="outline"||e.type==="default"?"border-solid":"",borderColor:e.type==="outline"||e.type==="default"?e.filter==="none"?`border-${e.variant}`:e.filter==="darker"?`border-${e.variant}-800`:`border-${e.variant}-50`:"",borderBottom:typeof e.disableStyles=="boolean"&&e.disableStyles===!0||Array.isArray(e.disableStyles)&&e.disableStyles.includes("underline")?"":e.type==="link-underline"?e.filter==="darker"?`border-b border-${e.variant}-800`:e.filter==="lighter"?`border-b border-${e.variant}-100`:`border-b border-${e.variant}`:"",borderRadius:e.type!=="link"&&(e.rounded||e.roundedFull)?e.rounded?e.size==="sm"?"rounded-md":e.size==="md"?"rounded-lg":"rounded-xl":e.roundedFull?"rounded-full":"":"",uppercase:e.uppercase?"uppercase":"",width:!e.block||e.type==="link"?"":"w-full",display:e.prepend!=="none"||e.icon!=="none"?"flex":"",justifyContent:e.prepend!=="none"||e.icon!=="none"?"justify-center":"",alignItems:e.prepend!=="none"||e.icon!=="none"?"items-center":""};let r={hover:{backgroundColor:e.type==="link"||e.type==="link-underline"?"":e.type==="outline"?e.filter==="darker"?`hover:bg-${e.variant}-800`:e.filter==="lighter"?`hover:bg-${e.variant}-50`:`hover:bg-${e.variant}`:e.filter==="lighter"?`hover:bg-${e.variant}`:e.filter==="darker"?`hover:bg-${e.variant}`:e.variant!=="white"?`hover:bg-${e.variant}-50`:"hover:bg-primary",fontColor:e.type==="default"?e.filter==="none"?`hover:text-${e.variant}`:(e.filter==="darker","hover:text-white"):e.type!=="outline"?e.filter==="none"?`hover:text-${e.variant}--400`:e.filter==="darker"?`hover:text-${e.variant}--700`:`hover:text-${e.variant}--200`:"hover:text-white",borderColor:e.type==="outline"?e.filter==="none"?`hover:border-${e.variant}`:e.filter==="darker"?`hover:border-${e.variant}-800`:`hover:border-${e.variant}-50`:e.type==="default"?e.filter==="none"?`hover:border-${e.variant}-50`:`hover:border-${e.variant}`:""},disable:{backgroundColor:e.type==="default"?"disabled:bg-secondary-300":e.type==="outline"?"disabled:bg-secondary-100":"",fontColor:e.type==="default"?"disabled:text-white":"disabled:text-secondary-300",borderColor:"disabled:border-secondary-300",cursor:"disabled:cursor-not-allowed"},focus:{outline:"focus:outline-none",boxShadow:e.filter==="darker"?`focus:ring-2 focus:ring-${e.variant}-800 focus:ring-offset-2`:e.filter==="lighter"?`focus:ring-2 focus:ring-${e.variant}-50 focus:ring-offset-2`:e.variant!=="white"?`focus:ring-2 focus:ring-${e.variant} focus:ring-offset-2`:"focus:ring-2 focus:ring-primary focus:ring-offset-2"}};typeof e.disableStyles=="boolean"&&e.disableStyles===!0&&(r=""),Array.isArray(e.disableStyles)&&e.disableStyles.map(C=>r[C]="");const{disable:o,focus:f,hover:s}=r;return d([c({},a),c({},o),c({},f),c({},s)])}),n=t.computed(()=>{const a={fontSize:e.size==="sm"?"text-base":e.size==="md"?"text-xl":"text-2xl",lineHeight:e.size==="lg"?"leading-normal":"leading-none",prependMargin:e.prepend!=="none"&&!!l.slots.default&&l.slots.default()[0].children!=""&&e.icon==="none"?e.size==="sm"?"mr-1.5 -ml-0.5":"mr-2 -ml-1":"m-0",suffixMargin:e.prepend==="none"&&!!l.slots.default&&l.slots.default()[0].children!=""&&e.icon!=="none"?e.size==="sm"?"ml-1.5 -mr-0.5":"ml-2 -mr-1":"m-0"};return d([c({},a)])});return{computedClasses:i,iconClasses:n}}};function Se(e,l,i,n,a,r){const o=t.resolveComponent("lui-icon");return t.openBlock(),t.createElementBlock("button",t.mergeProps({class:[n.computedClasses]},e.$attrs),[e.prepend!=="none"?(t.openBlock(),t.createBlock(o,{key:0,icon:e.prepend,class:t.normalizeClass(n.iconClasses)},null,8,["icon","class"])):t.createCommentVNode("",!0),e.prepend!=="none"&&e.icon!=="none"?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(e.size==="sm"?"mx-1.5":"mx-2.5")},[t.renderSlot(e.$slots,"default")],2)):t.renderSlot(e.$slots,"default",{key:2}),e.icon!=="none"?(t.openBlock(),t.createBlock(o,{key:3,icon:e.icon,class:t.normalizeClass(n.iconClasses)},null,8,["icon","class"])):t.createCommentVNode("",!0)],16)}var T=y(Be,[["render",Se]]);const _e=()=>{},$e=Array.isArray,Le=e=>typeof e=="function",Ee=e=>typeof e=="symbol";let Ve;function Ae(e,l){l=l||Ve,l&&l.active&&l.effects.push(e)}const Ne=e=>{const l=new Set(e);return l.w=0,l.n=0,l},q=e=>(e.w&E)>0,Y=e=>(e.n&E)>0,Pe=({deps:e})=>{if(e.length)for(let l=0;l<e.length;l++)e[l].w|=E},Ie=e=>{const{deps:l}=e;if(l.length){let i=0;for(let n=0;n<l.length;n++){const a=l[n];q(a)&&!Y(a)?a.delete(e):l[i++]=a,a.w&=~E,a.n&=~E}l.length=i}};let N=0,E=1;const M=30,P=[];let V;class We{constructor(l,i=null,n){this.fn=l,this.scheduler=i,this.active=!0,this.deps=[],Ae(this,n)}run(){if(!this.active)return this.fn();if(!P.includes(this))try{return P.push(V=this),Te(),E=1<<++N,N<=M?Pe(this):U(this),this.fn()}finally{N<=M&&Ie(this),E=1<<--N,Fe(),P.pop();const l=P.length;V=l>0?P[l-1]:void 0}}stop(){this.active&&(U(this),this.onStop&&this.onStop(),this.active=!1)}}function U(e){const{deps:l}=e;if(l.length){for(let i=0;i<l.length;i++)l[i].delete(e);l.length=0}}let F=!0;const J=[];function Te(){J.push(F),F=!0}function Fe(){const e=J.pop();F=e===void 0?!0:e}function Re(){return F&&V!==void 0}function De(e,l){let i=!1;N<=M?Y(e)||(e.n|=E,i=!q(e)):i=!e.has(V),i&&(e.add(V),V.deps.push(e))}function je(e,l){for(const i of $e(e)?e:[...e])(i!==V||i.allowRecurse)&&(i.scheduler?i.scheduler():i.run())}new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Ee));function R(e){const l=e&&e.__v_raw;return l?R(l):e}function Oe(e){Re()&&(e=R(e),e.dep||(e.dep=Ne()),De(e.dep))}function He(e,l){e=R(e),e.dep&&je(e.dep)}class Me{constructor(l,i,n){this._setter=i,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new We(l,()=>{this._dirty||(this._dirty=!0,He(this))}),this.__v_isReadonly=n}get value(){const l=R(this);return Oe(l),l._dirty&&(l._dirty=!1,l._value=l.effect.run()),l._value}set value(l){this._setter(l)}}function Q(e,l){let i,n;const a=Le(e);return a?(i=e,n=_e):(i=e.get,n=e.set),new Me(i,n,a||!n)}Promise.resolve();const Ke={mixins:[b("img","none"),b("imgAlt","imgAlt"),g("border"),g("rounded"),g("bodyPadding",!0),$("borderFilter"),$("bgFilter"),$("textFilter"),S("bgVariant","light"),S("textVariant","dark"),S("borderVariant","secondary")],setup(e){const l=Q(()=>{const n={backgroundColor:O(e.bgVariant,e.bgFilter,"bg").colorClasses,backgroundClip:"bg-clip-border",border:e.border?"border":"",borderStyle:e.border?"border-solid":"",borderColor:O(e.borderVariant,e.borderFilter,"border").colorClasses,color:O(e.textVariant,e.textFilter,"text").colorClasses,borderRadius:e.rounded?"rounded-lg":"",flexDirection:"flex-col",display:"flex",minWidth:"min-w-0",position:"relative",wordBreak:"break-words"};return d([c({},n)])}),i=Q(()=>d([c({},{width:"w-full",height:"h-full"})]));return{computedClasses:l,imgClasses:i}}},Ge=["src","alt"];function Xe(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lui-card",n.computedClasses])},[e.img!=="none"?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.img,alt:e.imgAlt,class:t.normalizeClass(n.imgClasses)},null,10,Ge)):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["lui-card--body",e.bodyPadding?"p-6":"p-0"])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)}var qe=y(Ke,[["render",Xe]]);const Ye={mixins:[p("sm",["sm","md","lg"])],inheritAttrs:!1,props:{state:{type:[String,Boolean,null],default:null,validator(e){return[null,"warning",!0,!1].includes(e)}},modelValue:{type:Boolean,required:!0,default:!1}},emits:["update:modelValue"],setup(e,{attrs:l}){function i(o){return o[e.size]}const n=t.computed(()=>l.id),a=t.computed(()=>{const o={width:i({sm:"8px",md:"12px",lg:"14px"}),height:i({sm:"6px",md:"10px",lg:"12px"})};return{width:o.width,height:o.height}});return{computedClasses:t.computed(()=>{const o={parent:{display:"flex items-center"},input:{position:"absolute",overflow:"overflow-hidden",outline:"outline-none",width:e.size==="sm"?"w-4":e.size==="md"?"w-5":"w-6",height:e.size==="sm"?"h-4":e.size==="md"?"h-5":"h-6",zIndex:"z-20",border:"border-0",opacity:"opacity-0",peer:"peer"},label:{position:"relative",display:"inline-flex",alignItems:"items-center",justifyContent:"justify-center",fontSize:i({sm:"text-xs",md:"text-sm",lg:"text-base"}),color:"text-secondary-600",cursor:"cursor-pointer",border:"border",width:i({sm:"w-4",md:"w-5",lg:"w-6"}),height:i({sm:"h-4",md:"h-5",lg:"h-6"}),ringWidth:"peer-focus:ring-2",ringOffset:"peer-focus:ring-offset-2",ringColor:e.state===null?"peer-focus:ring-primary":e.state==="warning"?"peer-focus:ring-warning":e.state===!1?"peer-focus:ring-danger":"peer-focus:ring-success",borderColorDisabled:"peer-disabled:border-secondary-300",borderColorChecked:"peer-checked:border-white",borderColor:e.state===null?"border-primary":e.state==="warning"?"border-warning":e.state===!1?"border-danger":"border-success",borderRadius:i({sm:"rounded",md:"rounded",lg:"rounded-md"}),backgroundColorDisabled:"peer-disabled:bg-secondary-100",backgroundColorChecked:e.state===null?"peer-checked:bg-primary":e.state==="warning"?"peer-checked:bg-warning":e.state===!1?"peer-checked:bg-danger":"peer-checked:bg-success",backgroundColor:"bg-white"},icon:{position:"relative",left:"left-0",top:"top-0",zIndex:"z-10",color:"text-white peer-disabled:text-secondary-300"}};return{parent:d([c({},o.parent)]),input:d([c({},o.input)]),label:d([c({},o.label)]),icon:d([c({},o.icon)])}}),computedFor:n,iconSizes:a}}},Ue=["checked"],Je=["for"],Qe=["width","height","viewBox"],Ze=["d"];function ve(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.computedClasses.parent)},[t.createElementVNode("input",t.mergeProps({type:"checkbox",class:n.computedClasses.input},e.$attrs,{checked:i.modelValue,onChange:l[0]||(l[0]=o=>e.$emit("update:modelValue",o.target.checked))}),null,16,Ue),t.createElementVNode("span",{for:n.computedFor,class:t.normalizeClass(n.computedClasses.label)},[(t.openBlock(),t.createElementBlock("svg",{width:n.iconSizes.width,height:n.iconSizes.height,viewBox:e.size==="sm"?"0 0 8 6":e.size==="md"?"0 0 12 10":"0 0 14 12",fill:"none",class:t.normalizeClass(n.computedClasses.icon)},[t.createElementVNode("path",{d:e.size==="sm"?"M1 3.4L2.71429 5L7 1":e.size==="md"?"M2 5.6L4.28571 8L10 2":"M2 6.8L4.85714 10L12 2",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ze)],10,Qe))],10,Je)],2)}var Z=y(Ye,[["render",ve]]);const et={components:{LuiIcon:L},mixins:[S(),$(),p("sm",["sm","md","lg"]),g("rounded"),g("roundedFull"),g("clickable"),_("prepend",[String,Object],"none"),_("icon",[String,Object],"none"),b("type","default",["default","outline"])],inheritAttrs:!1,setup(e){const l=t.computed(()=>{const n={backgroundColor:e.type==="default"?w(e.variant,e.filter).backgroundColor:"",paddingY:e.size==="sm"?"py-0.5":e.size==="md"?"py-1":"py-2",paddingX:e.size==="sm"?"px-1.5":e.size==="md"?"px-2":"px-3",borderWidth:"border",borderStyle:"border-solid",borderColor:e.type==="outline"||e.type==="default"?e.filter==="none"?`border-${e.variant}`:e.filter==="darker"?`border-${e.variant}-800`:`border-${e.variant}-50`:"",lineHeight:"leading-normal",fontSize:e.size==="sm"?"text-xs":e.size==="md"?"text-sm":"text-base",fontColor:e.filter==="none"?e.type==="default"?"text-white":`text-${e.variant}`:e.filter==="darker"?e.type==="default"?"text-white":`text-${e.variant}-800`:e.type==="default"?`text-${e.variant}`:`text-${e.variant}-50`,borderRadius:e.rounded?e.size==="sm"?"rounded-md":e.size==="md"?"rounded-lg":"rounded-xl":e.roundedFull?"rounded-full":"",display:e.icon!=="none"||e.prepend!=="none"?"flex":"inline-block",alingItmes:e.icon!=="none"||e.prepend!=="none"?"items-center":"",width:e.icon!=="none"||e.prepend!=="none"?"w-max":""};return d([c({},n)])}),i=t.computed(()=>({size:e.size==="sm"?"text-xs":e.size==="md"?"text-sm":"text-base",marginPrepend:e.size==="sm"?"mr-0.5":e.size==="md"?"mr-1":"mr-1.5",marginIcon:e.size==="sm"?"ml-0.5":e.size==="md"?"ml-1":"ml-1.5",lineHeight:"leading-none"}));return{computedClasses:l,iconClasses:i}}},tt=["tabindex","role"];function nt(e,l,i,n,a,r){const o=t.resolveComponent("lui-icon");return t.openBlock(),t.createElementBlock("span",t.mergeProps({tabindex:e.clickable?"0":null,role:e.clickable?"button":null,class:n.computedClasses},e.$attrs),[e.prepend!=="none"?(t.openBlock(),t.createBlock(o,{key:0,icon:e.prepend,class:t.normalizeClass([n.iconClasses.size,n.iconClasses.marginPrepend,n.iconClasses.lineHeight])},null,8,["icon","class"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.icon!=="none"?(t.openBlock(),t.createBlock(o,{key:1,icon:e.icon,class:t.normalizeClass([n.iconClasses.size,n.iconClasses.marginIcon,n.iconClasses.lineHeight])},null,8,["icon","class"])):t.createCommentVNode("",!0)],16,tt)}var v=y(et,[["render",nt]]);const lt={components:{LuiButton:T},mixins:[S(),$(),g("rounded",!0),g("block",!1),g("uppercase"),_("icon",[String,Object],"default"),_("prepend",[String,Object],"none"),g("fontBold",!1),b("placement","bottomLeft",["bottomLeft","bottomRight","topLeft","topRight","rightTop","rightBottom","leftTop","leftBottom"]),b("text",""),p("md",["sm","md","lg"])],emits:["onChange"],setup(e,{emit:l}){t.onMounted(()=>{document.addEventListener("click",r)}),t.onUnmounted(()=>{document.removeEventListener("click",r)});const i=t.ref({variant:e.variant,filter:e.filter,rounded:e.rounded,block:e.block,size:e.size});t.provide("parentProps",i.value);const n=t.ref(!1),a=t.ref(null);t.watch(n,s=>{l("onChange",s)});function r(s){a.value.$el.contains(s.target)||(n.value=!1)}const o=t.computed(()=>{if(e.icon==="default"){let s={prepend:"none",append:"none"};return e.placement.startsWith("bottom")&&(n.value?s.append="arrow-down-s":s.append="arrow-up-s"),e.placement.startsWith("top")&&(n.value?s.append="arrow-up-s":s.append="arrow-down-s"),e.placement.startsWith("right")&&(n.value?s.append="arrow-right-s":s.append="arrow-left-s"),e.placement.startsWith("left")&&(n.value?s.prepend="arrow-left-s":s.prepend="arrow-right-s"),s}return null}),f=t.computed(()=>{const s={container:{position:"relative",width:e.block?"w-full":"w-max",zIndex:n.value?"z-50":"z-10"},content:{position:"absolute",top:e.placement.includes("bottom")||e.placement.includes("Bottom")?"top-full":e.placement.includes("Top")?"top-0":"",bottom:e.placement.startsWith("top")?"bottom-full":"",left:e.placement.includes("Left")?"left-0":e.placement.startsWith("right")?"left-full":"",right:e.placement.includes("Right")?"right-0":e.placement.startsWith("left")?"right-full":"",backgroundColor:"bg-white",borderRadius:e.rounded?"rounded-xl":"",borderWidth:"border",borderColor:"border-secondary-200",width:"w-max",paddingBottom:"pb-2",marginTop:e.placement.includes("bottom")?"mt-2":"",marginBottom:e.placement.includes("top")?"mb-2":"",marginLeft:e.placement.includes("right")?"ml-2":"",marginRight:e.placement.includes("left")?"mr-2":"",boxShadow:"shadow-md"}};return{container:d([c({},s.container)]),content:d([c({},s.content)])}});return{menuActive:n,computedClasses:f,iconName:o,luiDropdown:a}}};function it(e,l,i,n,a,r){const o=t.resolveComponent("lui-button");return t.openBlock(),t.createElementBlock("div",{role:"listbox",class:t.normalizeClass(["dropdown",n.computedClasses.container])},[t.createVNode(o,t.mergeProps({type:"link",ref:"luiDropdown"},e.$attrs,{variant:e.variant,size:e.size,rounded:e.rounded,"aria-expanded":n.menuActive,icon:e.icon==="default"?n.iconName.append:e.icon,prepend:e.icon==="default"?n.iconName.prepend:e.prepend,block:e.block,uppercase:e.uppercase,filter:e.filter,"font-bold":e.fontBold,onClick:l[0]||(l[0]=f=>n.menuActive=!n.menuActive)}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.text),1)]),_:1},16,["variant","size","rounded","aria-expanded","icon","prepend","block","uppercase","filter","font-bold"]),t.withDirectives(t.createElementVNode("ul",{class:t.normalizeClass([n.computedClasses.content,"dropdown-menu"])},[t.renderSlot(e.$slots,"default")],2),[[t.vShow,n.menuActive]])],2)}var ot=y(lt,[["render",it]]);const at={mixins:[g("disabled")],inheritAttrs:!1,setup(e){const l=t.inject("parentProps");return{computedClasses:t.computed(()=>{const n={marginLeft:"ml-2",marginRight:"mr-2",marginTop:"mt-2",padding:l.size==="sm"?"p-1.5":l.size==="md"?"p-2":"p-3",borderRadius:l.rounded?"rounded-xl":"",cursor:e.disabled?"cursor-not-allowed":"cursor-pointer",backgroundColor:e.disabled?"":`hover:bg-${l.variant}-100`,fontSize:l.size==="sm"?"text-xs":"text-base",lineHeight:"leading-normal",fontColor:e.disabled?"text-secondary-300":`text-secondary-600 hover:text-${l.variant}`,display:"block",outline:"focus:outline-none",ring:e.disabled?"":`focus:ring-2 focus:ring-${l.variant}`,width:l.block?"w-full":""};return d([c({},n)])})}}},rt=["tabIndex"];function st(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("li",null,[t.createElementVNode("a",t.mergeProps({class:n.computedClasses},e.$attrs,{tabIndex:e.disabled?null:"0"}),[t.renderSlot(e.$slots,"default")],16,rt)])}var dt=y(at,[["render",st]]);const ct={},mt={class:"mt-1 -mb-1 text-secondary-100"};function ut(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("hr",mt)}var ft=y(ct,[["render",ut]]);const gt={mixins:[p("default",["2xs","xs","sm","md","lg","xl","default"]),b("level","2",["1","2","3","4","5","6"]),g("display")],setup(e){function l(r,o){const f=o?"display":"normal";return{6:{normal:"text-sm",display:"text-4xl"},5:{normal:"text-base",display:"text-5xl"},4:{normal:"text-lg",display:"text-6xl"},3:{normal:"text-xl",display:"text-7xl"},2:{normal:"text-2xl",display:"text-8xl"},1:{normal:"text-3xl",display:"text-9xl"},"2xs":{normal:"text-sm",display:"text-4xl"},xs:{normal:"text-base",display:"text-5xl"},sm:{normal:"text-lg",display:"text-6xl"},md:{normal:"text-xl",display:"text-7xl"},lg:{normal:"text-2xl",display:"text-8xl"},xl:{normal:"text-3xl",display:"text-9xl"}}[r][f]}function i(r){return{6:"leading-4.5",5:"leading-5",4:"leading-6",3:"leading-6",2:"leading-8",1:"leading-9","2xs":"leading-4.5",xs:"leading-5",sm:"leading-6",md:"leading-6",lg:"leading-8",xl:"leading-9"}[r]}const n=t.computed(()=>`h${e.level}`),a=t.computed(()=>{const r={fontSize:e.size==="default"?l(e.level,e.display):l(e.size,e.display),lineHeight:e.display?"":e.size==="default"?i(e.level):i(e.size)};return d([c({},r)])});return{setLevel:n,computedClasses:a}}};function bt(e,l,i,n,a,r){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.setLevel),{class:t.normalizeClass(n.computedClasses)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["class"])}var ht=y(gt,[["render",bt]]);const yt={components:{LuiIcon:L,LuiButton:T},mixins:[_("prepend",[String,Object],"none"),b("modelValue",""),p("sm",["sm","md","lg"]),g("clear",!1),g("block",!1),b("description","none")],inheritAttrs:!1,props:{state:{type:[String,Boolean,null],default:null,validator(e){return[null,"warning",!0,!1].includes(e)}}},emits:["update:modelValue","change"],setup(e,l){const i=t.computed(()=>{const z=l.attrs,{class:s,style:C}=z,h=ae(z,["class","style"]);return{parent:{attrClass:s,style:C},input:h}});function n(s){l.emit("update:modelValue",s.target.value),l.emit("change",s.target.value)}const a=t.computed(()=>{const s={paddingLeft:e.prepend==="none"?e.size==="lg"?"pl-3":"pl-2":e.size==="lg"?"pl-11":e.size==="md"?"pl-9":"pl-8",paddingRight:e.state!==null&&e.clear===!0?e.size==="lg"?"pr-20":e.size==="md"?"pr-16":"pr-14":e.state===null&&e.clear===!1?e.size==="lg"?"pr-3":"pr-2":e.size==="lg"?"pr-11":e.size==="md"?"pr-9":"pr-8",paddingY:e.size==="sm"?"py-1.5":e.size==="md"?"py-2":"py-3",border:e.state==="warning"?"border border-warning":e.state===!0?"border border-success":e.state===!1?"border border-danger":"border border-secondary-200",ring:e.state==="warning"?"ring-4 ring-warning-100":e.state===!0?"ring-4 ring-success-100":e.state===!1?"ring-4 ring-danger-100":"",borderRadius:e.size==="sm"?"rounded-md":e.size==="md"?"rounded-lg":"rounded-xl",fontSize:e.size==="sm"?"text-xs":"text-base",lineHeight:"leading-normal",fontColor:"text-secondary-600 dark:text-secondary-50 placeholder:text-seconadry-300 dark:placeholder:text-secondary-200",width:"w-full",backgroundColor:"bg-secondary-50 dark:bg-secondary-900"},C={focus:{ring:e.state===null?"focus:ring-4 focus:ring-primary-100":"",outline:"outline-none",border:e.state===null?"focus:border-primary":""},disabled:{border:"disabled:border-secondary",backgroundColor:"disabled:bg-secondary-100",fontColor:"disabled:text-secondary-300 dark:disabled:text-secondary-300",ring:"disabled:ring-0 disabled:ring-transparent"}},{focus:h,disabled:z}=C;return d([c({},s),c({},h),c({},z)])}),r=t.computed(()=>`${e.state===!0?"text-success":e.state===!1?"text-danger":e.state==="warning"?"text-warning":"text-secondary-600"} inline-block text-xs leading-normal mt-1`),o=t.computed(()=>({name:l.attrs.disabled?"forbid":e.state==="warning"?"feedback":e.state===!1?"error-warning":e.state===!0?"checkbox-circle":"",size:e.size==="sm"?"text-base":e.size==="md"?"text-xl":"text-2xl",color:l.attrs.disabled?"text-secondary-600":e.state==="warning"?"text-warning":e.state===!1?"text-danger":e.state===!0?"text-success":"",position:"absolute top-2/4 transform -translate-y-1/2",prepend:e.size==="lg"?"text-secondary-600 left-3":"text-secondary-600 left-2",state:e.size==="lg"?"right-3":"right-2",clear:e.state===null?e.size==="lg"?"right-3":"right-2":e.size==="lg"?"right-12":e.size==="md"?"right-9":"right-8"}));return{computedClasses:a,descriptionClasses:r,iconClasses:o,parentClasses:"relative",handleInputEvents:n,computedAttrs:i}}},kt=["value"];function Ct(e,l,i,n,a,r){const o=t.resolveComponent("lui-icon"),f=t.resolveComponent("lui-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([e.block?"w-full":"w-48",n.computedAttrs.parent.attrClass]),style:t.normalizeStyle(n.computedAttrs.parent.style)},[t.createElementVNode("div",{class:t.normalizeClass([n.parentClasses])},[e.prepend!=="none"?(t.openBlock(),t.createBlock(o,{key:0,icon:e.prepend,class:t.normalizeClass([n.iconClasses.size,n.iconClasses.position,n.iconClasses.prepend])},null,8,["icon","class"])):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps({ref:"Linput"},n.computedAttrs.input,{class:n.computedClasses,value:e.modelValue,onInput:l[0]||(l[0]=s=>n.handleInputEvents(s))}),null,16,kt),e.clear&&!e.$attrs.disabled?(t.openBlock(),t.createBlock(f,{key:1,type:"link",variant:"secondary",icon:"close",size:e.size,"disable-styles":"",class:t.normalizeClass([n.iconClasses.position,n.iconClasses.clear]),onClick:l[1]||(l[1]=s=>e.$refs.Linput.value="")},null,8,["size","class"])):t.createCommentVNode("",!0),i.state!==null?(t.openBlock(),t.createBlock(o,{key:2,icon:n.iconClasses.name,class:t.normalizeClass([n.iconClasses.size,n.iconClasses.color,n.iconClasses.position,n.iconClasses.state])},null,8,["icon","class"])):t.createCommentVNode("",!0)],2),e.description!=="none"?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(n.descriptionClasses)},t.toDisplayString(e.description),3)):t.createCommentVNode("",!0)],6)}var xt=y(yt,[["render",Ct]]);const wt={mixins:[p("sm",["sm","lg"])],inheritAttrs:!1,setup(e){return{classes:t.computed(()=>{const i={fontColor:"text-secondary-600",fontSize:e.size==="sm"?"text-xs":"text-sm",lineHeight:"leading-normal"};return d([c({},i)])})}}};function zt(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("label",t.mergeProps({role:"label"},e.$attrs,{class:n.classes}),[t.renderSlot(e.$slots,"default")],16)}var pt=y(wt,[["render",zt]]);const Bt={inheritAttrs:!1,mixins:[p("sm",["xsm","sm","lg","xlg"]),b("tag","a",["a","vue","nuxt"]),S("variant","secondary"),g("underline",!1)],setup(e){function l(a){return a[e.size]}const i=t.computed(()=>e.tag==="vue"?"router-link":e.tag==="nuxt"?t.resolveComponent("nuxt-link"):"a");return{computedClasses:t.computed(()=>{const a={fontSize:l({xsm:"text-xs",sm:"text-sm",lg:"text-base",xlg:"text-xl"}),lineHeight:"leading-normal",textDecoration:e.underline?"underline":""};return{classes:d([c({},a)])}}),componentName:i}}};function St(e,l,i,n,a,r){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.componentName),t.mergeProps({class:n.computedClasses.classes},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["class"])}var _t=y(Bt,[["render",St]]);const $t={inheritAttrs:!1,components:{LuiIcon:L,LuiButton:T,LuiCheckbox:Z},mixins:[b("state","info",["info","success","warning","danger"]),g("show",!1),b("title",""),b("description",""),g("vertical",!1),g("showCheckbox",!1),g("showIcon",!0),b("checkboxLabel","Dont show again"),b("confirmLabel","Confirm"),b("cancelLabel","Cancel")],emits:["onConfirm","onCancel","onCheckboxChanged"],setup(e,{slots:l}){const i=t.computed(()=>!!l.icon),n=t.computed(()=>({title:!!l.title,description:!!l.description,check:!!l.check,cancelButton:!!l.cancelButton,confirmButton:!!l.confirmButton})),a={success:"check-double",warning:"feedback",info:"information",danger:"error-warning"};return{computedClasses:t.computed(()=>{const o={wrapper:{position:"fixed",left:"left-0",top:"top-0",overflow:"overflow-hidden",width:"w-screen",height:"h-screen",display:"flex",alignItems:"items-center",justifyContent:"justify-center",zIndex:e.show?"z-50":""},dialog:{padding:"p-6",minWidth:"min-w-[20rem]",maxWidth:e.vertical?"max-w-sm":"",backgroundColor:"bg-white",borderWidth:"border",borderColor:"border-secondary-200",borderRadius:"rounded-xl",boxShadow:"shadow",display:e.vertical?"flex":"grid",gridCols:e.vertical?"":"grid-cols-[48px_420px]",gridGap:e.vertical?"":"gap-x-4",alingItems:e.vertical?"items-center":"",flexDirection:e.vertical?"flex-col":""},iconWrapper:{width:"w-12",height:"h-12",display:"grid",palceItems:"place-items-center",borderRadius:"rounded-full",backgroundColor:e.state==="info"?"bg-primary-50":`bg-${e.state}-50`,color:e.state==="info"?"text-primary":`text-${e.state}`,fontSize:"text-2xl",lineHeight:"leading-none",marginBottom:e.vertical?"mb-4":""},title:{color:"text-secondary-800",fontSize:"text-lg",fontWeight:"font-semibold",marginBottom:"mb-1",textAlign:e.vertical?"text-center":""},description:{color:"text-secondary-600",fontSize:"text-base",marginBottom:"mb-12",textAlign:e.vertical?"text-center":""},bottom:{display:"flex",alignItems:e.vertical?"items-center":"",flexDirection:e.vertical?"flex-col":""},checkWrapper:{display:"flex",color:"text-secondary-600",alignItems:e.vertical?"":"items-center",flexOrder:e.vertical?"order-last":"",spaceX:"space-x-2"},buttonWrapper:{display:"flex",alignItems:"items-center",marginLeft:e.vertical?"":"ml-auto",flexDirection:e.vertical?"flex-col":"",width:e.vertical?"w-full":"",spaceY:e.vertical?"space-y-3":"",spaceX:e.vertical?"":"space-x-3",marginBottom:e.vertical?"mb-4":""}};return{wrapper:d([c({},o.wrapper)]),dialog:d([c({},o.dialog)]),iconWrapper:d([c({},o.iconWrapper)]),title:d([c({},o.title)]),description:d([c({},o.description)]),bottom:d([c({},o.bottom)]),checkWrapper:d([c({},o.checkWrapper)]),buttonWrapper:d([c({},o.buttonWrapper)])}}),hasIconSlot:i,iconNames:a,checkNamedSlots:n}}},Lt={for:"lui-modal-checkbox"};function Et(e,l,i,n,a,r){const o=t.resolveComponent("lui-icon"),f=t.resolveComponent("lui-checkbox"),s=t.resolveComponent("lui-button");return e.show?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.computedClasses.wrapper),style:{"background-color":"rgba(0, 0, 0, 0.6)"}},[t.createElementVNode("div",t.mergeProps(e.$attrs,{id:"dialog1",role:"dialog","aria-labelledby":"dialog1_label","aria-modal":"true",class:n.computedClasses.dialog}),[e.showIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.computedClasses.iconWrapper)},[t.renderSlot(e.$slots,"icon"),n.hasIconSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(o,{key:0,icon:n.iconNames[e.state]},null,8,["icon"]))],2)):t.createCommentVNode("",!0),t.createElementVNode("div",null,[n.checkNamedSlots.title?t.renderSlot(e.$slots,"title",{key:0}):(t.openBlock(),t.createElementBlock("h3",{key:1,class:t.normalizeClass(["title",n.computedClasses.title])},t.toDisplayString(e.title),3)),n.checkNamedSlots.description?t.renderSlot(e.$slots,"description",{key:2}):(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(["description",n.computedClasses.description])},t.toDisplayString(e.description),3)),t.renderSlot(e.$slots,"default"),t.createElementVNode("div",{class:t.normalizeClass(["bottom",n.computedClasses.bottom])},[e.showCheckbox?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["check",n.computedClasses.checkWrapper])},[n.checkNamedSlots.check?t.renderSlot(e.$slots,"check",{key:0}):(t.openBlock(),t.createBlock(f,{key:1,id:"lui-modal-checkbox",size:"lg",onOnChange:l[0]||(l[0]=C=>e.$emit("onCheckboxChanged",C))})),t.createElementVNode("label",Lt,t.toDisplayString(e.checkboxLabel),1)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["button",n.computedClasses.buttonWrapper])},[n.checkNamedSlots.cancelButton?t.renderSlot(e.$slots,"cancelButton",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,variant:"secondary",type:"outline",rounded:"",block:"",onClick:l[1]||(l[1]=C=>e.$emit("onCancel"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelLabel),1)]),_:1})),n.checkNamedSlots.confirmButton?t.renderSlot(e.$slots,"confirmButton",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,rounded:"",block:"",onClick:l[2]||(l[2]=C=>e.$emit("onConfirm"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmLabel),1)]),_:1}))],2)],2)])],16)],2)):t.createCommentVNode("",!0)}var Vt=y($t,[["render",Et]]);const At={mixins:[p("sm",["sm","md","lg"])],inheritAttrs:!1,props:{checked:{type:Boolean,default:!1},value:{type:String,default:""},state:{type:[String,Boolean,null],default:null,validator(e){return[null,"warning",!0,!1].includes(e)}}},emits:["change","update:modelValue"],setup(e,{attrs:l}){function i(r){return r[e.size]}const n=t.computed(()=>e.checked||(l==null?void 0:l.modelValue)===e.value);return{computedClasses:t.computed(()=>{const r={input:{position:"absolute",opacity:"opacity-0",width:i({sm:"w-4",md:"w-5",lg:"w-6"}),height:i({sm:"h-4",md:"h-5",lg:"h-6"}),peer:"peer"},span:{width:i({sm:"w-4",md:"w-5",lg:"w-6"}),height:i({sm:"h-4",md:"h-5",lg:"h-6"}),display:"flex items-center justify-center",borderWidth:i({sm:"border",md:"border-2",lg:"border-2"}),borderColor:e.state===null?"border-primary":e.state==="warning"?"border-warning":e.state===!0?"border-success":"border-danger",borderRadius:"rounded-full",backgroundColor:"bg-white",ringWidth:e.size==="sm"?"peer-focus:ring-1":"peer-focus:ring-2",ringOffset:"peer-focus:ring-offset-2",ringColor:e.state===null?"peer-focus:ring-primary":e.state==="warning"?"peer-focus:ring-warning":e.state===!0?"peer-focus:ring-success":"peer-focus:ring-danger"},spanBefore:{width:i({sm:"before:w-2",md:"before:w-2.5",lg:"before:w-3"}),height:i({sm:"before:h-2",md:"before:h-2.5",lg:"before:h-3"}),borderRadius:"before:rounded-full",backgroundColor:"before:bg-white",backgroundColorChecked:e.state===null?"peer-checked:before:bg-primary":e.state==="warning"?"peer-checked:before:bg-warning":e.state===!0?"peer-checked:before:bg-success":"peer-checked:before:bg-danger"},spanStates:{border:"peer-disabled:border-secondary-300",background:"peer-disabled:before:bg-white"}};return{input:d([c({},r.input)]),span:d([c({},r.span),c({},r.spanBefore),c({},r.spanStates)])}}),isChecked:n}}},Nt={class:"container"},Pt=["checked","value"];function It(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("div",Nt,[t.createElementVNode("input",t.mergeProps({type:"radio"},e.$attrs,{class:n.computedClasses.input,checked:n.isChecked,value:i.value,onChange:l[0]||(l[0]=o=>e.$emit("change",o.target.value)),onInput:l[1]||(l[1]=o=>e.$emit("update:modelValue",o.target.value))}),null,16,Pt),t.createElementVNode("span",{class:t.normalizeClass(n.computedClasses.span)},null,2)])}var Wt=y(At,[["render",It]]);const Tt={mixins:[g("selected",!1),g("disabled",!1),b("value","")],setup(e){const l=t.inject("parentProps"),i=t.computed(()=>{const a={marginLeft:"ml-2",marginRight:"mr-2",marginTop:"mt-2",padding:l.size==="sm"?"p-1.5":l.size==="md"?"p-2":l.size==="lg"?"p-3":"",fontSize:l.size==="sm"?"text-xs":"text-base",borderRadius:l.rounded?"rounded-lg":"",cursor:e.disabled===!1?"cursor-pointer":"cursor-not-allowed",display:"flex",alignItems:"items-center",outline:"outline-none"};return d([c({},a)])}),n=t.computed(()=>e.selected?"bg-primary-600 text-secondary-50 focus:ring-2 focus:ring-offset-2 focus:ring-primary":e.disabled?"bg-secondary-100 text-secondary-300":"bg-secondary-50 dark:bg-secondary-900 hover:bg-primary dark:hover:bg-primary focus:bg-primary-600 dark:focus:bg-primary-600 text-secondary-600 dark:text-secondary-50 hover:text-white dark:hover:text-white focus:text-white dark:focus:text-white");return{computedClasses:i,selectedStyles:n}}};function Ft(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("li",t.mergeProps(e.$attrs,{class:[n.computedClasses,n.selectedStyles]}),[t.renderSlot(e.$slots,"default")],16)}var ee=y(Tt,[["render",Ft]]),mn="";const Rt={components:{LuiChip:v,LuiOption:ee,LuiIcon:L,LuiBadge:H},mixins:[b("placeholder",""),b("textField","none"),b("valueField","none"),b("maxHeight","442px"),g("multiple",!1),g("rounded",!0),g("block",!1),p("md",["sm","md","lg"])],inheritAttrs:!1,props:{options:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:""},defaultValue:{type:[String,Number,Array],default:""},selectPrepend:{type:[Object,null],default:null},selectAppend:{type:[Object,null],default:()=>({tag:"lui-icon",name:"arrow-down-s",line:!0})},optionPrepend:{type:[Object,null],default:null},optionAppend:{type:[Object,null],default:null},state:{type:[String,Boolean,null],default:null,validator(e){return[null,"warning",!0,!1].includes(e)}}},emits:["update:modelValue"],setup(e,{emit:l}){const i=t.ref(!1),n=t.ref(e.options),a=t.ref([]);let r=t.ref(""),o=t.ref([]),f=t.ref(""),s=t.ref(""),C=t.ref("");const h=t.ref(null),z=t.ref({size:e.size,rounded:e.rounded,selectedOptions:o.value});t.provide("parentProps",z.value);let x=t.ref(e.modelValue!==""?e.modelValue:e.defaultValue);x.value===""&&(x.value=e.placeholder),e.multiple?o.value=x.value:r.value=x.value,t.watch(()=>e.modelValue,u=>{e.multiple?o.value=u:r.value=u}),t.onMounted(()=>{document.addEventListener("click",ne)}),t.onUnmounted(()=>{document.removeEventListener("click",ne)});function A(u){return u[e.size]}function I(){if(s.value==="")return{position:"bottom",size:e.maxHeight};const u=/\d+/,k=Number(e.maxHeight.match(u)),B=200,{bottom:W}=s.value.getBoundingClientRect(),X=window.innerHeight-W;return X>k?{position:"bottom",size:`${k}px`}:X>B?{position:"bottom",size:`${X-16}px`}:{position:"top",size:`${k}px`}}function K(u){if(!e.multiple)return e.textField!=="none"?r.value===u[e.textField]:r.value===u;let k;return e.textField!=="none"?k=o.value.findIndex(B=>B[e.textField]===u[e.textField]):k=o.value.findIndex(B=>B===u),k!==-1}function G(u){let k;e.textField!=="none"?k=o.value.findIndex(B=>B[e.textField]===u[e.textField]):k=o.value.findIndex(B=>B===u),o.value.splice(k,1)}function te(u,k){if(!u.disabled)if(e.multiple){k.stopPropagation();let B;e.textField!=="none"?B=o.value.findIndex(W=>W[e.textField]===u[e.textField]):B=o.value.findIndex(W=>W===u),B===-1?o.value.push(u):o.value.splice(B,1),l("update:modelValue",o.value)}else e.textField!=="none"?(l("update:modelValue",u[e.textField]),r.value=u[e.textField]):(l("update:modelValue",u),r.value=u,i.value=!1)}function ne(u){h.value.contains(u.target)||(i.value=!1)}function an(u){u.keyCode===40&&(f.value=0,a.value[f.value].$el.focus())}function D(){a.value[f.value].$el.focus()}function rn(u){u.keyCode===13&&te(e.options[f.value],u);const k=e.options.length-1;u.keyCode===40&&(f.value<k?(f.value++,D()):f.value===k&&(f.value=0,D())),u.keyCode===38&&(f.value>0?(f.value--,D()):f.value===0&&(f.value=k,D()))}const sn=t.computed(()=>{let u={selectPrepend:e.selectPrepend,selectAppend:e.selectAppend,optionPrepend:e.optionPrepend,optionAppend:e.optionAppend};return["selectPrepend","selectAppend","optionPrepend","optionAppend"].forEach(k=>{u[k]!==null&&(u[k].tag==="lui-icon"?u[k].class=A({sm:"text-base leading-none",md:"text-xl leading-none",lg:"text-2xl leading-none"}):u[k].size=A({sm:"2xs",md:"xs",lg:"sm"}))}),u}),dn=t.computed(()=>e.size==="lg"?"md":e.size);return{computedClasses:t.computed(()=>{const u={selectWrapper:{width:e.block?"w-full":"w-max",position:"relative"},button:{display:"flex",alignItems:"items-center",paddingTop:A({sm:"pt-1.5",md:"pt-2",lg:"pt-3"}),paddingBottom:o.value.length<0?"p-0":A({sm:"pb-1.5",md:"pb-2",lg:"pb-3"}),paddingX:"px-3",fontSize:e.size==="sm"?"text-xs":"text-base",lineHeight:"leading-normal",textColor:"text-secondary-600 dark:text-secondary-50",borderWidth:"border",borderColor:e.state===!0?"border-success":e.state===!1?"border-danger":e.state==="warning"?"border-warning":"border-secondary-200 focus:border-primary",borderRadius:"rounded-lg",backgroundColor:"bg-secondary-50 dark:bg-secondary-900",width:"w-full",outline:"focus:outline-none",ringWidth:e.state===null?"focus:ring-4":"ring-4",ringColor:e.state===null?"focus:ring-primary-100":e.state===!0?"ring-success-100":e.state===!1?"ring-danger-100":"ring-warning-100",disabled:"disabled:border-secondary-200 disabled:text-secondary-600 disabled:bg-secondary-100"},options:{backgroundColor:"bg-secondary-50 dark:bg-secondary-900",borderWidth:"border",borderRadius:e.rounded?e.size==="sm"?"rounded-lg":"rounded-xl":"",borderColor:e.state===!0?"border-success":e.state===!1?"border-danger":e.state==="warning"?"border-warning":"border-secondary-200 focus:border-primary",paddingBottom:"pb-2",boxShadow:"shadow-md",position:"absolute",width:e.block?"w-full":"w-max",minWidth:e.block?"min-w-min":"",overflowY:"overflow-y-auto",marginTop:I().position==="bottom"?"mt-2":"mb-2",bottom:I().position==="bottom"?"top-full":"bottom-full",zIndex:i?"z-50":""},multipleWrapper:{display:"flex",flexWrap:"flex-wrap",marginLeft:e.selectPrepend!==null?"-ml-1":"-ml-2",marginBottom:"-mb-2"},multipleItem:{marginLeft:"ml-2",marginBottom:"mb-2"},text:{marginLeft:e.selectPrepend!==null||e.optionPrepend!==null?"ml-2":""},append:{marginLeft:"ml-auto"},prepend:{marginRight:"mr-2"}};return{selectWrapper:d([c({},u.selectWrapper)]),button:d([c({},u.button)]),options:d([c({},u.options)]),multipleItem:d([c({},u.multipleItem)]),multipleWrapper:d([c({},u.multipleWrapper)]),append:d([c({},u.append)]),prepend:d([c({},u.prepend)])}}),optionsActive:i,selectedOption:r,selectOption:te,optionsArr:n,selectedOptions:o,unselectOption:G,chipSize:dn,luiSelect:h,isOptionSelected:K,handleOptionsKeyEvents:rn,handleButtonKeyEvents:an,optionsRef:a,targetOption:f,contentProps:sn,selectWrapperRef:s,optionWrapperRef:C,optionsPositionAndSize:I}}},Dt=["aria-expanded"],jt={key:2,class:"overflow-hidden whitespace-nowrap"},Ot=["aria-activedescendant"];function Ht(e,l,i,n,a,r){const o=t.resolveComponent("lui-chip"),f=t.resolveComponent("lui-option");return t.openBlock(),t.createElementBlock("div",{ref:"selectWrapperRef",class:t.normalizeClass(n.computedClasses.selectWrapper)},[t.createElementVNode("button",t.mergeProps({ref:"luiSelect",type:"button","aria-haspopup":"listbox","aria-labelledby":"exp_elem exp_button","aria-expanded":n.optionsActive,class:n.computedClasses.button},e.$attrs,{onClick:l[0]||(l[0]=s=>n.optionsActive=!n.optionsActive),onKeydown:l[1]||(l[1]=s=>n.handleButtonKeyEvents(s))}),[i.selectPrepend!==null?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.selectPrepend.tag),t.mergeProps({key:0},n.contentProps.selectPrepend,{class:n.computedClasses.prepend}),null,16,["class"])):t.createCommentVNode("",!0),e.multiple&&n.selectedOptions.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.computedClasses.multipleWrapper)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.selectedOptions,(s,C)=>(t.openBlock(),t.createBlock(o,{key:C,filter:"lighter",variant:"primary",tabindex:"-1",type:"default","rounded-full":e.rounded,size:n.chipSize,icon:"close",clickable:"",class:t.normalizeClass(n.computedClasses.multipleItem),onClick:t.withModifiers(h=>n.unselectOption(s),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.textField!=="none"?s[e.textField]:s),1)]),_:2},1032,["rounded-full","size","class","onClick"]))),128))],2)):(t.openBlock(),t.createElementBlock("p",jt,t.toDisplayString(n.selectedOption),1)),i.selectAppend!==null?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.selectAppend.tag),t.mergeProps({key:3},n.contentProps.selectAppend,{class:n.computedClasses.append}),null,16,["class"])):t.createCommentVNode("",!0)],16,Dt),t.withDirectives(t.createElementVNode("ul",{id:"optionTest",ref:"optionWrapperRef",tabindex:"-1",role:"listbox","aria-labelledby":"exp_elem","aria-activedescendant":n.selectedOption,class:t.normalizeClass([n.computedClasses.options]),style:t.normalizeStyle(`max-height: ${n.optionsPositionAndSize().size}`),onKeydown:l[2]||(l[2]=t.withModifiers(s=>n.handleOptionsKeyEvents(s),["stop"]))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.options,(s,C)=>(t.openBlock(),t.createBlock(f,{id:e.textField!=="null"?s[e.textField]:s,ref_for:!0,ref:h=>n.optionsRef[C]=h,key:C,tabindex:"-1",role:"option",selected:n.isOptionSelected(s),disabled:s.disabled!==void 0&&s.disabled===!0,onClick:h=>n.selectOption(s,h)},{default:t.withCtx(()=>[i.optionPrepend!==null?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.optionPrepend.tag),t.mergeProps({key:0},n.contentProps.optionPrepend,{class:n.computedClasses.prepend}),null,16,["class"])):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(e.textField!=="none"?s[e.textField]:s),1),i.optionAppend!==null?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.optionAppend.tag),t.mergeProps({key:1},n.contentProps.optionAppend,{class:n.computedClasses.append}),null,16,["class"])):t.createCommentVNode("",!0)]),_:2},1032,["id","selected","disabled","onClick"]))),128))],46,Ot),[[t.vShow,n.optionsActive]])],2)}var Mt=y(Rt,[["render",Ht],["__scopeId","data-v-15bd8ea0"]]);const Kt={mixins:[p("sm",["sm","lg"])],inheritAttrs:!1,setup(e){function l(n){return n[e.size]}return{computedClasses:t.computed(()=>{const n={input:{position:"absolute",opacity:"opacity-0",width:l({sm:"w-8",lg:"w-10"}),height:l({sm:"h-4",lg:"h-5"}),cursor:"cursor-pointer",peer:"peer"},span:{display:"flex items-center",alignItems:"peer-checked:justify-end",width:l({sm:"w-8",lg:"w-10"}),height:l({sm:"h-4",lg:"h-5"}),borderRadius:"rounded-full",backgroundColor:"bg-secondary-300 peer-checked:bg-success",borderWidth:"border",borderColor:"border-secondary-200 peer-checked:border-success-100",ringWidth:"peer-focus:ring-2",ringOffset:"peer-focus:ring-offset-2",ringColor:"peer-focus:ring-success",paddigX:"px-0.5"},spanBefore:{width:l({sm:"before:w-3",lg:"before:w-4"}),height:l({sm:"before:h-3",lg:"before:h-4"}),borderRadius:"before:rounded-full",backgroundColor:"before:bg-white",borderWidth:"before:border",borderColor:"before:border-secondary-200 peer-checked:before:border-success-100"}};return{input:d([c({},n.input)]),span:d([c({},n.span),c({},n.spanBefore)])}})}}},Gt={class:"container"};function Xt(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("div",Gt,[t.createElementVNode("input",t.mergeProps({type:"checkbox",class:n.computedClasses.input},e.$attrs),null,16),t.createElementVNode("span",{class:t.normalizeClass(n.computedClasses.span)},null,2)])}var qt=y(Kt,[["render",Xt]]);const Yt={mixins:[b("alignTabs","left",["left","center","right"]),b("alignContent","left",["left","center","right"]),g("stretch")],setup(e,{slots:l,emit:i}){const n=t.ref(l.default().map(h=>h.props));let a=n.value.findIndex(h=>h.active!==void 0);a=a===-1?!1:a;let r=t.ref(n.value[a||0].title);const o=t.ref([]);t.provide("selectedTitle",t.computed(()=>r));function f(h){i("onTabsChange",h.title),r.value=h.title}function s(h,z){let x=null;h.keyCode===39&&this.tabProps.length>z+1&&(x=z+1),h.keyCode===37&&z-1>=0&&(x=z-1),h.keyCode===36&&(x=0),h.keyCode===35&&(x=this.tabProps.length-1),x!==null&&this.tabProps[x].disabled===void 0&&(this.selectedTitle=this.tabProps[x].title,o.value[x].focus())}const C=t.computed(()=>{const h={width:"w-full",display:"flex",margin:"mb-8",flexWrap:"flex-wrap",alingItems:"items-center",justifyContent:e.alignTabs==="left"?"justify-start":e.alignTabs==="center"?"justify-center":"justify-end"},z={lineHeight:"leading-normal",fontSize:"text-base",fontWeight:"font-semibold",position:"relative",margin:"mb-2",flexGrow:e.stretch?"flex-grow":"",disabled:"disabled:text-secondary-300",after:"after:w-full after:h-0.5 after:absolute after:-bottom-2 after:left-0 after:inline-block after:rounded-full after:bg-transparent"},x=e.alignContent==="left"?"text-left":e.alignContent==="center"?"text-center":"text-right",A="text-primary after:bg-primary",I="text-secondary-500",K="w-full",G="px-4";return{tabContainer:d([c({},h)]),tab:d([c({},z)]),panel:x,activeTab:A,defaultTab:I,tabMenuContainer:K,tabText:G}});return{tabProps:n,selectedTitle:r,elements:o,computedClasses:C,handleKeyEvents:s,handleClick:f}}},Ut=["tabindex","aria-selected","disabled","onClick","onKeydown"];function Jt(e,l,i,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.computedClasses.tabMenuContainer)},[t.createElementVNode("div",{class:t.normalizeClass(["overflow-y-auto",n.computedClasses.tabContainer]),role:"tablist"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tabProps,(o,f)=>(t.openBlock(),t.createElementBlock("button",{key:o.title,ref_for:!0,ref:s=>n.elements[f]=s,role:"tab",tabindex:n.selectedTitle===o.title?"0":"-1","aria-selected":n.selectedTitle===o.title,disabled:o.disabled!==void 0,class:t.normalizeClass([n.computedClasses.tab,n.selectedTitle===o.title?n.computedClasses.activeTab:n.computedClasses.defaultTab]),onClick:s=>n.handleClick(o),onKeydown:s=>n.handleKeyEvents(s,f)},[t.createElementVNode("span",{class:t.normalizeClass(n.computedClasses.tabText)},t.toDisplayString(o.title),3)],42,Ut))),128))],2),t.createElementVNode("div",{class:t.normalizeClass(n.computedClasses.panel)},[t.renderSlot(e.$slots,"default")],2)],2)}var Qt=y(Yt,[["render",Jt]]);const Zt={mixins:[b("title","Title"),g("active"),g("disabled")],setup(e,{emit:l}){const i=t.inject("selectedTitle");return t.watch(()=>i.value.value,n=>{e.title===i.value.value&&l("onTabChange",n)}),{selectedTitle:i}}},vt={role:"tabpanel",tabindex:"0"};function en(e,l,i,n,a,r){return t.withDirectives((t.openBlock(),t.createElementBlock("div",vt,[t.renderSlot(e.$slots,"default")],512)),[[t.vShow,e.title==n.selectedTitle.value]])}var tn=y(Zt,[["render",en]]);const nn={mixins:[b("tag","p",["p","span","br","strong","em","quotes","blockquote","code","pre","mark","ins","del","sup","sub","small","i","b","abbr","address","bdi","bdo","cite","dfn","kbs","meter","q","rp","rt","ruby","s","samp","time","u","var","wbr"]),p("md",["xs","sm","md","lg"]),S("variant","secondary")],setup(e){return{classes:t.computed(()=>{const i={fontColor:`text-${e.variant}-600`,fontSize:e.size==="xs"?"text-xs":e.size==="sm"?"text-sm":e.size==="md"?"text-base":"text-xl",lineHeight:e.size==="xs"?"leading-3":e.size==="sm"?"leading-4.5":e.size==="md"?"leading-5":"leading-6"};return d([c({},i)])})}}};function ln(e,l,i,n,a,r){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.mergeProps({class:n.classes},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["class"])}var on=y(nn,[["render",ln]]);m.LuiAccordion=ue,m.LuiAccordionGroup=he,m.LuiAvatar=pe,m.LuiBadge=H,m.LuiButton=T,m.LuiCard=qe,m.LuiCheckbox=Z,m.LuiChip=v,m.LuiDropdown=ot,m.LuiDropdownDivider=ft,m.LuiDropdownItem=dt,m.LuiHeading=ht,m.LuiIcon=L,m.LuiInput=xt,m.LuiLabel=pt,m.LuiLink=_t,m.LuiModal=Vt,m.LuiOption=ee,m.LuiRadio=Wt,m.LuiSelect=Mt,m.LuiSwitch=qt,m.LuiTab=tn,m.LuiTabs=Qt,m.LuiText=on,Object.defineProperty(m,"__esModule",{value:!0}),m[Symbol.toStringTag]="Module"});
(function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.LuiVue={},p.Vue))})(this,function(p,e){"use strict";function Z(t){const l=e.computed(()=>({backgroundColor:t.variant.value==="solid"?{[`bg-${t.color.value}-500`]:t.filter.value==="none",[`bg-${t.color.value}-100`]:t.filter.value==="lighten",[`bg-${t.color.value}-800`]:t.filter.value==="darken"}:null})),n=e.computed(()=>({textColor:t.variant.value==="solid"?{["text-white"]:t.filter.value==="none",[`text-${t.color.value}-500`]:t.filter.value==="lighten",[`text-${t.color.value}-100`]:t.filter.value==="darken"}:{[`text-${t.color.value}-500`]:t.filter.value==="none",[`text-${t.color.value}-100`]:t.filter.value==="lighten",[`text-${t.color.value}-800`]:t.filter.value==="darken"}})),o=e.computed(()=>({borderColor:t.variant.value==="outline"?{[`border-${t.color.value}-500`]:t.filter.value==="none",[`border-${t.color.value}-100`]:t.filter.value==="lighten",[`border-${t.color.value}-800`]:t.filter.value==="darken"}:t.border.value?{["border-white"]:t.filter.value==="none",[`border-${t.color.value}-500`]:t.filter.value==="lighten",[`border-${t.color.value}-100`]:t.filter.value==="darken"}:"border-transparent"}));return{backgroundColorClasses:l.value,textColorClasses:n.value,borderColorClasses:o.value}}function W(){return{position:"absolute",overflow:"overflow-hidden",outlineStyle:"outline-none",cursor:"disabled:cursor-not-allowed",borderWidth:"border-0",opacity:"opacity-0",zIndex:"z-10",peer:"peer"}}function T(t,l){return{descriptionClasses:e.computed(()=>{const o={fontSize:"text-sm",lineHeight:"leading-normal",margin:"mt-1",textColor:l.disabled!==void 0&&l.disabled===!0?"text-secondary-200 dark:text-secondary-700":{"text-secondary-600 dark:text-secondary-400":t.state.value===null,"text-warning-500":t.state.value==="warning","text-danger-500":t.state.value===!1,"text-success-500":t.state.value===!0}};return Object.values({...o})})}}function F(t,l){const n=e.toRef(t,"modelValue"),o=function(r){if(typeof t.modelValue=="boolean"||t.modelValue===void 0)return r.target.checked;if(r.target.checked)n.value.push(r.target.value);else{const a=n.value.indexOf(r.target.value);n.value.splice(a,1)}return n.value},i=e.computed(()=>t.modelValue===void 0?l.checked!==void 0?l.checked:!1:typeof t.modelValue=="boolean"?t.modelValue:n.value.includes(t.value));return{handleVModel:o,isInputChecked:i}}const ee=["src","alt"],te={name:"LuiAvatar"},le=e.defineComponent({...te,props:{variant:{type:String,default:"solid"},color:{type:String,default:"primary"},filter:{type:String,default:"none"},size:{type:String,default:"md"},border:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},text:{type:String,default:""},src:{type:String,default:""},alt:{type:String,default:""}},setup(t){const l=t,{backgroundColorClasses:n,textColorClasses:o,borderColorClasses:i}=Z(e.toRefs(l)),r=e.computed(()=>{const s={borderWidth:"border",borderStyle:"border-solid",display:"block",width:"w-full",height:"h-full",objectFit:"object-cover",borderRadius:{"rounded-lg":l.rounded===!0,"rounded-full":l.rounded==="full"},borderColor:i.borderColor};return Object.values(s)}),a=e.computed(()=>Object.values({display:"flex",justifyContent:"justify-center",alignItems:"items-center"})),d=e.computed(()=>{const s={display:"flex",borderRadius:{"rounded-lg":l.rounded===!0,"rounded-full":l.rounded==="full"},borderWidth:"border",borderStyle:"border-solid",justifyContent:"justify-center",alignItems:"items-center",width:{"w-6":l.size==="xs","w-8":l.size==="sm","w-12":l.size==="md","w-16":l.size==="lg","w-20":l.size==="xl"},height:{"h-6":l.size==="xs","h-8":l.size==="sm","h-12":l.size==="md","h-16":l.size==="lg","h-20":l.size==="xl"},fontSize:{"text-sm":l.size==="xs"||l.size==="sm","text-xl":l.size==="md","text-3xl":l.size==="lg"||l.size==="xl"},backgroundColor:l.src.length===0?n.backgroundColor:null,textColor:o.textColor,borderColor:l.src.length===0?i.borderColor:"border-transparent"};return Object.values(s)});return(s,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["lui-avatar",e.unref(d)])},[t.src.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.src,alt:t.alt,class:e.normalizeClass(e.unref(r))},null,10,ee)):e.createCommentVNode("",!0),s.$slots.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a))},[e.renderSlot(s.$slots,"icon")],2)):e.createCommentVNode("",!0),t.text.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,ref:"avatarContent"},e.toDisplayString(t.text),513)):e.createCommentVNode("",!0)],2))}}),ne={name:"LuiBadge"},oe=e.defineComponent({...ne,props:{variant:{type:String,default:"solid"},color:{type:String,default:"primary"},filter:{type:String,default:"none"},size:{type:String,default:"md"},border:{type:Boolean,default:!1},text:{type:String,default:""},position:{type:String,default:"bottom-right"}},setup(t){const l=t,n=e.useSlots(),{backgroundColorClasses:o,textColorClasses:i,borderColorClasses:r}=Z(e.toRefs(l)),a=e.ref(),d=e.ref(),s=e.computed(()=>l.text.length>2),m=e.computed(()=>Object.values({position:"relative",display:"inline-block"})),c=e.computed(()=>Object.values({display:"flex",justifyContent:"justify-center",alignItems:"items-center"})),g=e.computed(()=>{const x={display:s.value?"inline-block":"flex",position:{absolute:!!n.default},top:n.default?{"top-0":l.position==="top-left"||l.position==="top-right"}:null,bottom:n.default?{"bottom-0":l.position==="bottom-left"||l.position==="bottom-right"}:null,left:n.default?{"left-0":l.position==="bottom-left"||l.position==="top-left"}:null,right:n.default?{"right-0":l.position==="bottom-right"||l.position==="top-right"}:null,translate:n.default?{"-translate-y-1/2 -translate-x-1/2":l.position==="top-left","-translate-y-1/2 translate-x-1/2":l.position==="top-right","translate-y-1/2 -translate-x-1/2":l.position==="bottom-left","translate-y-1/2 translate-x-1/2":l.position==="bottom-right"}:null,borderRadius:"rounded-full",borderWidth:"border",borderStyle:"border-solid",justifyContent:{["justify-center"]:!s.value},alignItems:{["items-center"]:!s.value},padding:l.text.length>0||!!n.icon?{"px-0.5":l.size==="xs","px-1":l.size==="sm","px-1.5":l.size==="md","px-2":l.size==="lg","px-2.5":l.size==="xl"}:null,width:l.text.length>0||!!n.icon?s.value?null:{"w-3":l.size==="xs","w-4":l.size==="sm","w-5":l.size==="md","w-6":l.size==="lg","w-7":l.size==="xl"}:{"w-1.5":l.size==="xs","w-2":l.size==="sm","w-2.5":l.size==="md","w-3":l.size==="lg","w-3.5":l.size==="xl"},height:l.text.length>0||!!n.icon?s.value?null:{"h-3":l.size==="xs","h-4":l.size==="sm","h-5":l.size==="md","h-6":l.size==="lg","h-7":l.size==="xl"}:{"h-1.5":l.size==="xs","h-2":l.size==="sm","h-2.5":l.size==="md","h-3":l.size==="lg","h-3.5":l.size==="xl"},fontSize:{"text-xs":l.size==="xs"||l.size==="sm","text-sm":l.size==="md","text-base":l.size==="lg"||l.size==="xl"},backgroundColor:o.backgroundColor,textColor:i.textColor,borderColor:r.borderColor};return Object.values(x)});return(x,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["lui-badge",e.unref(m)])},[e.renderSlot(x.$slots,"default"),e.createElementVNode("div",{ref_key:"badgeWrapper",ref:a,class:e.normalizeClass(e.unref(g))},[x.$slots.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(c))},[e.renderSlot(x.$slots,"icon")],2)):e.createCommentVNode("",!0),l.text.length>0?(e.openBlock(),e.createElementBlock("span",{key:1,ref_key:"badgeContent",ref:d},e.toDisplayString(t.text),513)):e.createCommentVNode("",!0)],2)],2))}});function se(t){const l=e.useSlots(),n=e.computed(()=>!!l.icon),o=e.computed(()=>!!l.icon||!!l.prepend||!!l.append),i=e.computed(()=>{const a={outlineStyle:"outline-none",ringWidth:"focus-visible:ring-4",transitionProperty:"transition-colors transition-transform",translate:"active:translate-y-0.5 disabled:translate-y-0",cursor:{["cursor-pointer disabled:cursor-not-allowed"]:t.tag.value==="button"},fontSize:{"text-xs":t.size.value==="xs","text-sm":t.size.value==="sm","text-base":t.size.value==="md","text-lg":t.size.value==="lg","text-xl":t.size.value==="xl"},backgroundColor:t.variant.value==="solid"?{[`bg-${t.color.value}-500 hover:bg-${t.color.value}-400 disabled:bg-secondary-500`]:t.filter.value==="none",[`bg-${t.color.value}-100 hover:bg-${t.color.value}-50 disabled:bg-secondary-100`]:t.filter.value==="lighten",[`bg-${t.color.value}-800 hover:bg-${t.color.value}-700 disabled:bg-secondary-800`]:t.filter.value==="darken"}:null,textColor:t.variant.value==="solid"?{["text-white disabled:text-secondary-300"]:t.filter.value==="none",[`text-${t.color.value}-500 disabled:text-secondary-300`]:t.filter.value==="lighten",[`text-${t.color.value}-100 disabled:text-secondary-300`]:t.filter.value==="darken"}:{[`text-${t.color.value}-500 hover:text-${t.color.value}-400 disabled:text-secondary-500`]:t.filter.value==="none",[`text-${t.color.value}-100 hover:text-${t.color.value}-50 disabled:text-secondary-100`]:t.filter.value==="lighten",[`text-${t.color.value}-800 hover:text-${t.color.value}-700 disabled:text-secondary-800`]:t.filter.value==="darken"},borderColor:t.variant.value==="text"?"border-transparent":t.variant.value==="solid"||t.variant.value==="outline"?{[`border-${t.color.value}-500 hover:border-${t.color.value}-400 disabled:border-secondary-500`]:t.filter.value==="none",[`border-${t.color.value}-100 hover:border-${t.color.value}-50 disabled:border-secondary-100`]:t.filter.value==="lighten",[`border-${t.color.value}-800 hover:border-${t.color.value}-700 disabled:border-secondary-800`]:t.filter.value==="darken"}:null,borderWidth:{border:t.variant.value!="link"},borderStyle:{"border-solid":t.variant.value!="link"},width:{"w-full":t.block.value&&t.variant.value!=="link"},ringColor:`focus-visible:ring-${t.color.value}-500/40`,padding:t.variant.value!=="link"?n.value?{"p-1.5":t.size.value==="xs","p-2":t.size.value==="sm","p-2.5":t.size.value==="md","p-3.5":t.size.value==="lg","p-4":t.size.value==="xl"}:{"py-1 px-3":t.size.value==="xs","py-1.5 px-4":t.size.value==="sm","py-2 px-5":t.size.value==="md","py-2.5 px-6":t.size.value==="lg","py-3.5 px-7":t.size.value==="xl"}:"p-0",borderRadius:{"rounded-lg":t.rounded.value===!0,"rounded-full":t.rounded.value==="full"},display:{flex:o.value,"inline-block":!o.value&&t.tag.value!=="button"},alignItems:{"items-center":o.value},justifyContent:{"justify-center":o.value},space:!!l.prepend||!!l.append?{"space-x-1":t.size.value==="xs"||t.size.value==="sm","space-x-1.5":t.size.value==="md","space-x-2":t.size.value==="lg"||t.size.value==="xl"}:""};return Object.values({...a})}),r=e.computed(()=>t.size.value==="xs"?"text-xs":t.size.value==="sm"?"text-base":t.size.value==="xl"?"text-2xl":"text-xl");return{buttonClasses:i,computedIconSize:r}}const ae={name:"LuiButton",inheritAttrs:!1},K=e.defineComponent({...ae,props:{tag:{type:String,default:"button"},variant:{type:String,default:"solid"},color:{type:String,default:"primary"},filter:{type:String,default:"none"},size:{type:String,default:"md"},rounded:{type:[Boolean,String],default:!1},block:{type:Boolean,default:!1}},setup(t){const l=t,{buttonClasses:n,computedIconSize:o}=se(e.toRefs(l)),i=e.useSlots();return(r,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),e.mergeProps(r.$attrs,{class:[e.unref(n),"lui-button"]}),{default:e.withCtx(()=>[e.unref(i).icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(o),"leading-none flex items-center"])},[e.renderSlot(r.$slots,"icon")],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(i).prepend?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(o),"leading-none flex items-center"])},[e.renderSlot(r.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("span",null,[e.renderSlot(r.$slots,"default")]),e.unref(i).append?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([e.unref(o),"leading-none flex items-center"])},[e.renderSlot(r.$slots,"append")],2)):e.createCommentVNode("",!0)],64))]),_:3},16,["class"]))}});function re(t){const l=e.computed(()=>{const i={...W(),width:{"w-4":t.size.value==="xs","w-5":t.size.value==="sm","w-6":t.size.value==="md","w-7":t.size.value==="lg","w-8":t.size.value==="xl"},height:{"h-4":t.size.value==="xs","h-5":t.size.value==="sm","h-6":t.size.value==="md","h-7":t.size.value==="lg","h-8":t.size.value==="xl"}};return Object.values({...i})}),n=e.computed(()=>{const i={display:"inline-flex",alignItems:"items-center",justifyContent:"justify-center",width:{"w-4":t.size.value==="xs","w-5":t.size.value==="sm","w-6":t.size.value==="md","w-7":t.size.value==="lg","w-8":t.size.value==="xl"},height:{"h-4":t.size.value==="xs","h-5":t.size.value==="sm","h-6":t.size.value==="md","h-7":t.size.value==="lg","h-8":t.size.value==="xl"},borderRadius:{rounded:t.rounded.value===!0,"rounded-full":t.rounded.value==="full"},backgroundColor:"bg-secondary-50 dark:bg-secondary-900 peer-checked:bg-primary-500 dark:peer-disabled:bg-secondary-800 peer-disabled:bg-secondary-200",borderWidth:"border peer-checked:border-0",borderColor:"border-secondary-200 dark:border-secondary-700 peer-checked:border-transparent",ringOffsetColor:"peer-focus-visible:ring-2",ringColor:{"peer-focus-visible:ring-primary-500/40":t.state.value===null,"peer-focus-visible:ring-warning-500/40":t.state.value==="warning","peer-focus-visible:ring-danger-500/40":t.state.value===!1,"peer-focus-visible:ring-success-500/40":t.state.value===!0},transitionProperty:"transition-colors"};return Object.values({...i})}),o=e.computed(()=>Object.values({...{position:"absolute",left:"left-0",right:"right-0",top:"top-0",bottom:"bottom-0",margin:"m-auto",display:"hidden peer-checked:block",textColor:"text-white peer-disabled:text-secondary-300 dark:peer-disabled:text-secondary-600"}}));return{inputClasses:l,spanClasses:n,iconClasses:o}}const ie={class:"inline-block leading-3"},de={class:"relative inline-flex"},ce=["checked","value"],ue=["width","height"],me=[e.createElementVNode("path",{d:"M9.64286 3.42857L4.63393 8.57143L2.35714 6.23376",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],fe=[e.createElementVNode("path",{d:"M1 1H9",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)],ge=[e.createElementVNode("path",{d:"M1 1H11",stroke:"white","stroke-width":"1.75","stroke-linecap":"round"},null,-1)],he=[e.createElementVNode("path",{d:"M1 1H15",stroke:"white","stroke-width":"2","stroke-linecap":"round"},null,-1)],be=[e.createElementVNode("path",{d:"M1 1H17",stroke:"white","stroke-width":"2","stroke-linecap":"round"},null,-1)],xe=[e.createElementVNode("path",{d:"M1 1H21",stroke:"white","stroke-width":"2","stroke-linecap":"round"},null,-1)],ye={name:"LuiCheckbox",inheritAttrs:!1},ze=e.defineComponent({...ye,props:{size:{type:String,default:"md"},rounded:{type:[Boolean,String],default:!1,validator(t){return[!0,!1,"full"].includes(t)}},state:{type:[String,Boolean,null],default:null},description:{type:[String,null],default:null},indeterminate:{type:Boolean,default:!1},value:{type:[String,Boolean],default:!1},modelValue:{type:[Array,Boolean,void 0],default:void 0}},emits:["update:modelValue"],setup(t,{emit:l}){const n=t,o=e.useAttrs(),{inputClasses:i,spanClasses:r,iconClasses:a}=re(e.toRefs(n)),{descriptionClasses:d}=T(e.toRefs(n),o),{handleVModel:s,isInputChecked:m}=F(n,o);function c(x){l("update:modelValue",s(x))}const g=e.computed(()=>n.size==="xs"?{checkbox:"12",indeterminate:{width:"10",stroke:"1.5",viewBox:"0 0 10 2"}}:n.size==="sm"?{checkbox:"16",indeterminate:{width:"12",stroke:"1.75",viewBox:"0 0 12 2"}}:n.size==="md"?{checkbox:"20",indeterminate:{width:"16",stroke:"2",viewBox:"0 0 16 2"}}:n.size==="lg"?{checkbox:"24",indeterminate:{width:"18",stroke:"2",viewBox:"0 0 18 2"}}:{checkbox:"28",indeterminate:{width:"22",stroke:"2",viewBox:"0 0 22 2"}});return(x,S)=>(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("div",de,[e.createElementVNode("input",e.mergeProps({type:"checkbox",checked:e.unref(m),value:t.value,onChange:c,class:e.unref(i)},x.$attrs),null,16,ce),e.createElementVNode("span",{class:e.normalizeClass(e.unref(r))},null,2),t.indeterminate?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(e.unref(a)),width:e.unref(g).checkbox,height:e.unref(g).checkbox,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},me,10,ue)),t.indeterminate&&t.size==="xs"?(e.openBlock(),e.createElementBlock("svg",{key:1,width:"10",height:"2",viewBox:"0 0 10 2",class:e.normalizeClass(e.unref(a)),fill:"none",xmlns:"http://www.w3.org/2000/svg"},fe,2)):e.createCommentVNode("",!0),t.indeterminate&&t.size==="sm"?(e.openBlock(),e.createElementBlock("svg",{key:2,width:"12",height:"2",viewBox:"0 0 12 2",class:e.normalizeClass(e.unref(a)),fill:"none",xmlns:"http://www.w3.org/2000/svg"},ge,2)):e.createCommentVNode("",!0),t.indeterminate&&t.size==="md"?(e.openBlock(),e.createElementBlock("svg",{key:3,width:"16",height:"2",viewBox:"0 0 16 2",class:e.normalizeClass(e.unref(a)),fill:"none",xmlns:"http://www.w3.org/2000/svg"},he,2)):e.createCommentVNode("",!0),t.indeterminate&&t.size==="lg"?(e.openBlock(),e.createElementBlock("svg",{key:4,width:"18",height:"2",viewBox:"0 0 18 2",class:e.normalizeClass(e.unref(a)),fill:"none",xmlns:"http://www.w3.org/2000/svg"},be,2)):e.createCommentVNode("",!0),t.indeterminate&&t.size==="xl"?(e.openBlock(),e.createElementBlock("svg",{key:5,width:"22",height:"2",viewBox:"0 0 22 2",class:e.normalizeClass(e.unref(a)),fill:"none",xmlns:"http://www.w3.org/2000/svg"},xe,2)):e.createCommentVNode("",!0)]),t.description!==null?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(d))},e.toDisplayString(t.description),3)):e.createCommentVNode("",!0)]))}});function J(t,l){function n(o){var i;o.target instanceof Node&&!((i=t.value)!=null&&i.contains(o==null?void 0:o.target))&&l()}e.onMounted(()=>document.addEventListener("click",n)),e.onUnmounted(()=>document.removeEventListener("click",n))}function Q(t){const l=e.ref("bottom");function n(){e.nextTick(()=>{var o,i;if(t===null||(t==null?void 0:t.value)===null){l.value="bottom";return}if(((o=t.value)==null?void 0:o.getBoundingClientRect())!==void 0){const r=(i=t.value)==null?void 0:i.getBoundingClientRect(),a=window.innerHeight;if((r==null?void 0:r.bottom)===void 0||(r==null?void 0:r.y)===void 0){l.value="bottom";return}a-(r==null?void 0:r.bottom)>=(r==null?void 0:r.y)?l.value="bottom":l.value="top"}})}return n(),e.onMounted(()=>window.addEventListener("scroll",n)),e.onUnmounted(()=>window.removeEventListener("scroll",n)),{properPosition:l}}let pe=0;function ke(){return++pe}function j(){return ke()}const we=["width","height"],Ce=[e.createElementVNode("path",{d:"M5.99999 6.58599L8.47499 4.11099L9.18199 4.81799L5.99999 7.99999L2.81799 4.81799L3.52499 4.11099L5.99999 6.58599Z",fill:"white"},null,-1)],ve=["aria-activedescendant"],Be={name:"LuiDropdown",inheritAttrs:!1},Se=e.defineComponent({...Be,props:{text:{type:String,default:""},menuPosition:{type:String,default:"bottomLeft"},variant:{type:String,default:"solid"},color:{type:String,default:"primary"},filter:{type:String,default:"none"},size:{type:String,default:"md"},rounded:{type:[Boolean,String],default:!1},block:{type:Boolean,default:!1}},emits:["onTrigger"],setup(t,{emit:l}){const n=t,o=e.useSlots(),i=e.ref(),r=e.ref(),a=e.ref(),d=e.ref(!1),s=`lui-dropdown-button-${j()}`,m=`lui-dropdown-menu-${j()}`,c=e.reactive({items:[],currentIndex:0,currentId:""}),g={bottomLeft:{classes:"top-full mt-1",oppositeClasses:"bottom-full mb-1 left-0",direction:"bottom"},topLeft:{classes:"bottom-full mb-1 left-0",oppositeClasses:"top-full mt-1",direction:"top"},bottomRight:{classes:"top-full mt-1 right-0",oppositeClasses:"bottom-full mb-1 right-0",direction:"bottom"},topRight:{classes:"bottom-full mb-1 right-0",oppositeClasses:"top-full mt-1 right-0",direction:"top"},leftTop:{classes:"top-0 mr-1 right-full",oppositeClasses:"bottom-0 mr-1 right-full",direction:"bottom"},leftBottom:{classes:"bottom-0 mr-1 right-full",oppositeClasses:"top-0 mr-1 right-full",direction:"top"},rightTop:{classes:"top-0 ml-1 left-full",oppositeClasses:"bottom-0 ml-1 left-full",direction:"bottom"},rightBottom:{classes:"bottom-0 ml-1 left-full",oppositeClasses:"top-0 ml-1 left-full",direction:"top"}},{properPosition:x}=Q(i),S=e.computed(()=>g[n.menuPosition].direction===x.value?g[n.menuPosition].classes:g[n.menuPosition].oppositeClasses),H=e.computed(()=>{const f={position:"absolute",width:"w-max",zIndex:"z-50",maxHeight:"max-h-96",minWidth:"min-w-full",overflow:"overflow-y-auto",backgroundColor:"bg-secondary-50 dark:bg-secondary-900",borderWidth:"border",borderColor:"border-secondary-200 dark:border-secondary-700",borderRadius:{"rounded-md":n.rounded===!0,"rounded-2xl":n.rounded==="full"},padding:{"p-1.5":n.size==="xs"||n.size==="sm","p-2":n.size==="md","p-2.5":n.size==="lg"||n.size==="xl"},boxShadow:"shadow-lg",bottom:x.value=="top"?"bottom-full":"",top:x.value=="bottom"?"top-full":"",margin:x.value=="bottom"?"mt-2":"mb-2",space:n.size==="xs"||n.size==="sm"?"space-y-1.5":"space-y-2"};return Object.values({...f})}),R=e.computed(()=>({color:n.color,block:n.block,rounded:n.rounded,size:n.size,variant:n.variant,filter:n.filter}));J(i,()=>$());function $(){d.value=!1,l("onTrigger",d.value)}function C(){d.value=!0,l("onTrigger",d.value)}function V(){d.value=!d.value,l("onTrigger",d.value)}(function(){const w=o.default&&o.default().map(k=>k.type.toString()==="Symbol(Fragment)"?k.children.map(M=>M.props):k.props).flat();w&&w.length&&(c.items=w)})();function D(f){var w;switch(f.code){case"ArrowDown":f.preventDefault(),z(a.value,k=>k+1);break;case"ArrowUp":f.preventDefault(),z(a.value,k=>k-1);break;case"Enter":f.preventDefault(),f.stopPropagation(),((w=a.value)==null?void 0:w.children[c.currentIndex]).click();break;case"Home":f.preventDefault(),z(a.value,k=>k+1,0);break;case"End":f.preventDefault();{const k=c.items.length-1;z(a.value,M=>M-1,k)}break;case"Escape":f.preventDefault(),$();break;case"Tab":f.preventDefault(),f.stopPropagation();break}}function A(f){switch(f.code){case"ArrowDown":case"Enter":case"Space":f.preventDefault(),C(),z(a.value,w=>w+1,0);break}}function z(f,w,k=null){const M=u=>u>=0&&u<=c.items.length-1,G=u=>{var h,b;return((h=c.items[u])==null?void 0:h.disabled)===void 0||((b=c.items[u])==null?void 0:b.disabled)===!1};let E=c.currentIndex;if(k!==null?E=k:E=w(E),!M(E))return;for(;!G(E);)if(E=w(E),!M(E))return;c.currentIndex=E;const v=f==null?void 0:f.children[c.currentIndex];(v==null?void 0:v.id)!==void 0&&(c.currentId=v==null?void 0:v.id,e.nextTick(()=>v==null?void 0:v.focus({preventScroll:!0})))}function _(f){return f==="xs"?"12":f==="sm"?"16":f==="xl"?"24":"20"}return(f,w)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"luiDropdownWrapper",ref:i,class:"relative leading-3 w-fit"},[e.createElementVNode("div",{ref_key:"luiDropdownButton",ref:r,class:"trigger-wrapper cursor-pointer"},[e.renderSlot(f.$slots,"trigger",{id:s,type:"button",ariaHaspopup:"true",ariaExpanded:d.value,ariaControls:m,onClick:V,onKeydown:A},()=>[e.createVNode(K,e.mergeProps({id:s,type:"button","aria-haspopup":"true","aria-expanded":d.value,"aria-controls":m,onClick:V,onKeydown:A},e.unref(R)),{append:e.withCtx(()=>[e.renderSlot(f.$slots,"triggerAppend",{},()=>[(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 12 12",width:_(t.size),height:_(t.size),fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},Ce,8,we))])]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text)+" ",1)]),_:3},16,["aria-expanded"])])],512),e.createVNode(e.Transition,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("ul",{id:m,role:"menu",ref_key:"luiDropdownMenu",ref:a,"aria-labelledby":s,"aria-activedescendant":String(c.currentIndex),tabindex:"0",class:e.normalizeClass([e.unref(S),e.unref(H)]),onKeydown:D},[e.renderSlot(f.$slots,"default")],42,ve),[[e.vShow,d.value]])]),_:3})],512))}}),$e={name:"LuiDropdownItem"},Ve=e.defineComponent({...$e,props:{disabled:{type:Boolean,default:!1},tag:{type:String,default:"button"},color:{type:String,default:"secondary"},size:{type:String,default:"md"},rounded:{type:[Boolean,String],default:!1}},setup(t){const l=t,n=e.useSlots(),o=`lui-dropdown-item-${j()}`,i=e.computed(()=>{const d={width:"w-full",display:"flex",justifyContent:"justify-between",alignItems:"items-center",outlineWidth:"outline-none",textColor:`text-${l.color}-600 dark:text-${l.color}-400 disabled:text-secondary-300 disabled:dark:text-secondary-700`,backgroundColor:`hover:bg-${l.color}-600/20 focus:bg-${l.color}-600/20 dark:hover:bg-${l.color}-400/20 dark:focus:bg-${l.color}-400/20 disabled:bg-transparent disabled:dark:bg-transparent`,fontSize:{"text-xs":l.size==="xs","text-sm":l.size==="sm","text-base":l.size==="md","text-lg":l.size==="lg","text-xl":l.size==="xl"},padding:{"py-1 px-1.5":l.size==="xs","py-1.5 px-2":l.size==="sm","py-2 px-2.5":l.size==="md","py-2.5 px-2.5":l.size==="lg","py-3.5 px-3":l.size==="xl"},borderRadius:{"rounded-md":l.rounded===!0,"rounded-full":l.rounded==="full"},space:!!n.prepend||!!n.append?{"space-x-1.5":l.size==="xs","space-x-2":l.size==="sm","space-x-2.5":l.size==="md"||l.size==="lg","space-x-3":l.size==="xl"}:"",cursor:{["cursor-pointer disabled:cursor-not-allowed"]:l.tag==="button"},pointerEvents:l.disabled?"pointer-events-none":""};return Object.values(d)}),r=e.computed(()=>Object.values({display:"flex",alignItems:"items-center",justifyContent:"justify-center"})),a=e.computed(()=>Object.values({display:"flex flex-1",alignItems:"items-center"}));return(d,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),e.mergeProps({role:"menuitem",class:"lui-menu-item",id:o},d.$attrs,{class:e.unref(i)}),{default:e.withCtx(()=>[d.$slots.prepend?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r))},[e.renderSlot(d.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a))},[e.renderSlot(d.$slots,"default")],2),d.$slots.append?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r))},[e.renderSlot(d.$slots,"append")],2)):e.createCommentVNode("",!0)]),_:3},16,["class"]))}});function Ee(t,l){const n=e.useSlots(),o=e.computed(()=>t.stateIcon.value===!0&&t.state.value!==null||t.clear.value===!0||n.append?n.prepend?"twoIcon":"rightIcon":n.prepend?"leftIcon":"noIcon"),i={position:"absolute",translate:"-translate-y-1/2",lineHeight:"leading-none",top:"top-2/4",fontSize:{"text-xs":t.size.value==="xs","text-base":t.size.value==="sm","text-xl":t.size.value==="md"||t.size.value==="lg","text-2xl":t.size.value==="xl"},textColor:l.disabled!==void 0&&l.disabled.value?"text-secondary-300 dark:text-secondary-700":"text-secondary-400 peer-focus:text-secondary-600 dark:text-secondary-600 dark:peer-focus:text-secondary-300"},r=e.computed(()=>{const g={display:"inline-block",lineHeight:"leading-3",width:t.block.value===!0?"w-full":"w-48"};return Object.values({...g})}),a=e.computed(()=>{const g={peer:"peer",width:"w-full",fontSize:{"text-xs":t.size.value==="xs","text-sm":t.size.value==="sm","text-base":t.size.value==="md","text-lg":t.size.value==="lg","text-xl":t.size.value==="xl"},textColor:"text-secondary-600 placeholder:text-secondary-400 disabled:placeholder:text-secondary-300 dark:text-secondary-300 dark:placeholder:text-secondary-600 dark:disabled:text-secondary-700",backgroundColor:"bg-secondary-50 disabled:bg-secondary-100 dark:bg-secondary-900 dark:disabled:secondary-800",outlineStyle:"outline-none",borderWidth:"border",borderStyle:"border-solid",borderColor:{["border-secondary-200 focus:border-primary-500 disabled:border-secondary-200"]:t.state.value===null,["disabled:border-secondary-200 border-warning-500"]:t.state.value==="warning",["disabled:border-secondary-200 border-danger-500"]:t.state.value===!1,["disabled:border-secondary-200 border-success-500"]:t.state.value===!0},ringWidth:l.disabled!==void 0&&l.disabled===!0?"ring-0":t.state.value===null?"focus:ring-4":"ring-4",ringColor:{"focus:ring-primary-500/40":t.state.value===null,"ring-warning-500/40":t.state.value==="warning","ring-danger-500/40":t.state.value===!1,"ring-success-500/40":t.state.value===!0},borderRadius:{"rounded-lg":t.rounded.value===!0,"rounded-full":t.rounded.value==="full"},cursor:"disabled:cursor-not-allowed",padding:o.value==="noIcon"?{"py-1 px-1.5":t.size.value==="xs","py-1.5 px-2":t.size.value==="sm","py-2 px-2.5":t.size.value==="md","py-2.5 px-2.5":t.size.value==="lg","py-3.5 px-3":t.size.value==="xl"}:o.value==="rightIcon"?{"py-1 pl-1.5 pr-6":t.size.value==="xs","py-1.5 pl-2 pr-8":t.size.value==="sm","py-2 pl-2.5 pr-10":t.size.value==="md","py-2.5 pl-2.5 pr-10":t.size.value==="lg","py-3.5 pl-3 pr-12":t.size.value==="xl"}:o.value==="twoIcon"?{"py-1 px-6":t.size.value==="xs","py-1.5 px-8":t.size.value==="sm","py-2 px-10":t.size.value==="md","py-2.5 px-10":t.size.value==="lg","py-3.5 px-12":t.size.value==="xl"}:{"py-1 pr-1.5 pl-6":t.size.value==="xs","py-1.5 pr-2 pl-8":t.size.value==="sm","py-2 pr-2.5 pl-10":t.size.value==="md","py-2.5 pr-2.5 pl-10":t.size.value==="lg","py-3.5 pr-3 pl-12":t.size.value==="xl"}};return Object.values({...g})}),d=e.computed(()=>{const g={...i,left:{"left-2":t.size.value==="xs","left-2.5":t.size.value==="sm","left-3":t.size.value==="md"||t.size.value==="lg","left-4":t.size.value==="xl"}};return Object.values({...g})}),s=e.computed(()=>{const g={...i,right:{"right-2":t.size.value==="xs","right-2.5":t.size.value==="sm","right-3":t.size.value==="md"||t.size.value==="lg","right-4":t.size.value==="xl"}};return Object.values({...g})}),m=e.computed(()=>{const{textColor:g,...x}=i,S={...x,right:{"right-2":t.size.value==="xs","right-2.5":t.size.value==="sm","right-3":t.size.value==="md"||t.size.value==="lg","right-4":t.size.value==="xl"},textColor:l.disabled!==void 0&&l.disabled===!0?"text-secondary-300 dark:text-secondary-700":t.state.value===null?"text-secondary-400 peer-focus:text-secondary-600 dark:text-secondary-600 dark:peer-focus:text-secondary-300":{"text-warning-500":t.state.value==="warning","text-danger-500":t.state.value===!1,"text-success-500":t.state.value===!0}};return Object.values({...S})}),c=e.computed(()=>{const g={...i,right:{"right-2":t.size.value==="xs","right-2.5":t.size.value==="sm","right-3":t.size.value==="md"||t.size.value==="lg","right-4":t.size.value==="xl"},display:"flex",outlineStyle:"outline-none",ringWidth:"focus-visible:ring-2",ringColor:"focus-visible:ring-secondary-200"};return Object.values({...g})});return{wrapperClasses:r,inputClasses:a,prependClasses:d,appendClasses:s,stateIconClasses:m,closeIconClasses:c}}const Ie=["value"],_e={name:"LuiInput",inheritAttrs:!1},X=e.defineComponent({..._e,props:{size:{type:String,default:"md"},rounded:{type:[Boolean,String],default:!1},state:{type:[String,Boolean,null],default:null},stateIcon:{type:[Boolean],default:!1},block:{type:Boolean,default:!1},clear:{type:Boolean,default:!1},description:{type:[String,null],default:null},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue"],setup(t,{expose:l,emit:n}){const o=t,i=e.useAttrs(),r=e.useSlots(),a=e.ref(),{inputClasses:d,prependClasses:s,stateIconClasses:m,closeIconClasses:c,wrapperClasses:g,appendClasses:x}=Ee(e.toRefs(o),i),{descriptionClasses:S}=T(e.toRefs(o),i);function H(){var z,_;((z=a.value)==null?void 0:z.value)!=null&&(a.value.value=""),(_=a.value)==null||_.focus()}l({focus:()=>{var z;return(z=a.value)==null?void 0:z.focus()}});function $(z){n("update:modelValue",z.target.value)}const C=e.computed(()=>o.size==="xs"?"12":o.size==="sm"?"16":o.size==="xl"?"24":"20"),V={warning:"M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zM4 18.385L5.763 17H20V5H4v13.385zM11 13h2v2h-2v-2zm0-6h2v5h-2V7z",feedback:"M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zM4 18.385L5.763 17H20V5H4v13.385zM11 13h2v2h-2v-2zm0-6h2v5h-2V7z",success:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-.997-4L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16z",disabled:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm4.891-11.477l-8.368 8.368a6.04 6.04 0 0 1-1.414-1.414l8.368-8.368a6.04 6.04 0 0 1 1.414 1.414z"},D=()=>e.h("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:C.value,height:C.value},[e.h("path",{fill:"none",d:"M0 0h24v24H0z"}),e.h("path",{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"})]),A=z=>e.h("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:C.value,height:C.value},[e.h("path",{fill:"none",d:"M0 0h24v24H0z"}),e.h("path",{d:z.path})]);return(z,_)=>{var f;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["lui-input",e.unref(g)])},[e.createElementVNode("div",{class:e.normalizeClass(["relative",t.block?"w-full":""])},[e.createElementVNode("input",e.mergeProps({ref_key:"LuiInputRef",ref:a,value:t.modelValue,class:e.unref(d)},z.$attrs,{onInput:_[0]||(_[0]=w=>$(w))}),null,16,Ie),e.unref(r).prepend?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(s),"leading-none"])},[e.renderSlot(z.$slots,"prepend")],2)):e.createCommentVNode("",!0),t.clear&&!e.unref(i).disabled?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:H,class:e.normalizeClass(e.unref(c))},[e.createVNode(D)],2)):e.unref(r).append?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(x))},[e.renderSlot(z.$slots,"append")],2)):t.stateIcon?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(m))},[e.createVNode(A,{path:((f=e.unref(i))==null?void 0:f.disabled)===!0?V.disabled:t.state===!0?V.success:t.state===!1?V.warning:V.feedback},null,8,["path"])],2)):e.createCommentVNode("",!0)],2),t.description!==null?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(S))},e.toDisplayString(t.description),3)):e.createCommentVNode("",!0)],2)}}});function Ne(t){const l=e.computed(()=>{const o={...W(),width:{"w-4":t.size.value==="xs","w-5":t.size.value==="sm","w-6":t.size.value==="md","w-7":t.size.value==="lg","w-8":t.size.value==="xl"},height:{"h-4":t.size.value==="xs","h-5":t.size.value==="sm","h-6":t.size.value==="md","h-7":t.size.value==="lg","h-8":t.size.value==="xl"},borderRadius:"rounded-full"};return Object.values({...o})}),n=e.computed(()=>{const o={lineHeight:"leading-none",width:{"w-4 before:w-2":t.size.value==="xs","w-5 before:w-2.5":t.size.value==="sm","w-6 before:w-3":t.size.value==="md","w-7 before:w-3.5":t.size.value==="lg","w-8 before:w-4":t.size.value==="xl"},height:{"h-4 before:h-2":t.size.value==="xs","h-5 before:h-2.5":t.size.value==="sm","h-6 before:h-3":t.size.value==="md","h-7 before:h-3.5":t.size.value==="lg","h-8 before:h-4":t.size.value==="xl"},borderWidth:"border peer-checked:border-0",borderColor:"border-secondary-200 dark:border-secondary-700",borderRadius:"rounded-full before:rounded-full",backgroundColor:"bg-secondary-50 dark:bg-secondary-900 peer-checked:bg-primary-500 before:bg-transparent peer-checked:before:bg-white peer-disabled:before:bg-seconday-200 dark:peer-disabled:bg-secondary-800 dark:peer-disabled:bg-secondary-800 peer-disabled:bg-secondary-200",ringWidth:"peer-focus-visible:ring-2",ringColor:{"peer-focus-visible:ring-primary-500/40":t.state.value===null,"peer-focus-visible:ring-warning-500/40":t.state.value==="warning","peer-focus-visible:ring-danger-500/40":t.state.value===!1,"peer-focus-visible:ring-success-500/40":t.state.value===!0},display:"inline-flex",alignItems:"items-center",justifyContent:"justify-center",flexShrink:"shrink-0",transitionProperty:"transition-colors before:transition-colors"};return Object.values({...o})});return{inputClasses:l,spanClasses:n}}const Le={class:"inline-block leading-3"},Oe={class:"relative"},je=["checked","value"],Me={name:"LuiRadio",inheritAttrs:!1},De=e.defineComponent({...Me,props:{size:{type:String,default:"md"},state:{type:[String,Boolean,null],default:null},description:{type:[String,null],default:null},value:{type:String,default:""},modelValue:{type:[Array,Boolean,void 0],default:void 0}},emits:["update:modelValue"],setup(t,{emit:l}){const n=t,o=e.useAttrs(),{inputClasses:i,spanClasses:r}=Ne(e.toRefs(n)),{descriptionClasses:a}=T(e.toRefs(n),o),{handleVModel:d,isInputChecked:s}=F(n,o);function m(c){l("update:modelValue",d(c))}return(c,g)=>(e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("div",Oe,[e.createElementVNode("input",e.mergeProps({type:"checkbox",class:e.unref(i),checked:e.unref(s),value:t.value,onChange:m},c.$attrs),null,16,je),e.createElementVNode("span",{class:e.normalizeClass(e.unref(r))},null,2)]),t.description?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(a))},e.toDisplayString(t.description),3)):e.createCommentVNode("",!0)]))}}),Y=Symbol("ContextKey"),Ae=["aria-selected"],Pe={key:0},Re={key:1,class:"ml-auto"},Te={name:"LuiOption",inheritAttrs:!1},U=e.defineComponent({...Te,props:{selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"},rounded:{type:[Boolean,String],default:!1},value:{type:[String,Number],default:""},text:{type:String,default:""}},setup(t){const l=t,n=e.inject(Y),o=e.useSlots(),i=`lui-option-${j()}`;e.nextTick(()=>{(n==null?void 0:n.selectedOption.value)===void 0&&l.selected&&!l.disabled&&(n==null||n.updateSelectedOption({value:l.value,text:l.text,selected:l.selected}))}),e.watch(()=>l.selected,s=>{n==null||n.updateSelectedOption({value:l.value,text:l.text,selected:s})});function r(s){s.preventDefault(),n==null||n.updateSelectedOption({value:l.value,text:l.text,selected:l.selected}),e.nextTick(()=>n==null?void 0:n.focusButton())}const a=e.computed(()=>(n==null?void 0:n.selectedOption.value)===void 0?l.selected:typeof(n==null?void 0:n.selectedOption.value)=="string"?l.text===(n==null?void 0:n.selectedOption.value):l.text===(n==null?void 0:n.selectedOption.value.text)),d=e.computed(()=>{const s={backgroundColor:l.disabled?"":a.value===!0?"bg-primary-500 hover:text-primary-600 focus:text-primary-600":"hover:bg-primary-500/20 focus:bg-primary-500/20",padding:{"px-1.5 py-1":l.size==="xs","px-2 py-1.5":l.size==="sm","px-2 py-2.5":l.size==="md","p-2.5":l.size==="lg","px-3 py-3.5":l.size==="xl"},textColor:l.disabled?"text-secondary-300 dark:text-secondary-700":a.value===!0?"text-white":"text-secondary-600 dark:text-secondary-300 hover:text-primary-500 focus:text-primary-500",outlineWidth:"outline-none",borderRadius:{"rounded-md":l.rounded===!0,"rounded-2xl":l.rounded==="full"},display:o.prepend||o.append?"flex":"",alignItems:o.prepend||o.append?"items-center":"",cursor:l.disabled?"cursor-not-allowed":"",pointerEvents:l.disabled?"pointer-events-none":""};return Object.values({...s})});return(s,m)=>(e.openBlock(),e.createElementBlock("li",e.mergeProps({role:"option",tabindex:"-1"},s.$attrs,{id:i,"aria-selected":e.unref(a),class:e.unref(d),onClick:r}),[s.$slots.prepend?(e.openBlock(),e.createElementBlock("span",Pe,[e.renderSlot(s.$slots,"prepend")])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(s.$slots.prepend?"ml-1":"")},e.toDisplayString(t.text),3),s.$slots.append?(e.openBlock(),e.createElementBlock("span",Re,[e.renderSlot(s.$slots,"append")])):e.createCommentVNode("",!0)],16,Ae))}}),He=["aria-expanded"],We=["width","height"],Fe=[e.createElementVNode("path",{d:"M5.99999 6.58599L8.47499 4.11099L9.18199 4.81799L5.99999 7.99999L2.81799 4.81799L3.52499 4.11099L5.99999 6.58599Z",fill:"currentColor"},null,-1)],Ke=["aria-activedescendant"],Ue={name:"LuiSelect",inheritAttrs:!1},Ge=e.defineComponent({...Ue,props:{rounded:{type:[Boolean,String],default:!1},block:{type:Boolean,default:!1},state:{type:[String,Boolean,null],default:null},stateIcon:{type:[Boolean],default:null},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},size:{type:String,default:"md"},description:{type:[String,null],default:null},modelValue:{type:[Object,String,void 0],default:void 0}},emits:["update:modelValue","change"],setup(t,{emit:l}){const n=t,o=e.useSlots(),i=e.useAttrs(),r=e.ref(),a=e.ref(),d=e.ref(),s=e.ref(!1),m=e.ref(void 0),c=e.reactive({items:[],currentIndex:0,currentId:""}),g=`lui-listbox-button-${j()}`,x=`lui-listbox-wrapper-${j()}`,S=["LuiOption"],H={missing:{modelValue:"Missing field for modelValue, label and value fields are required when modelValue is object",options:"Options missing: should use options prop or LuiOption component as slot"}},{properPosition:R}=Q(d);J(d,()=>D()),e.nextTick(()=>{_(),z()}),e.provide(Y,{selectedOption:m,updateSelectedOption:C,focusButton:V}),e.watch(()=>n.modelValue,u=>C(u));function $(u,h,b=null){const B=P=>P>=0&&P<=c.items.length-1,q=P=>{const N=c.items[P];return typeof N!="string"&&((N==null?void 0:N.disabled)===void 0||(N==null?void 0:N.disabled)===!1)};let I=c.currentIndex;if(b!==null?I=b:I=h(I),!B(I))return;for(;!q(I);)if(I=h(I),!B(I))return;c.currentIndex=I;const L=u==null?void 0:u.children[c.currentIndex];c.currentId=L==null?void 0:L.id,e.nextTick(()=>L==null?void 0:L.focus({preventScroll:!0}))}function C(u){m.value=u,l("update:modelValue",u),l("change",u)}function V(){const u=r.value;u==null||u.focus()}function D(){s.value=!1}function A(){s.value=!s.value}function z(){const u=o.default&&o.default().map(b=>b.type.toString()==="Symbol(Fragment)"?b.children.map(B=>B.props):b.props).flat(),h=[...n.options].concat(u||[]);c.items=h}function _(){var L,P,N;const u=n.modelValue!==void 0&&typeof n.modelValue!="string"&&(((L=n.modelValue)==null?void 0:L.text)===void 0||((P=n.modelValue)==null?void 0:P.value)===void 0),h=n.options.length>0,b=()=>n.options.some(y=>typeof y!="string"&&y.selected);function B(y){n.placeholder===""?C(y):C(n.placeholder)}const q=()=>o.default&&o.default().some(y=>y.type.toString()=="Symbol(Fragment)"?y.children.some(O=>O.props.selected!==void 0&&O.props.selected===!0):y.props.selected!==void 0&&y.props.selected===!0),I=()=>o.default&&o.default().some(y=>y.type.toString()=="Symbol(Fragment)"?y.children.some(O=>O.type.name!==void 0&&S.includes(O.type.name)):y.type.name!==void 0&&S.includes(y.type.name));if(u)throw new Error(H.missing.modelValue);if(n.modelValue!==void 0){C(n.modelValue);return}if(h&&!b()){B(n.options[0]);return}if(!h&&!I())throw new Error(`Options missing: should use options prop or one of the valid slots: ${S}`);if(!h&&!q()){const y=o.default&&o.default()[0];let O;o.default&&(y==null?void 0:y.type.toString())==="Symbol(Fragment)"?O=(N=y==null?void 0:y.children[0])==null?void 0:N.props:O=y==null?void 0:y.props,B(O)}}function f(u){switch(u.code){case"ArrowDown":case"ArrowUp":case"Enter":case"Space":{u.preventDefault(),s.value||A();let h=c.items.findIndex(b=>{var B;return typeof b=="string"?b===m.value:(b==null?void 0:b.text)===((B=m.value)==null?void 0:B.text)});h===-1?$(a.value,b=>b+1,0):$(a.value,b=>b+1,h)}break}}function w(u){switch(u.code){case"ArrowDown":u.preventDefault(),$(a.value,h=>h+1);break;case"ArrowUp":u.preventDefault(),$(a.value,h=>h-1);break;case"Enter":u.preventDefault(),u.stopPropagation(),C(c.items[c.currentIndex]),D(),e.nextTick(()=>V());break;case"Home":u.preventDefault(),$(a.value,h=>h+1,0);break;case"End":u.preventDefault();{const h=c.items.length-1;$(a.value,b=>b-1,h)}break;case"Escape":u.preventDefault(),D(),e.nextTick(()=>V());break;case"Tab":u.preventDefault(),u.stopPropagation();break}}const k=e.computed(()=>{const u={position:"absolute",zIndex:"z-50",maxHeight:"max-h-96",minWidth:"min-w-full",overflow:"overflow-y-auto",backgroundColor:"bg-secondary-50 dark:bg-secondary-900",borderWidth:"border",borderColor:"border-secondary-200 dark:border-secondary-700",borderRadius:{"rounded-md":n.rounded===!0,"rounded-2xl":n.rounded==="full"},padding:{"p-1.5":n.size==="xs"||n.size==="sm","p-2":n.size==="md","p-2.5":n.size==="lg"||n.size==="xl"},boxShadow:"shadow-lg",bottom:R.value=="top"?"bottom-full":"",top:R.value=="bottom"?"top-full":"",margin:R.value=="bottom"?"mt-2":"mb-2",space:n.size==="xs"||n.size==="sm"?"space-y-1.5":"space-y-2"};return Object.values({...u})}),M=e.computed(()=>({rounded:n.rounded,block:n.block,state:n.state,stateIcon:n.stateIcon,placeholder:n.placeholder,size:n.size,description:n.description,...i})),G=u=>{const h={size:n.size,rounded:n.rounded};return typeof u=="string"?{text:u,...h}:{...u,...h}},E=e.computed(()=>{var u;return typeof m.value=="string"?m.value:(u=m.value)==null?void 0:u.text});function v(u){return u==="xs"?"12":u==="sm"?"16":u==="xl"?"24":"20"}return(u,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative",t.block?"w-full":""]),role:"combobox",ref_key:"selectWrapperRef",ref:d,"aria-haspopup":"listbox","aria-expanded":s.value,"aria-controls":x,tabindex:"-1",onClick:A},[e.createVNode(X,e.mergeProps({ref_key:"selectRef",ref:r,id:g,value:e.unref(E),readonly:""},e.unref(M),{onKeydown:h[0]||(h[0]=b=>f(b))}),{append:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 12 12",width:v(t.size),height:v(t.size),fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},Fe,8,We))]),_:1},16,["value"]),e.withDirectives(e.createElementVNode("ul",{ref_key:"optionsRef",ref:a,id:x,"aria-orientation":"vertical","aria-labelledby":g,role:"listbox",tabindex:"0",class:e.normalizeClass(e.unref(k)),"aria-activedescendant":c.currentId,onKeydown:h[1]||(h[1]=b=>w(b))},[t.placeholder!==""?(e.openBlock(),e.createBlock(U,{key:0,disabled:"",text:t.placeholder},null,8,["text"])):e.createCommentVNode("",!0),t.options.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.options,(b,B)=>(e.openBlock(),e.createBlock(U,e.mergeProps({key:B},G(b)),null,16))),128)):e.createCommentVNode("",!0),u.$slots.default?e.renderSlot(u.$slots,"default",{key:2}):e.createCommentVNode("",!0)],42,Ke),[[e.vShow,s.value]])],10,He))}});function qe(t){const l=e.computed(()=>{const o={...W(),width:{"w-8":t.size.value==="xs","w-10":t.size.value==="sm","w-12":t.size.value==="md","w-14":t.size.value==="lg","w-16":t.size.value==="xl"},height:{"h-4":t.size.value==="xs","h-5":t.size.value==="sm","h-6":t.size.value==="md","h-7":t.size.value==="lg","h-8":t.size.value==="xl"},borderRadius:{"rounded-full":t.rounded.value==="full",rounded:t.rounded.value===!0}};return Object.values({...o})}),n=e.computed(()=>{const o={lineHeight:"leading-none",width:{"w-8 before:w-3":t.size.value==="xs","w-10 before:w-4":t.size.value==="sm","w-12 before:w-5":t.size.value==="md","w-14 before:w-6":t.size.value==="lg","w-16 before:w-7":t.size.value==="xl"},height:{"h-4 before:h-3":t.size.value==="xs","h-5 before:h-4":t.size.value==="sm","h-6 before:h-5":t.size.value==="md","h-7 before:h-6":t.size.value==="lg","h-8 before:h-7":t.size.value==="xl"},backgroundColor:"bg-secondary-500 dark:bg-secondary-800 peer-disabled:bg-secondary-100 peer-checked:peer-disabled:bg-success-100 peer-checked:bg-success-500 before:bg-white",borderRadius:{"rounded-full before:rounded-full":t.rounded.value==="full","rounded before:rounded-sm":t.rounded.value===!0},display:"inline-flex",position:"relative before:absolute",top:"before:top-0",bottom:"before:bottom-0",translate:{"before:translate-x-0.5 peer-checked:before:translate-x-[1.125rem]":t.size.value==="xs","before:translate-x-0.5 peer-checked:before:translate-x-[1.375rem]":t.size.value==="sm","before:translate-x-0.5 peer-checked:before:translate-x-[1.625rem]":t.size.value==="md","before:translate-x-0.5 peer-checked:before:translate-x-[1.875rem]":t.size.value==="lg","before:translate-x-0.5 peer-checked:before:translate-x-[2.125rem]":t.size.value==="xl"},margin:"before:my-auto",transitionProperty:"before:transition transition",ringWidth:"peer-focus-visible:ring-2",ringColor:{"peer-focus-visible:ring-primary-500/40":t.state.value===null,"peer-focus-visible:ring-warning-500/40":t.state.value==="warning","peer-focus-visible:ring-danger-500/40":t.state.value===!1,"peer-focus-visible:ring-success-500/40":t.state.value===!0}};return Object.values({...o})});return{inputClasses:l,spanClasses:n}}const Ze={class:"inline-block leading-3"},Je={class:"relative"},Qe=["checked","value"],Xe={name:"LuiSwitch",inheritAttrs:!1},Ye=e.defineComponent({...Xe,props:{size:{type:String,default:"md"},rounded:{type:[Boolean,String],default:"full"},state:{type:[String,Boolean,null],default:null},description:{type:[String,null],default:null},value:{type:String,default:""},modelValue:{type:[Array,Boolean,void 0],default:void 0}},emits:["update:modelValue"],setup(t,{emit:l}){const n=t,o=e.useAttrs(),{inputClasses:i,spanClasses:r}=qe(e.toRefs(n)),{descriptionClasses:a}=T(e.toRefs(n),o),{handleVModel:d,isInputChecked:s}=F(n,o);function m(c){l("update:modelValue",d(c))}return(c,g)=>(e.openBlock(),e.createElementBlock("div",Ze,[e.createElementVNode("div",Je,[e.createElementVNode("input",e.mergeProps({type:"checkbox",class:e.unref(i),checked:e.unref(s),value:t.value,onChange:m},c.$attrs),null,16,Qe),e.createElementVNode("span",{class:e.normalizeClass(e.unref(r))},null,2)]),t.description?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(a))},e.toDisplayString(t.description),3)):e.createCommentVNode("",!0)]))}});function et(t,l){const n=e.useSlots(),o=e.computed(()=>!!(t.stateIcon.value===!0&&t.state.value!==null||n.prepend)),i={position:"absolute",fontSize:{"text-xs":t.size.value==="xs","text-base":t.size.value==="sm","text-xl":t.size.value==="md"||t.size.value==="lg","text-2xl":t.size.value==="xl"}},r=e.computed(()=>{const d={peer:"peer",width:"w-full",textColor:"text-secondary-600 placeholder:text-secondary-400 disabled:placeholder:text-secondary-300 dark:text-secondary-300 dark:placeholder:text-secondary-600 dark:disabled:text-secondary-700",backgroundColor:"bg-secondary-50 disabled:bg-secondary-100 dark:bg-secondary-900 dark:disabled:secondary-800",outlineStyle:"outline-none",borderWidth:"border",borderStyle:"border-solid",cursor:"disabled:cursor-not-allowed",borderColor:{["border-secondary-200 focus:border-primary-500 disabled:border-secondary-200"]:t.state.value===null,["disabled:border-secondary-200 border-warning-500"]:t.state.value==="warning",["disabled:border-secondary-200 border-danger-500"]:t.state.value===!1,["disabled:border-secondary-200 border-success-500"]:t.state.value===!0},ringWidth:l.disabled!==void 0&&l.disabled===!0?"ring-0":t.state.value===null?"focus:ring-4":"ring-4",ringColor:{"focus:ring-primary-500/40":t.state.value===null,"ring-warning-500/40":t.state.value==="warning","ring-danger-500/40":t.state.value===!1,"ring-success-500/40":t.state.value===!0},borderRadius:{"rounded-md":t.rounded.value===!0},fontSize:{"text-xs":t.size.value==="xs","text-sm":t.size.value==="sm","text-base":t.size.value==="md","text-lg":t.size.value==="lg","text-xl":t.size.value==="xl"},padding:o.value?{"py-1 pl-1.5 pr-6":t.size.value==="xs","py-1.5 pl-2 pr-8":t.size.value==="sm","py-2 pl-2.5 pr-10":t.size.value==="md","py-2.5 pl-2.5 pr-10":t.size.value==="lg","py-3.5 pl-3 pr-12":t.size.value==="xl"}:{"py-1 px-1.5":t.size.value==="xs","py-1.5 px-2":t.size.value==="sm","py-2 px-2.5":t.size.value==="md","p-2.5":t.size.value==="lg","py-3.5 px-3":t.size.value==="xl"},resize:{resize:t.resize.value==!0,"resize-none":t.resize.value==!1,"resize-x":t.resize.value=="x","resize-y":t.resize.value=="y"}};return Object.values({...d})}),a=e.computed(()=>{const d={...i,top:t.size.value==="xl"||t.size.value==="lg"?"top-4":"top-3",right:{"right-2":t.size.value==="xs","right-2.5":t.size.value==="sm","right-3":t.size.value==="md"||t.size.value==="lg","right-4":t.size.value==="xl"},textColor:l.disabled!==void 0&&l.disabled===!0?"text-secondary-300":{"text-warning-500":t.state.value==="warning","text-danger-500":t.state.value===!1,"text-success-500":t.state.value===!0}};return Object.values({...d})});return{textareaClasses:r,stateIconClasses:a}}const tt={class:"relative"},lt=["width","height"],nt=[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zM4 18.385L5.763 17H20V5H4v13.385zM11 13h2v2h-2v-2zm0-6h2v5h-2V7z"},null,-1)],ot=["width","height"],st=[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm0-8h2v6h-2V7z"},null,-1)],at=["width","height"],rt=[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-.997-4L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16z"},null,-1)],it=["width","height"],dt=[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm4.891-11.477l-8.368 8.368a6.04 6.04 0 0 1-1.414-1.414l8.368-8.368a6.04 6.04 0 0 1 1.414 1.414z"},null,-1)],ct={name:"LuiTextarea",inheritAttrs:!1},ut=e.defineComponent({...ct,props:{size:{type:String,default:"md"},rounded:{type:[Boolean,String],default:"full"},state:{type:[String,Boolean,null],default:null},stateIcon:{type:[Boolean],default:null},description:{type:[String,null],default:null},resize:{type:[Boolean,String],default:!0},block:{type:Boolean,default:!1},modelValue:{type:[String],default:""}},emits:["update:modelValue"],setup(t,{emit:l}){const n=t,o=e.useAttrs(),{descriptionClasses:i}=T(e.toRefs(n),o),{textareaClasses:r,stateIconClasses:a}=et(e.toRefs(n),o);function d(c){l("update:modelValue",c.target.value)}const s=e.computed(()=>n.size==="xs"?"12":n.size==="sm"?"16":n.size==="xl"?"24":"20"),m=e.computed(()=>o.disabled!==void 0&&o.disabled===!0);return(c,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["inline-block leading-3",t.block?"w-full":"w-48"])},[e.createElementVNode("div",tt,[e.createElementVNode("textarea",e.mergeProps(c.$attrs,{class:e.unref(r),onInput:g[0]||(g[0]=x=>d(x))}),null,16),t.stateIcon&&t.state!==null&&!e.unref(m)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(a))},[t.state==="warning"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:e.unref(s),height:e.unref(s),fill:"currentColor"},nt,8,lt)):e.createCommentVNode("",!0),t.state===!1?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:e.unref(s),height:e.unref(s),fill:"currentColor"},st,8,ot)):e.createCommentVNode("",!0),t.state===!0?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:e.unref(s),height:e.unref(s),fill:"currentColor"},rt,8,at)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),t.stateIcon&&e.unref(m)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:e.unref(s),height:e.unref(s),fill:"currentColor"},dt,8,it))],2)):e.createCommentVNode("",!0)]),t.description?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass([e.unref(i),""])},e.toDisplayString(t.description),3)):e.createCommentVNode("",!0)],2))}}),mt='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',ft=()=>{let t=[],l,n;const o=e.customRef((d,s)=>{let m=null;return{get(){return d(),m},set(c){m=c,c?r():a(),s()}}});function i(d){d.key==="Tab"&&(d.shiftKey?document.activeElement===l&&(n.focus(),d.preventDefault()):document.activeElement===n&&(l.focus(),d.preventDefault()))}function r(){!o.value||(t=Array.from(o.value.querySelectorAll(mt)),l=t[0],n=t[t.length-1],document.addEventListener("keydown",i),l.focus())}function a(){document.removeEventListener("keydown",i)}return{trapRef:o,initFocusTrap:r,clearFocusTrap:a}},gt={key:0,class:"float-right leading-3 ml-2"},ht=e.createElementVNode("span",{class:"sr-only"},"close modal",-1),bt=e.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[e.createElementVNode("path",{d:"M12.0007 10.5862L16.9507 5.63623L18.3647 7.05023L13.4147 12.0002L18.3647 16.9502L16.9507 18.3642L12.0007 13.4142L7.05072 18.3642L5.63672 16.9502L10.5867 12.0002L5.63672 7.05023L7.05072 5.63623L12.0007 10.5862Z",fill:"currentColor"})],-1),xt={name:"LuiModal",inheritAttrs:!1},yt=e.defineComponent({...xt,props:{show:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},size:{type:String,default:"sm"}},emits:["close"],setup(t,{emit:l}){const n=t,o=`lui-modal-teleport-${j()}`,i=`lui-modal-${j()}`,{trapRef:r}=ft();function a(){const m=document.getElementsByTagName("body"),c=document.createElement("div");c.setAttribute("id",o),m[0].appendChild(c)}typeof window<"u"&&a();const d=e.computed(()=>{const m={boxShadow:"shadow-lg",borderRadius:"rounded-xl",padding:"p-6",width:{"max-w-xs":n.size==="xs","md:max-w-sm max-w-xs":n.size==="sm","md:max-w-md max-w-xs":n.size==="md","md:max-w-lg max-w-xs":n.size==="lg","md:max-w-xl max-w-xs":n.size==="xl"},backgroundColor:"bg-secondary-50 dark:bg-secondary-900"};return Object.values(m)}),s=e.computed(()=>Object.values({position:"fixed",zIndex:"z-40",top:"top-0",left:"left-0",width:"w-full",height:"h-full",display:"flex",alignItems:"items-center",justifyContent:"justify-center",backgroundColor:"bg-secondary-900/40"}));return(m,c)=>(e.openBlock(),e.createBlock(e.Teleport,{to:`#${o}`},[t.show?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"trapRef",ref:r,class:e.normalizeClass(e.unref(s))},[e.createElementVNode("div",{role:"dialog",id:i,"aria-labelledby":"dialog1_label","aria-modal":"true",class:e.normalizeClass(e.unref(d))},[t.showIcon?(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(K,{variant:"link",color:"secondary",rounded:"",onClick:c[0]||(c[0]=g=>l("close"))},{default:e.withCtx(()=>[ht,bt]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"default")],2)],2)):e.createCommentVNode("",!0)],8,["to"]))}});p.LuiAvatar=le,p.LuiBadge=oe,p.LuiButton=K,p.LuiCheckbox=ze,p.LuiInput=X,p.LuiMenuDropdown=Se,p.LuiMenuItem=Ve,p.LuiModal=yt,p.LuiOption=U,p.LuiRadio=De,p.LuiSelect=Ge,p.LuiSwitch=Ye,p.LuiTextarea=ut,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
{
"name": "@lui-ui/lui-vue",
"version": "0.33.8",
"version": "0.34.0",
"scripts": {
"dev": "vite",
"build": "run-p type-check build-only",
"preview": "vite preview",
"test:unit": "vitest --environment jsdom --root src/",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"safelist": "npx tailwindcss build",
"build": "vite build",
"preview": "vite preview",
"sb": "start-storybook -p 6006",
"pub": "yarn build && yarn safelist && yarn publish",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
},
"dependencies": {},
"peerDependencies": {

@@ -18,18 +23,41 @@ "tailwindcss": "^3.0.8",

"devDependencies": {
"@babel/core": "^7.16.7",
"@storybook/addon-actions": "^6.5.0-alpha.5",
"@storybook/addon-essentials": "^6.5.0-alpha.5",
"@storybook/addon-links": "^6.5.0-alpha.5",
"@storybook/vue3": "^6.5.0-alpha.5",
"@vitejs/plugin-vue": "^2.0.0",
"autoprefixer": "^10.4.0",
"babel-loader": "^8.2.3",
"postcss": "^8.4.5",
"@babel/core": "^7.19.6",
"@rushstack/eslint-patch": "^1.1.4",
"@storybook/addon-actions": "^6.5.13",
"@storybook/addon-essentials": "^6.5.13",
"@storybook/addon-interactions": "^6.5.13",
"@storybook/addon-links": "^6.5.13",
"@storybook/builder-vite": "^0.2.5",
"@storybook/testing-library": "^0.0.13",
"@storybook/vue3": "^6.5.13",
"@types/jsdom": "^20.0.0",
"@types/node": "^16.11.68",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.2",
"@vue/test-utils": "^2.1.0",
"@vue/tsconfig": "^0.1.3",
"autoprefixer": "^10.4.13",
"babel-loader": "^8.2.5",
"classnames": "^2.3.2",
"eslint": "^8.22.0",
"eslint-plugin-storybook": "^0.6.6",
"eslint-plugin-vue": "^9.3.0",
"gh-pages": "^4.0.0",
"jsdom": "^20.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.18",
"prettier": "^2.7.1",
"remixicon": "^2.5.0",
"storybook-builder-vite": "^0.1.13",
"storybook-darkmode-vue": "^1.1.8",
"tailwind-safelist-generator": "^1.0.0",
"tailwindcss": "^3.0.8",
"vite": "^2.7.2",
"vue": "^3.2.26",
"vue-loader": "^16.8.3"
"tailwindcss": "^3.2.1",
"typescript": "~4.9.4",
"vite": "^3.1.8",
"vite-plugin-dts": "^1.7.1",
"vitest": "^0.24.3",
"vue": "^3.2.41",
"vue-docgen-api": "^4.54.2",
"vue-loader": "^16.8.3",
"vue-tsc": "^1.0.11"
},

@@ -41,2 +69,3 @@ "files": [

"module": "./dist/lui-vue.es.js",
"types": "./dist/index.d.ts",
"exports": {

@@ -54,3 +83,7 @@ ".": {

"keywords": [
"ui"
"ui",
"tailwind",
"lui",
"vue",
"components"
],

@@ -62,6 +95,3 @@ "author": "lui-ui",

},
"homepage": "https://github.com/LUI-UI/lui-vue#readme",
"dependencies": {
"vue-router": "4"
}
"homepage": "https://LUI-UI.github.io/lui-vue"
}

@@ -1,7 +0,52 @@

# Vue 3 + Vite
# lui-ui
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
This template should help get you started developing with Vue 3 in Vite.
## Recommended IDE Setup
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
## Type Support for `.vue` Imports in TS
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
## Customize configuration
See [Vite Configuration Reference](https://vitejs.dev/config/).
## Project Setup
```sh
npm install
```
### Compile and Hot-Reload for Development
```sh
npm run dev
```
### Type-Check, Compile and Minify for Production
```sh
npm run build
```
### Run Unit Tests with [Vitest](https://vitest.dev/)
```sh
npm run test:unit
```
### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc