@zag-js/slider 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.
@@ -1,5 +1,18 @@
1
1
  import { Context } from "@zag-js/types";
2
+ declare type IdMap = Partial<{
3
+ root: string;
4
+ thumb: string;
5
+ control: string;
6
+ track: string;
7
+ range: string;
8
+ label: string;
9
+ output: string;
10
+ }>;
2
11
  export declare type MachineContext = Context<{
12
+ /**
13
+ * The ids of the elements in the slider. Useful for composition.
14
+ */
15
+ ids?: IdMap;
3
16
  /**
4
17
  * The value of the slider
5
18
  */
@@ -131,3 +144,4 @@ export declare type SharedContext = {
131
144
  export declare type MachineState = {
132
145
  value: "unknown" | "idle" | "dragging" | "focus";
133
146
  };
147
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "0.0.0-dev-20220410020729",
3
+ "version": "0.0.0-dev-20220412122925",
4
4
  "description": "Core logic for the slider 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
  }