@zag-js/slider 0.81.1 → 0.82.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.js CHANGED
@@ -3,7 +3,6 @@
3
3
  var anatomy$1 = require('@zag-js/anatomy');
4
4
  var domQuery = require('@zag-js/dom-query');
5
5
  var utils = require('@zag-js/utils');
6
- var formUtils = require('@zag-js/form-utils');
7
6
  var core = require('@zag-js/core');
8
7
  var elementSize = require('@zag-js/element-size');
9
8
  var types = require('@zag-js/types');
@@ -179,7 +178,7 @@ var dom = domQuery.createScope({
179
178
  valueArray.forEach((value, index) => {
180
179
  const inputEl = dom.getHiddenInputEl(ctx, index);
181
180
  if (!inputEl) return;
182
- formUtils.dispatchInputValueEvent(inputEl, { value });
181
+ domQuery.dispatchInputValueEvent(inputEl, { value });
183
182
  });
184
183
  }
185
184
  });
@@ -648,7 +647,7 @@ function machine(userContext) {
648
647
  },
649
648
  activities: {
650
649
  trackFormControlState(ctx2, _evt, { initialContext }) {
651
- return formUtils.trackFormControl(dom.getRootEl(ctx2), {
650
+ return domQuery.trackFormControl(dom.getRootEl(ctx2), {
652
651
  onFieldsetDisabledChange(disabled) {
653
652
  ctx2.fieldsetDisabled = disabled;
654
653
  },
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  import { createAnatomy } from '@zag-js/anatomy';
2
- import { createScope, queryAll, getRelativePoint, dataAttr, ariaAttr, getEventStep, getEventKey, isLeftClick, isModifierKey, getEventPoint, trackPointerMove, raf } from '@zag-js/dom-query';
2
+ import { createScope, queryAll, getRelativePoint, dispatchInputValueEvent, dataAttr, ariaAttr, getEventStep, getEventKey, isLeftClick, isModifierKey, getEventPoint, trackFormControl, trackPointerMove, raf } from '@zag-js/dom-query';
3
3
  import { getPercentValue, createSplitProps, compact, getValuePercent, isEqual, getValueRanges, snapValueToStep, clampValue, getPreviousStepValue, getNextStepValue, getClosestValueIndex, getValueTransformer } from '@zag-js/utils';
4
- import { dispatchInputValueEvent, trackFormControl } from '@zag-js/form-utils';
5
4
  import { createMachine } from '@zag-js/core';
6
5
  import { trackElementsSize } from '@zag-js/element-size';
7
6
  import { createProps } from '@zag-js/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "0.81.1",
3
+ "version": "0.82.0",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,13 +27,12 @@
27
27
  "url": "https://github.com/chakra-ui/zag/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@zag-js/anatomy": "0.81.1",
31
- "@zag-js/core": "0.81.1",
32
- "@zag-js/form-utils": "0.81.1",
33
- "@zag-js/dom-query": "0.81.1",
34
- "@zag-js/utils": "0.81.1",
35
- "@zag-js/element-size": "0.81.1",
36
- "@zag-js/types": "0.81.1"
30
+ "@zag-js/anatomy": "0.82.0",
31
+ "@zag-js/core": "0.82.0",
32
+ "@zag-js/dom-query": "0.82.0",
33
+ "@zag-js/utils": "0.82.0",
34
+ "@zag-js/element-size": "0.82.0",
35
+ "@zag-js/types": "0.82.0"
37
36
  },
38
37
  "devDependencies": {
39
38
  "clean-package": "2.2.0"