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