@abgov/react-components 4.23.0 → 4.24.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.
- package/index.js +6644 -6547
- package/index.js.map +1 -1
- package/index.mjs +6644 -6547
- package/index.mjs.map +1 -1
- package/lib/callout/callout.d.ts +4 -1
- package/lib/chip/chip.d.ts +4 -1
- package/lib/dropdown/dropdown-item.d.ts +4 -1
- package/lib/tabs/tabs.d.ts +5 -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;
|
|
@@ -2,8 +2,10 @@ interface WCProps {
|
|
|
2
2
|
value: string;
|
|
3
3
|
label?: string;
|
|
4
4
|
filter?: string;
|
|
5
|
+
mount?: DropdownItemMountType;
|
|
5
6
|
name?: string;
|
|
6
7
|
}
|
|
8
|
+
export type DropdownItemMountType = "append" | "prepend" | "reset";
|
|
7
9
|
declare global {
|
|
8
10
|
namespace JSX {
|
|
9
11
|
interface IntrinsicElements {
|
|
@@ -16,8 +18,9 @@ export interface GoADropdownItemProps {
|
|
|
16
18
|
label?: string;
|
|
17
19
|
filter?: string;
|
|
18
20
|
testId?: string;
|
|
21
|
+
mountType?: DropdownItemMountType;
|
|
19
22
|
name?: string;
|
|
20
23
|
}
|
|
21
24
|
export declare function GoADropdownOption(props: GoADropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare function GoADropdownItem({ value, label, filter, name, testId }: GoADropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function GoADropdownItem({ value, label, filter, name, testId, mountType }: GoADropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
23
26
|
export {};
|
package/lib/tabs/tabs.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface WCProps {
|
|
2
3
|
initialtab?: number;
|
|
4
|
+
ref: React.RefObject<HTMLElement>;
|
|
5
|
+
onChange?: (tab: number) => void;
|
|
3
6
|
}
|
|
4
7
|
declare global {
|
|
5
8
|
namespace JSX {
|
|
@@ -12,6 +15,7 @@ export interface GoATabsProps {
|
|
|
12
15
|
initialTab?: number;
|
|
13
16
|
children?: React.ReactNode;
|
|
14
17
|
testId?: string;
|
|
18
|
+
onChange?: (tab: number) => void;
|
|
15
19
|
}
|
|
16
|
-
export declare function GoATabs({ initialTab, children, testId }: GoATabsProps): JSX.Element;
|
|
20
|
+
export declare function GoATabs({ initialTab, children, testId, onChange, }: GoATabsProps): JSX.Element;
|
|
17
21
|
export default GoATabs;
|