@xsolla/xui-switch 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,62 @@
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 SwitchProps {
10
+ /**
11
+ * Size of the switch
12
+ */
13
+ size?: "sm" | "md" | "lg" | "xl";
14
+
15
+ /**
16
+ * Whether the switch is checked
17
+ */
18
+ checked?: boolean;
19
+
20
+ /**
21
+ * Visual state of the switch
22
+ */
23
+ state?: "default" | "hover" | "disable" | "error";
24
+
25
+ /**
26
+ * Whether the switch is disabled
27
+ */
28
+ disabled?: boolean;
29
+
30
+ /**
31
+ * Label text to display next to the switch
32
+ */
33
+ label?: string;
34
+
35
+ /**
36
+ * Description text to display below the label
37
+ */
38
+ description?: string;
39
+
40
+ /**
41
+ * Error label text to display when state is 'error'
42
+ */
43
+ errorLabel?: string;
44
+
45
+ /**
46
+ * Callback when the switch value changes
47
+ */
48
+ onValueChange?: (value: boolean) => void;
49
+
50
+ /**
51
+ * Accessible label for screen readers
52
+ */
53
+ ariaLabel?: string;
54
+
55
+ /**
56
+ * ID of the element that labels this switch
57
+ */
58
+ ariaLabelledBy?: string;
59
+ }
60
+ declare var Switch: React.FC<SwitchProps>;
61
+ export type { SwitchProps };
62
+ declare export { Switch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-switch",
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",
@@ -13,8 +13,8 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-core": "0.74.0",
17
- "@xsolla/xui-primitives-core": "0.74.0"
16
+ "@xsolla/xui-core": "0.76.0",
17
+ "@xsolla/xui-primitives-core": "0.76.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "react": ">=16.8.0",
@@ -0,0 +1,62 @@
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 SwitchProps {
10
+ /**
11
+ * Size of the switch
12
+ */
13
+ size?: "sm" | "md" | "lg" | "xl";
14
+
15
+ /**
16
+ * Whether the switch is checked
17
+ */
18
+ checked?: boolean;
19
+
20
+ /**
21
+ * Visual state of the switch
22
+ */
23
+ state?: "default" | "hover" | "disable" | "error";
24
+
25
+ /**
26
+ * Whether the switch is disabled
27
+ */
28
+ disabled?: boolean;
29
+
30
+ /**
31
+ * Label text to display next to the switch
32
+ */
33
+ label?: string;
34
+
35
+ /**
36
+ * Description text to display below the label
37
+ */
38
+ description?: string;
39
+
40
+ /**
41
+ * Error label text to display when state is 'error'
42
+ */
43
+ errorLabel?: string;
44
+
45
+ /**
46
+ * Callback when the switch value changes
47
+ */
48
+ onValueChange?: (value: boolean) => void;
49
+
50
+ /**
51
+ * Accessible label for screen readers
52
+ */
53
+ ariaLabel?: string;
54
+
55
+ /**
56
+ * ID of the element that labels this switch
57
+ */
58
+ ariaLabelledBy?: string;
59
+ }
60
+ declare var Switch: React.FC<SwitchProps>;
61
+ export type { SwitchProps };
62
+ declare export { Switch };