@zag-js/number-input 0.0.0-dev-20220410020729 → 0.0.0-dev-20220412122925

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.
@@ -3,6 +3,14 @@ import { Context } from "@zag-js/types";
3
3
  import { Point } from "@zag-js/rect-utils";
4
4
  declare type ValidityState = "rangeUnderflow" | "rangeOverflow";
5
5
  declare type InputSelection = Record<"start" | "end", number | null>;
6
+ declare type IdMap = Partial<{
7
+ root: string;
8
+ label: string;
9
+ input: string;
10
+ incBtn: string;
11
+ decBtn: string;
12
+ scrubber: string;
13
+ }>;
6
14
  declare type IntlMessages = {
7
15
  /**
8
16
  * Function that returns the human-readable value.
@@ -19,6 +27,10 @@ declare type IntlMessages = {
19
27
  decrementLabel: string;
20
28
  };
21
29
  export declare type MachineContext = Context<{
30
+ /**
31
+ * The ids of the elements in the number input. Useful for composition.
32
+ */
33
+ ids?: IdMap;
22
34
  /**
23
35
  * The name attribute of the number input. Useful for form submission.
24
36
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "0.0.0-dev-20220410020729",
3
+ "version": "0.0.0-dev-20220412122925",
4
4
  "description": "Core logic for the number-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -29,11 +29,11 @@
29
29
  "url": "https://github.com/chakra-ui/ui-machines/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@zag-js/core": "^0.0.0-dev-20220410020729",
33
- "@zag-js/dom-utils": "^0.0.0-dev-20220410020729",
34
- "@zag-js/number-utils": "^0.0.0-dev-20220410020729",
35
- "@zag-js/rect-utils": "^0.0.0-dev-20220410020729",
36
- "@zag-js/types": "^0.0.0-dev-20220410020729",
37
- "@zag-js/utils": "^0.0.0-dev-20220410020729"
32
+ "@zag-js/core": "^0.0.0-dev-20220412122925",
33
+ "@zag-js/dom-utils": "^0.0.0-dev-20220412122925",
34
+ "@zag-js/number-utils": "^0.0.0-dev-20220412122925",
35
+ "@zag-js/rect-utils": "^0.0.0-dev-20220412122925",
36
+ "@zag-js/types": "^0.0.0-dev-20220412122925",
37
+ "@zag-js/utils": "^0.0.0-dev-20220412122925"
38
38
  }
39
39
  }