@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,158 +1,160 @@
|
|
|
1
1
|
import { createProgressTokens as b } from "./progressTokens.js";
|
|
2
|
-
import { LIGHT_WINDOW_TOKENS as
|
|
3
|
-
function
|
|
4
|
-
const a = {}, n = (
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
7
|
-
const
|
|
8
|
-
return
|
|
2
|
+
import { LIGHT_WINDOW_TOKENS as g, DARK_WINDOW_TOKENS as l } from "./windowTokens.js";
|
|
3
|
+
function t(c) {
|
|
4
|
+
const a = {}, n = (e, o = /* @__PURE__ */ new Set()) => {
|
|
5
|
+
const r = c[e];
|
|
6
|
+
if (!r || o.has(e)) return r;
|
|
7
|
+
const d = /^var\((--[\w-]+)\)$/u.exec(r)?.[1];
|
|
8
|
+
return d ? (o.add(e), n(d, o)) : r;
|
|
9
9
|
};
|
|
10
|
-
for (const
|
|
11
|
-
a[
|
|
10
|
+
for (const e of Object.keys(c))
|
|
11
|
+
a[e] = n(e);
|
|
12
12
|
return Object.freeze(a);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
...
|
|
14
|
+
const i = {
|
|
15
|
+
...g,
|
|
16
16
|
"--floe-window-background": "var(--popover)",
|
|
17
17
|
"--floe-window-titlebar-background": "var(--popover)",
|
|
18
|
-
"--background": "#
|
|
19
|
-
"--foreground": "#
|
|
20
|
-
"--inline-code-foreground": "#
|
|
21
|
-
"--inline-code-background": "#
|
|
22
|
-
"--primary": "#
|
|
23
|
-
"--primary-foreground": "#
|
|
24
|
-
"--secondary": "#
|
|
25
|
-
"--secondary-foreground": "#
|
|
26
|
-
"--muted": "#
|
|
27
|
-
"--muted-foreground": "#
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"--
|
|
31
|
-
"--
|
|
32
|
-
"--
|
|
33
|
-
"--
|
|
18
|
+
"--background": "#f6f4ef",
|
|
19
|
+
"--foreground": "#1a1b19",
|
|
20
|
+
"--inline-code-foreground": "#1c6b57",
|
|
21
|
+
"--inline-code-background": "#eeebe4",
|
|
22
|
+
"--primary": "#1c1d1b",
|
|
23
|
+
"--primary-foreground": "#fbfaf7",
|
|
24
|
+
"--secondary": "#edeae3",
|
|
25
|
+
"--secondary-foreground": "#4a4b46",
|
|
26
|
+
"--muted": "#efede7",
|
|
27
|
+
"--muted-foreground": "#6b6a64",
|
|
28
|
+
/* One step below --muted, never two: the choice face also carries the
|
|
29
|
+
* auxiliary ink, so it has to stay above 4.5:1 against it. */
|
|
30
|
+
"--accent": "#eeebe4",
|
|
31
|
+
"--accent-foreground": "#1a1b19",
|
|
32
|
+
"--border": "#e4e1d9",
|
|
33
|
+
"--input": "#c9c6bd",
|
|
34
|
+
"--ring": "#2f7d63",
|
|
35
|
+
"--chrome-border": "#eeebe4",
|
|
34
36
|
"--top-bar-border": "var(--chrome-border)",
|
|
35
37
|
"--activity-bar-border": "var(--chrome-border)",
|
|
36
38
|
"--bottom-bar-border": "var(--chrome-border)",
|
|
37
39
|
"--terminal-panel-border": "var(--chrome-border)",
|
|
38
|
-
"--card": "#
|
|
39
|
-
"--card-foreground": "#
|
|
40
|
-
"--popover": "#
|
|
41
|
-
"--popover-foreground": "#
|
|
42
|
-
"--success": "#
|
|
43
|
-
"--success-foreground": "#
|
|
44
|
-
"--warning": "#
|
|
45
|
-
"--warning-foreground": "#
|
|
46
|
-
"--error": "#
|
|
47
|
-
"--error-foreground": "#
|
|
48
|
-
"--info": "#
|
|
49
|
-
"--info-foreground": "#
|
|
50
|
-
"--highlight-block-info-accent": "oklch(0.52 0.
|
|
51
|
-
"--highlight-block-warning-accent": "oklch(0.
|
|
52
|
-
"--highlight-block-success-accent": "oklch(0.55 0.
|
|
53
|
-
"--highlight-block-error-accent": "oklch(0.55 0.
|
|
54
|
-
"--highlight-block-note-accent": "oklch(0.
|
|
55
|
-
"--highlight-block-tip-accent": "oklch(0.
|
|
56
|
-
"--sidebar": "#
|
|
57
|
-
"--sidebar-foreground": "#
|
|
58
|
-
"--sidebar-primary": "#
|
|
59
|
-
"--sidebar-primary-foreground": "#
|
|
60
|
-
"--sidebar-accent": "#
|
|
61
|
-
"--sidebar-accent-foreground": "#
|
|
62
|
-
"--sidebar-border": "#
|
|
63
|
-
"--sidebar-ring": "#
|
|
64
|
-
"--activity-bar": "#
|
|
65
|
-
"--activity-bar-foreground": "#
|
|
66
|
-
"--activity-bar-foreground-active": "#
|
|
67
|
-
"--activity-bar-badge": "#
|
|
68
|
-
"--activity-bar-badge-foreground": "#
|
|
69
|
-
"--terminal-background": "
|
|
70
|
-
"--terminal-foreground": "
|
|
71
|
-
"--chart-1": "
|
|
72
|
-
"--chart-2": "
|
|
73
|
-
"--chart-3": "
|
|
74
|
-
"--chart-4": "
|
|
75
|
-
"--chart-5": "
|
|
76
|
-
"--selection-bg": "
|
|
77
|
-
"--selection-fg": "
|
|
78
|
-
"--selection-on-primary-bg": "
|
|
79
|
-
"--selection-on-primary-fg": "
|
|
80
|
-
"--selection-code-bg": "
|
|
81
|
-
"--selection-code-fg": "
|
|
82
|
-
"--glow": "#
|
|
83
|
-
},
|
|
84
|
-
...
|
|
40
|
+
"--card": "#fefdfb",
|
|
41
|
+
"--card-foreground": "#1a1b19",
|
|
42
|
+
"--popover": "#fffefc",
|
|
43
|
+
"--popover-foreground": "#1a1b19",
|
|
44
|
+
"--success": "#227a50",
|
|
45
|
+
"--success-foreground": "#ffffff",
|
|
46
|
+
"--warning": "#8f5c0d",
|
|
47
|
+
"--warning-foreground": "#ffffff",
|
|
48
|
+
"--error": "#b8352c",
|
|
49
|
+
"--error-foreground": "#ffffff",
|
|
50
|
+
"--info": "#2a5f9e",
|
|
51
|
+
"--info-foreground": "#ffffff",
|
|
52
|
+
"--highlight-block-info-accent": "oklch(0.52 0.13 250)",
|
|
53
|
+
"--highlight-block-warning-accent": "oklch(0.64 0.13 72)",
|
|
54
|
+
"--highlight-block-success-accent": "oklch(0.55 0.12 160)",
|
|
55
|
+
"--highlight-block-error-accent": "oklch(0.55 0.17 27)",
|
|
56
|
+
"--highlight-block-note-accent": "oklch(0.53 0.15 292)",
|
|
57
|
+
"--highlight-block-tip-accent": "oklch(0.56 0.09 195)",
|
|
58
|
+
"--sidebar": "#f1efe9",
|
|
59
|
+
"--sidebar-foreground": "#1a1b19",
|
|
60
|
+
"--sidebar-primary": "#1c1d1b",
|
|
61
|
+
"--sidebar-primary-foreground": "#fbfaf7",
|
|
62
|
+
"--sidebar-accent": "#eeebe4",
|
|
63
|
+
"--sidebar-accent-foreground": "#1a1b19",
|
|
64
|
+
"--sidebar-border": "#e8e5dd",
|
|
65
|
+
"--sidebar-ring": "#2f7d63",
|
|
66
|
+
"--activity-bar": "#edeae3",
|
|
67
|
+
"--activity-bar-foreground": "#5f5f58",
|
|
68
|
+
"--activity-bar-foreground-active": "#1a1b19",
|
|
69
|
+
"--activity-bar-badge": "#1c1d1b",
|
|
70
|
+
"--activity-bar-badge-foreground": "#fbfaf7",
|
|
71
|
+
"--terminal-background": "#16171a",
|
|
72
|
+
"--terminal-foreground": "#e9e7e2",
|
|
73
|
+
"--chart-1": "#2f7d63",
|
|
74
|
+
"--chart-2": "#5f5f58",
|
|
75
|
+
"--chart-3": "#8f5c0d",
|
|
76
|
+
"--chart-4": "#b8352c",
|
|
77
|
+
"--chart-5": "#2a5f9e",
|
|
78
|
+
"--selection-bg": "#cde7db",
|
|
79
|
+
"--selection-fg": "#10211b",
|
|
80
|
+
"--selection-on-primary-bg": "#6fd0a8",
|
|
81
|
+
"--selection-on-primary-fg": "#082016",
|
|
82
|
+
"--selection-code-bg": "#bcded0",
|
|
83
|
+
"--selection-code-fg": "#0c1f18",
|
|
84
|
+
"--glow": "#2f7d63"
|
|
85
|
+
}, f = {
|
|
86
|
+
...l,
|
|
85
87
|
"--floe-window-background": "var(--popover)",
|
|
86
88
|
"--floe-window-titlebar-background": "var(--popover)",
|
|
87
|
-
"--background": "#
|
|
88
|
-
"--foreground": "#
|
|
89
|
-
"--inline-code-foreground": "#
|
|
90
|
-
"--inline-code-background": "#
|
|
91
|
-
"--primary": "#
|
|
92
|
-
"--primary-foreground": "#
|
|
93
|
-
"--secondary": "#
|
|
94
|
-
"--secondary-foreground": "#
|
|
95
|
-
"--muted": "#
|
|
96
|
-
"--muted-foreground": "#
|
|
97
|
-
"--accent": "#
|
|
98
|
-
"--accent-foreground": "#
|
|
99
|
-
"--border": "#
|
|
100
|
-
"--input": "#
|
|
101
|
-
"--ring": "#
|
|
102
|
-
"--chrome-border": "#
|
|
89
|
+
"--background": "#0d0e0d",
|
|
90
|
+
"--foreground": "#e9e8e3",
|
|
91
|
+
"--inline-code-foreground": "#5fd6a8",
|
|
92
|
+
"--inline-code-background": "#17201c",
|
|
93
|
+
"--primary": "#e9e8e3",
|
|
94
|
+
"--primary-foreground": "#101110",
|
|
95
|
+
"--secondary": "#1e1f1e",
|
|
96
|
+
"--secondary-foreground": "#c3c4be",
|
|
97
|
+
"--muted": "#1b1c1b",
|
|
98
|
+
"--muted-foreground": "#93948d",
|
|
99
|
+
"--accent": "#242524",
|
|
100
|
+
"--accent-foreground": "#e9e8e3",
|
|
101
|
+
"--border": "#262726",
|
|
102
|
+
"--input": "#3b3c3a",
|
|
103
|
+
"--ring": "#62b898",
|
|
104
|
+
"--chrome-border": "#1a1b1a",
|
|
103
105
|
"--top-bar-border": "var(--chrome-border)",
|
|
104
106
|
"--activity-bar-border": "var(--chrome-border)",
|
|
105
107
|
"--bottom-bar-border": "var(--chrome-border)",
|
|
106
108
|
"--terminal-panel-border": "var(--chrome-border)",
|
|
107
|
-
"--card": "#
|
|
108
|
-
"--card-foreground": "#
|
|
109
|
-
"--popover": "#
|
|
110
|
-
"--popover-foreground": "#
|
|
111
|
-
"--success": "#
|
|
112
|
-
"--success-foreground": "#
|
|
113
|
-
"--warning": "#
|
|
114
|
-
"--warning-foreground": "#
|
|
115
|
-
"--error": "
|
|
116
|
-
"--error-foreground": "#
|
|
117
|
-
"--info": "
|
|
118
|
-
"--info-foreground": "#
|
|
119
|
-
"--highlight-block-info-accent": "oklch(0.
|
|
120
|
-
"--highlight-block-warning-accent": "oklch(0.
|
|
121
|
-
"--highlight-block-success-accent": "oklch(0.
|
|
122
|
-
"--highlight-block-error-accent": "oklch(0.
|
|
123
|
-
"--highlight-block-note-accent": "oklch(0.
|
|
124
|
-
"--highlight-block-tip-accent": "oklch(0.
|
|
125
|
-
"--sidebar": "#
|
|
126
|
-
"--sidebar-foreground": "#
|
|
127
|
-
"--sidebar-primary": "#
|
|
128
|
-
"--sidebar-primary-foreground": "#
|
|
129
|
-
"--sidebar-accent": "#
|
|
130
|
-
"--sidebar-accent-foreground": "#
|
|
131
|
-
"--sidebar-border": "#
|
|
132
|
-
"--sidebar-ring": "#
|
|
133
|
-
"--activity-bar": "#
|
|
134
|
-
"--activity-bar-foreground": "#
|
|
135
|
-
"--activity-bar-foreground-active": "#
|
|
136
|
-
"--activity-bar-badge": "#
|
|
137
|
-
"--activity-bar-badge-foreground": "#
|
|
138
|
-
"--terminal-background": "
|
|
139
|
-
"--terminal-foreground": "
|
|
140
|
-
"--chart-1": "
|
|
141
|
-
"--chart-2": "
|
|
142
|
-
"--chart-3": "
|
|
143
|
-
"--chart-4": "
|
|
144
|
-
"--chart-5": "
|
|
145
|
-
"--selection-bg": "
|
|
146
|
-
"--selection-fg": "
|
|
147
|
-
"--selection-on-primary-bg": "
|
|
148
|
-
"--selection-on-primary-fg": "
|
|
149
|
-
"--selection-code-bg": "
|
|
150
|
-
"--selection-code-fg": "
|
|
151
|
-
"--glow": "
|
|
152
|
-
}, h = { ...
|
|
109
|
+
"--card": "#161716",
|
|
110
|
+
"--card-foreground": "#e9e8e3",
|
|
111
|
+
"--popover": "#1a1b1a",
|
|
112
|
+
"--popover-foreground": "#e9e8e3",
|
|
113
|
+
"--success": "#62bf93",
|
|
114
|
+
"--success-foreground": "#07200f",
|
|
115
|
+
"--warning": "#d9ac5f",
|
|
116
|
+
"--warning-foreground": "#1d1607",
|
|
117
|
+
"--error": "#e8756b",
|
|
118
|
+
"--error-foreground": "#210907",
|
|
119
|
+
"--info": "#79a9e6",
|
|
120
|
+
"--info-foreground": "#061322",
|
|
121
|
+
"--highlight-block-info-accent": "oklch(0.7 0.12 248)",
|
|
122
|
+
"--highlight-block-warning-accent": "oklch(0.78 0.12 76)",
|
|
123
|
+
"--highlight-block-success-accent": "oklch(0.74 0.12 160)",
|
|
124
|
+
"--highlight-block-error-accent": "oklch(0.68 0.17 25)",
|
|
125
|
+
"--highlight-block-note-accent": "oklch(0.7 0.14 292)",
|
|
126
|
+
"--highlight-block-tip-accent": "oklch(0.7 0.09 192)",
|
|
127
|
+
"--sidebar": "#111211",
|
|
128
|
+
"--sidebar-foreground": "#e9e8e3",
|
|
129
|
+
"--sidebar-primary": "#e9e8e3",
|
|
130
|
+
"--sidebar-primary-foreground": "#101110",
|
|
131
|
+
"--sidebar-accent": "#242524",
|
|
132
|
+
"--sidebar-accent-foreground": "#e9e8e3",
|
|
133
|
+
"--sidebar-border": "#202120",
|
|
134
|
+
"--sidebar-ring": "#62b898",
|
|
135
|
+
"--activity-bar": "#0a0b0a",
|
|
136
|
+
"--activity-bar-foreground": "#8c8d86",
|
|
137
|
+
"--activity-bar-foreground-active": "#e9e8e3",
|
|
138
|
+
"--activity-bar-badge": "#62b898",
|
|
139
|
+
"--activity-bar-badge-foreground": "#07200f",
|
|
140
|
+
"--terminal-background": "#080908",
|
|
141
|
+
"--terminal-foreground": "#e2e1dc",
|
|
142
|
+
"--chart-1": "#62b898",
|
|
143
|
+
"--chart-2": "#93948d",
|
|
144
|
+
"--chart-3": "#d9ac5f",
|
|
145
|
+
"--chart-4": "#e8756b",
|
|
146
|
+
"--chart-5": "#79a9e6",
|
|
147
|
+
"--selection-bg": "#1f4a3a",
|
|
148
|
+
"--selection-fg": "#eafaf2",
|
|
149
|
+
"--selection-on-primary-bg": "#62b898",
|
|
150
|
+
"--selection-on-primary-fg": "#07200f",
|
|
151
|
+
"--selection-code-bg": "#2c6350",
|
|
152
|
+
"--selection-code-fg": "#eafaf2",
|
|
153
|
+
"--glow": "#62b898"
|
|
154
|
+
}, h = { ...i, ...b("light", i) }, s = { ...f, ...b("dark", f) }, v = t(h), k = t(s);
|
|
153
155
|
export {
|
|
154
156
|
s as CLASSIC_DARK_CSS_TOKENS,
|
|
155
|
-
|
|
157
|
+
k as CLASSIC_DARK_SEMANTIC_TOKENS,
|
|
156
158
|
h as CLASSIC_LIGHT_CSS_TOKENS,
|
|
157
|
-
|
|
159
|
+
v as CLASSIC_LIGHT_SEMANTIC_TOKENS
|
|
158
160
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type ThemeType = 'light' | 'dark' | 'system';
|
|
2
|
-
|
|
2
|
+
/** One refined surface material. The former `standard` variant was removed:
|
|
3
|
+
* components no longer choose between an embossed and a flat material. */
|
|
4
|
+
export type FloeSurfaceStyle = 'soft-neumorphic';
|
|
3
5
|
export declare function isFloeSurfaceStyle(value: unknown): value is FloeSurfaceStyle;
|
|
4
6
|
export declare function applySurfaceStyleAttribute(style: FloeSurfaceStyle | undefined, target?: ThemeTarget): void;
|
|
5
7
|
export type FloeThemePresetMode = 'light' | 'dark' | 'both';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
function m(e) {
|
|
2
|
-
return e === "
|
|
2
|
+
return e === "soft-neumorphic";
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function h(e, r) {
|
|
5
5
|
const t = i(r);
|
|
6
6
|
e ? t?.setAttribute?.("data-floe-surface-style", e) : t?.removeAttribute?.("data-floe-surface-style");
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const d = [
|
|
9
9
|
{ name: "light", displayName: "Light", type: "light" },
|
|
10
10
|
{ name: "dark", displayName: "Dark", type: "dark" }
|
|
11
11
|
];
|
|
@@ -47,21 +47,21 @@ function g(e, r) {
|
|
|
47
47
|
function k(e, r = [], t) {
|
|
48
48
|
const o = i(t);
|
|
49
49
|
if (!o) return [];
|
|
50
|
-
const
|
|
50
|
+
const l = Object.entries(e ?? {}).filter((n) => {
|
|
51
51
|
const [, s] = n;
|
|
52
52
|
return typeof s == "string" && s.length > 0;
|
|
53
|
-
}),
|
|
53
|
+
}), a = new Set(l.map(([n]) => n));
|
|
54
54
|
for (const n of r)
|
|
55
|
-
|
|
56
|
-
for (const [n, s] of
|
|
55
|
+
a.has(n) || o.style.removeProperty(n);
|
|
56
|
+
for (const [n, s] of l)
|
|
57
57
|
o.style.setProperty(n, s);
|
|
58
|
-
return [...
|
|
58
|
+
return [...a];
|
|
59
59
|
}
|
|
60
60
|
export {
|
|
61
61
|
g as applyShellThemeAttribute,
|
|
62
|
-
|
|
62
|
+
h as applySurfaceStyleAttribute,
|
|
63
63
|
T as applyTheme,
|
|
64
|
-
|
|
64
|
+
d as builtInThemes,
|
|
65
65
|
u as getSystemTheme,
|
|
66
66
|
m as isFloeSurfaceStyle,
|
|
67
67
|
y as isThemeType,
|
|
@@ -108,8 +108,8 @@ export declare const builtInShellThemePresets: readonly [FloeThemePreset, FloeTh
|
|
|
108
108
|
monaco?: Partial<Record<"light" | "dark", import("./index").FloeMonacoThemeDefinition>>;
|
|
109
109
|
}, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset, FloeThemePreset];
|
|
110
110
|
export declare const BUILT_IN_SHELL_THEME_DEFAULTS: {
|
|
111
|
-
readonly light: "
|
|
112
|
-
readonly dark: "
|
|
111
|
+
readonly light: "classic-light";
|
|
112
|
+
readonly dark: "classic-dark";
|
|
113
113
|
};
|
|
114
114
|
export declare function presetSupportsMode(preset: FloeThemePreset, mode: FloeShellThemeMode): boolean;
|
|
115
115
|
export declare function getShellThemePresetsForMode(presets: readonly FloeThemePreset[], mode: FloeShellThemeMode): readonly FloeThemePreset[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createProgressTokens as
|
|
2
|
-
import { DARK_WINDOW_TOKENS as
|
|
1
|
+
import { createProgressTokens as B } from "./progressTokens.js";
|
|
2
|
+
import { DARK_WINDOW_TOKENS as k, LIGHT_WINDOW_TOKENS as E } from "./windowTokens.js";
|
|
3
3
|
import { CLASSIC_LIGHT_SEMANTIC_TOKENS as t, CLASSIC_DARK_SEMANTIC_TOKENS as F } from "./classicSemanticTokens.js";
|
|
4
4
|
const T = [
|
|
5
5
|
"--floe-window-background",
|
|
@@ -112,7 +112,7 @@ function o(r) {
|
|
|
112
112
|
function: s,
|
|
113
113
|
constant: i
|
|
114
114
|
}, g = {
|
|
115
|
-
...r.mode === "dark" ?
|
|
115
|
+
...r.mode === "dark" ? k : E,
|
|
116
116
|
...r.windowTokens,
|
|
117
117
|
"--background": r.background,
|
|
118
118
|
"--foreground": r.foreground,
|
|
@@ -182,9 +182,9 @@ function o(r) {
|
|
|
182
182
|
// selectionBackground so we don't inherit a near-white primary as glow source.
|
|
183
183
|
"--glow": r.glow ?? (r.mode === "light" ? r.primary : r.selectionBackground)
|
|
184
184
|
};
|
|
185
|
-
Object.assign(g,
|
|
186
|
-
for (const [l,
|
|
187
|
-
g[`--floe-file-icon-${l}`] =
|
|
185
|
+
Object.assign(g, B(r.mode, g));
|
|
186
|
+
for (const [l, b] of Object.entries(r.fileIconColors ?? {}))
|
|
187
|
+
g[`--floe-file-icon-${l}`] = b;
|
|
188
188
|
return {
|
|
189
189
|
name: r.name,
|
|
190
190
|
displayName: r.displayName,
|
|
@@ -265,7 +265,7 @@ const C = {
|
|
|
265
265
|
...o({
|
|
266
266
|
name: "classic-light",
|
|
267
267
|
displayName: "Classic Light",
|
|
268
|
-
description: "
|
|
268
|
+
description: "Quiet paper canvas, ink controls and a single mint accent.",
|
|
269
269
|
mode: "light",
|
|
270
270
|
background: t["--background"],
|
|
271
271
|
foreground: t["--foreground"],
|
|
@@ -277,19 +277,19 @@ const C = {
|
|
|
277
277
|
border: t["--border"],
|
|
278
278
|
input: t["--input"],
|
|
279
279
|
sidebar: t["--sidebar"],
|
|
280
|
-
terminalBackground: "#
|
|
281
|
-
terminalForeground: "#
|
|
282
|
-
selectionBackground: "#
|
|
283
|
-
selectionForeground: "#
|
|
284
|
-
chart: ["#
|
|
280
|
+
terminalBackground: "#17181a",
|
|
281
|
+
terminalForeground: "#ecece8",
|
|
282
|
+
selectionBackground: "#cfe0ff",
|
|
283
|
+
selectionForeground: "#101723",
|
|
284
|
+
chart: ["#191a1b", "#6c6d68", "#2563eb", "#1f9d55", "#c98a12"],
|
|
285
285
|
syntax: {
|
|
286
|
-
comment: "#
|
|
287
|
-
keyword: "#
|
|
288
|
-
string: "#
|
|
289
|
-
number: "#
|
|
290
|
-
type: "#
|
|
291
|
-
function: "#
|
|
292
|
-
constant: "#
|
|
286
|
+
comment: "#6c6d68",
|
|
287
|
+
keyword: "#0b6bcb",
|
|
288
|
+
string: "#1f9d55",
|
|
289
|
+
number: "#b7791f",
|
|
290
|
+
type: "#2563eb",
|
|
291
|
+
function: "#7c4dbe",
|
|
292
|
+
constant: "#c4342b"
|
|
293
293
|
}
|
|
294
294
|
}),
|
|
295
295
|
inheritsBaseTokens: !0,
|
|
@@ -299,7 +299,7 @@ const C = {
|
|
|
299
299
|
...o({
|
|
300
300
|
name: "classic-dark",
|
|
301
301
|
displayName: "Classic Dark",
|
|
302
|
-
description: "
|
|
302
|
+
description: "Near-black canvas, hairline layers and a single mint accent.",
|
|
303
303
|
mode: "dark",
|
|
304
304
|
background: F["--background"],
|
|
305
305
|
foreground: F["--foreground"],
|
|
@@ -311,19 +311,19 @@ const C = {
|
|
|
311
311
|
border: F["--border"],
|
|
312
312
|
input: F["--input"],
|
|
313
313
|
sidebar: F["--sidebar"],
|
|
314
|
-
terminalBackground: "#
|
|
315
|
-
terminalForeground: "#
|
|
316
|
-
selectionBackground: "#
|
|
317
|
-
selectionForeground: "#
|
|
318
|
-
chart: ["#
|
|
314
|
+
terminalBackground: "#08080a",
|
|
315
|
+
terminalForeground: "#e4e4e6",
|
|
316
|
+
selectionBackground: "#2f5fa8",
|
|
317
|
+
selectionForeground: "#f7fbff",
|
|
318
|
+
chart: ["#f2f2f3", "#8b8b90", "#6aa8ff", "#4ade80", "#e0b155"],
|
|
319
319
|
syntax: {
|
|
320
|
-
comment: "#
|
|
321
|
-
keyword: "#
|
|
322
|
-
string: "#
|
|
323
|
-
number: "#
|
|
324
|
-
type: "#
|
|
325
|
-
function: "#
|
|
326
|
-
constant: "#
|
|
320
|
+
comment: "#8b8b90",
|
|
321
|
+
keyword: "#c4b5fd",
|
|
322
|
+
string: "#4ade80",
|
|
323
|
+
number: "#e0b155",
|
|
324
|
+
type: "#6aa8ff",
|
|
325
|
+
function: "#5eead4",
|
|
326
|
+
constant: "#f2555a"
|
|
327
327
|
}
|
|
328
328
|
}),
|
|
329
329
|
inheritsBaseTokens: !0,
|
|
@@ -1082,8 +1082,8 @@ const C = {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
})
|
|
1084
1084
|
], x = {
|
|
1085
|
-
light: "
|
|
1086
|
-
dark: "
|
|
1085
|
+
light: "classic-light",
|
|
1086
|
+
dark: "classic-dark"
|
|
1087
1087
|
};
|
|
1088
1088
|
function h(r, e) {
|
|
1089
1089
|
const n = r.mode ?? "both";
|