@dmsi/wedgekit-react 0.0.502 → 0.0.504

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 (71) hide show
  1. package/dist/{chunk-LJLHGLTS.js → chunk-BMPL6LCR.js} +4 -4
  2. package/dist/{chunk-D4TFZ2WM.js → chunk-ELXVDRWS.js} +4 -4
  3. package/dist/{chunk-QV3NANQC.js → chunk-JWVZOEF5.js} +4 -4
  4. package/dist/{chunk-VOSQMHNF.js → chunk-U5V2IRZX.js} +4 -29
  5. package/dist/{chunk-S5ZJ3Q7P.js → chunk-VJVY6NPF.js} +3 -3
  6. package/dist/components/Alert.js +2 -2
  7. package/dist/components/CalendarRange.cjs +75 -128
  8. package/dist/components/CalendarRange.js +10 -16
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +33 -86
  10. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +10 -16
  11. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +43 -96
  12. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +10 -16
  13. package/dist/components/DataGrid/PinnedColumns.cjs +58 -111
  14. package/dist/components/DataGrid/PinnedColumns.js +10 -16
  15. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +34 -87
  16. package/dist/components/DataGrid/TableBody/LoadingCell.js +10 -16
  17. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +40 -93
  18. package/dist/components/DataGrid/TableBody/TableBodyRow.js +10 -16
  19. package/dist/components/DataGrid/TableBody/index.cjs +55 -108
  20. package/dist/components/DataGrid/TableBody/index.js +10 -16
  21. package/dist/components/DataGrid/index.cjs +144 -197
  22. package/dist/components/DataGrid/index.js +10 -16
  23. package/dist/components/DataGrid/utils.cjs +34 -87
  24. package/dist/components/DataGrid/utils.js +10 -16
  25. package/dist/components/DateInput.cjs +94 -147
  26. package/dist/components/DateInput.js +10 -16
  27. package/dist/components/DateRangeInput.cjs +94 -147
  28. package/dist/components/DateRangeInput.js +10 -16
  29. package/dist/components/FilterGroup.js +5 -5
  30. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +41 -94
  31. package/dist/components/MobileDataGrid/ColumnSelector/index.js +10 -16
  32. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +49 -102
  33. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +10 -16
  34. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -5
  35. package/dist/components/MobileDataGrid/index.cjs +868 -921
  36. package/dist/components/MobileDataGrid/index.js +10 -16
  37. package/dist/components/Modal.js +4 -4
  38. package/dist/components/ModalButtons.js +2 -2
  39. package/dist/components/ModalHeader.js +2 -2
  40. package/dist/components/NavigationTab.js +2 -2
  41. package/dist/components/NavigationTabs.js +2 -2
  42. package/dist/components/NestedMenu.js +3 -3
  43. package/dist/components/Notification.js +3 -3
  44. package/dist/components/OptionPill.js +2 -2
  45. package/dist/components/PDFViewer/DownloadIcon.js +2 -2
  46. package/dist/components/PDFViewer/PDFElement.cjs +5 -31
  47. package/dist/components/PDFViewer/PDFElement.js +2 -3
  48. package/dist/components/PDFViewer/PDFNavigation.js +2 -2
  49. package/dist/components/PDFViewer/PDFPage.cjs +3 -3
  50. package/dist/components/PDFViewer/PDFPage.js +1 -1
  51. package/dist/components/PDFViewer/index.cjs +5 -35
  52. package/dist/components/PDFViewer/index.js +114 -11
  53. package/dist/components/ProductImagePreview/index.js +1 -1
  54. package/dist/components/Stepper.js +3 -3
  55. package/dist/components/Toast.js +3 -3
  56. package/dist/components/Upload.js +3 -3
  57. package/dist/components/index.cjs +56 -402
  58. package/dist/components/index.js +16 -25
  59. package/package.json +1 -1
  60. package/src/components/PDFViewer/PDFElement.tsx +3 -38
  61. package/src/components/PDFViewer/PDFPage.tsx +2 -4
  62. package/src/components/PDFViewer/index.tsx +1 -9
  63. package/src/components/index.ts +0 -1
  64. package/dist/chunk-B2O4TEOI.js +0 -119
  65. package/dist/{chunk-5DQVYX6H.js → chunk-56RPZLV7.js} +3 -3
  66. package/dist/{chunk-25RZP3VR.js → chunk-AKJUBFJK.js} +3 -3
  67. package/dist/{chunk-TAPYQBQU.js → chunk-CMMQTIVM.js} +3 -3
  68. package/dist/{chunk-GYEXSNFP.js → chunk-FWCVZWE6.js} +3 -3
  69. package/dist/{chunk-MV6W7OMC.js → chunk-QMMPHXVE.js} +3 -3
  70. package/dist/{chunk-BWBSDSA7.js → chunk-SPJ6V6WJ.js} +3 -3
  71. package/dist/{chunk-VS53C5ZD.js → chunk-YJGDVWTH.js} +3 -3
