@xsolla/xui-radio-native 0.64.0-pr56.1768348754
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/index.d.mts +29 -0
- package/index.d.ts +29 -0
- package/index.js +665 -0
- package/index.js.map +1 -0
- package/index.mjs +639 -0
- package/index.mjs.map +1 -0
- package/package.json +35 -0
package/index.d.mts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface RadioProps {
|
|
4
|
+
/** Size of the radio button */
|
|
5
|
+
size?: "s" | "m" | "l" | "xl";
|
|
6
|
+
/** Whether the radio button is checked */
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
/** Value of the radio button (for RadioGroup) */
|
|
9
|
+
value?: string;
|
|
10
|
+
/** Visual state of the radio button */
|
|
11
|
+
state?: "default" | "hover" | "disable" | "error";
|
|
12
|
+
/** Label text to display next to the radio button */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** Description text to display below the label */
|
|
15
|
+
description?: string;
|
|
16
|
+
/** Error label text to display when state is 'error' */
|
|
17
|
+
errorLabel?: string;
|
|
18
|
+
/** Callback when the radio button is pressed */
|
|
19
|
+
onPress?: () => void;
|
|
20
|
+
/** Callback when the radio button value changes (for compatibility with Checkbox-like APIs) */
|
|
21
|
+
onValueChange?: (value: boolean) => void;
|
|
22
|
+
/** Accessible label for screen readers (if label is not provided) */
|
|
23
|
+
"aria-label"?: string;
|
|
24
|
+
/** ID of element that labels this radio */
|
|
25
|
+
"aria-labelledby"?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const Radio: React.FC<RadioProps>;
|
|
28
|
+
|
|
29
|
+
export { Radio, type RadioProps };
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface RadioProps {
|
|
4
|
+
/** Size of the radio button */
|
|
5
|
+
size?: "s" | "m" | "l" | "xl";
|
|
6
|
+
/** Whether the radio button is checked */
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
/** Value of the radio button (for RadioGroup) */
|
|
9
|
+
value?: string;
|
|
10
|
+
/** Visual state of the radio button */
|
|
11
|
+
state?: "default" | "hover" | "disable" | "error";
|
|
12
|
+
/** Label text to display next to the radio button */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** Description text to display below the label */
|
|
15
|
+
description?: string;
|
|
16
|
+
/** Error label text to display when state is 'error' */
|
|
17
|
+
errorLabel?: string;
|
|
18
|
+
/** Callback when the radio button is pressed */
|
|
19
|
+
onPress?: () => void;
|
|
20
|
+
/** Callback when the radio button value changes (for compatibility with Checkbox-like APIs) */
|
|
21
|
+
onValueChange?: (value: boolean) => void;
|
|
22
|
+
/** Accessible label for screen readers (if label is not provided) */
|
|
23
|
+
"aria-label"?: string;
|
|
24
|
+
/** ID of element that labels this radio */
|
|
25
|
+
"aria-labelledby"?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const Radio: React.FC<RadioProps>;
|
|
28
|
+
|
|
29
|
+
export { Radio, type RadioProps };
|