@julseb-lib/react 1.0.60 → 1.0.62
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.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/types/components-props.d.cts +3 -1
- package/dist/types/components-props.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -66155,6 +66155,8 @@ var InputCounter = ({
|
|
|
66155
66155
|
max = 100,
|
|
66156
66156
|
step = 1,
|
|
66157
66157
|
containerClassName,
|
|
66158
|
+
onClickPlus,
|
|
66159
|
+
onClickMinus,
|
|
66158
66160
|
...rest
|
|
66159
66161
|
}) => {
|
|
66160
66162
|
return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
|
|
@@ -66186,7 +66188,10 @@ var InputCounter = ({
|
|
|
66186
66188
|
"aria-label": labelButtons?.minus,
|
|
66187
66189
|
tooltip: labelButtons?.minus ?? "Minus",
|
|
66188
66190
|
showTooltip: showButtonsTooltip && { offset: "xs" },
|
|
66189
|
-
onClick: () =>
|
|
66191
|
+
onClick: () => {
|
|
66192
|
+
setValue((prev) => prev - step);
|
|
66193
|
+
if (onClickMinus) onClickMinus();
|
|
66194
|
+
},
|
|
66190
66195
|
disabled: value === min
|
|
66191
66196
|
}
|
|
66192
66197
|
),
|
|
@@ -66220,7 +66225,10 @@ var InputCounter = ({
|
|
|
66220
66225
|
"aria-label": labelButtons?.plus,
|
|
66221
66226
|
tooltip: labelButtons?.plus ?? "Plus",
|
|
66222
66227
|
showTooltip: showButtonsTooltip && { offset: "xs" },
|
|
66223
|
-
onClick: () =>
|
|
66228
|
+
onClick: () => {
|
|
66229
|
+
setValue((prev) => prev + step);
|
|
66230
|
+
if (onClickPlus) onClickPlus();
|
|
66231
|
+
},
|
|
66224
66232
|
disabled: value === max
|
|
66225
66233
|
}
|
|
66226
66234
|
)
|