@abgov/react-components 4.0.0-alpha.151 → 4.0.0-alpha.153
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/lib/notification/notification.d.ts +4 -1
- package/package.json +1 -1
- package/react-components.esm.js +470 -21772
- package/react-components.umd.js +470 -21823
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare type NotificationType = "important" | "information" | "event" | "emergency";
|
|
3
|
+
export declare type AriaLiveType = "polite" | "assertive" | "off";
|
|
3
4
|
interface WCProps {
|
|
4
5
|
ref: React.RefObject<HTMLElement>;
|
|
5
6
|
type: NotificationType;
|
|
6
7
|
maxcontentwidth?: string;
|
|
8
|
+
arialive?: AriaLiveType;
|
|
7
9
|
}
|
|
8
10
|
declare global {
|
|
9
11
|
namespace JSX {
|
|
@@ -14,10 +16,11 @@ declare global {
|
|
|
14
16
|
}
|
|
15
17
|
interface Props {
|
|
16
18
|
type?: NotificationType;
|
|
19
|
+
ariaLive?: AriaLiveType;
|
|
17
20
|
maxContentWidth?: string;
|
|
18
21
|
children?: React.ReactNode;
|
|
19
22
|
onDismiss?: () => void;
|
|
20
23
|
testId?: string;
|
|
21
24
|
}
|
|
22
|
-
export declare const GoANotification: ({ type, maxContentWidth, children, testId, onDismiss, }: Props) => JSX.Element;
|
|
25
|
+
export declare const GoANotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: Props) => JSX.Element;
|
|
23
26
|
export default GoANotification;
|
package/package.json
CHANGED