@boostdev/design-system-components 2.2.0 → 2.3.0

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.d.cts CHANGED
@@ -496,10 +496,18 @@ type GridOwnProps = WithClassName & {
496
496
  * are unaffected.
497
497
  */
498
498
  autoSpanMedia?: boolean;
499
+ /**
500
+ * Masonry only. When set (>= 2), each `GridItem` without an explicit
501
+ * `columnSpan` tries to span this many columns; an item at the end of a row
502
+ * is demoted to fill just the remaining columns rather than wrapping and
503
+ * leaving a gap. Requires `isMasonry`; no-op otherwise. Items with an
504
+ * explicit `columnSpan` keep their span.
505
+ */
506
+ masonryPreferredColumnSpan?: number;
499
507
  as?: ElementType;
500
508
  };
501
509
  type GridProps<C extends ElementType = 'div'> = GridOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof GridOwnProps>;
502
- declare function Grid<C extends ElementType = 'div'>({ children, className, variant, columns, isCentered, isMasonry, autoSpanMedia, as, style, ...rest }: GridProps<C>): react_jsx_runtime.JSX.Element;
510
+ declare function Grid<C extends ElementType = 'div'>({ children, className, variant, columns, isCentered, isMasonry, autoSpanMedia, masonryPreferredColumnSpan, as, style, ...rest }: GridProps<C>): react_jsx_runtime.JSX.Element;
503
511
 
504
512
  type GridItemSpanValue = 'full' | 'three-quarters' | 'two-thirds' | 'half' | 'one-third' | 'one-quarter' | 'auto' | number;
505
513
  declare const GridItemSpan: {
package/dist/index.d.ts CHANGED
@@ -496,10 +496,18 @@ type GridOwnProps = WithClassName & {
496
496
  * are unaffected.
497
497
  */
498
498
  autoSpanMedia?: boolean;
499
+ /**
500
+ * Masonry only. When set (>= 2), each `GridItem` without an explicit
501
+ * `columnSpan` tries to span this many columns; an item at the end of a row
502
+ * is demoted to fill just the remaining columns rather than wrapping and
503
+ * leaving a gap. Requires `isMasonry`; no-op otherwise. Items with an
504
+ * explicit `columnSpan` keep their span.
505
+ */
506
+ masonryPreferredColumnSpan?: number;
499
507
  as?: ElementType;
500
508
  };
501
509
  type GridProps<C extends ElementType = 'div'> = GridOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof GridOwnProps>;
502
- declare function Grid<C extends ElementType = 'div'>({ children, className, variant, columns, isCentered, isMasonry, autoSpanMedia, as, style, ...rest }: GridProps<C>): react_jsx_runtime.JSX.Element;
510
+ declare function Grid<C extends ElementType = 'div'>({ children, className, variant, columns, isCentered, isMasonry, autoSpanMedia, masonryPreferredColumnSpan, as, style, ...rest }: GridProps<C>): react_jsx_runtime.JSX.Element;
503
511
 
504
512
  type GridItemSpanValue = 'full' | 'three-quarters' | 'two-thirds' | 'half' | 'one-third' | 'one-quarter' | 'auto' | number;
505
513
  declare const GridItemSpan: {