@dronico/droni-kit 1.8.2 → 1.8.4

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.8.4](https://github.com/Droni-app/droni-kit/compare/v1.8.3...v1.8.4) (2025-05-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * support to number in input ([6aec6d3](https://github.com/Droni-app/droni-kit/commit/6aec6d32647fb6678e387e1221ae90df720d8343))
7
+
8
+ ## [1.8.3](https://github.com/Droni-app/droni-kit/compare/v1.8.2...v1.8.3) (2025-05-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * default block true ([18b7941](https://github.com/Droni-app/droni-kit/commit/18b7941fcd57e0b018e05c19f5b665faf85a918c))
14
+
1
15
  ## [1.8.2](https://github.com/Droni-app/droni-kit/compare/v1.8.1...v1.8.2) (2025-05-13)
2
16
 
3
17
 
@@ -153,7 +153,7 @@
153
153
  dk:text-amber-600
154
154
  dk:hover:bg-amber-50
155
155
  dk:dark:text-amber-100
156
- dk:dark:hover:bg-amber-800`}},n=e.computed(()=>{var a;const o=(((a=k[r.variant])==null?void 0:a[r.color])||"")+" "+k[r.variant].base,c=d[r.size]||"",b=r.block?"dk:w-full":"",p=s[r.rounded]||"";return[v,o,c,b,p].join(" ")});return(o,c)=>(e.openBlock(),e.createElementBlock("button",{type:r.type,class:e.normalizeClass(n.value),title:r.title,disabled:r.disabled||r.loading},[r.loading?(e.openBlock(),e.createElementBlock("span",h,"Cargando...")):e.renderSlot(o.$slots,"default",{key:0})],10,x))}}),z=["for"],f={key:0,class:"dk:text-rose-500"},S=["type","value","disabled","placeholder","required","name","id","pattern","readonly","aria-label","aria-disabled","aria-required"],_=`
156
+ dk:dark:hover:bg-amber-800`}},n=e.computed(()=>{var a;const o=(((a=k[r.variant])==null?void 0:a[r.color])||"")+" "+k[r.variant].base,c=d[r.size]||"",b=r.block?"dk:w-full":"",p=s[r.rounded]||"";return[v,o,c,b,p].join(" ")});return(o,c)=>(e.openBlock(),e.createElementBlock("button",{type:r.type,class:e.normalizeClass(n.value),title:r.title,disabled:r.disabled||r.loading},[r.loading?(e.openBlock(),e.createElementBlock("span",h,"Cargando...")):e.renderSlot(o.$slots,"default",{key:0})],10,x))}}),z=["for"],f={key:0,class:"dk:text-rose-500"},S=["type","value","disabled","placeholder","required","name","id","pattern","readonly","min","max","step","aria-label","aria-disabled","aria-required"],_=`
157
157
  dk:border-b
158
158
  dk:border-zinc-300
159
159
  dk:bg-zinc-50
@@ -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]`,B=e.defineComponent({__name:"DuiInput",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},name:{type:String,default:void 0},id:{type:String,default:void 0},required:{type:Boolean,default:!1},label:{type:String,default:void 0},pattern:{type:String,default:void 0},readonly:{type:Boolean,default:!1},rounded:{type:String,default:"all"}},emits:["update:modelValue"],setup(l,{emit:r}){const d=l,s=r;function k(a){const i=a.target;s("update:modelValue",i.value)}const n={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"},o={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},c={sm:"dk:text-sm dk:pb-0.5",md:"dk:text-base dk:pb-1",lg:"dk:text-lg dk:pb-2"},b=e.computed(()=>{const a=n[d.size]||"",i=d.block?"dk:w-full":"",t=o[d.rounded]||"";return[_,a,i,t].join(" ")}),p=e.computed(()=>{const a=c[d.size]||"",i=d.block?"dk:w-full":"";return[a,i].join(" ")});return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:d.id,class:e.normalizeClass([p.value,"dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",f,"*")):e.createCommentVNode("",!0)],10,z)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:d.type,class:e.normalizeClass(b.value),value:l.modelValue,disabled:d.disabled,placeholder:d.placeholder,required:d.required,name:d.name,id:d.id,pattern:d.pattern,readonly:d.readonly,"aria-label":d.placeholder,"aria-disabled":d.disabled,"aria-required":d.required,onInput:k},null,42,S)]))}}),C=["for"],w={key:0,class:"dk:text-rose-500"},V=["value","disabled","placeholder","required","name","id","readonly","aria-label","aria-disabled","aria-required"],E=`
168
+ dk:dark:[color-scheme:dark]`,B=e.defineComponent({__name:"DuiInput",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},size:{type:String,default:"md"},block:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},name:{type:String,default:void 0},id:{type:String,default:void 0},required:{type:Boolean,default:!1},label:{type:String,default:void 0},pattern:{type:String,default:void 0},readonly:{type:Boolean,default:!1},rounded:{type:String,default:"all"},min:{type:[String,Number],default:void 0},max:{type:[String,Number],default:void 0},step:{type:[String,Number],default:void 0},autocomplete:{type:String,default:void 0}},emits:["update:modelValue"],setup(l,{emit:r}){const d=l,s=r;function k(a){const i=a.target;s("update:modelValue",i.value)}const n={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"},o={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},c={sm:"dk:text-sm dk:pb-0.5",md:"dk:text-base dk:pb-1",lg:"dk:text-lg dk:pb-2"},b=e.computed(()=>{const a=n[d.size]||"",i=d.block?"dk:w-full":"",t=o[d.rounded]||"";return[_,a,i,t].join(" ")}),p=e.computed(()=>{const a=c[d.size]||"",i=d.block?"dk:w-full":"";return[a,i].join(" ")});return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:d.id,class:e.normalizeClass([p.value,"dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",f,"*")):e.createCommentVNode("",!0)],10,z)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:d.type,class:e.normalizeClass(b.value),value:l.modelValue,disabled:d.disabled,placeholder:d.placeholder,required:d.required,name:d.name,id:d.id,pattern:d.pattern,readonly:d.readonly,min:d.min,max:d.max,step:d.step,"aria-label":d.placeholder,"aria-disabled":d.disabled,"aria-required":d.required,onInput:k},null,42,S)]))}}),C=["for"],w={key:0,class:"dk:text-rose-500"},V=["value","disabled","placeholder","required","name","id","readonly","aria-label","aria-disabled","aria-required"],E=`
169
169
  dk:border-b
