@abgov/react-components 7.2.0-dev.26 → 7.2.0-dev.28
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 +4 -1
- package/index.js.map +1 -1
- package/index.mjs +4 -1
- package/index.mjs.map +1 -1
- package/lib/filter-chip/filter-chip.d.ts +8 -4
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { DataAttributes, GoabFilterChipTheme, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
interface WCProps extends Margins {
|
|
3
4
|
icontheme: GoabFilterChipTheme;
|
|
4
5
|
error?: string;
|
|
5
|
-
content
|
|
6
|
+
content?: string;
|
|
7
|
+
arialabel?: string;
|
|
6
8
|
secondarytext?: string;
|
|
7
9
|
leadingicon?: GoabIconType;
|
|
8
10
|
testid?: string;
|
|
@@ -18,8 +20,10 @@ declare module "react" {
|
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
export interface GoabFilterChipProps extends Margins, DataAttributes {
|
|
21
|
-
/** @required
|
|
22
|
-
content:
|
|
23
|
+
/** @required Content displayed in the chip. Accepts a string or ReactNode for custom content. */
|
|
24
|
+
content: ReactNode;
|
|
25
|
+
/** Accessible content used to label the filter chip controls. */
|
|
26
|
+
ariaLabel?: string;
|
|
23
27
|
/** Theme style of the leading icon. @default "outline" */
|
|
24
28
|
iconTheme?: GoabFilterChipTheme;
|
|
25
29
|
/** Shows an error state. */
|
|
@@ -34,5 +38,5 @@ export interface GoabFilterChipProps extends Margins, DataAttributes {
|
|
|
34
38
|
onClick?: () => void;
|
|
35
39
|
}
|
|
36
40
|
/** Allow the user to enter information, filter content, and make selections. */
|
|
37
|
-
export declare const GoabFilterChip: ({ iconTheme, error, onClick, ...rest }: GoabFilterChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const GoabFilterChip: ({ content, iconTheme, error, onClick, ...rest }: GoabFilterChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
42
|
export default GoabFilterChip;
|