@underverse-ui/underverse 1.0.181 → 1.0.183
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/api-reference.json +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api-reference.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3496,7 +3496,7 @@ var Textarea = (0, import_react4.forwardRef)(
|
|
|
3496
3496
|
required,
|
|
3497
3497
|
value,
|
|
3498
3498
|
maxLength,
|
|
3499
|
-
borderMode,
|
|
3499
|
+
borderMode = "2xl",
|
|
3500
3500
|
...props
|
|
3501
3501
|
}, ref) => {
|
|
3502
3502
|
const [isFocused, setIsFocused] = (0, import_react4.useState)(false);
|
|
@@ -21955,11 +21955,12 @@ function ImageUpload({
|
|
|
21955
21955
|
if (validFiles.length === 0) return;
|
|
21956
21956
|
setUploading(true);
|
|
21957
21957
|
try {
|
|
21958
|
+
let idCount = 0;
|
|
21958
21959
|
for (const file of validFiles) {
|
|
21959
21960
|
const formData = new FormData();
|
|
21960
21961
|
formData.append("file", file);
|
|
21961
21962
|
const response = {
|
|
21962
|
-
id: Date.now(),
|
|
21963
|
+
id: Date.now() + idCount,
|
|
21963
21964
|
path: "",
|
|
21964
21965
|
url: URL.createObjectURL(file),
|
|
21965
21966
|
originalName: file.name,
|
|
@@ -21986,6 +21987,7 @@ function ImageUpload({
|
|
|
21986
21987
|
type: "success",
|
|
21987
21988
|
message: `"${file.name}" uploaded successfully`
|
|
21988
21989
|
});
|
|
21990
|
+
idCount++;
|
|
21989
21991
|
}
|
|
21990
21992
|
} catch (error) {
|
|
21991
21993
|
console.error("Upload error:", error);
|