170
170
  dk:border-zinc-300
171
171
  dk:bg-zinc-50
@@ -177,7 +177,7 @@
177
177
  dk:dark:bg-zinc-800
178
178
  dk:dark:text-zinc-100
179
179
  dk:dark:focus:bg-zinc-700
180
- dk:dark:[color-scheme:dark]`,$=e.defineComponent({__name:"DuiTextarea",props:{modelValue:{type:String,default:""},size:{type:String,default:"md"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},name:{type:String,default:void 0},id:{type:String,default:void 0},required:{type:Boolean,default:!1},label:{type:String,default:void 0},readonly:{type:Boolean,default:!1},rounded:{type:String,default:"all"},autoheight:{type:Boolean,default:!0},resize:{type:String,default:"none"}},emits:["update:modelValue"],setup(l,{emit:r}){const d=l,s=r;function k(t){const u=t.target;d.autoheight&&i(u),s("update:modelValue",u.value)}const n={sm:"dk:text-sm dk:px-3 dk:py-1.5",md:"dk:text-base dk:px-3 dk:py-2",lg:"dk:text-lg dk:px-5 dk:py-3"},o={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},c={sm:"dk:text-sm dk:pb-0.5",md:"dk:text-base dk:pb-1",lg:"dk:text-lg dk:pb-2"},b={none:"dk:resize-none",both:"dk:resize",horizontal:"dk:resize-x",vertical:"dk:resize-y"},p=e.computed(()=>{const t=n[d.size]||"",u=d.block?"dk:w-full":"",m=o[d.rounded]||"",g=b[d.resize]||"";return[E,t,u,m,g].join(" ")}),a=e.computed(()=>{const t=c[d.size]||"",u=d.block?"dk:w-full":"";return[t,u].join(" ")}),i=t=>{t.style.height="auto",t.style.height=`${t.scrollHeight+5}px`};return(t,u)=>(e.openBlock(),e.createElementBlock("div",null,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:d.id,class:e.normalizeClass([a.value,"dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",w,"*")):e.createCommentVNode("",!0)],10,C)):e.createCommentVNode("",!0),e.createElementVNode("textarea",{class:e.normalizeClass(p.value),value:l.modelValue,disabled:d.disabled,placeholder:d.placeholder,required:d.required,name:d.name,id:d.id,readonly:d.readonly,"aria-label":d.placeholder,"aria-disabled":d.disabled,"aria-required":d.required,onInput:k},null,42,V)]))}}),q=["title"],N={key:1},D=`
180
+ dk:dark:[color-scheme:dark]`,$=e.defineComponent({__name:"DuiTextarea",props:{modelValue:{type:String,default:""},size:{type:String,default:"md"},block:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},name:{type:String,default:void 0},id:{type:String,default:void 0},required:{type:Boolean,default:!1},label:{type:String,default:void 0},readonly:{type:Boolean,default:!1},rounded:{type:String,default:"all"},autoheight:{type:Boolean,default:!0},resize:{type:String,default:"vertical"}},emits:["update:modelValue"],setup(l,{emit:r}){const d=l,s=r;function k(t){const u=t.target;d.autoheight&&i(u),s("update:modelValue",u.value)}const n={sm:"dk:text-sm dk:px-3 dk:py-1.5",md:"dk:text-base dk:px-3 dk:py-2",lg:"dk:text-lg dk:px-5 dk:py-3"},o={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},c={sm:"dk:text-sm dk:pb-0.5",md:"dk:text-base dk:pb-1",lg:"dk:text-lg dk:pb-2"},b={none:"dk:resize-none",both:"dk:resize",horizontal:"dk:resize-x",vertical:"dk:resize-y"},p=e.computed(()=>{const t=n[d.size]||"",u=d.block?"dk:w-full":"",m=o[d.rounded]||"",g=b[d.resize]||"";return[E,t,u,m,g].join(" ")}),a=e.computed(()=>{const t=c[d.size]||"",u=d.block?"dk:w-full":"";return[t,u].join(" ")}),i=t=>{t.style.height="auto",t.style.height=`${t.scrollHeight+5}px`};return(t,u)=>(e.openBlock(),e.createElementBlock("div",null,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:d.id,class:e.normalizeClass([a.value,"dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",w,"*")):e.createCommentVNode("",!0)],10,C)):e.createCommentVNode("",!0),e.createElementVNode("textarea",{class:e.normalizeClass(p.value),value:l.modelValue,disabled:d.disabled,placeholder:d.placeholder,required:d.required,name:d.name,id:d.id,readonly:d.readonly,"aria-label":d.placeholder,"aria-disabled":d.disabled,"aria-required":d.required,onInput:k},null,42,V)]))}}),q=["title"],N={key:1},D=`
181
181
  dk:transition
