@makolabs/ripple 0.0.1-dev.72 → 0.0.1-dev.74
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.
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
adapter,
|
|
17
17
|
startPath = '',
|
|
18
18
|
actions = [],
|
|
19
|
-
infoSection
|
|
19
|
+
infoSection,
|
|
20
|
+
selectedFiles = $bindable([])
|
|
20
21
|
} = $props<{
|
|
21
22
|
adapter: StorageAdapter;
|
|
22
23
|
startPath?: string;
|
|
23
24
|
actions?: FileAction[];
|
|
25
|
+
selectedFiles?: string[];
|
|
24
26
|
infoSection?: (props: {
|
|
25
27
|
selectedFiles: string[];
|
|
26
28
|
navToFileFolder: (fileKey: string) => void;
|
|
@@ -36,8 +38,6 @@
|
|
|
36
38
|
let breadcrumbs = $state<Breadcrumb[]>([]);
|
|
37
39
|
let searchQuery = $state('');
|
|
38
40
|
|
|
39
|
-
let selectedFiles = $state<string[]>([]);
|
|
40
|
-
|
|
41
41
|
let sortState = $state<{ column: string | null; direction: 'asc' | 'desc' | 'default' | null }>({
|
|
42
42
|
column: null,
|
|
43
43
|
direction: null
|
|
@@ -3,11 +3,12 @@ type $$ComponentProps = {
|
|
|
3
3
|
adapter: StorageAdapter;
|
|
4
4
|
startPath?: string;
|
|
5
5
|
actions?: FileAction[];
|
|
6
|
+
selectedFiles?: string[];
|
|
6
7
|
infoSection?: (props: {
|
|
7
8
|
selectedFiles: string[];
|
|
8
9
|
navToFileFolder: (fileKey: string) => void;
|
|
9
10
|
}) => any;
|
|
10
11
|
};
|
|
11
|
-
declare const FileBrowser: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
12
|
+
declare const FileBrowser: import("svelte").Component<$$ComponentProps, {}, "selectedFiles">;
|
|
12
13
|
type FileBrowser = ReturnType<typeof FileBrowser>;
|
|
13
14
|
export default FileBrowser;
|
package/dist/index.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ export type MakeModalProps = {
|
|
|
56
56
|
closeOnBackdropClick?: boolean;
|
|
57
57
|
closeOnEsc?: boolean;
|
|
58
58
|
position?: 'top' | 'center' | 'bottom';
|
|
59
|
-
size?: VariantSizes;
|
|
60
59
|
class?: string;
|
|
61
60
|
backdropclass?: string;
|
|
62
61
|
contentclass?: string;
|
|
@@ -845,3 +844,13 @@ export type CompactFiltersProps = {
|
|
|
845
844
|
export { CompactFilters } from './filters/index.js';
|
|
846
845
|
export * from './file-browser/index.js';
|
|
847
846
|
export * from './adapters/storage/index.js';
|
|
847
|
+
export interface FileBrowserProps {
|
|
848
|
+
adapter: any;
|
|
849
|
+
startPath?: string;
|
|
850
|
+
actions?: any[];
|
|
851
|
+
selectedFiles?: string[];
|
|
852
|
+
infoSection?: (props: {
|
|
853
|
+
selectedFiles: string[];
|
|
854
|
+
navToFileFolder: (fileKey: string) => void;
|
|
855
|
+
}) => any;
|
|
856
|
+
}
|
package/dist/modal/Modal.svelte
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
title,
|
|
14
14
|
description,
|
|
15
15
|
position = 'center',
|
|
16
|
-
size = 'lg',
|
|
17
16
|
children,
|
|
18
17
|
header,
|
|
19
18
|
custom,
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
modal({
|
|
41
40
|
open,
|
|
42
41
|
position,
|
|
43
|
-
size
|
|
44
42
|
})
|
|
45
43
|
);
|
|
46
44
|
|
|
@@ -63,6 +61,8 @@
|
|
|
63
61
|
if (e.key === 'Escape' && open) {
|
|
64
62
|
onClose();
|
|
65
63
|
}
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
e.stopPropagation();
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
function handleCloseClick() {
|