@zag-js/number-input 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 CHANGED
@@ -4,7 +4,6 @@ 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
6
  var core = require('@zag-js/core');
7
- var formUtils = require('@zag-js/form-utils');
8
7
  var number = require('@internationalized/number');
9
8
 
10
9
  // src/number-input.anatomy.ts
@@ -627,7 +626,7 @@ function machine(userContext) {
627
626
  activities: {
628
627
  trackFormControl(ctx2, _evt, { initialContext }) {
629
628
  const inputEl = dom.getInputEl(ctx2);
630
- return formUtils.trackFormControl(inputEl, {
629
+ return domQuery.trackFormControl(inputEl, {
631
630
  onFieldsetDisabledChange(disabled) {
632
631
  ctx2.fieldsetDisabled = disabled;
633
632
  },
@@ -801,7 +800,7 @@ var sync = {
801
800
  if (!inputEl) return;
802
801
  const sel = recordCursor(inputEl);
803
802
  domQuery.raf(() => {
804
- formUtils.setElementValue(inputEl, value);
803
+ domQuery.setElementValue(inputEl, value);
805
804
  restoreCursor(inputEl, sel);
806
805
  });
807
806
  }
package/dist/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  import { createAnatomy } from '@zag-js/anatomy';
2
- import { createScope, isSafari, MAX_Z_INDEX, dataAttr, ariaAttr, isComposingEvent, getEventStep, isLeftClick, getEventPoint, getWindow, observeAttributes, addDomEvent, requestPointerLock, raf, isModifierKey } from '@zag-js/dom-query';
2
+ import { createScope, isSafari, MAX_Z_INDEX, dataAttr, ariaAttr, isComposingEvent, getEventStep, isLeftClick, getEventPoint, getWindow, trackFormControl, observeAttributes, addDomEvent, requestPointerLock, raf, setElementValue, isModifierKey } from '@zag-js/dom-query';
3
3
  import { roundToDpr, wrap, compact, isValueAtMin, isValueAtMax, isValueWithinRange, callAll, incrementValue, clampValue, decrementValue, isEqual } from '@zag-js/utils';
4
4
  import { createMachine, choose, ref, guards } from '@zag-js/core';
5
- import { trackFormControl, setElementValue } from '@zag-js/form-utils';
6
5
  import { NumberParser } from '@internationalized/number';
7
6
 
8
7
  // src/number-input.anatomy.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "0.81.0",
3
+ "version": "0.81.2",
4
4
  "description": "Core logic for the number-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,12 +27,11 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@internationalized/number": "3.6.0",
30
- "@zag-js/anatomy": "0.81.0",
31
- "@zag-js/core": "0.81.0",
32
- "@zag-js/dom-query": "0.81.0",
33
- "@zag-js/form-utils": "0.81.0",
34
- "@zag-js/types": "0.81.0",
35
- "@zag-js/utils": "0.81.0"
30
+ "@zag-js/anatomy": "0.81.2",
31
+ "@zag-js/core": "0.81.2",
32
+ "@zag-js/dom-query": "0.81.2",
33
+ "@zag-js/types": "0.81.2",
34
+ "@zag-js/utils": "0.81.2"
36
35
  },
37
36
  "devDependencies": {
38
37
  "clean-package": "2.2.0"