@zag-js/number-input 0.0.0-dev-20220704094439 → 0.0.0-dev-20220704151659
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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NormalizeProps, PropTypes } from "@zag-js/types";
|
|
2
|
-
import { Send, State } from "./number-input.types";
|
|
2
|
+
import type { Send, State } from "./number-input.types";
|
|
3
3
|
export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
|
|
4
4
|
isFocused: boolean;
|
|
5
5
|
isInvalid: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StateMachine as S } from "@zag-js/core";
|
|
2
|
-
import { FormatDecimalOptions } from "@zag-js/number-utils";
|
|
2
|
+
import type { FormatDecimalOptions } from "@zag-js/number-utils";
|
|
3
3
|
import type { Context, DirectionProperty } from "@zag-js/types";
|
|
4
4
|
declare type ValidityState = "rangeUnderflow" | "rangeOverflow";
|
|
5
5
|
declare type ElementIds = Partial<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MachineContext as Ctx } from "./number-input.types";
|
|
2
2
|
export declare const utils: {
|
|
3
|
-
isValidNumericEvent: (ctx: Ctx, event: KeyboardEvent) => boolean;
|
|
3
|
+
isValidNumericEvent: (ctx: Ctx, event: JSX.KeyboardEvent) => boolean;
|
|
4
4
|
isFloatingPoint: (v: string) => boolean;
|
|
5
5
|
sanitize: (ctx: Ctx, value: string) => string;
|
|
6
6
|
increment: (ctx: Ctx, step?: number) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20220704151659",
|
|
4
4
|
"description": "Core logic for the number-input widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@zag-js/core": "0.0.0-dev-
|
|
33
|
-
"@zag-js/dom-utils": "0.0.0-dev-
|
|
32
|
+
"@zag-js/core": "0.0.0-dev-20220704151659",
|
|
33
|
+
"@zag-js/dom-utils": "0.0.0-dev-20220704151659",
|
|
34
34
|
"@zag-js/number-utils": "0.1.2",
|
|
35
|
-
"@zag-js/types": "0.0.0-dev-
|
|
35
|
+
"@zag-js/types": "0.0.0-dev-20220704151659",
|
|
36
36
|
"@zag-js/utils": "0.1.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|