@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,4 +1,3 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -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,4 +1,4 @@
1
- import { MachineContext as Ctx } from "./number-input.types";
1
+ import type { MachineContext as Ctx } from "./number-input.types";
2
2
  export declare const dom: {
3
3
  getDoc: (ctx: Ctx) => Document;
4
4
  getWin: (ctx: Ctx) => Window & typeof globalThis;
@@ -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-20220704094439",
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-20220704094439",
33
- "@zag-js/dom-utils": "0.0.0-dev-20220704094439",
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-20220704094439",
35
+ "@zag-js/types": "0.0.0-dev-20220704151659",
36
36
  "@zag-js/utils": "0.1.2"
37
37
  },
38
38
  "scripts": {