@rocketui/vue 0.0.79 → 0.0.80

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,4 +1,4 @@
1
- import { defineComponent as v, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as s, reactive as X, Fragment as z, renderList as q, normalizeClass as f, renderSlot as b, toDisplayString as y, createVNode as $, computed as k, createCommentVNode as B, mergeProps as L2, createBlock as R, watch as _, getCurrentScope as M2, onScopeDispose as A2, ref as E, watchEffect as i2, onMounted as _1, Teleport as e2, withCtx as d1, withDirectives as W1, withKeys as B1, vModelText as d2, withModifiers as L1, createTextVNode as N1, normalizeStyle as h1, vShow as t2, resolveComponent as m2, provide as Z1, resolveDynamicComponent as l2, inject as u1 } from "vue";
1
+ import { defineComponent as v, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as c, reactive as X, Fragment as z, renderList as q, normalizeClass as f, renderSlot as b, toDisplayString as y, createVNode as $, computed as k, createCommentVNode as B, mergeProps as L2, createBlock as R, watch as _, getCurrentScope as M2, onScopeDispose as A2, ref as E, watchEffect as i2, onMounted as _1, Teleport as e2, withCtx as d1, withDirectives as W1, withKeys as B1, vModelText as d2, withModifiers as L1, createTextVNode as N1, normalizeStyle as h1, vShow as t2, resolveComponent as m2, provide as Z1, resolveDynamicComponent as l2, inject as u1 } from "vue";
2
2
  const o2 = {
3
3
  mdiAbTesting: "M4 2A2 2 0 0 0 2 4V12H4V8H6V12H8V4A2 2 0 0 0 6 2H4M4 4H6V6H4M22 15.5V14A2 2 0 0 0 20 12H16V22H20A2 2 0 0 0 22 20V18.5A1.54 1.54 0 0 0 20.5 17A1.54 1.54 0 0 0 22 15.5M20 20H18V18H20V20M20 16H18V14H20M5.79 21.61L4.21 20.39L18.21 2.39L19.79 3.61Z",
4
4
  mdiAbacus: "M5 5H7V11H5V5M10 5H8V11H10V5M5 19H7V13H5V19M10 13H8V19H10V17H15V15H10V13M2 21H4V3H2V21M20 3V7H13V5H11V11H13V9H20V15H18V13H16V19H18V17H20V21H22V3H20Z",
@@ -7312,12 +7312,12 @@ const o2 = {
7312
7312
  width: V.size
7313
7313
  }, [
7314
7314
  S("path", {
7315
- d: s(o2)[V.name]
7315
+ d: c(o2)[V.name]
7316
7316
  }, null, 8, r2)
7317
7317
  ], 8, n2));
7318
7318
  }
7319
7319
  });
7320
- const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title" }, S2 = { class: "r-accordion__icon" }, c2 = { class: "r-accordion__content" }, Z3 = /* @__PURE__ */ v({
7320
+ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title" }, S2 = { class: "r-accordion__icon" }, s2 = { class: "r-accordion__content" }, Z3 = /* @__PURE__ */ v({
7321
7321
  __name: "RAccordion",
7322
7322
  props: {
7323
7323
  accordions: null
@@ -7355,14 +7355,14 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7355
7355
  $(x, { name: "mdiChevronUp" })
7356
7356
  ])
7357
7357
  ], 8, Z2),
7358
- S("div", c2, [
7358
+ S("div", s2, [
7359
7359
  b(M.$slots, "content", {}, () => [
7360
7360
  S("span", null, y(i.content), 1)
7361
7361
  ])
7362
7362
  ])
7363
7363
  ], 10, a2))), 128));
7364
7364
  }
7365
- }), s2 = { class: "r-alert__icon" }, O2 = { class: "r-alert__content" }, p2 = { class: "r-alert__content__title" }, h2 = {
7365
+ }), c2 = { class: "r-alert__icon" }, O2 = { class: "r-alert__content" }, p2 = { class: "r-alert__content__title" }, h2 = {
7366
7366
  key: 0,
7367
7367
  class: "r-alert__content__description"
7368
7368
  }, f2 = {
@@ -7394,12 +7394,12 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7394
7394
  V("close");
7395
7395
  };
