@moontra/moonui 5.1.0 → 6.0.0
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/hooks/index.global.js.map +1 -1
- package/dist/index.d.mts +29 -2
- package/dist/index.d.ts +29 -2
- package/dist/index.global.js +41 -354
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/lib/theme.global.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/__tests__/file-upload.test.tsx +69 -0
- package/src/components/ui/file-upload.tsx +39 -5
- package/src/components/ui/index.ts +1 -0
- package/src/styles/tokens.css +18 -4
package/dist/index.js
CHANGED
|
@@ -4842,6 +4842,7 @@ var FileItem = ({
|
|
|
4842
4842
|
size: "sm",
|
|
4843
4843
|
className: "h-6 w-6 p-0",
|
|
4844
4844
|
onClick: () => onRemove(id),
|
|
4845
|
+
"aria-label": `Remove ${file.name}`,
|
|
4845
4846
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-3 w-3" })
|
|
4846
4847
|
}
|
|
4847
4848
|
)
|
|
@@ -4951,7 +4952,7 @@ var FileUpload = React24__namespace.default.forwardRef(
|
|
|
4951
4952
|
}
|
|
4952
4953
|
if (onUpload) {
|
|
4953
4954
|
try {
|
|
4954
|
-
await onUpload(
|
|
4955
|
+
await onUpload(newUploadedFiles);
|
|
4955
4956
|
} catch (error2) {
|
|
4956
4957
|
console.error("Upload failed:", error2);
|
|
4957
4958
|
setUploadedFiles(
|