@ecopages/dev-toolbar 0.2.0-beta.30
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/README.md +61 -0
- package/package.json +54 -0
- package/src/api/dev-manifest.d.ts +33 -0
- package/src/api/dev-manifest.js +34 -0
- package/src/api/types.d.ts +21 -0
- package/src/api/types.js +1 -0
- package/src/apps/a11y/a11y-badge.d.ts +3 -0
- package/src/apps/a11y/a11y-badge.js +10 -0
- package/src/apps/a11y/a11y-issue-groups.d.ts +12 -0
- package/src/apps/a11y/a11y-issue-groups.js +27 -0
- package/src/apps/a11y/audit-cache.d.ts +6 -0
- package/src/apps/a11y/audit-cache.js +16 -0
- package/src/apps/a11y/dom-path.d.ts +10 -0
- package/src/apps/a11y/dom-path.js +32 -0
- package/src/apps/a11y/run-a11y-checks.d.ts +30 -0
- package/src/apps/a11y/run-a11y-checks.js +286 -0
- package/src/apps/a11y-panel.d.ts +29 -0
- package/src/apps/a11y-panel.js +163 -0
- package/src/apps/deps/load-deps-insights.d.ts +19 -0
- package/src/apps/deps/load-deps-insights.js +76 -0
- package/src/apps/deps-panel.d.ts +24 -0
- package/src/apps/deps-panel.js +100 -0
- package/src/apps/islands-panel.d.ts +26 -0
- package/src/apps/islands-panel.js +126 -0
- package/src/apps/navigation-panel.d.ts +25 -0
- package/src/apps/navigation-panel.js +95 -0
- package/src/apps/settings-panel.d.ts +17 -0
- package/src/apps/settings-panel.js +58 -0
- package/src/bootstrap.d.ts +1 -0
- package/src/bootstrap.js +6 -0
- package/src/config.d.ts +14 -0
- package/src/config.js +10 -0
- package/src/islands/island-discovery.d.ts +5 -0
- package/src/islands/island-discovery.js +99 -0
- package/src/islands/island-record-builder.d.ts +21 -0
- package/src/islands/island-record-builder.js +100 -0
- package/src/islands/read-island-records.d.ts +11 -0
- package/src/islands/read-island-records.js +43 -0
- package/src/runtime/constants.d.ts +20 -0
- package/src/runtime/constants.js +20 -0
- package/src/runtime/highlight-element.d.ts +3 -0
- package/src/runtime/highlight-element.js +46 -0
- package/src/runtime/navigation-telemetry.d.ts +51 -0
- package/src/runtime/navigation-telemetry.js +259 -0
- package/src/runtime/preferences.d.ts +9 -0
- package/src/runtime/preferences.js +32 -0
- package/src/shell/badges.d.ts +2 -0
- package/src/shell/badges.js +9 -0
- package/src/shell/brand-logo.d.ts +4 -0
- package/src/shell/brand-logo.js +4 -0
- package/src/shell/eco-dev-toolbar.d.ts +67 -0
- package/src/shell/eco-dev-toolbar.js +356 -0
- package/src/shell/ensure-dev-toolbar-styles.d.ts +7 -0
- package/src/shell/ensure-dev-toolbar-styles.js +18 -0
- package/src/shell/icons.d.ts +8 -0
- package/src/shell/icons.js +29 -0
- package/src/shell/legacy-app-host.d.ts +23 -0
- package/src/shell/legacy-app-host.js +36 -0
- package/src/shell/motion.d.ts +6 -0
- package/src/shell/motion.js +82 -0
- package/src/shell/navigation-loading.d.ts +14 -0
- package/src/shell/navigation-loading.js +39 -0
- package/src/shell/panel-slot-visibility.d.ts +10 -0
- package/src/shell/panel-slot-visibility.js +25 -0
- package/src/shell/stealth-controller.d.ts +27 -0
- package/src/shell/stealth-controller.js +83 -0
- package/src/shell/styles/base.d.ts +1 -0
- package/src/shell/styles/base.js +65 -0
- package/src/shell/styles/content.d.ts +1 -0
- package/src/shell/styles/content.js +209 -0
- package/src/shell/styles/dock.d.ts +1 -0
- package/src/shell/styles/dock.js +207 -0
- package/src/shell/styles/index.d.ts +1 -0
- package/src/shell/styles/index.js +12 -0
- package/src/shell/styles/panel.d.ts +1 -0
- package/src/shell/styles/panel.js +121 -0
- package/src/shell/styles/settings.d.ts +1 -0
- package/src/shell/styles/settings.js +206 -0
- package/src/shell/styles.d.ts +1 -0
- package/src/shell/styles.js +1 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DevToolbarPlacement } from '../runtime/preferences.js';
|
|
2
|
+
export type StealthPhase = 'hidden' | 'dwell' | 'fade' | 'visible';
|
|
3
|
+
type StealthControllerOptions = {
|
|
4
|
+
onPhaseChange: (phase: StealthPhase) => void;
|
|
5
|
+
isPanelOpen: () => boolean;
|
|
6
|
+
isEnabled: () => boolean;
|
|
7
|
+
getShellElement: () => HTMLElement | null;
|
|
8
|
+
getPlacement: () => DevToolbarPlacement;
|
|
9
|
+
};
|
|
10
|
+
export declare class DevToolbarStealthController {
|
|
11
|
+
private readonly options;
|
|
12
|
+
phase: StealthPhase;
|
|
13
|
+
private dwellTimer;
|
|
14
|
+
private fadeTimer;
|
|
15
|
+
constructor(options: StealthControllerOptions);
|
|
16
|
+
setPhase(phase: StealthPhase): void;
|
|
17
|
+
/**
|
|
18
|
+
* Shows the dock immediately and plays the slide-in motion when leaving stealth `hidden`.
|
|
19
|
+
*
|
|
20
|
+
* @remarks Sets `data-motion="active"` before the phase change so CSS transitions stay off while
|
|
21
|
+
* {@link runStealthRevealMotion} takes over. Motion is deferred via {@link afterPaint}.
|
|
22
|
+
*/
|
|
23
|
+
reveal(): void;
|
|
24
|
+
schedule(): void;
|
|
25
|
+
clearTimers(): void;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { DEV_TOOLBAR_STEALTH_DWELL_MS, DEV_TOOLBAR_STEALTH_FADE_MS } from '../runtime/constants.js';
|
|
2
|
+
import { runStealthRevealMotion } from './motion.js';
|
|
3
|
+
/**
|
|
4
|
+
* Runs `callback` after Radiant has flushed DOM updates and the browser has painted layout.
|
|
5
|
+
*
|
|
6
|
+
* @remarks Uses a microtask plus two animation frames so WAAPI can start from the stealth peek
|
|
7
|
+
* transform without fighting the shell's CSS transition or reading stale computed styles.
|
|
8
|
+
*/
|
|
9
|
+
function afterPaint(callback) {
|
|
10
|
+
queueMicrotask(() => {
|
|
11
|
+
requestAnimationFrame(() => {
|
|
12
|
+
requestAnimationFrame(callback);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export class DevToolbarStealthController {
|
|
17
|
+
options;
|
|
18
|
+
phase = 'visible';
|
|
19
|
+
dwellTimer;
|
|
20
|
+
fadeTimer;
|
|
21
|
+
constructor(options) {
|
|
22
|
+
this.options = options;
|
|
23
|
+
}
|
|
24
|
+
setPhase(phase) {
|
|
25
|
+
this.phase = phase;
|
|
26
|
+
this.options.onPhaseChange(phase);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Shows the dock immediately and plays the slide-in motion when leaving stealth `hidden`.
|
|
30
|
+
*
|
|
31
|
+
* @remarks Sets `data-motion="active"` before the phase change so CSS transitions stay off while
|
|
32
|
+
* {@link runStealthRevealMotion} takes over. Motion is deferred via {@link afterPaint}.
|
|
33
|
+
*/
|
|
34
|
+
reveal() {
|
|
35
|
+
const shell = this.options.getShellElement();
|
|
36
|
+
const wasHidden = this.options.isEnabled() && this.phase === 'hidden';
|
|
37
|
+
if (wasHidden && shell) {
|
|
38
|
+
shell.dataset.motion = 'active';
|
|
39
|
+
}
|
|
40
|
+
this.clearTimers();
|
|
41
|
+
this.setPhase('visible');
|
|
42
|
+
if (!wasHidden || !shell) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
afterPaint(() => {
|
|
46
|
+
const animation = runStealthRevealMotion(shell, this.options.getPlacement());
|
|
47
|
+
if (!animation) {
|
|
48
|
+
delete shell.dataset.motion;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
schedule() {
|
|
53
|
+
if (!this.options.isEnabled()) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
this.clearTimers();
|
|
57
|
+
this.setPhase('dwell');
|
|
58
|
+
this.dwellTimer = setTimeout(() => {
|
|
59
|
+
this.dwellTimer = undefined;
|
|
60
|
+
if (this.options.isPanelOpen() || !this.options.isEnabled()) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this.setPhase('fade');
|
|
64
|
+
this.fadeTimer = setTimeout(() => {
|
|
65
|
+
this.fadeTimer = undefined;
|
|
66
|
+
if (this.options.isPanelOpen() || !this.options.isEnabled()) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
this.setPhase('hidden');
|
|
70
|
+
}, DEV_TOOLBAR_STEALTH_FADE_MS);
|
|
71
|
+
}, DEV_TOOLBAR_STEALTH_DWELL_MS);
|
|
72
|
+
}
|
|
73
|
+
clearTimers() {
|
|
74
|
+
if (this.dwellTimer !== undefined) {
|
|
75
|
+
clearTimeout(this.dwellTimer);
|
|
76
|
+
this.dwellTimer = undefined;
|
|
77
|
+
}
|
|
78
|
+
if (this.fadeTimer !== undefined) {
|
|
79
|
+
clearTimeout(this.fadeTimer);
|
|
80
|
+
this.fadeTimer = undefined;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEV_TOOLBAR_BASE_STYLES = "\neco-dev-toolbar {\n\t--eco-dev-toolbar-bg: #0f1419;\n\t--eco-dev-toolbar-bg-elevated: #151b22;\n\t--eco-dev-toolbar-fg: #f3f4f6;\n\t--eco-dev-toolbar-muted: #9ca3af;\n\t--eco-dev-toolbar-accent: #8b7cff;\n\t--eco-dev-toolbar-accent-soft: rgba(139, 124, 255, 0.16);\n\t--eco-dev-toolbar-warning: #f59e0b;\n\t--eco-dev-toolbar-error: #ef4444;\n\t--eco-dev-toolbar-panel-width: min(28rem, calc(100vw - 1.5rem));\n\t--eco-dev-toolbar-dock-size: 2.75rem;\n\t--eco-dev-toolbar-edge-gap: 0.75rem;\n\t--eco-dev-toolbar-panel-gap: 0.55rem;\n\t--eco-dev-toolbar-stealth-peek: 0.12rem;\n\t--eco-dev-toolbar-radius: 0.65rem;\n\t--eco-dev-toolbar-ease: cubic-bezier(0.22, 1, 0.36, 1);\n\tposition: fixed;\n\tz-index: 2147483646;\n\tisolation: isolate;\n\tfont: 12px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif;\n\tcolor: var(--eco-dev-toolbar-fg);\n\tpointer-events: none;\n}\n\neco-dev-toolbar[data-placement='bottom'] {\n\tleft: 0;\n\tright: 0;\n\ttop: auto;\n\tbottom: 0.75rem;\n\tdisplay: flex;\n\tjustify-content: center;\n\ttransform: none;\n}\n\neco-dev-toolbar[data-placement='top'] {\n\tleft: 0;\n\tright: 0;\n\tbottom: auto;\n\ttop: 0.75rem;\n\tdisplay: flex;\n\tjustify-content: center;\n\ttransform: none;\n}\n\neco-dev-toolbar[data-placement='left'] {\n\tleft: 0.75rem;\n\tright: auto;\n\ttop: 0;\n\tbottom: 0;\n\tdisplay: flex;\n\talign-items: center;\n\ttransform: none;\n}\n\neco-dev-toolbar[data-placement='right'] {\n\tright: 0.75rem;\n\tleft: auto;\n\ttop: 0;\n\tbottom: 0;\n\tdisplay: flex;\n\talign-items: center;\n\ttransform: none;\n}\n";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export const DEV_TOOLBAR_BASE_STYLES = `
|
|
2
|
+
eco-dev-toolbar {
|
|
3
|
+
--eco-dev-toolbar-bg: #0f1419;
|
|
4
|
+
--eco-dev-toolbar-bg-elevated: #151b22;
|
|
5
|
+
--eco-dev-toolbar-fg: #f3f4f6;
|
|
6
|
+
--eco-dev-toolbar-muted: #9ca3af;
|
|
7
|
+
--eco-dev-toolbar-accent: #8b7cff;
|
|
8
|
+
--eco-dev-toolbar-accent-soft: rgba(139, 124, 255, 0.16);
|
|
9
|
+
--eco-dev-toolbar-warning: #f59e0b;
|
|
10
|
+
--eco-dev-toolbar-error: #ef4444;
|
|
11
|
+
--eco-dev-toolbar-panel-width: min(28rem, calc(100vw - 1.5rem));
|
|
12
|
+
--eco-dev-toolbar-dock-size: 2.75rem;
|
|
13
|
+
--eco-dev-toolbar-edge-gap: 0.75rem;
|
|
14
|
+
--eco-dev-toolbar-panel-gap: 0.55rem;
|
|
15
|
+
--eco-dev-toolbar-stealth-peek: 0.12rem;
|
|
16
|
+
--eco-dev-toolbar-radius: 0.65rem;
|
|
17
|
+
--eco-dev-toolbar-ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
18
|
+
position: fixed;
|
|
19
|
+
z-index: 2147483646;
|
|
20
|
+
isolation: isolate;
|
|
21
|
+
font: 12px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
22
|
+
color: var(--eco-dev-toolbar-fg);
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
eco-dev-toolbar[data-placement='bottom'] {
|
|
27
|
+
left: 0;
|
|
28
|
+
right: 0;
|
|
29
|
+
top: auto;
|
|
30
|
+
bottom: 0.75rem;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
transform: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
eco-dev-toolbar[data-placement='top'] {
|
|
37
|
+
left: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
bottom: auto;
|
|
40
|
+
top: 0.75rem;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
transform: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
eco-dev-toolbar[data-placement='left'] {
|
|
47
|
+
left: 0.75rem;
|
|
48
|
+
right: auto;
|
|
49
|
+
top: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
transform: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
eco-dev-toolbar[data-placement='right'] {
|
|
57
|
+
right: 0.75rem;
|
|
58
|
+
left: auto;
|
|
59
|
+
top: 0;
|
|
60
|
+
bottom: 0;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
transform: none;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEV_TOOLBAR_CONTENT_STYLES = "\n.eco-dev-toolbar__panel {\n\tpadding: 0.95rem 1rem 1.05rem;\n\tdisplay: grid;\n\tgap: 1rem;\n}\n\n.eco-dev-toolbar__panel h2 {\n\tmargin: 0 0 0.5rem;\n\tfont-size: 0.92rem;\n\tfont-weight: 600;\n\tletter-spacing: 0.01em;\n}\n\n.eco-dev-toolbar__muted {\n\tcolor: var(--eco-dev-toolbar-muted);\n\tmargin: 0;\n}\n\n.eco-dev-toolbar__docs-link {\n\tcolor: var(--eco-dev-toolbar-accent);\n\ttext-decoration: none;\n}\n\n.eco-dev-toolbar__docs-link:hover {\n\ttext-decoration: underline;\n}\n\n.eco-dev-toolbar__warning {\n\tcolor: var(--eco-dev-toolbar-warning);\n\tmargin-top: 0.25rem;\n}\n\n.eco-dev-toolbar__kv {\n\tdisplay: grid;\n\tgap: 0.45rem;\n\tmargin: 0;\n}\n\n.eco-dev-toolbar__kv > div {\n\tdisplay: grid;\n\tgrid-template-columns: 6rem 1fr;\n\tgap: 0.5rem;\n}\n\n.eco-dev-toolbar__kv dt {\n\tmargin: 0;\n\tcolor: var(--eco-dev-toolbar-muted);\n}\n\n.eco-dev-toolbar__kv dd {\n\tmargin: 0;\n\tword-break: break-word;\n}\n\n.eco-dev-toolbar__mono {\n\tfont-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n\tfont-size: 0.72rem;\n\tword-break: break-all;\n}\n\n.eco-dev-toolbar__table-wrap {\n\toverflow: auto;\n\tborder: 1px solid rgba(255, 255, 255, 0.08);\n\tborder-radius: 0.55rem;\n}\n\n.eco-dev-toolbar__table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n\tfont-size: 0.72rem;\n}\n\n.eco-dev-toolbar__table th,\n.eco-dev-toolbar__table td {\n\tpadding: 0.45rem 0.55rem;\n\ttext-align: left;\n\tborder-bottom: 1px solid rgba(255, 255, 255, 0.06);\n\tvertical-align: top;\n}\n\n.eco-dev-toolbar__table th {\n\tcolor: var(--eco-dev-toolbar-muted);\n\tfont-weight: 600;\n}\n\n.eco-dev-toolbar__table tbody tr:last-child td {\n\tborder-bottom: 0;\n}\n\n.eco-dev-toolbar__list {\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tdisplay: grid;\n\tgap: 0.65rem;\n}\n\n.eco-dev-toolbar__link {\n\tborder: 0;\n\tbackground: transparent;\n\tcolor: inherit;\n\tpadding: 0;\n\ttext-align: left;\n\tcursor: pointer;\n}\n\n.eco-dev-toolbar__list-entry {\n\tdisplay: grid;\n\tgap: 0.45rem;\n}\n\n.eco-dev-toolbar__issue-pagination {\n\tpadding: 0 0.15rem 0.1rem;\n}\n\n.eco-dev-toolbar__list-item {\n\tdisplay: grid;\n\tgap: 0.2rem;\n\twidth: 100%;\n\tborder: 1px solid rgba(255, 255, 255, 0.08);\n\tborder-radius: 0.5rem;\n\tbackground: color-mix(in srgb, var(--eco-dev-toolbar-bg) 92%, transparent);\n\tcolor: inherit;\n\tpadding: 0.55rem 0.65rem;\n\ttext-align: left;\n\tcursor: pointer;\n\ttransition: border-color 160ms var(--eco-dev-toolbar-ease);\n}\n\n.eco-dev-toolbar__dom-highlight[data-eco-dev-toolbar-highlight='a11y'] {\n\toutline: 2px solid #ff5c7a !important;\n\toutline-offset: 2px;\n}\n\n.eco-dev-toolbar__dom-highlight[data-eco-dev-toolbar-highlight='island'] {\n\toutline: 2px solid #7c5cff !important;\n\toutline-offset: 2px;\n}\n\n.eco-dev-toolbar__list-item:hover,\n.eco-dev-toolbar__list-item[data-highlighted='true'] {\n\tborder-color: rgba(139, 124, 255, 0.55);\n}\n\n.eco-dev-toolbar__pagination {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: 0.75rem;\n}\n\n.eco-dev-toolbar__pagination-copy {\n\tmargin: 0;\n\tfont-size: 0.72rem;\n\tcolor: var(--eco-dev-toolbar-muted);\n}\n\n.eco-dev-toolbar__pagination-actions {\n\tdisplay: inline-flex;\n\tgap: 0.35rem;\n}\n\n.eco-dev-toolbar__pagination-button {\n\tborder: 1px solid rgba(255, 255, 255, 0.12);\n\tborder-radius: 0.45rem;\n\tbackground: color-mix(in srgb, var(--eco-dev-toolbar-bg) 92%, transparent);\n\tcolor: var(--eco-dev-toolbar-fg);\n\tfont: inherit;\n\tfont-size: 0.72rem;\n\tpadding: 0.28rem 0.55rem;\n\tcursor: pointer;\n}\n\n.eco-dev-toolbar__pagination-button:disabled {\n\topacity: 0.45;\n\tcursor: not-allowed;\n}\n\n.eco-dev-toolbar__status-pill {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tborder-radius: 999px;\n\tpadding: 0.1rem 0.45rem;\n\tfont-size: 0.68rem;\n\ttext-transform: uppercase;\n\tletter-spacing: 0.04em;\n}\n\n.eco-dev-toolbar__status-pill[data-status='aborted'] {\n\tbackground: rgba(245, 158, 11, 0.16);\n\tcolor: var(--eco-dev-toolbar-warning);\n}\n\n.eco-dev-toolbar__list-item strong {\n\tfont-size: 0.82rem;\n}\n\n.eco-dev-toolbar__list-item .eco-dev-toolbar__muted,\n.eco-dev-toolbar__list-item .eco-dev-toolbar__mono {\n\tdisplay: block;\n}\n\n.eco-dev-toolbar__field {\n\tdisplay: grid;\n\tgap: 0.35rem;\n}\n\n";
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
export const DEV_TOOLBAR_CONTENT_STYLES = `
|
|
2
|
+
.eco-dev-toolbar__panel {
|
|
3
|
+
padding: 0.95rem 1rem 1.05rem;
|
|
4
|
+
display: grid;
|
|
5
|
+
gap: 1rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.eco-dev-toolbar__panel h2 {
|
|
9
|
+
margin: 0 0 0.5rem;
|
|
10
|
+
font-size: 0.92rem;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
letter-spacing: 0.01em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.eco-dev-toolbar__muted {
|
|
16
|
+
color: var(--eco-dev-toolbar-muted);
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.eco-dev-toolbar__docs-link {
|
|
21
|
+
color: var(--eco-dev-toolbar-accent);
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.eco-dev-toolbar__docs-link:hover {
|
|
26
|
+
text-decoration: underline;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.eco-dev-toolbar__warning {
|
|
30
|
+
color: var(--eco-dev-toolbar-warning);
|
|
31
|
+
margin-top: 0.25rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.eco-dev-toolbar__kv {
|
|
35
|
+
display: grid;
|
|
36
|
+
gap: 0.45rem;
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.eco-dev-toolbar__kv > div {
|
|
41
|
+
display: grid;
|
|
42
|
+
grid-template-columns: 6rem 1fr;
|
|
43
|
+
gap: 0.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.eco-dev-toolbar__kv dt {
|
|
47
|
+
margin: 0;
|
|
48
|
+
color: var(--eco-dev-toolbar-muted);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.eco-dev-toolbar__kv dd {
|
|
52
|
+
margin: 0;
|
|
53
|
+
word-break: break-word;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.eco-dev-toolbar__mono {
|
|
57
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
58
|
+
font-size: 0.72rem;
|
|
59
|
+
word-break: break-all;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.eco-dev-toolbar__table-wrap {
|
|
63
|
+
overflow: auto;
|
|
64
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
65
|
+
border-radius: 0.55rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.eco-dev-toolbar__table {
|
|
69
|
+
width: 100%;
|
|
70
|
+
border-collapse: collapse;
|
|
71
|
+
font-size: 0.72rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.eco-dev-toolbar__table th,
|
|
75
|
+
.eco-dev-toolbar__table td {
|
|
76
|
+
padding: 0.45rem 0.55rem;
|
|
77
|
+
text-align: left;
|
|
78
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
79
|
+
vertical-align: top;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.eco-dev-toolbar__table th {
|
|
83
|
+
color: var(--eco-dev-toolbar-muted);
|
|
84
|
+
font-weight: 600;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.eco-dev-toolbar__table tbody tr:last-child td {
|
|
88
|
+
border-bottom: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.eco-dev-toolbar__list {
|
|
92
|
+
list-style: none;
|
|
93
|
+
padding: 0;
|
|
94
|
+
margin: 0;
|
|
95
|
+
display: grid;
|
|
96
|
+
gap: 0.65rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.eco-dev-toolbar__link {
|
|
100
|
+
border: 0;
|
|
101
|
+
background: transparent;
|
|
102
|
+
color: inherit;
|
|
103
|
+
padding: 0;
|
|
104
|
+
text-align: left;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.eco-dev-toolbar__list-entry {
|
|
109
|
+
display: grid;
|
|
110
|
+
gap: 0.45rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.eco-dev-toolbar__issue-pagination {
|
|
114
|
+
padding: 0 0.15rem 0.1rem;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.eco-dev-toolbar__list-item {
|
|
118
|
+
display: grid;
|
|
119
|
+
gap: 0.2rem;
|
|
120
|
+
width: 100%;
|
|
121
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
122
|
+
border-radius: 0.5rem;
|
|
123
|
+
background: color-mix(in srgb, var(--eco-dev-toolbar-bg) 92%, transparent);
|
|
124
|
+
color: inherit;
|
|
125
|
+
padding: 0.55rem 0.65rem;
|
|
126
|
+
text-align: left;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
transition: border-color 160ms var(--eco-dev-toolbar-ease);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.eco-dev-toolbar__dom-highlight[data-eco-dev-toolbar-highlight='a11y'] {
|
|
132
|
+
outline: 2px solid #ff5c7a !important;
|
|
133
|
+
outline-offset: 2px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.eco-dev-toolbar__dom-highlight[data-eco-dev-toolbar-highlight='island'] {
|
|
137
|
+
outline: 2px solid #7c5cff !important;
|
|
138
|
+
outline-offset: 2px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.eco-dev-toolbar__list-item:hover,
|
|
142
|
+
.eco-dev-toolbar__list-item[data-highlighted='true'] {
|
|
143
|
+
border-color: rgba(139, 124, 255, 0.55);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.eco-dev-toolbar__pagination {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
gap: 0.75rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.eco-dev-toolbar__pagination-copy {
|
|
154
|
+
margin: 0;
|
|
155
|
+
font-size: 0.72rem;
|
|
156
|
+
color: var(--eco-dev-toolbar-muted);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.eco-dev-toolbar__pagination-actions {
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
gap: 0.35rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.eco-dev-toolbar__pagination-button {
|
|
165
|
+
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
166
|
+
border-radius: 0.45rem;
|
|
167
|
+
background: color-mix(in srgb, var(--eco-dev-toolbar-bg) 92%, transparent);
|
|
168
|
+
color: var(--eco-dev-toolbar-fg);
|
|
169
|
+
font: inherit;
|
|
170
|
+
font-size: 0.72rem;
|
|
171
|
+
padding: 0.28rem 0.55rem;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.eco-dev-toolbar__pagination-button:disabled {
|
|
176
|
+
opacity: 0.45;
|
|
177
|
+
cursor: not-allowed;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.eco-dev-toolbar__status-pill {
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
border-radius: 999px;
|
|
184
|
+
padding: 0.1rem 0.45rem;
|
|
185
|
+
font-size: 0.68rem;
|
|
186
|
+
text-transform: uppercase;
|
|
187
|
+
letter-spacing: 0.04em;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.eco-dev-toolbar__status-pill[data-status='aborted'] {
|
|
191
|
+
background: rgba(245, 158, 11, 0.16);
|
|
192
|
+
color: var(--eco-dev-toolbar-warning);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.eco-dev-toolbar__list-item strong {
|
|
196
|
+
font-size: 0.82rem;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.eco-dev-toolbar__list-item .eco-dev-toolbar__muted,
|
|
200
|
+
.eco-dev-toolbar__list-item .eco-dev-toolbar__mono {
|
|
201
|
+
display: block;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.eco-dev-toolbar__field {
|
|
205
|
+
display: grid;
|
|
206
|
+
gap: 0.35rem;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEV_TOOLBAR_DOCK_STYLES = "\n.eco-dev-toolbar__shell {\n\tposition: relative;\n\tz-index: 2;\n\ttransition:\n\t\ttransform 320ms var(--eco-dev-toolbar-ease),\n\t\topacity 320ms var(--eco-dev-toolbar-ease);\n\ttransform: none;\n\topacity: 1;\n\twill-change: transform, opacity;\n\tpointer-events: none;\n}\n\n.eco-dev-toolbar__shell .eco-dev-toolbar__dock {\n\tpointer-events: auto;\n}\n\n.eco-dev-toolbar__shell[data-motion='active'] {\n\ttransition: none !important;\n}\n\n.eco-dev-toolbar__shell[data-stealth-phase='dwell']:not([data-open='true']),\n.eco-dev-toolbar__shell[data-stealth-phase='fade']:not([data-open='true']) {\n\ttransform: none;\n\topacity: 1;\n}\n\n.eco-dev-toolbar__shell[data-stealth-phase='fade']:not([data-open='true']) .eco-dev-toolbar__dock {\n\topacity: 0.38;\n\ttransition: opacity 4s linear;\n}\n\n.eco-dev-toolbar__shell[data-stealth-phase='dwell']:not([data-open='true']) .eco-dev-toolbar__dock {\n\topacity: 1;\n}\n\n.eco-dev-toolbar__shell[data-placement='bottom'][data-stealth='true']:not([data-open='true']) {\n\ttransform: translateY(calc(100% - var(--eco-dev-toolbar-stealth-peek)));\n}\n\n.eco-dev-toolbar__shell[data-placement='top'][data-stealth='true']:not([data-open='true']) {\n\ttransform: translateY(calc(-100% + var(--eco-dev-toolbar-stealth-peek)));\n}\n\n.eco-dev-toolbar__shell[data-placement='left'][data-stealth='true']:not([data-open='true']) {\n\ttransform: translateX(calc(-100% + var(--eco-dev-toolbar-stealth-peek)));\n}\n\n.eco-dev-toolbar__shell[data-placement='right'][data-stealth='true']:not([data-open='true']) {\n\ttransform: translateX(calc(100% - var(--eco-dev-toolbar-stealth-peek)));\n}\n\n.eco-dev-toolbar__shell[data-stealth='true']:not([data-open='true'])::before {\n\tcontent: '';\n\tposition: fixed;\n\tpointer-events: auto;\n}\n\n.eco-dev-toolbar__shell[data-placement='bottom'][data-stealth='true']:not([data-open='true'])::before,\n.eco-dev-toolbar__shell[data-placement='top'][data-stealth='true']:not([data-open='true'])::before {\n\tleft: 0;\n\tright: 0;\n\theight: 3.5rem;\n}\n\n.eco-dev-toolbar__shell[data-placement='bottom'][data-stealth='true']:not([data-open='true'])::before {\n\tbottom: 0;\n}\n\n.eco-dev-toolbar__shell[data-placement='top'][data-stealth='true']:not([data-open='true'])::before {\n\ttop: 0;\n}\n\n.eco-dev-toolbar__shell[data-placement='left'][data-stealth='true']:not([data-open='true'])::before,\n.eco-dev-toolbar__shell[data-placement='right'][data-stealth='true']:not([data-open='true'])::before {\n\ttop: 0;\n\tbottom: 0;\n\twidth: 3.5rem;\n\theight: auto;\n}\n\n.eco-dev-toolbar__shell[data-placement='left'][data-stealth='true']:not([data-open='true'])::before {\n\tleft: 0;\n}\n\n.eco-dev-toolbar__shell[data-placement='right'][data-stealth='true']:not([data-open='true'])::before {\n\tright: 0;\n}\n\n.eco-dev-toolbar__shell[data-open='true'] {\n\ttransform: none;\n}\n\n.eco-dev-toolbar__dock {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tgap: 0.15rem;\n\tpadding: 0.28rem;\n\tborder-radius: var(--eco-dev-toolbar-radius);\n\tbackground: color-mix(in srgb, var(--eco-dev-toolbar-bg) 88%, transparent);\n\tbackdrop-filter: blur(14px) saturate(140%);\n\t-webkit-backdrop-filter: blur(14px) saturate(140%);\n\tborder: 1px solid rgba(255, 255, 255, 0.1);\n\tbox-shadow:\n\t\t0 0 0 1px rgba(0, 0, 0, 0.28),\n\t\t0 10px 30px rgba(0, 0, 0, 0.38),\n\t\t0 2px 8px rgba(0, 0, 0, 0.22);\n\topacity: 0.5;\n\ttransition:\n\t\topacity 220ms var(--eco-dev-toolbar-ease),\n\t\tbox-shadow 220ms var(--eco-dev-toolbar-ease),\n\t\ttransform 220ms var(--eco-dev-toolbar-ease);\n\tpointer-events: auto;\n}\n\n.eco-dev-toolbar__shell[data-placement='left'] .eco-dev-toolbar__dock,\n.eco-dev-toolbar__shell[data-placement='right'] .eco-dev-toolbar__dock {\n\tflex-direction: column;\n}\n\n.eco-dev-toolbar__shell[data-hover='true'] .eco-dev-toolbar__dock,\n.eco-dev-toolbar__shell[data-open='true'] .eco-dev-toolbar__dock {\n\topacity: 1;\n\tbox-shadow:\n\t\t0 0 0 1px rgba(0, 0, 0, 0.32),\n\t\t0 14px 36px rgba(0, 0, 0, 0.42),\n\t\t0 4px 12px rgba(0, 0, 0, 0.24);\n}\n\n.eco-dev-toolbar__button {\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 1.85rem;\n\theight: 1.85rem;\n\tborder: 0;\n\tborder-radius: 0.45rem;\n\tbackground: transparent;\n\tcolor: rgba(243, 244, 246, 0.88);\n\tcursor: pointer;\n\ttransition:\n\t\tbackground-color 160ms var(--eco-dev-toolbar-ease),\n\t\tcolor 160ms var(--eco-dev-toolbar-ease),\n\t\ttransform 160ms var(--eco-dev-toolbar-ease);\n}\n\n.eco-dev-toolbar__button:hover {\n\tbackground: rgba(255, 255, 255, 0.07);\n\tcolor: var(--eco-dev-toolbar-fg);\n}\n\n.eco-dev-toolbar__button[aria-pressed='true'] {\n\tbackground: var(--eco-dev-toolbar-accent-soft);\n\tcolor: #ddd6fe;\n}\n\n.eco-dev-toolbar__button[data-loading='true'] {\n\tcolor: var(--eco-dev-toolbar-accent);\n}\n\n.eco-dev-toolbar__button svg {\n\tdisplay: block;\n\tflex-shrink: 0;\n}\n\n.eco-dev-toolbar__icon-text {\n\tfont-size: 0.78rem;\n\tfont-weight: 600;\n\tline-height: 1;\n}\n\n.eco-dev-toolbar__button[data-loading='true'] svg {\n\tanimation: eco-dev-toolbar-spin 0.75s linear infinite;\n}\n\n@keyframes eco-dev-toolbar-spin {\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n.eco-dev-toolbar__badge {\n\tposition: absolute;\n\ttop: 0.1rem;\n\tright: 0.1rem;\n\tmin-width: 0.9rem;\n\theight: 0.9rem;\n\tpadding: 0 0.15rem;\n\tborder-radius: 0.3rem;\n\tfont-size: 0.58rem;\n\tfont-weight: 700;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground: var(--eco-dev-toolbar-warning);\n\tcolor: #111827;\n\tbox-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);\n}\n\n.eco-dev-toolbar__badge[data-severity='error'] {\n\tbackground: var(--eco-dev-toolbar-error);\n\tcolor: #fff;\n}\n\n";
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
export const DEV_TOOLBAR_DOCK_STYLES = `
|
|
2
|
+
.eco-dev-toolbar__shell {
|
|
3
|
+
position: relative;
|
|
4
|
+
z-index: 2;
|
|
5
|
+
transition:
|
|
6
|
+
transform 320ms var(--eco-dev-toolbar-ease),
|
|
7
|
+
opacity 320ms var(--eco-dev-toolbar-ease);
|
|
8
|
+
transform: none;
|
|
9
|
+
opacity: 1;
|
|
10
|
+
will-change: transform, opacity;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.eco-dev-toolbar__shell .eco-dev-toolbar__dock {
|
|
15
|
+
pointer-events: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.eco-dev-toolbar__shell[data-motion='active'] {
|
|
19
|
+
transition: none !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.eco-dev-toolbar__shell[data-stealth-phase='dwell']:not([data-open='true']),
|
|
23
|
+
.eco-dev-toolbar__shell[data-stealth-phase='fade']:not([data-open='true']) {
|
|
24
|
+
transform: none;
|
|
25
|
+
opacity: 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.eco-dev-toolbar__shell[data-stealth-phase='fade']:not([data-open='true']) .eco-dev-toolbar__dock {
|
|
29
|
+
opacity: 0.38;
|
|
30
|
+
transition: opacity 4s linear;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.eco-dev-toolbar__shell[data-stealth-phase='dwell']:not([data-open='true']) .eco-dev-toolbar__dock {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.eco-dev-toolbar__shell[data-placement='bottom'][data-stealth='true']:not([data-open='true']) {
|
|
38
|
+
transform: translateY(calc(100% - var(--eco-dev-toolbar-stealth-peek)));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.eco-dev-toolbar__shell[data-placement='top'][data-stealth='true']:not([data-open='true']) {
|
|
42
|
+
transform: translateY(calc(-100% + var(--eco-dev-toolbar-stealth-peek)));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.eco-dev-toolbar__shell[data-placement='left'][data-stealth='true']:not([data-open='true']) {
|
|
46
|
+
transform: translateX(calc(-100% + var(--eco-dev-toolbar-stealth-peek)));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.eco-dev-toolbar__shell[data-placement='right'][data-stealth='true']:not([data-open='true']) {
|
|
50
|
+
transform: translateX(calc(100% - var(--eco-dev-toolbar-stealth-peek)));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.eco-dev-toolbar__shell[data-stealth='true']:not([data-open='true'])::before {
|
|
54
|
+
content: '';
|
|
55
|
+
position: fixed;
|
|
56
|
+
pointer-events: auto;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.eco-dev-toolbar__shell[data-placement='bottom'][data-stealth='true']:not([data-open='true'])::before,
|
|
60
|
+
.eco-dev-toolbar__shell[data-placement='top'][data-stealth='true']:not([data-open='true'])::before {
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
height: 3.5rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.eco-dev-toolbar__shell[data-placement='bottom'][data-stealth='true']:not([data-open='true'])::before {
|
|
67
|
+
bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.eco-dev-toolbar__shell[data-placement='top'][data-stealth='true']:not([data-open='true'])::before {
|
|
71
|
+
top: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.eco-dev-toolbar__shell[data-placement='left'][data-stealth='true']:not([data-open='true'])::before,
|
|
75
|
+
.eco-dev-toolbar__shell[data-placement='right'][data-stealth='true']:not([data-open='true'])::before {
|
|
76
|
+
top: 0;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
width: 3.5rem;
|
|
79
|
+
height: auto;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.eco-dev-toolbar__shell[data-placement='left'][data-stealth='true']:not([data-open='true'])::before {
|
|
83
|
+
left: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.eco-dev-toolbar__shell[data-placement='right'][data-stealth='true']:not([data-open='true'])::before {
|
|
87
|
+
right: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.eco-dev-toolbar__shell[data-open='true'] {
|
|
91
|
+
transform: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.eco-dev-toolbar__dock {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: 0.15rem;
|
|
99
|
+
padding: 0.28rem;
|
|
100
|
+
border-radius: var(--eco-dev-toolbar-radius);
|
|
101
|
+
background: color-mix(in srgb, var(--eco-dev-toolbar-bg) 88%, transparent);
|
|
102
|
+
backdrop-filter: blur(14px) saturate(140%);
|
|
103
|
+
-webkit-backdrop-filter: blur(14px) saturate(140%);
|
|
104
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
105
|
+
box-shadow:
|
|
106
|
+
0 0 0 1px rgba(0, 0, 0, 0.28),
|
|
107
|
+
0 10px 30px rgba(0, 0, 0, 0.38),
|
|
108
|
+
0 2px 8px rgba(0, 0, 0, 0.22);
|
|
109
|
+
opacity: 0.5;
|
|
110
|
+
transition:
|
|
111
|
+
opacity 220ms var(--eco-dev-toolbar-ease),
|
|
112
|
+
box-shadow 220ms var(--eco-dev-toolbar-ease),
|
|
113
|
+
transform 220ms var(--eco-dev-toolbar-ease);
|
|
114
|
+
pointer-events: auto;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.eco-dev-toolbar__shell[data-placement='left'] .eco-dev-toolbar__dock,
|
|
118
|
+
.eco-dev-toolbar__shell[data-placement='right'] .eco-dev-toolbar__dock {
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.eco-dev-toolbar__shell[data-hover='true'] .eco-dev-toolbar__dock,
|
|
123
|
+
.eco-dev-toolbar__shell[data-open='true'] .eco-dev-toolbar__dock {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
box-shadow:
|
|
126
|
+
0 0 0 1px rgba(0, 0, 0, 0.32),
|
|
127
|
+
0 14px 36px rgba(0, 0, 0, 0.42),
|
|
128
|
+
0 4px 12px rgba(0, 0, 0, 0.24);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.eco-dev-toolbar__button {
|
|
132
|
+
position: relative;
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
width: 1.85rem;
|
|
137
|
+
height: 1.85rem;
|
|
138
|
+
border: 0;
|
|
139
|
+
border-radius: 0.45rem;
|
|
140
|
+
background: transparent;
|
|
141
|
+
color: rgba(243, 244, 246, 0.88);
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
transition:
|
|
144
|
+
background-color 160ms var(--eco-dev-toolbar-ease),
|
|
145
|
+
color 160ms var(--eco-dev-toolbar-ease),
|
|
146
|
+
transform 160ms var(--eco-dev-toolbar-ease);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.eco-dev-toolbar__button:hover {
|
|
150
|
+
background: rgba(255, 255, 255, 0.07);
|
|
151
|
+
color: var(--eco-dev-toolbar-fg);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.eco-dev-toolbar__button[aria-pressed='true'] {
|
|
155
|
+
background: var(--eco-dev-toolbar-accent-soft);
|
|
156
|
+
color: #ddd6fe;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.eco-dev-toolbar__button[data-loading='true'] {
|
|
160
|
+
color: var(--eco-dev-toolbar-accent);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.eco-dev-toolbar__button svg {
|
|
164
|
+
display: block;
|
|
165
|
+
flex-shrink: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.eco-dev-toolbar__icon-text {
|
|
169
|
+
font-size: 0.78rem;
|
|
170
|
+
font-weight: 600;
|
|
171
|
+
line-height: 1;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.eco-dev-toolbar__button[data-loading='true'] svg {
|
|
175
|
+
animation: eco-dev-toolbar-spin 0.75s linear infinite;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@keyframes eco-dev-toolbar-spin {
|
|
179
|
+
to {
|
|
180
|
+
transform: rotate(360deg);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.eco-dev-toolbar__badge {
|
|
185
|
+
position: absolute;
|
|
186
|
+
top: 0.1rem;
|
|
187
|
+
right: 0.1rem;
|
|
188
|
+
min-width: 0.9rem;
|
|
189
|
+
height: 0.9rem;
|
|
190
|
+
padding: 0 0.15rem;
|
|
191
|
+
border-radius: 0.3rem;
|
|
192
|
+
font-size: 0.58rem;
|
|
193
|
+
font-weight: 700;
|
|
194
|
+
display: inline-flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
justify-content: center;
|
|
197
|
+
background: var(--eco-dev-toolbar-warning);
|
|
198
|
+
color: #111827;
|
|
199
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.eco-dev-toolbar__badge[data-severity='error'] {
|
|
203
|
+
background: var(--eco-dev-toolbar-error);
|
|
204
|
+
color: #fff;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEV_TOOLBAR_STYLES: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DEV_TOOLBAR_BASE_STYLES } from './base.js';
|
|
2
|
+
import { DEV_TOOLBAR_DOCK_STYLES } from './dock.js';
|
|
3
|
+
import { DEV_TOOLBAR_PANEL_STYLES } from './panel.js';
|
|
4
|
+
import { DEV_TOOLBAR_CONTENT_STYLES } from './content.js';
|
|
5
|
+
import { DEV_TOOLBAR_SETTINGS_STYLES } from './settings.js';
|
|
6
|
+
export const DEV_TOOLBAR_STYLES = [
|
|
7
|
+
DEV_TOOLBAR_BASE_STYLES,
|
|
8
|
+
DEV_TOOLBAR_DOCK_STYLES,
|
|
9
|
+
DEV_TOOLBAR_PANEL_STYLES,
|
|
10
|
+
DEV_TOOLBAR_CONTENT_STYLES,
|
|
11
|
+
DEV_TOOLBAR_SETTINGS_STYLES,
|
|
12
|
+
].join('\n');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEV_TOOLBAR_PANEL_STYLES = "\n.eco-dev-toolbar__panel-shell {\n\tposition: fixed;\n\tz-index: 1;\n\twidth: var(--eco-dev-toolbar-panel-width);\n\tmax-height: min(60vh, 28rem);\n\toverflow: auto;\n\tborder-radius: calc(var(--eco-dev-toolbar-radius) + 0.1rem);\n\tbackground: color-mix(in srgb, var(--eco-dev-toolbar-bg-elevated) 94%, transparent);\n\tbackdrop-filter: blur(16px) saturate(140%);\n\t-webkit-backdrop-filter: blur(16px) saturate(140%);\n\tborder: 1px solid rgba(255, 255, 255, 0.1);\n\tbox-shadow:\n\t\t0 0 0 1px rgba(0, 0, 0, 0.3),\n\t\t0 18px 48px rgba(0, 0, 0, 0.48),\n\t\t0 6px 16px rgba(0, 0, 0, 0.28);\n\tpointer-events: auto;\n\ttransition:\n\t\topacity 180ms var(--eco-dev-toolbar-ease),\n\t\tvisibility 180ms var(--eco-dev-toolbar-ease);\n}\n\neco-dev-toolbar:not([data-panel-open='true']) .eco-dev-toolbar__panel-shell {\n\tvisibility: hidden;\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.eco-dev-toolbar__panel-slot[hidden] {\n\tdisplay: none !important;\n}\n\neco-dev-toolbar[data-panel-open='true'] .eco-dev-toolbar__panel-shell {\n\tvisibility: visible;\n\topacity: 1;\n}\n\n.eco-dev-toolbar__hit-bridge {\n\tposition: fixed;\n\tz-index: 1;\n\tpointer-events: auto;\n}\n\neco-dev-toolbar[data-placement='bottom'] .eco-dev-toolbar__hit-bridge {\n\tleft: 50%;\n\tbottom: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size));\n\twidth: min(var(--eco-dev-toolbar-panel-width), calc(100vw - 1.5rem));\n\theight: var(--eco-dev-toolbar-panel-gap);\n\ttransform: translateX(-50%);\n}\n\neco-dev-toolbar[data-placement='top'] .eco-dev-toolbar__hit-bridge {\n\tleft: 50%;\n\ttop: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size));\n\twidth: min(var(--eco-dev-toolbar-panel-width), calc(100vw - 1.5rem));\n\theight: var(--eco-dev-toolbar-panel-gap);\n\ttransform: translateX(-50%);\n}\n\neco-dev-toolbar[data-placement='left'] .eco-dev-toolbar__hit-bridge {\n\ttop: 50%;\n\tleft: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size));\n\twidth: var(--eco-dev-toolbar-panel-gap);\n\theight: min(28rem, 60vh);\n\ttransform: translateY(-50%);\n}\n\neco-dev-toolbar[data-placement='right'] .eco-dev-toolbar__hit-bridge {\n\ttop: 50%;\n\tright: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size));\n\twidth: var(--eco-dev-toolbar-panel-gap);\n\theight: min(28rem, 60vh);\n\ttransform: translateY(-50%);\n}\n\n@media (max-width: 40rem) {\n\teco-dev-toolbar[data-placement='left'] .eco-dev-toolbar__hit-bridge,\n\teco-dev-toolbar[data-placement='right'] .eco-dev-toolbar__hit-bridge {\n\t\tdisplay: none;\n\t}\n}\n\neco-dev-toolbar[data-placement='bottom'] .eco-dev-toolbar__panel-shell {\n\tinset: auto auto calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size) + var(--eco-dev-toolbar-panel-gap)) 50%;\n\ttransform: translateX(-50%);\n}\n\neco-dev-toolbar[data-placement='top'] .eco-dev-toolbar__panel-shell {\n\tinset: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size) + var(--eco-dev-toolbar-panel-gap)) auto auto 50%;\n\ttransform: translateX(-50%);\n}\n\neco-dev-toolbar[data-placement='left'] .eco-dev-toolbar__panel-shell {\n\tinset: 50% auto auto calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size) + var(--eco-dev-toolbar-panel-gap));\n\twidth: min(\n\t\tvar(--eco-dev-toolbar-panel-width),\n\t\tcalc(100vw - var(--eco-dev-toolbar-edge-gap) - var(--eco-dev-toolbar-dock-size) - var(--eco-dev-toolbar-panel-gap) - 1rem)\n\t);\n\ttransform: translateY(-50%);\n}\n\neco-dev-toolbar[data-placement='right'] .eco-dev-toolbar__panel-shell {\n\tinset: 50% calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size) + var(--eco-dev-toolbar-panel-gap)) auto auto;\n\twidth: min(\n\t\tvar(--eco-dev-toolbar-panel-width),\n\t\tcalc(100vw - var(--eco-dev-toolbar-edge-gap) - var(--eco-dev-toolbar-dock-size) - var(--eco-dev-toolbar-panel-gap) - 1rem)\n\t);\n\ttransform: translateY(-50%);\n}\n\n@media (max-width: 40rem) {\n\teco-dev-toolbar[data-placement='left'] .eco-dev-toolbar__panel-shell,\n\teco-dev-toolbar[data-placement='right'] .eco-dev-toolbar__panel-shell {\n\t\tinset: 50% auto auto 50%;\n\t\twidth: min(28rem, calc(100vw - 1.5rem));\n\t\tmax-height: min(70dvh, 28rem);\n\t\ttransform: translate(-50%, -50%);\n\t}\n}\n\n";
|