@zag-js/pin-input 1.18.4 → 1.19.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.
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ type ElementIds = Partial<{
|
|
|
21
21
|
hiddenInput: string;
|
|
22
22
|
label: string;
|
|
23
23
|
control: string;
|
|
24
|
-
input(id: string)
|
|
24
|
+
input: (id: string) => string;
|
|
25
25
|
}>;
|
|
26
26
|
interface PinInputProps extends DirectionProperty, CommonProperties {
|
|
27
27
|
/**
|
|
@@ -169,24 +169,24 @@ interface PinInputApi<T extends PropTypes = PropTypes> {
|
|
|
169
169
|
/**
|
|
170
170
|
* Function to set the value of the inputs.
|
|
171
171
|
*/
|
|
172
|
-
setValue(value: string[])
|
|
172
|
+
setValue: (value: string[]) => void;
|
|
173
173
|
/**
|
|
174
174
|
* Function to clear the value of the inputs.
|
|
175
175
|
*/
|
|
176
|
-
clearValue
|
|
176
|
+
clearValue: VoidFunction;
|
|
177
177
|
/**
|
|
178
178
|
* Function to set the value of the input at a specific index.
|
|
179
179
|
*/
|
|
180
|
-
setValueAtIndex(index: number, value: string)
|
|
180
|
+
setValueAtIndex: (index: number, value: string) => void;
|
|
181
181
|
/**
|
|
182
182
|
* Function to focus the pin-input. This will focus the first input.
|
|
183
183
|
*/
|
|
184
|
-
focus:
|
|
185
|
-
getRootProps()
|
|
186
|
-
getLabelProps()
|
|
187
|
-
getHiddenInputProps()
|
|
188
|
-
getControlProps()
|
|
189
|
-
getInputProps(props: InputProps)
|
|
184
|
+
focus: VoidFunction;
|
|
185
|
+
getRootProps: () => T["element"];
|
|
186
|
+
getLabelProps: () => T["label"];
|
|
187
|
+
getHiddenInputProps: () => T["input"];
|
|
188
|
+
getControlProps: () => T["element"];
|
|
189
|
+
getInputProps: (props: InputProps) => T["input"];
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
declare function connect<T extends PropTypes>(service: Service<PinInputSchema>, normalize: NormalizeProps<T>): PinInputApi<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ type ElementIds = Partial<{
|
|
|
21
21
|
hiddenInput: string;
|
|
22
22
|
label: string;
|
|
23
23
|
control: string;
|
|
24
|
-
input(id: string)
|
|
24
|
+
input: (id: string) => string;
|
|
25
25
|
}>;
|
|
26
26
|
interface PinInputProps extends DirectionProperty, CommonProperties {
|
|
27
27
|
/**
|
|
@@ -169,24 +169,24 @@ interface PinInputApi<T extends PropTypes = PropTypes> {
|
|
|
169
169
|
/**
|
|
170
170
|
* Function to set the value of the inputs.
|
|
171
171
|
*/
|
|
172
|
-
setValue(value: string[])
|
|
172
|
+
setValue: (value: string[]) => void;
|
|
173
173
|
/**
|
|
174
174
|
* Function to clear the value of the inputs.
|
|
175
175
|
*/
|
|
176
|
-
clearValue
|
|
176
|
+
clearValue: VoidFunction;
|
|
177
177
|
/**
|
|
178
178
|
* Function to set the value of the input at a specific index.
|
|
179
179
|
*/
|
|
180
|
-
setValueAtIndex(index: number, value: string)
|
|
180
|
+
setValueAtIndex: (index: number, value: string) => void;
|
|
181
181
|
/**
|
|
182
182
|
* Function to focus the pin-input. This will focus the first input.
|
|
183
183
|
*/
|
|
184
|
-
focus:
|
|
185
|
-
getRootProps()
|
|
186
|
-
getLabelProps()
|
|
187
|
-
getHiddenInputProps()
|
|
188
|
-
getControlProps()
|
|
189
|
-
getInputProps(props: InputProps)
|
|
184
|
+
focus: VoidFunction;
|
|
185
|
+
getRootProps: () => T["element"];
|
|
186
|
+
getLabelProps: () => T["label"];
|
|
187
|
+
getHiddenInputProps: () => T["input"];
|
|
188
|
+
getControlProps: () => T["element"];
|
|
189
|
+
getInputProps: (props: InputProps) => T["input"];
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
declare function connect<T extends PropTypes>(service: Service<PinInputSchema>, normalize: NormalizeProps<T>): PinInputApi<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/pin-input",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
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.
|
|
30
|
-
"@zag-js/dom-query": "1.
|
|
31
|
-
"@zag-js/utils": "1.
|
|
32
|
-
"@zag-js/core": "1.
|
|
33
|
-
"@zag-js/types": "1.
|
|
29
|
+
"@zag-js/anatomy": "1.19.0",
|
|
30
|
+
"@zag-js/dom-query": "1.19.0",
|
|
31
|
+
"@zag-js/utils": "1.19.0",
|
|
32
|
+
"@zag-js/core": "1.19.0",
|
|
33
|
+
"@zag-js/types": "1.19.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"clean-package": "2.2.0"
|