@floegence/floe-webapp-core 0.50.6 → 0.52.0
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/input/ChatInput.js +8 -8
- package/dist/components/ui/Button.js +16 -13
- package/dist/components/ui/Card.js +125 -119
- package/dist/components/ui/Checkbox.js +178 -132
- package/dist/components/ui/CommandPalette.js +10 -10
- package/dist/components/ui/Dialog.d.ts +7 -0
- package/dist/components/ui/Dialog.js +160 -114
- package/dist/components/ui/DirectoryInput.js +5 -5
- package/dist/components/ui/Dropdown.d.ts +2 -0
- package/dist/components/ui/Dropdown.js +183 -160
- package/dist/components/ui/FloatingWindow.js +211 -199
- package/dist/components/ui/HighlightBlock.js +8 -8
- package/dist/components/ui/Input.js +40 -40
- package/dist/components/ui/Pagination.js +90 -88
- package/dist/components/ui/ProcessingIndicator.js +1 -1
- package/dist/components/ui/Progress.js +99 -88
- package/dist/components/ui/QuoteBlock.js +9 -9
- package/dist/components/ui/Radio.js +151 -127
- package/dist/components/ui/SegmentedControl.js +26 -25
- package/dist/components/ui/Stepper.js +114 -112
- package/dist/components/ui/Switch.js +34 -33
- package/dist/components/ui/Tabs.js +153 -150
- package/dist/components/ui/Tag.js +24 -21
- package/dist/components/ui/Tooltip.js +10 -10
- package/dist/components/ui/floatingPresence.js +40 -30
- package/dist/components/workbench/WorkbenchHud.js +9 -9
- package/dist/components/workbench/WorkbenchLockButton.js +4 -4
- package/dist/components/workbench/WorkbenchWidget.js +46 -43
- package/dist/context/FloeConfigContext.d.ts +5 -1
- package/dist/context/FloeConfigContext.js +10 -9
- package/dist/context/ThemeContext.d.ts +3 -1
- package/dist/context/ThemeContext.js +78 -71
- package/dist/floe.css +32 -0
- package/dist/full.js +839 -836
- package/dist/hooks/useOverlayMask.js +95 -83
- package/dist/index.js +150 -147
- package/dist/input-focus.css +0 -1
- package/dist/styles/themes/index.d.ts +3 -0
- package/dist/styles/themes/index.js +40 -31
- package/dist/styles/tokens.d.ts +36 -0
- package/dist/styles/tokens.js +12 -5
- package/dist/styles.css +1 -1
- package/dist/surface.css +467 -0
- package/dist/themes.d.ts +1 -1
- package/dist/ui.css +9 -0
- package/package.json +1 -1
|
@@ -1,128 +1,140 @@
|
|
|
1
|
-
import { createEffect as
|
|
2
|
-
import { lockBodyStyle as
|
|
3
|
-
import { deferAfterPaint as
|
|
4
|
-
import { getFocusableElements as
|
|
5
|
-
import { matchKeybind as
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { createEffect as R, onCleanup as V } from "solid-js";
|
|
2
|
+
import { lockBodyStyle as G } from "../utils/bodyStyleLock.js";
|
|
3
|
+
import { deferAfterPaint as D } from "../utils/defer.js";
|
|
4
|
+
import { getFocusableElements as J, getFirstFocusableElement as Q } from "../utils/focus.js";
|
|
5
|
+
import { matchKeybind as U } from "../utils/keybind.js";
|
|
6
|
+
const S = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
function K(t) {
|
|
8
|
+
return typeof Node < "u" && t instanceof Node;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
-
return r ? r(o) : !
|
|
10
|
+
function p(t, o, r) {
|
|
11
|
+
return r ? r(o) : !t || !K(o) ? !1 : t.contains(o);
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
return r === "none" ? !1 : r === "all" ? !0 : !
|
|
13
|
+
function H(t, o, r, a) {
|
|
14
|
+
return r === "none" ? !1 : r === "all" ? !0 : !p(t, o, a);
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
return typeof
|
|
16
|
+
function X(t) {
|
|
17
|
+
return typeof t == "function" ? t() ?? [] : t ?? [];
|
|
17
18
|
}
|
|
18
|
-
function c(
|
|
19
|
-
return typeof
|
|
19
|
+
function c(t, o) {
|
|
20
|
+
return typeof t == "function" ? t() ?? o : t ?? o;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
for (const r of
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
22
|
+
function Y(t, o) {
|
|
23
|
+
for (const r of X(o)) {
|
|
24
|
+
const a = r.trim();
|
|
25
|
+
if (a && U(t, a))
|
|
25
26
|
return !0;
|
|
26
27
|
}
|
|
27
28
|
return !1;
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
-
const o = () => c(
|
|
31
|
-
const
|
|
32
|
-
|
|
30
|
+
function oe(t) {
|
|
31
|
+
const o = () => c(t.lockBodyScroll, !0), r = () => c(t.trapFocus, !0), a = () => {
|
|
32
|
+
const i = c(
|
|
33
|
+
t.closeOnEscape,
|
|
33
34
|
!0
|
|
34
35
|
);
|
|
35
|
-
return
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
if (!
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
return i === !1 ? "none" : i === "inside" ? "inside" : i === "none" ? "none" : "always";
|
|
37
|
+
}, W = () => c(t.blockHotkeys, !0), A = () => c(t.restoreFocus, !0), x = () => c(t.blockWheel, "none"), I = () => c(t.blockTouchMove, "none"), N = () => c(t.autoFocus, !0);
|
|
38
|
+
R(() => {
|
|
39
|
+
if (!t.open() || typeof document > "u") return;
|
|
40
|
+
const i = o(), b = r(), d = a(), m = c(t.escapeKeyPhase, "capture"), q = W(), j = A(), h = x(), k = I(), E = N(), l = S.get(document) ?? [];
|
|
41
|
+
S.set(document, l);
|
|
42
|
+
const v = {
|
|
43
|
+
global: i || d === "always",
|
|
44
|
+
contains: (e) => p(t.root(), e, t.containsTarget)
|
|
45
|
+
};
|
|
46
|
+
l.push(v);
|
|
47
|
+
let w = !0;
|
|
48
|
+
const u = (e) => w && !l.slice(l.indexOf(v) + 1).some((n) => n.global || n.contains(e)), g = document.activeElement instanceof HTMLElement ? document.activeElement : null, z = i ? G({ overflow: "hidden" }) : null;
|
|
49
|
+
D(() => {
|
|
50
|
+
const e = t.root();
|
|
51
|
+
if (!e?.isConnected || !u(e) || E === !1 || v.contains(document.activeElement)) return;
|
|
52
|
+
const n = typeof E == "object" ? E.selector : void 0, y = (n ? e.querySelector(n) : null) ?? e.querySelector("[data-floe-autofocus]") ?? Q(e) ?? e;
|
|
44
53
|
try {
|
|
45
|
-
|
|
54
|
+
y.focus();
|
|
46
55
|
} catch {
|
|
47
56
|
}
|
|
48
57
|
});
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
51
|
-
const n =
|
|
58
|
+
const T = (e) => {
|
|
59
|
+
if (e.key !== "Tab" || !u(e.target)) return;
|
|
60
|
+
const n = t.root();
|
|
52
61
|
if (!n) return;
|
|
53
|
-
const
|
|
54
|
-
if (!
|
|
55
|
-
|
|
62
|
+
const s = J(n);
|
|
63
|
+
if (!s.length) {
|
|
64
|
+
e.preventDefault();
|
|
56
65
|
try {
|
|
57
66
|
n.focus();
|
|
58
67
|
} catch {
|
|
59
68
|
}
|
|
60
69
|
return;
|
|
61
70
|
}
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
64
|
-
if (
|
|
65
|
-
|
|
71
|
+
const y = s[0], P = s[s.length - 1], f = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
72
|
+
if (e.shiftKey) {
|
|
73
|
+
if (f === y || !f || !n.contains(f)) {
|
|
74
|
+
e.preventDefault();
|
|
66
75
|
try {
|
|
67
|
-
|
|
76
|
+
P.focus();
|
|
68
77
|
} catch {
|
|
69
78
|
}
|
|
70
79
|
}
|
|
71
|
-
} else if (
|
|
72
|
-
|
|
80
|
+
} else if (f === P || !f || !n.contains(f)) {
|
|
81
|
+
e.preventDefault();
|
|
73
82
|
try {
|
|
74
|
-
|
|
83
|
+
y.focus();
|
|
75
84
|
} catch {
|
|
76
85
|
}
|
|
77
86
|
}
|
|
78
|
-
},
|
|
79
|
-
if (
|
|
80
|
-
const n =
|
|
87
|
+
}, L = (e) => {
|
|
88
|
+
if (e.key !== "Escape" || !u(e.target) || m === "bubble" && (e.defaultPrevented || e.isComposing) || d === "none") return;
|
|
89
|
+
const n = t.root(), s = p(
|
|
81
90
|
n,
|
|
82
|
-
|
|
83
|
-
|
|
91
|
+
K(e.target) ? e.target : document.activeElement,
|
|
92
|
+
t.containsTarget
|
|
84
93
|
);
|
|
85
|
-
if (
|
|
86
|
-
if (
|
|
87
|
-
|
|
94
|
+
if (d === "inside") {
|
|
95
|
+
if (s) {
|
|
96
|
+
e.preventDefault(), e.stopImmediatePropagation(), t.onClose?.();
|
|
88
97
|
return;
|
|
89
98
|
}
|
|
90
|
-
|
|
99
|
+
t.onEscapeOutside && (e.preventDefault(), e.stopImmediatePropagation(), t.onEscapeOutside());
|
|
91
100
|
return;
|
|
92
101
|
}
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
t.
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
e.preventDefault(), e.stopImmediatePropagation(), t.onClose?.();
|
|
103
|
+
}, M = (e) => {
|
|
104
|
+
if (!u(e.target)) return;
|
|
105
|
+
const n = t.root();
|
|
106
|
+
n && q && p(n, e.target, t.containsTarget) && (Y(e, t.allowHotkeys) || e.stopPropagation());
|
|
107
|
+
}, O = (e) => {
|
|
108
|
+
if (!u(e.target)) return;
|
|
109
|
+
const n = t.root();
|
|
110
|
+
H(n, e.target, h, t.containsTarget) && e.cancelable && e.preventDefault();
|
|
111
|
+
}, B = (e) => {
|
|
112
|
+
u(e.target) && e.stopPropagation();
|
|
113
|
+
}, F = (e) => {
|
|
114
|
+
if (!u(e.target)) return;
|
|
115
|
+
const n = t.root();
|
|
116
|
+
H(n, e.target, k, t.containsTarget) && e.cancelable && e.preventDefault();
|
|
105
117
|
};
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
|
|
118
|
+
b && document.addEventListener("keydown", T, !0);
|
|
119
|
+
const C = m === "capture" ? window : document;
|
|
120
|
+
d !== "none" && C.addEventListener(
|
|
109
121
|
"keydown",
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
), document.addEventListener("keydown",
|
|
122
|
+
L,
|
|
123
|
+
m === "capture"
|
|
124
|
+
), document.addEventListener("keydown", M), h !== "none" && (document.addEventListener("wheel", O, { capture: !0, passive: !1 }), document.addEventListener("wheel", B)), k !== "none" && document.addEventListener("touchmove", F, {
|
|
113
125
|
capture: !0,
|
|
114
126
|
passive: !1
|
|
115
|
-
}),
|
|
116
|
-
|
|
127
|
+
}), V(() => {
|
|
128
|
+
w = !1, l.splice(l.indexOf(v), 1), b && document.removeEventListener("keydown", T, !0), d !== "none" && C.removeEventListener(
|
|
117
129
|
"keydown",
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
), document.removeEventListener("keydown",
|
|
130
|
+
L,
|
|
131
|
+
m === "capture"
|
|
132
|
+
), document.removeEventListener("keydown", M), h !== "none" && (document.removeEventListener("wheel", O, !0), document.removeEventListener("wheel", B)), k !== "none" && document.removeEventListener("touchmove", F, !0), z?.(), j && g && g.isConnected && D(() => {
|
|
121
133
|
if (typeof document > "u") return;
|
|
122
|
-
const
|
|
123
|
-
if (!(
|
|
134
|
+
const e = document.activeElement;
|
|
135
|
+
if (!(e && e !== document.body && e !== document.documentElement))
|
|
124
136
|
try {
|
|
125
|
-
|
|
137
|
+
g.focus();
|
|
126
138
|
} catch {
|
|
127
139
|
}
|
|
128
140
|
});
|
|
@@ -130,5 +142,5 @@ function _(e) {
|
|
|
130
142
|
});
|
|
131
143
|
}
|
|
132
144
|
export {
|
|
133
|
-
|
|
145
|
+
oe as useOverlayMask
|
|
134
146
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,154 +1,157 @@
|
|
|
1
1
|
import { FloeProvider as r } from "./app/FloeProvider.js";
|
|
2
|
-
import { applyShellThemeAttribute as i,
|
|
3
|
-
import { floeColorTokenCategories as g, floeDesignTokens as
|
|
4
|
-
import { BUILT_IN_SHELL_THEME_DEFAULTS as
|
|
5
|
-
import { CommandProvider as
|
|
6
|
-
import { ComponentRegistryProvider as
|
|
7
|
-
import { DEFAULT_FLOE_CONFIG as
|
|
8
|
-
import { DeckProvider as
|
|
9
|
-
import { FLOE_GEOMETRY_SURFACE_ATTR as
|
|
10
|
-
import { FileBrowserDragProvider as
|
|
11
|
-
import { LayoutProvider as
|
|
12
|
-
import { NotificationContainer as
|
|
13
|
-
import { ThemeProvider as
|
|
14
|
-
import { ViewActivationProvider as
|
|
15
|
-
import { WidgetRegistryProvider as
|
|
16
|
-
import { WidgetStateProvider as
|
|
17
|
-
import { applyDragDelta as
|
|
18
|
-
import { checkCollision as
|
|
19
|
-
import { cn as
|
|
20
|
-
import { createSimpleContext as
|
|
21
|
-
import { createUIFirstSelection as
|
|
22
|
-
import { deferAfterPaint as
|
|
23
|
-
import { duration as
|
|
24
|
-
import { formatKeybind as
|
|
25
|
-
import { isTypingElement as
|
|
26
|
-
import { lockBodyStyle as
|
|
27
|
-
import { registerCommandContributions as
|
|
28
|
-
import { useDebounce as
|
|
29
|
-
import { useDeckDrag as
|
|
30
|
-
import { useFileBrowserDropTarget as
|
|
31
|
-
import { useKeybind as
|
|
32
|
-
import { useMediaQuery as
|
|
33
|
-
import { usePersisted as
|
|
34
|
-
import { useResizeObserver as
|
|
2
|
+
import { applyShellThemeAttribute as i, applySurfaceStyleAttribute as s, applyTheme as n, builtInThemes as a, getSystemTheme as m, isFloeSurfaceStyle as l, isThemeType as p, mergeThemeTokenMaps as f, resolveThemeTokenOverrides as d, resolveThemeTokens as T, syncThemeTokenOverrides as u } from "./styles/themes/index.js";
|
|
3
|
+
import { floeColorTokenCategories as g, floeDesignTokens as x, floeFontFamilyTokens as y, floeMotionTokens as C, floeRadiusTokens as h, floeSharedCssVariables as S, floeSpacingTokens as F, floeSurfaceTokens as v, floeThemeColorVariables as P, floeTypographyTokens as k, getFloeColorTokenValue as I } from "./styles/tokens.js";
|
|
4
|
+
import { BUILT_IN_SHELL_THEME_DEFAULTS as D, REQUIRED_SHELL_THEME_TOKENS as E, assertUniqueThemePresetNames as b, builtInShellThemePresets as L, createShellThemePreset as _, getShellThemePresetsForMode as A, normalizeShellThemeSelection as N, presetSupportsMode as O, resolveShellThemePresetName as M } from "./styles/themes/presets.js";
|
|
5
|
+
import { CommandProvider as w, createCommandService as G, useCommand as H } from "./context/CommandContext.js";
|
|
6
|
+
import { ComponentRegistryProvider as W, createComponentRegistry as K, hasComponentRegistryContext as V, useComponentContextFactory as z, useComponentRegistry as Q, useOptionalComponentRegistry as q } from "./context/ComponentRegistry.js";
|
|
7
|
+
import { DEFAULT_FLOE_CONFIG as j, FloeConfigProvider as J, useFloeConfig as X, useResolvedFloeConfig as Z } from "./context/FloeConfigContext.js";
|
|
8
|
+
import { DeckProvider as ee, createDeckService as oe, useDeck as re } from "./context/DeckContext.js";
|
|
9
|
+
import { FLOE_GEOMETRY_SURFACE_ATTR as ie, FLOE_HOT_INTERACTION_ATTR as se, startHotInteraction as ne } from "./utils/hotInteraction.js";
|
|
10
|
+
import { FileBrowserDragProvider as me, hasFileBrowserDragContext as le, useFileBrowserDrag as pe } from "./context/FileBrowserDragContext.js";
|
|
11
|
+
import { LayoutProvider as de, createLayoutService as Te, useLayout as ue } from "./context/LayoutContext.js";
|
|
12
|
+
import { NotificationContainer as ge, NotificationProvider as xe, createNotificationService as ye, useNotification as Ce } from "./context/NotificationContext.js";
|
|
13
|
+
import { ThemeProvider as Se, createThemeService as Fe, useTheme as ve } from "./context/ThemeContext.js";
|
|
14
|
+
import { ViewActivationProvider as ke, useViewActivation as Ie } from "./context/ViewActivationContext.js";
|
|
15
|
+
import { WidgetRegistryProvider as De, createWidgetRegistry as Ee, useWidgetRegistry as be } from "./context/WidgetRegistry.js";
|
|
16
|
+
import { WidgetStateProvider as _e, useCurrentWidgetId as Ae, useWidgetState as Ne, useWidgetStateContext as Oe } from "./context/WidgetStateContext.js";
|
|
17
|
+
import { applyDragDelta as Be, applyResizeDelta as we, getGridCellSize as Ge, pixelDeltaToGridDelta as He, positionToGridArea as Ue, snapToGrid as We } from "./utils/gridLayout.js";
|
|
18
|
+
import { checkCollision as Ve, constrainPosition as ze, findFreePosition as Qe, hasCollision as qe, sameGridPosition as Ye } from "./utils/gridCollision.js";
|
|
19
|
+
import { cn as Je } from "./utils/cn.js";
|
|
20
|
+
import { createSimpleContext as Ze } from "./context/createSimpleContext.js";
|
|
21
|
+
import { createUIFirstSelection as eo } from "./utils/uiFirstSelection.js";
|
|
22
|
+
import { deferAfterPaint as ro, deferNonBlocking as to } from "./utils/defer.js";
|
|
23
|
+
import { duration as so, easing as no, fadeIn as ao, listContainer as mo, listItem as lo, panelResize as po, popIn as fo, scaleIn as To, sidebarVariants as uo, slideInFromBottom as co, slideInFromLeft as go, slideInFromRight as xo, slideInFromTop as yo, springConfig as Co } from "./utils/animations.js";
|
|
24
|
+
import { formatKeybind as So, isMacLikePlatform as Fo, isPrimaryModKeyPressed as vo, matchKeybind as Po, parseKeybind as ko } from "./utils/keybind.js";
|
|
25
|
+
import { isTypingElement as Ro, shouldIgnoreHotkeys as Do } from "./utils/dom.js";
|
|
26
|
+
import { lockBodyStyle as bo } from "./utils/bodyStyleLock.js";
|
|
27
|
+
import { registerCommandContributions as _o, useCommandContributions as Ao } from "./hooks/useCommandContributions.js";
|
|
28
|
+
import { useDebounce as Oo } from "./hooks/useDebounce.js";
|
|
29
|
+
import { useDeckDrag as Bo } from "./hooks/useDeckDrag.js";
|
|
30
|
+
import { useFileBrowserDropTarget as Go, useFileBrowserItemDrag as Ho } from "./hooks/useFileBrowserDrag.js";
|
|
31
|
+
import { useKeybind as Wo } from "./hooks/useKeybind.js";
|
|
32
|
+
import { useMediaQuery as Vo } from "./hooks/useMediaQuery.js";
|
|
33
|
+
import { usePersisted as Qo } from "./hooks/usePersisted.js";
|
|
34
|
+
import { useResizeObserver as Yo } from "./hooks/useResizeObserver.js";
|
|
35
35
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
D as BUILT_IN_SHELL_THEME_DEFAULTS,
|
|
37
|
+
w as CommandProvider,
|
|
38
|
+
W as ComponentRegistryProvider,
|
|
39
|
+
j as DEFAULT_FLOE_CONFIG,
|
|
40
|
+
ee as DeckProvider,
|
|
41
|
+
ie as FLOE_GEOMETRY_SURFACE_ATTR,
|
|
42
|
+
se as FLOE_HOT_INTERACTION_ATTR,
|
|
43
|
+
me as FileBrowserDragProvider,
|
|
44
|
+
J as FloeConfigProvider,
|
|
45
45
|
r as FloeProvider,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
de as LayoutProvider,
|
|
47
|
+
ge as NotificationContainer,
|
|
48
|
+
xe as NotificationProvider,
|
|
49
|
+
E as REQUIRED_SHELL_THEME_TOKENS,
|
|
50
|
+
Se as ThemeProvider,
|
|
51
|
+
ke as ViewActivationProvider,
|
|
52
|
+
De as WidgetRegistryProvider,
|
|
53
|
+
_e as WidgetStateProvider,
|
|
54
|
+
Be as applyDragDelta,
|
|
55
|
+
we as applyResizeDelta,
|
|
56
56
|
i as applyShellThemeAttribute,
|
|
57
|
-
s as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
57
|
+
s as applySurfaceStyleAttribute,
|
|
58
|
+
n as applyTheme,
|
|
59
|
+
b as assertUniqueThemePresetNames,
|
|
60
|
+
L as builtInShellThemePresets,
|
|
61
|
+
a as builtInThemes,
|
|
62
|
+
Ve as checkCollision,
|
|
63
|
+
Je as cn,
|
|
64
|
+
ze as constrainPosition,
|
|
65
|
+
G as createCommandService,
|
|
66
|
+
K as createComponentRegistry,
|
|
67
|
+
oe as createDeckService,
|
|
68
|
+
Te as createLayoutService,
|
|
69
|
+
ye as createNotificationService,
|
|
70
|
+
_ as createShellThemePreset,
|
|
71
|
+
Ze as createSimpleContext,
|
|
72
|
+
Fe as createThemeService,
|
|
73
|
+
eo as createUIFirstSelection,
|
|
74
|
+
Ee as createWidgetRegistry,
|
|
75
|
+
ro as deferAfterPaint,
|
|
76
|
+
to as deferNonBlocking,
|
|
77
|
+
so as duration,
|
|
78
|
+
no as easing,
|
|
79
|
+
ao as fadeIn,
|
|
80
|
+
Qe as findFreePosition,
|
|
80
81
|
g as floeColorTokenCategories,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
x as floeDesignTokens,
|
|
83
|
+
y as floeFontFamilyTokens,
|
|
84
|
+
C as floeMotionTokens,
|
|
85
|
+
h as floeRadiusTokens,
|
|
86
|
+
S as floeSharedCssVariables,
|
|
87
|
+
F as floeSpacingTokens,
|
|
88
|
+
v as floeSurfaceTokens,
|
|
89
|
+
P as floeThemeColorVariables,
|
|
90
|
+
k as floeTypographyTokens,
|
|
91
|
+
So as formatKeybind,
|
|
92
|
+
I as getFloeColorTokenValue,
|
|
93
|
+
Ge as getGridCellSize,
|
|
94
|
+
A as getShellThemePresetsForMode,
|
|
93
95
|
m as getSystemTheme,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
go as
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
ve as
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
96
|
+
qe as hasCollision,
|
|
97
|
+
V as hasComponentRegistryContext,
|
|
98
|
+
le as hasFileBrowserDragContext,
|
|
99
|
+
l as isFloeSurfaceStyle,
|
|
100
|
+
Fo as isMacLikePlatform,
|
|
101
|
+
vo as isPrimaryModKeyPressed,
|
|
102
|
+
p as isThemeType,
|
|
103
|
+
Ro as isTypingElement,
|
|
104
|
+
mo as listContainer,
|
|
105
|
+
lo as listItem,
|
|
106
|
+
bo as lockBodyStyle,
|
|
107
|
+
Po as matchKeybind,
|
|
108
|
+
f as mergeThemeTokenMaps,
|
|
109
|
+
N as normalizeShellThemeSelection,
|
|
110
|
+
po as panelResize,
|
|
111
|
+
ko as parseKeybind,
|
|
112
|
+
He as pixelDeltaToGridDelta,
|
|
113
|
+
fo as popIn,
|
|
114
|
+
Ue as positionToGridArea,
|
|
115
|
+
O as presetSupportsMode,
|
|
116
|
+
_o as registerCommandContributions,
|
|
117
|
+
M as resolveShellThemePresetName,
|
|
118
|
+
d as resolveThemeTokenOverrides,
|
|
119
|
+
T as resolveThemeTokens,
|
|
120
|
+
Ye as sameGridPosition,
|
|
121
|
+
To as scaleIn,
|
|
122
|
+
Do as shouldIgnoreHotkeys,
|
|
123
|
+
uo as sidebarVariants,
|
|
124
|
+
co as slideInFromBottom,
|
|
125
|
+
go as slideInFromLeft,
|
|
126
|
+
xo as slideInFromRight,
|
|
127
|
+
yo as slideInFromTop,
|
|
128
|
+
We as snapToGrid,
|
|
129
|
+
Co as springConfig,
|
|
130
|
+
ne as startHotInteraction,
|
|
131
|
+
u as syncThemeTokenOverrides,
|
|
132
|
+
H as useCommand,
|
|
133
|
+
Ao as useCommandContributions,
|
|
134
|
+
z as useComponentContextFactory,
|
|
135
|
+
Q as useComponentRegistry,
|
|
136
|
+
Ae as useCurrentWidgetId,
|
|
137
|
+
Oo as useDebounce,
|
|
138
|
+
re as useDeck,
|
|
139
|
+
Bo as useDeckDrag,
|
|
140
|
+
pe as useFileBrowserDrag,
|
|
141
|
+
Go as useFileBrowserDropTarget,
|
|
142
|
+
Ho as useFileBrowserItemDrag,
|
|
143
|
+
X as useFloeConfig,
|
|
144
|
+
Wo as useKeybind,
|
|
145
|
+
ue as useLayout,
|
|
146
|
+
Vo as useMediaQuery,
|
|
147
|
+
Ce as useNotification,
|
|
148
|
+
q as useOptionalComponentRegistry,
|
|
149
|
+
Qo as usePersisted,
|
|
150
|
+
Yo as useResizeObserver,
|
|
151
|
+
Z as useResolvedFloeConfig,
|
|
152
|
+
ve as useTheme,
|
|
153
|
+
Ie as useViewActivation,
|
|
154
|
+
be as useWidgetRegistry,
|
|
155
|
+
Ne as useWidgetState,
|
|
156
|
+
Oe as useWidgetStateContext
|
|
154
157
|
};
|
package/dist/input-focus.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export type ThemeType = 'light' | 'dark' | 'system';
|
|
2
|
+
export type FloeSurfaceStyle = 'standard' | 'soft-neumorphic';
|
|
3
|
+
export declare function isFloeSurfaceStyle(value: unknown): value is FloeSurfaceStyle;
|
|
4
|
+
export declare function applySurfaceStyleAttribute(style: FloeSurfaceStyle | undefined, target?: ThemeTarget): void;
|
|
2
5
|
export type FloeThemePresetMode = 'light' | 'dark' | 'both';
|
|
3
6
|
export type FloeThemeTokenMap = Partial<Record<`--${string}`, string>>;
|
|
4
7
|
export interface FloeMonacoTokenRule {
|