7396
7396
  return (i, e) => (m(), Z("div", {
7397
- class: f(s(L))
7397
+ class: f(c(L))
7398
7398
  }, [
7399
- S("div", s2, [
7399
+ S("div", c2, [
7400
7400
  b(i.$slots, "alert-icon", {}, () => [
7401
7401
  $(x, {
7402
- name: s(M),
7402
+ name: c(M),
7403
7403
  size: 24
7404
7404
  }, null, 8, ["name"])
7405
7405
  ])
@@ -7442,7 +7442,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7442
7442
  };
7443
7443
  return (i, e) => (m(), Z("div", g2, [
7444
7444
  S("div", {
7445
- class: f(s(C))
7445
+ class: f(c(C))
7446
7446
  }, [
7447
7447
  V.type === "text" ? (m(), Z("p", {
7448
7448
  key: 0,
@@ -7453,9 +7453,9 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7453
7453
  class: f({
7454
7454
  "r-avatar__image": !0,
7455
7455
  [`r-avatar__image--${V.size}`]: !0,
7456
- "r-avatar__image--anonymous": s(L)
7456
+ "r-avatar__image--anonymous": c(L)
7457
7457
  }),
7458
- src: s(M)
7458
+ src: c(M)
7459
7459
  }, null, 10, k2))
7460
7460
  ], 2),
7461
7461
  V.online ? (m(), Z("span", {
@@ -7467,7 +7467,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7467
7467
  }, null, 2)) : B("", !0)
7468
7468
  ]));
7469
7469
  }
7470
- }), B2 = { class: "r-badge-wrapper group" }, c3 = /* @__PURE__ */ v({
7470
+ }), B2 = { class: "r-badge-wrapper group" }, s3 = /* @__PURE__ */ v({
7471
7471
  __name: "RBadge",
7472
7472
  props: {
7473
7473
  variant: { default: "primary" },
@@ -7492,71 +7492,67 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7492
7492
  }));
7493
7493
  return (L, M) => (m(), Z("div", B2, [
7494
7494
  S("span", {
7495
- class: f([{ "animate-ping-2": V.animation }, s(C)])
7495
+ class: f([{ "animate-ping-2": V.animation }, c(C)])
7496
7496
  }, null, 2),
7497
7497
  S("span", {
7498
- class: f(s(C))
7498
+ class: f(c(C))
7499
7499
  }, null, 2),
7500
7500
  b(L.$slots, "default")
7501
7501
  ]));
7502
7502
  }
7503
- }), b2 = ["disabled"], s3 = /* @__PURE__ */ v({
7503
+ }), b2 = ["disabled"], c3 = /* @__PURE__ */ v({
7504
7504
  __name: "RButton",
7505
7505
  props: {
7506
- variant: { default: "primary" },
7506
+ variant: { default: "default" },
7507
+ color: null,
7507
7508
  loading: { type: Boolean, default: !1 },
7508
7509
  disabled: { type: Boolean, default: !1 },
7509
7510
  prependIcon: { default: "" },
7510
7511
  appendIcon: { default: "" },
7511
- onlyIcon: { type: Boolean, default: !1 },
7512
+ icon: { type: Boolean, default: !1 },
7512
7513
  size: { default: "medium" },
7513
7514
  height: { default: "" },
7514
7515
  block: { type: Boolean, default: !1 },
7515
- backgroundColor: { default: "" },
7516
- color: null
7516
+ to: null
7517
7517
  },
7518
7518
  emits: ["click"],
7519
7519
  setup(H) {
7520
7520
  const V = H, C = k(() => ({
7521
7521
  "r-button": !0,
7522
- [`r-button--${V.variant}`]: !0,
7522
+ [`r-button__${V.variant}`]: !0,
7523
+ [`r-button__${V.variant}--${V.variant === "default" && V.color === void 0 ? "primary" : V.color}`]: !0,
7523
7524
  "r-button--loading": V.loading,
7524
7525
  [`r-button--${V.size || "medium"}`]: !0,
7525
- "r-button--only-icon": V.onlyIcon,
7526
+ "r-button--only-icon": V.icon,
7526
7527
  "r-button--block": V.block
7527
7528
  })), L = k(() => ({
7528
7529
  small: 20,
7529
7530
  medium: 24,
7530
7531
  large: 32
7531
- })[V.size || "medium"]), M = k(() => {
7532
- const { backgroundColor: A, height: i, color: e } = V;
7533
- return {
7534
- backgroundColor: A,
7535
- height: i ? `${i}px` : "",
7536
- color: e
7537
- };
7538
- });
7532
+ })[V.size || "medium"]), M = k(() => ({
7533
+ height: V.height ? `${V.height}px` : ""
7534
+ }));
7539
7535
  return (A, i) => (m(), Z("button", L2(A.$attrs, {
7540
- class: s(C),
7541
- disabled: H.disabled || H.loading,
7542
- style: s(M),
7536
+ class: c(C),
7537
+ disabled: H.disabled,
7538
+ style: c(M),
7543
7539
  onClick: i[0] || (i[0] = (e) => A.$emit("click"))
7544
7540
  }), [
7545
7541
  b(A.$slots, "custom-icon"),
7546
7542
  !A.$slots["custom-icon"] && V.prependIcon ? (m(), R(x, {
7547
7543
  key: 0,
7548
7544
  class: f(["r-button__prepend-icon", {
7549
- "r-button__prepend-icon--only": V.onlyIcon
7545
+ "r-button__prepend-icon--only": V.icon
7550
7546
  }]),
7551
7547
  name: V.prependIcon,
7552
- size: s(L)
7548
+ size: c(L)
7553
7549
  }, null, 8, ["class", "name", "size"])) : B("", !0),
7554
- V.onlyIcon ? B("", !0) : b(A.$slots, "default", { key: 1 }),
7555
- !A.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (m(), R(x, {
7550
+ V.icon ? B("", !0) : b(A.$slots, "default", { key: 1 }),
7551
+ !A.$slots["custom-icon"] && !V.icon && V.appendIcon ? (m(), R(x, {
7556
7552
  key: 2,
7557
7553
  class: "r-button__append-icon",
7558
7554
  name: V.appendIcon,
7559
- size: s(L)
7555
+ size: c(L)
7560
7556
  }, null, 8, ["name", "size"])) : B("", !0)
7561
7557
  ], 16, b2));
7562
7558
  }
@@ -7627,11 +7623,11 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7627
7623
  onChange: e
7628
7624
  }, null, 40, P2),
