@zag-js/slider 0.0.0-dev-20230202104422 → 0.0.0-dev-20230202113057
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: "
|
|
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: "
|
|
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
package/dist/slider.machine.js
CHANGED
|
@@ -559,7 +559,7 @@ function machine(userContext) {
|
|
|
559
559
|
return (0, import_core.createMachine)(
|
|
560
560
|
{
|
|
561
561
|
id: "slider",
|
|
562
|
-
initial: "
|
|
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: {
|
package/dist/slider.machine.mjs
CHANGED
package/dist/slider.types.d.ts
CHANGED
|
@@ -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: "
|
|
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-
|
|
3
|
+
"version": "0.0.0-dev-20230202113057",
|
|
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-
|
|
30
|
-
"@zag-js/core": "0.0.0-dev-
|
|
31
|
-
"@zag-js/element-size": "0.0.0-dev-
|
|
32
|
-
"@zag-js/numeric-range": "0.0.0-dev-
|
|
33
|
-
"@zag-js/types": "0.0.0-dev-
|
|
29
|
+
"@zag-js/anatomy": "0.0.0-dev-20230202113057",
|
|
30
|
+
"@zag-js/core": "0.0.0-dev-20230202113057",
|
|
31
|
+
"@zag-js/element-size": "0.0.0-dev-20230202113057",
|
|
32
|
+
"@zag-js/numeric-range": "0.0.0-dev-20230202113057",
|
|
33
|
+
"@zag-js/types": "0.0.0-dev-20230202113057"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"clean-package": "2.2.0",
|
|
37
|
-
"@zag-js/dom-utils": "0.0.0-dev-
|
|
38
|
-
"@zag-js/form-utils": "0.0.0-dev-
|
|
39
|
-
"@zag-js/utils": "0.0.0-dev-
|
|
37
|
+
"@zag-js/dom-utils": "0.0.0-dev-20230202113057",
|
|
38
|
+
"@zag-js/form-utils": "0.0.0-dev-20230202113057",
|
|
39
|
+
"@zag-js/utils": "0.0.0-dev-20230202113057"
|
|
40
40
|
},
|
|
41
41
|
"clean-package": "../../../clean-package.config.json",
|
|
42
42
|
"main": "dist/index.js",
|