@herca/r-kit 0.0.24 → 0.0.25
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 +29 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +29 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7743,7 +7743,7 @@ var ModalPreviewAttachment = ({
|
|
|
7743
7743
|
children: [
|
|
7744
7744
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full justify-between", children: [
|
|
7745
7745
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
7746
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onClose, className: "cursor-pointer", children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "times", color: "white" }) }),
|
|
7746
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "times", color: "white" }) }),
|
|
7747
7747
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
|
|
7748
7748
|
iconName && /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: iconName, size: 48 }),
|
|
7749
7749
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7849,8 +7849,26 @@ var ZoomController = ({
|
|
|
7849
7849
|
minZoom
|
|
7850
7850
|
}) => {
|
|
7851
7851
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7852
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7853
|
-
|
|
7852
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7853
|
+
Button,
|
|
7854
|
+
{
|
|
7855
|
+
size: "icon",
|
|
7856
|
+
onClick: onZoomIn,
|
|
7857
|
+
disabled: zoom >= maxZoom,
|
|
7858
|
+
type: "button",
|
|
7859
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "search-plus-fill" })
|
|
7860
|
+
}
|
|
7861
|
+
),
|
|
7862
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7863
|
+
Button,
|
|
7864
|
+
{
|
|
7865
|
+
size: "icon",
|
|
7866
|
+
onClick: onZoomOut,
|
|
7867
|
+
disabled: zoom <= minZoom,
|
|
7868
|
+
type: "button",
|
|
7869
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "search-minus-fill" })
|
|
7870
|
+
}
|
|
7871
|
+
),
|
|
7854
7872
|
/* @__PURE__ */ jsxRuntime.jsxs(Button, { color: "secondary", onClick: onDownload, children: [
|
|
7855
7873
|
/* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "download" }),
|
|
7856
7874
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8072,6 +8090,7 @@ var InputFile = React288.forwardRef(
|
|
|
8072
8090
|
}
|
|
8073
8091
|
}
|
|
8074
8092
|
const mapped = selectedFiles.map((file) => ({
|
|
8093
|
+
id: crypto.randomUUID(),
|
|
8075
8094
|
file,
|
|
8076
8095
|
customName: file.name,
|
|
8077
8096
|
preview: URL.createObjectURL(file)
|
|
@@ -8349,7 +8368,7 @@ var InputFile = React288.forwardRef(
|
|
|
8349
8368
|
customName: customNames[i] ?? item.customName ?? item.file.name,
|
|
8350
8369
|
disabled
|
|
8351
8370
|
},
|
|
8352
|
-
|
|
8371
|
+
item?.id
|
|
8353
8372
|
)) })
|
|
8354
8373
|
] })
|
|
8355
8374
|
] });
|
|
@@ -8601,7 +8620,7 @@ var InputOTP = ({
|
|
|
8601
8620
|
if (!/^\d?$/.test(char)) return;
|
|
8602
8621
|
const next = [...values];
|
|
8603
8622
|
next[index] = char;
|
|
8604
|
-
onChange(next.join(""));
|
|
8623
|
+
onChange?.(next.join(""));
|
|
8605
8624
|
if (char && index < length - 1) {
|
|
8606
8625
|
focusInput(index + 1);
|
|
8607
8626
|
}
|
|
@@ -9639,7 +9658,7 @@ function Textarea({
|
|
|
9639
9658
|
description,
|
|
9640
9659
|
errorMessages,
|
|
9641
9660
|
className,
|
|
9642
|
-
required:
|
|
9661
|
+
required: false,
|
|
9643
9662
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9644
9663
|
"textarea",
|
|
9645
9664
|
{
|
|
@@ -11229,6 +11248,8 @@ var Calendar2 = ({
|
|
|
11229
11248
|
onTypeChange,
|
|
11230
11249
|
onEventClick,
|
|
11231
11250
|
backdropOnClick,
|
|
11251
|
+
onMonthChange,
|
|
11252
|
+
onYearChange,
|
|
11232
11253
|
showDefaultController = false
|
|
11233
11254
|
}) => {
|
|
11234
11255
|
const currentDate = /* @__PURE__ */ new Date();
|
|
@@ -11304,6 +11325,8 @@ var Calendar2 = ({
|
|
|
11304
11325
|
newMonth = 0;
|
|
11305
11326
|
newYear += 1;
|
|
11306
11327
|
}
|
|
11328
|
+
onMonthChange?.(newMonth);
|
|
11329
|
+
onYearChange?.(newYear);
|
|
11307
11330
|
setCurrentMonth(newMonth);
|
|
11308
11331
|
setCurrentYear(newYear);
|
|
11309
11332
|
};
|