ywana-core8 0.0.888 → 0.0.890

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.888",
3
+ "version": "0.0.890",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -5,9 +5,10 @@ import './Explorer.css'
5
5
  /**
6
6
  * File Explorer
7
7
  */
8
- const FileExplorer = (props) => {
8
+ export const FileExplorer = (props) => {
9
9
 
10
- const [selectedFolder, setSelectedFolder] = useState("10002")
10
+ const { files = [], folders = [] } = props
11
+ const [selectedFolder, setSelectedFolder] = useState()
11
12
  const [selectedFile, setSelectedFile] = useState()
12
13
  const [search, setSearch] = useState()
13
14
 
@@ -131,7 +132,7 @@ export const FilesGridView = (props) => {
131
132
  /**
132
133
  * File Grid Item
133
134
  */
134
- const FileGridItem = (props) => {
135
+ export const FileGridItem = (props) => {
135
136
 
136
137
  const { file = {}, selected = false, onSelect } = props
137
138
  const { id, icon, title, subtitle, actions = [], src = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQkAPtY9GS4QgwAjRUSvLaa6TP4fSlQkVDqEg&usqp=CAU", footer } = file
@@ -154,7 +155,7 @@ const FileGridItem = (props) => {
154
155
  )
155
156
  }
156
157
 
157
- const FilesTableView = (props) => {
158
+ export const FilesTableView = (props) => {
158
159
 
159
160
  const { files = [], selected, onSelect } = props
160
161