@rocketui/vue 0.0.79 → 0.0.81

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,66 @@ 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
- block: { type: Boolean, default: !1 },
7515
- backgroundColor: { default: "" },
7516
- color: null
7515
+ block: { type: Boolean, default: !1 }
7517
7516
  },
7518
7517
  emits: ["click"],
7519
7518
  setup(H) {
7520
7519
  const V = H, C = k(() => ({
7521
7520
  "r-button": !0,
7522
- [`r-button--${V.variant}`]: !0,
7521
+ [`r-button__${V.variant}`]: !0,
7522
+ [`r-button__${V.variant}--${V.variant === "default" && V.color === void 0 ? "primary" : V.color}`]: !0,
7523
7523
  "r-button--loading": V.loading,
7524
7524
  [`r-button--${V.size || "medium"}`]: !0,
7525
- "r-button--only-icon": V.onlyIcon,
7525
+ "r-button--only-icon": V.icon,
7526
7526
  "r-button--block": V.block
7527
7527
  })), L = k(() => ({
7528
- small: 20,
7529
- medium: 24,
7530
- 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
- });
7528
+ small: 16,
7529
+ medium: 16,
7530
+ large: 20
7531
+ })[V.size || "medium"]), M = k(() => ({
7532
+ height: V.height ? `${V.height}px` : ""
7533
+ }));
7539
7534
  return (A, i) => (m(), Z("button", L2(A.$attrs, {
7540
- class: s(C),
7541
- disabled: H.disabled || H.loading,
7542
- style: s(M),
7535
+ class: c(C),
7536
+ disabled: H.disabled,
7537
+ style: c(M),
7543
7538
  onClick: i[0] || (i[0] = (e) => A.$emit("click"))
7544
7539
  }), [
7545
7540
  b(A.$slots, "custom-icon"),
7546
7541
  !A.$slots["custom-icon"] && V.prependIcon ? (m(), R(x, {
7547
7542
  key: 0,
7548
7543
  class: f(["r-button__prepend-icon", {
7549
- "r-button__prepend-icon--only": V.onlyIcon
7544
+ "r-button__prepend-icon--only": V.icon
7550
7545
  }]),
7551
7546
  name: V.prependIcon,
7552
- size: s(L)
7547
+ size: c(L)
7553
7548
  }, 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, {
7549
+ V.icon ? B("", !0) : b(A.$slots, "default", { key: 1 }),
7550
+ !A.$slots["custom-icon"] && !V.icon && V.appendIcon ? (m(), R(x, {
7556
7551
  key: 2,
7557
7552
  class: "r-button__append-icon",
7558
7553
  name: V.appendIcon,
7559
- size: s(L)
7554
+ size: c(L)
7560
7555
  }, null, 8, ["name", "size"])) : B("", !0)
7561
7556
  ], 16, b2));
7562
7557
  }
@@ -7627,11 +7622,11 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7627
7622
  onChange: e
7628
7623
  }, null, 40, P2),
7629
7624
  S("div", {
7630
- class: f(s(i)),
7625
+ class: f(c(i)),
7631
7626
  "data-disabled": C.disabled
7632
7627
  }, [
7633
7628
  $(x, {
7634
- name: s(A),
7629
+ name: c(A),
7635
7630
  size: 24
7636
7631
  }, null, 8, ["name"])
7637
7632
  ], 10, T2)
@@ -7670,7 +7665,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7670
7665
  C.disabled || !C.closable || (i.stopPropagation(), V("click:close", i));
7671
7666
  };
