@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
@@ -64,7 +64,7 @@ __export(TableBodyRow_exports, {
64
64
  module.exports = __toCommonJS(TableBodyRow_exports);
65
65
  var import_clsx42 = __toESM(require("clsx"), 1);
66
66
  var import_react_table3 = require("@tanstack/react-table");
67
- var import_react39 = __toESM(require("react"), 1);
67
+ var import_react40 = __toESM(require("react"), 1);
68
68
 
69
69
  // src/components/DataGridCell.tsx
70
70
  var import_sortable = require("@dnd-kit/sortable");
@@ -119,7 +119,7 @@ var CSS = /* @__PURE__ */ Object.freeze({
119
119
 
120
120
  // src/components/DataGridCell.tsx
121
121
  var import_clsx9 = __toESM(require("clsx"), 1);
122
- var import_react11 = require("react");
122
+ var import_react12 = require("react");
123
123
 
124
124
  // src/classNames.ts
125
125
  var import_clsx = __toESM(require("clsx"), 1);
@@ -263,7 +263,7 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
263
263
 
264
264
  // src/components/MenuOption.tsx
265
265
  var import_clsx6 = __toESM(require("clsx"), 1);
266
- var import_react6 = require("react");
266
+ var import_react7 = require("react");
267
267
 
268
268
  // src/components/Label.tsx
269
269
  var import_clsx2 = __toESM(require("clsx"), 1);
@@ -713,6 +713,9 @@ function useTableLayout(initialColumns, key, autosync = true) {
713
713
  return { columns, setColumns: handleSaveLayout, isReady, getSavedLayout };
714
714
  }
715
715
 
716
+ // src/hooks/useEditCell.tsx
717
+ var import_react6 = require("react");
718
+
716
719
  // src/components/Caption.tsx
717
720
  var import_clsx5 = __toESM(require("clsx"), 1);
718
721
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -864,12 +867,12 @@ var MenuOption = ({
864
867
  onMouseMove,
865
868
  small = false
866
869
  }) => {
867
- const uniqueId = (0, import_react6.useId)();
868
- const internalRef = (0, import_react6.useRef)(null);
870
+ const uniqueId = (0, import_react7.useId)();
871
+ const internalRef = (0, import_react7.useRef)(null);
869
872
  const actualRef = ref || internalRef;
870
- const menuId = (0, import_react6.useRef)(`menu-${uniqueId}`);
873
+ const menuId = (0, import_react7.useRef)(`menu-${uniqueId}`);
871
874
  const isMobile = useMatchesMobile();
872
- const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react6.useState)(false);
875
+ const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react7.useState)(false);
873
876
  const handleMouseEnter = () => {
874
877
  if (subMenu && onSubMenuHover && !disabled) {
875
878
  onSubMenuHover(menuId.current, subMenuLevel);
@@ -1029,27 +1032,27 @@ function highlightMatch(text, searchValue) {
1029
1032
 
1030
1033
  // src/components/Menu.tsx
1031
1034
  var import_clsx7 = __toESM(require("clsx"), 1);
1032
- var import_react8 = require("react");
1035
+ var import_react9 = require("react");
1033
1036
  var import_react_dom = require("react-dom");
1034
1037
 
1035
1038
  // src/components/useMenuSystem.tsx
1036
- var import_react7 = require("react");
1039
+ var import_react8 = require("react");
1037
1040
  function useSubMenuSystem(mobilePositionTo) {
1038
- const [activeMenus, setActiveMenus] = (0, import_react7.useState)(
1041
+ const [activeMenus, setActiveMenus] = (0, import_react8.useState)(
1039
1042
  {}
1040
1043
  );
1041
- const [activeMenu, setActiveMenu] = (0, import_react7.useState)("");
1042
- const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react7.useState)(
1044
+ const [activeMenu, setActiveMenu] = (0, import_react8.useState)("");
1045
+ const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react8.useState)(
1043
1046
  null
1044
1047
  );
1045
- const menuRootRef = (0, import_react7.useRef)(null);
1046
- const subMenuRefs = (0, import_react7.useRef)({});
1047
- const hoverTimeoutRef = (0, import_react7.useRef)(null);
1048
- const closeTimeoutRef = (0, import_react7.useRef)(null);
1049
- const mouseStopTimeoutRef = (0, import_react7.useRef)(null);
1050
- const isMouseMovingRef = (0, import_react7.useRef)(false);
1051
- const pendingOpenActionRef = (0, import_react7.useRef)(null);
1052
- const pendingCloseActionRef = (0, import_react7.useRef)(null);
1048
+ const menuRootRef = (0, import_react8.useRef)(null);
1049
+ const subMenuRefs = (0, import_react8.useRef)({});
1050
+ const hoverTimeoutRef = (0, import_react8.useRef)(null);
1051
+ const closeTimeoutRef = (0, import_react8.useRef)(null);
1052
+ const mouseStopTimeoutRef = (0, import_react8.useRef)(null);
1053
+ const isMouseMovingRef = (0, import_react8.useRef)(false);
1054
+ const pendingOpenActionRef = (0, import_react8.useRef)(null);
1055
+ const pendingCloseActionRef = (0, import_react8.useRef)(null);
1053
1056
  const isMobile = useMatchesMobile();
1054
1057
  const toggleMenu = (menuId, level) => {
1055
1058
  if (closeTimeoutRef.current) {
@@ -1089,7 +1092,7 @@ function useSubMenuSystem(mobilePositionTo) {
1089
1092
  return newActiveMenus;
1090
1093
  });
1091
1094
  };
1092
- const executePendingActions = (0, import_react7.useCallback)(() => {
1095
+ const executePendingActions = (0, import_react8.useCallback)(() => {
1093
1096
  if (pendingCloseActionRef.current) {
1094
1097
  pendingCloseActionRef.current();
1095
1098
  pendingCloseActionRef.current = null;
@@ -1178,7 +1181,7 @@ function useSubMenuSystem(mobilePositionTo) {
1178
1181
  const isMenuActive = (menuId, level) => {
1179
1182
  return activeMenus[level] === menuId;
1180
1183
  };
1181
- (0, import_react7.useEffect)(() => {
1184
+ (0, import_react8.useEffect)(() => {
1182
1185
  const handleClickOutside = (event) => {
1183
1186
  var _a;
1184
1187
  if (Object.keys(activeMenus).length === 0) return;
@@ -1197,7 +1200,7 @@ function useSubMenuSystem(mobilePositionTo) {
1197
1200
  document.removeEventListener("mousedown", handleClickOutside);
1198
1201
  };
1199
1202
  }, [activeMenus]);
1200
- (0, import_react7.useEffect)(() => {
1203
+ (0, import_react8.useEffect)(() => {
1201
1204
  return () => {
1202
1205
  if (hoverTimeoutRef.current) {
1203
1206
  clearTimeout(hoverTimeoutRef.current);
@@ -1275,13 +1278,13 @@ function useSubMenuSystem(mobilePositionTo) {
1275
1278
  };
1276
1279
  }
1277
1280
  function useMenuPosition(elementRef, position = "bottom", options) {
1278
- const [menuPosition, setMenuPosition] = (0, import_react7.useState)({
1281
+ const [menuPosition, setMenuPosition] = (0, import_react8.useState)({
1279
1282
  top: 0,
1280
1283
  left: 0,
1281
1284
  minWidth: 0
1282
1285
  });
1283
1286
  const isMobile = options == null ? void 0 : options.isMobile;
1284
- const updatePosition = (0, import_react7.useCallback)(() => {
1287
+ const updatePosition = (0, import_react8.useCallback)(() => {
1285
1288
  var _a, _b, _c;
1286
1289
  if (!(elementRef == null ? void 0 : elementRef.current)) return;
1287
1290
  const triggerRect = elementRef.current.getBoundingClientRect();
@@ -1329,7 +1332,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1329
1332
  minWidth: triggerRect.width
1330
1333
  });
1331
1334
  }, [elementRef, position, options == null ? void 0 : options.menuRef, options == null ? void 0 : options.topOffset, isMobile]);
1332
- (0, import_react7.useEffect)(() => {
1335
+ (0, import_react8.useEffect)(() => {
1333
1336
  if (!(options == null ? void 0 : options.isOpen) || !(options == null ? void 0 : options.setIsOpen)) return;
1334
1337
  const handleClickOutside = (event) => {
1335
1338
  var _a, _b, _c, _d, _e;
@@ -1355,7 +1358,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1355
1358
  options == null ? void 0 : options.menuRef,
1356
1359
  options == null ? void 0 : options.additionalRefs
1357
1360
  ]);
1358
- (0, import_react7.useEffect)(() => {
1361
+ (0, import_react8.useEffect)(() => {
1359
1362
  updatePosition();
1360
1363
  const resizeObserver = new ResizeObserver(updatePosition);
1361
1364
  if (elementRef == null ? void 0 : elementRef.current) {
@@ -1436,9 +1439,9 @@ var Menu = (_a) => {
1436
1439
  "menuName",
1437
1440
  "calculateMinMaxHeight"
1438
1441
  ]);
1439
- const internalRef = (0, import_react8.useRef)(null);
1442
+ const internalRef = (0, import_react9.useRef)(null);
1440
1443
  const actualRef = ref || internalRef;
1441
- const [maxHeight, setMaxHeight] = (0, import_react8.useState)("180px");
1444
+ const [maxHeight, setMaxHeight] = (0, import_react9.useState)("180px");
1442
1445
  const isMobile = useMatchesMobile();
1443
1446
  const { menuPosition, updatePosition } = useMenuPosition(
1444
1447
  isMobile && mobilePositionTo ? mobilePositionTo : positionTo,
@@ -1451,7 +1454,7 @@ var Menu = (_a) => {
1451
1454
  isMobile: !!(isMobile && mobilePositionTo)
1452
1455
  }
1453
1456
  );
1454
- (0, import_react8.useEffect)(() => {
1457
+ (0, import_react9.useEffect)(() => {
1455
1458
  if (calculateMinMaxHeight) {
1456
1459
  return;
1457
1460
  }
@@ -1475,7 +1478,7 @@ var Menu = (_a) => {
1475
1478
  cancelAnimationFrame(raf);
1476
1479
  };
1477
1480
  }, [actualRef.current, customMaxHeight, calculateMinMaxHeight]);
1478
- (0, import_react8.useEffect)(() => {
1481
+ (0, import_react9.useEffect)(() => {
1479
1482
  if (!calculateMinMaxHeight) {
1480
1483
  return;
1481
1484
  }
@@ -1486,14 +1489,14 @@ var Menu = (_a) => {
1486
1489
  setMaxHeight(`${calculatedMaxHeight}px`);
1487
1490
  }
1488
1491
  }, [actualRef.current, positionTo == null ? void 0 : positionTo.current, calculateMinMaxHeight]);
1489
- (0, import_react8.useEffect)(() => {
1492
+ (0, import_react9.useEffect)(() => {
1490
1493
  if (!show) {
1491
1494
  return;
1492
1495
  }
1493
1496
  initializeMenuFocus();
1494
1497
  updatePosition();
1495
1498
  }, [show, updatePosition]);
1496
- (0, import_react8.useEffect)(() => {
1499
+ (0, import_react9.useEffect)(() => {
1497
1500
  if (!show || !setShow) {
1498
1501
  return;
1499
1502
  }
@@ -1647,10 +1650,10 @@ var Menu = (_a) => {
1647
1650
  Menu.displayName = "Menu";
1648
1651
 
1649
1652
  // src/components/Search.tsx
1650
- var import_react10 = require("react");
1653
+ var import_react11 = require("react");
1651
1654
 
1652
1655
  // src/components/Input.tsx
1653
- var import_react9 = require("react");
1656
+ var import_react10 = require("react");
1654
1657
  var import_clsx8 = __toESM(require("clsx"), 1);
1655
1658
  var import_jsx_runtime7 = require("react/jsx-runtime");
1656
1659
  var InputBase = (_a) => {
@@ -1707,9 +1710,9 @@ var InputBase = (_a) => {
1707
1710
  "data-error": error && !focus || null,
1708
1711
  "data-focus": focus || null
1709
1712
  };
1710
- const inputRef = (0, import_react9.useRef)(null);
1713
+ const inputRef = (0, import_react10.useRef)(null);
1711
1714
  const inputId = id ? `${id}-input` : void 0;
1712
- (0, import_react9.useEffect)(() => {
1715
+ (0, import_react10.useEffect)(() => {
1713
1716
  var _a2;
1714
1717
  const input = inputRef.current;
1715
1718
  const focusHandler = () => {
@@ -1868,15 +1871,15 @@ var Input = (_a) => {
1868
1871
  "testid",
1869
1872
  "rightAdornment"
1870
1873
  ]);
1871
- const [internalValue, setInternalValue] = (0, import_react9.useState)("");
1872
- const [displayValue, setDisplayValue] = (0, import_react9.useState)("");
1873
- (0, import_react9.useEffect)(() => {
1874
+ const [internalValue, setInternalValue] = (0, import_react10.useState)("");
1875
+ const [displayValue, setDisplayValue] = (0, import_react10.useState)("");
1876
+ (0, import_react10.useEffect)(() => {
1874
1877
  var _a2;
1875
1878
  const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
1876
1879
  setInternalValue(stringValue);
1877
1880
  setDisplayValue(stringValue);
1878
1881
  }, [propValue]);
1879
- (0, import_react9.useEffect)(() => {
1882
+ (0, import_react10.useEffect)(() => {
1880
1883
  var _a2;
1881
1884
  if (variant !== "currency") {
1882
1885
  return;
@@ -2137,14 +2140,14 @@ var Search = (_a) => {
2137
2140
  "removeRoundness",
2138
2141
  "autocompletePadding"
2139
2142
  ]);
2140
- const inputRef = (0, import_react10.useRef)(null);
2141
- const inputContainerRef = (0, import_react10.useRef)(null);
2142
- const preventFocusOnInitialRender = (0, import_react10.useRef)(true);
2143
- const [show, setShow] = (0, import_react10.useState)(false);
2144
- const [clearing, setClearing] = (0, import_react10.useState)(false);
2145
- const uniqueId = (0, import_react10.useId)();
2143
+ const inputRef = (0, import_react11.useRef)(null);
2144
+ const inputContainerRef = (0, import_react11.useRef)(null);
2145
+ const preventFocusOnInitialRender = (0, import_react11.useRef)(true);
2146
+ const [show, setShow] = (0, import_react11.useState)(false);
2147
+ const [clearing, setClearing] = (0, import_react11.useState)(false);
2148
+ const uniqueId = (0, import_react11.useId)();
2146
2149
  const searchMenuName = `search-menu-${uniqueId}`;
2147
- (0, import_react10.useEffect)(() => {
2150
+ (0, import_react11.useEffect)(() => {
2148
2151
  var _a2;
2149
2152
  if (preventFocusOnInitialRender.current) {
2150
2153
  preventFocusOnInitialRender.current = false;
@@ -2228,7 +2231,7 @@ Search.displayName = "Search";
2228
2231
 
2229
2232
  // src/components/DataGridCell.tsx
2230
2233
  var import_jsx_runtime9 = require("react/jsx-runtime");
2231
- var DataGridCell = (0, import_react11.memo)(
2234
+ var DataGridCell = (0, import_react12.memo)(
2232
2235
  (_a) => {
2233
2236
  var _b = _a, {
2234
2237
  id,
@@ -2270,10 +2273,10 @@ var DataGridCell = (0, import_react11.memo)(
2270
2273
  "testid"
2271
2274
  ]);
2272
2275
  const Element = type === "header" ? "th" : "td";
2273
- const timerRef = (0, import_react11.useRef)(null);
2274
- const [isGrabbing, setIsGrabbing] = (0, import_react11.useState)(false);
2275
- const [isPointerPressed, setIsPointerPressed] = (0, import_react11.useState)(false);
2276
- (0, import_react11.useEffect)(() => {
2276
+ const timerRef = (0, import_react12.useRef)(null);
2277
+ const [isGrabbing, setIsGrabbing] = (0, import_react12.useState)(false);
2278
+ const [isPointerPressed, setIsPointerPressed] = (0, import_react12.useState)(false);
2279
+ (0, import_react12.useEffect)(() => {
2277
2280
  return () => {
2278
2281
  if (timerRef.current) {
2279
2282
  clearTimeout(timerRef.current);
@@ -2383,12 +2386,12 @@ function DataCellHeader(_a) {
2383
2386
  "useMenuDefaultMinWidth"
2384
2387
  ]);
2385
2388
  var _a2;
2386
- const [showMenu, setShowMenu] = (0, import_react11.useState)(false);
2387
- const [filter, setFilter] = (0, import_react11.useState)(
2389
+ const [showMenu, setShowMenu] = (0, import_react12.useState)(false);
2390
+ const [filter, setFilter] = (0, import_react12.useState)(
2388
2391
  (_a2 = header.column.getFilterValue()) != null ? _a2 : ""
2389
2392
  );
2390
- const ref = (0, import_react11.useRef)(null);
2391
- const predeterminedPinned = (0, import_react11.useRef)(false);
2393
+ const ref = (0, import_react12.useRef)(null);
2394
+ const predeterminedPinned = (0, import_react12.useRef)(false);
2392
2395
  const { column, getContext } = header;
2393
2396
  const { id: columnId, setFilterValue } = column;
2394
2397
  const {
@@ -2398,14 +2401,14 @@ function DataCellHeader(_a) {
2398
2401
  listeners: subMenuListeners,
2399
2402
  mobileHide
2400
2403
  } = useSubMenuSystem(node ? node : ref);
2401
- (0, import_react11.useEffect)(() => {
2404
+ (0, import_react12.useEffect)(() => {
2402
2405
  var _a3, _b2, _c;
2403
2406
  const columnPinning = (_a3 = getContext().table.options.initialState) == null ? void 0 : _a3.columnPinning;
2404
2407
  const left = (_b2 = columnPinning == null ? void 0 : columnPinning.left) != null ? _b2 : [];
2405
2408
  const right = (_c = columnPinning == null ? void 0 : columnPinning.right) != null ? _c : [];
2406
2409
  predeterminedPinned.current = [...left, ...right].includes(columnId);
2407
2410
  }, [columnId, getContext]);
2408
- (0, import_react11.useEffect)(() => {
2411
+ (0, import_react12.useEffect)(() => {
2409
2412
  const handler = setTimeout(() => {
2410
2413
  setFilterValue(filter);
2411
2414
  }, 500);
@@ -2668,7 +2671,7 @@ function DragAlongCell(_a) {
2668
2671
  DragAlongCell.displayName = "DragAlongCell";
2669
2672
 
2670
2673
  // src/components/DataGrid/index.tsx
2671
- var import_react15 = __toESM(require("react"), 1);
2674
+ var import_react16 = __toESM(require("react"), 1);
2672
2675
  var import_react_table2 = require("@tanstack/react-table");
2673
2676
  var import_core = require("@dnd-kit/core");
2674
2677
  var import_sortable2 = require("@dnd-kit/sortable");
@@ -2696,7 +2699,7 @@ function getSortIcon(sort, nextSort = false) {
2696
2699
  }
2697
2700
 
2698
2701
  // src/components/DataGrid/PinnedColumns.tsx
2699
- var import_react14 = __toESM(require("react"), 1);
2702
+ var import_react15 = __toESM(require("react"), 1);
2700
2703
 
2701
2704
  // src/components/DataGrid/TableBody/index.tsx
2702
2705
  var import_react_virtual = require("@tanstack/react-virtual");
@@ -2881,10 +2884,10 @@ function TableBody({
2881
2884
  }
2882
2885
 
2883
2886
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
2884
- var import_react13 = require("react");
2887
+ var import_react14 = require("react");
2885
2888
 
2886
2889
  // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
2887
- var import_react12 = require("react");
2890
+ var import_react13 = require("react");
2888
2891
  var import_jsx_runtime13 = require("react/jsx-runtime");
2889
2892
  function ColumnSelectorMenuOption({
2890
2893
  id,
@@ -2892,7 +2895,7 @@ function ColumnSelectorMenuOption({
2892
2895
  column,
2893
2896
  toggleColumnVisibility
2894
2897
  }) {
2895
- const [isVisible, setIsVisible] = (0, import_react12.useState)(column.getIsVisible());
2898
+ const [isVisible, setIsVisible] = (0, import_react13.useState)(column.getIsVisible());
2896
2899
  const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
2897
2900
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2898
2901
  Checkbox,
@@ -2918,8 +2921,8 @@ function ColumnSelectorHeaderCell({
2918
2921
  toggleColumnVisibility,
2919
2922
  resetColumnVisibility
2920
2923
  }) {
2921
- const ref = (0, import_react13.useRef)(null);
2922
- const [show, setShow] = (0, import_react13.useState)(false);
2924
+ const ref = (0, import_react14.useRef)(null);
2925
+ const [show, setShow] = (0, import_react14.useState)(false);
2923
2926
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2924
2927
  DataGridCell,
2925
2928
  {
@@ -3088,7 +3091,7 @@ function PinnedColumns(_a) {
3088
3091
  header.id
3089
3092
  );
3090
3093
  }
3091
- 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)(
3094
+ 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)(
3092
3095
  Checkbox,
3093
3096
  {
3094
3097
  checked: allSelectedAcrossPages,
@@ -3170,23 +3173,23 @@ function DataGrid({
3170
3173
  ref
3171
3174
  }) {
3172
3175
  var _a, _b, _c, _d, _e, _f, _g;
3173
- (0, import_react15.useImperativeHandle)(ref, () => ({
3176
+ (0, import_react16.useImperativeHandle)(ref, () => ({
3174
3177
  getSavedLayout: () => {
3175
3178
  return getSavedLayout();
3176
3179
  }
3177
3180
  }));
3178
- const [localSorting, setLocalSorting] = (0, import_react15.useState)([]);
3179
- const [localColumnFilters, setLocalColumnFilters] = (0, import_react15.useState)([]);
3180
- const [localRowSelection, setLocalRowSelection] = (0, import_react15.useState)({});
3181
+ const [localSorting, setLocalSorting] = (0, import_react16.useState)([]);
3182
+ const [localColumnFilters, setLocalColumnFilters] = (0, import_react16.useState)([]);
3183
+ const [localRowSelection, setLocalRowSelection] = (0, import_react16.useState)({});
3181
3184
  const {
3182
3185
  columns: tableColumns,
3183
3186
  setColumns: setTableColumns,
3184
3187
  getSavedLayout
3185
3188
  } = useTableLayout(columns, id != null ? id : testid);
3186
- const [columnOrder, setColumnOrder] = (0, import_react15.useState)(
3189
+ const [columnOrder, setColumnOrder] = (0, import_react16.useState)(
3187
3190
  tableColumns.map((c) => c.id)
3188
3191
  );
3189
- const [columnVisibility, setColumnVisibility] = (0, import_react15.useState)(
3192
+ const [columnVisibility, setColumnVisibility] = (0, import_react16.useState)(
3190
3193
  Object.fromEntries(
3191
3194
  tableColumns.filter((column) => !!column.id).map((column) => {
3192
3195
  var _a2, _b2;
@@ -3194,7 +3197,7 @@ function DataGrid({
3194
3197
  })
3195
3198
  )
3196
3199
  );
3197
- const updateColumnVisibility = (0, import_react15.useCallback)(
3200
+ const updateColumnVisibility = (0, import_react16.useCallback)(
3198
3201
  (updateOrder) => {
3199
3202
  setColumnVisibility(
3200
3203
  Object.fromEntries(
@@ -3208,7 +3211,7 @@ function DataGrid({
3208
3211
  },
3209
3212
  [tableColumns]
3210
3213
  );
3211
- const resetDefaultColumnVisibility = (0, import_react15.useCallback)(() => {
3214
+ const resetDefaultColumnVisibility = (0, import_react16.useCallback)(() => {
3212
3215
  setTableColumns((prev) => {
3213
3216
  columns.forEach((column) => {
3214
3217
  var _a2, _b2;
@@ -3224,7 +3227,7 @@ function DataGrid({
3224
3227
  return [...prev];
3225
3228
  }, true);
3226
3229
  }, [columns, setTableColumns]);
3227
- (0, import_react15.useEffect)(() => {
3230
+ (0, import_react16.useEffect)(() => {
3228
3231
  updateColumnVisibility(true);
3229
3232
  }, [updateColumnVisibility]);
3230
3233
  const sortingState = pagination ? externalSorting != null ? externalSorting : localSorting : localSorting;
@@ -3240,7 +3243,7 @@ function DataGrid({
3240
3243
  (onColumnFiltersChange != null ? onColumnFiltersChange : setLocalColumnFilters)(value);
3241
3244
  } : setLocalColumnFilters;
3242
3245
  const rowSelection = externalRowSelection != null ? externalRowSelection : localRowSelection;
3243
- const setRowSelection = (0, import_react15.useCallback)(
3246
+ const setRowSelection = (0, import_react16.useCallback)(
3244
3247
  (updaterOrValue) => {
3245
3248
  if (pagination) {
3246
3249
  const value = typeof updaterOrValue === "function" ? updaterOrValue(externalRowSelection != null ? externalRowSelection : {}) : updaterOrValue;
@@ -3254,9 +3257,9 @@ function DataGrid({
3254
3257
  },
3255
3258
  [externalRowSelection, onRowSelectionChange, pagination]
3256
3259
  );
3257
- const dndId = (0, import_react15.useId)();
3258
- const containerRef = import_react15.default.useRef(null);
3259
- const toggleColumnVisibility = (0, import_react15.useCallback)(
3260
+ const dndId = (0, import_react16.useId)();
3261
+ const containerRef = import_react16.default.useRef(null);
3262
+ const toggleColumnVisibility = (0, import_react16.useCallback)(
3260
3263
  (columnId, isVisible) => {
3261
3264
  setTableColumns((prev) => {
3262
3265
  const persistedIndex = prev.findIndex((col) => col.id === columnId);
@@ -3504,7 +3507,7 @@ function DataGrid({
3504
3507
  header.id
3505
3508
  );
3506
3509
  }
3507
- 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)(
3510
+ 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)(
3508
3511
  DataGridCell,
3509
3512
  {
3510
3513
  id: id ? `${id}-header-${header.id}` : void 0,
@@ -3710,7 +3713,7 @@ function adaptTableStateSetter(setter) {
3710
3713
  }
3711
3714
 
3712
3715
  // src/components/Select.tsx
3713
- var import_react16 = require("react");
3716
+ var import_react17 = require("react");
3714
3717
  var import_clsx14 = __toESM(require("clsx"), 1);
3715
3718
  var import_jsx_runtime17 = require("react/jsx-runtime");
3716
3719
  var Select = (_a) => {
@@ -3744,11 +3747,11 @@ var Select = (_a) => {
3744
3747
  "value"
3745
3748
  ]);
3746
3749
  var _a2;
3747
- const inputRef = (0, import_react16.useRef)(null);
3748
- const inputContainerRef = (0, import_react16.useRef)(null);
3749
- const preventFocusOnInitialRender = (0, import_react16.useRef)(true);
3750
- const [show, setShow] = (0, import_react16.useState)(false);
3751
- (0, import_react16.useEffect)(() => {
3750
+ const inputRef = (0, import_react17.useRef)(null);
3751
+ const inputContainerRef = (0, import_react17.useRef)(null);
3752
+ const preventFocusOnInitialRender = (0, import_react17.useRef)(true);
3753
+ const [show, setShow] = (0, import_react17.useState)(false);
3754
+ (0, import_react17.useEffect)(() => {
3752
3755
  var _a3;
3753
3756
  if (preventFocusOnInitialRender.current) {
3754
3757
  preventFocusOnInitialRender.current = false;
@@ -4170,7 +4173,7 @@ Button.displayName = "Button";
4170
4173
 
4171
4174
  // src/components/Tooltip.tsx
4172
4175
  var import_clsx18 = __toESM(require("clsx"), 1);
4173
- var import_react17 = require("react");
4176
+ var import_react18 = require("react");
4174
4177
  var import_react_dom2 = require("react-dom");
4175
4178
  var import_jsx_runtime22 = require("react/jsx-runtime");
4176
4179
  var Tooltip = ({
@@ -4183,11 +4186,11 @@ var Tooltip = ({
4183
4186
  offset = 8,
4184
4187
  keepHidden = false
4185
4188
  }) => {
4186
- const ref = (0, import_react17.useRef)(null);
4187
- const tooltipRef = (0, import_react17.useRef)(null);
4188
- const [tooltipPosition, setTooltipPosition] = (0, import_react17.useState)({ top: 0, left: 0 });
4189
- const [isVisible, setIsVisible] = (0, import_react17.useState)(false);
4190
- const [removeOpacity, setRemoveOpacity] = (0, import_react17.useState)(false);
4189
+ const ref = (0, import_react18.useRef)(null);
4190
+ const tooltipRef = (0, import_react18.useRef)(null);
4191
+ const [tooltipPosition, setTooltipPosition] = (0, import_react18.useState)({ top: 0, left: 0 });
4192
+ const [isVisible, setIsVisible] = (0, import_react18.useState)(false);
4193
+ const [removeOpacity, setRemoveOpacity] = (0, import_react18.useState)(false);
4191
4194
  const updatePosition = () => {
4192
4195
  if (!ref.current || !tooltipRef.current) return;
4193
4196
  const rect = ref.current.getBoundingClientRect();
@@ -4226,14 +4229,14 @@ var Tooltip = ({
4226
4229
  setIsVisible(false);
4227
4230
  setRemoveOpacity(false);
4228
4231
  };
4229
- (0, import_react17.useEffect)(() => {
4232
+ (0, import_react18.useEffect)(() => {
4230
4233
  if (isVisible && tooltipRef.current) {
4231
4234
  requestAnimationFrame(() => {
4232
4235
  updatePosition();
4233
4236
  });
4234
4237
  }
4235
4238
  }, [isVisible]);
4236
- (0, import_react17.useEffect)(() => {
4239
+ (0, import_react18.useEffect)(() => {
4237
4240
  if (isVisible) {
4238
4241
  window.addEventListener("resize", updatePosition);
4239
4242
  return () => window.removeEventListener("resize", updatePosition);
@@ -4291,12 +4294,12 @@ var Tooltip = ({
4291
4294
  Tooltip.displayName = "Tooltip";
4292
4295
 
4293
4296
  // src/components/DateInput.tsx
4294
- var import_react19 = require("react");
4297
+ var import_react20 = require("react");
4295
4298
  var import_react_dom3 = require("react-dom");
4296
4299
 
4297
4300
  // src/components/CalendarRange.tsx
4298
4301
  var import_clsx19 = __toESM(require("clsx"), 1);
4299
- var import_react18 = __toESM(require("react"), 1);
4302
+ var import_react19 = __toESM(require("react"), 1);
4300
4303
  var import_polyfill = require("@js-temporal/polyfill");
4301
4304
  var import_jsx_runtime23 = require("react/jsx-runtime");
4302
4305
  function DateCell(_a) {
@@ -4409,20 +4412,20 @@ function CalendarRange({
4409
4412
  const fromDate = parseDate(from);
4410
4413
  const toDate = parseDate(to);
4411
4414
  const today = import_polyfill.Temporal.Now.plainDateISO();
4412
- const [baseMonth, setBaseMonth] = (0, import_react18.useState)(
4415
+ const [baseMonth, setBaseMonth] = (0, import_react19.useState)(
4413
4416
  fromDate != null ? fromDate : today.with({ day: 1 })
4414
4417
  );
4415
- const [selecting, setSelecting] = (0, import_react18.useState)("from");
4416
- const [pendingFrom, setPendingFrom] = (0, import_react18.useState)(void 0);
4417
- const [hoveredDate, setHoveredDate] = (0, import_react18.useState)(void 0);
4418
- (0, import_react18.useEffect)(() => {
4418
+ const [selecting, setSelecting] = (0, import_react19.useState)("from");
4419
+ const [pendingFrom, setPendingFrom] = (0, import_react19.useState)(void 0);
4420
+ const [hoveredDate, setHoveredDate] = (0, import_react19.useState)(void 0);
4421
+ (0, import_react19.useEffect)(() => {
4419
4422
  if (fromDate) {
4420
4423
  setBaseMonth(fromDate.with({ day: 1 }));
4421
4424
  } else if (toDate) {
4422
4425
  setBaseMonth(toDate.with({ day: 1 }));
4423
4426
  }
4424
4427
  }, [from, to]);
4425
- (0, import_react18.useEffect)(() => {
4428
+ (0, import_react19.useEffect)(() => {
4426
4429
  if (fromDate && toDate) {
4427
4430
  setSelecting("from");
4428
4431
  setPendingFrom(void 0);
@@ -4568,14 +4571,14 @@ function CalendarPane({
4568
4571
  const years = Array.from({ length: 100 }).map(
4569
4572
  (_, i) => baseMonth.year - 50 + i
4570
4573
  );
4571
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react18.useState)(false);
4572
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react18.useState)(false);
4573
- const monthMenuRef = (0, import_react18.useRef)(null);
4574
- const yearMenuRef = (0, import_react18.useRef)(null);
4574
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react19.useState)(false);
4575
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react19.useState)(false);
4576
+ const monthMenuRef = (0, import_react19.useRef)(null);
4577
+ const yearMenuRef = (0, import_react19.useRef)(null);
4575
4578
  const month = getMonthData(offset);
4576
4579
  const totalCells = 42;
4577
4580
  const emptyCells = month.firstDayOffset;
4578
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react18.default.Fragment, { children: [
4581
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react19.default.Fragment, { children: [
4579
4582
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4580
4583
  "div",
4581
4584
  {
@@ -4783,24 +4786,24 @@ var DateInput = (_a) => {
4783
4786
  "label",
4784
4787
  "isDateAvailable"
4785
4788
  ]);
4786
- const [visible, setVisible] = (0, import_react19.useState)(false);
4787
- const [inputValue, setInputValue] = (0, import_react19.useState)("");
4788
- const [isTyping, setIsTyping] = (0, import_react19.useState)(false);
4789
- const popoverRef = (0, import_react19.useRef)(null);
4790
- const triggerRef = (0, import_react19.useRef)(null);
4791
- const rootRef = (0, import_react19.useRef)(null);
4792
- const [calendarPosition, setCalendarPosition] = (0, import_react19.useState)({
4789
+ const [visible, setVisible] = (0, import_react20.useState)(false);
4790
+ const [inputValue, setInputValue] = (0, import_react20.useState)("");
4791
+ const [isTyping, setIsTyping] = (0, import_react20.useState)(false);
4792
+ const popoverRef = (0, import_react20.useRef)(null);
4793
+ const triggerRef = (0, import_react20.useRef)(null);
4794
+ const rootRef = (0, import_react20.useRef)(null);
4795
+ const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
4793
4796
  top: 0,
4794
4797
  left: 0,
4795
4798
  width: 0
4796
4799
  });
4797
4800
  const [from, to] = [value, ""];
4798
- (0, import_react19.useEffect)(() => {
4801
+ (0, import_react20.useEffect)(() => {
4799
4802
  if (!isTyping) {
4800
4803
  setInputValue(formatDisplayValue(from));
4801
4804
  }
4802
4805
  }, [from, isTyping]);
4803
- (0, import_react19.useLayoutEffect)(() => {
4806
+ (0, import_react20.useLayoutEffect)(() => {
4804
4807
  if (visible) {
4805
4808
  updatePosition();
4806
4809
  }
@@ -4815,7 +4818,7 @@ var DateInput = (_a) => {
4815
4818
  });
4816
4819
  }
4817
4820
  };
4818
- (0, import_react19.useEffect)(() => {
4821
+ (0, import_react20.useEffect)(() => {
4819
4822
  updatePosition();
4820
4823
  const resizeObserver = new ResizeObserver(updatePosition);
4821
4824
  if (triggerRef.current) {
@@ -4827,7 +4830,7 @@ var DateInput = (_a) => {
4827
4830
  window.removeEventListener("scroll", updatePosition);
4828
4831
  };
4829
4832
  }, []);
4830
- (0, import_react19.useEffect)(() => {
4833
+ (0, import_react20.useEffect)(() => {
4831
4834
  const handleKeyDown2 = (event) => {
4832
4835
  var _a2;
4833
4836
  if (event.key === "Escape" && popoverRef.current) {
@@ -4840,7 +4843,7 @@ var DateInput = (_a) => {
4840
4843
  document.removeEventListener("keydown", handleKeyDown2);
4841
4844
  };
4842
4845
  });
4843
- (0, import_react19.useEffect)(() => {
4846
+ (0, import_react20.useEffect)(() => {
4844
4847
  const handleClickOutside = (event) => {
4845
4848
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4846
4849
  setVisible(false);
@@ -5061,14 +5064,14 @@ Heading3.displayName = "Heading3";
5061
5064
  var import_jsx_runtime29 = require("react/jsx-runtime");
5062
5065
 
5063
5066
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
5064
- var import_react22 = require("react");
5067
+ var import_react23 = require("react");
5065
5068
 
5066
5069
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
5067
- var import_react21 = require("react");
5070
+ var import_react22 = require("react");
5068
5071
 
5069
5072
  // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
5070
- var import_react20 = require("react");
5071
- var GridContext = (0, import_react20.createContext)(null);
5073
+ var import_react21 = require("react");
5074
+ var GridContext = (0, import_react21.createContext)(null);
5072
5075
 
5073
5076
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
5074
5077
  var import_jsx_runtime30 = require("react/jsx-runtime");
@@ -5077,12 +5080,12 @@ var import_jsx_runtime30 = require("react/jsx-runtime");
5077
5080
  var import_jsx_runtime31 = require("react/jsx-runtime");
5078
5081
 
5079
5082
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
5080
- var import_react23 = require("react");
5083
+ var import_react24 = require("react");
5081
5084
  var import_jsx_runtime32 = require("react/jsx-runtime");
5082
5085
 
5083
5086
  // src/components/Modal.tsx
5084
5087
  var import_clsx28 = __toESM(require("clsx"), 1);
5085
- var import_react25 = require("react");
5088
+ var import_react26 = require("react");
5086
5089
 
5087
5090
  // src/components/ModalHeader.tsx
5088
5091
  var import_clsx24 = __toESM(require("clsx"), 1);
@@ -5258,10 +5261,10 @@ var import_react_dom4 = require("react-dom");
5258
5261
  var import_react_use = require("react-use");
5259
5262
 
5260
5263
  // src/components/useMounted.tsx
5261
- var import_react24 = require("react");
5264
+ var import_react25 = require("react");
5262
5265
  var useMounted = () => {
5263
- const [isMounted, setIsMounted] = (0, import_react24.useState)(false);
5264
- (0, import_react24.useEffect)(() => {
5266
+ const [isMounted, setIsMounted] = (0, import_react25.useState)(false);
5267
+ (0, import_react25.useEffect)(() => {
5265
5268
  setIsMounted(true);
5266
5269
  return () => setIsMounted(false);
5267
5270
  }, []);
@@ -5355,12 +5358,12 @@ var Modal = ({
5355
5358
  }) => {
5356
5359
  var _a;
5357
5360
  const mounted = useMounted();
5358
- const modalRef = (0, import_react25.useRef)(null);
5359
- const bgRef = (0, import_react25.useRef)(null);
5361
+ const modalRef = (0, import_react26.useRef)(null);
5362
+ const bgRef = (0, import_react26.useRef)(null);
5360
5363
  const wasOpen = (0, import_react_use.usePrevious)(open);
5361
5364
  const isMobile = useMatchesMobile();
5362
5365
  const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
5363
- (0, import_react25.useEffect)(() => {
5366
+ (0, import_react26.useEffect)(() => {
5364
5367
  if (!mounted) return;
5365
5368
  if (!modalRef.current || !bgRef.current) {
5366
5369
  console.error("Modal or background reference is not set.");
@@ -5380,7 +5383,7 @@ var Modal = ({
5380
5383
  bgFadeIn(bgRef.current);
5381
5384
  }
5382
5385
  }, [mounted, onClose, open, wasOpen]);
5383
- const handleKeyDown = (0, import_react25.useCallback)(
5386
+ const handleKeyDown = (0, import_react26.useCallback)(
5384
5387
  (e) => {
5385
5388
  if (e.key === "Escape") {
5386
5389
  if (onClose) {
@@ -5391,12 +5394,12 @@ var Modal = ({
5391
5394
  },
5392
5395
  [onClose]
5393
5396
  );
5394
- const handleClose = (0, import_react25.useCallback)(() => {
5397
+ const handleClose = (0, import_react26.useCallback)(() => {
5395
5398
  if (onClose) {
5396
5399
  onClose();
5397
5400
  }
5398
5401
  }, [onClose]);
5399
- (0, import_react25.useEffect)(() => {
5402
+ (0, import_react26.useEffect)(() => {
5400
5403
  if (open) {
5401
5404
  document.addEventListener("keyup", handleKeyDown);
5402
5405
  }
@@ -5404,7 +5407,7 @@ var Modal = ({
5404
5407
  document.removeEventListener("keyup", handleKeyDown);
5405
5408
  };
5406
5409
  }, [open, handleKeyDown]);
5407
- (0, import_react25.useEffect)(() => {
5410
+ (0, import_react26.useEffect)(() => {
5408
5411
  if (!open) return;
5409
5412
  const scrollY = window.scrollY;
5410
5413
  const body = document.body;
@@ -5425,7 +5428,7 @@ var Modal = ({
5425
5428
  };
5426
5429
  }, [open]);
5427
5430
  const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
5428
- const backgroundClickHandler = (0, import_react25.useCallback)(
5431
+ const backgroundClickHandler = (0, import_react26.useCallback)(
5429
5432
  (e) => {
5430
5433
  const target = e.target;
5431
5434
  const currentTarget = e.currentTarget;
@@ -5534,10 +5537,10 @@ var import_jsx_runtime42 = require("react/jsx-runtime");
5534
5537
  var import_jsx_runtime43 = require("react/jsx-runtime");
5535
5538
 
5536
5539
  // src/components/ProductImagePreview/Thumbnail.tsx
5537
- var import_react27 = require("react");
5540
+ var import_react28 = require("react");
5538
5541
 
5539
5542
  // src/components/ImagePlaceholder.tsx
5540
- var import_react26 = require("react");
5543
+ var import_react27 = require("react");
5541
5544
  var import_jsx_runtime44 = require("react/jsx-runtime");
5542
5545
 
5543
5546
  // src/components/ProductImagePreview/Thumbnail.tsx
@@ -5548,11 +5551,11 @@ var import_clsx31 = __toESM(require("clsx"), 1);
5548
5551
  var import_jsx_runtime46 = require("react/jsx-runtime");
5549
5552
 
5550
5553
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
5551
- var import_react28 = require("react");
5554
+ var import_react29 = require("react");
5552
5555
  var import_jsx_runtime47 = require("react/jsx-runtime");
5553
5556
 
5554
5557
  // src/components/ProductImagePreview/ZoomWindow.tsx
5555
- var import_react29 = require("react");
5558
+ var import_react30 = require("react");
5556
5559
 
5557
5560
  // src/components/Surface.tsx
5558
5561
  var import_clsx32 = __toESM(require("clsx"), 1);
@@ -5597,17 +5600,17 @@ var import_clsx33 = require("clsx");
5597
5600
  var import_jsx_runtime50 = require("react/jsx-runtime");
5598
5601
 
5599
5602
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
5600
- var import_react30 = require("react");
5603
+ var import_react31 = require("react");
5601
5604
  var import_jsx_runtime51 = require("react/jsx-runtime");
5602
5605
 
5603
5606
  // src/components/ProductImagePreview/useProductImagePreview.ts
5604
- var import_react31 = require("react");
5607
+ var import_react32 = require("react");
5605
5608
 
5606
5609
  // src/components/ProductImagePreview/index.tsx
5607
5610
  var import_jsx_runtime52 = require("react/jsx-runtime");
5608
5611
 
5609
5612
  // src/components/CompactImagesPreview.tsx
5610
- var import_react32 = require("react");
5613
+ var import_react33 = require("react");
5611
5614
  var import_clsx34 = __toESM(require("clsx"), 1);
5612
5615
  var import_jsx_runtime53 = require("react/jsx-runtime");
5613
5616
 
@@ -5616,12 +5619,12 @@ var import_clsx35 = __toESM(require("clsx"), 1);
5616
5619
  var import_jsx_runtime54 = require("react/jsx-runtime");
5617
5620
 
5618
5621
  // src/components/ListGroup.tsx
5619
- var import_react33 = require("react");
5622
+ var import_react34 = require("react");
5620
5623
  var import_clsx36 = __toESM(require("clsx"), 1);
5621
5624
  var import_jsx_runtime55 = require("react/jsx-runtime");
5622
5625
 
5623
5626
  // src/components/Pagination.tsx
5624
- var import_react34 = require("react");
5627
+ var import_react35 = require("react");
5625
5628
  var import_clsx37 = __toESM(require("clsx"), 1);
5626
5629
  var import_jsx_runtime56 = require("react/jsx-runtime");
5627
5630
  var Pagination = ({
@@ -5633,7 +5636,7 @@ var Pagination = ({
5633
5636
  className,
5634
5637
  disabled
5635
5638
  }) => {
5636
- const goTo = (0, import_react34.useCallback)(
5639
+ const goTo = (0, import_react35.useCallback)(
5637
5640
  (page) => {
5638
5641
  if (disabled) return;
5639
5642
  onPageChange(page);
@@ -5650,7 +5653,7 @@ var Pagination = ({
5650
5653
  goTo(currentPage + 1);
5651
5654
  }
5652
5655
  };
5653
- const pageTokens = (0, import_react34.useMemo)(() => {
5656
+ const pageTokens = (0, import_react35.useMemo)(() => {
5654
5657
  if (totalPages <= 5) {
5655
5658
  return Array.from({ length: totalPages }, (_, i) => i + 1);
5656
5659
  }
@@ -5773,21 +5776,21 @@ var import_jsx_runtime57 = require("react/jsx-runtime");
5773
5776
  var import_jsx_runtime58 = require("react/jsx-runtime");
5774
5777
 
5775
5778
  // src/components/SearchResultImage/index.tsx
5776
- var import_react35 = require("react");
5779
+ var import_react36 = require("react");
5777
5780
  var import_jsx_runtime59 = require("react/jsx-runtime");
5778
5781
 
5779
5782
  // src/components/Alert.tsx
5780
5783
  var import_clsx38 = __toESM(require("clsx"), 1);
5781
- var import_react36 = require("react");
5784
+ var import_react37 = require("react");
5782
5785
  var import_jsx_runtime60 = require("react/jsx-runtime");
5783
5786
 
5784
5787
  // src/components/OrderCheckIcon.tsx
5785
5788
  var import_jsx_runtime61 = require("react/jsx-runtime");
5786
5789
 
5787
5790
  // src/components/EditingContext.tsx
5788
- var import_react37 = require("react");
5791
+ var import_react38 = require("react");
5789
5792
  var import_jsx_runtime62 = require("react/jsx-runtime");
5790
- var EditingContext = (0, import_react37.createContext)(null);
5793
+ var EditingContext = (0, import_react38.createContext)(null);
5791
5794
 
5792
5795
  // src/components/AccessCard.tsx
5793
5796
  var import_clsx40 = __toESM(require("clsx"), 1);
@@ -5921,7 +5924,7 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
5921
5924
 
5922
5925
  // src/components/AccessCardGroup.tsx
5923
5926
  var import_clsx41 = __toESM(require("clsx"), 1);
5924
- var import_react38 = require("react");
5927
+ var import_react39 = require("react");
5925
5928
  var import_jsx_runtime65 = require("react/jsx-runtime");
5926
5929
 
5927
5930
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
@@ -5992,7 +5995,7 @@ function TableBodyRow({
5992
5995
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
5993
5996
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
5994
5997
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
5995
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react39.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5998
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react40.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5996
5999
  CellElement,
5997
6000
  {
5998
6001
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,