@xsolla/xui-dropdown 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,31 @@
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
+ width?: string | number;
15
+ }
16
+ declare var Dropdown: React.FC<DropdownProps>;
17
+ declare interface DropdownItemProps {
18
+ children: React.ReactNode;
19
+ onPress?: () => void;
20
+ active?: boolean;
21
+
22
+ /**
23
+ * Whether this item is selected (shows trailing checkmark with control/check/bg color)
24
+ */
25
+ selected?: boolean;
26
+ disabled?: boolean;
27
+ icon?: React.ReactNode;
28
+ }
29
+ declare var DropdownItem: React.FC<DropdownItemProps>;
30
+ export type { DropdownItemProps, DropdownProps };
31
+ declare export { Dropdown, DropdownItem };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-dropdown",
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,11 +10,11 @@
10
10
  "build:native": "PLATFORM=native tsup"
11
11
  },
12
12
  "dependencies": {
13
- "@xsolla/xui-button": "0.74.0",
14
- "@xsolla/xui-core": "0.74.0",
15
- "@xsolla/xui-divider": "0.74.0",
16
- "@xsolla/xui-icons": "0.74.0",
17
- "@xsolla/xui-primitives-core": "0.74.0"
13
+ "@xsolla/xui-button": "0.76.0-pr116.1769658469",
14
+ "@xsolla/xui-core": "0.76.0-pr116.1769658469",
15
+ "@xsolla/xui-divider": "0.76.0-pr116.1769658469",
16
+ "@xsolla/xui-icons": "0.76.0-pr116.1769658469",
17
+ "@xsolla/xui-primitives-core": "0.76.0-pr116.1769658469"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "react": ">=16.8.0",
@@ -0,0 +1,31 @@
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
+ width?: string | number;
15
+ }
16
+ declare var Dropdown: React.FC<DropdownProps>;
17
+ declare interface DropdownItemProps {
18
+ children: React.ReactNode;
19
+ onPress?: () => void;
20
+ active?: boolean;
21
+
22
+ /**
23
+ * Whether this item is selected (shows trailing checkmark with control/check/bg color)
24
+ */
25
+ selected?: boolean;
26
+ disabled?: boolean;
27
+ icon?: React.ReactNode;
28
+ }
29
+ declare var DropdownItem: React.FC<DropdownItemProps>;
30
+ export type { DropdownItemProps, DropdownProps };
31
+ declare export { Dropdown, DropdownItem };