@zag-js/slider 1.2.0 → 1.3.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.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
- import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
2
+ import { RequiredBy, DirectionProperty, CommonProperties, PropTypes, NormalizeProps } from '@zag-js/types';
3
3
  import * as _zag_js_core from '@zag-js/core';
4
- import { Service, Machine, EventObject } from '@zag-js/core';
4
+ import { Service, EventObject, Machine } from '@zag-js/core';
5
5
 
6
6
  declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
7
7
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
- import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
2
+ import { RequiredBy, DirectionProperty, CommonProperties, PropTypes, NormalizeProps } from '@zag-js/types';
3
3
  import * as _zag_js_core from '@zag-js/core';
4
- import { Service, Machine, EventObject } from '@zag-js/core';
4
+ import { Service, EventObject, Machine } from '@zag-js/core';
5
5
 
6
6
  declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
7
7
 
package/dist/index.js CHANGED
@@ -556,6 +556,7 @@ var machine = core.createMachine({
556
556
  value: bindable(() => ({
557
557
  defaultValue: prop("defaultValue"),
558
558
  value: prop("value"),
559
+ isEqual: utils.isEqual,
559
560
  hash(a) {
560
561
  return a.join(",");
561
562
  },
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createAnatomy } from '@zag-js/anatomy';
2
- import { trackFormControl, trackPointerMove, setElementValue, raf, queryAll, getRelativePoint, dispatchInputValueEvent, dataAttr, ariaAttr, getEventStep, getEventKey, isLeftClick, isModifierKey, getEventPoint } from '@zag-js/dom-query';
3
- import { getValuePercent, setValueAtIndex, createSplitProps, getPercentValue, getValueRanges, snapValueToStep, clampValue, getPreviousStepValue, getNextStepValue, getClosestValueIndex, first, last, getValueTransformer } from '@zag-js/utils';
2
+ import { raf, setElementValue, queryAll, trackPointerMove, trackFormControl, getRelativePoint, dispatchInputValueEvent, dataAttr, isLeftClick, isModifierKey, getEventPoint, ariaAttr, getEventStep, getEventKey } from '@zag-js/dom-query';
3
+ import { setValueAtIndex, getValuePercent, isEqual, createSplitProps, snapValueToStep, clampValue, getValueRanges, getNextStepValue, getPreviousStepValue, getPercentValue, getClosestValueIndex, first, last, getValueTransformer } from '@zag-js/utils';
4
4
  import { createMachine } from '@zag-js/core';
5
5
  import { trackElementsSize } from '@zag-js/element-size';
6
6
  import { createProps } from '@zag-js/types';
@@ -554,6 +554,7 @@ var machine = createMachine({
554
554
  value: bindable(() => ({
555
555
  defaultValue: prop("defaultValue"),
556
556
  value: prop("value"),
557
+ isEqual,
557
558
  hash(a) {
558
559
  return a.join(",");
559
560
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,12 +27,12 @@
27
27
  "url": "https://github.com/chakra-ui/zag/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@zag-js/anatomy": "1.2.0",
31
- "@zag-js/core": "1.2.0",
32
- "@zag-js/dom-query": "1.2.0",
33
- "@zag-js/utils": "1.2.0",
34
- "@zag-js/element-size": "1.2.0",
35
- "@zag-js/types": "1.2.0"
30
+ "@zag-js/anatomy": "1.3.0",
31
+ "@zag-js/core": "1.3.0",
32
+ "@zag-js/dom-query": "1.3.0",
33
+ "@zag-js/utils": "1.3.0",
34
+ "@zag-js/element-size": "1.3.0",
35
+ "@zag-js/types": "1.3.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "clean-package": "2.2.0"