@zag-js/pin-input 1.2.1 → 1.3.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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -0
- package/dist/index.mjs +3 -2
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
import * as _zag_js_core from '@zag-js/core';
|
|
3
|
-
import { Service, Machine
|
|
4
|
-
import { DirectionProperty, CommonProperties, PropTypes,
|
|
3
|
+
import { EventObject, Service, Machine } from '@zag-js/core';
|
|
4
|
+
import { RequiredBy, DirectionProperty, CommonProperties, PropTypes, NormalizeProps } from '@zag-js/types';
|
|
5
5
|
|
|
6
6
|
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "input" | "control">;
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
import * as _zag_js_core from '@zag-js/core';
|
|
3
|
-
import { Service, Machine
|
|
4
|
-
import { DirectionProperty, CommonProperties, PropTypes,
|
|
3
|
+
import { EventObject, Service, Machine } from '@zag-js/core';
|
|
4
|
+
import { RequiredBy, DirectionProperty, CommonProperties, PropTypes, NormalizeProps } from '@zag-js/types';
|
|
5
5
|
|
|
6
6
|
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "input" | "control">;
|
|
7
7
|
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
2
|
-
import {
|
|
3
|
-
import { setValueAtIndex, createSplitProps, invariant } from '@zag-js/utils';
|
|
2
|
+
import { raf, dispatchInputValueEvent, queryAll, dataAttr, ariaAttr, isHTMLElement, isComposingEvent, isModifierKey, getEventKey, getNativeEvent, getBeforeInputValue, visuallyHiddenStyle } from '@zag-js/dom-query';
|
|
3
|
+
import { setValueAtIndex, isEqual, createSplitProps, invariant } from '@zag-js/utils';
|
|
4
4
|
import { setup } from '@zag-js/core';
|
|
5
5
|
import { createProps } from '@zag-js/types';
|
|
6
6
|
|
|
@@ -236,6 +236,7 @@ var machine = createMachine({
|
|
|
236
236
|
value: bindable(() => ({
|
|
237
237
|
value: prop("value"),
|
|
238
238
|
defaultValue: prop("defaultValue"),
|
|
239
|
+
isEqual,
|
|
239
240
|
onChange(value) {
|
|
240
241
|
prop("onValueChange")?.({ value, valueAsString: value.join("") });
|
|
241
242
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/pin-input",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.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.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"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"clean-package": "2.2.0"
|