@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.js CHANGED
@@ -126,11 +126,11 @@ function addDomEvent(target, event, listener, options) {
126
126
  const node = isRef(target) ? target.current : runIfFn(target);
127
127
  return globalEventBus(node, event, listener, options);
128
128
  }
129
+ var MAX_Z_INDEX = 2147483647;
129
130
  function getNativeEvent(event) {
130
131
  var _a;
131
132
  return (_a = event.nativeEvent) != null ? _a : event;
132
133
  }
133
- var MAX_Z_INDEX = 2147483647;
134
134
  var PAGE_KEYS = /* @__PURE__ */ new Set(["PageUp", "PageDown"]);
135
135
  var ARROW_KEYS = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"]);
136
136
  function getEventStep(event) {
@@ -595,6 +595,7 @@ function connect(state, send, normalize = normalizeProp) {
595
595
  }),
596
596
  decrementButtonProps: normalize.button({
597
597
  "data-part": "spin-button",
598
+ "data-type": "decrement",
598
599
  id: dom.getDecButtonId(state.context),
599
600
  disabled: isDecrementDisabled,
600
601
  "data-disabled": dataAttr(isDecrementDisabled),
@@ -619,6 +620,7 @@ function connect(state, send, normalize = normalizeProp) {
619
620
  }),
620
621
  incrementButtonProps: normalize.button({
621
622
  "data-part": "spin-button",
623
+ "data-type": "increment",
622
624
  id: dom.getIncButtonId(state.context),
623
625
  disabled: isIncrementDisabled,
624
626
  "data-disabled": dataAttr(isIncrementDisabled),