@defaultusr/dai-ui 1.0.7 → 1.0.8

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.
Files changed (30) hide show
  1. package/dist/assets/main.css +1 -1
  2. package/dist/main.js +397 -382
  3. package/dist/types/components/btn.vue.d.ts +1 -1
  4. package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
  5. package/dist/types/components/combobox/comboboxInput.vue.d.ts +1 -1
  6. package/dist/types/components/combobox/comboboxOption.vue.d.ts +1 -1
  7. package/dist/types/components/combobox/comboboxOptions.vue.d.ts +1 -1
  8. package/dist/types/components/form/checkbox.vue.d.ts +4 -2
  9. package/dist/types/components/form/formControl/btn.vue.d.ts +1 -1
  10. package/dist/types/components/form/formControl/formControl.vue.d.ts +1 -1
  11. package/dist/types/components/form/formControl/hint.vue.d.ts +1 -1
  12. package/dist/types/components/form/formControl/inputGroup.vue.d.ts +1 -1
  13. package/dist/types/components/form/formControl/label.vue.d.ts +1 -1
  14. package/dist/types/components/form/input.vue.d.ts +1 -1
  15. package/dist/types/components/form/radio.vue.d.ts +1 -1
  16. package/dist/types/components/form/select.vue.d.ts +1 -1
  17. package/dist/types/components/form/textarea.vue.d.ts +1 -1
  18. package/dist/types/components/formControl.vue.d.ts +1 -1
  19. package/dist/types/components/menu/menuItem.vue.d.ts +1 -1
  20. package/dist/types/components/menu/menuItems.vue.d.ts +1 -1
  21. package/dist/types/components/modal.vue.d.ts +1 -1
  22. package/dist/types/components/notifications/notification.vue.d.ts +1 -1
  23. package/dist/types/components/notifications/notificationQueue.vue.d.ts +1 -1
  24. package/dist/types/components/offcanvas.vue.d.ts +1 -1
  25. package/dist/types/components/popoverDialog.vue.d.ts +1 -1
  26. package/dist/types/components/progressbar.vue.d.ts +1 -1
  27. package/dist/types/components/switch.vue.d.ts +13 -1
  28. package/dist/types/components/tabs/tab.vue.d.ts +1 -1
  29. package/dist/types/components/tabs/tabList.vue.d.ts +1 -1
  30. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,16 +1,16 @@
