(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.Vue3RexUI={},a.Vue))})(this,function(a,e){"use strict";const C=[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)],f={__name:"IconClose",props:{size:{type:String,default:"md"}},setup(t){const o=t,l=e.computed(()=>({sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12","2xl":"w-16 h-16","3xl":"w-20 h-20"})),n=e.computed(()=>`${l.value[o.size]}`);return(r,i)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass(n.value),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},C,2))}},B={key:0,class:"mr-2"},$={key:1,class:"ml-2"},v={key:2,class:"ml-auto"},S={__name:"Alert",props:{modelValue:{type:Boolean,default:null},look:{type:String,default:"clean",validator:t=>["clean","inverted","dark"]},variant:{type:String,default:"primary",validator:t=>["default","primary","secondary","info","success","warning","danger","light"].includes(t)},shadow:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},size:{type:String,default:"md",validator:t=>["sm","md","lg","xl","2xl","3xl"].includes(t)},border:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},iconPosition:{type:String,default:"left",validator:t=>["left","right"].includes(t)}},emits:["click"],setup(t,{emit:o}){const l=o,n=()=>{l("click")},r=t,i=e.computed(()=>{switch(r.look){case"inverted":return{default:"bg-white",primary:"bg-blue-100",secondary:"bg-gray-100",info:"bg-teal-100",success:"bg-green-100",warning:"bg-yellow-100",danger:"bg-red-100",light:"bg-gray-100"};case"dark":return{default:"bg-gray-100",primary:"bg-blue-500",secondary:"bg-gray-500",info:"bg-teal-500",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",light:"bg-gray-500"};default:return{default:"bg-white",primary:"bg-white",secondary:"bg-white",info:"bg-white",success:"bg-white",warning:"bg-white",danger:"bg-white",light:"bg-white"}}}),u=e.computed(()=>{switch(r.look){case"inverted":return{default:"border-white",primary:"border-blue-100",secondary:"border-gray-100",info:"border-teal-100",success:"border-green-100",warning:"border-yellow-100",danger:"border-red-100",light:"border-gray-100"};case"dark":return{default:"border-gray-100",primary:"border-blue-500",secondary:"border-gray-500",info:"border-teal-500",success:"border-green-500",warning:"border-yellow-500",danger:"border-red-500",light:"border-gray-500"};default:return{default:"border-gray-200",primary:"border-blue-200",secondary:"border-gray-200",info:"border-teal-200",success:"border-green-200",warning:"border-yellow-200",danger:"border-red-200",light:"border-gray-200"}}}),g=e.computed(()=>({default:"text-gray-700",primary:"text-blue-700",secondary:"text-gray-700",info:"text-teal-700",success:"text-green-700",warning:"text-yellow-700",danger:"text-red-700",light:"text-gray-700"})),m=e.computed(()=>({sm:"px-3",md:"px-3",lg:"px-3",xl:"px-4","2xl":"px-4","3xl":"px-5"})),x=e.computed(()=>({sm:"py-1.5",md:"py-2",lg:"py-2.5",xl:"py-2.5","2xl":"py-3","3xl":"py-3"})),h=e.computed(()=>({sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg","2xl":"text-xl","3xl":"text-2xl"})),p=e.computed(()=>({sm:"rounded",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl"})),d=e.computed(()=>({sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl","3xl":"shadow-3xl"})),b=e.computed(()=>({default:"shadow-gray-200/25",primary:"shadow-blue-200/25",secondary:"shadow-gray-200/25",info:"shadow-teal-200/25",success:"shadow-green-200/25",warning:"shadow-yellow-200/25",danger:"shadow-red-200/25",light:"shadow-gray-200/25"})),w=e.computed(()=>["flex justify-between",r.border?["border","border-solid",u.value[r.variant]]:null,r.rounded?p.value[r.size]:null,r.shadow?[d.value[r.size],b.value[r.variant]]:null,m.value[r.size],x.value[r.size],h.value[r.size],i.value[r.variant],g.value[r.variant]]),_={sm:"sm",md:"sm",lg:"md",xl:"lg","2xl":"lg","3xl":"lg"},k=e.computed(()=>r.modelValue===null||r.modelValue===!0);return(c,ue)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(w.value),onClick:n},[c.$slots.icon&&r.iconPosition==="left"?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(c.$slots,"icon")])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default"),c.$slots.icon&&r.iconPosition==="right"?(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(c.$slots,"icon")])):e.createCommentVNode("",!0),c.$slots.close||r.closable?(e.openBlock(),e.createElementBlock("div",v,[e.renderSlot(c.$slots,"close",{},()=>[e.createVNode(e.unref(f),{size:_[r.size]},null,8,["size"])])])):e.createCommentVNode("",!0)],2)),[[e.vShow,k.value]])}},s=(t,o)=>{const l=t.__vccOpts||t;for(const[n,r]of o)l[n]=r;return l},z={};function R(t,o){return e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(t.$slots,"default")])}const E=s(z,[["render",R]]),y=(t,o)=>{switch(t){case"size":return{xs:o,sm:o,md:o,lg:o,xl:o};case"theme":return{primary:o,secondary:o,success:o,danger:o,warning:o,info:o,light:o,dark:o};default:return{}}},V={__name:"Button",props:{href:{type:String,default:null},variant:{type:String,default:"primary",validator:t=>["primary","secondary","info","success","warning","danger","light"].includes(t)},size:{type:String,default:"md",validator:t=>["sm","md","lg","xl","2xl","3xl"].includes(t)},block:{type:Boolean,default:!1},border:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},look:{type:String,default:"clean",validator:t=>["clean","inverted","dark"].includes(t)},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:o}){const l=o,n=()=>{l("click")},r=t,i=e.computed(()=>r.href?"a":"button"),u=e.computed(()=>{switch(r.look){case"dark":return{primary:"bg-blue-600 hover:bg-blue-500 focus-visible:outline-blue-600",secondary:"bg-gray-600 hover:bg-gray-500 focus-visible:outline-gray-600",info:"bg-teal-600 hover:bg-teal-500 focus-visible:outline-teal-600",success:"bg-green-600 hover:bg-green-500 focus-visible:outline-green-600",warning:"bg-yellow-600 hover:bg-yellow-500 focus-visible:outline-yellow-600",danger:"bg-red-600 hover:bg-red-500 focus-visible:outline-red-600",light:"bg-gray-200 hover:bg-gray-300 focus-visible:outline-gray-200"};case"inverted":return{primary:"bg-blue-100 hover:bg-blue-500 focus-visible:outline-blue-600",secondary:"bg-gray-100 hover:bg-gray-500 focus-visible:outline-gray-600",info:"bg-teal-100 hover:bg-teal-500 focus-visible:outline-teal-600",success:"bg-green-100 hover:bg-green-500 focus-visible:outline-green-600",warning:"bg-yellow-100 hover:bg-yellow-500 focus-visible:outline-yellow-600",danger:"bg-red-100 hover:bg-red-500 focus-visible:outline-red-600",light:"bg-gray-100 hover:bg-gray-300 focus-visible:outline-gray-200"};default:return{primary:"bg-white hover:bg-blue-600 focus-visible:outline-blue-600",secondary:"bg-white hover:bg-gray-600 focus-visible:outline-gray-600",info:"bg-white hover:bg-teal-600 focus-visible:outline-teal-600",success:"bg-white hover:bg-green-600 focus-visible:outline-green-600",warning:"bg-white hover:bg-yellow-600 focus-visible:outline-yellow-600",danger:"bg-white hover:bg-red-600 focus-visible:outline-red-600",light:"bg-white hover:bg-gray-600 focus-visible:outline-gray-200"}}}),g=e.computed(()=>{switch(r.look){case"dark":return{primary:"text-white",secondary:"text-white",info:"text-white",success:"text-white",warning:"text-white",danger:"text-white",light:"text-gray-800"};case"inverted":return{primary:"text-blue-600 hover:text-white",secondary:"text-gray-600 hover:text-white",info:"text-teal-600 hover:text-white",success:"text-green-600 hover:text-white",warning:"text-yellow-600 hover:text-white",danger:"text-red-600 hover:text-white",light:"text-gray-60 hover:text-white0"};default:return{primary:"text-blue-600 hover:text-white",secondary:"text-gray-600 hover:text-white",info:"text-teal-600 hover:text-white",success:"text-green-600 hover:text-white",warning:"text-yellow-600 hover:text-white",danger:"text-red-600 hover:text-white",light:"text-gray-60 hover:text-white0"}}}),m=e.computed(()=>({sm:"px-2",md:"px-2.5",lg:"px-3",xl:"px-3.5","2xl":"px-4","3xl":"px-5"})),x=e.computed(()=>({sm:"py-1",md:"py-1.5",lg:"py-2",xl:"py-2.5","2xl":"py-3","3xl":"py-4"})),h=e.computed(()=>({sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg","2xl":"text-xl","3xl":"text-2xl"})),p=e.computed(()=>({sm:"shadow-sm",md:"shadow-sm",lg:"shadow-md",xl:"shadow-md","2xl":"shadow-md","3xl":"shadow-lg"})),d=e.computed(()=>{switch(r.look){case"dark":return y("theme","border-gray-400");case"inverted":return y("theme","border-gray-300");default:return{primary:"border-blue-600",secondary:"border-gray-600",info:"border-teal-600",success:"border-green-600",warning:"border-yellow-600",danger:"border-red-600",light:"border-gray-200"}}}),b=e.computed(()=>{switch(r.look){case"dark":return y("theme","shadow-gray-400");case"inverted":return y("theme","shadow-gray-300");default:return{primary:"shadow-blue-600/20",secondary:"shadow-gray-600/20",info:"shadow-teal-600/20",success:"shadow-green-600/20",warning:"shadow-yellow-600/20",danger:"shadow-red-600/20",light:"shadow-gray-20/200"}}}),w=e.computed(()=>[m.value[r.size],x.value[r.size],h.value[r.size],u.value[r.variant],g.value[r.variant],"rounded-md","font-semibold",r.shadow?[p.value[r.size],b.value[r.variant]]:null,"focus-visible:outline","transition-all",r.border?["border",d.value[r.variant]]:null,{block:r.block,"rounded-md":r.rounded,"text-gray-700":r.outline,"cursor-not-allowed":r.disabled}]);return(_,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{class:e.normalizeClass(w.value),onClick:n},{default:e.withCtx(()=>[e.renderSlot(_.$slots,"default")]),_:3},8,["class"]))}},I={};function N(t,o){return e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(t.$slots,"default")])}const A=s(I,[["render",N]]),P={},T={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"};function j(t,o){return e.openBlock(),e.createElementBlock("div",T,[e.renderSlot(t.$slots,"default")])}const M=s(P,[["render",j]]),U={};function D(t,o){return e.openBlock(),e.createElementBlock("footer",null,[e.renderSlot(t.$slots,"default")])}const q=s(U,[["render",D]]),F={};function H(t,o){return e.openBlock(),e.createElementBlock("header",null,[e.renderSlot(t.$slots,"default")])}const O=s(F,[["render",H]]),W=["type","placeholder","value"],G={__name:"InputText",props:{modelValue:{type:String,default:""},variant:{type:String,default:"default",validator:t=>["default","primary","secondary","info","success","warning","danger","light"].includes(t)},look:{type:String,default:"clean",validator:t=>["inverted","clean","dark"].includes(t)},size:{type:String,default:"md",validator:t=>["sm","md","lg","xl","2xl","3xl"].includes(t)},type:{type:String,default:"text",validator:t=>["text","password","email","number","tel","url"].includes(t)},placeholder:{type:String,default:""},border:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},iconPosition:{type:String,default:"left",validator:t=>["left","right"].includes(t)},shadow:{type:Boolean,default:!0}},emits:["click","input","update:modelValue"],setup(t,{emit:o}){const l=o,n=d=>{l("input",d.target.value),l("update:modelValue",d.target.value)},r=t,i=e.computed(()=>({default:"bg-white",primary:"bg-blue-100",secondary:"bg-gray-100",info:"bg-teal-100",success:"bg-green-100",warning:"bg-yellow-100",danger:"bg-red-100",light:"bg-gray-100"})),u=e.computed(()=>({sm:"shadow-sm",md:"shadow-sm",lg:"shadow-md",xl:"shadow-md","2xl":"shadow-lg","3xl":"shadow-lg"})),g=e.computed(()=>({default:"border-gray-200",primary:"border-blue-500",secondary:"border-gray-500",info:"border-teal-500",success:"border-green-500",warning:"border-yellow-500",danger:"border-red-500",light:"border-gray-500"}));e.computed(()=>({default:"text-gray-800",primary:"text-gray-900",secondary:"text-gray-700",info:"text-teal-700",success:"text-green-700",warning:"text-yellow-700",danger:"text-red-700",light:"text-gray-700"})),e.computed(()=>({sm:"px-2 py-1",md:"px-3 py-1.5",lg:"px-4 py-2",xl:"px-5 py-2.5","2xl":"px-6 py-3","3xl":"px-7 py-3.5"})),e.computed(()=>({sm:"py-1",md:"py-1.5",lg:"py-2",xl:"py-2.5","2xl":"py-3","3xl":"py-3.5"}));const m=e.computed(()=>({sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg","2xl":"text-xl","3xl":"text-2xl"})),x=e.computed(()=>({sm:"rounded",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl"})),h=e.computed(()=>["relative","flex","items-center","space-x-2","border","border-gray-300","rounded-md","bg-white","focus-within:border-blue-500",g.value[r.variant],i.value[r.variant]]),p=e.computed(()=>["w-full","py-2","px-3","text-gray-900","bg-transparent","outline-none","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-opacity-50","rounded-md",m.value[r.size],u.value[r.size],x.value[r.size]]);return(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(h.value)},[e.createElementVNode("input",{type:t.type,class:e.normalizeClass(p.value),placeholder:t.placeholder,value:t.modelValue,onInput:n},null,42,W)],2))}},J={__name:"Icon",props:{icon:{type:String,required:!0}},setup(t){const o=t,l=e.computed(()=>{switch(o.icon){case"close":return f;default:return null}});return(n,r)=>l.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0})):e.createCommentVNode("",!0)}},K={};function L(t,o){return e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(t.$slots,"default")])}const Q=s(K,[["render",L]]),X={},Y={class:"flex gap-2"};function Z(t,o){return e.openBlock(),e.createElementBlock("nav",Y,[e.renderSlot(t.$slots,"default")])}const ee=s(X,[["render",Z]]),te={};function re(t,o){return e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(t.$slots,"default")])}const oe=s(te,[["render",re]]),le={},ne={class:"flex"};function se(t,o){return e.openBlock(),e.createElementBlock("div",ne,[e.renderSlot(t.$slots,"default")])}const ae=s(le,[["render",se]]);function de(){return{install(t){t.component("RexApp",E),t.component("RexAlert",S),t.component("RexButton",V),t.component("RexCol",A),t.component("RexContainer",M),t.component("RexFooter",q),t.component("RexHeader",O),t.component("RexIcon",J),t.component("RexIconClose",f),t.component("RexInputText",G),t.component("RexNav",ee),t.component("RexNavItem",oe),t.component("RexMain",Q),t.component("RexRow",ae)}}}a.createRexUI=de,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});