@dmsi/wedgekit-react 0.0.644 → 0.0.646

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 (68) hide show
  1. package/dist/{chunk-XVWCVBVF.js → chunk-3MV3KMQH.js} +1 -1
  2. package/dist/{chunk-Z3Q7PLVD.js → chunk-3PBA2EZ5.js} +1 -1
  3. package/dist/{chunk-LN3HVXH5.js → chunk-B3T7KBDA.js} +1 -1
  4. package/dist/{chunk-VAARSN7U.js → chunk-EXCAOI2L.js} +3 -3
  5. package/dist/{chunk-OXOMO76M.js → chunk-FCGPQNS2.js} +1 -1
  6. package/dist/{chunk-J2QD64F2.js → chunk-FJXWYGB7.js} +5 -5
  7. package/dist/{chunk-V2GSI3ZX.js → chunk-HIGNJAQA.js} +2 -2
  8. package/dist/{chunk-NUFBAJ6L.js → chunk-ISRG77J6.js} +1 -1
  9. package/dist/{chunk-YXZRGZ2I.js → chunk-REC2XOPI.js} +1 -1
  10. package/dist/{chunk-K22B4L3G.js → chunk-ZSRTAMSW.js} +28 -1
  11. package/dist/components/CalendarRange.cjs +157 -154
  12. package/dist/components/CalendarRange.js +11 -11
  13. package/dist/components/CompactImagesPreview.cjs +6 -3
  14. package/dist/components/CompactImagesPreview.js +2 -2
  15. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +157 -154
  16. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +11 -11
  17. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +157 -154
  18. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +11 -11
  19. package/dist/components/DataGrid/PinnedColumns.cjs +157 -154
  20. package/dist/components/DataGrid/PinnedColumns.js +11 -11
  21. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +157 -154
  22. package/dist/components/DataGrid/TableBody/LoadingCell.js +11 -11
  23. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +157 -154
  24. package/dist/components/DataGrid/TableBody/TableBodyRow.js +11 -11
  25. package/dist/components/DataGrid/TableBody/index.cjs +157 -154
  26. package/dist/components/DataGrid/TableBody/index.js +11 -11
  27. package/dist/components/DataGrid/index.cjs +158 -155
  28. package/dist/components/DataGrid/index.js +11 -11
  29. package/dist/components/DataGrid/utils.cjs +157 -154
  30. package/dist/components/DataGrid/utils.js +11 -11
  31. package/dist/components/DataGridCell.cjs +61 -58
  32. package/dist/components/DataGridCell.js +5 -5
  33. package/dist/components/DateInput.cjs +150 -147
  34. package/dist/components/DateInput.js +11 -11
  35. package/dist/components/DateRangeInput.cjs +163 -160
  36. package/dist/components/DateRangeInput.js +11 -11
  37. package/dist/components/Menu.cjs +15 -12
  38. package/dist/components/Menu.js +3 -3
  39. package/dist/components/MenuOption.cjs +8 -5
  40. package/dist/components/MenuOption.js +2 -2
  41. package/dist/components/MobileDataGrid/ColumnList.js +1 -1
  42. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +161 -158
  43. package/dist/components/MobileDataGrid/ColumnSelector/index.js +11 -11
  44. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
  45. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +161 -158
  46. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +11 -11
  47. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
  48. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +19 -16
  49. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +4 -4
  50. package/dist/components/MobileDataGrid/index.cjs +170 -167
  51. package/dist/components/MobileDataGrid/index.js +11 -11
  52. package/dist/components/Modal.cjs +15 -12
  53. package/dist/components/Modal.js +2 -2
  54. package/dist/components/NestedMenu.cjs +11 -8
  55. package/dist/components/NestedMenu.js +2 -2
  56. package/dist/components/PDFViewer/index.cjs +31 -28
  57. package/dist/components/PDFViewer/index.js +2 -2
  58. package/dist/components/ProductImagePreview/index.cjs +18 -15
  59. package/dist/components/ProductImagePreview/index.js +2 -2
  60. package/dist/components/ProjectBar.cjs +3 -0
  61. package/dist/components/ProjectBar.js +1 -1
  62. package/dist/components/index.cjs +218 -215
  63. package/dist/components/index.js +11 -11
  64. package/dist/components/useMenuSystem.cjs +22 -19
  65. package/dist/components/useMenuSystem.js +2 -2
  66. package/dist/hooks/index.cjs +28 -0
  67. package/dist/hooks/index.js +3 -1
  68. package/package.json +1 -1
