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