@floegence/floe-webapp-core 0.56.3 → 0.56.7

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.
@@ -4,5 +4,8 @@ export interface CodeBlockProps {
4
4
  content: string;
5
5
  filename?: string;
6
6
  class?: string;
7
+ copyLabel?: string;
8
+ copiedLabel?: string;
9
+ copyErrorLabel?: string;
7
10
  }
8
11
  export declare const CodeBlock: Component<CodeBlockProps>;
@@ -1,85 +1,101 @@
1
- import { insert as r, createComponent as o, memo as k, effect as _, className as x, setAttribute as y, template as l, delegateEvents as H } from "solid-js/web";
2
- import { createSignal as m, createEffect as B, Show as h } from "solid-js";
3
- import { cn as I } from "../../../utils/cn.js";
4
- import { highlightCode as S } from "../hooks/useCodeHighlight.js";
5
- import { deferNonBlocking as L } from "../../../utils/defer.js";
6
- var T = /* @__PURE__ */ l("<span class=chat-code-filename>"), j = /* @__PURE__ */ l("<span class=chat-code-language>"), E = /* @__PURE__ */ l("<div>"), M = /* @__PURE__ */ l("<div><div class=chat-code-header><div class=chat-code-info></div><button type=button class=chat-code-copy-btn></button></div><div class=chat-code-content>"), N = /* @__PURE__ */ l("<pre class=chat-code-pre><code>"), A = /* @__PURE__ */ l('<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><rect x=9 y=9 width=13 height=13 rx=2 ry=2></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1">'), F = /* @__PURE__ */ l('<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points="20 6 9 17 4 12">');
7
- const K = (t) => {
8
- const [f, g] = m(null), [p, s] = m(!0), [v, w] = m(!1);
9
- let u = 0;
10
- B(() => {
11
- const n = ++u, i = t.content, c = t.language || "text";
12
- if (!i) {
13
- g(""), s(!1);
1
+ import { insert as l, createComponent as o, memo as $, effect as x, className as I, setAttribute as L, template as r, delegateEvents as E } from "solid-js/web";
2
+ import { createSignal as b, createEffect as S, onCleanup as R, Show as v } from "solid-js";
3
+ import { cn as j } from "../../../utils/cn.js";
4
+ import { highlightCode as M } from "../hooks/useCodeHighlight.js";
5
+ import { deferNonBlocking as N } from "../../../utils/defer.js";
6
+ var A = /* @__PURE__ */ r("<span class=chat-code-filename>"), V = /* @__PURE__ */ r("<span class=chat-code-language>"), q = /* @__PURE__ */ r("<div>"), z = /* @__PURE__ */ r("<div><div class=chat-code-header><div class=chat-code-info></div><button type=button class=chat-code-copy-btn></button></div><span class=sr-only role=status aria-live=polite aria-atomic=true></span><div class=chat-code-content>"), D = /* @__PURE__ */ r("<pre class=chat-code-pre><code>"), F = /* @__PURE__ */ r('<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><rect x=9 y=9 width=13 height=13 rx=2 ry=2></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1">'), G = /* @__PURE__ */ r('<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points="20 6 9 17 4 12">');
7
+ const X = (t) => {
8
+ const [p, f] = b(null), [T, s] = b(!0), [u, h] = b("idle");
9
+ let a = 0, g;
10
+ const w = () => u() === "copied" ? t.copiedLabel ?? "Copied!" : u() === "failed" ? t.copyErrorLabel ?? "Could not copy code" : t.copyLabel ?? "Copy code";
11
+ S(() => {
12
+ t.content, a++, clearTimeout(g), h("idle");
13
+ }), R(() => {
14
+ a++, clearTimeout(g);
15
+ });
16
+ let y = 0;
17
+ S(() => {
18
+ const n = ++y, c = t.content, d = t.language || "text";
19
+ if (!c) {
20
+ f(""), s(!1);
14
21
  return;
15
22
  }
16
- s(!0), L(() => {
17
- S(i, c).then((a) => {
18
- n === u && (g(a), s(!1));
23
+ s(!0), N(() => {
24
+ M(c, d).then((i) => {
25
+ n === y && (f(i), s(!1));
19
26
  }).catch(() => {
20
- n === u && (g(null), s(!1));
27
+ n === y && (f(null), s(!1));
21
28
  });
22
29
  });
23
30
  });
24
- const C = async () => {
31
+ const H = async () => {
32
+ const n = ++a;
33
+ clearTimeout(g);
25
34
  try {
26
- await navigator.clipboard.writeText(t.content), w(!0), setTimeout(() => w(!1), 2e3);
27
- } catch (n) {
28
- console.error("Failed to copy:", n);
35
+ if (await navigator.clipboard.writeText(t.content), n !== a) return;
36
+ h("copied");
37
+ } catch {
38
+ if (n !== a) return;
39
+ h("failed");
29
40
  }
41
+ g = setTimeout(() => h("idle"), 2e3);
30
42
  };
31
43
  return (() => {
32
- var n = M(), i = n.firstChild, c = i.firstChild, a = c.nextSibling, b = i.nextSibling;
33
- return r(c, o(h, {
44
+ var n = z(), c = n.firstChild, d = c.firstChild, i = d.nextSibling, k = c.nextSibling, B = k.nextSibling;
45
+ return l(d, o(v, {
34
46
  get when() {
35
47
  return t.filename;
36
48
  },
37
49
  get children() {
38
- var e = T();
39
- return r(e, () => t.filename), e;
50
+ var e = A();
51
+ return l(e, () => t.filename), e;
40
52
  }
41
- }), null), r(c, o(h, {
53
+ }), null), l(d, o(v, {
42
54
  get when() {
43
- return k(() => !t.filename)() && t.language;
55
+ return $(() => !t.filename)() && t.language;
44
56
  },
45
57
  get children() {
46
- var e = j();
47
- return r(e, () => t.language), e;
58
+ var e = V();
59
+ return l(e, () => t.language), e;
48
60
  }
49
- }), null), a.$$click = C, r(a, o(h, {
61
+ }), null), i.$$click = H, l(i, o(v, {
50
62
  get when() {
51
- return v();
63
+ return u() === "copied";
52
64
  },
53
65
  get fallback() {
54
- return o(R, {});
66
+ return o(J, {});
55
67
  },
56
68
  get children() {
57
- return o(V, {});
69
+ return o(K, {});
58
70
  }
59
- })), r(b, o(h, {
71
+ })), l(k, (() => {
72
+ var e = $(() => u() === "idle");
73
+ return () => e() ? "" : w();
74
+ })()), l(B, o(v, {
60
75
  get when() {
61
- return k(() => !p())() && f();
76
+ return $(() => !T())() && p();
62
77
  },
63
78
  get fallback() {
64
79
  return (() => {
65
- var e = N(), d = e.firstChild;
66
- return r(d, () => t.content), e;
80
+ var e = D(), m = e.firstChild;
81
+ return l(m, () => t.content), e;
67
82
  })();
68
83
  },
69
84
  get children() {
70
- var e = E();
71
- return _(() => e.innerHTML = f()), e;
85
+ var e = q();
86
+ return x(() => e.innerHTML = p()), e;
72
87
  }
73
- })), _((e) => {
74
- var d = I("chat-code-block", t.class), $ = v() ? "Copied!" : "Copy code";
75
- return d !== e.e && x(n, e.e = d), $ !== e.t && y(a, "title", e.t = $), e;
88
+ })), x((e) => {
89
+ var m = j("chat-code-block", t.class), C = w(), _ = w();
90
+ return m !== e.e && I(n, e.e = m), C !== e.t && L(i, "title", e.t = C), _ !== e.a && L(i, "aria-label", e.a = _), e;
76
91
  }, {
77
92
  e: void 0,
78
- t: void 0
93
+ t: void 0,
94
+ a: void 0
79
95
  }), n;
80
96
  })();
81
- }, R = () => A(), V = () => F();
82
- H(["click"]);
97
+ }, J = () => F(), K = () => G();
98
+ E(["click"]);
83
99
  export {
84
- K as CodeBlock
100
+ X as CodeBlock
85
101
  };
@@ -1,144 +1,144 @@
1
1
  export declare const CLASSIC_LIGHT_CSS_TOKENS: {
2
- readonly '--floe-window-background': "var(--popover)";
3
- readonly '--floe-window-titlebar-background': "var(--popover)";
4
- readonly '--background': "#f8f7f2";
5
- readonly '--foreground': "#303a34";
6
- readonly '--primary': "#465a43";
7
- readonly '--primary-foreground': "#f8faf5";
8
- readonly '--secondary': "#eeefe8";
9
- readonly '--secondary-foreground': "#545f56";
10
- readonly '--muted': "#e9ece3";
11
- readonly '--muted-foreground': "#5e695c";
12
- readonly '--accent': "#e0e7da";
13
- readonly '--accent-foreground': "#303a34";
14
- readonly '--border': "#d4d8cd";
15
- readonly '--input': "#858e80";
16
- readonly '--ring': "#56694f";
17
- readonly '--chrome-border': "#dedfd7";
18
- readonly '--top-bar-border': "var(--chrome-border)";
19
- readonly '--activity-bar-border': "var(--chrome-border)";
20
- readonly '--bottom-bar-border': "var(--chrome-border)";
21
- readonly '--terminal-panel-border': "var(--chrome-border)";
22
- readonly '--card': "#fcfbf7";
23
- readonly '--card-foreground': "#303a34";
24
- readonly '--popover': "#fffefa";
25
- readonly '--popover-foreground': "#303a34";
26
- readonly '--success': "#496744";
27
- readonly '--success-foreground': "#f8faf5";
28
- readonly '--warning': "#856828";
29
- readonly '--warning-foreground': "#fffefa";
30
- readonly '--error': "#b74744";
31
- readonly '--error-foreground': "#fffefa";
32
- readonly '--info': "#2671d9";
33
- readonly '--info-foreground': "#fffefa";
34
- readonly '--highlight-block-info-accent': "oklch(0.52 0.14 245)";
35
- readonly '--highlight-block-warning-accent': "oklch(0.62 0.16 65)";
36
- readonly '--highlight-block-success-accent': "oklch(0.55 0.14 155)";
37
- readonly '--highlight-block-error-accent': "oklch(0.55 0.16 25)";
38
- readonly '--highlight-block-note-accent': "oklch(0.52 0.16 285)";
39
- readonly '--highlight-block-tip-accent': "oklch(0.52 0.12 175)";
40
- readonly '--sidebar': "#efeee7";
41
- readonly '--sidebar-foreground': "#303a34";
42
- readonly '--sidebar-primary': "#465a43";
43
- readonly '--sidebar-primary-foreground': "#f8faf5";
44
- readonly '--sidebar-accent': "#e0e7da";
45
- readonly '--sidebar-accent-foreground': "#303a34";
46
- readonly '--sidebar-border': "#dedfd7";
47
- readonly '--sidebar-ring': "#56694f";
48
- readonly '--activity-bar': "#eeede6";
49
- readonly '--activity-bar-foreground': "#5e695c";
50
- readonly '--activity-bar-foreground-active': "#303a34";
51
- readonly '--activity-bar-badge': "#465a43";
52
- readonly '--activity-bar-badge-foreground': "#f8faf5";
53
- readonly '--terminal-background': "hsl(214 26% 17%)";
54
- readonly '--terminal-foreground': "hsl(0 0% 92%)";
55
- readonly '--chart-1': "hsl(214 26% 17%)";
56
- readonly '--chart-2': "hsl(215 16% 42%)";
57
- readonly '--chart-3': "hsl(217 91% 60%)";
58
- readonly '--chart-4': "oklch(0.68 0.16 150)";
59
- readonly '--chart-5': "hsl(38 92% 50%)";
60
- readonly '--selection-bg': "hsl(217 91% 60%)";
61
- readonly '--selection-fg': "hsl(0 0% 100%)";
62
- readonly '--selection-on-primary-bg': "hsl(38 92% 50%)";
63
- readonly '--selection-on-primary-fg': "hsl(214 26% 17%)";
64
- readonly '--selection-code-bg': "hsl(212 100% 67%)";
65
- readonly '--selection-code-fg': "hsl(220 20% 8%)";
66
- readonly '--glow': "#465a43";
67
- readonly '--floe-window-foreground': "var(--foreground)";
68
- readonly '--floe-window-muted-foreground': "var(--muted-foreground)";
69
- readonly '--floe-window-border': "color-mix(in srgb, var(--floe-window-background) 88%, var(--foreground))";
70
- readonly '--floe-window-shadow': "0 1px 3px rgb(0 0 0 / 14%), 0 12px 28px -8px rgb(0 0 0 / 18%)";
2
+ '--floe-window-background': "var(--popover)";
3
+ '--floe-window-titlebar-background': "var(--popover)";
4
+ '--background': "#f8f7f2";
5
+ '--foreground': "#303a34";
6
+ '--primary': "#465a43";
7
+ '--primary-foreground': "#f8faf5";
8
+ '--secondary': "#eeefe8";
9
+ '--secondary-foreground': "#545f56";
10
+ '--muted': "#e9ece3";
11
+ '--muted-foreground': "#5e695c";
12
+ '--accent': "#e0e7da";
13
+ '--accent-foreground': "#303a34";
14
+ '--border': "#d4d8cd";
15
+ '--input': "#858e80";
16
+ '--ring': "#56694f";
17
+ '--chrome-border': "#dedfd7";
18
+ '--top-bar-border': "var(--chrome-border)";
19
+ '--activity-bar-border': "var(--chrome-border)";
20
+ '--bottom-bar-border': "var(--chrome-border)";
21
+ '--terminal-panel-border': "var(--chrome-border)";
22
+ '--card': "#fcfbf7";
23
+ '--card-foreground': "#303a34";
24
+ '--popover': "#fffefa";
25
+ '--popover-foreground': "#303a34";
26
+ '--success': "#496744";
27
+ '--success-foreground': "#f8faf5";
28
+ '--warning': "#856828";
29
+ '--warning-foreground': "#fffefa";
30
+ '--error': "#b74744";
31
+ '--error-foreground': "#fffefa";
32
+ '--info': "#2671d9";
33
+ '--info-foreground': "#fffefa";
34
+ '--highlight-block-info-accent': "oklch(0.52 0.14 245)";
35
+ '--highlight-block-warning-accent': "oklch(0.62 0.16 65)";
36
+ '--highlight-block-success-accent': "oklch(0.55 0.14 155)";
37
+ '--highlight-block-error-accent': "oklch(0.55 0.16 25)";
38
+ '--highlight-block-note-accent': "oklch(0.52 0.16 285)";
39
+ '--highlight-block-tip-accent': "oklch(0.52 0.12 175)";
40
+ '--sidebar': "#efeee7";
41
+ '--sidebar-foreground': "#303a34";
42
+ '--sidebar-primary': "#465a43";
43
+ '--sidebar-primary-foreground': "#f8faf5";
44
+ '--sidebar-accent': "#e0e7da";
45
+ '--sidebar-accent-foreground': "#303a34";
46
+ '--sidebar-border': "#dedfd7";
47
+ '--sidebar-ring': "#56694f";
48
+ '--activity-bar': "#eeede6";
49
+ '--activity-bar-foreground': "#5e695c";
50
+ '--activity-bar-foreground-active': "#303a34";
51
+ '--activity-bar-badge': "#465a43";
52
+ '--activity-bar-badge-foreground': "#f8faf5";
53
+ '--terminal-background': "hsl(214 26% 17%)";
54
+ '--terminal-foreground': "hsl(0 0% 92%)";
55
+ '--chart-1': "hsl(214 26% 17%)";
56
+ '--chart-2': "hsl(215 16% 42%)";
57
+ '--chart-3': "hsl(217 91% 60%)";
58
+ '--chart-4': "oklch(0.68 0.16 150)";
59
+ '--chart-5': "hsl(38 92% 50%)";
60
+ '--selection-bg': "hsl(217 91% 60%)";
61
+ '--selection-fg': "hsl(0 0% 100%)";
62
+ '--selection-on-primary-bg': "hsl(38 92% 50%)";
63
+ '--selection-on-primary-fg': "hsl(214 26% 17%)";
64
+ '--selection-code-bg': "hsl(212 100% 67%)";
65
+ '--selection-code-fg': "hsl(220 20% 8%)";
66
+ '--glow': "#465a43";
67
+ '--floe-window-foreground': "var(--foreground)";
68
+ '--floe-window-muted-foreground': "var(--muted-foreground)";
69
+ '--floe-window-border': "color-mix(in srgb, var(--floe-window-background) 88%, var(--foreground))";
70
+ '--floe-window-shadow': "0 1px 3px rgb(0 0 0 / 14%), 0 12px 28px -8px rgb(0 0 0 / 18%)";
71
71
  };
72
72
  export declare const CLASSIC_DARK_CSS_TOKENS: {
73
- readonly '--floe-window-background': "var(--popover)";
74
- readonly '--floe-window-titlebar-background': "var(--popover)";
75
- readonly '--background': "#202223";
76
- readonly '--foreground': "#e5e6e2";
77
- readonly '--primary': "#bccbb8";
78
- readonly '--primary-foreground': "#20291f";
79
- readonly '--secondary': "#303435";
80
- readonly '--secondary-foreground': "#b8bdb8";
81
- readonly '--muted': "#343738";
82
- readonly '--muted-foreground': "#9da4a0";
83
- readonly '--accent': "#353a38";
84
- readonly '--accent-foreground': "#e5e6e2";
85
- readonly '--border': "#3e4142";
86
- readonly '--input': "#6d7571";
87
- readonly '--ring': "#acbdb3";
88
- readonly '--chrome-border': "#292c2b";
89
- readonly '--top-bar-border': "var(--chrome-border)";
90
- readonly '--activity-bar-border': "var(--chrome-border)";
91
- readonly '--bottom-bar-border': "var(--chrome-border)";
92
- readonly '--terminal-panel-border': "var(--chrome-border)";
93
- readonly '--card': "#282b2c";
94
- readonly '--card-foreground': "#e5e6e2";
95
- readonly '--popover': "#2b2e2f";
96
- readonly '--popover-foreground': "#e5e6e2";
97
- readonly '--success': "#a1b69e";
98
- readonly '--success-foreground': "#20291f";
99
- readonly '--warning': "#c8af84";
100
- readonly '--warning-foreground': "#20291f";
101
- readonly '--error': "oklch(0.7 0.22 25)";
102
- readonly '--error-foreground': "#202223";
103
- readonly '--info': "oklch(0.7 0.15 250)";
104
- readonly '--info-foreground': "#202223";
105
- readonly '--highlight-block-info-accent': "oklch(0.62 0.12 240)";
106
- readonly '--highlight-block-warning-accent': "oklch(0.7 0.14 65)";
107
- readonly '--highlight-block-success-accent': "oklch(0.62 0.12 155)";
108
- readonly '--highlight-block-error-accent': "oklch(0.6 0.14 25)";
109
- readonly '--highlight-block-note-accent': "oklch(0.62 0.14 285)";
110
- readonly '--highlight-block-tip-accent': "oklch(0.6 0.1 175)";
111
- readonly '--sidebar': "#1b1d1e";
112
- readonly '--sidebar-foreground': "#e5e6e2";
113
- readonly '--sidebar-primary': "#bccbb8";
114
- readonly '--sidebar-primary-foreground': "#20291f";
115
- readonly '--sidebar-accent': "#353a38";
116
- readonly '--sidebar-accent-foreground': "#e5e6e2";
117
- readonly '--sidebar-border': "#292c2b";
118
- readonly '--sidebar-ring': "#acbdb3";
119
- readonly '--activity-bar': "#17191a";
120
- readonly '--activity-bar-foreground': "#9da4a0";
121
- readonly '--activity-bar-foreground-active': "#e5e6e2";
122
- readonly '--activity-bar-badge': "#bccbb8";
123
- readonly '--activity-bar-badge-foreground': "#20291f";
124
- readonly '--terminal-background': "hsl(222 32% 7%)";
125
- readonly '--terminal-foreground': "hsl(210 15% 92%)";
126
- readonly '--chart-1': "hsl(210 20% 98%)";
127
- readonly '--chart-2': "hsl(215 20% 60%)";
128
- readonly '--chart-3': "oklch(0.7 0.15 250)";
129
- readonly '--chart-4': "oklch(0.72 0.19 150)";
130
- readonly '--chart-5': "oklch(0.82 0.16 80)";
131
- readonly '--selection-bg': "hsl(215 70% 50%)";
132
- readonly '--selection-fg': "hsl(0 0% 100%)";
133
- readonly '--selection-on-primary-bg': "hsl(215 80% 35%)";
134
- readonly '--selection-on-primary-fg': "hsl(0 0% 100%)";
135
- readonly '--selection-code-bg': "hsl(212 100% 67%)";
136
- readonly '--selection-code-fg': "hsl(220 20% 8%)";
137
- readonly '--glow': "hsl(217 65% 52%)";
138
- readonly '--floe-window-foreground': "var(--foreground)";
139
- readonly '--floe-window-muted-foreground': "color-mix(in srgb, var(--muted-foreground) 72%, var(--foreground))";
140
- readonly '--floe-window-border': "color-mix(in srgb, var(--floe-window-background) 88%, var(--foreground))";
141
- readonly '--floe-window-shadow': "0 1px 3px rgb(0 0 0 / 30%), 0 12px 28px -8px rgb(0 0 0 / 32%)";
73
+ '--floe-window-background': "var(--popover)";
74
+ '--floe-window-titlebar-background': "var(--popover)";
75
+ '--background': "#202223";
76
+ '--foreground': "#e5e6e2";
77
+ '--primary': "#bccbb8";
78
+ '--primary-foreground': "#20291f";
79
+ '--secondary': "#303435";
80
+ '--secondary-foreground': "#b8bdb8";
81
+ '--muted': "#343738";
82
+ '--muted-foreground': "#9da4a0";
83
+ '--accent': "#353a38";
84
+ '--accent-foreground': "#e5e6e2";
85
+ '--border': "#3e4142";
86
+ '--input': "#6d7571";
87
+ '--ring': "#acbdb3";
88
+ '--chrome-border': "#292c2b";
89
+ '--top-bar-border': "var(--chrome-border)";
90
+ '--activity-bar-border': "var(--chrome-border)";
91
+ '--bottom-bar-border': "var(--chrome-border)";
92
+ '--terminal-panel-border': "var(--chrome-border)";
93
+ '--card': "#282b2c";
94
+ '--card-foreground': "#e5e6e2";
95
+ '--popover': "#2b2e2f";
96
+ '--popover-foreground': "#e5e6e2";
97
+ '--success': "#a1b69e";
98
+ '--success-foreground': "#20291f";
99
+ '--warning': "#c8af84";
100
+ '--warning-foreground': "#20291f";
101
+ '--error': "oklch(0.7 0.22 25)";
102
+ '--error-foreground': "#202223";
103
+ '--info': "oklch(0.7 0.15 250)";
104
+ '--info-foreground': "#202223";
105
+ '--highlight-block-info-accent': "oklch(0.62 0.12 240)";
106
+ '--highlight-block-warning-accent': "oklch(0.7 0.14 65)";
107
+ '--highlight-block-success-accent': "oklch(0.62 0.12 155)";
108
+ '--highlight-block-error-accent': "oklch(0.6 0.14 25)";
109
+ '--highlight-block-note-accent': "oklch(0.62 0.14 285)";
110
+ '--highlight-block-tip-accent': "oklch(0.6 0.1 175)";
111
+ '--sidebar': "#1b1d1e";
112
+ '--sidebar-foreground': "#e5e6e2";
113
+ '--sidebar-primary': "#bccbb8";
114
+ '--sidebar-primary-foreground': "#20291f";
115
+ '--sidebar-accent': "#353a38";
116
+ '--sidebar-accent-foreground': "#e5e6e2";
117
+ '--sidebar-border': "#292c2b";
118
+ '--sidebar-ring': "#acbdb3";
119
+ '--activity-bar': "#17191a";
120
+ '--activity-bar-foreground': "#9da4a0";
121
+ '--activity-bar-foreground-active': "#e5e6e2";
122
+ '--activity-bar-badge': "#bccbb8";
123
+ '--activity-bar-badge-foreground': "#20291f";
124
+ '--terminal-background': "hsl(222 32% 7%)";
125
+ '--terminal-foreground': "hsl(210 15% 92%)";
126
+ '--chart-1': "hsl(210 20% 98%)";
127
+ '--chart-2': "hsl(215 20% 60%)";
128
+ '--chart-3': "oklch(0.7 0.15 250)";
129
+ '--chart-4': "oklch(0.72 0.19 150)";
130
+ '--chart-5': "oklch(0.82 0.16 80)";
131
+ '--selection-bg': "hsl(215 70% 50%)";
132
+ '--selection-fg': "hsl(0 0% 100%)";
133
+ '--selection-on-primary-bg': "hsl(215 80% 35%)";
134
+ '--selection-on-primary-fg': "hsl(0 0% 100%)";
135
+ '--selection-code-bg': "hsl(212 100% 67%)";
136
+ '--selection-code-fg': "hsl(220 20% 8%)";
137
+ '--glow': "hsl(217 65% 52%)";
138
+ '--floe-window-foreground': "var(--foreground)";
139
+ '--floe-window-muted-foreground': "color-mix(in srgb, var(--muted-foreground) 72%, var(--foreground))";
140
+ '--floe-window-border': "color-mix(in srgb, var(--floe-window-background) 88%, var(--foreground))";
141
+ '--floe-window-shadow': "0 1px 3px rgb(0 0 0 / 30%), 0 12px 28px -8px rgb(0 0 0 / 32%)";
142
142
  };
143
143
  export declare const CLASSIC_LIGHT_SEMANTIC_TOKENS: Readonly<Partial<Record<`--${string}`, string>>>;
144
144
  export declare const CLASSIC_DARK_SEMANTIC_TOKENS: Readonly<Partial<Record<`--${string}`, string>>>;
@@ -1,17 +1,18 @@
1
- import { LIGHT_WINDOW_TOKENS as t, DARK_WINDOW_TOKENS as b } from "./windowTokens.js";
2
- function i(c) {
1
+ import { createProgressTokens as b } from "./progressTokens.js";
2
+ import { LIGHT_WINDOW_TOKENS as l, DARK_WINDOW_TOKENS as h } from "./windowTokens.js";
3
+ function f(c) {
3
4
  const a = {}, n = (r, o = /* @__PURE__ */ new Set()) => {
4
5
  const e = c[r];
5
6
  if (!e || o.has(r)) return e;
6
- const d = /^var\((--[\w-]+)\)$/u.exec(e)?.[1];
7
- return d ? (o.add(r), n(d, o)) : e;
7
+ const t = /^var\((--[\w-]+)\)$/u.exec(e)?.[1];
8
+ return t ? (o.add(r), n(t, o)) : e;
8
9
  };
9
10
  for (const r of Object.keys(c))
10
11
  a[r] = n(r);
11
12
  return Object.freeze(a);
12
13
  }
13
- const f = {
14
- ...t,
14
+ const i = {
15
+ ...l,
15
16
  "--floe-window-background": "var(--popover)",
16
17
  "--floe-window-titlebar-background": "var(--popover)",
17
18
  "--background": "#f8f7f2",
@@ -77,8 +78,8 @@ const f = {
77
78
  "--selection-code-bg": "hsl(212 100% 67%)",
78
79
  "--selection-code-fg": "hsl(220 20% 8%)",
79
80
  "--glow": "#465a43"
80
- }, h = {
81
- ...b,
81
+ }, d = {
82
+ ...h,
82
83
  "--floe-window-background": "var(--popover)",
83
84
  "--floe-window-titlebar-background": "var(--popover)",
84
85
  "--background": "#202223",
@@ -144,10 +145,10 @@ const f = {
144
145
  "--selection-code-bg": "hsl(212 100% 67%)",
145
146
  "--selection-code-fg": "hsl(220 20% 8%)",
146
147
  "--glow": "hsl(217 65% 52%)"
147
- }, g = i(f), s = i(h);
148
+ }, g = { ...i, ...b("light", i) }, s = { ...d, ...b("dark", d) }, p = f(g), v = f(s);
148
149
  export {
149
- h as CLASSIC_DARK_CSS_TOKENS,
150
- s as CLASSIC_DARK_SEMANTIC_TOKENS,
151
- f as CLASSIC_LIGHT_CSS_TOKENS,
152
- g as CLASSIC_LIGHT_SEMANTIC_TOKENS
150
+ s as CLASSIC_DARK_CSS_TOKENS,
151
+ v as CLASSIC_DARK_SEMANTIC_TOKENS,
152
+ g as CLASSIC_LIGHT_CSS_TOKENS,
153
+ p as CLASSIC_LIGHT_SEMANTIC_TOKENS
153
154
  };