@ansible/ansible-ui-framework 2.4.266 → 2.4.268
Sign up to get free protection for your applications and to get access to all the features.
- package/framework/PageForm/Inputs/PageFormSelect.d.ts +20 -5
- package/framework/components/useIsMounted.d.ts +4 -0
- package/framework/index.d.ts +0 -2
- package/framework/useView.d.ts +6 -2
- package/index.js +12530 -12579
- package/index.umd.cjs +224 -224
- package/package.json +1 -1
- package/framework/PageForm/Inputs/PageFormSelectOption.d.ts +0 -20
- package/framework/PageForm/Inputs/PageFormTextSelect.d.ts +0 -13
package/package.json
CHANGED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
2
|
-
import { FieldPath, FieldPathValue, FieldValues, Validate } from 'react-hook-form';
|
3
|
-
import { IFormGroupSelectOption } from './FormGroupSelectOption';
|
4
|
-
export type PageFormSelectOptionProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection = unknown> = {
|
5
|
-
id?: string;
|
6
|
-
name: TFieldName;
|
7
|
-
label?: string;
|
8
|
-
labelHelpTitle?: string;
|
9
|
-
labelHelp?: ReactNode;
|
10
|
-
additionalControls?: ReactNode;
|
11
|
-
placeholderText?: string;
|
12
|
-
options: IFormGroupSelectOption<TSelection>[];
|
13
|
-
footer?: ReactNode;
|
14
|
-
helperText?: string;
|
15
|
-
isDisabled?: boolean;
|
16
|
-
isReadOnly?: boolean;
|
17
|
-
isRequired?: boolean;
|
18
|
-
validate?: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
|
19
|
-
};
|
20
|
-
export declare function PageFormSelectOption<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection = unknown>(props: PageFormSelectOptionProps<TFieldValues, TFieldName, TSelection>): import("react/jsx-runtime").JSX.Element;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
export declare function FormTextSelect<T>(props: {
|
2
|
-
id?: string;
|
3
|
-
label: string;
|
4
|
-
name: string;
|
5
|
-
helperText?: string;
|
6
|
-
required?: boolean;
|
7
|
-
secret?: boolean;
|
8
|
-
autoFocus?: boolean;
|
9
|
-
placeholder?: string;
|
10
|
-
selectTitle?: string;
|
11
|
-
selectValue?: (item: T) => string | number;
|
12
|
-
selectOpen?: (callback: (item: T) => void, title: string) => void;
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|