@zag-js/number-input 0.0.0-dev-20220521182255 → 0.0.0-dev-20220521210301
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
|
@@ -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),
|
|
@@ -793,6 +795,7 @@ function machine(ctx = {}) {
|
|
|
793
795
|
},
|
|
794
796
|
"before:spin": {
|
|
795
797
|
tags: ["focus"],
|
|
798
|
+
activities: "trackButtonDisabled",
|
|
796
799
|
entry: (0, import_core.choose)([
|
|
797
800
|
{ guard: "isIncrementHint", actions: "increment" },
|
|
798
801
|
{ guard: "isDecrementHint", actions: "decrement" }
|