@herca/r-kit 0.0.38 → 0.0.40

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.js CHANGED
@@ -8659,7 +8659,7 @@ var ZoomController = ({
8659
8659
  children: /* @__PURE__ */ jsx301(Icon_default, { name: "search-minus-fill" })
8660
8660
  }
8661
8661
  ),
8662
- /* @__PURE__ */ jsxs34(Button, { color: "secondary", onClick: onDownload, children: [
8662
+ /* @__PURE__ */ jsxs34(Button, { color: "secondary", onClick: onDownload, type: "button", children: [
8663
8663
  /* @__PURE__ */ jsx301(Icon_default, { name: "download" }),
8664
8664
  /* @__PURE__ */ jsx301(
8665
8665
  Text,
@@ -8923,7 +8923,9 @@ var InputFile = forwardRef2(
8923
8923
  }
8924
8924
  URL.revokeObjectURL(files[replaceIndex].preview);
8925
8925
  const newFileItem = {
8926
+ id: crypto.randomUUID(),
8926
8927
  file: selected,
8928
+ customName: selected.name,
8927
8929
  preview: URL.createObjectURL(selected)
8928
8930
  };
8929
8931
  const newFiles = [...files];
@@ -9017,8 +9019,10 @@ var InputFile = forwardRef2(
9017
9019
  })
9018
9020
  }));
9019
9021
  useEffect6(() => {
9020
- return () => files.forEach((f) => URL.revokeObjectURL(f.preview));
9021
- }, [files]);
9022
+ return () => {
9023
+ files.forEach((f) => URL.revokeObjectURL(f.preview));
9024
+ };
9025
+ }, []);
9022
9026
  const isDefault = variant === "primary" || variant === "secondary" || variant === "gray";
9023
9027
  const isSized = variant === "medium" || variant === "large";
9024
9028
  return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-6", children: [