@xsolla/xui-select 0.74.0 → 0.76.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.
@@ -0,0 +1,32 @@
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 SelectOption {
10
+ label: string;
11
+ value: any;
12
+ disabled?: boolean;
13
+ }
14
+ declare interface SelectProps {
15
+ value?: string;
16
+ placeholder?: string;
17
+ onPress?: () => void;
18
+ size?: "xl" | "lg" | "md" | "sm" | "xs";
19
+ state?: "default" | "hover" | "focus" | "disable" | "error";
20
+ disabled?: boolean;
21
+ label?: string;
22
+ errorMessage?: string;
23
+ iconLeft?: React.ReactNode;
24
+ iconRight?: React.ReactNode;
25
+ filled?: boolean;
26
+ iconOnly?: boolean;
27
+ options?: (string | SelectOption)[];
28
+ onChange?: (value: string) => void;
29
+ }
30
+ declare var Select: React.FC<SelectProps>;
31
+ export type { SelectOption, SelectProps };
32
+ declare export { Select };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-select",
3
- "version": "0.74.0",
3
+ "version": "0.76.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -10,8 +10,8 @@
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"
13
+ "@xsolla/xui-core": "0.76.0",
14
+ "@xsolla/xui-primitives-core": "0.76.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": ">=16.8.0",
@@ -0,0 +1,32 @@
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 SelectOption {
10
+ label: string;
11
+ value: any;
12
+ disabled?: boolean;
13
+ }
14
+ declare interface SelectProps {
15
+ value?: string;
16
+ placeholder?: string;
17
+ onPress?: () => void;
18
+ size?: "xl" | "lg" | "md" | "sm" | "xs";
19
+ state?: "default" | "hover" | "focus" | "disable" | "error";
20
+ disabled?: boolean;
21
+ label?: string;
22
+ errorMessage?: string;
23
+ iconLeft?: React.ReactNode;
24
+ iconRight?: React.ReactNode;
25
+ filled?: boolean;
26
+ iconOnly?: boolean;
27
+ options?: (string | SelectOption)[];
28
+ onChange?: (value: string) => void;
29
+ }
30
+ declare var Select: React.FC<SelectProps>;
31
+ export type { SelectOption, SelectProps };
32
+ declare export { Select };