@ansible/ansible-ui-framework 2.4.238 → 2.4.240
Sign up to get free protection for your applications and to get access to all the features.
- package/framework/PageForm/Inputs/FormGroupTextInput.d.ts +1 -2
- package/framework/PageForm/Inputs/PageFormTextInput.d.ts +19 -6
- package/index.js +10114 -10070
- package/index.umd.cjs +215 -215
- package/package.json +1 -1
@@ -1,8 +1,7 @@
|
|
1
1
|
import { TextInputProps } from '@patternfly/react-core';
|
2
2
|
import { ReactNode } from 'react';
|
3
3
|
import { PageFormGroupProps } from './PageFormGroup';
|
4
|
-
export type FormGroupTextInputProps = Pick<TextInputProps, 'placeholder' | 'value' | 'isDisabled' | 'isReadOnly' | 'isRequired' | 'validated' | 'onChange' | 'type' | 'aria-label' | 'autoComplete' | 'autoFocus' | 'innerRef' | 'minLength' | 'maxLength' | 'onBlur'> & PageFormGroupProps & {
|
4
|
+
export type FormGroupTextInputProps = Pick<TextInputProps, 'placeholder' | 'value' | 'isDisabled' | 'isReadOnly' | 'isRequired' | 'validated' | 'onChange' | 'type' | 'aria-label' | 'autoComplete' | 'autoFocus' | 'innerRef' | 'minLength' | 'maxLength' | 'onBlur' | 'min' | 'max'> & PageFormGroupProps & {
|
5
5
|
children?: ReactNode;
|
6
|
-
min?: string;
|
7
6
|
};
|
8
7
|
export declare function FormGroupTextInput(props: FormGroupTextInputProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,16 +1,29 @@
|
|
1
|
-
import { ReactElement } from 'react';
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
2
2
|
import { FieldPath, FieldPathValue, FieldValues, Validate, ValidationRule } from 'react-hook-form';
|
3
|
-
import { FormGroupTextInputProps } from './FormGroupTextInput';
|
4
3
|
export type PageFormTextInputProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection extends FieldValues = FieldValues> = {
|
4
|
+
id?: string;
|
5
5
|
name: TFieldName;
|
6
|
+
type?: 'text' | 'date' | 'datetime-local' | 'email' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'time' | 'url';
|
7
|
+
label?: string;
|
8
|
+
labelHelpTitle?: string;
|
9
|
+
labelHelp?: ReactNode;
|
10
|
+
additionalControls?: ReactNode;
|
11
|
+
placeholder?: string;
|
12
|
+
button?: ReactElement;
|
13
|
+
helperText?: string;
|
14
|
+
isDisabled?: boolean;
|
15
|
+
isReadOnly?: boolean;
|
16
|
+
isRequired?: boolean;
|
17
|
+
validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>;
|
6
18
|
minLength?: number | ValidationRule<number>;
|
7
19
|
maxLength?: number | ValidationRule<number>;
|
20
|
+
min?: number | string;
|
21
|
+
max?: number | string;
|
8
22
|
pattern?: ValidationRule<RegExp>;
|
9
|
-
validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>;
|
10
23
|
selectTitle?: string;
|
11
24
|
selectValue?: (selection: TSelection) => FieldPathValue<TSelection, FieldPath<TSelection>>;
|
12
25
|
selectOpen?: (callback: (selection: TSelection) => void, title: string) => void;
|
13
|
-
|
14
|
-
|
15
|
-
}
|
26
|
+
autoFocus?: boolean;
|
27
|
+
autoComplete?: string;
|
28
|
+
};
|
16
29
|
export declare function PageFormTextInput<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection extends FieldValues = FieldValues>(props: PageFormTextInputProps<TFieldValues, TFieldName, TSelection>): import("react/jsx-runtime").JSX.Element;
|