@zag-js/number-input 1.33.1 → 1.34.1

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
@@ -195,7 +195,7 @@ function connect(service, normalize) {
195
195
  const required = !!prop("required");
196
196
  const scrubbing = state.matches("scrubbing");
197
197
  const empty = computed("isValueEmpty");
198
- const invalid = computed("isOutOfRange") || !!prop("invalid");
198
+ const invalid = prop("invalid") !== void 0 ? !!prop("invalid") : computed("isOutOfRange");
199
199
  const isIncrementDisabled = disabled || !computed("canIncrement") || readOnly;
200
200
  const isDecrementDisabled = disabled || !computed("canDecrement") || readOnly;
201
201
  const translations = prop("translations");
package/dist/index.mjs CHANGED
@@ -193,7 +193,7 @@ function connect(service, normalize) {
193
193
  const required = !!prop("required");
194
194
  const scrubbing = state.matches("scrubbing");
195
195
  const empty = computed("isValueEmpty");
196
- const invalid = computed("isOutOfRange") || !!prop("invalid");
196
+ const invalid = prop("invalid") !== void 0 ? !!prop("invalid") : computed("isOutOfRange");
197
197
  const isIncrementDisabled = disabled || !computed("canIncrement") || readOnly;
198
198
  const isDecrementDisabled = disabled || !computed("canDecrement") || readOnly;
199
199
  const translations = prop("translations");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "1.33.1",
3
+ "version": "1.34.1",
4
4
  "description": "Core logic for the number-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@internationalized/number": "3.6.5",
30
- "@zag-js/anatomy": "1.33.1",
31
- "@zag-js/core": "1.33.1",
32
- "@zag-js/dom-query": "1.33.1",
33
- "@zag-js/types": "1.33.1",
34
- "@zag-js/utils": "1.33.1"
30
+ "@zag-js/anatomy": "1.34.1",
31
+ "@zag-js/core": "1.34.1",
32
+ "@zag-js/dom-query": "1.34.1",
33
+ "@zag-js/types": "1.34.1",
34
+ "@zag-js/utils": "1.34.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"