manolis-ui 0.1.6 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g.ManolisUi={},g.Vue))})(this,function(g,e){"use strict";const q={key:0,class:"loading loading-spinner"},Y=e.defineComponent({__name:"ButtonComponent",props:{outlined:{type:Boolean,default:!1},active:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{},size:{},shape:{}},setup(c){const s=c,t=e.computed(()=>{switch(s.size){case"large":return"btn-lg";case"small":return"btn-sm";case"tiny":return"btn-tiny";case"wide":return"btn-wide";case"full":return"w-full";default:return""}}),n=e.computed(()=>{switch(s.type){case"neutral":return"btn-neutral";case"primary":return"btn-primary";case"secondary":return"btn-secondary";case"accent":return"btn-accent";case"ghost":return"btn-ghost";case"link":return"btn-link px-0!";case"info":return"btn-info";case"success":return"btn-success";case"warning":return"btn-warning";case"error":return"btn-error";default:return"btn-neutral"}}),r=e.computed(()=>{switch(s.shape){case"square":return"btn-square";case"circle":return"btn-circle";default:return""}});return(l,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["btn",{"btn-outline":s.outlined},{"btn-active":s.active},n.value,t.value,r.value])},[l.loading?(e.openBlock(),e.createElementBlock("span",q)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default",{},()=>[d[0]||(d[0]=e.createTextVNode("Submit"))])],2))}}),J={tabindex:"0",class:"z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"},W=["href"],X=e.defineComponent({__name:"dropdown",props:{items:{},position:{default:"bottom"},floatPosition:{default:"start"},openOnHover:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1}},setup(c){const s={left:"dropdown-left",right:"dropdown-right",bottom:"dropdown-bottom",top:"dropdown-top"},t={start:"",end:"dropdown-end"},n=c;return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dropdown",s[n.position],t[n.floatPosition],{"dropdown-open":n.forceOpen},{"dropdown-hover":n.openOnHover}])},[e.renderSlot(r.$slots,"default",{tabindex:"0",role:"button"},()=>[l[0]||(l[0]=e.createElementVNode("div",{class:"m-1 btn"},"Open dropdown",-1))]),e.createElementVNode("ul",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,d=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("a",{href:d.link},e.toDisplayString(d.text),9,W)]))),256)),e.renderSlot(r.$slots,"additional")])],2))}}),Z={class:"modal-box"},K={class:"modal-action"},G=e.defineComponent({__name:"modal",props:{position:{default:"center"},withBackdrop:{type:Boolean,default:!1}},setup(c){const s=c,t={top:"modal-top",bottom:"modal-bottom",center:"modal-middle"},n=e.ref(null),r=()=>{var d;(d=n.value)==null||d.showModal()},l=()=>{var d;(d=n.value)==null||d.close()};return(d,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",{class:"w-fit cursor-pointer",onClick:r},[e.renderSlot(d.$slots,"trigger",{role:"button"},()=>[k[0]||(k[0]=e.createElementVNode("button",{class:"btn"},"Open",-1))])]),e.createElementVNode("dialog",{ref_key:"dialog",ref:n,class:e.normalizeClass(["modal",t[s.position]])},[e.createElementVNode("div",Z,[e.renderSlot(d.$slots,"default"),e.createElementVNode("div",K,[e.renderSlot(d.$slots,"actions"),e.createElementVNode("form",{method:"dialog",onSubmit:l,class:e.normalizeClass(d.withBackdrop?"modal-backdrop":"")},[e.renderSlot(d.$slots,"close-button",{},()=>[k[1]||(k[1]=e.createElementVNode("button",{class:"btn"},"Close",-1))])],34)])])],2)],64))}}),Q={class:"swap-on"},v={class:"swap-off"},ee=e.defineComponent({__name:"swap",props:{effect:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["swap",s.effect?`swap-${t.effect}`:""])},[n[0]||(n[0]=e.createElementVNode("input",{type:"checkbox"},null,-1)),e.createElementVNode("div",Q,[e.renderSlot(t.$slots,"on")]),e.createElementVNode("div",v,[e.renderSlot(t.$slots,"off")])],2))}});/**
1
+ (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g.ManolisUi={},g.Vue))})(this,function(g,e){"use strict";const q={key:0,class:"loading loading-spinner"},Y=e.defineComponent({__name:"ButtonComponent",props:{outlined:{type:Boolean,default:!1},active:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{},size:{},shape:{}},setup(c){const s=c,t=e.computed(()=>{switch(s.size){case"large":return"btn-lg";case"small":return"btn-sm";case"tiny":return"btn-tiny";case"wide":return"btn-wide";case"full":return"w-full";default:return""}}),n=e.computed(()=>{switch(s.type){case"neutral":return"btn-neutral";case"primary":return"btn-primary";case"secondary":return"btn-secondary";case"accent":return"btn-accent";case"ghost":return"btn-ghost";case"link":return"btn-link px-0!";case"info":return"btn-info";case"success":return"btn-success";case"warning":return"btn-warning";case"error":return"btn-error";default:return"btn-neutral"}}),o=e.computed(()=>{switch(s.shape){case"square":return"btn-square";case"circle":return"btn-circle";default:return""}});return(a,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["btn",{"btn-outline":s.outlined},{"btn-active":s.active},n.value,t.value,o.value])},[a.loading?(e.openBlock(),e.createElementBlock("span",q)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},()=>[d[0]||(d[0]=e.createTextVNode("Submit"))])],2))}}),J={tabindex:"0",class:"z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"},X=["href"],K=e.defineComponent({__name:"dropdown",props:{items:{},position:{default:"bottom"},floatPosition:{default:"start"},openOnHover:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1}},setup(c){const s={left:"dropdown-left",right:"dropdown-right",bottom:"dropdown-bottom",top:"dropdown-top"},t={start:"",end:"dropdown-end"},n=c;return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dropdown",s[n.position],t[n.floatPosition],{"dropdown-open":n.forceOpen},{"dropdown-hover":n.openOnHover}])},[e.renderSlot(o.$slots,"default",{tabindex:"0",role:"button"},()=>[a[0]||(a[0]=e.createElementVNode("div",{class:"m-1 btn"},"Open dropdown",-1))]),e.createElementVNode("ul",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,d=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("a",{href:d.link},e.toDisplayString(d.text),9,X)]))),256)),e.renderSlot(o.$slots,"additional")])],2))}}),W={class:"modal-box"},Z={class:"modal-action"},G=e.defineComponent({__name:"modal",props:{position:{default:"center"},withBackdrop:{type:Boolean,default:!1}},setup(c){const s=c,t={top:"modal-top",bottom:"modal-bottom",center:"modal-middle"},n=e.ref(null),o=()=>{var d;(d=n.value)==null||d.showModal()},a=()=>{var d;(d=n.value)==null||d.close()};return(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",{class:"w-fit cursor-pointer",onClick:o},[e.renderSlot(d.$slots,"trigger",{role:"button"},()=>[f[0]||(f[0]=e.createElementVNode("button",{class:"btn"},"Open",-1))])]),e.createElementVNode("dialog",{ref_key:"dialog",ref:n,class:e.normalizeClass(["modal",t[s.position]])},[e.createElementVNode("div",W,[e.renderSlot(d.$slots,"default"),e.createElementVNode("div",Z,[e.renderSlot(d.$slots,"actions"),e.createElementVNode("form",{method:"dialog",onSubmit:a,class:e.normalizeClass(d.withBackdrop?"modal-backdrop":"")},[e.renderSlot(d.$slots,"close-button",{},()=>[f[1]||(f[1]=e.createElementVNode("button",{class:"btn"},"Close",-1))])],34)])])],2)],64))}}),Q={class:"swap-on"},v={class:"swap-off"},ee=e.defineComponent({__name:"swap",props:{effect:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["swap",s.effect?`swap-${t.effect}`:""])},[n[0]||(n[0]=e.createElementVNode("input",{type:"checkbox"},null,-1)),e.createElementVNode("div",Q,[e.renderSlot(t.$slots,"on")]),e.createElementVNode("div",v,[e.renderSlot(t.$slots,"off")])],2))}});/**
2
2
  * @license lucide-vue-next v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -8,29 +8,34 @@
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */var D={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
11
+ */var M={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
12
12
  * @license lucide-vue-next v0.468.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const ne=({size:c,strokeWidth:s=2,absoluteStrokeWidth:t,color:n,iconNode:r,name:l,class:d,...k},{slots:p})=>e.h("svg",{...D,width:c||D.width,height:c||D.height,stroke:n||D.stroke,"stroke-width":t?Number(s)*24/Number(c):s,class:["lucide",`lucide-${te(l??"icon")}`],...k},[...r.map(m=>e.h(...m)),...p.default?[p.default()]:[]]);/**
16
+ */const ne=({size:c,strokeWidth:s=2,absoluteStrokeWidth:t,color:n,iconNode:o,name:a,class:d,...f},{slots:p})=>e.h("svg",{...M,width:c||M.width,height:c||M.height,stroke:n||M.stroke,"stroke-width":t?Number(s)*24/Number(c):s,class:["lucide",`lucide-${te(a??"icon")}`],...f},[...o.map(m=>e.h(...m)),...p.default?[p.default()]:[]]);/**
17
17
  * @license lucide-vue-next v0.468.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const O=(c,s)=>(t,{slots:n})=>e.h(ne,{...t,iconNode:s,name:c},n);/**
21
+ */const x=(c,s)=>(t,{slots:n})=>e.h(ne,{...t,iconNode:s,name:c},n);/**
22
22
  * @license lucide-vue-next v0.468.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const oe=O("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
26
+ */const oe=x("CalendarIcon",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
27
27
  * @license lucide-vue-next v0.468.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const A=O("SearchIcon",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
31
+ */const le=x("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
32
32
  * @license lucide-vue-next v0.468.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const le=O("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),ae=(c,s)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const n=window.localStorage.getItem(c);t.value=n?JSON.parse(n):s}}),e.watch(t,n=>{typeof window<"u"&&window.localStorage.setItem(c,JSON.stringify(n))}),t},re={class:"swap-rotate swap"},se=["true-value","false-value"],ce=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(c){const s=c,t=ae("theme",s.lightTheme);function n(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>n(t.value?t.value:"")),e.watch(t,r=>{n(r)}),(r,l)=>(e.openBlock(),e.createElementBlock("label",re,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(t)?t.value=d:null),"true-value":s.lightTheme,"false-value":s.darkTheme},null,8,se),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(le),{class:"swap-off fill-current"}),e.createVNode(e.unref(oe),{class:"swap-on fill-current"})]))}}),ie=["name"],de={class:"collapse-title font-bold text-2xl lg:text-4xl"},me={class:"collapse-content"},pe=["innerHTML"],fe=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:l},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,ie),e.createElementVNode("div",de,e.toDisplayString(r.title),1),e.createElementVNode("div",me,[e.createElementVNode("span",{innerHTML:r.content},null,8,pe)])],2))),128))}}),ue=["src"],ge={class:"text-xl"},ke=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(c){const s=c,t=e.ref(s.onlineStatus);return e.watch(()=>s.onlineStatus,n=>{n&&(t.value=n)}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":t.value==="online"},{"avatar-offline":t.value==="offline"}]])},[n.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("img",{src:n.image,class:"w-full h-full"},null,8,ue)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("p",ge,e.toDisplayString(n.initials),1)],2))],2))}}),he=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(c){const s=c,t={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},n={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(r,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[s.size],n[s.color],{"badge-outline":s.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),be=["src","alt"],ye={key:1,class:"w-full h-32 skeleton"},Be={key:0,class:"card-body"},we={key:0,class:"group-hover:text-primary text-left text-lg cursor-pointer card-title"},Ee={key:1,class:"text-left"},_e={class:"flex-col flex-nowrap mt-auto card-actions"},Ce={key:1,class:"card-body"},Se=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""}},setup(c){const s=c,t=e.ref(s.outlined);return e.watch(()=>s.outlined,n=>{t.value=n}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact group",t.value?"border-4 border-primary":""])},[e.createElementVNode("figure",null,[n.imgUrl||n.imgUrl&&!n.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgUrl,alt:n.alt,class:e.normalizeClass(["rounded-sm w-full h-44 object-cover",{hidden:n.loading}])},null,10,be)):e.createCommentVNode("",!0),n.loading&&n.imgUrl?(e.openBlock(),e.createElementBlock("div",ye)):e.createCommentVNode("",!0)]),n.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Be,[n.title?(e.openBlock(),e.createElementBlock("h2",we,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"details"),n.description?(e.openBlock(),e.createElementBlock("p",Ee,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",_e,[e.renderSlot(n.$slots,"actions")])])),n.loading?(e.openBlock(),e.createElementBlock("div",Ce,r[0]||(r[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)]))):e.createCommentVNode("",!0)],2))}}),Ve={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ne=["onClick"],$e={class:"text-sm"},De={class:"md:block hidden opacity-35 text-xs truncate overflow-hidden ..."},xe={class:"hidden"},Me={id:"advancedSearchMobile",class:"modal"},Te={class:"modal-box"},ze={class:"font-bold text-lg"},Oe=["checked"],Le={class:"flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title"},Fe={class:"text-sm"},Ie={class:"flex place-content-center p-0 collapse-content"},Ue=e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{}},emits:["search","update:search-data"],setup(c,{emit:s}){const t=c,n=s,r=e.ref(null),l={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>st))},d=e.ref({}),k=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),p=e.ref(null);function m(h,w){var B,E,u;if((B=r.value)!=null&&B.name){n("update:search-data",{tab:r.value.name,data:h});return}if(t.searchOptions){let b=(u=(E=t.searchOptions)==null?void 0:E.find(_=>(_==null?void 0:_.category)===t.currentCategory))==null?void 0:u.tabs[w];b!==void 0&&(b.value=h,n("update:search-data",{tab:b==null?void 0:b.name,data:b==null?void 0:b.value}))}}function f(){n("search")}async function S(h){p.value&&!p.value.contains(h.target)&&(await e.nextTick(),r.value=null)}async function L(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById("advancedSearchMobile");h?h.showModal():console.warn("Modal element not found.")}}async function F(h){var B;r.value=h,await e.nextTick();const w=d.value[h.name];if(w){const E=w.getBoundingClientRect(),u=((B=p.value)==null?void 0:B.getBoundingClientRect())||{left:0,top:0};window.innerWidth>768?k.value={left:`${E.left+E.width/2-u.left}px`,top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}:k.value={left:"50%",top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}}else console.error("Tab element not found for:",h.name)}return e.onMounted(()=>{document.addEventListener("click",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",S)}),(h,w)=>{var B,E;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:p,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center border-2 shadow-md p-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:L},[e.createElementVNode("div",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((B=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:B.tabs)||[],u=>{var b;return e.openBlock(),e.createElementBlock("button",{key:u.name,onClick:_=>F(u),class:e.normalizeClass([{"tab-active":((b=r.value)==null?void 0:b.name)===u.name},"group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),ref_for:!0,ref:_=>d.value[u.name]=_},[e.createElementVNode("p",$e,e.toDisplayString(u.name),1),e.createElementVNode("p",De,e.toDisplayString(u.description),1)],10,Ne)}),128))]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(k.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[r.value.type]),e.mergeProps(r.value.props?r.value.props:null,{onUpdated:m}),null,16))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:f},[e.createVNode(e.unref(A),{size:24,color:"white"})])]),e.createElementVNode("div",xe,[e.createElementVNode("button",{title:"search",onClick:w[0]||(w[0]=()=>{})},[e.createVNode(e.unref(A),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",Me,[e.createElementVNode("div",Te,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",ze,e.toDisplayString(h.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((E=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:E.tabs)||[],(u,b)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-base-200 my-4 collapse",key:u.name},[e.createElementVNode("input",{type:"radio",name:"my-accordion-1",checked:b===0},null,8,Oe),e.createElementVNode("div",Le,[e.createTextVNode(e.toDisplayString(u.name)+" ",1),e.createElementVNode("p",Fe,e.toDisplayString(u.description),1)]),e.createElementVNode("div",Ie,[w[1]||(w[1]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[u.type]),e.mergeProps({ref_for:!0},u.props||{},{onUpdated:_=>m(_,b)}),null,16,["onUpdated"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:f},"Close and Search")])])])])],64)}}}),x=(c,s)=>{const t=c.__vccOpts||c;for(const[n,r]of s)t[n]=r;return t},Ae=x(Ue,[["__scopeId","data-v-08fa37eb"]]),Pe=["placeholder","value","id"],je=["id"],Re={key:0,class:"flex justify-between items-center place-content-center mb-4"},He=["value"],qe=["value"],Ye={key:1,class:"gap-2 grid grid-cols-7"},Je=["onClick"],We={key:2,class:"mt-4 lg:w-80"},Xe={key:0,class:"mb-2 font-bold text-lg"},Ze={key:1},Ke={key:1,class:"flex gap-4"},Ge=["value"],Qe=["value"],ve={key:2,class:"flex flex-col gap-4"},et={key:1,class:"flex gap-2"},tt=["value"],nt=["value"],ot={key:1,class:"flex gap-2"},lt=["value"],at=["value"],rt={class:"flex gap-2 mt-4"},P=x({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:c=>["datetime","date","time"].includes(c)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null}},emits:["updated"],setup(c,{emit:s}){const t=c;e.watch(()=>t.range,a=>{a?(l.value={start:null,end:null},d.value={start:null,end:null}):(l.value=null,d.value=null)});const n=s,r=e.ref(!1),l=e.ref(t.range?{start:null,end:null}:null),d=e.ref(t.range?{start:null,end:null}:null),k=e.ref(new Date().toLocaleString("default",{month:"long"})),p=e.ref(new Date().getFullYear()),m=e.ref(t.range?{start:0,end:0}:0),f=e.ref(t.range?{start:0,end:0}:0),S=e.ref(null),L=e.computed(()=>`${t.id}-input`),F=e.computed(()=>`${t.id}-popup`),h=e.computed(()=>t.mode==="date"||t.mode==="datetime"),w=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(p.value,B.value));const B=e.computed(()=>T.indexOf(k.value)),E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],u=e.computed(()=>new Date(p.value,B.value).getDay()),b=e.computed(()=>{const a=new Date(p.value,B.value+1,0).getDate();return Array.from({length:a},(i,o)=>new Date(p.value,B.value,o+1))}),_=e.computed(()=>Array.from({length:u.value},(a,i)=>i)),I=Array.from({length:24},(a,i)=>i),U=Array.from({length:60},(a,i)=>i),M=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),T=["January","February","March","April","May","June","July","August","September","October","November","December"],It=e.computed(()=>{const a=new Date().getFullYear();return Array.from({length:100},(i,o)=>a-50+o)}),Ut=e.computed(()=>{if(!h.value||!l.value)return"";if(t.range&&l.value.start&&l.value.end){const a=l.value.start.toLocaleDateString("en-US"),i=l.value.end.toLocaleDateString("en-US");return`${a} - ${i}`}return!t.range&&l.value?l.value.toLocaleDateString("en-US"):""}),N=a=>a instanceof Date?a:new Date(a),V=a=>a instanceof Date&&!isNaN(a),At=e.computed(()=>{if(!w.value)return"";const a=i=>{var z,$,H;const o=((z=m.value)==null?void 0:z[i])??m.value,C=(($=f.value)==null?void 0:$[i])??f.value;return M.value?((H=d.value)==null?void 0:H[i])??d.value:`${o.toString().padStart(2,"0")}:${C.toString().padStart(2,"0")}`};return t.range?`${a("start")} - ${a("end")}`:a()}),Pt=e.computed(()=>{const a=Ut.value,i=At.value;return`${a} ${i}`.trim()}),jt=()=>r.value=!r.value,j=()=>{y(),Rt()},Rt=()=>r.value=!1,Ht=()=>{l.value=t.range?{start:null,end:null}:null,d.value=t.range?{start:null,end:null}:null,y()},qt=a=>{t.range?l.value.start&&l.value.end?l.value={start:a,end:null}:l.value.start?l.value.end=a:l.value.start=a:l.value=a,y()},Yt=a=>(a=N(a),t.range?l.value.start&&V(l.value.start)&&a.getTime()===l.value.start.getTime()||l.value.end&&V(l.value.end)&&a.getTime()===l.value.end.getTime():V(l.value)&&a.getTime()===l.value.getTime()),Jt=a=>{a=N(a);const i=new Date;return a.getDate()===i.getDate()&&a.getMonth()===i.getMonth()&&a.getFullYear()===i.getFullYear()},Wt=a=>(a=N(a),t.range&&V(l.value.start)&&a.getTime()===l.value.start.getTime()),Xt=a=>(a=N(a),t.range&&V(l.value.end)&&a.getTime()===l.value.end.getTime()),Zt=a=>{if(a=N(a),t.range&&V(l.value.start)&&V(l.value.end)){const i=l.value.start.getTime(),o=l.value.end.getTime(),C=a.getTime();return C>i&&C<o}return!1},Kt=()=>{let a=B.value-1;a<0&&(a=11,p.value--),k.value=T[a],y()},Gt=()=>{let a=B.value+1;a>11&&(a=0,p.value++),k.value=T[a],y()},R=a=>{S.value&&!S.value.contains(a.target)&&r.value==!0&&j()},y=()=>{let a={};const i=(o,C,z)=>{o instanceof Date&&!isNaN(o)||(o=new Date);const $=new Date(o);return $.setUTCHours(C,z,0,0),$.toISOString()};t.range?(a.from=i(l.value.start,m.value.start,f.value.start),a.to=i(l.value.end,m.value.end,f.value.end)):a=i(l.value,m.value,f.value),n("updated",a)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?l.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(l.value={start:new Date(t.initialDate.start)})),t.range?(m.value.start=m.value.start??new Date().getHours(),m.value.end=m.value.end??new Date().getHours(),f.value.start=f.value.start??new Date().getMinutes(),f.value.end=f.value.end??new Date().getMinutes()):(m.value=m.value??new Date().getHours(),f.value=f.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",R)),e.onUnmounted(()=>document.removeEventListener("click",R)),(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:S},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:jt},[c.popup?e.renderSlot(a.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:c.placeholder,value:Pt.value,readonly:"",id:L.value},null,8,Pe),i[11]||(i[11]=e.createElementVNode("button",{class:"btn btn-ghost"}," 📅 ",-1))],!0):e.createCommentVNode("",!0)]),r.value||!c.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full",[{absolute:c.popup}]]),id:F.value},[h.value?(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Kt},i[12]||(i[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":i[0]||(i[0]=o=>k.value=o),onChange:y},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,(o,C)=>e.createElementVNode("option",{key:C,value:o},e.toDisplayString(o),9,He)),64))],544),[[e.vModelSelect,k.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":i[1]||(i[1]=o=>p.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(It.value,o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o),9,qe))),128))],544),[[e.vModelSelect,p.value]]),e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Gt},i[13]||(i[13]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,o=>e.createElementVNode("div",{key:o,class:"text-center"},e.toDisplayString(o),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":Yt(o),today:Jt(o),"range-start bg-primary text-primary-content":Wt(o),"range-end bg-primary text-primary-content":Xt(o),"in-range bg-primary/20 hover:bg-primary/10":Zt(o)}]),onClick:C=>qt(o)},e.toDisplayString(o.getDate()),11,Je))),128))])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("div",We,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",Xe,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",null,[i[14]||(i[14]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[5]||(i[5]=o=>d.value.start=o),onChange:y},null,544)),[[e.vModelText,d.value.start]]):(e.openBlock(),e.createElementBlock("div",et,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[6]||(i[6]=o=>m.value.start=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,tt))),128))],544),[[e.vModelSelect,m.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[7]||(i[7]=o=>f.value.start=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,nt))),128))],544),[[e.vModelSelect,f.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[i[15]||(i[15]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[8]||(i[8]=o=>d.value.end=o),onChange:y},null,544)),[[e.vModelText,d.value.end]]):(e.openBlock(),e.createElementBlock("div",ot,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[9]||(i[9]=o=>m.value.end=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,lt))),128))],544),[[e.vModelSelect,m.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[10]||(i[10]=o=>f.value.end=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,at))),128))],544),[[e.vModelSelect,f.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",Ze,[M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[2]||(i[2]=o=>d.value=o),onChange:y},null,544)),[[e.vModelText,d.value]]):(e.openBlock(),e.createElementBlock("div",Ke,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[3]||(i[3]=o=>m.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,Ge))),128))],544),[[e.vModelSelect,m.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[4]||(i[4]=o=>f.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,Qe))),128))],544),[[e.vModelSelect,f.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",rt,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",c.popup?"w-fit":"w-full"]),onClick:Ht},"Clear",2),c.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:j},"Close")):e.createCommentVNode("",!0)])],10,je)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-cb781ab6"]]),st=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),ct=["value","checked","onChange","disabled"],it=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"}},setup(c){const s=c,t=e.ref(s.initialRating);e.watch(()=>s.initialRating,r=>{t.value=r});const n=r=>{t.value=r};return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${s.size}`,{"rating-half":r.halfStars}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.numberOfStars*(r.halfStars?2:1),d=>(e.openBlock(),e.createElementBlock("input",{key:d,type:"radio",value:r.halfStars?d*.5:d,checked:t.value===(r.halfStars?d*.5:d),onChange:k=>r.isInteractive?n(r.halfStars?d*.5:d):null,class:e.normalizeClass(["mask mask-star",{"bg-yellow-400":t.value>=(r.halfStars?d*.5:d),"mask-half-1":r.halfStars&&d%2!==0,"mask-half-2":r.halfStars&&d%2===0,"cursor-pointer":r.isInteractive,"cursor-default":!r.isInteractive}]),disabled:!r.isInteractive},null,42,ct))),128))],2))}}),dt={key:0,class:"loading loading-spinner loading-md mx-auto"},mt=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0}},setup(c){const s=c,t=e.ref(s.loading);return e.watch(()=>s.loading,n=>{t.value=n}),(n,r)=>t.value?(e.openBlock(),e.createElementBlock("span",dt)):e.createCommentVNode("",!0)}}),pt={class:"bg-base-200 mx-auto md:px-10 py-10 text-base-content"},ft={class:"footer sm:footer-horizontal container"},ut={class:"footer-title"},gt=["href"],kt={class:"ml-auto"},ht=e.defineComponent({__name:"footer",props:{items:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("footer",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createElementBlock("nav",null,[e.createElementVNode("h6",ut,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,l=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:l.link},e.toDisplayString(l.text),9,gt))),256))]))),256)),e.createElementVNode("aside",kt,[e.renderSlot(t.$slots,"default")])])]))}}),bt={},yt={class:"min-h-40 container hero"},Bt={class:"px-0! text-center hero-content"},wt={class:"mt-9 text-4xl"};function Et(c,s){return e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",null,[e.createElementVNode("h1",wt,[e.renderSlot(c.$slots,"title",{},()=>[s[0]||(s[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(c.$slots,"description",{class:"py-9"})]),e.renderSlot(c.$slots,"call-to-action-block",{class:"max-w-full"},()=>[s[1]||(s[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const _t=x(bt,[["render",Et]]),Ct={class:"categories flex flex-row gap-4 place-content-center"},St=["onClick"],Vt=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(c,{emit:s}){const t=c,n=s;function r(l){n("update:currentCategory",l)}return(l,d)=>(e.openBlock(),e.createElementBlock("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,k=>(e.openBlock(),e.createElementBlock("div",{key:k.category},[e.createElementVNode("button",{onClick:p=>r(k.category),class:e.normalizeClass(["truncate",{"font-semibold":t.currentCategory===k.category}])},e.toDisplayString(k.category),11,St)]))),128))]))}}),Nt={class:"md:flex hidden navbar-start"},$t={class:"md:flex justify-center items-center hidden navbar-center"},Dt={class:"md:flex hidden navbar-end"},xt={class:"navbar-bottom md:flex hidden"},Mt=x(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",s.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Nt,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",$t,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Dt,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",xt,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Tt={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},zt=["onClick","aria-selected"],Ot={key:0,role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},Lt={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},Ft=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(c,{emit:s}){const t=c,n=e.ref(t.items[0]),r=s;function l(p){n.value=p,r("tab-changed",p)}function d(){const m=(t.items.indexOf(n.value)+1)%t.items.length;l(t.items[m])}function k(){const m=(t.items.indexOf(n.value)-1+t.items.length)%t.items.length;l(t.items[m])}return e.onMounted(()=>{t.items&&l(t.items[0])}),e.onUnmounted(()=>{t.rotateTabsAfter&&t.rotateTabsAfter>0&&setInterval(()=>{d()},t.rotateTabsAfter*1e3)}),(p,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(["relative tabs-bordered w-full tabs tabs-lg",{"flex-nowrap overflow-x-auto":p.buttonOnlyMode}])},[p.withControlls?(e.openBlock(),e.createElementBlock("div",Tt,[e.createElementVNode("button",{onClick:m[0]||(m[0]=f=>k()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:m[1]||(m[1]=f=>d()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.items,f=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",f===n.value?"bg-primary text-base-100":""]),onClick:S=>l(f),"aria-selected":n.value==f},e.toDisplayString(f),11,zt),p.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(p.$slots,`${f}-tab`)]))],64))),256))],2),e.createElementVNode("div",Lt,[e.renderSlot(p.$slots,"default")])],64))}});g.Accordion=fe,g.AdvancedSearch=Ae,g.Avatar=ke,g.Badge=he,g.ButtonComponent=Y,g.Card=Se,g.CategoryNavigation=Vt,g.DatetimePicker=P,g.Dropdown=X,g.Footer=ht,g.Hero=_t,g.Loader=mt,g.Modal=G,g.NavigationBar=Mt,g.Rating=it,g.Swap=ee,g.Tab=Ft,g.ThemeController=ce,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
36
+ */const A=x("SearchIcon",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
37
+ * @license lucide-vue-next v0.468.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const ae=x("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),re=(c,s)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const n=window.localStorage.getItem(c);t.value=n?JSON.parse(n):s}}),e.watch(t,n=>{typeof window<"u"&&window.localStorage.setItem(c,JSON.stringify(n))}),t},se={class:"swap-rotate swap"},ce=["true-value","false-value"],ie=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(c){const s=c,t=re("theme",s.lightTheme);function n(o){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",o)}return e.onMounted(()=>n(t.value?t.value:"")),e.watch(t,o=>{n(o)}),(o,a)=>(e.openBlock(),e.createElementBlock("label",se,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":a[0]||(a[0]=d=>e.isRef(t)?t.value=d:null),"true-value":s.lightTheme,"false-value":s.darkTheme},null,8,ce),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(ae),{class:"swap-off fill-current"}),e.createVNode(e.unref(le),{class:"swap-on fill-current"})]))}}),de=["name"],me={class:"collapse-title font-bold text-2xl lg:text-4xl"},pe={class:"collapse-content"},fe=["innerHTML"],ue=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:a},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,de),e.createElementVNode("div",me,e.toDisplayString(o.title),1),e.createElementVNode("div",pe,[e.createElementVNode("span",{innerHTML:o.content},null,8,fe)])],2))),128))}}),ge=["src"],ke={class:"text-xl"},he=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(c){const s=c,t=e.ref(s.onlineStatus);return e.watch(()=>s.onlineStatus,n=>{n&&(t.value=n)}),(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":t.value==="online"},{"avatar-offline":t.value==="offline"}]])},[n.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("img",{src:n.image,class:"w-full h-full"},null,8,ge)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("p",ke,e.toDisplayString(n.initials),1)],2))],2))}}),be=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(c){const s=c,t={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},n={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(o,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[s.size],n[s.color],{"badge-outline":s.outline}])},[e.renderSlot(o.$slots,"default")],2))}}),ye=["src","alt"],Be={key:1,class:"w-full h-32 skeleton"},we={key:0,class:"card-body"},Ee={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Ve={key:1,class:"text-left"},Ce={class:"flex-col flex-nowrap mt-auto card-actions"},Se={key:1,class:"card-body"},$e=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""}},setup(c){const s=c,t=e.ref(s.outlined);return e.watch(()=>s.outlined,n=>{t.value=n}),(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact",t.value?"border-4 border-primary":""])},[e.createElementVNode("figure",null,[n.imgUrl||n.imgUrl&&!n.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgUrl,alt:n.alt,class:e.normalizeClass(["rounded-sm w-full h-44 object-cover",{hidden:n.loading}])},null,10,ye)):e.createCommentVNode("",!0),n.loading&&n.imgUrl?(e.openBlock(),e.createElementBlock("div",Be)):e.createCommentVNode("",!0)]),n.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",we,[n.title?(e.openBlock(),e.createElementBlock("h2",Ee,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"details"),n.description?(e.openBlock(),e.createElementBlock("p",Ve,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ce,[e.renderSlot(n.$slots,"actions")])])),n.loading?(e.openBlock(),e.createElementBlock("div",Se,o[0]||(o[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)]))):e.createCommentVNode("",!0)],2))}}),Ne={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},_e=["onClick"],De={class:"text-sm"},Te={class:"md:block hidden opacity-35 text-xs truncate overflow-hidden ..."},Me={class:"hidden"},xe={id:"advancedSearchMobile",class:"modal"},ze={class:"modal-box"},Le={class:"font-bold text-lg"},Ie=["checked"],Oe={class:"flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title"},Fe={class:"text-sm"},Ue={class:"flex place-content-center p-0 collapse-content"},Ae=e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{}},emits:["search","update:search-data"],setup(c,{emit:s}){const t=c,n=s,o=e.ref(null),a={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>it))},d=e.ref({}),f=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),p=e.ref(null);function m(h,y){var B,V,k;if((B=o.value)!=null&&B.name){n("update:search-data",{tab:o.value.name,data:h});return}if(t.searchOptions){let w=(k=(V=t.searchOptions)==null?void 0:V.find(C=>(C==null?void 0:C.category)===t.currentCategory))==null?void 0:k.tabs[y];w!==void 0&&(w.value=h,n("update:search-data",{tab:w==null?void 0:w.name,data:w==null?void 0:w.value}))}}function u(){n("search")}async function S(h){p.value&&!p.value.contains(h.target)&&(await e.nextTick(),o.value=null)}async function _(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById("advancedSearchMobile");h?h.showModal():console.warn("Modal element not found.")}}async function b(h){var B;o.value=h,await e.nextTick();const y=d.value[h.name];if(y){const V=y.getBoundingClientRect(),k=((B=p.value)==null?void 0:B.getBoundingClientRect())||{left:0,top:0};window.innerWidth>768?f.value={left:`${V.left+V.width/2-k.left}px`,top:`${V.bottom-k.top}px`,transform:"translateX(-50%)"}:f.value={left:"50%",top:`${V.bottom-k.top}px`,transform:"translateX(-50%)"}}else console.error("Tab element not found for:",h.name)}return e.onMounted(()=>{document.addEventListener("click",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",S)}),(h,y)=>{var B,V;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:p,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center border-2 shadow-md p-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:_},[e.createElementVNode("div",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((B=t.searchOptions.find(k=>k.category===t.currentCategory))==null?void 0:B.tabs)||[],k=>{var w;return e.openBlock(),e.createElementBlock("button",{key:k.name,onClick:C=>b(k),class:e.normalizeClass([{"tab-active":((w=o.value)==null?void 0:w.name)===k.name},"group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),ref_for:!0,ref:C=>d.value[k.name]=C},[e.createElementVNode("p",De,e.toDisplayString(k.name),1),e.createElementVNode("p",Te,e.toDisplayString(k.description),1)],10,_e)}),128))]),o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(f.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a[o.value.type]),e.mergeProps(o.value.props?o.value.props:null,{onUpdated:m}),null,16))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:u},[e.createVNode(e.unref(A),{size:24,color:"white"})])]),e.createElementVNode("div",Me,[e.createElementVNode("button",{title:"search",onClick:y[0]||(y[0]=()=>{})},[e.createVNode(e.unref(A),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",xe,[e.createElementVNode("div",ze,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Le,e.toDisplayString(h.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((V=t.searchOptions.find(k=>k.category===t.currentCategory))==null?void 0:V.tabs)||[],(k,w)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-base-200 my-4 collapse",key:k.name},[e.createElementVNode("input",{type:"radio",name:"my-accordion-1",checked:w===0},null,8,Ie),e.createElementVNode("div",Oe,[e.createTextVNode(e.toDisplayString(k.name)+" ",1),e.createElementVNode("p",Fe,e.toDisplayString(k.description),1)]),e.createElementVNode("div",Ue,[y[1]||(y[1]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a[k.type]),e.mergeProps({ref_for:!0},k.props||{},{onUpdated:C=>m(C,w)}),null,16,["onUpdated"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:u},"Close and Search")])])])])],64)}}}),z=(c,s)=>{const t=c.__vccOpts||c;for(const[n,o]of s)t[n]=o;return t},Pe=z(Ae,[["__scopeId","data-v-08fa37eb"]]),Re=["placeholder","value","id"],je={class:"btn btn-ghost"},He=["id"],qe={key:0,class:"flex justify-between items-center place-content-center mb-4"},Ye=["value"],Je=["value"],Xe={key:1,class:"gap-2 grid grid-cols-7"},Ke=["onClick"],We={key:2,class:"mt-4 lg:w-80"},Ze={key:0,class:"mb-2 font-bold text-lg"},Ge={key:1},Qe={key:1,class:"flex gap-4"},ve=["value"],et=["value"],tt={key:2,class:"flex flex-col gap-4"},nt={key:1,class:"flex gap-2"},ot=["value"],lt=["value"],at={key:1,class:"flex gap-2"},rt=["value"],st=["value"],ct={class:"flex gap-2 mt-4"},P=z({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:c=>["datetime","date","time"].includes(c)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null}},emits:["updated"],setup(c,{emit:s}){const t=c;e.watch(()=>t.range,r=>{r?(a.value={start:null,end:null},d.value={start:null,end:null}):(a.value=null,d.value=null)});const n=s,o=e.ref(!1),a=e.ref(t.range?{start:null,end:null}:null),d=e.ref(t.range?{start:null,end:null}:null),f=e.ref(new Date().toLocaleString("default",{month:"long"})),p=e.ref(new Date().getFullYear()),m=e.ref(t.range?{start:0,end:0}:0),u=e.ref(t.range?{start:0,end:0}:0),S=e.ref(null),_=e.computed(()=>`${t.id}-input`),b=e.computed(()=>`${t.id}-popup`),h=e.computed(()=>t.mode==="date"||t.mode==="datetime"),y=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(p.value,B.value));const B=e.computed(()=>I.indexOf(f.value)),V=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],k=e.computed(()=>new Date(p.value,B.value).getDay()),w=e.computed(()=>{const r=new Date(p.value,B.value+1,0).getDate();return Array.from({length:r},(i,l)=>new Date(p.value,B.value,l+1))}),C=e.computed(()=>Array.from({length:k.value},(r,i)=>i)),F=Array.from({length:24},(r,i)=>i),U=Array.from({length:60},(r,i)=>i),L=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),I=["January","February","March","April","May","June","July","August","September","October","November","December"],jt=e.computed(()=>{const r=new Date().getFullYear();return Array.from({length:100},(i,l)=>r-50+l)}),Ht=e.computed(()=>{if(!h.value||!a.value)return"";if(t.range&&a.value.start&&a.value.end){const r=a.value.start.toLocaleDateString("en-US"),i=a.value.end.toLocaleDateString("en-US");return`${r} - ${i}`}return!t.range&&a.value?a.value.toLocaleDateString("en-US"):""}),D=r=>r instanceof Date?r:new Date(r),N=r=>r instanceof Date&&!isNaN(r),qt=e.computed(()=>{if(!y.value)return"";const r=i=>{var O,T,H;const l=((O=m.value)==null?void 0:O[i])??m.value,$=((T=u.value)==null?void 0:T[i])??u.value;return L.value?((H=d.value)==null?void 0:H[i])??d.value:`${l.toString().padStart(2,"0")}:${$.toString().padStart(2,"0")}`};return t.range?`${r("start")} - ${r("end")}`:r()}),Yt=e.computed(()=>{const r=Ht.value,i=qt.value;return`${r} ${i}`.trim()}),Jt=()=>o.value=!o.value,R=()=>{E(),Xt()},Xt=()=>o.value=!1,Kt=()=>{a.value=t.range?{start:null,end:null}:null,d.value=t.range?{start:null,end:null}:null,E()},Wt=r=>{t.range?a.value.start&&a.value.end?a.value={start:r,end:null}:a.value.start?a.value.end=r:a.value.start=r:a.value=r,E()},Zt=r=>(r=D(r),t.range?a.value.start&&N(a.value.start)&&r.getTime()===a.value.start.getTime()||a.value.end&&N(a.value.end)&&r.getTime()===a.value.end.getTime():N(a.value)&&r.getTime()===a.value.getTime()),Gt=r=>{r=D(r);const i=new Date;return r.getDate()===i.getDate()&&r.getMonth()===i.getMonth()&&r.getFullYear()===i.getFullYear()},Qt=r=>(r=D(r),t.range&&N(a.value.start)&&r.getTime()===a.value.start.getTime()),vt=r=>(r=D(r),t.range&&N(a.value.end)&&r.getTime()===a.value.end.getTime()),en=r=>{if(r=D(r),t.range&&N(a.value.start)&&N(a.value.end)){const i=a.value.start.getTime(),l=a.value.end.getTime(),$=r.getTime();return $>i&&$<l}return!1},tn=()=>{let r=B.value-1;r<0&&(r=11,p.value--),f.value=I[r],E()},nn=()=>{let r=B.value+1;r>11&&(r=0,p.value++),f.value=I[r],E()},j=r=>{S.value&&!S.value.contains(r.target)&&o.value==!0&&R()},E=()=>{let r={};const i=(l,$,O)=>{l instanceof Date&&!isNaN(l)||(l=new Date);const T=new Date(l);return T.setUTCHours($,O,0,0),T.toISOString()};t.range?(r.from=i(a.value.start,m.value.start,u.value.start),r.to=i(a.value.end,m.value.end,u.value.end)):r=i(a.value,m.value,u.value),n("updated",r)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?a.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(a.value={start:new Date(t.initialDate.start)})),t.range?(m.value.start=m.value.start??new Date().getHours(),m.value.end=m.value.end??new Date().getHours(),u.value.start=u.value.start??new Date().getMinutes(),u.value.end=u.value.end??new Date().getMinutes()):(m.value=m.value??new Date().getHours(),u.value=u.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",j)),e.onUnmounted(()=>document.removeEventListener("click",j)),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:S},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:Jt},[c.popup?e.renderSlot(r.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:c.placeholder,value:Yt.value,readonly:"",id:_.value},null,8,Re),e.createElementVNode("button",je,[e.createVNode(e.unref(oe))])],!0):e.createCommentVNode("",!0)]),o.value||!c.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full",[{absolute:c.popup}]]),id:b.value},[h.value?(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:tn},i[11]||(i[11]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":i[0]||(i[0]=l=>f.value=l),onChange:E},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(I,(l,$)=>e.createElementVNode("option",{key:$,value:l},e.toDisplayString(l),9,Ye)),64))],544),[[e.vModelSelect,f.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":i[1]||(i[1]=l=>p.value=l),onChange:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(jt.value,l=>(e.openBlock(),e.createElementBlock("option",{key:l,value:l},e.toDisplayString(l),9,Je))),128))],544),[[e.vModelSelect,p.value]]),e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:nn},i[12]||(i[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",Xe,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(V,l=>e.createElementVNode("div",{key:l,class:"text-center"},e.toDisplayString(l),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":Zt(l),today:Gt(l),"range-start bg-primary text-primary-content":Qt(l),"range-end bg-primary text-primary-content":vt(l),"in-range bg-primary/20 hover:bg-primary/10":en(l)}]),onClick:$=>Wt(l)},e.toDisplayString(l.getDate()),11,Ke))),128))])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("div",We,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",Ze,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("div",null,[i[13]||(i[13]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),L.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[5]||(i[5]=l=>d.value.start=l),onChange:E},null,544)),[[e.vModelText,d.value.start]]):(e.openBlock(),e.createElementBlock("div",nt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[6]||(i[6]=l=>m.value.start=l),onChange:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(F),l=>(e.openBlock(),e.createElementBlock("option",{key:l,value:l},e.toDisplayString(l.toString().padStart(2,"0")),9,ot))),128))],544),[[e.vModelSelect,m.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[7]||(i[7]=l=>u.value.start=l),onChange:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),l=>(e.openBlock(),e.createElementBlock("option",{key:l,value:l},e.toDisplayString(l.toString().padStart(2,"0")),9,lt))),128))],544),[[e.vModelSelect,u.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[i[14]||(i[14]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),L.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[8]||(i[8]=l=>d.value.end=l),onChange:E},null,544)),[[e.vModelText,d.value.end]]):(e.openBlock(),e.createElementBlock("div",at,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[9]||(i[9]=l=>m.value.end=l),onChange:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(F),l=>(e.openBlock(),e.createElementBlock("option",{key:l,value:l},e.toDisplayString(l.toString().padStart(2,"0")),9,rt))),128))],544),[[e.vModelSelect,m.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[10]||(i[10]=l=>u.value.end=l),onChange:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),l=>(e.openBlock(),e.createElementBlock("option",{key:l,value:l},e.toDisplayString(l.toString().padStart(2,"0")),9,st))),128))],544),[[e.vModelSelect,u.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",Ge,[L.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[2]||(i[2]=l=>d.value=l),onChange:E},null,544)),[[e.vModelText,d.value]]):(e.openBlock(),e.createElementBlock("div",Qe,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[3]||(i[3]=l=>m.value=l),onChange:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(F),l=>(e.openBlock(),e.createElementBlock("option",{key:l,value:l},e.toDisplayString(l.toString().padStart(2,"0")),9,ve))),128))],544),[[e.vModelSelect,m.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[4]||(i[4]=l=>u.value=l),onChange:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),l=>(e.openBlock(),e.createElementBlock("option",{key:l,value:l},e.toDisplayString(l.toString().padStart(2,"0")),9,et))),128))],544),[[e.vModelSelect,u.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",ct,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",c.popup?"w-fit":"w-full"]),onClick:Kt},"Clear",2),c.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:R},"Close")):e.createCommentVNode("",!0)])],10,He)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-488ecabe"]]),it=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),dt=["value","checked","onChange","disabled"],mt=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"}},setup(c){const s=c,t=e.ref(s.initialRating);e.watch(()=>s.initialRating,o=>{t.value=o});const n=o=>{t.value=o};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${s.size}`,{"rating-half":o.halfStars}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.numberOfStars*(o.halfStars?2:1),d=>(e.openBlock(),e.createElementBlock("input",{key:d,type:"radio",value:o.halfStars?d*.5:d,checked:t.value===(o.halfStars?d*.5:d),onChange:f=>o.isInteractive?n(o.halfStars?d*.5:d):null,class:e.normalizeClass(["mask mask-star",{"bg-yellow-400":t.value>=(o.halfStars?d*.5:d),"mask-half-1":o.halfStars&&d%2!==0,"mask-half-2":o.halfStars&&d%2===0,"cursor-pointer":o.isInteractive,"cursor-default":!o.isInteractive}]),disabled:!o.isInteractive},null,42,dt))),128))],2))}}),pt={class:"badge"},ft=["onClick"],ut={class:"opacity-75"},gt=["placeholder"],kt=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(c,{emit:s}){const t=c,n=s,o=e.ref([...t.modelValue]),a=t.maxTagAmount===void 0?-1:t.maxTagAmount,d=e.ref(null),f=e.ref(""),p=e.computed(()=>a<0||o.value.length<a),m=()=>{const b=f.value.trim();b&&!o.value.includes(b)&&(o.value.push(b),n("update:modelValue",o.value),f.value="")},u=b=>{o.value=o.value.filter(h=>h!==b),n("update:modelValue",o.value)},S=()=>{f.value===""&&(o.value.pop(),n("update:modelValue",o.value))},_=b=>{b.key==="Enter"?m():b.key==="Backspace"&&f.value===""&&S()};return e.watch(()=>t.modelValue,b=>{o.value=[...b]}),(b,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded",b.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,y=>e.renderSlot(b.$slots,"tag",{key:y,tag:y},()=>[e.createElementVNode("div",pt,[e.createElementVNode("button",{class:"!px-1 !py-0 h-fit font-bold cursor-pointer",onClick:B=>u(y),"aria-label":"Remove tag"},"X",8,ft),e.createElementVNode("span",ut,e.toDisplayString(y),1)])])),128)),e.renderSlot(b.$slots,"input",{showInput:p.value},()=>[p.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:d,"onUpdate:modelValue":h[0]||(h[0]=y=>f.value=y),type:"text",placeholder:b.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:_,"aria-label":"Add tags"},null,40,gt)),[[e.vModelText,f.value]]):e.createCommentVNode("",!0)])],2))}}),ht=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(c){const s=c,t=e.ref(s.loading);return e.watch(()=>s.loading,n=>{t.value=n}),(n,o)=>t.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":n.size==="xs"},{"loading-sm":n.size==="sm"},{"loading-md":n.size==="md"},{"loading-lg":n.size==="lg"},{"loading-xl":n.size==="xl"},{"loading-spinner":n.type==="spinner"},{"loading-dots":n.type==="dots"},{"loading-ring":n.type==="ring"},{"loading-balls":n.type==="balls"},{"loading-bars":n.type==="bars"},{"loading-infinity":n.type==="infinity"},{"text-primary":n.color==="primary"},{"text-secondary":n.color==="secondary"},{"text-accent":n.color==="accent"},{"text-neutral":n.color==="neutral"},{"text-info":n.color==="info"},{"text-success":n.color==="success"},{"text-warning":n.color==="warning"},{"text-error":n.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),bt={class:"footer sm:footer-horizontal container"},yt={class:"footer-title"},Bt=["href"],wt={class:"ml-auto"},Et=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,o=>(e.openBlock(),e.createElementBlock("nav",null,[e.createElementVNode("h6",yt,e.toDisplayString(o.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,a=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:a.link},e.toDisplayString(a.text),9,Bt))),256))]))),256)),e.createElementVNode("aside",wt,[e.renderSlot(t.$slots,"default")])])],2))}}),Vt={},Ct={class:"min-h-40 container hero"},St={class:"px-0! text-center hero-content"},$t={class:"mt-9 text-4xl"};function Nt(c,s){return e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("div",St,[e.createElementVNode("div",null,[e.createElementVNode("h1",$t,[e.renderSlot(c.$slots,"title",{},()=>[s[0]||(s[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(c.$slots,"description",{class:"py-9"})]),e.renderSlot(c.$slots,"call-to-action-block",{class:"max-w-full"},()=>[s[1]||(s[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const _t=z(Vt,[["render",Nt]]),Dt={class:"categories flex flex-row gap-4 place-content-center"},Tt=["onClick"],Mt=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(c,{emit:s}){const t=c,n=s;function o(a){n("update:currentCategory",a)}return(a,d)=>(e.openBlock(),e.createElementBlock("div",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,f=>(e.openBlock(),e.createElementBlock("div",{key:f.category},[e.createElementVNode("button",{onClick:p=>o(f.category),class:e.normalizeClass(["truncate",{"font-semibold":t.currentCategory===f.category}])},e.toDisplayString(f.category),11,Tt)]))),128))]))}}),xt={class:"md:flex hidden navbar-start"},zt={class:"md:flex justify-center items-center hidden navbar-center"},Lt={class:"md:flex hidden navbar-end"},It={class:"navbar-bottom md:flex hidden"},Ot=z(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",s.isCollapsed?"collapsed":""])},[e.createElementVNode("div",xt,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",zt,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Lt,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",It,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Ft={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},Ut=["onClick","aria-selected"],At={key:0,role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},Pt={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},Rt=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(c,{emit:s}){const t=c,n=e.ref(t.items[0]),o=s;function a(p){n.value=p,o("tab-changed",p)}function d(){const m=(t.items.indexOf(n.value)+1)%t.items.length;a(t.items[m])}function f(){const m=(t.items.indexOf(n.value)-1+t.items.length)%t.items.length;a(t.items[m])}return e.onMounted(()=>{t.items&&a(t.items[0])}),e.onUnmounted(()=>{t.rotateTabsAfter&&t.rotateTabsAfter>0&&setInterval(()=>{d()},t.rotateTabsAfter*1e3)}),(p,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(["relative tabs-bordered w-full tabs tabs-lg",{"flex-nowrap overflow-x-auto":p.buttonOnlyMode}])},[p.withControlls?(e.openBlock(),e.createElementBlock("div",Ft,[e.createElementVNode("button",{onClick:m[0]||(m[0]=u=>f()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:m[1]||(m[1]=u=>d()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.items,u=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",u===n.value?"bg-primary text-base-100":""]),onClick:S=>a(u),"aria-selected":n.value==u},e.toDisplayString(u),11,Ut),p.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",At,[e.renderSlot(p.$slots,`${u}-tab`)]))],64))),256))],2),e.createElementVNode("div",Pt,[e.renderSlot(p.$slots,"default")])],64))}});g.Accordion=ue,g.AdvancedSearch=Pe,g.Avatar=he,g.Badge=be,g.ButtonComponent=Y,g.Card=$e,g.CategoryNavigation=Mt,g.DatetimePicker=P,g.Dropdown=K,g.Footer=Et,g.Hero=_t,g.Loader=ht,g.Modal=G,g.NavigationBar=Ot,g.Rating=mt,g.Swap=ee,g.Tab=Rt,g.TagInput=kt,g.ThemeController=ie,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -9,6 +9,9 @@
9
9
  --color-red-500: oklch(0.637 0.237 25.331);
10
10
  --color-yellow-400: oklch(0.852 0.199 91.936);
11
11
  --color-green-500: oklch(0.723 0.219 149.579);
12
+ --color-blue-100: oklch(0.932 0.032 255.585);
13
+ --color-blue-500: oklch(0.623 0.214 259.815);
14
+ --color-blue-800: oklch(0.424 0.199 265.638);
12
15
  --color-gray-200: oklch(0.928 0.006 264.531);
13
16
  --color-black: #000;
14
17
  --spacing: 0.25rem;
@@ -827,6 +830,9 @@
827
830
  .collapse {
828
831
  visibility: collapse;
829
832
  }
833
+ .visible {
834
+ visibility: visible;
835
+ }
830
836
  .input {
831
837
  cursor: text;
832
838
  border: var(--border) solid #0000;
@@ -903,6 +909,21 @@
903
909
  inset-inline-end: 0.75em;
904
910
  }
905
911
  }
912
+ .indicator {
913
+ position: relative;
914
+ display: inline-flex;
915
+ width: max-content;
916
+ :where(.indicator-item) {
917
+ z-index: 1;
918
+ position: absolute;
919
+ white-space: nowrap;
920
+ top: var(--inidicator-t, 0);
921
+ bottom: var(--inidicator-b, auto);
922
+ left: var(--inidicator-s, auto);
923
+ right: var(--inidicator-e, 0);
924
+ translate: var(--inidicator-x, 50%) var(--indicator-y, -50%);
925
+ }
926
+ }
906
927
  .avatar-offline {
907
928
  &:before {
908
929
  content: "";
@@ -1669,6 +1690,48 @@
1669
1690
  .m-1 {
1670
1691
  margin: calc(var(--spacing) * 1);
1671
1692
  }
1693
+ .filter {
1694
+ display: flex;
1695
+ flex-wrap: wrap;
1696
+ input[type="radio"] {
1697
+ width: auto;
1698
+ }
1699
+ input {
1700
+ overflow: hidden;
1701
+ opacity: 100%;
1702
+ scale: 1;
1703
+ transition: margin 0.1s, opacity 0.3s, padding 0.3s, border-width 0.1s;
1704
+ &:not(:last-child) {
1705
+ margin-inline-end: calc(0.25rem * 1);
1706
+ }
1707
+ &.filter-reset {
1708
+ aspect-ratio: 1 / 1;
1709
+ &::after {
1710
+ content: "×";
1711
+ }
1712
+ }
1713
+ }
1714
+ &:not(:has(input:checked:not(.filter-reset))) {
1715
+ .filter-reset, input[type="reset"] {
1716
+ scale: 0;
1717
+ border-width: 0;
1718
+ margin-inline: calc(0.25rem * 0);
1719
+ width: calc(0.25rem * 0);
1720
+ padding-inline: calc(0.25rem * 0);
1721
+ opacity: 0%;
1722
+ }
1723
+ }
1724
+ &:has(input:checked:not(.filter-reset)) {
1725
+ input:not(:checked, .filter-reset, input[type="reset"]) {
1726
+ scale: 0;
1727
+ border-width: 0;
1728
+ margin-inline: calc(0.25rem * 0);
1729
+ width: calc(0.25rem * 0);
1730
+ padding-inline: calc(0.25rem * 0);
1731
+ opacity: 0%;
1732
+ }
1733
+ }
1734
+ }
1672
1735
  .mx-auto {
1673
1736
  margin-inline: auto;
1674
1737
  }
@@ -1727,6 +1790,9 @@
1727
1790
  .mt-auto {
1728
1791
  margin-top: auto;
1729
1792
  }
1793
+ .mr-2 {
1794
+ margin-right: calc(var(--spacing) * 2);
1795
+ }
1730
1796
  .footer-title {
1731
1797
  margin-bottom: calc(0.25rem * 2);
1732
1798
  text-transform: uppercase;
@@ -1742,6 +1808,9 @@
1742
1808
  .ml-1 {
1743
1809
  margin-left: calc(var(--spacing) * 1);
1744
1810
  }
1811
+ .ml-2 {
1812
+ margin-left: calc(var(--spacing) * 2);
1813
+ }
1745
1814
  .ml-auto {
1746
1815
  margin-left: auto;
1747
1816
  }
@@ -1956,6 +2025,9 @@
1956
2025
  mask-repeat: no-repeat;
1957
2026
  mask-position: center;
1958
2027
  }
2028
+ .block {
2029
+ display: block;
2030
+ }
1959
2031
  .flex {
1960
2032
  display: flex;
1961
2033
  }
@@ -1968,6 +2040,9 @@
1968
2040
  .inline-block {
1969
2041
  display: inline-block;
1970
2042
  }
2043
+ .inline-flex {
2044
+ display: inline-flex;
2045
+ }
1971
2046
  .modal-bottom {
1972
2047
  place-items: end;
1973
2048
  :where(.modal-box) {
@@ -2041,6 +2116,9 @@
2041
2116
  .h-44 {
2042
2117
  height: calc(var(--spacing) * 44);
2043
2118
  }
2119
+ .h-fit {
2120
+ height: fit-content;
2121
+ }
2044
2122
  .h-full {
2045
2123
  height: 100%;
2046
2124
  }
@@ -2071,9 +2149,21 @@
2071
2149
  width: calc(0.25rem * 4);
2072
2150
  }
2073
2151
  }
2152
+ .loading-lg {
2153
+ width: calc(var(--size-selector, 0.25rem) * 7);
2154
+ }
2074
2155
  .loading-md {
2075
2156
  width: calc(var(--size-selector, 0.25rem) * 6);
2076
2157
  }
2158
+ .loading-sm {
2159
+ width: calc(var(--size-selector, 0.25rem) * 5);
2160
+ }
2161
+ .loading-xl {
2162
+ width: calc(var(--size-selector, 0.25rem) * 8);
2163
+ }
2164
+ .loading-xs {
2165
+ width: calc(var(--size-selector, 0.25rem) * 4);
2166
+ }
2077
2167
  .w-4 {
2078
2168
  width: calc(var(--spacing) * 4);
2079
2169
  }
@@ -2173,6 +2263,9 @@
2173
2263
  .flex-nowrap {
2174
2264
  flex-wrap: nowrap;
2175
2265
  }
2266
+ .flex-wrap {
2267
+ flex-wrap: wrap;
2268
+ }
2176
2269
  .place-content-center {
2177
2270
  place-content: center;
2178
2271
  }
@@ -2262,12 +2355,26 @@
2262
2355
  background-image: none;
2263
2356
  box-shadow: none;
2264
2357
  }
2358
+ .input-ghost {
2359
+ background-color: transparent;
2360
+ box-shadow: none;
2361
+ border-color: #0000;
2362
+ &:focus, &:focus-within {
2363
+ background-color: var(--color-base-100);
2364
+ color: var(--color-base-content);
2365
+ border-color: #0000;
2366
+ box-shadow: none;
2367
+ }
2368
+ }
2265
2369
  .border-base-300 {
2266
2370
  border-color: var(--color-base-300);
2267
2371
  }
2268
2372
  .border-base-300\/25 {
2269
2373
  border-color: color-mix(in oklab, var(--color-base-300) 25%, transparent);
2270
2374
  }
2375
+ .border-base-content\/20 {
2376
+ border-color: color-mix(in oklab, var(--color-base-content) 20%, transparent);
2377
+ }
2271
2378
  .border-primary {
2272
2379
  border-color: var(--color-primary);
2273
2380
  }
@@ -2277,6 +2384,9 @@
2277
2384
  .bg-base-200 {
2278
2385
  background-color: var(--color-base-200);
2279
2386
  }
2387
+ .bg-blue-100 {
2388
+ background-color: var(--color-blue-100);
2389
+ }
2280
2390
  .bg-neutral {
2281
2391
  background-color: var(--color-neutral);
2282
2392
  }
@@ -2333,21 +2443,33 @@
2333
2443
  font-size: 0.625rem;
2334
2444
  padding-inline: calc(0.25rem * 2 - var(--border));
2335
2445
  }
2446
+ .\!px-1 {
2447
+ padding-inline: calc(var(--spacing) * 1) !important;
2448
+ }
2336
2449
  .px-0\! {
2337
2450
  padding-inline: calc(var(--spacing) * 0) !important;
2338
2451
  }
2452
+ .px-3 {
2453
+ padding-inline: calc(var(--spacing) * 3);
2454
+ }
2339
2455
  .px-4 {
2340
2456
  padding-inline: calc(var(--spacing) * 4);
2341
2457
  }
2342
2458
  .px-5 {
2343
2459
  padding-inline: calc(var(--spacing) * 5);
2344
2460
  }
2461
+ .\!py-0 {
2462
+ padding-block: calc(var(--spacing) * 0) !important;
2463
+ }
2345
2464
  .py-1 {
2346
2465
  padding-block: calc(var(--spacing) * 1);
2347
2466
  }
2348
2467
  .py-5 {
2349
2468
  padding-block: calc(var(--spacing) * 5);
2350
2469
  }
2470
+ .py-6 {
2471
+ padding-block: calc(var(--spacing) * 6);
2472
+ }
2351
2473
  .py-9 {
2352
2474
  padding-block: calc(var(--spacing) * 9);
2353
2475
  }
@@ -2444,15 +2566,33 @@
2444
2566
  --badge-color: var(--color-warning);
2445
2567
  color: var(--color-warning-content);
2446
2568
  }
2569
+ .text-accent {
2570
+ color: var(--color-accent);
2571
+ }
2447
2572
  .text-base-100 {
2448
2573
  color: var(--color-base-100);
2449
2574
  }
2450
2575
  .text-base-content {
2451
2576
  color: var(--color-base-content);
2452
2577
  }
2578
+ .text-blue-500 {
2579
+ color: var(--color-blue-500);
2580
+ }
2581
+ .text-blue-800 {
2582
+ color: var(--color-blue-800);
2583
+ }
2584
+ .text-error {
2585
+ color: var(--color-error);
2586
+ }
2453
2587
  .text-green-500 {
2454
2588
  color: var(--color-green-500);
2455
2589
  }
2590
+ .text-info {
2591
+ color: var(--color-info);
2592
+ }
2593
+ .text-neutral {
2594
+ color: var(--color-neutral);
2595
+ }
2456
2596
  .text-neutral-content {
2457
2597
  color: var(--color-neutral-content);
2458
2598
  }
@@ -2465,6 +2605,15 @@
2465
2605
  .text-red-500 {
2466
2606
  color: var(--color-red-500);
2467
2607
  }
2608
+ .text-secondary {
2609
+ color: var(--color-secondary);
2610
+ }
2611
+ .text-success {
2612
+ color: var(--color-success);
2613
+ }
2614
+ .text-warning {
2615
+ color: var(--color-warning);
2616
+ }
2468
2617
  .btn-link {
2469
2618
  text-decoration-line: underline;
2470
2619
  outline-color: currentColor;
@@ -2490,6 +2639,13 @@
2490
2639
  .opacity-35 {
2491
2640
  opacity: 35%;
2492
2641
  }
2642
+ .opacity-75 {
2643
+ opacity: 75%;
2644
+ }
2645
+ .shadow {
2646
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2647
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2648
+ }
2493
2649
  .shadow-md {
2494
2650
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2495
2651
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -2502,6 +2658,10 @@
2502
2658
  --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2503
2659
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2504
2660
  }
2661
+ .ring {
2662
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
2663
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2664
+ }
2505
2665
  .outline {
2506
2666
  outline-style: var(--tw-outline-style);
2507
2667
  outline-width: 1px;
@@ -2518,6 +2678,9 @@
2518
2678
  }
2519
2679
  }
2520
2680
  }
2681
+ .filter {
2682
+ filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
2683
+ }
2521
2684
  .transition {
2522
2685
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
2523
2686
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
@@ -2585,6 +2748,18 @@
2585
2748
  --btn-color: var(--color-warning);
2586
2749
  --btn-fg: var(--color-warning-content);
2587
2750
  }
2751
+ .loading-bars {
2752
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='9' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3C/rect%3E%3Crect x='17' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3C/rect%3E%3C/svg%3E");
2753
+ }
2754
+ .loading-dots {
2755
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1' begin='0.1s'/%3E%3C/circle%3E%3Ccircle cx='20' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1' begin='0.2s'/%3E%3C/circle%3E%3C/svg%3E");
2756
+ }
2757
+ .loading-infinity {
2758
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='shape-rendering:auto;' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3E%3Cpath fill='none' stroke='black' stroke-width='10' stroke-dasharray='205.271 51.318' d='M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z' stroke-linecap='round' style='transform:scale(0.8);transform-origin:50px 50px'%3E%3Canimate attributeName='stroke-dashoffset' repeatCount='indefinite' dur='2s' keyTimes='0;1' values='0;256.589'/%3E%3C/path%3E%3C/svg%3E");
2759
+ }
2760
+ .loading-ring {
2761
+ mask-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='white'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
2762
+ }
2588
2763
  .loading-spinner {
2589
2764
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
2590
2765
  }
@@ -3120,6 +3295,46 @@
3120
3295
  inherits: false;
3121
3296
  initial-value: solid;
3122
3297
  }
3298
+ @property --tw-blur {
3299
+ syntax: "*";
3300
+ inherits: false;
3301
+ }
3302
+ @property --tw-brightness {
3303
+ syntax: "*";
3304
+ inherits: false;
3305
+ }
3306
+ @property --tw-contrast {
3307
+ syntax: "*";
3308
+ inherits: false;
3309
+ }
3310
+ @property --tw-grayscale {
3311
+ syntax: "*";
3312
+ inherits: false;
3313
+ }
3314
+ @property --tw-hue-rotate {
3315
+ syntax: "*";
3316
+ inherits: false;
3317
+ }
3318
+ @property --tw-invert {
3319
+ syntax: "*";
3320
+ inherits: false;
3321
+ }
3322
+ @property --tw-opacity {
3323
+ syntax: "*";
3324
+ inherits: false;
3325
+ }
3326
+ @property --tw-saturate {
3327
+ syntax: "*";
3328
+ inherits: false;
3329
+ }
3330
+ @property --tw-sepia {
3331
+ syntax: "*";
3332
+ inherits: false;
3333
+ }
3334
+ @property --tw-drop-shadow {
3335
+ syntax: "*";
3336
+ inherits: false;
3337
+ }
3123
3338
  @property --tw-content {
3124
3339
  syntax: "*";
3125
3340
  initial-value: "";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "manolis-ui",
3
3
  "private": false,
4
- "version": "0.1.6",
4
+ "version": "0.2.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/*"