@ansible/ansible-ui-framework 2.4.1826 → 2.4.1828

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '@patternfly/react-core';
1
2
  import { DropdownPosition } from '@patternfly/react-core/deprecated';
2
3
  import { ComponentClass, FunctionComponent } from 'react';
3
4
  import { WindowSize } from '../components/useBreakPoint';
@@ -11,6 +12,7 @@ interface PageActionProps<T extends object> {
11
12
  position?: DropdownPosition;
12
13
  iconOnly?: boolean;
13
14
  onOpen?: (open: boolean) => void;
15
+ variant?: ButtonVariant;
14
16
  }
15
17
  export declare function PageActions<T extends object>(props: PageActionProps<T>): import("react/jsx-runtime").JSX.Element;
16
18
  export {};
@@ -5,5 +5,5 @@ export type PageFormAsyncSingleSelectProps<TFieldValues extends FieldValues = Fi
5
5
  name: TFieldName;
6
6
  validate?: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
7
7
  isReadOnly?: boolean;
8
- } & Pick<PageAsyncSingleSelectProps<ValueT>, 'id' | 'placeholder' | 'footer' | 'isDisabled' | 'isRequired' | 'queryOptions' | 'queryPlaceholder' | 'queryErrorText' | 'onBrowse' | 'queryLabel'> & Pick<PageFormGroupProps, 'label' | 'labelHelp' | 'labelHelpTitle' | 'additionalControls' | 'isRequired' | 'helperText'>;
8
+ } & Pick<PageAsyncSingleSelectProps<ValueT>, 'id' | 'placeholder' | 'footer' | 'isDisabled' | 'isRequired' | 'queryOptions' | 'queryPlaceholder' | 'queryErrorText' | 'onBrowse' | 'queryLabel' | 'writeInOption'> & Pick<PageFormGroupProps, 'label' | 'labelHelp' | 'labelHelpTitle' | 'additionalControls' | 'isRequired' | 'helperText'>;
9
9
  export declare function PageFormAsyncSingleSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormAsyncSingleSelectProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
@@ -8,5 +8,7 @@ export type PageFormCheckboxProps<TFieldValues extends FieldValues = FieldValues
8
8
  labelHelpTitle?: string;
9
9
  labelHelp?: string | string[] | ReactNode;
10
10
  label?: string;
11
+ defaultValue?: boolean;
12
+ enableReset?: boolean;
11
13
  } & Pick<CheckboxProps, 'description' | 'readOnly' | 'isDisabled' | 'isRequired'>;
12
14
  export declare function PageFormCheckbox<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormCheckboxProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
@@ -19,6 +19,9 @@ export type PageFormDataEditorInputProps<TFieldValues extends FieldValues = Fiel
19
19
  validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>;
20
20
  isReadOnly?: boolean;
21
21
  isArray?: boolean;
22
+ defaultValue?: string | object;
23
+ enableUndo?: boolean;
24
+ enableReset?: boolean;
22
25
  };
23
26
  export declare function PageFormDataEditor<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, object | string | undefined | null> = FieldPathByValue<TFieldValues, object | string | undefined | null>>(props: PageFormDataEditorInputProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
24
27
  export declare function DataEditorButtons(props: {
@@ -19,5 +19,7 @@ export type PageFormSelectProps<TFieldValues extends FieldValues = FieldValues,
19
19
  onChange?: (option?: TSelection) => void;
20
20
  validate?: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
21
21
  defaultValue?: FieldPathValue<TFieldValues, TFieldName>;
22
+ enableReset?: boolean;
23
+ enableUndo?: boolean;
22
24
  };
23
25
  export declare function PageFormSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection = unknown>(props: PageFormSelectProps<TFieldValues, TFieldName, TSelection>): import("react/jsx-runtime").JSX.Element;
@@ -25,5 +25,8 @@ export type PageFormTextInputProps<TFieldValues extends FieldValues = FieldValue
25
25
  selectOpen?: (callback: (selection: TSelection) => void, title: string) => void;
26
26
  autoFocus?: boolean;
27
27
  autoComplete?: string;
28
+ defaultValue?: FieldPathValue<TFieldValues, TFieldName>;
29
+ enableUndo?: boolean;
30
+ enableReset?: boolean;
28
31
  };
29
32
  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;
@@ -1,10 +1,12 @@
1
1
  import { SetRequired } from 'type-fest';
2
2
  import { PageAsyncQueryErrorText, PageAsyncSelectOptionsFn } from './PageAsyncSelectOptions';
3
+ import { PageSelectOption } from './PageSelectOption';
3
4
  import { PageSingleSelectProps } from './PageSingleSelect';
4
5
  export interface PageAsyncSingleSelectProps<ValueT> extends SetRequired<Omit<PageSingleSelectProps<ValueT>, 'options'>, 'queryLabel'> {
5
6
  queryOptions: PageAsyncSelectOptionsFn<ValueT>;
6
7
  queryPlaceholder?: string;
7
8
  queryErrorText?: PageAsyncQueryErrorText;
8
9
  onBrowse?: () => void;
10
+ writeInOption?: (query: string) => PageSelectOption<ValueT>;
9
11
  }
10
12
  export declare function PageAsyncSingleSelect<ValueT>(props: PageAsyncSingleSelectProps<ValueT>): import("react/jsx-runtime").JSX.Element;