@dmsi/wedgekit-react 0.0.697 → 0.0.698

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 (38) hide show
  1. package/dist/chunk-FESS4LWU.js +72 -0
  2. package/dist/{chunk-L3BXRDLP.js → chunk-KBIEWFQS.js} +4 -2
  3. package/dist/{chunk-34VEVX5H.js → chunk-NSZTJ5R4.js} +9 -2
  4. package/dist/{chunk-B2DVT7KT.js → chunk-SNENJFTN.js} +98 -89
  5. package/dist/components/AccessChangerTabItem.cjs +5 -2
  6. package/dist/components/AccessChangerTabItem.js +5 -2
  7. package/dist/components/CalendarRange.js +5 -5
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +5 -5
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +5 -5
  10. package/dist/components/DataGrid/PinnedColumns.js +5 -5
  11. package/dist/components/DataGrid/TableBody/LoadingCell.js +5 -5
  12. package/dist/components/DataGrid/TableBody/TableBodyRow.js +5 -5
  13. package/dist/components/DataGrid/TableBody/index.js +5 -5
  14. package/dist/components/DataGrid/index.js +5 -5
  15. package/dist/components/DataGrid/utils.js +5 -5
  16. package/dist/components/DateInput.js +5 -5
  17. package/dist/components/DateRangeInput.js +5 -5
  18. package/dist/components/MobileDataGrid/ColumnList.js +1 -1
  19. package/dist/components/MobileDataGrid/ColumnSelector/index.js +5 -5
  20. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
  21. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +5 -5
  22. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
  23. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +1 -1
  24. package/dist/components/MobileDataGrid/index.js +5 -5
  25. package/dist/components/OrderCheckIcon.cjs +20 -2
  26. package/dist/components/OrderCheckIcon.js +1 -1
  27. package/dist/components/ProductImagePreview/index.cjs +98 -89
  28. package/dist/components/ProductImagePreview/index.js +1 -1
  29. package/dist/components/SimpleTable.cjs +46 -35
  30. package/dist/components/SimpleTable.js +1 -1
  31. package/dist/components/SkeletonParagraph.cjs +4 -2
  32. package/dist/components/SkeletonParagraph.js +1 -1
  33. package/dist/components/WorldpayIframe.cjs +12 -2
  34. package/dist/components/WorldpayIframe.js +12 -2
  35. package/dist/components/index.cjs +156 -128
  36. package/dist/components/index.js +5 -5
  37. package/package.json +1 -1
  38. package/dist/chunk-63WMDTVQ.js +0 -61