1
- import { useFormControl as A, PopoverDialog as ee, Combobox as oe, ComboboxInput as te, ComboboxOptions as ae, ComboboxOption as le, MenuItems as ne, MenuItem as ie, Tab as se, TabList as re } from "vue-composable-ui";
2
- import { Menu as Uo, Popover as Xo, TabContainer as Zo, TabPanel as Do } from "vue-composable-ui";
3
- import { reactive as de, watch as z, onUnmounted as F, defineComponent as p, createElementBlock as r, openBlock as n, renderSlot as b, createTextVNode as S, toDisplayString as k, normalizeClass as g, createBlock as h, createCommentVNode as m, createElementVNode as d, useId as q, computed as B, unref as c, createVNode as V, withCtx as v, Transition as T, mergeModels as I, useModel as w, useTemplateRef as L, ref as U, onMounted as j, mergeProps as C, withDirectives as P, vModelText as ue, Fragment as Y, renderList as R, vModelSelect as ce, vModelCheckbox as me, vModelRadio as pe, resolveDynamicComponent as fe, nextTick as ve, normalizeStyle as N, Teleport as G, TransitionGroup as he, withModifiers as be } from "vue";
4
- import './assets/main.css';function _e(i, ...e) {
1
+ import { useFormControl as S, PopoverDialog as ee, Combobox as oe, ComboboxInput as te, ComboboxOptions as ae, ComboboxOption as le, MenuItems as ne, MenuItem as ie, Tab as se, TabList as re } from "vue-composable-ui";
2
+ import { Menu as Oo, Popover as No, TabContainer as Uo, TabPanel as Xo } from "vue-composable-ui";
3
+ import { reactive as de, watch as T, onUnmounted as F, defineComponent as p, createElementBlock as u, openBlock as n, renderSlot as b, createTextVNode as L, toDisplayString as _, normalizeClass as k, createBlock as h, createCommentVNode as m, createElementVNode as r, useId as z, computed as B, unref as c, createVNode as M, withCtx as f, Transition as A, mergeModels as I, useModel as w, useTemplateRef as q, ref as U, onMounted as j, mergeProps as C, withDirectives as P, vModelText as ue, Fragment as Y, renderList as R, vModelSelect as ce, vModelCheckbox as me, vModelRadio as fe, resolveDynamicComponent as pe, nextTick as ve, normalizeStyle as N, Teleport as G, TransitionGroup as he, withModifiers as be } from "vue";
4
+ import './assets/main.css';function ye(s, ...e) {
5
5
  let a = [];
6
6
  const t = de(e);
7
7
  function o() {
8
- t.length && (i.classList.add(...t), a = [...t]);
8
+ t.length && (s.classList.add(...t), a = [...t]);
9
9
  }
10
10
  function l() {
11
- i.classList.remove(...a);
11
+ s.classList.remove(...a);
12
12
  }
13
- return z(
13
+ return T(
14
14
  t,
15
15
  () => {
16
16
  l(), o();
@@ -20,27 +20,27 @@ import './assets/main.css';function _e(i, ...e) {
20
20
  classList: t
21
21
  };
22
22
  }
23
- const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
23
+ const ge = { class: "dai-label" }, O = /* @__PURE__ */ p({
24
24
  __name: "label",
25
25
  props: {
26
26
  text: {}
27
27
  },
28
- setup(i) {
29
- return (e, a) => (n(), r("label", ye, [
28
+ setup(s) {
29
+ return (e, a) => (n(), u("label", ge, [
30
30
  b(e.$slots, "default", {}, () => [
31
- S(k(e.text), 1)
31
+ L(_(e.text), 1)
32
32
  ])
33
33
  ]));
34
34
  }
35
- }), ge = { class: "dai-hint" }, X = /* @__PURE__ */ p({
35
+ }), _e = { class: "dai-hint" }, X = /* @__PURE__ */ p({
36
36
  __name: "hint",
37
37
  props: {
38
38
  text: {}
39
39
  },
40
- setup(i) {
41
- return (e, a) => (n(), r("div", ge, [
40
+ setup(s) {
41
+ return (e, a) => (n(), u("div", _e, [
42
42
  b(e.$slots, "default", {}, () => [
43
- S(k(e.text), 1)
43
+ L(_(e.text), 1)
44
44
  ])
45
45
  ]));
46
46
  }
@@ -57,9 +57,9 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
57
57
  lg: { type: Boolean },
58
58
  sm: { type: Boolean }
59
59
  },
60
- setup(i) {
61
- return (e, a) => (n(), r("div", {
62
- class: g(["dai-form-control__input-group", {
60
+ setup(s) {
61
+ return (e, a) => (n(), u("div", {
62
+ class: k(["dai-form-control__input-group", {
63
63
  "dai-form-control__input-group--labeled": !!e.label,
64
64
  "dai-form-control__input-group--outlined": e.outlined,
65
65
  "dai-form-control__input-group--muted": e.muted,
@@ -76,7 +76,7 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
76
76
  for: e.labelFor,
77
77
  class: "dai-form-control__input-group__label"
78
78
  }, null, 8, ["text", "for"])) : m("", !0),
79
- d("div", ke, [
79
+ r("div", ke, [
80
80
  b(e.$slots, "default")
81
81
  ])
82
82
  ], 2));
@@ -104,10 +104,10 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
104
104
  sm: { type: Boolean },
105
105
  autocomplete: { type: [String, Boolean], default: "off" }
106
106
  },
107
- setup(i) {
108
- const e = i, a = e.id || q(), t = B(() => typeof e.autocomplete == "string" ? e.autocomplete : e.autocomplete ? "on" : "off");
109
- return (o, l) => (n(), r("div", {
110
- class: g(["dai-form-control", {
107
+ setup(s) {
108
+ const e = s, a = e.id || z(), t = B(() => typeof e.autocomplete == "string" ? e.autocomplete : e.autocomplete ? "on" : "off");
109
+ return (o, l) => (n(), u("div", {
110
+ class: k(["dai-form-control", {
111
111
  [o.$attrs.class]: o.$attrs.class,
112
112
  "dai-form-control--label-inline": o.labelInline,
113
113
  "dai-form-control--invalid": o.invalid,
@@ -119,8 +119,8 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
119
119
  for: c(a),
120
120
  text: o.label
121
121
  }, null, 8, ["for", "text"])) : m("", !0),
122
- d("div", $e, [
123
- V(we, {
122
+ r("div", $e, [
123
+ M(we, {
124
124
  label: o.labelInside ? o.label : void 0,
125
125
  "label-for": c(a),
126
126
  outlined: o.outlined,
@@ -131,7 +131,7 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
131
131
  disabled: o.disabled,
132
132
  invalid: o.invalid
133
133
  }, {
134
- default: v(() => [
134
+ default: f(() => [
135
135
  b(o.$slots, "default", {
136
136
  attrs: { id: c(a), disabled: o.disabled, autocomplete: t.value, ...o.$attrs, class: "" }
137
137
  })
@@ -142,20 +142,20 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
142
142
  key: 0,
143
143
  text: o.hint
144
144
  }, null, 8, ["text"])) : m("", !0),
145
- V(T, { name: "dai-form-control__validation-message-transition" }, {
146
- default: v(() => [
147
- o.validationMessage ? (n(), r("div", Be, [
148
- l[0] || (l[0] = d("svg", {
145
+ M(A, { name: "dai-form-control__validation-message-transition" }, {
146
+ default: f(() => [
147
+ o.validationMessage ? (n(), u("div", Be, [
148
+ l[0] || (l[0] = r("svg", {
149
149
  xmlns: "http://www.w3.org/2000/svg",
150
150
  viewBox: "0 0 256 256",
151
151
  class: ""
152
152
  }, [
153
- d("path", {
153
+ r("path", {
154
154
  fill: "currentColor",
155
155
  d: "M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71Zm-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73ZM116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0Zm28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16Z"
156
156
  })
157
157
  ], -1)),
158
- S(" " + k(o.validationMessage), 1)
158
+ L(" " + _(o.validationMessage), 1)
159
159
  ])) : m("", !0)
160
160
  ]),
161
161
  _: 1
@@ -163,8 +163,8 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
163
163
  ])
164
164
  ], 2));
165
165
  }
166
- }), Ve = (i, e) => {
167
- const a = i.__vccOpts || i;
166
+ }), Ve = (s, e) => {
167
+ const a = s.__vccOpts || s;
168
168
  for (const [t, o] of e)
169
169
  a[t] = o;
170
170
  return a;
@@ -174,9 +174,9 @@ const ye = { class: "dai-label" }, O = /* @__PURE__ */ p({
174
174
  tabindex: "-1",
175
175
  "aria-hidden": "true"
176
176
  };
177
- function Ie(i, e) {
178
- return n(), r("button", Ce, [
179
- b(i.$slots, "default")
177
+ function Ie(s, e) {
178
+ return n(), u("button", Ce, [
179
+ b(s.$slots, "default")
180
180
  ]);
181
181
  }
182
182
  const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "title", "value"], Le = {
@@ -191,7 +191,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
191
191
  fill: "none",
192
192
  viewBox: "0 0 24 24",
193
193
  stroke: "currentColor"
194
- }, _o = /* @__PURE__ */ p({
194
+ }, ho = /* @__PURE__ */ p({
195
195
  __name: "input",
196
196
  props: /* @__PURE__ */ I({
197
197
  type: { default: "text" },
@@ -222,60 +222,60 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
222
222
  filesModifiers: {}
223
223
  }),
224
224
  emits: ["update:modelValue", "update:files"],
225
- setup(i) {
226
- const e = i, a = w(i, "modelValue"), t = w(i, "files", {
225
+ setup(s) {
226
+ const e = s, a = w(s, "modelValue"), t = w(s, "files", {
227
227
  set($) {
228
228
  return o.value && (o.value.files = $), $;
229
229
  }
230
- }), o = L("formElement"), { isValid: l, validationMessage: s, validate: f } = A(
230
+ }), o = q("formElement"), { isValid: l, validationMessage: i, validate: v } = S(
231
231
  o,
232
232
  e.validators,
233
233
  e.showValidationError
234
- ), u = U(!1);
235
- z(a, () => {
234
+ ), d = U(!1);
235
+ T(a, () => {
236
236
  t.value = o.value?.files || null;
237
237
  });
238
- let y;
239
- const _ = B(() => e.type === "password" ? u.value ? "text" : "password" : e.type), E = B(() => e.mask ? e.mask : e.type === "tel" ? {
238
+ let g;
239
+ const y = B(() => e.type === "password" ? d.value ? "text" : "password" : e.type), E = B(() => e.mask ? e.mask : e.type === "tel" ? {
240
240
  mask: "{+7} (000) 000-00-00"
241
241
  } : e.mask), K = B(() => e.pattern ? e.pattern : e.type === "tel" ? "^\\+7 \\(9\\d{2}\\) \\d{3}-\\d{2}-\\d{2}" : e.pattern), Q = B(() => e.title ? e.title : e.type === "tel" ? "+7 (999) 888-77-66" : e.title);
242
242
  function W() {
243
- u.value = !u.value;
243
+ d.value = !d.value;
244
244
  }
245
245
  function J() {
246
246
  a.value = "";
247
247
  }
248
248
  function x($) {
249
- if (y)
249
+ if (g)
250
250
  return;
251
- const { value: M } = $.target;
252
- a.value = M;
251
+ const { value: V } = $.target;
252
+ a.value = V;
253
253
  }
254
254
  return j(() => {
255
255
  E.value && import("./chunks/index.W-qQIppj.js").then(($) => {
256
- y = $.default(
256
+ g = $.default(
257
257
  o.value,
258
258
  E.value
259
- ), y.on("accept", () => {
260
- a.value = y.value;
259
+ ), g.on("accept", () => {
260
+ a.value = g.value;
261
261
  });
262
262
  });
263
- }), ($, M) => (n(), h(Z, C(e, {
264
- "validation-message": $.showValidationError ? "" : c(s),
263
+ }), ($, V) => (n(), h(Z, C(e, {
264
+ "validation-message": $.showValidationError ? "" : c(i),
265
265
  invalid: !c(l)
266
266
  }), {
267
- default: v(({ attrs: D }) => [
267
+ default: f(({ attrs: D }) => [
268
268
  b($.$slots, "prepend"),
269
- d("input", C({
269
+ r("input", C({
270
270
  ref_key: "formElement",
271
271
  ref: o
272
272
  }, D, {
273
- type: _.value,
273
+ type: y.value,
274
274
  pattern: K.value,
275
275
  title: Q.value,
276
276
  value: a.value,
277
277
  onInputPassive: x,
278
- onKeyupPassive: M[0] || (M[0] = (vo) => !c(l) && c(f)()),
278
+ onKeyupPassive: V[0] || (V[0] = (fo) => !c(l) && c(v)()),
279
279
  class: "dai-form-control__input"
280
280
  }), null, 16, Ee),
281
281
  b($.$slots, "append"),
@@ -283,28 +283,28 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
283
283
  key: 0,
284
284
  onClick: W
285
285
  }, {
286
- default: v(() => [
287
- u.value ? (n(), r("svg", qe, M[2] || (M[2] = [
288
- d("path", {
286
+ default: f(() => [
287
+ d.value ? (n(), u("svg", qe, [...V[2] || (V[2] = [
288
+ r("path", {
289
289
  "stroke-linecap": "round",
290
290
  "stroke-linejoin": "round",
291
291
  "stroke-width": "2",
292
292
  d: "M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"
293
293
  }, null, -1)
294
- ]))) : (n(), r("svg", Le, M[1] || (M[1] = [
295
- d("path", {
294
+ ])])) : (n(), u("svg", Le, [...V[1] || (V[1] = [
295
+ r("path", {
296
296
  "stroke-linecap": "round",
297
297
  "stroke-linejoin": "round",
298
298
  "stroke-width": "2",
299
299
  d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
300
300
  }, null, -1),
301
- d("path", {
301
+ r("path", {
302
302
  "stroke-linecap": "round",
303
303
  "stroke-linejoin": "round",
304
304
  "stroke-width": "2",
305
305
  d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
306
306
  }, null, -1)
307
- ])))
307
+ ])]))
308
308
  ]),
309
309
  _: 1
310
310
  })) : m("", !0),
@@ -312,29 +312,28 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
312
312
  key: 1,
313
313
  onClick: J
314
314
  }, {
315
- default: v(() => M[3] || (M[3] = [
316
- d("svg", {
315
+ default: f(() => [...V[3] || (V[3] = [
316
+ r("svg", {
317
317
  xmlns: "http://www.w3.org/2000/svg",
318
318
  fill: "none",
319
319
  viewBox: "0 0 24 24",
320
320
  stroke: "currentColor"
321
321
  }, [
322
- d("path", {
322
+ r("path", {
323
323
  "stroke-linecap": "round",
324
324
  "stroke-linejoin": "round",
325
325
  "stroke-width": "2",
326
326
  d: "M6 18L18 6M6 6l12 12"
327
327
  })
328
328
  ], -1)
329
- ])),
330
- _: 1,
331
- __: [3]
329
+ ])]),
330
+ _: 1
332
331
  })) : m("", !0)
333
332
  ]),
334
333
  _: 3
335
334
  }, 16, ["validation-message", "invalid"]));
336
335
  }
337
- }), yo = /* @__PURE__ */ p({
336
+ }), bo = /* @__PURE__ */ p({
338
337
  __name: "textarea",
339
338
  props: /* @__PURE__ */ I({
340
339
  autosize: { type: Boolean },
@@ -345,31 +344,31 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
345
344
  modelModifiers: {}
346
345
  }),
347
346
  emits: ["update:modelValue"],
348
- setup(i) {
349
- const e = i, a = w(i, "modelValue"), t = L("formElement"), { isValid: o, validationMessage: l, validate: s } = A(
347
+ setup(s) {
348
+ const e = s, a = w(s, "modelValue"), t = q("formElement"), { isValid: o, validationMessage: l, validate: i } = S(
350
349
  t,
351
350
  e.validators,
352
351
  e.showValidationError
353
352
  );
354
- function f() {
353
+ function v() {
355
354
  if (!e.autosize) return;
356
- const u = t.value, y = u.offsetHeight - u.clientHeight;
357
- u.style.height = "auto", u.style.height = `${u.scrollHeight + y}px`;
355
+ const d = t.value, g = d.offsetHeight - d.clientHeight;
356
+ d.style.height = "auto", d.style.height = `${d.scrollHeight + g}px`;
358
357
  }
359
- return j(f), (u, y) => (n(), h(Z, {
360
- "validation-message": u.showValidationError ? "" : c(l),
358
+ return j(v), (d, g) => (n(), h(Z, {
359
+ "validation-message": d.showValidationError ? "" : c(l),
361
360
  invalid: !c(o)
362
361
  }, {
363
- default: v(({ attrs: _ }) => [
364
- P(d("textarea", C({
362
+ default: f(({ attrs: y }) => [
363
+ P(r("textarea", C({
365
364
  ref_key: "formElement",
366
365
  ref: t
367
- }, { ..._ }, {
368
- "onUpdate:modelValue": y[0] || (y[0] = (E) => a.value = E),
369
- onKeyupPassive: y[1] || (y[1] = (E) => !c(o) && c(s)()),
370
- onInputPassive: f,
366
+ }, { ...y }, {
367
+ "onUpdate:modelValue": g[0] || (g[0] = (E) => a.value = E),
368
+ onKeyupPassive: g[1] || (g[1] = (E) => !c(o) && c(i)()),
369
+ onInputPassive: v,
371
370
  class: ["form-control__textarea", {
372
- "form-control__textarea--autosize": u.autosize
371
+ "form-control__textarea--autosize": d.autosize
373
372
  }]
374
373
  }), null, 16), [
375
374
  [ue, a.value]
@@ -378,7 +377,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
378
377
  _: 1
379
378
  }, 8, ["validation-message", "invalid"]));
380
379
  }
381
- }), ze = ["value"], go = /* @__PURE__ */ p({
380
+ }), ze = ["value"], yo = /* @__PURE__ */ p({
382
381
  __name: "select",
383
382
  props: /* @__PURE__ */ I({
384
383
  options: {},
@@ -391,39 +390,39 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
391
390
  modelModifiers: {}
392
391
  }),
393
392
  emits: ["update:modelValue"],
394
- setup(i) {
395
- const e = i, a = w(i, "modelValue"), t = L("formElement"), { isValid: o, validationMessage: l, validate: s } = A(
393
+ setup(s) {
394
+ const e = s, a = w(s, "modelValue"), t = q("formElement"), { isValid: o, validationMessage: l, validate: i } = S(
396
395
  t,
397
396
  e.validators,
398
397
  e.showValidationError
399
398
  );
400
- return (f, u) => (n(), h(Z, {
401
- "validation-message": f.showValidationError ? "" : c(l),
399
+ return (v, d) => (n(), h(Z, {
400
+ "validation-message": v.showValidationError ? "" : c(l),
402
401
  invalid: !c(o)
403
402
  }, {
404
- default: v(({ attrs: y }) => [
405
- P(d("select", C({
403
+ default: f(({ attrs: g }) => [
404
+ P(r("select", C({
406
405
  class: "dai-select",
407
406
  ref_key: "formElement",
408
407
  ref: t
409
- }, { ...y }, {
410
- "onUpdate:modelValue": u[0] || (u[0] = (_) => a.value = _)
408
+ }, { ...g }, {
409
+ "onUpdate:modelValue": d[0] || (d[0] = (y) => a.value = y)
411
410
  }), [
412
- b(f.$slots, "default", {}, () => [
413
- (n(!0), r(Y, null, R(f.options, (_) => (n(), r("option", {
414
- value: _[f.optionValue],
415
- key: _[f.optionValue]
416
- }, k(_[f.optionText]), 9, ze))), 128))
411
+ b(v.$slots, "default", {}, () => [
412
+ (n(!0), u(Y, null, R(v.options, (y) => (n(), u("option", {
413
+ value: y[v.optionValue],
414
+ key: y[v.optionValue]
415
+ }, _(y[v.optionText]), 9, ze))), 128))
417
416
  ])
418
417
  ], 16), [
419
418
  [ce, a.value]
420
419
  ]),
421
- u[1] || (u[1] = d("svg", {
420
+ d[1] || (d[1] = r("svg", {
422
421
  class: "dai-select__btn",
423
422
  xmlns: "http://www.w3.org/2000/svg",
424
423
  viewBox: "0 0 16 16"
425
424
  }, [
426
- d("path", {
425
+ r("path", {
427
426
  fill: "currentColor",
428
427
  "fill-rule": "evenodd",
429
428
  d: "M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06",
@@ -431,14 +430,10 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
431
430
  })
432
431
  ], -1))
433
432
  ]),
434
- _: 3,
435
- __: [1]
433
+ _: 3
436
434
  }, 8, ["validation-message", "invalid"]));
437
435
  }
438
- }), Te = ["id"], Ae = {
439
- key: 0,
440
- class: "dai-checkbox-control__label"
441
- }, ko = /* @__PURE__ */ p({
436
+ }), Te = ["id"], go = /* @__PURE__ */ p({
442
437
  inheritAttrs: !1,
443
438
  __name: "checkbox",
444
439
  props: /* @__PURE__ */ I({
@@ -452,52 +447,60 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
452
447
  modelModifiers: {}
453
448
  }),
454
449
  emits: ["update:modelValue"],
455
- setup(i) {
456
- const e = i, a = w(i, "modelValue"), t = q(), o = L("formElement"), { isValid: l } = A(
450
+ setup(s) {
451
+ const e = s, a = w(s, "modelValue"), t = z(), o = q("formElement"), { isValid: l } = S(
457
452
  o,
458
453
  e.validators,
459
454
  e.showValidationError
460
455
  );
461
- return (s, f) => (n(), r("div", {
462
- class: g(["dai-checkbox-control", s.$attrs.class])
456
+ return (i, v) => (n(), u("div", {
457
+ class: k(["dai-checkbox-control", i.$attrs.class])
463
458
  }, [
464
- P(d("input", C({
459
+ P(r("input", C({
465
460
  ref_key: "formElement",
466
461
  ref: o,
467
- "onUpdate:modelValue": f[0] || (f[0] = (u) => a.value = u)
468
- }, { ...s.$attrs, class: "" }, {
462
+ "onUpdate:modelValue": v[0] || (v[0] = (d) => a.value = d)
463
+ }, { ...i.$attrs, class: "" }, {
469
464
  id: c(t),
470
465
  type: "checkbox",
471
466
  class: ["dai-checkbox", {
472
- [`dai-checkbox--${s.color}`]: s.color,
467
+ [`dai-checkbox--${i.color}`]: i.color,
473
468
  "dai-checkbox--invalid": !c(l)
474
469
  }]
475
470
  }), null, 16, Te), [
476
471
  [me, a.value]
477
472
  ]),
478
- s.label ? (n(), r("div", Ae, [
479
- V(O, { for: c(t) }, {
480
- default: v(() => [
481
- b(s.$slots, "default", {}, () => [
482
- S(k(s.label), 1)
483
- ])
484
- ]),
485
- _: 3
486
- }, 8, ["for"]),
487
- s.hint ? (n(), h(X, {
488
- key: 0,
489
- text: s.hint
490
- }, null, 8, ["text"])) : m("", !0)
491
- ])) : m("", !0)
473
+ i.label || i.$slots.default ? (n(), h(O, {
474
+ key: 0,
475
+ for: c(t)
476
+ }, {
477
+ default: f(() => [
478
+ b(i.$slots, "default", {}, () => [
479
+ L(_(i.label), 1)
480
+ ])
481
+ ]),
482
+ _: 3
483
+ }, 8, ["for"])) : m("", !0),
484
+ i.hint || i.$slots.hint ? (n(), h(X, {
485
+ key: 1,
486
+ class: "dai-checkbox-control__hint"
487
+ }, {
488
+ default: f(() => [
489
+ b(i.$slots, "hint", {}, () => [
490
+ L(_(i.hint), 1)
491
+ ])
492
+ ]),
493
+ _: 3
494
+ })) : m("", !0)
492
495
  ], 2));
493
496
  }
494
- }), Se = { class: "flex items-center h-5" }, je = ["value", "id"], Pe = {
497
+ }), Ae = { class: "flex items-center h-5" }, Se = ["value", "id"], je = {
495
498
  key: 0,
496
499
  class: "text-sm"
497
- }, Oe = ["for"], Ne = {
500
+ }, Pe = ["for"], Oe = {
498
501
  key: 0,
499
502
  class: "text-secondary-500 dark:text-secondary-400"
500
- }, wo = /* @__PURE__ */ p({
503
+ }, _o = /* @__PURE__ */ p({
501
504
  inheritAttrs: !1,
502
505
  __name: "radio",
503
506
  props: /* @__PURE__ */ I({
@@ -512,45 +515,45 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
512
515
  modelModifiers: {}
513
516
  }),
514
517
  emits: ["update:modelValue"],
515
- setup(i) {
516
- const e = i, a = w(i, "modelValue"), t = q(), o = L("formElement"), { isValid: l } = A(
518
+ setup(s) {
519
+ const e = s, a = w(s, "modelValue"), t = z(), o = q("formElement"), { isValid: l } = S(
517
520
  o,
518
521
  e.validators,
519
522
  e.showValidationError
520
523
  );
521
- return (s, f) => (n(), r("div", {
522
- class: g(["flex items-start gap-3", s.$attrs.class])
524
+ return (i, v) => (n(), u("div", {
525
+ class: k(["flex items-start gap-3", i.$attrs.class])
523
526
  }, [
524
- d("div", Se, [
525
- P(d("input", C({
527
+ r("div", Ae, [
528
+ P(r("input", C({
526
529
  type: "radio",
527
530
  ref_key: "formElement",
528
531
  ref: o,
529
- "onUpdate:modelValue": f[0] || (f[0] = (u) => a.value = u)
530
- }, { ...s.$attrs, class: "" }, {
531
- value: s.value,
532
+ "onUpdate:modelValue": v[0] || (v[0] = (d) => a.value = d)
533
+ }, { ...i.$attrs, class: "" }, {
534
+ value: i.value,
532
535
  id: c(t),
533
536
  class: ["radio", {
534
- [`radio--${s.color}`]: s.color,
537
+ [`radio--${i.color}`]: i.color,
535
538
  "radio--invalid": !c(l)
536
539
  }]
537
- }), null, 16, je), [
538
- [pe, a.value]
540
+ }), null, 16, Se), [
541
+ [fe, a.value]
539
542
  ])
540
543
  ]),
541
- s.label ? (n(), r("div", Pe, [
542
- d("label", {
544
+ i.label ? (n(), u("div", je, [
545
+ r("label", {
543
546
  for: c(t),
544
547
  class: "font-medium select-none cursor-pointer"
545
- }, k(s.label), 9, Oe),
546
- s.hint ? (n(), r("p", Ne, k(s.hint), 1)) : m("", !0)
548
+ }, _(i.label), 9, Pe),
549
+ i.hint ? (n(), u("p", Oe, _(i.hint), 1)) : m("", !0)
547
550
  ])) : m("", !0)
548
551
  ], 2));
549
552
  }
550
- }), Ue = {
553
+ }), Ne = {
551
554
  key: 0,
552
555
  class: "dai-btn__spinner"
553
- }, Xe = { class: "dai-btn__caption" }, $o = /* @__PURE__ */ p({
556
+ }, Ue = { class: "dai-btn__caption" }, ko = /* @__PURE__ */ p({
554
557
  __name: "btn",
555
558
  props: {
556
559
  submit: { type: [Boolean, String] },
@@ -571,13 +574,13 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
571
574
  rounded: { type: Boolean },
572
575
  condensed: { type: Boolean }
573
576
  },
574
- setup(i) {
575
- const e = i, a = B(() => e.submit ? "submit" : e.reset ? "reset" : "button"), t = B(() => e.variant ? e.variant : e.plain ? "plain" : e.muted ? "muted" : e.outlined ? "outlined" : "flat"), o = B(() => e.size ? e.size : e.sm ? "small" : e.lg ? "large" : "medium");
576
- return (l, s) => (n(), h(fe(l.href ? "a" : "button"), {
577
+ setup(s) {
578
+ const e = s, a = B(() => e.submit ? "submit" : e.reset ? "reset" : "button"), t = B(() => e.variant ? e.variant : e.plain ? "plain" : e.muted ? "muted" : e.outlined ? "outlined" : "flat"), o = B(() => e.size ? e.size : e.sm ? "small" : e.lg ? "large" : "medium");
579
+ return (l, i) => (n(), h(pe(l.href ? "a" : "button"), {
577
580
  type: l.href ? void 0 : a.value,
578
581
  form: typeof l.submit == "string" ? l.submit : void 0,
579
582
  href: l.href,
580
- class: g(["dai-btn", {
583
+ class: k(["dai-btn", {
581
584
  [`dai-btn--${l.color}`]: l.color,
582
585
  "dai-btn--flat": t.value === "flat",
583
586
  "dai-btn--plain": t.value === "plain",
@@ -591,14 +594,14 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
591
594
  "dai-btn--condensed": l.condensed
592
595
  }])
593
596
  }, {
594
- default: v(() => [
595
- l.loading ? (n(), r("span", Ue, s[0] || (s[0] = [
596
- d("svg", {
597
+ default: f(() => [
598
+ l.loading ? (n(), u("span", Ne, [...i[0] || (i[0] = [
599
+ r("svg", {
597
600
  xmlns: "http://www.w3.org/2000/svg",
598
601
  fill: "none",
599
602
  viewBox: "0 0 24 24"
600
603
  }, [
601
- d("circle", {
604
+ r("circle", {
602
605
  opacity: "0.25",
603
606
  cx: "12",
604
607
  cy: "12",
@@ -606,29 +609,29 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
606
609
  stroke: "currentColor",
607
610
  "stroke-width": "4"
608
611
  }),
609
- d("path", {
612
+ r("path", {
610
613
  opacity: "0.75",
611
614
  fill: "currentColor",
612
615
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
613
616
  })
614
617
  ], -1)
615
- ]))) : m("", !0),
616
- d("span", Xe, [
617
- l.icon ? (n(), r("div", {
618
+ ])])) : m("", !0),
619
+ r("span", Ue, [
620
+ l.icon ? (n(), u("div", {
618
621
  key: 0,
619
- class: g([l.icon, "dai-btn__icon"])
622
+ class: k([l.icon, "dai-btn__icon"])
620
623
  }, null, 2)) : m("", !0),
621
624
  b(l.$slots, "default"),
622
- l.iconAfter ? (n(), r("div", {
625
+ l.iconAfter ? (n(), u("div", {
623
626
  key: 1,
624
- class: g([l.iconAfter, "dai-btn__icon"])
627
+ class: k([l.iconAfter, "dai-btn__icon"])
625
628
  }, null, 2)) : m("", !0)
626
629
  ])
627
630
  ]),
628
631
  _: 3
629
632
  }, 8, ["type", "form", "href", "class"]));
630
633
  }
631
- }), Ze = { class: "dai-switch-control" }, De = ["id", "aria-checked"], He = { key: 0 }, Bo = /* @__PURE__ */ p({
634
+ }), Xe = { class: "dai-switch-control" }, Ze = ["id", "aria-checked"], wo = /* @__PURE__ */ p({
632
635
  __name: "switch",
633
636
  props: /* @__PURE__ */ I({
634
637
  label: {},
@@ -638,45 +641,57 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
638
641
  modelModifiers: {}
639
642
  }),
640
643
  emits: ["update:modelValue"],
641
- setup(i) {
642
- const e = w(i, "modelValue"), a = q();
643
- return (t, o) => (n(), r("div", Ze, [
644
- d("button", {
644
+ setup(s) {
645
+ const e = w(s, "modelValue"), a = z();
646
+ return (t, o) => (n(), u("div", Xe, [
647
+ r("button", {
645
648
  onClick: o[0] || (o[0] = (l) => e.value = !e.value),
646
649
  id: c(a),
647
650
  "aria-checked": e.value,
648
651
  role: "switch",
649
652
  type: "button",
650
653
  tabindex: "0",
651
- class: g(["dai-switch", [e.value ? "dai-switch--on" : "dai-switch--off"]])
652
- }, o[1] || (o[1] = [
653
- d("div", {
654
+ class: k(["dai-switch", [e.value ? "dai-switch--on" : "dai-switch--off"]])
655
+ }, [...o[1] || (o[1] = [
656
+ r("div", {
654
657
  "aria-hidden": "true",
655
658
  class: "dai-switch__thumb"
656
659
  }, null, -1)
657
- ]), 10, De),
658
- t.label ? (n(), r("div", He, [
659
- V(O, {
660
- for: c(a),
661
- text: t.label
662
- }, null, 8, ["for", "text"]),
663
- t.hint ? (n(), h(X, {
664
- key: 0,
665
- text: t.hint
666
- }, null, 8, ["text"])) : m("", !0)
667
- ])) : m("", !0)
660
+ ])], 10, Ze),
661
+ t.label || t.$slots.default ? (n(), h(O, {
662
+ key: 0,
663
+ for: c(a)
664
+ }, {
665
+ default: f(() => [
666
+ b(t.$slots, "default", {}, () => [
667
+ L(_(t.label), 1)
668
+ ])
669
+ ]),
670
+ _: 3
671
+ }, 8, ["for"])) : m("", !0),
672
+ t.hint || t.$slots.hint ? (n(), h(X, {
673
+ key: 1,
674
+ class: "dai-switch-control__hint"
675
+ }, {
676
+ default: f(() => [
677
+ b(t.$slots, "hint", {}, () => [
678
+ L(_(t.hint), 1)
679
+ ])
680
+ ]),
681
+ _: 3
682
+ })) : m("", !0)
668
683
  ]));
669
684
  }
670
- }), Vo = /* @__PURE__ */ p({
685
+ }), $o = /* @__PURE__ */ p({
671
686
  __name: "popoverDialog",
672
- setup(i) {
673
- return (e, a) => (n(), h(T, {
687
+ setup(s) {
688
+ return (e, a) => (n(), h(A, {
674
689
  "enter-from-class": "dai-popover-dialog--anim",
675
690
  "leave-to-class": "dai-popover-dialog--anim"
676
691
  }, {
677
- default: v(() => [
678
- V(c(ee), { class: "dai-popover-dialog" }, {
679
- default: v(() => [
692
+ default: f(() => [
693
+ M(c(ee), { class: "dai-popover-dialog" }, {
694
+ default: f(() => [
680
695
  b(e.$slots, "default")
681
696
  ]),
682
697
  _: 3
@@ -685,14 +700,14 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
685
700
  _: 3
686
701
  }));
687
702
  }
688
- }), Fe = ["id"], Ye = ["for"], Re = { class: "form-control__container" }, Ge = { class: "form-control__input-group" }, Ke = ["for"], Qe = {
703
+ }), De = ["id"], He = ["for"], Fe = { class: "form-control__container" }, Ye = { class: "form-control__input-group" }, Re = ["for"], Ge = {
689
704
  key: 0,
690
705
  class: "form-control__hint"
691
- }, We = {
706
+ }, Ke = {
692
707
  key: 1,
693
708
  class: "form-control__validation-message",
694
709
  role: "alert"
695
- }, Je = /* @__PURE__ */ p({
710
+ }, Qe = /* @__PURE__ */ p({
696
711
  inheritAttrs: !1,
697
712
  __name: "formControl",
698
713
  props: {
@@ -712,11 +727,11 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
712
727
  sm: { type: Boolean },
713
728
  autocomplete: { type: [String, Boolean], default: "off" }
714
729
  },
715
- setup(i) {
716
- const e = i, a = e.id || q(), t = B(() => typeof e.autocomplete == "string" ? e.autocomplete : e.autocomplete ? "on" : "off");
717
- return (o, l) => (n(), r("div", {
730
+ setup(s) {
731
+ const e = s, a = e.id || z(), t = B(() => typeof e.autocomplete == "string" ? e.autocomplete : e.autocomplete ? "on" : "off");
732
+ return (o, l) => (n(), u("div", {
718
733
  id: o.containerId,
719
- class: g(["form-control", {
734
+ class: k(["form-control", {
720
735
  [o.$attrs.class]: o.$attrs.class,
721
736
  "form-control--label-inline": o.labelInline,
722
737
  "form-control--label-inside": o.labelInside,
@@ -729,71 +744,71 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
729
744
  "form-control--sm": o.sm
730
745
  }])
731
746
  }, [
732
- o.label && !o.labelInside ? (n(), r("label", {
747
+ o.label && !o.labelInside ? (n(), u("label", {
733
748
  key: 0,
734
749
  for: c(a)
735
- }, k(o.label), 9, Ye)) : m("", !0),
736
- d("div", Re, [
737
- d("div", Ge, [
738
- o.label && o.labelInside ? (n(), r("label", {
750
+ }, _(o.label), 9, He)) : m("", !0),
751
+ r("div", Fe, [
752
+ r("div", Ye, [
753
+ o.label && o.labelInside ? (n(), u("label", {
739
754
  key: 0,
740
755
  for: c(a)
741
- }, k(o.label), 9, Ke)) : m("", !0),
756
+ }, _(o.label), 9, Re)) : m("", !0),
742
757
  b(o.$slots, "default", {
743
758
  attrs: { id: c(a), disabled: o.disabled, autocomplete: t.value, ...o.$attrs, class: "" }
744
759
  })
745
760
  ]),
746
- o.hint ? (n(), r("div", Qe, k(o.hint), 1)) : m("", !0),
747
- o.validationMessage ? (n(), r("div", We, [
748
- l[0] || (l[0] = d("svg", {
761
+ o.hint ? (n(), u("div", Ge, _(o.hint), 1)) : m("", !0),
762
+ o.validationMessage ? (n(), u("div", Ke, [
763
+ l[0] || (l[0] = r("svg", {
749
764
  xmlns: "http://www.w3.org/2000/svg",
750
765
  viewBox: "0 0 256 256",
751
766
  class: ""
752
767
  }, [
753
- d("path", {
768
+ r("path", {
754
769
  fill: "currentColor",
755
770
  d: "M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71Zm-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73ZM116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0Zm28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16Z"
756
771
  })
757
772
  ], -1)),
758
- S(" " + k(o.validationMessage), 1)
773
+ L(" " + _(o.validationMessage), 1)
759
774
  ])) : m("", !0)
760
775
  ])
761
- ], 10, Fe));
776
+ ], 10, De));
762
777
  }
763
- }), Mo = /* @__PURE__ */ p({
778
+ }), Bo = /* @__PURE__ */ p({
764
779
  __name: "combobox",
765
780
  props: {
766
781
  modelValue: {},
767
782
  modelModifiers: {}
768
783
  },
769
784
  emits: ["update:modelValue"],
770
- setup(i) {
771
- const e = i, a = w(i, "modelValue"), t = q();
772
- return (o, l) => (n(), h(Je, C(e, { containerId: c(t) }), {
773
- default: v(({ attrs: s }) => [
774
- V(c(oe), C({ ...s }, {
785
+ setup(s) {
786
+ const e = s, a = w(s, "modelValue"), t = z();
787
+ return (o, l) => (n(), h(Qe, C(e, { containerId: c(t) }), {
788
+ default: f(({ attrs: i }) => [
789
+ M(c(oe), C({ ...i }, {
775
790
  activatorId: c(t),
776
791
  modelValue: a.value,
777
- "onUpdate:modelValue": l[0] || (l[0] = (f) => a.value = f)
792
+ "onUpdate:modelValue": l[0] || (l[0] = (v) => a.value = v)
778
793
  }), {
779
- default: v(() => [
794
+ default: f(() => [
780
795
  b(o.$slots, "default")
781
796
  ]),
782
- _: 2
783
- }, 1040, ["activatorId", "modelValue"])
797
+ _: 3
798
+ }, 16, ["activatorId", "modelValue"])
784
799
  ]),
785
800
  _: 3
786
801
  }, 16, ["containerId"]));
787
802
  }
788
- }), Co = /* @__PURE__ */ p({
803
+ }), Vo = /* @__PURE__ */ p({
789
804
  __name: "comboboxInput",
790
- setup(i) {
805
+ setup(s) {
791
806
  return (e, a) => (n(), h(c(te), { class: "form-control__input" }));
792
807
  }
793
- }), Io = /* @__PURE__ */ p({
808
+ }), Mo = /* @__PURE__ */ p({
794
809
  __name: "comboboxOptions",
795
- setup(i) {
796
- return (e, a) => (n(), h(T, {
810
+ setup(s) {
811
+ return (e, a) => (n(), h(A, {
797
812
  "enter-from-class": "opacity-0 scale-95",
798
813
  "enter-to-class": "opacity-100 scale-100",
799
814
  "enter-active-class": "transform transition ease-out duration-100",
@@ -801,12 +816,12 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
801
816
  "leave-to-class": "opacity-0 scale-95",
802
817
  "leave-active-class": "transform transition ease-in duration-75"
803
818
  }, {
804
- default: v(() => [
805
- V(c(ae), {
819
+ default: f(() => [
820
+ M(c(ae), {
806
821
  class: "z-50 my-2 p-1 space-y-1 rounded-md overflow-hidden shadow-xl bg-white ring-1 ring-black ring-opacity-10 focus:outline-none",
807
822
  "un-dark": "bg-dark-700 ring-dark-600"
808
823
  }, {
809
- default: v(() => [
824
+ default: f(() => [
810
825
  b(e.$slots, "default")
811
826
  ]),
812
827
  _: 3
@@ -815,12 +830,12 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
815
830
  _: 3
816
831
  }));
817
832
  }
818
- }), Eo = /* @__PURE__ */ p({
833
+ }), Co = /* @__PURE__ */ p({
819
834
  __name: "comboboxOption",
820
835
  props: {
821
836
  value: {}
822
837
  },
823
- setup(i) {
838
+ setup(s) {
824
839
  return (e, a) => (n(), h(c(le), {
825
840
  value: e.value,
826
841
  class: "flex items-center px-3 py-2 cursor-pointer transition-colors text-sm rounded flex items-center gap-4 select-none outline-none",
@@ -828,7 +843,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
828
843
  "un-aria-checked": "bg-primary-50 text-primary-500 dark:bg-dark-500 dark:text-white",
829
844
  "un-aria-disabled": "pointer-events-none text-secondary-500 dark:text-secondary-400"
830
845
  }, {
831
- default: v(({ isActive: t, isSelected: o }) => [
846
+ default: f(({ isActive: t, isSelected: o }) => [
832
847
  b(e.$slots, "default", {
833
848
  isActive: t,
834
849
  isSelected: o
@@ -837,16 +852,16 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
837
852
  _: 3
838
853
  }, 8, ["value"]));
839
854
  }
840
- }), Lo = /* @__PURE__ */ p({
855
+ }), Io = /* @__PURE__ */ p({
841
856
  __name: "menuItems",
842
- setup(i) {
843
- return (e, a) => (n(), h(T, {
857
+ setup(s) {
858
+ return (e, a) => (n(), h(A, {
844
859
  "enter-from-class": "dai-menu-items--anim",
845
860
  "leave-to-class": "dai-menu-items--anim"
846
861
  }, {
847
- default: v(() => [
848
- V(c(ne), { class: "dai-menu-items" }, {
849
- default: v(() => [
862
+ default: f(() => [
863
+ M(c(ne), { class: "dai-menu-items" }, {
864
+ default: f(() => [
850
865
  b(e.$slots, "default")
851
866
  ]),
852
867
  _: 3
@@ -855,20 +870,20 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
855
870
  _: 3
856
871
  }));
857
872
  }
858
- }), xe = {
873
+ }), We = {
859
874
  key: 0,
860
875
  class: "text-secondary-400 flex-shrink-0"
861
- }, qo = /* @__PURE__ */ p({
876
+ }, Eo = /* @__PURE__ */ p({
862
877
  __name: "menuItem",
863
878
  props: {
864
879
  icon: {}
865
880
  },
866
- setup(i) {
881
+ setup(s) {
867
882
  return (e, a) => (n(), h(c(ie), { class: "dai-menu-item" }, {
868
- default: v(({ isActive: t, isSelected: o }) => [
869
- e.icon ? (n(), r("div", xe, [
870
- d("div", {
871
- class: g(["h-5 w-5", e.icon])
883
+ default: f(({ isActive: t, isSelected: o }) => [
884
+ e.icon ? (n(), u("div", We, [
885
+ r("div", {
886
+ class: k(["h-5 w-5", e.icon])
872
887
  }, null, 2)
873
888
  ])) : m("", !0),
874
889
  b(e.$slots, "default", {
@@ -879,49 +894,49 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
879
894
  _: 3
880
895
  }));
881
896
  }
882
- }), zo = /* @__PURE__ */ p({
897
+ }), Lo = /* @__PURE__ */ p({
883
898
  __name: "tab",
884
899
  props: {
885
900
  id: {},
886
901
  ariaControls: {},
887
902
  value: {}
888
903
  },
889
- setup(i) {
904
+ setup(s) {
890
905
  return (e, a) => (n(), h(c(se), {
891
906
  id: e.id,
892
907
  "aria-controls": e.ariaControls,
893
908
  value: e.value,
894
909
  class: "dai-tab"
895
910
  }, {
896
- default: v(() => [
911
+ default: f(() => [
897
912
  b(e.$slots, "default")
898
913
  ]),
899
914
  _: 3
900
915
  }, 8, ["id", "aria-controls", "value"]));
901
916
  }
902
- }), To = /* @__PURE__ */ p({
917
+ }), qo = /* @__PURE__ */ p({
903
918
  __name: "tabList",
904
- setup(i) {
905
- const e = L("tablist"), a = L("slider"), t = U({});
919
+ setup(s) {
920
+ const e = q("tablist"), a = q("slider"), t = U({});
906
921
  function o() {
907
922
  if (!a.value) return;
908
923
  const l = e.value?.$el;
909
924
  if (!l) return;
910
- const s = l.querySelector("[aria-selected=true]");
911
- s && (t.value = {
912
- left: `${s.offsetLeft}px`,
913
- right: `${l.offsetWidth - s.offsetLeft - s.offsetWidth}px`,
914
- transition: a.value.offsetLeft > s.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
925
+ const i = l.querySelector("[aria-selected=true]");
926
+ i && (t.value = {
927
+ left: `${i.offsetLeft}px`,
928
+ right: `${l.offsetWidth - i.offsetLeft - i.offsetWidth}px`,
929
+ transition: a.value.offsetLeft > i.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
915
930
  });
916
931
  }
917
- return j(() => ve(o)), (l, s) => (n(), h(c(re), {
932
+ return j(() => ve(o)), (l, i) => (n(), h(c(re), {
918
933
  ref_key: "tablist",
919
934
  ref: e,
920
935
  onClickPassive: o,
921
936
  class: "dai-tab-list"
922
937
  }, {
923
- default: v(() => [
924
- d("div", {
938
+ default: f(() => [
939
+ r("div", {
925
940
  ref_key: "slider",
926
941
  ref: a,
927
942
  class: "dai-tab-list__slider",
@@ -932,7 +947,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
932
947
  _: 3
933
948
  }, 512));
934
949
  }
935
- }), eo = ["id"], Ao = /* @__PURE__ */ p({
950
+ }), Je = ["id"], zo = /* @__PURE__ */ p({
936
951
  inheritAttrs: !1,
937
952
  __name: "offcanvas",
938
953
  props: /* @__PURE__ */ I({
@@ -947,23 +962,23 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
947
962
  modelModifiers: {}
948
963
  }),
949
964
  emits: ["update:modelValue"],
950
- setup(i) {
951
- const e = i, a = w(i, "modelValue"), t = e.id ?? q(), { classList: o } = _e(document.body, "nui-body-push");
952
- z(a, () => {
965
+ setup(s) {
966
+ const e = s, a = w(s, "modelValue"), t = e.id ?? z(), { classList: o } = ye(document.body, "nui-body-push");
967
+ T(a, () => {
953
968
  if (!e.push || (o.splice(1), !a.value))
954
969
  return;
955
- let s = "nui-body-push--" + e.position;
956
- e.lg && (s += "--lg"), e.xl && (s += "--xl"), o.push(s);
970
+ let i = "nui-body-push--" + e.position;
971
+ e.lg && (i += "--lg"), e.xl && (i += "--xl"), o.push(i);
957
972
  });
958
- function l(s) {
959
- s.target.closest(`#${t}`) || e.closeOnOutsideClick && (a.value = !1);
973
+ function l(i) {
974
+ i.target.closest(`#${t}`) || e.closeOnOutsideClick && (a.value = !1);
960
975
  }
961
976
  return j(() => {
962
977
  window.addEventListener("click", l, { passive: !0 });
963
978
  }), F(() => {
964
979
  window.removeEventListener("click", l);
965
- }), (s, f) => (n(), h(G, { to: "body" }, [
966
- V(T, {
980
+ }), (i, v) => (n(), h(G, { to: "body" }, [
981
+ M(A, {
967
982
  appear: "",
968
983
  "enter-from-class": "nui-offcanvas--animate-hidden",
969
984
  "enter-to-class": "nui-offcanvas--animate-shown",
@@ -972,61 +987,61 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
972
987
  "leave-to-class": "nui-offcanvas--animate-hidden",
973
988
  "leave-active-class": "ease-in-out"
974
989
  }, {
975
- default: v(() => [
976
- a.value ? (n(), r("div", C({
990
+ default: f(() => [
991
+ a.value ? (n(), u("div", C({
977
992
  key: 0,
978
993
  id: c(t)
979
- }, s.$attrs, {
994
+ }, i.$attrs, {
980
995
  class: ["nui-offcanvas", {
981
- [`nui-offcanvas--${s.position}`]: !0,
982
- "nui-offcanvas--shadow": !s.push,
983
- "nui-offcanvas--lg": s.lg,
984
- "nui-offcanvas--xl": s.xl
996
+ [`nui-offcanvas--${i.position}`]: !0,
997
+ "nui-offcanvas--shadow": !i.push,
998
+ "nui-offcanvas--lg": i.lg,
999
+ "nui-offcanvas--xl": i.xl
985
1000
  }]
986
1001
  }), [
987
- b(s.$slots, "default")
988
- ], 16, eo)) : m("", !0)
1002
+ b(i.$slots, "default")
1003
+ ], 16, Je)) : m("", !0)
989
1004
  ]),
990
1005
  _: 3
991
1006
  })
992
1007
  ]));
993
1008
  }
994
- }), oo = {
1009
+ }), xe = {
995
1010
  key: 0,
996
1011
  role: "alert"
997
- }, to = {
1012
+ }, eo = {
998
1013
  xmlns: "http://www.w3.org/2000/svg",
999
1014
  fill: "none",
1000
1015
  viewBox: "0 0 24 24",
1001
1016
  stroke: "currentColor"
1002
- }, ao = {
1017
+ }, oo = {
1003
1018
  key: 0,
1004
1019
  "stroke-linecap": "round",
1005
1020
  "stroke-linejoin": "round",
1006
1021
  "stroke-width": "2",
1007
1022
  d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
1008
- }, lo = {
1023
+ }, to = {
1009
1024
  key: 1,
1010
1025
  "stroke-linecap": "round",
1011
1026
  "stroke-linejoin": "round",
1012
1027
  "stroke-width": "2",
1013
1028
  d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
1014
- }, no = {
1029
+ }, ao = {
1015
1030
  key: 2,
1016
1031
  "stroke-linecap": "round",
1017
1032
  "stroke-linejoin": "round",
1018
1033
  "stroke-width": "2",
1019
1034
  d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
1020
- }, io = {
1035
+ }, lo = {
1021
1036
  key: 3,
1022
1037
  "stroke-linecap": "round",
1023
1038
  "stroke-linejoin": "round",
1024
1039
  "stroke-width": "2",
1025
1040
  d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
1026
- }, so = { class: "dai-notification__content" }, ro = {
1041
+ }, no = { class: "dai-notification__content" }, io = {
1027
1042
  key: 0,
1028
1043
  class: "dai-notification__content__detail"
1029
- }, uo = /* @__PURE__ */ p({
1044
+ }, so = /* @__PURE__ */ p({
1030
1045
  __name: "notification",
1031
1046
  props: /* @__PURE__ */ I({
1032
1047
  color: {},
@@ -1040,55 +1055,55 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
1040
1055
  modelModifiers: {}
1041
1056
  }),
1042
1057
  emits: ["update:modelValue"],
1043
- setup(i) {
1044
- const e = i, a = w(i, "modelValue");
1058
+ setup(s) {
1059
+ const e = s, a = w(s, "modelValue");
1045
1060
  let t;
1046
1061
  function o() {
1047
1062
  clearTimeout(t), a.value && e.timeout && (t = setTimeout(() => a.value = !1, e.timeout));
1048
1063
  }
1049
- return z(a, o, { immediate: !0 }), (l, s) => a.value ? (n(), r("div", oo, [
1050
- d("div", {
1051
- class: g(["dai-notification", [`dai-notification--${l.color || "secondary"}`]])
1064
+ return T(a, o, { immediate: !0 }), (l, i) => a.value ? (n(), u("div", xe, [
1065
+ r("div", {
1066
+ class: k(["dai-notification", [`dai-notification--${l.color || "secondary"}`]])
1052
1067
  }, [
1053
- l.icon ? (n(), r("div", {
1068
+ l.icon ? (n(), u("div", {
1054
1069
  key: 0,
1055
- class: g(["dai-notification__icon", [`dai-notification__icon--${l.icon}`]])
1070
+ class: k(["dai-notification__icon", [`dai-notification__icon--${l.icon}`]])
1056
1071
  }, [
1057
- (n(), r("svg", to, [
1058
- l.icon == "success" ? (n(), r("path", ao)) : l.icon == "info" ? (n(), r("path", lo)) : l.icon == "warning" ? (n(), r("path", no)) : l.icon == "danger" ? (n(), r("path", io)) : m("", !0)
1072
+ (n(), u("svg", eo, [
1073
+ l.icon == "success" ? (n(), u("path", oo)) : l.icon == "info" ? (n(), u("path", to)) : l.icon == "warning" ? (n(), u("path", ao)) : l.icon == "danger" ? (n(), u("path", lo)) : m("", !0)
1059
1074
  ]))
1060
1075
  ], 2)) : m("", !0),
1061
- d("div", so, [
1062
- d("div", {
1063
- class: g(["dai-notification__content__message", {
1076
+ r("div", no, [
1077
+ r("div", {
1078
+ class: k(["dai-notification__content__message", {
1064
1079
  "dai-notification__content__message--bold": l.detail
1065
1080
  }])
1066
- }, k(l.message), 3),
1067
- l.detail ? (n(), r("div", ro, k(l.detail), 1)) : m("", !0)
1081
+ }, _(l.message), 3),
1082
+ l.detail ? (n(), u("div", io, _(l.detail), 1)) : m("", !0)
1068
1083
  ]),
1069
- l.dismissible ? (n(), r("div", {
1084
+ l.dismissible ? (n(), u("div", {
1070
1085
  key: 1,
1071
- onClick: s[0] || (s[0] = (f) => a.value = !1),
1086
+ onClick: i[0] || (i[0] = (v) => a.value = !1),
1072
1087
  class: "dai-notification__dismiss"
1073
- }, s[1] || (s[1] = [
1074
- d("svg", {
1088
+ }, [...i[1] || (i[1] = [
1089
+ r("svg", {
1075
1090
  xmlns: "http://www.w3.org/2000/svg",
1076
1091
  fill: "none",
1077
1092
  viewBox: "0 0 24 24",
1078
1093
  stroke: "currentColor"
1079
1094
  }, [
1080
- d("path", {
1095
+ r("path", {
1081
1096
  "stroke-linecap": "round",
1082
1097
  "stroke-linejoin": "round",
1083
1098
  "stroke-width": "2",
1084
1099
  d: "M6 18L18 6M6 6l12 12"
1085
1100
  })
1086
1101
  ], -1)
1087
- ]))) : m("", !0)
1102
+ ])])) : m("", !0)
1088
1103
  ], 2)
1089
1104
  ])) : m("", !0);
1090
1105
  }
1091
- }), So = /* @__PURE__ */ p({
1106
+ }), To = /* @__PURE__ */ p({
1092
1107
  __name: "notificationQueue",
1093
1108
  props: /* @__PURE__ */ I({
1094
1109
  length: { default: 3 },
@@ -1101,52 +1116,52 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
1101
1116
  queueModifiers: {}
1102
1117
  }),
1103
1118
  emits: ["update:queue"],
1104
- setup(i) {
1105
- const e = i, a = w(i, "queue"), t = U([]);
1119
+ setup(s) {
1120
+ const e = s, a = w(s, "queue"), t = U([]);
1106
1121
  let o = 0;
1107
1122
  function l() {
1108
1123
  a.value.length === 0 || t.value.length >= e.length || (t.value.push({ ...a.value[0], id: o++, show: !0 }), a.value.shift());
1109
1124
  }
1110
- function s(u) {
1125
+ function i(d) {
1111
1126
  setTimeout(() => {
1112
1127
  t.value = t.value.filter(
1113
- (y) => y.id !== u
1128
+ (g) => g.id !== d
1114
1129
  ), l();
1115
1130
  }, 200);
1116
1131
  }
1117
- z(a, l, { immediate: !0, deep: !0 });
1118
- const f = B(() => {
1119
- const u = ["dai-notification-queue__item--anim"];
1120
- return e.positionX === "right" ? u.push("dai-notification-queue__item--anim-x-right") : e.positionX === "left" ? u.push("dai-notification-queue__item--anim-x-left") : e.positionX === "center" && e.positionY === "top" ? u.push("dai-notification-queue__item--anim-y-top") : e.positionX === "center" && e.positionY === "bottom" && u.push("dai-notification-queue__item--anim-y-bottom"), u.join(" ");
1132
+ T(a, l, { immediate: !0, deep: !0 });
1133
+ const v = B(() => {
1134
+ const d = ["dai-notification-queue__item--anim"];
1135
+ return e.positionX === "right" ? d.push("dai-notification-queue__item--anim-x-right") : e.positionX === "left" ? d.push("dai-notification-queue__item--anim-x-left") : e.positionX === "center" && e.positionY === "top" ? d.push("dai-notification-queue__item--anim-y-top") : e.positionX === "center" && e.positionY === "bottom" && d.push("dai-notification-queue__item--anim-y-bottom"), d.join(" ");
1121
1136
  });
1122
- return (u, y) => (n(), r("div", {
1123
- class: g(["dai-notification-queue", {
1124
- "dai-notification-queue--fixed": u.position == "fixed",
1125
- "dai-notification-queue--absolute": u.position == "absolute",
1126
- "dai-notification-queue--y-top": u.positionY == "top",
1127
- "dai-notification-queue--y-bottom": u.positionY == "bottom",
1128
- "dai-notification-queue--x-left": u.positionX == "left",
1129
- "dai-notification-queue--x-center": u.positionX == "center",
1130
- "dai-notification-queue--x-right": u.positionX == "right"
1137
+ return (d, g) => (n(), u("div", {
1138
+ class: k(["dai-notification-queue", {
1139
+ "dai-notification-queue--fixed": d.position == "fixed",
1140
+ "dai-notification-queue--absolute": d.position == "absolute",
1141
+ "dai-notification-queue--y-top": d.positionY == "top",
1142
+ "dai-notification-queue--y-bottom": d.positionY == "bottom",
1143
+ "dai-notification-queue--x-left": d.positionX == "left",
1144
+ "dai-notification-queue--x-center": d.positionX == "center",
1145
+ "dai-notification-queue--x-right": d.positionX == "right"
1131
1146
  }])
1132
1147
  }, [
1133
- V(he, {
1148
+ M(he, {
1134
1149
  appear: "",
1135
- "enter-from-class": f.value,
1150
+ "enter-from-class": v.value,
1136
1151
  "enter-active-class": "dai-notification-queue__item--anim-in",
1137
- "leave-to-class": f.value,
1152
+ "leave-to-class": v.value,
1138
1153
  "leave-active-class": "dai-notification-queue__item--anim-out"
1139
1154
  }, {
1140
- default: v(() => [
1141
- (n(!0), r(Y, null, R(t.value, (_) => (n(), h(uo, {
1142
- key: _.id,
1143
- color: _.color,
1144
- icon: _.type,
1145
- message: _.message,
1146
- detail: _.detail,
1147
- timeout: _.timeout ?? u.timeout,
1148
- modelValue: _.show,
1149
- "onUpdate:modelValue": [(E) => _.show = E, (E) => s(_.id)],
1155
+ default: f(() => [
1156
+ (n(!0), u(Y, null, R(t.value, (y) => (n(), h(so, {
1157
+ key: y.id,
1158
+ color: y.color,
1159
+ icon: y.type,
1160
+ message: y.message,
1161
+ detail: y.detail,
1162
+ timeout: y.timeout ?? d.timeout,
1163
+ modelValue: y.show,
1164
+ "onUpdate:modelValue": [(E) => y.show = E, (E) => i(y.id)],
1150
1165
  class: "dai-notification-queue__item"
1151
1166
  }, null, 8, ["color", "icon", "message", "detail", "timeout", "modelValue", "onUpdate:modelValue"]))), 128))
1152
1167
  ]),
@@ -1154,7 +1169,7 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
1154
1169
  }, 8, ["enter-from-class", "leave-to-class"])
1155
1170
  ], 2));
1156
1171
  }
1157
- }), co = ["aria-valuenow"], jo = /* @__PURE__ */ p({
1172
+ }), ro = ["aria-valuenow"], Ao = /* @__PURE__ */ p({
1158
1173
  __name: "progressbar",
1159
1174
  props: {
1160
1175
  value: {},
@@ -1162,10 +1177,10 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
1162
1177
  height: { default: 5 },
1163
1178
  rounded: { type: Boolean, default: !0 }
1164
1179
  },
1165
- setup(i) {
1166
- const e = i, a = B(() => e.value === void 0);
1167
- return (t, o) => (n(), r("div", {
1168
- class: g(["overflow-hidden text-xs w-full flex-1", {
1180
+ setup(s) {
1181
+ const e = s, a = B(() => e.value === void 0);
1182
+ return (t, o) => (n(), u("div", {
1183
+ class: k(["overflow-hidden text-xs w-full flex-1", {
1169
1184
  rounded: t.rounded,
1170
1185
  "bg-primary-200": t.color == "primary",
1171
1186
  "bg-success-200": t.color == "success",
@@ -1179,9 +1194,9 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
1179
1194
  "aria-valuemax": "100",
1180
1195
  "aria-valuenow": t.value
1181
1196
  }, [
1182
- d("div", {
1197
+ r("div", {
1183
1198
  style: N(`width:${t.value}%`),
1184
- class: g([{
1199
+ class: k([{
1185
1200
  "bg-primary-500": t.color == "primary",
1186
1201
  "bg-success-500": t.color == "success",
1187
1202
  "bg-info-500": t.color == "info",
@@ -1190,12 +1205,12 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
1190
1205
  "progress-infinite": a.value
1191
1206
  }, "h-full shadow-none relative text-center whitespace-nowrap text-white justify-center"])
1192
1207
  }, null, 6)
1193
- ], 14, co));
1208
+ ], 14, ro));
1194
1209
  }
1195
- }), mo = {
1210
+ }), uo = {
1196
1211
  key: 0,
1197
1212
  class: "z-50"
1198
- }, po = { class: "fixed inset-0 overflow-y-auto" }, fo = { class: "modal__dialog" }, Po = /* @__PURE__ */ p({
1213
+ }, co = { class: "fixed inset-0 overflow-y-auto" }, mo = { class: "modal__dialog" }, So = /* @__PURE__ */ p({
1199
1214
  inheritAttrs: !1,
1200
1215
  __name: "modal",
1201
1216
  props: {
@@ -1203,31 +1218,31 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
1203
1218
  modelModifiers: {}
1204
1219
  },
1205
1220
  emits: ["update:modelValue"],
1206
- setup(i) {
1207
- const e = w(i, "modelValue");
1221
+ setup(s) {
1222
+ const e = w(s, "modelValue");
1208
1223
  function a() {
1209
1224
  e.value = !1;
1210
1225
  }
1211
- return z(e, (t) => {
1226
+ return T(e, (t) => {
1212
1227
  t ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
1213
1228
  }), (t, o) => (n(), h(G, { to: "body" }, [
1214
- V(T, {
1229
+ M(A, {
1215
1230
  appear: "",
1216
1231
  name: "modal",
1217
1232
  duration: { enter: 300, leave: 200 }
1218
1233
  }, {
1219
- default: v(() => [
1220
- e.value ? (n(), r("div", mo, [
1221
- o[0] || (o[0] = d("div", {
1234
+ default: f(() => [
1235
+ e.value ? (n(), u("div", uo, [
1236
+ o[0] || (o[0] = r("div", {
1222
1237
  class: "modal__backdrop fixed inset-0 bg-primary-50/60 backdrop-blur-sm",
1223
1238
  "aria-hidden": "true"
1224
1239
  }, null, -1)),
1225
- d("div", po, [
1226
- d("div", {
1240
+ r("div", co, [
1241
+ r("div", {
1227
1242
  onClick: be(a, ["self"]),
1228
1243
  class: "min-h-full flex items-center justify-center p-4 sm:p-6"
1229
1244
  }, [
1230
- d("div", fo, [
1245
+ r("div", mo, [
1231
1246
  b(t.$slots, "default", { close: a })
1232
1247
  ])
1233
1248
  ])
@@ -1240,30 +1255,30 @@ const H = /* @__PURE__ */ Ve(Me, [["render", Ie]]), Ee = ["type", "pattern", "ti
1240
1255
  }
1241
1256
  });
1242
1257
  export {
1243
- $o as Btn,
1244
- ko as Checkbox,
1245
- Mo as Combobox,
1246
- Co as ComboboxInput,
1247
- Eo as ComboboxOption,
1248
- Io as ComboboxOptions,
1249
- _o as Input,
1250
- Uo as Menu,
1251
- qo as MenuItem,
1252
- Lo as MenuItems,
1253
- Po as Modal,
1254
- uo as Notification,
1255
- So as NotificationQueue,
1256
- Ao as Offcanvas,
1257
- Xo as Popover,
1258
- Vo as PopoverDialog,
1259
- jo as Progressbar,
1260
- wo as Radio,
1261
- go as Select,
1262
- Bo as Switch,
1263
- zo as Tab,
1264
- Zo as TabContainer,
1265
- To as TabList,
1266
- Do as TabPanel,
1267
- yo as Textarea,
1268
- _e as useClassList
1258
+ ko as Btn,
1259
+ go as Checkbox,
1260
+ Bo as Combobox,
1261
+ Vo as ComboboxInput,
1262
+ Co as ComboboxOption,
1263
+ Mo as ComboboxOptions,
1264
+ ho as Input,
1265
+ Oo as Menu,
1266
+ Eo as MenuItem,
1267
+ Io as MenuItems,
1268
+ So as Modal,
1269
+ so as Notification,
1270
+ To as NotificationQueue,
1271
+ zo as Offcanvas,
1272
+ No as Popover,
1273
+ $o as PopoverDialog,
1274
+ Ao as Progressbar,
1275
+ _o as Radio,
1276
+ yo as Select,
1277
+ wo as Switch,
1278
+ Lo as Tab,
1279
+ Uo as TabContainer,
1280
+ qo as TabList,
1281
+ Xo as TabPanel,
1282
+ bo as Textarea,
1283
+ ye as useClassList
1269
1284
  };