@abgov/react-components 6.2.0-alpha.1 → 6.2.0-alpha.3
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/input/input.d.ts +3 -1
- package/package.json +1 -1
package/lib/input/input.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ interface WCProps extends Margins {
|
|
|
26
26
|
max?: string | number;
|
|
27
27
|
step?: number;
|
|
28
28
|
maxlength?: number;
|
|
29
|
+
trailingiconarialabel?: string;
|
|
29
30
|
}
|
|
30
31
|
declare global {
|
|
31
32
|
namespace JSX {
|
|
@@ -56,6 +57,7 @@ interface BaseProps extends Margins {
|
|
|
56
57
|
leadingContent?: React.ReactNode;
|
|
57
58
|
trailingContent?: React.ReactNode;
|
|
58
59
|
maxLength?: number;
|
|
60
|
+
trailingIconAriaLabel?: string;
|
|
59
61
|
}
|
|
60
62
|
type OnChange<T = string> = (detail: GoabInputOnChangeDetail<T>) => void;
|
|
61
63
|
type OnFocus<T = string> = (detail: GoabInputOnFocusDetail<T>) => void;
|
|
@@ -91,7 +93,7 @@ interface GoabDateInputProps extends BaseProps {
|
|
|
91
93
|
onBlur?: OnBlur<GoabDate>;
|
|
92
94
|
onKeyPress?: OnKeyPress<GoabDate>;
|
|
93
95
|
}
|
|
94
|
-
export declare function GoabInput({ id, debounce, name, type, autoCapitalize, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoabInputProps & {
|
|
96
|
+
export declare function GoabInput({ id, debounce, name, type, autoCapitalize, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, trailingIconAriaLabel, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoabInputProps & {
|
|
95
97
|
type?: GoabInputType;
|
|
96
98
|
}): JSX.Element;
|
|
97
99
|
export declare function GoabInputText(props: GoabInputProps): JSX.Element;
|