@ansible/ansible-ui-framework 2.4.292 → 2.4.294

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { PageMultiSelectProps } from './PageMultiSelect';
2
+ import { IPageSelectOption } from './PageSelectOption';
3
+ export interface PageAsyncMultiSelectQueryResult<ValueT> {
4
+ total: number;
5
+ options: IPageSelectOption<ValueT>[];
6
+ }
7
+ export interface PageAsyncMultiSelectProps<ValueT> extends Omit<PageMultiSelectProps<ValueT>, 'options'> {
8
+ queryOptions: (page: number, signal: AbortSignal) => Promise<PageAsyncMultiSelectQueryResult<ValueT>>;
9
+ queryPlaceholder?: string;
10
+ queryErrorText?: string | ((error: Error) => string);
11
+ }
12
+ export declare function PageAsyncMultiSelect<ValueT>(props: PageAsyncMultiSelectProps<ValueT>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { IPageSelectOption } from './PageSelectOption';
2
+ import { PageSingleSelectProps } from './PageSingleSelect';
3
+ export interface PageAsyncSingleSelectQueryResult<ValueT> {
4
+ total: number;
5
+ options: IPageSelectOption<ValueT>[];
6
+ }
7
+ export interface PageAsyncSingleSelectProps<ValueT> extends Omit<PageSingleSelectProps<ValueT>, 'options'> {
8
+ queryOptions: (page: number, signal: AbortSignal) => Promise<PageAsyncSingleSelectQueryResult<ValueT>>;
9
+ queryPlaceholder?: string;
10
+ queryErrorText?: string | ((error: Error) => string);
11
+ }
12
+ export declare function PageAsyncSingleSelect<ValueT>(props: PageAsyncSingleSelectProps<ValueT>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { PageSelectOption } from './PageSelectOption';
3
2
  import './PageMultiSelect.css';
4
- export declare function PageMultiSelect<ValueT>(props: {
3
+ import { PageSelectOption } from './PageSelectOption';
4
+ export interface PageMultiSelectProps<ValueT> {
5
5
  id?: string;
6
6
  icon?: ReactNode;
7
7
  placeholder: ReactNode;
@@ -9,4 +9,7 @@ export declare function PageMultiSelect<ValueT>(props: {
9
9
  onSelect: (setter: (currentValues: ValueT[] | undefined) => ValueT[] | undefined) => void;
10
10
  options: PageSelectOption<ValueT>[];
11
11
  variant?: 'chips' | 'count';
12
- }): import("react/jsx-runtime").JSX.Element;
12
+ footer?: ReactNode;
13
+ disableClearSelection?: boolean;
14
+ }
15
+ export declare function PageMultiSelect<ValueT>(props: PageMultiSelectProps<ValueT>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- interface IPageSelectOption<ValueT> {
1
+ export interface IPageSelectOption<ValueT> {
2
2
  key?: string | number;
3
3
  value: ValueT;
4
4
  label: string;
@@ -6,4 +6,3 @@ interface IPageSelectOption<ValueT> {
6
6
  }
7
7
  export type PageSelectOption<ValueT = unknown> = string | number | IPageSelectOption<ValueT>;
8
8
  export declare function getPageSelectOptions<ValueT>(options: PageSelectOption<ValueT>[]): IPageSelectOption<ValueT>[];
9
- export {};
@@ -1,11 +1,17 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { PageSelectOption } from './PageSelectOption';
3
3
  import './PageSingleSelect.css';
4
- export declare function PageSingleSelect<ValueT>(props: {
4
+ export interface PageSingleSelectProps<ValueT> {
5
5
  id?: string;
6
6
  icon?: ReactNode;
7
7
  placeholder: string;
8
8
  value: ValueT;
9
9
  onSelect: (value: ValueT) => void;
10
10
  options: PageSelectOption<ValueT>[];
11
- }): import("react/jsx-runtime").JSX.Element;
11
+ footer?: ReactNode;
12
+ }
13
+ export declare function PageSingleSelect<ValueT>(props: PageSingleSelectProps<ValueT>): import("react/jsx-runtime").JSX.Element;
14
+ export declare const SelectPlacedholder: import("styled-components").StyledComponent<"span", any, {}, never>;
15
+ export declare const SelectHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
16
+ export declare const SelectFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
17
+ export declare const SelectListStyled: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@patternfly/react-core").MenuListProps>, any, {}, never>;