@xsolla/xui-segmented 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.
- package/native/index.js.flow +81 -0
- package/package.json +4 -4
- package/web/index.js.flow +81 -0
|
@@ -0,0 +1,81 @@
|
|
|
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 SegmentedItemType {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the item
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Display label for the item
|
|
17
|
+
*/
|
|
18
|
+
label: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Optional icon to display
|
|
22
|
+
*/
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Whether the item is disabled
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Accessible label for screen readers
|
|
32
|
+
*/
|
|
33
|
+
"aria-label"?: string;
|
|
34
|
+
}
|
|
35
|
+
declare interface SegmentedProps {
|
|
36
|
+
/**
|
|
37
|
+
* Array of items
|
|
38
|
+
*/
|
|
39
|
+
items: SegmentedItemType[];
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* ID of the currently active item
|
|
43
|
+
*/
|
|
44
|
+
activeId?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Callback when an item is selected
|
|
48
|
+
*/
|
|
49
|
+
onChange?: (id: string) => void;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Size variant
|
|
53
|
+
*/
|
|
54
|
+
size?: "xl" | "lg" | "md" | "sm";
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Whether to show a border around the container
|
|
58
|
+
*/
|
|
59
|
+
stroke?: boolean;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* HTML id attribute
|
|
63
|
+
*/
|
|
64
|
+
id?: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Test ID for testing frameworks
|
|
68
|
+
*/
|
|
69
|
+
testID?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Full width of the container
|
|
73
|
+
*/
|
|
74
|
+
fullWidth?: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Segmented - A control for switching between related views or filters
|
|
78
|
+
*/
|
|
79
|
+
declare var Segmented: React.FC<SegmentedProps>;
|
|
80
|
+
export type { SegmentedItemType, SegmentedProps };
|
|
81
|
+
declare export { Segmented };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-segmented",
|
|
3
|
-
"version": "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,9 +10,9 @@
|
|
|
10
10
|
"build:native": "PLATFORM=native tsup"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xsolla/xui-badge": "0.
|
|
14
|
-
"@xsolla/xui-core": "0.
|
|
15
|
-
"@xsolla/xui-primitives-core": "0.
|
|
13
|
+
"@xsolla/xui-badge": "0.76.0",
|
|
14
|
+
"@xsolla/xui-core": "0.76.0",
|
|
15
|
+
"@xsolla/xui-primitives-core": "0.76.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": ">=16.8.0",
|
|
@@ -0,0 +1,81 @@
|
|
|
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 SegmentedItemType {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the item
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Display label for the item
|
|
17
|
+
*/
|
|
18
|
+
label: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Optional icon to display
|
|
22
|
+
*/
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Whether the item is disabled
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Accessible label for screen readers
|
|
32
|
+
*/
|
|
33
|
+
"aria-label"?: string;
|
|
34
|
+
}
|
|
35
|
+
declare interface SegmentedProps {
|
|
36
|
+
/**
|
|
37
|
+
* Array of items
|
|
38
|
+
*/
|
|
39
|
+
items: SegmentedItemType[];
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* ID of the currently active item
|
|
43
|
+
*/
|
|
44
|
+
activeId?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Callback when an item is selected
|
|
48
|
+
*/
|
|
49
|
+
onChange?: (id: string) => void;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Size variant
|
|
53
|
+
*/
|
|
54
|
+
size?: "xl" | "lg" | "md" | "sm";
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Whether to show a border around the container
|
|
58
|
+
*/
|
|
59
|
+
stroke?: boolean;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* HTML id attribute
|
|
63
|
+
*/
|
|
64
|
+
id?: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Test ID for testing frameworks
|
|
68
|
+
*/
|
|
69
|
+
testID?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Full width of the container
|
|
73
|
+
*/
|
|
74
|
+
fullWidth?: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Segmented - A control for switching between related views or filters
|
|
78
|
+
*/
|
|
79
|
+
declare var Segmented: React.FC<SegmentedProps>;
|
|
80
|
+
export type { SegmentedItemType, SegmentedProps };
|
|
81
|
+
declare export { Segmented };
|