@xsolla/xui-switch 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-switch",
3
- "version": "0.119.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,8 +13,8 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-core": "0.119.0",
17
- "@xsolla/xui-primitives-core": "0.119.0"
16
+ "@xsolla/xui-core": "0.120.0",
17
+ "@xsolla/xui-primitives-core": "0.120.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "react": ">=16.8.0",
@@ -1,67 +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 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
- * Position of the label relative to the switch
37
- */
38
- labelPosition?: "left" | "right";
39
-
40
- /**
41
- * Description text to display below the label
42
- */
43
- description?: string;
44
-
45
- /**
46
- * Error label text to display when state is 'error'
47
- */
48
- errorLabel?: string;
49
-
50
- /**
51
- * Callback when the switch value changes
52
- */
53
- onValueChange?: (value: boolean) => void;
54
-
55
- /**
56
- * Accessible label for screen readers
57
- */
58
- ariaLabel?: string;
59
-
60
- /**
61
- * ID of the element that labels this switch
62
- */
63
- ariaLabelledBy?: string;
64
- }
65
- declare var Switch: React.FC<SwitchProps>;
66
- export type { SwitchProps };
67
- declare export { Switch };
package/web/index.js.flow DELETED
@@ -1,67 +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 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
- * Position of the label relative to the switch
37
- */
38
- labelPosition?: "left" | "right";
39
-
40
- /**
41
- * Description text to display below the label
42
- */
43
- description?: string;
44
-
45
- /**
46
- * Error label text to display when state is 'error'
47
- */
48
- errorLabel?: string;
49
-
50
- /**
51
- * Callback when the switch value changes
52
- */
53
- onValueChange?: (value: boolean) => void;
54
-
55
- /**
56
- * Accessible label for screen readers
57
- */
58
- ariaLabel?: string;
59
-
60
- /**
61
- * ID of the element that labels this switch
62
- */
63
- ariaLabelledBy?: string;
64
- }
65
- declare var Switch: React.FC<SwitchProps>;
66
- export type { SwitchProps };
67
- declare export { Switch };