@grupo-elo-editorial/shared-ui-react 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -285,7 +285,7 @@ const Pe = N(
285
285
  }
286
286
  );
287
287
  Pe.displayName = "Divider";
288
- const T = N(
288
+ const $ = N(
289
289
  ({
290
290
  className: a,
291
291
  value: t = 0,
@@ -347,7 +347,7 @@ const T = N(
347
347
  );
348
348
  }
349
349
  );
350
- T.displayName = "Rating";
350
+ $.displayName = "Rating";
351
351
  function kt({ className: a, type: t, ...r }) {
352
352
  return /* @__PURE__ */ e(
353
353
  "input",
@@ -579,7 +579,7 @@ function H({
579
579
  }) {
580
580
  return a ? /* @__PURE__ */ e("a", { href: a, className: t, tabIndex: -1, "aria-hidden": "true", children: r }) : /* @__PURE__ */ e("div", { className: t, children: r });
581
581
  }
582
- const $ = N(
582
+ const T = N(
583
583
  ({
584
584
  className: a,
585
585
  image: t,
@@ -615,7 +615,7 @@ const $ = N(
615
615
  {
616
616
  className: o(
617
617
  "rounded-lg bg-[var(--muted)]",
618
- p === "horizontal" ? "h-24 w-20 shrink-0" : "h-50 sm:h-60 lg:h-65 w-full"
618
+ p === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-2/3"
619
619
  )
620
620
  }
621
621
  ),
@@ -663,7 +663,7 @@ const $ = N(
663
663
  ) : /* @__PURE__ */ e("h3", { className: "line-clamp-2 text-sm font-medium text-[var(--card-foreground)]", children: r }),
664
664
  n && /* @__PURE__ */ e("p", { className: "text-xs text-[var(--muted-foreground)]", children: n }),
665
665
  l !== void 0 && /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
666
- /* @__PURE__ */ e(T, { value: l, size: "sm", readonly: !0 }),
666
+ /* @__PURE__ */ e($, { value: l, size: "sm", readonly: !0 }),
667
667
  m !== void 0 && /* @__PURE__ */ i("span", { className: "text-xs text-[var(--muted-foreground)]", children: [
668
668
  "(",
669
669
  m,
@@ -711,18 +711,30 @@ const $ = N(
711
711
  H,
712
712
  {
713
713
  href: d,
714
- className: "relative block h-50 sm:h-60 lg:h-65 w-full overflow-hidden rounded-t-lg",
714
+ className: "relative block w-full aspect-2/3 overflow-hidden rounded-t-lg",
715
715
  children: [
716
+ /* @__PURE__ */ e(
717
+ "div",
718
+ {
719
+ "aria-hidden": "true",
720
+ className: "absolute inset-0 z-0 bg-cover bg-center",
721
+ style: {
722
+ backgroundImage: `url(${t})`,
723
+ filter: "blur(14px) brightness(0.85)",
724
+ transform: "scale(1.2)"
725
+ }
726
+ }
727
+ ),
716
728
  /* @__PURE__ */ e(
717
729
  "img",
718
730
  {
719
731
  src: t,
720
732
  alt: r,
721
- className: "h-full w-full object-contain transition-transform group-hover:scale-105"
733
+ className: "relative z-10 h-full w-full object-contain transition-transform group-hover:scale-105"
722
734
  }
723
735
  ),
724
- f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(P, { variant: u, children: f }) }),
725
- g && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(P, { variant: "danger", size: "lg", children: "Esgotado" }) })
736
+ f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3 z-20", children: /* @__PURE__ */ e(P, { variant: u, children: f }) }),
737
+ g && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(P, { variant: "danger", size: "lg", children: "Esgotado" }) })
726
738
  ]
727
739
  }
728
740
  ),
@@ -754,7 +766,7 @@ const $ = N(
754
766
  ) : /* @__PURE__ */ e("h3", { className: "line-clamp-2 text-base font-medium text-[var(--card-foreground)]", children: r }),
755
767
  n && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-[var(--muted-foreground)]", children: n }),
756
768
  l !== void 0 && /* @__PURE__ */ i("div", { className: "mt-2 flex items-center gap-2", children: [
757
- /* @__PURE__ */ e(T, { value: l, size: "sm", readonly: !0 }),
769
+ /* @__PURE__ */ e($, { value: l, size: "sm", readonly: !0 }),
758
770
  m !== void 0 && /* @__PURE__ */ i("span", { className: "text-sm text-[var(--muted-foreground)]", children: [
759
771
  "(",
760
772
  m,
@@ -794,7 +806,7 @@ const $ = N(
794
806
  }
795
807
  )
796
808
  );
797
- $.displayName = "ProductCard";
809
+ T.displayName = "ProductCard";
798
810
  const Ee = N(
799
811
  ({
800
812
  className: a,
@@ -857,7 +869,7 @@ const Ee = N(
857
869
  }
858
870
  );
859
871
  Ee.displayName = "SearchBar";
860
- const Te = N(
872
+ const $e = N(
861
873
  ({
862
874
  className: a,
863
875
  price: t,
@@ -920,8 +932,8 @@ const Te = N(
920
932
  ] });
921
933
  }
922
934
  );
923
- Te.displayName = "PriceDisplay";
924
- const $e = N(
935
+ $e.displayName = "PriceDisplay";
936
+ const Te = N(
925
937
  ({
926
938
  className: a,
927
939
  value: t,
@@ -1001,7 +1013,7 @@ const $e = N(
1001
1013
  ] });
1002
1014
  }
1003
1015
  );
1004
- $e.displayName = "QuantitySelector";
1016
+ Te.displayName = "QuantitySelector";
1005
1017
  const Be = N(
1006
1018
  ({ className: a, label: t, htmlFor: r, required: n, error: s, helperText: c, children: l, ...m }, f) => /* @__PURE__ */ i("div", { ref: f, className: o("flex flex-col gap-1.5", a), ...m, children: [
1007
1019
  t && /* @__PURE__ */ i(
@@ -1069,7 +1081,7 @@ function Et({
1069
1081
  }
1070
1082
  );
1071
1083
  }
1072
- function Tt({ className: a, ...t }) {
1084
+ function $t({ className: a, ...t }) {
1073
1085
  return /* @__PURE__ */ e(
1074
1086
  "span",
1075
1087
  {
@@ -1082,7 +1094,7 @@ function Tt({ className: a, ...t }) {
1082
1094
  }
1083
1095
  );
1084
1096
  }
1085
- function $t({
1097
+ function Tt({
1086
1098
  children: a,
1087
1099
  className: t,
1088
1100
  ...r
@@ -1466,7 +1478,7 @@ const He = N(
1466
1478
  ),
1467
1479
  ...f,
1468
1480
  children: Array.from({ length: c }).map((b, h) => /* @__PURE__ */ e(
1469
- $,
1481
+ T,
1470
1482
  {
1471
1483
  image: "",
1472
1484
  title: "",
@@ -1498,7 +1510,7 @@ const He = N(
1498
1510
  a
1499
1511
  ),
1500
1512
  ...f,
1501
- children: t.map((b, h) => /* @__PURE__ */ e($, { ...b }, h))
1513
+ children: t.map((b, h) => /* @__PURE__ */ e(T, { ...b }, h))
1502
1514
  }
1503
1515
  );
1504
1516
  }
@@ -2499,8 +2511,8 @@ export {
2499
2511
  Rt as BreadcrumbItem,
2500
2512
  Et as BreadcrumbLink,
2501
2513
  At as BreadcrumbList,
2502
- Tt as BreadcrumbPage,
2503
- $t as BreadcrumbSeparator,
2514
+ $t as BreadcrumbPage,
2515
+ Tt as BreadcrumbSeparator,
2504
2516
  C as Button,
2505
2517
  Mt as Checkbox,
2506
2518
  ra as Col,
@@ -2523,14 +2535,14 @@ export {
2523
2535
  kt as Input,
2524
2536
  dt as MegaMenu,
2525
2537
  Qt as Modal,
2526
- Te as PriceDisplay,
2527
- $ as ProductCard,
2538
+ $e as PriceDisplay,
2539
+ T as ProductCard,
2528
2540
  He as ProductGrid,
2529
2541
  la as ProgressBar,
2530
- $e as QuantitySelector,
2542
+ Te as QuantitySelector,
2531
2543
  Dt as RadioGroup,
2532
2544
  Lt as RadioGroupItem,
2533
- T as Rating,
2545
+ $ as Rating,
2534
2546
  Ee as SearchBar,
2535
2547
  zt as Select,
2536
2548
  It as SelectContent,