@@ -5552,68 +5552,15 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
5552
5552
  var import_clsx36 = __toESM(require("clsx"), 1);
5553
5553
  var import_jsx_runtime53 = require("react/jsx-runtime");
5554
5554
 
5555
- // src/components/PDFViewer/index.tsx
5556
- var import_react36 = require("react");
5557
-
5558
- // src/components/PDFViewer/PDFElement.tsx
5559
- var import_react35 = require("react");
5560
-
5561
- // src/components/Spinner.tsx
5562
- var import_jsx_runtime54 = require("react/jsx-runtime");
5563
- var Spinner = ({ size = "small", testid }) => {
5564
- const dimension = size === "large" ? 48 : 24;
5565
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5566
- "svg",
5567
- {
5568
- "data-testid": testid,
5569
- width: dimension,
5570
- height: dimension,
5571
- viewBox: "0 0 24 24",
5572
- xmlns: "http://www.w3.org/2000/svg",
5573
- fill: "#1D1E1E",
5574
- className: "spinner",
5575
- "aria-label": "Loading",
5576
- children: [
5577
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
5578
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
5579
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
5580
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
5581
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
5582
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
5583
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
5584
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
5585
- ]
5586
- }
5587
- );
5588
- };
5589
- Spinner.displayName = "Spinner";
5590
-
5591
- // src/components/PDFViewer/PDFPage.tsx
5555
+ // src/components/ListGroup.tsx
5592
5556
  var import_react34 = require("react");
5593
- var import_jsx_runtime55 = require("react/jsx-runtime");
5594
-
5595
- // src/components/PDFViewer/PDFElement.tsx
5596
5557
  var import_clsx37 = __toESM(require("clsx"), 1);
5597
- var import_jsx_runtime56 = require("react/jsx-runtime");
5598
-
5599
- // src/components/PDFViewer/DownloadIcon.tsx
5600
- var import_jsx_runtime57 = require("react/jsx-runtime");
5601
-
5602
- // src/components/PDFViewer/PDFNavigation.tsx
5603
- var import_jsx_runtime58 = require("react/jsx-runtime");
5604
-
5605
- // src/components/PDFViewer/index.tsx
5606
- var import_jsx_runtime59 = require("react/jsx-runtime");
5607
-
5608
- // src/components/ListGroup.tsx
5609
- var import_react37 = require("react");
5610
- var import_clsx38 = __toESM(require("clsx"), 1);
5611
- var import_jsx_runtime60 = require("react/jsx-runtime");
5558
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5612
5559
 
5613
5560
  // src/components/Pagination.tsx
