@modul/mbui 0.0.62-beta-pv-54172-pdf-ee149976 → 0.0.62-beta-pv-54366-01b32e16
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/dist/PDFViewer/index.js +1 -1
- package/dist/Select/Autocomplete.d.ts +21 -0
- package/dist/Select/SelectBase.d.ts +3 -1
- package/dist/Select/components/index.js +1 -1
- package/dist/Select/index.d.ts +1 -0
- package/dist/Select/index.js +5 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +48 -47
- package/package.json +10 -10
@@ -0,0 +1,21 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Props as SelectProps } from 'react-select';
|
3
|
+
interface Option {
|
4
|
+
value: any;
|
5
|
+
label: string;
|
6
|
+
[key: string]: any;
|
7
|
+
}
|
8
|
+
interface GroupedOption {
|
9
|
+
label: string;
|
10
|
+
options: Option[];
|
11
|
+
}
|
12
|
+
declare type AutocompleteProps = SelectProps<Option, false, GroupedOption> & {
|
13
|
+
onSearch?: (value: string) => void;
|
14
|
+
emptyText?: (value: string) => string;
|
15
|
+
components?: {
|
16
|
+
Input?: React.ComponentType<any>;
|
17
|
+
Option?: React.ComponentType<any>;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
declare const Autocomplete: React.FC<AutocompleteProps>;
|
21
|
+
export { Autocomplete };
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { GroupBase, Props } from 'react-select';
|
3
|
-
declare type SelectBaseProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Props<Option, IsMulti, Group
|
3
|
+
declare type SelectBaseProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Props<Option, IsMulti, Group> & {
|
4
|
+
customComponents?: any;
|
5
|
+
};
|
4
6
|
declare function SelectBase<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectBaseProps<Option, IsMulti, Group>): React.JSX.Element;
|
5
7
|
declare namespace SelectBase {
|
6
8
|
var displayName: string;
|