@zag-js/number-input 0.0.0-dev-20221118143153 → 0.0.0-dev-20221122060649
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.d.ts +4 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ declare type PublicContext = DirectionProperty & CommonProperties & {
|
|
|
39
39
|
* The name attribute of the number input. Useful for form submission.
|
|
40
40
|
*/
|
|
41
41
|
name?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The associate form of the input element.
|
|
44
|
+
*/
|
|
45
|
+
form?: string;
|
|
42
46
|
/**
|
|
43
47
|
* Whether the number input is disabled.
|
|
44
48
|
*/
|
package/dist/index.js
CHANGED
|
@@ -494,6 +494,7 @@ function connect(state, send, normalize) {
|
|
|
494
494
|
inputProps: normalize.input({
|
|
495
495
|
"data-part": "input",
|
|
496
496
|
name: state.context.name,
|
|
497
|
+
form: state.context.form,
|
|
497
498
|
id: dom.getInputId(state.context),
|
|
498
499
|
role: "spinbutton",
|
|
499
500
|
defaultValue: state.context.formattedValue,
|
package/dist/index.mjs
CHANGED
|
@@ -467,6 +467,7 @@ function connect(state, send, normalize) {
|
|
|
467
467
|
inputProps: normalize.input({
|
|
468
468
|
"data-part": "input",
|
|
469
469
|
name: state.context.name,
|
|
470
|
+
form: state.context.form,
|
|
470
471
|
id: dom.getInputId(state.context),
|
|
471
472
|
role: "spinbutton",
|
|
472
473
|
defaultValue: state.context.formattedValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20221122060649",
|
|
4
4
|
"description": "Core logic for the number-input widget implemented as a state machine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@zag-js/core": "0.
|
|
33
|
-
"@zag-js/types": "0.
|
|
32
|
+
"@zag-js/core": "0.2.2",
|
|
33
|
+
"@zag-js/types": "0.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@zag-js/dom-utils": "0.
|
|
37
|
-
"@zag-js/form-utils": "0.0.0-dev-
|
|
36
|
+
"@zag-js/dom-utils": "0.2.1",
|
|
37
|
+
"@zag-js/form-utils": "0.0.0-dev-20221122060649",
|
|
38
38
|
"@zag-js/number-utils": "0.2.0",
|
|
39
|
-
"@zag-js/utils": "0.
|
|
39
|
+
"@zag-js/utils": "0.3.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build-fast": "tsup src/index.ts --format=esm,cjs",
|