@xsolla/xui-autocomplete 0.74.0 → 0.76.0-pr116.1769658469

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.
@@ -0,0 +1,57 @@
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-autocomplete",
3
- "version": "0.74.0",
3
+ "version": "0.76.0-pr116.1769658469",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -10,9 +10,9 @@
10
10
  "build:native": "PLATFORM=native tsup"
11
11
  },
12
12
  "dependencies": {
13
- "@xsolla/xui-core": "0.74.0",
14
- "@xsolla/xui-primitives-core": "0.74.0",
15
- "@xsolla/xui-spinner": "0.74.0"
13
+ "@xsolla/xui-core": "0.76.0-pr116.1769658469",
14
+ "@xsolla/xui-primitives-core": "0.76.0-pr116.1769658469",
15
+ "@xsolla/xui-spinner": "0.76.0-pr116.1769658469"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": ">=16.8.0",
@@ -0,0 +1,57 @@
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 };