@@ -4,7 +4,7 @@ import {
4
4
  import "../chunk-GYU3MQ3R.js";
5
5
  import "../chunk-M7INAUAJ.js";
6
6
  import "../chunk-URAV33TJ.js";
7
- import "../chunk-B2DVT7KT.js";
7
+ import "../chunk-SNENJFTN.js";
8
8
  import "../chunk-YCDDBSVU.js";
9
9
  import "../chunk-3X3Y4TMS.js";
10
10
  import "../chunk-BQNPOGD5.js";
@@ -14,14 +14,14 @@ import "../chunk-2IKT6IHB.js";
14
14
  import "../chunk-OX7TDYN4.js";
15
15
  import "../chunk-I2L2DXPU.js";
16
16
  import "../chunk-5IFPG6TS.js";
17
- import "../chunk-ZILLGHBE.js";
18
17
  import "../chunk-AJ5M6MVX.js";
18
+ import "../chunk-ZILLGHBE.js";
19
19
  import "../chunk-AT4AWD6B.js";
20
20
  import "../chunk-EWGHVZL5.js";
21
21
  import "../chunk-UF5XGCSF.js";
22
- import "../chunk-63WMDTVQ.js";
23
- import "../chunk-L3BXRDLP.js";
24
- import "../chunk-34VEVX5H.js";
22
+ import "../chunk-FESS4LWU.js";
23
+ import "../chunk-KBIEWFQS.js";
24
+ import "../chunk-NSZTJ5R4.js";
25
25
  import "../chunk-LB7UT6F3.js";
26
26
  import "../chunk-AS57Y2D3.js";
27
27
  import "../chunk-BZTUQP6P.js";
@@ -3,8 +3,8 @@ import {
3
3
  } from "../../chunk-OX7TDYN4.js";
4
4
  import "../../chunk-I2L2DXPU.js";
5
5
  import "../../chunk-5IFPG6TS.js";
6
- import "../../chunk-ZILLGHBE.js";
7
6
  import "../../chunk-AJ5M6MVX.js";
7
+ import "../../chunk-ZILLGHBE.js";
8
8
  import "../../chunk-M7WHWZ2J.js";
9
9
  import "../../chunk-VXWSAIB5.js";
10
10
  import "../../chunk-X4VZXHQL.js";
@@ -4,7 +4,7 @@ import {
4
4
  import "../../../chunk-GYU3MQ3R.js";
5
5
  import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-URAV33TJ.js";
7
- import "../../../chunk-B2DVT7KT.js";
7
+ import "../../../chunk-SNENJFTN.js";
8
8
  import "../../../chunk-YCDDBSVU.js";
9
9
  import "../../../chunk-3X3Y4TMS.js";
10
10
  import "../../../chunk-BQNPOGD5.js";
@@ -14,14 +14,14 @@ import "../../../chunk-2IKT6IHB.js";
14
14
  import "../../../chunk-OX7TDYN4.js";
15
15
  import "../../../chunk-I2L2DXPU.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
17
- import "../../../chunk-ZILLGHBE.js";
18
17
  import "../../../chunk-AJ5M6MVX.js";
18
+ import "../../../chunk-ZILLGHBE.js";
19
19
  import "../../../chunk-AT4AWD6B.js";
20
20
  import "../../../chunk-EWGHVZL5.js";
21
21
  import "../../../chunk-UF5XGCSF.js";
22
- import "../../../chunk-63WMDTVQ.js";
23
- import "../../../chunk-L3BXRDLP.js";
24
- import "../../../chunk-34VEVX5H.js";
22
+ import "../../../chunk-FESS4LWU.js";
23
+ import "../../../chunk-KBIEWFQS.js";
24
+ import "../../../chunk-NSZTJ5R4.js";
25
25
  import "../../../chunk-LB7UT6F3.js";
26
26
  import "../../../chunk-AS57Y2D3.js";
27
27
  import "../../../chunk-BZTUQP6P.js";
@@ -2,8 +2,8 @@ import {
2
2
  MobileDataGridCard
3
3
  } from "../../../chunk-I2L2DXPU.js";
4
4
  import "../../../chunk-5IFPG6TS.js";
5
- import "../../../chunk-ZILLGHBE.js";
6
5
  import "../../../chunk-AJ5M6MVX.js";
6
+ import "../../../chunk-ZILLGHBE.js";
7
7
  import "../../../chunk-M7WHWZ2J.js";
8
8
  import "../../../chunk-VXWSAIB5.js";
9
9
  import "../../../chunk-X4VZXHQL.js";
@@ -4,7 +4,7 @@ import {
4
4
  import "../../chunk-GYU3MQ3R.js";
5
5
  import "../../chunk-M7INAUAJ.js";
6
6
  import "../../chunk-URAV33TJ.js";
7
- import "../../chunk-B2DVT7KT.js";
7
+ import "../../chunk-SNENJFTN.js";
8
8
  import "../../chunk-YCDDBSVU.js";
9
9
  import "../../chunk-3X3Y4TMS.js";
10
10
  import "../../chunk-BQNPOGD5.js";
@@ -14,14 +14,14 @@ import "../../chunk-2IKT6IHB.js";
14
14
  import "../../chunk-OX7TDYN4.js";
15
15
  import "../../chunk-I2L2DXPU.js";
16
16
  import "../../chunk-5IFPG6TS.js";
17
- import "../../chunk-ZILLGHBE.js";
18
17
  import "../../chunk-AJ5M6MVX.js";
18
+ import "../../chunk-ZILLGHBE.js";
19
19
  import "../../chunk-AT4AWD6B.js";
20
20
  import "../../chunk-EWGHVZL5.js";
21
21
  import "../../chunk-UF5XGCSF.js";
22
- import "../../chunk-63WMDTVQ.js";
23
- import "../../chunk-L3BXRDLP.js";
24
- import "../../chunk-34VEVX5H.js";
22
+ import "../../chunk-FESS4LWU.js";
23
+ import "../../chunk-KBIEWFQS.js";
24
+ import "../../chunk-NSZTJ5R4.js";
25
25
  import "../../chunk-LB7UT6F3.js";
26
26
  import "../../chunk-AS57Y2D3.js";
27
27
  import "../../chunk-BZTUQP6P.js";
@@ -2,8 +2,8 @@ import {
2
2
  ModalContent
3
3
  } from "../../../chunk-URAV33TJ.js";
4
4
  import "../../../chunk-5IFPG6TS.js";
5
- import "../../../chunk-ZILLGHBE.js";
6
5
  import "../../../chunk-AJ5M6MVX.js";
6
+ import "../../../chunk-ZILLGHBE.js";
7
7
  import "../../../chunk-VXWSAIB5.js";
8
8
  import "../../../chunk-X4VZXHQL.js";
9
9
  import "../../../chunk-5UH6QUFB.js";
@@ -3,8 +3,8 @@ import {
3
3
  } from "../../../chunk-GYU3MQ3R.js";
4
4
  import "../../../chunk-URAV33TJ.js";
5
5
  import "../../../chunk-5IFPG6TS.js";
6
- import "../../../chunk-ZILLGHBE.js";
7
6
  import "../../../chunk-AJ5M6MVX.js";
7
+ import "../../../chunk-ZILLGHBE.js";
8
8
  import "../../../chunk-BZTUQP6P.js";
9
9
  import "../../../chunk-4RJKB7LC.js";
10
10
  import "../../../chunk-UUKHQUSF.js";
@@ -4,7 +4,7 @@ import {
4
4
  import "../../chunk-GYU3MQ3R.js";
5
5
  import "../../chunk-M7INAUAJ.js";
6
6
  import "../../chunk-URAV33TJ.js";
7
- import "../../chunk-B2DVT7KT.js";
7
+ import "../../chunk-SNENJFTN.js";
8
8
  import "../../chunk-YCDDBSVU.js";
9
9
  import "../../chunk-3X3Y4TMS.js";
10
10
  import "../../chunk-BQNPOGD5.js";
@@ -14,14 +14,14 @@ import "../../chunk-2IKT6IHB.js";
14
14
  import "../../chunk-OX7TDYN4.js";
15
15
  import "../../chunk-I2L2DXPU.js";
16
16
  import "../../chunk-5IFPG6TS.js";
17
- import "../../chunk-ZILLGHBE.js";
18
17
  import "../../chunk-AJ5M6MVX.js";
18
+ import "../../chunk-ZILLGHBE.js";
19
19
  import "../../chunk-AT4AWD6B.js";
20
20
  import "../../chunk-EWGHVZL5.js";
21
21
  import "../../chunk-UF5XGCSF.js";
22
- import "../../chunk-63WMDTVQ.js";
23
- import "../../chunk-L3BXRDLP.js";
24
- import "../../chunk-34VEVX5H.js";
22
+ import "../../chunk-FESS4LWU.js";
23
+ import "../../chunk-KBIEWFQS.js";
24
+ import "../../chunk-NSZTJ5R4.js";
25
25
  import "../../chunk-LB7UT6F3.js";
26
26
  import "../../chunk-AS57Y2D3.js";
27
27
  import "../../chunk-BZTUQP6P.js";
@@ -20,6 +20,18 @@ var __spreadValues = (a, b) => {
20
20
  return a;
21
21
  };
22
22
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
23
35
  var __export = (target, all) => {
24
36
  for (var name in all)
25
37
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -41,7 +53,12 @@ __export(OrderCheckIcon_exports, {
41
53
  });
42
54
  module.exports = __toCommonJS(OrderCheckIcon_exports);
43
55
  var import_jsx_runtime = require("react/jsx-runtime");
44
- function OrderCheckIcon(props) {
56
+ function OrderCheckIcon(_a) {
57
+ var _b = _a, {
58
+ testid
59
+ } = _b, props = __objRest(_b, [
60
+ "testid"
61
+ ]);
45
62
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
46
63
  "svg",
47
64
  __spreadProps(__spreadValues({
@@ -49,7 +66,8 @@ function OrderCheckIcon(props) {
49
66
  viewBox: "0 0 37 36",
50
67
  fill: "none",
51
68
  width: 37,
52
- height: 36
69
+ height: 36,
70
+ "data-testid": testid
53
71
  }, props), {
54
72
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
73
  "path",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OrderCheckIcon
3
- } from "../chunk-34VEVX5H.js";
3
+ } from "../chunk-NSZTJ5R4.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  OrderCheckIcon
@@ -1265,7 +1265,8 @@ function ProductImagePreview(props) {
1265
1265
  zoomLensSize,
1266
1266
  zoomFactor = 2,
1267
1267
  zoomWindowScaleFactor = 2.5,
1268
- zoomWindowOffset = 10
1268
+ zoomWindowOffset = 10,
1269
+ testid
1269
1270
  } = props;
1270
1271
  const isMobile = useMatchesMobile();
1271
1272
  const {
@@ -1290,100 +1291,108 @@ function ProductImagePreview(props) {
1290
1291
  });
1291
1292
  if (typeof isMobile === "undefined") return null;
1292
1293
  const effectiveZoomEnabled = zoomEnabled && !isMobile;
1293
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Stack, { sizing: "layout", style: { width, position: "relative" }, children: [
1294
- /* @__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: [
1295
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { ref: primaryImageRef, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1296
- ProductPrimaryImage,
1297
- {
1298
- image: active,
1299
- width,
1300
- height,
1301
- zoomEnabled: effectiveZoomEnabled,
1302
- zoomLensSize,
1303
- scrollToZoomEnabled: scrollToZoomEnabled && !isMobile,
1304
- onZoomPositionChange: handleZoomPositionChange,
1305
- onScrollZoom: handleScrollZoom,
1306
- isPlaceholder: images.length === 0
1307
- }
1308
- ) }),
1309
- effectiveZoomEnabled && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1310
- ZoomWindow,
1311
- {
1312
- image: active,
1313
- width,
1314
- height,
1315
- pointer: zoomPoint,
1316
- active: zoomActive,
1317
- zoomFactor: currentZoomFactor,
1318
- scaleFactor: zoomWindowScaleFactor,
1319
- primaryImagePosition,
1320
- offset: zoomWindowOffset
1321
- }
1322
- )
1323
- ] }) }),
1324
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1325
- MobileImageCarousel,
1326
- {
1327
- images,
1328
- currentIndex: safeIndex,
1329
- width,
1330
- height,
1331
- onChangeIndex: handleSelect
1332
- }
1333
- ),
1334
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hidden md:block", children: images.length <= 3 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1335
- "div",
1336
- {
1337
- className: "flex justify-center gap-4",
1338
- style: { width: "100%", maxWidth: width },
1339
- "aria-label": "Product image thumbnails",
1340
- children: (images.length === 0 ? PLACEHOLDER_IMAGES : images).map(
1341
- (img, i) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { maxWidth: "115px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1342
- Thumbnail,
1294
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1295
+ Stack,
1296
+ {
1297
+ sizing: "layout",
1298
+ style: { width, position: "relative" },
1299
+ testid,
1300
+ children: [
1301
+ /* @__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: [
1302
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { ref: primaryImageRef, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1303
+ ProductPrimaryImage,
1343
1304
  {
1344
- src: img.src,
1345
- alt: img.alt || `Thumbnail ${i + 1}`,
1346
- isActive: i === safeIndex,
1347
- onClick: () => handleSelect(i),
1305
+ image: active,
1306
+ width,
1307
+ height,
1308
+ zoomEnabled: effectiveZoomEnabled,
1309
+ zoomLensSize,
1310
+ scrollToZoomEnabled: scrollToZoomEnabled && !isMobile,
1311
+ onZoomPositionChange: handleZoomPositionChange,
1312
+ onScrollZoom: handleScrollZoom,
1348
1313
  isPlaceholder: images.length === 0
1349
1314
  }
1350
- ) }, img.src + i)
1351
- )
1352
- }
1353
- ) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1354
- Grid,
1355
- {
1356
- sizing: "layout-group",
1357
- "aria-label": "Product image thumbnails",
1358
- style: {
1359
- width: "100%",
1360
- maxWidth: width
1361
- },
1362
- columns: thumbsPerRow > 12 ? 12 : thumbsPerRow < 1 ? 1 : thumbsPerRow,
1363
- children: (images.length === 0 ? PLACEHOLDER_IMAGES : images).map(
1364
- (img, i) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1365
- Thumbnail,
1315
+ ) }),
1316
+ effectiveZoomEnabled && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1317
+ ZoomWindow,
1366
1318
  {
1367
- src: img.src,
1368
- alt: img.alt || `Thumbnail ${i + 1}`,
1369
- isActive: i === safeIndex,
1370
- onClick: () => handleSelect(i),
1371
- isPlaceholder: images.length === 0
1372
- },
1373
- img.src + i
1319
+ image: active,
1320
+ width,
1321
+ height,
1322
+ pointer: zoomPoint,
1323
+ active: zoomActive,
1324
+ zoomFactor: currentZoomFactor,
1325
+ scaleFactor: zoomWindowScaleFactor,
1326
+ primaryImagePosition,
1327
+ offset: zoomWindowOffset
1328
+ }
1374
1329
  )
1330
+ ] }) }),
1331
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1332
+ MobileImageCarousel,
1333
+ {
1334
+ images,
1335
+ currentIndex: safeIndex,
1336
+ width,
1337
+ height,
1338
+ onChangeIndex: handleSelect
1339
+ }
1340
+ ),
1341
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hidden md:block", children: images.length <= 3 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1342
+ "div",
1343
+ {
1344
+ className: "flex justify-center gap-4",
1345
+ style: { width: "100%", maxWidth: width },
1346
+ "aria-label": "Product image thumbnails",
1347
+ children: (images.length === 0 ? PLACEHOLDER_IMAGES : images).map(
1348
+ (img, i) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { maxWidth: "115px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1349
+ Thumbnail,
1350
+ {
1351
+ src: img.src,
1352
+ alt: img.alt || `Thumbnail ${i + 1}`,
1353
+ isActive: i === safeIndex,
1354
+ onClick: () => handleSelect(i),
1355
+ isPlaceholder: images.length === 0
1356
+ }
1357
+ ) }, img.src + i)
1358
+ )
1359
+ }
1360
+ ) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1361
+ Grid,
1362
+ {
1363
+ sizing: "layout-group",
1364
+ "aria-label": "Product image thumbnails",
1365
+ style: {
1366
+ width: "100%",
1367
+ maxWidth: width
1368
+ },
1369
+ columns: thumbsPerRow > 12 ? 12 : thumbsPerRow < 1 ? 1 : thumbsPerRow,
1370
+ children: (images.length === 0 ? PLACEHOLDER_IMAGES : images).map(
1371
+ (img, i) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1372
+ Thumbnail,
1373
+ {
1374
+ src: img.src,
1375
+ alt: img.alt || `Thumbnail ${i + 1}`,
1376
+ isActive: i === safeIndex,
1377
+ onClick: () => handleSelect(i),
1378
+ isPlaceholder: images.length === 0
1379
+ },
1380
+ img.src + i
1381
+ )
1382
+ )
1383
+ }
1384
+ ) }),
1385
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1386
+ CarouselPagination,
1387
+ {
1388
+ images,
1389
+ currentIndex: safeIndex,
1390
+ onSelect: handleSelect
1391
+ }
1375
1392
  )
1376
- }
1377
- ) }),
1378
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1379
- CarouselPagination,
1380
- {
1381
- images,
1382
- currentIndex: safeIndex,
1383
- onSelect: handleSelect
1384
- }
1385
- )
1386
- ] });
1393
+ ]
1394
+ }
1395
+ );
1387
1396
  }
1388
1397
  // Annotate the CommonJS export names for ESM import in node:
1389
1398
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ProductImagePreview
3
- } from "../../chunk-B2DVT7KT.js";
3
+ } from "../../chunk-SNENJFTN.js";
4
4
  import "../../chunk-YCDDBSVU.js";
5
5
  import "../../chunk-3X3Y4TMS.js";
6
6
  import "../../chunk-BQNPOGD5.js";
@@ -486,49 +486,60 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
486
486
  function SimpleTable({
487
487
  columns,
488
488
  data,
489
- additionalRows
489
+ additionalRows,
490
+ testid
490
491
  }) {
491
492
  const allRows = additionalRows && additionalRows.length > 0 ? [...data, ...additionalRows] : data;
492
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Stack, { elevation: 4, rounded: true, overflowX: "hidden", overflowY: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("table", { className: "w-full border-collapse text-left text-sm border overflow-hidden rounded border-border-primary-normal", children: [
493
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: "bg-background-primary-normal divide-x divide-border-primary-normal", children: columns.map((column, index) => {
494
- var _a, _b;
495
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
496
- "th",
497
- {
498
- scope: "col",
499
- className: (0, import_clsx4.default)(
500
- "p-mobile-layout-padding desktop:p-desktop-layout-padding font-semibold text-text-primary-normal",
501
- ((_a = column.meta) == null ? void 0 : _a.headerWidth) ? column.meta.headerWidth : "w-2/3"
502
- ),
503
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Subheader, { children: (_b = column.header) == null ? void 0 : _b.toString() })
504
- },
505
- index
506
- );
507
- }) }) }),
508
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: allRows.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
509
- "tr",
510
- {
511
- className: "border-t border-border-primary-normal divide-x divide-border-primary-normal",
512
- children: columns.map((column, colIndex) => {
513
- var _a;
514
- const rawValue = column.id ? row[column.id] : null;
515
- const cellValue = rawValue != null ? rawValue : null;
493
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
494
+ Stack,
495
+ {
496
+ elevation: 4,
497
+ rounded: true,
498
+ overflowX: "hidden",
499
+ overflowY: "hidden",
500
+ testid,
501
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("table", { className: "w-full border-collapse text-left text-sm border overflow-hidden rounded border-border-primary-normal", children: [
502
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: "bg-background-primary-normal divide-x divide-border-primary-normal", children: columns.map((column, index) => {
503
+ var _a, _b;
516
504
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
517
- "td",
505
+ "th",
518
506
  {
507
+ scope: "col",
519
508
  className: (0, import_clsx4.default)(
520
- "p-mobile-layout-padding desktop:p-desktop-layout-padding align-middle text-text-primary-normal",
521
- (_a = column.meta) == null ? void 0 : _a.headerWidth
509
+ "p-mobile-layout-padding desktop:p-desktop-layout-padding font-semibold text-text-primary-normal",
510
+ ((_a = column.meta) == null ? void 0 : _a.headerWidth) ? column.meta.headerWidth : "w-2/3"
522
511
  ),
523
- children: cellValue !== null && cellValue !== void 0 ? typeof cellValue === "string" || typeof cellValue === "number" ? cellValue.toString() : cellValue : ""
512
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Subheader, { children: (_b = column.header) == null ? void 0 : _b.toString() })
524
513
  },
525
- colIndex
514
+ index
526
515
  );
527
- })
528
- },
529
- rowIndex
530
- )) })
531
- ] }) });
516
+ }) }) }),
517
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: allRows.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
518
+ "tr",
519
+ {
520
+ className: "border-t border-border-primary-normal divide-x divide-border-primary-normal",
521
+ children: columns.map((column, colIndex) => {
522
+ var _a;
523
+ const rawValue = column.id ? row[column.id] : null;
524
+ const cellValue = rawValue != null ? rawValue : null;
525
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
526
+ "td",
527
+ {
528
+ className: (0, import_clsx4.default)(
529
+ "p-mobile-layout-padding desktop:p-desktop-layout-padding align-middle text-text-primary-normal",
530
+ (_a = column.meta) == null ? void 0 : _a.headerWidth
531
+ ),
532
+ children: cellValue !== null && cellValue !== void 0 ? typeof cellValue === "string" || typeof cellValue === "number" ? cellValue.toString() : cellValue : ""
533
+ },
534
+ colIndex
535
+ );
536
+ })
537
+ },
538
+ rowIndex
539
+ )) })
540
+ ] })
541
+ }
542
+ );
532
543
  }
533
544
  // Annotate the CommonJS export names for ESM import in node:
534
545
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SimpleTable
3
- } from "../chunk-63WMDTVQ.js";
3
+ } from "../chunk-FESS4LWU.js";
4
4
  import "../chunk-BYC6QID5.js";
5
5
  import "../chunk-MTGNBARV.js";
6
6
  import "../chunk-7KWFEH56.js";
@@ -27,7 +27,8 @@ var import_jsx_runtime = require("react/jsx-runtime");
27
27
  function SkeletonParagraph({
28
28
  className = "",
29
29
  heightClassName = "h-6",
30
- size = "large"
30
+ size = "large",
31
+ testid
31
32
  }) {
32
33
  const sizeClassMap = {
33
34
  small: "min-w-10 w-1/4",
@@ -39,7 +40,8 @@ function SkeletonParagraph({
39
40
  {
40
41
  "aria-label": "Loading content",
41
42
  role: "status",
42
- className: `skeleton-paragraph ${heightClassName} ${sizeClassMap[size]} rounded-xs ${className}`
43
+ className: `skeleton-paragraph ${heightClassName} ${sizeClassMap[size]} rounded-xs ${className}`,
44
+ "data-testid": testid
43
45
  }
44
46
  );
45
47
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SkeletonParagraph
3
- } from "../chunk-L3BXRDLP.js";
3
+ } from "../chunk-KBIEWFQS.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  SkeletonParagraph
@@ -25,8 +25,18 @@ __export(WorldpayIframe_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(WorldpayIframe_exports);
27
27
  var import_jsx_runtime = require("react/jsx-runtime");
28
- function WorldpayIframe({ url }) {
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("iframe", { src: url, style: { width: "100%", height: "100%", flex: 1 } });
28
+ function WorldpayIframe({
29
+ url,
30
+ testid
31
+ }) {
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
33
+ "iframe",
34
+ {
35
+ "data-testid": testid,
36
+ src: url,
37
+ style: { width: "100%", height: "100%", flex: 1 }
38
+ }
39
+ );
30
40
  }
31
41
  // Annotate the CommonJS export names for ESM import in node:
32
42
  0 && (module.exports = {
@@ -3,8 +3,18 @@ import "../chunk-ORMEWXMH.js";
3
3
 
4
4
  // src/components/WorldpayIframe.tsx
5
5
  import { jsx } from "react/jsx-runtime";
6
- function WorldpayIframe({ url }) {
7
- return /* @__PURE__ */ jsx("iframe", { src: url, style: { width: "100%", height: "100%", flex: 1 } });
6
+ function WorldpayIframe({
7
+ url,
8
+ testid
9
+ }) {
10
+ return /* @__PURE__ */ jsx(
11
+ "iframe",
12
+ {
13
+ "data-testid": testid,
14
+ src: url,
15
+ style: { width: "100%", height: "100%", flex: 1 }
16
+ }
17
+ );
8
18
  }
9
19
  export {
10
20
  WorldpayIframe