@rocketui/vue 0.0.11 → 0.0.13

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,6 +1,6 @@
1
- import { defineComponent as N, computed as w, openBlock as p, createElementBlock as _, normalizeClass as k, unref as x, normalizeStyle as Ye, toDisplayString as C, createElementVNode as v, createVNode as ge, createBlock as L, renderSlot as O, createCommentVNode as z, mergeProps as We, withModifiers as W, reactive as ee, watch as F, ref as E, Fragment as X, renderList as le, withDirectives as Pe, withKeys as ye, vModelText as Fe, onMounted as Ue, withCtx as Ze, createTextVNode as Qe, useCssVars as Xe, watchEffect as Ke } from "vue";
1
+ import { defineComponent as N, computed as w, openBlock as p, createElementBlock as _, normalizeClass as k, unref as x, normalizeStyle as Ye, toDisplayString as C, createElementVNode as b, createVNode as ge, createBlock as I, renderSlot as O, createCommentVNode as T, mergeProps as We, withModifiers as W, reactive as ee, watch as F, ref as E, Fragment as X, renderList as le, withDirectives as Pe, withKeys as ye, vModelText as Fe, onMounted as Ue, withCtx as Ze, createTextVNode as Qe, useCssVars as Xe, watchEffect as Ke } from "vue";
2
2
  const B = /* @__PURE__ */ N({
3
- __name: "Icon",
3
+ __name: "RIcon",
4
4
  props: {
5
5
  name: { default: "" },
6
6
  kind: { default: "round" },
@@ -26,7 +26,7 @@ const B = /* @__PURE__ */ N({
26
26
  key: 0,
27
27
  class: "close"
28
28
  }, hn = /* @__PURE__ */ N({
29
- __name: "Alert",
29
+ __name: "RAlert",
30
30
  props: {
31
31
  type: { default: "info" },
32
32
  title: { default: "" },
@@ -55,29 +55,29 @@ const B = /* @__PURE__ */ N({
55
55
  return (a, c) => (p(), _("div", {
56
56
  class: k(x(l))
57
57
  }, [
58
- v("div", Ge, [
58
+ b("div", Ge, [
59
59
  ge(B, {
60
60
  name: x(o),
61
61
  size: x(s)
62
62
  }, null, 8, ["name", "size"])
63
63
  ]),
64
- v("div", Je, [
65
- v("p", qe, C(e.title), 1),
66
- v("p", et, C(e.description), 1)
64
+ b("div", Je, [
65
+ b("p", qe, C(e.title), 1),
66
+ b("p", et, C(e.description), 1)
67
67
  ]),
68
68
  e.closable ? (p(), _("div", tt, [
69
- a.$slots.close ? O(a.$slots, "close", { key: 1 }) : (p(), L(B, {
69
+ a.$slots.close ? O(a.$slots, "close", { key: 1 }) : (p(), I(B, {
70
70
  key: 0,
71
71
  class: "close__button",
72
72
  name: "close",
73
73
  size: "16",
74
74
  onClick: i
75
75
  }))
76
- ])) : z("", !0)
76
+ ])) : T("", !0)
77
77
  ], 2));
78
78
  }
79
79
  }), xe = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", nt = { class: "avatar__wrapper" }, ot = ["alt", "src"], mn = /* @__PURE__ */ N({
80
- __name: "Avatar",
80
+ __name: "RAvatar",
81
81
  props: {
82
82
  type: { default: "image" },
83
83
  src: { default: xe },
@@ -95,7 +95,7 @@ const B = /* @__PURE__ */ N({
95
95
  return a.length === 1 ? a[0].substring(0, 2) : `${a[0].charAt(0)}${a[1].charAt(0)}`;
96
96
  };
97
97
  return (i, a) => (p(), _("div", nt, [
98
- v("div", {
98
+ b("div", {
99
99
  class: k(x(e))
100
100
  }, [
101
101
  n.type === "text" ? (p(), _("p", {
@@ -115,11 +115,11 @@ const B = /* @__PURE__ */ N({
115
115
  n.online ? (p(), _("span", {
116
116
  key: 0,
117
117
  class: k({ avatar__online: !0, [`avatar__online--${n.size}`]: !0 })
118
- }, null, 2)) : z("", !0)
118
+ }, null, 2)) : T("", !0)
119
119
  ]));
120
120
  }
121
121
  }), lt = { class: "badge-wrapper group" }, gn = /* @__PURE__ */ N({
122
- __name: "Badge",
122
+ __name: "RBadge",
123
123
  props: {
124
124
  variant: { default: "primary" },
125
125
  placement: { default: "right" },
@@ -141,7 +141,7 @@ const B = /* @__PURE__ */ N({
141
141
  [`badge--${n.variant}`]: n.variant
142
142
  }));
143
143
  return (l, o) => (p(), _("div", lt, [
144
- v("span", {
144
+ b("span", {
145
145
  class: k(x(e)),
146
146
  onClick: o[0] || (o[0] = (s) => l.$emit("click"))
147
147
  }, C(n.content), 3),
@@ -149,7 +149,7 @@ const B = /* @__PURE__ */ N({
149
149
  ]));
150
150
  }
151
151
  }), st = ["disabled"], at = /* @__PURE__ */ N({
152
- __name: "Button",
152
+ __name: "RButton",
153
153
  props: {
154
154
  variant: { default: "primary" },
155
155
  loading: { type: Boolean, default: !1 },
@@ -185,7 +185,7 @@ const B = /* @__PURE__ */ N({
185
185
  onClick: i[0] || (i[0] = W((a) => s.$emit("click"), ["stop"]))
186
186
  }), [
187
187
  O(s.$slots, "custom-icon"),
188
- s.$slots["custom-icon"] ? z("", !0) : (p(), L(B, {
188
+ s.$slots["custom-icon"] ? T("", !0) : (p(), I(B, {
189
189
  key: 0,
190
190
  class: k({
191
191
  "button__prepend-icon": !0,
@@ -194,13 +194,13 @@ const B = /* @__PURE__ */ N({
194
194
  name: n.prependIcon,
195
195
  size: x(l)
196
196
  }, null, 8, ["class", "name", "size"])),
197
- n.onlyIcon ? z("", !0) : O(s.$slots, "default", { key: 1 }),
198
- !s.$slots["custom-icon"] && !n.onlyIcon ? (p(), L(B, {
197
+ n.onlyIcon ? T("", !0) : O(s.$slots, "default", { key: 1 }),
198
+ !s.$slots["custom-icon"] && !n.onlyIcon ? (p(), I(B, {
199
199
  key: 2,
200
200
  class: "button__append-icon",
201
201
  name: n.appendIcon,
202
202
  size: x(l)
203
- }, null, 8, ["name", "size"])) : z("", !0)
203
+ }, null, 8, ["name", "size"])) : T("", !0)
204
204
  ], 16, st));
205
205
  }
206
206
  }), it = { class: "checkbox-wrapper" }, rt = { class: "checkbox-container" }, ct = ["id", "checked", "disabled", "indeterminate"], dt = ["data-disabled"], ut = { class: "checkbox-texts" }, ft = ["data-disabled", "for"], pt = {
@@ -210,7 +210,7 @@ const B = /* @__PURE__ */ N({
210
210
  key: 1,
211
211
  class: "checkbox-texts__hint"
212
212
  }, _n = /* @__PURE__ */ N({
213
- __name: "Checkbox",
213
+ __name: "RCheckbox",
214
214
  props: {
215
215
  id: { default: "" },
216
216
  modelValue: { default: !1 },
@@ -259,8 +259,8 @@ const B = /* @__PURE__ */ N({
259
259
  immediate: !0
260
260
  }
261
261
  ), (c, u) => (p(), _("div", it, [
262
- v("div", rt, [
263
- v("input", {
262
+ b("div", rt, [
263
+ b("input", {
264
264
  id: e.id,
265
265
  checked: l.checked,
266
266
  class: "checkbox-container__input",
@@ -269,7 +269,7 @@ const B = /* @__PURE__ */ N({
269
269
  type: "checkbox",
270
270
  onChange: a
271
271
  }, null, 40, ct),
272
- v("div", {
272
+ b("div", {
273
273
  class: k(x(i)),
274
274
  "data-disabled": e.disabled
275
275
  }, [
@@ -279,8 +279,8 @@ const B = /* @__PURE__ */ N({
279
279
  }, null, 8, ["name"])
280
280
  ], 10, dt)
281
281
  ]),
282
- v("div", ut, [
283
- v("label", {
282
+ b("div", ut, [
283
+ b("label", {
284
284
  class: "checkbox-texts__label",
285
285
  "data-disabled": e.disabled,
286
286
  for: e.id
@@ -290,7 +290,7 @@ const B = /* @__PURE__ */ N({
290
290
  ]));
291
291
  }
292
292
  }), mt = /* @__PURE__ */ N({
293
- __name: "Chip",
293
+ __name: "RChip",
294
294
  props: {
295
295
  variant: { default: "primary" },
296
296
  size: { default: "medium" },
@@ -316,37 +316,37 @@ const B = /* @__PURE__ */ N({
316
316
  return (a, c) => (p(), _("div", {
317
317
  class: k(x(l))
318
318
  }, [
319
- v("div", {
319
+ b("div", {
320
320
  class: "chip__content",
321
321
  onClick: c[0] || (c[0] = W((u) => s(u), ["stop"]))
322
322
  }, [
323
- e.prependIcon ? (p(), L(B, {
323
+ e.prependIcon ? (p(), I(B, {
324
324
  key: 0,
325
325
  "aria-disabled": e.disabled,
326
326
  class: "chip__prepend-icon",
327
327
  name: e.prependIcon,
328
328
  size: x(o)
329
- }, null, 8, ["aria-disabled", "name", "size"])) : z("", !0),
330
- v("span", null, C(e.label), 1)
329
+ }, null, 8, ["aria-disabled", "name", "size"])) : T("", !0),
330
+ b("span", null, C(e.label), 1)
331
331
  ]),
332
- e.appendIcon ? (p(), L(B, {
332
+ e.appendIcon ? (p(), I(B, {
333
333
  key: 0,
334
334
  "aria-disabled": e.disabled,
335
335
  class: "chip__append-icon",
336
336
  name: e.appendIcon,
337
337
  size: x(o),
338
338
  onClick: c[1] || (c[1] = W((u) => i(u), ["stop"]))
339
- }, null, 8, ["aria-disabled", "name", "size"])) : z("", !0)
339
+ }, null, 8, ["aria-disabled", "name", "size"])) : T("", !0)
340
340
  ], 2));
341
341
  }
342
342
  }), gt = { class: "dropdown" }, _t = {
343
343
  key: 0,
344
344
  class: "select__tags"
345
- }, bt = {
345
+ }, vt = {
346
346
  key: 1,
347
347
  class: "select__multiple"
348
- }, vt = ["disabled", "placeholder"], yt = ["onClick"], xt = { style: { display: "flex", "align-items": "center" } }, bn = /* @__PURE__ */ N({
349
- __name: "Dropdown",
348
+ }, bt = ["disabled", "placeholder"], yt = ["onClick"], xt = { style: { display: "flex", "align-items": "center" } }, vn = /* @__PURE__ */ N({
349
+ __name: "RDropdown",
350
350
  props: {
351
351
  placeholder: { default: "" },
352
352
  options: { default: () => [] },
@@ -361,13 +361,13 @@ const B = /* @__PURE__ */ N({
361
361
  emits: ["update:modelValue"],
362
362
  setup(t, { emit: n }) {
363
363
  const e = t, l = E(""), o = ee([]), s = E(!1), i = E(""), a = E(null), c = E(null), u = (h) => {
364
- var f, r, b, $, M, A;
364
+ var f, r, v, $, M, L;
365
365
  if (!e.disabled) {
366
366
  if (h.stopPropagation(), s.value = !s.value, s.value) {
367
- (f = a.value) == null || f.classList.add("select--active"), (r = a.value) == null || r.focus(), (b = c.value) == null || b.focus(), document.addEventListener("click", u);
367
+ (f = a.value) == null || f.classList.add("select--active"), (r = a.value) == null || r.focus(), (v = c.value) == null || v.focus(), document.addEventListener("click", u);
368
368
  return;
369
369
  }
370
- ($ = a.value) == null || $.classList.remove("select--active"), (M = a.value) == null || M.blur(), (A = c.value) == null || A.blur(), document.removeEventListener("click", u);
370
+ ($ = a.value) == null || $.classList.remove("select--active"), (M = a.value) == null || M.blur(), (L = c.value) == null || L.blur(), document.removeEventListener("click", u);
371
371
  }
372
372
  }, m = (h, f) => {
373
373
  var r;
@@ -380,53 +380,53 @@ const B = /* @__PURE__ */ N({
380
380
  if (h instanceof KeyboardEvent && h.key !== "Backspace" || i.value !== "")
381
381
  return;
382
382
  h.stopPropagation();
383
- const r = o.findIndex((b) => b.value === f.value);
383
+ const r = o.findIndex((v) => v.value === f.value);
384
384
  o.splice(r, 1);
385
385
  }, y = (h) => {
386
- var b;
386
+ var v;
387
387
  if (!e.taggable)
388
388
  return;
389
389
  h.stopPropagation();
390
390
  const f = i.value;
391
391
  if (f === "")
392
392
  return;
393
- e.options.find(($) => $.label === f) || (o.push({ value: f, label: f }), i.value = "", (b = c.value) == null || b.focus());
393
+ e.options.find(($) => $.label === f) || (o.push({ value: f, label: f }), i.value = "", (v = c.value) == null || v.focus());
394
394
  }, g = w(() => e.options.filter((f) => f.label.toLowerCase().includes(i.value.toLowerCase())));
395
395
  return F(o, (h) => {
396
396
  n("update:modelValue", h);
397
397
  }), (h, f) => (p(), _("div", gt, [
398
- v("div", {
398
+ b("div", {
399
399
  ref_key: "select",
400
400
  ref: a,
401
401
  class: k({ select: !0, "select--disabled": e.disabled }),
402
402
  onClick: u
403
403
  }, [
404
- v("div", {
404
+ b("div", {
405
405
  class: k({
406
406
  "select__prepend-icon": !0,
407
407
  "select__prepend-icon--active": s.value
408
408
  })
409
409
  }, [
410
410
  O(h.$slots, "prepend-icon"),
411
- h.$slots["prepend-icon"] ? z("", !0) : (p(), L(B, {
411
+ h.$slots["prepend-icon"] ? T("", !0) : (p(), I(B, {
412
412
  key: 0,
413
413
  name: e.prependIcon
414
414
  }, null, 8, ["name"]))
415
415
  ], 2),
416
416
  e.taggable ? (p(), _("div", _t, [
417
- (p(!0), _(X, null, le(o, (r, b) => (p(), L(mt, {
418
- key: b,
417
+ (p(!0), _(X, null, le(o, (r, v) => (p(), I(mt, {
418
+ key: v,
419
419
  appendIcon: "close",
420
420
  class: "select__tags__chip",
421
421
  label: r.label,
422
422
  variant: "primary",
423
423
  onClickIcon: ($) => d($, r)
424
424
  }, null, 8, ["label", "onClickIcon"]))), 128))
425
- ])) : z("", !0),
426
- e.multiple ? (p(), _("div", bt, [
427
- (p(!0), _(X, null, le(o, (r, b) => (p(), _("p", { key: b }, C(r.label + ","), 1))), 128))
428
- ])) : z("", !0),
429
- Pe(v("input", {
425
+ ])) : T("", !0),
426
+ e.multiple ? (p(), _("div", vt, [
427
+ (p(!0), _(X, null, le(o, (r, v) => (p(), _("p", { key: v }, C(r.label + ","), 1))), 128))
428
+ ])) : T("", !0),
429
+ Pe(b("input", {
430
430
  id: "select",
431
431
  ref_key: "input",
432
432
  ref: c,
@@ -439,23 +439,23 @@ const B = /* @__PURE__ */ N({
439
439
  f[1] || (f[1] = ye((r) => d(r, o[o.length - 1]), ["backspace"])),
440
440
  f[2] || (f[2] = ye((r) => y(r), ["enter"]))
441
441
  ]
442
- }, null, 40, vt), [
442
+ }, null, 40, bt), [
443
443
  [Fe, i.value]
444
444
  ]),
445
- v("div", {
445
+ b("div", {
446
446
  class: k({
447
447
  "select__append-icon": !0,
448
448
  "select__append-icon--active": s.value
449
449
  })
450
450
  }, [
451
451
  O(h.$slots, "append-icon"),
452
- h.$slots["append-icon"] ? z("", !0) : (p(), L(B, {
452
+ h.$slots["append-icon"] ? T("", !0) : (p(), I(B, {
453
453
  key: 0,
454
454
  name: e.appendIcon
455
455
  }, null, 8, ["name"]))
456
456
  ], 2)
457
457
  ], 2),
458
- v("ul", {
458
+ b("ul", {
459
459
  class: k({ "select-options": !0, "select-options--active": s.value })
460
460
  }, [
461
461
  (p(!0), _(X, null, le(x(g), (r) => (p(), _("li", {
@@ -464,11 +464,11 @@ const B = /* @__PURE__ */ N({
464
464
  "select-options__option": !0,
465
465
  "select-options__option--active": r.label === l.value || (o == null ? void 0 : o.includes(r))
466
466
  }),
467
- onClick: (b) => m(b, r)
467
+ onClick: (v) => m(v, r)
468
468
  }, [
469
- v("div", xt, [
469
+ b("div", xt, [
470
470
  O(h.$slots, "option-prepend"),
471
- h.$slots["option-prepend"] ? z("", !0) : (p(), L(B, {
471
+ h.$slots["option-prepend"] ? T("", !0) : (p(), I(B, {
472
472
  key: 0,
473
473
  class: k({
474
474
  "select-options__option__prepend-icon": !0,
@@ -476,27 +476,27 @@ const B = /* @__PURE__ */ N({
476
476
  }),
477
477
  name: "face"
478
478
  }, null, 8, ["class"])),
479
- v("p", {
479
+ b("p", {
480
480
  class: k({
481
481
  "select-options__option__label": !0,
482
482
  "select-options__option__label--active": r.label === l.value || (o == null ? void 0 : o.includes(r))
483
483
  })
484
484
  }, C(r.label), 3)
485
485
  ]),
486
- r.label === l.value || o != null && o.includes(r) ? (p(), L(B, {
486
+ r.label === l.value || o != null && o.includes(r) ? (p(), I(B, {
487
487
  key: 0,
488
488
  class: k({
489
489
  "select-options__option__append-icon": !0,
490
490
  "select-options__option__append-icon--active": r.label === l.value || (o == null ? void 0 : o.includes(r))
491
491
  }),
492
492
  name: "check"
493
- }, null, 8, ["class"])) : z("", !0)
493
+ }, null, 8, ["class"])) : T("", !0)
494
494
  ], 10, yt))), 128))
495
495
  ], 2)
496
496
  ]));
497
497
  }
498
- }), kt = ["id", "for"], Ae = /* @__PURE__ */ N({
499
- __name: "Label",
498
+ }), kt = ["id", "for"], Le = /* @__PURE__ */ N({
499
+ __name: "RLabel",
500
500
  props: {
501
501
  id: { default: "" },
502
502
  for: { default: "" },
@@ -515,8 +515,8 @@ const B = /* @__PURE__ */ N({
515
515
  }, Mt = {
516
516
  key: 1,
517
517
  class: "snackbar__close"
518
- }, vn = /* @__PURE__ */ N({
519
- __name: "Snackbar",
518
+ }, bn = /* @__PURE__ */ N({
519
+ __name: "RSnackbar",
520
520
  props: {
521
521
  text: { default: "" },
522
522
  actionText: { default: "" },
@@ -550,10 +550,10 @@ const B = /* @__PURE__ */ N({
550
550
  [e.left ? "snackbar--left" : "snackbar--right"]: !0
551
551
  })
552
552
  }, [
553
- v("div", wt, C(e.text), 1),
553
+ b("div", wt, C(e.text), 1),
554
554
  e.showAction ? (p(), _("div", $t, [
555
555
  O(i.$slots, "action"),
556
- i.$slots.action ? z("", !0) : (p(), L(at, {
556
+ i.$slots.action ? T("", !0) : (p(), I(at, {
557
557
  key: 0,
558
558
  size: "small",
559
559
  variant: "ghost",
@@ -564,26 +564,26 @@ const B = /* @__PURE__ */ N({
564
564
  ]),
565
565
  _: 1
566
566
  }))
567
- ])) : z("", !0),
567
+ ])) : T("", !0),
568
568
  e.showClose ? (p(), _("div", Mt, [
569
569
  O(i.$slots, "close"),
570
- i.$slots.close ? z("", !0) : (p(), L(B, {
570
+ i.$slots.close ? T("", !0) : (p(), I(B, {
571
571
  key: 0,
572
572
  name: "close",
573
573
  size: "14",
574
574
  onClick: W(s, ["stop"])
575
575
  }, null, 8, ["onClick"]))
576
- ])) : z("", !0)
576
+ ])) : T("", !0)
577
577
  ], 2));
578
578
  }
579
- }), Tt = { class: "switch-container" }, zt = ["id", "checked"], Ct = /* @__PURE__ */ v("span", { class: "slider round" }, null, -1), It = ["id", "for"], Lt = {
579
+ }), zt = { class: "switch-container" }, Tt = ["id", "checked"], Ct = /* @__PURE__ */ b("span", { class: "slider round" }, null, -1), Rt = ["id", "for"], It = {
580
580
  key: 0,
581
581
  class: "switch-texts__error"
582
- }, At = {
582
+ }, Lt = {
583
583
  key: 1,
584
584
  class: "switch-texts__hint"
585
585
  }, yn = /* @__PURE__ */ N({
586
- __name: "Switch",
586
+ __name: "RSwitch",
587
587
  props: {
588
588
  id: { default: "switch" },
589
589
  modelValue: { default: !1 },
@@ -615,41 +615,41 @@ const B = /* @__PURE__ */ N({
615
615
  // TODO: find a better way to do this
616
616
  immediate: !0
617
617
  }
618
- ), (i, a) => (p(), _("div", Tt, [
619
- v("div", {
618
+ ), (i, a) => (p(), _("div", zt, [
619
+ b("div", {
620
620
  class: k(x(o))
621
621
  }, [
622
- v("input", {
622
+ b("input", {
623
623
  id: e.id,
624
624
  checked: l.checked,
625
625
  class: "switch__input",
626
626
  type: "checkbox",
627
627
  onChange: s
628
- }, null, 40, zt),
628
+ }, null, 40, Tt),
629
629
  Ct
630
630
  ], 2),
631
- v("div", {
631
+ b("div", {
632
632
  class: k({
633
633
  "switch-texts": !0,
634
634
  [`switch-texts--${e.size}`]: !0
635
635
  })
636
636
  }, [
637
- v("label", {
637
+ b("label", {
638
638
  id: e.id,
639
639
  class: "switch-texts__label",
640
640
  for: e.id
641
- }, C(e.label), 9, It),
642
- e.errorMsg ? (p(), _("p", Lt, C(e.errorMsg), 1)) : (p(), _("p", At, C(e.hint), 1))
641
+ }, C(e.label), 9, Rt),
642
+ e.errorMsg ? (p(), _("p", It, C(e.errorMsg), 1)) : (p(), _("p", Lt, C(e.hint), 1))
643
643
  ], 2)
644
644
  ]));
645
645
  }
646
646
  });
647
647
  var se = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.TEXT_ONLY = "text-only", t.ICON_ONLY = "icon-only", t))(se || {});
648
- const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
648
+ const At = ["aria-disabled", "aria-selected", "disabled"], Nt = {
649
649
  key: 1,
650
650
  class: "tab-item__label"
651
651
  }, Dt = /* @__PURE__ */ N({
652
- __name: "TabItem",
652
+ __name: "RTabItem",
653
653
  props: {
654
654
  id: null,
655
655
  variant: { default: se.DEFAULT },
@@ -676,17 +676,17 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
676
676
  onClick: i[0] || (i[0] = (a) => o(e.id))
677
677
  }, [
678
678
  O(s.$slots, "icon"),
679
- !s.$slots.icon && t.variant !== x(se).TEXT_ONLY ? (p(), L(B, {
679
+ !s.$slots.icon && t.variant !== x(se).TEXT_ONLY ? (p(), I(B, {
680
680
  key: 0,
681
681
  class: "tab-item__icon",
682
682
  name: e.icon,
683
683
  size: "16"
684
- }, null, 8, ["name"])) : z("", !0),
685
- t.variant !== x(se).ICON_ONLY ? (p(), _("span", Nt, C(e.label), 1)) : z("", !0)
686
- ], 10, Rt));
684
+ }, null, 8, ["name"])) : T("", !0),
685
+ t.variant !== x(se).ICON_ONLY ? (p(), _("span", Nt, C(e.label), 1)) : T("", !0)
686
+ ], 10, At));
687
687
  }
688
688
  }), Bt = { class: "tabs-wrapper" }, jt = { class: "tab-content" }, xn = /* @__PURE__ */ N({
689
- __name: "Tabs",
689
+ __name: "RTabs",
690
690
  props: {
691
691
  tabs: { default: () => [] },
692
692
  scrollable: { type: Boolean, default: !1 }
@@ -697,11 +697,11 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
697
697
  "tabs--scrollable": n.scrollable
698
698
  }));
699
699
  return (o, s) => (p(), _(X, null, [
700
- v("div", Bt, [
701
- v("div", {
700
+ b("div", Bt, [
701
+ b("div", {
702
702
  class: k(x(l))
703
703
  }, [
704
- (p(!0), _(X, null, le(n.tabs, (i, a) => (p(), L(Dt, {
704
+ (p(!0), _(X, null, le(n.tabs, (i, a) => (p(), I(Dt, {
705
705
  id: i.id,
706
706
  key: a,
707
707
  modelValue: e.value,
@@ -713,7 +713,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
713
713
  }, null, 8, ["id", "modelValue", "active", "disabled", "icon", "label"]))), 128))
714
714
  ], 2)
715
715
  ]),
716
- v("div", jt, [
716
+ b("div", jt, [
717
717
  O(o.$slots, "tab", { activeTab: e.value })
718
718
  ])
719
719
  ], 64));
@@ -725,7 +725,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
725
725
  key: 2,
726
726
  class: "textarea__hint"
727
727
  }, kn = /* @__PURE__ */ N({
728
- __name: "TextArea",
728
+ __name: "RTextArea",
729
729
  props: {
730
730
  id: { default: "" },
731
731
  modelValue: { default: "" },
@@ -752,14 +752,14 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
752
752
  immediate: !0
753
753
  }
754
754
  ), (s, i) => (p(), _("div", Et, [
755
- e.label ? (p(), L(Ae, {
755
+ e.label ? (p(), I(Le, {
756
756
  key: 0,
757
757
  id: "textarea",
758
758
  class: "textarea__label",
759
759
  for: "textarea",
760
760
  text: e.label
761
- }, null, 8, ["text"])) : z("", !0),
762
- v("textarea", {
761
+ }, null, 8, ["text"])) : T("", !0),
762
+ b("textarea", {
763
763
  id: e.id,
764
764
  class: k(["textarea", {
765
765
  "textarea--error": e.errorMsg,
@@ -781,7 +781,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
781
781
  key: 0,
782
782
  class: "textfield__hint"
783
783
  }, wn = /* @__PURE__ */ N({
784
- __name: "Textfield",
784
+ __name: "RTextfield",
785
785
  props: {
786
786
  id: { default: "" },
787
787
  type: { default: "text" },
@@ -815,13 +815,13 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
815
815
  number: "123",
816
816
  text: ""
817
817
  }, a = E(!1), c = w(() => !!o.value), u = w(() => {
818
- const { disabled: T, loading: R, clearable: I, errorMsg: D } = e;
818
+ const { disabled: z, loading: A, clearable: R, errorMsg: D } = e;
819
819
  return {
820
820
  textfield: !0,
821
821
  "textfield--error": D == null ? void 0 : D.length,
822
- "textfield--loading": R,
823
- "textfield--disabled": T,
824
- "textfield--clearable": I,
822
+ "textfield--loading": A,
823
+ "textfield--disabled": z,
824
+ "textfield--clearable": R,
825
825
  "textfield--focus": a.value,
826
826
  "textfield--filled": c.value
827
827
  };
@@ -834,15 +834,15 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
834
834
  "textfield__append-icon--clear": h.value,
835
835
  "textfield__append-icon--error": g.value
836
836
  })), y = w(() => o.value.length > 0), g = w(() => {
837
- var T;
838
- return (T = e.errorMsg) == null ? void 0 : T.length;
837
+ var z;
838
+ return (z = e.errorMsg) == null ? void 0 : z.length;
839
839
  }), h = w(() => e.clearable && y.value), f = w(() => {
840
- const { prependIcon: T, type: R } = e;
841
- return T || i[R];
840
+ const { prependIcon: z, type: A } = e;
841
+ return z || i[A];
842
842
  }), r = w(() => {
843
- const { appendIcon: T, type: R } = e;
844
- return g.value ? "error_outline" : h.value && ["text", "email"].includes(R) ? "clear" : R === "password" && s.value === "password" ? "visibility" : R === "password" && s.value === "text" ? "visibility_off" : T;
845
- }), b = () => {
843
+ const { appendIcon: z, type: A } = e;
844
+ return g.value ? "error_outline" : h.value && ["text", "email"].includes(A) ? "clear" : A === "password" && s.value === "password" ? "visibility" : A === "password" && s.value === "text" ? "visibility_off" : z;
845
+ }), v = () => {
846
846
  a.value = !0, n("focus", {
847
847
  value: o.value
848
848
  });
@@ -851,38 +851,38 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
851
851
  value: o.value
852
852
  });
853
853
  }, M = () => {
854
- var T;
854
+ var z;
855
855
  if (h.value) {
856
- o.value = "", (T = l.value) == null || T.focus(), n("click:clear", {
856
+ o.value = "", (z = l.value) == null || z.focus(), n("click:clear", {
857
857
  value: o.value
858
858
  });
859
859
  return;
860
860
  }
861
861
  n("click:icon", {
862
862
  value: o.value
863
- }), A();
864
- }, A = () => {
863
+ }), L();
864
+ }, L = () => {
865
865
  s.value = s.value === "password" ? "text" : "password";
866
- }, j = (T) => {
867
- const R = T.target;
868
- o.value = R.value;
866
+ }, j = (z) => {
867
+ const A = z.target;
868
+ o.value = A.value;
869
869
  };
870
870
  return F(
871
871
  () => e.modelValue,
872
- (T) => {
873
- o.value = T;
872
+ (z) => {
873
+ o.value = z;
874
874
  },
875
875
  {
876
876
  immediate: !0
877
877
  }
878
878
  ), F(
879
879
  () => o.value,
880
- (T) => {
881
- n("update:modelValue", T);
880
+ (z) => {
881
+ n("update:modelValue", z);
882
882
  }
883
- ), (T, R) => (p(), _("fieldset", null, [
884
- v("div", St, [
885
- ge(Ae, {
883
+ ), (z, A) => (p(), _("fieldset", null, [
884
+ b("div", St, [
885
+ ge(Le, {
886
886
  id: e.id,
887
887
  class: k({
888
888
  textfield__label: !0
@@ -890,17 +890,17 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
890
890
  for: e.id,
891
891
  text: e.label
892
892
  }, null, 8, ["id", "for", "text"]),
893
- v("div", Yt, [
894
- v("div", {
893
+ b("div", Yt, [
894
+ b("div", {
895
895
  class: k(x(u))
896
896
  }, [
897
- x(f) ? (p(), L(B, {
897
+ x(f) ? (p(), I(B, {
898
898
  key: 0,
899
899
  class: k(x(m)),
900
900
  name: x(f),
901
901
  size: 16
902
- }, null, 8, ["class", "name"])) : z("", !0),
903
- v("input", {
902
+ }, null, 8, ["class", "name"])) : T("", !0),
903
+ b("input", {
904
904
  id: e.id,
905
905
  ref_key: "inputRef",
906
906
  ref: l,
@@ -909,20 +909,20 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
909
909
  type: s.value,
910
910
  value: o.value,
911
911
  onBlur: $,
912
- onFocus: b,
912
+ onFocus: v,
913
913
  onInput: j
914
914
  }, null, 40, Wt),
915
- x(r) ? (p(), L(B, {
915
+ x(r) ? (p(), I(B, {
916
916
  key: 1,
917
917
  class: k(x(d)),
918
918
  color: e.iconColor,
919
919
  name: `${x(r)}`,
920
920
  size: 16,
921
921
  onClick: M
922
- }, null, 8, ["class", "color", "name"])) : z("", !0)
922
+ }, null, 8, ["class", "color", "name"])) : T("", !0)
923
923
  ], 2),
924
- v("div", Pt, C(e.errorMsg), 1),
925
- e.errorMsg ? z("", !0) : (p(), _("div", Ft, C(e.hint), 1))
924
+ b("div", Pt, C(e.errorMsg), 1),
925
+ e.errorMsg ? T("", !0) : (p(), _("div", Ft, C(e.hint), 1))
926
926
  ])
927
927
  ])
928
928
  ]));
@@ -973,12 +973,12 @@ const Ut = async (t, n, e) => {
973
973
  const { placement: l = "bottom", strategy: o = "absolute", middleware: s = [], platform: i } = e, a = s.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(n));
974
974
  let u = await i.getElementRects({ reference: t, floating: n, strategy: o }), { x: m, y: d } = ke(u, l, c), y = l, g = {}, h = 0;
975
975
  for (let f = 0; f < a.length; f++) {
976
- const { name: r, fn: b } = a[f], { x: $, y: M, data: A, reset: j } = await b({ x: m, y: d, initialPlacement: l, placement: y, strategy: o, middlewareData: g, rects: u, platform: i, elements: { reference: t, floating: n } });
977
- m = $ ?? m, d = M ?? d, g = { ...g, [r]: { ...g[r], ...A } }, j && h <= 50 && (h++, typeof j == "object" && (j.placement && (y = j.placement), j.rects && (u = j.rects === !0 ? await i.getElementRects({ reference: t, floating: n, strategy: o }) : j.rects), { x: m, y: d } = ke(u, y, c)), f = -1);
976
+ const { name: r, fn: v } = a[f], { x: $, y: M, data: L, reset: j } = await v({ x: m, y: d, initialPlacement: l, placement: y, strategy: o, middlewareData: g, rects: u, platform: i, elements: { reference: t, floating: n } });
977
+ m = $ ?? m, d = M ?? d, g = { ...g, [r]: { ...g[r], ...L } }, j && h <= 50 && (h++, typeof j == "object" && (j.placement && (y = j.placement), j.rects && (u = j.rects === !0 ? await i.getElementRects({ reference: t, floating: n, strategy: o }) : j.rects), { x: m, y: d } = ke(u, y, c)), f = -1);
978
978
  }
979
979
  return { x: m, y: d, placement: y, strategy: o, middlewareData: g };
980
980
  };
981
- function Re(t) {
981
+ function Ae(t) {
982
982
  return typeof t != "number" ? function(n) {
983
983
  return { top: 0, right: 0, bottom: 0, left: 0, ...n };
984
984
  }(t) : { top: t, right: t, bottom: t, left: t };
@@ -989,8 +989,8 @@ function ae(t) {
989
989
  async function ie(t, n) {
990
990
  var e;
991
991
  n === void 0 && (n = {});
992
- const { x: l, y: o, platform: s, rects: i, elements: a, strategy: c } = t, { boundary: u = "clippingAncestors", rootBoundary: m = "viewport", elementContext: d = "floating", altBoundary: y = !1, padding: g = 0 } = n, h = Re(g), f = a[y ? d === "floating" ? "reference" : "floating" : d], r = ae(await s.getClippingRect({ element: (e = await (s.isElement == null ? void 0 : s.isElement(f))) == null || e ? f : f.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)), boundary: u, rootBoundary: m, strategy: c })), b = ae(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: d === "floating" ? { ...i.floating, x: l, y: o } : i.reference, offsetParent: await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), strategy: c }) : i[d]);
993
- return { top: r.top - b.top + h.top, bottom: b.bottom - r.bottom + h.bottom, left: r.left - b.left + h.left, right: b.right - r.right + h.right };
992
+ const { x: l, y: o, platform: s, rects: i, elements: a, strategy: c } = t, { boundary: u = "clippingAncestors", rootBoundary: m = "viewport", elementContext: d = "floating", altBoundary: y = !1, padding: g = 0 } = n, h = Ae(g), f = a[y ? d === "floating" ? "reference" : "floating" : d], r = ae(await s.getClippingRect({ element: (e = await (s.isElement == null ? void 0 : s.isElement(f))) == null || e ? f : f.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)), boundary: u, rootBoundary: m, strategy: c })), v = ae(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: d === "floating" ? { ...i.floating, x: l, y: o } : i.reference, offsetParent: await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), strategy: c }) : i[d]);
993
+ return { top: r.top - v.top + h.top, bottom: v.bottom - r.bottom + h.bottom, left: r.left - v.left + h.left, right: v.right - r.right + h.right };
994
994
  }
995
995
  const Zt = Math.min, Qt = Math.max;
996
996
  function he(t, n, e) {
@@ -1000,11 +1000,11 @@ const Xt = (t) => ({ name: "arrow", options: t, async fn(n) {
1000
1000
  const { element: e, padding: l = 0 } = t ?? {}, { x: o, y: s, placement: i, rects: a, platform: c } = n;
1001
1001
  if (e == null)
1002
1002
  return {};
1003
- const u = Re(l), m = { x: o, y: s }, d = ne(i), y = de(i), g = _e(d), h = await c.getDimensions(e), f = d === "y" ? "top" : "left", r = d === "y" ? "bottom" : "right", b = a.reference[g] + a.reference[d] - m[d] - a.floating[g], $ = m[d] - a.reference[d], M = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(e));
1004
- let A = M ? d === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0;
1005
- A === 0 && (A = a.floating[g]);
1006
- const j = b / 2 - $ / 2, T = u[f], R = A - h[g] - u[r], I = A / 2 - h[g] / 2 + j, D = he(T, I, R), Q = (y === "start" ? u[f] : u[r]) > 0 && I !== D && a.reference[g] <= a.floating[g];
1007
- return { [d]: m[d] - (Q ? I < T ? T - I : R - I : 0), data: { [d]: D, centerOffset: I - D } };
1003
+ const u = Ae(l), m = { x: o, y: s }, d = ne(i), y = de(i), g = _e(d), h = await c.getDimensions(e), f = d === "y" ? "top" : "left", r = d === "y" ? "bottom" : "right", v = a.reference[g] + a.reference[d] - m[d] - a.floating[g], $ = m[d] - a.reference[d], M = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(e));
1004
+ let L = M ? d === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0;
1005
+ L === 0 && (L = a.floating[g]);
1006
+ const j = v / 2 - $ / 2, z = u[f], A = L - h[g] - u[r], R = L / 2 - h[g] / 2 + j, D = he(z, R, A), Q = (y === "start" ? u[f] : u[r]) > 0 && R !== D && a.reference[g] <= a.floating[g];
1007
+ return { [d]: m[d] - (Q ? R < z ? z - R : A - R : 0), data: { [d]: D, centerOffset: R - D } };
1008
1008
  } }), Kt = { left: "right", right: "left", bottom: "top", top: "bottom" };
1009
1009
  function re(t) {
1010
1010
  return t.replace(/left|right|bottom|top/g, (n) => Kt[n]);
@@ -1024,26 +1024,26 @@ Ne.reduce((t, n) => t.concat(n, n + "-start", n + "-end"), []);
1024
1024
  const qt = function(t) {
1025
1025
  return t === void 0 && (t = {}), { name: "flip", options: t, async fn(n) {
1026
1026
  var e;
1027
- const { placement: l, middlewareData: o, rects: s, initialPlacement: i, platform: a, elements: c } = n, { mainAxis: u = !0, crossAxis: m = !0, fallbackPlacements: d, fallbackStrategy: y = "bestFit", flipAlignment: g = !0, ...h } = t, f = te(l), r = d || (f === i || !g ? [re(i)] : function(I) {
1028
- const D = re(I);
1029
- return [we(I), D, we(D)];
1030
- }(i)), b = [i, ...r], $ = await ie(n, h), M = [];
1031
- let A = ((e = o.flip) == null ? void 0 : e.overflows) || [];
1027
+ const { placement: l, middlewareData: o, rects: s, initialPlacement: i, platform: a, elements: c } = n, { mainAxis: u = !0, crossAxis: m = !0, fallbackPlacements: d, fallbackStrategy: y = "bestFit", flipAlignment: g = !0, ...h } = t, f = te(l), r = d || (f === i || !g ? [re(i)] : function(R) {
1028
+ const D = re(R);
1029
+ return [we(R), D, we(D)];
1030
+ }(i)), v = [i, ...r], $ = await ie(n, h), M = [];
1031
+ let L = ((e = o.flip) == null ? void 0 : e.overflows) || [];
1032
1032
  if (u && M.push($[f]), m) {
1033
- const { main: I, cross: D } = Gt(l, s, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
1034
- M.push($[I], $[D]);
1033
+ const { main: R, cross: D } = Gt(l, s, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
1034
+ M.push($[R], $[D]);
1035
1035
  }
1036
- if (A = [...A, { placement: l, overflows: M }], !M.every((I) => I <= 0)) {
1037
- var j, T;
1038
- const I = ((j = (T = o.flip) == null ? void 0 : T.index) != null ? j : 0) + 1, D = b[I];
1036
+ if (L = [...L, { placement: l, overflows: M }], !M.every((R) => R <= 0)) {
1037
+ var j, z;
1038
+ const R = ((j = (z = o.flip) == null ? void 0 : z.index) != null ? j : 0) + 1, D = v[R];
1039
1039
  if (D)
1040
- return { data: { index: I, overflows: A }, reset: { placement: D } };
1040
+ return { data: { index: R, overflows: L }, reset: { placement: D } };
1041
1041
  let Q = "bottom";
1042
1042
  switch (y) {
1043
1043
  case "bestFit": {
1044
- var R;
1045
- const ve = (R = A.map((oe) => [oe, oe.overflows.filter((G) => G > 0).reduce((G, Se) => G + Se, 0)]).sort((oe, G) => oe[1] - G[1])[0]) == null ? void 0 : R[0].placement;
1046
- ve && (Q = ve);
1044
+ var A;
1045
+ const be = (A = L.map((oe) => [oe, oe.overflows.filter((G) => G > 0).reduce((G, Se) => G + Se, 0)]).sort((oe, G) => oe[1] - G[1])[0]) == null ? void 0 : A[0].placement;
1046
+ be && (Q = be);
1047
1047
  break;
1048
1048
  }
1049
1049
  case "initialPlacement":
@@ -1082,8 +1082,8 @@ const en = function(t) {
1082
1082
  return t === void 0 && (t = 0), { name: "offset", options: t, async fn(n) {
1083
1083
  const { x: e, y: l } = n, o = await async function(s, i) {
1084
1084
  const { placement: a, platform: c, elements: u } = s, m = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), d = te(a), y = de(a), g = ne(a) === "x", h = ["left", "top"].includes(d) ? -1 : 1, f = m && g ? -1 : 1, r = typeof i == "function" ? i(s) : i;
1085
- let { mainAxis: b, crossAxis: $, alignmentAxis: M } = typeof r == "number" ? { mainAxis: r, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...r };
1086
- return y && typeof M == "number" && ($ = y === "end" ? -1 * M : M), g ? { x: $ * f, y: b * h } : { x: b * h, y: $ * f };
1085
+ let { mainAxis: v, crossAxis: $, alignmentAxis: M } = typeof r == "number" ? { mainAxis: r, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...r };
1086
+ return y && typeof M == "number" && ($ = y === "end" ? -1 * M : M), g ? { x: $ * f, y: v * h } : { x: v * h, y: $ * f };
1087
1087
  }(n, t);
1088
1088
  return { x: e + o.x, y: l + o.y, data: o };
1089
1089
  } };
@@ -1094,8 +1094,8 @@ function nn(t) {
1094
1094
  const on = function(t) {
1095
1095
  return t === void 0 && (t = {}), { name: "shift", options: t, async fn(n) {
1096
1096
  const { x: e, y: l, placement: o } = n, { mainAxis: s = !0, crossAxis: i = !1, limiter: a = { fn: (r) => {
1097
- let { x: b, y: $ } = r;
1098
- return { x: b, y: $ };
1097
+ let { x: v, y: $ } = r;
1098
+ return { x: v, y: $ };
1099
1099
  } }, ...c } = t, u = { x: e, y: l }, m = await ie(n, c), d = ne(te(o)), y = nn(d);
1100
1100
  let g = u[d], h = u[y];
1101
1101
  if (s) {
@@ -1138,7 +1138,7 @@ function H(t) {
1138
1138
  function K(t) {
1139
1139
  return t instanceof S(t).Element;
1140
1140
  }
1141
- function Te(t) {
1141
+ function ze(t) {
1142
1142
  return typeof ShadowRoot > "u" ? !1 : t instanceof S(t).ShadowRoot || t instanceof ShadowRoot;
1143
1143
  }
1144
1144
  function ue(t) {
@@ -1158,10 +1158,10 @@ function me(t) {
1158
1158
  function je() {
1159
1159
  return !/^((?!chrome|android).)*safari/i.test(Be());
1160
1160
  }
1161
- function be(t) {
1161
+ function ve(t) {
1162
1162
  return ["html", "body", "#document"].includes(U(t));
1163
1163
  }
1164
- const ze = Math.min, J = Math.max, ce = Math.round;
1164
+ const Te = Math.min, J = Math.max, ce = Math.round;
1165
1165
  function Z(t, n, e) {
1166
1166
  var l, o, s, i;
1167
1167
  n === void 0 && (n = !1), e === void 0 && (e = !1);
@@ -1199,20 +1199,20 @@ function sn(t, n, e) {
1199
1199
  function q(t) {
1200
1200
  if (U(t) === "html")
1201
1201
  return t;
1202
- const n = t.assignedSlot || t.parentNode || (Te(t) ? t.host : null) || P(t);
1203
- return Te(n) ? n.host : n;
1202
+ const n = t.assignedSlot || t.parentNode || (ze(t) ? t.host : null) || P(t);
1203
+ return ze(n) ? n.host : n;
1204
1204
  }
1205
1205
  function Ce(t) {
1206
1206
  return H(t) && V(t).position !== "fixed" ? t.offsetParent : null;
1207
1207
  }
1208
- function Ie(t) {
1208
+ function Re(t) {
1209
1209
  const n = S(t);
1210
1210
  let e = Ce(t);
1211
1211
  for (; e && ln(e) && V(e).position === "static"; )
1212
1212
  e = Ce(e);
1213
1213
  return e && (U(e) === "html" || U(e) === "body" && V(e).position === "static" && !me(e)) ? n : e || function(l) {
1214
1214
  let o = q(l);
1215
- for (; H(o) && !be(o); ) {
1215
+ for (; H(o) && !ve(o); ) {
1216
1216
  if (me(o))
1217
1217
  return o;
1218
1218
  o = q(o);
@@ -1222,7 +1222,7 @@ function Ie(t) {
1222
1222
  }
1223
1223
  function Oe(t) {
1224
1224
  const n = q(t);
1225
- return be(n) ? t.ownerDocument.body : H(n) && ue(n) ? n : Oe(n);
1225
+ return ve(n) ? t.ownerDocument.body : H(n) && ue(n) ? n : Oe(n);
1226
1226
  }
1227
1227
  function Ve(t, n) {
1228
1228
  var e;
@@ -1230,7 +1230,7 @@ function Ve(t, n) {
1230
1230
  const l = Oe(t), o = l === ((e = t.ownerDocument) == null ? void 0 : e.body), s = S(l), i = o ? [s].concat(s.visualViewport || [], ue(l) ? l : []) : l, a = n.concat(i);
1231
1231
  return o ? a : a.concat(Ve(i));
1232
1232
  }
1233
- function Le(t, n, e) {
1233
+ function Ie(t, n, e) {
1234
1234
  return n === "viewport" ? ae(function(l, o) {
1235
1235
  const s = S(l), i = P(l), a = s.visualViewport;
1236
1236
  let c = i.clientWidth, u = i.clientHeight, m = 0, d = 0;
@@ -1257,15 +1257,15 @@ const an = { getClippingRect: function(t) {
1257
1257
  let m = Ve(u).filter((h) => K(h) && U(h) !== "body"), d = null;
1258
1258
  const y = V(u).position === "fixed";
1259
1259
  let g = y ? q(u) : u;
1260
- for (; K(g) && !be(g); ) {
1260
+ for (; K(g) && !ve(g); ) {
1261
1261
  const h = V(g), f = me(g);
1262
1262
  (y ? f || d : f || h.position !== "static" || !d || !["absolute", "fixed"].includes(d.position)) ? d = h : m = m.filter((r) => r !== g), g = q(g);
1263
1263
  }
1264
1264
  return m;
1265
1265
  }(n) : [].concat(e), i = [...s, l], a = i[0], c = i.reduce((u, m) => {
1266
- const d = Le(n, m, o);
1267
- return u.top = J(d.top, u.top), u.right = ze(d.right, u.right), u.bottom = ze(d.bottom, u.bottom), u.left = J(d.left, u.left), u;
1268
- }, Le(n, a, o));
1266
+ const d = Ie(n, m, o);
1267
+ return u.top = J(d.top, u.top), u.right = Te(d.right, u.right), u.bottom = Te(d.bottom, u.bottom), u.left = J(d.left, u.left), u;
1268
+ }, Ie(n, a, o));
1269
1269
  return { width: c.right - c.left, height: c.bottom - c.top, x: c.left, y: c.top };
1270
1270
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
1271
1271
  let { rect: n, offsetParent: e, strategy: l } = t;
@@ -1284,9 +1284,9 @@ const an = { getClippingRect: function(t) {
1284
1284
  return { width: t.offsetWidth, height: t.offsetHeight };
1285
1285
  const n = Z(t);
1286
1286
  return { width: n.width, height: n.height };
1287
- }, getOffsetParent: Ie, getDocumentElement: P, async getElementRects(t) {
1287
+ }, getOffsetParent: Re, getDocumentElement: P, async getElementRects(t) {
1288
1288
  let { reference: n, floating: e, strategy: l } = t;
1289
- const o = this.getOffsetParent || Ie, s = this.getDimensions;
1289
+ const o = this.getOffsetParent || Re, s = this.getDimensions;
1290
1290
  return { reference: sn(n, await o(e), l), floating: { x: 0, y: 0, ...await s(e) } };
1291
1291
  }, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => V(t).direction === "rtl" }, rn = (t, n, e) => Ut(t, n, { platform: an, ...e });
1292
1292
  function pe({ value: t }, { value: n }, { value: e }, l, o, s) {
@@ -1323,7 +1323,7 @@ function pe({ value: t }, { value: n }, { value: e }, l, o, s) {
1323
1323
  }
1324
1324
  var He = /* @__PURE__ */ ((t) => (t.Top = "top", t.Bottom = "bottom", t.Left = "left", t.Right = "right", t.TopStart = "top-start", t.TopEnd = "top-end", t.RightStart = "right-start", t.RightEnd = "right-end", t.BottomStart = "bottom-start", t.BottomEnd = "bottom-end", t.LeftStart = "left-start", t.LeftEnd = "left-end", t))(He || {}), Y = /* @__PURE__ */ ((t) => (t.Click = "click", t.Hover = "hover", t.Manual = "manual", t))(Y || {});
1325
1325
  const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], dn = ["innerHTML"], un = /* @__PURE__ */ N({
1326
- __name: "Tooltip",
1326
+ __name: "RTooltip",
1327
1327
  props: {
1328
1328
  placement: { default: He.Top },
1329
1329
  text: { default: "" },
@@ -1345,12 +1345,12 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
1345
1345
  setup(t, { emit: n }) {
1346
1346
  const e = t;
1347
1347
  Xe((r) => ({
1348
- "11aba73c": x(f)
1348
+ "271323d4": x(f)
1349
1349
  }));
1350
1350
  const l = E(null), o = E(null), s = E(null);
1351
1351
  function i() {
1352
- const { placement: r, offset: b, padding: $, disabled: M } = e;
1353
- M || (o.value.style.display = "block", n("show"), pe(l, o, s, r, b, $), c(), e.outsideClick && u("add"));
1352
+ const { placement: r, offset: v, padding: $, disabled: M } = e;
1353
+ M || (o.value.style.display = "block", n("show"), pe(l, o, s, r, v, $), c(), e.outsideClick && u("add"));
1354
1354
  }
1355
1355
  function a() {
1356
1356
  o.value.style.display = "", n("hide"), e.outsideClick && u("remove");
@@ -1373,16 +1373,16 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
1373
1373
  } else
1374
1374
  o.value.style.display !== "" && e.triggers === Y.Hover && a();
1375
1375
  }, g = () => {
1376
- const { placement: r, offset: b, padding: $, disabled: M } = e;
1377
- M || e.triggers === Y.Hover && pe(l, o, s, r, b, $);
1376
+ const { placement: r, offset: v, padding: $, disabled: M } = e;
1377
+ M || e.triggers === Y.Hover && pe(l, o, s, r, v, $);
1378
1378
  }, h = w(() => ({
1379
1379
  tooltip: !0,
1380
1380
  "tooltip--dark": e.dark,
1381
1381
  "tooltip--light": e.light
1382
1382
  }));
1383
1383
  window.onresize = () => {
1384
- const { placement: r, offset: b, padding: $, disabled: M } = e;
1385
- M || e.resizable && pe(l, o, s, r, b, $);
1384
+ const { placement: r, offset: v, padding: $, disabled: M } = e;
1385
+ M || e.resizable && pe(l, o, s, r, v, $);
1386
1386
  }, Ke(
1387
1387
  () => {
1388
1388
  e.disabled || e.shown && e.triggers === Y.Manual && i();
@@ -1391,8 +1391,8 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
1391
1391
  // this is important to avoid infinite loop & for fire on mounted
1392
1392
  );
1393
1393
  const f = w(() => `${e.showDelay}ms`);
1394
- return (r, b) => (p(), _(X, null, [
1395
- v("div", {
1394
+ return (r, v) => (p(), _(X, null, [
1395
+ b("div", {
1396
1396
  ref_key: "trigger",
1397
1397
  ref: l,
1398
1398
  "aria-disabled": e.disabled,
@@ -1403,12 +1403,12 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
1403
1403
  onMousemove: W(g, ["stop"])
1404
1404
  }, [
1405
1405
  O(r.$slots, "trigger", {}, void 0, !0),
1406
- r.$slots.trigger ? z("", !0) : (p(), _("div", {
1406
+ r.$slots.trigger ? T("", !0) : (p(), _("div", {
1407
1407
  key: 0,
1408
1408
  innerHTML: e.triggerContent
1409
1409
  }, null, 8, dn))
1410
1410
  ], 40, cn),
1411
- v("div", {
1411
+ b("div", {
1412
1412
  id: "tooltip",
1413
1413
  ref_key: "tooltip",
1414
1414
  ref: o,
@@ -1416,7 +1416,7 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
1416
1416
  role: "tooltip"
1417
1417
  }, [
1418
1418
  O(r.$slots, "content", {}, void 0, !0),
1419
- r.$slots.content ? z("", !0) : (p(), _("div", {
1419
+ r.$slots.content ? T("", !0) : (p(), _("div", {
1420
1420
  key: 0,
1421
1421
  class: k({
1422
1422
  tooltip__content: !0,
@@ -1424,7 +1424,7 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
1424
1424
  "tooltip__content--light": e.light
1425
1425
  })
1426
1426
  }, C(e.text), 3)),
1427
- r.$slots.content ? z("", !0) : (p(), _("div", {
1427
+ r.$slots.content ? T("", !0) : (p(), _("div", {
1428
1428
  key: 1,
1429
1429
  id: "arrow",
1430
1430
  ref_key: "arrowElement",
@@ -1444,7 +1444,7 @@ const fn = (t, n) => {
1444
1444
  for (const [l, o] of n)
1445
1445
  e[l] = o;
1446
1446
  return e;
1447
- }, $n = /* @__PURE__ */ fn(un, [["__scopeId", "data-v-af8d63f8"]]);
1447
+ }, $n = /* @__PURE__ */ fn(un, [["__scopeId", "data-v-ee5f5651"]]);
1448
1448
  export {
1449
1449
  hn as RAlert,
1450
1450
  mn as RAvatar,
@@ -1452,10 +1452,10 @@ export {
1452
1452
  at as RButton,
1453
1453
  _n as RCheckbox,
1454
1454
  mt as RChip,
1455
- bn as RDropdown,
1455
+ vn as RDropdown,
1456
1456
  B as RIcon,
1457
- Ae as RLabel,
1458
- vn as RSnackbar,
1457
+ Le as RLabel,
1458
+ bn as RSnackbar,
1459
1459
  yn as RSwitch,
1460
1460
  Dt as RTabItem,
1461
1461
  xn as RTabs,