@floegence/floe-webapp-core 0.53.0 → 0.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/file-browser/FileGridView.js +106 -103
- package/dist/components/file-browser/FileIcons.js +200 -200
- package/dist/components/layout/BottomBar.js +22 -22
- package/dist/components/layout/TopBar.js +7 -7
- package/dist/components/ui/Button.js +2 -2
- package/dist/components/ui/Card.js +1 -1
- package/dist/components/ui/Checkbox.js +69 -69
- package/dist/components/ui/CommandPalette.js +29 -30
- package/dist/components/ui/Dialog.js +1 -1
- package/dist/components/ui/Dropdown.js +36 -38
- package/dist/components/ui/FloatingWindow.js +2 -3
- package/dist/components/ui/Input.js +3 -3
- package/dist/components/ui/Radio.js +26 -26
- package/dist/components/ui/SegmentedControl.js +6 -6
- package/dist/components/ui/Tabs.js +43 -43
- package/dist/components/ui/floatingPresence.js +1 -1
- package/dist/context/ThemeContext.js +75 -65
- package/dist/floe.css +27 -55
- package/dist/styles/themes/classicSemanticTokens.d.ts +142 -0
- package/dist/styles/themes/classicSemanticTokens.js +100 -94
- package/dist/styles/themes/presets.d.ts +5 -1
- package/dist/styles/themes/presets.js +147 -75
- package/dist/styles/tokens.d.ts +252 -252
- package/dist/styles/tokens.js +165 -164
- package/dist/styles.css +1 -1
- package/dist/surface.css +35 -42
- package/dist/themes/dark.css +41 -95
- package/dist/themes/light.css +43 -95
- package/dist/themes/shell-presets.generated.css +151 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DARK_WINDOW_TOKENS as
|
|
2
|
-
import { CLASSIC_LIGHT_SEMANTIC_TOKENS as
|
|
3
|
-
const
|
|
1
|
+
import { DARK_WINDOW_TOKENS as b, LIGHT_WINDOW_TOKENS as B } from "./windowTokens.js";
|
|
2
|
+
import { CLASSIC_LIGHT_SEMANTIC_TOKENS as d, CLASSIC_DARK_SEMANTIC_TOKENS as F } from "./classicSemanticTokens.js";
|
|
3
|
+
const S = [
|
|
4
4
|
"--floe-window-background",
|
|
5
5
|
"--floe-window-foreground",
|
|
6
6
|
"--floe-window-muted-foreground",
|
|
@@ -70,7 +70,7 @@ const w = [
|
|
|
70
70
|
"--selection-code-bg",
|
|
71
71
|
"--selection-code-fg",
|
|
72
72
|
"--glow"
|
|
73
|
-
],
|
|
73
|
+
], E = {
|
|
74
74
|
success: "#287A4B",
|
|
75
75
|
successForeground: "#FFFFFF",
|
|
76
76
|
warning: "#835800",
|
|
@@ -81,7 +81,7 @@ const w = [
|
|
|
81
81
|
infoForeground: "#FFFFFF",
|
|
82
82
|
note: "#6847A0",
|
|
83
83
|
tip: "#1E6F73"
|
|
84
|
-
},
|
|
84
|
+
}, A = {
|
|
85
85
|
success: "#72D39C",
|
|
86
86
|
successForeground: "#07160E",
|
|
87
87
|
warning: "#F0C36A",
|
|
@@ -94,19 +94,19 @@ const w = [
|
|
|
94
94
|
tip: "#71C8C0"
|
|
95
95
|
};
|
|
96
96
|
function o(r) {
|
|
97
|
-
const e = r.mode === "light" ?
|
|
97
|
+
const e = r.mode === "light" ? E : A, n = r.mode === "light" ? { background: "#F4C95D", foreground: "#243447" } : {
|
|
98
98
|
background: r.background,
|
|
99
99
|
foreground: r.foreground
|
|
100
|
-
}, [t,
|
|
100
|
+
}, [t, c, u, g, s] = r.chart, a = r.syntax ?? {
|
|
101
101
|
comment: r.mutedForeground,
|
|
102
102
|
keyword: t,
|
|
103
|
-
string:
|
|
104
|
-
number:
|
|
105
|
-
type:
|
|
106
|
-
function:
|
|
107
|
-
constant:
|
|
108
|
-
},
|
|
109
|
-
...r.mode === "dark" ?
|
|
103
|
+
string: c,
|
|
104
|
+
number: g,
|
|
105
|
+
type: u,
|
|
106
|
+
function: s,
|
|
107
|
+
constant: g
|
|
108
|
+
}, i = {
|
|
109
|
+
...r.mode === "dark" ? b : B,
|
|
110
110
|
"--background": r.background,
|
|
111
111
|
"--foreground": r.foreground,
|
|
112
112
|
"--primary": r.primary,
|
|
@@ -115,11 +115,11 @@ function o(r) {
|
|
|
115
115
|
"--secondary-foreground": r.foreground,
|
|
116
116
|
"--muted": r.muted,
|
|
117
117
|
"--muted-foreground": r.mutedForeground,
|
|
118
|
-
"--accent": r.muted,
|
|
118
|
+
"--accent": r.accent ?? r.muted,
|
|
119
119
|
"--accent-foreground": r.foreground,
|
|
120
120
|
"--border": r.border,
|
|
121
121
|
"--input": r.input,
|
|
122
|
-
"--ring": r.primary,
|
|
122
|
+
"--ring": r.ring ?? r.primary,
|
|
123
123
|
"--chrome-border": r.border,
|
|
124
124
|
"--top-bar-border": r.border,
|
|
125
125
|
"--activity-bar-border": r.border,
|
|
@@ -147,10 +147,10 @@ function o(r) {
|
|
|
147
147
|
"--sidebar-foreground": r.foreground,
|
|
148
148
|
"--sidebar-primary": r.primary,
|
|
149
149
|
"--sidebar-primary-foreground": r.primaryForeground,
|
|
150
|
-
"--sidebar-accent": r.muted,
|
|
150
|
+
"--sidebar-accent": r.accent ?? r.muted,
|
|
151
151
|
"--sidebar-accent-foreground": r.foreground,
|
|
152
152
|
"--sidebar-border": r.border,
|
|
153
|
-
"--sidebar-ring": r.primary,
|
|
153
|
+
"--sidebar-ring": r.ring ?? r.primary,
|
|
154
154
|
"--activity-bar": r.sidebar,
|
|
155
155
|
"--activity-bar-foreground": r.mutedForeground,
|
|
156
156
|
"--activity-bar-foreground-active": r.foreground,
|
|
@@ -159,10 +159,10 @@ function o(r) {
|
|
|
159
159
|
"--terminal-background": r.terminalBackground,
|
|
160
160
|
"--terminal-foreground": r.terminalForeground,
|
|
161
161
|
"--chart-1": t,
|
|
162
|
-
"--chart-2":
|
|
163
|
-
"--chart-3":
|
|
164
|
-
"--chart-4":
|
|
165
|
-
"--chart-5":
|
|
162
|
+
"--chart-2": c,
|
|
163
|
+
"--chart-3": u,
|
|
164
|
+
"--chart-4": g,
|
|
165
|
+
"--chart-5": s,
|
|
166
166
|
"--selection-bg": r.selectionBackground,
|
|
167
167
|
"--selection-fg": r.selectionForeground,
|
|
168
168
|
"--selection-on-primary-bg": n.background,
|
|
@@ -173,6 +173,8 @@ function o(r) {
|
|
|
173
173
|
// selectionBackground so we don't inherit a near-white primary as glow source.
|
|
174
174
|
"--glow": r.glow ?? (r.mode === "light" ? r.primary : r.selectionBackground)
|
|
175
175
|
};
|
|
176
|
+
for (const [l, p] of Object.entries(r.fileIconColors ?? {}))
|
|
177
|
+
i[`--floe-file-icon-${l}`] = p;
|
|
176
178
|
return {
|
|
177
179
|
name: r.name,
|
|
178
180
|
displayName: r.displayName,
|
|
@@ -186,7 +188,7 @@ function o(r) {
|
|
|
186
188
|
border: r.border,
|
|
187
189
|
colors: r.chart
|
|
188
190
|
},
|
|
189
|
-
semanticTokens:
|
|
191
|
+
semanticTokens: i,
|
|
190
192
|
monaco: {
|
|
191
193
|
[r.mode]: {
|
|
192
194
|
base: r.mode === "light" ? "vs" : "vs-dark",
|
|
@@ -246,25 +248,25 @@ function o(r) {
|
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
250
|
},
|
|
249
|
-
tokens: r.mode === "light" ? { light:
|
|
251
|
+
tokens: r.mode === "light" ? { light: i } : { dark: i }
|
|
250
252
|
};
|
|
251
253
|
}
|
|
252
|
-
const
|
|
254
|
+
const k = {
|
|
253
255
|
...o({
|
|
254
256
|
name: "classic-light",
|
|
255
257
|
displayName: "Classic Light",
|
|
256
|
-
description: "
|
|
258
|
+
description: "Warm paper and quiet sage accents.",
|
|
257
259
|
mode: "light",
|
|
258
|
-
background: "
|
|
259
|
-
foreground: "
|
|
260
|
-
card: "
|
|
261
|
-
muted: "
|
|
262
|
-
mutedForeground: "
|
|
263
|
-
primary: "
|
|
264
|
-
primaryForeground: "
|
|
265
|
-
border: "
|
|
266
|
-
input: "
|
|
267
|
-
sidebar: "
|
|
260
|
+
background: d["--background"],
|
|
261
|
+
foreground: d["--foreground"],
|
|
262
|
+
card: d["--card"],
|
|
263
|
+
muted: d["--muted"],
|
|
264
|
+
mutedForeground: d["--muted-foreground"],
|
|
265
|
+
primary: d["--primary"],
|
|
266
|
+
primaryForeground: d["--primary-foreground"],
|
|
267
|
+
border: d["--border"],
|
|
268
|
+
input: d["--input"],
|
|
269
|
+
sidebar: d["--sidebar"],
|
|
268
270
|
terminalBackground: "#202A37",
|
|
269
271
|
terminalForeground: "#EBEBEB",
|
|
270
272
|
selectionBackground: "#2671D9",
|
|
@@ -281,24 +283,24 @@ const E = {
|
|
|
281
283
|
}
|
|
282
284
|
}),
|
|
283
285
|
inheritsBaseTokens: !0,
|
|
284
|
-
semanticTokens:
|
|
286
|
+
semanticTokens: d,
|
|
285
287
|
tokens: void 0
|
|
286
|
-
},
|
|
288
|
+
}, y = {
|
|
287
289
|
...o({
|
|
288
290
|
name: "classic-dark",
|
|
289
291
|
displayName: "Classic Dark",
|
|
290
|
-
description: "
|
|
292
|
+
description: "Soft graphite and quiet sage accents.",
|
|
291
293
|
mode: "dark",
|
|
292
|
-
background: "
|
|
293
|
-
foreground: "
|
|
294
|
-
card: "
|
|
295
|
-
muted: "
|
|
296
|
-
mutedForeground: "
|
|
297
|
-
primary: "
|
|
298
|
-
primaryForeground: "
|
|
299
|
-
border: "
|
|
300
|
-
input: "
|
|
301
|
-
sidebar: "
|
|
294
|
+
background: F["--background"],
|
|
295
|
+
foreground: F["--foreground"],
|
|
296
|
+
card: F["--card"],
|
|
297
|
+
muted: F["--muted"],
|
|
298
|
+
mutedForeground: F["--muted-foreground"],
|
|
299
|
+
primary: F["--primary"],
|
|
300
|
+
primaryForeground: F["--primary-foreground"],
|
|
301
|
+
border: F["--border"],
|
|
302
|
+
input: F["--input"],
|
|
303
|
+
sidebar: F["--sidebar"],
|
|
302
304
|
terminalBackground: "#0C1018",
|
|
303
305
|
terminalForeground: "#E8EBEE",
|
|
304
306
|
selectionBackground: "#2671D9",
|
|
@@ -315,10 +317,10 @@ const E = {
|
|
|
315
317
|
}
|
|
316
318
|
}),
|
|
317
319
|
inheritsBaseTokens: !0,
|
|
318
|
-
semanticTokens:
|
|
320
|
+
semanticTokens: F,
|
|
319
321
|
tokens: void 0
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
+
}, C = [
|
|
323
|
+
k,
|
|
322
324
|
o({
|
|
323
325
|
name: "paper",
|
|
324
326
|
displayName: "Paper",
|
|
@@ -574,7 +576,7 @@ const E = {
|
|
|
574
576
|
constant: "#745500"
|
|
575
577
|
}
|
|
576
578
|
}),
|
|
577
|
-
|
|
579
|
+
y,
|
|
578
580
|
o({
|
|
579
581
|
name: "ink",
|
|
580
582
|
displayName: "Ink",
|
|
@@ -839,7 +841,7 @@ const E = {
|
|
|
839
841
|
foreground: "#E0E0E4",
|
|
840
842
|
card: "#222226",
|
|
841
843
|
muted: "#2C2C30",
|
|
842
|
-
mutedForeground: "#
|
|
844
|
+
mutedForeground: "#93939B",
|
|
843
845
|
primary: "#E0E0E4",
|
|
844
846
|
primaryForeground: "#1A1A1C",
|
|
845
847
|
border: "#323236",
|
|
@@ -874,6 +876,7 @@ const E = {
|
|
|
874
876
|
primaryForeground: "#FFFFFF",
|
|
875
877
|
border: "#38383A",
|
|
876
878
|
input: "#888888",
|
|
879
|
+
ring: "#0A84FF",
|
|
877
880
|
sidebar: "#242426",
|
|
878
881
|
terminalBackground: "#141416",
|
|
879
882
|
terminalForeground: "#E5E5EA",
|
|
@@ -889,19 +892,88 @@ const E = {
|
|
|
889
892
|
function: "#0A84FF",
|
|
890
893
|
constant: "#BF5AF2"
|
|
891
894
|
}
|
|
895
|
+
}),
|
|
896
|
+
o({
|
|
897
|
+
name: "porcelain-light",
|
|
898
|
+
displayName: "Porcelain Light",
|
|
899
|
+
description: "Original Redeven warm ivory and blue-gray ink, with quiet modern surfaces.",
|
|
900
|
+
fileIconColors: {
|
|
901
|
+
primary: "hsl(214 26% 17%)",
|
|
902
|
+
warning: "hsl(38 92% 50%)",
|
|
903
|
+
info: "hsl(217 91% 60%)",
|
|
904
|
+
success: "oklch(0.68 0.16 150)",
|
|
905
|
+
error: "oklch(0.65 0.2 25)"
|
|
906
|
+
},
|
|
907
|
+
mode: "light",
|
|
908
|
+
background: "#F4F1ED",
|
|
909
|
+
foreground: "#202A37",
|
|
910
|
+
card: "#FFFDFA",
|
|
911
|
+
muted: "#F1EFEC",
|
|
912
|
+
accent: "#E4E1DD",
|
|
913
|
+
mutedForeground: "#576579",
|
|
914
|
+
primary: "#202A37",
|
|
915
|
+
primaryForeground: "#FFFDFA",
|
|
916
|
+
border: "#D8D3CC",
|
|
917
|
+
input: "#828891",
|
|
918
|
+
sidebar: "#EEECE9",
|
|
919
|
+
terminalBackground: "#202A37",
|
|
920
|
+
terminalForeground: "#EBEBEB",
|
|
921
|
+
selectionBackground: "#2671D9",
|
|
922
|
+
selectionForeground: "#FFFFFF",
|
|
923
|
+
chart: ["#202A37", "#5A687C", "#2671D9", "#287A4B", "#835800"],
|
|
924
|
+
syntax: {
|
|
925
|
+
comment: "#5A687C",
|
|
926
|
+
keyword: "#005FB8",
|
|
927
|
+
string: "#26736F",
|
|
928
|
+
number: "#8A5A00",
|
|
929
|
+
type: "#245B9B",
|
|
930
|
+
function: "#6847A0",
|
|
931
|
+
constant: "#9C225E"
|
|
932
|
+
}
|
|
933
|
+
}),
|
|
934
|
+
o({
|
|
935
|
+
name: "porcelain-dark",
|
|
936
|
+
displayName: "Porcelain Dark",
|
|
937
|
+
description: "Warm ivory text and soft blue-gray accents on a quiet slate canvas.",
|
|
938
|
+
mode: "dark",
|
|
939
|
+
background: "#20242A",
|
|
940
|
+
foreground: "#E6E3DD",
|
|
941
|
+
card: "#292E35",
|
|
942
|
+
muted: "#343A43",
|
|
943
|
+
mutedForeground: "#A2ABB8",
|
|
944
|
+
primary: "#BCC8D5",
|
|
945
|
+
primaryForeground: "#202A37",
|
|
946
|
+
border: "#3E444D",
|
|
947
|
+
input: "#7A8491",
|
|
948
|
+
ring: "#A8BCD0",
|
|
949
|
+
sidebar: "#1C2026",
|
|
950
|
+
terminalBackground: "#181C22",
|
|
951
|
+
terminalForeground: "#E6E3DD",
|
|
952
|
+
selectionBackground: "#3B6592",
|
|
953
|
+
selectionForeground: "#FFFFFF",
|
|
954
|
+
chart: ["#BCC8D5", "#79B8FF", "#C19BE8", "#72D39C", "#F0C36A"],
|
|
955
|
+
syntax: {
|
|
956
|
+
comment: "#A2ABB8",
|
|
957
|
+
keyword: "#C19BE8",
|
|
958
|
+
string: "#9AD49D",
|
|
959
|
+
number: "#F0C36A",
|
|
960
|
+
type: "#79B8FF",
|
|
961
|
+
function: "#71C8C0",
|
|
962
|
+
constant: "#E9A4A0"
|
|
963
|
+
}
|
|
892
964
|
})
|
|
893
|
-
],
|
|
965
|
+
], N = {
|
|
894
966
|
light: "classic-light",
|
|
895
967
|
dark: "classic-dark"
|
|
896
968
|
};
|
|
897
|
-
function
|
|
969
|
+
function h(r, e) {
|
|
898
970
|
const n = r.mode ?? "both";
|
|
899
971
|
return n === "both" || n === e;
|
|
900
972
|
}
|
|
901
|
-
function
|
|
902
|
-
return r.filter((n) =>
|
|
973
|
+
function D(r, e) {
|
|
974
|
+
return r.filter((n) => h(n, e));
|
|
903
975
|
}
|
|
904
|
-
function
|
|
976
|
+
function f(r) {
|
|
905
977
|
const e = /* @__PURE__ */ new Set();
|
|
906
978
|
for (const n of r) {
|
|
907
979
|
if (e.has(n.name))
|
|
@@ -909,27 +981,27 @@ function C(r) {
|
|
|
909
981
|
e.add(n.name);
|
|
910
982
|
}
|
|
911
983
|
}
|
|
912
|
-
function
|
|
913
|
-
const
|
|
914
|
-
return n &&
|
|
984
|
+
function m(r, e, n, t) {
|
|
985
|
+
const c = D(r, e);
|
|
986
|
+
return n && c.some((u) => u.name === n) ? n : t && c.some((u) => u.name === t) ? t : c[0]?.name;
|
|
915
987
|
}
|
|
916
|
-
function
|
|
917
|
-
const t = typeof r == "object" && r !== null && !Array.isArray(r) ? r : void 0,
|
|
988
|
+
function T(r, e, n = {}) {
|
|
989
|
+
const t = typeof r == "object" && r !== null && !Array.isArray(r) ? r : void 0, c = t?.version === 1, u = c && typeof t.light == "string" ? t.light : void 0, g = c && typeof t.dark == "string" ? t.dark : void 0;
|
|
918
990
|
return {
|
|
919
991
|
version: 1,
|
|
920
|
-
light:
|
|
921
|
-
dark:
|
|
992
|
+
light: m(e, "light", u, n.light),
|
|
993
|
+
dark: m(e, "dark", g, n.dark)
|
|
922
994
|
};
|
|
923
995
|
}
|
|
924
|
-
C
|
|
996
|
+
f(C);
|
|
925
997
|
export {
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
998
|
+
N as BUILT_IN_SHELL_THEME_DEFAULTS,
|
|
999
|
+
S as REQUIRED_SHELL_THEME_TOKENS,
|
|
1000
|
+
f as assertUniqueThemePresetNames,
|
|
1001
|
+
C as builtInShellThemePresets,
|
|
930
1002
|
o as createShellThemePreset,
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
1003
|
+
D as getShellThemePresetsForMode,
|
|
1004
|
+
T as normalizeShellThemeSelection,
|
|
1005
|
+
h as presetSupportsMode,
|
|
1006
|
+
m as resolveShellThemePresetName
|
|
935
1007
|
};
|