@iaclinical/components 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,18 @@
1
- import { defineComponent as L, computed as g, createElementBlock as o, openBlock as s, normalizeClass as v, createElementVNode as a, createCommentVNode as f, renderSlot as $, toDisplayString as C, createBlock as P, Teleport as X, createVNode as G, Transition as Q, withCtx as U, withModifiers as I, createTextVNode as K, ref as V, normalizeStyle as W, onMounted as ee, onUnmounted as te, watch as Y, nextTick as J, Fragment as E, renderList as A, resolveDynamicComponent as Z, withDirectives as se, vModelText as oe } from "vue";
1
+ import { defineComponent as L, computed as g, createElementBlock as o, openBlock as s, normalizeClass as v, createElementVNode as a, createCommentVNode as c, renderSlot as C, toDisplayString as $, createBlock as q, Teleport as X, createVNode as G, Transition as Q, withCtx as U, withModifiers as I, createTextVNode as A, ref as V, normalizeStyle as P, onMounted as ee, onUnmounted as te, watch as Y, nextTick as J, Fragment as E, renderList as W, resolveDynamicComponent as Z, withDirectives as se, vModelText as oe } from "vue";
2
2
  const le = { class: "flex items-center gap-4" }, ae = {
3
3
  key: 1,
4
4
  class: "text-lg font-bold text-primary-50 font-poppins"
5
- }, ne = { class: "flex-1 flex justify-center" }, re = { class: "flex items-center gap-3" }, ie = /* @__PURE__ */ L({
5
+ }, ne = { class: "flex-1 flex justify-center" }, re = {
6
+ key: 0,
7
+ class: "text-lg font-bold text-primary-50 font-poppins"
8
+ }, ie = { class: "flex items-center gap-3" }, de = {
9
+ key: 0,
10
+ class: "text-lg font-bold text-primary-50 font-poppins"
11
+ }, ue = /* @__PURE__ */ L({
6
12
  __name: "AppBar",
7
13
  props: {
8
14
  title: { default: "" },
15
+ titlePosition: { default: "left" },
9
16
  showMenuButton: { type: Boolean, default: !0 },
10
17
  variant: { default: "default" },
11
18
  sticky: { type: Boolean, default: !0 },
@@ -19,7 +26,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
19
26
  default: "bg-primary-700 text-primary-50",
20
27
  dark: "bg-secondary-900 text-white",
21
28
  light: "bg-white text-secondary-900 border-b border-secondary-200"
22
- }, c = {
29
+ }, f = {
23
30
  sm: "h-12",
24
31
  md: "h-14",
25
32
  lg: "h-16"
@@ -27,7 +34,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
27
34
  return [
28
35
  d,
29
36
  r[e.variant],
30
- c[e.height],
37
+ f[e.height],
31
38
  i,
32
39
  x
33
40
  ].join(" ");
@@ -38,7 +45,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
38
45
  a("div", le, [
39
46
  t.showMenuButton ? (s(), o("button", {
40
47
  key: 0,
41
- onClick: r[0] || (r[0] = (c) => u("toggle-menu")),
48
+ onClick: r[0] || (r[0] = (f) => u("toggle-menu")),
42
49
  class: "p-2 hover:bg-primary-600 rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
43
50
  "aria-label": "Toggle menu"
44
51
  }, [...r[1] || (r[1] = [
@@ -56,27 +63,29 @@ const le = { class: "flex items-center gap-4" }, ae = {
56
63
  d: "M4 6h16M4 12h16M4 18h16"
57
64
  })
58
65
  ], -1)
59
- ])])) : f("", !0),
60
- t.title ? (s(), o("div", ae, C(t.title), 1)) : f("", !0),
61
- $(d.$slots, "left", {}, void 0, !0)
66
+ ])])) : c("", !0),
67
+ t.title && t.titlePosition === "left" ? (s(), o("div", ae, $(t.title), 1)) : c("", !0),
68
+ C(d.$slots, "left", {}, void 0, !0)
62
69
  ]),
63
70
  a("div", ne, [
64
- $(d.$slots, "center", {}, void 0, !0)
71
+ t.title && t.titlePosition === "center" ? (s(), o("div", re, $(t.title), 1)) : c("", !0),
72
+ C(d.$slots, "center", {}, void 0, !0)
65
73
  ]),
66
- a("div", re, [
67
- $(d.$slots, "right", {}, void 0, !0)
74
+ a("div", ie, [
75
+ t.title && t.titlePosition === "right" ? (s(), o("div", de, $(t.title), 1)) : c("", !0),
76
+ C(d.$slots, "right", {}, void 0, !0)
68
77
  ])
69
78
  ], 2));
70
79
  }
71
- }), R = (t, y) => {
80
+ }), K = (t, y) => {
72
81
  const e = t.__vccOpts || t;
73
82
  for (const [u, n] of y)
74
83
  e[u] = n;
75
84
  return e;
76
- }, Et = /* @__PURE__ */ R(ie, [["__scopeId", "data-v-8c81fc6d"]]), de = ["type", "disabled", "aria-label"], ue = {
85
+ }, Ft = /* @__PURE__ */ K(ue, [["__scopeId", "data-v-883474b5"]]), ce = ["type", "disabled", "aria-label"], fe = {
77
86
  key: 0,
78
87
  class: "absolute top-0 right-0 inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-bold leading-none text-white transform translate-x-1/2 -translate-y-1/2 bg-danger-600 rounded-full min-w-[1.25rem]"
79
- }, Ht = /* @__PURE__ */ L({
88
+ }, Pt = /* @__PURE__ */ L({
80
89
  __name: "Button",
81
90
  props: {
82
91
  variant: { default: "primary" },
@@ -110,27 +119,27 @@ const le = { class: "flex items-center gap-4" }, ae = {
110
119
  none: "rounded-none"
111
120
  };
112
121
  return `${i} ${x[e.variant]} ${m[e.size]} ${j[e.radius]}`;
113
- }), c = (i) => {
122
+ }), f = (i) => {
114
123
  e.disabled || u("click", i);
115
124
  };
116
125
  return (i, x) => (s(), o("button", {
117
126
  class: v(r.value),
118
127
  type: t.type,
119
128
  disabled: t.disabled,
120
- onClick: c,
129
+ onClick: f,
121
130
  "aria-label": t.ariaLabel
122
131
  }, [
123
- $(i.$slots, "default"),
124
- n.value && t.badge && t.badge > 0 ? (s(), o("span", ue, C(d.value), 1)) : f("", !0)
125
- ], 10, de));
132
+ C(i.$slots, "default"),
133
+ n.value && t.badge && t.badge > 0 ? (s(), o("span", fe, $(d.value), 1)) : c("", !0)
134
+ ], 10, ce));
126
135
  }
