vlite3 0.8.4 → 0.8.6

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,5 +1,5 @@
1
- import o from "./ColorIro.vue2.js";
2
- /* empty css */
1
+ import o from "./ColorIro.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -6,8 +6,8 @@ import O from "../Input.vue.js";
6
6
  import "../../core/config.js";
7
7
  /* empty css */
8
8
  import y from "../Button.vue.js";
9
- import E from "./ColorIro.vue2.js";
10
- /* empty css */
9
+ import E from "./ColorIro.vue.js";
10
+ /* empty css */
11
11
  import { useEyeDropper as P } from "@vueuse/core";
12
12
  const I = {
13
13
  key: 0,
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
4
4
  import { $t as E } from "../../utils/i18n.js";
5
5
  import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
6
6
  import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
7
- import ee from "./CommandPaletteItem.vue.js";
7
+ import ee from "./CommandPaletteItem.vue2.js";
8
8
  const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/60 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
9
9
  key: 0,
10
10
  class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
@@ -1,5 +1,5 @@
1
1
  import t from "./CommandPaletteItem.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-66b1ae06"]]);
5
5
  export {
@@ -9,10 +9,7 @@ interface Props {
9
9
  }
10
10
  declare function __VLS_template(): {
11
11
  attrs: Partial<{}>;
12
- slots: {
13
- action?(_: {}): any;
14
- default?(_: {}): any;
15
- };
12
+ slots: any;
16
13
  refs: {};
17
14
  rootEl: HTMLDivElement;
18
15
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as f, computed as n, defineAsyncComponent as t, openBlock as s, createElementBlock as y, createBlock as h, resolveDynamicComponent as C, createSlots as I, withCtx as p, renderSlot as c } from "vue";
2
- import { $t as r } from "../../utils/i18n.js";
3
- import { useVLiteConfig as g } from "../../core/config.js";
4
- const k = { class: "flex items-center justify-center min-h-[400px] w-full py-16 px-6" }, B = /* @__PURE__ */ f({
1
+ import { defineComponent as y, computed as r, markRaw as t, defineAsyncComponent as i, openBlock as c, createElementBlock as h, createBlock as C, resolveDynamicComponent as I, createSlots as _, renderList as g, withCtx as k, renderSlot as w, normalizeProps as x, guardReactiveProps as B } from "vue";
2
+ import { $t as o } from "../../utils/i18n.js";
3
+ import { useVLiteConfig as S } from "../../core/config.js";
4
+ const V = { class: "flex items-center justify-center min-h-[300px] w-full py-2" }, R = /* @__PURE__ */ y({
5
5
  __name: "Empty",
6
6
  props: {
7
7
  title: {},
@@ -11,54 +11,48 @@ const k = { class: "flex items-center justify-center min-h-[400px] w-full py-16
11
11
  icon: { default: "lucide:inbox" },
12
12
  variant: {}
13
13
  },
14
- setup(o) {
15
- const i = o, l = g(), m = n(() => i.variant || l?.components?.empty?.variant || "variant1"), v = n(() => {
16
- if (i.titleI18n) return r(i.titleI18n);
17
- if (i.title) return i.title;
18
- const e = r("vlite.empty.title");
19
- return e !== "vlite.empty.title" ? e : "No data found";
20
- }), d = n(() => {
21
- if (i.descriptionI18n) return r(i.descriptionI18n);
22
- if (i.description) return i.description;
23
- const e = r("vlite.empty.description");
24
- return e !== "vlite.empty.description" ? e : "There is nothing to display here right now.";
25
- }), a = {
26
- variant1: t(() => import("./variants/Variant1.vue.js")),
27
- variant2: t(() => import("./variants/Variant2.vue.js")),
28
- variant3: t(() => import("./variants/Variant3.vue.js")),
29
- variant4: t(() => import("./variants/Variant4.vue.js")),
30
- variant5: t(() => import("./variants/Variant5.vue.js")),
31
- variant6: t(() => import("./variants/Variant6.vue.js")),
32
- variant7: t(() => import("./variants/Variant7.vue.js")),
33
- variant8: t(() => import("./variants/Variant8.vue.js")),
34
- variant9: t(() => import("./variants/Variant9.vue.js")),
35
- variant10: t(() => import("./variants/Variant10.vue.js")),
36
- variant11: t(() => import("./variants/Variant11.vue.js"))
37
- }, u = n(
38
- () => a[m.value] || a.variant1
14
+ setup(a) {
15
+ const e = a, l = S(), m = r(() => e.variant || l?.components?.empty?.variant || "variant1"), v = r(() => {
16
+ if (e.titleI18n) return o(e.titleI18n);
17
+ if (e.title) return e.title;
18
+ const n = o("vlite.empty.title");
19
+ return n !== "vlite.empty.title" ? n : "No data found";
20
+ }), d = r(() => {
21
+ if (e.descriptionI18n) return o(e.descriptionI18n);
22
+ if (e.description) return e.description;
23
+ const n = o("vlite.empty.description");
24
+ return n !== "vlite.empty.description" ? n : "There is nothing to display here right now.";
25
+ }), s = {
26
+ variant1: t(i(() => import("./variants/Variant1.vue.js"))),
27
+ variant2: t(i(() => import("./variants/Variant2.vue.js"))),
28
+ variant3: t(i(() => import("./variants/Variant3.vue.js"))),
29
+ variant4: t(i(() => import("./variants/Variant4.vue.js"))),
30
+ variant5: t(i(() => import("./variants/Variant5.vue.js"))),
31
+ variant6: t(i(() => import("./variants/Variant6.vue.js"))),
32
+ variant7: t(i(() => import("./variants/Variant7.vue.js"))),
33
+ variant8: t(i(() => import("./variants/Variant8.vue.js"))),
34
+ variant9: t(i(() => import("./variants/Variant9.vue.js"))),
35
+ variant10: t(i(() => import("./variants/Variant10.vue.js"))),
36
+ variant11: t(i(() => import("./variants/Variant11.vue.js")))
37
+ }, u = r(
38
+ () => s[m.value] || s.variant1
39
39
  );
40
- return (e, x) => (s(), y("div", k, [
41
- (s(), h(C(u.value), {
40
+ return (n, $) => (c(), h("div", V, [
41
+ (c(), C(I(u.value), {
42
42
  title: v.value,
43
43
  description: d.value,
44
- icon: o.icon
45
- }, I({
46
- default: p(() => [
47
- c(e.$slots, "default")
48
- ]),
49
- _: 2
50
- }, [
51
- e.$slots.action ? {
52
- name: "action",
53
- fn: p(() => [
54
- c(e.$slots, "action")
55
- ]),
56
- key: "0"
57
- } : void 0
44
+ icon: a.icon
45
+ }, _({ _: 2 }, [
46
+ g(n.$slots, (D, p) => ({
47
+ name: p,
48
+ fn: k((f) => [
49
+ w(n.$slots, p, x(B(f || {})))
50
+ ])
51
+ }))
58
52
  ]), 1032, ["title", "description", "icon"]))
59
53
  ]));
60
54
  }
61
55
  });
62
56
  export {
63
- B as default
57
+ R as default
64
58
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as i, openBlock as o, createElementBlock as n, createVNode as c, createElementVNode as s, toDisplayString as r, renderSlot as l, createCommentVNode as m } from "vue";
2
2
  import a from "../../Icon.vue.js";
3
- const d = { class: "flex w-full flex-col items-center justify-center p-10 md:p-16 text-center" }, u = { class: "text-2xl font-medium text-foreground" }, f = ["innerHTML"], x = {
3
+ const d = { class: "flex w-full flex-col items-center justify-center p-10 min-h-[450px] text-center rounded-2xl bg-card" }, u = { class: "text-fs-5 font-semibold text-foreground" }, f = ["innerHTML"], x = {
4
4
  key: 0,
5
- class: "mt-5"
5
+ class: "mt-6"
6
6
  }, k = /* @__PURE__ */ i({
7
7
  __name: "Variant1",
8
8
  props: {
@@ -14,7 +14,7 @@ const d = { class: "flex w-full flex-col items-center justify-center p-10 md:p-1
14
14
  return (e, p) => (o(), n("div", d, [
15
15
  c(a, {
16
16
  icon: t.icon,
17
- class: "mb-3 h-10 w-10 text-muted",
17
+ class: "mb-3 h-12 w-12 text-muted",
18
18
  "stroke-width": "1.2"
19
19
  }, null, 8, ["icon"]),
20
20
  s("h3", u, r(t.title), 1),
@@ -1,33 +1,33 @@
1
- import { defineComponent as s, openBlock as n, createElementBlock as o, createVNode as i, createElementVNode as r, toDisplayString as c, renderSlot as l, createCommentVNode as m } from "vue";
2
- import d from "../../Icon.vue.js";
3
- const a = { class: "flex w-full flex-col items-center justify-center p-10 min-h-[450px] text-center rounded-2xl border border-transparent bg-muted/20" }, u = { class: "text-lg font-medium text-foreground" }, f = ["innerHTML"], x = {
1
+ import { defineComponent as i, openBlock as o, createElementBlock as n, createVNode as c, createElementVNode as s, toDisplayString as r, renderSlot as l, createCommentVNode as m } from "vue";
2
+ import a from "../../Icon.vue.js";
3
+ const d = { class: "flex w-full flex-col items-center justify-center p-10 md:p-16 text-center" }, u = { class: "text-2xl font-medium text-foreground" }, f = ["innerHTML"], x = {
4
4
  key: 0,
5
- class: "mt-8"
6
- }, b = /* @__PURE__ */ s({
5
+ class: "mt-5"
6
+ }, k = /* @__PURE__ */ i({
7
7
  __name: "Variant2",
8
8
  props: {
9
9
  title: {},
10
10
  description: {},
11
11
  icon: {}
12
12
  },
13
- setup(e) {
14
- return (t, p) => (n(), o("div", a, [
15
- i(d, {
16
- icon: e.icon,
17
- class: "mb-5 h-12 w-12 text-muted",
13
+ setup(t) {
14
+ return (e, p) => (o(), n("div", d, [
15
+ c(a, {
16
+ icon: t.icon,
17
+ class: "mb-3 h-10 w-10 text-muted",
18
18
  "stroke-width": "1.2"
19
19
  }, null, 8, ["icon"]),
20
- r("h3", u, c(e.title), 1),
21
- r("p", {
22
- class: "mt-2 text-sm text-muted max-w-md mx-auto",
23
- innerHTML: e.description
20
+ s("h3", u, r(t.title), 1),
21
+ s("p", {
22
+ class: "mt-1.5 text-sm text-muted max-w-md mx-auto",
23
+ innerHTML: t.description
24
24
  }, null, 8, f),
25
- t.$slots.action ? (n(), o("div", x, [
26
- l(t.$slots, "action")
25
+ e.$slots.action ? (o(), n("div", x, [
26
+ l(e.$slots, "action")
27
27
  ])) : m("", !0)
28
28
  ]));
29
29
  }
30
30
  });
31
31
  export {
32
- b as default
32
+ k as default
33
33
  };
@@ -1,21 +1,21 @@
1
- import { defineComponent as B, computed as o, markRaw as N, openBlock as r, createBlock as s, mergeProps as f, toHandlers as R, createSlots as O, unref as L, withCtx as n, createVNode as $, createTextVNode as m, toDisplayString as p, createCommentVNode as w, resolveDynamicComponent as T } from "vue";
2
- import { isComponent as y, isAddonObject as v } from "./utils/form.utils.js";
3
- import j from "../NumberInput.vue.js";
1
+ import { defineComponent as I, computed as o, markRaw as O, openBlock as s, createBlock as u, mergeProps as f, toHandlers as C, createSlots as T, unref as F, withCtx as n, createVNode as L, createTextVNode as m, toDisplayString as p, createCommentVNode as $, resolveDynamicComponent as j } from "vue";
2
+ import { isComponent as x, isAddonObject as v } from "./utils/form.utils.js";
3
+ import D from "../NumberInput.vue.js";
4
4
  import h from "../Button.vue.js";
5
- import { $t as D } from "../../utils/i18n.js";
6
- import x from "../Input.vue.js";
5
+ import { $t as E } from "../../utils/i18n.js";
6
+ import g from "../Input.vue.js";
7
7
  /* empty css */
8
- import E from "../Switch.vue.js";
9
- import H from "../CheckBox.vue.js";
10
- import q from "../FilePicker/FilePicker.vue.js";
11
- import G from "../AvatarUploader/AvatarUploader.vue.js";
12
- import b from "../Dropdown/Dropdown.vue.js";
13
- import J from "../MultiSelect/MultiSelect.vue.js";
14
- import K from "../DatePicker.vue.js";
15
- import M from "../ColorPicker/ColorPicker.vue.js";
16
- import Q from "../IconPicker.vue.js";
17
- import W from "./CustomFields.vue.js";
18
- const me = /* @__PURE__ */ B({
8
+ import H from "../Switch.vue.js";
9
+ import q from "../CheckBox.vue.js";
10
+ import G from "../FilePicker/FilePicker.vue.js";
11
+ import J from "../AvatarUploader/AvatarUploader.vue.js";
12
+ import z from "../Dropdown/Dropdown.vue.js";
13
+ import K from "../MultiSelect/MultiSelect.vue.js";
14
+ import M from "../DatePicker.vue.js";
15
+ import Q from "../ColorPicker/ColorPicker.vue.js";
16
+ import W from "../IconPicker.vue.js";
17
+ import X from "./CustomFields.vue.js";
18
+ const pe = /* @__PURE__ */ I({
19
19
  __name: "FormField",
20
20
  props: {
21
21
  field: {},
@@ -33,15 +33,17 @@ const me = /* @__PURE__ */ B({
33
33
  loading: { type: Boolean, default: !1 }
34
34
  },
35
35
  emits: ["change", "addonChange", "addonAction"],
36
- setup(l, { emit: A }) {
37
- const e = l, c = A, d = (a, t) => {
38
- c("change", { value: a, data: t });
39
- }, C = (a) => {
36
+ setup(t, { emit: A }) {
37
+ const e = t, c = A, d = (a, l) => {
38
+ c("change", { value: a, data: l });
39
+ }, V = (a) => {
40
40
  c("change", { value: a });
41
- }, F = o(() => {
41
+ }, y = o(
42
+ () => e.field.type === "number" && e.field.isSensitiveField === !0
43
+ ), N = o(() => {
42
44
  const a = e.field.type;
43
- if (y(a))
44
- return N(a);
45
+ if (x(a))
46
+ return O(a);
45
47
  switch (a) {
46
48
  case "text":
47
49
  case "email":
@@ -50,47 +52,47 @@ const me = /* @__PURE__ */ B({
50
52
  case "url":
51
53
  case "search":
52
54
  case "textarea":
53
- return x;
55
+ return g;
54
56
  case "number":
55
- return j;
57
+ return y.value ? g : D;
56
58
  case "switch":
57
- return E;
58
- case "check":
59
59
  return H;
60
+ case "check":
61
+ return q;
60
62
  case "select":
61
- return b;
63
+ return z;
62
64
  case "multiSelect":
63
- return J;
65
+ return K;
64
66
  case "date":
65
67
  case "time":
66
- return K;
68
+ return M;
67
69
  case "file":
68
70
  case "fileUploader":
69
- return q;
70
- case "avatarUpload":
71
71
  return G;
72
+ case "avatarUpload":
73
+ return J;
72
74
  case "color":
73
- return M;
74
- case "iconPicker":
75
75
  return Q;
76
- case "customFields":
76
+ case "iconPicker":
77
77
  return W;
78
+ case "customFields":
79
+ return X;
78
80
  default:
79
- return x;
81
+ return g;
80
82
  }
81
- }), z = o(() => {
82
- const a = e.field.type, t = {
83
+ }), S = o(() => {
84
+ const a = e.field.type, l = {
83
85
  disabled: e.disabled || e.field.disabled === !0,
84
86
  ...e?.field || {},
85
87
  ...e.field.props || {},
86
88
  label: "",
87
89
  labelI18n: ""
88
- }, i = e.field.placeholderI18n ? D(e.field.placeholderI18n) : e.field.placeholder, g = e.variant === "floating" && e.label && !e.floatingActive, u = g ? "" : i;
90
+ }, i = e.field.placeholderI18n ? E(e.field.placeholderI18n) : e.field.placeholder, b = e.variant === "floating" && e.label && !e.floatingActive, r = b ? "" : i;
89
91
  return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || !a ? {
90
- ...t,
92
+ ...l,
91
93
  modelValue: e.value ?? "",
92
94
  type: a || "text",
93
- placeholder: u,
95
+ placeholder: r,
94
96
  label: e.label,
95
97
  icon: e.field.icon,
96
98
  iconRight: e.field.iconRight,
@@ -102,12 +104,26 @@ const me = /* @__PURE__ */ B({
102
104
  rounded: e.rounded,
103
105
  error: e.error,
104
106
  min: e.field.min,
105
- // kept for validation attributes if needed
106
107
  max: e.field.max,
107
108
  rows: a === "textarea" ? e.field.props?.rows || 3 : void 0,
108
109
  class: `${e.field.className}`
110
+ } : a === "number" && y.value ? {
111
+ ...l,
112
+ // Convert numeric value to string so Input.vue (string-based) displays it correctly
113
+ modelValue: e.value !== void 0 && e.value !== null ? String(e.value) : "",
114
+ // 'password' activates the eye-toggle inside Input.vue
115
+ type: "password",
116
+ placeholder: r,
117
+ label: e.label,
118
+ variant: e.variant,
119
+ size: e.size,
120
+ rounded: e.rounded,
121
+ error: e.error,
122
+ // Disable the browser's built-in clear button so only the eye icon shows
123
+ showClearButton: !1,
124
+ class: e.field.className ?? ""
109
125
  } : a === "number" ? {
110
- ...t,
126
+ ...l,
111
127
  modelValue: e.value ?? void 0,
112
128
  min: e.field.min,
113
129
  max: e.field.max,
@@ -116,33 +132,33 @@ const me = /* @__PURE__ */ B({
116
132
  mode: e.field.props?.mode ?? (e.variant === "transparent" ? "ghost" : "outline"),
117
133
  size: e.size,
118
134
  rounded: e.rounded,
119
- placeholder: u,
135
+ placeholder: r,
120
136
  class: e.field.className
121
137
  } : a === "switch" ? {
122
- ...t,
138
+ ...l,
123
139
  modelValue: !!e.value,
124
140
  size: "sm",
125
141
  label: ""
126
142
  // Label handled externally
127
143
  } : a === "check" ? {
128
- ...t,
144
+ ...l,
129
145
  modelValue: !!e.value,
130
146
  label: ""
131
147
  // Label handled externally
132
148
  } : a === "select" ? {
133
- ...t,
149
+ ...l,
134
150
  modelValue: e.value,
135
151
  options: e.field.options || [],
136
- placeholder: u,
152
+ placeholder: r,
137
153
  selectable: !0,
138
154
  closeOnSelect: !0,
139
155
  triggerProps: {
140
156
  variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
141
157
  size: e.size,
142
- ...g ? { text: "​" } : {}
158
+ ...b ? { text: "​" } : {}
143
159
  }
144
160
  } : a === "multiSelect" ? {
145
- ...t,
161
+ ...l,
146
162
  modelValue: Array.isArray(e.value) ? e.value : [],
147
163
  options: e.field.options || [],
148
164
  placeholder: i,
@@ -150,44 +166,44 @@ const me = /* @__PURE__ */ B({
150
166
  size: e.size,
151
167
  rounded: e.rounded
152
168
  } : a === "date" || a === "time" ? {
153
- ...t,
169
+ ...l,
154
170
  modelValue: e.value,
155
171
  mode: a === "time" ? "time" : "date",
156
- placeholder: u,
172
+ placeholder: r,
157
173
  btnProps: {
158
174
  variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
159
175
  size: e.size,
160
176
  class: "px-3!",
161
- ...g ? { text: "​" } : {}
177
+ ...b ? { text: "​" } : {}
162
178
  }
163
179
  } : a === "fileUploader" || a === "file" ? {
164
- ...t,
180
+ ...l,
165
181
  modelValue: e.value,
166
182
  multiSelect: e.field.props?.multiple || !1,
167
183
  maxFiles: e.field.maxFiles || e.field.props?.maxFiles,
168
184
  fileTypes: e.field.props?.accept ? e.field.props.accept.split(",") : [],
169
185
  returnFormat: "base64",
170
186
  variant: a === "file" ? "input" : "dropzone",
171
- placeholder: u,
187
+ placeholder: r,
172
188
  size: e.size,
173
189
  rounded: e.rounded,
174
190
  maxSize: e.field.maxFileSize ? e.field.maxFileSize * 1024 * 1024 : void 0,
175
191
  loading: e.loading
176
192
  } : a === "avatarUpload" ? {
177
193
  size: "2xl",
178
- ...t,
194
+ ...l,
179
195
  modelValue: e.value,
180
196
  editable: !e.readonly,
181
197
  maxSize: e.field.maxFileSize ? e.field.maxFileSize * 1024 * 1024 : void 0,
182
198
  loading: e.loading
183
199
  } : a === "color" ? {
184
- ...t,
200
+ ...l,
185
201
  modelValue: e.value || "#000000"
186
202
  } : a === "iconPicker" ? {
187
- ...t,
203
+ ...l,
188
204
  value: e.value || "lucide:smile"
189
205
  } : a === "customFields" ? {
190
- ...t,
206
+ ...l,
191
207
  label: e?.field?.label,
192
208
  labelI18n: e?.field?.labelI18n,
193
209
  modelValue: Array.isArray(e.value) ? e.value : [],
@@ -198,72 +214,79 @@ const me = /* @__PURE__ */ B({
198
214
  size: e.size,
199
215
  rounded: e.rounded,
200
216
  isUpdate: e.isUpdate
201
- } : y(a) ? {
202
- ...t,
217
+ } : x(a) ? {
218
+ ...l,
203
219
  value: e.value,
204
220
  values: e.values
205
- } : t;
221
+ } : l;
206
222
  }), k = o(() => {
207
223
  const a = e.field.type;
208
- return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || a === "switch" || a === "check" || a === "number" || !a ? {
209
- "update:modelValue": C
224
+ return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || a === "switch" || a === "check" || !a ? {
225
+ "update:modelValue": V
226
+ } : a === "number" && y.value ? {
227
+ "update:modelValue": (l) => {
228
+ const i = l === "" ? void 0 : Number(l);
229
+ c("change", { value: isNaN(i) ? void 0 : i });
230
+ }
231
+ } : a === "number" ? {
232
+ "update:modelValue": V
210
233
  } : a === "select" ? {
211
- onSelect: (t) => {
212
- d(t.value, t.data);
234
+ onSelect: (l) => {
235
+ d(l.value, l.data);
213
236
  }
214
237
  } : a === "multiSelect" ? {
215
- change: (t) => d(t)
238
+ change: (l) => d(l)
216
239
  } : a === "date" || a === "time" ? {
217
- change: (t) => d(t)
240
+ change: (l) => d(l)
218
241
  } : a === "fileUploader" || a === "file" ? {
219
- change: (t) => {
220
- d(t);
242
+ change: (l) => {
243
+ d(l);
221
244
  },
222
- "update:modelValue": (t) => {
223
- d(t);
245
+ "update:modelValue": (l) => {
246
+ d(l);
224
247
  }
225
248
  } : a === "avatarUpload" ? {
226
- change: (t) => {
227
- d(t);
249
+ change: (l) => {
250
+ d(l);
228
251
  },
229
- "update:modelValue": (t) => {
230
- d(t);
252
+ "update:modelValue": (l) => {
253
+ d(l);
231
254
  }
232
255
  } : a === "color" ? {
233
- change: (t) => d(t)
256
+ change: (l) => d(l)
234
257
  } : a === "iconPicker" ? {
235
- onSelect: (t) => d(t)
258
+ onSelect: (l) => d(l)
236
259
  } : a === "customFields" ? {
237
- change: (t) => d(t)
238
- } : y(a) ? {
239
- onChange: (t) => {
240
- d(t.value, t.data);
260
+ change: (l) => d(l)
261
+ } : x(a) ? {
262
+ onChange: (l) => {
263
+ d(l.value, l.data);
241
264
  }
242
265
  } : {};
243
266
  }), P = o(() => v(e.field.addonLeft) || v(e.field.addonRight)), U = o(() => {
244
267
  const a = e.field.type;
245
268
  return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || !a;
246
- }), I = o(() => P.value && U.value), V = (a, t) => {
247
- c("addonChange", a.name, { value: t.value });
248
- }, S = (a) => {
269
+ }), B = o(() => P.value && U.value), R = (a, l) => {
270
+ c("addonChange", a.name, { value: l.value });
271
+ }, w = (a) => {
249
272
  a.action && c("addonAction", a.action);
250
273
  };
251
- return (a, t) => I.value ? (r(), s(x, f({ key: 0 }, {
252
- ...z.value,
253
- ...l.field?.props || {}
254
- }, R(k.value)), O({ _: 2 }, [
255
- L(v)(l.field.addonLeft) ? {
274
+ return (a, l) => B.value ? (s(), u(g, f({ key: 0 }, {
275
+ ...S.value,
276
+ ...t.field?.props || {}
277
+ }, C(k.value)), T({ _: 2 }, [
278
+ F(v)(t.field.addonLeft) ? {
256
279
  name: "addon-left",
257
280
  fn: n(() => [
258
- l.field.addonLeft.type === "select" ? (r(), s(b, f({
281
+ t.field.addonLeft.type === "select" ? (s(), u(z, f({
259
282
  key: 0,
260
- modelValue: l.field.addonLeft.name ? l.values[l.field.addonLeft.name] : void 0,
261
- options: l.field.addonLeft.options || []
262
- }, l.field.addonLeft.props || {}, {
263
- onOnSelect: t[0] || (t[0] = (i) => V(l.field.addonLeft, i))
283
+ modelValue: t.field.addonLeft.name ? t.values[t.field.addonLeft.name] : void 0,
284
+ options: t.field.addonLeft.options || []
285
+ }, t.field.addonLeft.props || {}, {
286
+ onOnSelect: l[0] || (l[0] = (i) => R(t.field.addonLeft, i))
264
287
  }), {
265
288
  trigger: n(({ selectedLabel: i }) => [
266
- $(h, { variant: "outline" }, {
289
+ L(h, { variant: "outline" }, {
267
290
  default: n(() => [
268
291
  m(p(i), 1)
269
292
  ]),
@@ -271,32 +294,32 @@ const me = /* @__PURE__ */ B({
271
294
  }, 1024)
272
295
  ]),
273
296
  _: 1
274
- }, 16, ["modelValue", "options"])) : l.field.addonLeft.type === "button" ? (r(), s(h, f({
297
+ }, 16, ["modelValue", "options"])) : t.field.addonLeft.type === "button" ? (s(), u(h, f({
275
298
  key: 1,
276
299
  variant: "outline"
277
- }, l.field.addonLeft.props || {}, {
278
- onClick: t[1] || (t[1] = (i) => S(l.field.addonLeft))
300
+ }, t.field.addonLeft.props || {}, {
301
+ onClick: l[1] || (l[1] = (i) => w(t.field.addonLeft))
279
302
  }), {
280
303
  default: n(() => [
281
- m(p(l.field.addonLeft.text), 1)
304
+ m(p(t.field.addonLeft.text), 1)
282
305
  ]),
283
306
  _: 1
284
- }, 16)) : w("", !0)
307
+ }, 16)) : $("", !0)
285
308
  ]),
286
309
  key: "0"
287
310
  } : void 0,
288
- L(v)(l.field.addonRight) ? {
311
+ F(v)(t.field.addonRight) ? {
289
312
  name: "addon-right",
290
313
  fn: n(() => [
291
- l.field.addonRight.type === "select" ? (r(), s(b, f({
314
+ t.field.addonRight.type === "select" ? (s(), u(z, f({
292
315
  key: 0,
293
- modelValue: l.field.addonRight.name ? l.values[l.field.addonRight.name] : void 0,
294
- options: l.field.addonRight.options || []
295
- }, l.field.addonRight.props || {}, {
296
- onOnSelect: t[2] || (t[2] = (i) => V(l.field.addonRight, i))
316
+ modelValue: t.field.addonRight.name ? t.values[t.field.addonRight.name] : void 0,
317
+ options: t.field.addonRight.options || []
318
+ }, t.field.addonRight.props || {}, {
319
+ onOnSelect: l[2] || (l[2] = (i) => R(t.field.addonRight, i))
297
320
  }), {
298
321
  trigger: n(({ selectedLabel: i }) => [
299
- $(h, { variant: "outline" }, {
322
+ L(h, { variant: "outline" }, {
300
323
  default: n(() => [
301
324
  m(p(i), 1)
302
325
  ]),
@@ -304,29 +327,29 @@ const me = /* @__PURE__ */ B({
304
327
  }, 1024)
305
328
  ]),
306
329
  _: 1
307
- }, 16, ["modelValue", "options"])) : l.field.addonRight.type === "button" ? (r(), s(h, f({
330
+ }, 16, ["modelValue", "options"])) : t.field.addonRight.type === "button" ? (s(), u(h, f({
308
331
  key: 1,
309
332
  variant: "outline"
310
- }, l.field.addonRight.props || {}, {
311
- onClick: t[3] || (t[3] = (i) => S(l.field.addonRight))
333
+ }, t.field.addonRight.props || {}, {
334
+ onClick: l[3] || (l[3] = (i) => w(t.field.addonRight))
312
335
  }), {
313
336
  default: n(() => [
314
- m(p(l.field.addonRight.text), 1)
337
+ m(p(t.field.addonRight.text), 1)
315
338
  ]),
316
339
  _: 1
317
- }, 16)) : w("", !0)
340
+ }, 16)) : $("", !0)
318
341
  ]),
319
342
  key: "1"
320
343
  } : void 0
321
- ]), 1040)) : (r(), s(T(F.value), f({
344
+ ]), 1040)) : (s(), u(j(N.value), f({
322
345
  key: 1,
323
- class: ["switch", "check"].includes(l.field?.type) ? "" : "w-full"
346
+ class: ["switch", "check"].includes(t.field?.type) ? "" : "w-full"
324
347
  }, {
325
- ...z.value,
326
- ...l.field?.props || {}
327
- }, R(k.value)), null, 16, ["class"]));
348
+ ...S.value,
349
+ ...t.field?.props || {}
350
+ }, C(k.value)), null, 16, ["class"]));
328
351
  }
329
352
  });
330
353
  export {
331
- me as default
354
+ pe as default
332
355
  };
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
3
3
  import v from "./Modal.vue.js";
4
4
  import N from "./CommandPalette/CommandPaletteContent.vue.js";
5
5
  import { $t as R } from "../utils/i18n.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  const U = { class: "block truncate -text-fs-1.5" }, V = { class: "ml-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ml-1" }, q = /* @__PURE__ */ x({
8
8
  __name: "NavbarCommandPalette",
9
9
  props: {
@@ -12,7 +12,7 @@ import "v-datepicker-lite";
12
12
  import "v-datepicker-lite/style.css";
13
13
  import "@jaames/iro";
14
14
  import "@vueuse/core";
15
- /* empty css */
15
+ /* empty css */
16
16
  import "iconify-icon-picker";
17
17
  import "iconify-icon-picker/style.css";
18
18
  /* empty css */
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A Vue 3 UI component library built with Tailwind CSS.",
5
5
  "license": "MIT",
6
- "version": "0.8.4",
6
+ "version": "0.8.6",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",
package/style.css CHANGED
@@ -395,15 +395,15 @@
395
395
  --color-mixture-2: #ffffff !important;
396
396
 
397
397
  --color-gray-50: color-mix(in oklab,
398
- var(--color-mixture-1, #ffffff) 96%,
398
+ var(--color-mixture-1, #ffffff) 97.5%,
399
399
  var(--color-mixture-2, #000000));
400
400
 
401
401
  --color-gray-100: color-mix(in oklab,
402
- var(--color-mixture-1, #ffffff) 93%,
402
+ var(--color-mixture-1, #ffffff) 96%,
403
403
  var(--color-mixture-2, #000000));
404
404
 
405
405
  --color-gray-150: color-mix(in oklab,
406
- var(--color-mixture-1, #ffffff) 90%,
406
+ var(--color-mixture-1, #ffffff) 92%,
407
407
  var(--color-mixture-2, #000000));
408
408
 
409
409
  --color-gray-200: color-mix(in oklab,
@@ -424,7 +424,7 @@
424
424
 
425
425
  --color-secondary: color-mix(in oklab, var(--color-mixture-1) 89%, var(--color-mixture-2));
426
426
  --color-muted: color-mix(in oklab,
427
- var(--color-mixture-1, #ffffff) 95%,
427
+ var(--color-mixture-1, #ffffff) 95.5%,
428
428
  var(--color-mixture-2, #000000));
429
429
  --color-destructive: #7f1d1d;
430
430
  --color-destructive-foreground: #fafafa;