@abgov/react-components 7.0.0-dev.4 → 7.0.0-dev.6
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 +2 -1
- package/index.js.map +1 -1
- package/index.mjs +2 -1
- package/index.mjs.map +1 -1
- package/lib/icon-button/icon-button.d.ts +5 -2
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { GoabIconButtonVariant, GoabIconSize, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
|
|
1
|
+
import { GoabIconButtonVariant, GoabIconSize, GoabIconTheme, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
|
|
2
2
|
import { JSX, ReactNode } from 'react';
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
icon: GoabIconType;
|
|
5
5
|
size?: GoabIconSize;
|
|
6
|
+
theme?: GoabIconTheme;
|
|
6
7
|
variant?: GoabIconButtonVariant;
|
|
7
8
|
title?: string;
|
|
8
9
|
disabled?: string;
|
|
@@ -28,6 +29,8 @@ export interface GoabIconButtonProps extends Margins, DataAttributes {
|
|
|
28
29
|
size?: GoabIconSize;
|
|
29
30
|
/** Styles the button to show color, light, dark or destructive action. @default "color" */
|
|
30
31
|
variant?: GoabIconButtonVariant;
|
|
32
|
+
/** Sets the theme of the icon inside the button. "outline" for stroked icons, "filled" for solid icons. @default "outline" */
|
|
33
|
+
theme?: GoabIconTheme;
|
|
31
34
|
/** Sets the title of the button. */
|
|
32
35
|
title?: string;
|
|
33
36
|
/** Disables the button. */
|
|
@@ -48,5 +51,5 @@ export interface GoabIconButtonProps extends Margins, DataAttributes {
|
|
|
48
51
|
children?: ReactNode;
|
|
49
52
|
}
|
|
50
53
|
/** A compact button with an icon and no text. */
|
|
51
|
-
export declare function GoabIconButton({ variant, size, disabled, onClick, actionArgs, actionArg, children, ...rest }: GoabIconButtonProps): JSX.Element;
|
|
54
|
+
export declare function GoabIconButton({ variant, size, theme, disabled, onClick, actionArgs, actionArg, children, ...rest }: GoabIconButtonProps): JSX.Element;
|
|
52
55
|
export {};
|