@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/README.md +34 -0
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +68 -0
- package/package.json +1 -1
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
|
-
|
|
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",
|