@zag-js/number-input 1.36.0 → 1.38.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.
@@ -1,4 +1,4 @@
1
- import { NumberFormatter, NumberParser } from '@internationalized/number';
1
+ import { NumberParser } from '@internationalized/number';
2
2
  import { Machine, EventObject, Service } from '@zag-js/core';
3
3
  import { PropTypes, RequiredBy, LocaleProperties, CommonProperties } from '@zag-js/types';
4
4
 
@@ -200,7 +200,7 @@ type ComputedContext = Readonly<{
200
200
  /**
201
201
  * The number i18n formatter
202
202
  */
203
- formatter: NumberFormatter;
203
+ formatter: Intl.NumberFormat;
204
204
  /**
205
205
  * The number i18n parser
206
206
  */
@@ -1,4 +1,4 @@
1
- import { NumberFormatter, NumberParser } from '@internationalized/number';
1
+ import { NumberParser } from '@internationalized/number';
2
2
  import { Machine, EventObject, Service } from '@zag-js/core';
3
3
  import { PropTypes, RequiredBy, LocaleProperties, CommonProperties } from '@zag-js/types';
4
4
 
@@ -200,7 +200,7 @@ type ComputedContext = Readonly<{
200
200
  /**
201
201
  * The number i18n formatter
202
202
  */
203
- formatter: NumberFormatter;
203
+ formatter: Intl.NumberFormat;
204
204
  /**
205
205
  * The number i18n parser
206
206
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "1.36.0",
3
+ "version": "1.38.0",
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.36.0",
31
- "@zag-js/core": "1.36.0",
32
- "@zag-js/dom-query": "1.36.0",
33
- "@zag-js/types": "1.36.0",
34
- "@zag-js/utils": "1.36.0"
30
+ "@zag-js/anatomy": "1.38.0",
31
+ "@zag-js/core": "1.38.0",
32
+ "@zag-js/dom-query": "1.38.0",
33
+ "@zag-js/types": "1.38.0",
34
+ "@zag-js/utils": "1.38.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"