@dronico/droni-kit 1.24.2 → 1.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/droni-kit.cjs.js +2 -2
- package/dist/droni-kit.es.js +2 -2
- package/dist/stories/Forms/DuiInput.stories.d.ts +3 -3
- package/dist/stories/Forms/DuiInput.vue.d.ts +3 -3
- package/dist/stories/Forms/DuiSelect.stories.d.ts +3 -3
- package/dist/stories/Forms/DuiSelect.vue.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.24.3](https://github.com/Droni-app/droni-kit/compare/v1.24.2...v1.24.3) (2026-08-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* null type on select and input ([4c3e6fc](https://github.com/Droni-app/droni-kit/commit/4c3e6fcfd95b709547e4df8b4a8f4643b61cdfbe))
|
|
7
|
+
|
|
1
8
|
## [1.24.2](https://github.com/Droni-app/droni-kit/compare/v1.24.1...v1.24.2) (2026-08-28)
|
|
2
9
|
|
|
3
10
|
|
package/dist/droni-kit.cjs.js
CHANGED
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
dk:dark:bg-zinc-800
|
|
166
166
|
dk:dark:text-zinc-100
|
|
167
167
|
dk:dark:focus:bg-zinc-700
|
|
168
|
-
dk:dark:[color-scheme:dark]`,me=e.defineComponent({inheritAttrs:!1,__name:"DuiInput",props:{modelValue:{type:[String,Number],default:""},size:{type:String,default:"md"},block:{type:Boolean,default:!0},rounded:{type:String,default:"all"}},emits:["update:modelValue"],setup(d,{emit:r}){const t=d,k=r;function m(c){const i=c.target;k("update:modelValue",i.value)}const a={sm:"dk:text-sm dk:px-3 dk:py-1.5",md:"dk:text-base dk:px-4 dk:py-2",lg:"dk:text-lg dk:px-5 dk:py-3"},x={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},f=e.computed(()=>{const c=a[t.size]||"",i=t.block?"dk:w-full":"",p=x[t.rounded]||"";return[ue,c,i,p].join(" ")});return(c,i)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({class:f.value,value:d.modelValue},c.$attrs,{onInput:m}),null,16,ce))}}),be=["value"],pe=`
|
|
168
|
+
dk:dark:[color-scheme:dark]`,me=e.defineComponent({inheritAttrs:!1,__name:"DuiInput",props:{modelValue:{type:[String,Number,null],default:""},size:{type:String,default:"md"},block:{type:Boolean,default:!0},rounded:{type:String,default:"all"}},emits:["update:modelValue"],setup(d,{emit:r}){const t=d,k=r;function m(c){const i=c.target;k("update:modelValue",i.value)}const a={sm:"dk:text-sm dk:px-3 dk:py-1.5",md:"dk:text-base dk:px-4 dk:py-2",lg:"dk:text-lg dk:px-5 dk:py-3"},x={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},f=e.computed(()=>{const c=a[t.size]||"",i=t.block?"dk:w-full":"",p=x[t.rounded]||"";return[ue,c,i,p].join(" ")});return(c,i)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({class:f.value,value:d.modelValue},c.$attrs,{onInput:m}),null,16,ce))}}),be=["value"],pe=`
|
|
169
169
|
dk:border-b
|
|
170
170
|
dk:border-zinc-300
|
|
171
171
|
dk:bg-zinc-50
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
dk:dark:text-zinc-100
|
|
191
191
|
dk:dark:focus:bg-zinc-700
|
|
192
192
|
dk:dark:[color-scheme:dark]
|
|
193
|
-
`,ve=e.defineComponent({inheritAttrs:!1,__name:"DuiSelect",props:{modelValue:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},size:{type:String,default:"md"},block:{type:Boolean,default:!0},rounded:{type:String,default:"all"},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"},placeholder:{type:String,default:void 0}},emits:["update:modelValue"],setup(d,{emit:r}){const t=d;function k(i,p){const u=p.split(".").reduce((h,z)=>{if(!(h===null||typeof h!="object"))return h[z]},i);return typeof u=="string"||typeof u=="number"?u:void 0}const m=r;function a(i){const u=i.target.value,h=Number(u);!isNaN(h)&&u!==""?m("update:modelValue",h):m("update:modelValue",u)}const x={sm:"dk:text-sm dk:px-3 dk:py-1.5",md:"dk:text-base dk:px-4 dk:py-2",lg:"dk:text-lg dk:px-5 dk:py-3"},f={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},c=e.computed(()=>{const i=x[t.size]||"",p=t.block?"dk:w-full":"",u=f[t.rounded]||"";return[he,i,p,u].join(" ")});return(i,p)=>(e.openBlock(),e.createElementBlock("select",e.mergeProps(i.$attrs,{class:c.value,onChange:a}),[d.placeholder?(e.openBlock(),e.createElementBlock("option",ge,e.toDisplayString(d.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,(u,h)=>(e.openBlock(),e.createElementBlock("option",{key:h,value:k(u,d.itemValue)??"",selected:k(u,d.itemValue)==d.modelValue},e.toDisplayString(k(u,d.itemLabel)??""),9,xe))),128))],16))}}),ye={key:1,class:"dk:text-rose-500 dk:ml-1"},ze={class:"tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none"},we="dk:space-y-1",Ce=e.defineComponent({__name:"DuiLabel",props:{title:{type:String,default:void 0},icon:{type:String,default:void 0},helpText:{type:String,default:void 0},error:{type:String,default:void 0},size:{type:String,default:"m"},required:{type:Boolean,default:!1}},setup(d){const r=e.ref(!1),t=d,k={s:"dk:text-sm",m:"dk:text-base",l:"dk:text-lg"},m={s:"dk:mt-1",m:"dk:mt-1.5",l:"dk:mt-2"},a={s:"dk:text-xs",m:"dk:text-sm",l:"dk:text-base"},x=e.computed(()=>[we].join(" ")),f=e.computed(()=>{const p=k[t.size]||k.m,u="dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center",h=t.helpText?"dk:cursor-help":"";return[u,p,h].join(" ")}),c=e.computed(()=>[m[t.size]||m.m].join(" ")),i=e.computed(()=>["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1",a[t.size]||a.m].join(" "));return(p,u)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(x.value)},[d.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:"dk:relative",onMouseenter:u[0]||(u[0]=h=>r.value=!!d.helpText),onMouseleave:u[1]||(u[1]=h=>r.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(f.value)},[d.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([d.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(d.title)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",ye,"*")):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("div",ze,[e.createTextVNode(e.toDisplayString(d.helpText)+" ",1),u[2]||(u[2]=e.createElementVNode("div",{class:"tooltip-arrow tooltip-arrow-down"},null,-1))],512),[[e.vShow,r.value&&d.helpText]])],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(c.value)},[e.renderSlot(p.$slots,"default",{},void 0,!0)],2),d.error?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(i.value)},[u[3]||(u[3]=e.createElementVNode("span",{class:"dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0"}," ! ",-1)),e.createTextVNode(" "+e.toDisplayString(d.error),1)],2)):e.createCommentVNode("",!0)],2))}}),O=(d,r)=>{const t=d.__vccOpts||d;for(const[k,m]of r)t[k]=m;return t},Be=O(Ce,[["__scopeId","data-v-aa6b6cdc"]]),Ve={class:"dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0"},Se=["checked","disabled"],Ee=e.defineComponent({inheritAttrs:!1,__name:"DuiCheckbox",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},labelPosition:{type:String,default:"right"},color:{type:String,default:"primary"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},rounded:{type:String,default:"all"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(d,{emit:r}){const t=d,k=r,m=e.useSlots(),a={sm:{track:"dk:w-9 dk:h-5",thumb:"dk:w-3.5 dk:h-3.5",translate:"dk:peer-checked:translate-x-[14px]"},md:{track:"dk:w-11 dk:h-6",thumb:"dk:w-4 dk:h-4",translate:"dk:peer-checked:translate-x-5"},lg:{track:"dk:w-14 dk:h-7",thumb:"dk:w-5 dk:h-5",translate:"dk:peer-checked:translate-x-7"}},x={all:"dk:rounded-full",top:"dk:rounded-t-full",bottom:"dk:rounded-b-full",left:"dk:rounded-l-full",right:"dk:rounded-r-full",none:"dk:rounded-none"},f={neutral:"dk:peer-checked:bg-zinc-500 dk:peer-checked:dark:bg-zinc-500",primary:"dk:peer-checked:bg-slate-600 dk:peer-checked:dark:bg-slate-500",secondary:"dk:peer-checked:bg-pink-600 dk:peer-checked:dark:bg-pink-500",success:"dk:peer-checked:bg-emerald-600 dk:peer-checked:dark:bg-emerald-500",warning:"dk:peer-checked:bg-amber-500 dk:peer-checked:dark:bg-amber-400",danger:"dk:peer-checked:bg-rose-600 dk:peer-checked:dark:bg-rose-500"},c=e.computed(()=>!!(t.label||m.default)),i=e.computed(()=>{const y=t.block?"dk:w-full dk:justify-between":"",s=t.disabled?"dk:opacity-60 dk:cursor-not-allowed":"dk:cursor-pointer";return["dk:inline-flex dk:items-center dk:gap-3 dk:select-none",y,s].join(" ")}),p=e.computed(()=>["dk:text-sm dk:leading-none dk:text-zinc-700 dk:dark:text-zinc-200",t.disabled?"dk:cursor-not-allowed":"dk:cursor-pointer"].join(" ")),u=e.computed(()=>{const y=a[t.size]||a.md,s=x[t.rounded]||x.all,l=f[t.color]||f.primary;return["dk:inline-flex dk:items-center dk:transition-colors dk:duration-200","dk:bg-zinc-300 dk:dark:bg-zinc-700","dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500","dk:peer-disabled:opacity-70",y.track,s,l].join(" ")}),h=e.computed(()=>{const y=a[t.size]||a.md;return["dk:absolute dk:left-1 dk:top-1/2 dk:-translate-y-1/2","dk:bg-white dk:dark:bg-zinc-100","dk:rounded-full dk:shadow-sm dk:transition-transform dk:duration-200","dk:pointer-events-none",y.thumb,y.translate].join(" ")});function z(y){const s=y.target;k("update:modelValue",s.checked)}return(y,s)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(i.value)},[c.value&&d.labelPosition==="left"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(p.value)},[e.renderSlot(y.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)])],2)):e.createCommentVNode("",!0),e.createElementVNode("span",Ve,[e.createElementVNode("input",e.mergeProps({type:"checkbox",class:"dk:sr-only dk:peer",checked:d.modelValue,disabled:d.disabled},y.$attrs,{onChange:z}),null,16,Se),e.createElementVNode("span",{class:e.normalizeClass(u.value)},null,2),e.createElementVNode("span",{class:e.normalizeClass(h.value)},null,2)]),c.value&&d.labelPosition==="right"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(p.value)},[e.renderSlot(y.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)])],2)):e.createCommentVNode("",!0)],2))}}),$e=["aria-labelledby"],Ne=["id"],De={class:"dk:relative dk:inline-flex dk:flex-shrink-0"},je=["name","value","checked","disabled","onChange"],Te=e.defineComponent({inheritAttrs:!1,__name:"DuiRadio",props:{modelValue:{default:void 0},options:{},name:{default:()=>`radio-${Math.random().toString(36).slice(2,8)}`},groupLabel:{default:void 0},color:{default:"primary"},size:{default:"md"},orientation:{default:"vertical"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,m=Math.random().toString(36).slice(2,8);function a(g){k("update:modelValue",g),k("change",g)}const x={sm:{radio:"dk:w-3.5 dk:h-3.5",dot:"dk:w-1.5 dk:h-1.5",label:"dk:text-xs",description:"dk:text-xs"},md:{radio:"dk:w-4 dk:h-4",dot:"dk:w-2 dk:h-2",label:"dk:text-sm",description:"dk:text-xs"},lg:{radio:"dk:w-5 dk:h-5",dot:"dk:w-2.5 dk:h-2.5",label:"dk:text-base",description:"dk:text-sm"}},f={neutral:"dk:peer-checked:border-zinc-600 dk:dark:peer-checked:border-zinc-400",primary:"dk:peer-checked:border-slate-600 dk:dark:peer-checked:border-slate-400",secondary:"dk:peer-checked:border-pink-600 dk:dark:peer-checked:border-pink-400",success:"dk:peer-checked:border-emerald-600 dk:dark:peer-checked:border-emerald-400",warning:"dk:peer-checked:border-amber-500 dk:dark:peer-checked:border-amber-400",danger:"dk:peer-checked:border-rose-600 dk:dark:peer-checked:border-rose-400"},c={neutral:"dk:peer-checked:bg-zinc-600 dk:dark:peer-checked:bg-zinc-400",primary:"dk:peer-checked:bg-slate-600 dk:dark:peer-checked:bg-slate-400",secondary:"dk:peer-checked:bg-pink-600 dk:dark:peer-checked:bg-pink-400",success:"dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-400",warning:"dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",danger:"dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-400"},i={neutral:"dk:peer-focus-visible:ring-zinc-400",primary:"dk:peer-focus-visible:ring-slate-400",secondary:"dk:peer-focus-visible:ring-pink-400",success:"dk:peer-focus-visible:ring-emerald-400",warning:"dk:peer-focus-visible:ring-amber-400",danger:"dk:peer-focus-visible:ring-rose-400"},p=e.computed(()=>[t.orientation==="horizontal"?"dk:flex dk:flex-row dk:flex-wrap dk:gap-x-5 dk:gap-y-3":"dk:flex dk:flex-col dk:gap-3"].join(" ")),u=e.computed(()=>"dk:block dk:text-xs dk:font-semibold dk:uppercase dk:tracking-wide dk:text-zinc-500 dk:dark:text-zinc-400 dk:mb-1");function h(g,o){const v=o||t.disabled?"dk:opacity-50 dk:cursor-not-allowed":"dk:cursor-pointer",C=t.block?"dk:w-full dk:justify-between":"";return["dk:inline-flex dk:items-start dk:gap-3 dk:select-none",v,C].join(" ")}function z(g){const o=x[t.size],n=f[t.color],v=i[t.color];return["dk:rounded-full dk:border-2 dk:transition-colors dk:duration-150","dk:border-zinc-300 dk:dark:border-zinc-600","dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2","dk:bg-white dk:dark:bg-zinc-900",o.radio,n,v].join(" ")}const y=e.computed(()=>{const g=x[t.size],o=c[t.color];return["dk:absolute dk:inset-0 dk:m-auto dk:rounded-full dk:scale-0 dk:peer-checked:scale-100 dk:transition-transform dk:duration-150 dk:pointer-events-none",g.dot,o].join(" ")}),s=e.computed(()=>"dk:flex dk:flex-col"),l=e.computed(()=>[x[t.size].label,"dk:leading-snug dk:text-zinc-800 dk:dark:text-zinc-200"].join(" ")),b=e.computed(()=>[x[t.size].description,"dk:leading-snug dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"].join(" "));return(g,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.value),role:"radiogroup","aria-labelledby":d.groupLabel?`rg-label-${e.unref(m)}`:void 0},[d.groupLabel?(e.openBlock(),e.createElementBlock("span",{key:0,id:`rg-label-${e.unref(m)}`,class:e.normalizeClass(u.value)},e.toDisplayString(d.groupLabel),11,Ne)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,n=>(e.openBlock(),e.createElementBlock("label",{key:n.value,class:e.normalizeClass(h(n.value,n.disabled))},[e.createElementVNode("span",De,[e.createElementVNode("input",e.mergeProps({type:"radio",class:"dk:sr-only dk:peer",name:d.name,value:n.value,checked:d.modelValue===n.value,disabled:n.disabled||d.disabled},{ref_for:!0},g.$attrs,{onChange:v=>a(n.value)}),null,16,je),e.createElementVNode("span",{class:e.normalizeClass(z(n.value))},null,2),e.createElementVNode("span",{class:e.normalizeClass(y.value)},null,2)]),e.createElementVNode("span",{class:e.normalizeClass(s.value)},[e.createElementVNode("span",{class:e.normalizeClass(l.value)},e.toDisplayString(n.label),3),n.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(b.value)},e.toDisplayString(n.description),3)):e.createCommentVNode("",!0)],2)],2))),128))],10,$e))}}),Me={class:"dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0"},Pe=["aria-checked","checked","disabled"],Le={key:0,viewBox:"0 0 12 12",fill:"currentColor",class:"dk:w-2.5 dk:h-2.5"},_e={key:1,viewBox:"0 0 12 12",fill:"none",class:"dk:w-2.5 dk:h-2.5"},Q=e.defineComponent({inheritAttrs:!1,__name:"DuiSwitch",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},description:{type:String,default:""},labelPosition:{type:String,default:"right"},color:{type:String,default:"primary"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showIcons:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,m=e.useSlots(),a={sm:{track:"dk:w-8 dk:h-4",thumb:"dk:w-3 dk:h-3",translate:"dk:peer-checked:translate-x-[16px]",offset:"dk:top-0.5 dk:left-0.5"},md:{track:"dk:w-10 dk:h-5",thumb:"dk:w-4 dk:h-4",translate:"dk:peer-checked:translate-x-5",offset:"dk:top-0.5 dk:left-0.5"},lg:{track:"dk:w-12 dk:h-6",thumb:"dk:w-5 dk:h-5",translate:"dk:peer-checked:translate-x-6",offset:"dk:top-0.5 dk:left-0.5"}},x={neutral:"dk:peer-checked:bg-zinc-600 dk:dark:peer-checked:bg-zinc-500",primary:"dk:peer-checked:bg-slate-600 dk:dark:peer-checked:bg-slate-500",secondary:"dk:peer-checked:bg-pink-600 dk:dark:peer-checked:bg-pink-500",success:"dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-500",warning:"dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",danger:"dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-500"},f=e.computed(()=>!!(t.label||m.default)),c=e.computed(()=>{const l=t.block?"dk:w-full dk:justify-between":"",b=t.block?"dk:flex":"dk:inline-flex",g=t.disabled?"dk:opacity-60 dk:cursor-not-allowed":"dk:cursor-pointer";return[b,"dk:items-center dk:gap-3 dk:select-none",l,g].join(" ")}),i=e.computed(()=>["dk:flex dk:flex-col","dk:text-sm dk:leading-snug dk:text-zinc-700 dk:dark:text-zinc-200",t.disabled?"dk:cursor-not-allowed":"dk:cursor-pointer"].join(" ")),p=e.computed(()=>"dk:text-xs dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"),u=e.computed(()=>{const l=a[t.size],b=x[t.color];return["dk:relative dk:inline-flex dk:items-center dk:transition-colors dk:duration-200 dk:rounded-full","dk:bg-zinc-300 dk:dark:bg-zinc-600","dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500","dk:peer-disabled:opacity-70",l.track,b].join(" ")}),h=e.computed(()=>{const l=a[t.size];return["dk:absolute",l.offset,"dk:bg-white dk:dark:bg-zinc-100","dk:rounded-full dk:shadow-sm dk:transition-all dk:duration-200","dk:pointer-events-none dk:flex dk:items-center dk:justify-center",l.thumb,l.translate].join(" ")}),z={neutral:"dk:text-zinc-600 dk:dark:text-zinc-400",primary:"dk:text-slate-600 dk:dark:text-slate-400",secondary:"dk:text-pink-600 dk:dark:text-pink-400",success:"dk:text-emerald-600 dk:dark:text-emerald-400",warning:"dk:text-amber-600 dk:dark:text-amber-400",danger:"dk:text-rose-600 dk:dark:text-rose-400"},y=e.computed(()=>t.modelValue?z[t.color]:"dk:text-zinc-400 dk:dark:text-zinc-500");function s(l){const b=l.target;k("update:modelValue",b.checked),k("change",b.checked)}return(l,b)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(c.value)},[f.value&&d.labelPosition==="left"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(i.value)},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),d.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(p.value)},e.toDisplayString(d.description),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("span",Me,[e.createElementVNode("input",e.mergeProps({type:"checkbox",class:"dk:sr-only dk:peer",role:"switch","aria-checked":d.modelValue,checked:d.modelValue,disabled:d.disabled},l.$attrs,{onChange:s}),null,16,Pe),e.createElementVNode("span",{class:e.normalizeClass(u.value)},null,2),e.createElementVNode("span",{class:e.normalizeClass(h.value)},[d.showIcons?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-hidden":"true",class:e.normalizeClass(y.value)},[d.modelValue?(e.openBlock(),e.createElementBlock("svg",Le,[...b[0]||(b[0]=[e.createElementVNode("path",{d:"M3.5 6.5l2 2 3-3",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",_e,[...b[1]||(b[1]=[e.createElementVNode("line",{x1:"3",y1:"3",x2:"9",y2:"9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),e.createElementVNode("line",{x1:"9",y1:"3",x2:"3",y2:"9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])]))],2)):e.createCommentVNode("",!0)],2)]),f.value&&d.labelPosition==="right"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(i.value)},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),d.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(p.value)},e.toDisplayString(d.description),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2))}}),Ie=`
|
|
193
|
+
`,ve=e.defineComponent({inheritAttrs:!1,__name:"DuiSelect",props:{modelValue:{type:[String,Number,null],default:""},options:{type:Array,default:()=>[]},size:{type:String,default:"md"},block:{type:Boolean,default:!0},rounded:{type:String,default:"all"},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"},placeholder:{type:String,default:void 0}},emits:["update:modelValue"],setup(d,{emit:r}){const t=d;function k(i,p){const u=p.split(".").reduce((h,z)=>{if(!(h===null||typeof h!="object"))return h[z]},i);return typeof u=="string"||typeof u=="number"?u:void 0}const m=r;function a(i){const u=i.target.value,h=Number(u);!isNaN(h)&&u!==""?m("update:modelValue",h):m("update:modelValue",u)}const x={sm:"dk:text-sm dk:px-3 dk:py-1.5",md:"dk:text-base dk:px-4 dk:py-2",lg:"dk:text-lg dk:px-5 dk:py-3"},f={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},c=e.computed(()=>{const i=x[t.size]||"",p=t.block?"dk:w-full":"",u=f[t.rounded]||"";return[he,i,p,u].join(" ")});return(i,p)=>(e.openBlock(),e.createElementBlock("select",e.mergeProps(i.$attrs,{class:c.value,onChange:a}),[d.placeholder?(e.openBlock(),e.createElementBlock("option",ge,e.toDisplayString(d.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,(u,h)=>(e.openBlock(),e.createElementBlock("option",{key:h,value:k(u,d.itemValue)??"",selected:k(u,d.itemValue)==d.modelValue},e.toDisplayString(k(u,d.itemLabel)??""),9,xe))),128))],16))}}),ye={key:1,class:"dk:text-rose-500 dk:ml-1"},ze={class:"tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none"},we="dk:space-y-1",Ce=e.defineComponent({__name:"DuiLabel",props:{title:{type:String,default:void 0},icon:{type:String,default:void 0},helpText:{type:String,default:void 0},error:{type:String,default:void 0},size:{type:String,default:"m"},required:{type:Boolean,default:!1}},setup(d){const r=e.ref(!1),t=d,k={s:"dk:text-sm",m:"dk:text-base",l:"dk:text-lg"},m={s:"dk:mt-1",m:"dk:mt-1.5",l:"dk:mt-2"},a={s:"dk:text-xs",m:"dk:text-sm",l:"dk:text-base"},x=e.computed(()=>[we].join(" ")),f=e.computed(()=>{const p=k[t.size]||k.m,u="dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center",h=t.helpText?"dk:cursor-help":"";return[u,p,h].join(" ")}),c=e.computed(()=>[m[t.size]||m.m].join(" ")),i=e.computed(()=>["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1",a[t.size]||a.m].join(" "));return(p,u)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(x.value)},[d.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:"dk:relative",onMouseenter:u[0]||(u[0]=h=>r.value=!!d.helpText),onMouseleave:u[1]||(u[1]=h=>r.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(f.value)},[d.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([d.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(d.title)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",ye,"*")):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("div",ze,[e.createTextVNode(e.toDisplayString(d.helpText)+" ",1),u[2]||(u[2]=e.createElementVNode("div",{class:"tooltip-arrow tooltip-arrow-down"},null,-1))],512),[[e.vShow,r.value&&d.helpText]])],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(c.value)},[e.renderSlot(p.$slots,"default",{},void 0,!0)],2),d.error?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(i.value)},[u[3]||(u[3]=e.createElementVNode("span",{class:"dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0"}," ! ",-1)),e.createTextVNode(" "+e.toDisplayString(d.error),1)],2)):e.createCommentVNode("",!0)],2))}}),O=(d,r)=>{const t=d.__vccOpts||d;for(const[k,m]of r)t[k]=m;return t},Be=O(Ce,[["__scopeId","data-v-aa6b6cdc"]]),Ve={class:"dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0"},Se=["checked","disabled"],Ee=e.defineComponent({inheritAttrs:!1,__name:"DuiCheckbox",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},labelPosition:{type:String,default:"right"},color:{type:String,default:"primary"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},rounded:{type:String,default:"all"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(d,{emit:r}){const t=d,k=r,m=e.useSlots(),a={sm:{track:"dk:w-9 dk:h-5",thumb:"dk:w-3.5 dk:h-3.5",translate:"dk:peer-checked:translate-x-[14px]"},md:{track:"dk:w-11 dk:h-6",thumb:"dk:w-4 dk:h-4",translate:"dk:peer-checked:translate-x-5"},lg:{track:"dk:w-14 dk:h-7",thumb:"dk:w-5 dk:h-5",translate:"dk:peer-checked:translate-x-7"}},x={all:"dk:rounded-full",top:"dk:rounded-t-full",bottom:"dk:rounded-b-full",left:"dk:rounded-l-full",right:"dk:rounded-r-full",none:"dk:rounded-none"},f={neutral:"dk:peer-checked:bg-zinc-500 dk:peer-checked:dark:bg-zinc-500",primary:"dk:peer-checked:bg-slate-600 dk:peer-checked:dark:bg-slate-500",secondary:"dk:peer-checked:bg-pink-600 dk:peer-checked:dark:bg-pink-500",success:"dk:peer-checked:bg-emerald-600 dk:peer-checked:dark:bg-emerald-500",warning:"dk:peer-checked:bg-amber-500 dk:peer-checked:dark:bg-amber-400",danger:"dk:peer-checked:bg-rose-600 dk:peer-checked:dark:bg-rose-500"},c=e.computed(()=>!!(t.label||m.default)),i=e.computed(()=>{const y=t.block?"dk:w-full dk:justify-between":"",s=t.disabled?"dk:opacity-60 dk:cursor-not-allowed":"dk:cursor-pointer";return["dk:inline-flex dk:items-center dk:gap-3 dk:select-none",y,s].join(" ")}),p=e.computed(()=>["dk:text-sm dk:leading-none dk:text-zinc-700 dk:dark:text-zinc-200",t.disabled?"dk:cursor-not-allowed":"dk:cursor-pointer"].join(" ")),u=e.computed(()=>{const y=a[t.size]||a.md,s=x[t.rounded]||x.all,l=f[t.color]||f.primary;return["dk:inline-flex dk:items-center dk:transition-colors dk:duration-200","dk:bg-zinc-300 dk:dark:bg-zinc-700","dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500","dk:peer-disabled:opacity-70",y.track,s,l].join(" ")}),h=e.computed(()=>{const y=a[t.size]||a.md;return["dk:absolute dk:left-1 dk:top-1/2 dk:-translate-y-1/2","dk:bg-white dk:dark:bg-zinc-100","dk:rounded-full dk:shadow-sm dk:transition-transform dk:duration-200","dk:pointer-events-none",y.thumb,y.translate].join(" ")});function z(y){const s=y.target;k("update:modelValue",s.checked)}return(y,s)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(i.value)},[c.value&&d.labelPosition==="left"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(p.value)},[e.renderSlot(y.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)])],2)):e.createCommentVNode("",!0),e.createElementVNode("span",Ve,[e.createElementVNode("input",e.mergeProps({type:"checkbox",class:"dk:sr-only dk:peer",checked:d.modelValue,disabled:d.disabled},y.$attrs,{onChange:z}),null,16,Se),e.createElementVNode("span",{class:e.normalizeClass(u.value)},null,2),e.createElementVNode("span",{class:e.normalizeClass(h.value)},null,2)]),c.value&&d.labelPosition==="right"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(p.value)},[e.renderSlot(y.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)])],2)):e.createCommentVNode("",!0)],2))}}),$e=["aria-labelledby"],Ne=["id"],De={class:"dk:relative dk:inline-flex dk:flex-shrink-0"},je=["name","value","checked","disabled","onChange"],Te=e.defineComponent({inheritAttrs:!1,__name:"DuiRadio",props:{modelValue:{default:void 0},options:{},name:{default:()=>`radio-${Math.random().toString(36).slice(2,8)}`},groupLabel:{default:void 0},color:{default:"primary"},size:{default:"md"},orientation:{default:"vertical"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,m=Math.random().toString(36).slice(2,8);function a(g){k("update:modelValue",g),k("change",g)}const x={sm:{radio:"dk:w-3.5 dk:h-3.5",dot:"dk:w-1.5 dk:h-1.5",label:"dk:text-xs",description:"dk:text-xs"},md:{radio:"dk:w-4 dk:h-4",dot:"dk:w-2 dk:h-2",label:"dk:text-sm",description:"dk:text-xs"},lg:{radio:"dk:w-5 dk:h-5",dot:"dk:w-2.5 dk:h-2.5",label:"dk:text-base",description:"dk:text-sm"}},f={neutral:"dk:peer-checked:border-zinc-600 dk:dark:peer-checked:border-zinc-400",primary:"dk:peer-checked:border-slate-600 dk:dark:peer-checked:border-slate-400",secondary:"dk:peer-checked:border-pink-600 dk:dark:peer-checked:border-pink-400",success:"dk:peer-checked:border-emerald-600 dk:dark:peer-checked:border-emerald-400",warning:"dk:peer-checked:border-amber-500 dk:dark:peer-checked:border-amber-400",danger:"dk:peer-checked:border-rose-600 dk:dark:peer-checked:border-rose-400"},c={neutral:"dk:peer-checked:bg-zinc-600 dk:dark:peer-checked:bg-zinc-400",primary:"dk:peer-checked:bg-slate-600 dk:dark:peer-checked:bg-slate-400",secondary:"dk:peer-checked:bg-pink-600 dk:dark:peer-checked:bg-pink-400",success:"dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-400",warning:"dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",danger:"dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-400"},i={neutral:"dk:peer-focus-visible:ring-zinc-400",primary:"dk:peer-focus-visible:ring-slate-400",secondary:"dk:peer-focus-visible:ring-pink-400",success:"dk:peer-focus-visible:ring-emerald-400",warning:"dk:peer-focus-visible:ring-amber-400",danger:"dk:peer-focus-visible:ring-rose-400"},p=e.computed(()=>[t.orientation==="horizontal"?"dk:flex dk:flex-row dk:flex-wrap dk:gap-x-5 dk:gap-y-3":"dk:flex dk:flex-col dk:gap-3"].join(" ")),u=e.computed(()=>"dk:block dk:text-xs dk:font-semibold dk:uppercase dk:tracking-wide dk:text-zinc-500 dk:dark:text-zinc-400 dk:mb-1");function h(g,o){const v=o||t.disabled?"dk:opacity-50 dk:cursor-not-allowed":"dk:cursor-pointer",C=t.block?"dk:w-full dk:justify-between":"";return["dk:inline-flex dk:items-start dk:gap-3 dk:select-none",v,C].join(" ")}function z(g){const o=x[t.size],n=f[t.color],v=i[t.color];return["dk:rounded-full dk:border-2 dk:transition-colors dk:duration-150","dk:border-zinc-300 dk:dark:border-zinc-600","dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2","dk:bg-white dk:dark:bg-zinc-900",o.radio,n,v].join(" ")}const y=e.computed(()=>{const g=x[t.size],o=c[t.color];return["dk:absolute dk:inset-0 dk:m-auto dk:rounded-full dk:scale-0 dk:peer-checked:scale-100 dk:transition-transform dk:duration-150 dk:pointer-events-none",g.dot,o].join(" ")}),s=e.computed(()=>"dk:flex dk:flex-col"),l=e.computed(()=>[x[t.size].label,"dk:leading-snug dk:text-zinc-800 dk:dark:text-zinc-200"].join(" ")),b=e.computed(()=>[x[t.size].description,"dk:leading-snug dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"].join(" "));return(g,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.value),role:"radiogroup","aria-labelledby":d.groupLabel?`rg-label-${e.unref(m)}`:void 0},[d.groupLabel?(e.openBlock(),e.createElementBlock("span",{key:0,id:`rg-label-${e.unref(m)}`,class:e.normalizeClass(u.value)},e.toDisplayString(d.groupLabel),11,Ne)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,n=>(e.openBlock(),e.createElementBlock("label",{key:n.value,class:e.normalizeClass(h(n.value,n.disabled))},[e.createElementVNode("span",De,[e.createElementVNode("input",e.mergeProps({type:"radio",class:"dk:sr-only dk:peer",name:d.name,value:n.value,checked:d.modelValue===n.value,disabled:n.disabled||d.disabled},{ref_for:!0},g.$attrs,{onChange:v=>a(n.value)}),null,16,je),e.createElementVNode("span",{class:e.normalizeClass(z(n.value))},null,2),e.createElementVNode("span",{class:e.normalizeClass(y.value)},null,2)]),e.createElementVNode("span",{class:e.normalizeClass(s.value)},[e.createElementVNode("span",{class:e.normalizeClass(l.value)},e.toDisplayString(n.label),3),n.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(b.value)},e.toDisplayString(n.description),3)):e.createCommentVNode("",!0)],2)],2))),128))],10,$e))}}),Me={class:"dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0"},Pe=["aria-checked","checked","disabled"],Le={key:0,viewBox:"0 0 12 12",fill:"currentColor",class:"dk:w-2.5 dk:h-2.5"},_e={key:1,viewBox:"0 0 12 12",fill:"none",class:"dk:w-2.5 dk:h-2.5"},Q=e.defineComponent({inheritAttrs:!1,__name:"DuiSwitch",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},description:{type:String,default:""},labelPosition:{type:String,default:"right"},color:{type:String,default:"primary"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showIcons:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,m=e.useSlots(),a={sm:{track:"dk:w-8 dk:h-4",thumb:"dk:w-3 dk:h-3",translate:"dk:peer-checked:translate-x-[16px]",offset:"dk:top-0.5 dk:left-0.5"},md:{track:"dk:w-10 dk:h-5",thumb:"dk:w-4 dk:h-4",translate:"dk:peer-checked:translate-x-5",offset:"dk:top-0.5 dk:left-0.5"},lg:{track:"dk:w-12 dk:h-6",thumb:"dk:w-5 dk:h-5",translate:"dk:peer-checked:translate-x-6",offset:"dk:top-0.5 dk:left-0.5"}},x={neutral:"dk:peer-checked:bg-zinc-600 dk:dark:peer-checked:bg-zinc-500",primary:"dk:peer-checked:bg-slate-600 dk:dark:peer-checked:bg-slate-500",secondary:"dk:peer-checked:bg-pink-600 dk:dark:peer-checked:bg-pink-500",success:"dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-500",warning:"dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",danger:"dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-500"},f=e.computed(()=>!!(t.label||m.default)),c=e.computed(()=>{const l=t.block?"dk:w-full dk:justify-between":"",b=t.block?"dk:flex":"dk:inline-flex",g=t.disabled?"dk:opacity-60 dk:cursor-not-allowed":"dk:cursor-pointer";return[b,"dk:items-center dk:gap-3 dk:select-none",l,g].join(" ")}),i=e.computed(()=>["dk:flex dk:flex-col","dk:text-sm dk:leading-snug dk:text-zinc-700 dk:dark:text-zinc-200",t.disabled?"dk:cursor-not-allowed":"dk:cursor-pointer"].join(" ")),p=e.computed(()=>"dk:text-xs dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"),u=e.computed(()=>{const l=a[t.size],b=x[t.color];return["dk:relative dk:inline-flex dk:items-center dk:transition-colors dk:duration-200 dk:rounded-full","dk:bg-zinc-300 dk:dark:bg-zinc-600","dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500","dk:peer-disabled:opacity-70",l.track,b].join(" ")}),h=e.computed(()=>{const l=a[t.size];return["dk:absolute",l.offset,"dk:bg-white dk:dark:bg-zinc-100","dk:rounded-full dk:shadow-sm dk:transition-all dk:duration-200","dk:pointer-events-none dk:flex dk:items-center dk:justify-center",l.thumb,l.translate].join(" ")}),z={neutral:"dk:text-zinc-600 dk:dark:text-zinc-400",primary:"dk:text-slate-600 dk:dark:text-slate-400",secondary:"dk:text-pink-600 dk:dark:text-pink-400",success:"dk:text-emerald-600 dk:dark:text-emerald-400",warning:"dk:text-amber-600 dk:dark:text-amber-400",danger:"dk:text-rose-600 dk:dark:text-rose-400"},y=e.computed(()=>t.modelValue?z[t.color]:"dk:text-zinc-400 dk:dark:text-zinc-500");function s(l){const b=l.target;k("update:modelValue",b.checked),k("change",b.checked)}return(l,b)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(c.value)},[f.value&&d.labelPosition==="left"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(i.value)},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),d.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(p.value)},e.toDisplayString(d.description),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("span",Me,[e.createElementVNode("input",e.mergeProps({type:"checkbox",class:"dk:sr-only dk:peer",role:"switch","aria-checked":d.modelValue,checked:d.modelValue,disabled:d.disabled},l.$attrs,{onChange:s}),null,16,Pe),e.createElementVNode("span",{class:e.normalizeClass(u.value)},null,2),e.createElementVNode("span",{class:e.normalizeClass(h.value)},[d.showIcons?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-hidden":"true",class:e.normalizeClass(y.value)},[d.modelValue?(e.openBlock(),e.createElementBlock("svg",Le,[...b[0]||(b[0]=[e.createElementVNode("path",{d:"M3.5 6.5l2 2 3-3",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",_e,[...b[1]||(b[1]=[e.createElementVNode("line",{x1:"3",y1:"3",x2:"9",y2:"9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),e.createElementVNode("line",{x1:"9",y1:"3",x2:"3",y2:"9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])]))],2)):e.createCommentVNode("",!0)],2)]),f.value&&d.labelPosition==="right"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(i.value)},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),d.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(p.value)},e.toDisplayString(d.description),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2))}}),Ie=`
|
|
194
194
|
dk:px-4
|
|
195
195
|
dk:py-3
|
|
196
196
|
dk:text-sm
|
package/dist/droni-kit.es.js
CHANGED
|
@@ -415,7 +415,7 @@ const We = { key: 1 }, Oe = `
|
|
|
415
415
|
__name: "DuiInput",
|
|
416
416
|
props: {
|
|
417
417
|
modelValue: {
|
|
418
|
-
type: [String, Number],
|
|
418
|
+
type: [String, Number, null],
|
|
419
419
|
default: ""
|
|
420
420
|
},
|
|
421
421
|
size: {
|
|
@@ -557,7 +557,7 @@ const We = { key: 1 }, Oe = `
|
|
|
557
557
|
__name: "DuiSelect",
|
|
558
558
|
props: {
|
|
559
559
|
modelValue: {
|
|
560
|
-
type: [String, Number],
|
|
560
|
+
type: [String, Number, null],
|
|
561
561
|
default: ""
|
|
562
562
|
},
|
|
563
563
|
options: {
|
|
@@ -3,7 +3,7 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
modelValue: {
|
|
6
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
6
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
size: {
|
|
@@ -22,7 +22,7 @@ declare const meta: {
|
|
|
22
22
|
"update:modelValue": (value: string) => any;
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
24
|
modelValue: {
|
|
25
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
25
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
size: {
|
|
@@ -43,7 +43,7 @@ declare const meta: {
|
|
|
43
43
|
size: "sm" | "md" | "lg";
|
|
44
44
|
block: boolean;
|
|
45
45
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
46
|
-
modelValue: string | number;
|
|
46
|
+
modelValue: string | number | null;
|
|
47
47
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
48
48
|
tags: string[];
|
|
49
49
|
argTypes: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
modelValue: {
|
|
3
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
3
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
size: {
|
|
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
19
19
|
"update:modelValue": (value: string) => any;
|
|
20
20
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
21
|
modelValue: {
|
|
22
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
size: {
|
|
@@ -40,6 +40,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
40
40
|
size: "sm" | "md" | "lg";
|
|
41
41
|
block: boolean;
|
|
42
42
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
43
|
-
modelValue: string | number;
|
|
43
|
+
modelValue: string | number | null;
|
|
44
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
45
|
export default _default;
|
|
@@ -3,7 +3,7 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
modelValue: {
|
|
6
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
6
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
options: {
|
|
@@ -38,7 +38,7 @@ declare const meta: {
|
|
|
38
38
|
"update:modelValue": (value: string | number) => any;
|
|
39
39
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
40
40
|
modelValue: {
|
|
41
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
41
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
42
42
|
default: string;
|
|
43
43
|
};
|
|
44
44
|
options: {
|
|
@@ -75,7 +75,7 @@ declare const meta: {
|
|
|
75
75
|
size: "sm" | "md" | "lg";
|
|
76
76
|
block: boolean;
|
|
77
77
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
78
|
-
modelValue: string | number;
|
|
78
|
+
modelValue: string | number | null;
|
|
79
79
|
placeholder: string;
|
|
80
80
|
options: Record<string, any>[];
|
|
81
81
|
itemLabel: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
modelValue: {
|
|
3
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
3
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
options: {
|
|
@@ -35,7 +35,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
35
35
|
"update:modelValue": (value: string | number) => any;
|
|
36
36
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
37
|
modelValue: {
|
|
38
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
38
|
+
type: (StringConstructor | NumberConstructor | null)[];
|
|
39
39
|
default: string;
|
|
40
40
|
};
|
|
41
41
|
options: {
|
|
@@ -72,7 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
72
72
|
size: "sm" | "md" | "lg";
|
|
73
73
|
block: boolean;
|
|
74
74
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
75
|
-
modelValue: string | number;
|
|
75
|
+
modelValue: string | number | null;
|
|
76
76
|
placeholder: string;
|
|
77
77
|
options: Record<string, any>[];
|
|
78
78
|
itemLabel: string;
|