@floegence/floe-webapp-core 0.1.5 → 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.
Files changed (87) hide show
  1. package/dist/components/file-browser/Breadcrumb.d.ts +7 -0
  2. package/dist/components/file-browser/DirectoryTree.d.ts +7 -0
  3. package/dist/components/file-browser/FileBrowser.d.ts +35 -0
  4. package/dist/components/file-browser/FileBrowserContext.d.ts +18 -0
  5. package/dist/components/file-browser/FileBrowserToolbar.d.ts +8 -0
  6. package/dist/components/file-browser/FileContextMenu.d.ts +15 -0
  7. package/dist/components/file-browser/FileGridView.d.ts +7 -0
  8. package/dist/components/file-browser/FileIcons.d.ts +14 -0
  9. package/dist/components/file-browser/FileListView.d.ts +7 -0
  10. package/dist/components/file-browser/index.d.ts +10 -0
  11. package/dist/components/file-browser/types.d.ts +104 -0
  12. package/dist/components/index.d.ts +1 -0
  13. package/dist/components/layout/Sidebar.d.ts +18 -0
  14. package/dist/components/layout/index.d.ts +1 -1
  15. package/dist/components/layout/mobileTabs.d.ts +8 -3
  16. package/dist/index.js +249 -220
  17. package/dist/index10.js +2 -2
  18. package/dist/index11.js +4 -4
  19. package/dist/index12.js +2 -2
  20. package/dist/index13.js +4 -4
  21. package/dist/index14.js +4 -4
  22. package/dist/index15.js +4 -4
  23. package/dist/index16.js +3 -3
  24. package/dist/index17.js +5 -5
  25. package/dist/index18.js +2 -2
  26. package/dist/index19.js +1 -1
  27. package/dist/index2.js +39 -39
  28. package/dist/index20.js +1 -1
  29. package/dist/index21.js +3 -3
  30. package/dist/index22.js +2 -2
  31. package/dist/index23.js +2 -2
  32. package/dist/index24.js +1 -1
  33. package/dist/index25.js +4 -4
  34. package/dist/index26.js +1 -1
  35. package/dist/index27.js +1 -1
  36. package/dist/index28.js +1 -1
  37. package/dist/index29.js +1 -1
  38. package/dist/index3.js +1 -1
  39. package/dist/index36.js +138 -42
  40. package/dist/index37.js +102 -32
  41. package/dist/index38.js +90 -23
  42. package/dist/index39.js +107 -170
  43. package/dist/index4.js +48 -34
  44. package/dist/index40.js +86 -40
  45. package/dist/index41.js +176 -64
  46. package/dist/index42.js +64 -94
  47. package/dist/index43.js +64 -110
  48. package/dist/index44.js +39 -138
  49. package/dist/index45.js +44 -35
  50. package/dist/index46.js +34 -379
  51. package/dist/index47.js +25 -13
  52. package/dist/index48.js +173 -10
  53. package/dist/index49.js +40 -16
  54. package/dist/index5.js +3 -3
  55. package/dist/index50.js +65 -9
  56. package/dist/index51.js +96 -8
  57. package/dist/index52.js +113 -52
  58. package/dist/index53.js +138 -5
  59. package/dist/index54.js +39 -3
  60. package/dist/index55.js +382 -44
  61. package/dist/index56.js +13 -26
  62. package/dist/index57.js +10 -32
  63. package/dist/index58.js +17 -92
  64. package/dist/index59.js +10 -22
  65. package/dist/index6.js +2 -2
  66. package/dist/index60.js +8 -46
  67. package/dist/index61.js +56 -14
  68. package/dist/index62.js +5 -35
  69. package/dist/index63.js +3 -64
  70. package/dist/index64.js +45 -84
  71. package/dist/index65.js +25 -13
  72. package/dist/index66.js +27 -2258
  73. package/dist/index67.js +92 -8
  74. package/dist/index68.js +25 -0
  75. package/dist/index69.js +49 -0
  76. package/dist/index7.js +1 -1
  77. package/dist/index70.js +17 -0
  78. package/dist/index71.js +38 -0
  79. package/dist/index72.js +67 -0
  80. package/dist/index73.js +87 -0
  81. package/dist/index74.js +17 -0
  82. package/dist/index75.js +2266 -0
  83. package/dist/index76.js +10 -0
  84. package/dist/index8.js +2 -2
  85. package/dist/index9.js +1 -1
  86. package/dist/styles.css +1 -1
  87. package/package.json +1 -1
