@zag-js/slider 0.0.0-dev-20230202104422 → 0.0.0-dev-20230203093446

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.
@@ -268,7 +268,7 @@ function machine(userContext) {
268
268
  return createMachine(
269
269
  {
270
270
  id: "slider",
271
- initial: "unknown",
271
+ initial: "idle",
272
272
  context: {
273
273
  thumbSize: null,
274
274
  thumbAlignment: "contain",
@@ -307,15 +307,8 @@ function machine(userContext) {
307
307
  actions: "decrement"
308
308
  }
309
309
  },
310
+ entry: ["checkValue"],
310
311
  states: {
311
- unknown: {
312
- on: {
313
- SETUP: {
314
- target: "idle",
315
- actions: ["checkValue"]
316
- }
317
- }
318
- },
319
312
  idle: {
320
313
  on: {
321
314
  POINTER_DOWN: {
package/dist/index.js CHANGED
@@ -851,7 +851,7 @@ function machine(userContext) {
851
851
  return (0, import_core.createMachine)(
852
852
  {
853
853
  id: "slider",
854
- initial: "unknown",
854
+ initial: "idle",
855
855
  context: {
856
856
  thumbSize: null,
857
857
  thumbAlignment: "contain",
@@ -890,15 +890,8 @@ function machine(userContext) {
890
890
  actions: "decrement"
891
891
  }
892
892
  },
893
+ entry: ["checkValue"],
893
894
  states: {
894
- unknown: {
895
- on: {
896
- SETUP: {
897
- target: "idle",
898
- actions: ["checkValue"]
899
- }
900
- }
901
- },
902
895
  idle: {
903
896
  on: {
904
897
  POINTER_DOWN: {
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-3Y7IIPR5.mjs";
7
7
  import {
8
8
  machine
9
- } from "./chunk-ECU4PKO7.mjs";
9
+ } from "./chunk-5XVLG734.mjs";
10
10
  import "./chunk-3UP6QL6A.mjs";
11
11
  import {
12
12
  dom
@@ -559,7 +559,7 @@ function machine(userContext) {
559
559
  return (0, import_core.createMachine)(
560
560
  {
561
561
  id: "slider",
562
- initial: "unknown",
562
+ initial: "idle",
563
563
  context: {
564
564
  thumbSize: null,
565
565
  thumbAlignment: "contain",
@@ -598,15 +598,8 @@ function machine(userContext) {
598
598
  actions: "decrement"
599
599
  }
600
600
  },
601
+ entry: ["checkValue"],
601
602
  states: {
602
- unknown: {
603
- on: {
604
- SETUP: {
605
- target: "idle",
606
- actions: ["checkValue"]
607
- }
608
- }
609
- },
610
603
  idle: {
611
604
  on: {
612
605
  POINTER_DOWN: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  machine
3
- } from "./chunk-ECU4PKO7.mjs";
3
+ } from "./chunk-5XVLG734.mjs";
4
4
  import "./chunk-3UP6QL6A.mjs";
5
5
  import "./chunk-55KEN77D.mjs";
6
6
  import "./chunk-IJAAAKZQ.mjs";
@@ -137,7 +137,7 @@ type ComputedContext = Readonly<{
137
137
  type PrivateContext = Context<{}>;
138
138
  type MachineContext = PublicContext & ComputedContext & PrivateContext;
139
139
  type MachineState = {
140
- value: "unknown" | "idle" | "dragging" | "focus";
140
+ value: "idle" | "dragging" | "focus";
141
141
  };
142
142
  type State = StateMachine.State<MachineContext, MachineState>;
143
143
  type Send = StateMachine.Send<StateMachine.AnyEventObject>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "0.0.0-dev-20230202104422",
3
+ "version": "0.0.0-dev-20230203093446",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,17 +26,17 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "0.0.0-dev-20230202104422",
30
- "@zag-js/core": "0.0.0-dev-20230202104422",
31
- "@zag-js/element-size": "0.0.0-dev-20230202104422",
32
- "@zag-js/numeric-range": "0.0.0-dev-20230202104422",
33
- "@zag-js/types": "0.0.0-dev-20230202104422"
29
+ "@zag-js/anatomy": "0.1.4",
30
+ "@zag-js/core": "0.0.0-dev-20230203093446",
31
+ "@zag-js/element-size": "0.3.2",
32
+ "@zag-js/numeric-range": "0.1.1",
33
+ "@zag-js/types": "0.3.4"
34
34
  },
35
35
  "devDependencies": {
36
36
  "clean-package": "2.2.0",
37
- "@zag-js/dom-utils": "0.0.0-dev-20230202104422",
38
- "@zag-js/form-utils": "0.0.0-dev-20230202104422",
39
- "@zag-js/utils": "0.0.0-dev-20230202104422"
37
+ "@zag-js/dom-utils": "0.2.4",
38
+ "@zag-js/form-utils": "0.2.4",
39
+ "@zag-js/utils": "0.3.3"
40
40
  },
41
41
  "clean-package": "../../../clean-package.config.json",
42
42
  "main": "dist/index.js",