@surfaces-ui/devtools 0.5.0 → 0.7.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/NOTICE CHANGED
@@ -2,3 +2,53 @@ Surfaces UI
2
2
  Copyright 2026 Josh Schoen
3
3
 
4
4
  This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ --------------------------------------------------------------------------------
7
+
8
+ @surfaces-ui/icons includes drawings from Lucide (https://lucide.dev), taken
9
+ from lucide-static 1.84.0. Other packages include some of them by depending on
10
+ it or by bundling it. They are used under this license:
11
+
12
+ ISC License
13
+
14
+ Copyright (c) 2026 Lucide Icons and Contributors
15
+
16
+ Permission to use, copy, modify, and/or distribute this software for any
17
+ purpose with or without fee is hereby granted, provided that the above
18
+ copyright notice and this permission notice appear in all copies.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
21
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
22
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
23
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
24
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
25
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
26
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
27
+
28
+ ---
29
+
30
+ The following Lucide icons are derived from the Feather project:
31
+
32
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
33
+
34
+ The MIT License (MIT) (for the icons listed above)
35
+
36
+ Copyright (c) 2013-present Cole Bemis
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining a copy
39
+ of this software and associated documentation files (the "Software"), to deal
40
+ in the Software without restriction, including without limitation the rights
41
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
+ copies of the Software, and to permit persons to whom the Software is
43
+ furnished to do so, subject to the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be included in all
46
+ copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
+ SOFTWARE.
package/dist/styles.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /** For the floating button and the dock: loaded with the widget. */
2
2
  export declare const SHELL_CSS = "\n.sf-devtools-button {\n position: fixed;\n right: var(--sf-space-3);\n bottom: var(--sf-space-3);\n z-index: 2147483000;\n display: inline-flex;\n align-items: center;\n gap: var(--sf-space-1);\n height: max(var(--sf-target-min), var(--sf-control-size));\n min-width: max(var(--sf-target-min), var(--sf-control-size));\n padding: 0 var(--sf-space-2);\n border: 1px solid var(--sf-glass-edge);\n border-radius: var(--sf-radius-full);\n background: var(--sf-glass-regular);\n -webkit-backdrop-filter: var(--sf-glass-filter);\n backdrop-filter: var(--sf-glass-filter);\n box-shadow: inset 0 1px 0 var(--sf-glass-highlight), var(--sf-glass-shadow);\n color: var(--sf-color-text);\n font: inherit;\n font-size: var(--sf-font-size-sm);\n font-weight: var(--sf-font-weight-medium);\n cursor: pointer;\n transition: transform var(--sf-press-time) var(--sf-press-ease);\n}\n.sf-devtools-button:active { transform: scale(var(--sf-press-scale)); }\n.sf-devtools-button:focus-visible,\n.sf-devtools-grip:focus-visible {\n outline: 2px solid var(--sf-color-focus);\n outline-offset: 2px;\n}\n.sf-devtools-button svg { width: 1.1em; height: 1.1em; }\n.sf-devtools-count {\n padding: 0 var(--sf-space-1);\n border-radius: var(--sf-radius-full);\n background: var(--sf-color-danger);\n color: var(--sf-color-bg);\n font-size: var(--sf-font-size-xs);\n font-weight: var(--sf-font-weight-semibold);\n font-variant-numeric: tabular-nums;\n}\n.sf-devtools-inline { position: relative; min-height: 4rem; }\n.sf-devtools-inline > .sf-devtools-button { position: absolute; }\n.sf-devtools-dock {\n position: fixed;\n z-index: 2147483000;\n display: flex;\n border: 1px solid var(--sf-glass-edge);\n background: var(--sf-color-bg-1, var(--sf-color-bg));\n color: var(--sf-color-text);\n box-shadow: var(--sf-glass-shadow);\n font-size: var(--sf-font-size-sm);\n animation: sf-fade var(--sf-duration) var(--sf-ease-out);\n}\n/* Focus is moved here when the tools open, so the next Tab is inside them; the frame itself is not a control. */\n.sf-devtools-dock:focus { outline: none; }\n.sf-devtools-dock[data-dock=\"bottom\"] { left: 0; right: 0; bottom: 0; flex-direction: column; }\n.sf-devtools-dock[data-dock=\"right\"] { top: 0; right: 0; bottom: 0; flex-direction: row; max-width: 100vw; }\n.sf-devtools-inline > .sf-devtools-dock { position: relative; inset: auto; flex-direction: column; margin-top: var(--sf-space-2); border-radius: var(--sf-radius); }\n.sf-devtools-grip {\n flex: none;\n border: 0;\n padding: 0;\n background: var(--sf-color-divider);\n touch-action: none;\n}\n.sf-devtools-dock[data-dock=\"bottom\"] > .sf-devtools-grip { height: var(--sf-space-1); cursor: ns-resize; }\n.sf-devtools-dock[data-dock=\"right\"] > .sf-devtools-grip { width: var(--sf-space-1); cursor: ew-resize; }\n.sf-devtools-grip:hover { background: var(--sf-color-accent); }\n.sf-devtools-host { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }\n.sf-devtools-wait { padding: var(--sf-space-3); color: var(--sf-color-muted); }\n/* Narrow screens: the dock is always along the bottom, full width. */\n@media (max-width: 40rem) {\n /* One edge only on a narrow screen, so no control to change it. */\n .sf-devtools-icon.sf-devtools-dockside { display: none; }\n .sf-devtools-dock[data-dock=\"right\"] { top: auto; left: 0; flex-direction: column; }\n .sf-devtools-dock[data-dock=\"right\"] > .sf-devtools-grip { width: auto; height: var(--sf-space-1); cursor: ns-resize; }\n}\n@media (forced-colors: active) {\n .sf-devtools-button, .sf-devtools-dock { border-color: CanvasText; }\n}\n/* While a person is picking a component on the page. */\n.sf-devtools-picking, .sf-devtools-picking * { cursor: crosshair !important; }\n.sf-devtools-picking .sf-devtools-dock *, .sf-devtools-picking .sf-devtools-button { cursor: revert !important; }\n/* Over the component picked in the panel, on the page. It never takes a press. */\n.sf-devtools-inspect {\n position: fixed;\n top: 0;\n left: 0;\n /* Under the tools' own drawer and button. */\n z-index: 2147482999;\n pointer-events: none;\n box-sizing: border-box;\n outline: 2px solid var(--sf-color-focus);\n outline-offset: 1px;\n border-radius: var(--sf-radius-sm);\n}\n.sf-devtools-inspect::before { content: \"\"; position: absolute; inset: 0; border-radius: inherit; background: var(--sf-color-accent); opacity: 0.14; }\n@media (forced-colors: active) {\n .sf-devtools-inspect { outline-color: Highlight; }\n .sf-devtools-inspect::before { display: none; }\n}\n";
3
3
  /** For the panel: loaded with it, only when the tools are opened. */
4
- export declare const PANEL_CSS = "\n.sf-devtools {\n flex: 1;\n min-height: 0;\n min-width: 0;\n /* A column, not grid rows: the note between the bar and the body is absent when it is empty, and the body must still take what is left. */\n display: flex;\n flex-direction: column;\n container-type: inline-size;\n container-name: sf-devtools;\n background: var(--sf-color-bg-1, var(--sf-color-bg));\n color: var(--sf-color-text);\n font-size: var(--sf-font-size-sm);\n}\n.sf-devtools-bar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--sf-space-2);\n padding: var(--sf-space-1) var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n}\n.sf-devtools-title { margin: 0; font-size: var(--sf-font-size-sm); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-scrub { flex: 1 1 16rem; display: flex; align-items: center; gap: var(--sf-space-1); min-width: 0; }\n.sf-devtools-scrub input[type=\"range\"] { flex: 1; min-width: 4rem; accent-color: var(--sf-color-accent); height: var(--sf-target-min); }\n.sf-devtools-step { min-width: 0; color: var(--sf-color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.sf-devtools-actions { display: flex; align-items: center; gap: var(--sf-space-1); margin-left: auto; }\n.sf-devtools-icon {\n display: inline-grid;\n place-items: center;\n width: max(var(--sf-target-min), var(--sf-control-size));\n height: max(var(--sf-target-min), var(--sf-control-size));\n padding: 0;\n border: 1px solid var(--sf-color-edge, transparent);\n border-radius: var(--sf-radius);\n background: var(--sf-color-fill-2);\n color: var(--sf-color-text);\n cursor: pointer;\n transition: background-color var(--sf-duration-fast) var(--sf-ease), transform var(--sf-press-time) var(--sf-press-ease);\n}\n.sf-devtools-icon:hover:not([aria-disabled=\"true\"]) { background: var(--sf-color-fill-1); }\n.sf-devtools-icon:active:not([aria-disabled=\"true\"]) { transform: scale(var(--sf-press-scale)); }\n.sf-devtools-icon[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); }\n.sf-devtools-icon[aria-disabled=\"true\"] { color: var(--sf-color-label-4, var(--sf-color-muted)); cursor: default; }\n.sf-devtools-icon[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); }\n.sf-devtools-icon:focus-visible, .sf-devtools-rows:focus-visible, .sf-devtools-tree:focus-visible, .sf-devtools-chip:focus-visible, .sf-devtools-detail:focus-visible, .sf-devtools-preview:focus-visible {\n outline: 2px solid var(--sf-color-focus);\n outline-offset: -2px;\n}\n.sf-devtools-icon svg { width: 1.15em; height: 1.15em; }\n.sf-devtools-note {\n margin: 0;\n padding: var(--sf-space-1) var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n background: var(--sf-color-accent-soft);\n color: var(--sf-color-text);\n}\n.sf-devtools-note:empty { display: none; }\n.sf-devtools-body { position: relative; flex: 1 1 0; min-height: 0; min-width: 0; overflow: auto; padding: var(--sf-space-2); }\n.sf-devtools-workspace { height: 100%; }\n.sf-devtools-pane { display: flex; flex-direction: column; gap: var(--sf-space-2); flex: 1 1 auto; min-height: 0; min-width: 0; }\n.sf-devtools-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sf-space-1); }\n.sf-devtools-chip {\n min-height: var(--sf-target-min);\n padding: 0 var(--sf-space-2);\n border: 1px solid var(--sf-color-edge, transparent);\n border-radius: var(--sf-radius-full);\n background: var(--sf-color-fill-3);\n color: var(--sf-color-muted);\n font: inherit;\n font-size: var(--sf-font-size-xs);\n cursor: pointer;\n transition: background-color var(--sf-duration-fast) var(--sf-ease);\n}\n.sf-devtools-chip[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-only { display: inline-flex; align-items: center; gap: var(--sf-space-1); align-self: flex-start; padding-inline-start: var(--sf-space-2); border-radius: var(--sf-radius-full); background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-only code { font-family: var(--sf-font-mono); font-weight: var(--sf-font-weight-regular); }\n.sf-devtools-causes { display: flex; flex-direction: column; gap: var(--sf-space-1); flex: none; }\n.sf-devtools-cause { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: start; gap: var(--sf-space-2); }\n.sf-devtools-cause small { color: var(--sf-color-muted); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); overflow-wrap: anywhere; }\n.sf-devtools-cause-mark { font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); color: var(--sf-color-muted); }\n.sf-devtools-cause[data-severity=\"error\"] .sf-devtools-cause-mark { color: var(--sf-color-danger); }\n.sf-devtools-cause[data-severity=\"warning\"] .sf-devtools-cause-mark { color: var(--sf-color-warning); }\n.sf-devtools-cause-by { margin: 0; color: var(--sf-color-muted); font-size: var(--sf-font-size-xs); }\n.sf-devtools-said { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }\ndiv.sf-devtools-said { display: flex; flex-direction: column; gap: var(--sf-space-2); white-space: normal; }\ndiv.sf-devtools-said > p { margin: 0; white-space: pre-wrap; }\ndiv.sf-devtools-said ul { margin: 0; padding-inline-start: var(--sf-space-4); display: flex; flex-direction: column; gap: var(--sf-space-1); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\ndiv.sf-devtools-said summary { padding-block: var(--sf-space-1); color: var(--sf-color-muted); cursor: pointer; }\ndiv.sf-devtools-said details[open] > summary { margin-block-end: var(--sf-space-1); }\n.sf-devtools-filters label { display: inline-flex; align-items: center; gap: var(--sf-space-1); color: var(--sf-color-muted); }\n.sf-devtools-rows, .sf-devtools-tree {\n position: relative;\n flex: 1 1 4.5rem;\n min-height: 4.5rem;\n overflow: auto;\n border-radius: var(--sf-radius-sm);\n background: var(--sf-color-bg-2, var(--sf-color-surface));\n}\n.sf-devtools-row {\n position: absolute;\n left: 0;\n right: 0;\n display: grid;\n grid-template-columns: 6.5em 5.5em minmax(0, 1fr) auto auto;\n align-items: center;\n gap: var(--sf-space-2);\n padding: 0 var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n cursor: default;\n white-space: nowrap;\n}\n.sf-devtools-row > span { overflow: hidden; text-overflow: ellipsis; }\n.sf-devtools-row[aria-selected=\"true\"] { background: var(--sf-color-accent-soft); }\n.sf-devtools-row[data-later] { color: var(--sf-color-muted); }\n.sf-devtools-time, .sf-devtools-ms { color: var(--sf-color-muted); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); font-variant-numeric: tabular-nums; }\n.sf-devtools-kind { font-size: var(--sf-font-size-xs); color: var(--sf-color-muted); }\n.sf-devtools-name { font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-name small { color: var(--sf-color-muted); font-size: inherit; }\n.sf-devtools-status { font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-status[data-status=\"error\"] { color: var(--sf-color-danger); }\n.sf-devtools-status[data-status=\"warning\"] { color: var(--sf-color-warning); }\n.sf-devtools-status[data-status=\"ok\"] { color: var(--sf-color-success); }\n.sf-devtools-status[data-status=\"running\"] { color: var(--sf-color-muted); }\n.sf-devtools-status[data-status=\"cancelled\"] { color: var(--sf-color-muted); font-weight: var(--sf-font-weight-regular); }\n/* What a row holds in full gets most of a pane: the list above it keeps a few rows, and the pane scrolls when both cannot fit. */\n.sf-devtools-detail { flex: 3 1 9rem; min-height: 9rem; overflow: auto; display: flex; flex-direction: column; gap: var(--sf-space-2); }\n/* A code block hides its overflow, so as a flex item it would shrink to nothing; it keeps its own height and the detail scrolls. */\n.sf-devtools-detail > * { flex: none; }\n.sf-devtools-detail h4, .sf-devtools-pane h4 { margin: 0; font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); color: var(--sf-color-muted); }\n.sf-devtools-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 var(--sf-space-2); margin: 0; }\n.sf-devtools-facts dt { color: var(--sf-color-muted); }\n.sf-devtools-facts dd { margin: 0; overflow-wrap: anywhere; font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-empty { margin: 0; padding: var(--sf-space-2); color: var(--sf-color-muted); }\n.sf-devtools-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sf-space-1); }\n.sf-devtools-list li { overflow-wrap: anywhere; }\n.sf-devtools-list code { font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-problem { color: var(--sf-color-danger); }\n.sf-devtools-node {\n display: flex;\n align-items: center;\n gap: var(--sf-space-1);\n min-height: var(--sf-target-min);\n padding: 0 var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n white-space: nowrap;\n}\n.sf-devtools-node[aria-selected=\"true\"] { background: var(--sf-color-accent-soft); }\n.sf-devtools-node small { color: var(--sf-color-muted); }\n.sf-devtools-preview { flex: 1; min-height: 0; overflow: auto; }\n.sf-devtools-select { max-width: 100%; }\n@container sf-devtools (max-width: 40rem) {\n /* The title and the host's controls share the first line; the scrubber takes the second. */\n .sf-devtools-scrub { order: 3; flex-basis: 100%; }\n .sf-devtools-scrub .sf-devtools-step { flex: 0 1 8rem; }\n .sf-devtools-row { grid-template-columns: 6.5em minmax(0, 1fr) auto; }\n .sf-devtools-row .sf-devtools-kind, .sf-devtools-row .sf-devtools-ms { display: none; }\n .sf-devtools-workspace { height: auto; }\n .sf-devtools-pane { flex: none; }\n .sf-devtools-rows, .sf-devtools-tree { flex: none; height: 14rem; }\n .sf-devtools-detail { flex: none; max-height: 20rem; }\n .sf-devtools-preview { flex: none; }\n}\n@media (forced-colors: active) {\n .sf-devtools-row[aria-selected=\"true\"], .sf-devtools-node[aria-selected=\"true\"] { outline: 2px solid Highlight; outline-offset: -2px; }\n}\n";
4
+ export declare const PANEL_CSS = "\n.sf-devtools {\n flex: 1;\n min-height: 0;\n min-width: 0;\n /* A column, not grid rows: the note between the bar and the body is absent when it is empty, and the body must still take what is left. */\n display: flex;\n flex-direction: column;\n container-type: inline-size;\n container-name: sf-devtools;\n background: var(--sf-color-bg-1, var(--sf-color-bg));\n color: var(--sf-color-text);\n font-size: var(--sf-font-size-sm);\n}\n.sf-devtools-bar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--sf-space-2);\n padding: var(--sf-space-1) var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n}\n.sf-devtools-title { margin: 0; font-size: var(--sf-font-size-sm); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-scrub { flex: 1 1 16rem; display: flex; align-items: center; gap: var(--sf-space-2); min-width: 0; }\n.sf-devtools-scrub input[type=\"range\"] { flex: 1; min-width: 4rem; accent-color: var(--sf-color-accent); height: var(--sf-target-min); }\n.sf-devtools-step { min-width: 0; color: var(--sf-color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.sf-devtools-actions { display: flex; align-items: center; gap: var(--sf-space-2); margin-left: auto; }\n.sf-devtools-icon {\n display: inline-grid;\n place-items: center;\n width: max(var(--sf-target-min), var(--sf-control-size));\n height: max(var(--sf-target-min), var(--sf-control-size));\n padding: 0;\n border: 1px solid var(--sf-color-edge, transparent);\n border-radius: var(--sf-radius);\n background: var(--sf-color-fill-2);\n color: var(--sf-color-text);\n cursor: pointer;\n transition: background-color var(--sf-duration-fast) var(--sf-ease), transform var(--sf-press-time) var(--sf-press-ease);\n}\n.sf-devtools-icon:hover:not([aria-disabled=\"true\"]) { background: var(--sf-color-fill-1); }\n.sf-devtools-icon:active:not([aria-disabled=\"true\"]) { transform: scale(var(--sf-press-scale)); }\n.sf-devtools-icon[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); }\n.sf-devtools-icon[aria-disabled=\"true\"] { color: var(--sf-color-label-4, var(--sf-color-muted)); cursor: default; }\n.sf-devtools-icon[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); }\n.sf-devtools-icon:focus-visible, .sf-devtools-rows:focus-visible, .sf-devtools-tree:focus-visible, .sf-devtools-chip:focus-visible, .sf-devtools-detail:focus-visible, .sf-devtools-preview:focus-visible {\n outline: 2px solid var(--sf-color-focus);\n outline-offset: -2px;\n}\n.sf-devtools-icon svg { width: 1.15em; height: 1.15em; }\n.sf-devtools-note {\n margin: 0;\n padding: var(--sf-space-1) var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n background: var(--sf-color-accent-soft);\n color: var(--sf-color-text);\n}\n.sf-devtools-note:empty { display: none; }\n.sf-devtools-body { position: relative; flex: 1 1 0; min-height: 0; min-width: 0; overflow: auto; padding: var(--sf-space-2); }\n.sf-devtools-workspace { height: 100%; }\n.sf-devtools-pane { display: flex; flex-direction: column; gap: var(--sf-space-2); flex: 1 1 auto; min-height: 0; min-width: 0; }\n/* Controls a touch screen makes 44px tall need more than a hair between them, or a row of them reads as one lump. */\n.sf-devtools-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sf-space-2); }\n.sf-devtools-filters > label { display: inline-flex; align-items: center; gap: var(--sf-space-2); color: var(--sf-color-muted); font-size: var(--sf-font-size-sm); }\n.sf-devtools-chip {\n /* The same shape as the icon buttons beside it. As a full pill it was a circle around \"Live\" and a tall blob round a\n longer name once a touch screen made it 44px high. */\n min-height: var(--sf-target-min);\n padding: 0 var(--sf-space-3);\n border: 1px solid var(--sf-color-edge, transparent);\n border-radius: var(--sf-radius);\n background: var(--sf-color-fill-3);\n color: var(--sf-color-muted);\n font: inherit;\n font-size: var(--sf-font-size-xs);\n cursor: pointer;\n transition: background-color var(--sf-duration-fast) var(--sf-ease);\n}\n.sf-devtools-chip[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-only { display: inline-flex; align-items: center; gap: var(--sf-space-1); align-self: flex-start; padding-inline-start: var(--sf-space-2); border-radius: var(--sf-radius-full); background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-only code { font-family: var(--sf-font-mono); font-weight: var(--sf-font-weight-regular); }\n.sf-devtools-causes { display: flex; flex-direction: column; gap: var(--sf-space-1); flex: none; }\n.sf-devtools-cause { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: start; gap: var(--sf-space-2); }\n.sf-devtools-cause small { color: var(--sf-color-muted); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); overflow-wrap: anywhere; }\n.sf-devtools-cause-mark { font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); color: var(--sf-color-muted); }\n.sf-devtools-cause[data-severity=\"error\"] .sf-devtools-cause-mark { color: var(--sf-color-danger); }\n.sf-devtools-cause[data-severity=\"warning\"] .sf-devtools-cause-mark { color: var(--sf-color-warning); }\n.sf-devtools-cause-by { margin: 0; color: var(--sf-color-muted); font-size: var(--sf-font-size-xs); }\n.sf-devtools-said { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }\ndiv.sf-devtools-said { display: flex; flex-direction: column; gap: var(--sf-space-2); white-space: normal; }\ndiv.sf-devtools-said > p { margin: 0; white-space: pre-wrap; }\ndiv.sf-devtools-said ul { margin: 0; padding-inline-start: var(--sf-space-4); display: flex; flex-direction: column; gap: var(--sf-space-1); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\ndiv.sf-devtools-said summary { padding-block: var(--sf-space-1); color: var(--sf-color-muted); cursor: pointer; }\ndiv.sf-devtools-said details[open] > summary { margin-block-end: var(--sf-space-1); }\n.sf-devtools-filters label { display: inline-flex; align-items: center; gap: var(--sf-space-1); color: var(--sf-color-muted); }\n.sf-devtools-rows, .sf-devtools-tree {\n position: relative;\n flex: 1 1 4.5rem;\n min-height: 4.5rem;\n overflow: auto;\n border-radius: var(--sf-radius-sm);\n background: var(--sf-color-bg-2, var(--sf-color-surface));\n}\n.sf-devtools-row {\n position: absolute;\n left: 0;\n right: 0;\n display: grid;\n grid-template-columns: 6.5em 5.5em minmax(0, 1fr) auto auto;\n align-items: center;\n gap: var(--sf-space-2);\n padding: 0 var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n cursor: default;\n white-space: nowrap;\n}\n.sf-devtools-row > span { overflow: hidden; text-overflow: ellipsis; }\n.sf-devtools-row[aria-selected=\"true\"] { background: var(--sf-color-accent-soft); }\n.sf-devtools-row[data-later] { color: var(--sf-color-muted); }\n.sf-devtools-time, .sf-devtools-ms { color: var(--sf-color-muted); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); font-variant-numeric: tabular-nums; }\n.sf-devtools-kind { font-size: var(--sf-font-size-xs); color: var(--sf-color-muted); }\n.sf-devtools-name { font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-name small { color: var(--sf-color-muted); font-size: inherit; }\n.sf-devtools-status { font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-status[data-status=\"error\"] { color: var(--sf-color-danger); }\n.sf-devtools-status[data-status=\"warning\"] { color: var(--sf-color-warning); }\n.sf-devtools-status[data-status=\"ok\"] { color: var(--sf-color-success); }\n.sf-devtools-status[data-status=\"running\"] { color: var(--sf-color-muted); }\n.sf-devtools-status[data-status=\"cancelled\"] { color: var(--sf-color-muted); font-weight: var(--sf-font-weight-regular); }\n/* What a row holds in full gets most of a pane: the list above it keeps a few rows, and the pane scrolls when both cannot fit. */\n.sf-devtools-detail { flex: 3 1 9rem; min-height: 9rem; overflow: auto; display: flex; flex-direction: column; gap: var(--sf-space-2); }\n/* A code block hides its overflow, so as a flex item it would shrink to nothing; it keeps its own height and the detail scrolls. */\n.sf-devtools-detail > * { flex: none; }\n.sf-devtools-detail h4, .sf-devtools-pane h4 { margin: 0; font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); color: var(--sf-color-muted); }\n.sf-devtools-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 var(--sf-space-2); margin: 0; }\n.sf-devtools-facts dt { color: var(--sf-color-muted); }\n.sf-devtools-facts dd { margin: 0; overflow-wrap: anywhere; font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-empty { margin: 0; padding: var(--sf-space-2); color: var(--sf-color-muted); }\n.sf-devtools-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sf-space-1); }\n.sf-devtools-list li { overflow-wrap: anywhere; }\n.sf-devtools-list code { font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-problem { color: var(--sf-color-danger); }\n.sf-devtools-node {\n display: flex;\n align-items: center;\n gap: var(--sf-space-1);\n min-height: var(--sf-target-min);\n padding: 0 var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n white-space: nowrap;\n}\n.sf-devtools-node[aria-selected=\"true\"] { background: var(--sf-color-accent-soft); }\n.sf-devtools-node small { color: var(--sf-color-muted); }\n.sf-devtools-preview { flex: 1; min-height: 0; overflow: auto; }\n.sf-devtools-select { max-width: 100%; }\n@container sf-devtools (max-width: 40rem) {\n /* The title and the host's controls share the first line; the scrubber takes the second. */\n .sf-devtools-scrub { order: 3; flex-basis: 100%; }\n .sf-devtools-scrub .sf-devtools-step { flex: 0 1 8rem; }\n .sf-devtools-row { grid-template-columns: 6.5em minmax(0, 1fr) auto; }\n .sf-devtools-row .sf-devtools-kind, .sf-devtools-row .sf-devtools-ms { display: none; }\n .sf-devtools-workspace { height: auto; }\n .sf-devtools-pane { flex: none; }\n .sf-devtools-rows, .sf-devtools-tree { flex: none; height: 14rem; }\n .sf-devtools-detail { flex: none; max-height: 20rem; }\n .sf-devtools-preview { flex: none; }\n}\n@media (forced-colors: active) {\n .sf-devtools-row[aria-selected=\"true\"], .sf-devtools-node[aria-selected=\"true\"] { outline: 2px solid Highlight; outline-offset: -2px; }\n}\n";
5
5
  /** Adds a stylesheet to a document once, by id. */
6
6
  export declare function addStyles(doc: Document, id: string, css: string): void;
package/dist/styles.js CHANGED
@@ -131,10 +131,10 @@ export const PANEL_CSS = `
131
131
  border-bottom: 1px solid var(--sf-color-divider);
132
132
  }
133
133
  .sf-devtools-title { margin: 0; font-size: var(--sf-font-size-sm); font-weight: var(--sf-font-weight-semibold); }
134
- .sf-devtools-scrub { flex: 1 1 16rem; display: flex; align-items: center; gap: var(--sf-space-1); min-width: 0; }
134
+ .sf-devtools-scrub { flex: 1 1 16rem; display: flex; align-items: center; gap: var(--sf-space-2); min-width: 0; }
135
135
  .sf-devtools-scrub input[type="range"] { flex: 1; min-width: 4rem; accent-color: var(--sf-color-accent); height: var(--sf-target-min); }
136
136
  .sf-devtools-step { min-width: 0; color: var(--sf-color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
137
- .sf-devtools-actions { display: flex; align-items: center; gap: var(--sf-space-1); margin-left: auto; }
137
+ .sf-devtools-actions { display: flex; align-items: center; gap: var(--sf-space-2); margin-left: auto; }
138
138
  .sf-devtools-icon {
139
139
  display: inline-grid;
140
140
  place-items: center;
@@ -169,12 +169,16 @@ export const PANEL_CSS = `
169
169
  .sf-devtools-body { position: relative; flex: 1 1 0; min-height: 0; min-width: 0; overflow: auto; padding: var(--sf-space-2); }
170
170
  .sf-devtools-workspace { height: 100%; }
171
171
  .sf-devtools-pane { display: flex; flex-direction: column; gap: var(--sf-space-2); flex: 1 1 auto; min-height: 0; min-width: 0; }
172
- .sf-devtools-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sf-space-1); }
172
+ /* Controls a touch screen makes 44px tall need more than a hair between them, or a row of them reads as one lump. */
173
+ .sf-devtools-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sf-space-2); }
174
+ .sf-devtools-filters > label { display: inline-flex; align-items: center; gap: var(--sf-space-2); color: var(--sf-color-muted); font-size: var(--sf-font-size-sm); }
173
175
  .sf-devtools-chip {
176
+ /* The same shape as the icon buttons beside it. As a full pill it was a circle around "Live" and a tall blob round a
177
+ longer name once a touch screen made it 44px high. */
174
178
  min-height: var(--sf-target-min);
175
- padding: 0 var(--sf-space-2);
179
+ padding: 0 var(--sf-space-3);
176
180
  border: 1px solid var(--sf-color-edge, transparent);
177
- border-radius: var(--sf-radius-full);
181
+ border-radius: var(--sf-radius);
178
182
  background: var(--sf-color-fill-3);
179
183
  color: var(--sf-color-muted);
180
184
  font: inherit;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oEAAoE;AACpE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGxB,CAAC;AAEF,qEAAqE;AACrE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKxB,CAAC;AAEF,mDAAmD;AACnD,MAAM,UAAU,SAAS,CAAC,GAAa,EAAE,EAAU,EAAE,GAAW;IAC9D,MAAM,QAAQ,GAAG,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACxC,IAAI,QAAQ,EAAE,CAAC;QACb,8GAA8G;QAC9G,IAAI,QAAQ,CAAC,WAAW,KAAK,GAAG;YAAE,QAAQ,CAAC,WAAW,GAAG,GAAG,CAAC;QAC7D,OAAO;IACT,CAAC;IACD,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;IACxB,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * The dev tools' own styles, added to the page (and to a popped-out window)\n * as a <style> element when the tools are on, so a host adds no stylesheet\n * for them. Every colour, size and time is a --sf-* token.\n */\n\n/** For the floating button and the dock: loaded with the widget. */\nexport const SHELL_CSS = `\n.sf-devtools-button {\n position: fixed;\n right: var(--sf-space-3);\n bottom: var(--sf-space-3);\n z-index: 2147483000;\n display: inline-flex;\n align-items: center;\n gap: var(--sf-space-1);\n height: max(var(--sf-target-min), var(--sf-control-size));\n min-width: max(var(--sf-target-min), var(--sf-control-size));\n padding: 0 var(--sf-space-2);\n border: 1px solid var(--sf-glass-edge);\n border-radius: var(--sf-radius-full);\n background: var(--sf-glass-regular);\n -webkit-backdrop-filter: var(--sf-glass-filter);\n backdrop-filter: var(--sf-glass-filter);\n box-shadow: inset 0 1px 0 var(--sf-glass-highlight), var(--sf-glass-shadow);\n color: var(--sf-color-text);\n font: inherit;\n font-size: var(--sf-font-size-sm);\n font-weight: var(--sf-font-weight-medium);\n cursor: pointer;\n transition: transform var(--sf-press-time) var(--sf-press-ease);\n}\n.sf-devtools-button:active { transform: scale(var(--sf-press-scale)); }\n.sf-devtools-button:focus-visible,\n.sf-devtools-grip:focus-visible {\n outline: 2px solid var(--sf-color-focus);\n outline-offset: 2px;\n}\n.sf-devtools-button svg { width: 1.1em; height: 1.1em; }\n.sf-devtools-count {\n padding: 0 var(--sf-space-1);\n border-radius: var(--sf-radius-full);\n background: var(--sf-color-danger);\n color: var(--sf-color-bg);\n font-size: var(--sf-font-size-xs);\n font-weight: var(--sf-font-weight-semibold);\n font-variant-numeric: tabular-nums;\n}\n.sf-devtools-inline { position: relative; min-height: 4rem; }\n.sf-devtools-inline > .sf-devtools-button { position: absolute; }\n.sf-devtools-dock {\n position: fixed;\n z-index: 2147483000;\n display: flex;\n border: 1px solid var(--sf-glass-edge);\n background: var(--sf-color-bg-1, var(--sf-color-bg));\n color: var(--sf-color-text);\n box-shadow: var(--sf-glass-shadow);\n font-size: var(--sf-font-size-sm);\n animation: sf-fade var(--sf-duration) var(--sf-ease-out);\n}\n/* Focus is moved here when the tools open, so the next Tab is inside them; the frame itself is not a control. */\n.sf-devtools-dock:focus { outline: none; }\n.sf-devtools-dock[data-dock=\"bottom\"] { left: 0; right: 0; bottom: 0; flex-direction: column; }\n.sf-devtools-dock[data-dock=\"right\"] { top: 0; right: 0; bottom: 0; flex-direction: row; max-width: 100vw; }\n.sf-devtools-inline > .sf-devtools-dock { position: relative; inset: auto; flex-direction: column; margin-top: var(--sf-space-2); border-radius: var(--sf-radius); }\n.sf-devtools-grip {\n flex: none;\n border: 0;\n padding: 0;\n background: var(--sf-color-divider);\n touch-action: none;\n}\n.sf-devtools-dock[data-dock=\"bottom\"] > .sf-devtools-grip { height: var(--sf-space-1); cursor: ns-resize; }\n.sf-devtools-dock[data-dock=\"right\"] > .sf-devtools-grip { width: var(--sf-space-1); cursor: ew-resize; }\n.sf-devtools-grip:hover { background: var(--sf-color-accent); }\n.sf-devtools-host { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }\n.sf-devtools-wait { padding: var(--sf-space-3); color: var(--sf-color-muted); }\n/* Narrow screens: the dock is always along the bottom, full width. */\n@media (max-width: 40rem) {\n /* One edge only on a narrow screen, so no control to change it. */\n .sf-devtools-icon.sf-devtools-dockside { display: none; }\n .sf-devtools-dock[data-dock=\"right\"] { top: auto; left: 0; flex-direction: column; }\n .sf-devtools-dock[data-dock=\"right\"] > .sf-devtools-grip { width: auto; height: var(--sf-space-1); cursor: ns-resize; }\n}\n@media (forced-colors: active) {\n .sf-devtools-button, .sf-devtools-dock { border-color: CanvasText; }\n}\n/* While a person is picking a component on the page. */\n.sf-devtools-picking, .sf-devtools-picking * { cursor: crosshair !important; }\n.sf-devtools-picking .sf-devtools-dock *, .sf-devtools-picking .sf-devtools-button { cursor: revert !important; }\n/* Over the component picked in the panel, on the page. It never takes a press. */\n.sf-devtools-inspect {\n position: fixed;\n top: 0;\n left: 0;\n /* Under the tools' own drawer and button. */\n z-index: 2147482999;\n pointer-events: none;\n box-sizing: border-box;\n outline: 2px solid var(--sf-color-focus);\n outline-offset: 1px;\n border-radius: var(--sf-radius-sm);\n}\n.sf-devtools-inspect::before { content: \"\"; position: absolute; inset: 0; border-radius: inherit; background: var(--sf-color-accent); opacity: 0.14; }\n@media (forced-colors: active) {\n .sf-devtools-inspect { outline-color: Highlight; }\n .sf-devtools-inspect::before { display: none; }\n}\n`;\n\n/** For the panel: loaded with it, only when the tools are opened. */\nexport const PANEL_CSS = `\n.sf-devtools {\n flex: 1;\n min-height: 0;\n min-width: 0;\n /* A column, not grid rows: the note between the bar and the body is absent when it is empty, and the body must still take what is left. */\n display: flex;\n flex-direction: column;\n container-type: inline-size;\n container-name: sf-devtools;\n background: var(--sf-color-bg-1, var(--sf-color-bg));\n color: var(--sf-color-text);\n font-size: var(--sf-font-size-sm);\n}\n.sf-devtools-bar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--sf-space-2);\n padding: var(--sf-space-1) var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n}\n.sf-devtools-title { margin: 0; font-size: var(--sf-font-size-sm); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-scrub { flex: 1 1 16rem; display: flex; align-items: center; gap: var(--sf-space-1); min-width: 0; }\n.sf-devtools-scrub input[type=\"range\"] { flex: 1; min-width: 4rem; accent-color: var(--sf-color-accent); height: var(--sf-target-min); }\n.sf-devtools-step { min-width: 0; color: var(--sf-color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.sf-devtools-actions { display: flex; align-items: center; gap: var(--sf-space-1); margin-left: auto; }\n.sf-devtools-icon {\n display: inline-grid;\n place-items: center;\n width: max(var(--sf-target-min), var(--sf-control-size));\n height: max(var(--sf-target-min), var(--sf-control-size));\n padding: 0;\n border: 1px solid var(--sf-color-edge, transparent);\n border-radius: var(--sf-radius);\n background: var(--sf-color-fill-2);\n color: var(--sf-color-text);\n cursor: pointer;\n transition: background-color var(--sf-duration-fast) var(--sf-ease), transform var(--sf-press-time) var(--sf-press-ease);\n}\n.sf-devtools-icon:hover:not([aria-disabled=\"true\"]) { background: var(--sf-color-fill-1); }\n.sf-devtools-icon:active:not([aria-disabled=\"true\"]) { transform: scale(var(--sf-press-scale)); }\n.sf-devtools-icon[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); }\n.sf-devtools-icon[aria-disabled=\"true\"] { color: var(--sf-color-label-4, var(--sf-color-muted)); cursor: default; }\n.sf-devtools-icon[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); }\n.sf-devtools-icon:focus-visible, .sf-devtools-rows:focus-visible, .sf-devtools-tree:focus-visible, .sf-devtools-chip:focus-visible, .sf-devtools-detail:focus-visible, .sf-devtools-preview:focus-visible {\n outline: 2px solid var(--sf-color-focus);\n outline-offset: -2px;\n}\n.sf-devtools-icon svg { width: 1.15em; height: 1.15em; }\n.sf-devtools-note {\n margin: 0;\n padding: var(--sf-space-1) var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n background: var(--sf-color-accent-soft);\n color: var(--sf-color-text);\n}\n.sf-devtools-note:empty { display: none; }\n.sf-devtools-body { position: relative; flex: 1 1 0; min-height: 0; min-width: 0; overflow: auto; padding: var(--sf-space-2); }\n.sf-devtools-workspace { height: 100%; }\n.sf-devtools-pane { display: flex; flex-direction: column; gap: var(--sf-space-2); flex: 1 1 auto; min-height: 0; min-width: 0; }\n.sf-devtools-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sf-space-1); }\n.sf-devtools-chip {\n min-height: var(--sf-target-min);\n padding: 0 var(--sf-space-2);\n border: 1px solid var(--sf-color-edge, transparent);\n border-radius: var(--sf-radius-full);\n background: var(--sf-color-fill-3);\n color: var(--sf-color-muted);\n font: inherit;\n font-size: var(--sf-font-size-xs);\n cursor: pointer;\n transition: background-color var(--sf-duration-fast) var(--sf-ease);\n}\n.sf-devtools-chip[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-only { display: inline-flex; align-items: center; gap: var(--sf-space-1); align-self: flex-start; padding-inline-start: var(--sf-space-2); border-radius: var(--sf-radius-full); background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-only code { font-family: var(--sf-font-mono); font-weight: var(--sf-font-weight-regular); }\n.sf-devtools-causes { display: flex; flex-direction: column; gap: var(--sf-space-1); flex: none; }\n.sf-devtools-cause { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: start; gap: var(--sf-space-2); }\n.sf-devtools-cause small { color: var(--sf-color-muted); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); overflow-wrap: anywhere; }\n.sf-devtools-cause-mark { font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); color: var(--sf-color-muted); }\n.sf-devtools-cause[data-severity=\"error\"] .sf-devtools-cause-mark { color: var(--sf-color-danger); }\n.sf-devtools-cause[data-severity=\"warning\"] .sf-devtools-cause-mark { color: var(--sf-color-warning); }\n.sf-devtools-cause-by { margin: 0; color: var(--sf-color-muted); font-size: var(--sf-font-size-xs); }\n.sf-devtools-said { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }\ndiv.sf-devtools-said { display: flex; flex-direction: column; gap: var(--sf-space-2); white-space: normal; }\ndiv.sf-devtools-said > p { margin: 0; white-space: pre-wrap; }\ndiv.sf-devtools-said ul { margin: 0; padding-inline-start: var(--sf-space-4); display: flex; flex-direction: column; gap: var(--sf-space-1); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\ndiv.sf-devtools-said summary { padding-block: var(--sf-space-1); color: var(--sf-color-muted); cursor: pointer; }\ndiv.sf-devtools-said details[open] > summary { margin-block-end: var(--sf-space-1); }\n.sf-devtools-filters label { display: inline-flex; align-items: center; gap: var(--sf-space-1); color: var(--sf-color-muted); }\n.sf-devtools-rows, .sf-devtools-tree {\n position: relative;\n flex: 1 1 4.5rem;\n min-height: 4.5rem;\n overflow: auto;\n border-radius: var(--sf-radius-sm);\n background: var(--sf-color-bg-2, var(--sf-color-surface));\n}\n.sf-devtools-row {\n position: absolute;\n left: 0;\n right: 0;\n display: grid;\n grid-template-columns: 6.5em 5.5em minmax(0, 1fr) auto auto;\n align-items: center;\n gap: var(--sf-space-2);\n padding: 0 var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n cursor: default;\n white-space: nowrap;\n}\n.sf-devtools-row > span { overflow: hidden; text-overflow: ellipsis; }\n.sf-devtools-row[aria-selected=\"true\"] { background: var(--sf-color-accent-soft); }\n.sf-devtools-row[data-later] { color: var(--sf-color-muted); }\n.sf-devtools-time, .sf-devtools-ms { color: var(--sf-color-muted); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); font-variant-numeric: tabular-nums; }\n.sf-devtools-kind { font-size: var(--sf-font-size-xs); color: var(--sf-color-muted); }\n.sf-devtools-name { font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-name small { color: var(--sf-color-muted); font-size: inherit; }\n.sf-devtools-status { font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-status[data-status=\"error\"] { color: var(--sf-color-danger); }\n.sf-devtools-status[data-status=\"warning\"] { color: var(--sf-color-warning); }\n.sf-devtools-status[data-status=\"ok\"] { color: var(--sf-color-success); }\n.sf-devtools-status[data-status=\"running\"] { color: var(--sf-color-muted); }\n.sf-devtools-status[data-status=\"cancelled\"] { color: var(--sf-color-muted); font-weight: var(--sf-font-weight-regular); }\n/* What a row holds in full gets most of a pane: the list above it keeps a few rows, and the pane scrolls when both cannot fit. */\n.sf-devtools-detail { flex: 3 1 9rem; min-height: 9rem; overflow: auto; display: flex; flex-direction: column; gap: var(--sf-space-2); }\n/* A code block hides its overflow, so as a flex item it would shrink to nothing; it keeps its own height and the detail scrolls. */\n.sf-devtools-detail > * { flex: none; }\n.sf-devtools-detail h4, .sf-devtools-pane h4 { margin: 0; font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); color: var(--sf-color-muted); }\n.sf-devtools-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 var(--sf-space-2); margin: 0; }\n.sf-devtools-facts dt { color: var(--sf-color-muted); }\n.sf-devtools-facts dd { margin: 0; overflow-wrap: anywhere; font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-empty { margin: 0; padding: var(--sf-space-2); color: var(--sf-color-muted); }\n.sf-devtools-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sf-space-1); }\n.sf-devtools-list li { overflow-wrap: anywhere; }\n.sf-devtools-list code { font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-problem { color: var(--sf-color-danger); }\n.sf-devtools-node {\n display: flex;\n align-items: center;\n gap: var(--sf-space-1);\n min-height: var(--sf-target-min);\n padding: 0 var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n white-space: nowrap;\n}\n.sf-devtools-node[aria-selected=\"true\"] { background: var(--sf-color-accent-soft); }\n.sf-devtools-node small { color: var(--sf-color-muted); }\n.sf-devtools-preview { flex: 1; min-height: 0; overflow: auto; }\n.sf-devtools-select { max-width: 100%; }\n@container sf-devtools (max-width: 40rem) {\n /* The title and the host's controls share the first line; the scrubber takes the second. */\n .sf-devtools-scrub { order: 3; flex-basis: 100%; }\n .sf-devtools-scrub .sf-devtools-step { flex: 0 1 8rem; }\n .sf-devtools-row { grid-template-columns: 6.5em minmax(0, 1fr) auto; }\n .sf-devtools-row .sf-devtools-kind, .sf-devtools-row .sf-devtools-ms { display: none; }\n .sf-devtools-workspace { height: auto; }\n .sf-devtools-pane { flex: none; }\n .sf-devtools-rows, .sf-devtools-tree { flex: none; height: 14rem; }\n .sf-devtools-detail { flex: none; max-height: 20rem; }\n .sf-devtools-preview { flex: none; }\n}\n@media (forced-colors: active) {\n .sf-devtools-row[aria-selected=\"true\"], .sf-devtools-node[aria-selected=\"true\"] { outline: 2px solid Highlight; outline-offset: -2px; }\n}\n`;\n\n/** Adds a stylesheet to a document once, by id. */\nexport function addStyles(doc: Document, id: string, css: string): void {\n const existing = doc.getElementById(id);\n if (existing) {\n // Kept in step, so a newer copy of the styles (a hot reload, a second version on the page) is not left stale.\n if (existing.textContent !== css) existing.textContent = css;\n return;\n }\n const style = doc.createElement(\"style\");\n style.id = id;\n style.textContent = css;\n doc.head.appendChild(style);\n}\n"]}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oEAAoE;AACpE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGxB,CAAC;AAEF,qEAAqE;AACrE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0KxB,CAAC;AAEF,mDAAmD;AACnD,MAAM,UAAU,SAAS,CAAC,GAAa,EAAE,EAAU,EAAE,GAAW;IAC9D,MAAM,QAAQ,GAAG,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACxC,IAAI,QAAQ,EAAE,CAAC;QACb,8GAA8G;QAC9G,IAAI,QAAQ,CAAC,WAAW,KAAK,GAAG;YAAE,QAAQ,CAAC,WAAW,GAAG,GAAG,CAAC;QAC7D,OAAO;IACT,CAAC;IACD,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;IACxB,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * The dev tools' own styles, added to the page (and to a popped-out window)\n * as a <style> element when the tools are on, so a host adds no stylesheet\n * for them. Every colour, size and time is a --sf-* token.\n */\n\n/** For the floating button and the dock: loaded with the widget. */\nexport const SHELL_CSS = `\n.sf-devtools-button {\n position: fixed;\n right: var(--sf-space-3);\n bottom: var(--sf-space-3);\n z-index: 2147483000;\n display: inline-flex;\n align-items: center;\n gap: var(--sf-space-1);\n height: max(var(--sf-target-min), var(--sf-control-size));\n min-width: max(var(--sf-target-min), var(--sf-control-size));\n padding: 0 var(--sf-space-2);\n border: 1px solid var(--sf-glass-edge);\n border-radius: var(--sf-radius-full);\n background: var(--sf-glass-regular);\n -webkit-backdrop-filter: var(--sf-glass-filter);\n backdrop-filter: var(--sf-glass-filter);\n box-shadow: inset 0 1px 0 var(--sf-glass-highlight), var(--sf-glass-shadow);\n color: var(--sf-color-text);\n font: inherit;\n font-size: var(--sf-font-size-sm);\n font-weight: var(--sf-font-weight-medium);\n cursor: pointer;\n transition: transform var(--sf-press-time) var(--sf-press-ease);\n}\n.sf-devtools-button:active { transform: scale(var(--sf-press-scale)); }\n.sf-devtools-button:focus-visible,\n.sf-devtools-grip:focus-visible {\n outline: 2px solid var(--sf-color-focus);\n outline-offset: 2px;\n}\n.sf-devtools-button svg { width: 1.1em; height: 1.1em; }\n.sf-devtools-count {\n padding: 0 var(--sf-space-1);\n border-radius: var(--sf-radius-full);\n background: var(--sf-color-danger);\n color: var(--sf-color-bg);\n font-size: var(--sf-font-size-xs);\n font-weight: var(--sf-font-weight-semibold);\n font-variant-numeric: tabular-nums;\n}\n.sf-devtools-inline { position: relative; min-height: 4rem; }\n.sf-devtools-inline > .sf-devtools-button { position: absolute; }\n.sf-devtools-dock {\n position: fixed;\n z-index: 2147483000;\n display: flex;\n border: 1px solid var(--sf-glass-edge);\n background: var(--sf-color-bg-1, var(--sf-color-bg));\n color: var(--sf-color-text);\n box-shadow: var(--sf-glass-shadow);\n font-size: var(--sf-font-size-sm);\n animation: sf-fade var(--sf-duration) var(--sf-ease-out);\n}\n/* Focus is moved here when the tools open, so the next Tab is inside them; the frame itself is not a control. */\n.sf-devtools-dock:focus { outline: none; }\n.sf-devtools-dock[data-dock=\"bottom\"] { left: 0; right: 0; bottom: 0; flex-direction: column; }\n.sf-devtools-dock[data-dock=\"right\"] { top: 0; right: 0; bottom: 0; flex-direction: row; max-width: 100vw; }\n.sf-devtools-inline > .sf-devtools-dock { position: relative; inset: auto; flex-direction: column; margin-top: var(--sf-space-2); border-radius: var(--sf-radius); }\n.sf-devtools-grip {\n flex: none;\n border: 0;\n padding: 0;\n background: var(--sf-color-divider);\n touch-action: none;\n}\n.sf-devtools-dock[data-dock=\"bottom\"] > .sf-devtools-grip { height: var(--sf-space-1); cursor: ns-resize; }\n.sf-devtools-dock[data-dock=\"right\"] > .sf-devtools-grip { width: var(--sf-space-1); cursor: ew-resize; }\n.sf-devtools-grip:hover { background: var(--sf-color-accent); }\n.sf-devtools-host { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }\n.sf-devtools-wait { padding: var(--sf-space-3); color: var(--sf-color-muted); }\n/* Narrow screens: the dock is always along the bottom, full width. */\n@media (max-width: 40rem) {\n /* One edge only on a narrow screen, so no control to change it. */\n .sf-devtools-icon.sf-devtools-dockside { display: none; }\n .sf-devtools-dock[data-dock=\"right\"] { top: auto; left: 0; flex-direction: column; }\n .sf-devtools-dock[data-dock=\"right\"] > .sf-devtools-grip { width: auto; height: var(--sf-space-1); cursor: ns-resize; }\n}\n@media (forced-colors: active) {\n .sf-devtools-button, .sf-devtools-dock { border-color: CanvasText; }\n}\n/* While a person is picking a component on the page. */\n.sf-devtools-picking, .sf-devtools-picking * { cursor: crosshair !important; }\n.sf-devtools-picking .sf-devtools-dock *, .sf-devtools-picking .sf-devtools-button { cursor: revert !important; }\n/* Over the component picked in the panel, on the page. It never takes a press. */\n.sf-devtools-inspect {\n position: fixed;\n top: 0;\n left: 0;\n /* Under the tools' own drawer and button. */\n z-index: 2147482999;\n pointer-events: none;\n box-sizing: border-box;\n outline: 2px solid var(--sf-color-focus);\n outline-offset: 1px;\n border-radius: var(--sf-radius-sm);\n}\n.sf-devtools-inspect::before { content: \"\"; position: absolute; inset: 0; border-radius: inherit; background: var(--sf-color-accent); opacity: 0.14; }\n@media (forced-colors: active) {\n .sf-devtools-inspect { outline-color: Highlight; }\n .sf-devtools-inspect::before { display: none; }\n}\n`;\n\n/** For the panel: loaded with it, only when the tools are opened. */\nexport const PANEL_CSS = `\n.sf-devtools {\n flex: 1;\n min-height: 0;\n min-width: 0;\n /* A column, not grid rows: the note between the bar and the body is absent when it is empty, and the body must still take what is left. */\n display: flex;\n flex-direction: column;\n container-type: inline-size;\n container-name: sf-devtools;\n background: var(--sf-color-bg-1, var(--sf-color-bg));\n color: var(--sf-color-text);\n font-size: var(--sf-font-size-sm);\n}\n.sf-devtools-bar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--sf-space-2);\n padding: var(--sf-space-1) var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n}\n.sf-devtools-title { margin: 0; font-size: var(--sf-font-size-sm); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-scrub { flex: 1 1 16rem; display: flex; align-items: center; gap: var(--sf-space-2); min-width: 0; }\n.sf-devtools-scrub input[type=\"range\"] { flex: 1; min-width: 4rem; accent-color: var(--sf-color-accent); height: var(--sf-target-min); }\n.sf-devtools-step { min-width: 0; color: var(--sf-color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.sf-devtools-actions { display: flex; align-items: center; gap: var(--sf-space-2); margin-left: auto; }\n.sf-devtools-icon {\n display: inline-grid;\n place-items: center;\n width: max(var(--sf-target-min), var(--sf-control-size));\n height: max(var(--sf-target-min), var(--sf-control-size));\n padding: 0;\n border: 1px solid var(--sf-color-edge, transparent);\n border-radius: var(--sf-radius);\n background: var(--sf-color-fill-2);\n color: var(--sf-color-text);\n cursor: pointer;\n transition: background-color var(--sf-duration-fast) var(--sf-ease), transform var(--sf-press-time) var(--sf-press-ease);\n}\n.sf-devtools-icon:hover:not([aria-disabled=\"true\"]) { background: var(--sf-color-fill-1); }\n.sf-devtools-icon:active:not([aria-disabled=\"true\"]) { transform: scale(var(--sf-press-scale)); }\n.sf-devtools-icon[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); }\n.sf-devtools-icon[aria-disabled=\"true\"] { color: var(--sf-color-label-4, var(--sf-color-muted)); cursor: default; }\n.sf-devtools-icon[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); }\n.sf-devtools-icon:focus-visible, .sf-devtools-rows:focus-visible, .sf-devtools-tree:focus-visible, .sf-devtools-chip:focus-visible, .sf-devtools-detail:focus-visible, .sf-devtools-preview:focus-visible {\n outline: 2px solid var(--sf-color-focus);\n outline-offset: -2px;\n}\n.sf-devtools-icon svg { width: 1.15em; height: 1.15em; }\n.sf-devtools-note {\n margin: 0;\n padding: var(--sf-space-1) var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n background: var(--sf-color-accent-soft);\n color: var(--sf-color-text);\n}\n.sf-devtools-note:empty { display: none; }\n.sf-devtools-body { position: relative; flex: 1 1 0; min-height: 0; min-width: 0; overflow: auto; padding: var(--sf-space-2); }\n.sf-devtools-workspace { height: 100%; }\n.sf-devtools-pane { display: flex; flex-direction: column; gap: var(--sf-space-2); flex: 1 1 auto; min-height: 0; min-width: 0; }\n/* Controls a touch screen makes 44px tall need more than a hair between them, or a row of them reads as one lump. */\n.sf-devtools-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sf-space-2); }\n.sf-devtools-filters > label { display: inline-flex; align-items: center; gap: var(--sf-space-2); color: var(--sf-color-muted); font-size: var(--sf-font-size-sm); }\n.sf-devtools-chip {\n /* The same shape as the icon buttons beside it. As a full pill it was a circle around \"Live\" and a tall blob round a\n longer name once a touch screen made it 44px high. */\n min-height: var(--sf-target-min);\n padding: 0 var(--sf-space-3);\n border: 1px solid var(--sf-color-edge, transparent);\n border-radius: var(--sf-radius);\n background: var(--sf-color-fill-3);\n color: var(--sf-color-muted);\n font: inherit;\n font-size: var(--sf-font-size-xs);\n cursor: pointer;\n transition: background-color var(--sf-duration-fast) var(--sf-ease);\n}\n.sf-devtools-chip[aria-pressed=\"true\"] { background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-only { display: inline-flex; align-items: center; gap: var(--sf-space-1); align-self: flex-start; padding-inline-start: var(--sf-space-2); border-radius: var(--sf-radius-full); background: var(--sf-color-accent-soft); color: var(--sf-color-accent-text); font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-only code { font-family: var(--sf-font-mono); font-weight: var(--sf-font-weight-regular); }\n.sf-devtools-causes { display: flex; flex-direction: column; gap: var(--sf-space-1); flex: none; }\n.sf-devtools-cause { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: start; gap: var(--sf-space-2); }\n.sf-devtools-cause small { color: var(--sf-color-muted); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); overflow-wrap: anywhere; }\n.sf-devtools-cause-mark { font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); color: var(--sf-color-muted); }\n.sf-devtools-cause[data-severity=\"error\"] .sf-devtools-cause-mark { color: var(--sf-color-danger); }\n.sf-devtools-cause[data-severity=\"warning\"] .sf-devtools-cause-mark { color: var(--sf-color-warning); }\n.sf-devtools-cause-by { margin: 0; color: var(--sf-color-muted); font-size: var(--sf-font-size-xs); }\n.sf-devtools-said { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }\ndiv.sf-devtools-said { display: flex; flex-direction: column; gap: var(--sf-space-2); white-space: normal; }\ndiv.sf-devtools-said > p { margin: 0; white-space: pre-wrap; }\ndiv.sf-devtools-said ul { margin: 0; padding-inline-start: var(--sf-space-4); display: flex; flex-direction: column; gap: var(--sf-space-1); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\ndiv.sf-devtools-said summary { padding-block: var(--sf-space-1); color: var(--sf-color-muted); cursor: pointer; }\ndiv.sf-devtools-said details[open] > summary { margin-block-end: var(--sf-space-1); }\n.sf-devtools-filters label { display: inline-flex; align-items: center; gap: var(--sf-space-1); color: var(--sf-color-muted); }\n.sf-devtools-rows, .sf-devtools-tree {\n position: relative;\n flex: 1 1 4.5rem;\n min-height: 4.5rem;\n overflow: auto;\n border-radius: var(--sf-radius-sm);\n background: var(--sf-color-bg-2, var(--sf-color-surface));\n}\n.sf-devtools-row {\n position: absolute;\n left: 0;\n right: 0;\n display: grid;\n grid-template-columns: 6.5em 5.5em minmax(0, 1fr) auto auto;\n align-items: center;\n gap: var(--sf-space-2);\n padding: 0 var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n cursor: default;\n white-space: nowrap;\n}\n.sf-devtools-row > span { overflow: hidden; text-overflow: ellipsis; }\n.sf-devtools-row[aria-selected=\"true\"] { background: var(--sf-color-accent-soft); }\n.sf-devtools-row[data-later] { color: var(--sf-color-muted); }\n.sf-devtools-time, .sf-devtools-ms { color: var(--sf-color-muted); font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); font-variant-numeric: tabular-nums; }\n.sf-devtools-kind { font-size: var(--sf-font-size-xs); color: var(--sf-color-muted); }\n.sf-devtools-name { font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-name small { color: var(--sf-color-muted); font-size: inherit; }\n.sf-devtools-status { font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); }\n.sf-devtools-status[data-status=\"error\"] { color: var(--sf-color-danger); }\n.sf-devtools-status[data-status=\"warning\"] { color: var(--sf-color-warning); }\n.sf-devtools-status[data-status=\"ok\"] { color: var(--sf-color-success); }\n.sf-devtools-status[data-status=\"running\"] { color: var(--sf-color-muted); }\n.sf-devtools-status[data-status=\"cancelled\"] { color: var(--sf-color-muted); font-weight: var(--sf-font-weight-regular); }\n/* What a row holds in full gets most of a pane: the list above it keeps a few rows, and the pane scrolls when both cannot fit. */\n.sf-devtools-detail { flex: 3 1 9rem; min-height: 9rem; overflow: auto; display: flex; flex-direction: column; gap: var(--sf-space-2); }\n/* A code block hides its overflow, so as a flex item it would shrink to nothing; it keeps its own height and the detail scrolls. */\n.sf-devtools-detail > * { flex: none; }\n.sf-devtools-detail h4, .sf-devtools-pane h4 { margin: 0; font-size: var(--sf-font-size-xs); font-weight: var(--sf-font-weight-semibold); color: var(--sf-color-muted); }\n.sf-devtools-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 var(--sf-space-2); margin: 0; }\n.sf-devtools-facts dt { color: var(--sf-color-muted); }\n.sf-devtools-facts dd { margin: 0; overflow-wrap: anywhere; font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-empty { margin: 0; padding: var(--sf-space-2); color: var(--sf-color-muted); }\n.sf-devtools-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sf-space-1); }\n.sf-devtools-list li { overflow-wrap: anywhere; }\n.sf-devtools-list code { font-family: var(--sf-font-mono); font-size: var(--sf-font-size-xs); }\n.sf-devtools-problem { color: var(--sf-color-danger); }\n.sf-devtools-node {\n display: flex;\n align-items: center;\n gap: var(--sf-space-1);\n min-height: var(--sf-target-min);\n padding: 0 var(--sf-space-2);\n border-bottom: 1px solid var(--sf-color-divider);\n white-space: nowrap;\n}\n.sf-devtools-node[aria-selected=\"true\"] { background: var(--sf-color-accent-soft); }\n.sf-devtools-node small { color: var(--sf-color-muted); }\n.sf-devtools-preview { flex: 1; min-height: 0; overflow: auto; }\n.sf-devtools-select { max-width: 100%; }\n@container sf-devtools (max-width: 40rem) {\n /* The title and the host's controls share the first line; the scrubber takes the second. */\n .sf-devtools-scrub { order: 3; flex-basis: 100%; }\n .sf-devtools-scrub .sf-devtools-step { flex: 0 1 8rem; }\n .sf-devtools-row { grid-template-columns: 6.5em minmax(0, 1fr) auto; }\n .sf-devtools-row .sf-devtools-kind, .sf-devtools-row .sf-devtools-ms { display: none; }\n .sf-devtools-workspace { height: auto; }\n .sf-devtools-pane { flex: none; }\n .sf-devtools-rows, .sf-devtools-tree { flex: none; height: 14rem; }\n .sf-devtools-detail { flex: none; max-height: 20rem; }\n .sf-devtools-preview { flex: none; }\n}\n@media (forced-colors: active) {\n .sf-devtools-row[aria-selected=\"true\"], .sf-devtools-node[aria-selected=\"true\"] { outline: 2px solid Highlight; outline-offset: -2px; }\n}\n`;\n\n/** Adds a stylesheet to a document once, by id. */\nexport function addStyles(doc: Document, id: string, css: string): void {\n const existing = doc.getElementById(id);\n if (existing) {\n // Kept in step, so a newer copy of the styles (a hot reload, a second version on the page) is not left stale.\n if (existing.textContent !== css) existing.textContent = css;\n return;\n }\n const style = doc.createElement(\"style\");\n style.id = id;\n style.textContent = css;\n doc.head.appendChild(style);\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surfaces-ui/devtools",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Developer tools for Surfaces UI: one component that records and shows the messages, components, problems, state, events, agent turns and service calls of agent-generated UI, with time travel",
5
5
  "keywords": [
6
6
  "surfaces-ui",
@@ -47,10 +47,10 @@
47
47
  "react-dom": ">=18"
48
48
  },
49
49
  "dependencies": {
50
- "@surfaces-ui/components": "0.5.0",
51
- "@surfaces-ui/data": "0.5.0",
52
- "@surfaces-ui/spec": "0.5.0",
53
- "@surfaces-ui/trace": "0.5.0"
50
+ "@surfaces-ui/components": "0.7.0",
51
+ "@surfaces-ui/data": "0.7.0",
52
+ "@surfaces-ui/spec": "0.7.0",
53
+ "@surfaces-ui/trace": "0.7.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@testing-library/react": "^16.3.3",
@@ -59,8 +59,8 @@
59
59
  "jsdom": "^31.0.0",
60
60
  "react": "^19.3.1",
61
61
  "react-dom": "^19.3.1",
62
- "@surfaces-ui/agent": "0.5.0",
63
- "@surfaces-ui/chat": "0.5.0"
62
+ "@surfaces-ui/agent": "0.7.0",
63
+ "@surfaces-ui/chat": "0.7.0"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public",