@xsolla/xui-autocomplete 0.119.0 → 0.120.0
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/package.json +4 -4
- package/native/index.js.flow +0 -57
- package/web/index.js.flow +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-autocomplete",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.120.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-core": "0.
|
|
17
|
-
"@xsolla/xui-primitives-core": "0.
|
|
18
|
-
"@xsolla/xui-spinner": "0.
|
|
16
|
+
"@xsolla/xui-core": "0.120.0",
|
|
17
|
+
"@xsolla/xui-primitives-core": "0.120.0",
|
|
18
|
+
"@xsolla/xui-spinner": "0.120.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=16.8.0",
|
package/native/index.js.flow
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for index
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.21.0
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React from "react";
|
|
9
|
-
declare interface AutocompleteOption {
|
|
10
|
-
id: string;
|
|
11
|
-
label: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
icon?: React.ReactNode;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare interface AutocompleteProps {
|
|
17
|
-
value?: string;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
onValueChange?: (value: string) => void;
|
|
20
|
-
onSelect?: (option: string | AutocompleteOption) => void;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Simple string options for basic usage
|
|
24
|
-
*/
|
|
25
|
-
options?: string[];
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Rich options with id, label, description, icon
|
|
29
|
-
*/
|
|
30
|
-
list?: AutocompleteOption[];
|
|
31
|
-
isLoading?: boolean;
|
|
32
|
-
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
|
33
|
-
state?: "default" | "hover" | "focus" | "disable" | "error";
|
|
34
|
-
label?: string;
|
|
35
|
-
errorLabel?: string;
|
|
36
|
-
iconLeft?: React.ReactNode;
|
|
37
|
-
chevronRight?: boolean;
|
|
38
|
-
filled?: boolean;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Maximum height of the dropdown (default: 250)
|
|
42
|
-
*/
|
|
43
|
-
maxHeight?: number;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Width of the dropdown (default: matches input width)
|
|
47
|
-
*/
|
|
48
|
-
dropdownWidth?: number | string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Empty state message when no options match
|
|
52
|
-
*/
|
|
53
|
-
emptyMessage?: string;
|
|
54
|
-
}
|
|
55
|
-
declare var Autocomplete: React.FC<AutocompleteProps>;
|
|
56
|
-
export type { AutocompleteOption, AutocompleteProps };
|
|
57
|
-
declare export { Autocomplete };
|
package/web/index.js.flow
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for index
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.21.0
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React from "react";
|
|
9
|
-
declare interface AutocompleteOption {
|
|
10
|
-
id: string;
|
|
11
|
-
label: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
icon?: React.ReactNode;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare interface AutocompleteProps {
|
|
17
|
-
value?: string;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
onValueChange?: (value: string) => void;
|
|
20
|
-
onSelect?: (option: string | AutocompleteOption) => void;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Simple string options for basic usage
|
|
24
|
-
*/
|
|
25
|
-
options?: string[];
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Rich options with id, label, description, icon
|
|
29
|
-
*/
|
|
30
|
-
list?: AutocompleteOption[];
|
|
31
|
-
isLoading?: boolean;
|
|
32
|
-
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
|
33
|
-
state?: "default" | "hover" | "focus" | "disable" | "error";
|
|
34
|
-
label?: string;
|
|
35
|
-
errorLabel?: string;
|
|
36
|
-
iconLeft?: React.ReactNode;
|
|
37
|
-
chevronRight?: boolean;
|
|
38
|
-
filled?: boolean;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Maximum height of the dropdown (default: 250)
|
|
42
|
-
*/
|
|
43
|
-
maxHeight?: number;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Width of the dropdown (default: matches input width)
|
|
47
|
-
*/
|
|
48
|
-
dropdownWidth?: number | string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Empty state message when no options match
|
|
52
|
-
*/
|
|
53
|
-
emptyMessage?: string;
|
|
54
|
-
}
|
|
55
|
-
declare var Autocomplete: React.FC<AutocompleteProps>;
|
|
56
|
-
export type { AutocompleteOption, AutocompleteProps };
|
|
57
|
-
declare export { Autocomplete };
|