react-grid-layout 2.2.0 → 2.2.2

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 (59) hide show
  1. package/README.md +14 -55
  2. package/dist/{ResponsiveGridLayout-BkHF9YHa.d.mts → ResponsiveGridLayout-DqK__izz.d.mts} +1 -1
  3. package/dist/{ResponsiveGridLayout-CLn16-X3.d.ts → ResponsiveGridLayout-MbDNfJ8M.d.ts} +1 -1
  4. package/dist/{calculate-DsVTldEE.d.ts → calculate-9RxGrt-U.d.ts} +1 -1
  5. package/dist/{calculate-DwbL1D06.d.mts → calculate-FbCWy8x1.d.mts} +1 -1
  6. package/dist/{chunk-2TEFHZC4.js → chunk-2DDROKB2.js} +10 -153
  7. package/dist/chunk-2DDROKB2.js.map +1 -0
  8. package/dist/{chunk-NQUM7RXX.js → chunk-KEM2G3LX.js} +71 -52
  9. package/dist/chunk-KEM2G3LX.js.map +1 -0
  10. package/dist/chunk-PBQSHIID.js +4 -0
  11. package/dist/{chunk-7ELO5FRW.js.map → chunk-PBQSHIID.js.map} +1 -1
  12. package/dist/{chunk-43GDBEG4.js → chunk-QGXQSZII.js} +34 -39
  13. package/dist/chunk-QGXQSZII.js.map +1 -0
  14. package/dist/{chunk-OWK47QTG.mjs → chunk-XM2M6TC6.mjs} +41 -22
  15. package/dist/chunk-XM2M6TC6.mjs.map +1 -0
  16. package/dist/{chunk-OH26KG7Y.mjs → chunk-XYPIYYYQ.mjs} +12 -153
  17. package/dist/chunk-XYPIYYYQ.mjs.map +1 -0
  18. package/dist/{chunk-MUNIXYTV.mjs → chunk-YFVX5RDK.mjs} +27 -32
  19. package/dist/chunk-YFVX5RDK.mjs.map +1 -0
  20. package/dist/chunk-ZWN22PS2.mjs +3 -0
  21. package/dist/{chunk-526JND3R.mjs.map → chunk-ZWN22PS2.mjs.map} +1 -1
  22. package/dist/core.d.mts +6 -32
  23. package/dist/core.d.ts +6 -32
  24. package/dist/core.js +41 -49
  25. package/dist/core.mjs +2 -2
  26. package/dist/extras.d.mts +2 -2
  27. package/dist/extras.d.ts +2 -2
  28. package/dist/extras.js +0 -72
  29. package/dist/extras.js.map +1 -1
  30. package/dist/extras.mjs +0 -72
  31. package/dist/extras.mjs.map +1 -1
  32. package/dist/index.d.mts +5 -5
  33. package/dist/index.d.ts +5 -5
  34. package/dist/index.js +24 -24
  35. package/dist/index.mjs +4 -4
  36. package/dist/legacy.d.mts +2 -2
  37. package/dist/legacy.d.ts +2 -2
  38. package/dist/legacy.js +13 -13
  39. package/dist/legacy.mjs +2 -2
  40. package/dist/{position-CXNzFxI0.d.mts → position-CetgOHhD.d.mts} +1 -1
  41. package/dist/{position-Dk0FRWA9.d.ts → position-DhZqWO1-.d.ts} +1 -1
  42. package/dist/react.d.mts +11 -14
  43. package/dist/react.d.ts +11 -14
  44. package/dist/react.js +18 -18
  45. package/dist/react.mjs +4 -4
  46. package/dist/{responsive-BB5d98xz.d.mts → responsive-DLRtE8v8.d.ts} +3 -3
  47. package/dist/{responsive-BXI-GCXG.d.ts → responsive-T0N0GmBB.d.mts} +3 -3
  48. package/dist/{types-CokovIMH.d.mts → types-BiXsdXr7.d.mts} +5 -16
  49. package/dist/{types-CokovIMH.d.ts → types-BiXsdXr7.d.ts} +5 -16
  50. package/index-dev.js +2 -3
  51. package/package.json +1 -1
  52. package/dist/chunk-2TEFHZC4.js.map +0 -1
  53. package/dist/chunk-43GDBEG4.js.map +0 -1
  54. package/dist/chunk-526JND3R.mjs +0 -3
  55. package/dist/chunk-7ELO5FRW.js +0 -4
  56. package/dist/chunk-MUNIXYTV.mjs.map +0 -1
  57. package/dist/chunk-NQUM7RXX.js.map +0 -1
  58. package/dist/chunk-OH26KG7Y.mjs.map +0 -1
  59. package/dist/chunk-OWK47QTG.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2TEFHZC4_js = require('./chunk-2TEFHZC4.js');
