@jfvilas/react-file-manager 1.0.4 → 1.0.5
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 +3 -3
- package/dist/react-file-manager.es.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ This project is forked from [this fantastic project](https://github.com/Saifulla
|
|
|
26
26
|
To install `React File Manager`, use the following command:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm i @
|
|
29
|
+
npm i @jfvilas/react-file-manager
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## 💻 Usage
|
|
@@ -35,8 +35,8 @@ Here’s a basic example of how to use the File Manager Component in your React
|
|
|
35
35
|
|
|
36
36
|
```jsx
|
|
37
37
|
import { useState } from "react";
|
|
38
|
-
import { FileManager } from "@
|
|
39
|
-
import "@
|
|
38
|
+
import { FileManager } from "@jfvilas/react-file-manager";
|
|
39
|
+
import "@jfvilas/react-file-manager/dist/style.css";
|
|
40
40
|
|
|
41
41
|
function App() {
|
|
42
42
|
const [files, setFiles] = useState([
|
|
@@ -3251,8 +3251,8 @@ const An = ({ folder: n, onFileOpen: e, icons: t }) => {
|
|
|
3251
3251
|
/* @__PURE__ */ k("div", { className: "sb-folder-details", children: [
|
|
3252
3252
|
o ? (
|
|
3253
3253
|
//{isOpen || isActive ? (
|
|
3254
|
-
n.class && t && t.get(n.class) ? t.get(n.class)
|
|
3255
|
-
) : n.class && t && t.get(n.class) ? t.get(n.class)
|
|
3254
|
+
n.class && t && t.get(n.class) ? t.get(n.class).open : /* @__PURE__ */ d(Kt, { size: 20, className: "folder-open-icon" })
|
|
3255
|
+
) : n.class && t && t.get(n.class) ? t.get(n.class).closed : /* @__PURE__ */ d(qt, { size: 17, className: "folder-close-icon" }),
|
|
3256
3256
|
/* @__PURE__ */ d("span", { className: "sb-folder-name", title: n.name, children: n.name })
|
|
3257
3257
|
] })
|
|
3258
3258
|
]
|
|
@@ -3267,7 +3267,7 @@ const An = ({ folder: n, onFileOpen: e, icons: t }) => {
|
|
|
3267
3267
|
children: [
|
|
3268
3268
|
/* @__PURE__ */ d("span", { className: "non-expanable" }),
|
|
3269
3269
|
/* @__PURE__ */ k("div", { className: "sb-folder-details", children: [
|
|
3270
|
-
s ? n.class && t && t.get(n.class) ? t.get(n.class)
|
|
3270
|
+
s ? n.class && t && t.get(n.class) ? t.get(n.class).open : /* @__PURE__ */ d(Kt, { size: 20, className: "folder-open-icon" }) : n.class && t && t.get(n.class) ? t.get(n.class).closed : /* @__PURE__ */ d(qt, { size: 17, className: "folder-close-icon" }),
|
|
3271
3271
|
/* @__PURE__ */ d("span", { className: "sb-folder-name", title: n.name, children: n.name })
|
|
3272
3272
|
] })
|
|
3273
3273
|
]
|