@herca/r-kit 0.0.38 → 0.0.39
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/clients.cjs +7 -3
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.js +7 -3
- package/dist/clients.js.map +1 -1
- package/package.json +1 -1
package/dist/clients.cjs
CHANGED
|
@@ -8795,7 +8795,7 @@ var ZoomController = ({
|
|
|
8795
8795
|
children: /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(Icon_default, { name: "search-minus-fill" })
|
|
8796
8796
|
}
|
|
8797
8797
|
),
|
|
8798
|
-
/* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(Button, { color: "secondary", onClick: onDownload, children: [
|
|
8798
|
+
/* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(Button, { color: "secondary", onClick: onDownload, type: "button", children: [
|
|
8799
8799
|
/* @__PURE__ */ (0, import_jsx_runtime301.jsx)(Icon_default, { name: "download" }),
|
|
8800
8800
|
/* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
|
|
8801
8801
|
Text,
|
|
@@ -9059,7 +9059,9 @@ var InputFile = (0, import_react291.forwardRef)(
|
|
|
9059
9059
|
}
|
|
9060
9060
|
URL.revokeObjectURL(files[replaceIndex].preview);
|
|
9061
9061
|
const newFileItem = {
|
|
9062
|
+
id: crypto.randomUUID(),
|
|
9062
9063
|
file: selected,
|
|
9064
|
+
customName: selected.name,
|
|
9063
9065
|
preview: URL.createObjectURL(selected)
|
|
9064
9066
|
};
|
|
9065
9067
|
const newFiles = [...files];
|
|
@@ -9153,8 +9155,10 @@ var InputFile = (0, import_react291.forwardRef)(
|
|
|
9153
9155
|
})
|
|
9154
9156
|
}));
|
|
9155
9157
|
(0, import_react291.useEffect)(() => {
|
|
9156
|
-
return () =>
|
|
9157
|
-
|
|
9158
|
+
return () => {
|
|
9159
|
+
files.forEach((f) => URL.revokeObjectURL(f.preview));
|
|
9160
|
+
};
|
|
9161
|
+
}, []);
|
|
9158
9162
|
const isDefault = variant === "primary" || variant === "secondary" || variant === "gray";
|
|
9159
9163
|
const isSized = variant === "medium" || variant === "large";
|
|
9160
9164
|
return /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)("div", { className: "flex flex-col gap-6", children: [
|