@ansible/ansible-ui-framework 2.4.2631 → 2.4.2633
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.
@@ -26,5 +26,6 @@ export type FormGroupSingleSelectTypeAheadProps = {
|
|
26
26
|
}> | null;
|
27
27
|
onHandleClear: () => void;
|
28
28
|
isRequired?: boolean;
|
29
|
+
toggleButtonId?: string;
|
29
30
|
};
|
30
31
|
export declare function FormGroupSingleSelectTypeAhead(props: FormGroupSingleSelectTypeAheadProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,9 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
2
|
import { FieldPath, FieldPathValue, FieldValues, Validate } from 'react-hook-form';
|
3
|
+
export interface SelectOptionObject {
|
4
|
+
toString(): string;
|
5
|
+
compareTo?(selectOption: unknown): boolean;
|
6
|
+
}
|
3
7
|
export type PageFormCreatableSelectProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
4
8
|
id?: string;
|
5
9
|
name: TFieldName;
|
@@ -16,5 +20,6 @@ export type PageFormCreatableSelectProps<TFieldValues extends FieldValues = Fiel
|
|
16
20
|
isRequired?: boolean;
|
17
21
|
validate?: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
|
18
22
|
isMulti?: boolean;
|
23
|
+
toggleButtonId?: string;
|
19
24
|
};
|
20
25
|
export declare function PageFormCreatableSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormCreatableSelectProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|