7629
7625
  S("div", {
7630
- class: f(s(i)),
7626
+ class: f(c(i)),
7631
7627
  "data-disabled": C.disabled
7632
7628
  }, [
7633
7629
  $(x, {
7634
- name: s(A),
7630
+ name: c(A),
7635
7631
  size: 24
7636
7632
  }, null, 8, ["name"])
7637
7633
  ], 10, T2)
@@ -7670,7 +7666,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7670
7666
  C.disabled || !C.closable || (i.stopPropagation(), V("click:close", i));
7671
7667
  };
7672
7668
  return (i, e) => (m(), Z("div", {
7673
- class: f(s(L))
7669
+ class: f(c(L))
7674
7670
  }, [
7675
7671
  S("div", {
7676
7672
  class: "r-chip__content",
@@ -7704,9 +7700,9 @@ function _2(H) {
7704
7700
  return M2() ? (A2(H), !0) : !1;
7705
7701
  }
7706
7702
  function I1(H) {
7707
- return typeof H == "function" ? H() : s(H);
7703
+ return typeof H == "function" ? H() : c(H);
7708
7704
  }
7709
- const Q1 = typeof window < "u" && typeof document < "u", W2 = Object.prototype.toString, N2 = (H) => W2.call(H) === "[object Object]", s1 = () => {
7705
+ const Q1 = typeof window < "u" && typeof document < "u", W2 = Object.prototype.toString, N2 = (H) => W2.call(H) === "[object Object]", c1 = () => {
7710
7706
  }, I2 = /* @__PURE__ */ Q2();
7711
7707
  function Q2() {
7712
7708
  var H;
@@ -7721,7 +7717,7 @@ const G1 = Q1 ? window : void 0;
7721
7717
  function S1(...H) {
7722
7718
  let V, C, L, M;
7723
7719
  if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, M] = H, V = G1) : [V, C, L, M] = H, !V)
7724
- return s1;
7720
+ return c1;
7725
7721
  Array.isArray(C) || (C = [C]), Array.isArray(L) || (L = [L]);
7726
7722
  const A = [], i = () => {
7727
7723
  A.forEach((n) => n()), A.length = 0;
@@ -7746,7 +7742,7 @@ function G2(H, V, C = {}) {
7746
7742
  const { window: L = G1, ignore: M = [], capture: A = !0, detectIframe: i = !1 } = C;
7747
7743
  if (!L)
7748
7744
  return;
7749
- I2 && !y1 && (y1 = !0, Array.from(L.document.body.children).forEach((a) => a.addEventListener("click", s1)), L.document.documentElement.addEventListener("click", s1));
7745
+ I2 && !y1 && (y1 = !0, Array.from(L.document.body.children).forEach((a) => a.addEventListener("click", c1)), L.document.documentElement.addEventListener("click", c1));
7750
7746
  let e = !0;
7751
7747
  const d = (a) => M.some((r) => {
7752
7748
  if (typeof r == "string")
@@ -7825,8 +7821,8 @@ const z2 = async (H, V, C) => {
7825
7821
  const { placement: L = "bottom", strategy: M = "absolute", middleware: A = [], platform: i } = C, e = A.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
7826
7822
  let l = await i.getElementRects({ reference: H, floating: V, strategy: M }), { x: n, y: t } = w1(l, L, d), a = L, r = {}, u = 0;
7827
7823
  for (let p = 0; p < e.length; p++) {
7828
- const { name: h, fn: P } = e[p], { x: T, y: w, data: O, reset: c } = await P({ x: n, y: t, initialPlacement: L, placement: a, strategy: M, middlewareData: r, rects: l, platform: i, elements: { reference: H, floating: V } });
7829
- n = T ?? n, t = w ?? t, r = { ...r, [h]: { ...r[h], ...O } }, c && u <= 50 && (u++, typeof c == "object" && (c.placement && (a = c.placement), c.rects && (l = c.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: M }) : c.rects), { x: n, y: t } = w1(l, a, d)), p = -1);
7824
+ const { name: h, fn: P } = e[p], { x: T, y: w, data: O, reset: s } = await P({ x: n, y: t, initialPlacement: L, placement: a, strategy: M, middlewareData: r, rects: l, platform: i, elements: { reference: H, floating: V } });
7825
+ n = T ?? n, t = w ?? t, r = { ...r, [h]: { ...r[h], ...O } }, s && u <= 50 && (u++, typeof s == "object" && (s.placement && (a = s.placement), s.rects && (l = s.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: M }) : s.rects), { x: n, y: t } = w1(l, a, d)), p = -1);
7830
7826
  }
7831
7827
  return { x: n, y: t, placement: a, strategy: M, middlewareData: r };
7832
7828
  };
@@ -7855,7 +7851,7 @@ const K2 = (H) => ({ name: "arrow", options: H, async fn(V) {
7855
7851
  const l = z1(L), n = { x: M, y: A }, t = i1(i), a = n1(i), r = f1(t), u = await d.getDimensions(C), p = t === "y" ? "top" : "left", h = t === "y" ? "bottom" : "right", P = e.reference[r] + e.reference[t] - n[t] - e.floating[r], T = n[t] - e.reference[t], w = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
7856
7852
  let O = w ? t === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0;
7857
7853
  O === 0 && (O = e.floating[r]);
7858
- const c = P / 2 - T / 2, F = l[p], o = O - u[r] - l[h], g = O / 2 - u[r] / 2 + c, D = O1(F, g, o), W = (a === "start" ? l[p] : l[h]) > 0 && g !== D && e.reference[r] <= e.floating[r];
7854
+ const s = P / 2 - T / 2, F = l[p], o = O - u[r] - l[h], g = O / 2 - u[r] / 2 + s, D = O1(F, g, o), W = (a === "start" ? l[p] : l[h]) > 0 && g !== D && e.reference[r] <= e.floating[r];
7859
7855
  return { [t]: n[t] - (W ? g < F ? F - g : o - g : 0), data: { [t]: D, centerOffset: g - D } };
7860
7856
  } }), j2 = { left: "right", right: "left", bottom: "top", top: "bottom" };
7861
7857
  function l1(H) {
@@ -7886,8 +7882,8 @@ const X2 = function(H) {
7886
7882
  w.push(T[g], T[D]);
7887
7883
  }
7888
7884
  if (O = [...O, { placement: L, overflows: w }], !w.every((g) => g <= 0)) {
7889
- var c, F;
7890
- const g = ((c = (F = M.flip) == null ? void 0 : F.index) != null ? c : 0) + 1, D = P[g];
7885
+ var s, F;
7886
+ const g = ((s = (F = M.flip) == null ? void 0 : F.index) != null ? s : 0) + 1, D = P[g];
7891
7887
  if (D)
7892
7888
  return { data: { index: g, overflows: O }, reset: { placement: D } };
7893
7889
  let W = "bottom";
@@ -8142,7 +8138,7 @@ const A5 = { getClippingRect: function(H) {
8142
8138
  return { reference: M5(V, await M(C), L), floating: { x: 0, y: 0, ...await A(C) } };
8143
8139
  }, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" }, i5 = (H, V, C) => z2(H, V, { platform: A5, ...C });
8144
8140
  var J1 = /* @__PURE__ */ ((H) => (H.Top = "top", H.Bottom = "bottom", H.Left = "left", H.Right = "right", H.TopStart = "top-start", H.TopEnd = "top-end", H.RightStart = "right-start", H.RightEnd = "right-end", H.BottomStart = "bottom-start", H.BottomEnd = "bottom-end", H.LeftStart = "left-start", H.LeftEnd = "left-end", H))(J1 || {}), N = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(N || {}), C2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(C2 || {});
8145
- async function c1({ value: H }, { value: V }, { value: C }, L, M, A, i = 300, e) {
8141
+ async function s1({ value: H }, { value: V }, { value: C }, L, M, A, i = 300, e) {
8146
8142
  !H || !V || i5(H, V, {
8147
8143
  placement: L,
8148
8144
  middleware: [
@@ -8208,7 +8204,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8208
8204
  const C = H, L = E(null), M = E(null), A = E(null);
8209
8205
  async function i() {
8210
8206
  const { placement: u, offset: p, padding: h, disabled: P, showDelay: T, type: w } = C;
8211
- P || (M.value.style.display = "block", V("show"), c1(L, M, A, u, p, h, T, w), d());
8207
+ P || (M.value.style.display = "block", V("show"), s1(L, M, A, u, p, h, T, w), d());
8212
8208
  }
8213
8209
  function e() {
8214
8210
  C.disabled || !M.value || (M.value.style.display = "", V("hide"));
@@ -8229,7 +8225,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8229
8225
  }
8230
8226
  function a() {
8231
8227
  const { placement: u, offset: p, padding: h, disabled: P, showDelay: T, type: w } = C;
8232
- P || C.triggers.includes(N.Hover) && c1(L, M, A, u, p, h, T, w);
8228
+ P || C.triggers.includes(N.Hover) && s1(L, M, A, u, p, h, T, w);
8233
8229
  }
8234
8230
  const r = k(() => ({
8235
8231
  tooltip: !0,
@@ -8238,7 +8234,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8238
8234
  }));
8239
8235
  return window.onresize = () => {
8240
8236
  const { placement: u, offset: p, padding: h, disabled: P, showDelay: T, type: w } = C;
8241
- P || C.resizable && c1(L, M, A, u, p, h, T, w);
8237
+ P || C.resizable && s1(L, M, A, u, p, h, T, w);
8242
8238
  }, i2(
8243
8239
  () => {
8244
8240
  C.disabled || (C.shown && C.triggers.includes(N.Manual) ? i() : !C.shown && C.triggers.includes(N.Manual) && e());
@@ -8284,7 +8280,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8284
8280
  id: "tooltip",
8285
8281
  ref_key: "tooltip",
8286
8282
  ref: M,
8287
- class: f([s(r), H.tooltipClass]),
8283
+ class: f([c(r), H.tooltipClass]),
8288
8284
  role: "tooltip"
8289
8285
  }, [
8290
8286
  b(u.$slots, "content", { hide: e }, () => [
@@ -8337,10 +8333,10 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8337
8333
  emits: ["update:modelValue"],
8338
8334
  setup(H, { emit: V }) {
8339
8335
  const C = H, L = E({ value: "", label: "" }), M = X([]), A = E(!1), i = E(""), e = E(), d = E(), l = E();
8340
- function n(O, c) {
8336
+ function n(O, s) {
8341
8337
  var F, o, g;
8342
8338
  if (O.stopPropagation(), !C.disabled) {
8343
- if (A.value = !A.value, c && c(), A.value) {
8339
+ if (A.value = !A.value, s && s(), A.value) {
8344
8340
  (F = e.value) == null || F.classList.add("r-dropdown--active"), (o = e.value) == null || o.focus(), C.searchable && ((g = d.value) == null || g.focus());
8345
8341
  return;
8346
8342
  }
@@ -8348,31 +8344,31 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8348
8344
  }
8349
8345
  }
8350
8346
  function t() {
8351
- var O, c, F;
8352
- A.value = !1, (O = e.value) == null || O.classList.remove("r-dropdown--active"), (c = e.value) == null || c.blur(), (F = d.value) == null || F.blur();
8347
+ var O, s, F;
8348
+ A.value = !1, (O = e.value) == null || O.classList.remove("r-dropdown--active"), (s = e.value) == null || s.blur(), (F = d.value) == null || F.blur();
8353
8349
  }
8354
- function a(O, c, F) {
8350
+ function a(O, s, F) {
8355
8351
  var o;
8356
- if (O.stopPropagation(), !c.disabled) {
8352
+ if (O.stopPropagation(), !s.disabled) {
8357
8353
  if (C.multiple || C.taggable) {
8358
- M.find((g) => g.value === c.value) ? M.splice(M.indexOf(c), 1) : M.push(c), i.value = "", C.searchable && ((o = d.value) == null || o.focus());
8354
+ M.find((g) => g.value === s.value) ? M.splice(M.indexOf(s), 1) : M.push(s), i.value = "", C.searchable && ((o = d.value) == null || o.focus());
8359
8355
  return;
8360
8356
  }
8361
- r(O, c), C.closeOnSelect && (F(), t());
8357
+ r(O, s), C.closeOnSelect && (F(), t());
8362
8358
  }
8363
8359
  }
8364
- function r(O, c) {
8365
- if (L.value.value === c.value) {
8360
+ function r(O, s) {
8361
+ if (L.value.value === s.value) {
8366
8362
  L.value = {}, i.value = "";
8367
8363
  return;
8368
8364
  }
8369
- i.value = c.label, L.value = c, n(O), V("update:modelValue", c);
8365
+ i.value = s.label, L.value = s, n(O), V("update:modelValue", s);
8370
8366
  }
8371
- function u(O, c) {
8367
+ function u(O, s) {
8372
8368
  if (O instanceof KeyboardEvent && O.key !== "Backspace" || i.value !== "")
8373
8369
  return;
8374
8370
  O.stopPropagation();
8375
- const F = M.findIndex((o) => o.value === c.value);
8371
+ const F = M.findIndex((o) => o.value === s.value);
8376
8372
  M.splice(F, 1);
8377
8373
  }
8378
8374
  function p(O) {
@@ -8380,15 +8376,15 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8380
8376
  if (!C.taggable)
8381
8377
  return;
8382
8378
  O.stopPropagation();
8383
- const c = i.value;
8384
- if (c === "")
8379
+ const s = i.value;
8380
+ if (s === "")
8385
8381
  return;
8386
- C.options.find((g) => g.label === c) || (M.push({ value: c, label: c }), i.value = "", (o = d.value) == null || o.focus());
8382
+ C.options.find((g) => g.label === s) || (M.push({ value: s, label: s }), i.value = "", (o = d.value) == null || o.focus());
8387
8383
  }
8388
8384
  function h(O) {
8389
- return C.multiple ? M.find((c) => c.value === O.value) : L.value.value === O.value;
8385
+ return C.multiple ? M.find((s) => s.value === O.value) : L.value.value === O.value;
8390
8386
  }
8391
- const P = k(() => !C.searchable || L.value.label === i.value ? C.options : C.options.filter((c) => c.label.toLowerCase().includes(i.value.toLowerCase()))), T = k(() => C.multiple || C.taggable || !C.searchable);
8387
+ const P = k(() => !C.searchable || L.value.label === i.value ? C.options : C.options.filter((s) => s.label.toLowerCase().includes(i.value.toLowerCase()))), T = k(() => C.multiple || C.taggable || !C.searchable);
8392
8388
  function w() {
8393
8389
  C.modelValue ? C.multiple ? M.push(C.modelValue) : (L.value = C.modelValue, i.value = C.modelValue.label) : (L.value = {}, M.splice(0, M.length));
8394
8390
  }
@@ -8398,7 +8394,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8398
8394
  V("update:modelValue", O);
8399
8395
  }), _(() => C.modelValue, (O) => {
8400
8396
  w();
8401
- }), (O, c) => (m(), Z("div", {
8397
+ }), (O, s) => (m(), Z("div", {
8402
8398
  ref_key: "wrapper",
8403
8399
  ref: l,
8404
8400
  class: "r-dropdown-wrapper"
@@ -8456,17 +8452,17 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8456
8452
  id: C.id,
8457
8453
  ref_key: "input",
8458
8454
  ref: d,
8459
- "onUpdate:modelValue": c[0] || (c[0] = (o) => i.value = o),
8455
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => i.value = o),
8460
8456
  class: f(["r-dropdown__input", {
8461
8457
  "r-dropdown__input--loading": C.loading
8462
8458
  }]),
8463
8459
  disabled: C.disabled,
8464
8460
  placeholder: C.placeholder,
8465
- readonly: s(T),
8461
+ readonly: c(T),
8466
8462
  type: "text",
8467
8463
  onKeydown: [
8468
- c[1] || (c[1] = B1((o) => u(o, M[M.length - 1]), ["backspace"])),
8469
- c[2] || (c[2] = B1((o) => p(o), ["enter"]))
8464
+ s[1] || (s[1] = B1((o) => u(o, M[M.length - 1]), ["backspace"])),
8465
+ s[2] || (s[2] = B1((o) => p(o), ["enter"]))
8470
8466
  ]
8471
8467
  }, null, 42, n5), [
8472
8468
  [d2, i.value]
@@ -8493,7 +8489,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8493
8489
  [C.optionsClass]: C.optionsClass
8494
8490
  }])
8495
8491
  }, [
8496
- (m(!0), Z(z, null, q(s(P), (o) => (m(), Z("li", {
8492
+ (m(!0), Z(z, null, q(c(P), (o) => (m(), Z("li", {
8497
8493
  key: o.value,
8498
8494
  "aria-disabled": o.disabled,
8499
8495
  class: f(["r-dropdown-options__option", {
@@ -8549,7 +8545,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8549
8545
  ])
8550
8546
  ], 8, Z5));
8551
8547
  }
8552
- }), u5 = ["onClick"], S5 = ["open"], c5 = { class: "r-dialog__header" }, s5 = {
8548
+ }), u5 = ["onClick"], S5 = ["open"], s5 = { class: "r-dialog__header" }, c5 = {
8553
8549
  key: 0,
8554
8550
  class: "icon"
8555
8551
  }, O5 = {
@@ -8591,14 +8587,14 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8591
8587
  }, [
8592
8588
  S("div", {
8593
8589
  "aria-modal": "true",
8594
- class: f(s(L)),
8590
+ class: f(c(L)),
8595
8591
  open: C.modelValue,
8596
8592
  role: "dialog",
8597
- style: h1(s(M))
8593
+ style: h1(c(M))
8598
8594
  }, [
8599
- S("div", c5, [
8595
+ S("div", s5, [
8600
8596
  b(i.$slots, "header"),
8601
- C.icon ? (m(), Z("div", s5, [
8597
+ C.icon ? (m(), Z("div", c5, [
8602
8598
  $(x, {
8603
8599
  name: C.icon
8604
8600
  }, null, 8, ["name"])
@@ -8632,7 +8628,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8632
8628
  }));
8633
8629
  return (L, M) => (m(), Z(z, null, [
8634
8630
  S("aside", {
8635
- class: f([s(C), V.class]),
8631
+ class: f([c(C), V.class]),
8636
8632
  "data-open": V.modelValue
8637
8633
  }, [
8638
8634
  S("nav", k5, [
@@ -8695,13 +8691,13 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8695
8691
  info: "mdiInformation"
8696
8692
  })[C.variant || "info"]);
8697
8693
  return (A, i) => (m(), Z("div", {
8698
- class: f(s(L))
8694
+ class: f(c(L))
8699
8695
  }, [
8700
8696
  b(A.$slots, "default", {}, () => [
8701
8697
  C.variant ? (m(), R(x, {
8702
8698
  key: 0,
8703
8699
  class: "r-snackbar__icon",
8704
- name: s(M)
8700
+ name: c(M)
8705
8701
  }, null, 8, ["name"])) : B("", !0)
8706
8702
  ]),
8707
8703
  S("div", w5, y(C.text), 1),
@@ -8758,7 +8754,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8758
8754
  }
8759
8755
  ), (i, e) => (m(), Z("div", T5, [
8760
8756
  S("div", {
8761
- class: f(s(M))
8757
+ class: f(c(M))
8762
8758
  }, [
8763
8759
  S("input", {
8764
8760
  id: C.id,
@@ -8822,22 +8818,22 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8822
8818
  return (e, d) => (m(), Z("button", {
8823
8819
  "aria-disabled": C.disabled,
8824
8820
  "aria-selected": C.modelValue === C.id,
8825
- class: f(s(L)),
8821
+ class: f(c(L)),
8826
8822
  disabled: C.disabled,
8827
- style: h1(s(M)),
8823
+ style: h1(c(M)),
8828
8824
  onClick: d[0] || (d[0] = L1((l) => A(C.id), ["stop"]))
8829
8825
  }, [
8830
8826
  b(e.$slots, "prepend", {}, () => [
8831
- C.variant !== s(H1).TEXT && C.prependIcon ? (m(), R(x, {
8827
+ C.variant !== c(H1).TEXT && C.prependIcon ? (m(), R(x, {
8832
8828
  key: 0,
8833
8829
  class: "r-tab-item__prepend-icon",
8834
8830
  name: C.prependIcon,
8835
8831
  size: 16
8836
8832
  }, null, 8, ["name"])) : B("", !0)
8837
8833
  ]),
8838
- C.variant !== s(H1).ICON ? (m(), Z("span", _5, y(C.label), 1)) : B("", !0),
8834
+ C.variant !== c(H1).ICON ? (m(), Z("span", _5, y(C.label), 1)) : B("", !0),
8839
8835
  b(e.$slots, "append", {}, () => [
8840
- C.variant !== s(H1).TEXT && C.appendIcon ? (m(), R(x, {
8836
+ C.variant !== c(H1).TEXT && C.appendIcon ? (m(), R(x, {
8841
8837
  key: 0,
8842
8838
  class: "r-tab-item__append-icon",
8843
8839
  name: C.appendIcon,
@@ -8874,7 +8870,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8874
8870
  V("click:icon");
8875
8871
  }
8876
8872
  return (i, e) => (m(), Z("div", {
8877
- class: f(s(M))
8873
+ class: f(c(M))
8878
8874
  }, [
8879
8875
  b(i.$slots, "default", {}, () => [
8880
8876
  (m(!0), Z(z, null, q(C.tabs, (d, l) => (m(), R(W5, {
@@ -9040,9 +9036,9 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9040
9036
  }
9041
9037
  V("click:icon", {
9042
9038
  value: A.value === "number" ? +M.value : M.value
9043
- }), A.value === "password" && c();
9039
+ }), A.value === "password" && s();
9044
9040
  }
9045
- function c() {
9041
+ function s() {
9046
9042
  A.value = A.value === "password" ? "text" : "password";
9047
9043
  }
9048
9044
  function F() {
@@ -9077,13 +9073,13 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9077
9073
  }, null, 8, ["id", "for", "text"])) : B("", !0),
9078
9074
  S("div", U5, [
9079
9075
  S("div", {
9080
- class: f(s(a))
9076
+ class: f(c(a))
9081
9077
  }, [
9082
9078
  b(o.$slots, "prepend"),
9083
- s(p) && !o.$slots.prepend ? (m(), R(x, {
9079
+ c(p) && !o.$slots.prepend ? (m(), R(x, {
9084
9080
  key: 0,
9085
- class: f(s(r)),
9086
- name: s(p),
9081
+ class: f(c(r)),
9082
+ name: c(p),
9087
9083
  size: 20
9088
9084
  }, null, 8, ["class", "name"])) : B("", !0),
9089
9085
  S("input", {
@@ -9101,10 +9097,10 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9101
9097
  onInput: w
9102
9098
  }, null, 40, $5),
9103
9099
  b(o.$slots, "append"),
9104
- s(h) && !o.$slots.append ? (m(), R(x, {
9100
+ c(h) && !o.$slots.append ? (m(), R(x, {
9105
9101
  key: 1,
9106
- class: f(s(u)),
9107
- name: `${s(h)}`,
9102
+ class: f(c(u)),
9103
+ name: `${c(h)}`,
9108
9104
  size: 20,
9109
9105
  onClick: O
9110
9106
  }, null, 8, ["class", "name"])) : B("", !0)
@@ -9193,7 +9189,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9193
9189
  H.slash ? B("", !0) : (m(), Z("span", C3, y(C.pageText), 1)),
9194
9190
  S("span", H3, y(C.page), 1),
9195
9191
  S("span", null, y(H.slash ? "/" : C.ofText), 1),
9196
- S("span", V3, y(s(L)), 1)
9192
+ S("span", V3, y(c(L)), 1)
9197
9193
  ]),
9198
9194
  S("div", L3, [
9199
9195
  S("button", {
@@ -9218,7 +9214,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9218
9214
  ], 8, M3),
9219
9215
  S("input", {
9220
9216
  class: "r-pagination__paginator__input",
9221
- max: s(L),
9217
+ max: c(L),
9222
9218
  min: "1",
9223
9219
  type: "number",
9224
9220
  value: C.page,
@@ -9229,12 +9225,12 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9229
9225
  }, null, 40, d3),
9230
9226
  S("button", {
9231
9227
  class: "r-pagination__paginator__next",
9232
- disabled: C.page === s(L),
9228
+ disabled: C.page === c(L),
9233
9229
  onClick: i[2] || (i[2] = (e) => M(+C.page + 1))
9234
9230
  }, [
9235
9231
  b(A.$slots, "next", {}, () => [
9236
9232
  (m(), Z("svg", {
9237
- class: f({ "stroke-gray-400": C.page === s(L) }),
9233
+ class: f({ "stroke-gray-400": C.page === c(L) }),
9238
9234
  fill: "none",
9239
9235
  height: "16",
9240
9236
  stroke: "#323232",
@@ -9247,7 +9243,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9247
9243
  }, o3, 2))
9248
9244
  ])
9249
9245
  ], 8, t3),
9250
- S("div", n3, "/ " + y(s(L)), 1)
9246
+ S("div", n3, "/ " + y(c(L)), 1)
9251
9247
  ])
9252
9248
  ]));
9253
9249
  }
@@ -9318,9 +9314,9 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9318
9314
  }
9319
9315
  return (l, n) => b(l.$slots, "default", {
9320
9316
  disabled: V.disabled,
9321
- isSelected: s(L)(V.value),
9317
+ isSelected: c(L)(V.value),
9322
9318
  select: d,
9323
- selectedClass: s(A),
9319
+ selectedClass: c(A),
9324
9320
  toggle: e,
9325
9321
  value: V.value
9326
9322
  });
@@ -9330,9 +9326,9 @@ export {
9330
9326
  Z3 as RAccordion,
9331
9327
  u3 as RAlert,
9332
9328
  S3 as RAvatar,
9333
- c3 as RBadge,
9329
+ s3 as RBadge,
9334
9330
  w3 as RBreadcrumb,
9335
- s3 as RButton,
9331
+ c3 as RButton,
9336
9332
  O3 as RCheckbox,
9337
9333
  E2 as RChip,
9338
9334
  p3 as RDropdown,