@abgov/react-components 8.0.0-dev.3 → 8.0.0-dev.5
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 -0
- package/index.js.map +1 -1
- package/index.mjs +2 -0
- package/index.mjs.map +1 -1
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/filter-chip/filter-chip.d.ts +4 -1
- package/lib/link-button/link-button.d.ts +1 -0
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export interface GoabDropdownItemProps {
|
|
|
19
19
|
value: string;
|
|
20
20
|
/** Display label for the dropdown item. */
|
|
21
21
|
label?: string;
|
|
22
|
-
/**
|
|
22
|
+
/** Additional text used to match this item in typeahead search, alongside the label. Defaults to the content's text. */
|
|
23
23
|
filter?: string;
|
|
24
24
|
/** Sets a data-testid attribute for automated testing. */
|
|
25
25
|
testId?: string;
|
|
@@ -34,7 +34,7 @@ declare module "react" {
|
|
|
34
34
|
export interface GoabDropdownProps extends Margins, DataAttributes {
|
|
35
35
|
/** Identifier for the dropdown. If omitted, a unique name is generated. */
|
|
36
36
|
name?: string;
|
|
37
|
-
/** The
|
|
37
|
+
/** The value of the selected item. */
|
|
38
38
|
value?: string[] | string;
|
|
39
39
|
/** Callback fired when the selected value changes. */
|
|
40
40
|
onChange?: (detail: GoabDropdownOnChangeDetail) => void;
|
|
@@ -3,6 +3,7 @@ import { DataAttributes, GoabFilterChipTheme, GoabIconType, Margins } from '@abg
|
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
icontheme: GoabFilterChipTheme;
|
|
5
5
|
error?: string;
|
|
6
|
+
removable?: string;
|
|
6
7
|
content?: string;
|
|
7
8
|
arialabel?: string;
|
|
8
9
|
secondarytext?: string;
|
|
@@ -27,6 +28,8 @@ export interface GoabFilterChipProps extends Margins, DataAttributes {
|
|
|
27
28
|
iconTheme?: GoabFilterChipTheme;
|
|
28
29
|
/** Shows an error state. */
|
|
29
30
|
error?: boolean;
|
|
31
|
+
/** Sets the chip's removability and visibility of the close button. @default true */
|
|
32
|
+
removable?: boolean;
|
|
30
33
|
/** Secondary text displayed in a smaller size before the main content. */
|
|
31
34
|
secondaryText?: string;
|
|
32
35
|
/** Icon displayed at the start of the chip. */
|
|
@@ -37,5 +40,5 @@ export interface GoabFilterChipProps extends Margins, DataAttributes {
|
|
|
37
40
|
onClick?: () => void;
|
|
38
41
|
}
|
|
39
42
|
/** Allow the user to enter information, filter content, and make selections. */
|
|
40
|
-
export declare const GoabFilterChip: ({ content, iconTheme, error, onClick, ...rest }: GoabFilterChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const GoabFilterChip: ({ content, iconTheme, error, removable, onClick, ...rest }: GoabFilterChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
44
|
export default GoabFilterChip;
|
|
@@ -19,6 +19,7 @@ interface GoALinkButtonProps extends Margins, DataAttributes {
|
|
|
19
19
|
leadingIcon?: GoabIconType;
|
|
20
20
|
/** @deprecated Use GoabButton instead. Icon displayed after the button text. */
|
|
21
21
|
trailingIcon?: GoabIconType;
|
|
22
|
+
/** Content rendered inside the link button. */
|
|
22
23
|
children: ReactNode;
|
|
23
24
|
}
|
|
24
25
|
export declare function GoALinkButton({ type, children, ...rest }: GoALinkButtonProps): import("react/jsx-runtime").JSX.Element;
|