@ansible/ansible-ui-framework 2.4.276 → 2.4.278

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,22 @@
1
1
  import { ReactNode } from 'react';
2
- export declare function PageSingleSelect(props: {
2
+ export interface PageSelectOption<T> {
3
+ label: string;
4
+ description?: string;
5
+ value: T;
6
+ }
7
+ export declare enum PageSelectVariant {
8
+ Single = "Single",
9
+ Typeahead = "Typeahead"
10
+ }
11
+ type PageSelectVariants = keyof typeof PageSelectVariant;
12
+ interface PageSingleSelectProps<T> {
3
13
  id?: string;
4
- children: ReactNode;
5
- value: string;
6
- onChange: (value: string) => void;
14
+ value: T;
15
+ onChange: (value: T) => void;
16
+ options: PageSelectOption<T>[];
7
17
  placeholder?: string;
8
18
  icon?: ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
19
+ variant?: PageSelectVariants;
20
+ }
21
+ export declare function PageSingleSelect<T>(props: PageSingleSelectProps<T>): import("react/jsx-runtime").JSX.Element;
22
+ export {};