@inf-monkeys-tech/monkeys-design 1.0.47 → 1.0.48

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.
package/dist/index.mjs CHANGED
@@ -22797,6 +22797,7 @@ function resolveColumnCount({
22797
22797
  itemCount,
22798
22798
  gap,
22799
22799
  columns,
22800
+ underfilledBehavior,
22800
22801
  maxColumns,
22801
22802
  minCardWidth,
22802
22803
  idealCardWidth,
@@ -22817,7 +22818,7 @@ function resolveColumnCount({
22817
22818
  const maxCandidate = Math.max(
22818
22819
  1,
22819
22820
  Math.min(
22820
- safeItemCount,
22821
+ underfilledBehavior === "preserve-columns" ? MAX_COLUMN_COUNT : safeItemCount,
22821
22822
  Math.ceil((containerWidth + gap) / (Math.max(minWidth * 0.75, 1) + gap))
22822
22823
  )
22823
22824
  );
@@ -22994,6 +22995,7 @@ function WorkbenchCollection({
22994
22995
  itemCount: layoutItemCount,
22995
22996
  gap,
22996
22997
  columns: config.layout.columns,
22998
+ underfilledBehavior: config.layout.underfilledBehavior,
22997
22999
  maxColumns: config.layout.maxColumns,
22998
23000
  minCardWidth: config.layout.minCardWidth,
22999
23001
  idealCardWidth: config.layout.idealCardWidth ?? config.layout.columnWidth,