@dmsi/wedgekit-react 0.0.440 → 0.0.442

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.
Files changed (60) hide show
  1. package/dist/{chunk-IMOIZFJZ.js → chunk-DNYGKNQM.js} +1 -1
  2. package/dist/chunk-ETAEB3TA.js +19 -0
  3. package/dist/{chunk-G5DEC7H3.js → chunk-YCDDBSVU.js} +16 -23
  4. package/dist/components/CalendarRange.cjs +38 -40
  5. package/dist/components/CalendarRange.css +23 -11
  6. package/dist/components/CalendarRange.js +3 -3
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +38 -40
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +23 -11
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +3 -3
  10. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +38 -40
  11. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +23 -11
  12. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +3 -3
  13. package/dist/components/DataGrid/PinnedColumns.cjs +38 -40
  14. package/dist/components/DataGrid/PinnedColumns.css +23 -11
  15. package/dist/components/DataGrid/PinnedColumns.js +3 -3
  16. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +38 -40
  17. package/dist/components/DataGrid/TableBody/LoadingCell.css +23 -11
  18. package/dist/components/DataGrid/TableBody/LoadingCell.js +3 -3
  19. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +38 -40
  20. package/dist/components/DataGrid/TableBody/TableBodyRow.css +23 -11
  21. package/dist/components/DataGrid/TableBody/TableBodyRow.js +3 -3
  22. package/dist/components/DataGrid/TableBody/index.cjs +38 -40
  23. package/dist/components/DataGrid/TableBody/index.css +23 -11
  24. package/dist/components/DataGrid/TableBody/index.js +3 -3
  25. package/dist/components/DataGrid/index.cjs +38 -40
  26. package/dist/components/DataGrid/index.css +23 -11
  27. package/dist/components/DataGrid/index.js +3 -3
  28. package/dist/components/DataGrid/utils.cjs +38 -40
  29. package/dist/components/DataGrid/utils.css +23 -11
  30. package/dist/components/DataGrid/utils.js +3 -3
  31. package/dist/components/DateInput.cjs +38 -40
  32. package/dist/components/DateInput.css +23 -11
  33. package/dist/components/DateInput.js +3 -3
  34. package/dist/components/DateRangeInput.cjs +38 -40
  35. package/dist/components/DateRangeInput.css +23 -11
  36. package/dist/components/DateRangeInput.js +3 -3
  37. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +38 -40
  38. package/dist/components/MobileDataGrid/ColumnSelector/index.css +23 -11
  39. package/dist/components/MobileDataGrid/ColumnSelector/index.js +3 -3
  40. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +38 -40
  41. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +23 -11
  42. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +3 -3
  43. package/dist/components/MobileDataGrid/index.cjs +61 -63
  44. package/dist/components/MobileDataGrid/index.css +23 -11
  45. package/dist/components/MobileDataGrid/index.js +3 -3
  46. package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +29 -83
  47. package/dist/components/ProductImagePreview/ProductPrimaryImage.js +1 -3
  48. package/dist/components/ProductImagePreview/index.cjs +44 -77
  49. package/dist/components/ProductImagePreview/index.js +2 -3
  50. package/dist/components/SkeletonParagraph.cjs +12 -2
  51. package/dist/components/SkeletonParagraph.js +1 -1
  52. package/dist/components/index.cjs +105 -98
  53. package/dist/components/index.css +23 -11
  54. package/dist/components/index.js +3 -3
  55. package/dist/index.css +23 -11
  56. package/package.json +1 -1
  57. package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +24 -34
  58. package/src/components/SkeletonParagraph.tsx +20 -2
  59. package/src/index.css +27 -0
  60. package/dist/chunk-ESCNCQGI.js +0 -9
