@defaultusr/dai-ui 1.1.10 → 1.1.12

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 +170 -173
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,23 +1,23 @@
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 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";
3
+ import { reactive as ce, watch as T, onUnmounted as K, defineComponent as v, createElementBlock as u, openBlock as l, 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 $, useId as L, mergeProps as x, 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 R, TransitionGroup as ke, withModifiers as $e } from "vue";
4
4
  import './assets/main.css';function xe(e, ...t) {
5
5
  let o = [];
6
- const l = ce(t);
7
- function i() {
8
- l.length && (e.classList.add(...l), o = [...l]);
6
+ const i = ce(t);
7
+ function a() {
8
+ i.length && (e.classList.add(...i), o = [...i]);
9
9
  }
10
10
  function s() {
11
11
  e.classList.remove(...o);
12
12
  }
13
13
  return T(
14
- l,
14
+ i,
15
15
  () => {
16
- s(), i();
16
+ s(), a();
17
17
  },
18
18
  { immediate: !0 }
19
- ), R(s), {
20
- classList: l
19
+ ), K(s), {
20
+ classList: i
21
21
  };
22
22
  }
23
23
  const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
@@ -26,7 +26,7 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
26
26
  text: {}
27
27
  },
28
28
  setup(e) {
29
- return (t, o) => (a(), u("label", _e, [
29
+ return (t, o) => (l(), 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" }, F = /* @__PURE__ */ v({
38
38
  text: {}
39
39
  },
40
40
  setup(e) {
41
- return (t, o) => (a(), u("div", Be, [
41
+ return (t, o) => (l(), 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" }, F = /* @__PURE__ */ v({
57
57
  invalid: { type: Boolean }
58
58
  },
59
59
  setup(e) {
60
- return (t, o) => (a(), u("div", {
60
+ return (t, o) => (l(), 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" }, F = /* @__PURE__ */ v({
69
69
  "dai-form-control__input-group--invalid": e.invalid
70
70
  }])
71
71
  }, [
72
- e.label ? (a(), m(F, {
72
+ e.label ? (l(), m(F, {
73
73
  key: 0,
74
74
  text: e.label,
75
75
  for: e.labelFor,
@@ -104,15 +104,15 @@ const _e = { class: "dai-label" }, F = /* @__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"), l = $(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
108
- return (i, s) => (a(), u("div", {
107
+ const t = e, o = _(() => t.variant ? t.variant : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), i = _(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
108
+ return (a, s) => (l(), 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": l.value === "large"
112
+ "dai-form-control--lg": i.value === "large"
113
113
  }])
114
114
  }, [
115
- e.label && e.labelPosition !== "inside" ? (a(), m(F, {
115
+ e.label && e.labelPosition !== "inside" ? (l(), m(F, {
116
116
  key: 0,
117
117
  for: e.labelFor,
118
118
  text: e.label
@@ -122,21 +122,21 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
122
122
  ...t,
123
123
  label: e.labelPosition === "inside" ? e.label : void 0,
124
124
  variant: o.value,
125
- size: l.value
125
+ size: i.value
126
126
  })), {
127
127
  default: c(() => [
128
- p(i.$slots, "default")
128
+ p(a.$slots, "default")
129
129
  ]),
130
130
  _: 3
131
131
  }, 16),
132
- e.hint ? (a(), m(D, {
132
+ e.hint ? (l(), 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 ? (a(), u("div", ze, [
139
+ e.validationMessage ? (l(), 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,19 +180,19 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
180
180
  }),
181
181
  emits: ["update:modelValue"],
182
182
  setup(e) {
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
- class: i.$attrs.class
183
+ const t = e, o = $(e, "modelValue"), i = t.id || L();
184
+ return (a, s) => (l(), m(S, x(t, {
185
+ labelFor: r(i),
186
+ class: a.$attrs.class
187
187
  }), {
188
188
  default: c(() => [
189
- V(r(te), _({ ...i.$attrs, class: void 0 }, {
190
- id: r(l),
189
+ V(r(te), x({ ...a.$attrs, class: void 0 }, {
190
+ id: r(i),
191
191
  modelValue: o.value,
192
192
  "onUpdate:modelValue": s[0] || (s[0] = (n) => o.value = n)
193
193
  }), {
194
194
  default: c(() => [
195
- p(i.$slots, "default")
195
+ p(a.$slots, "default")
196
196
  ]),
197
197
  _: 3
198
198
  }, 16, ["id", "modelValue"])
@@ -203,7 +203,7 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
203
203
  }), wt = /* @__PURE__ */ v({
204
204
  __name: "comboboxInput",
205
205
  setup(e) {
206
- return (t, o) => (a(), m(r(oe), { class: "dai-form-control__input-group__control" }, {
206
+ return (t, o) => (l(), m(r(oe), { class: "dai-form-control__input-group__control" }, {
207
207
  default: c(() => [
208
208
  p(t.$slots, "default")
209
209
  ]),
@@ -222,23 +222,20 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
222
222
  const t = ve(ae);
223
223
  if (!t)
224
224
  throw new Error("Combobox injectable context is not provided");
225
- $(() => ({
226
- ...t.activatorAttrs.value,
227
- onclick: () => t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 })
228
- }));
229
225
  function o() {
230
226
  t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 });
231
227
  }
232
- return (l, i) => (a(), u("button", _(r(t).activatorAttrs.value, {
228
+ return (i, a) => (l(), u("button", x(r(t).activatorAttrs.value, {
229
+ onKeydown: a[0] || (a[0] = (s) => r(t).activatorOnKeyDown(s)),
233
230
  onClick: o,
234
231
  type: "button",
235
232
  class: "dai-form-control__input-group__control dai-combobox-btn"
236
233
  }), [
237
- p(l.$slots, "default", {}, () => [
238
- r(t).displayValue.value ? (a(), u(I, { key: 1 }, [
234
+ p(i.$slots, "default", {}, () => [
235
+ r(t).displayValue.value ? (l(), u(I, { key: 1 }, [
239
236
  E(k(r(t).displayValue), 1)
240
- ], 64)) : (a(), u("span", Le, k(e.placeholder || "Select..."), 1)),
241
- i[0] || (i[0] = d("svg", {
237
+ ], 64)) : (l(), u("span", Le, k(e.placeholder || "Select..."), 1)),
238
+ a[1] || (a[1] = d("svg", {
242
239
  class: "dai-combobox-btn__chevron",
243
240
  role: "presentation",
244
241
  xmlns: "http://www.w3.org/2000/svg",
@@ -257,7 +254,7 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
257
254
  }), Te = /* @__PURE__ */ v({
258
255
  __name: "comboboxOptions",
259
256
  setup(e) {
260
- return (t, o) => (a(), m(P, {
257
+ return (t, o) => (l(), m(P, {
261
258
  "enter-from-class": "dai-combobox-options--anim",
262
259
  "leave-to-class": "dai-combobox-options--anim"
263
260
  }, {
@@ -283,16 +280,16 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
283
280
  value: {}
284
281
  },
285
282
  setup(e) {
286
- return (t, o) => (a(), m(r(ie), {
283
+ return (t, o) => (l(), m(r(ie), {
287
284
  value: e.value,
288
285
  class: "dai-combobox-option"
289
286
  }, {
290
- default: c(({ isActive: l, isSelected: i }) => [
287
+ default: c(({ isActive: i, isSelected: a }) => [
291
288
  p(t.$slots, "default", {
292
- isActive: l,
293
- isSelected: i
289
+ isActive: i,
290
+ isSelected: a
294
291
  }),
295
- i ? (a(), u("svg", Pe, [...o[0] || (o[0] = [
292
+ a ? (l(), u("svg", Pe, [...o[0] || (o[0] = [
296
293
  d("path", {
297
294
  fill: "currentColor",
298
295
  "fill-rule": "evenodd",
@@ -306,8 +303,8 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
306
303
  }
307
304
  }), Ie = (e, t) => {
308
305
  const o = e.__vccOpts || e;
309
- for (const [l, i] of t)
310
- o[l] = i;
306
+ for (const [i, a] of t)
307
+ o[i] = a;
311
308
  return o;
312
309
  }, je = {}, Oe = {
313
310
  type: "button",
@@ -316,7 +313,7 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
316
313
  "aria-hidden": "true"
317
314
  };
318
315
  function Fe(e, t) {
319
- return a(), u("button", Oe, [
316
+ return l(), u("button", Oe, [
320
317
  p(e.$slots, "default")
321
318
  ]);
322
319
  }
@@ -367,7 +364,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
367
364
  }),
368
365
  emits: ["update:modelValue", "update:files"],
369
366
  setup(e) {
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", {
367
+ const t = e, o = t.id || L(), i = _(() => typeof t.autocomplete == "string" ? t.autocomplete : t.autocomplete ? "on" : "off"), a = $(e, "modelValue"), s = $(e, "files", {
371
368
  set(B) {
372
369
  return n.value && (n.value.files = B), B;
373
370
  }
@@ -376,24 +373,24 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
376
373
  t.validators,
377
374
  t.showValidationError
378
375
  ), f = N(!1);
379
- T(i, () => {
376
+ T(a, () => {
380
377
  s.value = n.value?.files || null;
381
378
  });
382
379
  let C;
383
- const G = $(() => t.type === "password" ? f.value ? "text" : "password" : t.type), H = $(() => t.mask ? t.mask : t.type === "tel" ? {
380
+ const Z = _(() => t.type === "password" ? f.value ? "text" : "password" : t.type), H = _(() => t.mask ? t.mask : t.type === "tel" ? {
384
381
  mask: "{+7} (000) 000-00-00"
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);
382
+ } : t.mask), G = _(() => 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);
386
383
  function W() {
387
384
  f.value = !f.value;
388
385
  }
389
386
  function J() {
390
- i.value = "";
387
+ a.value = "";
391
388
  }
392
389
  function ee(B) {
393
390
  if (C)
394
391
  return;
395
392
  const { value: z } = B.target;
396
- i.value = z;
393
+ a.value = z;
397
394
  }
398
395
  return j(() => {
399
396
  H.value && import("imask").then((B) => {
@@ -401,10 +398,10 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
401
398
  n.value,
402
399
  H.value
403
400
  ), C.on("accept", () => {
404
- i.value = C.value;
401
+ a.value = C.value;
405
402
  });
406
403
  });
407
- }), (B, z) => (a(), m(S, _(t, {
404
+ }), (B, z) => (l(), m(S, x(t, {
408
405
  "label-for": r(o),
409
406
  "validation-message": e.showValidationError ? "" : r(b),
410
407
  invalid: t.invalid || !r(g),
@@ -412,34 +409,34 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
412
409
  }), {
413
410
  default: c(() => [
414
411
  p(B.$slots, "prepend"),
415
- d("input", _({
412
+ d("input", x({
416
413
  ref_key: "formElement",
417
414
  ref: n
418
415
  }, { ...B.$attrs, class: void 0 }, {
419
416
  id: r(o),
420
- type: G.value,
421
- pattern: K.value,
417
+ type: Z.value,
418
+ pattern: G.value,
422
419
  title: Q.value,
423
- autocomplete: l.value,
424
- value: i.value,
420
+ autocomplete: i.value,
421
+ value: a.value,
425
422
  onInputPassive: ee,
426
423
  onKeyupPassive: z[0] || (z[0] = (bt) => !r(g) && r(y)()),
427
424
  class: "dai-form-control__input-group__control dai-form-control__input"
428
425
  }), null, 16, Se),
429
426
  p(B.$slots, "append"),
430
- t.type === "password" && i.value ? (a(), m(Y, {
427
+ t.type === "password" && a.value ? (l(), m(Y, {
431
428
  key: 0,
432
429
  onClick: W
433
430
  }, {
434
431
  default: c(() => [
435
- f.value ? (a(), u("svg", Ne, [...z[2] || (z[2] = [
432
+ f.value ? (l(), u("svg", Ne, [...z[2] || (z[2] = [
436
433
  d("path", {
437
434
  "stroke-linecap": "round",
438
435
  "stroke-linejoin": "round",
439
436
  "stroke-width": "2",
440
437
  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"
441
438
  }, null, -1)
442
- ])])) : (a(), u("svg", Ue, [...z[1] || (z[1] = [
439
+ ])])) : (l(), u("svg", Ue, [...z[1] || (z[1] = [
443
440
  d("path", {
444
441
  "stroke-linecap": "round",
445
442
  "stroke-linejoin": "round",
@@ -456,7 +453,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
456
453
  ]),
457
454
  _: 1
458
455
  })) : h("", !0),
459
- e.clearable && i.value && !t.disabled ? (a(), m(Y, {
456
+ e.clearable && a.value && !t.disabled ? (l(), m(Y, {
460
457
  key: 1,
461
458
  onClick: J
462
459
  }, {
@@ -511,34 +508,34 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
511
508
  }),
512
509
  emits: ["update:modelValue"],
513
510
  setup(e) {
514
- const t = e, o = t.id || L(), l = x(e, "modelValue"), i = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
515
- i,
511
+ const t = e, o = t.id || L(), i = $(e, "modelValue"), a = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
512
+ a,
516
513
  t.validators,
517
514
  t.showValidationError
518
515
  );
519
- return (b, y) => (a(), m(S, _(t, {
516
+ return (b, y) => (l(), m(S, x(t, {
520
517
  "label-for": r(o),
521
518
  "validation-message": e.showValidationError ? "" : r(n),
522
519
  invalid: t.invalid || !r(s),
523
520
  class: b.$attrs.class
524
521
  }), {
525
522
  default: c(() => [
526
- O(d("select", _({
523
+ O(d("select", x({
527
524
  ref_key: "formElement",
528
- ref: i
525
+ ref: a
529
526
  }, { ...b.$attrs, class: void 0 }, {
530
527
  id: r(o),
531
- "onUpdate:modelValue": y[0] || (y[0] = (f) => l.value = f),
528
+ "onUpdate:modelValue": y[0] || (y[0] = (f) => i.value = f),
532
529
  class: "dai-form-control__input-group__control dai-select"
533
530
  }), [
534
531
  p(b.$slots, "default", {}, () => [
535
- (a(!0), u(I, null, X(e.options, (f) => (a(), u("option", {
532
+ (l(!0), u(I, null, X(e.options, (f) => (l(), u("option", {
536
533
  value: f[e.optionValue],
537
534
  key: f[e.optionValue]
538
535
  }, k(f[e.optionText]), 9, De))), 128))
539
536
  ])
540
537
  ], 16, Xe), [
541
- [pe, l.value]
538
+ [pe, i.value]
542
539
  ]),
543
540
  y[1] || (y[1] = d("svg", {
544
541
  class: "dai-select__chevron",
@@ -584,17 +581,17 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
584
581
  }),
585
582
  emits: ["update:modelValue"],
586
583
  setup(e) {
587
- const t = e, o = x(e, "modelValue");
588
- return (l, i) => (a(), m(r(Ee), _(t, {
584
+ const t = e, o = $(e, "modelValue");
585
+ return (i, a) => (l(), m(r(Ee), x(t, {
589
586
  displayValue: (s) => e.options.find((n) => n[e.optionValue] === s)?.[e.optionText] || "",
590
587
  modelValue: o.value,
591
- "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s)
588
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => o.value = s)
592
589
  }), {
593
590
  default: c(() => [
594
591
  V(r(qe), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
595
592
  V(r(Te), null, {
596
593
  default: c(() => [
597
- (a(!0), u(I, null, X(e.options, (s) => (a(), m(r(Ae), {
594
+ (l(!0), u(I, null, X(e.options, (s) => (l(), m(r(Ae), {
598
595
  key: s[e.optionValue],
599
596
  value: s[e.optionValue]
600
597
  }, {
@@ -624,36 +621,36 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
624
621
  }),
625
622
  emits: ["update:modelValue"],
626
623
  setup(e) {
627
- const t = e, o = t.id || L(), l = x(e, "modelValue"), i = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
628
- i,
624
+ const t = e, o = t.id || L(), i = $(e, "modelValue"), a = q("formElement"), { isValid: s, validationMessage: n, validate: g } = A(
625
+ a,
629
626
  t.validators,
630
627
  t.showValidationError
631
628
  );
632
629
  function b() {
633
630
  if (!t.autosize) return;
634
- const y = i.value, f = y.offsetHeight - y.clientHeight;
631
+ const y = a.value, f = y.offsetHeight - y.clientHeight;
635
632
  y.style.height = "auto", y.style.height = `${y.scrollHeight + f}px`;
636
633
  }
637
- return j(b), (y, f) => (a(), m(S, _(t, {
634
+ return j(b), (y, f) => (l(), m(S, x(t, {
638
635
  "label-for": r(o),
639
636
  "validation-message": e.showValidationError ? "" : r(n),
640
637
  invalid: !r(s),
641
638
  class: y.$attrs.class
642
639
  }), {
643
640
  default: c(() => [
644
- O(d("textarea", _({
641
+ O(d("textarea", x({
645
642
  ref_key: "formElement",
646
- ref: i
643
+ ref: a
647
644
  }, { ...y.$attrs, class: void 0 }, {
648
645
  id: r(o),
649
- "onUpdate:modelValue": f[0] || (f[0] = (C) => l.value = C),
646
+ "onUpdate:modelValue": f[0] || (f[0] = (C) => i.value = C),
650
647
  onKeyupPassive: f[1] || (f[1] = (C) => !r(s) && r(g)()),
651
648
  onInputPassive: b,
652
649
  class: ["form-control__textarea", {
653
650
  "form-control__textarea--autosize": e.autosize
654
651
  }]
655
652
  }), null, 16, He), [
656
- [he, l.value]
653
+ [he, i.value]
657
654
  ])
658
655
  ]),
659
656
  _: 1
@@ -674,20 +671,20 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
674
671
  }),
675
672
  emits: ["update:modelValue"],
676
673
  setup(e) {
677
- const t = e, o = x(e, "modelValue"), l = L(), i = q("formElement"), { isValid: s } = A(
678
- i,
674
+ const t = e, o = $(e, "modelValue"), i = L(), a = q("formElement"), { isValid: s } = A(
675
+ a,
679
676
  t.validators,
680
677
  t.showValidationError
681
678
  );
682
- return (n, g) => (a(), u("div", {
679
+ return (n, g) => (l(), u("div", {
683
680
  class: w(["dai-checkbox-control", n.$attrs.class])
684
681
  }, [
685
- O(d("input", _({
682
+ O(d("input", x({
686
683
  ref_key: "formElement",
687
- ref: i,
684
+ ref: a,
688
685
  "onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
689
686
  }, { ...n.$attrs, class: "" }, {
690
- id: r(l),
687
+ id: r(i),
691
688
  type: "checkbox",
692
689
  class: ["dai-checkbox", {
693
690
  [`dai-checkbox--${e.color}`]: e.color,
@@ -696,9 +693,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
696
693
  }), null, 16, Ye), [
697
694
  [be, o.value]
698
695
  ]),
699
- e.label || n.$slots.default ? (a(), m(F, {
696
+ e.label || n.$slots.default ? (l(), m(F, {
700
697
  key: 0,
701
- for: r(l)
698
+ for: r(i)
702
699
  }, {
703
700
  default: c(() => [
704
701
  p(n.$slots, "default", {}, () => [
@@ -707,7 +704,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
707
704
  ]),
708
705
  _: 3
709
706
  }, 8, ["for"])) : h("", !0),
710
- e.hint || n.$slots.hint ? (a(), m(D, {
707
+ e.hint || n.$slots.hint ? (l(), m(D, {
711
708
  key: 1,
712
709
  class: "dai-checkbox-control__hint"
713
710
  }, {
@@ -720,10 +717,10 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
720
717
  })) : h("", !0)
721
718
  ], 2));
722
719
  }
723
- }), Re = { class: "flex items-center h-5" }, Ze = ["value", "id"], Ge = {
720
+ }), Ke = { class: "flex items-center h-5" }, Re = ["value", "id"], Ze = {
724
721
  key: 0,
725
722
  class: "text-sm"
726
- }, Ke = ["for"], Qe = {
723
+ }, Ge = ["for"], Qe = {
727
724
  key: 0,
728
725
  class: "text-secondary-500 dark:text-secondary-400"
729
726
  }, Vt = /* @__PURE__ */ v({
@@ -742,37 +739,37 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
742
739
  }),
743
740
  emits: ["update:modelValue"],
744
741
  setup(e) {
745
- const t = e, o = x(e, "modelValue"), l = L(), i = q("formElement"), { isValid: s } = A(
746
- i,
742
+ const t = e, o = $(e, "modelValue"), i = L(), a = q("formElement"), { isValid: s } = A(
743
+ a,
747
744
  t.validators,
748
745
  t.showValidationError
749
746
  );
750
- return (n, g) => (a(), u("div", {
747
+ return (n, g) => (l(), u("div", {
751
748
  class: w(["flex items-start gap-3", n.$attrs.class])
752
749
  }, [
753
- d("div", Re, [
754
- O(d("input", _({
750
+ d("div", Ke, [
751
+ O(d("input", x({
755
752
  type: "radio",
756
753
  ref_key: "formElement",
757
- ref: i,
754
+ ref: a,
758
755
  "onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
759
756
  }, { ...n.$attrs, class: "" }, {
760
757
  value: e.value,
761
- id: r(l),
758
+ id: r(i),
762
759
  class: ["radio", {
763
760
  [`radio--${e.color}`]: e.color,
764
761
  "radio--invalid": !r(s)
765
762
  }]
766
- }), null, 16, Ze), [
763
+ }), null, 16, Re), [
767
764
  [ye, o.value]
768
765
  ])
769
766
  ]),
770
- e.label ? (a(), u("div", Ge, [
767
+ e.label ? (l(), u("div", Ze, [
771
768
  d("label", {
772
- for: r(l),
769
+ for: r(i),
773
770
  class: "font-medium select-none cursor-pointer"
774
- }, k(e.label), 9, Ke),
775
- e.hint ? (a(), u("p", Qe, k(e.hint), 1)) : h("", !0)
771
+ }, k(e.label), 9, Ge),
772
+ e.hint ? (l(), u("p", Qe, k(e.hint), 1)) : h("", !0)
776
773
  ])) : h("", !0)
777
774
  ], 2));
778
775
  }
@@ -787,39 +784,39 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
787
784
  }),
788
785
  emits: ["update:modelValue"],
789
786
  setup(e) {
790
- const t = x(e, "modelValue"), o = L();
791
- return (l, i) => (a(), u("div", We, [
787
+ const t = $(e, "modelValue"), o = L();
788
+ return (i, a) => (l(), u("div", We, [
792
789
  d("button", {
793
- onClick: i[0] || (i[0] = (s) => t.value = !t.value),
790
+ onClick: a[0] || (a[0] = (s) => t.value = !t.value),
794
791
  id: r(o),
795
792
  "aria-checked": t.value,
796
793
  role: "switch",
797
794
  type: "button",
798
795
  tabindex: "0",
799
796
  class: w(["dai-switch", [t.value ? "dai-switch--on" : "dai-switch--off"]])
800
- }, [...i[1] || (i[1] = [
797
+ }, [...a[1] || (a[1] = [
801
798
  d("div", {
802
799
  "aria-hidden": "true",
803
800
  class: "dai-switch__thumb"
804
801
  }, null, -1)
805
802
  ])], 10, Je),
806
- e.label || l.$slots.default ? (a(), m(F, {
803
+ e.label || i.$slots.default ? (l(), m(F, {
807
804
  key: 0,
808
805
  for: r(o)
809
806
  }, {
810
807
  default: c(() => [
811
- p(l.$slots, "default", {}, () => [
808
+ p(i.$slots, "default", {}, () => [
812
809
  E(k(e.label), 1)
813
810
  ])
814
811
  ]),
815
812
  _: 3
816
813
  }, 8, ["for"])) : h("", !0),
817
- e.hint || l.$slots.hint ? (a(), m(D, {
814
+ e.hint || i.$slots.hint ? (l(), m(D, {
818
815
  key: 1,
819
816
  class: "dai-switch-control__hint"
820
817
  }, {
821
818
  default: c(() => [
822
- p(l.$slots, "hint", {}, () => [
819
+ p(i.$slots, "hint", {}, () => [
823
820
  E(k(e.hint), 1)
824
821
  ])
825
822
  ]),
@@ -852,19 +849,19 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
852
849
  condensed: { type: Boolean }
853
850
  },
854
851
  setup(e) {
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"), {
852
+ const t = e, o = _(() => t.submit ? "submit" : t.reset ? "reset" : "button"), i = _(() => t.variant ? t.variant : t.plain ? "plain" : t.muted ? "muted" : t.outlined ? "outlined" : "flat"), a = _(() => t.size ? t.size : t.sm ? "small" : t.lg ? "large" : "medium");
853
+ return (s, n) => (l(), m(ge(e.href ? "a" : "button"), {
857
854
  type: e.href ? void 0 : o.value,
858
855
  form: typeof e.submit == "string" ? e.submit : void 0,
859
856
  href: e.href,
860
857
  class: w(["dai-btn", {
861
858
  [`dai-btn--${e.color}`]: e.color,
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",
866
- "dai-btn--sm": i.value === "small",
867
- "dai-btn--lg": i.value === "large",
859
+ "dai-btn--flat": i.value === "flat",
860
+ "dai-btn--plain": i.value === "plain",
861
+ "dai-btn--muted": i.value === "muted",
862
+ "dai-btn--outlined": i.value === "outlined",
863
+ "dai-btn--sm": a.value === "small",
864
+ "dai-btn--lg": a.value === "large",
868
865
  "dai-btn--loading": e.loading,
869
866
  "dai-btn--block": e.block,
870
867
  "dai-btn--rounded": e.rounded,
@@ -872,7 +869,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
872
869
  }])
873
870
  }, {
874
871
  default: c(() => [
875
- e.loading ? (a(), u("span", et, [...n[0] || (n[0] = [
872
+ e.loading ? (l(), u("span", et, [...n[0] || (n[0] = [
876
873
  d("svg", {
877
874
  xmlns: "http://www.w3.org/2000/svg",
878
875
  fill: "none",
@@ -894,12 +891,12 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
894
891
  ], -1)
895
892
  ])])) : h("", !0),
896
893
  d("span", tt, [
897
- e.icon ? (a(), u("div", {
894
+ e.icon ? (l(), u("div", {
898
895
  key: 0,
899
896
  class: w([e.icon, "dai-btn__icon"])
900
897
  }, null, 2)) : h("", !0),
901
898
  p(s.$slots, "default"),
902
- e.iconAfter ? (a(), u("div", {
899
+ e.iconAfter ? (l(), u("div", {
903
900
  key: 1,
904
901
  class: w([e.iconAfter, "dai-btn__icon"])
905
902
  }, null, 2)) : h("", !0)
@@ -911,7 +908,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
911
908
  }), zt = /* @__PURE__ */ v({
912
909
  __name: "popoverDialog",
913
910
  setup(e) {
914
- return (t, o) => (a(), m(P, {
911
+ return (t, o) => (l(), m(P, {
915
912
  "enter-from-class": "dai-popover-dialog--anim",
916
913
  "leave-to-class": "dai-popover-dialog--anim"
917
914
  }, {
@@ -929,7 +926,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
929
926
  }), Et = /* @__PURE__ */ v({
930
927
  __name: "menuItems",
931
928
  setup(e) {
932
- return (t, o) => (a(), m(P, {
929
+ return (t, o) => (l(), m(P, {
933
930
  "enter-from-class": "dai-menu-items--anim",
934
931
  "leave-to-class": "dai-menu-items--anim"
935
932
  }, {
@@ -953,16 +950,16 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
953
950
  icon: {}
954
951
  },
955
952
  setup(e) {
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, [
953
+ return (t, o) => (l(), m(r(re), { class: "dai-menu-item" }, {
954
+ default: c(({ isActive: i, isSelected: a }) => [
955
+ e.icon ? (l(), u("div", ot, [
959
956
  d("div", {
960
957
  class: w(["h-5 w-5", e.icon])
961
958
  }, null, 2)
962
959
  ])) : h("", !0),
963
960
  p(t.$slots, "default", {
964
- isActive: l,
965
- isSelected: i
961
+ isActive: i,
962
+ isSelected: a
966
963
  })
967
964
  ]),
968
965
  _: 3
@@ -976,7 +973,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
976
973
  value: {}
977
974
  },
978
975
  setup(e) {
979
- return (t, o) => (a(), m(r(de), {
976
+ return (t, o) => (l(), m(r(de), {
980
977
  id: e.id,
981
978
  "aria-controls": e.ariaControls,
982
979
  value: e.value,
@@ -991,22 +988,22 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
991
988
  }), Tt = /* @__PURE__ */ v({
992
989
  __name: "tabList",
993
990
  setup(e) {
994
- const t = q("tablist"), o = q("slider"), l = N({});
995
- function i() {
991
+ const t = q("tablist"), o = q("slider"), i = N({});
992
+ function a() {
996
993
  if (!o.value) return;
997
994
  const s = t.value?.$el;
998
995
  if (!s) return;
999
996
  const n = s.querySelector("[aria-selected=true]");
1000
- n && (l.value = {
997
+ n && (i.value = {
1001
998
  left: `${n.offsetLeft}px`,
1002
999
  right: `${s.offsetWidth - n.offsetLeft - n.offsetWidth}px`,
1003
1000
  transition: o.value.offsetLeft > n.offsetLeft ? "left .2s, right .5s" : "left .5s, right .2s"
1004
1001
  });
1005
1002
  }
1006
- return j(() => we(i)), (s, n) => (a(), m(r(ue), {
1003
+ return j(() => we(a)), (s, n) => (l(), m(r(ue), {
1007
1004
  ref_key: "tablist",
1008
1005
  ref: t,
1009
- onClickPassive: i,
1006
+ onClickPassive: a,
1010
1007
  class: "dai-tab-list"
1011
1008
  }, {
1012
1009
  default: c(() => [
@@ -1014,7 +1011,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1014
1011
  ref_key: "slider",
1015
1012
  ref: o,
1016
1013
  class: "dai-tab-list__slider",
1017
- style: U(l.value)
1014
+ style: U(i.value)
1018
1015
  }, null, 4),
1019
1016
  p(s.$slots, "default")
1020
1017
  ]),
@@ -1037,21 +1034,21 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1037
1034
  }),
1038
1035
  emits: ["update:modelValue"],
1039
1036
  setup(e) {
1040
- const t = e, o = x(e, "modelValue"), l = t.id ?? L(), { classList: i } = xe(document.body, "nui-body-push");
1037
+ const t = e, o = $(e, "modelValue"), i = t.id ?? L(), { classList: a } = xe(document.body, "nui-body-push");
1041
1038
  T(o, () => {
1042
- if (!t.push || (i.splice(1), !o.value))
1039
+ if (!t.push || (a.splice(1), !o.value))
1043
1040
  return;
1044
1041
  let n = "nui-body-push--" + t.position;
1045
- t.lg && (n += "--lg"), t.xl && (n += "--xl"), i.push(n);
1042
+ t.lg && (n += "--lg"), t.xl && (n += "--xl"), a.push(n);
1046
1043
  });
1047
1044
  function s(n) {
1048
- n.target.closest(`#${l}`) || t.closeOnOutsideClick && (o.value = !1);
1045
+ n.target.closest(`#${i}`) || t.closeOnOutsideClick && (o.value = !1);
1049
1046
  }
1050
1047
  return j(() => {
1051
1048
  window.addEventListener("click", s, { passive: !0 });
1052
- }), R(() => {
1049
+ }), K(() => {
1053
1050
  window.removeEventListener("click", s);
1054
- }), (n, g) => (a(), m(Z, { to: "body" }, [
1051
+ }), (n, g) => (l(), m(R, { to: "body" }, [
1055
1052
  V(P, {
1056
1053
  appear: "",
1057
1054
  "enter-from-class": "nui-offcanvas--animate-hidden",
@@ -1062,9 +1059,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1062
1059
  "leave-active-class": "ease-in-out"
1063
1060
  }, {
1064
1061
  default: c(() => [
1065
- o.value ? (a(), u("div", _({
1062
+ o.value ? (l(), u("div", x({
1066
1063
  key: 0,
1067
- id: r(l)
1064
+ id: r(i)
1068
1065
  }, n.$attrs, {
1069
1066
  class: ["nui-offcanvas", {
1070
1067
  [`nui-offcanvas--${e.position}`]: !0,
@@ -1130,21 +1127,21 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1130
1127
  }),
1131
1128
  emits: ["update:modelValue"],
1132
1129
  setup(e) {
1133
- const t = e, o = x(e, "modelValue");
1134
- let l;
1135
- function i() {
1136
- clearTimeout(l), o.value && t.timeout && (l = setTimeout(() => o.value = !1, t.timeout));
1130
+ const t = e, o = $(e, "modelValue");
1131
+ let i;
1132
+ function a() {
1133
+ clearTimeout(i), o.value && t.timeout && (i = setTimeout(() => o.value = !1, t.timeout));
1137
1134
  }
1138
- return T(o, i, { immediate: !0 }), (s, n) => o.value ? (a(), u("div", lt, [
1135
+ return T(o, a, { immediate: !0 }), (s, n) => o.value ? (l(), u("div", lt, [
1139
1136
  d("div", {
1140
1137
  class: w(["dai-notification", [`dai-notification--${e.color || "secondary"}`]])
1141
1138
  }, [
1142
- e.icon ? (a(), u("div", {
1139
+ e.icon ? (l(), u("div", {
1143
1140
  key: 0,
1144
1141
  class: w(["dai-notification__icon", [`dai-notification__icon--${e.icon}`]])
1145
1142
  }, [
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)
1143
+ (l(), u("svg", it, [
1144
+ 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)
1148
1145
  ]))
1149
1146
  ], 2)) : h("", !0),
1150
1147
  d("div", ut, [
@@ -1153,9 +1150,9 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1153
1150
  "dai-notification__content__message--bold": e.detail
1154
1151
  }])
1155
1152
  }, k(e.message), 3),
1156
- e.detail ? (a(), u("div", ct, k(e.detail), 1)) : h("", !0)
1153
+ e.detail ? (l(), u("div", ct, k(e.detail), 1)) : h("", !0)
1157
1154
  ]),
1158
- e.dismissible ? (a(), u("div", {
1155
+ e.dismissible ? (l(), u("div", {
1159
1156
  key: 1,
1160
1157
  onClick: n[0] || (n[0] = (g) => o.value = !1),
1161
1158
  class: "dai-notification__dismiss"
@@ -1191,24 +1188,24 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1191
1188
  }),
1192
1189
  emits: ["update:queue"],
1193
1190
  setup(e) {
1194
- const t = e, o = x(e, "queue"), l = N([]);
1195
- let i = 0;
1191
+ const t = e, o = $(e, "queue"), i = N([]);
1192
+ let a = 0;
1196
1193
  function s() {
1197
- o.value.length === 0 || l.value.length >= t.length || (l.value.push({ ...o.value[0], id: i++, show: !0 }), o.value.shift());
1194
+ o.value.length === 0 || i.value.length >= t.length || (i.value.push({ ...o.value[0], id: a++, show: !0 }), o.value.shift());
1198
1195
  }
1199
1196
  function n(b) {
1200
1197
  setTimeout(() => {
1201
- l.value = l.value.filter(
1198
+ i.value = i.value.filter(
1202
1199
  (y) => y.id !== b
1203
1200
  ), s();
1204
1201
  }, 200);
1205
1202
  }
1206
1203
  T(o, s, { immediate: !0, deep: !0 });
1207
- const g = $(() => {
1204
+ const g = _(() => {
1208
1205
  const b = ["dai-notification-queue__item--anim"];
1209
1206
  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(" ");
1210
1207
  });
1211
- return (b, y) => (a(), u("div", {
1208
+ return (b, y) => (l(), u("div", {
1212
1209
  class: w(["dai-notification-queue", {
1213
1210
  "dai-notification-queue--fixed": e.position == "fixed",
1214
1211
  "dai-notification-queue--absolute": e.position == "absolute",
@@ -1227,7 +1224,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1227
1224
  "leave-active-class": "dai-notification-queue__item--anim-out"
1228
1225
  }, {
1229
1226
  default: c(() => [
1230
- (a(!0), u(I, null, X(l.value, (f) => (a(), m(ft, {
1227
+ (l(!0), u(I, null, X(i.value, (f) => (l(), m(ft, {
1231
1228
  key: f.id,
1232
1229
  color: f.color,
1233
1230
  icon: f.type,
@@ -1252,8 +1249,8 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1252
1249
  rounded: { type: Boolean, default: !0 }
1253
1250
  },
1254
1251
  setup(e) {
1255
- const t = e, o = $(() => t.value === void 0);
1256
- return (l, i) => (a(), u("div", {
1252
+ const t = e, o = _(() => t.value === void 0);
1253
+ return (i, a) => (l(), u("div", {
1257
1254
  class: w(["overflow-hidden text-xs w-full flex-1", {
1258
1255
  rounded: e.rounded,
1259
1256
  "bg-primary-200": e.color == "primary",
@@ -1293,21 +1290,21 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1293
1290
  },
1294
1291
  emits: ["update:modelValue"],
1295
1292
  setup(e) {
1296
- const t = x(e, "modelValue");
1293
+ const t = $(e, "modelValue");
1297
1294
  function o() {
1298
1295
  t.value = !1;
1299
1296
  }
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" }, [
1297
+ return T(t, (i) => {
1298
+ i ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
1299
+ }), (i, a) => (l(), m(R, { to: "body" }, [
1303
1300
  V(P, {
1304
1301
  appear: "",
1305
1302
  name: "modal",
1306
1303
  duration: { enter: 300, leave: 200 }
1307
1304
  }, {
1308
1305
  default: c(() => [
1309
- t.value ? (a(), u("div", vt, [
1310
- i[0] || (i[0] = d("div", {
1306
+ t.value ? (l(), u("div", vt, [
1307
+ a[0] || (a[0] = d("div", {
1311
1308
  class: "modal__backdrop fixed inset-0 bg-primary-50/60 backdrop-blur-sm",
1312
1309
  "aria-hidden": "true"
1313
1310
  }, null, -1)),
@@ -1317,7 +1314,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1317
1314
  class: "min-h-full flex items-center justify-center p-4 sm:p-6"
1318
1315
  }, [
1319
1316
  d("div", ht, [
1320
- p(l.$slots, "default", { close: o })
1317
+ p(i.$slots, "default", { close: o })
1321
1318
  ])
1322
1319
  ])
1323
1320
  ])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defaultusr/dai-ui",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"