@xsolla/xui-select-web 0.64.0-pr56.1768348754
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/index.d.mts +25 -0
- package/index.d.ts +25 -0
- package/index.js +687 -0
- package/index.js.map +1 -0
- package/index.mjs +650 -0
- package/index.mjs.map +1 -0
- package/package.json +24 -0
package/index.d.mts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SelectOption {
|
|
4
|
+
label: string;
|
|
5
|
+
value: any;
|
|
6
|
+
}
|
|
7
|
+
interface SelectProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
onPress?: () => void;
|
|
11
|
+
size?: "xl" | "l" | "m" | "s" | "xs";
|
|
12
|
+
state?: "default" | "hover" | "focus" | "disable" | "error";
|
|
13
|
+
label?: string;
|
|
14
|
+
errorLabel?: string;
|
|
15
|
+
iconLeft?: React.ReactNode;
|
|
16
|
+
iconRight?: React.ReactNode;
|
|
17
|
+
filled?: boolean;
|
|
18
|
+
iconOnly?: boolean;
|
|
19
|
+
options?: (string | SelectOption)[];
|
|
20
|
+
onSelect?: (option: string) => void;
|
|
21
|
+
onValueChange?: (value: string) => void;
|
|
22
|
+
}
|
|
23
|
+
declare const Select: React.FC<SelectProps>;
|
|
24
|
+
|
|
25
|
+
export { Select, type SelectOption, type SelectProps };
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SelectOption {
|
|
4
|
+
label: string;
|
|
5
|
+
value: any;
|
|
6
|
+
}
|
|
7
|
+
interface SelectProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
onPress?: () => void;
|
|
11
|
+
size?: "xl" | "l" | "m" | "s" | "xs";
|
|
12
|
+
state?: "default" | "hover" | "focus" | "disable" | "error";
|
|
13
|
+
label?: string;
|
|
14
|
+
errorLabel?: string;
|
|
15
|
+
iconLeft?: React.ReactNode;
|
|
16
|
+
iconRight?: React.ReactNode;
|
|
17
|
+
filled?: boolean;
|
|
18
|
+
iconOnly?: boolean;
|
|
19
|
+
options?: (string | SelectOption)[];
|
|
20
|
+
onSelect?: (option: string) => void;
|
|
21
|
+
onValueChange?: (value: string) => void;
|
|
22
|
+
}
|
|
23
|
+
declare const Select: React.FC<SelectProps>;
|
|
24
|
+
|
|
25
|
+
export { Select, type SelectOption, type SelectProps };
|