7672
7667
  return (i, e) => (m(), Z("div", {
7673
- class: f(s(L))
7668
+ class: f(c(L))
7674
7669
  }, [
7675
7670
  S("div", {
7676
7671
  class: "r-chip__content",
@@ -7704,9 +7699,9 @@ function _2(H) {
7704
7699
  return M2() ? (A2(H), !0) : !1;
7705
7700
  }
7706
7701
  function I1(H) {
7707
- return typeof H == "function" ? H() : s(H);
7702
+ return typeof H == "function" ? H() : c(H);
7708
7703
  }
7709
- const Q1 = typeof window < "u" && typeof document < "u", W2 = Object.prototype.toString, N2 = (H) => W2.call(H) === "[object Object]", s1 = () => {
7704
+ const Q1 = typeof window < "u" && typeof document < "u", W2 = Object.prototype.toString, N2 = (H) => W2.call(H) === "[object Object]", c1 = () => {
7710
7705
  }, I2 = /* @__PURE__ */ Q2();
7711
7706
  function Q2() {
7712
7707
  var H;
@@ -7721,7 +7716,7 @@ const G1 = Q1 ? window : void 0;
7721
7716
  function S1(...H) {
7722
7717
  let V, C, L, M;
7723
7718
  if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, M] = H, V = G1) : [V, C, L, M] = H, !V)
7724
- return s1;
7719
+ return c1;
7725
7720
  Array.isArray(C) || (C = [C]), Array.isArray(L) || (L = [L]);
7726
7721
  const A = [], i = () => {
7727
7722
  A.forEach((n) => n()), A.length = 0;
@@ -7746,7 +7741,7 @@ function G2(H, V, C = {}) {
7746
7741
  const { window: L = G1, ignore: M = [], capture: A = !0, detectIframe: i = !1 } = C;
7747
7742
  if (!L)
7748
7743
  return;
7749
- I2 && !y1 && (y1 = !0, Array.from(L.document.body.children).forEach((a) => a.addEventListener("click", s1)), L.document.documentElement.addEventListener("click", s1));
7744
+ I2 && !y1 && (y1 = !0, Array.from(L.document.body.children).forEach((a) => a.addEventListener("click", c1)), L.document.documentElement.addEventListener("click", c1));
7750
7745
  let e = !0;
7751
7746
  const d = (a) => M.some((r) => {
7752
7747
  if (typeof r == "string")
@@ -7825,8 +7820,8 @@ const z2 = async (H, V, C) => {
7825
7820
  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
7821
  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
7822
  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);
7823
+ 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 } });
7824
+ 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
7825
  }
7831
7826
  return { x: n, y: t, placement: a, strategy: M, middlewareData: r };
7832
7827
  };
@@ -7855,7 +7850,7 @@ const K2 = (H) => ({ name: "arrow", options: H, async fn(V) {
7855
7850
  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
7851
  let O = w ? t === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0;
7857
7852
  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];
7853
+ 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
7854
  return { [t]: n[t] - (W ? g < F ? F - g : o - g : 0), data: { [t]: D, centerOffset: g - D } };
7860
7855
  } }), j2 = { left: "right", right: "left", bottom: "top", top: "bottom" };
7861
7856
  function l1(H) {
@@ -7886,8 +7881,8 @@ const X2 = function(H) {
7886
7881
  w.push(T[g], T[D]);
7887
7882
  }
7888
7883
  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];
7884
+ var s, F;
7885
+ const g = ((s = (F = M.flip) == null ? void 0 : F.index) != null ? s : 0) + 1, D = P[g];
7891
7886
  if (D)
7892
7887
  return { data: { index: g, overflows: O }, reset: { placement: D } };
7893
7888
  let W = "bottom";
@@ -8142,7 +8137,7 @@ const A5 = { getClippingRect: function(H) {
8142
8137
  return { reference: M5(V, await M(C), L), floating: { x: 0, y: 0, ...await A(C) } };
8143
8138
  }, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" }, i5 = (H, V, C) => z2(H, V, { platform: A5, ...C });
8144
8139
  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) {
8140
+ async function s1({ value: H }, { value: V }, { value: C }, L, M, A, i = 300, e) {
8146
8141
  !H || !V || i5(H, V, {
8147
8142
  placement: L,
8148
8143
  middleware: [
@@ -8208,7 +8203,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8208
8203
  const C = H, L = E(null), M = E(null), A = E(null);
8209
8204
  async function i() {
8210
8205
  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());
8206
+ P || (M.value.style.display = "block", V("show"), s1(L, M, A, u, p, h, T, w), d());
8212
8207
  }
8213
8208
  function e() {
8214
8209
  C.disabled || !M.value || (M.value.style.display = "", V("hide"));
@@ -8229,7 +8224,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8229
8224
  }
8230
8225
  function a() {
8231
8226
  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);
8227
+ P || C.triggers.includes(N.Hover) && s1(L, M, A, u, p, h, T, w);
8233
8228
  }
8234
8229
  const r = k(() => ({
8235
8230
  tooltip: !0,
@@ -8238,7 +8233,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8238
8233
  }));
8239
8234
  return window.onresize = () => {
8240
8235
  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);
8236
+ P || C.resizable && s1(L, M, A, u, p, h, T, w);
8242
8237
  }, i2(
8243
8238
  () => {
8244
8239
  C.disabled || (C.shown && C.triggers.includes(N.Manual) ? i() : !C.shown && C.triggers.includes(N.Manual) && e());
@@ -8284,7 +8279,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8284
8279
  id: "tooltip",
8285
8280
  ref_key: "tooltip",
8286
8281
  ref: M,
8287
- class: f([s(r), H.tooltipClass]),
8282
+ class: f([c(r), H.tooltipClass]),
8288
8283
  role: "tooltip"
8289
8284
  }, [
8290
8285
  b(u.$slots, "content", { hide: e }, () => [
@@ -8337,10 +8332,10 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8337
8332
  emits: ["update:modelValue"],
8338
8333
  setup(H, { emit: V }) {
8339
8334
  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) {
8335
+ function n(O, s) {
8341
8336
  var F, o, g;
8342
8337
  if (O.stopPropagation(), !C.disabled) {
8343
- if (A.value = !A.value, c && c(), A.value) {
8338
+ if (A.value = !A.value, s && s(), A.value) {
8344
8339
  (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
8340
  return;
8346
8341
  }
@@ -8348,31 +8343,31 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8348
8343
  }
8349
8344
  }
8350
8345
  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();
8346
+ var O, s, F;
8347
+ 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
8348
  }
8354
- function a(O, c, F) {
8349
+ function a(O, s, F) {
8355
8350
  var o;
8356
- if (O.stopPropagation(), !c.disabled) {
8351
+ if (O.stopPropagation(), !s.disabled) {
8357
8352
  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());
8353
+ 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
8354
  return;
8360
8355
  }
8361
- r(O, c), C.closeOnSelect && (F(), t());
8356
+ r(O, s), C.closeOnSelect && (F(), t());
8362
8357
  }
8363
8358
  }
8364
- function r(O, c) {
8365
- if (L.value.value === c.value) {
8359
+ function r(O, s) {
8360
+ if (L.value.value === s.value) {
8366
8361
  L.value = {}, i.value = "";
8367
8362
  return;
8368
8363
  }
8369
- i.value = c.label, L.value = c, n(O), V("update:modelValue", c);
8364
+ i.value = s.label, L.value = s, n(O), V("update:modelValue", s);
8370
8365
  }
8371
- function u(O, c) {
8366
+ function u(O, s) {
8372
8367
  if (O instanceof KeyboardEvent && O.key !== "Backspace" || i.value !== "")
8373
8368
  return;
8374
8369
  O.stopPropagation();
8375
- const F = M.findIndex((o) => o.value === c.value);
8370
+ const F = M.findIndex((o) => o.value === s.value);
8376
8371
  M.splice(F, 1);
8377
8372
  }
8378
8373
  function p(O) {
@@ -8380,15 +8375,15 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8380
8375
  if (!C.taggable)
8381
8376
  return;
8382
8377
  O.stopPropagation();
8383
- const c = i.value;
8384
- if (c === "")
8378
+ const s = i.value;
8379
+ if (s === "")
8385
8380
  return;
8386
- C.options.find((g) => g.label === c) || (M.push({ value: c, label: c }), i.value = "", (o = d.value) == null || o.focus());
8381
+ C.options.find((g) => g.label === s) || (M.push({ value: s, label: s }), i.value = "", (o = d.value) == null || o.focus());
8387
8382
  }
8388
8383
  function h(O) {
8389
- return C.multiple ? M.find((c) => c.value === O.value) : L.value.value === O.value;
8384
+ return C.multiple ? M.find((s) => s.value === O.value) : L.value.value === O.value;
8390
8385
  }
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);
8386
+ 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
8387
  function w() {
8393
8388
  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
8389
  }
@@ -8398,7 +8393,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8398
8393
  V("update:modelValue", O);
8399
8394
  }), _(() => C.modelValue, (O) => {
8400
8395
  w();
8401
- }), (O, c) => (m(), Z("div", {
8396
+ }), (O, s) => (m(), Z("div", {
8402
8397
  ref_key: "wrapper",
8403
8398
  ref: l,
8404
8399
  class: "r-dropdown-wrapper"
@@ -8456,17 +8451,17 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8456
8451
  id: C.id,
8457
8452
  ref_key: "input",
8458
8453
  ref: d,
8459
- "onUpdate:modelValue": c[0] || (c[0] = (o) => i.value = o),
8454
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => i.value = o),
8460
8455
  class: f(["r-dropdown__input", {
8461
8456
  "r-dropdown__input--loading": C.loading
8462
8457
  }]),
8463
8458
  disabled: C.disabled,
8464
8459
  placeholder: C.placeholder,
8465
- readonly: s(T),
8460
+ readonly: c(T),
8466
8461
  type: "text",
8467
8462
  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"]))
8463
+ s[1] || (s[1] = B1((o) => u(o, M[M.length - 1]), ["backspace"])),
8464
+ s[2] || (s[2] = B1((o) => p(o), ["enter"]))
8470
8465
  ]
8471
8466
  }, null, 42, n5), [
8472
8467
  [d2, i.value]
@@ -8493,7 +8488,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8493
8488
  [C.optionsClass]: C.optionsClass
8494
8489
  }])
8495
8490
  }, [
8496
- (m(!0), Z(z, null, q(s(P), (o) => (m(), Z("li", {
8491
+ (m(!0), Z(z, null, q(c(P), (o) => (m(), Z("li", {
8497
8492
  key: o.value,
8498
8493
  "aria-disabled": o.disabled,
8499
8494
  class: f(["r-dropdown-options__option", {
@@ -8549,7 +8544,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8549
8544
  ])
8550
8545
  ], 8, Z5));
8551
8546
  }
8552
- }), u5 = ["onClick"], S5 = ["open"], c5 = { class: "r-dialog__header" }, s5 = {
8547
+ }), u5 = ["onClick"], S5 = ["open"], s5 = { class: "r-dialog__header" }, c5 = {
8553
8548
  key: 0,
8554
8549
  class: "icon"
8555
8550
  }, O5 = {
@@ -8591,14 +8586,14 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8591
8586
  }, [
8592
8587
  S("div", {
8593
8588
  "aria-modal": "true",
8594
- class: f(s(L)),
8589
+ class: f(c(L)),
8595
8590
  open: C.modelValue,
8596
8591
  role: "dialog",
8597
- style: h1(s(M))
8592
+ style: h1(c(M))
8598
8593
  }, [
8599
- S("div", c5, [
8594
+ S("div", s5, [
8600
8595
  b(i.$slots, "header"),
8601
- C.icon ? (m(), Z("div", s5, [
8596
+ C.icon ? (m(), Z("div", c5, [
8602
8597
  $(x, {
8603
8598
  name: C.icon
8604
8599
  }, null, 8, ["name"])
@@ -8632,7 +8627,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8632
8627
  }));
8633
8628
  return (L, M) => (m(), Z(z, null, [
8634
8629
  S("aside", {
8635
- class: f([s(C), V.class]),
8630
+ class: f([c(C), V.class]),
8636
8631
  "data-open": V.modelValue
8637
8632
  }, [
8638
8633
  S("nav", k5, [
@@ -8695,13 +8690,13 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8695
8690
  info: "mdiInformation"
8696
8691
  })[C.variant || "info"]);
8697
8692
  return (A, i) => (m(), Z("div", {
8698
- class: f(s(L))
8693
+ class: f(c(L))
8699
8694
  }, [
8700
8695
  b(A.$slots, "default", {}, () => [
8701
8696
  C.variant ? (m(), R(x, {
8702
8697
  key: 0,
8703
8698
  class: "r-snackbar__icon",
8704
- name: s(M)
8699
+ name: c(M)
8705
8700
  }, null, 8, ["name"])) : B("", !0)
8706
8701
  ]),
8707
8702
  S("div", w5, y(C.text), 1),
@@ -8758,7 +8753,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ v({
8758
8753
  }
8759
8754
  ), (i, e) => (m(), Z("div", T5, [
8760
8755
  S("div", {
8761
- class: f(s(M))
8756
+ class: f(c(M))
8762
8757
  }, [
8763
8758
  S("input", {
8764
8759
  id: C.id,
@@ -8822,22 +8817,22 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8822
8817
  return (e, d) => (m(), Z("button", {
8823
8818
  "aria-disabled": C.disabled,
8824
8819
  "aria-selected": C.modelValue === C.id,
8825
- class: f(s(L)),
8820
+ class: f(c(L)),
8826
8821
  disabled: C.disabled,
8827
- style: h1(s(M)),
8822
+ style: h1(c(M)),
8828
8823
  onClick: d[0] || (d[0] = L1((l) => A(C.id), ["stop"]))
8829
8824
  }, [
8830
8825
  b(e.$slots, "prepend", {}, () => [
8831
- C.variant !== s(H1).TEXT && C.prependIcon ? (m(), R(x, {
8826
+ C.variant !== c(H1).TEXT && C.prependIcon ? (m(), R(x, {
8832
8827
  key: 0,
8833
8828
  class: "r-tab-item__prepend-icon",
8834
8829
  name: C.prependIcon,
8835
8830
  size: 16
8836
8831
  }, null, 8, ["name"])) : B("", !0)
8837
8832
  ]),
8838
- C.variant !== s(H1).ICON ? (m(), Z("span", _5, y(C.label), 1)) : B("", !0),
8833
+ C.variant !== c(H1).ICON ? (m(), Z("span", _5, y(C.label), 1)) : B("", !0),
8839
8834
  b(e.$slots, "append", {}, () => [
8840
- C.variant !== s(H1).TEXT && C.appendIcon ? (m(), R(x, {
8835
+ C.variant !== c(H1).TEXT && C.appendIcon ? (m(), R(x, {
8841
8836
  key: 0,
8842
8837
  class: "r-tab-item__append-icon",
8843
8838
  name: C.appendIcon,
@@ -8874,7 +8869,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8874
8869
  V("click:icon");
8875
8870
  }
8876
8871
  return (i, e) => (m(), Z("div", {
8877
- class: f(s(M))
8872
+ class: f(c(M))
8878
8873
  }, [
8879
8874
  b(i.$slots, "default", {}, () => [
8880
8875
  (m(!0), Z(z, null, q(C.tabs, (d, l) => (m(), R(W5, {
@@ -9040,9 +9035,9 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9040
9035
  }
9041
9036
  V("click:icon", {
9042
9037
  value: A.value === "number" ? +M.value : M.value
9043
- }), A.value === "password" && c();
9038
+ }), A.value === "password" && s();
9044
9039
  }
9045
- function c() {
9040
+ function s() {
9046
9041
  A.value = A.value === "password" ? "text" : "password";
9047
9042
  }
9048
9043
  function F() {
@@ -9077,13 +9072,13 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9077
9072
  }, null, 8, ["id", "for", "text"])) : B("", !0),
9078
9073
  S("div", U5, [
9079
9074
  S("div", {
9080
- class: f(s(a))
9075
+ class: f(c(a))
9081
9076
  }, [
9082
9077
  b(o.$slots, "prepend"),
9083
- s(p) && !o.$slots.prepend ? (m(), R(x, {
9078
+ c(p) && !o.$slots.prepend ? (m(), R(x, {
9084
9079
  key: 0,
9085
- class: f(s(r)),
9086
- name: s(p),
9080
+ class: f(c(r)),
9081
+ name: c(p),
9087
9082
  size: 20
9088
9083
  }, null, 8, ["class", "name"])) : B("", !0),
9089
9084
  S("input", {
@@ -9101,10 +9096,10 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9101
9096
  onInput: w
9102
9097
  }, null, 40, $5),
9103
9098
  b(o.$slots, "append"),
9104
- s(h) && !o.$slots.append ? (m(), R(x, {
9099
+ c(h) && !o.$slots.append ? (m(), R(x, {
9105
9100
  key: 1,
9106
- class: f(s(u)),
9107
- name: `${s(h)}`,
9101
+ class: f(c(u)),
9102
+ name: `${c(h)}`,
9108
9103
  size: 20,
9109
9104
  onClick: O
9110
9105
  }, null, 8, ["class", "name"])) : B("", !0)
@@ -9193,7 +9188,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9193
9188
  H.slash ? B("", !0) : (m(), Z("span", C3, y(C.pageText), 1)),
9194
9189
  S("span", H3, y(C.page), 1),
9195
9190
  S("span", null, y(H.slash ? "/" : C.ofText), 1),
9196
- S("span", V3, y(s(L)), 1)
9191
+ S("span", V3, y(c(L)), 1)
9197
9192
  ]),
9198
9193
  S("div", L3, [
9199
9194
  S("button", {
@@ -9218,7 +9213,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9218
9213
  ], 8, M3),
9219
9214
  S("input", {
9220
9215
  class: "r-pagination__paginator__input",
9221
- max: s(L),
9216
+ max: c(L),
9222
9217
  min: "1",
9223
9218
  type: "number",
9224
9219
  value: C.page,
@@ -9229,12 +9224,12 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9229
9224
  }, null, 40, d3),
9230
9225
  S("button", {
9231
9226
  class: "r-pagination__paginator__next",
9232
- disabled: C.page === s(L),
9227
+ disabled: C.page === c(L),
9233
9228
  onClick: i[2] || (i[2] = (e) => M(+C.page + 1))
9234
9229
  }, [
9235
9230
  b(A.$slots, "next", {}, () => [
9236
9231
  (m(), Z("svg", {
9237
- class: f({ "stroke-gray-400": C.page === s(L) }),
9232
+ class: f({ "stroke-gray-400": C.page === c(L) }),
9238
9233
  fill: "none",
9239
9234
  height: "16",
9240
9235
  stroke: "#323232",
@@ -9247,7 +9242,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9247
9242
  }, o3, 2))
9248
9243
  ])
9249
9244
  ], 8, t3),
9250
- S("div", n3, "/ " + y(s(L)), 1)
9245
+ S("div", n3, "/ " + y(c(L)), 1)
9251
9246
  ])
9252
9247
  ]));
9253
9248
  }
@@ -9318,9 +9313,9 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
9318
9313
  }
9319
9314
  return (l, n) => b(l.$slots, "default", {
9320
9315
  disabled: V.disabled,
9321
- isSelected: s(L)(V.value),
9316
+ isSelected: c(L)(V.value),
9322
9317
  select: d,
9323
- selectedClass: s(A),
9318
+ selectedClass: c(A),
9324
9319
  toggle: e,
9325
9320
  value: V.value
9326
9321
  });
@@ -9330,9 +9325,9 @@ export {
9330
9325
  Z3 as RAccordion,
9331
9326
  u3 as RAlert,
9332
9327
  S3 as RAvatar,
9333
- c3 as RBadge,
9328
+ s3 as RBadge,
9334
9329
  w3 as RBreadcrumb,
9335
- s3 as RButton,
9330
+ c3 as RButton,
9336
9331
  O3 as RCheckbox,
9337
9332
  E2 as RChip,
9338
9333
  p3 as RDropdown,