@floegence/floe-webapp-core 0.86.58 → 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 +266 -261
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { spread as T, mergeProps as W, memo as B, insert as
|
|
1
|
+
import { spread as T, mergeProps as W, memo as B, insert as p, createComponent as P, effect as k, setAttribute as c, className as x, setStyleProperty as E, style as H, template as w } from "solid-js/web";
|
|
2
2
|
import { splitProps as A, Show as j, For as G } from "solid-js";
|
|
3
3
|
import { cn as i } from "../../utils/cn.js";
|
|
4
|
-
var J = /* @__PURE__ */
|
|
4
|
+
var J = /* @__PURE__ */ w('<div class="mb-[var(--floe-gap-inline)] flex items-baseline justify-between"><span>Progress</span><span>'), K = /* @__PURE__ */ w('<div class="absolute inset-0 rounded-xs bg-[color-mix(in_srgb,var(--floe-ink)_16%,transparent)] transition-[width] duration-[var(--floe-duration-slow)] ease-[var(--floe-ease-out)]">'), O = /* @__PURE__ */ w(`<div><div data-floe-surface=inset data-floe-surface-part=progress-track role=progressbar aria-valuemin=0><div data-floe-surface=raised data-floe-surface-part=progress-fill></div></div><style>
|
|
5
5
|
.bg-striped {
|
|
6
6
|
background-image: linear-gradient(
|
|
7
7
|
45deg,
|
|
@@ -29,19 +29,19 @@ var J = /* @__PURE__ */ p('<div class="flex justify-between mb-1"><span>Progress
|
|
|
29
29
|
.animate-indeterminate {
|
|
30
30
|
animation: indeterminate 1.5s ease-in-out infinite;
|
|
31
31
|
}
|
|
32
|
-
`), Q = /* @__PURE__ */
|
|
33
|
-
const
|
|
32
|
+
`), Q = /* @__PURE__ */ w("<svg><circle fill=none stroke=currentColor class=text-[var(--floe-well-strong)]></svg>", !1, !0, !1), R = /* @__PURE__ */ w("<span>"), U = /* @__PURE__ */ w("<div data-floe-surface-part=progress-circle role=progressbar aria-valuemin=0><svg><circle fill=none stroke=currentColor stroke-linecap=round>"), Y = /* @__PURE__ */ w('<div class="mb-[var(--floe-gap-inline)] flex items-baseline justify-between"><span>Progress</span><span>%'), Z = /* @__PURE__ */ w("<div><div class=flex role=progressbar aria-valuemin=0>"), ee = /* @__PURE__ */ w("<div data-floe-surface-part=progress-fill>"), te = /* @__PURE__ */ w("<div>"), re = /* @__PURE__ */ w("<div data-floe-surface=inset data-floe-surface-part=progress-track>"), ae = /* @__PURE__ */ w("<div><div><div data-floe-surface-part=step></div></div><span>"), oe = /* @__PURE__ */ w('<svg class="w-3 h-3"viewBox="0 0 12 12"fill=none stroke=currentColor stroke-width=2><path d="M2 6l3 3 5-6">');
|
|
33
|
+
const F = {
|
|
34
34
|
sm: {
|
|
35
35
|
track: "h-1",
|
|
36
|
-
label: "text-[
|
|
36
|
+
label: "text-[length:var(--floe-type-caption)]"
|
|
37
37
|
},
|
|
38
38
|
md: {
|
|
39
|
-
track: "h-
|
|
40
|
-
label: "text-
|
|
39
|
+
track: "h-1.5",
|
|
40
|
+
label: "text-[length:var(--floe-type-caption)]"
|
|
41
41
|
},
|
|
42
42
|
lg: {
|
|
43
|
-
track: "h-
|
|
44
|
-
label: "text-
|
|
43
|
+
track: "h-2",
|
|
44
|
+
label: "text-[length:var(--floe-type-supporting)]"
|
|
45
45
|
}
|
|
46
46
|
}, S = {
|
|
47
47
|
primary: {
|
|
@@ -65,66 +65,63 @@ const _ = {
|
|
|
65
65
|
label: "text-info"
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
function
|
|
69
|
-
const [e,
|
|
68
|
+
function ce(_) {
|
|
69
|
+
const [e, L] = A(_, ["value", "max", "size", "color", "showLabel", "labelFormat", "striped", "animated", "indeterminate", "buffer", "class"]), s = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.max ?? 100, b = () => Math.min(Math.max(e.value ?? 0, 0), u()), f = () => b() / u() * 100, C = () => e.buffer ? Math.min(e.buffer / u() * 100, 100) : 0, h = () => e.labelFormat ? e.labelFormat(b(), u()) : `${Math.round(f())}%`;
|
|
70
70
|
return (() => {
|
|
71
|
-
var
|
|
72
|
-
return T(
|
|
71
|
+
var d = O(), v = d.firstChild, m = v.firstChild;
|
|
72
|
+
return T(d, W({
|
|
73
73
|
get class() {
|
|
74
74
|
return i("w-full", e.class);
|
|
75
75
|
}
|
|
76
|
-
},
|
|
76
|
+
}, L), !1, !0), p(d, P(j, {
|
|
77
77
|
get when() {
|
|
78
78
|
return e.showLabel;
|
|
79
79
|
},
|
|
80
80
|
get children() {
|
|
81
|
-
var a = J(),
|
|
82
|
-
return
|
|
83
|
-
var t = i("text-
|
|
84
|
-
return t !== r.e && x(
|
|
81
|
+
var a = J(), o = a.firstChild, l = o.nextSibling;
|
|
82
|
+
return p(l, h), k((r) => {
|
|
83
|
+
var t = i("text-[var(--floe-ink-soft)]", F[s()].label), n = i("font-medium tabular-nums", F[s()].label, S[g()].label);
|
|
84
|
+
return t !== r.e && x(o, r.e = t), n !== r.t && x(l, r.t = n), r;
|
|
85
85
|
}, {
|
|
86
86
|
e: void 0,
|
|
87
87
|
t: void 0
|
|
88
88
|
}), a;
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), v), p(v, P(j, {
|
|
91
91
|
get when() {
|
|
92
92
|
return e.buffer;
|
|
93
93
|
},
|
|
94
94
|
get children() {
|
|
95
95
|
var a = K();
|
|
96
|
-
return
|
|
96
|
+
return k((o) => E(a, "width", `${C()}%`)), a;
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
99
|
-
var
|
|
98
|
+
}), m), k((a) => {
|
|
99
|
+
var o = i("relative w-full overflow-hidden rounded-xs bg-[var(--floe-well)]", F[s()].track), l = e.indeterminate ? void 0 : b(), r = u(), t = i("h-full rounded-xs transition-[width] duration-[var(--floe-duration-slow)] ease-[var(--floe-ease-out)]", S[g()].bar, e.striped && "bg-striped", e.animated && e.striped && "animate-stripe", e.indeterminate && "animate-indeterminate w-1/3"), n = e.indeterminate ? void 0 : {
|
|
100
100
|
width: `${f()}%`
|
|
101
101
|
};
|
|
102
|
-
return
|
|
102
|
+
return o !== a.e && x(v, a.e = o), l !== a.t && c(v, "aria-valuenow", a.t = l), r !== a.a && c(v, "aria-valuemax", a.a = r), t !== a.o && x(m, a.o = t), a.i = H(m, n, a.i), a;
|
|
103
103
|
}, {
|
|
104
104
|
e: void 0,
|
|
105
105
|
t: void 0,
|
|
106
106
|
a: void 0,
|
|
107
107
|
o: void 0,
|
|
108
108
|
i: void 0
|
|
109
|
-
}),
|
|
109
|
+
}), d;
|
|
110
110
|
})();
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const ne = {
|
|
113
113
|
sm: 32,
|
|
114
114
|
md: 48,
|
|
115
115
|
lg: 64
|
|
116
116
|
};
|
|
117
|
-
function
|
|
118
|
-
const [e,
|
|
119
|
-
const
|
|
120
|
-
return typeof
|
|
121
|
-
}, g = () => e.strokeWidth ??
|
|
122
|
-
const n = l();
|
|
123
|
-
return n <= 32 ? "text-[8px]" : n <= 48 ? "text-[10px]" : n <= 64 ? "text-xs" : "text-sm";
|
|
124
|
-
};
|
|
117
|
+
function de(_) {
|
|
118
|
+
const [e, L] = A(_, ["value", "max", "size", "strokeWidth", "color", "showLabel", "labelFormat", "indeterminate", "showTrack", "class"]), s = () => {
|
|
119
|
+
const o = e.size ?? "md";
|
|
120
|
+
return typeof o == "number" ? o : ne[o];
|
|
121
|
+
}, g = () => e.strokeWidth ?? s() / 10, u = () => e.color ?? "primary", b = () => e.max ?? 100, f = () => Math.min(Math.max(e.value ?? 0, 0), b()), C = () => f() / b() * 100, h = () => (s() - g()) / 2, d = () => 2 * Math.PI * h(), v = () => d() - C() / 100 * d(), m = () => e.labelFormat ? e.labelFormat(f(), b()) : `${Math.round(C())}%`, a = () => s() <= 48 ? "text-[length:var(--floe-type-caption)]" : "text-[length:var(--floe-type-supporting)]";
|
|
125
122
|
return (() => {
|
|
126
|
-
var
|
|
127
|
-
return T(
|
|
123
|
+
var o = U(), l = o.firstChild, r = l.firstChild;
|
|
124
|
+
return T(o, W({
|
|
128
125
|
get "data-floe-surface"() {
|
|
129
126
|
return e.showTrack !== !1 ? "inset" : void 0;
|
|
130
127
|
},
|
|
@@ -133,25 +130,25 @@ function ce(L) {
|
|
|
133
130
|
},
|
|
134
131
|
get style() {
|
|
135
132
|
return {
|
|
136
|
-
width: `${
|
|
137
|
-
height: `${
|
|
133
|
+
width: `${s()}px`,
|
|
134
|
+
height: `${s()}px`
|
|
138
135
|
};
|
|
139
136
|
},
|
|
140
137
|
get "aria-valuenow"() {
|
|
141
138
|
return B(() => !!e.indeterminate)() ? void 0 : f();
|
|
142
139
|
},
|
|
143
140
|
get "aria-valuemax"() {
|
|
144
|
-
return
|
|
141
|
+
return b();
|
|
145
142
|
}
|
|
146
|
-
},
|
|
143
|
+
}, L), !1, !0), p(l, P(j, {
|
|
147
144
|
get when() {
|
|
148
145
|
return e.showTrack !== !1;
|
|
149
146
|
},
|
|
150
147
|
get children() {
|
|
151
148
|
var t = Q();
|
|
152
|
-
return
|
|
153
|
-
var
|
|
154
|
-
return
|
|
149
|
+
return k((n) => {
|
|
150
|
+
var y = s() / 2, z = s() / 2, M = h(), $ = g();
|
|
151
|
+
return y !== n.e && c(t, "cx", n.e = y), z !== n.t && c(t, "cy", n.t = z), M !== n.a && c(t, "r", n.a = M), $ !== n.o && c(t, "stroke-width", n.o = $), n;
|
|
155
152
|
}, {
|
|
156
153
|
e: void 0,
|
|
157
154
|
t: void 0,
|
|
@@ -159,17 +156,17 @@ function ce(L) {
|
|
|
159
156
|
o: void 0
|
|
160
157
|
}), t;
|
|
161
158
|
}
|
|
162
|
-
}), r),
|
|
159
|
+
}), r), p(o, P(j, {
|
|
163
160
|
get when() {
|
|
164
161
|
return B(() => !!e.showLabel)() && !e.indeterminate;
|
|
165
162
|
},
|
|
166
163
|
get children() {
|
|
167
164
|
var t = R();
|
|
168
|
-
return
|
|
165
|
+
return p(t, m), k(() => x(t, i("absolute font-medium tabular-nums", a(), S[u()].label))), t;
|
|
169
166
|
}
|
|
170
|
-
}), null),
|
|
171
|
-
var
|
|
172
|
-
return
|
|
167
|
+
}), null), k((t) => {
|
|
168
|
+
var n = i("transform -rotate-90", e.indeterminate && "animate-spin"), y = s(), z = s(), M = s() / 2, $ = s() / 2, D = h(), I = g(), N = String(d()), V = e.indeterminate ? d() * 0.75 : v(), q = i("transition-[stroke-dashoffset] duration-[var(--floe-duration-slow)] ease-[var(--floe-ease-out)]", S[u()].label);
|
|
169
|
+
return n !== t.e && c(l, "class", t.e = n), y !== t.t && c(l, "width", t.t = y), z !== t.a && c(l, "height", t.a = z), M !== t.o && c(r, "cx", t.o = M), $ !== t.i && c(r, "cy", t.i = $), D !== t.n && c(r, "r", t.n = D), I !== t.s && c(r, "stroke-width", t.s = I), N !== t.h && c(r, "stroke-dasharray", t.h = N), V !== t.r && c(r, "stroke-dashoffset", t.r = V), q !== t.d && c(r, "class", t.d = q), t;
|
|
173
170
|
}, {
|
|
174
171
|
e: void 0,
|
|
175
172
|
t: void 0,
|
|
@@ -181,104 +178,104 @@ function ce(L) {
|
|
|
181
178
|
h: void 0,
|
|
182
179
|
r: void 0,
|
|
183
180
|
d: void 0
|
|
184
|
-
}),
|
|
181
|
+
}), o;
|
|
185
182
|
})();
|
|
186
183
|
}
|
|
187
|
-
function ue(
|
|
188
|
-
const [e,
|
|
184
|
+
function ue(_) {
|
|
185
|
+
const [e, L] = A(_, ["value", "max", "segments", "size", "color", "showLabel", "gap", "class"]), s = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.max ?? 100, b = () => e.segments ?? 5, f = () => e.gap ?? 2, C = () => Math.min(Math.max(e.value ?? 0, 0), u()), h = () => C() / u() * 100, d = () => Math.round(h() / 100 * b());
|
|
189
186
|
return (() => {
|
|
190
|
-
var
|
|
191
|
-
return T(
|
|
187
|
+
var v = Z(), m = v.firstChild;
|
|
188
|
+
return T(v, W({
|
|
192
189
|
get class() {
|
|
193
190
|
return i("w-full", e.class);
|
|
194
191
|
}
|
|
195
|
-
},
|
|
192
|
+
}, L), !1, !0), p(v, P(j, {
|
|
196
193
|
get when() {
|
|
197
194
|
return e.showLabel;
|
|
198
195
|
},
|
|
199
196
|
get children() {
|
|
200
|
-
var a = Y(),
|
|
201
|
-
return
|
|
202
|
-
var
|
|
203
|
-
return
|
|
197
|
+
var a = Y(), o = a.firstChild, l = o.nextSibling, r = l.firstChild;
|
|
198
|
+
return p(l, () => Math.round(h()), r), k((t) => {
|
|
199
|
+
var n = i("text-[var(--floe-ink-soft)]", F[s()].label), y = i("font-medium tabular-nums", F[s()].label, S[g()].label);
|
|
200
|
+
return n !== t.e && x(o, t.e = n), y !== t.t && x(l, t.t = y), t;
|
|
204
201
|
}, {
|
|
205
202
|
e: void 0,
|
|
206
203
|
t: void 0
|
|
207
204
|
}), a;
|
|
208
205
|
}
|
|
209
|
-
}),
|
|
206
|
+
}), m), p(m, P(G, {
|
|
210
207
|
get each() {
|
|
211
208
|
return Array.from({
|
|
212
|
-
length:
|
|
209
|
+
length: b()
|
|
213
210
|
});
|
|
214
211
|
},
|
|
215
|
-
children: (a,
|
|
216
|
-
var
|
|
217
|
-
return
|
|
218
|
-
var t =
|
|
219
|
-
return t !== r.e &&
|
|
212
|
+
children: (a, o) => (() => {
|
|
213
|
+
var l = ee();
|
|
214
|
+
return k((r) => {
|
|
215
|
+
var t = o() < d() ? "raised" : "inset", n = i("flex-1 rounded-xs transition-colors duration-[var(--floe-duration-base)] ease-[var(--floe-ease-out)]", F[s()].track, o() < d() ? S[g()].bar : "bg-[var(--floe-well)]");
|
|
216
|
+
return t !== r.e && c(l, "data-floe-surface", r.e = t), n !== r.t && x(l, r.t = n), r;
|
|
220
217
|
}, {
|
|
221
218
|
e: void 0,
|
|
222
219
|
t: void 0
|
|
223
|
-
}),
|
|
220
|
+
}), l;
|
|
224
221
|
})()
|
|
225
|
-
})),
|
|
226
|
-
var
|
|
227
|
-
return
|
|
222
|
+
})), k((a) => {
|
|
223
|
+
var o = `${f()}px`, l = C(), r = u();
|
|
224
|
+
return o !== a.e && E(m, "gap", a.e = o), l !== a.t && c(m, "aria-valuenow", a.t = l), r !== a.a && c(m, "aria-valuemax", a.a = r), a;
|
|
228
225
|
}, {
|
|
229
226
|
e: void 0,
|
|
230
227
|
t: void 0,
|
|
231
228
|
a: void 0
|
|
232
|
-
}),
|
|
229
|
+
}), v;
|
|
233
230
|
})();
|
|
234
231
|
}
|
|
235
232
|
const X = {
|
|
236
233
|
sm: {
|
|
237
|
-
dot: "w-5 h-5 text-[
|
|
238
|
-
label: "text-[
|
|
239
|
-
connector: "h-
|
|
234
|
+
dot: "w-5 h-5 text-[length:var(--floe-type-caption)]",
|
|
235
|
+
label: "text-[length:var(--floe-type-caption)]",
|
|
236
|
+
connector: "h-px"
|
|
240
237
|
},
|
|
241
238
|
md: {
|
|
242
|
-
dot: "w-6 h-6 text-
|
|
243
|
-
label: "text-
|
|
244
|
-
connector: "h-
|
|
239
|
+
dot: "w-6 h-6 text-[length:var(--floe-type-caption)]",
|
|
240
|
+
label: "text-[length:var(--floe-type-supporting)]",
|
|
241
|
+
connector: "h-px"
|
|
245
242
|
},
|
|
246
243
|
lg: {
|
|
247
|
-
dot: "w-8 h-8 text-
|
|
248
|
-
label: "text-
|
|
249
|
-
connector: "h-
|
|
244
|
+
dot: "w-8 h-8 text-[length:var(--floe-type-supporting)]",
|
|
245
|
+
label: "text-[length:var(--floe-type-control)]",
|
|
246
|
+
connector: "h-0.5"
|
|
250
247
|
}
|
|
251
248
|
};
|
|
252
|
-
function
|
|
253
|
-
const [e,
|
|
249
|
+
function ve(_) {
|
|
250
|
+
const [e, L] = A(_, ["current", "steps", "size", "color", "orientation", "class"]), s = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.orientation === "vertical", b = (f) => f < e.current ? "completed" : f === e.current ? "current" : "pending";
|
|
254
251
|
return (() => {
|
|
255
252
|
var f = te();
|
|
256
253
|
return T(f, W({
|
|
257
254
|
get class() {
|
|
258
255
|
return i("flex", u() ? "flex-col" : "flex-row items-start", e.class);
|
|
259
256
|
}
|
|
260
|
-
},
|
|
257
|
+
}, L), !1, !0), p(f, P(G, {
|
|
261
258
|
get each() {
|
|
262
259
|
return e.steps;
|
|
263
260
|
},
|
|
264
|
-
children: (C,
|
|
265
|
-
const
|
|
261
|
+
children: (C, h) => {
|
|
262
|
+
const d = () => b(h()), v = () => h() === e.steps.length - 1;
|
|
266
263
|
return (() => {
|
|
267
|
-
var
|
|
268
|
-
return
|
|
269
|
-
var r = B(() =>
|
|
270
|
-
return () => r() ?
|
|
271
|
-
})()),
|
|
264
|
+
var m = ae(), a = m.firstChild, o = a.firstChild, l = a.nextSibling;
|
|
265
|
+
return p(o, (() => {
|
|
266
|
+
var r = B(() => d() === "completed");
|
|
267
|
+
return () => r() ? oe() : h() + 1;
|
|
268
|
+
})()), p(a, P(j, {
|
|
272
269
|
get when() {
|
|
273
|
-
return !
|
|
270
|
+
return !v();
|
|
274
271
|
},
|
|
275
272
|
get children() {
|
|
276
273
|
var r = re();
|
|
277
|
-
return
|
|
274
|
+
return k(() => x(r, i("transition-colors duration-[var(--floe-duration-base)] ease-[var(--floe-ease-out)]", u() ? i("w-px h-8 my-1", h() < e.current ? S[g()].bar : "bg-[var(--floe-well-strong)]") : i("flex-1 mx-2", X[s()].connector, h() < e.current ? S[g()].bar : "bg-[var(--floe-well-strong)]")))), r;
|
|
278
275
|
}
|
|
279
|
-
}), null),
|
|
280
|
-
var t = i("flex", u() ? "flex-row" : "flex-col items-center", !
|
|
281
|
-
return t !== r.e && x(
|
|
276
|
+
}), null), p(l, C), k((r) => {
|
|
277
|
+
var t = i("flex", u() ? "flex-row" : "flex-col items-center", !v() && "flex-1"), n = i("flex items-center", u() ? "flex-col" : "flex-row w-full"), y = d() === "pending" ? "inset" : "raised", z = d(), M = i("flex shrink-0 items-center justify-center rounded-full font-medium transition-colors duration-[var(--floe-duration-base)] ease-[var(--floe-ease-out)]", X[s()].dot, d() === "completed" && i(S[g()].bar, "text-primary-foreground"), d() === "current" && i(`border ${S[g()].label}`, "border-current bg-[var(--floe-plane)]"), d() === "pending" && "bg-[var(--floe-well)] text-[var(--floe-ink-soft)]"), $ = i("mt-2 text-center", X[s()].label, d() === "current" ? "font-medium text-[var(--floe-ink)]" : "text-[var(--floe-ink-soft)]", u() && "ml-3 mt-0");
|
|
278
|
+
return t !== r.e && x(m, r.e = t), n !== r.t && x(a, r.t = n), y !== r.a && c(o, "data-floe-surface", r.a = y), z !== r.o && c(o, "data-floe-step-state", r.o = z), M !== r.i && x(o, r.i = M), $ !== r.n && x(l, r.n = $), r;
|
|
282
279
|
}, {
|
|
283
280
|
e: void 0,
|
|
284
281
|
t: void 0,
|
|
@@ -286,15 +283,15 @@ function me(L) {
|
|
|
286
283
|
o: void 0,
|
|
287
284
|
i: void 0,
|
|
288
285
|
n: void 0
|
|
289
|
-
}),
|
|
286
|
+
}), m;
|
|
290
287
|
})();
|
|
291
288
|
}
|
|
292
289
|
})), f;
|
|
293
290
|
})();
|
|
294
291
|
}
|
|
295
292
|
export {
|
|
296
|
-
|
|
297
|
-
|
|
293
|
+
de as CircularProgress,
|
|
294
|
+
ce as LinearProgress,
|
|
298
295
|
ue as SegmentedProgress,
|
|
299
|
-
|
|
296
|
+
ve as StepsProgress
|
|
300
297
|
};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { spread as
|
|
2
|
-
import { splitProps as
|
|
1
|
+
import { spread as v, mergeProps as b, insert as t, createComponent as i, memo as h, effect as p, className as s, template as a } from "solid-js/web";
|
|
2
|
+
import { splitProps as x, Show as c } from "solid-js";
|
|
3
3
|
import { cn as u } from "../../utils/cn.js";
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
const [e,
|
|
7
|
-
"border-left-color": `color-mix(in srgb, var(--primary) ${(
|
|
4
|
+
var y = /* @__PURE__ */ a("<span>"), $ = /* @__PURE__ */ a('<span class="mx-1 opacity-50">—'), w = /* @__PURE__ */ a("<cite class=not-italic>"), _ = /* @__PURE__ */ a("<footer>"), k = /* @__PURE__ */ a("<blockquote data-floe-surface=inset data-floe-surface-part=message><div>");
|
|
5
|
+
function S(f) {
|
|
6
|
+
const [e, m] = x(f, ["variant", "citation", "author", "class", "children"]), r = () => e.variant ?? "default", g = () => r() === "inline" ? {} : {
|
|
7
|
+
"border-left-color": `color-mix(in srgb, var(--primary) ${(r() === "subtle" ? 0.5 : 0.7) * 100}%, transparent)`
|
|
8
8
|
};
|
|
9
9
|
return (() => {
|
|
10
|
-
var
|
|
11
|
-
return
|
|
10
|
+
var l = k(), d = l.firstChild;
|
|
11
|
+
return v(l, b({
|
|
12
12
|
get class() {
|
|
13
13
|
return u(
|
|
14
14
|
"relative my-2",
|
|
15
15
|
// Default variant - Gray background with solid primary left border
|
|
16
|
-
|
|
16
|
+
r() === "default" && ["pl-3 py-2 pr-3", "border-l-2", "bg-[var(--floe-well)]", "rounded-r"],
|
|
17
17
|
// Subtle variant - Lighter background, visible border
|
|
18
|
-
|
|
18
|
+
r() === "subtle" && ["pl-3 py-1.5 pr-3", "border-l-2", "bg-[var(--floe-well)]", "rounded-r"],
|
|
19
19
|
// Bordered variant - Full border for emphasis
|
|
20
|
-
|
|
20
|
+
r() === "bordered" && ["px-3 py-2", "border border-[var(--floe-line)] rounded-control", "border-l-2", "bg-[var(--floe-well)]"],
|
|
21
21
|
// Code variant - Monospace, terminal-like
|
|
22
|
-
|
|
22
|
+
r() === "code" && ["px-3 py-2", "bg-[var(--floe-well)] rounded-xs", "font-mono", "border-l-2"],
|
|
23
23
|
// Inline variant - Compact, for tight spaces
|
|
24
|
-
|
|
24
|
+
r() === "inline" && ["px-2 py-1", "bg-[var(--floe-well)] rounded-xs", "text-[var(--floe-ink-quiet)]"],
|
|
25
25
|
e.class
|
|
26
26
|
);
|
|
27
27
|
},
|
|
28
28
|
get style() {
|
|
29
29
|
return g();
|
|
30
30
|
}
|
|
31
|
-
},
|
|
31
|
+
}, m), !1, !0), t(d, () => e.children), t(l, i(c, {
|
|
32
32
|
get when() {
|
|
33
33
|
return e.citation || e.author;
|
|
34
34
|
},
|
|
35
35
|
get children() {
|
|
36
|
-
var
|
|
37
|
-
return
|
|
36
|
+
var o = _();
|
|
37
|
+
return t(o, i(c, {
|
|
38
38
|
get when() {
|
|
39
39
|
return e.author;
|
|
40
40
|
},
|
|
41
41
|
get children() {
|
|
42
|
-
var
|
|
43
|
-
return
|
|
42
|
+
var n = y();
|
|
43
|
+
return t(n, () => e.author), n;
|
|
44
44
|
}
|
|
45
|
-
}), null),
|
|
45
|
+
}), null), t(o, i(c, {
|
|
46
46
|
get when() {
|
|
47
47
|
return h(() => !!e.author)() && e.citation;
|
|
48
48
|
},
|
|
49
49
|
get children() {
|
|
50
50
|
return $();
|
|
51
51
|
}
|
|
52
|
-
}), null),
|
|
52
|
+
}), null), t(o, i(c, {
|
|
53
53
|
get when() {
|
|
54
54
|
return e.citation;
|
|
55
55
|
},
|
|
56
56
|
get children() {
|
|
57
|
-
var
|
|
58
|
-
return
|
|
57
|
+
var n = w();
|
|
58
|
+
return t(n, () => e.citation), n;
|
|
59
59
|
}
|
|
60
|
-
}), null), p(() => s(
|
|
60
|
+
}), null), p(() => s(o, u("mt-1.5 text-[length:var(--floe-type-caption)] text-[var(--floe-ink-quiet)] not-italic", r() === "code" && "font-mono"))), o;
|
|
61
61
|
}
|
|
62
|
-
}), null), p(() => s(
|
|
62
|
+
}), null), p(() => s(d, u("text-xs leading-relaxed text-foreground/80", r() === "code" && "text-caption", r() === "inline" && "text-caption"))), l;
|
|
63
63
|
})();
|
|
64
64
|
}
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
S as QuoteBlock
|
|
67
67
|
};
|