@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
@@ -62,7 +62,7 @@ __export(ColumnSelectorMenuOption_exports, {
62
62
  ColumnSelectorMenuOption: () => ColumnSelectorMenuOption
63
63
  });
64
64
  module.exports = __toCommonJS(ColumnSelectorMenuOption_exports);
65
- var import_react39 = require("react");
65
+ var import_react40 = require("react");
66
66
 
67
67
  // src/components/DataGridCell.tsx
68
68
  var import_sortable = require("@dnd-kit/sortable");
@@ -117,7 +117,7 @@ var CSS = /* @__PURE__ */ Object.freeze({
117
117
 
118
118
  // src/components/DataGridCell.tsx
119
119
  var import_clsx9 = __toESM(require("clsx"), 1);
120
- var import_react11 = require("react");
120
+ var import_react12 = require("react");
121
121
 
122
122
  // src/classNames.ts
123
123
  var import_clsx = __toESM(require("clsx"), 1);
@@ -261,7 +261,7 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
261
261
 
262
262
  // src/components/MenuOption.tsx
263
263
  var import_clsx6 = __toESM(require("clsx"), 1);
264
- var import_react6 = require("react");
264
+ var import_react7 = require("react");
265
265
 
266
266
  // src/components/Label.tsx
267
267
  var import_clsx2 = __toESM(require("clsx"), 1);
@@ -711,6 +711,9 @@ function useTableLayout(initialColumns, key, autosync = true) {
711
711
  return { columns, setColumns: handleSaveLayout, isReady, getSavedLayout };
712
712
  }
713
713
 
714
+ // src/hooks/useEditCell.tsx
715
+ var import_react6 = require("react");
716
+
714
717
  // src/components/Caption.tsx
715
718
  var import_clsx5 = __toESM(require("clsx"), 1);
716
719
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -862,12 +865,12 @@ var MenuOption = ({
862
865
  onMouseMove,
863
866
  small = false
864
867
  }) => {
865
- const uniqueId = (0, import_react6.useId)();
866
- const internalRef = (0, import_react6.useRef)(null);
868
+ const uniqueId = (0, import_react7.useId)();
869
+ const internalRef = (0, import_react7.useRef)(null);
867
870
  const actualRef = ref || internalRef;
868
- const menuId = (0, import_react6.useRef)(`menu-${uniqueId}`);
871
+ const menuId = (0, import_react7.useRef)(`menu-${uniqueId}`);
869
872
  const isMobile = useMatchesMobile();
870
- const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react6.useState)(false);
873
+ const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react7.useState)(false);
871
874
  const handleMouseEnter = () => {
872
875
  if (subMenu && onSubMenuHover && !disabled) {
873
876
  onSubMenuHover(menuId.current, subMenuLevel);
@@ -1027,27 +1030,27 @@ function highlightMatch(text, searchValue) {
1027
1030
 
1028
1031
  // src/components/Menu.tsx
1029
1032
  var import_clsx7 = __toESM(require("clsx"), 1);
1030
- var import_react8 = require("react");
1033
+ var import_react9 = require("react");
1031
1034
  var import_react_dom = require("react-dom");
1032
1035
 
1033
1036
  // src/components/useMenuSystem.tsx
1034
- var import_react7 = require("react");
1037
+ var import_react8 = require("react");
1035
1038
  function useSubMenuSystem(mobilePositionTo) {
1036
- const [activeMenus, setActiveMenus] = (0, import_react7.useState)(
1039
+ const [activeMenus, setActiveMenus] = (0, import_react8.useState)(
1037
1040
  {}
1038
1041
  );
1039
- const [activeMenu, setActiveMenu] = (0, import_react7.useState)("");
1040
- const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react7.useState)(
1042
+ const [activeMenu, setActiveMenu] = (0, import_react8.useState)("");
1043
+ const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react8.useState)(
1041
1044
  null
1042
1045
  );
1043
- const menuRootRef = (0, import_react7.useRef)(null);
1044
- const subMenuRefs = (0, import_react7.useRef)({});
1045
- const hoverTimeoutRef = (0, import_react7.useRef)(null);
1046
- const closeTimeoutRef = (0, import_react7.useRef)(null);
1047
- const mouseStopTimeoutRef = (0, import_react7.useRef)(null);
1048
- const isMouseMovingRef = (0, import_react7.useRef)(false);
1049
- const pendingOpenActionRef = (0, import_react7.useRef)(null);
1050
- const pendingCloseActionRef = (0, import_react7.useRef)(null);
1046
+ const menuRootRef = (0, import_react8.useRef)(null);
1047
+ const subMenuRefs = (0, import_react8.useRef)({});
1048
+ const hoverTimeoutRef = (0, import_react8.useRef)(null);
1049
+ const closeTimeoutRef = (0, import_react8.useRef)(null);
1050
+ const mouseStopTimeoutRef = (0, import_react8.useRef)(null);
1051
+ const isMouseMovingRef = (0, import_react8.useRef)(false);
1052
+ const pendingOpenActionRef = (0, import_react8.useRef)(null);
1053
+ const pendingCloseActionRef = (0, import_react8.useRef)(null);
1051
1054
  const isMobile = useMatchesMobile();
1052
1055
  const toggleMenu = (menuId, level) => {
1053
1056
  if (closeTimeoutRef.current) {
@@ -1087,7 +1090,7 @@ function useSubMenuSystem(mobilePositionTo) {
1087
1090
  return newActiveMenus;
1088
1091
  });
1089
1092
  };
1090
- const executePendingActions = (0, import_react7.useCallback)(() => {
1093
+ const executePendingActions = (0, import_react8.useCallback)(() => {
1091
1094
  if (pendingCloseActionRef.current) {
1092
1095
  pendingCloseActionRef.current();
1093
1096
  pendingCloseActionRef.current = null;
@@ -1176,7 +1179,7 @@ function useSubMenuSystem(mobilePositionTo) {
1176
1179
  const isMenuActive = (menuId, level) => {
1177
1180
  return activeMenus[level] === menuId;
1178
1181
  };
1179
- (0, import_react7.useEffect)(() => {
1182
+ (0, import_react8.useEffect)(() => {
1180
1183
  const handleClickOutside = (event) => {
1181
1184
  var _a;
1182
1185
  if (Object.keys(activeMenus).length === 0) return;
@@ -1195,7 +1198,7 @@ function useSubMenuSystem(mobilePositionTo) {
1195
1198
  document.removeEventListener("mousedown", handleClickOutside);
1196
1199
  };
1197
1200
  }, [activeMenus]);
1198
- (0, import_react7.useEffect)(() => {
1201
+ (0, import_react8.useEffect)(() => {
1199
1202
  return () => {
1200
1203
  if (hoverTimeoutRef.current) {
1201
1204
  clearTimeout(hoverTimeoutRef.current);
@@ -1273,13 +1276,13 @@ function useSubMenuSystem(mobilePositionTo) {
1273
1276
  };
1274
1277
  }
1275
1278
  function useMenuPosition(elementRef, position = "bottom", options) {
1276
- const [menuPosition, setMenuPosition] = (0, import_react7.useState)({
1279
+ const [menuPosition, setMenuPosition] = (0, import_react8.useState)({
1277
1280
  top: 0,
1278
1281
  left: 0,
1279
1282
  minWidth: 0
1280
1283
  });
1281
1284
  const isMobile = options == null ? void 0 : options.isMobile;
1282
- const updatePosition = (0, import_react7.useCallback)(() => {
1285
+ const updatePosition = (0, import_react8.useCallback)(() => {
1283
1286
  var _a, _b, _c;
1284
1287
  if (!(elementRef == null ? void 0 : elementRef.current)) return;
1285
1288
  const triggerRect = elementRef.current.getBoundingClientRect();
@@ -1327,7 +1330,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1327
1330
  minWidth: triggerRect.width
1328
1331
  });
1329
1332
  }, [elementRef, position, options == null ? void 0 : options.menuRef, options == null ? void 0 : options.topOffset, isMobile]);
1330
- (0, import_react7.useEffect)(() => {
1333
+ (0, import_react8.useEffect)(() => {
1331
1334
  if (!(options == null ? void 0 : options.isOpen) || !(options == null ? void 0 : options.setIsOpen)) return;
1332
1335
  const handleClickOutside = (event) => {
1333
1336
  var _a, _b, _c, _d, _e;
@@ -1353,7 +1356,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1353
1356
  options == null ? void 0 : options.menuRef,
1354
1357
  options == null ? void 0 : options.additionalRefs
1355
1358
  ]);
1356
- (0, import_react7.useEffect)(() => {
1359
+ (0, import_react8.useEffect)(() => {
1357
1360
  updatePosition();
1358
1361
  const resizeObserver = new ResizeObserver(updatePosition);
1359
1362
  if (elementRef == null ? void 0 : elementRef.current) {
@@ -1434,9 +1437,9 @@ var Menu = (_a) => {
1434
1437
  "menuName",
1435
1438
  "calculateMinMaxHeight"
1436
1439
  ]);
1437
- const internalRef = (0, import_react8.useRef)(null);
1440
+ const internalRef = (0, import_react9.useRef)(null);
1438
1441
  const actualRef = ref || internalRef;
1439
- const [maxHeight, setMaxHeight] = (0, import_react8.useState)("180px");
1442
+ const [maxHeight, setMaxHeight] = (0, import_react9.useState)("180px");
1440
1443
  const isMobile = useMatchesMobile();
1441
1444
  const { menuPosition, updatePosition } = useMenuPosition(
1442
1445
  isMobile && mobilePositionTo ? mobilePositionTo : positionTo,
@@ -1449,7 +1452,7 @@ var Menu = (_a) => {
1449
1452
  isMobile: !!(isMobile && mobilePositionTo)
1450
1453
  }
1451
1454
  );
1452
- (0, import_react8.useEffect)(() => {
1455
+ (0, import_react9.useEffect)(() => {
1453
1456
  if (calculateMinMaxHeight) {
1454
1457
  return;
1455
1458
  }
@@ -1473,7 +1476,7 @@ var Menu = (_a) => {
1473
1476
  cancelAnimationFrame(raf);
1474
1477
  };
1475
1478
  }, [actualRef.current, customMaxHeight, calculateMinMaxHeight]);
1476
- (0, import_react8.useEffect)(() => {
1479
+ (0, import_react9.useEffect)(() => {
1477
1480
  if (!calculateMinMaxHeight) {
1478
1481
  return;
1479
1482
  }
@@ -1484,14 +1487,14 @@ var Menu = (_a) => {
1484
1487
  setMaxHeight(`${calculatedMaxHeight}px`);
1485
1488
  }
1486
1489
  }, [actualRef.current, positionTo == null ? void 0 : positionTo.current, calculateMinMaxHeight]);
1487
- (0, import_react8.useEffect)(() => {
1490
+ (0, import_react9.useEffect)(() => {
1488
1491
  if (!show) {
1489
1492
  return;
1490
1493
  }
1491
1494
  initializeMenuFocus();
1492
1495
  updatePosition();
1493
1496
  }, [show, updatePosition]);
1494
- (0, import_react8.useEffect)(() => {
1497
+ (0, import_react9.useEffect)(() => {
1495
1498
  if (!show || !setShow) {
1496
1499
  return;
1497
1500
  }
@@ -1645,10 +1648,10 @@ var Menu = (_a) => {
1645
1648
  Menu.displayName = "Menu";
1646
1649
 
1647
1650
  // src/components/Search.tsx
1648
- var import_react10 = require("react");
1651
+ var import_react11 = require("react");
1649
1652
 
1650
1653
  // src/components/Input.tsx
1651
- var import_react9 = require("react");
1654
+ var import_react10 = require("react");
1652
1655
  var import_clsx8 = __toESM(require("clsx"), 1);
1653
1656
  var import_jsx_runtime7 = require("react/jsx-runtime");
1654
1657
  var InputBase = (_a) => {
@@ -1705,9 +1708,9 @@ var InputBase = (_a) => {
1705
1708
  "data-error": error && !focus || null,
1706
1709
  "data-focus": focus || null
1707
1710
  };
1708
- const inputRef = (0, import_react9.useRef)(null);
1711
+ const inputRef = (0, import_react10.useRef)(null);
1709
1712
  const inputId = id ? `${id}-input` : void 0;
1710
- (0, import_react9.useEffect)(() => {
1713
+ (0, import_react10.useEffect)(() => {
1711
1714
  var _a2;
1712
1715
  const input = inputRef.current;
1713
1716
  const focusHandler = () => {
@@ -1866,15 +1869,15 @@ var Input = (_a) => {
1866
1869
  "testid",
1867
1870
  "rightAdornment"
1868
1871
  ]);
1869
- const [internalValue, setInternalValue] = (0, import_react9.useState)("");
1870
- const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
1871
- (0, import_react9.useEffect)(() => {
1872
+ const [internalValue, setInternalValue] = (0, import_react10.useState)("");
1873
+ const [displayValue, setDisplayValue] = (0, import_react10.useState)("");
1874
+ (0, import_react10.useEffect)(() => {
1872
1875
  var _a2;
1873
1876
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
1874
1877
  setInternalValue(stringValue);
1875
1878
  setDisplayValue(stringValue);
1876
1879
  }, [propValue]);
1877
- (0, import_react9.useEffect)(() => {
1880
+ (0, import_react10.useEffect)(() => {
1878
1881
  var _a2;
1879
1882
  if (variant !== "currency") {
1880
1883
  return;
@@ -2135,14 +2138,14 @@ var Search = (_a) => {
2135
2138
  "removeRoundness",
2136
2139
  "autocompletePadding"
2137
2140
  ]);
2138
- const inputRef = (0, import_react10.useRef)(null);
2139
- const inputContainerRef = (0, import_react10.useRef)(null);
2140
- const preventFocusOnInitialRender = (0, import_react10.useRef)(true);
2141
- const [show, setShow] = (0, import_react10.useState)(false);
2142
- const [clearing, setClearing] = (0, import_react10.useState)(false);
2143
- const uniqueId = (0, import_react10.useId)();
2141
+ const inputRef = (0, import_react11.useRef)(null);
2142
+ const inputContainerRef = (0, import_react11.useRef)(null);
2143
+ const preventFocusOnInitialRender = (0, import_react11.useRef)(true);
2144
+ const [show, setShow] = (0, import_react11.useState)(false);
2145
+ const [clearing, setClearing] = (0, import_react11.useState)(false);
2146
+ const uniqueId = (0, import_react11.useId)();
2144
2147
  const searchMenuName = `search-menu-${uniqueId}`;
2145
- (0, import_react10.useEffect)(() => {
2148
+ (0, import_react11.useEffect)(() => {
2146
2149
  var _a2;
2147
2150
  if (preventFocusOnInitialRender.current) {
2148
2151
  preventFocusOnInitialRender.current = false;
@@ -2226,7 +2229,7 @@ Search.displayName = "Search";
2226
2229
 
2227
2230
  // src/components/DataGridCell.tsx
2228
2231
  var import_jsx_runtime9 = require("react/jsx-runtime");
2229
- var DataGridCell = (0, import_react11.memo)(
2232
+ var DataGridCell = (0, import_react12.memo)(
2230
2233
  (_a) => {
2231
2234
  var _b = _a, {
2232
2235
  id,
@@ -2268,10 +2271,10 @@ var DataGridCell = (0, import_react11.memo)(
2268
2271
  "testid"
2269
2272
  ]);
2270
2273
  const Element = type === "header" ? "th" : "td";
2271
- const timerRef = (0, import_react11.useRef)(null);
2272
- const [isGrabbing, setIsGrabbing] = (0, import_react11.useState)(false);
2273
- const [isPointerPressed, setIsPointerPressed] = (0, import_react11.useState)(false);
2274
- (0, import_react11.useEffect)(() => {
2274
+ const timerRef = (0, import_react12.useRef)(null);
2275
+ const [isGrabbing, setIsGrabbing] = (0, import_react12.useState)(false);
2276
+ const [isPointerPressed, setIsPointerPressed] = (0, import_react12.useState)(false);
2277
+ (0, import_react12.useEffect)(() => {
2275
2278
  return () => {
2276
2279
  if (timerRef.current) {
2277
2280
  clearTimeout(timerRef.current);
@@ -2381,12 +2384,12 @@ function DataCellHeader(_a) {
2381
2384
  "useMenuDefaultMinWidth"
2382
2385
  ]);
2383
2386
  var _a2;
2384
- const [showMenu, setShowMenu] = (0, import_react11.useState)(false);
2385
- const [filter, setFilter] = (0, import_react11.useState)(
2387
+ const [showMenu, setShowMenu] = (0, import_react12.useState)(false);
2388
+ const [filter, setFilter] = (0, import_react12.useState)(
2386
2389
  (_a2 = header.column.getFilterValue()) != null ? _a2 : ""
2387
2390
  );
2388
- const ref = (0, import_react11.useRef)(null);
2389
- const predeterminedPinned = (0, import_react11.useRef)(false);
2391
+ const ref = (0, import_react12.useRef)(null);
2392
+ const predeterminedPinned = (0, import_react12.useRef)(false);
2390
2393
  const { column, getContext } = header;
2391
2394
  const { id: columnId, setFilterValue } = column;
2392
2395
  const {
@@ -2396,14 +2399,14 @@ function DataCellHeader(_a) {
2396
2399
  listeners: subMenuListeners,
2397
2400
  mobileHide
2398
2401
  } = useSubMenuSystem(node ? node : ref);
2399
- (0, import_react11.useEffect)(() => {
2402
+ (0, import_react12.useEffect)(() => {
2400
2403
  var _a3, _b2, _c;
2401
2404
  const columnPinning = (_a3 = getContext().table.options.initialState) == null ? void 0 : _a3.columnPinning;
2402
2405
  const left = (_b2 = columnPinning == null ? void 0 : columnPinning.left) != null ? _b2 : [];
2403
2406
  const right = (_c = columnPinning == null ? void 0 : columnPinning.right) != null ? _c : [];
2404
2407
  predeterminedPinned.current = [...left, ...right].includes(columnId);
2405
2408
  }, [columnId, getContext]);
2406
- (0, import_react11.useEffect)(() => {
2409
+ (0, import_react12.useEffect)(() => {
2407
2410
  const handler = setTimeout(() => {
2408
2411
  setFilterValue(filter);
2409
2412
  }, 500);
@@ -2666,7 +2669,7 @@ function DragAlongCell(_a) {
2666
2669
  DragAlongCell.displayName = "DragAlongCell";
2667
2670
 
2668
2671
  // src/components/DataGrid/index.tsx
2669
- var import_react15 = __toESM(require("react"), 1);
2672
+ var import_react16 = __toESM(require("react"), 1);
2670
2673
  var import_react_table3 = require("@tanstack/react-table");
2671
2674
  var import_core = require("@dnd-kit/core");
2672
2675
  var import_sortable2 = require("@dnd-kit/sortable");
@@ -2694,7 +2697,7 @@ function getSortIcon(sort, nextSort = false) {
2694
2697
  }
2695
2698
 
2696
2699
  // src/components/DataGrid/PinnedColumns.tsx
2697
- var import_react14 = __toESM(require("react"), 1);
2700
+ var import_react15 = __toESM(require("react"), 1);
2698
2701
 
2699
2702
  // src/components/DataGrid/TableBody/index.tsx
2700
2703
  var import_react_virtual = require("@tanstack/react-virtual");
@@ -2703,7 +2706,7 @@ var import_clsx12 = __toESM(require("clsx"), 1);
2703
2706
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
2704
2707
  var import_clsx11 = __toESM(require("clsx"), 1);
2705
2708
  var import_react_table = require("@tanstack/react-table");
2706
- var import_react12 = __toESM(require("react"), 1);
2709
+ var import_react13 = __toESM(require("react"), 1);
2707
2710
  var import_jsx_runtime11 = require("react/jsx-runtime");
2708
2711
  var valueFormatters = {
2709
2712
  date: (value) => typeof value === "string" ? formatDate(value) : "",
@@ -2771,7 +2774,7 @@ function TableBodyRow({
2771
2774
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
2772
2775
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
2773
2776
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
2774
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react12.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2777
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react13.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2775
2778
  CellElement,
2776
2779
  {
2777
2780
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
@@ -2985,7 +2988,7 @@ function TableBody({
2985
2988
  }
2986
2989
 
2987
2990
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
2988
- var import_react13 = require("react");
2991
+ var import_react14 = require("react");
2989
2992
  var import_jsx_runtime14 = require("react/jsx-runtime");
2990
2993
  function ColumnSelectorHeaderCell({
2991
2994
  id,
@@ -2994,8 +2997,8 @@ function ColumnSelectorHeaderCell({
2994
2997
  toggleColumnVisibility,
2995
2998
  resetColumnVisibility
2996
2999
  }) {
2997
- const ref = (0, import_react13.useRef)(null);
2998
- const [show, setShow] = (0, import_react13.useState)(false);
3000
+ const ref = (0, import_react14.useRef)(null);
3001
+ const [show, setShow] = (0, import_react14.useState)(false);
2999
3002
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
3000
3003
  DataGridCell,
3001
3004
  {
@@ -3164,7 +3167,7 @@ function PinnedColumns(_a) {
3164
3167
  header.id
3165
3168
  );
3166
3169
  }
3167
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react14.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3170
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3168
3171
  Checkbox,
3169
3172
  {
3170
3173
  checked: allSelectedAcrossPages,
@@ -3246,23 +3249,23 @@ function DataGrid({
3246
3249
  ref
3247
3250
  }) {
3248
3251
  var _a, _b, _c, _d, _e, _f, _g;
3249
- (0, import_react15.useImperativeHandle)(ref, () => ({
3252
+ (0, import_react16.useImperativeHandle)(ref, () => ({
3250
3253
  getSavedLayout: () => {
3251
3254
  return getSavedLayout();
3252
3255
  }
3253
3256
  }));
3254
- const [localSorting, setLocalSorting] = (0, import_react15.useState)([]);
3255
- const [localColumnFilters, setLocalColumnFilters] = (0, import_react15.useState)([]);
3256
- const [localRowSelection, setLocalRowSelection] = (0, import_react15.useState)({});
3257
+ const [localSorting, setLocalSorting] = (0, import_react16.useState)([]);
3258
+ const [localColumnFilters, setLocalColumnFilters] = (0, import_react16.useState)([]);
3259
+ const [localRowSelection, setLocalRowSelection] = (0, import_react16.useState)({});
3257
3260
  const {
3258
3261
  columns: tableColumns,
3259
3262
  setColumns: setTableColumns,
3260
3263
  getSavedLayout
3261
3264
  } = useTableLayout(columns, id != null ? id : testid);
3262
- const [columnOrder, setColumnOrder] = (0, import_react15.useState)(
3265
+ const [columnOrder, setColumnOrder] = (0, import_react16.useState)(
3263
3266
  tableColumns.map((c) => c.id)
3264
3267
  );
3265
- const [columnVisibility, setColumnVisibility] = (0, import_react15.useState)(
3268
+ const [columnVisibility, setColumnVisibility] = (0, import_react16.useState)(
3266
3269
  Object.fromEntries(
3267
3270
  tableColumns.filter((column) => !!column.id).map((column) => {
3268
3271
  var _a2, _b2;
@@ -3270,7 +3273,7 @@ function DataGrid({
3270
3273
  })
3271
3274
  )
3272
3275
  );
3273
- const updateColumnVisibility = (0, import_react15.useCallback)(
3276
+ const updateColumnVisibility = (0, import_react16.useCallback)(
3274
3277
  (updateOrder) => {
3275
3278
  setColumnVisibility(
3276
3279
  Object.fromEntries(
@@ -3284,7 +3287,7 @@ function DataGrid({
3284
3287
  },
3285
3288
  [tableColumns]
3286
3289
  );
3287
- const resetDefaultColumnVisibility = (0, import_react15.useCallback)(() => {
3290
+ const resetDefaultColumnVisibility = (0, import_react16.useCallback)(() => {
3288
3291
  setTableColumns((prev) => {
3289
3292
  columns.forEach((column) => {
3290
3293
  var _a2, _b2;
@@ -3300,7 +3303,7 @@ function DataGrid({
3300
3303
  return [...prev];
3301
3304
  }, true);
3302
3305
  }, [columns, setTableColumns]);
3303
- (0, import_react15.useEffect)(() => {
3306
+ (0, import_react16.useEffect)(() => {
3304
3307
  updateColumnVisibility(true);
3305
3308
  }, [updateColumnVisibility]);
3306
3309
  const sortingState = pagination ? externalSorting != null ? externalSorting : localSorting : localSorting;
@@ -3316,7 +3319,7 @@ function DataGrid({
3316
3319
  (onColumnFiltersChange != null ? onColumnFiltersChange : setLocalColumnFilters)(value);
3317
3320
  } : setLocalColumnFilters;
3318
3321
  const rowSelection = externalRowSelection != null ? externalRowSelection : localRowSelection;
3319
- const setRowSelection = (0, import_react15.useCallback)(
3322
+ const setRowSelection = (0, import_react16.useCallback)(
3320
3323
  (updaterOrValue) => {
3321
3324
  if (pagination) {
3322
3325
  const value = typeof updaterOrValue === "function" ? updaterOrValue(externalRowSelection != null ? externalRowSelection : {}) : updaterOrValue;
@@ -3330,9 +3333,9 @@ function DataGrid({
3330
3333
  },
3331
3334
  [externalRowSelection, onRowSelectionChange, pagination]
3332
3335
  );
3333
- const dndId = (0, import_react15.useId)();
3334
- const containerRef = import_react15.default.useRef(null);
3335
- const toggleColumnVisibility = (0, import_react15.useCallback)(
3336
+ const dndId = (0, import_react16.useId)();
3337
+ const containerRef = import_react16.default.useRef(null);
3338
+ const toggleColumnVisibility = (0, import_react16.useCallback)(
3336
3339
  (columnId, isVisible) => {
3337
3340
  setTableColumns((prev) => {
3338
3341
  const persistedIndex = prev.findIndex((col) => col.id === columnId);
@@ -3580,7 +3583,7 @@ function DataGrid({
3580
3583
  header.id
3581
3584
  );
3582
3585
  }
3583
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3586
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react16.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3584
3587
  DataGridCell,
3585
3588
  {
3586
3589
  id: id ? `${id}-header-${header.id}` : void 0,
@@ -3786,7 +3789,7 @@ function adaptTableStateSetter(setter) {
3786
3789
  }
3787
3790
 
3788
3791
  // src/components/Select.tsx
3789
- var import_react16 = require("react");
3792
+ var import_react17 = require("react");
3790
3793
  var import_clsx15 = __toESM(require("clsx"), 1);
3791
3794
  var import_jsx_runtime17 = require("react/jsx-runtime");
3792
3795
  var Select = (_a) => {
@@ -3820,11 +3823,11 @@ var Select = (_a) => {
3820
3823
  "value"
3821
3824
  ]);
3822
3825
  var _a2;
3823
- const inputRef = (0, import_react16.useRef)(null);
3824
- const inputContainerRef = (0, import_react16.useRef)(null);
3825
- const preventFocusOnInitialRender = (0, import_react16.useRef)(true);
3826
- const [show, setShow] = (0, import_react16.useState)(false);
3827
- (0, import_react16.useEffect)(() => {
3826
+ const inputRef = (0, import_react17.useRef)(null);
3827
+ const inputContainerRef = (0, import_react17.useRef)(null);
3828
+ const preventFocusOnInitialRender = (0, import_react17.useRef)(true);
3829
+ const [show, setShow] = (0, import_react17.useState)(false);
3830
+ (0, import_react17.useEffect)(() => {
3828
3831
  var _a3;
3829
3832
  if (preventFocusOnInitialRender.current) {
3830
3833
  preventFocusOnInitialRender.current = false;
@@ -4246,7 +4249,7 @@ Button.displayName = "Button";
4246
4249
 
4247
4250
  // src/components/Tooltip.tsx
4248
4251
  var import_clsx19 = __toESM(require("clsx"), 1);
4249
- var import_react17 = require("react");
4252
+ var import_react18 = require("react");
4250
4253
  var import_react_dom2 = require("react-dom");
4251
4254
  var import_jsx_runtime22 = require("react/jsx-runtime");
4252
4255
  var Tooltip = ({
@@ -4259,11 +4262,11 @@ var Tooltip = ({
4259
4262
  offset = 8,
4260
4263
  keepHidden = false
4261
4264
  }) => {
4262
- const ref = (0, import_react17.useRef)(null);
4263
- const tooltipRef = (0, import_react17.useRef)(null);
4264
- const [tooltipPosition, setTooltipPosition] = (0, import_react17.useState)({ top: 0, left: 0 });
4265
- const [isVisible, setIsVisible] = (0, import_react17.useState)(false);
4266
- const [removeOpacity, setRemoveOpacity] = (0, import_react17.useState)(false);
4265
+ const ref = (0, import_react18.useRef)(null);
4266
+ const tooltipRef = (0, import_react18.useRef)(null);
4267
+ const [tooltipPosition, setTooltipPosition] = (0, import_react18.useState)({ top: 0, left: 0 });
4268
+ const [isVisible, setIsVisible] = (0, import_react18.useState)(false);
4269
+ const [removeOpacity, setRemoveOpacity] = (0, import_react18.useState)(false);
4267
4270
  const updatePosition = () => {
4268
4271
  if (!ref.current || !tooltipRef.current) return;
4269
4272
  const rect = ref.current.getBoundingClientRect();
@@ -4302,14 +4305,14 @@ var Tooltip = ({
4302
4305
  setIsVisible(false);
4303
4306
  setRemoveOpacity(false);
4304
4307
  };
4305
- (0, import_react17.useEffect)(() => {
4308
+ (0, import_react18.useEffect)(() => {
4306
4309
  if (isVisible && tooltipRef.current) {
4307
4310
  requestAnimationFrame(() => {
4308
4311
  updatePosition();
4309
4312
  });
4310
4313
  }
4311
4314
  }, [isVisible]);
4312
- (0, import_react17.useEffect)(() => {
4315
+ (0, import_react18.useEffect)(() => {
4313
4316
  if (isVisible) {
4314
4317
  window.addEventListener("resize", updatePosition);
4315
4318
  return () => window.removeEventListener("resize", updatePosition);
@@ -4367,12 +4370,12 @@ var Tooltip = ({
4367
4370
  Tooltip.displayName = "Tooltip";
4368
4371
 
4369
4372
  // src/components/DateInput.tsx
4370
- var import_react19 = require("react");
4373
+ var import_react20 = require("react");
4371
4374
  var import_react_dom3 = require("react-dom");
4372
4375
 
4373
4376
  // src/components/CalendarRange.tsx
4374
4377
  var import_clsx20 = __toESM(require("clsx"), 1);
4375
- var import_react18 = __toESM(require("react"), 1);
4378
+ var import_react19 = __toESM(require("react"), 1);
4376
4379
  var import_polyfill = require("@js-temporal/polyfill");
4377
4380
  var import_jsx_runtime23 = require("react/jsx-runtime");
4378
4381
  function DateCell(_a) {
@@ -4485,20 +4488,20 @@ function CalendarRange({
4485
4488
  const fromDate = parseDate(from);
4486
4489
  const toDate = parseDate(to);
4487
4490
  const today = import_polyfill.Temporal.Now.plainDateISO();
4488
- const [baseMonth, setBaseMonth] = (0, import_react18.useState)(
4491
+ const [baseMonth, setBaseMonth] = (0, import_react19.useState)(
4489
4492
  fromDate != null ? fromDate : today.with({ day: 1 })
4490
4493
  );
4491
- const [selecting, setSelecting] = (0, import_react18.useState)("from");
4492
- const [pendingFrom, setPendingFrom] = (0, import_react18.useState)(void 0);
4493
- const [hoveredDate, setHoveredDate] = (0, import_react18.useState)(void 0);
4494
- (0, import_react18.useEffect)(() => {
4494
+ const [selecting, setSelecting] = (0, import_react19.useState)("from");
4495
+ const [pendingFrom, setPendingFrom] = (0, import_react19.useState)(void 0);
4496
+ const [hoveredDate, setHoveredDate] = (0, import_react19.useState)(void 0);
4497
+ (0, import_react19.useEffect)(() => {
4495
4498
  if (fromDate) {
4496
4499
  setBaseMonth(fromDate.with({ day: 1 }));
4497
4500
  } else if (toDate) {
4498
4501
  setBaseMonth(toDate.with({ day: 1 }));
4499
4502
  }
4500
4503
  }, [from, to]);
4501
- (0, import_react18.useEffect)(() => {
4504
+ (0, import_react19.useEffect)(() => {
4502
4505
  if (fromDate && toDate) {
4503
4506
  setSelecting("from");
4504
4507
  setPendingFrom(void 0);
@@ -4644,14 +4647,14 @@ function CalendarPane({
4644
4647
  const years = Array.from({ length: 100 }).map(
4645
4648
  (_, i) => baseMonth.year - 50 + i
4646
4649
  );
4647
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react18.useState)(false);
4648
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react18.useState)(false);
4649
- const monthMenuRef = (0, import_react18.useRef)(null);
4650
- const yearMenuRef = (0, import_react18.useRef)(null);
4650
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react19.useState)(false);
4651
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react19.useState)(false);
4652
+ const monthMenuRef = (0, import_react19.useRef)(null);
4653
+ const yearMenuRef = (0, import_react19.useRef)(null);
4651
4654
  const month = getMonthData(offset);
4652
4655
  const totalCells = 42;
4653
4656
  const emptyCells = month.firstDayOffset;
4654
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react18.default.Fragment, { children: [
4657
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react19.default.Fragment, { children: [
4655
4658
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4656
4659
  "div",
4657
4660
  {
@@ -4859,24 +4862,24 @@ var DateInput = (_a) => {
4859
4862
  "label",
4860
4863
  "isDateAvailable"
4861
4864
  ]);
4862
- const [visible, setVisible] = (0, import_react19.useState)(false);
4863
- const [inputValue, setInputValue] = (0, import_react19.useState)("");
4864
- const [isTyping, setIsTyping] = (0, import_react19.useState)(false);
4865
- const popoverRef = (0, import_react19.useRef)(null);
4866
- const triggerRef = (0, import_react19.useRef)(null);
4867
- const rootRef = (0, import_react19.useRef)(null);
4868
- const [calendarPosition, setCalendarPosition] = (0, import_react19.useState)({
4865
+ const [visible, setVisible] = (0, import_react20.useState)(false);
4866
+ const [inputValue, setInputValue] = (0, import_react20.useState)("");
4867
+ const [isTyping, setIsTyping] = (0, import_react20.useState)(false);
4868
+ const popoverRef = (0, import_react20.useRef)(null);
4869
+ const triggerRef = (0, import_react20.useRef)(null);
4870
+ const rootRef = (0, import_react20.useRef)(null);
4871
+ const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
4869
4872
  top: 0,
4870
4873
  left: 0,
4871
4874
  width: 0
4872
4875
  });
4873
4876
  const [from, to] = [value, ""];
4874
- (0, import_react19.useEffect)(() => {
4877
+ (0, import_react20.useEffect)(() => {
4875
4878
  if (!isTyping) {
4876
4879
  setInputValue(formatDisplayValue(from));
4877
4880
  }
4878
4881
  }, [from, isTyping]);
4879
- (0, import_react19.useLayoutEffect)(() => {
4882
+ (0, import_react20.useLayoutEffect)(() => {
4880
4883
  if (visible) {
4881
4884
  updatePosition();
4882
4885
  }
@@ -4891,7 +4894,7 @@ var DateInput = (_a) => {
4891
4894
  });
4892
4895
  }
4893
4896
  };
4894
- (0, import_react19.useEffect)(() => {
4897
+ (0, import_react20.useEffect)(() => {
4895
4898
  updatePosition();
4896
4899
  const resizeObserver = new ResizeObserver(updatePosition);
4897
4900
  if (triggerRef.current) {
@@ -4903,7 +4906,7 @@ var DateInput = (_a) => {
4903
4906
  window.removeEventListener("scroll", updatePosition);
4904
4907
  };
4905
4908
  }, []);
4906
- (0, import_react19.useEffect)(() => {
4909
+ (0, import_react20.useEffect)(() => {
4907
4910
  const handleKeyDown2 = (event) => {
4908
4911
  var _a2;
4909
4912
  if (event.key === "Escape" && popoverRef.current) {
@@ -4916,7 +4919,7 @@ var DateInput = (_a) => {
4916
4919
  document.removeEventListener("keydown", handleKeyDown2);
4917
4920
  };
4918
4921
  });
4919
- (0, import_react19.useEffect)(() => {
4922
+ (0, import_react20.useEffect)(() => {
4920
4923
  const handleClickOutside = (event) => {
4921
4924
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4922
4925
  setVisible(false);
@@ -5137,14 +5140,14 @@ Heading3.displayName = "Heading3";
5137
5140
  var import_jsx_runtime29 = require("react/jsx-runtime");
5138
5141
 
5139
5142
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
5140
- var import_react22 = require("react");
5143
+ var import_react23 = require("react");
5141
5144
 
5142
5145
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
5143
- var import_react21 = require("react");
5146
+ var import_react22 = require("react");
5144
5147
 
5145
5148
  // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
5146
- var import_react20 = require("react");
5147
- var GridContext = (0, import_react20.createContext)(null);
5149
+ var import_react21 = require("react");
5150
+ var GridContext = (0, import_react21.createContext)(null);
5148
5151
 
5149
5152
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
5150
5153
  var import_jsx_runtime30 = require("react/jsx-runtime");
@@ -5153,12 +5156,12 @@ var import_jsx_runtime30 = require("react/jsx-runtime");
5153
5156
  var import_jsx_runtime31 = require("react/jsx-runtime");
5154
5157
 
5155
5158
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
5156
- var import_react23 = require("react");
5159
+ var import_react24 = require("react");
5157
5160
  var import_jsx_runtime32 = require("react/jsx-runtime");
5158
5161
 
5159
5162
  // src/components/Modal.tsx
5160
5163
  var import_clsx29 = __toESM(require("clsx"), 1);
5161
- var import_react25 = require("react");
5164
+ var import_react26 = require("react");
5162
5165
 
5163
5166
  // src/components/ModalHeader.tsx
5164
5167
  var import_clsx25 = __toESM(require("clsx"), 1);
@@ -5334,10 +5337,10 @@ var import_react_dom4 = require("react-dom");
5334
5337
  var import_react_use = require("react-use");
5335
5338
 
5336
5339
  // src/components/useMounted.tsx
5337
- var import_react24 = require("react");
5340
+ var import_react25 = require("react");
5338
5341
  var useMounted = () => {
5339
- const [isMounted, setIsMounted] = (0, import_react24.useState)(false);
5340
- (0, import_react24.useEffect)(() => {
5342
+ const [isMounted, setIsMounted] = (0, import_react25.useState)(false);
5343
+ (0, import_react25.useEffect)(() => {
5341
5344
  setIsMounted(true);
5342
5345
  return () => setIsMounted(false);
5343
5346
  }, []);
@@ -5431,12 +5434,12 @@ var Modal = ({
5431
5434
  }) => {
5432
5435
  var _a;
5433
5436
  const mounted = useMounted();
5434
- const modalRef = (0, import_react25.useRef)(null);
5435
- const bgRef = (0, import_react25.useRef)(null);
5437
+ const modalRef = (0, import_react26.useRef)(null);
5438
+ const bgRef = (0, import_react26.useRef)(null);
5436
5439
  const wasOpen = (0, import_react_use.usePrevious)(open);
5437
5440
  const isMobile = useMatchesMobile();
5438
5441
  const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
5439
- (0, import_react25.useEffect)(() => {
5442
+ (0, import_react26.useEffect)(() => {
5440
5443
  if (!mounted) return;
5441
5444
  if (!modalRef.current || !bgRef.current) {
5442
5445
  console.error("Modal or background reference is not set.");
@@ -5456,7 +5459,7 @@ var Modal = ({
5456
5459
  bgFadeIn(bgRef.current);
5457
5460
  }
5458
5461
  }, [mounted, onClose, open, wasOpen]);
5459
- const handleKeyDown = (0, import_react25.useCallback)(
5462
+ const handleKeyDown = (0, import_react26.useCallback)(
5460
5463
  (e) => {
5461
5464
  if (e.key === "Escape") {
5462
5465
  if (onClose) {
@@ -5467,12 +5470,12 @@ var Modal = ({
5467
5470
  },
5468
5471
  [onClose]
5469
5472
  );
5470
- const handleClose = (0, import_react25.useCallback)(() => {
5473
+ const handleClose = (0, import_react26.useCallback)(() => {
5471
5474
  if (onClose) {
5472
5475
  onClose();
5473
5476
  }
5474
5477
  }, [onClose]);
5475
- (0, import_react25.useEffect)(() => {
5478
+ (0, import_react26.useEffect)(() => {
5476
5479
  if (open) {
5477
5480
  document.addEventListener("keyup", handleKeyDown);
5478
5481
  }
@@ -5480,7 +5483,7 @@ var Modal = ({
5480
5483
  document.removeEventListener("keyup", handleKeyDown);
5481
5484
  };
5482
5485
  }, [open, handleKeyDown]);
5483
- (0, import_react25.useEffect)(() => {
5486
+ (0, import_react26.useEffect)(() => {
5484
5487
  if (!open) return;
5485
5488
  const scrollY = window.scrollY;
5486
5489
  const body = document.body;
@@ -5501,7 +5504,7 @@ var Modal = ({
5501
5504
  };
5502
5505
  }, [open]);
5503
5506
  const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
5504
- const backgroundClickHandler = (0, import_react25.useCallback)(
5507
+ const backgroundClickHandler = (0, import_react26.useCallback)(
5505
5508
  (e) => {
5506
5509
  const target = e.target;
5507
5510
  const currentTarget = e.currentTarget;
@@ -5610,10 +5613,10 @@ var import_jsx_runtime42 = require("react/jsx-runtime");
5610
5613
  var import_jsx_runtime43 = require("react/jsx-runtime");
5611
5614
 
5612
5615
  // src/components/ProductImagePreview/Thumbnail.tsx
5613
- var import_react27 = require("react");
5616
+ var import_react28 = require("react");
5614
5617
 
5615
5618
  // src/components/ImagePlaceholder.tsx
5616
- var import_react26 = require("react");
5619
+ var import_react27 = require("react");
5617
5620
  var import_jsx_runtime44 = require("react/jsx-runtime");
5618
5621
 
5619
5622
  // src/components/ProductImagePreview/Thumbnail.tsx
@@ -5624,11 +5627,11 @@ var import_clsx32 = __toESM(require("clsx"), 1);
5624
5627
  var import_jsx_runtime46 = require("react/jsx-runtime");
5625
5628
 
5626
5629
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
5627
- var import_react28 = require("react");
5630
+ var import_react29 = require("react");
5628
5631
  var import_jsx_runtime47 = require("react/jsx-runtime");
5629
5632
 
5630
5633
  // src/components/ProductImagePreview/ZoomWindow.tsx
5631
- var import_react29 = require("react");
5634
+ var import_react30 = require("react");
5632
5635
 
5633
5636
  // src/components/Surface.tsx
5634
5637
  var import_clsx33 = __toESM(require("clsx"), 1);
@@ -5673,17 +5676,17 @@ var import_clsx34 = require("clsx");
5673
5676
  var import_jsx_runtime50 = require("react/jsx-runtime");
5674
5677
 
5675
5678
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
5676
- var import_react30 = require("react");
5679
+ var import_react31 = require("react");
5677
5680
  var import_jsx_runtime51 = require("react/jsx-runtime");
5678
5681
 
5679
5682
  // src/components/ProductImagePreview/useProductImagePreview.ts
5680
- var import_react31 = require("react");
5683
+ var import_react32 = require("react");
5681
5684
 
5682
5685
  // src/components/ProductImagePreview/index.tsx
5683
5686
  var import_jsx_runtime52 = require("react/jsx-runtime");
5684
5687
 
5685
5688
  // src/components/CompactImagesPreview.tsx
5686
- var import_react32 = require("react");
5689
+ var import_react33 = require("react");
5687
5690
  var import_clsx35 = __toESM(require("clsx"), 1);
5688
5691
  var import_jsx_runtime53 = require("react/jsx-runtime");
5689
5692
 
@@ -5692,12 +5695,12 @@ var import_clsx36 = __toESM(require("clsx"), 1);
5692
5695
  var import_jsx_runtime54 = require("react/jsx-runtime");
5693
5696
 
5694
5697
  // src/components/ListGroup.tsx
5695
- var import_react33 = require("react");
5698
+ var import_react34 = require("react");
5696
5699
  var import_clsx37 = __toESM(require("clsx"), 1);
5697
5700
  var import_jsx_runtime55 = require("react/jsx-runtime");
5698
5701
 
5699
5702
  // src/components/Pagination.tsx
5700
- var import_react34 = require("react");
5703
+ var import_react35 = require("react");
5701
5704
  var import_clsx38 = __toESM(require("clsx"), 1);
5702
5705
  var import_jsx_runtime56 = require("react/jsx-runtime");
5703
5706
  var Pagination = ({
@@ -5709,7 +5712,7 @@ var Pagination = ({
5709
5712
  className,
5710
5713
  disabled
5711
5714
  }) => {
5712
- const goTo = (0, import_react34.useCallback)(
5715
+ const goTo = (0, import_react35.useCallback)(
5713
5716
  (page) => {
5714
5717
  if (disabled) return;
5715
5718
  onPageChange(page);
@@ -5726,7 +5729,7 @@ var Pagination = ({
5726
5729
  goTo(currentPage + 1);
5727
5730
  }
5728
5731
  };
5729
- const pageTokens = (0, import_react34.useMemo)(() => {
5732
+ const pageTokens = (0, import_react35.useMemo)(() => {
5730
5733
  if (totalPages <= 5) {
5731
5734
  return Array.from({ length: totalPages }, (_, i) => i + 1);
5732
5735
  }
@@ -5849,21 +5852,21 @@ var import_jsx_runtime57 = require("react/jsx-runtime");
5849
5852
  var import_jsx_runtime58 = require("react/jsx-runtime");
5850
5853
 
5851
5854
  // src/components/SearchResultImage/index.tsx
5852
- var import_react35 = require("react");
5855
+ var import_react36 = require("react");
5853
5856
  var import_jsx_runtime59 = require("react/jsx-runtime");
5854
5857
 
5855
5858
  // src/components/Alert.tsx
5856
5859
  var import_clsx39 = __toESM(require("clsx"), 1);
5857
- var import_react36 = require("react");
5860
+ var import_react37 = require("react");
5858
5861
  var import_jsx_runtime60 = require("react/jsx-runtime");
5859
5862
 
5860
5863
  // src/components/OrderCheckIcon.tsx
5861
5864
  var import_jsx_runtime61 = require("react/jsx-runtime");
5862
5865
 
5863
5866
  // src/components/EditingContext.tsx
5864
- var import_react37 = require("react");
5867
+ var import_react38 = require("react");
5865
5868
  var import_jsx_runtime62 = require("react/jsx-runtime");
5866
- var EditingContext = (0, import_react37.createContext)(null);
5869
+ var EditingContext = (0, import_react38.createContext)(null);
5867
5870
 
5868
5871
  // src/components/AccessCard.tsx
5869
5872
  var import_clsx41 = __toESM(require("clsx"), 1);
@@ -5997,7 +6000,7 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
5997
6000
 
5998
6001
  // src/components/AccessCardGroup.tsx
5999
6002
  var import_clsx42 = __toESM(require("clsx"), 1);
6000
- var import_react38 = require("react");
6003
+ var import_react39 = require("react");
6001
6004
  var import_jsx_runtime65 = require("react/jsx-runtime");
6002
6005
 
6003
6006
  // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
@@ -6008,7 +6011,7 @@ function ColumnSelectorMenuOption({
6008
6011
  column,
6009
6012
  toggleColumnVisibility
6010
6013
  }) {
6011
- const [isVisible, setIsVisible] = (0, import_react39.useState)(column.getIsVisible());
6014
+ const [isVisible, setIsVisible] = (0, import_react40.useState)(column.getIsVisible());
6012
6015
  const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
6013
6016
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6014
6017
  Checkbox,