127
- }), ce = {
136
+ }), pe = {
128
137
  key: 0,
129
138
  class: "border-b border-gray-100 px-6 py-4"
130
- }, fe = { class: "px-6 py-4" }, pe = {
139
+ }, ge = { class: "px-6 py-4" }, he = {
131
140
  key: 1,
132
141
  class: "border-t border-gray-100 px-6 py-4 bg-gray-50"
133
- }, Ft = /* @__PURE__ */ L({
142
+ }, Wt = /* @__PURE__ */ L({
134
143
  __name: "Card",
135
144
  props: {
136
145
  shadow: { default: "md" },
@@ -160,21 +169,21 @@ const le = { class: "flex items-center gap-4" }, ae = {
160
169
  return (d, r) => (s(), o("div", {
161
170
  class: v(n.value)
162
171
  }, [
163
- d.$slots.header ? (s(), o("div", ce, [
164
- $(d.$slots, "header")
165
- ])) : f("", !0),
166
- a("div", fe, [
167
- $(d.$slots, "default")
172
+ d.$slots.header ? (s(), o("div", pe, [
173
+ C(d.$slots, "header")
174
+ ])) : c("", !0),
175
+ a("div", ge, [
176
+ C(d.$slots, "default")
168
177
  ]),
169
- d.$slots.footer ? (s(), o("div", pe, [
170
- $(d.$slots, "footer")
171
- ])) : f("", !0)
178
+ d.$slots.footer ? (s(), o("div", he, [
179
+ C(d.$slots, "footer")
180
+ ])) : c("", !0)
172
181
  ], 2));
173
182
  }
174
- }), ge = { class: "flex items-center justify-between border-b border-gray-100 px-8 py-6" }, he = { class: "text-xl font-semibold text-gray-900" }, be = { class: "px-8 py-6" }, ve = {
183
+ }), be = { class: "flex items-center justify-between border-b border-gray-100 px-8 py-6" }, ve = { class: "text-xl font-semibold text-gray-900" }, ye = { class: "px-8 py-6" }, xe = {
175
184
  key: 0,
176
185
  class: "border-t border-gray-100 px-8 py-6 bg-gray-50"
177
- }, ye = /* @__PURE__ */ L({
186
+ }, me = /* @__PURE__ */ L({
178
187
  __name: "Dialog",
179
188
  props: {
180
189
  modelValue: { type: Boolean, default: !1 },
@@ -185,13 +194,13 @@ const le = { class: "flex items-center gap-4" }, ae = {
185
194
  setup(t, { emit: y }) {
186
195
  const e = t, u = y, n = g({
187
196
  get: () => e.modelValue,
188
- set: (c) => u("update:modelValue", c)
197
+ set: (f) => u("update:modelValue", f)
189
198
  }), d = () => {
190
199
  n.value = !1;
191
200
  }, r = () => {
192
201
  e.closeOnBackdrop && d();
193
202
  };
194
- return (c, i) => (s(), P(X, { to: "body" }, [
203
+ return (f, i) => (s(), q(X, { to: "body" }, [
195
204
  G(Q, { name: "dialog" }, {
196
205
  default: U(() => [
197
206
  n.value ? (s(), o("div", {
@@ -204,10 +213,10 @@ const le = { class: "flex items-center gap-4" }, ae = {
204
213
  onClick: i[0] || (i[0] = I(() => {
205
214
  }, ["stop"]))
206
215
  }, [
207
- a("div", ge, [
208
- a("h2", he, [
209
- $(c.$slots, "title", {}, () => [
210
- K(C(t.title), 1)
216
+ a("div", be, [
217
+ a("h2", ve, [
218
+ C(f.$slots, "title", {}, () => [
219
+ A($(t.title), 1)
211
220
  ], !0)
212
221
  ]),
213
222
  a("button", {
@@ -231,32 +240,32 @@ const le = { class: "flex items-center gap-4" }, ae = {
231
240
  ], -1)
232
241
  ])])
233
242
  ]),
234
- a("div", be, [
235
- $(c.$slots, "default", {}, void 0, !0)
243
+ a("div", ye, [
244
+ C(f.$slots, "default", {}, void 0, !0)
236
245
  ]),
237
- c.$slots.footer ? (s(), o("div", ve, [
238
- $(c.$slots, "footer", {}, void 0, !0)
239
- ])) : f("", !0)
246
+ f.$slots.footer ? (s(), o("div", xe, [
247
+ C(f.$slots, "footer", {}, void 0, !0)
248
+ ])) : c("", !0)
240
249
  ])
241
- ])) : f("", !0)
250
+ ])) : c("", !0)
242
251
  ]),
243
252
  _: 3
244
253
  })
245
254
  ]));
246
255
  }
247
- }), Wt = /* @__PURE__ */ R(ye, [["__scopeId", "data-v-091e8739"]]), xe = ["accept", "multiple", "disabled"], me = { class: "flex flex-col items-center justify-center gap-4 text-center" }, ke = { class: "w-32 h-32 flex items-center justify-center" }, we = ["src", "alt"], $e = {
256
+ }), At = /* @__PURE__ */ K(me, [["__scopeId", "data-v-091e8739"]]), ke = ["accept", "multiple", "disabled"], we = { class: "flex flex-col items-center justify-center gap-4 text-center" }, $e = { class: "w-32 h-32 flex items-center justify-center" }, Ce = ["src", "alt"], Be = {
248
257
  key: 1,
249
258
  class: "w-full h-full text-gray-400",
250
259
  fill: "none",
251
260
  stroke: "currentColor",
252
261
  viewBox: "0 0 24 24"
253
- }, Ce = { class: "text-center" }, Be = { class: "text-base font-medium text-gray-700" }, _e = { class: "text-primary-700" }, Te = { class: "flex items-center gap-3 flex-1 min-w-0" }, Me = { class: "flex-1 min-w-0" }, ze = { class: "text-sm font-medium text-gray-900 truncate" }, Ve = { class: "text-xs text-gray-500" }, je = {
262
+ }, _e = { class: "text-center" }, Te = { class: "text-base font-medium text-gray-700" }, Me = { class: "text-primary-700" }, ze = { class: "flex items-center gap-3 flex-1 min-w-0" }, Ve = { class: "flex-1 min-w-0" }, je = { class: "text-sm font-medium text-gray-900 truncate" }, Le = { class: "text-xs text-gray-500" }, Se = {
254
263
  key: 1,
255
264
  class: "text-xs text-gray-500 mt-2"
256
- }, Le = {
265
+ }, De = {
257
266
  key: 2,
258
267
  class: "text-sm text-danger-500 mt-2"
259
- }, At = /* @__PURE__ */ L({
268
+ }, Kt = /* @__PURE__ */ L({
260
269
  __name: "FileUpload",
261
270
  props: {
262
271
  modelValue: { default: null },
@@ -272,7 +281,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
272
281
  },
273
282
  emits: ["update:modelValue", "change", "error"],
274
283
  setup(t, { emit: y }) {
275
- const e = t, u = y, n = V(null), d = V(!1), r = V(e.modelValue), c = V(""), i = () => {
284
+ const e = t, u = y, n = V(null), d = V(!1), r = V(e.modelValue), f = V(""), i = () => {
276
285
  var B;
277
286
  (B = n.value) == null || B.click();
278
287
  }, x = () => {
@@ -282,9 +291,9 @@ const le = { class: "flex items-center gap-4" }, ae = {
282
291
  }, j = () => {
283
292
  d.value = !1;
284
293
  }, D = (B) => {
285
- if (c.value = "", e.maxSize && B.size > e.maxSize) {
294
+ if (f.value = "", e.maxSize && B.size > e.maxSize) {
286
295
  const b = (e.maxSize / 1048576).toFixed(2);
287
- return c.value = `El archivo excede el tamaño máximo de ${b}MB`, u("error", c.value), !1;
296
+ return f.value = `El archivo excede el tamaño máximo de ${b}MB`, u("error", f.value), !1;
288
297
  }
289
298
  return !0;
290
299
  }, _ = (B) => {
@@ -297,7 +306,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
297
306
  const b = (T = B.dataTransfer) == null ? void 0 : T.files[0];
298
307
  b && D(b) && (r.value = b, u("update:modelValue", b), u("change", b));
299
308
  }, H = () => {
300
- r.value = null, c.value = "", n.value && (n.value.value = ""), u("update:modelValue", null), u("change", null);
309
+ r.value = null, f.value = "", n.value && (n.value.value = ""), u("update:modelValue", null), u("change", null);
301
310
  }, F = (B) => {
302
311
  if (B === 0) return "0 Bytes";
303
312
  const b = 1024, T = ["Bytes", "KB", "MB", "GB"], S = Math.floor(Math.log(B) / Math.log(b));
@@ -322,15 +331,15 @@ const le = { class: "flex items-center gap-4" }, ae = {
322
331
  disabled: t.disabled,
323
332
  class: "hidden",
324
333
  onChange: _
325
- }, null, 40, xe),
326
- a("div", me, [
327
- a("div", ke, [
334
+ }, null, 40, ke),
335
+ a("div", we, [
336
+ a("div", $e, [
328
337
  t.illustration ? (s(), o("img", {
329
338
  key: 0,
330
339
  src: t.illustration,
331
340
  alt: t.illustrationAlt,
332
341
  class: "max-w-full max-h-full object-contain"
333
- }, null, 8, we)) : (s(), o("svg", $e, [...b[1] || (b[1] = [
342
+ }, null, 8, Ce)) : (s(), o("svg", Be, [...b[1] || (b[1] = [
334
343
  a("path", {
335
344
  "stroke-linecap": "round",
336
345
  "stroke-linejoin": "round",
@@ -339,10 +348,10 @@ const le = { class: "flex items-center gap-4" }, ae = {
339
348
  }, null, -1)
340
349
  ])]))
341
350
  ]),
342
- a("div", Ce, [
343
- a("p", Be, [
344
- K(C(t.mainText) + " ", 1),
345
- a("span", _e, C(t.linkText), 1)
351
+ a("div", _e, [
352
+ a("p", Te, [
353
+ A($(t.mainText) + " ", 1),
354
+ a("span", Me, $(t.linkText), 1)
346
355
  ])
347
356
  ]),
348
357
  r.value ? (s(), o("div", {
@@ -351,7 +360,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
351
360
  onClick: b[0] || (b[0] = I(() => {
352
361
  }, ["stop"]))
353
362
  }, [
354
- a("div", Te, [
363
+ a("div", ze, [
355
364
  b[2] || (b[2] = a("svg", {
356
365
  class: "w-6 h-6 text-gray-600 flex-shrink-0",
357
366
  fill: "none",
@@ -365,12 +374,12 @@ const le = { class: "flex items-center gap-4" }, ae = {
365
374
  d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
366
375
  })
367
376
  ], -1)),
368
- a("div", Me, [
369
- a("p", ze, C(r.value.name), 1),
370
- a("p", Ve, C(F(r.value.size)), 1)
377
+ a("div", Ve, [
378
+ a("p", je, $(r.value.name), 1),
379
+ a("p", Le, $(F(r.value.size)), 1)
371
380
  ])
372
381
  ]),
373
- t.disabled ? f("", !0) : (s(), o("button", {
382
+ t.disabled ? c("", !0) : (s(), o("button", {
374
383
  key: 0,
375
384
  onClick: I(H, ["stop"]),
376
385
  class: "ml-3 text-gray-400 hover:text-danger-500 transition-colors"
@@ -387,16 +396,16 @@ const le = { class: "flex items-center gap-4" }, ae = {
387
396
  })
388
397
  ], -1)
389
398
  ])]))
390
- ])) : f("", !0),
391
- t.helperText ? (s(), o("p", je, C(t.helperText), 1)) : f("", !0),
392
- c.value ? (s(), o("p", Le, C(c.value), 1)) : f("", !0)
399
+ ])) : c("", !0),
400
+ t.helperText ? (s(), o("p", Se, $(t.helperText), 1)) : c("", !0),
401
+ f.value ? (s(), o("p", De, $(f.value), 1)) : c("", !0)
393
402
  ])
394
403
  ], 34));
395
404
  }
396
- }), Se = ["stroke-width"], De = {
405
+ }), Oe = ["stroke-width"], Ie = {
397
406
  class: "w-full h-full rounded-lg overflow-hidden",
398
407
  style: { "background-color": "#f7f7f7" }
399
- }, Oe = /* @__PURE__ */ L({
408
+ }, Ee = /* @__PURE__ */ L({
400
409
  __name: "Loader",
401
410
  props: {
402
411
  type: { default: "circular" },
@@ -422,13 +431,13 @@ const le = { class: "flex items-center gap-4" }, ae = {
422
431
  danger: "bg-danger-500",
423
432
  info: "bg-info-500"
424
433
  }, n = g(() => [e[y.color]]), d = g(() => [u[y.color]]);
425
- return (r, c) => t.type === "circular" ? (s(), o("div", {
434
+ return (r, f) => t.type === "circular" ? (s(), o("div", {
426
435
  key: 0,
427
436
  class: v(n.value)
428
437
  }, [
429
438
  (s(), o("svg", {
430
439
  class: "animate-spin",
431
- style: W({ width: t.size, height: t.size }),
440
+ style: P({ width: t.size, height: t.size }),
432
441
  viewBox: "0 0 24 24"
433
442
  }, [
434
443
  a("circle", {
@@ -439,8 +448,8 @@ const le = { class: "flex items-center gap-4" }, ae = {
439
448
  stroke: "currentColor",
440
449
  "stroke-width": t.strokeWidth,
441
450
  fill: "none"
442
- }, null, 8, Se),
443
- c[0] || (c[0] = a("path", {
451
+ }, null, 8, Oe),
452
+ f[0] || (f[0] = a("path", {
444
453
  class: "opacity-75",
445
454
  fill: "currentColor",
446
455
  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"
@@ -449,32 +458,32 @@ const le = { class: "flex items-center gap-4" }, ae = {
449
458
  ], 2)) : t.type === "linear" ? (s(), o("div", {
450
459
  key: 1,
451
460
  class: "w-full",
452
- style: W({ height: t.height })
461
+ style: P({ height: t.height })
453
462
  }, [
454
- a("div", De, [
463
+ a("div", Ie, [
455
464
  a("div", {
456
465
  class: v([d.value, "h-full rounded-lg animate-linear-loader"]),
457
- style: W({ width: t.progress ? `${t.progress}%` : void 0 })
466
+ style: P({ width: t.progress ? `${t.progress}%` : void 0 })
458
467
  }, null, 6)
459
468
  ])
460
- ], 4)) : f("", !0);
469
+ ], 4)) : c("", !0);
461
470
  }
462
- }), Kt = /* @__PURE__ */ R(Oe, [["__scopeId", "data-v-8df4ec38"]]), Ie = ["disabled", "aria-expanded"], Ee = ["disabled", "onClick"], He = {
471
+ }), Rt = /* @__PURE__ */ K(Ee, [["__scopeId", "data-v-8df4ec38"]]), He = ["disabled", "aria-expanded"], Fe = ["disabled", "onClick"], Pe = {
463
472
  key: 0,
464
473
  class: "flex-shrink-0"
465
- }, Fe = ["innerHTML"], We = { class: "flex-1 min-w-0 mr-2" }, Ae = { class: "flex flex-col items-start" }, Ke = ["title"], Re = ["title"], Ne = {
474
+ }, We = ["innerHTML"], Ae = { class: "flex-1 min-w-0 mr-2" }, Ke = { class: "flex flex-col items-start" }, Re = ["title"], Ne = ["title"], qe = {
466
475
  key: 1,
467
476
  class: "flex-shrink-0"
468
- }, qe = {
477
+ }, Ue = {
469
478
  key: 0,
470
479
  class: "text-xs text-secondary-400 font-mono whitespace-nowrap"
471
- }, Pe = { key: 1 }, Ue = {
480
+ }, Ge = { key: 1 }, Qe = {
472
481
  key: 2,
473
482
  class: "w-4 h-4 ml-2 flex-shrink-0",
474
483
  fill: "none",
475
484
  stroke: "currentColor",
476
485
  viewBox: "0 0 24 24"
477
- }, Ge = /* @__PURE__ */ L({
486
+ }, Je = /* @__PURE__ */ L({
478
487
  __name: "Menu",
479
488
  props: {
480
489
  items: { default: () => [] },
@@ -494,7 +503,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
494
503
  },
495
504
  emits: ["open", "close", "select"],
496
505
  setup(t, { emit: y }) {
497
- const e = t, u = y, n = V(!1), d = V(null), r = V(null), c = V({}), i = g(() => [
506
+ const e = t, u = y, n = V(!1), d = V(null), r = V(null), f = V({}), i = g(() => [
498
507
  "inline-flex items-center justify-center px-4 py-2 text-sm font-medium",
499
508
  "bg-white border border-secondary-300 rounded-md",
500
509
  "hover:bg-secondary-50 focus:outline-none focus:ring-2 focus:ring-primary-500",
@@ -509,33 +518,33 @@ const le = { class: "flex items-center gap-4" }, ae = {
509
518
  "w-full flex items-center gap-3 px-4 py-2 text-sm text-left",
510
519
  "transition-colors focus:outline-none",
511
520
  "disabled:opacity-50 disabled:cursor-not-allowed"
512
- ], p = l.variant || "default", N = {
521
+ ], p = l.variant || "default", R = {
513
522
  default: "text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50",
514
523
  danger: "text-danger-600 hover:bg-danger-50 focus:bg-danger-50",
515
524
  success: "text-success-600 hover:bg-success-50 focus:bg-success-50",
516
525
  warning: "text-warning-600 hover:bg-warning-50 focus:bg-warning-50"
517
526
  };
518
- return [...w, N[p]].join(" ");
527
+ return [...w, R[p]].join(" ");
519
528
  }, F = () => {
520
529
  e.disabled || (n.value ? b() : B());
521
530
  }, B = () => {
522
531
  n.value = !0, u("open"), J(() => {
523
- k(), document.addEventListener("click", S), document.addEventListener("keydown", q);
532
+ k(), document.addEventListener("click", S), document.addEventListener("keydown", N);
524
533
  });
525
534
  }, b = () => {
526
- n.value = !1, u("close"), document.removeEventListener("click", S), document.removeEventListener("keydown", q);
535
+ n.value = !1, u("close"), document.removeEventListener("click", S), document.removeEventListener("keydown", N);
527
536
  }, T = (l) => {
528
537
  l.disabled || (l.action && l.action(), u("select", l), e.closeOnClick && !l.children && b());
529
538
  }, S = (l) => {
530
539
  const w = l.target;
531
540
  d.value && !d.value.contains(w) && r.value && !r.value.contains(w) && b();
532
- }, q = (l) => {
541
+ }, N = (l) => {
533
542
  l.key === "Escape" && b();
534
543
  }, h = (l) => {
535
544
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), F());
536
545
  }, k = () => {
537
546
  if (!d.value || !r.value) return;
538
- const l = d.value.getBoundingClientRect(), w = r.value.getBoundingClientRect(), p = window.innerWidth, N = window.innerHeight;
547
+ const l = d.value.getBoundingClientRect(), w = r.value.getBoundingClientRect(), p = window.innerWidth, R = window.innerHeight;
539
548
  let M = 0, z = 0;
540
549
  switch (e.position) {
541
550
  case "bottom-start":
@@ -563,7 +572,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
563
572
  M = l.bottom - w.height + e.offset.y, z = l.left - w.width - e.offset.x;
564
573
  break;
565
574
  }
566
- z + w.width > p && (z = p - w.width - 8), z < 8 && (z = 8), M + w.height > N && (M = N - w.height - 8), M < 8 && (M = 8), c.value = {
575
+ z + w.width > p && (z = p - w.width - 8), z < 8 && (z = 8), M + w.height > R && (M = R - w.height - 8), M < 8 && (M = 8), f.value = {
567
576
  top: `${M}px`,
568
577
  left: `${z}px`,
569
578
  width: e.width === "auto" ? `${Math.max(l.width, 240)}px` : e.width,
@@ -574,7 +583,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
574
583
  return ee(() => {
575
584
  window.addEventListener("scroll", k, !0), window.addEventListener("resize", k);
576
585
  }), te(() => {
577
- window.removeEventListener("scroll", k, !0), window.removeEventListener("resize", k), document.removeEventListener("click", S), document.removeEventListener("keydown", q);
586
+ window.removeEventListener("scroll", k, !0), window.removeEventListener("resize", k), document.removeEventListener("click", S), document.removeEventListener("keydown", N);
578
587
  }), Y(() => e.items, () => {
579
588
  n.value && J(k);
580
589
  }, { deep: !0 }), (l, w) => (s(), o("div", {
@@ -584,7 +593,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
584
593
  ref_key: "triggerRef",
585
594
  ref: d
586
595
  }, [
587
- $(l.$slots, "trigger", {
596
+ C(l.$slots, "trigger", {
588
597
  isOpen: n.value,
589
598
  toggle: F
590
599
  }, () => [
@@ -599,8 +608,8 @@ const le = { class: "flex items-center gap-4" }, ae = {
599
608
  "aria-expanded": n.value,
600
609
  "aria-haspopup": !0
601
610
  }, [
602
- $(l.$slots, "trigger-content", {}, () => [
603
- K(C(t.triggerText), 1)
611
+ C(l.$slots, "trigger-content", {}, () => [
612
+ A($(t.triggerText), 1)
604
613
  ], !0),
605
614
  t.showChevron ? (s(), o("svg", {
606
615
  key: 0,
@@ -615,17 +624,17 @@ const le = { class: "flex items-center gap-4" }, ae = {
615
624
  "stroke-width": "2",
616
625
  d: "M19 9l-7 7-7-7"
617
626
  }, null, -1)
618
- ])], 2)) : f("", !0)
619
- ], 42, Ie)
627
+ ])], 2)) : c("", !0)
628
+ ], 42, He)
620
629
  ], !0)
621
630
  ], 512),
622
- (s(), P(X, { to: "body" }, [
631
+ (s(), q(X, { to: "body" }, [
623
632
  n.value ? (s(), o("div", {
624
633
  key: 0,
625
634
  ref_key: "menuRef",
626
635
  ref: r,
627
636
  class: v(x.value),
628
- style: W(c.value),
637
+ style: P(f.value),
629
638
  onClick: w[0] || (w[0] = I(() => {
630
639
  }, ["stop"]))
631
640
  }, [
@@ -633,17 +642,17 @@ const le = { class: "flex items-center gap-4" }, ae = {
633
642
  key: 0,
634
643
  class: v(m.value)
635
644
  }, [
636
- $(l.$slots, "header", { close: b }, void 0, !0)
637
- ], 2)) : f("", !0),
645
+ C(l.$slots, "header", { close: b }, void 0, !0)
646
+ ], 2)) : c("", !0),
638
647
  a("div", {
639
648
  class: v(D.value)
640
649
  }, [
641
- $(l.$slots, "default", {
650
+ C(l.$slots, "default", {
642
651
  close: b,
643
652
  isOpen: n.value
644
653
  }, () => [
645
- (s(!0), o(E, null, A(t.items, (p, N) => (s(), o(E, {
646
- key: p.id || N
654
+ (s(!0), o(E, null, W(t.items, (p, R) => (s(), o(E, {
655
+ key: p.id || R
647
656
  }, [
648
657
  p.type === "divider" ? (s(), o("div", {
649
658
  key: 0,
@@ -651,57 +660,57 @@ const le = { class: "flex items-center gap-4" }, ae = {
651
660
  }, null, 2)) : p.type === "header" ? (s(), o("div", {
652
661
  key: 1,
653
662
  class: v(O.value)
654
- }, C(p.label), 3)) : (s(), o("button", {
663
+ }, $(p.label), 3)) : (s(), o("button", {
655
664
  key: 2,
656
665
  type: "button",
657
666
  class: v(H(p)),
658
667
  disabled: p.disabled,
659
668
  onClick: (M) => T(p)
660
669
  }, [
661
- p.icon || l.$slots[`icon-${p.id}`] ? (s(), o("span", He, [
662
- $(l.$slots, `icon-${p.id}`, { item: p }, () => [
663
- typeof p.icon != "string" ? (s(), P(Z(p.icon), {
670
+ p.icon || l.$slots[`icon-${p.id}`] ? (s(), o("span", Pe, [
671
+ C(l.$slots, `icon-${p.id}`, { item: p }, () => [
672
+ typeof p.icon != "string" ? (s(), q(Z(p.icon), {
664
673
  key: 0,
665
674
  class: "w-5 h-5"
666
675
  })) : (s(), o("span", {
667
676
  key: 1,
668
677
  innerHTML: p.icon,
669
678
  class: "w-5 h-5 inline-block"
670
- }, null, 8, Fe))
679
+ }, null, 8, We))
671
680
  ], !0)
672
- ])) : f("", !0),
673
- a("div", We, [
674
- $(l.$slots, `item-${p.id}`, {
681
+ ])) : c("", !0),
682
+ a("div", Ae, [
683
+ C(l.$slots, `item-${p.id}`, {
675
684
  item: p,
676
685
  close: b
677
686
  }, () => [
678
- a("div", Ae, [
687
+ a("div", Ke, [
679
688
  a("span", {
680
689
  class: "truncate w-full",
681
690
  title: p.label
682
- }, C(p.label), 9, Ke),
691
+ }, $(p.label), 9, Re),
683
692
  p.description ? (s(), o("span", {
684
693
  key: 0,
685
694
  class: "text-xs text-secondary-500 truncate w-full",
686
695
  title: p.description
687
- }, C(p.description), 9, Re)) : f("", !0)
696
+ }, $(p.description), 9, Ne)) : c("", !0)
688
697
  ])
689
698
  ], !0)
690
699
  ]),
691
- p.suffix || p.shortcut || l.$slots[`suffix-${p.id}`] ? (s(), o("span", Ne, [
692
- $(l.$slots, `suffix-${p.id}`, { item: p }, () => [
693
- p.shortcut ? (s(), o("span", qe, C(p.shortcut), 1)) : p.suffix ? (s(), o("span", Pe, C(p.suffix), 1)) : f("", !0)
700
+ p.suffix || p.shortcut || l.$slots[`suffix-${p.id}`] ? (s(), o("span", qe, [
701
+ C(l.$slots, `suffix-${p.id}`, { item: p }, () => [
702
+ p.shortcut ? (s(), o("span", Ue, $(p.shortcut), 1)) : p.suffix ? (s(), o("span", Ge, $(p.suffix), 1)) : c("", !0)
694
703
  ], !0)
695
- ])) : f("", !0),
696
- p.children && p.children.length > 0 ? (s(), o("svg", Ue, [...w[2] || (w[2] = [
704
+ ])) : c("", !0),
705
+ p.children && p.children.length > 0 ? (s(), o("svg", Qe, [...w[2] || (w[2] = [
697
706
  a("path", {
698
707
  "stroke-linecap": "round",
699
708
  "stroke-linejoin": "round",
700
709
  "stroke-width": "2",
701
710
  d: "M9 5l7 7-7 7"
702
711
  }, null, -1)
703
- ])])) : f("", !0)
704
- ], 10, Ee))
712
+ ])])) : c("", !0)
713
+ ], 10, Fe))
705
714
  ], 64))), 128))
706
715
  ], !0)
707
716
  ], 2),
@@ -709,43 +718,43 @@ const le = { class: "flex items-center gap-4" }, ae = {
709
718
  key: 1,
710
719
  class: v(j.value)
711
720
  }, [
712
- $(l.$slots, "footer", { close: b }, void 0, !0)
713
- ], 2)) : f("", !0)
714
- ], 6)) : f("", !0),
721
+ C(l.$slots, "footer", { close: b }, void 0, !0)
722
+ ], 2)) : c("", !0)
723
+ ], 6)) : c("", !0),
715
724
  n.value && t.overlay ? (s(), o("div", {
716
725
  key: 1,
717
726
  class: "fixed inset-0 bg-black/20 z-40",
718
727
  onClick: b
719
- })) : f("", !0)
728
+ })) : c("", !0)
720
729
  ]))
721
730
  ], 2));
722
731
  }
723
- }), Rt = /* @__PURE__ */ R(Ge, [["__scopeId", "data-v-e155a86b"]]), Qe = ["for"], Je = {
732
+ }), Nt = /* @__PURE__ */ K(Je, [["__scopeId", "data-v-e155a86b"]]), Xe = ["for"], Ye = {
724
733
  key: 0,
725
734
  class: "text-danger-600"
726
- }, Xe = { class: "relative" }, Ye = ["id", "disabled", "aria-expanded"], Ze = { class: "flex-1 text-left truncate" }, et = {
735
+ }, Ze = { class: "relative" }, et = ["id", "disabled", "aria-expanded"], tt = { class: "flex-1 text-left truncate" }, st = {
727
736
  key: 0,
728
737
  class: "p-2 border-b border-secondary-200"
729
- }, tt = ["placeholder"], st = { class: "max-h-64 overflow-y-auto" }, ot = {
738
+ }, ot = ["placeholder"], lt = { class: "max-h-64 overflow-y-auto" }, at = {
730
739
  key: 0,
731
740
  class: "px-4 py-3 text-sm text-secondary-500 text-center"
732
- }, lt = ["onClick"], at = { class: "flex items-center justify-between w-full" }, nt = { class: "truncate" }, rt = {
741
+ }, nt = ["onClick"], rt = { class: "flex items-center justify-between w-full" }, it = { class: "truncate" }, dt = {
733
742
  key: 0,
734
743
  class: "w-5 h-5 text-primary-600 flex-shrink-0 ml-2",
735
744
  fill: "none",
736
745
  stroke: "currentColor",
737
746
  viewBox: "0 0 24 24",
738
747
  xmlns: "http://www.w3.org/2000/svg"
739
- }, it = {
748
+ }, ut = {
740
749
  key: 0,
741
750
  class: "border-t border-secondary-200 my-1"
742
- }, dt = ["onClick"], ut = ["innerHTML"], ct = {
751
+ }, ct = ["onClick"], ft = ["innerHTML"], pt = {
743
752
  key: 1,
744
753
  class: "mt-1 text-sm text-danger-600"
745
- }, ft = {
754
+ }, gt = {
746
755
  key: 2,
747
756
  class: "mt-1 text-sm text-secondary-600"
748
- }, pt = /* @__PURE__ */ L({
757
+ }, ht = /* @__PURE__ */ L({
749
758
  __name: "Select",
750
759
  props: {
751
760
  modelValue: { default: null },
@@ -767,7 +776,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
767
776
  },
768
777
  emits: ["update:modelValue", "change", "action"],
769
778
  setup(t, { emit: y }) {
770
- const e = t, u = y, n = V(!1), d = V(""), r = V(null), c = g(
779
+ const e = t, u = y, n = V(!1), d = V(""), r = V(null), f = g(
771
780
  () => `select-${Math.random().toString(36).substr(2, 9)}`
772
781
  ), i = g(() => e.options.find((h) => h.value === e.modelValue) || null), x = g(() => {
773
782
  if (!e.searchable || !d.value)
@@ -812,7 +821,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
812
821
  k && k.closest(".select-wrapper") || setTimeout(() => {
813
822
  B();
814
823
  }, 200);
815
- }, q = (h) => {
824
+ }, N = (h) => {
816
825
  h.key === "Escape" ? B() : (h.key === "Enter" || h.key === " ") && (h.preventDefault(), F());
817
826
  };
818
827
  return Y(n, (h) => {
@@ -822,15 +831,15 @@ const le = { class: "flex items-center gap-4" }, ae = {
822
831
  }, [
823
832
  t.label ? (s(), o("label", {
824
833
  key: 0,
825
- for: c.value,
834
+ for: f.value,
826
835
  class: v(m.value)
827
836
  }, [
828
- K(C(t.label) + " ", 1),
829
- t.required ? (s(), o("span", Je, "*")) : f("", !0)
830
- ], 10, Qe)) : f("", !0),
831
- a("div", Xe, [
837
+ A($(t.label) + " ", 1),
838
+ t.required ? (s(), o("span", Ye, "*")) : c("", !0)
839
+ ], 10, Xe)) : c("", !0),
840
+ a("div", Ze, [
832
841
  a("button", {
833
- id: c.value,
842
+ id: f.value,
834
843
  type: "button",
835
844
  class: v(j.value),
836
845
  disabled: t.disabled,
@@ -838,9 +847,9 @@ const le = { class: "flex items-center gap-4" }, ae = {
838
847
  "aria-haspopup": !0,
839
848
  onClick: F,
840
849
  onBlur: S,
841
- onKeydown: q
850
+ onKeydown: N
842
851
  }, [
843
- a("span", Ze, C(i.value ? i.value.label : t.placeholder), 1),
852
+ a("span", tt, $(i.value ? i.value.label : t.placeholder), 1),
844
853
  (s(), o("svg", {
845
854
  class: v(["w-5 h-5 flex-shrink-0 transition-transform text-secondary-600", n.value ? "rotate-180" : ""]),
846
855
  fill: "none",
@@ -855,14 +864,14 @@ const le = { class: "flex items-center gap-4" }, ae = {
855
864
  d: "M19 9l-7 7-7-7"
856
865
  }, null, -1)
857
866
  ])], 2))
858
- ], 42, Ye),
867
+ ], 42, et),
859
868
  n.value ? (s(), o("div", {
860
869
  key: 0,
861
870
  class: v(D.value),
862
871
  onClick: k[2] || (k[2] = I(() => {
863
872
  }, ["stop"]))
864
873
  }, [
865
- t.searchable ? (s(), o("div", et, [
874
+ t.searchable ? (s(), o("div", st, [
866
875
  se(a("input", {
867
876
  ref_key: "searchInput",
868
877
  ref: r,
@@ -872,32 +881,32 @@ const le = { class: "flex items-center gap-4" }, ae = {
872
881
  placeholder: t.searchPlaceholder,
873
882
  onKeydown: k[1] || (k[1] = I(() => {
874
883
  }, ["stop"]))
875
- }, null, 40, tt), [
884
+ }, null, 40, ot), [
876
885
  [oe, d.value]
877
886
  ])
878
- ])) : f("", !0),
879
- a("div", st, [
880
- x.value.length === 0 ? (s(), o("div", ot, C(t.emptyText), 1)) : (s(), o(E, { key: 1 }, [
881
- (s(!0), o(E, null, A(x.value, (l) => (s(), o("button", {
887
+ ])) : c("", !0),
888
+ a("div", lt, [
889
+ x.value.length === 0 ? (s(), o("div", at, $(t.emptyText), 1)) : (s(), o(E, { key: 1 }, [
890
+ (s(!0), o(E, null, W(x.value, (l) => (s(), o("button", {
882
891
  key: l.value,
883
892
  type: "button",
884
893
  class: v(_(l)),
885
894
  onClick: (w) => b(l)
886
895
  }, [
887
- a("div", at, [
888
- a("span", nt, C(l.label), 1),
889
- H(l) ? (s(), o("svg", rt, [...k[4] || (k[4] = [
896
+ a("div", rt, [
897
+ a("span", it, $(l.label), 1),
898
+ H(l) ? (s(), o("svg", dt, [...k[4] || (k[4] = [
890
899
  a("path", {
891
900
  "stroke-linecap": "round",
892
901
  "stroke-linejoin": "round",
893
902
  "stroke-width": "2",
894
903
  d: "M5 13l4 4L19 7"
895
904
  }, null, -1)
896
- ])])) : f("", !0)
905
+ ])])) : c("", !0)
897
906
  ])
898
- ], 10, lt))), 128)),
899
- t.actionItems.length > 0 ? (s(), o("div", it)) : f("", !0),
900
- (s(!0), o(E, null, A(t.actionItems, (l) => (s(), o("button", {
907
+ ], 10, nt))), 128)),
908
+ t.actionItems.length > 0 ? (s(), o("div", ut)) : c("", !0),
909
+ (s(!0), o(E, null, W(t.actionItems, (l) => (s(), o("button", {
901
910
  key: l.id,
902
911
  type: "button",
903
912
  class: v(O(l)),
@@ -911,22 +920,22 @@ const le = { class: "flex items-center gap-4" }, ae = {
911
920
  viewBox: "0 0 24 24",
912
921
  xmlns: "http://www.w3.org/2000/svg",
913
922
  innerHTML: l.icon
914
- }, null, 8, ut)) : f("", !0),
915
- K(" " + C(l.label), 1)
916
- ], 10, dt))), 128))
923
+ }, null, 8, ft)) : c("", !0),
924
+ A(" " + $(l.label), 1)
925
+ ], 10, ct))), 128))
917
926
  ], 64))
918
927
  ])
919
- ], 2)) : f("", !0)
928
+ ], 2)) : c("", !0)
920
929
  ]),
921
- t.error ? (s(), o("p", ct, C(t.error), 1)) : t.helperText ? (s(), o("p", ft, C(t.helperText), 1)) : f("", !0),
930
+ t.error ? (s(), o("p", pt, $(t.error), 1)) : t.helperText ? (s(), o("p", gt, $(t.helperText), 1)) : c("", !0),
922
931
  n.value ? (s(), o("div", {
923
932
  key: 3,
924
933
  onClick: B,
925
934
  class: "fixed inset-0 z-40"
926
- })) : f("", !0)
935
+ })) : c("", !0)
927
936
  ], 2));
928
937
  }
929
- }), Nt = /* @__PURE__ */ R(pt, [["__scopeId", "data-v-f016a03c"]]), gt = /* @__PURE__ */ L({
938
+ }), qt = /* @__PURE__ */ K(ht, [["__scopeId", "data-v-f016a03c"]]), bt = /* @__PURE__ */ L({
930
939
  __name: "Sidebar",
931
940
  props: {
932
941
  modelValue: { type: Boolean, default: !1 },
@@ -947,7 +956,7 @@ const le = { class: "flex items-center gap-4" }, ae = {
947
956
  set: (_) => u("update:modelValue", _)
948
957
  }), d = () => {
949
958
  e.persistent || (n.value = !1, u("close"));
950
- }, r = g(() => e.position === "left" ? "slide-right" : "slide-left"), c = g(() => {
959
+ }, r = g(() => e.position === "left" ? "slide-right" : "slide-left"), f = g(() => {
951
960
  const _ = "fixed top-0 h-full z-50 flex flex-col", O = e.position === "left" ? "left-0" : "right-0", H = e.shadow ? e.position === "left" ? "shadow-[2px_0_8px_rgba(0,0,0,0.1)]" : "shadow-[-2px_0_8px_rgba(0,0,0,0.1)]" : "";
952
961
  return [_, O, H].filter(Boolean).join(" ");
953
962
  }), i = g(() => ({
@@ -961,15 +970,15 @@ const le = { class: "flex items-center gap-4" }, ae = {
961
970
  md: "p-4",
962
971
  lg: "p-6"
963
972
  }, m = g(() => `flex items-center justify-between border-b border-gray-200 ${x[e.padding]}`), j = g(() => `flex-1 overflow-y-auto ${x[e.padding]}`), D = g(() => `border-t border-gray-200 ${x[e.padding]}`);
964
- return (_, O) => (s(), P(X, { to: "body" }, [
973
+ return (_, O) => (s(), q(X, { to: "body" }, [
965
974
  G(Q, { name: "fade" }, {
966
975
  default: U(() => [
967
976
  n.value && t.overlay ? (s(), o("div", {
968
977
  key: 0,
969
978
  onClick: d,
970
979
  class: "fixed inset-0 bg-black/50 z-40",
971
- style: W({ top: t.overlayTop })
972
- }, null, 4)) : f("", !0)
980
+ style: P({ top: t.overlayTop })
981
+ }, null, 4)) : c("", !0)
973
982
  ]),
974
983
  _: 1
975
984
  }),
@@ -977,14 +986,14 @@ const le = { class: "flex items-center gap-4" }, ae = {
977
986
  default: U(() => [
978
987
  n.value ? (s(), o("aside", {
979
988
  key: 0,
980
- class: v(c.value),
981
- style: W(i.value)
989
+ class: v(f.value),
990
+ style: P(i.value)
982
991
  }, [
983
992
  _.$slots.header ? (s(), o("div", {
984
993
  key: 0,
985
994
  class: v(m.value)
986
995
  }, [
987
- $(_.$slots, "header", {}, void 0, !0),
996
+ C(_.$slots, "header", {}, void 0, !0),
988
997
  t.closable ? (s(), o("button", {
989
998
  key: 0,
990
999
  onClick: d,
@@ -1004,35 +1013,35 @@ const le = { class: "flex items-center gap-4" }, ae = {
1004
1013
  d: "M6 18L18 6M6 6l12 12"
1005
1014
  })
1006
1015
  ], -1)
1007
- ])])) : f("", !0)
1008
- ], 2)) : f("", !0),
1016
+ ])])) : c("", !0)
1017
+ ], 2)) : c("", !0),
1009
1018
  a("div", {
1010
1019
  class: v(j.value)
1011
1020
  }, [
1012
- $(_.$slots, "default", {}, void 0, !0)
1021
+ C(_.$slots, "default", {}, void 0, !0)
1013
1022
  ], 2),
1014
1023
  _.$slots.footer ? (s(), o("div", {
1015
1024
  key: 1,
1016
1025
  class: v(D.value)
1017
1026
  }, [
1018
- $(_.$slots, "footer", {}, void 0, !0)
1019
- ], 2)) : f("", !0)
1020
- ], 6)) : f("", !0)
1027
+ C(_.$slots, "footer", {}, void 0, !0)
1028
+ ], 2)) : c("", !0)
1029
+ ], 6)) : c("", !0)
1021
1030
  ]),
1022
1031
  _: 3
1023
1032
  }, 8, ["name"])
1024
1033
  ]));
