@1agh/maude 1.8.1 → 1.9.1

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.
Files changed (73) hide show
  1. package/apps/studio/acp/bridge.ts +14 -2
  2. package/apps/studio/acp/probe.ts +51 -1
  3. package/apps/studio/api.ts +19 -4
  4. package/apps/studio/bin/_curl-local.mjs +7 -0
  5. package/apps/studio/bin/annotate.mjs +16 -7
  6. package/apps/studio/bin/read-annotations.mjs +62 -4
  7. package/apps/studio/client/app.jsx +428 -15977
  8. package/apps/studio/client/dialogs/asset-picker.jsx +331 -0
  9. package/apps/studio/client/dialogs/command-palette.jsx +112 -0
  10. package/apps/studio/client/dialogs/export-dialog.jsx +782 -0
  11. package/apps/studio/client/dialogs/help-modal.jsx +324 -0
  12. package/apps/studio/client/dialogs/shortcuts-overlay.jsx +144 -0
  13. package/apps/studio/client/hooks/use-canvas-bridge.jsx +2150 -0
  14. package/apps/studio/client/hooks/use-git-actions.jsx +236 -0
  15. package/apps/studio/client/hooks/use-keyboard-shortcuts.jsx +297 -0
  16. package/apps/studio/client/hooks/use-palette-and-panels.jsx +474 -0
  17. package/apps/studio/client/hooks/use-photo-and-timeline.jsx +901 -0
  18. package/apps/studio/client/hooks/use-project-data.jsx +90 -0
  19. package/apps/studio/client/hooks/use-shell-core.jsx +1212 -0
  20. package/apps/studio/client/hooks/use-tabs.jsx +723 -0
  21. package/apps/studio/client/hooks/use-web-socket.jsx +13 -0
  22. package/apps/studio/client/inspector/artboard-knobs.jsx +456 -0
  23. package/apps/studio/client/inspector/color-picker.jsx +196 -0
  24. package/apps/studio/client/inspector/color.js +92 -0
  25. package/apps/studio/client/inspector/css-knobs.jsx +1720 -0
  26. package/apps/studio/client/inspector/css-vocab.jsx +131 -0
  27. package/apps/studio/client/inspector/ds-tokens.js +90 -0
  28. package/apps/studio/client/inspector/grid-tracks-editor.jsx +97 -0
  29. package/apps/studio/client/inspector/inspect-computed.jsx +68 -0
  30. package/apps/studio/client/inspector/inspector-panel.jsx +769 -0
  31. package/apps/studio/client/inspector/layers.jsx +322 -0
  32. package/apps/studio/client/inspector/selection.js +65 -0
  33. package/apps/studio/client/inspector/token-popover.jsx +301 -0
  34. package/apps/studio/client/menus/menubar.jsx +856 -0
  35. package/apps/studio/client/selection-scope.js +40 -0
  36. package/apps/studio/client/shell/banners.jsx +272 -0
  37. package/apps/studio/client/shell/collapsed-rail.jsx +23 -0
  38. package/apps/studio/client/shell/comments-panel.jsx +177 -0
  39. package/apps/studio/client/shell/constants.js +60 -0
  40. package/apps/studio/client/shell/dock.jsx +131 -0
  41. package/apps/studio/client/shell/icons.jsx +370 -0
  42. package/apps/studio/client/shell/status-bar.jsx +215 -0
  43. package/apps/studio/client/shell/util.js +332 -0
  44. package/apps/studio/client/shell/viewport.jsx +254 -0
  45. package/apps/studio/client/system/system-view.jsx +255 -0
  46. package/apps/studio/client/tree/tree.jsx +1243 -0
  47. package/apps/studio/comments-overlay.tsx +6 -4
  48. package/apps/studio/config.schema.json +5 -0
  49. package/apps/studio/context.ts +13 -0
  50. package/apps/studio/dist/client.bundle.js +1337 -1337
  51. package/apps/studio/dist/comment-mount.js +2 -2
  52. package/apps/studio/exporters/_browser-bundles.ts +21 -2
  53. package/apps/studio/exporters/jobs.ts +75 -15
  54. package/apps/studio/exporters/scope.ts +15 -12
  55. package/apps/studio/format.ts +296 -0
  56. package/apps/studio/http.ts +217 -23
  57. package/apps/studio/server.ts +141 -30
  58. package/apps/studio/sync/accepted-link.ts +6 -0
  59. package/apps/studio/sync/agent.ts +9 -1
  60. package/apps/studio/sync/cold-start-apply.ts +29 -4
  61. package/apps/studio/sync/cold-start.ts +78 -0
  62. package/apps/studio/sync/file-plane.ts +61 -1
  63. package/apps/studio/sync/format-sync.ts +160 -0
  64. package/apps/studio/sync/index.ts +134 -10
  65. package/apps/studio/sync/journal-client.ts +25 -5
  66. package/apps/studio/sync/migrate-seed.ts +8 -1
  67. package/apps/studio/sync/status.ts +2 -0
  68. package/apps/studio/sync/transaction-client.ts +130 -13
  69. package/apps/studio/ui-prefs.ts +95 -10
  70. package/apps/studio/whats-new.json +9 -0
  71. package/apps/studio/ws.ts +19 -4
  72. package/cli/bin/claude-design-server.mjs +0 -0
  73. package/package.json +10 -8
