@zag-js/radio-group 0.0.0-dev-20240216185224 → 0.0.0-dev-20240218175520
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/package.json +9 -9
- package/src/radio-group.types.ts +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
|
-
import { RequiredBy, PropTypes, DirectionProperty, CommonProperties,
|
|
2
|
+
import { RequiredBy, PropTypes, DirectionProperty, CommonProperties, NormalizeProps } from '@zag-js/types';
|
|
3
3
|
import * as _zag_js_core from '@zag-js/core';
|
|
4
4
|
import { StateMachine } from '@zag-js/core';
|
|
5
5
|
|
|
@@ -49,7 +49,8 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
49
49
|
*/
|
|
50
50
|
orientation?: "horizontal" | "vertical";
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
interface PrivateContext {
|
|
53
|
+
}
|
|
53
54
|
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
54
55
|
type ComputedContext = Readonly<{
|
|
55
56
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
|
-
import { RequiredBy, PropTypes, DirectionProperty, CommonProperties,
|
|
2
|
+
import { RequiredBy, PropTypes, DirectionProperty, CommonProperties, NormalizeProps } from '@zag-js/types';
|
|
3
3
|
import * as _zag_js_core from '@zag-js/core';
|
|
4
4
|
import { StateMachine } from '@zag-js/core';
|
|
5
5
|
|
|
@@ -49,7 +49,8 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
49
49
|
*/
|
|
50
50
|
orientation?: "horizontal" | "vertical";
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
interface PrivateContext {
|
|
53
|
+
}
|
|
53
54
|
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
54
55
|
type ComputedContext = Readonly<{
|
|
55
56
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/radio-group",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240218175520",
|
|
4
4
|
"description": "Core logic for the radio group widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@zag-js/anatomy": "0.0.0-dev-
|
|
32
|
-
"@zag-js/dom-query": "0.0.0-dev-
|
|
33
|
-
"@zag-js/element-rect": "0.0.0-dev-
|
|
34
|
-
"@zag-js/form-utils": "0.0.0-dev-
|
|
35
|
-
"@zag-js/visually-hidden": "0.0.0-dev-
|
|
36
|
-
"@zag-js/utils": "0.0.0-dev-
|
|
37
|
-
"@zag-js/core": "0.0.0-dev-
|
|
38
|
-
"@zag-js/types": "0.0.0-dev-
|
|
31
|
+
"@zag-js/anatomy": "0.0.0-dev-20240218175520",
|
|
32
|
+
"@zag-js/dom-query": "0.0.0-dev-20240218175520",
|
|
33
|
+
"@zag-js/element-rect": "0.0.0-dev-20240218175520",
|
|
34
|
+
"@zag-js/form-utils": "0.0.0-dev-20240218175520",
|
|
35
|
+
"@zag-js/visually-hidden": "0.0.0-dev-20240218175520",
|
|
36
|
+
"@zag-js/utils": "0.0.0-dev-20240218175520",
|
|
37
|
+
"@zag-js/core": "0.0.0-dev-20240218175520",
|
|
38
|
+
"@zag-js/types": "0.0.0-dev-20240218175520"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"clean-package": "2.2.0"
|
package/src/radio-group.types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StateMachine as S } from "@zag-js/core"
|
|
2
|
-
import type { CommonProperties,
|
|
2
|
+
import type { CommonProperties, DirectionProperty, PropTypes, RequiredBy } from "@zag-js/types"
|
|
3
3
|
|
|
4
4
|
export interface ValueChangeDetails {
|
|
5
5
|
value: string
|
|
@@ -53,7 +53,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
53
53
|
orientation?: "horizontal" | "vertical"
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
interface PrivateContext {
|
|
57
57
|
/**
|
|
58
58
|
* @internal
|
|
59
59
|
* The id of the active radio
|
|
@@ -89,7 +89,7 @@ type PrivateContext = Context<{
|
|
|
89
89
|
* Whether the radio group's fieldset is disabled
|
|
90
90
|
*/
|
|
91
91
|
fieldsetDisabled: boolean
|
|
92
|
-
}
|
|
92
|
+
}
|
|
93
93
|
|
|
94
94
|
export type UserDefinedContext = RequiredBy<PublicContext, "id">
|
|
95
95
|
|