@floegence/floe-webapp-core 0.1.2 → 0.1.7
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/components/file-browser/Breadcrumb.d.ts +7 -0
- package/dist/components/file-browser/DirectoryTree.d.ts +7 -0
- package/dist/components/file-browser/FileBrowser.d.ts +35 -0
- package/dist/components/file-browser/FileBrowserContext.d.ts +18 -0
- package/dist/components/file-browser/FileBrowserToolbar.d.ts +8 -0
- package/dist/components/file-browser/FileContextMenu.d.ts +15 -0
- package/dist/components/file-browser/FileGridView.d.ts +7 -0
- package/dist/components/file-browser/FileIcons.d.ts +14 -0
- package/dist/components/file-browser/FileListView.d.ts +7 -0
- package/dist/components/file-browser/index.d.ts +10 -0
- package/dist/components/file-browser/types.d.ts +104 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/layout/Sidebar.d.ts +18 -0
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/mobileTabs.d.ts +30 -0
- package/dist/context/ComponentRegistry.d.ts +3 -2
- package/dist/index.js +249 -220
- package/dist/index10.js +2 -2
- package/dist/index11.js +4 -4
- package/dist/index12.js +2 -2
- package/dist/index13.js +4 -4
- package/dist/index14.js +4 -4
- package/dist/index15.js +4 -4
- package/dist/index16.js +3 -3
- package/dist/index17.js +5 -5
- package/dist/index18.js +2 -2
- package/dist/index19.js +1 -1
- package/dist/index2.js +89 -70
- package/dist/index20.js +1 -1
- package/dist/index21.js +3 -3
- package/dist/index22.js +2 -2
- package/dist/index23.js +2 -2
- package/dist/index24.js +1 -1
- package/dist/index25.js +4 -4
- package/dist/index26.js +1 -1
- package/dist/index27.js +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.js +1 -1
- package/dist/index3.js +1 -1
- package/dist/index36.js +138 -42
- package/dist/index37.js +102 -32
- package/dist/index38.js +90 -23
- package/dist/index39.js +107 -170
- package/dist/index4.js +48 -34
- package/dist/index40.js +86 -40
- package/dist/index41.js +176 -64
- package/dist/index42.js +64 -94
- package/dist/index43.js +64 -110
- package/dist/index44.js +39 -138
- package/dist/index45.js +44 -35
- package/dist/index46.js +34 -379
- package/dist/index47.js +25 -13
- package/dist/index48.js +173 -10
- package/dist/index49.js +40 -16
- package/dist/index5.js +3 -3
- package/dist/index50.js +65 -9
- package/dist/index51.js +96 -8
- package/dist/index52.js +113 -52
- package/dist/index53.js +138 -5
- package/dist/index54.js +39 -3
- package/dist/index55.js +382 -44
- package/dist/index56.js +13 -26
- package/dist/index57.js +10 -32
- package/dist/index58.js +17 -92
- package/dist/index59.js +10 -22
- package/dist/index6.js +2 -2
- package/dist/index60.js +8 -46
- package/dist/index61.js +56 -14
- package/dist/index62.js +5 -35
- package/dist/index63.js +3 -64
- package/dist/index64.js +45 -84
- package/dist/index65.js +25 -13
- package/dist/index66.js +27 -2258
- package/dist/index67.js +94 -0
- package/dist/index68.js +25 -0
- package/dist/index69.js +49 -0
- package/dist/index7.js +1 -1
- package/dist/index70.js +17 -0
- package/dist/index71.js +38 -0
- package/dist/index72.js +67 -0
- package/dist/index73.js +87 -0
- package/dist/index74.js +17 -0
- package/dist/index75.js +2266 -0
- package/dist/index76.js +10 -0
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index2.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { delegateEvents as z, template as f, insert as a, createComponent as n, Dynamic as
|
|
2
|
-
import { createSignal as
|
|
3
|
-
import { useLayout as
|
|
4
|
-
import { useResolvedFloeConfig as
|
|
5
|
-
import { useMediaQuery as P } from "./
|
|
6
|
-
import { cn as
|
|
7
|
-
import { useComponentRegistry as W } from "./
|
|
1
|
+
import { delegateEvents as z, template as f, insert as a, createComponent as n, Dynamic as w, memo as v, effect as C, className as T, setStyleProperty as O } from "solid-js/web";
|
|
2
|
+
import { createSignal as F, createEffect as h, createMemo as $, For as x, Show as b } from "solid-js";
|
|
3
|
+
import { useLayout as R } from "./index50.js";
|
|
4
|
+
import { useResolvedFloeConfig as H } from "./index48.js";
|
|
5
|
+
import { useMediaQuery as P } from "./index56.js";
|
|
6
|
+
import { cn as A } from "./index62.js";
|
|
7
|
+
import { useComponentRegistry as W } from "./index53.js";
|
|
8
8
|
import { Sidebar as E } from "./index4.js";
|
|
9
9
|
import { TopBar as Q } from "./index5.js";
|
|
10
10
|
import { BottomBar as D } from "./index6.js";
|
|
11
11
|
import { MobileTabBar as L } from "./index7.js";
|
|
12
12
|
import { ActivityBar as N } from "./index3.js";
|
|
13
|
-
import { ResizeHandle as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
import { ResizeHandle as _ } from "./index8.js";
|
|
14
|
+
import { resolveMobileTabActiveId as j, resolveMobileTabSelect as q } from "./index76.js";
|
|
15
|
+
var y = /* @__PURE__ */ f('<div class="flex items-center gap-2">'), G = /* @__PURE__ */ f('<div class="absolute inset-0 z-40 bg-black/30 cursor-pointer">'), J = /* @__PURE__ */ f('<div><div class="h-full overflow-auto overscroll-contain">'), K = /* @__PURE__ */ f('<div class="relative shrink-0 border-t border-border bg-terminal-background overflow-hidden">'), U = /* @__PURE__ */ f('<div><div class="flex-1 min-h-0 flex overflow-hidden relative"><div class="flex-1 min-w-0 flex flex-col overflow-hidden"><main class="flex-1 min-h-0 overflow-auto overscroll-contain">');
|
|
16
|
+
function de(l) {
|
|
17
|
+
const r = R(), M = H(), d = P(M.config.layout.mobileQuery), [p, g] = F(!1), s = (() => {
|
|
17
18
|
try {
|
|
18
19
|
return W();
|
|
19
20
|
} catch {
|
|
20
21
|
return null;
|
|
21
22
|
}
|
|
22
23
|
})();
|
|
23
|
-
|
|
24
|
-
const e =
|
|
24
|
+
h(() => {
|
|
25
|
+
const e = d();
|
|
25
26
|
r.isMobile() !== e && r.setIsMobile(e);
|
|
26
|
-
}),
|
|
27
|
-
|
|
27
|
+
}), h(() => {
|
|
28
|
+
d() || g(!1);
|
|
28
29
|
});
|
|
29
|
-
const u = $(() =>
|
|
30
|
+
const u = $(() => l.activityItems ? l.activityItems : s ? s.sidebarItems().filter((e) => !!e.icon).filter((e) => {
|
|
30
31
|
var t;
|
|
31
|
-
return !(
|
|
32
|
+
return !(d() && ((t = e.sidebar) != null && t.hiddenOnMobile));
|
|
32
33
|
}).map((e) => {
|
|
33
34
|
var t;
|
|
34
35
|
return {
|
|
@@ -37,71 +38,85 @@ function ae(o) {
|
|
|
37
38
|
label: e.name,
|
|
38
39
|
badge: (t = e.sidebar) == null ? void 0 : t.badge
|
|
39
40
|
};
|
|
40
|
-
}) : []),
|
|
41
|
-
if (
|
|
42
|
-
if (!
|
|
43
|
-
const t =
|
|
41
|
+
}) : []), I = (e) => {
|
|
42
|
+
if (l.sidebarContent) return l.sidebarContent(e);
|
|
43
|
+
if (!s) return;
|
|
44
|
+
const t = s.getComponent(e);
|
|
44
45
|
if (t != null && t.sidebar && !t.sidebar.fullScreen)
|
|
45
|
-
return n(
|
|
46
|
+
return n(w, {
|
|
46
47
|
get component() {
|
|
47
48
|
return t.component;
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
|
-
},
|
|
51
|
+
}, S = $(() => {
|
|
51
52
|
var t;
|
|
52
|
-
if (!
|
|
53
|
-
const e =
|
|
53
|
+
if (!s) return !1;
|
|
54
|
+
const e = s.getComponent(r.sidebarActiveTab());
|
|
54
55
|
return ((t = e == null ? void 0 : e.sidebar) == null ? void 0 : t.fullScreen) ?? !1;
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
});
|
|
57
|
+
h(() => {
|
|
58
|
+
d() && S() && g(!1);
|
|
59
|
+
});
|
|
60
|
+
const B = $(() => {
|
|
61
|
+
if (l.bottomBarItems) return l.bottomBarItems;
|
|
62
|
+
if (!s) return;
|
|
63
|
+
const e = [...s.statusBarItems()].sort((o, i) => (o.order ?? 100) - (i.order ?? 100)), t = e.filter((o) => o.position === "left"), c = e.filter((o) => o.position === "right");
|
|
59
64
|
return [(() => {
|
|
60
|
-
var
|
|
61
|
-
return a(
|
|
65
|
+
var o = y();
|
|
66
|
+
return a(o, n(x, {
|
|
62
67
|
each: t,
|
|
63
|
-
children: (i) => n(
|
|
68
|
+
children: (i) => n(w, {
|
|
64
69
|
get component() {
|
|
65
70
|
return i.component;
|
|
66
71
|
}
|
|
67
72
|
})
|
|
68
|
-
})),
|
|
73
|
+
})), o;
|
|
69
74
|
})(), (() => {
|
|
70
|
-
var
|
|
71
|
-
return a(
|
|
75
|
+
var o = y();
|
|
76
|
+
return a(o, n(x, {
|
|
72
77
|
each: c,
|
|
73
|
-
children: (i) => n(
|
|
78
|
+
children: (i) => n(w, {
|
|
74
79
|
get component() {
|
|
75
80
|
return i.component;
|
|
76
81
|
}
|
|
77
82
|
})
|
|
78
|
-
})),
|
|
83
|
+
})), o;
|
|
79
84
|
})()];
|
|
80
85
|
});
|
|
81
|
-
|
|
86
|
+
h(() => {
|
|
82
87
|
const e = u();
|
|
83
88
|
if (!e.length) return;
|
|
84
89
|
const t = r.sidebarActiveTab();
|
|
85
90
|
(!t || !e.some((c) => c.id === t)) && r.setSidebarActiveTab(e[0].id);
|
|
86
91
|
});
|
|
87
92
|
const k = (e) => {
|
|
88
|
-
|
|
93
|
+
var i, m;
|
|
94
|
+
const t = ((m = (i = s == null ? void 0 : s.getComponent(e)) == null ? void 0 : i.sidebar) == null ? void 0 : m.fullScreen) ?? !1, {
|
|
95
|
+
nextActiveId: c,
|
|
96
|
+
nextMobileSidebarOpen: o
|
|
97
|
+
} = q({
|
|
98
|
+
clickedId: e,
|
|
99
|
+
activeId: r.sidebarActiveTab(),
|
|
100
|
+
mobileSidebarOpen: p(),
|
|
101
|
+
clickedIsFullScreen: t
|
|
102
|
+
});
|
|
103
|
+
r.sidebarActiveTab() !== c && r.setSidebarActiveTab(c), g(o);
|
|
89
104
|
};
|
|
90
105
|
return (() => {
|
|
91
|
-
var e =
|
|
106
|
+
var e = U(), t = e.firstChild, c = t.firstChild, o = c.firstChild;
|
|
92
107
|
return a(e, n(Q, {
|
|
93
108
|
get logo() {
|
|
94
|
-
return
|
|
109
|
+
return l.logo;
|
|
95
110
|
},
|
|
96
111
|
get actions() {
|
|
97
|
-
return
|
|
112
|
+
return l.topBarActions;
|
|
98
113
|
}
|
|
99
|
-
}), t), a(t, n(
|
|
114
|
+
}), t), a(t, n(b, {
|
|
100
115
|
get when() {
|
|
101
|
-
return !
|
|
116
|
+
return !d();
|
|
102
117
|
},
|
|
103
118
|
get children() {
|
|
104
|
-
return [n(
|
|
119
|
+
return [n(b, {
|
|
105
120
|
get when() {
|
|
106
121
|
return u().length > 0;
|
|
107
122
|
},
|
|
@@ -111,7 +126,7 @@ function ae(o) {
|
|
|
111
126
|
return u();
|
|
112
127
|
},
|
|
113
128
|
get bottomItems() {
|
|
114
|
-
return
|
|
129
|
+
return l.activityBottomItems;
|
|
115
130
|
},
|
|
116
131
|
get activeId() {
|
|
117
132
|
return r.sidebarActiveTab();
|
|
@@ -127,9 +142,9 @@ function ae(o) {
|
|
|
127
142
|
}
|
|
128
143
|
});
|
|
129
144
|
}
|
|
130
|
-
}), n(
|
|
145
|
+
}), n(b, {
|
|
131
146
|
get when() {
|
|
132
|
-
return
|
|
147
|
+
return v(() => !r.sidebarCollapsed())() && !S();
|
|
133
148
|
},
|
|
134
149
|
get children() {
|
|
135
150
|
return n(E, {
|
|
@@ -137,56 +152,56 @@ function ae(o) {
|
|
|
137
152
|
return r.sidebarWidth();
|
|
138
153
|
},
|
|
139
154
|
get resizer() {
|
|
140
|
-
return n(
|
|
155
|
+
return n(_, {
|
|
141
156
|
direction: "horizontal",
|
|
142
157
|
onResize: (i) => r.setSidebarWidth(r.sidebarWidth() + i)
|
|
143
158
|
});
|
|
144
159
|
},
|
|
145
160
|
get children() {
|
|
146
|
-
return
|
|
161
|
+
return I(r.sidebarActiveTab());
|
|
147
162
|
}
|
|
148
163
|
});
|
|
149
164
|
}
|
|
150
165
|
})];
|
|
151
166
|
}
|
|
152
|
-
}), c), a(t, n(
|
|
167
|
+
}), c), a(t, n(b, {
|
|
153
168
|
get when() {
|
|
154
|
-
return
|
|
169
|
+
return v(() => !!d())() && p();
|
|
155
170
|
},
|
|
156
171
|
get children() {
|
|
157
172
|
return [(() => {
|
|
158
|
-
var i =
|
|
173
|
+
var i = G();
|
|
159
174
|
return i.$$click = () => g(!1), i;
|
|
160
175
|
})(), (() => {
|
|
161
|
-
var i =
|
|
162
|
-
return a(
|
|
176
|
+
var i = J(), m = i.firstChild;
|
|
177
|
+
return a(m, () => I(r.sidebarActiveTab())), C(() => T(i, A("absolute left-0 top-0 bottom-0 z-50", "w-72 max-w-[80vw]", "bg-sidebar border-r border-sidebar-border", "shadow-xl", "animate-in slide-in-from-left duration-200"))), i;
|
|
163
178
|
})()];
|
|
164
179
|
}
|
|
165
|
-
}), c), a(
|
|
180
|
+
}), c), a(o, () => l.children), a(c, n(b, {
|
|
166
181
|
get when() {
|
|
167
|
-
return
|
|
182
|
+
return v(() => !!(!d() && r.terminalOpened()))() && l.terminalPanel;
|
|
168
183
|
},
|
|
169
184
|
get children() {
|
|
170
|
-
var i =
|
|
171
|
-
return a(i, n(
|
|
185
|
+
var i = K();
|
|
186
|
+
return a(i, n(_, {
|
|
172
187
|
direction: "vertical",
|
|
173
|
-
onResize: (
|
|
174
|
-
}), null), a(i, () =>
|
|
188
|
+
onResize: (m) => r.setTerminalHeight(r.terminalHeight() - m)
|
|
189
|
+
}), null), a(i, () => l.terminalPanel, null), C((m) => O(i, "height", `${r.terminalHeight()}px`)), i;
|
|
175
190
|
}
|
|
176
|
-
}), null), a(e, n(
|
|
191
|
+
}), null), a(e, n(b, {
|
|
177
192
|
get when() {
|
|
178
|
-
return !
|
|
193
|
+
return !d();
|
|
179
194
|
},
|
|
180
195
|
get children() {
|
|
181
196
|
return n(D, {
|
|
182
197
|
get children() {
|
|
183
|
-
return
|
|
198
|
+
return B();
|
|
184
199
|
}
|
|
185
200
|
});
|
|
186
201
|
}
|
|
187
|
-
}), null), a(e, n(
|
|
202
|
+
}), null), a(e, n(b, {
|
|
188
203
|
get when() {
|
|
189
|
-
return
|
|
204
|
+
return v(() => !!d())() && u().length > 0;
|
|
190
205
|
},
|
|
191
206
|
get children() {
|
|
192
207
|
return n(L, {
|
|
@@ -194,22 +209,26 @@ function ae(o) {
|
|
|
194
209
|
return u();
|
|
195
210
|
},
|
|
196
211
|
get activeId() {
|
|
197
|
-
return
|
|
212
|
+
return j({
|
|
213
|
+
activeId: r.sidebarActiveTab(),
|
|
214
|
+
mobileSidebarOpen: p(),
|
|
215
|
+
activeIsFullScreen: S()
|
|
216
|
+
});
|
|
198
217
|
},
|
|
199
218
|
onSelect: k
|
|
200
219
|
});
|
|
201
220
|
}
|
|
202
|
-
}), null),
|
|
221
|
+
}), null), C(() => T(e, A(
|
|
203
222
|
// Use dvh when supported to avoid mobile browser UI causing layout jumps.
|
|
204
223
|
"h-screen h-[100dvh] w-full flex flex-col overflow-hidden",
|
|
205
224
|
"bg-background text-foreground",
|
|
206
225
|
// Prevent overscroll on the shell container
|
|
207
226
|
"overscroll-none",
|
|
208
|
-
|
|
227
|
+
l.class
|
|
209
228
|
))), e;
|
|
210
229
|
})();
|
|
211
230
|
}
|
|
212
231
|
z(["click"]);
|
|
213
232
|
export {
|
|
214
|
-
|
|
233
|
+
de as Shell
|
|
215
234
|
};
|
package/dist/index20.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { template as n, insert as o, createComponent as s, spread as c, mergeProps as d } from "solid-js/web";
|
|
2
2
|
import { splitProps as g, Show as i } from "solid-js";
|
|
3
|
-
import { cn as p } from "./
|
|
3
|
+
import { cn as p } from "./index62.js";
|
|
4
4
|
var m = /* @__PURE__ */ n('<div class="absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none">'), h = /* @__PURE__ */ n('<div class="absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none">'), f = /* @__PURE__ */ n('<p class="mt-1 text-[11px] text-error">'), x = /* @__PURE__ */ n("<div class=relative><input>"), b = /* @__PURE__ */ n("<div><textarea>");
|
|
5
5
|
const v = {
|
|
6
6
|
sm: "h-7 text-xs px-2",
|
package/dist/index21.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { delegateEvents as E, createComponent as o, Portal as _, template as c, insert as l, effect as b, setAttribute as v, className as D, use as T } from "solid-js/web";
|
|
2
2
|
import { createUniqueId as O, createEffect as $, onCleanup as x, Show as s } from "solid-js";
|
|
3
|
-
import { cn as L } from "./
|
|
3
|
+
import { cn as L } from "./index62.js";
|
|
4
4
|
import { Button as y } from "./index19.js";
|
|
5
5
|
import { X as z } from "./index30.js";
|
|
6
|
-
import { lockBodyStyle as F } from "./
|
|
7
|
-
import { useResolvedFloeConfig as I } from "./
|
|
6
|
+
import { lockBodyStyle as F } from "./index66.js";
|
|
7
|
+
import { useResolvedFloeConfig as I } from "./index48.js";
|
|
8
8
|
var j = /* @__PURE__ */ c('<div class="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm animate-in fade-in cursor-pointer">'), H = /* @__PURE__ */ c('<h2 class="text-sm font-semibold">'), M = /* @__PURE__ */ c('<p class="mt-0.5 text-xs text-muted-foreground">'), S = /* @__PURE__ */ c('<div class="flex items-start justify-between p-3 border-b border-border"><div>'), q = /* @__PURE__ */ c('<div class="flex items-center justify-end gap-2 p-3 border-t border-border">'), A = /* @__PURE__ */ c('<div role=dialog aria-modal=true tabindex=-1><div class="flex-1 overflow-auto p-3">'), B = /* @__PURE__ */ c("<div>");
|
|
9
9
|
function k(e) {
|
|
10
10
|
const a = ["a[href]", "button:not([disabled])", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])", '[tabindex]:not([tabindex="-1"])', '[contenteditable="true"]'].join(",");
|
package/dist/index22.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { delegateEvents as ve, createComponent as l, Portal as ze, template as D, insert as f, effect as s, setAttribute as oe, addEventListener as m, className as a, memo as be, setStyleProperty as E, use as ye } from "solid-js/web";
|
|
2
2
|
import { createUniqueId as pe, createSignal as M, onMount as Se, createEffect as le, onCleanup as Me, Show as W } from "solid-js";
|
|
3
|
-
import { cn as q } from "./
|
|
3
|
+
import { cn as q } from "./index62.js";
|
|
4
4
|
import { Button as se } from "./index19.js";
|
|
5
5
|
import { Restore as $e, Maximize as Pe, X as Ie } from "./index30.js";
|
|
6
|
-
import { lockBodyStyle as Ce } from "./
|
|
6
|
+
import { lockBodyStyle as Ce } from "./index66.js";
|
|
7
7
|
var _e = /* @__PURE__ */ D('<h2 class="text-sm font-medium truncate select-none">'), Ee = /* @__PURE__ */ D('<div class="flex items-center justify-end gap-2 p-3 border-t border-border">'), x = /* @__PURE__ */ D("<div style=touch-action:none>"), We = /* @__PURE__ */ D('<div role=dialog aria-modal=true><div style=touch-action:none><div class="flex-1 min-w-0"></div><div class="flex items-center gap-0.5 -mr-1"></div></div><div class="flex-1 overflow-auto p-3">');
|
|
8
8
|
function Fe(i) {
|
|
9
9
|
const T = () => i.resizable ?? !0, U = () => i.draggable ?? !0, H = () => i.minSize ?? {
|
package/dist/index23.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { delegateEvents as k, template as f, insert as s, createComponent as d, effect as b, className as g, use as x } from "solid-js/web";
|
|
2
2
|
import { createSignal as _, createEffect as p, onCleanup as C, Show as h, For as S } from "solid-js";
|
|
3
|
-
import { cn as v } from "./
|
|
4
|
-
import { deferNonBlocking as E } from "./
|
|
3
|
+
import { cn as v } from "./index62.js";
|
|
4
|
+
import { deferNonBlocking as E } from "./index63.js";
|
|
5
5
|
import { ChevronDown as L, Check as j } from "./index30.js";
|
|
6
6
|
var D = /* @__PURE__ */ f("<div role=menu>"), O = /* @__PURE__ */ f("<div><div class=cursor-pointer>"), N = /* @__PURE__ */ f('<div class="my-1 h-px bg-border"role=separator>'), R = /* @__PURE__ */ f('<button type=button role=menuitem><span class="w-3.5 h-3.5 flex items-center justify-center"></span><span class="flex-1 text-left">'), z = /* @__PURE__ */ f('<span class="w-3.5 h-3.5 flex items-center justify-center">'), B = /* @__PURE__ */ f("<button type=button><span>");
|
|
7
7
|
function F(e) {
|
package/dist/index24.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { delegateEvents as x, template as b, insert as n, createComponent as g, effect as y, className as u } from "solid-js/web";
|
|
2
2
|
import { createSignal as w, Show as $ } from "solid-js";
|
|
3
|
-
import { cn as m } from "./
|
|
3
|
+
import { cn as m } from "./index62.js";
|
|
4
4
|
var S = /* @__PURE__ */ b("<div role=tooltip><div>"), E = /* @__PURE__ */ b('<div class="relative inline-block">');
|
|
5
5
|
function C(e) {
|
|
6
6
|
const [c, a] = w(!1);
|
package/dist/index25.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { delegateEvents as M, createComponent as i, Portal as O, template as c, insert as l, use as L, Dynamic as z, effect as y, className as C, setAttribute as F } from "solid-js/web";
|
|
2
2
|
import { createSignal as I, createEffect as w, onCleanup as S, createMemo as K, Show as g, For as D } from "solid-js";
|
|
3
|
-
import { cn as E } from "./
|
|
4
|
-
import { useCommand as R } from "./
|
|
3
|
+
import { cn as E } from "./index62.js";
|
|
4
|
+
import { useCommand as R } from "./index51.js";
|
|
5
5
|
import { Search as j } from "./index30.js";
|
|
6
|
-
import { lockBodyStyle as B } from "./
|
|
7
|
-
import { useResolvedFloeConfig as N } from "./
|
|
6
|
+
import { lockBodyStyle as B } from "./index66.js";
|
|
7
|
+
import { useResolvedFloeConfig as N } from "./index48.js";
|
|
8
8
|
var T = /* @__PURE__ */ c('<div class="fixed inset-0 z-50 bg-background/60 backdrop-blur-sm animate-in fade-in">'), U = /* @__PURE__ */ c('<div><div class="flex items-center gap-3 px-4 pt-1 border-b border-border"><input type=text><kbd class="text-xs text-muted-foreground px-1.5 py-0.5 rounded bg-muted font-mono"></kbd></div><div class="max-h-80 overflow-y-auto py-2">'), q = /* @__PURE__ */ c('<div class="px-4 py-8 text-center text-sm text-muted-foreground">'), G = /* @__PURE__ */ c('<div><div class="px-4 py-1 text-xs font-semibold text-muted-foreground uppercase tracking-wider">'), H = /* @__PURE__ */ c('<span class="w-5 h-5 flex items-center justify-center text-muted-foreground">'), J = /* @__PURE__ */ c('<span class="ml-2 text-muted-foreground text-xs">'), Q = /* @__PURE__ */ c('<kbd class="text-xs text-muted-foreground px-1.5 py-0.5 rounded bg-muted font-mono">'), V = /* @__PURE__ */ c('<button type=button><div class="flex-1 text-left"><span>');
|
|
9
9
|
function ne() {
|
|
10
10
|
const t = R(), $ = N();
|
package/dist/index26.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { delegateEvents as R, template as v, spread as m, mergeProps as h, insert as i, effect as A, className as E, memo as H, setStyleProperty as L, use as j } from "solid-js/web";
|
|
2
2
|
import { splitProps as b, createSignal as F, onCleanup as q } from "solid-js";
|
|
3
|
-
import { cn as p } from "./
|
|
3
|
+
import { cn as p } from "./index62.js";
|
|
4
4
|
var W = /* @__PURE__ */ v('<div style="background-size:200% 200%;animation:gradient-shift 3s ease infinite">'), D = /* @__PURE__ */ v('<div class="absolute inset-[1px] rounded-[7px] bg-card">'), G = /* @__PURE__ */ v('<div class="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100">'), N = /* @__PURE__ */ v('<div class="absolute inset-0 -translate-x-full animate-[shimmer_2s_infinite] bg-gradient-to-r from-transparent via-white/10 to-transparent">'), Z = /* @__PURE__ */ v("<div><div>"), T = /* @__PURE__ */ v("<div>"), J = /* @__PURE__ */ v("<h3>"), K = /* @__PURE__ */ v("<p>"), O = /* @__PURE__ */ v('<div><div class="relative z-10"style=transform:translateZ(20px)>'), Q = /* @__PURE__ */ v('<div class="pointer-events-none absolute inset-0 z-20 opacity-0 transition-opacity duration-300">'), U = /* @__PURE__ */ v('<div><div class="absolute inset-0"style="background:conic-gradient(from 0deg, var(--primary), var(--accent), var(--secondary), var(--primary))"></div><div class="relative rounded-[10px] bg-card h-full">'), V = /* @__PURE__ */ v('<div><div class="absolute inset-0 -z-10 overflow-hidden"><div class="absolute -top-1/2 -left-1/2 w-full h-full rounded-full bg-primary/20"style="animation:morph 8s ease-in-out infinite;filter:blur(40px)"></div><div class="absolute -bottom-1/2 -right-1/2 w-full h-full rounded-full bg-accent/20"style="animation:morph 8s ease-in-out infinite reverse;filter:blur(40px)"></div></div><div class="relative z-10">');
|
|
5
5
|
function ne(l) {
|
|
6
6
|
const [e, o] = b(l, ["variant", "enableTilt", "gradientColors", "glowColor", "class", "children", "style"]), t = () => e.variant ?? "default", [d, g] = F({});
|
package/dist/index27.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { template as h, insert as $, createComponent as z, effect as m, className as d, style as I } from "solid-js/web";
|
|
2
2
|
import { createSignal as P, onMount as S, onCleanup as B, For as L } from "solid-js";
|
|
3
|
-
import { cn as g } from "./
|
|
3
|
+
import { cn as g } from "./index62.js";
|
|
4
4
|
var M = /* @__PURE__ */ h(`<div role=status aria-label=Loading><style>
|
|
5
5
|
@keyframes snakeBreathing {
|
|
6
6
|
0%, 100% {
|
package/dist/index28.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { template as c, insert as n, createComponent as t, effect as m, className as o, Portal as u } from "solid-js/web";
|
|
2
2
|
import { Show as l } from "solid-js";
|
|
3
|
-
import { cn as s } from "./
|
|
3
|
+
import { cn as s } from "./index62.js";
|
|
4
4
|
import { SnakeLoader as f } from "./index27.js";
|
|
5
5
|
var g = /* @__PURE__ */ c('<p class="text-sm text-muted-foreground">'), d = /* @__PURE__ */ c("<div>");
|
|
6
6
|
function k(e) {
|
package/dist/index29.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { template as f, effect as o, className as u, insert as s, createComponent as r } from "solid-js/web";
|
|
2
2
|
import { For as h } from "solid-js";
|
|
3
|
-
import { cn as i } from "./
|
|
3
|
+
import { cn as i } from "./index62.js";
|
|
4
4
|
var m = /* @__PURE__ */ f("<div>"), p = /* @__PURE__ */ f('<div><div class="flex items-center gap-3"><div class="space-y-2 flex-1">'), _ = /* @__PURE__ */ f('<div class="flex items-center gap-3"><div class="flex-1 space-y-1">');
|
|
5
5
|
function c(n) {
|
|
6
6
|
return (() => {
|
package/dist/index3.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { delegateEvents as y, template as d, insert as c, createComponent as l, effect as v, className as m, Dynamic as x, memo as C, setAttribute as u } from "solid-js/web";
|
|
2
2
|
import { For as s, Show as f } from "solid-js";
|
|
3
|
-
import { cn as g } from "./
|
|
3
|
+
import { cn as g } from "./index62.js";
|
|
4
4
|
var w = /* @__PURE__ */ d('<div class="flex flex-col items-center py-1.5 gap-0.5 md:gap-2 md:py-2">'), A = /* @__PURE__ */ d('<div><div class="flex flex-col items-center py-1.5 gap-0.5 md:gap-2 md:py-2">'), k = /* @__PURE__ */ d('<div class="absolute -left-1.5 md:-left-2.5 top-1/2 -translate-y-1/2 w-1 h-7 bg-primary rounded-r">'), $ = /* @__PURE__ */ d("<span>"), _ = /* @__PURE__ */ d("<button type=button>");
|
|
5
5
|
function D(e) {
|
|
6
6
|
const a = (t) => {
|
package/dist/index36.js
CHANGED
|
@@ -1,51 +1,147 @@
|
|
|
1
|
-
import { createComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
return r(i, {
|
|
37
|
-
get config() {
|
|
38
|
-
return e.config;
|
|
1
|
+
import { delegateEvents as j, createComponent as i, template as b, insert as n, addEventListener as S, memo as k, effect as z, className as $, setStyleProperty as I } from "solid-js/web";
|
|
2
|
+
import { createSignal as L, onMount as O, onCleanup as V, Show as a } from "solid-js";
|
|
3
|
+
import { cn as _ } from "./index62.js";
|
|
4
|
+
import { FileBrowserProvider as W, useFileBrowser as N } from "./index37.js";
|
|
5
|
+
import { DirectoryTree as T } from "./index38.js";
|
|
6
|
+
import { FileListView as p } from "./index39.js";
|
|
7
|
+
import { FileGridView as q } from "./index40.js";
|
|
8
|
+
import { FileBrowserToolbar as D } from "./index43.js";
|
|
9
|
+
import { FileContextMenu as G } from "./index41.js";
|
|
10
|
+
var A = /* @__PURE__ */ b('<div class="border-b border-border">'), H = /* @__PURE__ */ b('<button type=button class="flex items-center justify-center w-5 h-5 rounded cursor-pointer hover:bg-sidebar-accent/80 transition-colors"aria-label="Close sidebar"><svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round class="w-3.5 h-3.5"><path d="M18 6 6 18"></path><path d="m6 6 12 12">'), J = /* @__PURE__ */ b('<div class="absolute inset-0 bg-background/60 backdrop-blur-sm z-[9]">'), K = /* @__PURE__ */ b('<div><div class="flex flex-1 min-h-0 relative"><aside><div class="h-full flex flex-col"><div class="flex items-center justify-between px-3 py-2 border-b border-sidebar-border"><span class="text-[11px] font-semibold uppercase tracking-wider text-muted-foreground/60">Explorer</span></div><div class="flex-1 min-h-0 overflow-auto py-1"></div></div></aside><div class="flex-1 min-w-0 flex flex-col"><div class="flex-1 min-h-0"></div><div class="flex items-center justify-between px-3 py-1 border-t border-border text-[10px] text-muted-foreground"><span> items</span><span class="truncate max-w-[200px]">');
|
|
11
|
+
function ne(e) {
|
|
12
|
+
return i(W, {
|
|
13
|
+
get files() {
|
|
14
|
+
return e.files;
|
|
15
|
+
},
|
|
16
|
+
get initialPath() {
|
|
17
|
+
return e.initialPath;
|
|
18
|
+
},
|
|
19
|
+
get initialViewMode() {
|
|
20
|
+
return e.initialViewMode;
|
|
21
|
+
},
|
|
22
|
+
get onNavigate() {
|
|
23
|
+
return e.onNavigate;
|
|
24
|
+
},
|
|
25
|
+
get onSelect() {
|
|
26
|
+
return e.onSelect;
|
|
39
27
|
},
|
|
40
28
|
get children() {
|
|
41
|
-
return
|
|
42
|
-
get
|
|
43
|
-
return
|
|
29
|
+
return i(Q, {
|
|
30
|
+
get class() {
|
|
31
|
+
return e.class;
|
|
32
|
+
},
|
|
33
|
+
get header() {
|
|
34
|
+
return e.header;
|
|
35
|
+
},
|
|
36
|
+
get sidebarWidth() {
|
|
37
|
+
return e.sidebarWidth;
|
|
38
|
+
},
|
|
39
|
+
get hideSidebarOnMobile() {
|
|
40
|
+
return e.hideSidebarOnMobile;
|
|
41
|
+
},
|
|
42
|
+
get contextMenuCallbacks() {
|
|
43
|
+
return e.contextMenuCallbacks;
|
|
44
|
+
},
|
|
45
|
+
get customContextMenuItems() {
|
|
46
|
+
return e.customContextMenuItems;
|
|
47
|
+
},
|
|
48
|
+
get overrideContextMenuItems() {
|
|
49
|
+
return e.overrideContextMenuItems;
|
|
50
|
+
},
|
|
51
|
+
get hideContextMenuItems() {
|
|
52
|
+
return e.hideContextMenuItems;
|
|
44
53
|
}
|
|
45
54
|
});
|
|
46
55
|
}
|
|
47
56
|
});
|
|
48
57
|
}
|
|
58
|
+
function Q(e) {
|
|
59
|
+
const r = N(), [c, f] = L(!1), x = () => e.sidebarWidth ?? 220;
|
|
60
|
+
O(() => {
|
|
61
|
+
const l = window.matchMedia("(max-width: 767px)"), d = l.matches;
|
|
62
|
+
f(d), d && e.hideSidebarOnMobile !== !1 && !r.sidebarCollapsed() && r.toggleSidebar();
|
|
63
|
+
const o = (s) => {
|
|
64
|
+
f(s.matches), s.matches && e.hideSidebarOnMobile !== !1 && !r.sidebarCollapsed() && r.toggleSidebar();
|
|
65
|
+
};
|
|
66
|
+
l.addEventListener("change", o), V(() => l.removeEventListener("change", o));
|
|
67
|
+
});
|
|
68
|
+
const y = () => !r.sidebarCollapsed() || !c();
|
|
69
|
+
return (() => {
|
|
70
|
+
var l = K(), d = l.firstChild, o = d.firstChild, s = o.firstChild, h = s.firstChild;
|
|
71
|
+
h.firstChild;
|
|
72
|
+
var F = h.nextSibling, m = o.nextSibling, g = m.firstChild, B = g.nextSibling, u = B.firstChild, E = u.firstChild, P = u.nextSibling;
|
|
73
|
+
return n(l, i(a, {
|
|
74
|
+
get when() {
|
|
75
|
+
return e.header;
|
|
76
|
+
},
|
|
77
|
+
get children() {
|
|
78
|
+
var t = A();
|
|
79
|
+
return n(t, () => e.header), t;
|
|
80
|
+
}
|
|
81
|
+
}), d), n(h, i(a, {
|
|
82
|
+
get when() {
|
|
83
|
+
return c();
|
|
84
|
+
},
|
|
85
|
+
get children() {
|
|
86
|
+
var t = H();
|
|
87
|
+
return S(t, "click", r.toggleSidebar, !0), t;
|
|
88
|
+
}
|
|
89
|
+
}), null), n(F, i(T, {})), n(d, i(a, {
|
|
90
|
+
get when() {
|
|
91
|
+
return k(() => !!c())() && !r.sidebarCollapsed();
|
|
92
|
+
},
|
|
93
|
+
get children() {
|
|
94
|
+
var t = J();
|
|
95
|
+
return S(t, "click", r.toggleSidebar, !0), t;
|
|
96
|
+
}
|
|
97
|
+
}), m), n(m, i(D, {}), g), n(g, i(a, {
|
|
98
|
+
get when() {
|
|
99
|
+
return r.viewMode() === "list";
|
|
100
|
+
},
|
|
101
|
+
get fallback() {
|
|
102
|
+
return i(q, {});
|
|
103
|
+
},
|
|
104
|
+
get children() {
|
|
105
|
+
return i(p, {});
|
|
106
|
+
}
|
|
107
|
+
})), n(u, () => r.currentFiles().length, E), n(u, i(a, {
|
|
108
|
+
get when() {
|
|
109
|
+
return r.selectedItems().size > 0;
|
|
110
|
+
},
|
|
111
|
+
get children() {
|
|
112
|
+
return [" · ", k(() => r.selectedItems().size), " selected"];
|
|
113
|
+
}
|
|
114
|
+
}), null), n(P, () => r.currentPath()), n(l, i(G, {
|
|
115
|
+
get callbacks() {
|
|
116
|
+
return e.contextMenuCallbacks;
|
|
117
|
+
},
|
|
118
|
+
get customItems() {
|
|
119
|
+
return e.customContextMenuItems;
|
|
120
|
+
},
|
|
121
|
+
get overrideItems() {
|
|
122
|
+
return e.overrideContextMenuItems;
|
|
123
|
+
},
|
|
124
|
+
get hideItems() {
|
|
125
|
+
return e.hideContextMenuItems;
|
|
126
|
+
}
|
|
127
|
+
}), null), z((t) => {
|
|
128
|
+
var v = _("flex flex-col h-full min-h-0 bg-background", "border border-border rounded-lg overflow-hidden", "shadow-sm", e.class), w = _(
|
|
129
|
+
"flex-shrink-0 border-r border-border bg-sidebar",
|
|
130
|
+
"transition-all duration-200 ease-out",
|
|
131
|
+
"overflow-hidden",
|
|
132
|
+
// Mobile overlay
|
|
133
|
+
c() && !r.sidebarCollapsed() && "absolute inset-y-0 left-0 z-10 shadow-lg"
|
|
134
|
+
), C = y() ? `${x()}px` : "0px", M = `${x()}px`;
|
|
135
|
+
return v !== t.e && $(l, t.e = v), w !== t.t && $(o, t.t = w), C !== t.a && I(o, "width", t.a = C), M !== t.o && I(s, "width", t.o = M), t;
|
|
136
|
+
}, {
|
|
137
|
+
e: void 0,
|
|
138
|
+
t: void 0,
|
|
139
|
+
a: void 0,
|
|
140
|
+
o: void 0
|
|
141
|
+
}), l;
|
|
142
|
+
})();
|
|
143
|
+
}
|
|
144
|
+
j(["click"]);
|
|
49
145
|
export {
|
|
50
|
-
|
|
146
|
+
ne as FileBrowser
|
|
51
147
|
};
|