@floegence/floe-webapp-core 0.86.60 → 0.86.62
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/chat/blocks/BlockRenderer.js +1 -1
- package/dist/components/chat/blocks/CodeDiffBlock.js +56 -56
- package/dist/components/chat/blocks/ImageBlock.js +1 -1
- package/dist/components/chat/blocks/ToolCallBlock.js +57 -57
- package/dist/components/chat/status/ConnectionStatus.js +10 -10
- package/dist/components/deck/DeckCell.js +25 -25
- package/dist/components/deck/DeckContextMenu.js +20 -20
- package/dist/components/deck/DeckGrid.js +1 -1
- package/dist/components/deck/DeckTopBar.js +42 -42
- package/dist/components/deck/DropZonePreview.js +6 -6
- package/dist/components/deck/LayoutSelector.js +53 -53
- package/dist/components/deck/WidgetFrame.js +28 -28
- package/dist/components/deck/WidgetPalette.js +31 -31
- package/dist/components/deck/WidgetTypeSwitcher.js +31 -31
- package/dist/components/file-browser/Breadcrumb.js +27 -27
- package/dist/components/file-browser/DirectoryTree.js +15 -15
- package/dist/components/file-browser/DragPreview.js +58 -58
- package/dist/components/file-browser/FileBrowser.js +17 -17
- package/dist/components/file-browser/FileBrowserStatusBar.js +18 -18
- package/dist/components/file-browser/FileBrowserToolbar.js +27 -27
- package/dist/components/file-browser/FileContextMenu.js +47 -47
- package/dist/components/file-browser/FileGridView.js +53 -51
- package/dist/components/file-browser/FileItemDecorations.js +30 -27
- package/dist/components/file-browser/FileListView.js +114 -114
- package/dist/components/icons/index.js +1357 -1357
- package/dist/components/launchpad/Launchpad.js +14 -14
- package/dist/components/launchpad/LaunchpadGrid.js +7 -7
- package/dist/components/launchpad/LaunchpadItem.js +11 -11
- package/dist/components/launchpad/LaunchpadPagination.js +16 -16
- package/dist/components/launchpad/LaunchpadSearch.js +9 -9
- package/dist/components/layout/ActivityBar.js +52 -55
- package/dist/components/layout/BottomBar.js +17 -17
- package/dist/components/layout/MobileNavigationPanel.js +36 -36
- package/dist/components/layout/MobileTabBar.js +39 -39
- package/dist/components/layout/Panel.js +16 -16
- package/dist/components/layout/ResizeHandle.js +19 -19
- package/dist/components/layout/Shell.js +50 -50
- package/dist/components/layout/Sidebar.js +37 -36
- package/dist/components/layout/SidebarPane.js +19 -19
- package/dist/components/layout/TopBar.js +16 -16
- package/dist/components/layout/TopBarIconButton.js +15 -15
- package/dist/components/loading/LoadingOverlay.js +9 -9
- package/dist/components/loading/Skeleton.js +11 -11
- package/dist/components/ui/Button.js +36 -36
- package/dist/components/ui/Card.d.ts +11 -62
- package/dist/components/ui/Card.js +64 -237
- package/dist/components/ui/Checkbox.js +79 -79
- package/dist/components/ui/CommandPalette.js +56 -55
- package/dist/components/ui/Dialog.js +91 -93
- package/dist/components/ui/DirectoryInput.js +22 -22
- package/dist/components/ui/DirectoryPicker.js +8 -8
- package/dist/components/ui/Dropdown.js +89 -87
- package/dist/components/ui/FeedbackIndicator.js +57 -57
- package/dist/components/ui/FileOpenPicker.js +37 -37
- package/dist/components/ui/FileSavePicker.js +41 -41
- package/dist/components/ui/FloatingWindow.js +213 -205
- package/dist/components/ui/Form.js +76 -76
- package/dist/components/ui/HighlightBlock.js +14 -14
- package/dist/components/ui/Input.js +106 -109
- package/dist/components/ui/Pagination.js +86 -86
- package/dist/components/ui/Popover.d.ts +33 -0
- package/dist/components/ui/Popover.js +133 -0
- package/dist/components/ui/ProcessingIndicator.js +344 -345
- package/dist/components/ui/Progress.js +94 -97
- package/dist/components/ui/QuoteBlock.js +25 -25
- package/dist/components/ui/Radio.js +91 -91
- package/dist/components/ui/SegmentedControl.js +24 -24
- package/dist/components/ui/Stepper.js +68 -60
- package/dist/components/ui/Switch.js +25 -25
- package/dist/components/ui/Tabs.js +99 -87
- package/dist/components/ui/Tag.js +12 -9
- package/dist/components/ui/Tooltip.js +30 -30
- package/dist/components/ui/floatingPresence.d.ts +7 -0
- package/dist/components/ui/floatingPresence.js +80 -39
- package/dist/components/ui/index.d.ts +2 -1
- package/dist/components/ui/picker/DirectoryFavorites.js +27 -27
- package/dist/components/ui/picker/PickerBase.js +107 -107
- package/dist/context/NotificationContext.js +4 -4
- package/dist/context/ThemeContext.js +71 -70
- package/dist/floe.css +205 -43
- package/dist/full.js +650 -652
- package/dist/language.css +320 -0
- package/dist/primitives.css +23 -17
- package/dist/standalone.css +1 -0
- package/dist/styles/themes/classicSemanticTokens.d.ts +122 -122
- package/dist/styles/themes/classicSemanticTokens.js +140 -138
- package/dist/styles/themes/index.d.ts +3 -1
- package/dist/styles/themes/index.js +10 -10
- package/dist/styles/themes/presets.d.ts +2 -2
- package/dist/styles/themes/presets.js +34 -34
- package/dist/styles/tokens.d.ts +152 -68
- package/dist/styles/tokens.js +87 -49
- package/dist/styles.css +1 -1
- package/dist/surface.css +161 -116
- package/dist/themes/dark.css +64 -64
- package/dist/themes/light.css +64 -64
- package/dist/ui.css +171 -255
- package/dist/ui.js +176 -178
- package/dist/utils/hotInteraction.d.ts +7 -0
- package/dist/utils/hotInteraction.js +12 -12
- package/dist/widgets/TerminalWidget.js +28 -28
- package/dist/workbench-composition.css +15 -15
- package/package.json +1 -1
|
@@ -42,24 +42,24 @@ var de = /* @__PURE__ */ k('<div class="pt-8 pb-4 px-8">'), ue = /* @__PURE__ */
|
|
|
42
42
|
.launchpad-search {
|
|
43
43
|
animation: launchpad-search-enter 0.4s ease-out;
|
|
44
44
|
}
|
|
45
|
-
</style><div class="flex-1 min-h-0 overflow-hidden"></div><div class="absolute bottom-4 right-4 text-
|
|
45
|
+
</style><div class="flex-1 min-h-0 overflow-hidden"></div><div class="absolute bottom-4 right-4 text-[var(--floe-ink-quiet)] text-xs hidden md:block"><kbd class="px-1.5 py-0.5 rounded-xs border border-[var(--floe-line)] bg-card/80 text-foreground/80 font-mono mr-1">ESC</kbd> to close<span class=mx-2>|</span><kbd class="px-1.5 py-0.5 rounded-xs border border-[var(--floe-line)] bg-card/80 text-foreground/80 font-mono mr-1">←</kbd><kbd class="px-1.5 py-0.5 rounded-xs border border-[var(--floe-line)] bg-card/80 text-foreground/80 font-mono">→</kbd> to navigate`);
|
|
46
46
|
function we(r) {
|
|
47
47
|
let m;
|
|
48
|
-
const [
|
|
48
|
+
const [p, X] = d(""), [Q, w] = d(""), [h, C] = d(0), [R, L] = d(!0), [q, P] = d(null);
|
|
49
49
|
let o = null;
|
|
50
|
-
const
|
|
50
|
+
const b = () => r.itemsPerPage ?? 20, N = () => r.columns ?? 5, W = () => r.showSearch !== !1, S = (() => {
|
|
51
51
|
try {
|
|
52
52
|
return ie();
|
|
53
53
|
} catch {
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
|
-
})(),
|
|
56
|
+
})(), j = () => S ? S.active() : !0, $ = u(() => {
|
|
57
57
|
const e = r.items ?? [], t = r.additionalItems ?? [];
|
|
58
58
|
return [...e, ...t];
|
|
59
59
|
});
|
|
60
60
|
let v = 0;
|
|
61
61
|
Y(() => {
|
|
62
|
-
const e =
|
|
62
|
+
const e = p().trim();
|
|
63
63
|
v += 1;
|
|
64
64
|
const t = v;
|
|
65
65
|
if (!e) {
|
|
@@ -77,9 +77,9 @@ function we(r) {
|
|
|
77
77
|
}))), A = u(() => {
|
|
78
78
|
const e = Q().toLowerCase().trim();
|
|
79
79
|
return e ? z().filter((t) => t.nameLower.includes(e) || t.descLower.includes(e)).map((t) => t.item) : $();
|
|
80
|
-
}), y = u(() => Math.max(1, Math.ceil(A().length /
|
|
81
|
-
const e = h() *
|
|
82
|
-
return A().slice(e, e +
|
|
80
|
+
}), y = u(() => Math.max(1, Math.ceil(A().length / b()))), B = u(() => {
|
|
81
|
+
const e = h() * b();
|
|
82
|
+
return A().slice(e, e + b());
|
|
83
83
|
}), D = (e) => {
|
|
84
84
|
X(e), C(0);
|
|
85
85
|
}, x = (e) => {
|
|
@@ -108,7 +108,7 @@ function we(r) {
|
|
|
108
108
|
y: t.clientY
|
|
109
109
|
});
|
|
110
110
|
}, H = (e) => {
|
|
111
|
-
const t =
|
|
111
|
+
const t = q();
|
|
112
112
|
if (!t) return;
|
|
113
113
|
const a = e.changedTouches[0];
|
|
114
114
|
if (!a) return;
|
|
@@ -118,7 +118,7 @@ function we(r) {
|
|
|
118
118
|
e.target.closest('button, input, a, [role="button"]') || r.onClose?.();
|
|
119
119
|
};
|
|
120
120
|
Y(() => {
|
|
121
|
-
|
|
121
|
+
j() && (document.addEventListener("keydown", I), E(() => {
|
|
122
122
|
document.removeEventListener("keydown", I);
|
|
123
123
|
}));
|
|
124
124
|
}), re(() => {
|
|
@@ -149,13 +149,13 @@ function we(r) {
|
|
|
149
149
|
var c = m;
|
|
150
150
|
return typeof c == "function" ? ee(c, e) : m = e, i(e, l(_, {
|
|
151
151
|
get when() {
|
|
152
|
-
return
|
|
152
|
+
return W();
|
|
153
153
|
},
|
|
154
154
|
get children() {
|
|
155
155
|
var n = de();
|
|
156
156
|
return i(n, l(ae, {
|
|
157
157
|
get value() {
|
|
158
|
-
return
|
|
158
|
+
return p();
|
|
159
159
|
},
|
|
160
160
|
onChange: D,
|
|
161
161
|
placeholder: "Search apps..."
|
|
@@ -169,14 +169,14 @@ function we(r) {
|
|
|
169
169
|
return r.onItemClick;
|
|
170
170
|
},
|
|
171
171
|
get columns() {
|
|
172
|
-
return
|
|
172
|
+
return N();
|
|
173
173
|
},
|
|
174
174
|
get animating() {
|
|
175
175
|
return R();
|
|
176
176
|
}
|
|
177
177
|
})), i(e, l(_, {
|
|
178
178
|
get when() {
|
|
179
|
-
return F(() => y() > 1)() && !
|
|
179
|
+
return F(() => y() > 1)() && !p();
|
|
180
180
|
},
|
|
181
181
|
get children() {
|
|
182
182
|
var n = ue();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { insert as o, createComponent as a, effect as
|
|
2
|
-
import { Show as
|
|
1
|
+
import { insert as o, createComponent as a, effect as s, setStyleProperty as u, template as i } from "solid-js/web";
|
|
2
|
+
import { Show as d, For as f } from "solid-js";
|
|
3
3
|
import { LaunchpadItem as g } from "./LaunchpadItem.js";
|
|
4
|
-
var
|
|
4
|
+
var v = /* @__PURE__ */ i('<div class="grid gap-4 place-items-center">'), h = /* @__PURE__ */ i('<div class="launchpad-grid w-full h-full flex items-center justify-center p-8">'), p = /* @__PURE__ */ i('<div class="text-[var(--floe-ink-soft)] text-xs">No apps found');
|
|
5
5
|
function $(t) {
|
|
6
6
|
const l = () => t.columns ?? 5;
|
|
7
7
|
return (() => {
|
|
8
|
-
var m =
|
|
9
|
-
return o(m, a(
|
|
8
|
+
var m = h();
|
|
9
|
+
return o(m, a(d, {
|
|
10
10
|
get when() {
|
|
11
11
|
return t.items.length > 0;
|
|
12
12
|
},
|
|
@@ -14,7 +14,7 @@ function $(t) {
|
|
|
14
14
|
return p();
|
|
15
15
|
},
|
|
16
16
|
get children() {
|
|
17
|
-
var r =
|
|
17
|
+
var r = v();
|
|
18
18
|
return o(r, a(f, {
|
|
19
19
|
get each() {
|
|
20
20
|
return t.items;
|
|
@@ -34,7 +34,7 @@ function $(t) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
})
|
|
37
|
-
})),
|
|
37
|
+
})), s((e) => {
|
|
38
38
|
var n = `repeat(${l()}, minmax(0, 1fr))`, c = `${l() * 120}px`;
|
|
39
39
|
return n !== e.e && u(r, "grid-template-columns", e.e = n), c !== e.t && u(r, "max-width", e.t = c), e;
|
|
40
40
|
}, {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { insert as
|
|
2
|
-
var k = /* @__PURE__ */
|
|
1
|
+
import { insert as c, createComponent as f, effect as g, style as x, setAttribute as y, setStyleProperty as d, template as b, delegateEvents as h } from "solid-js/web";
|
|
2
|
+
var k = /* @__PURE__ */ b('<button type=button class="launchpad-item group flex flex-col items-center gap-2 rounded-panel p-3 cursor-pointer bg-transparent select-none outline-none transition-[transform,background-color] duration-[var(--floe-duration-base)] ease-out hover:-translate-y-[var(--floe-hover-lift)] hover:bg-card/20 focus-visible:bg-card/30 active:scale-[var(--floe-press-scale)]"tabindex=0><div class="w-14 h-14 rounded-panel flex items-center justify-center shadow-[var(--floe-elevation-float)] transition-transform duration-[var(--floe-duration-base)] group-hover:-translate-y-[var(--floe-hover-lift)]"></div><span class="text-xs text-foreground/80 font-medium truncate max-w-[80px] text-center">');
|
|
3
3
|
function C(e) {
|
|
4
|
-
const s = () => e.item.color ?? "linear-gradient(135deg, color-mix(in srgb, var(--primary) 78%, var(--info) 22%), color-mix(in srgb, var(--primary) 58%, var(--accent) 42%))",
|
|
4
|
+
const s = () => e.item.color ?? "linear-gradient(135deg, color-mix(in srgb, var(--primary) 78%, var(--info) 22%), color-mix(in srgb, var(--primary) 58%, var(--accent) 42%))", a = () => {
|
|
5
5
|
e.item.onClick?.(), e.onClick?.(e.item);
|
|
6
|
-
},
|
|
7
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
6
|
+
}, v = (t) => {
|
|
7
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), a());
|
|
8
8
|
};
|
|
9
9
|
return (() => {
|
|
10
|
-
var t = k(), r = t.firstChild,
|
|
11
|
-
return t.$$keydown =
|
|
10
|
+
var t = k(), r = t.firstChild, m = r.nextSibling;
|
|
11
|
+
return t.$$keydown = v, t.$$click = a, c(r, f(e.item.icon, {
|
|
12
12
|
class: "w-7 h-7"
|
|
13
|
-
})),
|
|
14
|
-
var
|
|
13
|
+
})), c(m, () => e.item.name), g((n) => {
|
|
14
|
+
var u = {
|
|
15
15
|
"--item-index": e.index,
|
|
16
16
|
"animation-delay": `${e.index * 30}ms`,
|
|
17
17
|
...e.style
|
|
18
|
-
},
|
|
19
|
-
return n.e =
|
|
18
|
+
}, i = e.item.description ?? e.item.name, o = s(), l = e.item.color ? "white" : "var(--primary-foreground)";
|
|
19
|
+
return n.e = x(t, u, n.e), i !== n.t && y(t, "title", n.t = i), o !== n.a && d(r, "background", n.a = o), l !== n.o && d(r, "color", n.o = l), n;
|
|
20
20
|
}, {
|
|
21
21
|
e: void 0,
|
|
22
22
|
t: void 0,
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { insert as
|
|
2
|
-
import { For as
|
|
3
|
-
var
|
|
1
|
+
import { insert as u, createComponent as s, setAttribute as i, effect as g, classList as v, template as l, delegateEvents as d } from "solid-js/web";
|
|
2
|
+
import { For as f } from "solid-js";
|
|
3
|
+
var m = /* @__PURE__ */ l('<div class="launchpad-pagination flex items-center justify-center gap-2">'), b = /* @__PURE__ */ l('<button type=button class="w-2 h-2 rounded-full cursor-pointer transition-[background-color,color,transform] duration-[var(--floe-duration-slow)] outline-none focus-visible:ring-2">');
|
|
4
4
|
function $(r) {
|
|
5
5
|
return (() => {
|
|
6
|
-
var a =
|
|
7
|
-
return
|
|
6
|
+
var a = m();
|
|
7
|
+
return u(a, s(f, {
|
|
8
8
|
get each() {
|
|
9
9
|
return Array.from({
|
|
10
10
|
length: r.totalPages
|
|
11
|
-
}, (
|
|
11
|
+
}, (e, t) => t);
|
|
12
12
|
},
|
|
13
|
-
children: (
|
|
14
|
-
var
|
|
15
|
-
return
|
|
16
|
-
var
|
|
17
|
-
"bg-primary scale-125": r.currentPage ===
|
|
18
|
-
"bg-
|
|
19
|
-
},
|
|
20
|
-
return n.e =
|
|
13
|
+
children: (e) => (() => {
|
|
14
|
+
var t = b();
|
|
15
|
+
return t.$$click = () => r.onPageChange(e), i(t, "aria-label", `Go to page ${e + 1}`), g((n) => {
|
|
16
|
+
var c = {
|
|
17
|
+
"bg-primary scale-125": r.currentPage === e,
|
|
18
|
+
"bg-[var(--floe-ink-ghost)]": r.currentPage !== e
|
|
19
|
+
}, o = r.currentPage === e ? "page" : void 0;
|
|
20
|
+
return n.e = v(t, c, n.e), o !== n.t && i(t, "aria-current", n.t = o), n;
|
|
21
21
|
}, {
|
|
22
22
|
e: void 0,
|
|
23
23
|
t: void 0
|
|
24
|
-
}),
|
|
24
|
+
}), t;
|
|
25
25
|
})()
|
|
26
26
|
})), a;
|
|
27
27
|
})();
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
d(["click"]);
|
|
30
30
|
export {
|
|
31
31
|
$ as LaunchpadPagination
|
|
32
32
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { insert as n, createComponent as
|
|
1
|
+
import { insert as n, createComponent as i, effect as l, setAttribute as d, template as u, delegateEvents as c } from "solid-js/web";
|
|
2
2
|
import { Search as s } from "../icons/index.js";
|
|
3
|
-
var
|
|
4
|
-
function
|
|
3
|
+
var f = /* @__PURE__ */ u('<div class="launchpad-search w-full max-w-md mx-auto"><div class=relative><input type=text class="w-full h-10 pl-10 pr-4 rounded-control bg-card/80 backdrop-blur-sm border border-[var(--floe-line)] text-foreground placeholder:text-[var(--floe-ink-quiet)] outline-none transition-[border-color,box-shadow,background-color] duration-[var(--floe-duration-base)] shadow-[var(--floe-elevation-raised)]">');
|
|
4
|
+
function v(r) {
|
|
5
5
|
return (() => {
|
|
6
|
-
var
|
|
7
|
-
return n(a,
|
|
8
|
-
class: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-
|
|
9
|
-
}), e), e.$$input = (o) =>
|
|
6
|
+
var t = f(), a = t.firstChild, e = a.firstChild;
|
|
7
|
+
return n(a, i(s, {
|
|
8
|
+
class: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[var(--floe-ink-soft)]"
|
|
9
|
+
}), e), e.$$input = (o) => r.onChange(o.currentTarget.value), l(() => d(e, "placeholder", r.placeholder ?? "Search")), l(() => e.value = r.value), t;
|
|
10
10
|
})();
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
c(["input"]);
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
v as LaunchpadSearch
|
|
15
15
|
};
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { insert as
|
|
2
|
-
import { createMemo as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { insert as v, createComponent as o, effect as x, className as s, setAttribute as u, template as h, use as E, Dynamic as R, memo as j, delegateEvents as q } from "solid-js/web";
|
|
2
|
+
import { createMemo as b, For as B, Show as D, onMount as P, onCleanup as T } from "solid-js";
|
|
3
|
+
import { cn as d } from "../../utils/cn.js";
|
|
4
4
|
import { deferNonBlocking as _ } from "../../utils/defer.js";
|
|
5
|
-
import { Tooltip as
|
|
6
|
-
import { resolveActivityBarClick as
|
|
7
|
-
import { isBarItemContextMenuKey as
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
const
|
|
5
|
+
import { Tooltip as K } from "../ui/Tooltip.js";
|
|
6
|
+
import { resolveActivityBarClick as N } from "./activityBarBehavior.js";
|
|
7
|
+
import { isBarItemContextMenuKey as X, keyboardBarItemContextMenuRequest as Y } from "./barItemContextMenu.js";
|
|
8
|
+
var F = /* @__PURE__ */ h('<div class="flex flex-col">'), H = /* @__PURE__ */ h('<nav data-floe-shell-slot=activity-bar style=border-right-color:var(--activity-bar-border)><div class="flex flex-col">'), L = /* @__PURE__ */ h("<span>"), V = /* @__PURE__ */ h("<button type=button data-floe-interactive=press><span aria-hidden=true></span><span aria-hidden=true>");
|
|
9
|
+
function Z(t) {
|
|
10
|
+
const l = b(() => t.activeId), c = b(() => t.collapsed ?? !1), f = b(() => t.onActiveChange), y = b(() => t.onCollapsedChange), m = (e) => {
|
|
11
11
|
if (e.onClick) {
|
|
12
12
|
_(() => e.onClick());
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const a = N({
|
|
16
16
|
clickedId: e.id,
|
|
17
|
-
activeId:
|
|
17
|
+
activeId: l(),
|
|
18
18
|
collapsed: c(),
|
|
19
19
|
behavior: e.collapseBehavior
|
|
20
20
|
});
|
|
21
|
-
|
|
22
|
-
openSidebar:
|
|
23
|
-
}) : f()(
|
|
21
|
+
a.nextActiveId !== l() && (typeof a.openSidebar == "boolean" ? f()(a.nextActiveId, {
|
|
22
|
+
openSidebar: a.openSidebar
|
|
23
|
+
}) : f()(a.nextActiveId)), typeof a.nextCollapsed == "boolean" && y()?.(a.nextCollapsed);
|
|
24
24
|
};
|
|
25
25
|
return (() => {
|
|
26
|
-
var e =
|
|
27
|
-
return
|
|
26
|
+
var e = H(), a = e.firstChild;
|
|
27
|
+
return v(a, o(B, {
|
|
28
28
|
get each() {
|
|
29
29
|
return t.items;
|
|
30
30
|
},
|
|
31
|
-
children: (n) => o(
|
|
31
|
+
children: (n) => o(S, {
|
|
32
32
|
item: n,
|
|
33
33
|
get isActive() {
|
|
34
|
-
return
|
|
34
|
+
return l() === n.id;
|
|
35
35
|
},
|
|
36
36
|
onClick: () => m(n)
|
|
37
37
|
})
|
|
38
|
-
})),
|
|
38
|
+
})), v(e, o(D, {
|
|
39
39
|
get when() {
|
|
40
40
|
return t.bottomItems?.length;
|
|
41
41
|
},
|
|
42
42
|
get children() {
|
|
43
|
-
var n =
|
|
44
|
-
return
|
|
43
|
+
var n = F();
|
|
44
|
+
return v(n, o(B, {
|
|
45
45
|
get each() {
|
|
46
46
|
return t.bottomItems;
|
|
47
47
|
},
|
|
48
|
-
children: (r) => o(
|
|
48
|
+
children: (r) => o(S, {
|
|
49
49
|
item: r,
|
|
50
50
|
isActive: !1,
|
|
51
51
|
onClick: () => m(r)
|
|
52
52
|
})
|
|
53
53
|
})), n;
|
|
54
54
|
}
|
|
55
|
-
}), null),
|
|
56
|
-
var r =
|
|
57
|
-
return r !== n.e &&
|
|
55
|
+
}), null), x((n) => {
|
|
56
|
+
var r = d("w-10 md:w-12 flex flex-col justify-between shrink-0 min-h-0", "bg-activity-bar border-r border-[var(--floe-line-quiet)]", t.class), i = t.ariaLabel;
|
|
57
|
+
return r !== n.e && s(e, n.e = r), i !== n.t && u(e, "aria-label", n.t = i), n;
|
|
58
58
|
}, {
|
|
59
59
|
e: void 0,
|
|
60
60
|
t: void 0
|
|
61
61
|
}), e;
|
|
62
62
|
})();
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
let
|
|
64
|
+
function S(t) {
|
|
65
|
+
let l;
|
|
66
66
|
const c = () => typeof t.item.badge == "function" ? t.item.badge() : t.item.badge, f = () => typeof t.item.ariaExpanded == "function" ? t.item.ariaExpanded() : t.item.ariaExpanded;
|
|
67
|
-
|
|
68
|
-
const
|
|
67
|
+
P(() => t.item.buttonRef?.(l ?? null)), T(() => t.item.buttonRef?.(null));
|
|
68
|
+
const y = (e) => {
|
|
69
69
|
t.item.onContextMenu && (e.preventDefault(), e.stopPropagation(), t.item.onContextMenu({
|
|
70
70
|
trigger: e.currentTarget,
|
|
71
71
|
clientX: e.clientX,
|
|
@@ -73,56 +73,53 @@ function M(t) {
|
|
|
73
73
|
source: "pointer"
|
|
74
74
|
}));
|
|
75
75
|
}, m = (e) => {
|
|
76
|
-
!t.item.onContextMenu || !
|
|
76
|
+
!t.item.onContextMenu || !X(e) || (e.preventDefault(), e.stopPropagation(), t.item.onContextMenu(Y(e.currentTarget)));
|
|
77
77
|
};
|
|
78
|
-
return o(
|
|
78
|
+
return o(K, {
|
|
79
79
|
get content() {
|
|
80
80
|
return t.item.label;
|
|
81
81
|
},
|
|
82
82
|
placement: "right",
|
|
83
83
|
delay: 0,
|
|
84
84
|
get children() {
|
|
85
|
-
var e =
|
|
86
|
-
e.$$keydown = m, e.$$contextmenu =
|
|
87
|
-
var
|
|
88
|
-
return typeof
|
|
89
|
-
get when() {
|
|
90
|
-
return t.isActive;
|
|
91
|
-
},
|
|
92
|
-
get children() {
|
|
93
|
-
return X();
|
|
94
|
-
}
|
|
95
|
-
}), null), l(e, o(B, {
|
|
85
|
+
var e = V(), a = e.firstChild, n = a.nextSibling;
|
|
86
|
+
e.$$keydown = m, e.$$contextmenu = y, e.$$click = () => t.onClick();
|
|
87
|
+
var r = l;
|
|
88
|
+
return typeof r == "function" ? E(r, e) : l = e, v(e, o(R, {
|
|
96
89
|
get component() {
|
|
97
90
|
return t.item.icon;
|
|
98
91
|
},
|
|
99
|
-
class
|
|
100
|
-
|
|
92
|
+
get class() {
|
|
93
|
+
return d("relative w-5 h-5 transition-[color,transform] duration-[var(--floe-duration-fast)] ease-[var(--floe-ease-out)]", t.isActive ? "text-activity-bar-foreground-active" : "group-hover/activity-item:text-activity-bar-foreground-active group-hover/activity-item:-translate-y-px");
|
|
94
|
+
}
|
|
95
|
+
}), null), v(e, o(D, {
|
|
101
96
|
get when() {
|
|
102
97
|
return c();
|
|
103
98
|
},
|
|
104
99
|
get children() {
|
|
105
|
-
var
|
|
106
|
-
return
|
|
107
|
-
var
|
|
108
|
-
return () =>
|
|
109
|
-
})()),
|
|
100
|
+
var i = L();
|
|
101
|
+
return v(i, (() => {
|
|
102
|
+
var g = j(() => typeof c() == "number" && c() > 99);
|
|
103
|
+
return () => g() ? "99+" : c();
|
|
104
|
+
})()), x(() => s(i, d("absolute top-0.5 right-0.5 min-w-3.5 h-3.5 px-1", "flex items-center justify-center", "text-[length:var(--floe-type-caption)] font-medium rounded-full", "bg-activity-bar-badge text-activity-bar-badge-foreground"))), i;
|
|
110
105
|
}
|
|
111
|
-
}), null),
|
|
112
|
-
var
|
|
113
|
-
return
|
|
106
|
+
}), null), x((i) => {
|
|
107
|
+
var g = d("group/activity-item relative w-full aspect-square flex items-center justify-center cursor-pointer", "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", "text-activity-bar-foreground", t.isActive && "text-activity-bar-foreground-active"), C = t.item.label, k = t.isActive, A = f(), w = t.item.ariaControls, I = t.item.ariaHasPopup ?? (t.item.onContextMenu ? "menu" : void 0), M = d("absolute inset-1 rounded-md", "transition-colors duration-[var(--floe-duration-fast)] ease-[var(--floe-ease-out)]", t.isActive ? "bg-[var(--floe-state-selected)]" : "bg-transparent group-hover/activity-item:bg-[var(--floe-state-hover)]"), $ = d("absolute left-0 top-1/2 -translate-y-1/2 w-[2px] rounded-full", "transition-[height,background-color] duration-[var(--floe-duration-base)] ease-[var(--floe-ease-out)]", t.isActive ? "h-4 bg-[var(--activity-bar-foreground-active)]" : "h-1.5 bg-transparent group-hover/activity-item:h-2.5 group-hover/activity-item:bg-[var(--floe-line-strong)]");
|
|
108
|
+
return g !== i.e && s(e, i.e = g), C !== i.t && u(e, "aria-label", i.t = C), k !== i.a && u(e, "aria-pressed", i.a = k), A !== i.o && u(e, "aria-expanded", i.o = A), w !== i.i && u(e, "aria-controls", i.i = w), I !== i.n && u(e, "aria-haspopup", i.n = I), M !== i.s && s(a, i.s = M), $ !== i.h && s(n, i.h = $), i;
|
|
114
109
|
}, {
|
|
115
110
|
e: void 0,
|
|
116
111
|
t: void 0,
|
|
117
112
|
a: void 0,
|
|
118
113
|
o: void 0,
|
|
119
114
|
i: void 0,
|
|
120
|
-
n: void 0
|
|
115
|
+
n: void 0,
|
|
116
|
+
s: void 0,
|
|
117
|
+
h: void 0
|
|
121
118
|
}), e;
|
|
122
119
|
}
|
|
123
120
|
});
|
|
124
121
|
}
|
|
125
|
-
|
|
122
|
+
q(["click", "contextmenu", "keydown"]);
|
|
126
123
|
export {
|
|
127
|
-
|
|
124
|
+
Z as ActivityBar
|
|
128
125
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { insert as n, effect as
|
|
2
|
-
import { Show as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { useResolvedFloeConfig as
|
|
5
|
-
var h = /* @__PURE__ */
|
|
1
|
+
import { insert as n, effect as c, className as i, createComponent as a, template as s, delegateEvents as m } from "solid-js/web";
|
|
2
|
+
import { Show as u } from "solid-js";
|
|
3
|
+
import { cn as f } from "../../utils/cn.js";
|
|
4
|
+
import { useResolvedFloeConfig as b } from "../../context/FloeConfigContext.js";
|
|
5
|
+
var h = /* @__PURE__ */ s("<footer data-floe-shell-slot=bottom-bar style=background-color:var(--activity-bar);border-top-color:var(--bottom-bar-border)>"), g = /* @__PURE__ */ s('<span class="w-2.5 h-2.5">'), v = /* @__PURE__ */ s("<button type=button>"), d = /* @__PURE__ */ s("<span>");
|
|
6
6
|
function C(t) {
|
|
7
7
|
return (() => {
|
|
8
8
|
var r = h();
|
|
9
|
-
return n(r, () => t.children),
|
|
9
|
+
return n(r, () => t.children), c(() => i(r, f(t.height ?? "h-5", "shrink-0 flex items-center justify-between px-1.5", "bg-background border-t border-[var(--floe-line)]", "text-caption text-[var(--floe-ink-soft)] font-mono", t.class))), r;
|
|
10
10
|
})();
|
|
11
11
|
}
|
|
12
12
|
function $(t) {
|
|
13
|
-
const r = () =>
|
|
14
|
-
return
|
|
13
|
+
const r = () => f("flex items-center gap-1 px-1 py-0.5 rounded-sm", t.onClick && "hover:bg-[var(--floe-state-hover)] cursor-pointer", "transition-colors duration-[var(--floe-duration-instant)]", t.class);
|
|
14
|
+
return a(u, {
|
|
15
15
|
get when() {
|
|
16
16
|
return t.onClick;
|
|
17
17
|
},
|
|
18
18
|
get fallback() {
|
|
19
19
|
return (() => {
|
|
20
20
|
var e = d();
|
|
21
|
-
return n(e,
|
|
21
|
+
return n(e, a(u, {
|
|
22
22
|
get when() {
|
|
23
23
|
return t.icon;
|
|
24
24
|
},
|
|
@@ -26,12 +26,12 @@ function $(t) {
|
|
|
26
26
|
var o = g();
|
|
27
27
|
return n(o, () => t.icon), o;
|
|
28
28
|
}
|
|
29
|
-
}), null), n(e, () => t.children, null),
|
|
29
|
+
}), null), n(e, () => t.children, null), c(() => i(e, r())), e;
|
|
30
30
|
})();
|
|
31
31
|
},
|
|
32
32
|
get children() {
|
|
33
33
|
var e = v();
|
|
34
|
-
return e.$$click = () => t.onClick?.(), n(e,
|
|
34
|
+
return e.$$click = () => t.onClick?.(), n(e, a(u, {
|
|
35
35
|
get when() {
|
|
36
36
|
return t.icon;
|
|
37
37
|
},
|
|
@@ -39,22 +39,22 @@ function $(t) {
|
|
|
39
39
|
var o = g();
|
|
40
40
|
return n(o, () => t.icon), o;
|
|
41
41
|
}
|
|
42
|
-
}), null), n(e, () => t.children, null),
|
|
42
|
+
}), null), n(e, () => t.children, null), c(() => i(e, r())), e;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
function y(t) {
|
|
47
|
-
const r =
|
|
47
|
+
const r = b(), e = {
|
|
48
48
|
connected: "bg-success",
|
|
49
|
-
disconnected: "bg-
|
|
49
|
+
disconnected: "bg-[var(--floe-ink-ghost)]",
|
|
50
50
|
connecting: "bg-warning animate-pulse",
|
|
51
51
|
error: "bg-error"
|
|
52
52
|
}, o = () => r.config.strings.statusIndicator;
|
|
53
|
-
return
|
|
53
|
+
return a($, {
|
|
54
54
|
get children() {
|
|
55
55
|
return [(() => {
|
|
56
56
|
var l = d();
|
|
57
|
-
return
|
|
57
|
+
return c(() => i(l, f("w-1.5 h-1.5 rounded-full", e[t.status]))), l;
|
|
58
58
|
})(), (() => {
|
|
59
59
|
var l = d();
|
|
60
60
|
return n(l, () => t.label ?? o()[t.status]), l;
|
|
@@ -62,7 +62,7 @@ function y(t) {
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
m(["click"]);
|
|
66
66
|
export {
|
|
67
67
|
C as BottomBar,
|
|
68
68
|
$ as BottomBarItem,
|