@zag-js/radio-group 0.81.0 → 0.81.2
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.js +2 -3
- package/dist/index.mjs +1 -2
- package/package.json +8 -9
package/dist/index.js
CHANGED
|
@@ -5,7 +5,6 @@ var domQuery = require('@zag-js/dom-query');
|
|
|
5
5
|
var focusVisible = require('@zag-js/focus-visible');
|
|
6
6
|
var core = require('@zag-js/core');
|
|
7
7
|
var elementRect = require('@zag-js/element-rect');
|
|
8
|
-
var formUtils = require('@zag-js/form-utils');
|
|
9
8
|
var utils = require('@zag-js/utils');
|
|
10
9
|
var types = require('@zag-js/types');
|
|
11
10
|
|
|
@@ -308,7 +307,7 @@ function machine(userContext) {
|
|
|
308
307
|
},
|
|
309
308
|
activities: {
|
|
310
309
|
trackFormControlState(ctx2, _evt, { send, initialContext }) {
|
|
311
|
-
return
|
|
310
|
+
return domQuery.trackFormControl(dom.getRootEl(ctx2), {
|
|
312
311
|
onFieldsetDisabledChange(disabled) {
|
|
313
312
|
ctx2.fieldsetDisabled = disabled;
|
|
314
313
|
},
|
|
@@ -376,7 +375,7 @@ function machine(userContext) {
|
|
|
376
375
|
inputEls.forEach((inputEl) => {
|
|
377
376
|
const checked = inputEl.value === ctx2.value;
|
|
378
377
|
if (checked === inputEl.checked) return;
|
|
379
|
-
|
|
378
|
+
domQuery.dispatchInputCheckedEvent(inputEl, { checked });
|
|
380
379
|
});
|
|
381
380
|
}
|
|
382
381
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
2
|
-
import { createScope, queryAll, dataAttr, visuallyHiddenStyle, nextTick } from '@zag-js/dom-query';
|
|
2
|
+
import { createScope, queryAll, dataAttr, visuallyHiddenStyle, trackFormControl, nextTick, dispatchInputCheckedEvent } from '@zag-js/dom-query';
|
|
3
3
|
import { isFocusVisible, trackFocusVisible } from '@zag-js/focus-visible';
|
|
4
4
|
import { createMachine, guards } from '@zag-js/core';
|
|
5
5
|
import { trackElementRect } from '@zag-js/element-rect';
|
|
6
|
-
import { trackFormControl, dispatchInputCheckedEvent } from '@zag-js/form-utils';
|
|
7
6
|
import { createSplitProps, compact, isString, isEqual } from '@zag-js/utils';
|
|
8
7
|
import { createProps } from '@zag-js/types';
|
|
9
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/radio-group",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.2",
|
|
4
4
|
"description": "Core logic for the radio group widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,14 +27,13 @@
|
|
|
27
27
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@zag-js/anatomy": "0.81.
|
|
31
|
-
"@zag-js/dom-query": "0.81.
|
|
32
|
-
"@zag-js/
|
|
33
|
-
"@zag-js/
|
|
34
|
-
"@zag-js/
|
|
35
|
-
"@zag-js/
|
|
36
|
-
"@zag-js/
|
|
37
|
-
"@zag-js/types": "0.81.0"
|
|
30
|
+
"@zag-js/anatomy": "0.81.2",
|
|
31
|
+
"@zag-js/dom-query": "0.81.2",
|
|
32
|
+
"@zag-js/element-rect": "0.81.2",
|
|
33
|
+
"@zag-js/focus-visible": "0.81.2",
|
|
34
|
+
"@zag-js/utils": "0.81.2",
|
|
35
|
+
"@zag-js/core": "0.81.2",
|
|
36
|
+
"@zag-js/types": "0.81.2"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"clean-package": "2.2.0"
|