@zag-js/slider 0.0.0-dev-20221212111455 → 0.0.0-dev-20221213123137

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +11 -11
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -852,7 +852,7 @@ declare const anatomy: Omit<{
852
852
  }>;
853
853
  }, "parts">;
854
854
 
855
- declare type ElementIds = Partial<{
855
+ type ElementIds = Partial<{
856
856
  root: string;
857
857
  thumb: string;
858
858
  control: string;
@@ -861,7 +861,7 @@ declare type ElementIds = Partial<{
861
861
  label: string;
862
862
  output: string;
863
863
  }>;
864
- declare type PublicContext = DirectionProperty & CommonProperties & {
864
+ type PublicContext = DirectionProperty & CommonProperties & {
865
865
  /**
866
866
  * The ids of the elements in the slider. Useful for composition.
867
867
  */
@@ -952,8 +952,8 @@ declare type PublicContext = DirectionProperty & CommonProperties & {
952
952
  */
953
953
  thumbAlignment?: "contain" | "center";
954
954
  };
955
- declare type UserDefinedContext = RequiredBy<PublicContext, "id">;
956
- declare type ComputedContext = Readonly<{
955
+ type UserDefinedContext = RequiredBy<PublicContext, "id">;
956
+ type ComputedContext = Readonly<{
957
957
  /**
958
958
  * @computed
959
959
  * Whether the slider is interactive
@@ -980,14 +980,14 @@ declare type ComputedContext = Readonly<{
980
980
  */
981
981
  readonly isRtl: boolean;
982
982
  }>;
983
- declare type PrivateContext = Context<{}>;
984
- declare type MachineContext = PublicContext & ComputedContext & PrivateContext;
985
- declare type MachineState = {
983
+ type PrivateContext = Context<{}>;
984
+ type MachineContext = PublicContext & ComputedContext & PrivateContext;
985
+ type MachineState = {
986
986
  value: "unknown" | "idle" | "dragging" | "focus";
987
987
  };
988
- declare type State = StateMachine.State<MachineContext, MachineState>;
989
- declare type Send = StateMachine.Send<StateMachine.AnyEventObject>;
990
- declare type SharedContext = {
988
+ type State = StateMachine.State<MachineContext, MachineState>;
989
+ type Send = StateMachine.Send<StateMachine.AnyEventObject>;
990
+ type SharedContext = {
991
991
  min: number;
992
992
  max: number;
993
993
  step: number;
@@ -1004,7 +1004,7 @@ declare type SharedContext = {
1004
1004
  orientation?: "horizontal" | "vertical";
1005
1005
  readonly hasMeasuredThumbSize: boolean;
1006
1006
  };
1007
- declare type Point = {
1007
+ type Point = {
1008
1008
  x: number;
1009
1009
  y: number;
1010
1010
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "0.0.0-dev-20221212111455",
3
+ "version": "0.0.0-dev-20221213123137",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@zag-js/anatomy": "0.1.1",
33
- "@zag-js/core": "0.2.2",
33
+ "@zag-js/core": "0.0.0-dev-20221213123137",
34
34
  "@zag-js/element-size": "0.3.0",
35
35
  "@zag-js/types": "0.3.1"
36
36
  },