@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.js CHANGED
@@ -22832,6 +22832,7 @@ function resolveColumnCount({
22832
22832
  itemCount,
22833
22833
  gap,
22834
22834
  columns,
22835
+ underfilledBehavior,
22835
22836
  maxColumns,
22836
22837
  minCardWidth,
22837
22838
  idealCardWidth,
@@ -22852,7 +22853,7 @@ function resolveColumnCount({
22852
22853
  const maxCandidate = Math.max(
22853
22854
  1,
22854
22855
  Math.min(
22855
- safeItemCount,
22856
+ underfilledBehavior === "preserve-columns" ? MAX_COLUMN_COUNT : safeItemCount,
22856
22857
  Math.ceil((containerWidth + gap) / (Math.max(minWidth * 0.75, 1) + gap))
22857
22858
  )
22858
22859
  );
@@ -23029,6 +23030,7 @@ function WorkbenchCollection({
23029
23030
  itemCount: layoutItemCount,
23030
23031
  gap,
23031
23032
  columns: config.layout.columns,
23033
+ underfilledBehavior: config.layout.underfilledBehavior,
23032
23034
  maxColumns: config.layout.maxColumns,
23033
23035
  minCardWidth: config.layout.minCardWidth,
23034
23036
  idealCardWidth: config.layout.idealCardWidth ?? config.layout.columnWidth,