@ansible/ansible-ui-framework 2.4.288 → 2.4.290
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/PageInputs/PageMultiSelect.cy.d.ts +1 -0
- package/framework/PageInputs/PageMultiSelect.d.ts +11 -0
- package/framework/PageInputs/PageSelectOption.d.ts +6 -2
- package/framework/PageInputs/PageSingleSelect.d.ts +5 -5
- package/framework/PageTable/PageToolbar/PageToolbarFilterTypes/ToolbarDateRangeFilter.d.ts +1 -1
- package/index.js +2834 -2801
- package/index.umd.cjs +110 -110
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { PageSelectOption } from './PageSelectOption';
|
3
|
+
export declare function PageMultiSelect<ValueT>(props: {
|
4
|
+
id?: string;
|
5
|
+
icon?: ReactNode;
|
6
|
+
placeholder: ReactNode;
|
7
|
+
values: ValueT[] | undefined | null;
|
8
|
+
onSelect: (setter: (currentValues: ValueT[] | undefined) => ValueT[] | undefined) => void;
|
9
|
+
options: PageSelectOption<ValueT>[];
|
10
|
+
variant?: 'chips' | 'count';
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,9 @@
|
|
1
|
-
|
1
|
+
interface IPageSelectOption<ValueT> {
|
2
|
+
key?: string | number;
|
3
|
+
value: ValueT;
|
2
4
|
label: string;
|
3
5
|
description?: string;
|
4
|
-
value: T;
|
5
6
|
}
|
7
|
+
export type PageSelectOption<ValueT = unknown> = string | number | IPageSelectOption<ValueT>;
|
8
|
+
export declare function getPageSelectOptions<ValueT>(options: PageSelectOption<ValueT>[]): IPageSelectOption<ValueT>[];
|
9
|
+
export {};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { PageSelectOption } from './PageSelectOption';
|
3
|
-
export declare function PageSingleSelect<
|
3
|
+
export declare function PageSingleSelect<ValueT>(props: {
|
4
4
|
id?: string;
|
5
5
|
icon?: ReactNode;
|
6
|
-
placeholder
|
7
|
-
value:
|
8
|
-
onSelect: (value:
|
9
|
-
options: PageSelectOption<
|
6
|
+
placeholder: string;
|
7
|
+
value: ValueT;
|
8
|
+
onSelect: (value: ValueT) => void;
|
9
|
+
options: PageSelectOption<ValueT>[];
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -16,7 +16,7 @@ interface IToolbarDateFilterOption {
|
|
16
16
|
export interface IToolbarDateRangeFilterProps {
|
17
17
|
id?: string;
|
18
18
|
label?: string;
|
19
|
-
placeholder
|
19
|
+
placeholder: string;
|
20
20
|
values: string[];
|
21
21
|
setValues: (values: string[]) => void;
|
22
22
|
options: IToolbarDateFilterOption[];
|