package/dist/index2.js CHANGED
@@ -1,35 +1,35 @@
1
- import { delegateEvents as z, template as f, insert as a, createComponent as n, Dynamic as w, memo as h, effect as C, className as T, setStyleProperty as O } from "solid-js/web";
2
- import { createSignal as F, createEffect as p, createMemo as $, For as x, Show as b } from "solid-js";
3
- import { useLayout as R } from "./index41.js";
4
- import { useResolvedFloeConfig as H } from "./index39.js";
5
- import { useMediaQuery as P } from "./index47.js";
6
- import { cn as A } from "./index53.js";
7
- import { useComponentRegistry as W } from "./index44.js";
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
13
  import { ResizeHandle as _ } from "./index8.js";
14
- import { resolveMobileTabActiveId as j, resolveMobileTabSelect as q } from "./index67.js";
15
- var y = /* @__PURE__ */ f('<div class="flex items-center gap-2">'), G = /* @__PURE__ */ f('<div class="absolute inset-0 z-40 bg-background/80 backdrop-blur-sm 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 ce(l) {
17
- const r = R(), M = H(), c = P(M.config.layout.mobileQuery), [S, g] = F(!1), s = (() => {
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 = (() => {
18
18
  try {
19
19
  return W();
20
20
  } catch {
21
21
  return null;
22
22
  }
23
23
  })();
24
- p(() => {
25
- const e = c();
24
+ h(() => {
25
+ const e = d();
26
26
  r.isMobile() !== e && r.setIsMobile(e);
27
- }), p(() => {
28
- c() || g(!1);
27
+ }), h(() => {
28
+ d() || g(!1);
29
29
  });
30
30
  const u = $(() => l.activityItems ? l.activityItems : s ? s.sidebarItems().filter((e) => !!e.icon).filter((e) => {
31
31
  var t;
32
- return !(c() && ((t = e.sidebar) != null && t.hiddenOnMobile));
32
+ return !(d() && ((t = e.sidebar) != null && t.hiddenOnMobile));
33
33
  }).map((e) => {
34
34
  var t;
35
35
  return {
@@ -48,19 +48,19 @@ function ce(l) {
48
48
  return t.component;
49
49
  }
50
50
  });
51
- }, v = $(() => {
51
+ }, S = $(() => {
52
52
  var t;
53
53
  if (!s) return !1;
54
54
  const e = s.getComponent(r.sidebarActiveTab());
55
55
  return ((t = e == null ? void 0 : e.sidebar) == null ? void 0 : t.fullScreen) ?? !1;
56
56
  });
57
- p(() => {
58
- c() && v() && g(!1);
57
+ h(() => {
58
+ d() && S() && g(!1);
59
59
  });
60
60
  const B = $(() => {
61
61
  if (l.bottomBarItems) return l.bottomBarItems;
62
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"), d = e.filter((o) => o.position === "right");
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");
64
64
  return [(() => {
65
65
  var o = y();
66
66
  return a(o, n(x, {
@@ -74,7 +74,7 @@ function ce(l) {
74
74
  })(), (() => {
75
75
  var o = y();
76
76
  return a(o, n(x, {
77
- each: d,
77
+ each: c,
78
78
  children: (i) => n(w, {
79
79
  get component() {
80
80
  return i.component;
@@ -83,27 +83,27 @@ function ce(l) {
83
83
  })), o;
84
84
  })()];
85
85
  });
86
- p(() => {
86
+ h(() => {
87
87
  const e = u();
88
88
  if (!e.length) return;
89
89
  const t = r.sidebarActiveTab();
90
- (!t || !e.some((d) => d.id === t)) && r.setSidebarActiveTab(e[0].id);
90
+ (!t || !e.some((c) => c.id === t)) && r.setSidebarActiveTab(e[0].id);
91
91
  });
92
92
  const k = (e) => {
93
93
  var i, m;
94
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: d,
95
+ nextActiveId: c,
96
96
  nextMobileSidebarOpen: o
97
97
  } = q({
98
98
  clickedId: e,
99
99
  activeId: r.sidebarActiveTab(),
100
- mobileSidebarOpen: S(),
100
+ mobileSidebarOpen: p(),
101
101
  clickedIsFullScreen: t
102
102
  });
103
- r.sidebarActiveTab() !== d && r.setSidebarActiveTab(d), g(o);
103
+ r.sidebarActiveTab() !== c && r.setSidebarActiveTab(c), g(o);
104
104
  };
105
105
  return (() => {
106
- var e = U(), t = e.firstChild, d = t.firstChild, o = d.firstChild;
106
+ var e = U(), t = e.firstChild, c = t.firstChild, o = c.firstChild;
107
107
  return a(e, n(Q, {
108
108
  get logo() {
109
109
  return l.logo;
@@ -113,7 +113,7 @@ function ce(l) {
113
113
  }
114
114
  }), t), a(t, n(b, {
115
115
  get when() {
116
- return !c();
116
+ return !d();
117
117
  },
118
118
  get children() {
119
119
  return [n(b, {
@@ -144,7 +144,7 @@ function ce(l) {
144
144
  }
145
145
  }), n(b, {
146
146
  get when() {
147
- return h(() => !r.sidebarCollapsed())() && !v();
147
+ return v(() => !r.sidebarCollapsed())() && !S();
148
148
  },
149
149
  get children() {
150
150
  return n(E, {
@@ -164,9 +164,9 @@ function ce(l) {
164
164
  }
165
165
  })];
166
166
  }
167
- }), d), a(t, n(b, {
167
+ }), c), a(t, n(b, {
168
168
  get when() {
169
- return h(() => !!(c() && S()))() && !v();
169
+ return v(() => !!d())() && p();
170
170
  },
171
171
  get children() {
172
172
  return [(() => {
@@ -174,12 +174,12 @@ function ce(l) {
174
174
  return i.$$click = () => g(!1), i;
175
175
  })(), (() => {
176
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-80 max-w-[85vw]", "bg-sidebar border-r border-sidebar-border", "shadow-xl", "animate-in slide-in-from-left duration-200"))), i;
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;
178
178
  })()];
179
179
  }
180
- }), d), a(o, () => l.children), a(d, n(b, {
180
+ }), c), a(o, () => l.children), a(c, n(b, {
181
181
  get when() {
182
- return h(() => !!(!c() && r.terminalOpened()))() && l.terminalPanel;
182
+ return v(() => !!(!d() && r.terminalOpened()))() && l.terminalPanel;
183
183
  },
184
184
  get children() {
185
185
  var i = K();
@@ -190,7 +190,7 @@ function ce(l) {
190
190
  }
191
191
  }), null), a(e, n(b, {
192
192
  get when() {
193
- return !c();
193
+ return !d();
194
194
  },
195
195
  get children() {
196
196
  return n(D, {
@@ -201,7 +201,7 @@ function ce(l) {
201
201
  }
202
202
  }), null), a(e, n(b, {
203
203
  get when() {
204
- return h(() => !!c())() && u().length > 0;
204
+ return v(() => !!d())() && u().length > 0;
205
205
  },
206
206
  get children() {
207
207
  return n(L, {
@@ -211,8 +211,8 @@ function ce(l) {
211
211
  get activeId() {
212
212
  return j({
213
213
  activeId: r.sidebarActiveTab(),
214
- mobileSidebarOpen: S(),
215
- activeIsFullScreen: v()
214
+ mobileSidebarOpen: p(),
215
+ activeIsFullScreen: S()
216
216
  });
217
217
  },
218
218
  onSelect: k
@@ -230,5 +230,5 @@ function ce(l) {
230
230
  }
231
231
  z(["click"]);
232
232
  export {
233
- ce as Shell
233
+ de as Shell
234
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 "./index53.js";
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 "./index53.js";
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 "./index57.js";
7
- import { useResolvedFloeConfig as I } from "./index39.js";
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 "./index53.js";
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 "./index57.js";
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 "./index53.js";
4
- import { deferNonBlocking as E } from "./index54.js";
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 "./index53.js";
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 "./index53.js";
4
- import { useCommand as R } from "./index42.js";
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 "./index57.js";
7
- import { useResolvedFloeConfig as N } from "./index39.js";
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 "./index53.js";
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 "./index53.js";
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 "./index53.js";
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 "./index53.js";
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 "./index53.js";
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 r, memo as o } from "solid-js/web";
2
- import { FloeConfigProvider as i } from "./index39.js";
3
- import { ThemeProvider as n } from "./index40.js";
4
- import { NotificationProvider as m } from "./index43.js";
5
- import { ComponentRegistryProvider as d } from "./index44.js";
6
- import { LayoutProvider as c } from "./index41.js";
7
- import { CommandProvider as f } from "./index42.js";
8
- import { WidgetRegistryProvider as g } from "./index45.js";
9
- import { DeckProvider as h } from "./index46.js";
10
- function w(e) {
11
- const t = () => r(m, {
12
- get children() {
13
- return r(d, {
14
- get children() {
15
- return r(c, {
16
- get children() {
17
- return r(g, {
18
- get children() {
19
- return r(h, {
20
- get children() {
21
- return r(f, {
22
- get children() {
23
- return e.children;
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 r(n, {
42
- get children() {
43
- return o(() => !!e.wrapAfterTheme)() ? e.wrapAfterTheme(t) : t();
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
- w as FloeProvider
146
+ ne as FileBrowser
51
147
  };