@@ -721,7 +721,7 @@ function Theme({
721
721
  }
722
722
 
723
723
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
724
- var import_react39 = require("react");
724
+ var import_react40 = require("react");
725
725
 
726
726
  // src/components/DataGridCell.tsx
727
727
  var import_sortable = require("@dnd-kit/sortable");
@@ -776,11 +776,11 @@ var CSS = /* @__PURE__ */ Object.freeze({
776
776
 
777
777
  // src/components/DataGridCell.tsx
778
778
  var import_clsx12 = __toESM(require("clsx"), 1);
779
- var import_react11 = require("react");
779
+ var import_react12 = require("react");
780
780
 
781
781
  // src/components/MenuOption.tsx
782
782
  var import_clsx9 = __toESM(require("clsx"), 1);
783
- var import_react6 = require("react");
783
+ var import_react7 = require("react");
784
784
 
785
785
  // src/components/Label.tsx
786
786
  var import_clsx7 = __toESM(require("clsx"), 1);
@@ -1142,6 +1142,9 @@ function useTableLayout(initialColumns, key, autosync = true) {
1142
1142
  return { columns, setColumns: handleSaveLayout, isReady, getSavedLayout };
1143
1143
  }
1144
1144
 
1145
+ // src/hooks/useEditCell.tsx
1146
+ var import_react6 = require("react");
1147
+
1145
1148
  // src/components/Caption.tsx
1146
1149
  var import_clsx8 = __toESM(require("clsx"), 1);
1147
1150
  var import_jsx_runtime8 = require("react/jsx-runtime");
@@ -1293,12 +1296,12 @@ var MenuOption = ({
1293
1296
  onMouseMove,
1294
1297
  small = false
1295
1298
  }) => {
1296
- const uniqueId = (0, import_react6.useId)();
1297
- const internalRef = (0, import_react6.useRef)(null);
1299
+ const uniqueId = (0, import_react7.useId)();
1300
+ const internalRef = (0, import_react7.useRef)(null);
1298
1301
  const actualRef = ref || internalRef;
1299
- const menuId = (0, import_react6.useRef)(`menu-${uniqueId}`);
1302
+ const menuId = (0, import_react7.useRef)(`menu-${uniqueId}`);
1300
1303
  const isMobile = useMatchesMobile();
1301
- const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react6.useState)(false);
1304
+ const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react7.useState)(false);
1302
1305
  const handleMouseEnter = () => {
1303
1306
  if (subMenu && onSubMenuHover && !disabled) {
1304
1307
  onSubMenuHover(menuId.current, subMenuLevel);
@@ -1458,27 +1461,27 @@ function highlightMatch(text, searchValue) {
1458
1461
 
1459
1462
  // src/components/Menu.tsx
1460
1463
  var import_clsx10 = __toESM(require("clsx"), 1);
1461
- var import_react8 = require("react");
1464
+ var import_react9 = require("react");
1462
1465
  var import_react_dom = require("react-dom");
1463
1466
 
1464
1467
  // src/components/useMenuSystem.tsx
1465
- var import_react7 = require("react");
1468
+ var import_react8 = require("react");
1466
1469
  function useSubMenuSystem(mobilePositionTo) {
1467
- const [activeMenus, setActiveMenus] = (0, import_react7.useState)(
1470
+ const [activeMenus, setActiveMenus] = (0, import_react8.useState)(
1468
1471
  {}
1469
1472
  );
1470
- const [activeMenu, setActiveMenu] = (0, import_react7.useState)("");
1471
- const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react7.useState)(
1473
+ const [activeMenu, setActiveMenu] = (0, import_react8.useState)("");
1474
+ const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react8.useState)(
1472
1475
  null
1473
1476
  );
1474
- const menuRootRef = (0, import_react7.useRef)(null);
1475
- const subMenuRefs = (0, import_react7.useRef)({});
1476
- const hoverTimeoutRef = (0, import_react7.useRef)(null);
1477
- const closeTimeoutRef = (0, import_react7.useRef)(null);
1478
- const mouseStopTimeoutRef = (0, import_react7.useRef)(null);
1479
- const isMouseMovingRef = (0, import_react7.useRef)(false);
1480
- const pendingOpenActionRef = (0, import_react7.useRef)(null);
1481
- const pendingCloseActionRef = (0, import_react7.useRef)(null);
1477
+ const menuRootRef = (0, import_react8.useRef)(null);
1478
+ const subMenuRefs = (0, import_react8.useRef)({});
1479
+ const hoverTimeoutRef = (0, import_react8.useRef)(null);
1480
+ const closeTimeoutRef = (0, import_react8.useRef)(null);
1481
+ const mouseStopTimeoutRef = (0, import_react8.useRef)(null);
1482
+ const isMouseMovingRef = (0, import_react8.useRef)(false);
1483
+ const pendingOpenActionRef = (0, import_react8.useRef)(null);
1484
+ const pendingCloseActionRef = (0, import_react8.useRef)(null);
1482
1485
  const isMobile = useMatchesMobile();
1483
1486
  const toggleMenu = (menuId, level) => {
1484
1487
  if (closeTimeoutRef.current) {
@@ -1518,7 +1521,7 @@ function useSubMenuSystem(mobilePositionTo) {
1518
1521
  return newActiveMenus;
1519
1522
  });
1520
1523
  };
1521
- const executePendingActions = (0, import_react7.useCallback)(() => {
1524
+ const executePendingActions = (0, import_react8.useCallback)(() => {
1522
1525
  if (pendingCloseActionRef.current) {
1523
1526
  pendingCloseActionRef.current();
1524
1527
  pendingCloseActionRef.current = null;
@@ -1607,7 +1610,7 @@ function useSubMenuSystem(mobilePositionTo) {
1607
1610
  const isMenuActive = (menuId, level) => {
1608
1611
  return activeMenus[level] === menuId;
1609
1612
  };
1610
- (0, import_react7.useEffect)(() => {
1613
+ (0, import_react8.useEffect)(() => {
1611
1614
  const handleClickOutside = (event) => {
1612
1615
  var _a;
1613
1616
  if (Object.keys(activeMenus).length === 0) return;
@@ -1626,7 +1629,7 @@ function useSubMenuSystem(mobilePositionTo) {
1626
1629
  document.removeEventListener("mousedown", handleClickOutside);
1627
1630
  };
1628
1631
  }, [activeMenus]);
1629
- (0, import_react7.useEffect)(() => {
1632
+ (0, import_react8.useEffect)(() => {
1630
1633
  return () => {
1631
1634
  if (hoverTimeoutRef.current) {
1632
1635
  clearTimeout(hoverTimeoutRef.current);
@@ -1704,13 +1707,13 @@ function useSubMenuSystem(mobilePositionTo) {
1704
1707
  };
1705
1708
  }
1706
1709
  function useMenuPosition(elementRef, position = "bottom", options) {
1707
- const [menuPosition, setMenuPosition] = (0, import_react7.useState)({
1710
+ const [menuPosition, setMenuPosition] = (0, import_react8.useState)({
1708
1711
  top: 0,
1709
1712
  left: 0,
1710
1713
  minWidth: 0
1711
1714
  });
1712
1715
  const isMobile = options == null ? void 0 : options.isMobile;
1713
- const updatePosition = (0, import_react7.useCallback)(() => {
1716
+ const updatePosition = (0, import_react8.useCallback)(() => {
1714
1717
  var _a, _b, _c;
1715
1718
  if (!(elementRef == null ? void 0 : elementRef.current)) return;
1716
1719
  const triggerRect = elementRef.current.getBoundingClientRect();
@@ -1758,7 +1761,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1758
1761
  minWidth: triggerRect.width
1759
1762
  });
1760
1763
  }, [elementRef, position, options == null ? void 0 : options.menuRef, options == null ? void 0 : options.topOffset, isMobile]);
1761
- (0, import_react7.useEffect)(() => {
1764
+ (0, import_react8.useEffect)(() => {
1762
1765
  if (!(options == null ? void 0 : options.isOpen) || !(options == null ? void 0 : options.setIsOpen)) return;
1763
1766
  const handleClickOutside = (event) => {
1764
1767
  var _a, _b, _c, _d, _e;
@@ -1784,7 +1787,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1784
1787
  options == null ? void 0 : options.menuRef,
1785
1788
  options == null ? void 0 : options.additionalRefs
1786
1789
  ]);
1787
- (0, import_react7.useEffect)(() => {
1790
+ (0, import_react8.useEffect)(() => {
1788
1791
  updatePosition();
1789
1792
  const resizeObserver = new ResizeObserver(updatePosition);
1790
1793
  if (elementRef == null ? void 0 : elementRef.current) {
@@ -1865,9 +1868,9 @@ var Menu = (_a) => {
1865
1868
  "menuName",
1866
1869
  "calculateMinMaxHeight"
1867
1870
  ]);
1868
- const internalRef = (0, import_react8.useRef)(null);
1871
+ const internalRef = (0, import_react9.useRef)(null);
1869
1872
  const actualRef = ref || internalRef;
1870
- const [maxHeight, setMaxHeight] = (0, import_react8.useState)("180px");
1873
+ const [maxHeight, setMaxHeight] = (0, import_react9.useState)("180px");
1871
1874
  const isMobile = useMatchesMobile();
1872
1875
  const { menuPosition, updatePosition } = useMenuPosition(
1873
1876
  isMobile && mobilePositionTo ? mobilePositionTo : positionTo,
@@ -1880,7 +1883,7 @@ var Menu = (_a) => {
1880
1883
  isMobile: !!(isMobile && mobilePositionTo)
1881
1884
  }
1882
1885
  );
1883
- (0, import_react8.useEffect)(() => {
1886
+ (0, import_react9.useEffect)(() => {
1884
1887
  if (calculateMinMaxHeight) {
1885
1888
  return;
1886
1889
  }
@@ -1904,7 +1907,7 @@ var Menu = (_a) => {
1904
1907
  cancelAnimationFrame(raf);
1905
1908
  };
1906
1909
  }, [actualRef.current, customMaxHeight, calculateMinMaxHeight]);
1907
- (0, import_react8.useEffect)(() => {
1910
+ (0, import_react9.useEffect)(() => {
1908
1911
  if (!calculateMinMaxHeight) {
1909
1912
  return;
1910
1913
  }
@@ -1915,14 +1918,14 @@ var Menu = (_a) => {
1915
1918
  setMaxHeight(`${calculatedMaxHeight}px`);
1916
1919
  }
1917
1920
  }, [actualRef.current, positionTo == null ? void 0 : positionTo.current, calculateMinMaxHeight]);
1918
- (0, import_react8.useEffect)(() => {
1921
+ (0, import_react9.useEffect)(() => {
1919
1922
  if (!show) {
1920
1923
  return;
1921
1924
  }
1922
1925
  initializeMenuFocus();
1923
1926
  updatePosition();
1924
1927
  }, [show, updatePosition]);
1925
- (0, import_react8.useEffect)(() => {
1928
+ (0, import_react9.useEffect)(() => {
1926
1929
  if (!show || !setShow) {
1927
1930
  return;
1928
1931
  }
@@ -2076,10 +2079,10 @@ var Menu = (_a) => {
2076
2079
  Menu.displayName = "Menu";
2077
2080
 
2078
2081
  // src/components/Search.tsx
2079
- var import_react10 = require("react");
2082
+ var import_react11 = require("react");
2080
2083
 
2081
2084
  // src/components/Input.tsx
2082
- var import_react9 = require("react");
2085
+ var import_react10 = require("react");
2083
2086
  var import_clsx11 = __toESM(require("clsx"), 1);
2084
2087
  var import_jsx_runtime11 = require("react/jsx-runtime");
2085
2088
  var InputBase = (_a) => {
@@ -2136,9 +2139,9 @@ var InputBase = (_a) => {
2136
2139
  "data-error": error && !focus || null,
2137
2140
  "data-focus": focus || null
2138
2141
  };
2139
- const inputRef = (0, import_react9.useRef)(null);
2142
+ const inputRef = (0, import_react10.useRef)(null);
2140
2143
  const inputId = id ? `${id}-input` : void 0;
2141
- (0, import_react9.useEffect)(() => {
2144
+ (0, import_react10.useEffect)(() => {
2142
2145
  var _a2;
2143
2146
  const input = inputRef.current;
2144
2147
  const focusHandler = () => {
@@ -2297,15 +2300,15 @@ var Input = (_a) => {
2297
2300
  "testid",
2298
2301
  "rightAdornment"
2299
2302
  ]);
2300
- const [internalValue, setInternalValue] = (0, import_react9.useState)("");
2301
- const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
2302
- (0, import_react9.useEffect)(() => {
2303
+ const [internalValue, setInternalValue] = (0, import_react10.useState)("");
2304
+ const [displayValue, setDisplayValue] = (0, import_react10.useState)("");
2305
+ (0, import_react10.useEffect)(() => {
2303
2306
  var _a2;
2304
2307
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
2305
2308
  setInternalValue(stringValue);
2306
2309
  setDisplayValue(stringValue);
2307
2310
  }, [propValue]);
2308
- (0, import_react9.useEffect)(() => {
2311
+ (0, import_react10.useEffect)(() => {
2309
2312
  var _a2;
2310
2313
  if (variant !== "currency") {
2311
2314
  return;
@@ -2566,14 +2569,14 @@ var Search = (_a) => {
2566
2569
  "removeRoundness",
2567
2570
  "autocompletePadding"
2568
2571
  ]);
2569
- const inputRef = (0, import_react10.useRef)(null);
2570
- const inputContainerRef = (0, import_react10.useRef)(null);
2571
- const preventFocusOnInitialRender = (0, import_react10.useRef)(true);
2572
- const [show, setShow] = (0, import_react10.useState)(false);
2573
- const [clearing, setClearing] = (0, import_react10.useState)(false);
2574
- const uniqueId = (0, import_react10.useId)();
2572
+ const inputRef = (0, import_react11.useRef)(null);
2573
+ const inputContainerRef = (0, import_react11.useRef)(null);
2574
+ const preventFocusOnInitialRender = (0, import_react11.useRef)(true);
2575
+ const [show, setShow] = (0, import_react11.useState)(false);
2576
+ const [clearing, setClearing] = (0, import_react11.useState)(false);
2577
+ const uniqueId = (0, import_react11.useId)();
2575
2578
  const searchMenuName = `search-menu-${uniqueId}`;
2576
- (0, import_react10.useEffect)(() => {
2579
+ (0, import_react11.useEffect)(() => {
2577
2580
  var _a2;
2578
2581
  if (preventFocusOnInitialRender.current) {
2579
2582
  preventFocusOnInitialRender.current = false;
@@ -2657,7 +2660,7 @@ Search.displayName = "Search";
2657
2660
 
2658
2661
  // src/components/DataGridCell.tsx
2659
2662
  var import_jsx_runtime13 = require("react/jsx-runtime");
2660
- var DataGridCell = (0, import_react11.memo)(
2663
+ var DataGridCell = (0, import_react12.memo)(
2661
2664
  (_a) => {
2662
2665
  var _b = _a, {
2663
2666
  id,
@@ -2699,10 +2702,10 @@ var DataGridCell = (0, import_react11.memo)(
2699
2702
  "testid"
2700
2703
  ]);
2701
2704
  const Element = type === "header" ? "th" : "td";
2702
- const timerRef = (0, import_react11.useRef)(null);
2703
- const [isGrabbing, setIsGrabbing] = (0, import_react11.useState)(false);
2704
- const [isPointerPressed, setIsPointerPressed] = (0, import_react11.useState)(false);
2705
- (0, import_react11.useEffect)(() => {
2705
+ const timerRef = (0, import_react12.useRef)(null);
2706
+ const [isGrabbing, setIsGrabbing] = (0, import_react12.useState)(false);
2707
+ const [isPointerPressed, setIsPointerPressed] = (0, import_react12.useState)(false);
2708
+ (0, import_react12.useEffect)(() => {
2706
2709
  return () => {
2707
2710
  if (timerRef.current) {
2708
2711
  clearTimeout(timerRef.current);
@@ -2812,12 +2815,12 @@ function DataCellHeader(_a) {
2812
2815
  "useMenuDefaultMinWidth"
2813
2816
  ]);
2814
2817
  var _a2;
2815
- const [showMenu, setShowMenu] = (0, import_react11.useState)(false);
2816
- const [filter, setFilter] = (0, import_react11.useState)(
2818
+ const [showMenu, setShowMenu] = (0, import_react12.useState)(false);
2819
+ const [filter, setFilter] = (0, import_react12.useState)(
2817
2820
  (_a2 = header.column.getFilterValue()) != null ? _a2 : ""
2818
2821
  );
2819
- const ref = (0, import_react11.useRef)(null);
2820
- const predeterminedPinned = (0, import_react11.useRef)(false);
2822
+ const ref = (0, import_react12.useRef)(null);
2823
+ const predeterminedPinned = (0, import_react12.useRef)(false);
2821
2824
  const { column, getContext } = header;
2822
2825
  const { id: columnId, setFilterValue } = column;
2823
2826
  const {
@@ -2827,14 +2830,14 @@ function DataCellHeader(_a) {
2827
2830
  listeners: subMenuListeners,
2828
2831
  mobileHide
2829
2832
  } = useSubMenuSystem(node ? node : ref);
2830
- (0, import_react11.useEffect)(() => {
2833
+ (0, import_react12.useEffect)(() => {
2831
2834
  var _a3, _b2, _c;
2832
2835
  const columnPinning = (_a3 = getContext().table.options.initialState) == null ? void 0 : _a3.columnPinning;
2833
2836
  const left = (_b2 = columnPinning == null ? void 0 : columnPinning.left) != null ? _b2 : [];
2834
2837
  const right = (_c = columnPinning == null ? void 0 : columnPinning.right) != null ? _c : [];
2835
2838
  predeterminedPinned.current = [...left, ...right].includes(columnId);
2836
2839
  }, [columnId, getContext]);
2837
- (0, import_react11.useEffect)(() => {
2840
+ (0, import_react12.useEffect)(() => {
2838
2841
  const handler = setTimeout(() => {
2839
2842
  setFilterValue(filter);
2840
2843
  }, 500);
@@ -3097,7 +3100,7 @@ function DragAlongCell(_a) {
3097
3100
  DragAlongCell.displayName = "DragAlongCell";
3098
3101
 
3099
3102
  // src/components/DataGrid/index.tsx
3100
- var import_react16 = __toESM(require("react"), 1);
3103
+ var import_react17 = __toESM(require("react"), 1);
3101
3104
  var import_react_table3 = require("@tanstack/react-table");
3102
3105
  var import_core = require("@dnd-kit/core");
3103
3106
  var import_sortable2 = require("@dnd-kit/sortable");
@@ -3125,7 +3128,7 @@ function getSortIcon(sort, nextSort = false) {
3125
3128
  }
3126
3129
 
3127
3130
  // src/components/DataGrid/PinnedColumns.tsx
3128
- var import_react15 = __toESM(require("react"), 1);
3131
+ var import_react16 = __toESM(require("react"), 1);
3129
3132
 
3130
3133
  // src/components/DataGrid/TableBody/index.tsx
3131
3134
  var import_react_virtual = require("@tanstack/react-virtual");
@@ -3134,7 +3137,7 @@ var import_clsx15 = __toESM(require("clsx"), 1);
3134
3137
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
3135
3138
  var import_clsx14 = __toESM(require("clsx"), 1);
3136
3139
  var import_react_table = require("@tanstack/react-table");
3137
- var import_react12 = __toESM(require("react"), 1);
3140
+ var import_react13 = __toESM(require("react"), 1);
3138
3141
  var import_jsx_runtime15 = require("react/jsx-runtime");
3139
3142
  var valueFormatters = {
3140
3143
  date: (value) => typeof value === "string" ? formatDate(value) : "",
@@ -3202,7 +3205,7 @@ function TableBodyRow({
3202
3205
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
3203
3206
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
3204
3207
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
3205
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react12.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3208
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react13.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3206
3209
  CellElement,
3207
3210
  {
3208
3211
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
@@ -3416,10 +3419,10 @@ function TableBody({
3416
3419
  }
3417
3420
 
3418
3421
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
3419
- var import_react14 = require("react");
3422
+ var import_react15 = require("react");
3420
3423
 
3421
3424
  // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
3422
- var import_react13 = require("react");
3425
+ var import_react14 = require("react");
3423
3426
  var import_jsx_runtime18 = require("react/jsx-runtime");
3424
3427
  function ColumnSelectorMenuOption({
3425
3428
  id,
@@ -3427,7 +3430,7 @@ function ColumnSelectorMenuOption({
3427
3430
  column,
3428
3431
  toggleColumnVisibility
3429
3432
  }) {
3430
- const [isVisible, setIsVisible] = (0, import_react13.useState)(column.getIsVisible());
3433
+ const [isVisible, setIsVisible] = (0, import_react14.useState)(column.getIsVisible());
3431
3434
  const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
3432
3435
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3433
3436
  Checkbox,
@@ -3453,8 +3456,8 @@ function ColumnSelectorHeaderCell({
3453
3456
  toggleColumnVisibility,
3454
3457
  resetColumnVisibility
3455
3458
  }) {
3456
- const ref = (0, import_react14.useRef)(null);
3457
- const [show, setShow] = (0, import_react14.useState)(false);
3459
+ const ref = (0, import_react15.useRef)(null);
3460
+ const [show, setShow] = (0, import_react15.useState)(false);
3458
3461
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3459
3462
  DataGridCell,
3460
3463
  {
@@ -3623,7 +3626,7 @@ function PinnedColumns(_a) {
3623
3626
  header.id
3624
3627
  );
3625
3628
  }
3626
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3629
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react16.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3627
3630
  Checkbox,
3628
3631
  {
3629
3632
  checked: allSelectedAcrossPages,
@@ -3705,23 +3708,23 @@ function DataGrid({
3705
3708
  ref
3706
3709
  }) {
3707
3710
  var _a, _b, _c, _d, _e, _f, _g;
3708
- (0, import_react16.useImperativeHandle)(ref, () => ({
3711
+ (0, import_react17.useImperativeHandle)(ref, () => ({
3709
3712
  getSavedLayout: () => {
3710
3713
  return getSavedLayout();
3711
3714
  }
3712
3715
  }));
3713
- const [localSorting, setLocalSorting] = (0, import_react16.useState)([]);
3714
- const [localColumnFilters, setLocalColumnFilters] = (0, import_react16.useState)([]);
3715
- const [localRowSelection, setLocalRowSelection] = (0, import_react16.useState)({});
3716
+ const [localSorting, setLocalSorting] = (0, import_react17.useState)([]);
3717
+ const [localColumnFilters, setLocalColumnFilters] = (0, import_react17.useState)([]);
3718
+ const [localRowSelection, setLocalRowSelection] = (0, import_react17.useState)({});
3716
3719
  const {
3717
3720
  columns: tableColumns,
3718
3721
  setColumns: setTableColumns,
3719
3722
  getSavedLayout
3720
3723
  } = useTableLayout(columns, id != null ? id : testid);
3721
- const [columnOrder, setColumnOrder] = (0, import_react16.useState)(
3724
+ const [columnOrder, setColumnOrder] = (0, import_react17.useState)(
3722
3725
  tableColumns.map((c) => c.id)
3723
3726
  );
3724
- const [columnVisibility, setColumnVisibility] = (0, import_react16.useState)(
3727
+ const [columnVisibility, setColumnVisibility] = (0, import_react17.useState)(
3725
3728
  Object.fromEntries(
3726
3729
  tableColumns.filter((column) => !!column.id).map((column) => {
3727
3730
  var _a2, _b2;
@@ -3729,7 +3732,7 @@ function DataGrid({
3729
3732
  })
3730
3733
  )
3731
3734
  );
3732
- const updateColumnVisibility = (0, import_react16.useCallback)(
3735
+ const updateColumnVisibility = (0, import_react17.useCallback)(
3733
3736
  (updateOrder) => {
3734
3737
  setColumnVisibility(
3735
3738
  Object.fromEntries(
@@ -3743,7 +3746,7 @@ function DataGrid({
3743
3746
  },
3744
3747
  [tableColumns]
3745
3748
  );
3746
- const resetDefaultColumnVisibility = (0, import_react16.useCallback)(() => {
3749
+ const resetDefaultColumnVisibility = (0, import_react17.useCallback)(() => {
3747
3750
  setTableColumns((prev) => {
3748
3751
  columns.forEach((column) => {
3749
3752
  var _a2, _b2;
@@ -3759,7 +3762,7 @@ function DataGrid({
3759
3762
  return [...prev];
3760
3763
  }, true);
3761
3764
  }, [columns, setTableColumns]);
3762
- (0, import_react16.useEffect)(() => {
3765
+ (0, import_react17.useEffect)(() => {
3763
3766
  updateColumnVisibility(true);
3764
3767
  }, [updateColumnVisibility]);
3765
3768
  const sortingState = pagination ? externalSorting != null ? externalSorting : localSorting : localSorting;
@@ -3775,7 +3778,7 @@ function DataGrid({
3775
3778
  (onColumnFiltersChange != null ? onColumnFiltersChange : setLocalColumnFilters)(value);
3776
3779
  } : setLocalColumnFilters;
3777
3780
  const rowSelection = externalRowSelection != null ? externalRowSelection : localRowSelection;
3778
- const setRowSelection = (0, import_react16.useCallback)(
3781
+ const setRowSelection = (0, import_react17.useCallback)(
3779
3782
  (updaterOrValue) => {
3780
3783
  if (pagination) {
3781
3784
  const value = typeof updaterOrValue === "function" ? updaterOrValue(externalRowSelection != null ? externalRowSelection : {}) : updaterOrValue;
@@ -3789,9 +3792,9 @@ function DataGrid({
3789
3792
  },
3790
3793
  [externalRowSelection, onRowSelectionChange, pagination]
3791
3794
  );
3792
- const dndId = (0, import_react16.useId)();
3793
- const containerRef = import_react16.default.useRef(null);
3794
- const toggleColumnVisibility = (0, import_react16.useCallback)(
3795
+ const dndId = (0, import_react17.useId)();
3796
+ const containerRef = import_react17.default.useRef(null);
3797
+ const toggleColumnVisibility = (0, import_react17.useCallback)(
3795
3798
  (columnId, isVisible) => {
3796
3799
  setTableColumns((prev) => {
3797
3800
  const persistedIndex = prev.findIndex((col) => col.id === columnId);
@@ -4039,7 +4042,7 @@ function DataGrid({
4039
4042
  header.id
4040
4043
  );
4041
4044
  }
4042
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react16.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4045
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react17.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4043
4046
  DataGridCell,
4044
4047
  {
4045
4048
  id: id ? `${id}-header-${header.id}` : void 0,
@@ -4245,7 +4248,7 @@ function adaptTableStateSetter(setter) {
4245
4248
  }
4246
4249
 
4247
4250
  // src/components/Select.tsx
4248
- var import_react17 = require("react");
4251
+ var import_react18 = require("react");
4249
4252
  var import_clsx18 = __toESM(require("clsx"), 1);
4250
4253
  var import_jsx_runtime22 = require("react/jsx-runtime");
4251
4254
  var Select = (_a) => {
@@ -4279,11 +4282,11 @@ var Select = (_a) => {
4279
4282
  "value"
4280
4283
  ]);
4281
4284
  var _a2;
4282
- const inputRef = (0, import_react17.useRef)(null);
4283
- const inputContainerRef = (0, import_react17.useRef)(null);
4284
- const preventFocusOnInitialRender = (0, import_react17.useRef)(true);
4285
- const [show, setShow] = (0, import_react17.useState)(false);
4286
- (0, import_react17.useEffect)(() => {
4285
+ const inputRef = (0, import_react18.useRef)(null);
4286
+ const inputContainerRef = (0, import_react18.useRef)(null);
4287
+ const preventFocusOnInitialRender = (0, import_react18.useRef)(true);
4288
+ const [show, setShow] = (0, import_react18.useState)(false);
4289
+ (0, import_react18.useEffect)(() => {
4287
4290
  var _a3;
4288
4291
  if (preventFocusOnInitialRender.current) {
4289
4292
  preventFocusOnInitialRender.current = false;
@@ -4581,7 +4584,7 @@ Button.displayName = "Button";
4581
4584
 
4582
4585
  // src/components/Tooltip.tsx
4583
4586
  var import_clsx21 = __toESM(require("clsx"), 1);
4584
- var import_react18 = require("react");
4587
+ var import_react19 = require("react");
4585
4588
  var import_react_dom2 = require("react-dom");
4586
4589
  var import_jsx_runtime26 = require("react/jsx-runtime");
4587
4590
  var Tooltip = ({
@@ -4594,11 +4597,11 @@ var Tooltip = ({
4594
4597
  offset = 8,
4595
4598
  keepHidden = false
4596
4599
  }) => {
4597
- const ref = (0, import_react18.useRef)(null);
4598
- const tooltipRef = (0, import_react18.useRef)(null);
4599
- const [tooltipPosition, setTooltipPosition] = (0, import_react18.useState)({ top: 0, left: 0 });
4600
- const [isVisible, setIsVisible] = (0, import_react18.useState)(false);
4601
- const [removeOpacity, setRemoveOpacity] = (0, import_react18.useState)(false);
4600
+ const ref = (0, import_react19.useRef)(null);
4601
+ const tooltipRef = (0, import_react19.useRef)(null);
4602
+ const [tooltipPosition, setTooltipPosition] = (0, import_react19.useState)({ top: 0, left: 0 });
4603
+ const [isVisible, setIsVisible] = (0, import_react19.useState)(false);
4604
+ const [removeOpacity, setRemoveOpacity] = (0, import_react19.useState)(false);
4602
4605
  const updatePosition = () => {
4603
4606
  if (!ref.current || !tooltipRef.current) return;
4604
4607
  const rect = ref.current.getBoundingClientRect();
@@ -4637,14 +4640,14 @@ var Tooltip = ({
4637
4640
  setIsVisible(false);
4638
4641
  setRemoveOpacity(false);
4639
4642
  };
4640
- (0, import_react18.useEffect)(() => {
4643
+ (0, import_react19.useEffect)(() => {
4641
4644
  if (isVisible && tooltipRef.current) {
4642
4645
  requestAnimationFrame(() => {
4643
4646
  updatePosition();
4644
4647
  });
4645
4648
  }
4646
4649
  }, [isVisible]);
4647
- (0, import_react18.useEffect)(() => {
4650
+ (0, import_react19.useEffect)(() => {
4648
4651
  if (isVisible) {
4649
4652
  window.addEventListener("resize", updatePosition);
4650
4653
  return () => window.removeEventListener("resize", updatePosition);
@@ -4702,12 +4705,12 @@ var Tooltip = ({
4702
4705
  Tooltip.displayName = "Tooltip";
4703
4706
 
4704
4707
  // src/components/DateInput.tsx
4705
- var import_react20 = require("react");
4708
+ var import_react21 = require("react");
4706
4709
  var import_react_dom3 = require("react-dom");
4707
4710
 
4708
4711
  // src/components/CalendarRange.tsx
4709
4712
  var import_clsx22 = __toESM(require("clsx"), 1);
4710
- var import_react19 = __toESM(require("react"), 1);
4713
+ var import_react20 = __toESM(require("react"), 1);
4711
4714
  var import_polyfill = require("@js-temporal/polyfill");
4712
4715
  var import_jsx_runtime27 = require("react/jsx-runtime");
4713
4716
  function DateCell(_a) {
@@ -4820,20 +4823,20 @@ function CalendarRange({
4820
4823
  const fromDate = parseDate(from);
4821
4824
  const toDate = parseDate(to);
4822
4825
  const today = import_polyfill.Temporal.Now.plainDateISO();
4823
- const [baseMonth, setBaseMonth] = (0, import_react19.useState)(
4826
+ const [baseMonth, setBaseMonth] = (0, import_react20.useState)(
4824
4827
  fromDate != null ? fromDate : today.with({ day: 1 })
4825
4828
  );
4826
- const [selecting, setSelecting] = (0, import_react19.useState)("from");
4827
- const [pendingFrom, setPendingFrom] = (0, import_react19.useState)(void 0);
4828
- const [hoveredDate, setHoveredDate] = (0, import_react19.useState)(void 0);
4829
- (0, import_react19.useEffect)(() => {
4829
+ const [selecting, setSelecting] = (0, import_react20.useState)("from");
4830
+ const [pendingFrom, setPendingFrom] = (0, import_react20.useState)(void 0);
4831
+ const [hoveredDate, setHoveredDate] = (0, import_react20.useState)(void 0);
4832
+ (0, import_react20.useEffect)(() => {
4830
4833
  if (fromDate) {
4831
4834
  setBaseMonth(fromDate.with({ day: 1 }));
4832
4835
  } else if (toDate) {
4833
4836
  setBaseMonth(toDate.with({ day: 1 }));
4834
4837
  }
4835
4838
  }, [from, to]);
4836
- (0, import_react19.useEffect)(() => {
4839
+ (0, import_react20.useEffect)(() => {
4837
4840
  if (fromDate && toDate) {
4838
4841
  setSelecting("from");
4839
4842
  setPendingFrom(void 0);
@@ -4979,14 +4982,14 @@ function CalendarPane({
4979
4982
  const years = Array.from({ length: 100 }).map(
4980
4983
  (_, i) => baseMonth.year - 50 + i
4981
4984
  );
4982
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react19.useState)(false);
4983
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react19.useState)(false);
4984
- const monthMenuRef = (0, import_react19.useRef)(null);
4985
- const yearMenuRef = (0, import_react19.useRef)(null);
4985
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react20.useState)(false);
4986
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react20.useState)(false);
4987
+ const monthMenuRef = (0, import_react20.useRef)(null);
4988
+ const yearMenuRef = (0, import_react20.useRef)(null);
4986
4989
  const month = getMonthData(offset);
4987
4990
  const totalCells = 42;
4988
4991
  const emptyCells = month.firstDayOffset;
4989
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react19.default.Fragment, { children: [
4992
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react20.default.Fragment, { children: [
4990
4993
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4991
4994
  "div",
4992
4995
  {
@@ -5194,24 +5197,24 @@ var DateInput = (_a) => {
5194
5197
  "label",
5195
5198
  "isDateAvailable"
5196
5199
  ]);
5197
- const [visible, setVisible] = (0, import_react20.useState)(false);
5198
- const [inputValue, setInputValue] = (0, import_react20.useState)("");
5199
- const [isTyping, setIsTyping] = (0, import_react20.useState)(false);
5200
- const popoverRef = (0, import_react20.useRef)(null);
5201
- const triggerRef = (0, import_react20.useRef)(null);
5202
- const rootRef = (0, import_react20.useRef)(null);
5203
- const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
5200
+ const [visible, setVisible] = (0, import_react21.useState)(false);
5201
+ const [inputValue, setInputValue] = (0, import_react21.useState)("");
5202
+ const [isTyping, setIsTyping] = (0, import_react21.useState)(false);
5203
+ const popoverRef = (0, import_react21.useRef)(null);
5204
+ const triggerRef = (0, import_react21.useRef)(null);
5205
+ const rootRef = (0, import_react21.useRef)(null);
5206
+ const [calendarPosition, setCalendarPosition] = (0, import_react21.useState)({
5204
5207
  top: 0,
5205
5208
  left: 0,
5206
5209
  width: 0
5207
5210
  });
5208
5211
  const [from, to] = [value, ""];
5209
- (0, import_react20.useEffect)(() => {
5212
+ (0, import_react21.useEffect)(() => {
5210
5213
  if (!isTyping) {
5211
5214
  setInputValue(formatDisplayValue(from));
5212
5215
  }
5213
5216
  }, [from, isTyping]);
5214
- (0, import_react20.useLayoutEffect)(() => {
5217
+ (0, import_react21.useLayoutEffect)(() => {
5215
5218
  if (visible) {
5216
5219
  updatePosition();
5217
5220
  }
@@ -5226,7 +5229,7 @@ var DateInput = (_a) => {
5226
5229
  });
5227
5230
  }
5228
5231
  };
5229
- (0, import_react20.useEffect)(() => {
5232
+ (0, import_react21.useEffect)(() => {
5230
5233
  updatePosition();
5231
5234
  const resizeObserver = new ResizeObserver(updatePosition);
5232
5235
  if (triggerRef.current) {
@@ -5238,7 +5241,7 @@ var DateInput = (_a) => {
5238
5241
  window.removeEventListener("scroll", updatePosition);
5239
5242
  };
5240
5243
  }, []);
5241
- (0, import_react20.useEffect)(() => {
5244
+ (0, import_react21.useEffect)(() => {
5242
5245
  const handleKeyDown2 = (event) => {
5243
5246
  var _a2;
5244
5247
  if (event.key === "Escape" && popoverRef.current) {
@@ -5251,7 +5254,7 @@ var DateInput = (_a) => {
5251
5254
  document.removeEventListener("keydown", handleKeyDown2);
5252
5255
  };
5253
5256
  });
5254
- (0, import_react20.useEffect)(() => {
5257
+ (0, import_react21.useEffect)(() => {
5255
5258
  const handleClickOutside = (event) => {
5256
5259
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
5257
5260
  setVisible(false);
@@ -5412,18 +5415,18 @@ var import_jsx_runtime29 = require("react/jsx-runtime");
5412
5415
  var import_jsx_runtime30 = require("react/jsx-runtime");
5413
5416
 
5414
5417
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
5415
- var import_react22 = require("react");
5418
+ var import_react23 = require("react");
5416
5419
 
5417
5420
  // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
5418
- var import_react21 = require("react");
5419
- var GridContext = (0, import_react21.createContext)(null);
5421
+ var import_react22 = require("react");
5422
+ var GridContext = (0, import_react22.createContext)(null);
5420
5423
 
5421
5424
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
5422
5425
  var import_jsx_runtime31 = require("react/jsx-runtime");
5423
5426
 
5424
5427
  // src/components/Modal.tsx
5425
5428
  var import_clsx29 = __toESM(require("clsx"), 1);
5426
- var import_react24 = require("react");
5429
+ var import_react25 = require("react");
5427
5430
 
5428
5431
  // src/components/ModalHeader.tsx
5429
5432
  var import_clsx25 = __toESM(require("clsx"), 1);
@@ -5599,10 +5602,10 @@ var import_react_dom4 = require("react-dom");
5599
5602
  var import_react_use = require("react-use");
5600
5603
 
5601
5604
  // src/components/useMounted.tsx
5602
- var import_react23 = require("react");
5605
+ var import_react24 = require("react");
5603
5606
  var useMounted = () => {
5604
- const [isMounted, setIsMounted] = (0, import_react23.useState)(false);
5605
- (0, import_react23.useEffect)(() => {
5607
+ const [isMounted, setIsMounted] = (0, import_react24.useState)(false);
5608
+ (0, import_react24.useEffect)(() => {
5606
5609
  setIsMounted(true);
5607
5610
  return () => setIsMounted(false);
5608
5611
  }, []);
@@ -5696,12 +5699,12 @@ var Modal = ({
5696
5699
  }) => {
5697
5700
  var _a;
5698
5701
  const mounted = useMounted();
5699
- const modalRef = (0, import_react24.useRef)(null);
5700
- const bgRef = (0, import_react24.useRef)(null);
5702
+ const modalRef = (0, import_react25.useRef)(null);
5703
+ const bgRef = (0, import_react25.useRef)(null);
5701
5704
  const wasOpen = (0, import_react_use.usePrevious)(open);
5702
5705
  const isMobile = useMatchesMobile();
5703
5706
  const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
5704
- (0, import_react24.useEffect)(() => {
5707
+ (0, import_react25.useEffect)(() => {
5705
5708
  if (!mounted) return;
5706
5709
  if (!modalRef.current || !bgRef.current) {
5707
5710
  console.error("Modal or background reference is not set.");
@@ -5721,7 +5724,7 @@ var Modal = ({
5721
5724
  bgFadeIn(bgRef.current);
5722
5725
  }
5723
5726
  }, [mounted, onClose, open, wasOpen]);
5724
- const handleKeyDown = (0, import_react24.useCallback)(
5727
+ const handleKeyDown = (0, import_react25.useCallback)(
5725
5728
  (e) => {
5726
5729
  if (e.key === "Escape") {
5727
5730
  if (onClose) {
@@ -5732,12 +5735,12 @@ var Modal = ({
5732
5735
  },
5733
5736
  [onClose]
5734
5737
  );
5735
- const handleClose = (0, import_react24.useCallback)(() => {
5738
+ const handleClose = (0, import_react25.useCallback)(() => {
5736
5739
  if (onClose) {
5737
5740
  onClose();
5738
5741
  }
5739
5742
  }, [onClose]);
5740
- (0, import_react24.useEffect)(() => {
5743
+ (0, import_react25.useEffect)(() => {
5741
5744
  if (open) {
5742
5745
  document.addEventListener("keyup", handleKeyDown);
5743
5746
  }
@@ -5745,7 +5748,7 @@ var Modal = ({
5745
5748
  document.removeEventListener("keyup", handleKeyDown);
5746
5749
  };
5747
5750
  }, [open, handleKeyDown]);
5748
- (0, import_react24.useEffect)(() => {
5751
+ (0, import_react25.useEffect)(() => {
5749
5752
  if (!open) return;
5750
5753
  const scrollY = window.scrollY;
5751
5754
  const body = document.body;
@@ -5766,7 +5769,7 @@ var Modal = ({
5766
5769
  };
5767
5770
  }, [open]);
5768
5771
  const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
5769
- const backgroundClickHandler = (0, import_react24.useCallback)(
5772
+ const backgroundClickHandler = (0, import_react25.useCallback)(
5770
5773
  (e) => {
5771
5774
  const target = e.target;
5772
5775
  const currentTarget = e.currentTarget;
@@ -5853,9 +5856,9 @@ var Modal = ({
5853
5856
  Modal.displayName = "Modal";
5854
5857
 
5855
5858
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
5856
- var import_react25 = require("react");
5859
+ var import_react26 = require("react");
5857
5860
  function useGridContext() {
5858
- const ctx = (0, import_react25.useContext)(GridContext);
5861
+ const ctx = (0, import_react26.useContext)(GridContext);
5859
5862
  if (!ctx) {
5860
5863
  throw new Error("useGridContext must be used within GridContextProvider");
5861
5864
  }
@@ -5885,10 +5888,10 @@ var import_jsx_runtime41 = require("react/jsx-runtime");
5885
5888
  var import_jsx_runtime42 = require("react/jsx-runtime");
5886
5889
 
5887
5890
  // src/components/ProductImagePreview/Thumbnail.tsx
5888
- var import_react27 = require("react");
5891
+ var import_react28 = require("react");
5889
5892
 
5890
5893
  // src/components/ImagePlaceholder.tsx
5891
- var import_react26 = require("react");
5894
+ var import_react27 = require("react");
5892
5895
  var import_jsx_runtime43 = require("react/jsx-runtime");
5893
5896
 
5894
5897
  // src/components/ProductImagePreview/Thumbnail.tsx
@@ -5899,11 +5902,11 @@ var import_clsx32 = __toESM(require("clsx"), 1);
5899
5902
  var import_jsx_runtime45 = require("react/jsx-runtime");
5900
5903
 
5901
5904
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
5902
- var import_react28 = require("react");
5905
+ var import_react29 = require("react");
5903
5906
  var import_jsx_runtime46 = require("react/jsx-runtime");
5904
5907
 
5905
5908
  // src/components/ProductImagePreview/ZoomWindow.tsx
5906
- var import_react29 = require("react");
5909
+ var import_react30 = require("react");
5907
5910
 
5908
5911
  // src/components/Surface.tsx
5909
5912
  var import_clsx33 = __toESM(require("clsx"), 1);
@@ -5948,17 +5951,17 @@ var import_clsx34 = require("clsx");
5948
5951
  var import_jsx_runtime49 = require("react/jsx-runtime");
5949
5952
 
5950
5953
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
5951
- var import_react30 = require("react");
5954
+ var import_react31 = require("react");
5952
5955
  var import_jsx_runtime50 = require("react/jsx-runtime");
5953
5956
 
5954
5957
  // src/components/ProductImagePreview/useProductImagePreview.ts
5955
- var import_react31 = require("react");
5958
+ var import_react32 = require("react");
5956
5959
 
5957
5960
  // src/components/ProductImagePreview/index.tsx
5958
5961
  var import_jsx_runtime51 = require("react/jsx-runtime");
5959
5962
 
5960
5963
  // src/components/CompactImagesPreview.tsx
5961
- var import_react32 = require("react");
5964
+ var import_react33 = require("react");
5962
5965
  var import_clsx35 = __toESM(require("clsx"), 1);
5963
5966
  var import_jsx_runtime52 = require("react/jsx-runtime");
5964
5967
 
@@ -5967,12 +5970,12 @@ var import_clsx36 = __toESM(require("clsx"), 1);
5967
5970
  var import_jsx_runtime53 = require("react/jsx-runtime");
5968
5971
 
5969
5972
  // src/components/ListGroup.tsx
5970
- var import_react33 = require("react");
5973
+ var import_react34 = require("react");
5971
5974
  var import_clsx37 = __toESM(require("clsx"), 1);
5972
5975
  var import_jsx_runtime54 = require("react/jsx-runtime");
5973
5976
 
5974
5977
  // src/components/Pagination.tsx
5975
- var import_react34 = require("react");
5978
+ var import_react35 = require("react");
5976
5979
  var import_clsx38 = __toESM(require("clsx"), 1);
5977
5980
  var import_jsx_runtime55 = require("react/jsx-runtime");
5978
5981
  var Pagination = ({
@@ -5984,7 +5987,7 @@ var Pagination = ({
5984
5987
  className,
5985
5988
  disabled
5986
5989
  }) => {
5987
- const goTo = (0, import_react34.useCallback)(
5990
+ const goTo = (0, import_react35.useCallback)(
5988
5991
  (page) => {
5989
5992
  if (disabled) return;
5990
5993
  onPageChange(page);
@@ -6001,7 +6004,7 @@ var Pagination = ({
6001
6004
  goTo(currentPage + 1);
6002
6005
  }
6003
6006
  };
6004
- const pageTokens = (0, import_react34.useMemo)(() => {
6007
+ const pageTokens = (0, import_react35.useMemo)(() => {
6005
6008
  if (totalPages <= 5) {
6006
6009
  return Array.from({ length: totalPages }, (_, i) => i + 1);
6007
6010
  }
@@ -6124,21 +6127,21 @@ var import_jsx_runtime56 = require("react/jsx-runtime");
6124
6127
  var import_jsx_runtime57 = require("react/jsx-runtime");
6125
6128
 
6126
6129
  // src/components/SearchResultImage/index.tsx
6127
- var import_react35 = require("react");
6130
+ var import_react36 = require("react");
6128
6131
  var import_jsx_runtime58 = require("react/jsx-runtime");
6129
6132
 
6130
6133
  // src/components/Alert.tsx
6131
6134
  var import_clsx39 = __toESM(require("clsx"), 1);
6132
- var import_react36 = require("react");
6135
+ var import_react37 = require("react");
6133
6136
  var import_jsx_runtime59 = require("react/jsx-runtime");
6134
6137
 
6135
6138
  // src/components/OrderCheckIcon.tsx
6136
6139
  var import_jsx_runtime60 = require("react/jsx-runtime");
6137
6140
 
6138
6141
  // src/components/EditingContext.tsx
6139
- var import_react37 = require("react");
6142
+ var import_react38 = require("react");
6140
6143
  var import_jsx_runtime61 = require("react/jsx-runtime");
6141
- var EditingContext = (0, import_react37.createContext)(null);
6144
+ var EditingContext = (0, import_react38.createContext)(null);
6142
6145
 
6143
6146
  // src/components/AccessCard.tsx
6144
6147
  var import_clsx41 = __toESM(require("clsx"), 1);
@@ -6272,15 +6275,15 @@ var import_jsx_runtime63 = require("react/jsx-runtime");
6272
6275
 
6273
6276
  // src/components/AccessCardGroup.tsx
6274
6277
  var import_clsx42 = __toESM(require("clsx"), 1);
6275
- var import_react38 = require("react");
6278
+ var import_react39 = require("react");
6276
6279
  var import_jsx_runtime64 = require("react/jsx-runtime");
6277
6280
 
6278
6281
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
6279
6282
  var import_jsx_runtime65 = require("react/jsx-runtime");
6280
6283
  function ColumnSelector() {
6281
6284
  const context = useGridContext();
6282
- const ref = (0, import_react39.useRef)(null);
6283
- const [show, setShow] = (0, import_react39.useState)(false);
6285
+ const ref = (0, import_react40.useRef)(null);
6286
+ const [show, setShow] = (0, import_react40.useState)(false);
6284
6287
  const {
6285
6288
  columns,
6286
6289
  id,
@@ -6291,7 +6294,7 @@ function ColumnSelector() {
6291
6294
  resetColumnVisibility,
6292
6295
  dispatch
6293
6296
  } = context;
6294
- const toggleColumnVisibility = (0, import_react39.useCallback)(
6297
+ const toggleColumnVisibility = (0, import_react40.useCallback)(
6295
6298
  (index, visible) => {
6296
6299
  dispatch({ type: "UPDATE", index, payload: { meta: { visible } } });
6297
6300
  },