5614
- var import_react38 = require("react");
5615
- var import_clsx39 = __toESM(require("clsx"), 1);
5616
- var import_jsx_runtime61 = require("react/jsx-runtime");
5561
+ var import_react35 = require("react");
5562
+ var import_clsx38 = __toESM(require("clsx"), 1);
5563
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5617
5564
  var Pagination = ({
5618
5565
  totalPages,
5619
5566
  currentPage,
@@ -5623,7 +5570,7 @@ var Pagination = ({
5623
5570
  className,
5624
5571
  disabled
5625
5572
  }) => {
5626
- const goTo = (0, import_react38.useCallback)(
5573
+ const goTo = (0, import_react35.useCallback)(
5627
5574
  (page) => {
5628
5575
  if (disabled) return;
5629
5576
  onPageChange(page);
@@ -5640,7 +5587,7 @@ var Pagination = ({
5640
5587
  goTo(currentPage + 1);
5641
5588
  }
5642
5589
  };
5643
- const pageTokens = (0, import_react38.useMemo)(() => {
5590
+ const pageTokens = (0, import_react35.useMemo)(() => {
5644
5591
  if (totalPages <= 5) {
5645
5592
  return Array.from({ length: totalPages }, (_, i) => i + 1);
5646
5593
  }
@@ -5677,7 +5624,7 @@ var Pagination = ({
5677
5624
  return tokens;
5678
5625
  }, [totalPages, currentPage]);
5679
5626
  if (totalPages <= 1) return null;
5680
- const buttonClass = (0, import_clsx39.default)(
5627
+ const buttonClass = (0, import_clsx38.default)(
5681
5628
  "cursor-pointer disabled:cursor-default",
5682
5629
  paddingUsingComponentGap,
5683
5630
  "w-8 h-8",
@@ -5688,14 +5635,14 @@ var Pagination = ({
5688
5635
  "focus:bg-background-grouped-secondary-normal focus:outline-0",
5689
5636
  "disabled:bg-transparent disabled:text-text-action-primary-disabled"
5690
5637
  );
5691
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5638
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5692
5639
  "nav",
5693
5640
  {
5694
5641
  id,
5695
5642
  "data-testid": testid,
5696
5643
  "aria-label": "Pagination",
5697
5644
  onKeyDown: handleKey,
5698
- className: (0, import_clsx39.default)(
5645
+ className: (0, import_clsx38.default)(
5699
5646
  "flex items-center",
5700
5647
  "border border-border-primary-normal",
5701
5648
  "bg-background-grouped-primary-normal",
@@ -5703,19 +5650,19 @@ var Pagination = ({
5703
5650
  className
5704
5651
  ),
5705
5652
  children: [
5706
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5653
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5707
5654
  "button",
5708
5655
  {
5709
5656
  disabled: disabled || currentPage <= 1,
5710
5657
  "aria-label": "Previous page",
5711
5658
  onClick: () => goTo(currentPage - 1),
5712
- className: (0, import_clsx39.default)(buttonClass, "border-r-1 border-border-primary-normal"),
5713
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "keyboard_arrow_left" })
5659
+ className: (0, import_clsx38.default)(buttonClass, "border-r-1 border-border-primary-normal"),
5660
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_left" })
5714
5661
  }
5715
5662
  ),
5716
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { className: (0, import_clsx39.default)("flex items-center"), children: pageTokens.map((token, index) => {
5663
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { className: (0, import_clsx38.default)("flex items-center"), children: pageTokens.map((token, index) => {
5717
5664
  if (token === "ellipsis") {
5718
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5665
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5719
5666
  "li",
5720
5667
  {
5721
5668
  className: "w-8 h-8 select-none text-text-action-primary-disabled",
@@ -5725,29 +5672,29 @@ var Pagination = ({
5725
5672
  );
5726
5673
  }
5727
5674
  const selected = token === currentPage;
5728
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5675
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5729
5676
  "button",
5730
5677
  {
5731
5678
  "aria-label": `Page ${token}`,
5732
5679
  "aria-current": selected ? "page" : void 0,
5733
5680
  disabled,
5734
5681
  onClick: () => goTo(token),
5735
- className: (0, import_clsx39.default)(
5682
+ className: (0, import_clsx38.default)(
5736
5683
  buttonClass,
5737
5684
  selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
5738
5685
  ),
5739
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Subheader, { align: "center", weight: "bold", children: token })
5686
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Subheader, { align: "center", weight: "bold", children: token })
5740
5687
  }
5741
5688
  ) }, token);
5742
5689
  }) }),
5743
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5690
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5744
5691
  "button",
5745
5692
  {
5746
5693
  disabled: disabled || currentPage >= totalPages,
5747
5694
  "aria-label": "Next page",
5748
5695
  onClick: () => goTo(currentPage + 1),
5749
- className: (0, import_clsx39.default)(buttonClass, "border-l-1 border-border-primary-normal"),
5750
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "keyboard_arrow_right" })
5696
+ className: (0, import_clsx38.default)(buttonClass, "border-l-1 border-border-primary-normal"),
5697
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_right" })
5751
5698
  }
5752
5699
  )
5753
5700
  ]
@@ -5757,25 +5704,25 @@ var Pagination = ({
5757
5704
  Pagination.displayName = "Pagination";
5758
5705
 
5759
5706
  // src/components/SkeletonParagraph.tsx
5760
- var import_jsx_runtime62 = require("react/jsx-runtime");
5707
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5761
5708
 
5762
5709
  // src/components/EmptyCartIcon.tsx
5763
- var import_jsx_runtime63 = require("react/jsx-runtime");
5710
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5764
5711
 
5765
5712
  // src/components/SearchResultImage/index.tsx
5766
- var import_react39 = require("react");
5767
- var import_jsx_runtime64 = require("react/jsx-runtime");
5713
+ var import_react36 = require("react");
5714
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5768
5715
 
5769
5716
  // src/components/Alert.tsx
5770
- var import_clsx40 = __toESM(require("clsx"), 1);
5771
- var import_react40 = require("react");
5772
- var import_jsx_runtime65 = require("react/jsx-runtime");
5717
+ var import_clsx39 = __toESM(require("clsx"), 1);
5718
+ var import_react37 = require("react");
5719
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5773
5720
 
5774
5721
  // src/components/OrderCheckIcon.tsx
5775
- var import_jsx_runtime66 = require("react/jsx-runtime");
5722
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5776
5723
 
5777
5724
  // src/components/DataGrid/TableBody/LoadingCell.tsx
5778
- var import_jsx_runtime67 = require("react/jsx-runtime");
5725
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5779
5726
  function LoadingCell({
5780
5727
  id,
5781
5728
  testid,
@@ -5783,16 +5730,16 @@ function LoadingCell({
5783
5730
  }) {
5784
5731
  const key = `loading-${column.id}`;
5785
5732
  if (column.cell === "checkbox") {
5786
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
5733
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
5787
5734
  }
5788
5735
  if (column.cell === "input") {
5789
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5736
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5790
5737
  DataGridCell,
5791
5738
  {
5792
5739
  id: id ? `${id}-${key}` : void 0,
5793
5740
  testid: testid ? `${testid}-${key}` : void 0,
5794
5741
  component: "input",
5795
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5742
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5796
5743
  Input,
5797
5744
  {
5798
5745
  id: id ? `${id}-${key}-input` : void 0,
@@ -5806,7 +5753,7 @@ function LoadingCell({
5806
5753
  key
5807
5754
  );
5808
5755
  }
5809
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
5756
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
5810
5757
  }
5811
5758
  // Annotate the CommonJS export names for ESM import in node:
5812
5759
  0 && (module.exports = {
@@ -1,16 +1,12 @@
1
1
  import {
2
2
  LoadingCell
3
- } from "../../../chunk-QV3NANQC.js";
3
+ } from "../../../chunk-JWVZOEF5.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
- import "../../../chunk-D4TFZ2WM.js";
5
+ import "../../../chunk-ELXVDRWS.js";
6
6
  import "../../../chunk-3UUCDNX3.js";
7
7
  import "../../../chunk-FJRYHJUV.js";
8
8
  import "../../../chunk-BQNPOGD5.js";
9
9
  import "../../../chunk-Y5GD2FJA.js";
10
- import "../../../chunk-B2O4TEOI.js";
11
- import "../../../chunk-VOSQMHNF.js";
12
- import "../../../chunk-VS53C5ZD.js";
13
- import "../../../chunk-S5ZJ3Q7P.js";
14
10
  import "../../../chunk-MBZ55T2D.js";
15
11
  import "../../../chunk-2IKT6IHB.js";
16
12
  import "../../../chunk-YCDDBSVU.js";
@@ -20,26 +16,23 @@ import "../../../chunk-5YNEY3WO.js";
20
16
  import "../../../chunk-5IFPG6TS.js";
21
17
  import "../../../chunk-AJ5M6MVX.js";
22
18
  import "../../../chunk-UI7P5J5S.js";
23
- import "../../../chunk-5DQVYX6H.js";
24
19
  import "../../../chunk-MDB26F6T.js";
25
20
  import "../../../chunk-AT4AWD6B.js";
26
21
  import "../../../chunk-EWGHVZL5.js";
27
- import "../../../chunk-2TNHD4MQ.js";
28
22
  import "../../../chunk-OWHPPZZA.js";
29
23
  import "../../../chunk-L3BXRDLP.js";
30
24
  import "../../../chunk-34VEVX5H.js";
31
25
  import "../../../chunk-LB7UT6F3.js";
32
- import "../../../chunk-LJLHGLTS.js";
26
+ import "../../../chunk-2TNHD4MQ.js";
27
+ import "../../../chunk-BMPL6LCR.js";
33
28
  import "../../../chunk-4RJKB7LC.js";
34
- import "../../../chunk-25RZP3VR.js";
35
29
  import "../../../chunk-WVVEOCEH.js";
36
- import "../../../chunk-TAPYQBQU.js";
30
+ import "../../../chunk-CMMQTIVM.js";
37
31
  import "../../../chunk-AG43RS4Q.js";
38
- import "../../../chunk-SBRRNFOP.js";
39
- import "../../../chunk-QVWYTQKL.js";
32
+ import "../../../chunk-AKJUBFJK.js";
40
33
  import "../../../chunk-SUSUNSVZ.js";
41
- import "../../../chunk-75USUR3I.js";
42
34
  import "../../../chunk-Y2GK27RX.js";
35
+ import "../../../chunk-QVWYTQKL.js";
43
36
  import "../../../chunk-F6RZ7MUE.js";
44
37
  import "../../../chunk-TCMOGTPB.js";
45
38
  import "../../../chunk-DVU5XV7L.js";
@@ -48,6 +41,7 @@ import "../../../chunk-HK4S6TRH.js";
48
41
  import "../../../chunk-KPBG7D3V.js";
49
42
  import "../../../chunk-HXGJVYGQ.js";
50
43
  import "../../../chunk-WVUIIBRR.js";
44
+ import "../../../chunk-75USUR3I.js";
51
45
  import "../../../chunk-PS6UJZVH.js";
52
46
  import "../../../chunk-M7WHWZ2J.js";
53
47
  import "../../../chunk-TMHOK37S.js";
@@ -58,12 +52,12 @@ import "../../../chunk-5UH6QUFB.js";
58
52
  import "../../../chunk-BYC6QID5.js";
59
53
  import "../../../chunk-MUOYLXBF.js";
60
54
  import "../../../chunk-KBJZUVLM.js";
61
- import "../../../chunk-BWBSDSA7.js";
55
+ import "../../../chunk-SPJ6V6WJ.js";
62
56
  import "../../../chunk-MXSJF6TW.js";
63
- import "../../../chunk-45AHDOAU.js";
64
57
  import "../../../chunk-WMPWWFUJ.js";
65
58
  import "../../../chunk-TPXH53SA.js";
66
59
  import "../../../chunk-NKUETCDA.js";
60
+ import "../../../chunk-45AHDOAU.js";
67
61
  import "../../../chunk-7KWFEH56.js";
68
62
  import "../../../chunk-ORMEWXMH.js";
69
63
  export {
@@ -62,9 +62,9 @@ __export(TableBodyRow_exports, {
62
62
  TableBodyRow: () => TableBodyRow
63
63
  });
64
64
  module.exports = __toCommonJS(TableBodyRow_exports);
65
- var import_clsx40 = __toESM(require("clsx"), 1);
65
+ var import_clsx39 = __toESM(require("clsx"), 1);
66
66
  var import_react_table3 = require("@tanstack/react-table");
67
- var import_react40 = __toESM(require("react"), 1);
67
+ var import_react37 = __toESM(require("react"), 1);
68
68
 
69
69
  // src/components/DataGridCell.tsx
70
70
  var import_sortable = require("@dnd-kit/sortable");
@@ -5486,68 +5486,15 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
5486
5486
  var import_clsx35 = __toESM(require("clsx"), 1);
5487
5487
  var import_jsx_runtime53 = require("react/jsx-runtime");
5488
5488
 
5489
- // src/components/PDFViewer/index.tsx
5490
- var import_react35 = require("react");
5491
-
5492
- // src/components/PDFViewer/PDFElement.tsx
5493
- var import_react34 = require("react");
5494
-
5495
- // src/components/Spinner.tsx
5496
- var import_jsx_runtime54 = require("react/jsx-runtime");
5497
- var Spinner = ({ size = "small", testid }) => {
5498
- const dimension = size === "large" ? 48 : 24;
5499
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5500
- "svg",
5501
- {
5502
- "data-testid": testid,
5503
- width: dimension,
5504
- height: dimension,
5505
- viewBox: "0 0 24 24",
5506
- xmlns: "http://www.w3.org/2000/svg",
5507
- fill: "#1D1E1E",
5508
- className: "spinner",
5509
- "aria-label": "Loading",
5510
- children: [
5511
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
5512
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
5513
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
5514
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
5515
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
5516
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
5517
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
5518
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
5519
- ]
5520
- }
5521
- );
5522
- };
5523
- Spinner.displayName = "Spinner";
5524
-
5525
- // src/components/PDFViewer/PDFPage.tsx
5489
+ // src/components/ListGroup.tsx
5526
5490
  var import_react33 = require("react");
5527
- var import_jsx_runtime55 = require("react/jsx-runtime");
5528
-
5529
- // src/components/PDFViewer/PDFElement.tsx
5530
5491
  var import_clsx36 = __toESM(require("clsx"), 1);
5531
- var import_jsx_runtime56 = require("react/jsx-runtime");
5532
-
5533
- // src/components/PDFViewer/DownloadIcon.tsx
5534
- var import_jsx_runtime57 = require("react/jsx-runtime");
5535
-
5536
- // src/components/PDFViewer/PDFNavigation.tsx
5537
- var import_jsx_runtime58 = require("react/jsx-runtime");
5538
-
5539
- // src/components/PDFViewer/index.tsx
5540
- var import_jsx_runtime59 = require("react/jsx-runtime");
5541
-
5542
- // src/components/ListGroup.tsx
5543
- var import_react36 = require("react");
5544
- var import_clsx37 = __toESM(require("clsx"), 1);
5545
- var import_jsx_runtime60 = require("react/jsx-runtime");
5492
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5546
5493
 
5547
5494
  // src/components/Pagination.tsx
5548
- var import_react37 = require("react");
5549
- var import_clsx38 = __toESM(require("clsx"), 1);
5550
- var import_jsx_runtime61 = require("react/jsx-runtime");
5495
+ var import_react34 = require("react");
5496
+ var import_clsx37 = __toESM(require("clsx"), 1);
5497
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5551
5498
  var Pagination = ({
5552
5499
  totalPages,
5553
5500
  currentPage,
@@ -5557,7 +5504,7 @@ var Pagination = ({
5557
5504
  className,
5558
5505
  disabled
5559
5506
  }) => {
5560
- const goTo = (0, import_react37.useCallback)(
5507
+ const goTo = (0, import_react34.useCallback)(
5561
5508
  (page) => {
5562
5509
  if (disabled) return;
5563
5510
  onPageChange(page);
@@ -5574,7 +5521,7 @@ var Pagination = ({
5574
5521
  goTo(currentPage + 1);
5575
5522
  }
5576
5523
  };
5577
- const pageTokens = (0, import_react37.useMemo)(() => {
5524
+ const pageTokens = (0, import_react34.useMemo)(() => {
5578
5525
  if (totalPages <= 5) {
5579
5526
  return Array.from({ length: totalPages }, (_, i) => i + 1);
5580
5527
  }
@@ -5611,7 +5558,7 @@ var Pagination = ({
5611
5558
  return tokens;
5612
5559
  }, [totalPages, currentPage]);
5613
5560
  if (totalPages <= 1) return null;
5614
- const buttonClass = (0, import_clsx38.default)(
5561
+ const buttonClass = (0, import_clsx37.default)(
5615
5562
  "cursor-pointer disabled:cursor-default",
5616
5563
  paddingUsingComponentGap,
5617
5564
  "w-8 h-8",
@@ -5622,14 +5569,14 @@ var Pagination = ({
5622
5569
  "focus:bg-background-grouped-secondary-normal focus:outline-0",
5623
5570
  "disabled:bg-transparent disabled:text-text-action-primary-disabled"
5624
5571
  );
5625
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5572
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5626
5573
  "nav",
5627
5574
  {
5628
5575
  id,
5629
5576
  "data-testid": testid,
5630
5577
  "aria-label": "Pagination",
5631
5578
  onKeyDown: handleKey,
5632
- className: (0, import_clsx38.default)(
5579
+ className: (0, import_clsx37.default)(
5633
5580
  "flex items-center",
5634
5581
  "border border-border-primary-normal",
5635
5582
  "bg-background-grouped-primary-normal",
@@ -5637,19 +5584,19 @@ var Pagination = ({
5637
5584
  className
5638
5585
  ),
5639
5586
  children: [
5640
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5587
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5641
5588
  "button",
5642
5589
  {
5643
5590
  disabled: disabled || currentPage <= 1,
5644
5591
  "aria-label": "Previous page",
5645
5592
  onClick: () => goTo(currentPage - 1),
5646
- className: (0, import_clsx38.default)(buttonClass, "border-r-1 border-border-primary-normal"),
5647
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "keyboard_arrow_left" })
5593
+ className: (0, import_clsx37.default)(buttonClass, "border-r-1 border-border-primary-normal"),
5594
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_left" })
5648
5595
  }
5649
5596
  ),
5650
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { className: (0, import_clsx38.default)("flex items-center"), children: pageTokens.map((token, index) => {
5597
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
5651
5598
  if (token === "ellipsis") {
5652
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5599
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5653
5600
  "li",
5654
5601
  {
5655
5602
  className: "w-8 h-8 select-none text-text-action-primary-disabled",
@@ -5659,29 +5606,29 @@ var Pagination = ({
5659
5606
  );
5660
5607
  }
5661
5608
  const selected = token === currentPage;
5662
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5609
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5663
5610
  "button",
5664
5611
  {
5665
5612
  "aria-label": `Page ${token}`,
5666
5613
  "aria-current": selected ? "page" : void 0,
5667
5614
  disabled,
5668
5615
  onClick: () => goTo(token),
5669
- className: (0, import_clsx38.default)(
5616
+ className: (0, import_clsx37.default)(
5670
5617
  buttonClass,
5671
5618
  selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
5672
5619
  ),
5673
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Subheader, { align: "center", weight: "bold", children: token })
5620
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Subheader, { align: "center", weight: "bold", children: token })
5674
5621
  }
5675
5622
  ) }, token);
5676
5623
  }) }),
5677
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5624
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5678
5625
  "button",
5679
5626
  {
5680
5627
  disabled: disabled || currentPage >= totalPages,
5681
5628
  "aria-label": "Next page",
5682
5629
  onClick: () => goTo(currentPage + 1),
5683
- className: (0, import_clsx38.default)(buttonClass, "border-l-1 border-border-primary-normal"),
5684
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "keyboard_arrow_right" })
5630
+ className: (0, import_clsx37.default)(buttonClass, "border-l-1 border-border-primary-normal"),
5631
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "keyboard_arrow_right" })
5685
5632
  }
5686
5633
  )
5687
5634
  ]
@@ -5691,25 +5638,25 @@ var Pagination = ({
5691
5638
  Pagination.displayName = "Pagination";
5692
5639
 
5693
5640
  // src/components/SkeletonParagraph.tsx
5694
- var import_jsx_runtime62 = require("react/jsx-runtime");
5641
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5695
5642
 
5696
5643
  // src/components/EmptyCartIcon.tsx
5697
- var import_jsx_runtime63 = require("react/jsx-runtime");
5644
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5698
5645
 
5699
5646
  // src/components/SearchResultImage/index.tsx
5700
- var import_react38 = require("react");
5701
- var import_jsx_runtime64 = require("react/jsx-runtime");
5647
+ var import_react35 = require("react");
5648
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5702
5649
 
5703
5650
  // src/components/Alert.tsx
5704
- var import_clsx39 = __toESM(require("clsx"), 1);
5705
- var import_react39 = require("react");
5706
- var import_jsx_runtime65 = require("react/jsx-runtime");
5651
+ var import_clsx38 = __toESM(require("clsx"), 1);
5652
+ var import_react36 = require("react");
5653
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5707
5654
 
5708
5655
  // src/components/OrderCheckIcon.tsx
5709
- var import_jsx_runtime66 = require("react/jsx-runtime");
5656
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5710
5657
 
5711
5658
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
5712
- var import_jsx_runtime67 = require("react/jsx-runtime");
5659
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5713
5660
  var valueFormatters = {
5714
5661
  date: (value) => typeof value === "string" ? formatDate(value) : "",
5715
5662
  currency: (value) => formatCurrencyDisplay(value)
@@ -5742,10 +5689,10 @@ function TableBodyRow({
5742
5689
  const columns = locked ? visibleCells : virtualColumns;
5743
5690
  const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
5744
5691
  const CellElement = locked ? DataGridCell : DragAlongCell;
5745
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5692
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5746
5693
  "tr",
5747
5694
  {
5748
- className: (0, import_clsx40.default)(
5695
+ className: (0, import_clsx39.default)(
5749
5696
  "min-h-10",
5750
5697
  "transition-colors hover:bg-background-action-secondary-hover",
5751
5698
  row.getIsSelected() && "!bg-background-action-secondary-hover",
@@ -5763,7 +5710,7 @@ function TableBodyRow({
5763
5710
  children: [
5764
5711
  !locked && virtualPaddingLeft ? (
5765
5712
  // fake empty column to the left for virtualization scroll padding
5766
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
5713
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
5767
5714
  ) : null,
5768
5715
  columns.map((column) => {
5769
5716
  var _a2, _b, _c, _d;
@@ -5774,17 +5721,17 @@ function TableBodyRow({
5774
5721
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
5775
5722
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
5776
5723
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
5777
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react40.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5724
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react37.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5778
5725
  CellElement,
5779
5726
  {
5780
5727
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
5781
5728
  testid: testid ? `${testid}-row-${row.id}-cell-${cell.id}` : void 0,
5782
5729
  cell,
5783
- className: (0, import_clsx40.default)({
5730
+ className: (0, import_clsx39.default)({
5784
5731
  "justify-start": cellAlignment === "left",
5785
5732
  "justify-end": cellAlignment === "right"
5786
5733
  }),
5787
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5734
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5788
5735
  Tooltip,
5789
5736
  {
5790
5737
  id: id ? `${id}-tooltip-${cell.id}` : void 0,
@@ -5792,7 +5739,7 @@ function TableBodyRow({
5792
5739
  showOnTruncation: true,
5793
5740
  message: cellValue,
5794
5741
  position: "bottom",
5795
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
5742
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
5796
5743
  }
5797
5744
  )
5798
5745
  },
@@ -5801,7 +5748,7 @@ function TableBodyRow({
5801
5748
  }),
5802
5749
  !locked && virtualPaddingRight ? (
5803
5750
  // fake empty column to the right for virtualization scroll padding
5804
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
5751
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
5805
5752
  ) : null
5806
5753
  ]
5807
5754
  },