@vryzel/file-next-ui 0.5.2 → 0.6.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/README.md +1 -1
- package/dist/index.cjs +46 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +47 -27
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ What you get with `FileExplorer`:
|
|
|
73
73
|
- List / grid, sort, persisted view (`persistViewKey`)
|
|
74
74
|
- Search, trash, upload (multi-file + OS drop)
|
|
75
75
|
- New folder / rename in place (Enter or blur saves, Escape cancels)
|
|
76
|
-
- Multi-select, shift-click, ⌘A, copy/paste, drag onto folders
|
|
76
|
+
- Multi-select, shift-click, ⌘A, deselect all from the selection toast, copy/paste, drag onto folders
|
|
77
77
|
- Pagination (`limit` 50 + Load more)
|
|
78
78
|
- Quota footer, selection toast, upload queue
|
|
79
79
|
|
package/dist/index.cjs
CHANGED
|
@@ -1448,33 +1448,51 @@ function SelectionActions({
|
|
|
1448
1448
|
}
|
|
1449
1449
|
)
|
|
1450
1450
|
] }),
|
|
1451
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1452
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1453
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1454
|
-
|
|
1451
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
1452
|
+
trashOpen ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1453
|
+
/* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: btn2, onClick: onRestore, children: [
|
|
1454
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCcw, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1455
|
+
labels.restore
|
|
1456
|
+
] }),
|
|
1457
|
+
onPurge ? /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: cn(btn2, "text-destructive"), onClick: onPurge, children: [
|
|
1458
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1459
|
+
labels.deleteForever
|
|
1460
|
+
] }) : null
|
|
1461
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1462
|
+
onDownload && downloadable.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: btn2, onClick: () => downloadable.forEach(onDownload), children: [
|
|
1463
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Download, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1464
|
+
labels.download
|
|
1465
|
+
] }) : null,
|
|
1466
|
+
onCopy ? /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: btn2, onClick: onCopy, children: [
|
|
1467
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1468
|
+
labels.copy
|
|
1469
|
+
] }) : null,
|
|
1470
|
+
onShare && downloadable.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: btn2, onClick: onShare, children: [
|
|
1471
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1472
|
+
labels.share
|
|
1473
|
+
] }) : null,
|
|
1474
|
+
/* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", disabled: hasProtected, className: cn(btn2, "text-destructive"), onClick: onDelete, children: [
|
|
1475
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1476
|
+
labels.moveToTrash
|
|
1477
|
+
] })
|
|
1455
1478
|
] }),
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
/* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", disabled: hasProtected, className: cn(btn2, "text-destructive"), onClick: onDelete, children: [
|
|
1474
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1475
|
-
labels.moveToTrash
|
|
1476
|
-
] })
|
|
1477
|
-
] }) })
|
|
1479
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1480
|
+
"button",
|
|
1481
|
+
{
|
|
1482
|
+
type: "button",
|
|
1483
|
+
className: btn2,
|
|
1484
|
+
onClick: (event) => {
|
|
1485
|
+
event.stopPropagation();
|
|
1486
|
+
swallowClickThrough();
|
|
1487
|
+
onClear();
|
|
1488
|
+
},
|
|
1489
|
+
children: [
|
|
1490
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ListX, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1491
|
+
labels.clearSelection
|
|
1492
|
+
]
|
|
1493
|
+
}
|
|
1494
|
+
)
|
|
1495
|
+
] })
|
|
1478
1496
|
] });
|
|
1479
1497
|
}
|
|
1480
1498
|
function ExplorerClipboardToast({
|
|
@@ -2873,6 +2891,8 @@ function FilePreviewDialog({
|
|
|
2873
2891
|
{
|
|
2874
2892
|
src,
|
|
2875
2893
|
title: file.name,
|
|
2894
|
+
sandbox: "",
|
|
2895
|
+
referrerPolicy: "no-referrer",
|
|
2876
2896
|
className: "h-full w-full max-w-5xl bg-white",
|
|
2877
2897
|
onClick: stop
|
|
2878
2898
|
}
|