@zag-js/pin-input 0.2.2 → 0.2.3

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 CHANGED
@@ -16,6 +16,10 @@ declare type PublicContext = DirectionProperty & CommonProperties & {
16
16
  * The name of the input element. Useful for form submission.
17
17
  */
18
18
  name?: string;
19
+ /**
20
+ * The associate form of the underlying input element.
21
+ */
22
+ form?: string;
19
23
  /**
20
24
  * The regular expression that the user-entered input value is checked against.
21
25
  */
package/dist/index.js CHANGED
@@ -235,6 +235,7 @@ function connect(state, send, normalize) {
235
235
  tabIndex: -1,
236
236
  id: dom.getHiddenInputId(state.context),
237
237
  name: state.context.name,
238
+ form: state.context.form,
238
239
  style: visuallyHiddenStyle,
239
240
  maxLength: state.context.valueLength,
240
241
  defaultValue: state.context.valueAsString
package/dist/index.mjs CHANGED
@@ -208,6 +208,7 @@ function connect(state, send, normalize) {
208
208
  tabIndex: -1,
209
209
  id: dom.getHiddenInputId(state.context),
210
210
  name: state.context.name,
211
+ form: state.context.form,
211
212
  style: visuallyHiddenStyle,
212
213
  maxLength: state.context.valueLength,
213
214
  defaultValue: state.context.valueAsString
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/pin-input",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Core logic for the pin-input widget implemented as a state machine",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@zag-js/dom-utils": "0.2.1",
37
- "@zag-js/form-utils": "0.2.1",
37
+ "@zag-js/form-utils": "0.2.2",
38
38
  "@zag-js/utils": "0.3.1"
39
39
  },
40
40
  "scripts": {