@abgov/react-components 4.7.0 → 4.8.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.
@@ -18,6 +18,7 @@ declare global {
18
18
  interface Props extends Margins {
19
19
  accent?: Accent;
20
20
  type?: ContainerType;
21
+ heading?: ReactNode;
21
22
  title?: ReactNode;
22
23
  padding?: ContainerPadding;
23
24
  actions?: ReactNode;
@@ -1,12 +1,12 @@
1
1
  import React, { FC } from "react";
2
2
  import { Margins } from "../../common/styling";
3
3
  import { IconSize, GoAIconType } from "../icon/icon";
4
- declare type IconVariant = "color" | "nocolor" | "dark";
4
+ export declare type IconButtonVariant = "color" | "nocolor" | "dark" | "destructive";
5
5
  interface WCProps extends Margins {
6
6
  ref: React.RefObject<HTMLElement>;
7
7
  icon: GoAIconType;
8
8
  size?: IconSize;
9
- variant?: IconVariant;
9
+ variant?: IconButtonVariant;
10
10
  title?: string;
11
11
  disabled?: boolean;
12
12
  }
@@ -20,7 +20,7 @@ declare global {
20
20
  interface Props extends Margins {
21
21
  icon: GoAIconType;
22
22
  size?: IconSize;
23
- variant?: IconVariant;
23
+ variant?: IconButtonVariant;
24
24
  title?: string;
25
25
  disabled?: boolean;
26
26
  children?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"