@sparkstudio/storage-ui 1.0.16 → 1.0.18

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 CHANGED
@@ -267,7 +267,7 @@ var UploadDropzone = ({
267
267
  style,
268
268
  children
269
269
  }) => {
270
- const baseClass = "border rounded-3 p-4 mb-3 d-flex flex-column align-items-center justify-content-center ";
270
+ const baseClass = "rounded-3 d-flex flex-column align-items-center justify-content-center ";
271
271
  const stateClass = isDragging ? "bg-light border-primary" : "border-secondary border-dashed";
272
272
  const combinedClassName = `${baseClass}${stateClass} ${className}`.trim();
273
273
  const handleDragOver = (e) => {
@@ -845,14 +845,12 @@ var UploadContainer = ({
845
845
  {
846
846
  className: "w-100 d-flex flex-wrap gap-4 align-content-start",
847
847
  style: { minHeight: "140px" },
848
- children: existingFilesLoading ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "w-100 d-flex justify-content-center align-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "spinner-border text-secondary", role: "status", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "visually-hidden", children: "Loading containers..." }) }) }) : existingFiles.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
848
+ children: existingFilesLoading ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "w-100 d-flex justify-content-center align-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "spinner-border text-secondary", role: "status" }) }) : existingFiles.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
849
849
  "div",
850
850
  {
851
851
  className: "w-100 d-flex flex-column align-items-center justify-content-center text-muted",
852
852
  style: {
853
853
  minHeight: "160px",
854
- border: "2px dashed #ccc",
855
- borderRadius: "10px",
856
854
  padding: "20px",
857
855
  cursor: "pointer",
858
856
  transition: "background 0.12s, border-color 0.12s"
package/dist/index.js CHANGED
@@ -226,7 +226,7 @@ var UploadDropzone = ({
226
226
  style,
227
227
  children
228
228
  }) => {
229
- const baseClass = "border rounded-3 p-4 mb-3 d-flex flex-column align-items-center justify-content-center ";
229
+ const baseClass = "rounded-3 d-flex flex-column align-items-center justify-content-center ";
230
230
  const stateClass = isDragging ? "bg-light border-primary" : "border-secondary border-dashed";
231
231
  const combinedClassName = `${baseClass}${stateClass} ${className}`.trim();
232
232
  const handleDragOver = (e) => {
@@ -814,14 +814,12 @@ var UploadContainer = ({
814
814
  {
815
815
  className: "w-100 d-flex flex-wrap gap-4 align-content-start",
816
816
  style: { minHeight: "140px" },
817
- children: existingFilesLoading ? /* @__PURE__ */ jsx4("div", { className: "w-100 d-flex justify-content-center align-items-center", children: /* @__PURE__ */ jsx4("div", { className: "spinner-border text-secondary", role: "status", children: /* @__PURE__ */ jsx4("span", { className: "visually-hidden", children: "Loading containers..." }) }) }) : existingFiles.length === 0 ? /* @__PURE__ */ jsxs3(
817
+ children: existingFilesLoading ? /* @__PURE__ */ jsx4("div", { className: "w-100 d-flex justify-content-center align-items-center", children: /* @__PURE__ */ jsx4("div", { className: "spinner-border text-secondary", role: "status" }) }) : existingFiles.length === 0 ? /* @__PURE__ */ jsxs3(
818
818
  "div",
819
819
  {
820
820
  className: "w-100 d-flex flex-column align-items-center justify-content-center text-muted",
821
821
  style: {
822
822
  minHeight: "160px",
823
- border: "2px dashed #ccc",
824
- borderRadius: "10px",
825
823
  padding: "20px",
826
824
  cursor: "pointer",
827
825
  transition: "background 0.12s, border-color 0.12s"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkstudio/storage-ui",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "@fortawesome/free-solid-svg-icons": "^7.1.0",
41
41
  "@fortawesome/react-fontawesome": "^3.1.1",
42
42
  "@sparkstudio/authentication-ui": "^1.0.29",
43
- "@sparkstudio/common-ui": "^1.0.11",
43
+ "@sparkstudio/common-ui": "^1.0.14",
44
44
  "barrelsby": "^2.8.1"
45
45
  },
46
46
  "devDependencies": {