3
+ var chunk2DDROKB2_js = require('./chunk-2DDROKB2.js');
4
4
  var chunkBJFPTW5Q_js = require('./chunk-BJFPTW5Q.js');
5
5
  var React2 = require('react');
6
6
  var reactDraggable = require('react-draggable');
@@ -48,7 +48,7 @@ function GridItem(props) {
48
48
  i,
49
49
  resizeHandles,
50
50
  resizeHandle,
51
- constraints = chunk2TEFHZC4_js.defaultConstraints,
51
+ constraints = chunk2DDROKB2_js.defaultConstraints,
52
52
  layoutItem,
53
53
  layout = [],
54
54
  onDragStart: onDragStartProp,
@@ -73,6 +73,8 @@ function GridItem(props) {
73
73
  );
74
74
  const layoutRef = React2.useRef(layout);
75
75
  layoutRef.current = layout;
76
+ const onDragStartRef = React2.useRef(null);
77
+ const onDragRef = React2.useRef(null);
76
78
  const dragPendingRef = React2.useRef(false);
77
79
  const initialDragClientRef = React2.useRef({ x: 0, y: 0 });
78
80
  const thresholdExceededRef = React2.useRef(false);
@@ -129,14 +131,14 @@ function GridItem(props) {
129
131
  return positionStrategy.calcStyle(pos2);
130
132
  }
131
133
  if (useCSSTransforms) {
132
- return chunk2TEFHZC4_js.setTransform(pos2);
134
+ return chunk2DDROKB2_js.setTransform(pos2);
133
135
  }
134
- const styleObj = chunk2TEFHZC4_js.setTopLeft(pos2);
136
+ const styleObj = chunk2DDROKB2_js.setTopLeft(pos2);
135
137
  if (usePercentages) {
136
138
  return {
137
139
  ...styleObj,
138
- left: chunk2TEFHZC4_js.perc(pos2.left / containerWidth),
139
- width: chunk2TEFHZC4_js.perc(pos2.width / containerWidth)
140
+ left: chunk2DDROKB2_js.perc(pos2.left / containerWidth),
141
+ width: chunk2DDROKB2_js.perc(pos2.width / containerWidth)
140
142
  };
141
143
  }
142
144
  return styleObj;
@@ -187,7 +189,7 @@ function GridItem(props) {
187
189
  newPosition.top,
188
190
  newPosition.left
189
191
  );
190
- const { x: newX, y: newY } = chunk2TEFHZC4_js.applyPositionConstraints(
192
+ const { x: newX, y: newY } = chunk2DDROKB2_js.applyPositionConstraints(
191
193
  constraints,
192
194
  effectiveLayoutItem,
193
195
  rawPos.x,
@@ -231,7 +233,7 @@ function GridItem(props) {
231
233
  dragPositionRef.current.top,
232
234
  dragPositionRef.current.left
233
235
  );
234
- const { x: startX, y: startY } = chunk2TEFHZC4_js.applyPositionConstraints(
236
+ const { x: startX, y: startY } = chunk2DDROKB2_js.applyPositionConstraints(
235
237
  constraints,
236
238
  effectiveLayoutItem,
237
239
  rawPos2.x,
@@ -260,7 +262,7 @@ function GridItem(props) {
260
262
  const newPosition = { top, left };
261
263
  dragPositionRef.current = newPosition;
262
264
  const rawPos = chunkBJFPTW5Q_js.calcXYRaw(positionParams, top, left);
263
- const { x: newX, y: newY } = chunk2TEFHZC4_js.applyPositionConstraints(
265
+ const { x: newX, y: newY } = chunk2DDROKB2_js.applyPositionConstraints(
264
266
  constraints,
265
267
  effectiveLayoutItem,
266
268
  rawPos.x,
@@ -308,7 +310,7 @@ function GridItem(props) {
308
310
  setDragging(false);
309
311
  dragPositionRef.current = { left: 0, top: 0 };
310
312
  const rawPos = chunkBJFPTW5Q_js.calcXYRaw(positionParams, top, left);
311
- const { x: newX, y: newY } = chunk2TEFHZC4_js.applyPositionConstraints(
313
+ const { x: newX, y: newY } = chunk2DDROKB2_js.applyPositionConstraints(
312
314
  constraints,
313
315
  effectiveLayoutItem,
314
316
  rawPos.x,
@@ -331,13 +333,15 @@ function GridItem(props) {
331
333
  i
332
334
  ]
333
335
  );
336
+ onDragStartRef.current = onDragStart;
337
+ onDragRef.current = onDrag;
334
338
  const onResizeHandler = React2.useCallback(
335
339
  (e, { node, size, handle: resizeHandle2 }, position, handlerName) => {
336
340
  const handler = handlerName === "onResizeStart" ? onResizeStartProp : handlerName === "onResize" ? onResizeProp : onResizeStopProp;
337
341
  if (!handler) return;
338
342
  let updatedSize;
339
343
  if (node) {
340
- updatedSize = chunk2TEFHZC4_js.resizeItemInDirection(
344
+ updatedSize = chunk2DDROKB2_js.resizeItemInDirection(
341
345
  resizeHandle2,
342
346
  position,
343
347
  size,
@@ -356,7 +360,7 @@ function GridItem(props) {
356
360
  updatedSize.width,
357
361
  updatedSize.height
358
362
  );
359
- const { w: newW, h: newH } = chunk2TEFHZC4_js.applySizeConstraints(
363
+ const { w: newW, h: newH } = chunk2DDROKB2_js.applySizeConstraints(
360
364
  constraints,
361
365
  effectiveLayoutItem,
362
366
  rawSize.w,
@@ -438,7 +442,10 @@ function GridItem(props) {
438
442
  x: droppingPosition.left,
439
443
  y: droppingPosition.top
440
444
  };
441
- onDragStart(droppingPosition.e, fakeData);
445
+ onDragStartRef.current?.(
446
+ droppingPosition.e,
447
+ fakeData
448
+ );
442
449
  } else if (shouldDrag) {
443
450
  const deltaX = droppingPosition.left - dragPositionRef.current.left;
444
451
  const deltaY = droppingPosition.top - dragPositionRef.current.top;
@@ -451,10 +458,13 @@ function GridItem(props) {
451
458
  x: droppingPosition.left,
452
459
  y: droppingPosition.top
453
460
  };
454
- onDrag(droppingPosition.e, fakeData);
461
+ onDragRef.current?.(
462
+ droppingPosition.e,
463
+ fakeData
464
+ );
455
465
  }
456
466
  prevDroppingPositionRef.current = droppingPosition;
457
- }, [droppingPosition, dragging, onDragStart, onDrag]);
467
+ }, [droppingPosition, dragging, i]);
458
468
  const pos = chunkBJFPTW5Q_js.calcGridItemPosition(
459
469
  positionParams,
460
470
  x,
@@ -598,9 +608,9 @@ function GridLayout(props) {
598
608
  dragConfig: dragConfigProp,
599
609
  resizeConfig: resizeConfigProp,
600
610
  dropConfig: dropConfigProp,
601
- positionStrategy = chunk2TEFHZC4_js.defaultPositionStrategy,
611
+ positionStrategy = chunk2DDROKB2_js.defaultPositionStrategy,
602
612
  compactor: compactorProp,
603
- constraints = chunk2TEFHZC4_js.defaultConstraints,
613
+ constraints = chunk2DDROKB2_js.defaultConstraints,
604
614
  // Layout data
605
615
  layout: propsLayout = [],
606
616
  droppingItem: droppingItemProp,
@@ -621,19 +631,19 @@ function GridLayout(props) {
621
631
  onDropDragOver: onDropDragOverProp = noop
622
632
  } = props;
623
633
  const gridConfig = React2.useMemo(
624
- () => ({ ...chunk2TEFHZC4_js.defaultGridConfig, ...gridConfigProp }),
634
+ () => ({ ...chunk2DDROKB2_js.defaultGridConfig, ...gridConfigProp }),
625
635
  [gridConfigProp]
626
636
  );
627
637
  const dragConfig = React2.useMemo(
628
- () => ({ ...chunk2TEFHZC4_js.defaultDragConfig, ...dragConfigProp }),
638
+ () => ({ ...chunk2DDROKB2_js.defaultDragConfig, ...dragConfigProp }),
629
639
  [dragConfigProp]
630
640
  );
631
641
  const resizeConfig = React2.useMemo(
632
- () => ({ ...chunk2TEFHZC4_js.defaultResizeConfig, ...resizeConfigProp }),
642
+ () => ({ ...chunk2DDROKB2_js.defaultResizeConfig, ...resizeConfigProp }),
633
643
  [resizeConfigProp]
634
644
  );
635
645
  const dropConfig = React2.useMemo(
636
- () => ({ ...chunk2TEFHZC4_js.defaultDropConfig, ...dropConfigProp }),
646
+ () => ({ ...chunk2DDROKB2_js.defaultDropConfig, ...dropConfigProp }),
637
647
  [dropConfigProp]
638
648
  );
639
649
  const { cols, rowHeight, maxRows, margin, containerPadding } = gridConfig;
@@ -654,7 +664,7 @@ function GridLayout(props) {
654
664
  defaultItem: defaultDropItem,
655
665
  onDragOver: dropConfigOnDragOver
656
666
  } = dropConfig;
657
- const compactor = compactorProp ?? chunk2TEFHZC4_js.getCompactor("vertical");
667
+ const compactor = compactorProp ?? chunk2DDROKB2_js.getCompactor("vertical");
658
668
  const compactType = compactor.type;
659
669
  const allowOverlap = compactor.allowOverlap;
660
670
  const preventCollision = compactor.preventCollision ?? false;
@@ -708,7 +718,9 @@ function GridLayout(props) {
708
718
  cols,
709
719
  compactor
710
720
  );
711
- setLayout(newLayout);
721
+ if (!fastEquals.deepEqual(newLayout, layout)) {
722
+ setLayout(newLayout);
723
+ }
712
724
  }
713
725
  prevPropsLayoutRef.current = propsLayout;
714
726
  prevChildrenRef.current = children;
@@ -726,9 +738,10 @@ function GridLayout(props) {
726
738
  React2.useEffect(() => {
727
739
  if (!activeDrag && !fastEquals.deepEqual(layout, prevLayoutRef.current)) {
728
740
  prevLayoutRef.current = layout;
729
- onLayoutChange(layout);
741
+ const publicLayout = layout.filter((l) => l.i !== droppingItem.i);
742
+ onLayoutChange(publicLayout);
730
743
  }
731
- }, [layout, activeDrag, onLayoutChange]);
744
+ }, [layout, activeDrag, onLayoutChange, droppingItem.i]);
732
745
  const containerHeight = React2.useMemo(() => {
733
746
  if (!autoSize) return void 0;
734
747
  const nbRow = chunkBJFPTW5Q_js.bottom(layout);
@@ -944,6 +957,13 @@ function GridLayout(props) {
944
957
  );
945
958
  const removeDroppingPlaceholder = React2.useCallback(() => {
946
959
  const currentLayout = layoutRef.current;
960
+ const hasDroppingItem = currentLayout.some((l) => l.i === droppingItem.i);
961
+ if (!hasDroppingItem) {
962
+ setDroppingDOMNode(null);
963
+ setActiveDrag(null);
964
+ setDroppingPosition(void 0);
965
+ return;
966
+ }
947
967
  const newLayout = compactor.compact(
948
968
  currentLayout.filter((l) => l.i !== droppingItem.i),
949
969
  cols
@@ -1054,6 +1074,9 @@ function GridLayout(props) {
1054
1074
  e.preventDefault();
1055
1075
  e.stopPropagation();
1056
1076
  dragEnterCounterRef.current--;
1077
+ if (dragEnterCounterRef.current < 0) {
1078
+ dragEnterCounterRef.current = 0;
1079
+ }
1057
1080
  if (dragEnterCounterRef.current === 0) {
1058
1081
  removeDroppingPlaceholder();
1059
1082
  }
@@ -1233,7 +1256,7 @@ var DEFAULT_COLS = {
1233
1256
  };
1234
1257
  var noop2 = () => {
1235
1258
  };
1236
- function synchronizeLayoutWithChildren2(initialLayout, children, cols, compactType, allowOverlap) {
1259
+ function synchronizeLayoutWithChildren2(initialLayout, children, cols, compactor) {
1237
1260
  const layout = [];
1238
1261
  React2__default.default.Children.forEach(children, (child) => {
1239
1262
  if (!React2__default.default.isValidElement(child) || child.key === null) return;
@@ -1276,7 +1299,7 @@ function synchronizeLayoutWithChildren2(initialLayout, children, cols, compactTy
1276
1299
  }
1277
1300
  });
1278
1301
  const corrected = chunkBJFPTW5Q_js.correctBounds(layout, { cols });
1279
- return chunk2TEFHZC4_js.compact(corrected, compactType, cols, allowOverlap);
1302
+ return compactor.compact(corrected, cols);
1280
1303
  }
1281
1304
  function ResponsiveGridLayout(props) {
1282
1305
  const {
@@ -1296,17 +1319,17 @@ function ResponsiveGridLayout(props) {
1296
1319
  onWidthChange = noop2,
1297
1320
  ...restProps
1298
1321
  } = props;
1299
- const compactor = compactorProp ?? chunk2TEFHZC4_js.getCompactor("vertical");
1322
+ const compactor = compactorProp ?? chunk2DDROKB2_js.getCompactor("vertical");
1300
1323
  const compactType = compactor.type;
1301
1324
  const allowOverlap = compactor.allowOverlap;
1302
1325
  const initialBreakpoint = React2.useMemo(() => {
1303
- return propBreakpoint ?? chunk2TEFHZC4_js.getBreakpointFromWidth(breakpoints, width);
1326
+ return propBreakpoint ?? chunk2DDROKB2_js.getBreakpointFromWidth(breakpoints, width);
1304
1327
  }, []);
1305
1328
  const initialCols = React2.useMemo(() => {
1306
- return chunk2TEFHZC4_js.getColsFromBreakpoint(initialBreakpoint, colsConfig);
1329
+ return chunk2DDROKB2_js.getColsFromBreakpoint(initialBreakpoint, colsConfig);
1307
1330
  }, [initialBreakpoint, colsConfig]);
1308
1331
  const initialLayout = React2.useMemo(() => {
1309
- return chunk2TEFHZC4_js.findOrGenerateResponsiveLayout(
1332
+ return chunk2DDROKB2_js.findOrGenerateResponsiveLayout(
1310
1333
  propsLayouts,
1311
1334
  breakpoints,
1312
1335
  initialBreakpoint,
@@ -1331,17 +1354,17 @@ function ResponsiveGridLayout(props) {
1331
1354
  }, [layouts]);
1332
1355
  const derivedLayout = React2.useMemo(() => {
1333
1356
  if (!fastEquals.deepEqual(propsLayouts, prevLayoutsRef.current)) {
1334
- return chunk2TEFHZC4_js.findOrGenerateResponsiveLayout(
1357
+ return chunk2DDROKB2_js.findOrGenerateResponsiveLayout(
1335
1358
  propsLayouts,
1336
1359
  breakpoints,
1337
1360
  breakpoint,
1338
1361
  breakpoint,
1339
1362
  cols,
1340
- compactType
1363
+ compactor
1341
1364
  );
1342
1365
  }
1343
1366
  return null;
1344
- }, [propsLayouts, breakpoints, breakpoint, cols, compactType]);
1367
+ }, [propsLayouts, breakpoints, breakpoint, cols, compactor]);
1345
1368
  const effectiveLayout = derivedLayout ?? layout;
1346
1369
  React2.useEffect(() => {
1347
1370
  if (derivedLayout !== null) {
@@ -1353,12 +1376,7 @@ function ResponsiveGridLayout(props) {
1353
1376
  }, [derivedLayout, propsLayouts]);
1354
1377
  React2.useEffect(() => {
1355
1378
  if (compactType !== prevCompactTypeRef.current) {
1356
- const newLayout = chunk2TEFHZC4_js.compact(
1357
- chunkBJFPTW5Q_js.cloneLayout(effectiveLayout),
1358
- compactType,
1359
- cols,
1360
- allowOverlap
1361
- );
1379
+ const newLayout = compactor.compact(chunkBJFPTW5Q_js.cloneLayout(effectiveLayout), cols);
1362
1380
  const newLayouts = {
1363
1381
  ...layoutsRef.current,
1364
1382
  [breakpoint]: newLayout
@@ -1371,6 +1389,7 @@ function ResponsiveGridLayout(props) {
1371
1389
  }
1372
1390
  }, [
1373
1391
  compactType,
1392
+ compactor,
1374
1393
  effectiveLayout,
1375
1394
  cols,
1376
1395
  allowOverlap,
@@ -1386,28 +1405,27 @@ function ResponsiveGridLayout(props) {
1386
1405
  );
1387
1406
  const colsChanged = !fastEquals.deepEqual(colsConfig, prevColsRef.current);
1388
1407
  if (widthChanged || breakpointPropChanged || breakpointsChanged || colsChanged) {
1389
- const newBreakpoint = propBreakpoint ?? chunk2TEFHZC4_js.getBreakpointFromWidth(breakpoints, width);
1390
- const newCols = chunk2TEFHZC4_js.getColsFromBreakpoint(newBreakpoint, colsConfig);
1408
+ const newBreakpoint = propBreakpoint ?? chunk2DDROKB2_js.getBreakpointFromWidth(breakpoints, width);
1409
+ const newCols = chunk2DDROKB2_js.getColsFromBreakpoint(newBreakpoint, colsConfig);
1391
1410
  const lastBreakpoint = breakpoint;
1392
1411
  if (lastBreakpoint !== newBreakpoint || breakpointsChanged || colsChanged) {
1393
1412
  const newLayouts = { ...layoutsRef.current };
1394
1413
  if (!newLayouts[lastBreakpoint]) {
1395
1414
  newLayouts[lastBreakpoint] = chunkBJFPTW5Q_js.cloneLayout(layout);
1396
1415
  }
1397
- let newLayout = chunk2TEFHZC4_js.findOrGenerateResponsiveLayout(
1416
+ let newLayout = chunk2DDROKB2_js.findOrGenerateResponsiveLayout(
1398
1417
  newLayouts,
1399
1418
  breakpoints,
1400
1419
  newBreakpoint,
1401
1420
  lastBreakpoint,
1402
1421
  newCols,
1403
- compactType
1422
+ compactor
1404
1423
  );
1405
1424
  newLayout = synchronizeLayoutWithChildren2(
1406
1425
  newLayout,
1407
1426
  children,
1408
1427
  newCols,
1409
- compactType,
1410
- allowOverlap
1428
+ compactor
1411
1429
  );
1412
1430
  newLayouts[newBreakpoint] = newLayout;
1413
1431
  setBreakpoint(newBreakpoint);
@@ -1418,11 +1436,11 @@ function ResponsiveGridLayout(props) {
1418
1436
  onBreakpointChange(newBreakpoint, newCols);
1419
1437
  onLayoutChange(newLayout, newLayouts);
1420
1438
  }
1421
- const currentMargin2 = chunk2TEFHZC4_js.getIndentationValue(
1439
+ const currentMargin2 = chunk2DDROKB2_js.getIndentationValue(
1422
1440
  propMargin,
1423
1441
  newBreakpoint
1424
1442
  );
1425
- const currentPadding = propContainerPadding ? chunk2TEFHZC4_js.getIndentationValue(
1443
+ const currentPadding = propContainerPadding ? chunk2DDROKB2_js.getIndentationValue(
1426
1444
  propContainerPadding,
1427
1445
  newBreakpoint
1428
1446
  ) : null;
@@ -1441,6 +1459,7 @@ function ResponsiveGridLayout(props) {
1441
1459
  cols,
1442
1460
  layout,
1443
1461
  children,
1462
+ compactor,
1444
1463
  compactType,
1445
1464
  allowOverlap,
1446
1465
  propMargin,
@@ -1464,14 +1483,14 @@ function ResponsiveGridLayout(props) {
1464
1483
  [breakpoint, onLayoutChange]
1465
1484
  );
1466
1485
  const currentMargin = React2.useMemo(() => {
1467
- return chunk2TEFHZC4_js.getIndentationValue(
1486
+ return chunk2DDROKB2_js.getIndentationValue(
1468
1487
  propMargin,
1469
1488
  breakpoint
1470
1489
  );
1471
1490
  }, [propMargin, breakpoint]);
1472
1491
  const currentContainerPadding = React2.useMemo(() => {
1473
1492
  if (propContainerPadding === null) return null;
1474
- return chunk2TEFHZC4_js.getIndentationValue(
1493
+ return chunk2DDROKB2_js.getIndentationValue(
1475
1494
  propContainerPadding,
1476
1495
  breakpoint
1477
1496
  );
@@ -1503,5 +1522,5 @@ function ResponsiveGridLayout(props) {
1503
1522
  exports.GridItem = GridItem;
1504
1523
  exports.GridLayout = GridLayout;
1505
1524
  exports.ResponsiveGridLayout = ResponsiveGridLayout;
1506
- //# sourceMappingURL=chunk-NQUM7RXX.js.map
1507
- //# sourceMappingURL=chunk-NQUM7RXX.js.map
1525
+ //# sourceMappingURL=chunk-KEM2G3LX.js.map
1526
+ //# sourceMappingURL=chunk-KEM2G3LX.js.map