182
182
  dk:text-center
183
183
  dk:disabled:opacity-50
@@ -345,7 +345,7 @@
345
345
  dk:dark:text-zinc-100
346
346
  dk:dark:focus:bg-zinc-700
347
347
  dk:dark:[color-scheme:dark]
348
- `,H=e.defineComponent({__name:"DuiSelect",props:{modelValue:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},size:{type:String,default:"md"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:{type:String,default:void 0},id:{type:String,default:void 0},required:{type:Boolean,default:!1},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},readonly:{type:Boolean,default:!1},rounded:{type:String,default:"all"},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"}},emits:["update:modelValue"],setup(l,{emit:r}){const d=l,s=r;function k(a){const t=a.target.value,u=Number(t);!isNaN(u)&&t!==""?s("update:modelValue",u):s("update:modelValue",t)}const n={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"},o={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},c={sm:"dk:text-sm dk:pb-0.5",md:"dk:text-base dk:pb-1",lg:"dk:text-lg dk:pb-2"},b=e.computed(()=>{const a=n[d.size]||"",i=d.block?"dk:w-full":"",t=o[d.rounded]||"";return[P,a,i,t].join(" ")}),p=e.computed(()=>{const a=c[d.size]||"",i=d.block?"dk:w-full":"";return[a,i].join(" ")});return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:d.id,class:e.normalizeClass([p.value,"dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],10,j)):e.createCommentVNode("",!0),e.createElementVNode("select",{id:d.id,name:d.name,disabled:d.disabled,required:d.required,class:e.normalizeClass(b.value),readonly:d.readonly,"aria-label":d.label||"select input","aria-disabled":d.disabled,"aria-required":d.required,onChange:k},[d.placeholder?(e.openBlock(),e.createElementBlock("option",F,e.toDisplayString(d.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,(t,u)=>(e.openBlock(),e.createElementBlock("option",{key:u,value:t[d.itemValue]??"",selected:t[d.itemValue]==d.modelValue},e.toDisplayString(t[d.itemLabel]??""),9,I))),128))],42,A)]))}}),M=`
348
+ `,H=e.defineComponent({__name:"DuiSelect",props:{modelValue:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},size:{type:String,default:"md"},block:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{type:String,default:void 0},id:{type:String,default:void 0},required:{type:Boolean,default:!1},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},readonly:{type:Boolean,default:!1},rounded:{type:String,default:"all"},itemLabel:{type:String,default:"label"},itemValue:{type:String,default:"value"}},emits:["update:modelValue"],setup(l,{emit:r}){const d=l,s=r;function k(a){const t=a.target.value,u=Number(t);!isNaN(u)&&t!==""?s("update:modelValue",u):s("update:modelValue",t)}const n={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"},o={all:"dk:rounded",top:"dk:rounded-t",bottom:"dk:rounded-b",left:"dk:rounded-l",right:"dk:rounded-r",none:"dk:rounded-none"},c={sm:"dk:text-sm dk:pb-0.5",md:"dk:text-base dk:pb-1",lg:"dk:text-lg dk:pb-2"},b=e.computed(()=>{const a=n[d.size]||"",i=d.block?"dk:w-full":"",t=o[d.rounded]||"";return[P,a,i,t].join(" ")}),p=e.computed(()=>{const a=c[d.size]||"",i=d.block?"dk:w-full":"";return[a,i].join(" ")});return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:d.id,class:e.normalizeClass([p.value,"dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],10,j)):e.createCommentVNode("",!0),e.createElementVNode("select",{id:d.id,name:d.name,disabled:d.disabled,required:d.required,class:e.normalizeClass(b.value),readonly:d.readonly,"aria-label":d.label||"select input","aria-disabled":d.disabled,"aria-required":d.required,onChange:k},[d.placeholder?(e.openBlock(),e.createElementBlock("option",F,e.toDisplayString(d.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,(t,u)=>(e.openBlock(),e.createElementBlock("option",{key:u,value:t[d.itemValue]??"",selected:t[d.itemValue]==d.modelValue},e.toDisplayString(t[d.itemLabel]??""),9,I))),128))],42,A)]))}}),M=`
349
349
  dk:px-4
