@datability/8ui 1.1.2 → 1.1.3
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/README.md +1 -73
- package/dist/components/input/input-async-auto-complete/index.scss +66 -0
- package/dist/components/input/input-async-select/index.scss +94 -0
- package/dist/index.css +1 -1
- package/dist/index.es.js +152 -151
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/input/input-async-auto-complete/index.d.ts +4 -0
- package/dist/types/components/input/input-async-auto-complete/index.type.d.ts +19 -0
- package/dist/types/components/input/input-async-select/index.d.ts +4 -0
- package/dist/types/components/input/input-async-select/index.type.d.ts +19 -0
- package/dist/types/components/input/input-select/index.type.d.ts +0 -1
- package/package.json +1 -1
|
@@ -33,6 +33,10 @@ export { default as InputAutoComplete } from './input/input-auto-complete';
|
|
|
33
33
|
export type { PropsInputAutoComplete } from './input/input-auto-complete/index.type';
|
|
34
34
|
export { default as InputSwitch } from './input/input-switch';
|
|
35
35
|
export type { PropsInputSwitch } from './input/input-switch/index.type';
|
|
36
|
+
export { default as InputAsyncSelect } from './input/input-async-select';
|
|
37
|
+
export type { PropsInputAsyncSelect } from './input/input-async-select/index.type';
|
|
38
|
+
export { default as InputAsyncAutoComplete } from './input/input-async-auto-complete';
|
|
39
|
+
export type { PropsInputAsyncAutoComplete } from './input/input-async-auto-complete/index.type';
|
|
36
40
|
export type TValueOption = string | number;
|
|
37
41
|
export type TOption = {
|
|
38
42
|
label: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
import { TOption } from '../..';
|
|
3
|
+
export type PropsInputAsyncAutoComplete = {
|
|
4
|
+
control: Control<any>;
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
require?: boolean;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
isMultiple?: boolean;
|
|
12
|
+
isInModal?: boolean;
|
|
13
|
+
fetchOptions: (params: {
|
|
14
|
+
search: string;
|
|
15
|
+
page: number;
|
|
16
|
+
limit: number;
|
|
17
|
+
}) => Promise<TOption[]>;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
import { TOption, TValueOption } from '../..';
|
|
3
|
+
export type PropsInputAsyncSelect = {
|
|
4
|
+
control: Control<any>;
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
require?: boolean;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
onChange?: (value: TValueOption | null) => void;
|
|
12
|
+
isHideClearIcon?: boolean;
|
|
13
|
+
isInModal?: boolean;
|
|
14
|
+
fetchOptions: (params: {
|
|
15
|
+
page: number;
|
|
16
|
+
limit: number;
|
|
17
|
+
}) => Promise<TOption[]>;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
};
|