@abgov/react-components 4.0.0-alpha.30 → 4.0.0-alpha.31
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.
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
declare type ContainerVariant = 'primary' | 'info' | 'error' | 'success' | 'warning' | 'default';
|
|
3
3
|
declare type HeadingSize = 'large' | 'small' | 'none';
|
|
4
|
+
declare type ContainerPadding = "relaxed" | "compact";
|
|
4
5
|
interface WCProps {
|
|
5
6
|
variant: ContainerVariant;
|
|
6
7
|
headingsize: HeadingSize;
|
|
7
8
|
colored: boolean;
|
|
9
|
+
padding: ContainerPadding;
|
|
8
10
|
}
|
|
9
11
|
declare global {
|
|
10
12
|
namespace JSX {
|
|
@@ -18,8 +20,8 @@ interface Props {
|
|
|
18
20
|
variant?: ContainerVariant;
|
|
19
21
|
title?: ReactNode;
|
|
20
22
|
colored?: boolean;
|
|
23
|
+
padding: ContainerPadding;
|
|
21
24
|
actions?: ReactNode;
|
|
22
|
-
children: ReactNode;
|
|
23
25
|
}
|
|
24
26
|
export declare const GoAContainer: FC<Props>;
|
|
25
27
|
export default GoAContainer;
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -13985,12 +13985,14 @@ const GoAContainer = ({
|
|
|
13985
13985
|
headingSize,
|
|
13986
13986
|
title,
|
|
13987
13987
|
colored: _colored = false,
|
|
13988
|
+
padding,
|
|
13988
13989
|
children,
|
|
13989
13990
|
actions,
|
|
13990
13991
|
variant: _variant = 'default'
|
|
13991
13992
|
}) => {
|
|
13992
13993
|
return jsxs("goa-container", Object.assign({
|
|
13993
13994
|
variant: _variant,
|
|
13995
|
+
padding: padding,
|
|
13994
13996
|
headingsize: headingSize,
|
|
13995
13997
|
colored: _colored
|
|
13996
13998
|
}, {
|
package/react-components.umd.js
CHANGED
|
@@ -14043,12 +14043,14 @@
|
|
|
14043
14043
|
title = _a.title,
|
|
14044
14044
|
_b = _a.colored,
|
|
14045
14045
|
colored = _b === void 0 ? false : _b,
|
|
14046
|
+
padding = _a.padding,
|
|
14046
14047
|
children = _a.children,
|
|
14047
14048
|
actions = _a.actions,
|
|
14048
14049
|
_c = _a.variant,
|
|
14049
14050
|
variant = _c === void 0 ? 'default' : _c;
|
|
14050
14051
|
return jsxRuntime.jsxs("goa-container", __assign({
|
|
14051
14052
|
variant: variant,
|
|
14053
|
+
padding: padding,
|
|
14052
14054
|
headingsize: headingSize,
|
|
14053
14055
|
colored: colored
|
|
14054
14056
|
}, {
|