350
350
  dk:py-3
351
351
  dk:text-sm
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, computed as m, createElementBlock as r, openBlock as t, normalizeClass as g, renderSlot as S, createCommentVNode as v, createElementVNode as h, createTextVNode as w, toDisplayString as y, Fragment as f, renderList as _, mergeProps as q } from "vue";
1
+ import { defineComponent as z, computed as m, createElementBlock as r, openBlock as t, normalizeClass as g, renderSlot as _, createCommentVNode as v, createElementVNode as h, createTextVNode as w, toDisplayString as y, Fragment as f, renderList as S, mergeProps as q } from "vue";
2
2
  const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
3
3
  dk:transition
4
4
  dk:text-center
@@ -245,13 +245,13 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
245
245
  title: d.title,
246
246
  disabled: d.disabled || d.loading
247
247
  }, [
248
- d.loading ? (t(), r("span", V, "Cargando...")) : S(l.$slots, "default", { key: 0 })
248
+ d.loading ? (t(), r("span", V, "Cargando...")) : _(l.$slots, "default", { key: 0 })
249
249
  ], 10, B));
250
250
  }
251
- }), j = ["for"], L = {
251
+ }), N = ["for"], j = {
252
252
  key: 0,
253
253
  class: "dk:text-rose-500"
254
- }, A = ["type", "value", "disabled", "placeholder", "required", "name", "id", "pattern", "readonly", "aria-label", "aria-disabled", "aria-required"], N = `
254
+ }, L = ["type", "value", "disabled", "placeholder", "required", "name", "id", "pattern", "readonly", "min", "max", "step", "aria-label", "aria-disabled", "aria-required"], A = `
255
255
  dk:border-b
256
256
  dk:border-zinc-300
257
257
  dk:bg-zinc-50
@@ -267,7 +267,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
267
267
  __name: "DuiInput",
