@boostdev/design-system-components 2.2.1 → 2.4.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/client.d.cts CHANGED
@@ -483,24 +483,6 @@ type CardOwnProps = WithClassName & {
483
483
  type CardProps<C extends ElementType = 'div'> = CardOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof CardOwnProps>;
484
484
  declare function Card<C extends ElementType = 'div'>({ children, className, variant, padding, textAlign, as, onClick, ...rest }: CardProps<C>): react_jsx_runtime.JSX.Element;
485
485
 
486
- type GridVariant = 'main' | 'page' | 'funnel' | 'custom';
487
- type GridOwnProps = WithClassName & {
488
- variant?: GridVariant;
489
- columns?: number;
490
- isCentered?: boolean;
491
- isMasonry?: boolean;
492
- /**
493
- * When true, any child `GridItem` without an explicit `columnSpan` resolves
494
- * to `"auto"` — column span is derived from the intrinsic aspect ratio of
495
- * the first `<img>`/`<video>` child. Items that set `columnSpan` explicitly
496
- * are unaffected.
497
- */
498
- autoSpanMedia?: boolean;
499
- as?: ElementType;
500
- };
501
- 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;
503
-
504
486
  type GridItemSpanValue = 'full' | 'three-quarters' | 'two-thirds' | 'half' | 'one-third' | 'one-quarter' | 'auto' | number;
505
487
  declare const GridItemSpan: {
506
488
  readonly full: "full";
@@ -521,6 +503,36 @@ type GridItemOwnProps = WithClassName & {
521
503
  type GridItemProps<C extends ElementType = 'div'> = GridItemOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof GridItemOwnProps>;
522
504
  declare function GridItem<C extends ElementType = 'div'>({ children, className, columnSpan, rowSpan, startColumn, endColumn, as, style, ...rest }: GridItemProps<C>): react_jsx_runtime.JSX.Element;
523
505
 
506
+ type GridVariant = 'main' | 'page' | 'funnel' | 'custom';
507
+ type GridOwnProps = WithClassName & {
508
+ variant?: GridVariant;
509
+ columns?: number;
510
+ isCentered?: boolean;
511
+ isMasonry?: boolean;
512
+ /**
513
+ * When true, any child `GridItem` without an explicit `columnSpan` resolves
514
+ * to `"auto"` — column span is derived from the intrinsic aspect ratio of
515
+ * the first `<img>`/`<video>` child. Items that set `columnSpan` explicitly
516
+ * are unaffected.
517
+ */
518
+ autoSpanMedia?: boolean;
519
+ /**
520
+ * Masonry only. When set, each `GridItem` without an explicit `columnSpan`
521
+ * tries to span this value; an item at the end of a row is demoted to fill
522
+ * just the remaining columns rather than wrapping and leaving a gap. Uses
523
+ * the same named span vocabulary as `columnSpan` on `GridItem`, so a value
524
+ * like `"half"` adapts across breakpoints via the foundation's responsive
525
+ * column tokens (4/8/12). A `number` is a literal column count and does
526
+ * **not** adapt — prefer named values unless you're using `variant="custom"`.
527
+ * Requires `isMasonry`; no-op otherwise. Items with an explicit `columnSpan`
528
+ * keep their span.
529
+ */
530
+ masonryPreferredColumnSpan?: Exclude<GridItemSpanValue, 'auto'>;
531
+ as?: ElementType;
532
+ };
533
+ type GridProps<C extends ElementType = 'div'> = GridOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof GridOwnProps>;
534
+ 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;
535
+
524
536
  type IntrinsicElement = keyof JSX.IntrinsicElements;
525
537
  type SectionHeaderProps = WithClassName & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
526
538
  title: string;
package/dist/client.d.ts CHANGED
@@ -483,24 +483,6 @@ type CardOwnProps = WithClassName & {
483
483
  type CardProps<C extends ElementType = 'div'> = CardOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof CardOwnProps>;
484
484
  declare function Card<C extends ElementType = 'div'>({ children, className, variant, padding, textAlign, as, onClick, ...rest }: CardProps<C>): react_jsx_runtime.JSX.Element;
485
485
 
486
- type GridVariant = 'main' | 'page' | 'funnel' | 'custom';
487
- type GridOwnProps = WithClassName & {
488
- variant?: GridVariant;
489
- columns?: number;
490
- isCentered?: boolean;
491
- isMasonry?: boolean;
492
- /**
493
- * When true, any child `GridItem` without an explicit `columnSpan` resolves
494
- * to `"auto"` — column span is derived from the intrinsic aspect ratio of
495
- * the first `<img>`/`<video>` child. Items that set `columnSpan` explicitly
496
- * are unaffected.
497
- */
498
- autoSpanMedia?: boolean;
499
- as?: ElementType;
500
- };
501
- 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;
503
-
504
486
  type GridItemSpanValue = 'full' | 'three-quarters' | 'two-thirds' | 'half' | 'one-third' | 'one-quarter' | 'auto' | number;
505
487
  declare const GridItemSpan: {
506
488
  readonly full: "full";
@@ -521,6 +503,36 @@ type GridItemOwnProps = WithClassName & {
521
503
  type GridItemProps<C extends ElementType = 'div'> = GridItemOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof GridItemOwnProps>;
522
504
  declare function GridItem<C extends ElementType = 'div'>({ children, className, columnSpan, rowSpan, startColumn, endColumn, as, style, ...rest }: GridItemProps<C>): react_jsx_runtime.JSX.Element;
523
505
 
506
+ type GridVariant = 'main' | 'page' | 'funnel' | 'custom';
507
+ type GridOwnProps = WithClassName & {
508
+ variant?: GridVariant;
509
+ columns?: number;
510
+ isCentered?: boolean;
511
+ isMasonry?: boolean;
512
+ /**
513
+ * When true, any child `GridItem` without an explicit `columnSpan` resolves
514
+ * to `"auto"` — column span is derived from the intrinsic aspect ratio of
515
+ * the first `<img>`/`<video>` child. Items that set `columnSpan` explicitly
516
+ * are unaffected.
517
+ */
518
+ autoSpanMedia?: boolean;
519
+ /**
520
+ * Masonry only. When set, each `GridItem` without an explicit `columnSpan`
521
+ * tries to span this value; an item at the end of a row is demoted to fill
522
+ * just the remaining columns rather than wrapping and leaving a gap. Uses
523
+ * the same named span vocabulary as `columnSpan` on `GridItem`, so a value
524
+ * like `"half"` adapts across breakpoints via the foundation's responsive
525
+ * column tokens (4/8/12). A `number` is a literal column count and does
526
+ * **not** adapt — prefer named values unless you're using `variant="custom"`.
527
+ * Requires `isMasonry`; no-op otherwise. Items with an explicit `columnSpan`
528
+ * keep their span.
529
+ */
530
+ masonryPreferredColumnSpan?: Exclude<GridItemSpanValue, 'auto'>;
531
+ as?: ElementType;
532
+ };
533
+ type GridProps<C extends ElementType = 'div'> = GridOwnProps & Omit<ComponentPropsWithoutRef<C>, keyof GridOwnProps>;
534
+ 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;
535
+
524
536
  type IntrinsicElement = keyof JSX.IntrinsicElements;
525
537
  type SectionHeaderProps = WithClassName & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
526
538
  title: string;