@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 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 @cubone/react-file-manager
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 "@cubone/react-file-manager";
39
- import "@cubone/react-file-manager/dist/style.css";
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)[1] : /* @__PURE__ */ d(Kt, { size: 20, className: "folder-open-icon" })
3255
- ) : n.class && t && t.get(n.class) ? t.get(n.class)[0] : /* @__PURE__ */ d(qt, { size: 17, className: "folder-close-icon" }),
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)[1] : /* @__PURE__ */ d(Kt, { size: 20, className: "folder-open-icon" }) : n.class && t && t.get(n.class) ? t.get(n.class)[0] : /* @__PURE__ */ d(qt, { size: 17, className: "folder-close-icon" }),
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
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jfvilas/react-file-manager",
3
3
  "private": false,
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "type": "module",
6
6
  "module": "dist/react-file-manager.es.js",
7
7
  "files": [