@julseb-lib/react 1.0.61 → 1.0.63
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 +12 -4
- 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 +12 -4
- package/dist/index.js.map +1 -1
- package/dist/types/components-props.d.cts +2 -0
- package/dist/types/components-props.d.ts +2 -0
- 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
|
)
|
|
@@ -68477,7 +68485,7 @@ var SlideshowPagination = ({
|
|
|
68477
68485
|
"size-2 rounded-full block"
|
|
68478
68486
|
],
|
|
68479
68487
|
type === "dots-outline" && [
|
|
68480
|
-
"size-2 rounded-full border
|
|
68488
|
+
"size-2 rounded-full border"
|
|
68481
68489
|
],
|
|
68482
68490
|
type === "bars" && ["grow h-1 rounded-full"],
|
|
68483
68491
|
"slideshow-control"
|
|
@@ -68738,7 +68746,7 @@ var Slideshow = ({
|
|
|
68738
68746
|
SlideshowPagination,
|
|
68739
68747
|
{
|
|
68740
68748
|
className: pagination?.className,
|
|
68741
|
-
images: pagination?.images,
|
|
68749
|
+
images: pagination?.images ?? images,
|
|
68742
68750
|
active: currentSlide,
|
|
68743
68751
|
setActive: setCurrentSlide,
|
|
68744
68752
|
contentLength: totalSlides,
|