@zag-js/radio-group 0.74.2 → 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/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
21
21
|
/**
|
|
22
22
|
* The ids of the elements in the radio. Useful for composition.
|
|
23
23
|
*/
|
|
24
|
-
ids?: ElementIds;
|
|
24
|
+
ids?: ElementIds | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* The value of the checked radio
|
|
27
27
|
*/
|
|
@@ -30,19 +30,19 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
30
30
|
* The name of the input fields in the radio
|
|
31
31
|
* (Useful for form submission).
|
|
32
32
|
*/
|
|
33
|
-
name?: string;
|
|
33
|
+
name?: string | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* The associate form of the underlying input.
|
|
36
36
|
*/
|
|
37
|
-
form?: string;
|
|
37
|
+
form?: string | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* If `true`, the radio group will be disabled
|
|
40
40
|
*/
|
|
41
|
-
disabled?: boolean;
|
|
41
|
+
disabled?: boolean | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Whether the checkbox is read-only
|
|
44
44
|
*/
|
|
45
|
-
readOnly?: boolean;
|
|
45
|
+
readOnly?: boolean | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Function called once a radio is checked
|
|
48
48
|
* @param value the value of the checked radio
|
|
@@ -51,7 +51,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
51
51
|
/**
|
|
52
52
|
* Orientation of the radio group
|
|
53
53
|
*/
|
|
54
|
-
orientation?: "horizontal" | "vertical";
|
|
54
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
55
55
|
}
|
|
56
56
|
interface PrivateContext {
|
|
57
57
|
}
|
|
@@ -73,8 +73,8 @@ type Send = StateMachine.Send<StateMachine.AnyEventObject>;
|
|
|
73
73
|
type Service = Machine<MachineContext, MachineState, StateMachine.AnyEventObject>;
|
|
74
74
|
interface ItemProps {
|
|
75
75
|
value: string;
|
|
76
|
-
disabled?: boolean;
|
|
77
|
-
invalid?: boolean;
|
|
76
|
+
disabled?: boolean | undefined;
|
|
77
|
+
invalid?: boolean | undefined;
|
|
78
78
|
}
|
|
79
79
|
interface ItemState {
|
|
80
80
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
21
21
|
/**
|
|
22
22
|
* The ids of the elements in the radio. Useful for composition.
|
|
23
23
|
*/
|
|
24
|
-
ids?: ElementIds;
|
|
24
|
+
ids?: ElementIds | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* The value of the checked radio
|
|
27
27
|
*/
|
|
@@ -30,19 +30,19 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
30
30
|
* The name of the input fields in the radio
|
|
31
31
|
* (Useful for form submission).
|
|
32
32
|
*/
|
|
33
|
-
name?: string;
|
|
33
|
+
name?: string | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* The associate form of the underlying input.
|
|
36
36
|
*/
|
|
37
|
-
form?: string;
|
|
37
|
+
form?: string | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* If `true`, the radio group will be disabled
|
|
40
40
|
*/
|
|
41
|
-
disabled?: boolean;
|
|
41
|
+
disabled?: boolean | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Whether the checkbox is read-only
|
|
44
44
|
*/
|
|
45
|
-
readOnly?: boolean;
|
|
45
|
+
readOnly?: boolean | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Function called once a radio is checked
|
|
48
48
|
* @param value the value of the checked radio
|
|
@@ -51,7 +51,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
51
51
|
/**
|
|
52
52
|
* Orientation of the radio group
|
|
53
53
|
*/
|
|
54
|
-
orientation?: "horizontal" | "vertical";
|
|
54
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
55
55
|
}
|
|
56
56
|
interface PrivateContext {
|
|
57
57
|
}
|
|
@@ -73,8 +73,8 @@ type Send = StateMachine.Send<StateMachine.AnyEventObject>;
|
|
|
73
73
|
type Service = Machine<MachineContext, MachineState, StateMachine.AnyEventObject>;
|
|
74
74
|
interface ItemProps {
|
|
75
75
|
value: string;
|
|
76
|
-
disabled?: boolean;
|
|
77
|
-
invalid?: boolean;
|
|
76
|
+
disabled?: boolean | undefined;
|
|
77
|
+
invalid?: boolean | undefined;
|
|
78
78
|
}
|
|
79
79
|
interface ItemState {
|
|
80
80
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/radio-group",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0",
|
|
4
4
|
"description": "Core logic for the radio group widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@zag-js/anatomy": "0.
|
|
31
|
-
"@zag-js/dom-query": "0.
|
|
32
|
-
"@zag-js/
|
|
33
|
-
"@zag-js/
|
|
34
|
-
"@zag-js/
|
|
35
|
-
"@zag-js/utils": "0.
|
|
36
|
-
"@zag-js/core": "0.
|
|
37
|
-
"@zag-js/types": "0.
|
|
30
|
+
"@zag-js/anatomy": "0.76.0",
|
|
31
|
+
"@zag-js/dom-query": "0.76.0",
|
|
32
|
+
"@zag-js/focus-visible": "0.76.0",
|
|
33
|
+
"@zag-js/element-rect": "0.76.0",
|
|
34
|
+
"@zag-js/utils": "0.76.0",
|
|
35
|
+
"@zag-js/form-utils": "0.76.0",
|
|
36
|
+
"@zag-js/core": "0.76.0",
|
|
37
|
+
"@zag-js/types": "0.76.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"clean-package": "2.2.0"
|