@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
@@ -381,6 +381,9 @@ function useTableLayout(initialColumns, key, autosync = true) {
381
381
  return { columns, setColumns: handleSaveLayout, isReady, getSavedLayout };
382
382
  }
383
383
 
384
+ // src/hooks/useEditCell.tsx
385
+ var import_react5 = require("react");
386
+
384
387
  // src/classNames.ts
385
388
  var import_clsx = __toESM(require("clsx"), 1);
386
389
  var typography = {
@@ -525,7 +528,7 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
525
528
  var import_sortable = require("@dnd-kit/sortable");
526
529
 
527
530
  // ../../node_modules/@dnd-kit/utilities/dist/utilities.esm.js
528
- var import_react5 = require("react");
531
+ var import_react6 = require("react");
529
532
  var canUseDOM = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
530
533
  var CSS = /* @__PURE__ */ Object.freeze({
531
534
  Translate: {
@@ -574,11 +577,11 @@ var CSS = /* @__PURE__ */ Object.freeze({
574
577
 
575
578
  // src/components/DataGridCell.tsx
576
579
  var import_clsx9 = __toESM(require("clsx"), 1);
577
- var import_react11 = require("react");
580
+ var import_react12 = require("react");
578
581
 
579
582
  // src/components/MenuOption.tsx
580
583
  var import_clsx6 = __toESM(require("clsx"), 1);
581
- var import_react6 = require("react");
584
+ var import_react7 = require("react");
582
585
 
583
586
  // src/components/Label.tsx
584
587
  var import_clsx2 = __toESM(require("clsx"), 1);
@@ -863,12 +866,12 @@ var MenuOption = ({
863
866
  onMouseMove,
864
867
  small = false
865
868
  }) => {
866
- const uniqueId = (0, import_react6.useId)();
867
- const internalRef = (0, import_react6.useRef)(null);
869
+ const uniqueId = (0, import_react7.useId)();
870
+ const internalRef = (0, import_react7.useRef)(null);
868
871
  const actualRef = ref || internalRef;
869
- const menuId = (0, import_react6.useRef)(`menu-${uniqueId}`);
872
+ const menuId = (0, import_react7.useRef)(`menu-${uniqueId}`);
870
873
  const isMobile = useMatchesMobile();
871
- const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react6.useState)(false);
874
+ const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react7.useState)(false);
872
875
  const handleMouseEnter = () => {
873
876
  if (subMenu && onSubMenuHover && !disabled) {
874
877
  onSubMenuHover(menuId.current, subMenuLevel);
@@ -1028,27 +1031,27 @@ function highlightMatch(text, searchValue) {
1028
1031
 
1029
1032
  // src/components/Menu.tsx
1030
1033
  var import_clsx7 = __toESM(require("clsx"), 1);
1031
- var import_react8 = require("react");
1034
+ var import_react9 = require("react");
1032
1035
  var import_react_dom = require("react-dom");
1033
1036
 
1034
1037
  // src/components/useMenuSystem.tsx
1035
- var import_react7 = require("react");
1038
+ var import_react8 = require("react");
1036
1039
  function useSubMenuSystem(mobilePositionTo) {
1037
- const [activeMenus, setActiveMenus] = (0, import_react7.useState)(
1040
+ const [activeMenus, setActiveMenus] = (0, import_react8.useState)(
1038
1041
  {}
1039
1042
  );
1040
- const [activeMenu, setActiveMenu] = (0, import_react7.useState)("");
1041
- const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react7.useState)(
1043
+ const [activeMenu, setActiveMenu] = (0, import_react8.useState)("");
1044
+ const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react8.useState)(
1042
1045
  null
1043
1046
  );
1044
- const menuRootRef = (0, import_react7.useRef)(null);
1045
- const subMenuRefs = (0, import_react7.useRef)({});
1046
- const hoverTimeoutRef = (0, import_react7.useRef)(null);
1047
- const closeTimeoutRef = (0, import_react7.useRef)(null);
1048
- const mouseStopTimeoutRef = (0, import_react7.useRef)(null);
1049
- const isMouseMovingRef = (0, import_react7.useRef)(false);
1050
- const pendingOpenActionRef = (0, import_react7.useRef)(null);
1051
- const pendingCloseActionRef = (0, import_react7.useRef)(null);
1047
+ const menuRootRef = (0, import_react8.useRef)(null);
1048
+ const subMenuRefs = (0, import_react8.useRef)({});
1049
+ const hoverTimeoutRef = (0, import_react8.useRef)(null);
1050
+ const closeTimeoutRef = (0, import_react8.useRef)(null);
1051
+ const mouseStopTimeoutRef = (0, import_react8.useRef)(null);
1052
+ const isMouseMovingRef = (0, import_react8.useRef)(false);
1053
+ const pendingOpenActionRef = (0, import_react8.useRef)(null);
1054
+ const pendingCloseActionRef = (0, import_react8.useRef)(null);
1052
1055
  const isMobile = useMatchesMobile();
1053
1056
  const toggleMenu = (menuId, level) => {
1054
1057
  if (closeTimeoutRef.current) {
@@ -1088,7 +1091,7 @@ function useSubMenuSystem(mobilePositionTo) {
1088
1091
  return newActiveMenus;
1089
1092
  });
1090
1093
  };
1091
- const executePendingActions = (0, import_react7.useCallback)(() => {
1094
+ const executePendingActions = (0, import_react8.useCallback)(() => {
1092
1095
  if (pendingCloseActionRef.current) {
1093
1096
  pendingCloseActionRef.current();
1094
1097
  pendingCloseActionRef.current = null;
@@ -1177,7 +1180,7 @@ function useSubMenuSystem(mobilePositionTo) {
1177
1180
  const isMenuActive = (menuId, level) => {
1178
1181
  return activeMenus[level] === menuId;
1179
1182
  };
1180
- (0, import_react7.useEffect)(() => {
1183
+ (0, import_react8.useEffect)(() => {
1181
1184
  const handleClickOutside = (event) => {
1182
1185
  var _a;
1183
1186
  if (Object.keys(activeMenus).length === 0) return;
@@ -1196,7 +1199,7 @@ function useSubMenuSystem(mobilePositionTo) {
1196
1199
  document.removeEventListener("mousedown", handleClickOutside);
1197
1200
  };
1198
1201
  }, [activeMenus]);
1199
- (0, import_react7.useEffect)(() => {
1202
+ (0, import_react8.useEffect)(() => {
1200
1203
  return () => {
1201
1204
  if (hoverTimeoutRef.current) {
1202
1205
  clearTimeout(hoverTimeoutRef.current);
@@ -1274,13 +1277,13 @@ function useSubMenuSystem(mobilePositionTo) {
1274
1277
  };
1275
1278
  }
1276
1279
  function useMenuPosition(elementRef, position = "bottom", options) {
1277
- const [menuPosition, setMenuPosition] = (0, import_react7.useState)({
1280
+ const [menuPosition, setMenuPosition] = (0, import_react8.useState)({
1278
1281
  top: 0,
1279
1282
  left: 0,
1280
1283
  minWidth: 0
1281
1284
  });
1282
1285
  const isMobile = options == null ? void 0 : options.isMobile;
1283
- const updatePosition = (0, import_react7.useCallback)(() => {
1286
+ const updatePosition = (0, import_react8.useCallback)(() => {
1284
1287
  var _a, _b, _c;
1285
1288
  if (!(elementRef == null ? void 0 : elementRef.current)) return;
1286
1289
  const triggerRect = elementRef.current.getBoundingClientRect();
@@ -1328,7 +1331,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1328
1331
  minWidth: triggerRect.width
1329
1332
  });
1330
1333
  }, [elementRef, position, options == null ? void 0 : options.menuRef, options == null ? void 0 : options.topOffset, isMobile]);
1331
- (0, import_react7.useEffect)(() => {
1334
+ (0, import_react8.useEffect)(() => {
1332
1335
  if (!(options == null ? void 0 : options.isOpen) || !(options == null ? void 0 : options.setIsOpen)) return;
1333
1336
  const handleClickOutside = (event) => {
1334
1337
  var _a, _b, _c, _d, _e;
@@ -1354,7 +1357,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1354
1357
  options == null ? void 0 : options.menuRef,
1355
1358
  options == null ? void 0 : options.additionalRefs
1356
1359
  ]);
1357
- (0, import_react7.useEffect)(() => {
1360
+ (0, import_react8.useEffect)(() => {
1358
1361
  updatePosition();
1359
1362
  const resizeObserver = new ResizeObserver(updatePosition);
1360
1363
  if (elementRef == null ? void 0 : elementRef.current) {
@@ -1435,9 +1438,9 @@ var Menu = (_a) => {
1435
1438
  "menuName",
1436
1439
  "calculateMinMaxHeight"
1437
1440
  ]);
1438
- const internalRef = (0, import_react8.useRef)(null);
1441
+ const internalRef = (0, import_react9.useRef)(null);
1439
1442
  const actualRef = ref || internalRef;
1440
- const [maxHeight, setMaxHeight] = (0, import_react8.useState)("180px");
1443
+ const [maxHeight, setMaxHeight] = (0, import_react9.useState)("180px");
1441
1444
  const isMobile = useMatchesMobile();
1442
1445
  const { menuPosition, updatePosition } = useMenuPosition(
1443
1446
  isMobile && mobilePositionTo ? mobilePositionTo : positionTo,
@@ -1450,7 +1453,7 @@ var Menu = (_a) => {
1450
1453
  isMobile: !!(isMobile && mobilePositionTo)
1451
1454
  }
1452
1455
  );
1453
- (0, import_react8.useEffect)(() => {
1456
+ (0, import_react9.useEffect)(() => {
1454
1457
  if (calculateMinMaxHeight) {
1455
1458
  return;
1456
1459
  }
@@ -1474,7 +1477,7 @@ var Menu = (_a) => {
1474
1477
  cancelAnimationFrame(raf);
1475
1478
  };
1476
1479
  }, [actualRef.current, customMaxHeight, calculateMinMaxHeight]);
1477
- (0, import_react8.useEffect)(() => {
1480
+ (0, import_react9.useEffect)(() => {
1478
1481
  if (!calculateMinMaxHeight) {
1479
1482
  return;
1480
1483
  }
@@ -1485,14 +1488,14 @@ var Menu = (_a) => {
1485
1488
  setMaxHeight(`${calculatedMaxHeight}px`);
1486
1489
  }
1487
1490
  }, [actualRef.current, positionTo == null ? void 0 : positionTo.current, calculateMinMaxHeight]);
1488
- (0, import_react8.useEffect)(() => {
1491
+ (0, import_react9.useEffect)(() => {
1489
1492
  if (!show) {
1490
1493
  return;
1491
1494
  }
1492
1495
  initializeMenuFocus();
1493
1496
  updatePosition();
1494
1497
  }, [show, updatePosition]);
1495
- (0, import_react8.useEffect)(() => {
1498
+ (0, import_react9.useEffect)(() => {
1496
1499
  if (!show || !setShow) {
1497
1500
  return;
1498
1501
  }
@@ -1646,10 +1649,10 @@ var Menu = (_a) => {
1646
1649
  Menu.displayName = "Menu";
1647
1650
 
1648
1651
  // src/components/Search.tsx
1649
- var import_react10 = require("react");
1652
+ var import_react11 = require("react");
1650
1653
 
1651
1654
  // src/components/Input.tsx
1652
- var import_react9 = require("react");
1655
+ var import_react10 = require("react");
1653
1656
  var import_clsx8 = __toESM(require("clsx"), 1);
1654
1657
  var import_jsx_runtime7 = require("react/jsx-runtime");
1655
1658
  var InputBase = (_a) => {
@@ -1706,9 +1709,9 @@ var InputBase = (_a) => {
1706
1709
  "data-error": error && !focus || null,
1707
1710
  "data-focus": focus || null
1708
1711
  };
1709
- const inputRef = (0, import_react9.useRef)(null);
1712
+ const inputRef = (0, import_react10.useRef)(null);
1710
1713
  const inputId = id ? `${id}-input` : void 0;
1711
- (0, import_react9.useEffect)(() => {
1714
+ (0, import_react10.useEffect)(() => {
1712
1715
  var _a2;
1713
1716
  const input = inputRef.current;
1714
1717
  const focusHandler = () => {
@@ -1867,15 +1870,15 @@ var Input = (_a) => {
1867
1870
  "testid",
1868
1871
  "rightAdornment"
1869
1872
  ]);
1870
- const [internalValue, setInternalValue] = (0, import_react9.useState)("");
1871
- const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
1872
- (0, import_react9.useEffect)(() => {
1873
+ const [internalValue, setInternalValue] = (0, import_react10.useState)("");
1874
+ const [displayValue, setDisplayValue] = (0, import_react10.useState)("");
1875
+ (0, import_react10.useEffect)(() => {
1873
1876
  var _a2;
1874
1877
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
1875
1878
  setInternalValue(stringValue);
1876
1879
  setDisplayValue(stringValue);
1877
1880
  }, [propValue]);
1878
- (0, import_react9.useEffect)(() => {
1881
+ (0, import_react10.useEffect)(() => {
1879
1882
  var _a2;
1880
1883
  if (variant !== "currency") {
1881
1884
  return;
@@ -2136,14 +2139,14 @@ var Search = (_a) => {
2136
2139
  "removeRoundness",
2137
2140
  "autocompletePadding"
2138
2141
  ]);
2139
- const inputRef = (0, import_react10.useRef)(null);
2140
- const inputContainerRef = (0, import_react10.useRef)(null);
2141
- const preventFocusOnInitialRender = (0, import_react10.useRef)(true);
2142
- const [show, setShow] = (0, import_react10.useState)(false);
2143
- const [clearing, setClearing] = (0, import_react10.useState)(false);
2144
- const uniqueId = (0, import_react10.useId)();
2142
+ const inputRef = (0, import_react11.useRef)(null);
2143
+ const inputContainerRef = (0, import_react11.useRef)(null);
2144
+ const preventFocusOnInitialRender = (0, import_react11.useRef)(true);
2145
+ const [show, setShow] = (0, import_react11.useState)(false);
2146
+ const [clearing, setClearing] = (0, import_react11.useState)(false);
2147
+ const uniqueId = (0, import_react11.useId)();
2145
2148
  const searchMenuName = `search-menu-${uniqueId}`;
2146
- (0, import_react10.useEffect)(() => {
2149
+ (0, import_react11.useEffect)(() => {
2147
2150
  var _a2;
2148
2151
  if (preventFocusOnInitialRender.current) {
2149
2152
  preventFocusOnInitialRender.current = false;
@@ -2227,7 +2230,7 @@ Search.displayName = "Search";
2227
2230
 
2228
2231
  // src/components/DataGridCell.tsx
2229
2232
  var import_jsx_runtime9 = require("react/jsx-runtime");
2230
- var DataGridCell = (0, import_react11.memo)(
2233
+ var DataGridCell = (0, import_react12.memo)(
2231
2234
  (_a) => {
2232
2235
  var _b = _a, {
2233
2236
  id,
@@ -2269,10 +2272,10 @@ var DataGridCell = (0, import_react11.memo)(
2269
2272
  "testid"
2270
2273
  ]);
2271
2274
  const Element = type === "header" ? "th" : "td";
2272
- const timerRef = (0, import_react11.useRef)(null);
2273
- const [isGrabbing, setIsGrabbing] = (0, import_react11.useState)(false);
2274
- const [isPointerPressed, setIsPointerPressed] = (0, import_react11.useState)(false);
2275
- (0, import_react11.useEffect)(() => {
2275
+ const timerRef = (0, import_react12.useRef)(null);
2276
+ const [isGrabbing, setIsGrabbing] = (0, import_react12.useState)(false);
2277
+ const [isPointerPressed, setIsPointerPressed] = (0, import_react12.useState)(false);
2278
+ (0, import_react12.useEffect)(() => {
2276
2279
  return () => {
2277
2280
  if (timerRef.current) {
2278
2281
  clearTimeout(timerRef.current);
@@ -2382,12 +2385,12 @@ function DataCellHeader(_a) {
2382
2385
  "useMenuDefaultMinWidth"
2383
2386
  ]);
2384
2387
  var _a2;
2385
- const [showMenu, setShowMenu] = (0, import_react11.useState)(false);
2386
- const [filter, setFilter] = (0, import_react11.useState)(
2388
+ const [showMenu, setShowMenu] = (0, import_react12.useState)(false);
2389
+ const [filter, setFilter] = (0, import_react12.useState)(
2387
2390
  (_a2 = header.column.getFilterValue()) != null ? _a2 : ""
2388
2391
  );
2389
- const ref = (0, import_react11.useRef)(null);
2390
- const predeterminedPinned = (0, import_react11.useRef)(false);
2392
+ const ref = (0, import_react12.useRef)(null);
2393
+ const predeterminedPinned = (0, import_react12.useRef)(false);
2391
2394
  const { column, getContext } = header;
2392
2395
  const { id: columnId, setFilterValue } = column;
2393
2396
  const {
@@ -2397,14 +2400,14 @@ function DataCellHeader(_a) {
2397
2400
  listeners: subMenuListeners,
2398
2401
  mobileHide
2399
2402
  } = useSubMenuSystem(node ? node : ref);
2400
- (0, import_react11.useEffect)(() => {
2403
+ (0, import_react12.useEffect)(() => {
2401
2404
  var _a3, _b2, _c;
2402
2405
  const columnPinning = (_a3 = getContext().table.options.initialState) == null ? void 0 : _a3.columnPinning;
2403
2406
  const left = (_b2 = columnPinning == null ? void 0 : columnPinning.left) != null ? _b2 : [];
2404
2407
  const right = (_c = columnPinning == null ? void 0 : columnPinning.right) != null ? _c : [];
2405
2408
  predeterminedPinned.current = [...left, ...right].includes(columnId);
2406
2409
  }, [columnId, getContext]);
2407
- (0, import_react11.useEffect)(() => {
2410
+ (0, import_react12.useEffect)(() => {
2408
2411
  const handler = setTimeout(() => {
2409
2412
  setFilterValue(filter);
2410
2413
  }, 500);
@@ -2667,7 +2670,7 @@ function DragAlongCell(_a) {
2667
2670
  DragAlongCell.displayName = "DragAlongCell";
2668
2671
 
2669
2672
  // src/components/Select.tsx
2670
- var import_react12 = require("react");
2673
+ var import_react13 = require("react");
2671
2674
  var import_clsx10 = __toESM(require("clsx"), 1);
2672
2675
  var import_jsx_runtime10 = require("react/jsx-runtime");
2673
2676
  var Select = (_a) => {
@@ -2701,11 +2704,11 @@ var Select = (_a) => {
2701
2704
  "value"
2702
2705
  ]);
2703
2706
  var _a2;
2704
- const inputRef = (0, import_react12.useRef)(null);
2705
- const inputContainerRef = (0, import_react12.useRef)(null);
2706
- const preventFocusOnInitialRender = (0, import_react12.useRef)(true);
2707
- const [show, setShow] = (0, import_react12.useState)(false);
2708
- (0, import_react12.useEffect)(() => {
2707
+ const inputRef = (0, import_react13.useRef)(null);
2708
+ const inputContainerRef = (0, import_react13.useRef)(null);
2709
+ const preventFocusOnInitialRender = (0, import_react13.useRef)(true);
2710
+ const [show, setShow] = (0, import_react13.useState)(false);
2711
+ (0, import_react13.useEffect)(() => {
2709
2712
  var _a3;
2710
2713
  if (preventFocusOnInitialRender.current) {
2711
2714
  preventFocusOnInitialRender.current = false;
@@ -3127,7 +3130,7 @@ Button.displayName = "Button";
3127
3130
 
3128
3131
  // src/components/Tooltip.tsx
3129
3132
  var import_clsx14 = __toESM(require("clsx"), 1);
3130
- var import_react13 = require("react");
3133
+ var import_react14 = require("react");
3131
3134
  var import_react_dom2 = require("react-dom");
3132
3135
  var import_jsx_runtime15 = require("react/jsx-runtime");
3133
3136
  var Tooltip = ({
@@ -3140,11 +3143,11 @@ var Tooltip = ({
3140
3143
  offset = 8,
3141
3144
  keepHidden = false
3142
3145
  }) => {
3143
- const ref = (0, import_react13.useRef)(null);
3144
- const tooltipRef = (0, import_react13.useRef)(null);
3145
- const [tooltipPosition, setTooltipPosition] = (0, import_react13.useState)({ top: 0, left: 0 });
3146
- const [isVisible, setIsVisible] = (0, import_react13.useState)(false);
3147
- const [removeOpacity, setRemoveOpacity] = (0, import_react13.useState)(false);
3146
+ const ref = (0, import_react14.useRef)(null);
3147
+ const tooltipRef = (0, import_react14.useRef)(null);
3148
+ const [tooltipPosition, setTooltipPosition] = (0, import_react14.useState)({ top: 0, left: 0 });
3149
+ const [isVisible, setIsVisible] = (0, import_react14.useState)(false);
3150
+ const [removeOpacity, setRemoveOpacity] = (0, import_react14.useState)(false);
3148
3151
  const updatePosition = () => {
3149
3152
  if (!ref.current || !tooltipRef.current) return;
3150
3153
  const rect = ref.current.getBoundingClientRect();
@@ -3183,14 +3186,14 @@ var Tooltip = ({
3183
3186
  setIsVisible(false);
3184
3187
  setRemoveOpacity(false);
3185
3188
  };
3186
- (0, import_react13.useEffect)(() => {
3189
+ (0, import_react14.useEffect)(() => {
3187
3190
  if (isVisible && tooltipRef.current) {
3188
3191
  requestAnimationFrame(() => {
3189
3192
  updatePosition();
3190
3193
  });
3191
3194
  }
3192
3195
  }, [isVisible]);
3193
- (0, import_react13.useEffect)(() => {
3196
+ (0, import_react14.useEffect)(() => {
3194
3197
  if (isVisible) {
3195
3198
  window.addEventListener("resize", updatePosition);
3196
3199
  return () => window.removeEventListener("resize", updatePosition);
@@ -3248,12 +3251,12 @@ var Tooltip = ({
3248
3251
  Tooltip.displayName = "Tooltip";
3249
3252
 
3250
3253
  // src/components/DateInput.tsx
3251
- var import_react15 = require("react");
3254
+ var import_react16 = require("react");
3252
3255
  var import_react_dom3 = require("react-dom");
3253
3256
 
3254
3257
  // src/components/CalendarRange.tsx
3255
3258
  var import_clsx15 = __toESM(require("clsx"), 1);
3256
- var import_react14 = __toESM(require("react"), 1);
3259
+ var import_react15 = __toESM(require("react"), 1);
3257
3260
  var import_polyfill = require("@js-temporal/polyfill");
3258
3261
  var import_jsx_runtime16 = require("react/jsx-runtime");
3259
3262
  function DateCell(_a) {
@@ -3366,20 +3369,20 @@ function CalendarRange({
3366
3369
  const fromDate = parseDate(from);
3367
3370
  const toDate = parseDate(to);
3368
3371
  const today = import_polyfill.Temporal.Now.plainDateISO();
3369
- const [baseMonth, setBaseMonth] = (0, import_react14.useState)(
3372
+ const [baseMonth, setBaseMonth] = (0, import_react15.useState)(
3370
3373
  fromDate != null ? fromDate : today.with({ day: 1 })
3371
3374
  );
3372
- const [selecting, setSelecting] = (0, import_react14.useState)("from");
3373
- const [pendingFrom, setPendingFrom] = (0, import_react14.useState)(void 0);
3374
- const [hoveredDate, setHoveredDate] = (0, import_react14.useState)(void 0);
3375
- (0, import_react14.useEffect)(() => {
3375
+ const [selecting, setSelecting] = (0, import_react15.useState)("from");
3376
+ const [pendingFrom, setPendingFrom] = (0, import_react15.useState)(void 0);
3377
+ const [hoveredDate, setHoveredDate] = (0, import_react15.useState)(void 0);
3378
+ (0, import_react15.useEffect)(() => {
3376
3379
  if (fromDate) {
3377
3380
  setBaseMonth(fromDate.with({ day: 1 }));
3378
3381
  } else if (toDate) {
3379
3382
  setBaseMonth(toDate.with({ day: 1 }));
3380
3383
  }
3381
3384
  }, [from, to]);
3382
- (0, import_react14.useEffect)(() => {
3385
+ (0, import_react15.useEffect)(() => {
3383
3386
  if (fromDate && toDate) {
3384
3387
  setSelecting("from");
3385
3388
  setPendingFrom(void 0);
@@ -3525,14 +3528,14 @@ function CalendarPane({
3525
3528
  const years = Array.from({ length: 100 }).map(
3526
3529
  (_, i) => baseMonth.year - 50 + i
3527
3530
  );
3528
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react14.useState)(false);
3529
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react14.useState)(false);
3530
- const monthMenuRef = (0, import_react14.useRef)(null);
3531
- const yearMenuRef = (0, import_react14.useRef)(null);
3531
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react15.useState)(false);
3532
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react15.useState)(false);
3533
+ const monthMenuRef = (0, import_react15.useRef)(null);
3534
+ const yearMenuRef = (0, import_react15.useRef)(null);
3532
3535
  const month = getMonthData(offset);
3533
3536
  const totalCells = 42;
3534
3537
  const emptyCells = month.firstDayOffset;
3535
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react14.default.Fragment, { children: [
3538
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react15.default.Fragment, { children: [
3536
3539
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
3537
3540
  "div",
3538
3541
  {
@@ -3740,24 +3743,24 @@ var DateInput = (_a) => {
3740
3743
  "label",
3741
3744
  "isDateAvailable"
3742
3745
  ]);
3743
- const [visible, setVisible] = (0, import_react15.useState)(false);
3744
- const [inputValue, setInputValue] = (0, import_react15.useState)("");
3745
- const [isTyping, setIsTyping] = (0, import_react15.useState)(false);
3746
- const popoverRef = (0, import_react15.useRef)(null);
3747
- const triggerRef = (0, import_react15.useRef)(null);
3748
- const rootRef = (0, import_react15.useRef)(null);
3749
- const [calendarPosition, setCalendarPosition] = (0, import_react15.useState)({
3746
+ const [visible, setVisible] = (0, import_react16.useState)(false);
3747
+ const [inputValue, setInputValue] = (0, import_react16.useState)("");
3748
+ const [isTyping, setIsTyping] = (0, import_react16.useState)(false);
3749
+ const popoverRef = (0, import_react16.useRef)(null);
3750
+ const triggerRef = (0, import_react16.useRef)(null);
3751
+ const rootRef = (0, import_react16.useRef)(null);
3752
+ const [calendarPosition, setCalendarPosition] = (0, import_react16.useState)({
3750
3753
  top: 0,
3751
3754
  left: 0,
3752
3755
  width: 0
3753
3756
  });
3754
3757
  const [from, to] = [value, ""];
3755
- (0, import_react15.useEffect)(() => {
3758
+ (0, import_react16.useEffect)(() => {
3756
3759
  if (!isTyping) {
3757
3760
  setInputValue(formatDisplayValue(from));
3758
3761
  }
3759
3762
  }, [from, isTyping]);
3760
- (0, import_react15.useLayoutEffect)(() => {
3763
+ (0, import_react16.useLayoutEffect)(() => {
3761
3764
  if (visible) {
3762
3765
  updatePosition();
3763
3766
  }
@@ -3772,7 +3775,7 @@ var DateInput = (_a) => {
3772
3775
  });
3773
3776
  }
3774
3777
  };
3775
- (0, import_react15.useEffect)(() => {
3778
+ (0, import_react16.useEffect)(() => {
3776
3779
  updatePosition();
3777
3780
  const resizeObserver = new ResizeObserver(updatePosition);
3778
3781
  if (triggerRef.current) {
@@ -3784,7 +3787,7 @@ var DateInput = (_a) => {
3784
3787
  window.removeEventListener("scroll", updatePosition);
3785
3788
  };
3786
3789
  }, []);
3787
- (0, import_react15.useEffect)(() => {
3790
+ (0, import_react16.useEffect)(() => {
3788
3791
  const handleKeyDown2 = (event) => {
3789
3792
  var _a2;
3790
3793
  if (event.key === "Escape" && popoverRef.current) {
@@ -3797,7 +3800,7 @@ var DateInput = (_a) => {
3797
3800
  document.removeEventListener("keydown", handleKeyDown2);
3798
3801
  };
3799
3802
  });
3800
- (0, import_react15.useEffect)(() => {
3803
+ (0, import_react16.useEffect)(() => {
3801
3804
  const handleClickOutside = (event) => {
3802
3805
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
3803
3806
  setVisible(false);
@@ -4018,14 +4021,14 @@ Heading3.displayName = "Heading3";
4018
4021
  var import_jsx_runtime22 = require("react/jsx-runtime");
4019
4022
 
4020
4023
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
4021
- var import_react18 = require("react");
4024
+ var import_react19 = require("react");
4022
4025
 
4023
4026
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
4024
- var import_react17 = require("react");
4027
+ var import_react18 = require("react");
4025
4028
 
4026
4029
  // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
4027
- var import_react16 = require("react");
4028
- var GridContext = (0, import_react16.createContext)(null);
4030
+ var import_react17 = require("react");
4031
+ var GridContext = (0, import_react17.createContext)(null);
4029
4032
 
4030
4033
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
4031
4034
  var import_jsx_runtime23 = require("react/jsx-runtime");
@@ -4034,12 +4037,12 @@ var import_jsx_runtime23 = require("react/jsx-runtime");
4034
4037
  var import_jsx_runtime24 = require("react/jsx-runtime");
4035
4038
 
4036
4039
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
4037
- var import_react19 = require("react");
4040
+ var import_react20 = require("react");
4038
4041
  var import_jsx_runtime25 = require("react/jsx-runtime");
4039
4042
 
4040
4043
  // src/components/Modal.tsx
4041
4044
  var import_clsx24 = __toESM(require("clsx"), 1);
4042
- var import_react21 = require("react");
4045
+ var import_react22 = require("react");
4043
4046
 
4044
4047
  // src/components/ModalHeader.tsx
4045
4048
  var import_clsx20 = __toESM(require("clsx"), 1);
@@ -4215,10 +4218,10 @@ var import_react_dom4 = require("react-dom");
4215
4218
  var import_react_use = require("react-use");
4216
4219
 
4217
4220
  // src/components/useMounted.tsx
4218
- var import_react20 = require("react");
4221
+ var import_react21 = require("react");
4219
4222
  var useMounted = () => {
4220
- const [isMounted, setIsMounted] = (0, import_react20.useState)(false);
4221
- (0, import_react20.useEffect)(() => {
4223
+ const [isMounted, setIsMounted] = (0, import_react21.useState)(false);
4224
+ (0, import_react21.useEffect)(() => {
4222
4225
  setIsMounted(true);
4223
4226
  return () => setIsMounted(false);
4224
4227
  }, []);
@@ -4312,12 +4315,12 @@ var Modal = ({
4312
4315
  }) => {
4313
4316
  var _a;
4314
4317
  const mounted = useMounted();
4315
- const modalRef = (0, import_react21.useRef)(null);
4316
- const bgRef = (0, import_react21.useRef)(null);
4318
+ const modalRef = (0, import_react22.useRef)(null);
4319
+ const bgRef = (0, import_react22.useRef)(null);
4317
4320
  const wasOpen = (0, import_react_use.usePrevious)(open);
4318
4321
  const isMobile = useMatchesMobile();
4319
4322
  const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
4320
- (0, import_react21.useEffect)(() => {
4323
+ (0, import_react22.useEffect)(() => {
4321
4324
  if (!mounted) return;
4322
4325
  if (!modalRef.current || !bgRef.current) {
4323
4326
  console.error("Modal or background reference is not set.");
@@ -4337,7 +4340,7 @@ var Modal = ({
4337
4340
  bgFadeIn(bgRef.current);
4338
4341
  }
4339
4342
  }, [mounted, onClose, open, wasOpen]);
4340
- const handleKeyDown = (0, import_react21.useCallback)(
4343
+ const handleKeyDown = (0, import_react22.useCallback)(
4341
4344
  (e) => {
4342
4345
  if (e.key === "Escape") {
4343
4346
  if (onClose) {
@@ -4348,12 +4351,12 @@ var Modal = ({
4348
4351
  },
4349
4352
  [onClose]
4350
4353
  );
4351
- const handleClose = (0, import_react21.useCallback)(() => {
4354
+ const handleClose = (0, import_react22.useCallback)(() => {
4352
4355
  if (onClose) {
4353
4356
  onClose();
4354
4357
  }
4355
4358
  }, [onClose]);
4356
- (0, import_react21.useEffect)(() => {
4359
+ (0, import_react22.useEffect)(() => {
4357
4360
  if (open) {
4358
4361
  document.addEventListener("keyup", handleKeyDown);
4359
4362
  }
@@ -4361,7 +4364,7 @@ var Modal = ({
4361
4364
  document.removeEventListener("keyup", handleKeyDown);
4362
4365
  };
4363
4366
  }, [open, handleKeyDown]);
4364
- (0, import_react21.useEffect)(() => {
4367
+ (0, import_react22.useEffect)(() => {
4365
4368
  if (!open) return;
4366
4369
  const scrollY = window.scrollY;
4367
4370
  const body = document.body;
@@ -4382,7 +4385,7 @@ var Modal = ({
4382
4385
  };
4383
4386
  }, [open]);
4384
4387
  const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
4385
- const backgroundClickHandler = (0, import_react21.useCallback)(
4388
+ const backgroundClickHandler = (0, import_react22.useCallback)(
4386
4389
  (e) => {
4387
4390
  const target = e.target;
4388
4391
  const currentTarget = e.currentTarget;
@@ -4494,10 +4497,10 @@ var import_jsx_runtime35 = require("react/jsx-runtime");
4494
4497
  var import_jsx_runtime36 = require("react/jsx-runtime");
4495
4498
 
4496
4499
  // src/components/ProductImagePreview/Thumbnail.tsx
4497
- var import_react23 = require("react");
4500
+ var import_react24 = require("react");
4498
4501
 
4499
4502
  // src/components/ImagePlaceholder.tsx
4500
- var import_react22 = require("react");
4503
+ var import_react23 = require("react");
4501
4504
  var import_jsx_runtime37 = require("react/jsx-runtime");
4502
4505
 
4503
4506
  // src/components/ProductImagePreview/Thumbnail.tsx
@@ -4508,11 +4511,11 @@ var import_clsx27 = __toESM(require("clsx"), 1);
4508
4511
  var import_jsx_runtime39 = require("react/jsx-runtime");
4509
4512
 
4510
4513
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
4511
- var import_react24 = require("react");
4514
+ var import_react25 = require("react");
4512
4515
  var import_jsx_runtime40 = require("react/jsx-runtime");
4513
4516
 
4514
4517
  // src/components/ProductImagePreview/ZoomWindow.tsx
4515
- var import_react25 = require("react");
4518
+ var import_react26 = require("react");
4516
4519
 
4517
4520
  // src/components/Surface.tsx
4518
4521
  var import_clsx28 = __toESM(require("clsx"), 1);
@@ -4557,17 +4560,17 @@ var import_clsx29 = require("clsx");
4557
4560
  var import_jsx_runtime43 = require("react/jsx-runtime");
4558
4561
 
4559
4562
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
4560
- var import_react26 = require("react");
4563
+ var import_react27 = require("react");
4561
4564
  var import_jsx_runtime44 = require("react/jsx-runtime");
4562
4565
 
4563
4566
  // src/components/ProductImagePreview/useProductImagePreview.ts
4564
- var import_react27 = require("react");
4567
+ var import_react28 = require("react");
4565
4568
 
4566
4569
  // src/components/ProductImagePreview/index.tsx
4567
4570
  var import_jsx_runtime45 = require("react/jsx-runtime");
4568
4571
 
4569
4572
  // src/components/CompactImagesPreview.tsx
4570
- var import_react28 = require("react");
4573
+ var import_react29 = require("react");
4571
4574
  var import_clsx30 = __toESM(require("clsx"), 1);
4572
4575
  var import_jsx_runtime46 = require("react/jsx-runtime");
4573
4576
 
@@ -4576,12 +4579,12 @@ var import_clsx31 = __toESM(require("clsx"), 1);
4576
4579
  var import_jsx_runtime47 = require("react/jsx-runtime");
4577
4580
 
4578
4581
  // src/components/ListGroup.tsx
4579
- var import_react29 = require("react");
4582
+ var import_react30 = require("react");
4580
4583
  var import_clsx32 = __toESM(require("clsx"), 1);
4581
4584
  var import_jsx_runtime48 = require("react/jsx-runtime");
4582
4585
 
4583
4586
  // src/components/Pagination.tsx
4584
- var import_react30 = require("react");
4587
+ var import_react31 = require("react");
4585
4588
  var import_clsx33 = __toESM(require("clsx"), 1);
4586
4589
  var import_jsx_runtime49 = require("react/jsx-runtime");
4587
4590
  var Pagination = ({
@@ -4593,7 +4596,7 @@ var Pagination = ({
4593
4596
  className,
4594
4597
  disabled
4595
4598
  }) => {
4596
- const goTo = (0, import_react30.useCallback)(
4599
+ const goTo = (0, import_react31.useCallback)(
4597
4600
  (page) => {
4598
4601
  if (disabled) return;
4599
4602
  onPageChange(page);
@@ -4610,7 +4613,7 @@ var Pagination = ({
4610
4613
  goTo(currentPage + 1);
4611
4614
  }
4612
4615
  };
4613
- const pageTokens = (0, import_react30.useMemo)(() => {
4616
+ const pageTokens = (0, import_react31.useMemo)(() => {
4614
4617
  if (totalPages <= 5) {
4615
4618
  return Array.from({ length: totalPages }, (_, i) => i + 1);
4616
4619
  }
@@ -4733,21 +4736,21 @@ var import_jsx_runtime50 = require("react/jsx-runtime");
4733
4736
  var import_jsx_runtime51 = require("react/jsx-runtime");
4734
4737
 
4735
4738
  // src/components/SearchResultImage/index.tsx
4736
- var import_react31 = require("react");
4739
+ var import_react32 = require("react");
4737
4740
  var import_jsx_runtime52 = require("react/jsx-runtime");
4738
4741
 
4739
4742
  // src/components/Alert.tsx
4740
4743
  var import_clsx34 = __toESM(require("clsx"), 1);
4741
- var import_react32 = require("react");
4744
+ var import_react33 = require("react");
4742
4745
  var import_jsx_runtime53 = require("react/jsx-runtime");
4743
4746
 
4744
4747
  // src/components/OrderCheckIcon.tsx
4745
4748
  var import_jsx_runtime54 = require("react/jsx-runtime");
4746
4749
 
4747
4750
  // src/components/EditingContext.tsx
4748
- var import_react33 = require("react");
4751
+ var import_react34 = require("react");
4749
4752
  var import_jsx_runtime55 = require("react/jsx-runtime");
4750
- var EditingContext = (0, import_react33.createContext)(null);
4753
+ var EditingContext = (0, import_react34.createContext)(null);
4751
4754
 
4752
4755
  // src/components/AccessCard.tsx
4753
4756
  var import_clsx36 = __toESM(require("clsx"), 1);
@@ -4881,11 +4884,11 @@ var import_jsx_runtime57 = require("react/jsx-runtime");
4881
4884
 
4882
4885
  // src/components/AccessCardGroup.tsx
4883
4886
  var import_clsx37 = __toESM(require("clsx"), 1);
4884
- var import_react34 = require("react");
4887
+ var import_react35 = require("react");
4885
4888
  var import_jsx_runtime58 = require("react/jsx-runtime");
4886
4889
 
4887
4890
  // src/components/DataGrid/index.tsx
4888
- var import_react39 = __toESM(require("react"), 1);
4891
+ var import_react40 = __toESM(require("react"), 1);
4889
4892
  var import_react_table3 = require("@tanstack/react-table");
4890
4893
  var import_core = require("@dnd-kit/core");
4891
4894
  var import_sortable2 = require("@dnd-kit/sortable");
@@ -4913,7 +4916,7 @@ function getSortIcon(sort, nextSort = false) {
4913
4916
  }
4914
4917
 
4915
4918
  // src/components/DataGrid/PinnedColumns.tsx
4916
- var import_react38 = __toESM(require("react"), 1);
4919
+ var import_react39 = __toESM(require("react"), 1);
4917
4920
 
4918
4921
  // src/components/DataGrid/TableBody/index.tsx
4919
4922
  var import_react_virtual = require("@tanstack/react-virtual");
@@ -4922,7 +4925,7 @@ var import_clsx40 = __toESM(require("clsx"), 1);
4922
4925
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
4923
4926
  var import_clsx39 = __toESM(require("clsx"), 1);
4924
4927
  var import_react_table = require("@tanstack/react-table");
4925
- var import_react35 = __toESM(require("react"), 1);
4928
+ var import_react36 = __toESM(require("react"), 1);
4926
4929
  var import_jsx_runtime60 = require("react/jsx-runtime");
4927
4930
  var valueFormatters = {
4928
4931
  date: (value) => typeof value === "string" ? formatDate(value) : "",
@@ -4990,7 +4993,7 @@ function TableBodyRow({
4990
4993
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
4991
4994
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
4992
4995
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
4993
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react35.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4996
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react36.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4994
4997
  CellElement,
4995
4998
  {
4996
4999
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
@@ -5204,10 +5207,10 @@ function TableBody({
5204
5207
  }
5205
5208
 
5206
5209
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
5207
- var import_react37 = require("react");
5210
+ var import_react38 = require("react");
5208
5211
 
5209
5212
  // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
5210
- var import_react36 = require("react");
5213
+ var import_react37 = require("react");
5211
5214
  var import_jsx_runtime63 = require("react/jsx-runtime");
5212
5215
  function ColumnSelectorMenuOption({
5213
5216
  id,
@@ -5215,7 +5218,7 @@ function ColumnSelectorMenuOption({
5215
5218
  column,
5216
5219
  toggleColumnVisibility
5217
5220
  }) {
5218
- const [isVisible, setIsVisible] = (0, import_react36.useState)(column.getIsVisible());
5221
+ const [isVisible, setIsVisible] = (0, import_react37.useState)(column.getIsVisible());
5219
5222
  const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
5220
5223
  return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5221
5224
  Checkbox,
@@ -5241,8 +5244,8 @@ function ColumnSelectorHeaderCell({
5241
5244
  toggleColumnVisibility,
5242
5245
  resetColumnVisibility
5243
5246
  }) {
5244
- const ref = (0, import_react37.useRef)(null);
5245
- const [show, setShow] = (0, import_react37.useState)(false);
5247
+ const ref = (0, import_react38.useRef)(null);
5248
+ const [show, setShow] = (0, import_react38.useState)(false);
5246
5249
  return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
5247
5250
  DataGridCell,
5248
5251
  {
@@ -5411,7 +5414,7 @@ function PinnedColumns(_a) {
5411
5414
  header.id
5412
5415
  );
5413
5416
  }
5414
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react38.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5417
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react39.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5415
5418
  Checkbox,
5416
5419
  {
5417
5420
  checked: allSelectedAcrossPages,
@@ -5490,23 +5493,23 @@ function DataGrid({
5490
5493
  ref
5491
5494
  }) {
5492
5495
  var _a, _b, _c, _d, _e, _f, _g;
5493
- (0, import_react39.useImperativeHandle)(ref, () => ({
5496
+ (0, import_react40.useImperativeHandle)(ref, () => ({
5494
5497
  getSavedLayout: () => {
5495
5498
  return getSavedLayout();
5496
5499
  }
5497
5500
  }));
5498
- const [localSorting, setLocalSorting] = (0, import_react39.useState)([]);
5499
- const [localColumnFilters, setLocalColumnFilters] = (0, import_react39.useState)([]);
5500
- const [localRowSelection, setLocalRowSelection] = (0, import_react39.useState)({});
5501
+ const [localSorting, setLocalSorting] = (0, import_react40.useState)([]);
5502
+ const [localColumnFilters, setLocalColumnFilters] = (0, import_react40.useState)([]);
5503
+ const [localRowSelection, setLocalRowSelection] = (0, import_react40.useState)({});
5501
5504
  const {
5502
5505
  columns: tableColumns,
5503
5506
  setColumns: setTableColumns,
5504
5507
  getSavedLayout
5505
5508
  } = useTableLayout(columns, id != null ? id : testid);
5506
- const [columnOrder, setColumnOrder] = (0, import_react39.useState)(
5509
+ const [columnOrder, setColumnOrder] = (0, import_react40.useState)(
5507
5510
  tableColumns.map((c) => c.id)
5508
5511
  );
5509
- const [columnVisibility, setColumnVisibility] = (0, import_react39.useState)(
5512
+ const [columnVisibility, setColumnVisibility] = (0, import_react40.useState)(
5510
5513
  Object.fromEntries(
5511
5514
  tableColumns.filter((column) => !!column.id).map((column) => {
5512
5515
  var _a2, _b2;
@@ -5514,7 +5517,7 @@ function DataGrid({
5514
5517
  })
5515
5518
  )
5516
5519
  );
5517
- const updateColumnVisibility = (0, import_react39.useCallback)(
5520
+ const updateColumnVisibility = (0, import_react40.useCallback)(
5518
5521
  (updateOrder) => {
5519
5522
  setColumnVisibility(
5520
5523
  Object.fromEntries(
@@ -5528,7 +5531,7 @@ function DataGrid({
5528
5531
  },
5529
5532
  [tableColumns]
5530
5533
  );
5531
- const resetDefaultColumnVisibility = (0, import_react39.useCallback)(() => {
5534
+ const resetDefaultColumnVisibility = (0, import_react40.useCallback)(() => {
5532
5535
  setTableColumns((prev) => {
5533
5536
  columns.forEach((column) => {
5534
5537
  var _a2, _b2;
@@ -5544,7 +5547,7 @@ function DataGrid({
5544
5547
  return [...prev];
5545
5548
  }, true);
5546
5549
  }, [columns, setTableColumns]);
5547
- (0, import_react39.useEffect)(() => {
5550
+ (0, import_react40.useEffect)(() => {
5548
5551
  updateColumnVisibility(true);
5549
5552
  }, [updateColumnVisibility]);
5550
5553
  const sortingState = pagination ? externalSorting != null ? externalSorting : localSorting : localSorting;
@@ -5560,7 +5563,7 @@ function DataGrid({
5560
5563
  (onColumnFiltersChange != null ? onColumnFiltersChange : setLocalColumnFilters)(value);
5561
5564
  } : setLocalColumnFilters;
5562
5565
  const rowSelection = externalRowSelection != null ? externalRowSelection : localRowSelection;
5563
- const setRowSelection = (0, import_react39.useCallback)(
5566
+ const setRowSelection = (0, import_react40.useCallback)(
5564
5567
  (updaterOrValue) => {
5565
5568
  if (pagination) {
5566
5569
  const value = typeof updaterOrValue === "function" ? updaterOrValue(externalRowSelection != null ? externalRowSelection : {}) : updaterOrValue;
@@ -5574,9 +5577,9 @@ function DataGrid({
5574
5577
  },
5575
5578
  [externalRowSelection, onRowSelectionChange, pagination]
5576
5579
  );
5577
- const dndId = (0, import_react39.useId)();
5578
- const containerRef = import_react39.default.useRef(null);
5579
- const toggleColumnVisibility = (0, import_react39.useCallback)(
5580
+ const dndId = (0, import_react40.useId)();
5581
+ const containerRef = import_react40.default.useRef(null);
5582
+ const toggleColumnVisibility = (0, import_react40.useCallback)(
5580
5583
  (columnId, isVisible) => {
5581
5584
  setTableColumns((prev) => {
5582
5585
  const persistedIndex = prev.findIndex((col) => col.id === columnId);
@@ -5824,7 +5827,7 @@ function DataGrid({
5824
5827
  header.id
5825
5828
  );
5826
5829
  }
5827
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react39.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5830
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react40.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5828
5831
  DataGridCell,
5829
5832
  {
5830
5833
  id: id ? `${id}-header-${header.id}` : void 0,