@defaultusr/dai-ui 1.1.9 → 1.1.10

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 (2) hide show
  1. package/dist/main.js +147 -149
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,32 +1,32 @@
1
1
  import { Combobox as te, ComboboxInput as oe, injectCombobox as ae, ComboboxOptions as le, ComboboxOption as ie, useFormControl as A, PopoverDialog as ne, MenuItems as se, MenuItem as re, Tab as de, TabList as ue } from "vue-composable-ui";
2
2
  import { Menu as St, Popover as Ut, TabContainer as Nt, TabPanel as Xt } from "vue-composable-ui";
3
- import { reactive as ce, watch as T, onUnmounted as R, defineComponent as v, createElementBlock as u, openBlock as l, renderSlot as p, createTextVNode as E, toDisplayString as k, normalizeClass as w, createBlock as f, createCommentVNode as h, createElementVNode as d, computed as $, createVNode as V, normalizeProps as me, guardReactiveProps as fe, withCtx as c, Transition as P, mergeModels as M, useModel as x, useId as L, mergeProps as _, unref as r, inject as ve, Fragment as I, useTemplateRef as q, ref as N, onMounted as j, withDirectives as F, renderList as X, vModelSelect as pe, vModelText as he, vModelCheckbox as be, vModelRadio as ye, resolveDynamicComponent as ge, nextTick as we, normalizeStyle as U, Teleport as Z, TransitionGroup as ke, withModifiers as $e } from "vue";
3
+ import { reactive as ce, watch as T, onUnmounted as R, defineComponent as v, createElementBlock as u, openBlock as a, renderSlot as p, createTextVNode as E, toDisplayString as k, normalizeClass as w, createBlock as m, createCommentVNode as h, createElementVNode as d, computed as $, createVNode as V, normalizeProps as fe, guardReactiveProps as me, withCtx as c, Transition as P, mergeModels as M, useModel as x, useId as L, mergeProps as _, unref as r, inject as ve, Fragment as I, useTemplateRef as q, ref as N, onMounted as j, withDirectives as O, renderList as X, vModelSelect as pe, vModelText as he, vModelCheckbox as be, vModelRadio as ye, resolveDynamicComponent as ge, nextTick as we, normalizeStyle as U, Teleport as Z, TransitionGroup as ke, withModifiers as $e } from "vue";
4
4
  import './assets/main.css';function xe(e, ...t) {
5
5
  let o = [];
6
- const a = ce(t);
6
+ const l = ce(t);
7
7
  function i() {
8
- a.length && (e.classList.add(...a), o = [...a]);
8
+ l.length && (e.classList.add(...l), o = [...l]);
9
9
  }
10
10
  function s() {
11
11
  e.classList.remove(...o);
12
12
  }
13
13
  return T(
14
- a,
14
+ l,
15
15
  () => {
16
16
  s(), i();
17
17
  },
18
18
  { immediate: !0 }
19
19
  ), R(s), {
20
- classList: a
20
+ classList: l
21
21
  };
22
22
  }
23
- const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
23
+ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
24
24
  __name: "label",
25
25
  props: {
26
26
  text: {}
27
27
  },
