@zag-js/slider 0.8.0 → 0.9.0

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,6 +1,6 @@
1
1
  import {
2
2
  dom
3
- } from "./chunk-QSGM24KV.mjs";
3
+ } from "./chunk-JG4OWFJP.mjs";
4
4
  import {
5
5
  constrainValue,
6
6
  decrement,
@@ -41,7 +41,7 @@ var dom = createScope({
41
41
  const input = dom.getHiddenInputEl(ctx);
42
42
  if (!input)
43
43
  return;
44
- dispatchInputValueEvent(input, ctx.value);
44
+ dispatchInputValueEvent(input, { value: ctx.value });
45
45
  }
46
46
  });
47
47
 
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-3Y7IIPR5.mjs";
4
4
  import {
5
5
  dom
6
- } from "./chunk-QSGM24KV.mjs";
6
+ } from "./chunk-JG4OWFJP.mjs";
7
7
 
8
8
  // src/slider.connect.ts
9
9
  import { getEventKey, getEventStep, getNativeEvent, isLeftClick, isModifiedEvent } from "@zag-js/dom-event";
package/dist/index.js CHANGED
@@ -201,7 +201,7 @@ var dom = (0, import_dom_query.createScope)({
201
201
  const input = dom.getHiddenInputEl(ctx);
202
202
  if (!input)
203
203
  return;
204
- (0, import_form_utils.dispatchInputValueEvent)(input, ctx.value);
204
+ (0, import_form_utils.dispatchInputValueEvent)(input, { value: ctx.value });
205
205
  }
206
206
  });
207
207
 
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  connect
3
- } from "./chunk-RALQPAZH.mjs";
3
+ } from "./chunk-T4EPOG77.mjs";
4
4
  import {
5
5
  anatomy
6
6
  } from "./chunk-3Y7IIPR5.mjs";
7
7
  import {
8
8
  machine
9
- } from "./chunk-SG722B5B.mjs";
9
+ } from "./chunk-CNR2557J.mjs";
10
10
  import {
11
11
  dom
12
- } from "./chunk-QSGM24KV.mjs";
12
+ } from "./chunk-JG4OWFJP.mjs";
13
13
  import "./chunk-IJAAAKZQ.mjs";
14
14
  import "./chunk-YGFSMEUO.mjs";
15
15
  export {
@@ -196,7 +196,7 @@ var dom = (0, import_dom_query.createScope)({
196
196
  const input = dom.getHiddenInputEl(ctx);
197
197
  if (!input)
198
198
  return;
199
- (0, import_form_utils.dispatchInputValueEvent)(input, ctx.value);
199
+ (0, import_form_utils.dispatchInputValueEvent)(input, { value: ctx.value });
200
200
  }
201
201
  });
202
202
 
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  connect
3
- } from "./chunk-RALQPAZH.mjs";
3
+ } from "./chunk-T4EPOG77.mjs";
4
4
  import "./chunk-3Y7IIPR5.mjs";
5
- import "./chunk-QSGM24KV.mjs";
5
+ import "./chunk-JG4OWFJP.mjs";
6
6
  import "./chunk-IJAAAKZQ.mjs";
7
7
  export {
8
8
  connect
@@ -175,7 +175,7 @@ var dom = (0, import_dom_query.createScope)({
175
175
  const input = dom.getHiddenInputEl(ctx);
176
176
  if (!input)
177
177
  return;
178
- (0, import_form_utils.dispatchInputValueEvent)(input, ctx.value);
178
+ (0, import_form_utils.dispatchInputValueEvent)(input, { value: ctx.value });
179
179
  }
180
180
  });
181
181
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dom
3
- } from "./chunk-QSGM24KV.mjs";
3
+ } from "./chunk-JG4OWFJP.mjs";
4
4
  import "./chunk-IJAAAKZQ.mjs";
5
5
  export {
6
6
  dom
@@ -184,7 +184,7 @@ var dom = (0, import_dom_query.createScope)({
184
184
  const input = dom.getHiddenInputEl(ctx);
185
185
  if (!input)
186
186
  return;
187
- (0, import_form_utils.dispatchInputValueEvent)(input, ctx.value);
187
+ (0, import_form_utils.dispatchInputValueEvent)(input, { value: ctx.value });
188
188
  }
189
189
  });
190
190
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  machine
3
- } from "./chunk-SG722B5B.mjs";
4
- import "./chunk-QSGM24KV.mjs";
3
+ } from "./chunk-CNR2557J.mjs";
4
+ import "./chunk-JG4OWFJP.mjs";
5
5
  import "./chunk-IJAAAKZQ.mjs";
6
6
  import "./chunk-YGFSMEUO.mjs";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "0.1.4",
29
+ "@zag-js/anatomy": "0.9.0",
30
30
  "@zag-js/core": "0.7.0",
31
31
  "@zag-js/dom-query": "0.1.4",
32
32
  "@zag-js/dom-event": "0.8.0",