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/dist/index.cjs +64 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +62 -11
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +64 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/explorer/Explorer.js +5 -4
package/package.json
CHANGED
@@ -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 [
|
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
|
|