@xsolla/xui-dropdown 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 +6 -6
- package/native/index.js.flow +0 -55
- package/web/index.js.flow +0 -55
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-dropdown",
|
|
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,11 +13,11 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-button": "0.
|
|
17
|
-
"@xsolla/xui-core": "0.
|
|
18
|
-
"@xsolla/xui-divider": "0.
|
|
19
|
-
"@xsolla/xui-icons": "0.
|
|
20
|
-
"@xsolla/xui-primitives-core": "0.
|
|
16
|
+
"@xsolla/xui-button": "0.120.0",
|
|
17
|
+
"@xsolla/xui-core": "0.120.0",
|
|
18
|
+
"@xsolla/xui-divider": "0.120.0",
|
|
19
|
+
"@xsolla/xui-icons": "0.120.0",
|
|
20
|
+
"@xsolla/xui-primitives-core": "0.120.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=16.8.0",
|
package/native/index.js.flow
DELETED
|
@@ -1,55 +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 DropdownProps {
|
|
10
|
-
trigger: React.ReactNode;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
isOpen?: boolean;
|
|
13
|
-
onOpenChange?: (open: boolean) => void;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Width of the dropdown menu (does not affect trigger width)
|
|
17
|
-
*/
|
|
18
|
-
width?: string | number;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Horizontal alignment of dropdown menu relative to trigger. Default: "start"
|
|
22
|
-
*/
|
|
23
|
-
align?: "start" | "end";
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Accessible label for the dropdown menu
|
|
27
|
-
*/
|
|
28
|
-
"aria-label"?: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Test ID for testing frameworks
|
|
32
|
-
*/
|
|
33
|
-
testID?: string;
|
|
34
|
-
}
|
|
35
|
-
declare var Dropdown: React.FC<DropdownProps>;
|
|
36
|
-
declare interface DropdownItemProps {
|
|
37
|
-
children: React.ReactNode;
|
|
38
|
-
onPress?: () => void;
|
|
39
|
-
active?: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Whether this item is selected (shows trailing checkmark with control/check/bg color)
|
|
43
|
-
*/
|
|
44
|
-
selected?: boolean;
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
icon?: React.ReactNode;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Test ID for testing frameworks
|
|
50
|
-
*/
|
|
51
|
-
testID?: string;
|
|
52
|
-
}
|
|
53
|
-
declare var DropdownItem: React.FC<DropdownItemProps>;
|
|
54
|
-
export type { DropdownItemProps, DropdownProps };
|
|
55
|
-
declare export { Dropdown, DropdownItem };
|
package/web/index.js.flow
DELETED
|
@@ -1,55 +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 DropdownProps {
|
|
10
|
-
trigger: React.ReactNode;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
isOpen?: boolean;
|
|
13
|
-
onOpenChange?: (open: boolean) => void;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Width of the dropdown menu (does not affect trigger width)
|
|
17
|
-
*/
|
|
18
|
-
width?: string | number;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Horizontal alignment of dropdown menu relative to trigger. Default: "start"
|
|
22
|
-
*/
|
|
23
|
-
align?: "start" | "end";
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Accessible label for the dropdown menu
|
|
27
|
-
*/
|
|
28
|
-
"aria-label"?: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Test ID for testing frameworks
|
|
32
|
-
*/
|
|
33
|
-
testID?: string;
|
|
34
|
-
}
|
|
35
|
-
declare var Dropdown: React.FC<DropdownProps>;
|
|
36
|
-
declare interface DropdownItemProps {
|
|
37
|
-
children: React.ReactNode;
|
|
38
|
-
onPress?: () => void;
|
|
39
|
-
active?: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Whether this item is selected (shows trailing checkmark with control/check/bg color)
|
|
43
|
-
*/
|
|
44
|
-
selected?: boolean;
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
icon?: React.ReactNode;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Test ID for testing frameworks
|
|
50
|
-
*/
|
|
51
|
-
testID?: string;
|
|
52
|
-
}
|
|
53
|
-
declare var DropdownItem: React.FC<DropdownItemProps>;
|
|
54
|
-
export type { DropdownItemProps, DropdownProps };
|
|
55
|
-
declare export { Dropdown, DropdownItem };
|