@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.
@@ -1,6 +1,6 @@
1
- import { DARK_WINDOW_TOKENS as s, LIGHT_WINDOW_TOKENS as m } from "./windowTokens.js";
2
- import { CLASSIC_LIGHT_SEMANTIC_TOKENS as l, CLASSIC_DARK_SEMANTIC_TOKENS as b } from "./classicSemanticTokens.js";
3
- const w = [
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
- ], p = {
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
- }, B = {
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" ? p : B, n = r.mode === "light" ? { background: "#F4C95D", foreground: "#243447" } : {
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, d, F, c, g] = r.chart, a = r.syntax ?? {
100
+ }, [t, c, u, g, s] = r.chart, a = r.syntax ?? {
101
101
  comment: r.mutedForeground,
102
102
  keyword: t,
103
- string: d,
104
- number: c,
105
- type: F,
106
- function: g,
107
- constant: c
108
- }, u = {
109
- ...r.mode === "dark" ? s : m,
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": d,
163
- "--chart-3": F,
164
- "--chart-4": c,
165
- "--chart-5": g,
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: u,
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: u } : { dark: u }
251
+ tokens: r.mode === "light" ? { light: i } : { dark: i }
250
252
  };
251
253
  }
252
- const E = {
254
+ const k = {
253
255
  ...o({
254
256
  name: "classic-light",
255
257
  displayName: "Classic Light",
256
- description: "The original Floe warm-paper light theme.",
258
+ description: "Warm paper and quiet sage accents.",
257
259
  mode: "light",
258
- background: "#F3F0EC",
259
- foreground: "#202A37",
260
- card: "#FFFDFA",
261
- muted: "#F2F0ED",
262
- mutedForeground: "#5A687C",
263
- primary: "#202A37",
264
- primaryForeground: "#FFFDFA",
265
- border: "#D7D2CB",
266
- input: "#CBC4B9",
267
- sidebar: "#EDEBE8",
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: l,
286
+ semanticTokens: d,
285
287
  tokens: void 0
286
- }, k = {
288
+ }, y = {
287
289
  ...o({
288
290
  name: "classic-dark",
289
291
  displayName: "Classic Dark",
290
- description: "The original Floe blue-black dark theme.",
292
+ description: "Soft graphite and quiet sage accents.",
291
293
  mode: "dark",
292
- background: "#0E121B",
293
- foreground: "#F9FAFB",
294
- card: "#121721",
295
- muted: "#1B212D",
296
- mutedForeground: "#8596AD",
297
- primary: "#F9FAFB",
298
- primaryForeground: "#121621",
299
- border: "#252B37",
300
- input: "#52627A",
301
- sidebar: "#121721",
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: b,
320
+ semanticTokens: F,
319
321
  tokens: void 0
320
- }, A = [
321
- E,
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
- k,
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: "#909098",
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
- ], v = {
965
+ ], N = {
894
966
  light: "classic-light",
895
967
  dark: "classic-dark"
896
968
  };
897
- function y(r, e) {
969
+ function h(r, e) {
898
970
  const n = r.mode ?? "both";
899
971
  return n === "both" || n === e;
900
972
  }
901
- function h(r, e) {
902
- return r.filter((n) => y(n, e));
973
+ function D(r, e) {
974
+ return r.filter((n) => h(n, e));
903
975
  }
904
- function C(r) {
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 i(r, e, n, t) {
913
- const d = h(r, e);
914
- return n && d.some((F) => F.name === n) ? n : t && d.some((F) => F.name === t) ? t : d[0]?.name;
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 S(r, e, n = {}) {
917
- const t = typeof r == "object" && r !== null && !Array.isArray(r) ? r : void 0, d = t?.version === 1, F = d && typeof t.light == "string" ? t.light : void 0, c = d && typeof t.dark == "string" ? t.dark : 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: i(e, "light", F, n.light),
921
- dark: i(e, "dark", c, n.dark)
992
+ light: m(e, "light", u, n.light),
993
+ dark: m(e, "dark", g, n.dark)
922
994
  };
923
995
  }
924
- C(A);
996
+ f(C);
925
997
  export {
926
- v as BUILT_IN_SHELL_THEME_DEFAULTS,
927
- w as REQUIRED_SHELL_THEME_TOKENS,
928
- C as assertUniqueThemePresetNames,
929
- A as builtInShellThemePresets,
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
- h as getShellThemePresetsForMode,
932
- S as normalizeShellThemeSelection,
933
- y as presetSupportsMode,
934
- i as resolveShellThemePresetName
1003
+ D as getShellThemePresetsForMode,
1004
+ T as normalizeShellThemeSelection,
1005
+ h as presetSupportsMode,
1006
+ m as resolveShellThemePresetName
935
1007
  };