@abgov/react-components 4.17.0-alpha.20 → 4.17.0-alpha.21
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 +3878 -3794
- package/index.js.map +1 -1
- package/index.mjs +3878 -3794
- package/index.mjs.map +1 -1
- package/lib/icon-button/icon-button.d.ts +3 -1
- package/lib/modal/modal.d.ts +4 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ interface WCProps extends Margins {
|
|
|
9
9
|
variant?: GoAIconButtonVariant;
|
|
10
10
|
title?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
arialabel?: string;
|
|
12
13
|
}
|
|
13
14
|
declare global {
|
|
14
15
|
namespace JSX {
|
|
@@ -26,6 +27,7 @@ export interface GoAIconButtonProps extends Margins {
|
|
|
26
27
|
children?: React.ReactNode;
|
|
27
28
|
onClick?: () => void;
|
|
28
29
|
testId?: string;
|
|
30
|
+
ariaLabel?: string;
|
|
29
31
|
}
|
|
30
|
-
export declare function GoAIconButton({ icon, disabled, variant, onClick, size, title, testId, children, mt, mr, mb, ml, }: GoAIconButtonProps): JSX.Element;
|
|
32
|
+
export declare function GoAIconButton({ icon, disabled, variant, onClick, size, title, ariaLabel, testId, children, mt, mr, mb, ml, }: GoAIconButtonProps): JSX.Element;
|
|
31
33
|
export {};
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from "react";
|
|
2
2
|
export type GoAModalTransition = "fast" | "slow" | "none";
|
|
3
3
|
export type GoAModalCalloutVariant = "information" | "important" | "emergency" | "success" | "event";
|
|
4
|
+
export type GoAModalRole = "dialog" | "alertdialog";
|
|
4
5
|
export type ModalTransition = GoAModalTransition;
|
|
5
6
|
export type CalloutVariant = GoAModalCalloutVariant;
|
|
6
7
|
interface WCProps {
|
|
@@ -11,6 +12,7 @@ interface WCProps {
|
|
|
11
12
|
closable?: boolean;
|
|
12
13
|
transition?: GoAModalTransition;
|
|
13
14
|
calloutvariant?: GoAModalCalloutVariant;
|
|
15
|
+
role?: GoAModalRole;
|
|
14
16
|
}
|
|
15
17
|
declare global {
|
|
16
18
|
namespace JSX {
|
|
@@ -29,8 +31,9 @@ export interface GoAModalProps {
|
|
|
29
31
|
open?: boolean;
|
|
30
32
|
calloutVariant?: GoAModalCalloutVariant;
|
|
31
33
|
testId?: string;
|
|
34
|
+
role?: GoAModalRole;
|
|
32
35
|
width?: string;
|
|
33
36
|
type?: string;
|
|
34
37
|
}
|
|
35
|
-
export declare function GoAModal({ heading, children, maxWidth, open, actions, transition, type, calloutVariant, onClose, testId, width, }: GoAModalProps): JSX.Element;
|
|
38
|
+
export declare function GoAModal({ heading, children, maxWidth, open, actions, transition, type, calloutVariant, onClose, testId, role, width, }: GoAModalProps): JSX.Element;
|
|
36
39
|
export default GoAModal;
|
package/package.json
CHANGED