@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.
Files changed (103) hide show
  1. package/dist/components/chat/blocks/BlockRenderer.js +1 -1
  2. package/dist/components/chat/blocks/CodeDiffBlock.js +56 -56
  3. package/dist/components/chat/blocks/ImageBlock.js +1 -1
  4. package/dist/components/chat/blocks/ToolCallBlock.js +57 -57
  5. package/dist/components/chat/status/ConnectionStatus.js +10 -10
  6. package/dist/components/deck/DeckCell.js +25 -25
  7. package/dist/components/deck/DeckContextMenu.js +20 -20
  8. package/dist/components/deck/DeckGrid.js +1 -1
  9. package/dist/components/deck/DeckTopBar.js +42 -42
  10. package/dist/components/deck/DropZonePreview.js +6 -6
  11. package/dist/components/deck/LayoutSelector.js +53 -53
  12. package/dist/components/deck/WidgetFrame.js +28 -28
  13. package/dist/components/deck/WidgetPalette.js +31 -31
  14. package/dist/components/deck/WidgetTypeSwitcher.js +31 -31
  15. package/dist/components/file-browser/Breadcrumb.js +27 -27
  16. package/dist/components/file-browser/DirectoryTree.js +15 -15
  17. package/dist/components/file-browser/DragPreview.js +58 -58
  18. package/dist/components/file-browser/FileBrowser.js +17 -17
  19. package/dist/components/file-browser/FileBrowserStatusBar.js +18 -18
  20. package/dist/components/file-browser/FileBrowserToolbar.js +27 -27
  21. package/dist/components/file-browser/FileContextMenu.js +47 -47
  22. package/dist/components/file-browser/FileGridView.js +53 -51
  23. package/dist/components/file-browser/FileItemDecorations.js +30 -27
  24. package/dist/components/file-browser/FileListView.js +114 -114
  25. package/dist/components/icons/index.js +1357 -1357
  26. package/dist/components/launchpad/Launchpad.js +14 -14
  27. package/dist/components/launchpad/LaunchpadGrid.js +7 -7
  28. package/dist/components/launchpad/LaunchpadItem.js +11 -11
  29. package/dist/components/launchpad/LaunchpadPagination.js +16 -16
  30. package/dist/components/launchpad/LaunchpadSearch.js +9 -9
  31. package/dist/components/layout/ActivityBar.js +52 -55
  32. package/dist/components/layout/BottomBar.js +17 -17
  33. package/dist/components/layout/MobileNavigationPanel.js +36 -36
  34. package/dist/components/layout/MobileTabBar.js +39 -39
  35. package/dist/components/layout/Panel.js +16 -16
  36. package/dist/components/layout/ResizeHandle.js +19 -19
  37. package/dist/components/layout/Shell.js +50 -50
  38. package/dist/components/layout/Sidebar.js +37 -36
  39. package/dist/components/layout/SidebarPane.js +19 -19
  40. package/dist/components/layout/TopBar.js +16 -16
  41. package/dist/components/layout/TopBarIconButton.js +15 -15
  42. package/dist/components/loading/LoadingOverlay.js +9 -9
  43. package/dist/components/loading/Skeleton.js +11 -11
  44. package/dist/components/ui/Button.js +36 -36
  45. package/dist/components/ui/Card.d.ts +11 -62
  46. package/dist/components/ui/Card.js +64 -237
  47. package/dist/components/ui/Checkbox.js +79 -79
  48. package/dist/components/ui/CommandPalette.js +56 -55
  49. package/dist/components/ui/Dialog.js +91 -93
  50. package/dist/components/ui/DirectoryInput.js +22 -22
  51. package/dist/components/ui/DirectoryPicker.js +8 -8
  52. package/dist/components/ui/Dropdown.js +89 -87
  53. package/dist/components/ui/FeedbackIndicator.js +57 -57
  54. package/dist/components/ui/FileOpenPicker.js +37 -37
  55. package/dist/components/ui/FileSavePicker.js +41 -41
  56. package/dist/components/ui/FloatingWindow.js +213 -205
  57. package/dist/components/ui/Form.js +76 -76
  58. package/dist/components/ui/HighlightBlock.js +14 -14
  59. package/dist/components/ui/Input.js +106 -109
  60. package/dist/components/ui/Pagination.js +86 -86
  61. package/dist/components/ui/Popover.d.ts +33 -0
  62. package/dist/components/ui/Popover.js +133 -0
  63. package/dist/components/ui/ProcessingIndicator.js +344 -345
  64. package/dist/components/ui/Progress.js +94 -97
  65. package/dist/components/ui/QuoteBlock.js +25 -25
  66. package/dist/components/ui/Radio.js +91 -91
  67. package/dist/components/ui/SegmentedControl.js +24 -24
  68. package/dist/components/ui/Stepper.js +68 -60
  69. package/dist/components/ui/Switch.js +25 -25
  70. package/dist/components/ui/Tabs.js +99 -87
  71. package/dist/components/ui/Tag.js +12 -9
  72. package/dist/components/ui/Tooltip.js +30 -30
  73. package/dist/components/ui/floatingPresence.d.ts +7 -0
  74. package/dist/components/ui/floatingPresence.js +80 -39
  75. package/dist/components/ui/index.d.ts +2 -1
  76. package/dist/components/ui/picker/DirectoryFavorites.js +27 -27
  77. package/dist/components/ui/picker/PickerBase.js +107 -107
  78. package/dist/context/NotificationContext.js +4 -4
  79. package/dist/context/ThemeContext.js +71 -70
  80. package/dist/floe.css +205 -43
  81. package/dist/full.js +650 -652
  82. package/dist/language.css +320 -0
  83. package/dist/primitives.css +23 -17
  84. package/dist/standalone.css +1 -0
  85. package/dist/styles/themes/classicSemanticTokens.d.ts +122 -122
  86. package/dist/styles/themes/classicSemanticTokens.js +140 -138
  87. package/dist/styles/themes/index.d.ts +3 -1
  88. package/dist/styles/themes/index.js +10 -10
  89. package/dist/styles/themes/presets.d.ts +2 -2
  90. package/dist/styles/themes/presets.js +34 -34
  91. package/dist/styles/tokens.d.ts +152 -68
  92. package/dist/styles/tokens.js +87 -49
  93. package/dist/styles.css +1 -1
  94. package/dist/surface.css +161 -116
  95. package/dist/themes/dark.css +64 -64
  96. package/dist/themes/light.css +64 -64
  97. package/dist/ui.css +171 -255
  98. package/dist/ui.js +176 -178
  99. package/dist/utils/hotInteraction.d.ts +7 -0
  100. package/dist/utils/hotInteraction.js +12 -12
  101. package/dist/widgets/TerminalWidget.js +28 -28
  102. package/dist/workbench-composition.css +15 -15
  103. package/package.json +1 -1