268
268
  props: {
269
269
  modelValue: {
270
- type: String,
270
+ type: [String, Number],
271
271
  default: ""
272
272
  },
273
273
  type: {
@@ -280,7 +280,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
280
280
  },
281
281
  block: {
282
282
  type: Boolean,
283
- default: !1
283
+ default: !0
284
284
  },
285
285
  disabled: {
286
286
  type: Boolean,
@@ -317,6 +317,22 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
317
317
  rounded: {
318
318
  type: String,
319
319
  default: "all"
320
+ },
321
+ min: {
322
+ type: [String, Number],
323
+ default: void 0
324
+ },
325
+ max: {
326
+ type: [String, Number],
327
+ default: void 0
328
+ },
329
+ step: {
330
+ type: [String, Number],
331
+ default: void 0
332
+ },
333
+ autocomplete: {
334
+ type: String,
335
+ default: void 0
320
336
  }
321
337
  },
322
338
  emits: ["update:modelValue"],
@@ -343,7 +359,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
343
359
  lg: "dk:text-lg dk:pb-2"
344
360
  }, u = m(() => {
345
361
  const k = s[e.size] || "", b = e.block ? "dk:w-full" : "", a = l[e.rounded] || "";
346
- return [N, k, b, a].join(" ");
362
+ return [A, k, b, a].join(" ");
347
363
  }), x = m(() => {
348
364
  const k = c[e.size] || "", b = e.block ? "dk:w-full" : "";
349
365
  return [k, b].join(" ");
@@ -355,8 +371,8 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
355
371
  class: g([x.value, "dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])
356
372
  }, [
357
373
  w(y(e.label) + " ", 1),
358
- e.required ? (t(), r("span", L, "*")) : v("", !0)
359
- ], 10, j)) : v("", !0),
374
+ e.required ? (t(), r("span", j, "*")) : v("", !0)
375
+ ], 10, N)) : v("", !0),
360
376
  h("input", {
361
377
  type: e.type,
362
378
  class: g(u.value),
@@ -368,11 +384,14 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
368
384
  id: e.id,
369
385
  pattern: e.pattern,
370
386
  readonly: e.readonly,
387
+ min: e.min,
388
+ max: e.max,
389
+ step: e.step,
371
390
  "aria-label": e.placeholder,
372
391
  "aria-disabled": e.disabled,
373
392
  "aria-required": e.required,
374
393
  onInput: o
375
- }, null, 42, A)
394
+ }, null, 42, L)
376
395
  ]));
377
396
  }
378
397
  }), T = ["for"], I = {
@@ -403,7 +422,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
403
422
  },
404
423
  block: {
405
424
  type: Boolean,
406
- default: !1
425
+ default: !0
407
426
  },
408
427
  disabled: {
409
428
  type: Boolean,
@@ -443,7 +462,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
443
462
  },
444
463
  resize: {
445
464
  type: String,
446
- default: "none"
465
+ default: "vertical"
447
466
  }
448
467
  },
449
468
  emits: ["update:modelValue"],
@@ -743,7 +762,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
743
762
  class: g(s.value),
744
763
  title: d.title
745
764
  }, [
746
- d.loading ? (t(), r("span", P, "Cargando...")) : S(l.$slots, "default", { key: 0 })
765
+ d.loading ? (t(), r("span", P, "Cargando...")) : _(l.$slots, "default", { key: 0 })
747
766
  ], 10, H));
748
767
  }
749
768
  }), G = ["for"], J = {
@@ -784,7 +803,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
784
803
  },
785
804
  block: {
786
805
  type: Boolean,
787
- default: !1
806
+ default: !0
788
807
  },
