@zag-js/pin-input 1.3.0 → 1.3.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
@@ -133,6 +133,7 @@ function connect(service, normalize) {
133
133
  "data-disabled": domQuery.dataAttr(prop("disabled")),
134
134
  "data-complete": domQuery.dataAttr(complete),
135
135
  id: getInputId(scope, index.toString()),
136
+ "data-index": index,
136
137
  "data-ownedby": getRootId(scope),
137
138
  "aria-label": translations?.inputLabel?.(index, computed("valueLength")),
138
139
  inputMode: prop("otp") || prop("type") === "numeric" ? "numeric" : "text",
package/dist/index.mjs CHANGED
@@ -131,6 +131,7 @@ function connect(service, normalize) {
131
131
  "data-disabled": dataAttr(prop("disabled")),
132
132
  "data-complete": dataAttr(complete),
133
133
  id: getInputId(scope, index.toString()),
134
+ "data-index": index,
134
135
  "data-ownedby": getRootId(scope),
135
136
  "aria-label": translations?.inputLabel?.(index, computed("valueLength")),
136
137
  inputMode: prop("otp") || prop("type") === "numeric" ? "numeric" : "text",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/pin-input",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Core logic for the pin-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,11 +26,11 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "1.3.0",
30
- "@zag-js/dom-query": "1.3.0",
31
- "@zag-js/utils": "1.3.0",
32
- "@zag-js/core": "1.3.0",
33
- "@zag-js/types": "1.3.0"
29
+ "@zag-js/anatomy": "1.3.1",
30
+ "@zag-js/dom-query": "1.3.1",
31
+ "@zag-js/utils": "1.3.1",
32
+ "@zag-js/core": "1.3.1",
33
+ "@zag-js/types": "1.3.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "clean-package": "2.2.0"