28
28
  setup(e) {
29
- return (t, o) => (l(), u("label", _e, [
29
+ return (t, o) => (a(), u("label", _e, [
30
30
  p(t.$slots, "default", {}, () => [
31
31
  E(k(e.text), 1)
32
32
  ])
@@ -38,7 +38,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
38
38
  text: {}
39
39
  },
40
40
  setup(e) {
41
- return (t, o) => (l(), u("div", Be, [
41
+ return (t, o) => (a(), u("div", Be, [
42
42
  p(t.$slots, "default", {}, () => [
43
43
  E(k(e.text), 1)
44
44
  ])
@@ -57,7 +57,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
57
57
  invalid: { type: Boolean }
58
58
  },
59
59
  setup(e) {
60
- return (t, o) => (l(), u("div", {
60
+ return (t, o) => (a(), u("div", {
61
61
  class: w(["dai-form-control__input-group", {
62
62
  "dai-form-control__input-group--labeled": !!e.label,
63
63
  "dai-form-control__input-group--outlined": e.variant === "outlined",
@@ -69,7 +69,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
69
69
  "dai-form-control__input-group--invalid": e.invalid
70
70
  }])
71
71
  }, [
72
- e.label ? (l(), f(O, {
72
+ e.label ? (a(), m(F, {
73
73
  key: 0,
74
74
  text: e.label,
75
75
  for: e.labelFor,
@@ -104,39 +104,39 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
104
104
  invalid: { type: Boolean }
105
105
  },
106
106
  setup(e) {
107
- const t = e, o = $(() => t.variant ? t.variant : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), a = $(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
108
- return (i, s) => (l(), u("div", {
107
+ const t = e, o = $(() => t.variant ? t.variant : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), l = $(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
108
+ return (i, s) => (a(), u("div", {
109
109
  class: w(["dai-form-control", {
110
110
  "dai-form-control--label-inline": e.labelPosition === "inline",
111
111
  "dai-form-control--invalid": e.invalid,
112
- "dai-form-control--lg": a.value === "large"
112
+ "dai-form-control--lg": l.value === "large"
113
113
  }])
114
114
  }, [
115
- e.label && e.labelPosition !== "inside" ? (l(), f(O, {
115
+ e.label && e.labelPosition !== "inside" ? (a(), m(F, {
116
116
  key: 0,
117
117
  for: e.labelFor,
118
118
  text: e.label
119
119
  }, null, 8, ["for", "text"])) : h("", !0),
120
120
  d("div", Ce, [
121
- V(Me, me(fe({
121
+ V(Me, fe(me({
122
122
  ...t,
123
123
  label: e.labelPosition === "inside" ? e.label : void 0,
124
124
  variant: o.value,
125
- size: a.value
125
+ size: l.value
126
126
  })), {
127
127
  default: c(() => [
128
128
  p(i.$slots, "default")
129
129
  ]),
130
130
  _: 3
131
131
  }, 16),
132
- e.hint ? (l(), f(D, {
132
+ e.hint ? (a(), m(D, {
133
133
  key: 0,
134
134
  text: e.hint,
135
135
  class: "dai-form-control__hint"
136
136
  }, null, 8, ["text"])) : h("", !0),
137
137
  V(P, { name: "dai-form-control__validation-message-transition" }, {
138
138
  default: c(() => [
139
- e.validationMessage ? (l(), u("div", ze, [
139
+ e.validationMessage ? (a(), u("div", ze, [
140
140
  s[0] || (s[0] = d("svg", {
141
141
  xmlns: "http://www.w3.org/2000/svg",
142
142
  viewBox: "0 0 256 256",
@@ -180,14 +180,14 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
180
180
  }),
181
181
  emits: ["update:modelValue"],
182
182
  setup(e) {
183
- const t = e, o = x(e, "modelValue"), a = t.id || L();
184
- return (i, s) => (l(), f(S, _(t, {
185
- labelFor: r(a),
183
+ const t = e, o = x(e, "modelValue"), l = t.id || L();
184
+ return (i, s) => (a(), m(S, _(t, {
185
+ labelFor: r(l),
186
186
  class: i.$attrs.class
187
187
  }), {
188
188
  default: c(() => [
189
189
  V(r(te), _({ ...i.$attrs, class: void 0 }, {
190
- id: r(a),
190
+ id: r(l),
191
191
  modelValue: o.value,
192
192
  "onUpdate:modelValue": s[0] || (s[0] = (n) => o.value = n)
193
193
  }), {
@@ -203,7 +203,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
203
203
  }), wt = /* @__PURE__ */ v({
204
204
  __name: "comboboxInput",
205
205
  setup(e) {
206
- return (t, o) => (l(), f(r(oe), { class: "dai-form-control__input-group__control" }, {
206
+ return (t, o) => (a(), m(r(oe), { class: "dai-form-control__input-group__control" }, {
207
207
  default: c(() => [
208
208
  p(t.$slots, "default")
209
209
  ]),
@@ -222,24 +222,22 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
222
222
  const t = ve(ae);
223
223
  if (!t)
224
224
  throw new Error("Combobox injectable context is not provided");
225
- const o = $(() => ({
225
+ $(() => ({
226
226
  ...t.activatorAttrs.value,
227
227
  onclick: () => t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 })
228
228
  }));
229
- return T(
230
- o,
231
- (a) => {
232
- console.log("btnAttrs changed:", a);
233
- },
234
- { immediate: !0 }
235
- ), (a, i) => (l(), u("button", _(o.value, {
229
+ function o() {
230
+ t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 });
231
+ }
232
+ return (l, i) => (a(), u("button", _(r(t).activatorAttrs.value, {
233
+ onClick: o,
236
234
  type: "button",
237
235
  class: "dai-form-control__input-group__control dai-combobox-btn"
238
236
  }), [
239
- p(a.$slots, "default", {}, () => [
240
- r(t).displayValue.value ? (l(), u(I, { key: 1 }, [
237
+ p(l.$slots, "default", {}, () => [
238
+ r(t).displayValue.value ? (a(), u(I, { key: 1 }, [
241
239
  E(k(r(t).displayValue), 1)
242
- ], 64)) : (l(), u("span", Le, k(e.placeholder || "Select..."), 1)),
240
+ ], 64)) : (a(), u("span", Le, k(e.placeholder || "Select..."), 1)),
243
241
  i[0] || (i[0] = d("svg", {
244
242
  class: "dai-combobox-btn__chevron",
245
243
  role: "presentation",
@@ -259,7 +257,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
259
257
  }), Te = /* @__PURE__ */ v({
260
258
  __name: "comboboxOptions",
261
259
  setup(e) {
262
- return (t, o) => (l(), f(P, {
260
+ return (t, o) => (a(), m(P, {
263
261
  "enter-from-class": "dai-combobox-options--anim",
264
262
  "leave-to-class": "dai-combobox-options--anim"
265
263
  }, {
@@ -285,16 +283,16 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
285
283
  value: {}
286
284
  },
287
285
  setup(e) {
288
- return (t, o) => (l(), f(r(ie), {
286
+ return (t, o) => (a(), m(r(ie), {
289
287
  value: e.value,
290
288
  class: "dai-combobox-option"
291
289
  }, {
292
- default: c(({ isActive: a, isSelected: i }) => [
290
+ default: c(({ isActive: l, isSelected: i }) => [
293
291
  p(t.$slots, "default", {
294
- isActive: a,
292
+ isActive: l,
295
293
  isSelected: i
296
294
  }),
297
- i ? (l(), u("svg", Pe, [...o[0] || (o[0] = [
295
+ i ? (a(), u("svg", Pe, [...o[0] || (o[0] = [
298
296
  d("path", {
299
297
  fill: "currentColor",
300
298
  "fill-rule": "evenodd",
@@ -308,21 +306,21 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
308
306
  }
309
307
  }), Ie = (e, t) => {
310
308
  const o = e.__vccOpts || e;
311
- for (const [a, i] of t)
312
- o[a] = i;
309
+ for (const [l, i] of t)
310
+ o[l] = i;
313
311
  return o;
314
- }, je = {}, Fe = {
312
+ }, je = {}, Oe = {
315
313
  type: "button",
316
314
  class: "dai-form-control__input-group__addon dai-form-control__input-group__addon--btn",
317
315
  tabindex: "-1",
318
316
  "aria-hidden": "true"
319
317
  };
320
- function Oe(e, t) {
321
- return l(), u("button", Fe, [
318
+ function Fe(e, t) {
319
+ return a(), u("button", Oe, [
322
320
  p(e.$slots, "default")
323
321
  ]);
324
322
  }
325
- const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
323
+ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
326
324
  key: 0,
327
325
  xmlns: "http://www.w3.org/2000/svg",
328
326
  fill: "none",
@@ -369,7 +367,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
369
367
  }),
370
368
  emits: ["update:modelValue", "update:files"],
371
369
  setup(e) {
372
- const t = e, o = t.id || L(), a = $(() => typeof t.autocomplete == "string" ? t.autocomplete : t.autocomplete ? "on" : "off"), i = x(e, "modelValue"), s = x(e, "files", {
370
+ const t = e, o = t.id || L(), l = $(() => typeof t.autocomplete == "string" ? t.autocomplete : t.autocomplete ? "on" : "off"), i = x(e, "modelValue"), s = x(e, "files", {
373
371
  set(B) {
374
372
  return n.value && (n.value.files = B), B;
375
373
  }
@@ -377,16 +375,16 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
377
375
  n,
378
376
  t.validators,
379
377
  t.showValidationError
380
- ), m = N(!1);
378
+ ), f = N(!1);
381
379
  T(i, () => {
382
380
  s.value = n.value?.files || null;
383
381
  });
384
382
  let C;
385
- const G = $(() => t.type === "password" ? m.value ? "text" : "password" : t.type), H = $(() => t.mask ? t.mask : t.type === "tel" ? {
383
+ const G = $(() => t.type === "password" ? f.value ? "text" : "password" : t.type), H = $(() => t.mask ? t.mask : t.type === "tel" ? {
386
384
  mask: "{+7} (000) 000-00-00"
387
385
  } : t.mask), K = $(() => t.pattern ? t.pattern : t.type === "tel" ? "^\\+7 \\(9\\d{2}\\) \\d{3}-\\d{2}-\\d{2}" : t.pattern), Q = $(() => t.title ? t.title : t.type === "tel" ? "+7 (999) 888-77-66" : t.title);
388
386
  function W() {
389
- m.value = !m.value;
387
+ f.value = !f.value;
390
388
  }
391
389
  function J() {
392
390
  i.value = "";
@@ -406,7 +404,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
406
404
  i.value = C.value;
407
405
  });
408
406
  });
409
- }), (B, z) => (l(), f(S, _(t, {
407
+ }), (B, z) => (a(), m(S, _(t, {
410
408
  "label-for": r(o),
411
409
  "validation-message": e.showValidationError ? "" : r(b),
412
410
  invalid: t.invalid || !r(g),
@@ -422,26 +420,26 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
422
420
  type: G.value,
423
421
  pattern: K.value,
424
422
  title: Q.value,
425
- autocomplete: a.value,
423
+ autocomplete: l.value,
426
424
  value: i.value,
427
425
  onInputPassive: ee,
428
426
  onKeyupPassive: z[0] || (z[0] = (bt) => !r(g) && r(y)()),
429
427
  class: "dai-form-control__input-group__control dai-form-control__input"
430
428
  }), null, 16, Se),
431
429
  p(B.$slots, "append"),
432
- t.type === "password" && i.value ? (l(), f(Y, {
430
+ t.type === "password" && i.value ? (a(), m(Y, {
433
431
  key: 0,
434
432
  onClick: W
435
433
  }, {
436
434
  default: c(() => [
437
- m.value ? (l(), u("svg", Ne, [...z[2] || (z[2] = [
435
+ f.value ? (a(), u("svg", Ne, [...z[2] || (z[2] = [
438
436
  d("path", {
439
437
  "stroke-linecap": "round",
440
438
  "stroke-linejoin": "round",
441
439
  "stroke-width": "2",
442
440
  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"
443
441
  }, null, -1)
444
- ])])) : (l(), u("svg", Ue, [...z[1] || (z[1] = [
442
+ ])])) : (a(), u("svg", Ue, [...z[1] || (z[1] = [
445
443
  d("path", {
446
444
  "stroke-linecap": "round",
447
445
  "stroke-linejoin": "round",
@@ -458,7 +456,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
458
456
  ]),
459
457
  _: 1
460
458
  })) : h("", !0),
461
- e.clearable && i.value && !t.disabled ? (l(), f(Y, {
459
+ e.clearable && i.value && !t.disabled ? (a(), m(Y, {
462
460
  key: 1,
463
461
  onClick: J
464
462
  }, {
@@ -513,34 +511,34 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
513
511
  }),
514
512
  emits: ["update:modelValue"],
515
513
  setup(e) {
516
- const t = e, o = t.id || L(), a = x(e, "modelValue"), i = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
514
+ const t = e, o = t.id || L(), l = x(e, "modelValue"), i = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
517
515
  i,
518
516
  t.validators,
519
517
  t.showValidationError
520
518
  );
521
- return (b, y) => (l(), f(S, _(t, {
519
+ return (b, y) => (a(), m(S, _(t, {
522
520
  "label-for": r(o),
523
521
  "validation-message": e.showValidationError ? "" : r(n),
524
522
  invalid: t.invalid || !r(s),
525
523
  class: b.$attrs.class
526
524
  }), {
527
525
  default: c(() => [
528
- F(d("select", _({
526
+ O(d("select", _({
529
527
  ref_key: "formElement",
530
528
  ref: i
531
529
  }, { ...b.$attrs, class: void 0 }, {
532
530
  id: r(o),
533
- "onUpdate:modelValue": y[0] || (y[0] = (m) => a.value = m),
531
+ "onUpdate:modelValue": y[0] || (y[0] = (f) => l.value = f),
534
532
  class: "dai-form-control__input-group__control dai-select"
535
533
  }), [
536
534
  p(b.$slots, "default", {}, () => [
537
- (l(!0), u(I, null, X(e.options, (m) => (l(), u("option", {
538
- value: m[e.optionValue],
539
- key: m[e.optionValue]
540
- }, k(m[e.optionText]), 9, De))), 128))
535
+ (a(!0), u(I, null, X(e.options, (f) => (a(), u("option", {
536
+ value: f[e.optionValue],
537
+ key: f[e.optionValue]
538
+ }, k(f[e.optionText]), 9, De))), 128))
541
539
  ])
542
540
  ], 16, Xe), [
543
- [pe, a.value]
541
+ [pe, l.value]
544
542
  ]),
545
543
  y[1] || (y[1] = d("svg", {
546
544
  class: "dai-select__chevron",
@@ -587,7 +585,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
587
585
  emits: ["update:modelValue"],
588
586
  setup(e) {
589
587
  const t = e, o = x(e, "modelValue");
590
- return (a, i) => (l(), f(r(Ee), _(t, {
588
+ return (l, i) => (a(), m(r(Ee), _(t, {
591
589
  displayValue: (s) => e.options.find((n) => n[e.optionValue] === s)?.[e.optionText] || "",
592
590
  modelValue: o.value,
593
591
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s)
@@ -596,7 +594,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
596
594
  V(r(qe), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
597
595
  V(r(Te), null, {
598
596
  default: c(() => [
599
- (l(!0), u(I, null, X(e.options, (s) => (l(), f(r(Ae), {
597
+ (a(!0), u(I, null, X(e.options, (s) => (a(), m(r(Ae), {
600
598
  key: s[e.optionValue],
601
599
  value: s[e.optionValue]
602
600
  }, {
@@ -626,36 +624,36 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
626
624
  }),
627
625
  emits: ["update:modelValue"],
628
626
  setup(e) {
629
- const t = e, o = t.id || L(), a = x(e, "modelValue"), i = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
627
+ const t = e, o = t.id || L(), l = x(e, "modelValue"), i = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
630
628
  i,
631
629
  t.validators,
632
630
  t.showValidationError
633
631
  );
634
632
  function b() {
635
633
  if (!t.autosize) return;
636
- const y = i.value, m = y.offsetHeight - y.clientHeight;
637
- y.style.height = "auto", y.style.height = `${y.scrollHeight + m}px`;
634
+ const y = i.value, f = y.offsetHeight - y.clientHeight;
635
+ y.style.height = "auto", y.style.height = `${y.scrollHeight + f}px`;
638
636
  }
639
- return j(b), (y, m) => (l(), f(S, _(t, {
637
+ return j(b), (y, f) => (a(), m(S, _(t, {
640
638
  "label-for": r(o),
641
639
  "validation-message": e.showValidationError ? "" : r(n),
642
640
  invalid: !r(s),
643
641
  class: y.$attrs.class
644
642
  }), {
645
643
  default: c(() => [
646
- F(d("textarea", _({
644
+ O(d("textarea", _({
647
645
  ref_key: "formElement",
648
646
  ref: i
649
647
  }, { ...y.$attrs, class: void 0 }, {
650
648
  id: r(o),
651
- "onUpdate:modelValue": m[0] || (m[0] = (C) => a.value = C),
652
- onKeyupPassive: m[1] || (m[1] = (C) => !r(s) && r(g)()),
649
+ "onUpdate:modelValue": f[0] || (f[0] = (C) => l.value = C),
650
+ onKeyupPassive: f[1] || (f[1] = (C) => !r(s) && r(g)()),
653
651
  onInputPassive: b,
654
652
  class: ["form-control__textarea", {
655
653
  "form-control__textarea--autosize": e.autosize
656
654
  }]
657
655
  }), null, 16, He), [
658
- [he, a.value]
656
+ [he, l.value]
659
657
  ])
660
658
  ]),
661
659
  _: 1
@@ -676,20 +674,20 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
676
674
  }),
677
675
  emits: ["update:modelValue"],
678
676
  setup(e) {
679
- const t = e, o = x(e, "modelValue"), a = L(), i = q("formElement"), { isValid: s } = A(
677
+ const t = e, o = x(e, "modelValue"), l = L(), i = q("formElement"), { isValid: s } = A(
680
678
  i,
681
679
  t.validators,
682
680
  t.showValidationError
683
681
  );
684
- return (n, g) => (l(), u("div", {
682
+ return (n, g) => (a(), u("div", {
685
683
  class: w(["dai-checkbox-control", n.$attrs.class])
686
684
  }, [
687
- F(d("input", _({
685
+ O(d("input", _({
688
686
  ref_key: "formElement",
689
687
  ref: i,
690
688
  "onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
691
689
  }, { ...n.$attrs, class: "" }, {
692
- id: r(a),
690
+ id: r(l),
693
691
  type: "checkbox",
694
692
  class: ["dai-checkbox", {
695
693
  [`dai-checkbox--${e.color}`]: e.color,
@@ -698,9 +696,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
698
696
  }), null, 16, Ye), [
699
697
  [be, o.value]
700
698
  ]),
701
- e.label || n.$slots.default ? (l(), f(O, {
699
+ e.label || n.$slots.default ? (a(), m(F, {
702
700
  key: 0,
703
- for: r(a)
701
+ for: r(l)
704
702
  }, {
705
703
  default: c(() => [
706
704
  p(n.$slots, "default", {}, () => [
@@ -709,7 +707,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
709
707
  ]),
710
708
  _: 3
711
709
  }, 8, ["for"])) : h("", !0),
712
- e.hint || n.$slots.hint ? (l(), f(D, {
710
+ e.hint || n.$slots.hint ? (a(), m(D, {
713
711
  key: 1,
714
712
  class: "dai-checkbox-control__hint"
715
713
  }, {
@@ -744,23 +742,23 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
744
742
  }),
745
743
  emits: ["update:modelValue"],
746
744
  setup(e) {
747
- const t = e, o = x(e, "modelValue"), a = L(), i = q("formElement"), { isValid: s } = A(
745
+ const t = e, o = x(e, "modelValue"), l = L(), i = q("formElement"), { isValid: s } = A(
748
746
  i,
749
747
  t.validators,
750
748
  t.showValidationError
751
749
  );
752
- return (n, g) => (l(), u("div", {
750
+ return (n, g) => (a(), u("div", {
753
751
  class: w(["flex items-start gap-3", n.$attrs.class])
754
752
  }, [
755
753
  d("div", Re, [
756
- F(d("input", _({
754
+ O(d("input", _({
757
755
  type: "radio",
758
756
  ref_key: "formElement",
759
757
  ref: i,
760
758
  "onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
761
759
  }, { ...n.$attrs, class: "" }, {
762
760
  value: e.value,
763
- id: r(a),
761
+ id: r(l),
764
762
  class: ["radio", {
765
763
  [`radio--${e.color}`]: e.color,
766
764
  "radio--invalid": !r(s)
@@ -769,12 +767,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
769
767
  [ye, o.value]
770
768
  ])
771
769
  ]),
772
- e.label ? (l(), u("div", Ge, [
770
+ e.label ? (a(), u("div", Ge, [
773
771
  d("label", {
774
- for: r(a),
772
+ for: r(l),
775
773
  class: "font-medium select-none cursor-pointer"
776
774
  }, k(e.label), 9, Ke),
777
- e.hint ? (l(), u("p", Qe, k(e.hint), 1)) : h("", !0)
775
+ e.hint ? (a(), u("p", Qe, k(e.hint), 1)) : h("", !0)
778
776
  ])) : h("", !0)
779
777
  ], 2));
780
778
  }
@@ -790,7 +788,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
790
788
  emits: ["update:modelValue"],
791
789
  setup(e) {
792
790
  const t = x(e, "modelValue"), o = L();
793
- return (a, i) => (l(), u("div", We, [
791
+ return (l, i) => (a(), u("div", We, [
794
792
  d("button", {
795
793
  onClick: i[0] || (i[0] = (s) => t.value = !t.value),
796
794
  id: r(o),
@@ -805,23 +803,23 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
805
803
  class: "dai-switch__thumb"
806
804
  }, null, -1)
807
805
  ])], 10, Je),
808
- e.label || a.$slots.default ? (l(), f(O, {
806
+ e.label || l.$slots.default ? (a(), m(F, {
809
807
  key: 0,
810
808
  for: r(o)
811
809
  }, {
812
810
  default: c(() => [
813
- p(a.$slots, "default", {}, () => [
811
+ p(l.$slots, "default", {}, () => [
814
812
  E(k(e.label), 1)
815
813
  ])
816
814
  ]),
817
815
  _: 3
818
816
  }, 8, ["for"])) : h("", !0),
819
- e.hint || a.$slots.hint ? (l(), f(D, {
817
+ e.hint || l.$slots.hint ? (a(), m(D, {
820
818
  key: 1,
821
819
  class: "dai-switch-control__hint"
822
820
  }, {
823
821
  default: c(() => [
824
- p(a.$slots, "hint", {}, () => [
822
+ p(l.$slots, "hint", {}, () => [
825
823
  E(k(e.hint), 1)
826
824
  ])
827
825
  ]),
@@ -854,17 +852,17 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
854
852
  condensed: { type: Boolean }
855
853
  },
856
854
  setup(e) {
857
- const t = e, o = $(() => t.submit ? "submit" : t.reset ? "reset" : "button"), a = $(() => t.variant ? t.variant : t.plain ? "plain" : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), i = $(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
858
- return (s, n) => (l(), f(ge(e.href ? "a" : "button"), {
855
+ const t = e, o = $(() => t.submit ? "submit" : t.reset ? "reset" : "button"), l = $(() => t.variant ? t.variant : t.plain ? "plain" : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), i = $(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
856
+ return (s, n) => (a(), m(ge(e.href ? "a" : "button"), {
859
857
  type: e.href ? void 0 : o.value,
860
858
  form: typeof e.submit == "string" ? e.submit : void 0,
861
859
  href: e.href,
862
860
  class: w(["dai-btn", {
863
861
  [`dai-btn--${e.color}`]: e.color,
864
- "dai-btn--flat": a.value === "flat",
865
- "dai-btn--plain": a.value === "plain",
866
- "dai-btn--muted": a.value === "muted",
867
- "dai-btn--outlined": a.value === "outlined",
862
+ "dai-btn--flat": l.value === "flat",
863
+ "dai-btn--plain": l.value === "plain",
864
+ "dai-btn--muted": l.value === "muted",
865
+ "dai-btn--outlined": l.value === "outlined",
868
866
  "dai-btn--sm": i.value === "small",
869
867
  "dai-btn--lg": i.value === "large",
870
868
  "dai-btn--loading": e.loading,
@@ -874,7 +872,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
874
872
  }])
875
873
  }, {
876
874
  default: c(() => [
877
- e.loading ? (l(), u("span", et, [...n[0] || (n[0] = [
875
+ e.loading ? (a(), u("span", et, [...n[0] || (n[0] = [
878
876
  d("svg", {
879
877
  xmlns: "http://www.w3.org/2000/svg",
880
878
  fill: "none",
@@ -896,12 +894,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
896
894
  ], -1)
897
895
  ])])) : h("", !0),
898
896
  d("span", tt, [
899
- e.icon ? (l(), u("div", {
897
+ e.icon ? (a(), u("div", {
900
898
  key: 0,
901
899
  class: w([e.icon, "dai-btn__icon"])
902
900
  }, null, 2)) : h("", !0),
903
901
  p(s.$slots, "default"),
904
- e.iconAfter ? (l(), u("div", {
902
+ e.iconAfter ? (a(), u("div", {
905
903
  key: 1,
906
904
  class: w([e.iconAfter, "dai-btn__icon"])
907
905
  }, null, 2)) : h("", !0)
@@ -913,7 +911,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
913
911
  }), zt = /* @__PURE__ */ v({
914
912
  __name: "popoverDialog",
915
913
  setup(e) {
916
- return (t, o) => (l(), f(P, {
914
+ return (t, o) => (a(), m(P, {
917
915
  "enter-from-class": "dai-popover-dialog--anim",
918
916
  "leave-to-class": "dai-popover-dialog--anim"
919
917
  }, {
@@ -931,7 +929,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
931
929
  }), Et = /* @__PURE__ */ v({
932
930
  __name: "menuItems",
933
931
  setup(e) {
934
- return (t, o) => (l(), f(P, {
932
+ return (t, o) => (a(), m(P, {
935
933
  "enter-from-class": "dai-menu-items--anim",
936
934
  "leave-to-class": "dai-menu-items--anim"
937
935
  }, {
@@ -955,15 +953,15 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
955
953
  icon: {}
956
954
  },
957
955
  setup(e) {
958
- return (t, o) => (l(), f(r(re), { class: "dai-menu-item" }, {
959
- default: c(({ isActive: a, isSelected: i }) => [
960
- e.icon ? (l(), u("div", ot, [
956
+ return (t, o) => (a(), m(r(re), { class: "dai-menu-item" }, {
957
+ default: c(({ isActive: l, isSelected: i }) => [
958
+ e.icon ? (a(), u("div", ot, [
961
959
  d("div", {
962
960
  class: w(["h-5 w-5", e.icon])
963
961
  }, null, 2)
964
962
  ])) : h("", !0),
965
963
  p(t.$slots, "default", {
966
- isActive: a,
964
+ isActive: l,
967
965
  isSelected: i
968
966
  })
969
967
  ]),
@@ -978,7 +976,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
978
976
  value: {}
979
977
  },
980
978
  setup(e) {
981
- return (t, o) => (l(), f(r(de), {
979
+ return (t, o) => (a(), m(r(de), {
982
980
  id: e.id,
983
981
  "aria-controls": e.ariaControls,
984
982
  value: e.value,
@@ -993,19 +991,19 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
993
991
  }), Tt = /* @__PURE__ */ v({
994
992
  __name: "tabList",
995
993
  setup(e) {
996
- const t = q("tablist"), o = q("slider"), a = N({});
994
+ const t = q("tablist"), o = q("slider"), l = N({});
997
995
  function i() {
998
996
  if (!o.value) return;
999
997
  const s = t.value?.$el;
1000
998
  if (!s) return;
1001
999
  const n = s.querySelector("[aria-selected=true]");
1002
- n && (a.value = {
1000
+ n && (l.value = {
1003
1001
  left: `${n.offsetLeft}px`,
1004
1002
  right: `${s.offsetWidth - n.offsetLeft - n.offsetWidth}px`,
1005
1003
  transition: o.value.offsetLeft > n.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
1006
1004
  });
1007
1005
  }
1008
- return j(() => we(i)), (s, n) => (l(), f(r(ue), {
1006
+ return j(() => we(i)), (s, n) => (a(), m(r(ue), {
1009
1007
  ref_key: "tablist",
1010
1008
  ref: t,
1011
1009
  onClickPassive: i,
@@ -1016,7 +1014,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1016
1014
  ref_key: "slider",
1017
1015
  ref: o,
1018
1016
  class: "dai-tab-list__slider",
1019
- style: U(a.value)
1017
+ style: U(l.value)
1020
1018
  }, null, 4),
1021
1019
  p(s.$slots, "default")
1022
1020
  ]),
@@ -1039,7 +1037,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1039
1037
  }),
1040
1038
  emits: ["update:modelValue"],
1041
1039
  setup(e) {
1042
- const t = e, o = x(e, "modelValue"), a = t.id ?? L(), { classList: i } = xe(document.body, "nui-body-push");
1040
+ const t = e, o = x(e, "modelValue"), l = t.id ?? L(), { classList: i } = xe(document.body, "nui-body-push");
1043
1041
  T(o, () => {
1044
1042
  if (!t.push || (i.splice(1), !o.value))
1045
1043
  return;
@@ -1047,13 +1045,13 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1047
1045
  t.lg && (n += "--lg"), t.xl && (n += "--xl"), i.push(n);
1048
1046
  });
1049
1047
  function s(n) {
1050
- n.target.closest(`#${a}`) || t.closeOnOutsideClick && (o.value = !1);
1048
+ n.target.closest(`#${l}`) || t.closeOnOutsideClick && (o.value = !1);
1051
1049
  }
1052
1050
  return j(() => {
1053
1051
  window.addEventListener("click", s, { passive: !0 });
1054
1052
  }), R(() => {
1055
1053
  window.removeEventListener("click", s);
1056
- }), (n, g) => (l(), f(Z, { to: "body" }, [
1054
+ }), (n, g) => (a(), m(Z, { to: "body" }, [
1057
1055
  V(P, {
1058
1056
  appear: "",
1059
1057
  "enter-from-class": "nui-offcanvas--animate-hidden",
@@ -1064,9 +1062,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1064
1062
  "leave-active-class": "ease-in-out"
1065
1063
  }, {
1066
1064
  default: c(() => [
1067
- o.value ? (l(), u("div", _({
1065
+ o.value ? (a(), u("div", _({
1068
1066
  key: 0,
1069
- id: r(a)
1067
+ id: r(l)
1070
1068
  }, n.$attrs, {
1071
1069
  class: ["nui-offcanvas", {
1072
1070
  [`nui-offcanvas--${e.position}`]: !0,
@@ -1117,7 +1115,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1117
1115
  }, ut = { class: "dai-notification__content" }, ct = {
1118
1116
  key: 0,
1119
1117
  class: "dai-notification__content__detail"
1120
- }, mt = /* @__PURE__ */ v({
1118
+ }, ft = /* @__PURE__ */ v({
1121
1119
  __name: "notification",
1122
1120
  props: /* @__PURE__ */ M({
1123
1121
  color: {},
@@ -1133,20 +1131,20 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1133
1131
  emits: ["update:modelValue"],
1134
1132
  setup(e) {
1135
1133
  const t = e, o = x(e, "modelValue");
1136
- let a;
1134
+ let l;
1137
1135
  function i() {
1138
- clearTimeout(a), o.value && t.timeout && (a = setTimeout(() => o.value = !1, t.timeout));
1136
+ clearTimeout(l), o.value && t.timeout && (l = setTimeout(() => o.value = !1, t.timeout));
1139
1137
  }
1140
- return T(o, i, { immediate: !0 }), (s, n) => o.value ? (l(), u("div", lt, [
1138
+ return T(o, i, { immediate: !0 }), (s, n) => o.value ? (a(), u("div", lt, [
1141
1139
  d("div", {
1142
1140
  class: w(["dai-notification", [`dai-notification--${e.color || "secondary"}`]])
1143
1141
  }, [
1144
- e.icon ? (l(), u("div", {
1142
+ e.icon ? (a(), u("div", {
1145
1143
  key: 0,
1146
1144
  class: w(["dai-notification__icon", [`dai-notification__icon--${e.icon}`]])
1147
1145
  }, [
1148
- (l(), u("svg", it, [
1149
- e.icon == "success" ? (l(), u("path", nt)) : e.icon == "info" ? (l(), u("path", st)) : e.icon == "warning" ? (l(), u("path", rt)) : e.icon == "danger" ? (l(), u("path", dt)) : h("", !0)
1146
+ (a(), u("svg", it, [
1147
+ e.icon == "success" ? (a(), u("path", nt)) : e.icon == "info" ? (a(), u("path", st)) : e.icon == "warning" ? (a(), u("path", rt)) : e.icon == "danger" ? (a(), u("path", dt)) : h("", !0)
1150
1148
  ]))
1151
1149
  ], 2)) : h("", !0),
1152
1150
  d("div", ut, [
@@ -1155,9 +1153,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1155
1153
  "dai-notification__content__message--bold": e.detail
1156
1154
  }])
1157
1155
  }, k(e.message), 3),
1158
- e.detail ? (l(), u("div", ct, k(e.detail), 1)) : h("", !0)
1156
+ e.detail ? (a(), u("div", ct, k(e.detail), 1)) : h("", !0)
1159
1157
  ]),
1160
- e.dismissible ? (l(), u("div", {
1158
+ e.dismissible ? (a(), u("div", {
1161
1159
  key: 1,
1162
1160
  onClick: n[0] || (n[0] = (g) => o.value = !1),
1163
1161
  class: "dai-notification__dismiss"
@@ -1193,14 +1191,14 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1193
1191
  }),
1194
1192
  emits: ["update:queue"],
1195
1193
  setup(e) {
1196
- const t = e, o = x(e, "queue"), a = N([]);
1194
+ const t = e, o = x(e, "queue"), l = N([]);
1197
1195
  let i = 0;
1198
1196
  function s() {
1199
- o.value.length === 0 || a.value.length >= t.length || (a.value.push({ ...o.value[0], id: i++, show: !0 }), o.value.shift());
1197
+ o.value.length === 0 || l.value.length >= t.length || (l.value.push({ ...o.value[0], id: i++, show: !0 }), o.value.shift());
1200
1198
  }
1201
1199
  function n(b) {
1202
1200
  setTimeout(() => {
1203
- a.value = a.value.filter(
1201
+ l.value = l.value.filter(
1204
1202
  (y) => y.id !== b
1205
1203
  ), s();
1206
1204
  }, 200);
@@ -1210,7 +1208,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1210
1208
  const b = ["dai-notification-queue__item--anim"];
1211
1209
  return t.positionX === "right" ? b.push("dai-notification-queue__item--anim-x-right") : t.positionX === "left" ? b.push("dai-notification-queue__item--anim-x-left") : t.positionX === "center" && t.positionY === "top" ? b.push("dai-notification-queue__item--anim-y-top") : t.positionX === "center" && t.positionY === "bottom" && b.push("dai-notification-queue__item--anim-y-bottom"), b.join(" ");
1212
1210
  });
1213
- return (b, y) => (l(), u("div", {
1211
+ return (b, y) => (a(), u("div", {
1214
1212
  class: w(["dai-notification-queue", {
1215
1213
  "dai-notification-queue--fixed": e.position == "fixed",
1216
1214
  "dai-notification-queue--absolute": e.position == "absolute",
@@ -1229,15 +1227,15 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1229
1227
  "leave-active-class": "dai-notification-queue__item--anim-out"
1230
1228
  }, {
1231
1229
  default: c(() => [
1232
- (l(!0), u(I, null, X(a.value, (m) => (l(), f(mt, {
1233
- key: m.id,
1234
- color: m.color,
1235
- icon: m.type,
1236
- message: m.message,
1237
- detail: m.detail,
1238
- timeout: m.timeout ?? e.timeout,
1239
- modelValue: m.show,
1240
- "onUpdate:modelValue": [(C) => m.show = C, (C) => n(m.id)],
1230
+ (a(!0), u(I, null, X(l.value, (f) => (a(), m(ft, {
1231
+ key: f.id,
1232
+ color: f.color,
1233
+ icon: f.type,
1234
+ message: f.message,
1235
+ detail: f.detail,
1236
+ timeout: f.timeout ?? e.timeout,
1237
+ modelValue: f.show,
1238
+ "onUpdate:modelValue": [(C) => f.show = C, (C) => n(f.id)],
1241
1239
  class: "dai-notification-queue__item"
1242
1240
  }, null, 8, ["color", "icon", "message", "detail", "timeout", "modelValue", "onUpdate:modelValue"]))), 128))
1243
1241
  ]),
@@ -1245,7 +1243,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1245
1243
  }, 8, ["enter-from-class", "leave-to-class"])
1246
1244
  ], 2));
1247
1245
  }
1248
- }), ft = ["aria-valuenow"], It = /* @__PURE__ */ v({
1246
+ }), mt = ["aria-valuenow"], It = /* @__PURE__ */ v({
1249
1247
  __name: "progressbar",
1250
1248
  props: {
1251
1249
  value: {},
@@ -1255,7 +1253,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1255
1253
  },
1256
1254
  setup(e) {
1257
1255
  const t = e, o = $(() => t.value === void 0);
1258
- return (a, i) => (l(), u("div", {
1256
+ return (l, i) => (a(), u("div", {
1259
1257
  class: w(["overflow-hidden text-xs w-full flex-1", {
1260
1258
  rounded: e.rounded,
1261
1259
  "bg-primary-200": e.color == "primary",
@@ -1281,7 +1279,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1281
1279
  "progress-infinite": o.value
1282
1280
  }, "h-full shadow-none relative text-center whitespace-nowrap text-white justify-center"])
1283
1281
  }, null, 6)
1284
- ], 14, ft));
1282
+ ], 14, mt));
1285
1283
  }
1286
1284
  }), vt = {
1287
1285
  key: 0,
@@ -1299,16 +1297,16 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1299
1297
  function o() {
1300
1298
  t.value = !1;
1301
1299
  }
1302
- return T(t, (a) => {
1303
- a ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
1304
- }), (a, i) => (l(), f(Z, { to: "body" }, [
1300
+ return T(t, (l) => {
1301
+ l ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
1302
+ }), (l, i) => (a(), m(Z, { to: "body" }, [
1305
1303
  V(P, {
1306
1304
  appear: "",
1307
1305
  name: "modal",
1308
1306
  duration: { enter: 300, leave: 200 }
1309
1307
  }, {
1310
1308
  default: c(() => [
1311
- t.value ? (l(), u("div", vt, [
1309
+ t.value ? (a(), u("div", vt, [
1312
1310
  i[0] || (i[0] = d("div", {
1313
1311
  class: "modal__backdrop fixed inset-0 bg-primary-50/60 backdrop-blur-sm",
1314
1312
  "aria-hidden": "true"
@@ -1319,7 +1317,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
1319
1317
  class: "min-h-full flex items-center justify-center p-4 sm:p-6"
1320
1318
  }, [
1321
1319
  d("div", ht, [
1322
- p(a.$slots, "default", { close: o })
1320
+ p(l.$slots, "default", { close: o })
1323
1321
  ])
1324
1322
  ])
1325
1323
  ])
@@ -1343,7 +1341,7 @@ export {
1343
1341
  Lt as MenuItem,
1344
1342
  Et as MenuItems,
1345
1343
  jt as Modal,
1346
- mt as Notification,
1344
+ ft as Notification,
1347
1345
  At as NotificationQueue,
1348
1346
  Pt as Offcanvas,
1349
1347
  Ut as Popover,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defaultusr/dai-ui",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"