1025
1034
  }
1026
- }), qt = /* @__PURE__ */ R(gt, [["__scopeId", "data-v-fffb0e44"]]), ht = { class: "w-full overflow-x-auto" }, bt = { class: "w-full border-collapse" }, vt = { class: "w-full" }, yt = { class: "bg-white border-b border-gray-100 w-full" }, xt = ["onClick"], mt = { class: "flex items-center gap-2" }, kt = {
1035
+ }), Ut = /* @__PURE__ */ K(bt, [["__scopeId", "data-v-fffb0e44"]]), vt = { class: "w-full overflow-x-auto" }, yt = { class: "w-full border-collapse" }, xt = { class: "w-full" }, mt = { class: "bg-white border-b border-gray-100 w-full" }, kt = ["onClick"], wt = { class: "flex items-center gap-2" }, $t = {
1027
1036
  key: 0,
1028
1037
  class: "text-xs text-gray-400"
1029
- }, wt = { key: 0 }, $t = { key: 1 }, Ct = { class: "w-full" }, Bt = {
1038
+ }, Ct = { key: 0 }, Bt = { key: 1 }, _t = { class: "w-full" }, Tt = {
1030
1039
  key: 0,
1031
1040
  class: "flex items-center justify-center py-12 text-gray-400"
1032
- }, _t = {
1041
+ }, Mt = {
1033
1042
  key: 1,
1034
1043
  class: "w-full px-6 py-4 bg-white"
1035
- }, Tt = /* @__PURE__ */ L({
1044
+ }, zt = /* @__PURE__ */ L({
1036
1045
  __name: "Table",
1037
1046
  props: {
1038
1047
  columns: {},
@@ -1045,66 +1054,66 @@ const le = { class: "flex items-center gap-4" }, ae = {
1045
1054
  if (!e.value)
1046
1055
  return y.data;
1047
1056
  const r = [...y.data];
1048
- return r.sort((c, i) => {
1049
- const x = c[e.value], m = i[e.value];
1057
+ return r.sort((f, i) => {
1058
+ const x = f[e.value], m = i[e.value];
1050
1059
  return typeof x == "string" && typeof m == "string" ? u.value === "asc" ? x.localeCompare(m) : m.localeCompare(x) : typeof x == "number" && typeof m == "number" ? u.value === "asc" ? x - m : m - x : 0;
1051
1060
  }), r;
1052
1061
  });
1053
- return (r, c) => (s(), o("div", ht, [
1054
- a("table", bt, [
1055
- a("thead", vt, [
1056
- a("tr", yt, [
1057
- (s(!0), o(E, null, A(t.columns, (i) => (s(), o("th", {
1062
+ return (r, f) => (s(), o("div", vt, [
1063
+ a("table", yt, [
1064
+ a("thead", xt, [
1065
+ a("tr", mt, [
1066
+ (s(!0), o(E, null, W(t.columns, (i) => (s(), o("th", {
1058
1067
  key: i.key,
1059
- style: W(i.width ? { width: i.width } : {}),
1068
+ style: P(i.width ? { width: i.width } : {}),
1060
1069
  class: v([
1061
1070
  "px-8 py-4 text-left text-base font-semibold text-gray-900 border-0",
1062
1071
  i.sortable ? "cursor-pointer hover:text-primary-700 select-none transition-colors" : ""
1063
1072
  ]),
1064
1073
  onClick: (x) => i.sortable && n(i.key)
1065
1074
  }, [
1066
- a("div", mt, [
1067
- a("span", null, C(i.label), 1),
1068
- i.sortable ? (s(), o("span", kt, [
1069
- e.value !== i.key ? (s(), o("span", wt, "⇅")) : (s(), o("span", $t, C(u.value === "asc" ? "↑" : "↓"), 1))
1070
- ])) : f("", !0)
1075
+ a("div", wt, [
1076
+ a("span", null, $(i.label), 1),
1077
+ i.sortable ? (s(), o("span", $t, [
1078
+ e.value !== i.key ? (s(), o("span", Ct, "⇅")) : (s(), o("span", Bt, $(u.value === "asc" ? "↑" : "↓"), 1))
1079
+ ])) : c("", !0)
1071
1080
  ])
1072
- ], 14, xt))), 128))
1081
+ ], 14, kt))), 128))
1073
1082
  ])
1074
1083
  ]),
1075
- a("tbody", Ct, [
1076
- (s(!0), o(E, null, A(d.value, (i, x) => (s(), o("tr", {
1084
+ a("tbody", _t, [
1085
+ (s(!0), o(E, null, W(d.value, (i, x) => (s(), o("tr", {
1077
1086
  key: x,
1078
1087
  class: "w-full hover:bg-gray-50 transition-colors"
1079
1088
  }, [
1080
- (s(!0), o(E, null, A(t.columns, (m) => (s(), o("td", {
1089
+ (s(!0), o(E, null, W(t.columns, (m) => (s(), o("td", {
1081
1090
  key: `${x}-${m.key}`,
1082
1091
  class: "px-8 py-4 text-base text-gray-700 border-0"
1083
1092
  }, [
1084
- $(r.$slots, `cell-${m.key}`, {
1093
+ C(r.$slots, `cell-${m.key}`, {
1085
1094
  value: i[m.key],
1086
1095
  row: i
1087
1096
  }, () => [
1088
- K(C(i[m.key]), 1)
1097
+ A($(i[m.key]), 1)
1089
1098
  ], !0)
1090
1099
  ]))), 128))
1091
1100
  ]))), 128))
1092
1101
  ])
1093
1102
  ]),
1094
- d.value.length === 0 ? (s(), o("div", Bt, [
1095
- $(r.$slots, "empty", {}, () => [
1096
- c[0] || (c[0] = K("No hay datos disponibles", -1))
1103
+ d.value.length === 0 ? (s(), o("div", Tt, [
1104
+ C(r.$slots, "empty", {}, () => [
1105
+ f[0] || (f[0] = A("No hay datos disponibles", -1))
1097
1106
  ], !0)
1098
- ])) : f("", !0),
1099
- r.$slots.footer ? (s(), o("div", _t, [
1100
- $(r.$slots, "footer", {}, void 0, !0)
1101
- ])) : f("", !0)
1107
+ ])) : c("", !0),
1108
+ r.$slots.footer ? (s(), o("div", Mt, [
1109
+ C(r.$slots, "footer", {}, void 0, !0)
1110
+ ])) : c("", !0)
1102
1111
  ]));
1103
1112
  }
1104
- }), Pt = /* @__PURE__ */ R(Tt, [["__scopeId", "data-v-6b3ff0a8"]]), Mt = { class: "w-full" }, zt = {
1113
+ }), Gt = /* @__PURE__ */ K(zt, [["__scopeId", "data-v-6b3ff0a8"]]), Vt = { class: "w-full" }, jt = {
1105
1114
  class: "flex border-b border-gray-100",
1106
1115
  role: "tablist"
1107
- }, Vt = ["aria-selected", "onClick"], jt = { role: "tabpanel" }, Lt = "relative px-6 py-3 text-base font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500", St = "text-primary-700 border-b-4 border-primary-700", Dt = "text-gray-600 border-b-4 border-transparent hover:text-gray-800", Ut = /* @__PURE__ */ L({
1116
+ }, Lt = ["aria-selected", "onClick"], St = { role: "tabpanel" }, Dt = "relative px-6 py-3 text-base font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500", Ot = "text-primary-700 border-b-4 border-primary-700", It = "text-gray-600 border-b-4 border-transparent hover:text-gray-800", Qt = /* @__PURE__ */ L({
1108
1117
  __name: "Tabs",
1109
1118
  props: {
1110
1119
  modelValue: {},
@@ -1114,32 +1123,32 @@ const le = { class: "flex items-center gap-4" }, ae = {
1114
1123
  setup(t, { emit: y }) {
1115
1124
  const e = t, u = y, n = (i) => e.modelValue === i, d = (i) => {
1116
1125
  n(i) || u("update:modelValue", i);
1117
- }, r = g(() => e.modelValue), c = g(
1126
+ }, r = g(() => e.modelValue), f = g(
1118
1127
  () => e.tabs.find((i) => i.value === r.value)
1119
1128
  );
1120
- return (i, x) => (s(), o("div", Mt, [
1121
- a("div", zt, [
1122
- (s(!0), o(E, null, A(t.tabs, (m) => (s(), o("button", {
1129
+ return (i, x) => (s(), o("div", Vt, [
1130
+ a("div", jt, [
1131
+ (s(!0), o(E, null, W(t.tabs, (m) => (s(), o("button", {
1123
1132
  key: m.value,
1124
1133
  type: "button",
1125
1134
  class: v([
1126
- Lt,
1127
- n(m.value) ? St : Dt
1135
+ Dt,
1136
+ n(m.value) ? Ot : It
1128
1137
  ]),
1129
1138
  "aria-selected": n(m.value),
1130
1139
  role: "tab",
1131
1140
  onClick: (j) => d(m.value)
1132
- }, C(m.label), 11, Vt))), 128))
1141
+ }, $(m.label), 11, Lt))), 128))
1133
1142
  ]),
1134
- a("div", jt, [
1135
- $(i.$slots, r.value, {
1143
+ a("div", St, [
1144
+ C(i.$slots, r.value, {
1136
1145
  active: r.value,
1137
- tab: c.value
1146
+ tab: f.value
1138
1147
  })
1139
1148
  ])
1140
1149
  ]));
1141
1150
  }
1142
- }), Ot = "font-sans", Gt = /* @__PURE__ */ L({
1151
+ }), Et = "font-sans", Jt = /* @__PURE__ */ L({
1143
1152
  __name: "Text",
1144
1153
  props: {
1145
1154
  variant: { default: "body1" },
@@ -1211,38 +1220,38 @@ const le = { class: "flex items-center gap-4" }, ae = {
1211
1220
  semibold: "font-semibold",
1212
1221
  bold: "font-bold",
1213
1222
  extrabold: "font-extrabold"
1214
- }, r = t, c = g(() => r.variant), i = g(() => r.color), x = g(() => r.align), m = g(() => r.as || e[c.value] || "span"), j = g(() => r.weight ? d[r.weight] : "");
1215
- return (D, _) => (s(), P(Z(m.value), {
1223
+ }, r = t, f = g(() => r.variant), i = g(() => r.color), x = g(() => r.align), m = g(() => r.as || e[f.value] || "span"), j = g(() => r.weight ? d[r.weight] : "");
1224
+ return (D, _) => (s(), q(Z(m.value), {
1216
1225
  class: v([
1217
- Ot,
1218
- y[c.value],
1226
+ Et,
1227
+ y[f.value],
1219
1228
  n[i.value],
1220
1229
  u[x.value],
1221
1230
  j.value,
1222
1231
  {
1223
- uppercase: t.uppercase || c.value === "overline",
1232
+ uppercase: t.uppercase || f.value === "overline",
1224
1233
  truncate: t.truncate
1225
1234
  }
1226
1235
  ])
1227
1236
  }, {
1228
1237
  default: U(() => [
1229
- $(D.$slots, "default")
1238
+ C(D.$slots, "default")
1230
1239
  ]),
1231
1240
  _: 3
1232
1241
  }, 8, ["class"]));
1233
1242
  }
1234
1243
  });
1235
1244
  export {
1236
- Et as AppBar,
1237
- Ht as Button,
1238
- Ft as Card,
1239
- Wt as Dialog,
1240
- At as FileUpload,
1241
- Kt as Loader,
1242
- Rt as Menu,
1243
- Nt as Select,
1244
- qt as Sidebar,
1245
- Pt as Table,
1246
- Ut as Tabs,
1247
- Gt as Text
1245
+ Ft as AppBar,
1246
+ Pt as Button,
1247
+ Wt as Card,
1248
+ At as Dialog,
1249
+ Kt as FileUpload,
1250
+ Rt as Loader,
1251
+ Nt as Menu,
1252
+ qt as Select,
1253
+ Ut as Sidebar,
1254
+ Gt as Table,
1255
+ Qt as Tabs,
1256
+ Jt as Text
1248
1257
  };