@@ -1,272 +1,99 @@
1
- import { spread as m, mergeProps as b, insert as i, effect as A, setStyleProperty as z, memo as E, className as L, template as f, use as q, delegateEvents as W } from "solid-js/web";
2
- import { splitProps as h, createSignal as F, onCleanup as B } from "solid-js";
3
- import { cn as p } from "../../utils/cn.js";
4
- var D = /* @__PURE__ */ f('<div style="background-size:200% 200%;animation:gradient-shift 3s ease infinite">'), G = /* @__PURE__ */ f('<div class="absolute inset-[1px] rounded-[7px] bg-card">'), N = /* @__PURE__ */ f('<div class="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100">'), Z = /* @__PURE__ */ f('<div class="absolute inset-0 -translate-x-full animate-[shimmer_2s_infinite]"style="background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 12%, transparent), transparent)">'), J = /* @__PURE__ */ f("<div><div>"), T = /* @__PURE__ */ f("<div>"), K = /* @__PURE__ */ f("<h3>"), O = /* @__PURE__ */ f("<p>"), Q = /* @__PURE__ */ f('<div><div class="relative z-10"style=transform:translateZ(20px)>'), U = /* @__PURE__ */ f('<div class="pointer-events-none absolute inset-0 z-20 opacity-0 transition-opacity duration-300">'), V = /* @__PURE__ */ f('<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">'), ee = /* @__PURE__ */ f('<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
- function oe(l) {
6
- const [e, a] = h(l, ["variant", "enableTilt", "gradientColors", "glowColor", "class", "children", "style"]), r = () => e.variant ?? "default", [d, g] = F({});
7
- let c, s = null, _ = 0, y = 0;
8
- const u = () => {
9
- if (s = null, !c || !e.enableTilt && r() !== "spotlight") return;
10
- const t = c.getBoundingClientRect(), o = _ - t.left, v = y - t.top;
11
- if (e.enableTilt) {
12
- const Y = t.width / 2, I = t.height / 2, R = (v - I) / 10, H = (Y - o) / 10;
13
- g({
14
- transform: `perspective(1000px) rotateX(${R}deg) rotateY(${H}deg) scale3d(1.02, 1.02, 1.02)`
15
- });
16
- }
17
- r() === "spotlight" && X({
18
- x: o,
19
- y: v
20
- });
21
- }, M = (t) => {
22
- if (c && !(!e.enableTilt && r() !== "spotlight") && (_ = t.clientX, y = t.clientY, s === null)) {
23
- if (typeof requestAnimationFrame > "u") {
24
- u();
25
- return;
26
- }
27
- s = requestAnimationFrame(u);
28
- }
29
- }, S = () => {
30
- s !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(s), s = null), e.enableTilt && g({
31
- transform: "perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)"
32
- });
33
- }, [C, X] = F({
34
- x: 0,
35
- y: 0
36
- });
37
- B(() => {
38
- s !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(s), s = null);
39
- });
40
- const k = "rounded-[10px] duration-180 ease-out", P = () => e.enableTilt || r() === "hover-lift" ? "transition-[color,background-color,border-color,box-shadow,transform]" : "transition-[color,background-color,border-color]", j = {
41
- default: "bg-card border border-border shadow-sm hover:shadow-sm",
42
- "hover-lift": "bg-card border border-border shadow-sm hover:shadow-md hover:-translate-y-0.5",
43
- "gradient-border": "relative bg-card overflow-hidden",
44
- glass: "backdrop-blur-xl bg-card/30 border border-border/50 shadow-lg",
45
- spotlight: "relative bg-card border border-border overflow-hidden",
46
- shimmer: "relative bg-card border border-border overflow-hidden",
47
- glow: "bg-card border border-border shadow-sm"
48
- }, n = () => {
49
- if (r() !== "gradient-border") return null;
50
- const t = e.gradientColors ?? "from-primary via-accent to-secondary";
51
- return [(() => {
52
- var o = D();
53
- return A(() => L(o, p("absolute inset-0 bg-gradient-to-r opacity-75", t, "animate-[gradient-rotate_3s_linear_infinite]"))), o;
54
- })(), G()];
55
- }, x = () => r() !== "spotlight" ? null : (() => {
56
- var t = N();
57
- return A((o) => z(t, "background", `radial-gradient(
58
- 400px circle at ${C().x}px ${C().y}px,
59
- color-mix(in srgb, var(--primary) 18%, transparent),
60
- transparent 40%
61
- )`)), t;
62
- })(), $ = () => r() !== "shimmer" ? null : Z(), w = () => {
63
- if (r() !== "glow") return {};
64
- const t = e.glowColor ?? "var(--glow)";
65
- return {
66
- "box-shadow": [`0 0 0 1px color-mix(in srgb, ${t} 55%, transparent)`, `0 0 16px -4px color-mix(in srgb, ${t} 50%, transparent)`, `0 0 28px -8px color-mix(in srgb, ${t} 28%, transparent)`].join(", ")
67
- };
68
- };
1
+ import { spread as l, mergeProps as n, insert as s, template as u } from "solid-js/web";
2
+ import { splitProps as o } from "solid-js";
3
+ import { cn as c } from "../../utils/cn.js";
4
+ var i = /* @__PURE__ */ u("<div>"), f = /* @__PURE__ */ u("<h3>"), p = /* @__PURE__ */ u("<p>");
5
+ function b(t) {
6
+ const [e, a] = o(t, ["variant", "class", "children"]), r = () => e.variant ?? "default";
69
7
  return (() => {
70
- var t = J(), o = t.firstChild;
71
- t.addEventListener("mouseleave", S), t.$$mousemove = M;
72
- var v = c;
73
- return typeof v == "function" ? q(v, t) : c = t, m(t, b({
74
- get "data-floe-card-variant"() {
75
- return E(() => !!e.enableTilt)() ? "tilt" : r();
76
- },
8
+ var d = i();
9
+ return l(d, n({
77
10
  get "data-floe-surface"() {
78
- return r() === "default" && !e.enableTilt ? "raised" : void 0;
11
+ return r() === "well" ? "inset" : void 0;
79
12
  },
80
- get class() {
81
- return p(k, P(), j[r()], r() === "spotlight" && "group", e.class);
13
+ get "data-floe-card-variant"() {
14
+ return r();
15
+ },
16
+ get "data-floe-interactive"() {
17
+ return r() === "interactive" ? "lift" : void 0;
82
18
  },
83
- get style() {
84
- return {
85
- ...typeof e.style == "object" ? e.style : {},
86
- ...d(),
87
- ...w(),
88
- "transform-style": "preserve-3d"
89
- };
90
- }
91
- }, a), !1, !0), i(t, n, o), i(t, x, o), i(t, $, o), i(o, () => e.children), A(() => L(o, p("relative z-10", r() === "gradient-border" && "relative"))), t;
92
- })();
93
- }
94
- function le(l) {
95
- const [e, a] = h(l, ["class", "children"]);
96
- return (() => {
97
- var r = T();
98
- return m(r, b({
99
- get class() {
100
- return p("flex flex-col space-y-1.5 p-4", e.class);
101
- }
102
- }, a), !1, !0), i(r, () => e.children), r;
103
- })();
104
- }
105
- function ae(l) {
106
- const [e, a] = h(l, ["class", "children"]);
107
- return (() => {
108
- var r = K();
109
- return m(r, b({
110
- get class() {
111
- return p("text-sm font-semibold leading-none tracking-tight", e.class);
112
- }
113
- }, a), !1, !0), i(r, () => e.children), r;
114
- })();
115
- }
116
- function se(l) {
117
- const [e, a] = h(l, ["class", "children"]);
118
- return (() => {
119
- var r = O();
120
- return m(r, b({
121
19
  get class() {
122
- return p("text-xs text-muted-foreground", e.class);
20
+ return c(
21
+ "rounded-card",
22
+ "bg-card text-card-foreground",
23
+ "duration-[var(--floe-duration-base)] ease-[var(--floe-ease-out)]",
24
+ r() === "default" && "border border-transparent",
25
+ r() === "well" && "bg-[var(--floe-well)] border border-transparent",
26
+ /* The rise and its shadow live in the interaction contract
27
+ * (`data-floe-interactive='lift'` in language.css), so every clickable
28
+ * plane in the app travels the same pixel through the same token. The
29
+ * class string keeps only what is specific to this card. */
30
+ r() === "interactive" && "border border-transparent cursor-pointer",
31
+ e.class
32
+ );
123
33
  }
124
- }, a), !1, !0), i(r, () => e.children), r;
34
+ }, a), !1, !0), s(d, () => e.children), d;
125
35
  })();
126
36
  }
127
- function ie(l) {
128
- const [e, a] = h(l, ["class", "children"]);
37
+ function m(t) {
38
+ const [e, a] = o(t, ["class", "children"]);
129
39
  return (() => {
130
- var r = T();
131
- return m(r, b({
40
+ var r = i();
41
+ return l(r, n({
132
42
  get class() {
133
- return p("p-4 pt-0", e.class);
43
+ return c("flex flex-col gap-1 p-[var(--floe-pad-card)] pb-0", e.class);
134
44
  }
135
- }, a), !1, !0), i(r, () => e.children), r;
45
+ }, a), !1, !0), s(r, () => e.children), r;
136
46
  })();
137
47
  }
138
- function de(l) {
139
- const [e, a] = h(l, ["class", "children"]);
48
+ function _(t) {
49
+ const [e, a] = o(t, ["class", "children"]);
140
50
  return (() => {
141
- var r = T();
142
- return m(r, b({
143
- get class() {
144
- return p("flex items-center p-4 pt-0", e.class);
145
- }
146
- }, a), !1, !0), i(r, () => e.children), r;
147
- })();
148
- }
149
- function ce(l) {
150
- const [e, a] = h(l, ["intensity", "shine", "borderGlow", "class", "children", "style"]), [r, d] = F(""), [g, c] = F({
151
- x: 50,
152
- y: 50
153
- }), [s, _] = F(!1);
154
- let y, u = null, M = 0, S = 0;
155
- const C = () => e.intensity ?? 10, X = () => {
156
- if (u = null, !y) return;
157
- const n = y.getBoundingClientRect(), x = M - n.left, $ = S - n.top, w = n.width / 2, t = n.height / 2, o = ($ - t) / t * C(), v = (w - x) / w * C();
158
- d(`perspective(1000px) rotateX(${-o}deg) rotateY(${v}deg)`), e.shine && c({
159
- x: x / n.width * 100,
160
- y: $ / n.height * 100
161
- });
162
- }, k = (n) => {
163
- if (y && (M = n.clientX, S = n.clientY, u === null)) {
164
- if (typeof requestAnimationFrame > "u") {
165
- X();
166
- return;
167
- }
168
- u = requestAnimationFrame(X);
169
- }
170
- }, P = () => _(!0), j = () => {
171
- u !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(u), u = null), _(!1), d("perspective(1000px) rotateX(0deg) rotateY(0deg)");
172
- };
173
- return B(() => {
174
- u !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(u), u = null);
175
- }), (() => {
176
- var n = Q(), x = n.firstChild;
177
- n.addEventListener("mouseleave", j), n.addEventListener("mouseenter", P), n.$$mousemove = k;
178
- var $ = y;
179
- return typeof $ == "function" ? q($, n) : y = n, m(n, b({
51
+ var r = f();
52
+ return l(r, n({
180
53
  get class() {
181
- return p("relative rounded-xl bg-card border border-border overflow-hidden", "transition-all duration-200 ease-out", e.borderGlow && s() && "shadow-[0_0_18px_-6px_var(--glow)]", e.class);
182
- },
183
- get style() {
184
- return {
185
- ...typeof e.style == "object" ? e.style : {},
186
- transform: r(),
187
- "transform-style": "preserve-3d"
188
- };
54
+ return c("text-[length:var(--floe-type-body)] font-semibold leading-[var(--floe-line-heading)] tracking-[var(--floe-tracking-tight)]", e.class);
189
55
  }
190
- }, a), !1, !0), i(n, (() => {
191
- var w = E(() => !!e.shine);
192
- return () => w() && (() => {
193
- var t = U();
194
- return A((o) => {
195
- var v = !!s(), Y = `radial-gradient(
196
- circle at ${g().x}% ${g().y}%,
197
- color-mix(in srgb, var(--primary) 18%, transparent) 0%,
198
- transparent 50%
199
- )`;
200
- return v !== o.e && t.classList.toggle("opacity-100", o.e = v), Y !== o.t && z(t, "background", o.t = Y), o;
201
- }, {
202
- e: void 0,
203
- t: void 0
204
- }), t;
205
- })();
206
- })(), x), i(x, () => e.children), n;
56
+ }, a), !1, !0), s(r, () => e.children), r;
207
57
  })();
208
58
  }
209
- function ue(l) {
210
- const [e, a] = h(l, ["duration", "borderWidth", "colors", "class", "children", "style"]), r = () => e.duration ?? 3, d = () => e.borderWidth ?? 2;
59
+ function $(t) {
60
+ const [e, a] = o(t, ["class", "children"]);
211
61
  return (() => {
212
- var g = V(), c = g.firstChild, s = c.nextSibling;
213
- return m(g, b({
62
+ var r = p();
63
+ return l(r, n({
214
64
  get class() {
215
- return p("relative rounded-xl p-[2px] overflow-hidden", e.class);
216
- },
217
- get style() {
218
- return {
219
- ...typeof e.style == "object" ? e.style : {},
220
- padding: `${d()}px`
221
- };
65
+ return c("text-[length:var(--floe-type-supporting)] leading-[var(--floe-line-body)] text-[var(--floe-ink-soft)]", e.class);
222
66
  }
223
- }, a), !1, !0), i(s, () => e.children), A((_) => z(c, "animation", `spin ${r()}s linear infinite`)), g;
67
+ }, a), !1, !0), s(r, () => e.children), r;
224
68
  })();
225
69
  }
226
- function pe(l) {
227
- const [e, a] = h(l, ["color", "pulse", "class", "children", "style"]), r = () => e.color ?? "var(--glow)";
70
+ function x(t) {
71
+ const [e, a] = o(t, ["class", "children"]);
228
72
  return (() => {
229
- var d = T();
230
- return m(d, b({
73
+ var r = i();
74
+ return l(r, n({
231
75
  get class() {
232
- return p("relative rounded-xl bg-card border-2 transition-shadow duration-300", e.pulse && "animate-pulse", e.class);
233
- },
234
- get style() {
235
- return {
236
- ...typeof e.style == "object" ? e.style : {},
237
- "border-color": r(),
238
- "box-shadow": [`0 0 4px color-mix(in srgb, ${r()} 80%, transparent)`, `0 0 14px color-mix(in srgb, ${r()} 50%, transparent)`, `0 0 28px color-mix(in srgb, ${r()} 30%, transparent)`, `inset 0 0 14px color-mix(in srgb, ${r()} 10%, transparent)`].join(", ")
239
- };
76
+ return c("p-[var(--floe-pad-card)]", e.class);
240
77
  }
241
- }, a), !1, !0), i(d, () => e.children), d;
78
+ }, a), !1, !0), s(r, () => e.children), r;
242
79
  })();
243
80
  }
244
- function fe(l) {
245
- const [e, a] = h(l, ["class", "children", "style"]);
81
+ function C(t) {
82
+ const [e, a] = o(t, ["class", "children"]);
246
83
  return (() => {
247
- var r = ee(), d = r.firstChild, g = d.firstChild;
248
- g.nextSibling;
249
- var c = d.nextSibling;
250
- return m(r, b({
84
+ var r = i();
85
+ return l(r, n({
251
86
  get class() {
252
- return p("relative rounded-2xl bg-card/80 backdrop-blur-sm border border-border overflow-hidden", e.class);
253
- },
254
- get style() {
255
- return e.style;
87
+ return c("flex items-center gap-[var(--floe-gap-control)] p-[var(--floe-pad-card)] pt-0", e.class);
256
88
  }
257
- }, a), !1, !0), i(c, () => e.children), r;
89
+ }, a), !1, !0), s(r, () => e.children), r;
258
90
  })();
259
91
  }
260
- W(["mousemove"]);
261
92
  export {
262
- ue as AnimatedBorderCard,
263
- oe as Card,
264
- ie as CardContent,
265
- se as CardDescription,
266
- de as CardFooter,
267
- le as CardHeader,
268
- ae as CardTitle,
269
- ce as Interactive3DCard,
270
- fe as MorphCard,
271
- pe as NeonCard
93
+ b as Card,
94
+ x as CardContent,
95
+ $ as CardDescription,
96
+ C as CardFooter,
97
+ m as CardHeader,
98
+ _ as CardTitle
272
99
  };