@comercti/vue-components-hmg 0.44.1 → 0.44.2

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.
@@ -606,17 +606,16 @@ const xn = (e) => {
606
606
  showLoading: { type: Boolean, default: !1 },
607
607
  background: { default: "smoky" },
608
608
  blur: { type: Boolean, default: !1 },
609
- showText: { type: Boolean, default: !0 }
609
+ showText: { type: Boolean, default: !0 },
610
+ size: { default: "medium" }
610
611
  },
611
612
  setup(e) {
612
- const t = W(() => ({
613
- "w-10 h-10 border-4 border-green-500 border-t-transparent rounded-full animate-spin": !0
614
- })), a = W(() => ({
615
- "w-10 h-10 border-4 border-green-500 border-t-transparent border-l-transparent rounded-full animate-spin": !0
616
- })), n = W(() => ({
617
- "w-[50px] h-[50px] relative ": !0
618
- }));
619
- return (r, s) => e.showLoading ? (d(), f("div", {
613
+ const t = e, a = (i) => i === "small" ? "w-6 h-6 border-2" : i === "medium" ? "w-8 h-8 border-4" : "w-10 h-10 border-4", n = W(() => ({
614
+ [`${a(t.size)} border-green-500 border-t-transparent rounded-full animate-spin`]: !0
615
+ })), r = W(() => ({
616
+ [`${a(t.size)} border-green-500 border-t-transparent border-l-transparent rounded-full animate-spin`]: !0
617
+ })), s = W(() => "w-[50px] h-[50px] relative ");
618
+ return (i, l) => e.showLoading ? (d(), f("div", {
620
619
  key: 0,
621
620
  class: y(["fixed left-0 top-0 z-50 flex h-full w-full items-center justify-center", {
622
621
  "backdrop-blur-md": e.blur,
@@ -629,14 +628,14 @@ const xn = (e) => {
629
628
  c("div", Ao, [
630
629
  e.type === "spinner" ? (d(), f("div", {
631
630
  key: 0,
632
- class: y(t.value)
631
+ class: y(n.value)
633
632
  }, null, 2)) : e.type === "semi-circle" ? (d(), f("div", {
634
633
  key: 1,
635
- class: y(a.value)
634
+ class: y(r.value)
636
635
  }, null, 2)) : e.type === "dots" ? (d(), f("div", {
637
636
  key: 2,
638
- class: y(n.value)
639
- }, [...s[0] || (s[0] = [
637
+ class: y(s.value)
638
+ }, [...l[0] || (l[0] = [
640
639
  pn('<div class="absolute -top-1 left-1/2 transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade"></div><div class="absolute top-0 left-10 transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-15"></div><div class="absolute top-3 left-[3rem] transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-30"></div><div class="absolute top-7 left-[3rem] transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-45"></div><div class="absolute top-10 left-[2.5rem] transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-60"></div><div class="absolute top-[2.7rem] left-[1.5rem] transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-75"></div><div class="absolute top-[2.4rem] left-[0.6rem] transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-90"></div><div class="absolute top-[1.5rem] right-9 transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-105"></div><div class="absolute top-0 right-7 transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-135"></div><div class="absolute top-[0.70rem] right-9 transform -translate-x-1/2 w-3 h-3 bg-green-500 rounded-full opacity-0 animate-fade delay-120"></div>', 10)
641
640
  ])], 2)) : C("", !0),
642
641
  e.showText ? (d(), f("p", Bo, "Carregando...")) : C("", !0)
@@ -9278,7 +9277,8 @@ const t2 = /* @__PURE__ */ J({
9278
9277
  showLoading: { type: Boolean, default: !1 },
9279
9278
  background: { default: "smoky" },
9280
9279
  blur: { type: Boolean, default: !1 },
9281
- showText: { type: Boolean, default: !0 }
9280
+ showText: { type: Boolean, default: !0 },
9281
+ size: { default: "medium" }
9282
9282
  },
9283
9283
  setup(e) {
9284
9284
  const { exibirLoading: t } = hn();
@@ -9287,8 +9287,9 @@ const t2 = /* @__PURE__ */ J({
9287
9287
  "show-loading": e.showLoading || o(t),
9288
9288
  background: e.background,
9289
9289
  blur: e.blur,
9290
- "show-text": e.showText
9291
- }, null, 8, ["type", "show-loading", "background", "blur", "show-text"]));
9290
+ "show-text": e.showText,
9291
+ size: e.size
9292
+ }, null, 8, ["type", "show-loading", "background", "blur", "show-text", "size"]));
9292
9293
  }
9293
9294
  }), { addCeToast: a2, removeCeToast: n2, toasts: o2 } = vn(), { activateCeLoading: r2, disableCeLoading: l2 } = hn(), d0 = { class: "w-full" }, u0 = ["src", "alt"], c0 = {
9294
9295
  key: 1,