@@ -0,0 +1,131 @@
1
+ // inspector/css-vocab.jsx — moved verbatim out of client/app.jsx (Maude v2 plan V2-0.2, move-only split).
2
+
3
+ import { Lu } from '../shell/icons.jsx';
4
+ import { ALargeSmall as LuALargeSmall, AlignHorizontalSpaceBetween as LuSpaceBetween, Baseline as LuBaseline, Minus as LuMinus, MoveHorizontal as LuMoveH, Spline as LuSpline } from 'lucide-react';
5
+
6
+ // ---------- CSS knobs (Phase 12.2, DDR-104) — interactive panel ----------
7
+ //
8
+ // Hybrid vocabulary (friendly collapsible section headers + CSS-named rows),
9
+ // per-field DS-token quick-pick, nested box-model widget, per-corner radius,
10
+ // per-row provenance (token-bound / raw-override / inherited), per-field save
11
+ // state, and two escape hatches: custom CSS property (via /_api/edit-css) +
12
+ // custom HTML attribute (via /_api/edit-attr). Each knob pre-fills from the
13
+ // AUTHORED inline value (`el.authored`); the resolved `computed` value is a
14
+ // faint placeholder only (NOT editable — the v1 UX bug). Ported from the
15
+ // critic-approved + user-iterated `.design/ui/Studio.tsx` spec.
16
+
17
+ export const CSS_DISPLAYS = ['block', 'inline-block', 'flex', 'inline-flex', 'grid', 'inline', 'none'];
18
+
19
+ // feature-3-web-artboards T5 — per-track unit ladder for the Grid section's
20
+ // UnitSelect (the stub's own list: px/%/fr/em/auto/min-content/max-content).
21
+ export const GRID_TRACK_UNITS = ['px', '%', 'fr', 'em', 'auto', 'min-content', 'max-content'];
22
+
23
+ export const CSS_FLEX_DIR = ['row', 'row-reverse', 'column', 'column-reverse'];
24
+
25
+ export const CSS_FLEX_WRAP = ['nowrap', 'wrap', 'wrap-reverse'];
26
+
27
+ export const CSS_ALIGN = ['stretch', 'flex-start', 'center', 'flex-end', 'baseline'];
28
+
29
+ // Stage M — flex-CHILD align-self (adds `auto` to the container align-items set).
30
+ export const CSS_ALIGN_SELF = ['auto', 'stretch', 'flex-start', 'center', 'flex-end', 'baseline'];
31
+
32
+ export const CSS_JUSTIFY = [
33
+ 'flex-start',
34
+ 'center',
35
+ 'flex-end',
36
+ 'space-between',
37
+ 'space-around',
38
+ 'space-evenly',
39
+ ];
40
+
41
+ export const CSS_WEIGHTS = ['300', '400', '500', '600', '700', '800'];
42
+
43
+ /** What an edit route says the write replaced (`previous`, read under the file
44
+ * lock) — the value an undo must restore. `fallback` only when the route could
45
+ * not name it (an expression, or an older server). */
46
+ export const replacedValue = (j, fallback) =>
47
+ j && Object.hasOwn(j, 'previous') ? j.previous : fallback;
48
+
49
+ export const CSS_FONTS = [
50
+ 'inherit',
51
+ 'system-ui',
52
+ 'sans-serif',
53
+ 'serif',
54
+ 'monospace',
55
+ 'Inter',
56
+ 'Inter Tight',
57
+ 'JetBrains Mono',
58
+ ];
59
+
60
+ export const CSS_BORDER_STYLES = ['none', 'solid', 'dashed', 'dotted', 'double'];
61
+
62
+ export const CSS_UNITS = ['px', 'rem', 'em', '%', 'vw', 'vh', 'auto'];
63
+
64
+ // Properties whose bare-number value is unitless — never append a unit suffix.
65
+ export const CSS_UNITLESS = new Set(['line-height', 'opacity', 'font-weight', 'z-index', 'flex-grow', 'flex-shrink', 'order']);
66
+
67
+ // #2 — Figma-style property prefix inside numeric fields: a small glyph (icon) or
68
+ // a mono letter (t). Only where it reads cleanly; selects/colours keep their own.
69
+ export const PROP_LEAD = {
70
+ 'font-size': { node: <Lu as={LuALargeSmall} size={12} /> },
71
+ 'line-height': { node: <Lu as={LuBaseline} size={12} /> },
72
+ 'letter-spacing': { node: <Lu as={LuMoveH} size={12} /> },
73
+ gap: { node: <Lu as={LuSpaceBetween} size={12} /> },
74
+ width: { t: 'W' },
75
+ height: { t: 'H' },
76
+ 'max-width': { t: 'W' },
77
+ 'border-radius': { node: <Lu as={LuSpline} size={12} /> },
78
+ 'border-width': { node: <Lu as={LuMinus} size={12} /> },
79
+ };
80
+
81
+ export const CSS_ALIGN_OPTS = ['left', 'center', 'right', 'justify'];
82
+
83
+ // feature-element-editing-robustness Stage B — enum option lists for the promoted
84
+ // DDR-104 OUT-list knobs (Position / Typography extras / Media framing).
85
+ export const CSS_POSITION = ['static', 'relative', 'absolute', 'fixed', 'sticky'];
86
+
87
+ export const CSS_FONT_STYLE = ['normal', 'italic', 'oblique'];
88
+
89
+ export const CSS_TEXT_TRANSFORM = ['none', 'uppercase', 'lowercase', 'capitalize'];
90
+
91
+ export const CSS_TEXT_DECORATION = ['none', 'underline', 'line-through', 'overline'];
92
+
93
+ export const CSS_WHITE_SPACE = ['normal', 'nowrap', 'pre', 'pre-wrap', 'pre-line', 'break-spaces'];
94
+
95
+ export const CSS_OBJECT_FIT = ['fill', 'contain', 'cover', 'none', 'scale-down'];
96
+
97
+ export const CSS_OVERFLOW = ['visible', 'hidden', 'auto', 'scroll'];
98
+
99
+ // DDR-171 — Designer mode "Effects" cluster (blend) + the matching Advanced-mode
100
+ // Appearance row. Standard CSS `mix-blend-mode` keyword list.
101
+ export const CSS_BLEND_MODES = [
102
+ 'normal',
103
+ 'multiply',
104
+ 'screen',
105
+ 'overlay',
106
+ 'darken',
107
+ 'lighten',
108
+ 'color-dodge',
109
+ 'color-burn',
110
+ 'hard-light',
111
+ 'soft-light',
112
+ 'difference',
113
+ 'exclusion',
114
+ 'hue',
115
+ 'saturation',
116
+ 'color',
117
+ 'luminosity',
118
+ ];
119
+
120
+ // Common aspect ratios for the Media dropdown (dogfood request — a select, not a
121
+ // free-text field). Canonical spaced form so a dropdown-set value round-trips.
122
+ export const CSS_ASPECT_RATIO = ['auto', '1 / 1', '4 / 3', '3 / 2', '16 / 9', '21 / 9', '3 / 4', '2 / 3', '9 / 16'];
123
+
124
+ // feature-element-editing-robustness Stage I4 — device presets for the "New
125
+ // artboard" menu (inserts an empty <DCArtboard> of these dims into the canvas).
126
+ export const SCREEN_PRESETS = {
127
+ desktop: { label: 'Desktop', width: 1440, height: 1024 },
128
+ laptop: { label: 'Laptop', width: 1280, height: 800 },
129
+ tablet: { label: 'Tablet', width: 834, height: 1194 },
130
+ mobile: { label: 'Mobile', width: 390, height: 844 },
131
+ };
@@ -0,0 +1,90 @@
1
+ // inspector/ds-tokens.js — moved verbatim out of client/app.jsx (Maude v2 plan V2-0.2, move-only split).
2
+
3
+ import { useEffect, useState } from 'react';
4
+
5
+ // Resolve the active canvas's DS tokens CSS path (mirrors canvas-url.js / DDR-093):
6
+ // the canvas's declared DS wins, else designSystems[0], else the legacy default.
7
+ export function cssTokensRelFor(file, cfg) {
8
+ const ds0 = cfg?.designSystems?.[0];
9
+ const name = file ? cfg?.canvasDesignSystems?.[file] : null;
10
+ const ds = (name && cfg?.designSystems?.find((d) => d.name === name)) || ds0;
11
+ return ds?.tokensCssRel || cfg?.tokensCssRel || ds0?.tokensCssRel || '';
12
+ }
13
+
14
+ // The active canvas's DS NAME (mirrors cssTokensRelFor's resolution order).
15
+ export function activeDsNameFor(file, cfg) {
16
+ const byCanvas = file ? cfg?.canvasDesignSystems?.[file] : null;
17
+ return byCanvas || cfg?.defaultDesignSystem || cfg?.designSystems?.[0]?.name || null;
18
+ }
19
+
20
+ // Parse a DS tokens CSS body → token names grouped by family + a name→value map
21
+ // (resolving one level of var() aliasing so the popover renders real swatches +
22
+ // values). Phase 12.3 (W2.1/W3 multi-DS).
23
+ export function parseTokensCss(css) {
24
+ const raw = {};
25
+ for (const m of css.matchAll(/(--[a-z0-9-]+)\s*:\s*([^;}]+)/gi)) {
26
+ if (!(m[1] in raw)) raw[m[1]] = m[2].trim();
27
+ }
28
+ const vals = {};
29
+ for (const name of Object.keys(raw)) {
30
+ const v = raw[name];
31
+ const ref = /^var\(\s*(--[a-z0-9-]+)\s*\)$/i.exec(v);
32
+ vals[name] = ref && raw[ref[1]] ? raw[ref[1]] : v;
33
+ }
34
+ const names = Object.keys(raw);
35
+ const g = (re) => names.filter((n) => re.test(n));
36
+ // Colours detected by VALUE, not name — so EVERY colour token a DS defines is
37
+ // offered (the name-prefix list dropped many). A token is a colour if its
38
+ // resolved value reads as one. (#3 — "see all tokens the DS has".)
39
+ const isColor = (v) =>
40
+ /^(#[0-9a-f]{3,8}|rgba?\(|hsla?\(|oklch\(|oklab\(|lab\(|lch\(|hwb\(|color\()/i.test(v) ||
41
+ /^(transparent|currentcolor|white|black|red|green|blue|gray|grey|orange|yellow|purple|pink|cyan|magenta|teal|navy|maroon|olive|lime|aqua|silver|gold)$/i.test(
42
+ v
43
+ );
44
+ return {
45
+ color: names.filter((n) => isColor(vals[n])),
46
+ space: g(/^--space-/),
47
+ radius: g(/^--radius-/),
48
+ type: g(/^--type-/),
49
+ shadow: g(/^--shadow-/),
50
+ lh: g(/^--lh-/),
51
+ vals,
52
+ };
53
+ }
54
+
55
+ // Fetch + parse the tokens CSS of EVERY design system in the config (main
56
+ // origin), so the token popover can offer tokens grouped per DS (W3 multi-DS
57
+ // feedback). The active canvas's DS is ordered first. Returns
58
+ // `[{ name, color, space, radius, type, shadow, lh, vals }]`.
59
+ export function useAllDsTokens(cfg, designRel, activeName) {
60
+ const list = cfg?.designSystems || [];
61
+ // A stable key so the effect only re-fetches when the DS set / paths change.
62
+ const sig = list.map((d) => `${d.name}:${d.tokensCssRel}`).join('|');
63
+ const [byDs, setByDs] = useState([]);
64
+ useEffect(() => {
65
+ if (!list.length) return undefined;
66
+ let cancelled = false;
67
+ Promise.all(
68
+ list.map(async (ds) => {
69
+ if (!ds.tokensCssRel) return null;
70
+ try {
71
+ const r = await fetch(`/${designRel}/${ds.tokensCssRel}`);
72
+ const css = r.ok ? await r.text() : '';
73
+ return { name: ds.name, ...parseTokensCss(css) };
74
+ } catch {
75
+ return null;
76
+ }
77
+ })
78
+ ).then((res) => {
79
+ if (cancelled) return;
80
+ const got = res.filter(Boolean);
81
+ // Active DS first, rest in config order.
82
+ got.sort((a, b) => (a.name === activeName ? -1 : b.name === activeName ? 1 : 0));
83
+ setByDs(got);
84
+ });
85
+ return () => {
86
+ cancelled = true;
87
+ };
88
+ }, [sig, designRel, activeName]);
89
+ return byDs;
90
+ }
@@ -0,0 +1,97 @@
1
+ // inspector/grid-tracks-editor.jsx — moved verbatim out of client/app.jsx (Maude v2 plan V2-0.2, move-only split).
2
+
3
+ import { GRID_KEYWORD_UNITS } from '../../grid-track-handles.ts';
4
+ import { NumberField, Select, UnitSelect } from '../inspector-controls.jsx';
5
+ import { GRID_TRACK_UNITS } from './css-vocab.jsx';
6
+
7
+ // feature-3-web-artboards T5 (absorbed feature-grid-track-editor stub) — the
8
+ // CssKnobs "Grid" section's track-list editor: one row per track (a
9
+ // NumberField + UnitSelect for a numeric px/%/fr/em track, a bare Select for
10
+ // a keyword auto/min-content/max-content track since it carries no numeric
11
+ // value), + add/remove. `tracks`/`onChange` are the parsed/serialized shape
12
+ // from `grid-track-handles.ts` — the SAME module the on-canvas gutter-drag
13
+ // overlay uses, so the Inspector and the drag handles never disagree.
14
+ export function GridTracksEditor({ label, tracks, editable, onChange }) {
15
+ const setUnit = (idx, unit) => {
16
+ const cur = tracks[idx];
17
+ onChange(
18
+ tracks.map((t, i) =>
19
+ i === idx
20
+ ? GRID_KEYWORD_UNITS.has(unit)
21
+ ? { value: 0, unit }
22
+ : { value: cur.value || 1, unit }
23
+ : t
24
+ )
25
+ );
26
+ };
27
+ const setValue = (idx, value) => {
28
+ onChange(tracks.map((t, i) => (i === idx ? { ...t, value } : t)));
29
+ };
30
+ const addTrack = () => onChange([...tracks, { value: 1, unit: 'fr' }]);
31
+ const removeTrack = (idx) => onChange(tracks.filter((_, i) => i !== idx));
32
+ return (
33
+ <div className="st-cp-gridtracks">
34
+ <div className="st-cp-gridtracks-hd">
35
+ <span className="st-cp-gridtracks-label">{label}</span>
36
+ <button
37
+ type="button"
38
+ className="st-btn st-cp-gridtracks-add"
39
+ disabled={!editable}
40
+ onClick={addTrack}
41
+ >
42
+ + Track
43
+ </button>
44
+ </div>
45
+ {tracks.length === 0 ? (
46
+ <div className="st-cp-note">
47
+ No explicit tracks — add one to start defining {label.toLowerCase()}.
48
+ </div>
49
+ ) : (
50
+ tracks.map((t, idx) => {
51
+ const isKeyword = GRID_KEYWORD_UNITS.has(t.unit);
52
+ return (
53
+ // biome-ignore lint/suspicious/noArrayIndexKey: tracks have no stable id;
54
+ // add/remove/reorder all rebuild the array positionally, same as every
55
+ // other index-keyed list in this file (e.g. the Layers tree rows).
56
+ <div className="st-cp-gridtrack-row" key={idx}>
57
+ {isKeyword ? (
58
+ <Select
59
+ value={t.unit}
60
+ ariaLabel={`${label} track ${idx + 1}`}
61
+ options={GRID_TRACK_UNITS.map((u) => ({ value: u, label: u }))}
62
+ onChange={(u) => setUnit(idx, u)}
63
+ />
64
+ ) : (
65
+ <NumberField
66
+ value={t.value}
67
+ min={t.unit === 'fr' ? 0.1 : 0}
68
+ step={t.unit === 'fr' ? 0.1 : 1}
69
+ ariaLabel={`${label} track ${idx + 1} value`}
70
+ lead={String(idx + 1)}
71
+ unitSlot={
72
+ <UnitSelect
73
+ value={t.unit}
74
+ units={GRID_TRACK_UNITS}
75
+ ariaLabel={`${label} track ${idx + 1} unit`}
76
+ onChange={(u) => setUnit(idx, u)}
77
+ />
78
+ }
79
+ onCommit={(n) => setValue(idx, n)}
80
+ />
81
+ )}
82
+ <button
83
+ type="button"
84
+ className="st-btn st-cp-gridtrack-remove"
85
+ aria-label={`remove ${label} track ${idx + 1}`}
86
+ disabled={!editable || tracks.length <= 1}
87
+ onClick={() => removeTrack(idx)}
88
+ >
89
+ ×
90
+ </button>
91
+ </div>
92
+ );
93
+ })
94
+ )}
95
+ </div>
96
+ );
97
+ }
@@ -0,0 +1,68 @@
1
+ // inspector/inspect-computed.jsx — moved verbatim out of client/app.jsx (Maude v2 plan V2-0.2, move-only split).
2
+
3
+ import { cssSplitUnit } from './color.js';
4
+
5
+ // Phase 12.3 — live computed readout for the Inspect tab (replaces the stale
6
+ // "lands with the live CSS bridge (Phase 12)" callout — that bridge shipped).
7
+ // Reads the resolved values the selection already carries (dom-selection
8
+ // styleMapsFor → el.computed). Read-only; the CSS tab is where you edit.
9
+ export function InspectComputed({ el }) {
10
+ const c = el?.computed || {};
11
+ const a = el?.authored || {};
12
+ // Prefer the authored token name (var(--accent) → "--accent") as the label;
13
+ // fall back to the resolved value. The swatch always shows the RESOLVED color.
14
+ const valueLabel = (prop) => {
15
+ const av = a[prop];
16
+ if (av && /var\(\s*--/.test(av)) return av.replace(/^var\(\s*|\s*\)$/g, '');
17
+ return c[prop] || av || '';
18
+ };
19
+ const colorRow = (lbl, prop) => {
20
+ const resolved = c[prop] || a[prop];
21
+ if (!resolved) return null;
22
+ return (
23
+ <div className="st-insp-row" key={lbl}>
24
+ <span className="st-insp-label">{lbl}</span>
25
+ <div className="st-swatch-row">
26
+ <span className="st-insp-swatch" style={{ background: resolved }} aria-hidden="true" />
27
+ <span className="st-mono" style={{ fontSize: 11, color: 'var(--fg-1)' }}>
28
+ {valueLabel(prop)}
29
+ </span>
30
+ </div>
31
+ </div>
32
+ );
33
+ };
34
+ const hasRadius = c['border-radius'] && c['border-radius'] !== '0px';
35
+ const radiusN = hasRadius ? cssSplitUnit(c['border-radius']).n || c['border-radius'] : null;
36
+ const font =
37
+ c['font-size'] || c['font-weight']
38
+ ? [c['font-size'], c['font-weight']].filter(Boolean).join(' / ')
39
+ : null;
40
+ const anyType = c['background-color'] || c.color || hasRadius || font;
41
+ if (!anyType) return null;
42
+ return (
43
+ <>
44
+ {hasRadius ? (
45
+ <div className="st-insp-row">
46
+ <span className="st-insp-label">Radius</span>
47
+ <div className="st-insp-fields">
48
+ <span className="st-fmini" style={{ flex: '0 0 auto', maxWidth: 84 }}>
49
+ <span className="st-mtag">r</span>
50
+ <input value={radiusN} readOnly aria-label="border radius" />
51
+ </span>
52
+ <span className="st-insp-unit">px</span>
53
+ </div>
54
+ </div>
55
+ ) : null}
56
+ {colorRow('Fill', 'background-color')}
57
+ {colorRow('Text', 'color')}
58
+ {font ? (
59
+ <div className="st-insp-row">
60
+ <span className="st-insp-label">Font</span>
61
+ <div className="st-insp-fields">
62
+ <span className="st-mono" style={{ fontSize: 11, color: 'var(--fg-0)' }}>{font}</span>
63
+ </div>
64
+ </div>
65
+ ) : null}
66
+ </>
67
+ );
68
+ }