@abgov/react-components 4.17.0-alpha.37 → 4.17.0-alpha.39
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 +2723 -2669
- package/index.js.map +1 -1
- package/index.mjs +2723 -2669
- package/index.mjs.map +1 -1
- package/lib/callout/callout.d.ts +4 -1
- package/lib/chip/chip.d.ts +4 -1
- package/package.json +1 -1
package/lib/callout/callout.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Margins } from "../../common/styling";
|
|
2
2
|
export type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
|
|
3
3
|
export type GoACalloutSize = "medium" | "large";
|
|
4
|
+
export type GoACalloutAriaLive = "off" | "polite" | "assertive";
|
|
4
5
|
interface WCProps extends Margins {
|
|
5
6
|
heading?: string;
|
|
6
7
|
type?: GoACalloutType;
|
|
7
8
|
size?: GoACalloutSize;
|
|
8
9
|
maxwidth?: string;
|
|
10
|
+
arialive?: GoACalloutAriaLive;
|
|
9
11
|
}
|
|
10
12
|
declare global {
|
|
11
13
|
namespace JSX {
|
|
@@ -20,8 +22,9 @@ export interface GoACalloutProps extends Margins {
|
|
|
20
22
|
size?: GoACalloutSize;
|
|
21
23
|
maxWidth?: string;
|
|
22
24
|
testId?: string;
|
|
25
|
+
ariaLive?: GoACalloutAriaLive;
|
|
23
26
|
children?: React.ReactNode;
|
|
24
27
|
}
|
|
25
28
|
export type CalloutProps = GoACalloutProps;
|
|
26
|
-
export declare const GoACallout: ({ heading, type, size, maxWidth, testId, children, mt, mr, mb, ml, }: GoACalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const GoACallout: ({ heading, type, size, maxWidth, testId, ariaLive, children, mt, mr, mb, ml, }: GoACalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
30
|
export default GoACallout;
|
package/lib/chip/chip.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Margins } from "../../common/styling";
|
|
2
2
|
export type GoAChipVariant = "filter";
|
|
3
|
+
export type GoAChipTheme = "outline" | "filled" | "sharp";
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
5
|
ref: React.RefObject<HTMLElement>;
|
|
5
6
|
leadingicon: string;
|
|
7
|
+
icontheme: GoAChipTheme;
|
|
6
8
|
error: boolean;
|
|
7
9
|
deletable: boolean;
|
|
8
10
|
content: string;
|
|
@@ -19,10 +21,11 @@ export interface GoAChipProps extends Margins {
|
|
|
19
21
|
onClick?: () => void;
|
|
20
22
|
deletable?: boolean;
|
|
21
23
|
leadingIcon?: string;
|
|
24
|
+
iconTheme?: GoAChipTheme;
|
|
22
25
|
error?: boolean;
|
|
23
26
|
content: string;
|
|
24
27
|
variant?: GoAChipVariant;
|
|
25
28
|
testId?: string;
|
|
26
29
|
}
|
|
27
|
-
export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoAChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare const GoAChip: ({ leadingIcon, iconTheme, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoAChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
31
|
export default GoAChip;
|
package/package.json
CHANGED