@abgov/react-components 7.2.0-dev.13 → 7.2.0-dev.14
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/index.js +7 -2
- package/index.js.map +1 -1
- package/index.mjs +7 -2
- package/index.mjs.map +1 -1
- package/lib/block/block.d.ts +4 -1
- package/package.json +1 -1
package/lib/block/block.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface WCProps extends Margins {
|
|
|
4
4
|
gap?: Spacing;
|
|
5
5
|
direction?: GoabBlockDirection;
|
|
6
6
|
alignment?: GoabBlockAlignment;
|
|
7
|
+
stretch?: string;
|
|
7
8
|
"min-width"?: string;
|
|
8
9
|
"max-width"?: string;
|
|
9
10
|
width?: string;
|
|
@@ -23,6 +24,8 @@ export interface GoabBlockProps extends Margins, DataAttributes {
|
|
|
23
24
|
direction?: GoabBlockDirection;
|
|
24
25
|
/** Primary axis alignment of child components. @default "normal" */
|
|
25
26
|
alignment?: GoabBlockAlignment;
|
|
27
|
+
/** When true, children fill the cross-axis (e.g. width in a column block) regardless of alignment. @default false */
|
|
28
|
+
stretch?: boolean;
|
|
26
29
|
/** Sets the minimum width of the block container. */
|
|
27
30
|
minWidth?: string;
|
|
28
31
|
/** Sets the maximum width of the block container. */
|
|
@@ -35,4 +38,4 @@ export interface GoabBlockProps extends Margins, DataAttributes {
|
|
|
35
38
|
children?: ReactNode;
|
|
36
39
|
}
|
|
37
40
|
/** Group components into a block with consistent space between. */
|
|
38
|
-
export declare function GoabBlock({ testId, children, ...rest }: GoabBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare function GoabBlock({ testId, stretch, children, ...rest }: GoabBlockProps): import("react/jsx-runtime").JSX.Element;
|