@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/client.cjs +111 -60
- package/dist/client.css +537 -537
- package/dist/client.d.cts +9 -1
- package/dist/client.d.ts +9 -1
- package/dist/client.js +111 -60
- package/dist/index.cjs +111 -60
- package/dist/index.css +537 -537
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +111 -60
- package/dist/web-components/index.d.ts +9 -0
- package/dist/web-components/index.js +58 -3
- package/package.json +1 -1
- package/src/components/layout/Grid/Grid.mdx +34 -0
- package/src/components/layout/Grid/Grid.spec.tsx +95 -0
- package/src/components/layout/Grid/Grid.stories.tsx +45 -0
- package/src/components/layout/Grid/Grid.tsx +20 -4
- package/src/components/layout/Grid/GridItem.tsx +8 -2
- package/src/components/layout/Grid/masonry.ts +91 -4
- package/src/web-components/layout/BdsGrid.mdx +34 -0
- package/src/web-components/layout/BdsGrid.stories.tsx +42 -1
- package/src/web-components/layout/bds-grid-item.spec.ts +14 -0
- package/src/web-components/layout/bds-grid-item.ts +7 -0
- package/src/web-components/layout/bds-grid.spec.ts +8 -0
- package/src/web-components/layout/bds-grid.ts +15 -1
package/dist/client.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/client.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: {
|