@zag-js/pin-input 0.2.13 → 0.2.16
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,6 +1,6 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
|
|
3
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "
|
|
4
|
-
declare const parts: Record<"root" | "
|
|
3
|
+
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "hiddenInput" | "input" | "control">;
|
|
4
|
+
declare const parts: Record<"root" | "label" | "hiddenInput" | "input" | "control", _zag_js_anatomy.AnatomyPart>;
|
|
5
5
|
|
|
6
6
|
export { anatomy, parts };
|
package/dist/pin-input.dom.d.ts
CHANGED
|
@@ -4,22 +4,22 @@ import '@zag-js/types';
|
|
|
4
4
|
|
|
5
5
|
declare const dom: {
|
|
6
6
|
getRootNode: (ctx: {
|
|
7
|
-
getRootNode?: (() =>
|
|
7
|
+
getRootNode?: (() => Document | Node | ShadowRoot) | undefined;
|
|
8
8
|
}) => Document | ShadowRoot;
|
|
9
9
|
getDoc: (ctx: {
|
|
10
|
-
getRootNode?: (() =>
|
|
10
|
+
getRootNode?: (() => Document | Node | ShadowRoot) | undefined;
|
|
11
11
|
}) => Document;
|
|
12
12
|
getWin: (ctx: {
|
|
13
|
-
getRootNode?: (() =>
|
|
13
|
+
getRootNode?: (() => Document | Node | ShadowRoot) | undefined;
|
|
14
14
|
}) => Window & typeof globalThis;
|
|
15
15
|
getActiveElement: (ctx: {
|
|
16
|
-
getRootNode?: (() =>
|
|
16
|
+
getRootNode?: (() => Document | Node | ShadowRoot) | undefined;
|
|
17
17
|
}) => HTMLElement | null;
|
|
18
18
|
getById: <T extends HTMLElement = HTMLElement>(ctx: {
|
|
19
|
-
getRootNode?: (() =>
|
|
19
|
+
getRootNode?: (() => Document | Node | ShadowRoot) | undefined;
|
|
20
20
|
}, id: string) => T | null;
|
|
21
21
|
queryById: <T_1 extends HTMLElement = HTMLElement>(ctx: {
|
|
22
|
-
getRootNode?: (() =>
|
|
22
|
+
getRootNode?: (() => Document | Node | ShadowRoot) | undefined;
|
|
23
23
|
}, id: string) => T_1;
|
|
24
24
|
} & {
|
|
25
25
|
getRootId: (ctx: MachineContext) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/pin-input",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Core logic for the pin-input widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@zag-js/anatomy": "0.1.4",
|
|
30
|
-
"@zag-js/dom-query": "0.1.
|
|
30
|
+
"@zag-js/dom-query": "0.1.4",
|
|
31
|
+
"@zag-js/utils": "0.3.4",
|
|
31
32
|
"@zag-js/dom-event": "0.0.1",
|
|
32
|
-
"@zag-js/core": "0.2.10",
|
|
33
|
-
"@zag-js/types": "0.3.4",
|
|
34
|
-
"@zag-js/visually-hidden": "0.0.1",
|
|
35
33
|
"@zag-js/form-utils": "0.2.5",
|
|
36
|
-
"@zag-js/
|
|
34
|
+
"@zag-js/types": "0.3.4",
|
|
35
|
+
"@zag-js/core": "0.2.12",
|
|
36
|
+
"@zag-js/visually-hidden": "0.0.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"clean-package": "2.2.0"
|