reifyui 0.1.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/LICENSE +21 -0
- package/README.md +149 -0
- package/dist/index.cjs +2026 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +1994 -0
- package/dist/index.js.map +1 -0
- package/package.json +84 -0
- package/styles/chat.css +175 -0
- package/styles/sheet.css +262 -0
- package/styles/slides.css +25 -0
- package/styles/themes/dark.css +26 -0
- package/styles/themes/light.css +26 -0
package/styles/chat.css
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/* UI Core — Conversational Agent surface styles.
|
|
2
|
+
Extracted from HarnessRouter's workbench chat (hr.css wbx-*); class names kept so the
|
|
3
|
+
extraction is drop-in. Every color / font / key spacing reads a --uic-* custom property with
|
|
4
|
+
the HarnessRouter light value as fallback, so an unthemed consumer looks exactly like HR.
|
|
5
|
+
|
|
6
|
+
Token contract (define on :root or any ancestor of the chat surface):
|
|
7
|
+
--uic-surface panel / composer background #FFFFFF
|
|
8
|
+
--uic-line hairline borders #DDDFE6
|
|
9
|
+
--uic-ink primary text #111317
|
|
10
|
+
--uic-ink-2 secondary text #3A3D45
|
|
11
|
+
--uic-mute tertiary / quiet text #5B5D66
|
|
12
|
+
--uic-brand accent (icons, links, live dots) #285AFF
|
|
13
|
+
--uic-brand-ink accent pressed / dark #1641D8
|
|
14
|
+
--uic-brand-soft accent border tint #E1E9FF
|
|
15
|
+
--uic-brand-faint accent background tint #EFF3FF
|
|
16
|
+
--uic-ok success (Done check) #16a34a
|
|
17
|
+
--uic-mono monospace stack ui-monospace, SFMono-Regular, Menlo, monospace
|
|
18
|
+
--uic-shadow-1 card shadow (see below)
|
|
19
|
+
--uic-code-block-bg / --uic-code-block-ink #0f1117 / #e6e8ee
|
|
20
|
+
--uic-code-keyword / -string / -comment / -number / -function
|
|
21
|
+
syntax-highlight palette (CodeBlock) tuned for the dark block, see below
|
|
22
|
+
--uic-code-lang-ink language label top-right of the block #59627288
|
|
23
|
+
--uic-fail-ink/-line/-bg, --uic-cancel-ink/-line/-bg,
|
|
24
|
+
--uic-incomplete-ink/-line/-bg terminal badge palettes
|
|
25
|
+
--uic-font-md message / prose base size 14px
|
|
26
|
+
--uic-turn-pad-x horizontal padding of a message row 28px
|
|
27
|
+
--uic-bubble-max-w user bubble max width 80%
|
|
28
|
+
--uic-working-ink Working… indicator text color inherit
|
|
29
|
+
Presets: themes/light.css (.uic-light) and themes/dark.css (.uic-dark) set all of these. */
|
|
30
|
+
|
|
31
|
+
/* ── message rows ─────────────────────────────────────────────────────────── */
|
|
32
|
+
/* A turn fills the column; user right-aligned, assistant stacks timeline above prose. */
|
|
33
|
+
.wbx-turn { display: flex; min-width: 0; padding: 0 var(--uic-turn-pad-x, 28px); }
|
|
34
|
+
.wbx-turn.user { justify-content: flex-end; }
|
|
35
|
+
/* assistant turn stacks vertically: activity timeline ABOVE the answer (never side by side) */
|
|
36
|
+
.wbx-turn.asst { flex-direction: column; gap: 10px; align-items: stretch; }
|
|
37
|
+
.wbx-bubble-user { max-width: var(--uic-bubble-max-w, 80%); background: var(--uic-brand-faint, #EFF3FF);
|
|
38
|
+
border: 1px solid var(--uic-brand-soft, #E1E9FF);
|
|
39
|
+
color: var(--uic-ink, #111317); border-radius: 16px 16px 5px 16px; padding: 10px 14px;
|
|
40
|
+
font-size: var(--uic-font-md, 14px); white-space: pre-wrap; line-height: 1.55; }
|
|
41
|
+
.wbx-bubble-text { white-space: pre-wrap; }
|
|
42
|
+
|
|
43
|
+
/* ── rendered markdown — proper typography, not raw text ─────────────────── */
|
|
44
|
+
.wbx-md { color: var(--uic-ink, #111317); font-size: var(--uic-font-md, 14px); line-height: 1.62; min-width: 0; }
|
|
45
|
+
.wbx-md > :first-child { margin-top: 0; }
|
|
46
|
+
.wbx-md > :last-child { margin-bottom: 0; }
|
|
47
|
+
.wbx-md p { margin: 0 0 10px; }
|
|
48
|
+
.wbx-md ul, .wbx-md ol { margin: 0 0 10px; padding-left: 22px; }
|
|
49
|
+
.wbx-md li { margin: 3px 0; }
|
|
50
|
+
.wbx-md h1, .wbx-md h2, .wbx-md h3 { margin: 14px 0 8px; font-weight: 700; line-height: 1.3; }
|
|
51
|
+
.wbx-md h1 { font-size: 18px; } .wbx-md h2 { font-size: 16px; } .wbx-md h3 { font-size: 14.5px; }
|
|
52
|
+
.wbx-md code { font-family: var(--uic-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12.5px;
|
|
53
|
+
background: var(--uic-brand-faint, #EFF3FF); border: 1px solid var(--uic-line, #DDDFE6); border-radius: 5px; padding: 1px 5px; }
|
|
54
|
+
.wbx-md pre { background: var(--uic-code-block-bg, #0f1117); color: var(--uic-code-block-ink, #e6e8ee);
|
|
55
|
+
border-radius: 10px; padding: 12px 14px; overflow: auto; margin: 0 0 10px; }
|
|
56
|
+
.wbx-md pre code { background: none; border: none; color: inherit; padding: 0; font-size: 12.5px; line-height: 1.5; }
|
|
57
|
+
/* ── CodeBlock: language-aware syntax highlighting (components/CodeBlock.jsx) ──
|
|
58
|
+
The block itself carries the same geometry as .wbx-md pre (same padding/radius/font), fully
|
|
59
|
+
styled here so it also works outside .wbx-md. hljs token classes map onto five --uic-code-*
|
|
60
|
+
colors; defaults are tuned to read on the dark --uic-code-block-bg. Light-theme consumers that
|
|
61
|
+
restyle the block re-point these five tokens alongside --uic-code-block-bg/-ink. */
|
|
62
|
+
.wbx-code { position: relative; background: var(--uic-code-block-bg, #0f1117); color: var(--uic-code-block-ink, #e6e8ee);
|
|
63
|
+
border-radius: 10px; padding: 12px 14px; overflow: auto; margin: 0 0 10px;
|
|
64
|
+
font-family: var(--uic-mono, ui-monospace, SFMono-Regular, Menlo, monospace); }
|
|
65
|
+
.wbx-code code { background: none; border: none; color: inherit; padding: 0; font-size: 12.5px; line-height: 1.5; }
|
|
66
|
+
.wbx-code-lang { position: absolute; top: 8px; right: 12px; font-size: 10px; line-height: 1; letter-spacing: .5px;
|
|
67
|
+
text-transform: uppercase; color: var(--uic-code-lang-ink, rgba(140, 149, 165, .75));
|
|
68
|
+
pointer-events: none; user-select: none; }
|
|
69
|
+
.wbx-code .hljs-comment, .wbx-code .hljs-quote,
|
|
70
|
+
.wbx-code .hljs-meta { color: var(--uic-code-comment, #8b949e); }
|
|
71
|
+
.wbx-code .hljs-keyword, .wbx-code .hljs-selector-tag, .wbx-code .hljs-literal,
|
|
72
|
+
.wbx-code .hljs-doctag, .wbx-code .hljs-built_in, .wbx-code .hljs-operator { color: var(--uic-code-keyword, #c678dd); }
|
|
73
|
+
.wbx-code .hljs-string, .wbx-code .hljs-regexp, .wbx-code .hljs-addition,
|
|
74
|
+
.wbx-code .hljs-char.escape_ { color: var(--uic-code-string, #98c379); }
|
|
75
|
+
.wbx-code .hljs-number, .wbx-code .hljs-symbol, .wbx-code .hljs-bullet,
|
|
76
|
+
.wbx-code .hljs-link, .wbx-code .hljs-template-variable, .wbx-code .hljs-variable.language_ { color: var(--uic-code-number, #d19a66); }
|
|
77
|
+
.wbx-code .hljs-title, .wbx-code .hljs-section, .wbx-code .hljs-name,
|
|
78
|
+
.wbx-code .hljs-selector-id, .wbx-code .hljs-selector-class, .wbx-code .hljs-attr,
|
|
79
|
+
.wbx-code .hljs-attribute, .wbx-code .hljs-type { color: var(--uic-code-function, #61afef); }
|
|
80
|
+
|
|
81
|
+
/* Mermaid diagram: light card, centered, horizontal-scroll for wide graphs (rendered by <Mermaid>). */
|
|
82
|
+
.wbx-mermaid { display: block; margin: 0 0 10px; padding: 12px; overflow-x: auto; text-align: center;
|
|
83
|
+
background: var(--uic-surface, #fff); border: 1px solid var(--uic-line, #DDDFE6); border-radius: 10px; }
|
|
84
|
+
.wbx-mermaid svg { max-width: 100%; height: auto; }
|
|
85
|
+
.wbx-mermaid-fallback { margin: 0 0 10px; }
|
|
86
|
+
.wbx-md a { color: var(--uic-brand, #285AFF); text-decoration: underline; }
|
|
87
|
+
.wbx-md blockquote { margin: 0 0 10px; padding: 2px 0 2px 12px; border-left: 3px solid var(--uic-line, #DDDFE6); color: var(--uic-mute, #5B5D66); }
|
|
88
|
+
.wbx-md table { border-collapse: collapse; margin: 0 0 10px; font-size: 13px; }
|
|
89
|
+
.wbx-md th, .wbx-md td { border: 1px solid var(--uic-line, #DDDFE6); padding: 5px 9px; text-align: left; }
|
|
90
|
+
|
|
91
|
+
/* ── loading skeleton (ChatMessagesSkeleton) ─────────────────────────────────
|
|
92
|
+
Reuses the .wbx-turn / .wbx-bubble-user / .wbx-md geometry above so streamed
|
|
93
|
+
history lands with no layout shift. display:contents hoists the skeleton turns
|
|
94
|
+
into the consumer's message column, so they inherit its inter-turn spacing
|
|
95
|
+
exactly. Bars pulse on a themeable tint (--uic-skel, falls back to the hairline
|
|
96
|
+
--uic-line) — legible on both the white assistant column and the tinted user
|
|
97
|
+
bubble, in light and dark. */
|
|
98
|
+
.wbx-skel { display: contents; }
|
|
99
|
+
.wbx-skel-turn { cursor: default; }
|
|
100
|
+
.wbx-skel-lines { display: flex; flex-direction: column; gap: 11px; }
|
|
101
|
+
.wbx-bubble-user.wbx-skel-lines { gap: 8px; }
|
|
102
|
+
.wbx-skel-bar { display: block; height: 10px; border-radius: 5px;
|
|
103
|
+
background: var(--uic-skel, var(--uic-line, #DDDFE6));
|
|
104
|
+
animation: wbx-skel-pulse 1.6s ease-in-out infinite; }
|
|
105
|
+
@keyframes wbx-skel-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
|
|
106
|
+
@media (prefers-reduced-motion: reduce) { .wbx-skel-bar { animation: none; } }
|
|
107
|
+
|
|
108
|
+
/* ── agent activity timeline: natural-language summary, typed-icon rows, Request/Result ── */
|
|
109
|
+
.wbx-acts { margin: 4px 0 6px; }
|
|
110
|
+
.wbx-acts-sum { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600;
|
|
111
|
+
color: var(--uic-mute, #5B5D66); background: transparent; border: none; padding: 2px 0; }
|
|
112
|
+
.wbx-acts-sum:hover { color: var(--uic-ink, #111317); }
|
|
113
|
+
.wbx-acts-body { margin: 10px 0 6px; display: flex; flex-direction: column; }
|
|
114
|
+
/* Each row owns the connector segment: a vertical line centered on the icon column, drawn from
|
|
115
|
+
below this icon down to the next icon — so the thread runs through the icon centers. */
|
|
116
|
+
.wbx-act { display: flex; gap: 11px; align-items: flex-start; position: relative; padding-bottom: 16px; }
|
|
117
|
+
.wbx-act:last-child { padding-bottom: 0; }
|
|
118
|
+
.wbx-act:not(:last-child)::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0;
|
|
119
|
+
width: 1.5px; background: var(--uic-line, #DDDFE6); transform: translateX(-50%); }
|
|
120
|
+
.wbx-act-ic-t { flex: 0 0 auto; width: 20px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--uic-brand, #285AFF); }
|
|
121
|
+
.wbx-act-ic-t.thinking { color: var(--uic-mute, #5B5D66); }
|
|
122
|
+
.wbx-act-ic-t.done { color: var(--uic-ok, #16a34a); }
|
|
123
|
+
.wbx-act-main { min-width: 0; flex: 1; }
|
|
124
|
+
.wbx-act-row { display: flex; align-items: center; gap: 8px; min-height: 22px; width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 0; }
|
|
125
|
+
.wbx-act-row:disabled { cursor: default; }
|
|
126
|
+
.wbx-act-k { font-size: 13.5px; font-weight: 600; color: var(--uic-ink, #111317); }
|
|
127
|
+
.wbx-act-chip { font-size: 11.5px; font-family: var(--uic-mono, ui-monospace, Menlo, monospace); color: var(--uic-ink-2, #3A3D45);
|
|
128
|
+
background: var(--uic-brand-faint, #EFF3FF); border-radius: 6px; padding: 1px 7px; }
|
|
129
|
+
.wbx-act-exp { color: var(--uic-mute, #5B5D66); display: inline-flex; }
|
|
130
|
+
.wbx-act-v { font-size: 12.5px; color: var(--uic-mute, #5B5D66); white-space: pre-wrap; margin-top: 3px; line-height: 1.55; }
|
|
131
|
+
.wbx-act-detail { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
|
|
132
|
+
.wbx-act-block { border: 1px solid var(--uic-line, #DDDFE6); border-radius: 10px; overflow: hidden; }
|
|
133
|
+
.wbx-act-block-h { font-size: 11.5px; font-weight: 700; color: var(--uic-ink-2, #3A3D45); padding: 7px 12px 0; }
|
|
134
|
+
.wbx-act-pre { margin: 0; padding: 6px 12px 12px; font-family: var(--uic-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 11.5px;
|
|
135
|
+
line-height: 1.5; color: var(--uic-ink, #111317); white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
|
|
136
|
+
|
|
137
|
+
/* ── live "working" indicator: shown below the last row for the WHOLE running turn ── */
|
|
138
|
+
.wbx-working { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--uic-working-ink, inherit); font-size: 13px; }
|
|
139
|
+
.wbx-working-dots { display: inline-flex; gap: 4px; }
|
|
140
|
+
.wbx-working-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--uic-brand, #285AFF); opacity: .4;
|
|
141
|
+
animation: wbxblink 1.4s infinite ease-in-out; }
|
|
142
|
+
.wbx-working-dots span:nth-child(2) { animation-delay: .2s; } .wbx-working-dots span:nth-child(3) { animation-delay: .4s; }
|
|
143
|
+
.wbx-working-txt { animation: wbxbreath 1.8s ease-in-out infinite; }
|
|
144
|
+
@keyframes wbxblink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .9; } }
|
|
145
|
+
@keyframes wbxbreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
|
|
146
|
+
|
|
147
|
+
/* ── terminal-state badges on a turn (never color-only: glyph + text) ── */
|
|
148
|
+
.wbx-turnbadge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px;
|
|
149
|
+
border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
|
|
150
|
+
.wbx-turnbadge.failed { color: var(--uic-fail-ink, #b91c1c); border-color: var(--uic-fail-line, #fecaca); background: var(--uic-fail-bg, #fef2f2); }
|
|
151
|
+
.wbx-turnbadge.cancelled { color: var(--uic-cancel-ink, #52525b); border-color: var(--uic-cancel-line, #e4e4e7); background: var(--uic-cancel-bg, #fafafa); }
|
|
152
|
+
.wbx-turnbadge.incomplete { color: var(--uic-incomplete-ink, #92400e); border-color: var(--uic-incomplete-line, #fde68a); background: var(--uic-incomplete-bg, #fffbeb); }
|
|
153
|
+
|
|
154
|
+
/* ── composer: textarea + bottom action row (attach … accessories … send) ── */
|
|
155
|
+
.wbx-composer { flex-shrink: 0; margin: 0 22px 18px; border: 1px solid var(--uic-line, #DDDFE6); border-radius: 16px;
|
|
156
|
+
background: var(--uic-surface, #FFFFFF);
|
|
157
|
+
box-shadow: var(--uic-shadow-1, 0 1px 2px rgba(17,24,39,.04), 0 1px 1px rgba(17,24,39,.03)); padding: 12px 14px 10px; }
|
|
158
|
+
.wbx-composer-input { width: 100%; border: none; outline: none; resize: none; font-size: var(--uic-font-md, 14px); font-family: inherit;
|
|
159
|
+
background: transparent; color: var(--uic-ink, #111317); line-height: 1.5; overflow-y: auto;
|
|
160
|
+
/* auto-grows in JS up to ~15 rows, then scrolls */
|
|
161
|
+
max-height: calc(var(--uic-font-md, 14px) * 1.5 * 15); }
|
|
162
|
+
.wbx-composer-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
|
|
163
|
+
/* ── pane resizer (useResizablePane + PaneResizer) ── */
|
|
164
|
+
.uic-vresize { flex: 0 0 7px; align-self: stretch; cursor: col-resize; background: transparent; }
|
|
165
|
+
.uic-vresize:hover { background: var(--uic-brand-soft, #E1E9FF); }
|
|
166
|
+
/* While dragging, neutralize embedded iframes + selection so mouseup always lands. */
|
|
167
|
+
body.uic-resizing { user-select: none; cursor: col-resize; }
|
|
168
|
+
body.uic-resizing iframe { pointer-events: none; }
|
|
169
|
+
|
|
170
|
+
/* default send button (products usually replace via renderSend) */
|
|
171
|
+
.uic-send { width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; border: none;
|
|
172
|
+
background: var(--uic-brand, #285AFF); color: #fff; cursor: pointer;
|
|
173
|
+
display: inline-flex; align-items: center; justify-content: center; }
|
|
174
|
+
.uic-send:hover:not(:disabled) { background: var(--uic-brand-ink, #1641D8); }
|
|
175
|
+
.uic-send:disabled { opacity: .5; cursor: not-allowed; }
|
package/styles/sheet.css
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/* SheetGrid — shared spreadsheet grid styles (UI Core). Product-neutral;
|
|
2
|
+
uses --brand/--line/etc tokens so each host (Sheets, studio Spaces) themes
|
|
3
|
+
it with its own palette. */
|
|
4
|
+
.shg { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
5
|
+
.shg-scroll { flex: 1; min-height: 0; overflow: auto; }
|
|
6
|
+
.shg-table { border-collapse: collapse; font-size: 13px; width: max-content; min-width: 100%; }
|
|
7
|
+
|
|
8
|
+
.shg-table th, .shg-table td {
|
|
9
|
+
border: 1px solid var(--line, #E5E7EB);
|
|
10
|
+
padding: 0; height: 34px; box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
.shg-corner, .shg-rownum {
|
|
13
|
+
background: var(--surface-2, #FAFBFD);
|
|
14
|
+
text-align: center; color: var(--mute-2, #9CA3AF); font-variant-numeric: tabular-nums;
|
|
15
|
+
position: sticky; left: 0; z-index: 3;
|
|
16
|
+
}
|
|
17
|
+
.shg-corner { z-index: 6; }
|
|
18
|
+
.shg-rownum span { font-size: 11px; }
|
|
19
|
+
.shg-rowdel {
|
|
20
|
+
position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
|
|
21
|
+
border: none; background: transparent; color: var(--mute-2, #9CA3AF);
|
|
22
|
+
cursor: pointer; font-size: 14px; line-height: 1; opacity: 0; padding: 2px;
|
|
23
|
+
}
|
|
24
|
+
.shg-table tr:hover .shg-rowdel { opacity: 1; }
|
|
25
|
+
|
|
26
|
+
.shg-col { min-width: 180px; max-width: 420px; background: var(--surface, #fff); position: sticky; top: 0; z-index: 4; }
|
|
27
|
+
.shg-col-compute { background: var(--brand-50, #ECFEFF); }
|
|
28
|
+
.shg-col-h { padding: 6px 10px; }
|
|
29
|
+
.shg-colhdr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
30
|
+
.shg-colhdr-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
|
|
31
|
+
.shg-colname { font-weight: 600; color: var(--ink, #111827); cursor: default;
|
|
32
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
|
|
33
|
+
.shg-colname-input { font-weight: 600; font-size: 13px; border: 1px solid var(--brand, #0E7490);
|
|
34
|
+
border-radius: 4px; padding: 1px 4px; width: 150px; font-family: inherit; }
|
|
35
|
+
.shg-coltype { font-size: 10px; color: var(--mute, #6B7280); text-transform: uppercase; letter-spacing: .03em; }
|
|
36
|
+
.shg-coltype.compute { color: var(--brand, #0E7490); font-weight: 600; }
|
|
37
|
+
.shg-colhdr-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
|
|
38
|
+
.shg-colrun {
|
|
39
|
+
font-size: 11px; font-weight: 600; color: var(--brand, #0E7490);
|
|
40
|
+
background: var(--surface, #fff); border: 1px solid var(--brand-soft, #CFFAFE);
|
|
41
|
+
border-radius: 6px; padding: 2px 8px; cursor: pointer; white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
.shg-colrun:hover { background: var(--brand-50, #ECFEFF); }
|
|
44
|
+
.shg-coldel, .shg-add {
|
|
45
|
+
border: none; background: transparent; color: var(--mute-2, #9CA3AF);
|
|
46
|
+
cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 4px;
|
|
47
|
+
}
|
|
48
|
+
.shg-coldel:hover { background: var(--hot-soft, #FEE4E4); color: #B91C1C; }
|
|
49
|
+
.shg-add:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #111827); }
|
|
50
|
+
.shg-add-col { width: auto; min-width: 40px; text-align: left; background: var(--surface, #fff); position: sticky; top: 0; z-index: 4; }
|
|
51
|
+
|
|
52
|
+
.shg-cell { cursor: text; background: var(--surface, #fff); }
|
|
53
|
+
.shg-cell-compute { cursor: default; }
|
|
54
|
+
.shg-cell:hover { background: var(--surface-2, #FAFBFD); }
|
|
55
|
+
.shg-val { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 100%; }
|
|
56
|
+
.shg-val-txt {
|
|
57
|
+
flex: 1; min-width: 0; color: var(--ink, #111827);
|
|
58
|
+
/* Wrap to the row's height; the last visible line ellipsizes. Rows at the
|
|
59
|
+
default height clamp to one line (classic sheet behavior); taller rows
|
|
60
|
+
show more lines. --shg-clamp is set per row from its height. */
|
|
61
|
+
display: -webkit-box; -webkit-box-orient: vertical;
|
|
62
|
+
-webkit-line-clamp: var(--shg-clamp, 1);
|
|
63
|
+
overflow: hidden; white-space: normal; word-break: break-word;
|
|
64
|
+
line-height: 18px;
|
|
65
|
+
}
|
|
66
|
+
.shg-input { width: 100%; height: 100%; border: 2px solid var(--brand, #0E7490); padding: 0 8px;
|
|
67
|
+
font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box; }
|
|
68
|
+
.shg-runcell {
|
|
69
|
+
border: none; background: transparent; color: var(--brand, #0E7490); cursor: pointer;
|
|
70
|
+
font-size: 10px; opacity: 0; flex-shrink: 0; padding: 2px 4px;
|
|
71
|
+
}
|
|
72
|
+
.shg-cell:hover .shg-runcell { opacity: 1; }
|
|
73
|
+
|
|
74
|
+
/* Computed cell status tints + dot */
|
|
75
|
+
.shg-cell-running { background: #EFF6FF; }
|
|
76
|
+
.shg-cell-failed { background: #FEF2F2; }
|
|
77
|
+
.shg-cell-skipped { opacity: .6; }
|
|
78
|
+
.shg-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; background: var(--mute-2, #9CA3AF); }
|
|
79
|
+
.shg-dot-running { background: #2563EB; animation: shg-pulse 1s ease-in-out infinite; }
|
|
80
|
+
.shg-dot-done { background: #10B981; }
|
|
81
|
+
.shg-dot-failed { background: #EF4444; }
|
|
82
|
+
.shg-dot-skipped { background: #CBD5E1; }
|
|
83
|
+
@keyframes shg-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
|
|
84
|
+
|
|
85
|
+
.shg-add-row {
|
|
86
|
+
align-self: flex-start; margin: 8px; padding: 6px 14px; border-radius: 8px;
|
|
87
|
+
border: 1px dashed var(--line, #E5E7EB); background: var(--surface, #fff);
|
|
88
|
+
color: var(--mute, #6B7280); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
|
|
89
|
+
}
|
|
90
|
+
.shg-add-row:hover { border-color: var(--brand, #0E7490); color: var(--brand, #0E7490); }
|
|
91
|
+
|
|
92
|
+
/* ── Typed cell values ─────────────────────────────────────────────────── */
|
|
93
|
+
.shg-pill {
|
|
94
|
+
display: inline-flex; align-items: center; max-width: 100%;
|
|
95
|
+
padding: 1.5px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
|
|
96
|
+
color: #1F2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
97
|
+
}
|
|
98
|
+
.shg-pills { display: flex; gap: 4px; overflow: hidden; flex: 1; min-width: 0;
|
|
99
|
+
flex-wrap: wrap; max-height: 100%; align-content: center; }
|
|
100
|
+
.shg-check {
|
|
101
|
+
width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line, #D1D5DB);
|
|
102
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
103
|
+
font-size: 12px; font-weight: 700; color: #fff; background: var(--surface, #fff);
|
|
104
|
+
}
|
|
105
|
+
.shg-check.on { background: var(--brand, #059669); border-color: var(--brand, #059669); }
|
|
106
|
+
.shg-link { color: var(--brand, #059669); text-decoration: none; overflow: hidden;
|
|
107
|
+
text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
|
|
108
|
+
.shg-link:hover { text-decoration: underline; }
|
|
109
|
+
.shg-num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
110
|
+
|
|
111
|
+
/* Select cell popover (click a pill to set) */
|
|
112
|
+
.shg-select-pop {
|
|
113
|
+
position: absolute; z-index: 30; margin-top: 2px; min-width: 160px;
|
|
114
|
+
background: var(--surface, #fff); border: 1px solid var(--line, #E5E7EB);
|
|
115
|
+
border-radius: 10px; box-shadow: 0 12px 28px -8px rgba(15,23,42,.18);
|
|
116
|
+
padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
|
|
117
|
+
}
|
|
118
|
+
.shg-pill-btn { border: none; cursor: pointer; font-family: inherit; }
|
|
119
|
+
.shg-pill-btn:hover { filter: brightness(.95); }
|
|
120
|
+
.shg-pop-clear, .shg-pop-note {
|
|
121
|
+
font-size: 11.5px; color: var(--mute, #6B7280); border: none; background: transparent;
|
|
122
|
+
cursor: pointer; padding: 2px 4px; font-family: inherit;
|
|
123
|
+
}
|
|
124
|
+
.shg-pop-clear:hover { color: var(--ink, #111827); }
|
|
125
|
+
.shg-cell { position: relative; }
|
|
126
|
+
|
|
127
|
+
/* ── Column config menu ────────────────────────────────────────────────── */
|
|
128
|
+
.shg-colhdr { position: relative; }
|
|
129
|
+
.shg-colmenu-btn {
|
|
130
|
+
border: none; background: transparent; color: var(--mute-2, #9CA3AF);
|
|
131
|
+
cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 6px; border-radius: 5px;
|
|
132
|
+
}
|
|
133
|
+
.shg-colmenu-btn:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #111827); }
|
|
134
|
+
.shg-menu {
|
|
135
|
+
position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 250px;
|
|
136
|
+
background: var(--surface, #fff); border: 1px solid var(--line, #E5E7EB);
|
|
137
|
+
border-radius: 12px; box-shadow: 0 16px 40px -10px rgba(15,23,42,.22);
|
|
138
|
+
padding: 12px; display: flex; flex-direction: column; gap: 10px;
|
|
139
|
+
font-weight: 400; text-align: left; cursor: default;
|
|
140
|
+
}
|
|
141
|
+
.shg-menu-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 11px;
|
|
142
|
+
font-weight: 600; color: var(--mute, #6B7280); }
|
|
143
|
+
.shg-menu-input {
|
|
144
|
+
font-family: inherit; font-size: 12.5px; font-weight: 400; color: var(--ink, #111827);
|
|
145
|
+
border: 1px solid var(--line, #E5E7EB); border-radius: 7px; padding: 5px 8px;
|
|
146
|
+
background: var(--surface, #fff); resize: vertical;
|
|
147
|
+
}
|
|
148
|
+
.shg-menu-input:focus { outline: none; border-color: var(--brand, #059669); }
|
|
149
|
+
.shg-menu-deps { display: flex; flex-direction: column; gap: 3px; margin-top: 3px;
|
|
150
|
+
max-height: 110px; overflow: auto; }
|
|
151
|
+
.shg-menu-dep { display: flex; align-items: center; gap: 6px; font-size: 12px;
|
|
152
|
+
font-weight: 400; color: var(--ink-2, #374151); cursor: pointer; }
|
|
153
|
+
.shg-menu-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
|
|
154
|
+
.shg-menu-del {
|
|
155
|
+
border: none; background: transparent; color: #B91C1C; font-size: 12px; font-weight: 600;
|
|
156
|
+
cursor: pointer; padding: 5px 8px; border-radius: 7px; font-family: inherit;
|
|
157
|
+
}
|
|
158
|
+
.shg-menu-del:hover { background: var(--hot-soft, #FEE4E4); }
|
|
159
|
+
.shg-menu-apply {
|
|
160
|
+
border: none; background: var(--brand, #059669); color: #fff; font-size: 12.5px;
|
|
161
|
+
font-weight: 600; cursor: pointer; padding: 6px 16px; border-radius: 8px; font-family: inherit;
|
|
162
|
+
}
|
|
163
|
+
.shg-menu-apply:hover { filter: brightness(1.06); }
|
|
164
|
+
|
|
165
|
+
/* ── Resize handles ─────────────────────────────────────────────────────── */
|
|
166
|
+
.shg-col { position: relative; }
|
|
167
|
+
.shg-resize-col {
|
|
168
|
+
position: absolute; top: 0; right: -3px; width: 7px; height: 100%;
|
|
169
|
+
cursor: col-resize; z-index: 5;
|
|
170
|
+
}
|
|
171
|
+
.shg-resize-col:hover { background: var(--brand-soft, #A7F3D0); opacity: .7; }
|
|
172
|
+
.shg-resize-row {
|
|
173
|
+
position: absolute; left: 0; bottom: 0; height: 6px; width: 100%;
|
|
174
|
+
cursor: row-resize; z-index: 5;
|
|
175
|
+
}
|
|
176
|
+
.shg-resize-row:hover { background: var(--brand-soft, #A7F3D0); opacity: .7; }
|
|
177
|
+
.shg-cell, .shg-rownum { overflow: hidden; }
|
|
178
|
+
|
|
179
|
+
/* ── Ghost add-row (Airtable-style, attached to the grid) ───────────────── */
|
|
180
|
+
.shg-ghost-row { cursor: pointer; }
|
|
181
|
+
.shg-ghost-row td { border-color: var(--line, #E5E7EB); background: var(--surface, #fff); }
|
|
182
|
+
.shg-ghost-num { color: var(--mute-2, #9CA3AF); font-size: 15px !important; }
|
|
183
|
+
.shg-ghost-cell { color: var(--mute-2, #9CA3AF); font-size: 12.5px; padding: 0 10px !important; }
|
|
184
|
+
.shg-ghost-row:hover td { background: var(--brand-50, #ECFDF5); }
|
|
185
|
+
.shg-ghost-row:hover .shg-ghost-num, .shg-ghost-row:hover .shg-ghost-cell { color: var(--brand, #059669); }
|
|
186
|
+
|
|
187
|
+
/* ── Resource refs ──────────────────────────────────────────────────────── */
|
|
188
|
+
.shg-refimg { max-height: 60px; max-width: 100%; border-radius: 6px; display: block; padding: 3px 0; }
|
|
189
|
+
.shg-refchip {
|
|
190
|
+
display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
|
|
191
|
+
padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
|
|
192
|
+
background: var(--surface-2, #F3F4F6); color: var(--ink-2, #374151);
|
|
193
|
+
border: 1px solid var(--line, #E5E7EB); white-space: nowrap;
|
|
194
|
+
}
|
|
195
|
+
.shg-refchip-btn { cursor: pointer; font-family: inherit; }
|
|
196
|
+
.shg-refchip-btn:hover { border-color: var(--brand, #059669); color: var(--brand, #059669); }
|
|
197
|
+
.shg-refchip-ic { font-size: 12px; }
|
|
198
|
+
.shg-refchip-name { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
|
|
199
|
+
.shg-ref-pop { min-width: 220px; }
|
|
200
|
+
.shg-ref-pop .shg-menu-actions { width: 100%; }
|
|
201
|
+
|
|
202
|
+
/* Portaled popovers: the outer portal div carries the box look; the inner
|
|
203
|
+
wrapper (click-shield / outside-click ref) restores the column layout. */
|
|
204
|
+
.shg-menu > div, .shg-ref-pop > div { display: flex; flex-direction: column; gap: 10px; }
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
/* ── Bottom tab bar (Google-Sheets style; rendered by the host product) ── */
|
|
208
|
+
.shg-tabs {
|
|
209
|
+
display: flex; align-items: center; gap: 2px; flex-shrink: 0;
|
|
210
|
+
border-top: 1px solid var(--line, #E5E7EB); background: var(--surface-2, #FAFBFD);
|
|
211
|
+
padding: 0 8px; height: 38px; overflow-x: auto;
|
|
212
|
+
}
|
|
213
|
+
.shg-tab-add {
|
|
214
|
+
border: none; background: transparent; color: var(--mute, #6B7280);
|
|
215
|
+
font-size: 17px; cursor: pointer; padding: 2px 10px; border-radius: 7px; line-height: 1;
|
|
216
|
+
}
|
|
217
|
+
.shg-tab-add:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #111827); }
|
|
218
|
+
.shg-tab {
|
|
219
|
+
display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
|
|
220
|
+
background: transparent; color: var(--ink-2, #374151); font-size: 13px; font-weight: 600;
|
|
221
|
+
font-family: inherit; padding: 8px 14px; border-radius: 8px 8px 0 0; white-space: nowrap;
|
|
222
|
+
border-bottom: 2.5px solid transparent;
|
|
223
|
+
}
|
|
224
|
+
.shg-tab:hover { background: var(--line-soft, #EFF1F4); }
|
|
225
|
+
.shg-tab.active { color: var(--brand, #059669); background: var(--surface, #fff);
|
|
226
|
+
border-bottom-color: var(--brand, #059669); }
|
|
227
|
+
.shg-tab-name-input {
|
|
228
|
+
font: inherit; font-weight: 600; width: 110px; border: 1px solid var(--brand, #059669);
|
|
229
|
+
border-radius: 5px; padding: 1px 6px;
|
|
230
|
+
}
|
|
231
|
+
.shg-tab-del { border: none; background: transparent; color: var(--mute-2, #9CA3AF);
|
|
232
|
+
cursor: pointer; font-size: 13px; padding: 0 2px; opacity: 0; }
|
|
233
|
+
.shg-tab:hover .shg-tab-del { opacity: 1; }
|
|
234
|
+
.shg-tab-del:hover { color: #B91C1C; }
|
|
235
|
+
|
|
236
|
+
/* ── Drag-to-reorder (columns via header, rows via number cell) ─────────── */
|
|
237
|
+
.shg-rownum { cursor: grab; }
|
|
238
|
+
.shg-rownum:active { cursor: grabbing; }
|
|
239
|
+
.shg-col[draggable="true"] { cursor: grab; }
|
|
240
|
+
.shg-dragging { opacity: .45; }
|
|
241
|
+
.shg-drop-before { box-shadow: inset 3px 0 0 var(--brand, #059669); }
|
|
242
|
+
.shg-drop-after { box-shadow: inset -3px 0 0 var(--brand, #059669); }
|
|
243
|
+
.shg-drop-above { box-shadow: inset 0 3px 0 var(--brand, #059669); }
|
|
244
|
+
.shg-drop-below { box-shadow: inset 0 -3px 0 var(--brand, #059669); }
|
|
245
|
+
|
|
246
|
+
/* ── Presence: a peer is editing this cell ──────────────────────────────── */
|
|
247
|
+
.shg-cell-peer { position: relative; }
|
|
248
|
+
.shg-peer-flag {
|
|
249
|
+
position: absolute; top: -1px; left: -1px; z-index: 4;
|
|
250
|
+
font-size: 9.5px; font-weight: 700; color: #fff; line-height: 1;
|
|
251
|
+
padding: 2px 6px; border-radius: 0 0 6px 0; max-width: 140px;
|
|
252
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* ── Presence: collaborator avatars docked beside the account avatar
|
|
256
|
+
(Google-Docs style: same scale, slight overlap, white ring) ─────────── */
|
|
257
|
+
.sh-people { display: flex; align-items: center; }
|
|
258
|
+
.sh-people .sh-peer-dot {
|
|
259
|
+
border: 2px solid var(--surface, #fff); margin-right: -7px;
|
|
260
|
+
text-transform: uppercase; cursor: default; position: relative; z-index: 1;
|
|
261
|
+
}
|
|
262
|
+
.sh-people .av:last-child { margin-right: 0; position: relative; z-index: 2; }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Shared deck renderer styles — element selection ring + the presentation
|
|
2
|
+
control pill. Element visuals come from inline styles (theme-var driven) so
|
|
3
|
+
a deck renders identically wherever SlideView is mounted. */
|
|
4
|
+
.sl-el-selected { outline: 2.5px solid var(--sl-brand, #4F46E5); outline-offset: 2px; border-radius: 2px; }
|
|
5
|
+
|
|
6
|
+
/* Presentation chrome: one floating pill, bottom-center. Hidden while the
|
|
7
|
+
presenter is still; fades in with the cursor on mouse move. */
|
|
8
|
+
.sl-present-pill {
|
|
9
|
+
position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(6px);
|
|
10
|
+
display: flex; align-items: center; gap: 6px; padding: 8px 12px;
|
|
11
|
+
background: rgba(16, 18, 27, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
|
|
12
|
+
border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 999px;
|
|
13
|
+
box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
|
|
14
|
+
opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
|
|
15
|
+
}
|
|
16
|
+
.sl-present-pill.awake { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
|
|
17
|
+
.sl-pp-btn {
|
|
18
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
19
|
+
width: 34px; height: 34px; border-radius: 999px; border: none; cursor: pointer;
|
|
20
|
+
background: transparent; color: #E7EAF2;
|
|
21
|
+
}
|
|
22
|
+
.sl-pp-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
|
|
23
|
+
.sl-pp-btn:disabled { opacity: 0.35; cursor: default; }
|
|
24
|
+
.sl-pp-count { font-size: 12.5px; color: #B9C0CF; padding: 0 6px; font-variant-numeric: tabular-nums; }
|
|
25
|
+
.sl-pp-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.14); margin: 0 2px; }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* UI Core dark preset — for dark-chrome products (e.g. the AI Video Editor).
|
|
2
|
+
Apply by putting .uic-dark on any ancestor of the chat surface. Tune per product by
|
|
3
|
+
overriding individual tokens after this import. */
|
|
4
|
+
.uic-dark {
|
|
5
|
+
--uic-surface: #1E1F24;
|
|
6
|
+
--uic-line: #33353D;
|
|
7
|
+
--uic-ink: #F2F3F7;
|
|
8
|
+
--uic-ink-2: #C9CCD6;
|
|
9
|
+
--uic-mute: #8B8F9C;
|
|
10
|
+
--uic-brand: #7C9AFF;
|
|
11
|
+
--uic-brand-ink: #A3B8FF;
|
|
12
|
+
--uic-brand-soft: rgba(124, 154, 255, .32);
|
|
13
|
+
--uic-brand-faint: rgba(124, 154, 255, .12);
|
|
14
|
+
--uic-ok: #34d399;
|
|
15
|
+
--uic-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
16
|
+
--uic-shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 1px rgba(0, 0, 0, .25);
|
|
17
|
+
--uic-code-block-bg: #0f1117;
|
|
18
|
+
--uic-code-block-ink: #e6e8ee;
|
|
19
|
+
--uic-fail-ink: #f87171; --uic-fail-line: rgba(248, 113, 113, .38); --uic-fail-bg: rgba(248, 113, 113, .10);
|
|
20
|
+
--uic-cancel-ink: #a1a1aa; --uic-cancel-line: rgba(161, 161, 170, .38); --uic-cancel-bg: rgba(161, 161, 170, .10);
|
|
21
|
+
--uic-incomplete-ink: #fbbf24; --uic-incomplete-line: rgba(251, 191, 36, .38); --uic-incomplete-bg: rgba(251, 191, 36, .10);
|
|
22
|
+
--uic-font-md: 14px;
|
|
23
|
+
--uic-turn-pad-x: 28px;
|
|
24
|
+
--uic-bubble-max-w: 80%;
|
|
25
|
+
--uic-working-ink: var(--uic-mute);
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* UI Core light preset — the HarnessRouter palette (the extraction's source of truth).
|
|
2
|
+
Apply by putting .uic-light on any ancestor of the chat surface, or copy these values into
|
|
3
|
+
your own token layer (see styles/chat.css for the contract). */
|
|
4
|
+
.uic-light {
|
|
5
|
+
--uic-surface: #FFFFFF;
|
|
6
|
+
--uic-line: #DDDFE6;
|
|
7
|
+
--uic-ink: #111317;
|
|
8
|
+
--uic-ink-2: #3A3D45;
|
|
9
|
+
--uic-mute: #5B5D66;
|
|
10
|
+
--uic-brand: #285AFF;
|
|
11
|
+
--uic-brand-ink: #1641D8;
|
|
12
|
+
--uic-brand-soft: #E1E9FF;
|
|
13
|
+
--uic-brand-faint: #EFF3FF;
|
|
14
|
+
--uic-ok: #16a34a;
|
|
15
|
+
--uic-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
16
|
+
--uic-shadow-1: 0 1px 2px rgba(17, 24, 39, .04), 0 1px 1px rgba(17, 24, 39, .03);
|
|
17
|
+
--uic-code-block-bg: #0f1117;
|
|
18
|
+
--uic-code-block-ink: #e6e8ee;
|
|
19
|
+
--uic-fail-ink: #b91c1c; --uic-fail-line: #fecaca; --uic-fail-bg: #fef2f2;
|
|
20
|
+
--uic-cancel-ink: #52525b; --uic-cancel-line: #e4e4e7; --uic-cancel-bg: #fafafa;
|
|
21
|
+
--uic-incomplete-ink: #92400e; --uic-incomplete-line: #fde68a; --uic-incomplete-bg: #fffbeb;
|
|
22
|
+
--uic-font-md: 14px;
|
|
23
|
+
--uic-turn-pad-x: 28px;
|
|
24
|
+
--uic-bubble-max-w: 80%;
|
|
25
|
+
--uic-working-ink: var(--uic-mute);
|
|
26
|
+
}
|