@zag-js/number-input 0.1.4 → 0.1.5

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.mjs CHANGED
@@ -103,11 +103,11 @@ function addDomEvent(target, event, listener, options) {
103
103
  const node = isRef(target) ? target.current : runIfFn(target);
104
104
  return globalEventBus(node, event, listener, options);
105
105
  }
106
+ var MAX_Z_INDEX = 2147483647;
106
107
  function getNativeEvent(event) {
107
108
  var _a;
108
109
  return (_a = event.nativeEvent) != null ? _a : event;
109
110
  }
110
- var MAX_Z_INDEX = 2147483647;
111
111
  var PAGE_KEYS = /* @__PURE__ */ new Set(["PageUp", "PageDown"]);
112
112
  var ARROW_KEYS = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"]);
113
113
  function getEventStep(event) {
@@ -572,6 +572,7 @@ function connect(state, send, normalize = normalizeProp) {
572
572
  }),
573
573
  decrementButtonProps: normalize.button({
574
574
  "data-part": "spin-button",
575
+ "data-type": "decrement",
575
576
  id: dom.getDecButtonId(state.context),
576
577
  disabled: isDecrementDisabled,
577
578
  "data-disabled": dataAttr(isDecrementDisabled),
@@ -596,6 +597,7 @@ function connect(state, send, normalize = normalizeProp) {
596
597
  }),
597
598
  incrementButtonProps: normalize.button({
598
599
  "data-part": "spin-button",
600
+ "data-type": "increment",
599
601
  id: dom.getIncButtonId(state.context),
600
602
  disabled: isIncrementDisabled,
601
603
  "data-disabled": dataAttr(isIncrementDisabled),