@igorvaryvoda/sirv-upload-widget 0.1.2 → 0.1.4

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.mjs CHANGED
@@ -1564,6 +1564,7 @@ function SirvUploader({
1564
1564
  className,
1565
1565
  disabled = false,
1566
1566
  compact = false,
1567
+ theme = "auto",
1567
1568
  labels: customLabels = {},
1568
1569
  children
1569
1570
  }) {
@@ -1640,7 +1641,8 @@ function SirvUploader({
1640
1641
  const hasPendingFiles = upload.files.some((f) => f.status === "pending" || f.status === "error");
1641
1642
  const showTabs = csvImport && batch;
1642
1643
  const browseEndpoint = proxyEndpoint || (presignEndpoint ? presignEndpoint.replace(/\/presign$/, "") : "");
1643
- return /* @__PURE__ */ jsxs("div", { className: clsx2("sirv-uploader", className), children: [
1644
+ const themeClass = theme === "dark" ? "sirv-uploader--dark" : theme === "light" ? "sirv-uploader--light" : void 0;
1645
+ return /* @__PURE__ */ jsxs("div", { className: clsx2("sirv-uploader", themeClass, className), children: [
1644
1646
  showTabs && /* @__PURE__ */ jsxs("div", { className: "sirv-tabs", children: [
1645
1647
  /* @__PURE__ */ jsx(
1646
1648
  "button",