@rocketui/vue 0.0.12 → 0.0.14

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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  ## Installation
5
5
 
6
6
  ```sh
7
- yarn add @rocket-ui/vue
7
+ yarn add @rocketui/vue
8
8
  ```
9
9
 
10
10
  ## Usage
@@ -16,7 +16,7 @@ import { createApp } from 'vue'
16
16
  import App from './App.vue'
17
17
 
18
18
  // Import the Styles
19
- import '@rocket-ui/vue/dist/style.css'
19
+ import '@rocketui/vue/dist/style.css'
20
20
 
21
21
  createApp(App).mount('#app')
22
22
  ```
@@ -25,7 +25,7 @@ Then you can use the components in your `App.vue` file:
25
25
 
26
26
  ```vue
27
27
  <script setup>
28
- import { Button } from '@rocket-ui/vue'
28
+ import { Button } from '@rocketui/vue'
29
29
  </script>
30
30
 
31
31
  <template>
@@ -1,4 +1,4 @@
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 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
3
  __name: "RIcon",
4
4
  props: {
@@ -66,14 +66,14 @@ const B = /* @__PURE__ */ N({
66
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({
@@ -115,7 +115,7 @@ 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({
@@ -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 = {
@@ -320,23 +320,23 @@ const B = /* @__PURE__ */ N({
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),
329
+ }, null, 8, ["aria-disabled", "name", "size"])) : T("", !0),
330
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 = {
@@ -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, v, $, 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
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;
@@ -408,13 +408,13 @@ const B = /* @__PURE__ */ N({
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, v) => (p(), L(mt, {
417
+ (p(!0), _(X, null, le(o, (r, v) => (p(), I(mt, {
418
418
  key: v,
419
419
  appendIcon: "close",
420
420
  class: "select__tags__chip",
@@ -422,10 +422,10 @@ const B = /* @__PURE__ */ N({
422
422
  variant: "primary",
423
423
  onClickIcon: ($) => d($, r)
424
424
  }, null, 8, ["label", "onClickIcon"]))), 128))
425
- ])) : z("", !0),
425
+ ])) : T("", !0),
426
426
  e.multiple ? (p(), _("div", vt, [
427
427
  (p(!0), _(X, null, le(o, (r, v) => (p(), _("p", { key: v }, C(r.label + ","), 1))), 128))
428
- ])) : z("", !0),
428
+ ])) : T("", !0),
429
429
  Pe(b("input", {
430
430
  id: "select",
431
431
  ref_key: "input",
@@ -449,7 +449,7 @@ const B = /* @__PURE__ */ N({
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"]))
@@ -468,7 +468,7 @@ const B = /* @__PURE__ */ N({
468
468
  }, [
469
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,
@@ -483,19 +483,19 @@ const B = /* @__PURE__ */ N({
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({
498
+ }), kt = ["id", "for"], Le = /* @__PURE__ */ N({
499
499
  __name: "RLabel",
500
500
  props: {
501
501
  id: { default: "" },
@@ -553,7 +553,7 @@ const B = /* @__PURE__ */ N({
553
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,22 +564,22 @@ 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__ */ b("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({
@@ -615,7 +615,7 @@ 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, [
618
+ ), (i, a) => (p(), _("div", zt, [
619
619
  b("div", {
620
620
  class: k(x(o))
621
621
  }, [
@@ -625,7 +625,7 @@ const B = /* @__PURE__ */ N({
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
631
  b("div", {
@@ -638,14 +638,14 @@ const B = /* @__PURE__ */ N({
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({
@@ -676,14 +676,14 @@ 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
689
  __name: "RTabs",
@@ -701,7 +701,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
701
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,
@@ -752,13 +752,13 @@ 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),
761
+ }, null, 8, ["text"])) : T("", !0),
762
762
  b("textarea", {
763
763
  id: e.id,
764
764
  class: k(["textarea", {
@@ -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,14 +834,14 @@ 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;
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
845
  }), v = () => {
846
846
  a.value = !0, n("focus", {
847
847
  value: o.value
@@ -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, [
883
+ ), (z, A) => (p(), _("fieldset", null, [
884
884
  b("div", St, [
885
- ge(Ae, {
885
+ ge(Le, {
886
886
  id: e.id,
887
887
  class: k({
888
888
  textfield__label: !0
@@ -894,12 +894,12 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
894
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),
902
+ }, null, 8, ["class", "name"])) : T("", !0),
903
903
  b("input", {
904
904
  id: e.id,
905
905
  ref_key: "inputRef",
@@ -912,17 +912,17 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
912
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
924
  b("div", Pt, C(e.errorMsg), 1),
925
- e.errorMsg ? z("", !0) : (p(), _("div", Ft, C(e.hint), 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: v } = a[f], { x: $, y: M, data: A, 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], ...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,7 +989,7 @@ 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 })), 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]);
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
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;
@@ -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", 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 A = M ? d === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0;
1005
- A === 0 && (A = a.floating[g]);
1006
- const j = v / 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,25 +1024,25 @@ 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)];
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
1030
  }(i)), v = [i, ...r], $ = await ie(n, h), M = [];
1031
- let A = ((e = o.flip) == null ? void 0 : e.overflows) || [];
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 = v[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 be = (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;
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
1046
  be && (Q = be);
1047
1047
  break;
1048
1048
  }
@@ -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) {
@@ -1161,7 +1161,7 @@ function je() {
1161
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,13 +1199,13 @@ 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"; )
@@ -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;
@@ -1263,9 +1263,9 @@ const an = { getClippingRect: function(t) {
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) {
@@ -1403,7 +1403,7 @@ 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))
@@ -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",
@@ -1446,20 +1446,20 @@ const fn = (t, n) => {
1446
1446
  return e;
1447
1447
  }, $n = /* @__PURE__ */ fn(un, [["__scopeId", "data-v-ee5f5651"]]);
1448
1448
  export {
1449
- hn as Alert,
1450
- mn as Avatar,
1451
- gn as Badge,
1452
- at as Button,
1453
- _n as Checkbox,
1454
- mt as Chip,
1455
- vn as Dropdown,
1456
- B as Icon,
1457
- Ae as Label,
1458
- bn as Snackbar,
1459
- yn as Switch,
1460
- Dt as TabItem,
1461
- xn as Tabs,
1462
- kn as TextArea,
1463
- wn as Textfield,
1464
- $n as Tooltip
1449
+ hn as RAlert,
1450
+ mn as RAvatar,
1451
+ gn as RBadge,
1452
+ at as RButton,
1453
+ _n as RCheckbox,
1454
+ mt as RChip,
1455
+ vn as RDropdown,
1456
+ B as RIcon,
1457
+ Le as RLabel,
1458
+ bn as RSnackbar,
1459
+ yn as RSwitch,
1460
+ Dt as RTabItem,
1461
+ xn as RTabs,
1462
+ kn as RTextArea,
1463
+ wn as RTextfield,
1464
+ $n as RTooltip
1465
1465
  };