@abgov/react-components 4.17.0-alpha.25 → 4.17.0-alpha.26

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.
@@ -3,10 +3,12 @@ import { Margins } from "../../common/styling";
3
3
  export type GoAContainerType = "interactive" | "non-interactive" | "info" | "error" | "success" | "important";
4
4
  export type GoAContainerAccent = "thick" | "thin" | "filled";
5
5
  export type GoAContainerPadding = "relaxed" | "compact";
6
+ export type GoAContainerWidth = "full" | "content";
6
7
  interface WCProps extends Margins {
7
8
  type?: GoAContainerType;
8
9
  accent?: GoAContainerAccent;
9
10
  padding?: GoAContainerPadding;
11
+ width?: GoAContainerWidth;
10
12
  }
11
13
  declare global {
12
14
  namespace JSX {
@@ -23,7 +25,8 @@ export interface GoAContainerProps extends Margins {
23
25
  padding?: GoAContainerPadding;
24
26
  actions?: ReactNode;
25
27
  children?: ReactNode;
28
+ width?: GoAContainerWidth;
26
29
  testId?: string;
27
30
  }
28
- export declare function GoAContainer({ accent, heading, title, padding, children, actions, type, mt, mr, mb, ml, testId, }: GoAContainerProps): JSX.Element;
31
+ export declare function GoAContainer({ accent, heading, title, padding, children, actions, type, width, mt, mr, mb, ml, testId, }: GoAContainerProps): JSX.Element;
29
32
  export default GoAContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.17.0-alpha.25",
3
+ "version": "4.17.0-alpha.26",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"