@@ -554,39 +554,8 @@ var Grid = (_a) => {
554
554
 
555
555
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
556
556
  var import_react3 = require("react");
557
-
558
- // src/components/Spinner.tsx
559
557
  var import_jsx_runtime5 = require("react/jsx-runtime");
560
- var Spinner = ({ size = "small", testid }) => {
561
- const dimension = size === "large" ? 48 : 24;
562
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
563
- "svg",
564
- {
565
- "data-testid": testid,
566
- width: dimension,
567
- height: dimension,
568
- viewBox: "0 0 24 24",
569
- xmlns: "http://www.w3.org/2000/svg",
570
- fill: "#1D1E1E",
571
- className: "spinner",
572
- "aria-label": "Loading",
573
- children: [
574
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
575
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
576
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
577
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
578
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
579
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
580
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
581
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
582
- ]
583
- }
584
- );
585
- };
586
- Spinner.displayName = "Spinner";
587
-
588
- // src/components/ProductImagePreview/ProductPrimaryImage.tsx
589
- var import_jsx_runtime6 = require("react/jsx-runtime");
558
+ var placeholderImageUri = "/placeholder.svg";
590
559
  function ProductPrimaryImage({
591
560
  image,
592
561
  width,
@@ -604,8 +573,6 @@ function ProductPrimaryImage({
604
573
  const rafRef = (0, import_react3.useRef)(null);
605
574
  const [active, setActive] = (0, import_react3.useState)(false);
606
575
  const [, forceRerender] = (0, import_react3.useState)(0);
607
- const [imageLoading, setImageLoading] = (0, import_react3.useState)(true);
608
- const [imageError, setImageError] = (0, import_react3.useState)(false);
609
576
  const imageSrc = (0, import_react3.useMemo)(() => image == null ? void 0 : image.src, [image == null ? void 0 : image.src]);
610
577
  const schedule = () => {
611
578
  if (rafRef.current != null) return;
@@ -635,7 +602,8 @@ function ProductPrimaryImage({
635
602
  }, [zoomEnabled, onZoomPositionChange]);
636
603
  const handlePointerMove = (0, import_react3.useCallback)(
637
604
  (e) => {
638
- if (!zoomEnabled || !active || imageError) return;
605
+ if (isPlaceholder) return;
606
+ if (!zoomEnabled || !active) return;
639
607
  if (e.pointerType === "touch") return;
640
608
  const el = containerRef.current;
641
609
  if (!el) return;
@@ -667,7 +635,7 @@ function ProductPrimaryImage({
667
635
  true
668
636
  );
669
637
  },
670
- [zoomEnabled, active, imageError, zoomLensSize, onZoomPositionChange]
638
+ [isPlaceholder, zoomEnabled, active, zoomLensSize, onZoomPositionChange]
671
639
  );
672
640
  (0, import_react3.useEffect)(() => {
673
641
  const container = containerRef.current;
@@ -684,11 +652,15 @@ function ProductPrimaryImage({
684
652
  container.removeEventListener("wheel", handleNativeWheel);
685
653
  };
686
654
  }, [scrollToZoomEnabled, zoomEnabled, active, onScrollZoom]);
687
- (0, import_react3.useEffect)(() => {
688
- setImageLoading(true);
689
- setImageError(false);
690
- }, [image]);
691
- if (!image && !isPlaceholder) return null;
655
+ const handleImgError = (0, import_react3.useCallback)(
656
+ (e) => {
657
+ if (!placeholderImageUri) return;
658
+ const img = e.currentTarget;
659
+ if (img.src === placeholderImageUri) return;
660
+ img.src = placeholderImageUri;
661
+ },
662
+ []
663
+ );
692
664
  const pt = lastPointRef.current;
693
665
  let lensStyle;
694
666
  if (pt && active && zoomEnabled) {
@@ -702,7 +674,7 @@ function ProductPrimaryImage({
702
674
  top: Math.max(0, Math.min(height - size, topRaw))
703
675
  };
704
676
  }
705
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
677
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
706
678
  "div",
707
679
  {
708
680
  ref: containerRef,
@@ -722,24 +694,19 @@ function ProductPrimaryImage({
722
694
  onPointerLeave: handlePointerLeave,
723
695
  onPointerMove: handlePointerMove,
724
696
  children: [
725
- imageLoading && !imageError && !isPlaceholder && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-neutral-50", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Spinner, { size: "small" }) }),
726
- isPlaceholder ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ImagePlaceholder, { width, height }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
697
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
727
698
  "img",
728
699
  {
729
- src: imageError ? "/placeholder.svg" : imageSrc,
700
+ src: imageSrc != null ? imageSrc : placeholderImageUri,
730
701
  alt: (image == null ? void 0 : image.alt) || "Product image",
731
702
  className: "object-cover min-w-full min-h-full select-none",
732
703
  draggable: false,
733
704
  loading: "lazy",
734
- onLoad: () => setImageLoading(false),
735
- onError: () => {
736
- setImageLoading(false);
737
- setImageError(true);
738
- }
705
+ onError: handleImgError
739
706
  },
740
707
  imageSrc
741
708
  ),
742
- zoomEnabled && active && lensStyle && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
709
+ zoomEnabled && active && lensStyle && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
743
710
  "div",
744
711
  {
745
712
  "aria-hidden": true,
@@ -757,7 +724,7 @@ var import_react4 = require("react");
757
724
 
758
725
  // src/components/Surface.tsx
759
726
  var import_clsx4 = __toESM(require("clsx"), 1);
760
- var import_jsx_runtime7 = require("react/jsx-runtime");
727
+ var import_jsx_runtime6 = require("react/jsx-runtime");
761
728
  var Surface = (_a) => {
762
729
  var _b = _a, {
763
730
  children,
@@ -770,7 +737,7 @@ var Surface = (_a) => {
770
737
  "elevation",
771
738
  "id"
772
739
  ]);
773
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
740
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
774
741
  "div",
775
742
  __spreadProps(__spreadValues({
776
743
  id,
@@ -791,7 +758,7 @@ var Surface = (_a) => {
791
758
  Surface.displayName = "Surface";
792
759
 
793
760
  // src/components/ProductImagePreview/ZoomWindow.tsx
794
- var import_jsx_runtime8 = require("react/jsx-runtime");
761
+ var import_jsx_runtime7 = require("react/jsx-runtime");
795
762
  function ZoomWindow({
796
763
  image,
797
764
  width,
@@ -849,7 +816,7 @@ function ZoomWindow({
849
816
  top
850
817
  };
851
818
  };
852
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
819
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
853
820
  Surface,
854
821
  {
855
822
  elevation: 16,
@@ -864,7 +831,7 @@ function ZoomWindow({
864
831
  userSelect: "none"
865
832
  }, calculatePosition()),
866
833
  "aria-hidden": true,
867
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
834
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
868
835
  "img",
869
836
  {
870
837
  src: imageSrc,
@@ -886,7 +853,7 @@ function ZoomWindow({
886
853
 
887
854
  // src/components/ProductImagePreview/CarouselPagination.tsx
888
855
  var import_clsx5 = require("clsx");
889
- var import_jsx_runtime9 = require("react/jsx-runtime");
856
+ var import_jsx_runtime8 = require("react/jsx-runtime");
890
857
  function CarouselPagination({
891
858
  images,
892
859
  currentIndex,
@@ -894,7 +861,7 @@ function CarouselPagination({
894
861
  className
895
862
  }) {
896
863
  if (!(images == null ? void 0 : images.length)) return null;
897
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
864
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
898
865
  "div",
899
866
  {
900
867
  className: (0, import_clsx5.clsx)(
@@ -902,7 +869,7 @@ function CarouselPagination({
902
869
  className
903
870
  ),
904
871
  "aria-label": "Image navigation",
905
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
872
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
906
873
  "div",
907
874
  {
908
875
  className: "grid gap-2 place-items-center",
@@ -910,7 +877,7 @@ function CarouselPagination({
910
877
  gridTemplateColumns: `repeat(${Math.min(images.length, 8)}, 1fr)`
911
878
  },
912
879
  role: "tablist",
913
- children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
880
+ children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
914
881
  "button",
915
882
  {
916
883
  type: "button",
@@ -934,7 +901,7 @@ function CarouselPagination({
934
901
 
935
902
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
936
903
  var import_react5 = require("react");
937
- var import_jsx_runtime10 = require("react/jsx-runtime");
904
+ var import_jsx_runtime9 = require("react/jsx-runtime");
938
905
  function MobileImageCarousel({
939
906
  images,
940
907
  currentIndex,
@@ -1049,7 +1016,7 @@ function MobileImageCarousel({
1049
1016
  [isDragging, currentIndex, onChangeIndex]
1050
1017
  );
1051
1018
  if (!images.length) return null;
1052
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: `md:hidden w-full ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1019
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `md:hidden w-full ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1053
1020
  "div",
1054
1021
  {
1055
1022
  ref: containerRef,
@@ -1064,7 +1031,7 @@ function MobileImageCarousel({
1064
1031
  onTouchStart: handleTouchStart,
1065
1032
  onTouchMove: handleTouchMove,
1066
1033
  onTouchEnd: handleTouchEnd,
1067
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1034
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1068
1035
  "div",
1069
1036
  {
1070
1037
  className: "flex items-center",
@@ -1077,7 +1044,7 @@ function MobileImageCarousel({
1077
1044
  const isActive = index === currentIndex;
1078
1045
  const distance = Math.abs(index - currentIndex);
1079
1046
  const shouldRender = distance <= 2;
1080
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1047
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1081
1048
  "div",
1082
1049
  {
1083
1050
  className: "flex-shrink-0 transition-opacity duration-300",
@@ -1087,7 +1054,7 @@ function MobileImageCarousel({
1087
1054
  opacity: isActive ? 1 : Math.max(0.3, 1 - distance * 0.3)
1088
1055
  },
1089
1056
  onClick: () => handleImageClick(index),
1090
- children: shouldRender ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1057
+ children: shouldRender ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1091
1058
  "img",
1092
1059
  {
1093
1060
  src: image.src,
@@ -1099,7 +1066,7 @@ function MobileImageCarousel({
1099
1066
  aspectRatio: "1 / 1"
1100
1067
  }
1101
1068
  }
1102
- ) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1069
+ ) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1103
1070
  "div",
1104
1071
  {
1105
1072
  className: "w-full h-full bg-neutral-100 rounded-md border border-gray-200",
@@ -1259,7 +1226,7 @@ function useProductImagePreview(props) {
1259
1226
  }
1260
1227
 
1261
1228
  // src/components/ProductImagePreview/index.tsx
1262
- var import_jsx_runtime11 = require("react/jsx-runtime");
1229
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1263
1230
  var PLACEHOLDER_IMAGES = [
1264
1231
  { src: "", alt: "placeholder" },
1265
1232
  { src: "", alt: "placeholder" }
@@ -1302,9 +1269,9 @@ function ProductImagePreview(props) {
1302
1269
  });
1303
1270
  if (typeof isMobile === "undefined") return null;
1304
1271
  const effectiveZoomEnabled = zoomEnabled && !isMobile;
1305
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Stack, { sizing: "layout", style: { width, position: "relative" }, children: [
1306
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex gap-4 items-start", children: [
1307
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { ref: primaryImageRef, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1272
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Stack, { sizing: "layout", style: { width, position: "relative" }, children: [
1273
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex gap-4 items-start", children: [
1274
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { ref: primaryImageRef, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1308
1275
  ProductPrimaryImage,
1309
1276
  {
1310
1277
  image: active,
@@ -1318,7 +1285,7 @@ function ProductImagePreview(props) {
1318
1285
  isPlaceholder: images.length === 0
1319
1286
  }
1320
1287
  ) }),
1321
- effectiveZoomEnabled && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1288
+ effectiveZoomEnabled && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1322
1289
  ZoomWindow,
1323
1290
  {
1324
1291
  image: active,
@@ -1333,7 +1300,7 @@ function ProductImagePreview(props) {
1333
1300
  }
1334
1301
  )
1335
1302
  ] }) }),
1336
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1303
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1337
1304
  MobileImageCarousel,
1338
1305
  {
1339
1306
  images,
@@ -1343,14 +1310,14 @@ function ProductImagePreview(props) {
1343
1310
  onChangeIndex: handleSelect
1344
1311
  }
1345
1312
  ),
1346
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "hidden md:block", children: images.length <= 3 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1313
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hidden md:block", children: images.length <= 3 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1347
1314
  "div",
1348
1315
  {
1349
1316
  className: "flex justify-center gap-4",
1350
1317
  style: { width: "100%", maxWidth: width },
1351
1318
  "aria-label": "Product image thumbnails",
1352
1319
  children: (images.length === 0 ? PLACEHOLDER_IMAGES : images).map(
1353
- (img, i) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: { maxWidth: "115px" }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1320
+ (img, i) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { maxWidth: "115px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1354
1321
  Thumbnail,
1355
1322
  {
1356
1323
  src: img.src,
@@ -1362,7 +1329,7 @@ function ProductImagePreview(props) {
1362
1329
  ) }, img.src + i)
1363
1330
  )
1364
1331
  }
1365
- ) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1332
+ ) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1366
1333
  Grid,
1367
1334
  {
1368
1335
  sizing: "layout-group",
@@ -1373,7 +1340,7 @@ function ProductImagePreview(props) {
1373
1340
  },
1374
1341
  columns: thumbsPerRow > 12 ? 12 : thumbsPerRow < 1 ? 1 : thumbsPerRow,
1375
1342
  children: (images.length === 0 ? PLACEHOLDER_IMAGES : images).map(
1376
- (img, i) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1343
+ (img, i) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1377
1344
  Thumbnail,
1378
1345
  {
1379
1346
  src: img.src,
@@ -1387,7 +1354,7 @@ function ProductImagePreview(props) {
1387
1354
  )
1388
1355
  }
1389
1356
  ) }),
1390
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1357
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1391
1358
  CarouselPagination,
1392
1359
  {
1393
1360
  images,
@@ -1,13 +1,12 @@
1
1
  import {
2
2
  ProductImagePreview
3
- } from "../../chunk-IMOIZFJZ.js";
3
+ } from "../../chunk-DNYGKNQM.js";
4
4
  import "../../chunk-MBZ55T2D.js";
5
5
  import "../../chunk-2IKT6IHB.js";
6
- import "../../chunk-G5DEC7H3.js";
6
+ import "../../chunk-YCDDBSVU.js";
7
7
  import "../../chunk-3X3Y4TMS.js";
8
8
  import "../../chunk-BQNPOGD5.js";
9
9
  import "../../chunk-AT4AWD6B.js";
10
- import "../../chunk-SBRRNFOP.js";
11
10
  import "../../chunk-Y2GK27RX.js";
12
11
  import "../../chunk-QVWYTQKL.js";
13
12
  import "../../chunk-MYKYZHEO.js";
@@ -24,8 +24,18 @@ __export(SkeletonParagraph_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(SkeletonParagraph_exports);
26
26
  var import_jsx_runtime = require("react/jsx-runtime");
27
- function SkeletonParagraph() {
28
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-[24px] bg-gradient-to-r from-neutral-100 to-[#f7f7f7] w-full rounded-xs min-w-32 " });
27
+ function SkeletonParagraph({
28
+ className = "",
29
+ heightClassName = "h-6"
30
+ }) {
31
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
32
+ "div",
33
+ {
34
+ "aria-label": "Loading content",
35
+ role: "status",
36
+ className: `skeleton-paragraph ${heightClassName} w-full min-w-32 rounded-xs ${className}`
37
+ }
38
+ );
29
39
  }
30
40
  // Annotate the CommonJS export names for ESM import in node:
31
41
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SkeletonParagraph
3
- } from "../chunk-ESCNCQGI.js";
3
+ } from "../chunk-ETAEB3TA.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  SkeletonParagraph