789
808
  disabled: {
790
809
  type: Boolean,
@@ -878,7 +897,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
878
897
  onChange: o
879
898
  }, [
880
899
  e.placeholder ? (t(), r("option", M, y(e.placeholder), 1)) : v("", !0),
881
- (t(!0), r(f, null, _(e.options, (a, p) => (t(), r("option", {
900
+ (t(!0), r(f, null, S(e.options, (a, p) => (t(), r("option", {
882
901
  key: p,
883
902
  value: a[e.itemValue] ?? "",
884
903
  selected: a[e.itemValue] == e.modelValue
@@ -953,7 +972,7 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
953
972
  class: g(o.value),
954
973
  role: "alert"
955
974
  }, [
956
- S(s.$slots, "default")
975
+ _(s.$slots, "default")
957
976
  ], 2));
958
977
  }
959
978
  }), W = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, X = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, Y = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200" }, oe = /* @__PURE__ */ z({
@@ -974,22 +993,22 @@ const B = ["type", "title", "disabled"], V = { key: 1 }, D = `
974
993
  h("table", X, [
975
994
  h("thead", Y, [
976
995
  h("tr", null, [
977
- (t(!0), r(f, null, _(d.columns, (o) => (t(), r("th", {
996
+ (t(!0), r(f, null, S(d.columns, (o) => (t(), r("th", {
978
997
  key: o.name,
979
998
  class: g(["dk:px-6 dk:py-3", o.classes])
980
999
  }, y(o.label), 3))), 128))
981
1000
  ])
982
1001
  ]),
983
1002
  h("tbody", null, [
984
- (t(!0), r(f, null, _(d.rows, (o, s) => (t(), r("tr", {
1003
+ (t(!0), r(f, null, S(d.rows, (o, s) => (t(), r("tr", {
985
1004
  key: s,
986
1005
  class: "dk:bg-white dk:border-b dk:border-gray-200 dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:hover:bg-gray-50 dk:dark:hover:bg-gray-600 dk:transition-colors"
987
1006
  }, [
988
- (t(!0), r(f, null, _(d.columns, (l) => (t(), r("td", {
1007
+ (t(!0), r(f, null, S(d.columns, (l) => (t(), r("td", {
989
1008
  key: l.name,
990
1009
  class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
991
1010
  }, [
992
- S(e.$slots, l.name, q({ ref_for: !0 }, o), () => [
1011
+ _(e.$slots, l.name, q({ ref_for: !0 }, o), () => [
993
1012
  w(y(o[l.name]), 1)
994
1013
  ])
995
1014
  ]))), 128))
@@ -3,11 +3,11 @@ declare const meta: {
3
3
  title: string;
4
4
  component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
5
  modelValue: {
6
- type: StringConstructor;
6
+ type: (StringConstructor | NumberConstructor)[];
7
7
  default: string;
8
8
  };
9
9
  type: {
10
- type: () => "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week" | "time";
10
+ type: () => "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week" | "time" | "number";
11
11
  default: string;
12
12
  };
13
13
  size: {
@@ -54,15 +54,31 @@ declare const meta: {
54
54
  type: () => "all" | "top" | "bottom" | "left" | "right" | "none";
55
55
  default: string;
56
56
  };
57
+ min: {
58
+ type: (StringConstructor | NumberConstructor)[];
59
+ default: undefined;
60
+ };
61
+ max: {
62
+ type: (StringConstructor | NumberConstructor)[];
63
+ default: undefined;
64
+ };
65
+ step: {
66
+ type: (StringConstructor | NumberConstructor)[];
67
+ default: undefined;
68
+ };
69
+ autocomplete: {
70
+ type: StringConstructor;
71
+ default: undefined;
72
+ };
57
73
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
58
74
  "update:modelValue": (value: string) => any;
59
75
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
60
76
  modelValue: {
61
- type: StringConstructor;
77
+ type: (StringConstructor | NumberConstructor)[];
62
78
  default: string;
63
79
  };
64
80
  type: {
65
- type: () => "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week" | "time";
81
+ type: () => "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week" | "time" | "number";
66
82
  default: string;
67
83
  };
68
84
  size: {
@@ -109,22 +125,42 @@ declare const meta: {
109
125
  type: () => "all" | "top" | "bottom" | "left" | "right" | "none";
110
126
  default: string;
111
127
  };
128
+ min: {
129
+ type: (StringConstructor | NumberConstructor)[];
130
+ default: undefined;
131
+ };
132
+ max: {
133
+ type: (StringConstructor | NumberConstructor)[];
134
+ default: undefined;
135
+ };
136
+ step: {
137
+ type: (StringConstructor | NumberConstructor)[];
138
+ default: undefined;
139
+ };
140
+ autocomplete: {
141
+ type: StringConstructor;
142
+ default: undefined;
143
+ };
112
144
  }>> & Readonly<{
113
145
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
114
146
  }>, {
115
147
  size: "sm" | "md" | "lg";
116
- type: "time" | "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week";
148
+ type: "number" | "time" | "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week";
117
149
  disabled: boolean;
118
150
  block: boolean;
119
151
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
120
152
  label: string;
121
153
  pattern: string;
122
- modelValue: string;
154
+ modelValue: string | number;
123
155
  placeholder: string;
124
156
  name: string;
125
157
  id: string;
126
158
  required: boolean;
127
159
  readonly: boolean;
160
+ min: string | number;
161
+ max: string | number;
162
+ step: string | number;
163
+ autocomplete: string;
128
164
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
129
165
  tags: string[];
130
166
  argTypes: {
@@ -197,6 +233,24 @@ declare const meta: {
197
233
  };
198
234
  defaultValue: boolean;
199
235
  };
236
+ min: {
237
+ control: {
238
+ type: "text";
239
+ };
240
+ defaultValue: undefined;
241
+ };
242
+ max: {
243
+ control: {
244
+ type: "text";
245
+ };
246
+ defaultValue: undefined;
247
+ };
248
+ step: {
249
+ control: {
250
+ type: "text";
251
+ };
252
+ defaultValue: undefined;
253
+ };
200
254
  };
201
255
  };
202
256
  export default meta;
@@ -1,10 +1,10 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: {
3
- type: StringConstructor;
3
+ type: (StringConstructor | NumberConstructor)[];
4
4
  default: string;
5
5
  };
6
6
  type: {
7
- type: () => "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week" | "time";
7
+ type: () => "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week" | "time" | "number";
8
8
  default: string;
9
9
  };
10
10
  size: {
@@ -51,15 +51,31 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
51
51
  type: () => "all" | "top" | "bottom" | "left" | "right" | "none";
52
52
  default: string;
53
53
  };
54
+ min: {
55
+ type: (StringConstructor | NumberConstructor)[];
56
+ default: undefined;
57
+ };
58
+ max: {
59
+ type: (StringConstructor | NumberConstructor)[];
60
+ default: undefined;
61
+ };
62
+ step: {
63
+ type: (StringConstructor | NumberConstructor)[];
64
+ default: undefined;
65
+ };
66
+ autocomplete: {
67
+ type: StringConstructor;
68
+ default: undefined;
69
+ };
54
70
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
55
71
  "update:modelValue": (value: string) => any;
56
72
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
57
73
  modelValue: {
58
- type: StringConstructor;
74
+ type: (StringConstructor | NumberConstructor)[];
59
75
  default: string;
60
76
  };
61
77
  type: {
62
- type: () => "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week" | "time";
78
+ type: () => "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week" | "time" | "number";
63
79
  default: string;
64
80
  };
65
81
  size: {
@@ -106,21 +122,41 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
106
122
  type: () => "all" | "top" | "bottom" | "left" | "right" | "none";
107
123
  default: string;
108
124
  };
125
+ min: {
126
+ type: (StringConstructor | NumberConstructor)[];
127
+ default: undefined;
128
+ };
129
+ max: {
130
+ type: (StringConstructor | NumberConstructor)[];
131
+ default: undefined;
132
+ };
133
+ step: {
134
+ type: (StringConstructor | NumberConstructor)[];
135
+ default: undefined;
136
+ };
137
+ autocomplete: {
138
+ type: StringConstructor;
139
+ default: undefined;
140
+ };
109
141
  }>> & Readonly<{
110
142
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
111
143
  }>, {
112
144
  size: "sm" | "md" | "lg";
113
- type: "time" | "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week";
145
+ type: "number" | "time" | "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "datetime-local" | "month" | "week";
114
146
  disabled: boolean;
115
147
  block: boolean;
116
148
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
117
149
  label: string;
118
150
  pattern: string;
119
- modelValue: string;
151
+ modelValue: string | number;
120
152
  placeholder: string;
121
153
  name: string;
122
154
  id: string;
123
155
  required: boolean;
124
156
  readonly: boolean;
157
+ min: string | number;
158
+ max: string | number;
159
+ step: string | number;
160
+ autocomplete: string;
125
161
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
126
162
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dronico/droni-kit",
3
3
  "author": "Gustavo Barragan <dev@droni.co>",
4
- "version": "1.8.2",
4
+ "version": "1.8.4",
5
5
  "private": false,
6
6
  "access": "public",
7
7
  "publishConfig": {