@pepperui/css 2.0.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/README.md +123 -0
- package/dist/pepper-ui.css +5024 -0
- package/package.json +38 -0
- package/src/base.css +96 -0
- package/src/components/alert-dialog.css +50 -0
- package/src/components/alert.css +75 -0
- package/src/components/avatar.css +47 -0
- package/src/components/badge.css +61 -0
- package/src/components/breadcrumb.css +40 -0
- package/src/components/bullet-list.css +58 -0
- package/src/components/button-group.css +51 -0
- package/src/components/button.css +165 -0
- package/src/components/calendar.css +118 -0
- package/src/components/card.css +114 -0
- package/src/components/chat.css +473 -0
- package/src/components/checkbox.css +105 -0
- package/src/components/collapsible.css +121 -0
- package/src/components/combobox.css +71 -0
- package/src/components/command.css +62 -0
- package/src/components/date-picker.css +45 -0
- package/src/components/dialog.css +105 -0
- package/src/components/dropdown-menu.css +93 -0
- package/src/components/empty.css +67 -0
- package/src/components/field.css +68 -0
- package/src/components/footer.css +122 -0
- package/src/components/heading-pair.css +57 -0
- package/src/components/icon-button.css +29 -0
- package/src/components/icon-list.css +65 -0
- package/src/components/input-group.css +92 -0
- package/src/components/input.css +84 -0
- package/src/components/insight-block.css +63 -0
- package/src/components/item.css +67 -0
- package/src/components/kbd.css +36 -0
- package/src/components/kpi-tile.css +104 -0
- package/src/components/label.css +22 -0
- package/src/components/layout-utilities.css +115 -0
- package/src/components/logo-grid.css +125 -0
- package/src/components/native-select.css +78 -0
- package/src/components/navigation-menu.css +123 -0
- package/src/components/pagination.css +35 -0
- package/src/components/popover.css +48 -0
- package/src/components/progress.css +42 -0
- package/src/components/questionnaire.css +51 -0
- package/src/components/radio.css +41 -0
- package/src/components/select.css +179 -0
- package/src/components/sheet.css +67 -0
- package/src/components/sidebar.css +108 -0
- package/src/components/skeleton.css +38 -0
- package/src/components/slider.css +117 -0
- package/src/components/spinner.css +32 -0
- package/src/components/states.css +54 -0
- package/src/components/stepper.css +76 -0
- package/src/components/switch.css +98 -0
- package/src/components/table.css +139 -0
- package/src/components/tabs.css +104 -0
- package/src/components/textarea.css +16 -0
- package/src/components/toast.css +78 -0
- package/src/components/toggle-group.css +22 -0
- package/src/components/toggle.css +86 -0
- package/src/components/tooltip.css +54 -0
- package/src/components/topbar.css +36 -0
- package/src/components/typography.css +83 -0
- package/src/ground.css +78 -0
- package/src/index.css +77 -0
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
/* chat.css — Chat · Message · Bubble · Suggestions · Projection · Attachment · Marker · Composer · Message scroller
|
|
2
|
+
* (10_COMPONENTS.md § Chat — Echo AI).
|
|
3
|
+
*
|
|
4
|
+
* 3.9.1 — THE CHAT IS FEDOR'S, NOT PAGGY'S. Until 2026-09-21 these parts were Paggy's app.css re-cut, and the
|
|
5
|
+
* concept he drew lived on the docs site as a preview card (`.pui-echo`, site CSS) which its own comment promised
|
|
6
|
+
* to delete "when the chat row lands". This is that row. The master is `Card/Chat` node `3911:8733` of the frozen
|
|
7
|
+
* site file `rP1q5erxNQKyUuxqPmPZBU` (D26: read it, never write to it), read in full 2026-09-21 — strip, messages,
|
|
8
|
+
* composer. The preview card only ever showed a 286 px fragment of it; the master also carries a suggestions table
|
|
9
|
+
* and a row of projection chips inside Echo's bubble, and both are built here.
|
|
10
|
+
*
|
|
11
|
+
* THE RULE THIS UNIT WAS BUILT UNDER (his word, 2026-09-21): *"redesign everything I redesigned… if you don't see
|
|
12
|
+
* these different states in my solution, okay, use what we have for this. If I didn't redesign it, then use it."*
|
|
13
|
+
* A master governs what it depicts; silence in it is the system's existing answer, still standing. So REDESIGNED
|
|
14
|
+
* from the master: the shell and its branded strip, both bubble roles, the avatars, the actions row, the
|
|
15
|
+
* suggestions table, the projection chips, the composer. KEPT AS THE SYSTEM ALREADY HAD THEM, untouched below:
|
|
16
|
+
* Attachment, Marker, the thinking state, the feedback row and the scroller's Jump to latest.
|
|
17
|
+
*
|
|
18
|
+
* What the master changes about a chat: the user's turn is a QUIET surface/card bubble at the right with its time
|
|
19
|
+
* inside it (the old one was a dark surface/inverse slab); Echo's is WHITE with a hairline and holds an actions
|
|
20
|
+
* row; both turns carry a 36 avatar; a branded strip sits at the top; and the composer is ONE LINE with a
|
|
21
|
+
* LABELLED button instead of a floating 760 card with two round icon buttons.
|
|
22
|
+
*
|
|
23
|
+
* Every value is a token. EIGHT STATED SUBSTITUTIONS, all of them the site file's palette and space scale meeting
|
|
24
|
+
* ours, none of them a change of intent:
|
|
25
|
+
* a. the master's ink and button fill are #171717, which is not in our palette — text/default and
|
|
26
|
+
* action/primary/bg (#0b0202, neutral/900) do that job and are one step darker.
|
|
27
|
+
* a2. the master's small grey (#858080) is text/subtle's value, and text/subtle is PROMISED ONLY for the
|
|
28
|
+
* subheading job at 24 px and over (the contrast matrix, U12 / D43): at 12 px its floor is 4.5 and it
|
|
29
|
+
* measures 3.49 on the card ground and 3.89 on white. The system's small grey is text/caption, so the
|
|
30
|
+
* meta lines, the suggestions head and the projection labels take it. Likewise the master's green
|
|
31
|
+
* (#74af36) is status/success/SOLID, which the matrix exempts as a GLYPH at the 3.0 non-text floor and
|
|
32
|
+
* not as type (2.65 on white), so the budget figures and a good projection value were built on
|
|
33
|
+
* status/success/fg (6.56) — and on the rendered table Fedor changed them back to the SOLID, his master's
|
|
34
|
+
* own green: *"this green color is wrong here… I want solid green color status."* It is in the contrast
|
|
35
|
+
* matrix as an exempt figure, and it is never the only cue — the column is headed BUDGET in words.
|
|
36
|
+
* The small grey stands as text/caption: his design in the role the system promises for the job.
|
|
37
|
+
* b. the master's Input instance strokes #E5E5E5; the master uses OUR Input component, so the component's own
|
|
38
|
+
* border/default supplies it (his rule: not redesigned, so use ours). Button likewise — its 8/16, radius/8,
|
|
39
|
+
* 14/20 already match the master to the pixel, so `.pui-button` is used as it stands.
|
|
40
|
+
* c. paddings off the 4-step scale go to the nearest step on it: 10 -> space/12, 5 -> space/4, 2 stays space/2.
|
|
41
|
+
* d. gaps of 6 -> space/4.
|
|
42
|
+
* e. the user bubble keeps the master's 820 — every user turn is the same width whatever its length, which
|
|
43
|
+
* is what he drew — with `max-width: 100%` so it shrinks rather than overflowing a narrow host.
|
|
44
|
+
* f. Echo's bubble is 10px 20px on the master's first instance and 12px 20px on its second; 12 is the later of
|
|
45
|
+
* the two and the one on the scale.
|
|
46
|
+
* g. the composer's upward blur (0 -1px 17.6px 6px rgba(0,0,0,.09)) is dropped: there is no upward elevation
|
|
47
|
+
* token, and the 1 px border/default top line carries the same lift off the log.
|
|
48
|
+
* h. the strip's five 35 px-blurred ellipses under a 45 % white wash are drawn as the linear-gradient they
|
|
49
|
+
* resolve to at 49 px tall — stops at the ellipse centres (11 / 17 / 45 / 71 / 92 % of 1092), the same five
|
|
50
|
+
* hues in the same order. Carried over from the verified preview rather than re-derived.
|
|
51
|
+
*
|
|
52
|
+
* Figma: 272:2216 · 272:2173 · 272:2250 · 272:2261 · 272:2351 · 272:2266 (the library page, re-cut in 3.9.2).
|
|
53
|
+
* Contracts: registry/chat, message, bubble, suggestions, projection, attachment, marker, composer, message-scroller.
|
|
54
|
+
*
|
|
55
|
+
* <div class="pui-chat">
|
|
56
|
+
* <div class="pui-chat__strip"><img class="pui-chat__logo" src="…/echo-ai-wordmark.svg" alt="Echo AI" />
|
|
57
|
+
* <span class="pui-chat__live"><span class="pui-chat__dot"></span>Live · model v4.2</span></div>
|
|
58
|
+
* <div class="pui-message-scroller"><div class="pui-message-scroller__log">
|
|
59
|
+
* <div class="pui-marker pui-marker--divider">Today</div>
|
|
60
|
+
* <div class="pui-message pui-message--user">
|
|
61
|
+
* <div class="pui-bubble pui-bubble--user"><p>…</p><p class="pui-bubble__meta">Anna · 10:42</p></div>
|
|
62
|
+
* <span class="pui-avatar pui-message__avatar"><img src="…/anna.png" alt="" /></span></div>
|
|
63
|
+
* <div class="pui-message pui-message--ai">
|
|
64
|
+
* <img class="pui-message__avatar" src="…/echo-mark.svg" alt="" />
|
|
65
|
+
* <div class="pui-bubble pui-bubble--ai"><p>…</p>
|
|
66
|
+
* <div class="pui-suggestions">…</div>
|
|
67
|
+
* <div class="pui-bubble__actions"><button class="pui-button">Apply suggestions</button>
|
|
68
|
+
* <a class="pui-bubble__link" href="#">Explain the reasoning</a>
|
|
69
|
+
* <span class="pui-bubble__meta pui-bubble__meta--end">Echo · 10:42 · 1.8 s</span></div></div></div>
|
|
70
|
+
* <div class="pui-message pui-message--ai"><img class="pui-message__avatar" src="…" alt="" />
|
|
71
|
+
* <div class="pui-bubble pui-bubble--ai pui-bubble--thinking">Thinking…</div></div></div>
|
|
72
|
+
* <button class="pui-button pui-button--secondary pui-button--small pui-message-scroller__jump">Jump to latest</button></div>
|
|
73
|
+
* <form class="pui-composer">
|
|
74
|
+
* <div class="pui-composer__files"><span class="pui-attachment">…</span></div>
|
|
75
|
+
* <div class="pui-composer__bar"><input class="pui-input" aria-label="Ask Echo" placeholder="Ask Echo about publishers, GEOs, creatives or budget…" />
|
|
76
|
+
* <button class="pui-button" type="button">Ask Echo</button></div></form></div>
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/* ── The shell. One card: strip, log, composer, nothing escaping the 16 radius. */
|
|
80
|
+
.pui-chat {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
overflow: clip;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
width: 100%;
|
|
86
|
+
border: 1px solid var(--pui-border-default);
|
|
87
|
+
border-radius: var(--pui-radius-16);
|
|
88
|
+
background: var(--pui-surface-page);
|
|
89
|
+
font-family: var(--pui-font-family);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* The strip — substitution (h). The wash is the ::before, so the lockup and the pill sit above it. */
|
|
93
|
+
.pui-chat__strip {
|
|
94
|
+
position: relative;
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
gap: var(--pui-space-12);
|
|
99
|
+
padding: var(--pui-space-8) var(--pui-space-24);
|
|
100
|
+
background-image: linear-gradient(
|
|
101
|
+
90deg,
|
|
102
|
+
var(--pui-color-blue-300) 11%,
|
|
103
|
+
var(--pui-color-red-400) 17%,
|
|
104
|
+
var(--pui-color-yellow-400) 45%,
|
|
105
|
+
var(--pui-color-red-300) 71%,
|
|
106
|
+
var(--pui-color-blue-300) 92%
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
.pui-chat__strip::before {
|
|
110
|
+
content: '';
|
|
111
|
+
position: absolute;
|
|
112
|
+
inset: 0;
|
|
113
|
+
background: var(--pui-surface-page);
|
|
114
|
+
opacity: 0.45;
|
|
115
|
+
}
|
|
116
|
+
.pui-chat__logo,
|
|
117
|
+
.pui-chat__live { position: relative; }
|
|
118
|
+
/* The EXPORTED lockup — the spark and the letterforms as one set of vectors (assets/echo/README.md), never a
|
|
119
|
+
glyph beside two spans of type. Height only; the width follows, so the aspect ratio is the file's. */
|
|
120
|
+
.pui-chat__logo {
|
|
121
|
+
display: block;
|
|
122
|
+
width: auto;
|
|
123
|
+
height: var(--pui-space-20);
|
|
124
|
+
}
|
|
125
|
+
.pui-chat__live {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: var(--pui-space-4);
|
|
129
|
+
padding: var(--pui-space-4) var(--pui-space-12);
|
|
130
|
+
border: 1px solid var(--pui-border-default);
|
|
131
|
+
border-radius: var(--pui-radius-full);
|
|
132
|
+
background: var(--pui-surface-page);
|
|
133
|
+
color: var(--pui-text-default);
|
|
134
|
+
font-size: var(--pui-font-size-12);
|
|
135
|
+
font-weight: var(--pui-font-weight-500);
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
}
|
|
138
|
+
.pui-chat__dot {
|
|
139
|
+
flex: none;
|
|
140
|
+
width: var(--pui-space-8);
|
|
141
|
+
height: var(--pui-space-8);
|
|
142
|
+
border-radius: var(--pui-radius-full);
|
|
143
|
+
background: var(--pui-status-success-solid);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* ── The turn. A row: avatar and bubble, 12 apart; the user's is reversed so the avatar lands at the right. */
|
|
147
|
+
.pui-message {
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: flex-start;
|
|
150
|
+
gap: var(--pui-space-12);
|
|
151
|
+
width: 100%;
|
|
152
|
+
font-family: var(--pui-font-family);
|
|
153
|
+
}
|
|
154
|
+
.pui-message--user { justify-content: flex-end; }
|
|
155
|
+
.pui-message__avatar {
|
|
156
|
+
flex: none;
|
|
157
|
+
width: var(--pui-size-control-medium);
|
|
158
|
+
height: var(--pui-size-control-medium);
|
|
159
|
+
border-radius: var(--pui-radius-full);
|
|
160
|
+
}
|
|
161
|
+
/* KEPT (his rule): the feedback row is not in the master, so it stands as the system had it. The author line that
|
|
162
|
+
sat here is GONE (2026-09-21): where the avatar IS the Echo mark, a name and a mark beside it say the same thing
|
|
163
|
+
three times. What marks a turn as generated is the avatar. */
|
|
164
|
+
.pui-message__actions { display: flex; gap: var(--pui-space-2); }
|
|
165
|
+
.pui-message__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--pui-space-4); min-width: 0; }
|
|
166
|
+
|
|
167
|
+
/* ── The bubble. Two roles, and they are no longer a light one and a dark one. */
|
|
168
|
+
.pui-bubble {
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
gap: var(--pui-space-8);
|
|
173
|
+
min-width: 0;
|
|
174
|
+
padding: var(--pui-space-12) var(--pui-space-20);
|
|
175
|
+
border: 1px solid transparent;
|
|
176
|
+
border-radius: var(--pui-radius-16);
|
|
177
|
+
background: var(--pui-surface-page);
|
|
178
|
+
color: var(--pui-text-default);
|
|
179
|
+
font-family: var(--pui-font-family);
|
|
180
|
+
font-size: var(--pui-font-size-16);
|
|
181
|
+
font-weight: var(--pui-font-weight-400);
|
|
182
|
+
line-height: var(--pui-font-line-height-relaxed);
|
|
183
|
+
overflow-wrap: anywhere;
|
|
184
|
+
}
|
|
185
|
+
/* Echo: white, a hairline, and it takes the width left over — the suggestions table needs it. */
|
|
186
|
+
.pui-bubble--ai { border-color: var(--pui-border-default); }
|
|
187
|
+
/* Echo's turn takes the width left over — as the row's own child, or through the body column that holds the
|
|
188
|
+
feedback row under it. The Figma Message is built the same way (D113). */
|
|
189
|
+
.pui-message--ai > .pui-bubble--ai,
|
|
190
|
+
.pui-message__body > .pui-bubble--ai { flex: 1 1 auto; }
|
|
191
|
+
/* The user: a quiet surface, no line, tighter, and its time sits INSIDE it — substitution (e) on the width. */
|
|
192
|
+
.pui-bubble--user {
|
|
193
|
+
gap: var(--pui-space-4);
|
|
194
|
+
width: 820px;
|
|
195
|
+
max-width: 100%;
|
|
196
|
+
padding: var(--pui-space-8) var(--pui-space-16);
|
|
197
|
+
background: var(--pui-surface-card);
|
|
198
|
+
}
|
|
199
|
+
/* KEPT: the thinking state is not in the master. Its `--user` pair is gone with the dark bubble it existed for. */
|
|
200
|
+
.pui-bubble--thinking { color: var(--pui-text-caption); }
|
|
201
|
+
.pui-bubble > p { margin: 0; }
|
|
202
|
+
/* Consecutive PROSE paragraphs are 8 apart. The meta line is not prose — it is the turn's own line and sits at the
|
|
203
|
+
bubble's gap, which is 4 on the user's: without the :not() it took both and rendered 12, where the master's bubble
|
|
204
|
+
is 820 x 86 = 8 + 48 + 4 + 18 + 8. Found by the React twin in 3.9.3, not by the computed-style probe, which read
|
|
205
|
+
the flex gap and never the rendered distance. */
|
|
206
|
+
.pui-bubble > p + p:not(.pui-bubble__meta) { margin-top: var(--pui-space-8); }
|
|
207
|
+
|
|
208
|
+
.pui-bubble__meta {
|
|
209
|
+
color: var(--pui-text-caption);
|
|
210
|
+
font-size: var(--pui-font-size-12);
|
|
211
|
+
font-weight: var(--pui-font-weight-400);
|
|
212
|
+
line-height: var(--pui-font-line-height-normal);
|
|
213
|
+
}
|
|
214
|
+
.pui-bubble__meta--end { margin-inline-start: auto; }
|
|
215
|
+
|
|
216
|
+
/* The actions row — a primary button, the links that follow it, and the meta pushed to the far end. */
|
|
217
|
+
.pui-bubble__actions {
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-wrap: wrap;
|
|
220
|
+
align-items: center;
|
|
221
|
+
gap: var(--pui-space-16);
|
|
222
|
+
}
|
|
223
|
+
.pui-bubble__link {
|
|
224
|
+
color: var(--pui-text-link);
|
|
225
|
+
font-size: var(--pui-font-size-14);
|
|
226
|
+
font-weight: var(--pui-font-weight-500);
|
|
227
|
+
text-decoration: none;
|
|
228
|
+
}
|
|
229
|
+
.pui-bubble__link:hover { text-decoration: underline; }
|
|
230
|
+
.pui-bubble__link:focus-visible { outline: none; box-shadow: var(--pui-ring); border-radius: var(--pui-radius-4); }
|
|
231
|
+
|
|
232
|
+
/* ── Suggestions — Echo's ranked proposal inside its bubble: a sunken block of white rows. */
|
|
233
|
+
.pui-suggestions {
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: column;
|
|
236
|
+
gap: var(--pui-space-8);
|
|
237
|
+
padding: var(--pui-space-12);
|
|
238
|
+
border-radius: var(--pui-radius-8);
|
|
239
|
+
background: var(--pui-surface-card);
|
|
240
|
+
}
|
|
241
|
+
.pui-suggestions__head,
|
|
242
|
+
.pui-suggestions__row {
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
gap: var(--pui-space-12);
|
|
246
|
+
}
|
|
247
|
+
.pui-suggestions__head {
|
|
248
|
+
padding: 0 var(--pui-space-12);
|
|
249
|
+
color: var(--pui-text-caption);
|
|
250
|
+
font-size: var(--pui-font-size-12);
|
|
251
|
+
font-weight: var(--pui-font-weight-600);
|
|
252
|
+
line-height: var(--pui-font-line-height-normal);
|
|
253
|
+
}
|
|
254
|
+
.pui-suggestions__row {
|
|
255
|
+
padding: var(--pui-space-4) var(--pui-space-12);
|
|
256
|
+
border-radius: var(--pui-radius-4);
|
|
257
|
+
background: var(--pui-surface-page);
|
|
258
|
+
font-size: var(--pui-font-size-12);
|
|
259
|
+
line-height: var(--pui-font-line-height-normal);
|
|
260
|
+
}
|
|
261
|
+
.pui-suggestions__name {
|
|
262
|
+
/* 3.9.2 — 130, not the master's 190. The master's names are real ones ("Roku CTV Direct"); ours are numbered
|
|
263
|
+
(no real company stands in the sample data), and at 190 a numbered name left a dead band before the bar.
|
|
264
|
+
Fixed rather than hugging, so the rows still line up; a longer name clips with an ellipsis. */
|
|
265
|
+
flex: none;
|
|
266
|
+
width: 130px;
|
|
267
|
+
min-width: 0;
|
|
268
|
+
overflow: hidden;
|
|
269
|
+
text-overflow: ellipsis;
|
|
270
|
+
white-space: nowrap;
|
|
271
|
+
color: var(--pui-text-default);
|
|
272
|
+
font-weight: var(--pui-font-weight-500);
|
|
273
|
+
}
|
|
274
|
+
.pui-suggestions__head .pui-suggestions__name { font-weight: var(--pui-font-weight-600); }
|
|
275
|
+
/* The measure: a track that fills the row, and its number beside it. */
|
|
276
|
+
.pui-suggestions__bar {
|
|
277
|
+
display: flex;
|
|
278
|
+
flex: 1 1 auto;
|
|
279
|
+
align-items: center;
|
|
280
|
+
gap: var(--pui-space-8);
|
|
281
|
+
min-width: 0;
|
|
282
|
+
}
|
|
283
|
+
.pui-suggestions__track {
|
|
284
|
+
flex: 1 1 auto;
|
|
285
|
+
height: var(--pui-space-8);
|
|
286
|
+
border-radius: var(--pui-radius-full);
|
|
287
|
+
background: var(--pui-surface-card);
|
|
288
|
+
}
|
|
289
|
+
.pui-suggestions__fill {
|
|
290
|
+
/* 3.9.1 — `display: block` is load-bearing: as an inline span this painted NOTHING, because height does
|
|
291
|
+
not apply to an inline box. The rule read correct and the bar was empty until it was rendered. */
|
|
292
|
+
display: block;
|
|
293
|
+
height: 100%;
|
|
294
|
+
border-radius: var(--pui-radius-full);
|
|
295
|
+
background: var(--pui-color-blue-400);
|
|
296
|
+
}
|
|
297
|
+
/* The master steps the hue down on the rows it is less sure of, in step with the confidence pill. */
|
|
298
|
+
.pui-suggestions__row--tentative .pui-suggestions__fill { background: var(--pui-color-blue-300); }
|
|
299
|
+
.pui-suggestions__value {
|
|
300
|
+
flex: none;
|
|
301
|
+
color: var(--pui-text-default);
|
|
302
|
+
font-weight: var(--pui-font-weight-600);
|
|
303
|
+
}
|
|
304
|
+
/* The confidence CELL is 100 wide and right-aligned; the pill inside it hugs its number. One element doing
|
|
305
|
+
both stretched the pill across the whole column. */
|
|
306
|
+
.pui-suggestions__confidence {
|
|
307
|
+
display: flex;
|
|
308
|
+
flex: none;
|
|
309
|
+
align-items: center;
|
|
310
|
+
justify-content: flex-end;
|
|
311
|
+
width: 100px;
|
|
312
|
+
}
|
|
313
|
+
.pui-suggestions__pill {
|
|
314
|
+
display: inline-flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
padding: var(--pui-space-2) var(--pui-space-12);
|
|
317
|
+
border-radius: var(--pui-radius-full);
|
|
318
|
+
background: var(--pui-status-info-bg);
|
|
319
|
+
color: var(--pui-status-info-solid);
|
|
320
|
+
font-weight: var(--pui-font-weight-600);
|
|
321
|
+
}
|
|
322
|
+
.pui-suggestions__row--tentative .pui-suggestions__pill {
|
|
323
|
+
background: var(--pui-status-warning-bg);
|
|
324
|
+
color: var(--pui-status-warning-fg);
|
|
325
|
+
}
|
|
326
|
+
.pui-suggestions__budget {
|
|
327
|
+
flex: none;
|
|
328
|
+
width: 90px;
|
|
329
|
+
/* Fedor, 2026-09-21, on the rendered table: *"this green color is wrong here… I want solid green color
|
|
330
|
+
status."* He was shown the reading (status/success/solid is 2.65 on white as type) and chose it. */
|
|
331
|
+
color: var(--pui-status-success-solid);
|
|
332
|
+
font-weight: var(--pui-font-weight-600);
|
|
333
|
+
text-align: end;
|
|
334
|
+
}
|
|
335
|
+
/* The head's cells are labels, not values — they take the head's own subtle ink, never the column's. */
|
|
336
|
+
.pui-suggestions__head .pui-suggestions__budget { color: inherit; }
|
|
337
|
+
|
|
338
|
+
/* ── Projection chips — the numbers Echo commits to, under the answer that promised them. */
|
|
339
|
+
.pui-projection-row {
|
|
340
|
+
display: flex;
|
|
341
|
+
flex-wrap: wrap;
|
|
342
|
+
align-items: center;
|
|
343
|
+
gap: var(--pui-space-8);
|
|
344
|
+
}
|
|
345
|
+
.pui-projection {
|
|
346
|
+
display: inline-flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
gap: var(--pui-space-4);
|
|
349
|
+
padding: var(--pui-space-4) var(--pui-space-12);
|
|
350
|
+
border-radius: var(--pui-radius-full);
|
|
351
|
+
background: var(--pui-surface-card);
|
|
352
|
+
font-size: var(--pui-font-size-12);
|
|
353
|
+
line-height: var(--pui-font-line-height-normal);
|
|
354
|
+
}
|
|
355
|
+
.pui-projection__label { color: var(--pui-text-caption); }
|
|
356
|
+
.pui-projection__value { color: var(--pui-text-default); font-weight: var(--pui-font-weight-600); }
|
|
357
|
+
.pui-projection__value--good { color: var(--pui-status-success-solid); }
|
|
358
|
+
.pui-projection-row .pui-bubble__meta--end { margin-inline-start: auto; }
|
|
359
|
+
|
|
360
|
+
/* ── KEPT UNCHANGED (his rule — not in the master): Attachment and Marker, exactly as the system had them. */
|
|
361
|
+
.pui-attachment {
|
|
362
|
+
display: inline-flex;
|
|
363
|
+
align-items: center;
|
|
364
|
+
gap: var(--pui-space-8);
|
|
365
|
+
box-sizing: border-box;
|
|
366
|
+
max-width: 320px;
|
|
367
|
+
padding: var(--pui-space-4) var(--pui-space-12);
|
|
368
|
+
border: 1px solid var(--pui-border-default);
|
|
369
|
+
border-radius: var(--pui-radius-full);
|
|
370
|
+
background: var(--pui-surface-sunken);
|
|
371
|
+
color: var(--pui-text-default);
|
|
372
|
+
font-family: var(--pui-font-family);
|
|
373
|
+
font-size: var(--pui-font-size-12);
|
|
374
|
+
line-height: var(--pui-font-line-height-normal);
|
|
375
|
+
}
|
|
376
|
+
.pui-attachment:has(.pui-attachment__remove) { padding-inline-end: var(--pui-space-8); }
|
|
377
|
+
.pui-attachment__glyph { flex: none; width: var(--pui-size-icon-16); height: var(--pui-size-icon-16); color: var(--pui-text-muted); }
|
|
378
|
+
.pui-attachment__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
379
|
+
.pui-attachment__remove {
|
|
380
|
+
display: inline-flex;
|
|
381
|
+
align-items: center;
|
|
382
|
+
justify-content: center;
|
|
383
|
+
flex: none;
|
|
384
|
+
width: var(--pui-space-20);
|
|
385
|
+
height: var(--pui-space-20);
|
|
386
|
+
margin: 0;
|
|
387
|
+
padding: 0;
|
|
388
|
+
border: 0;
|
|
389
|
+
border-radius: var(--pui-radius-full);
|
|
390
|
+
background: var(--pui-border-default);
|
|
391
|
+
color: var(--pui-text-default);
|
|
392
|
+
cursor: pointer;
|
|
393
|
+
outline: none;
|
|
394
|
+
transition: background-color var(--pui-motion-state) var(--pui-motion-easing), color var(--pui-motion-state) var(--pui-motion-easing);
|
|
395
|
+
}
|
|
396
|
+
.pui-attachment__remove > .pui-icon { width: var(--pui-space-12); height: var(--pui-space-12); }
|
|
397
|
+
.pui-attachment__remove:hover { background: var(--pui-tint-red-bg); color: var(--pui-tint-red-fg); }
|
|
398
|
+
.pui-attachment__remove:focus-visible { box-shadow: var(--pui-ring); }
|
|
399
|
+
|
|
400
|
+
.pui-marker {
|
|
401
|
+
display: flex;
|
|
402
|
+
align-items: center;
|
|
403
|
+
justify-content: center;
|
|
404
|
+
gap: var(--pui-space-12);
|
|
405
|
+
width: 100%;
|
|
406
|
+
padding: var(--pui-space-8) 0;
|
|
407
|
+
color: var(--pui-text-muted);
|
|
408
|
+
font-family: var(--pui-font-family);
|
|
409
|
+
font-size: var(--pui-font-size-12);
|
|
410
|
+
line-height: var(--pui-font-line-height-normal);
|
|
411
|
+
text-align: center;
|
|
412
|
+
}
|
|
413
|
+
.pui-marker--divider::before,
|
|
414
|
+
.pui-marker--divider::after {
|
|
415
|
+
content: "";
|
|
416
|
+
flex: 1 1 auto;
|
|
417
|
+
height: 1px;
|
|
418
|
+
background: var(--pui-border-default);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/* ── The composer — ONE LINE. The files row is the system's, kept above the line: with nothing attached it
|
|
422
|
+
collapses and what renders is the master's single row exactly. Substitutions (b), (c), (g). */
|
|
423
|
+
.pui-composer {
|
|
424
|
+
display: flex;
|
|
425
|
+
flex-direction: column;
|
|
426
|
+
gap: var(--pui-space-8);
|
|
427
|
+
box-sizing: border-box;
|
|
428
|
+
width: 100%;
|
|
429
|
+
margin: 0;
|
|
430
|
+
padding: var(--pui-space-12) var(--pui-space-24);
|
|
431
|
+
border-top: 1px solid var(--pui-border-default);
|
|
432
|
+
background: var(--pui-surface-page);
|
|
433
|
+
color: var(--pui-text-default);
|
|
434
|
+
font-family: var(--pui-font-family);
|
|
435
|
+
}
|
|
436
|
+
.pui-composer__files { display: flex; flex-wrap: wrap; gap: var(--pui-space-8); }
|
|
437
|
+
.pui-composer__files:empty { display: none; }
|
|
438
|
+
.pui-composer__bar {
|
|
439
|
+
display: flex;
|
|
440
|
+
align-items: center;
|
|
441
|
+
gap: var(--pui-space-12);
|
|
442
|
+
}
|
|
443
|
+
.pui-composer__bar .pui-input { min-width: 0; flex: 1 1 auto; }
|
|
444
|
+
.pui-composer__bar .pui-button { flex: none; }
|
|
445
|
+
|
|
446
|
+
/* ── The scroller. The master's own column: 32 between turns, padded 16 / 24 / 12. */
|
|
447
|
+
.pui-message-scroller {
|
|
448
|
+
position: relative;
|
|
449
|
+
display: flex;
|
|
450
|
+
flex-direction: column;
|
|
451
|
+
overflow-y: auto;
|
|
452
|
+
background: var(--pui-surface-page);
|
|
453
|
+
scrollbar-width: thin;
|
|
454
|
+
scrollbar-color: var(--pui-border-default) transparent;
|
|
455
|
+
}
|
|
456
|
+
.pui-message-scroller__log {
|
|
457
|
+
display: flex;
|
|
458
|
+
flex-direction: column;
|
|
459
|
+
justify-content: flex-end;
|
|
460
|
+
gap: var(--pui-space-32);
|
|
461
|
+
/* 3.9.1 — `flex: 1 0 auto` where this was `min-height: 100%`. The log filled the scroller AND the Jump pill
|
|
462
|
+
sat in flow under it, so a thread that fitted still overflowed by the pill's height and the newest message
|
|
463
|
+
was cut off by that much. Growing to the space LEFT by the pill anchors the log the same way and leaves
|
|
464
|
+
nothing over; a thread taller than the box still grows past it and scrolls. */
|
|
465
|
+
flex: 1 0 auto;
|
|
466
|
+
padding: var(--pui-space-16) var(--pui-space-24) var(--pui-space-12);
|
|
467
|
+
}
|
|
468
|
+
/* KEPT: not in the master. */
|
|
469
|
+
.pui-message-scroller__jump {
|
|
470
|
+
position: sticky;
|
|
471
|
+
bottom: var(--pui-space-16);
|
|
472
|
+
align-self: center;
|
|
473
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* checkbox.css — Checkbox (10_COMPONENTS.md § Forms).
|
|
2
|
+
*
|
|
3
|
+
* Quoted from the site's `.checkbox` (styles.css:682–730): a 16 px box, radius 4, 1 px border, white, elevation/flat;
|
|
4
|
+
* checked fills the button black (action/primary/bg) with a white check; label 14 Regular, line-height 20, 8 px gap;
|
|
5
|
+
* the native input stays in the DOM, visually hidden. Indeterminate is a minus (shadcn / Radix). Hover darkens the
|
|
6
|
+
* border, or the fill to bg-hover when checked; focus is the ring; error is border/error — the whole box when checked
|
|
7
|
+
* (the master's rule). Figma 43:2: Checked false / true / indeterminate × five states.
|
|
8
|
+
* Contract: registry/checkbox/registry.json.
|
|
9
|
+
*
|
|
10
|
+
* <label class="pui-checkbox">
|
|
11
|
+
* <input class="pui-checkbox__input pui-sr-only" type="checkbox">
|
|
12
|
+
* <span class="pui-checkbox__box"></span>
|
|
13
|
+
* <span class="pui-checkbox__label">I agree to the privacy policy</span></label>
|
|
14
|
+
*
|
|
15
|
+
* State :hover · :focus-visible · :checked · :indeterminate · error = --error or [aria-invalid="true"] on the
|
|
16
|
+
* input · :disabled (the row dims to .5)
|
|
17
|
+
* Has label the __label span is optional — in a table header the column is the label (aria-label on the input)
|
|
18
|
+
* The glyphs are masks (Lucide check and minus) painted in action/primary/fg, so no hex lives in this file.
|
|
19
|
+
* Keyboard nothing to write for Radio: native inputs sharing a `name` ARE a radio group and the browser gives
|
|
20
|
+
* the roving tabindex and the arrow keys. Checkbox takes Space, also the browser's (3.5.3).
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
.pui-checkbox,
|
|
24
|
+
.pui-radio {
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
gap: var(--pui-space-8);
|
|
28
|
+
position: relative;
|
|
29
|
+
color: var(--pui-text-default);
|
|
30
|
+
font-family: var(--pui-font-family);
|
|
31
|
+
font-size: var(--pui-font-size-14);
|
|
32
|
+
font-weight: var(--pui-font-weight-400);
|
|
33
|
+
line-height: var(--pui-font-line-height-normal);
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
user-select: none;
|
|
36
|
+
}
|
|
37
|
+
.pui-checkbox__box,
|
|
38
|
+
.pui-radio__box {
|
|
39
|
+
position: relative;
|
|
40
|
+
flex: none;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
width: var(--pui-size-icon-16);
|
|
43
|
+
height: var(--pui-size-icon-16);
|
|
44
|
+
margin-top: var(--pui-space-2);
|
|
45
|
+
border: 1px solid var(--pui-border-default);
|
|
46
|
+
border-radius: var(--pui-radius-4);
|
|
47
|
+
background: var(--pui-surface-page);
|
|
48
|
+
box-shadow: var(--pui-elevation-flat);
|
|
49
|
+
transition:
|
|
50
|
+
background-color var(--pui-motion-state) var(--pui-motion-easing),
|
|
51
|
+
border-color var(--pui-motion-state) var(--pui-motion-easing),
|
|
52
|
+
box-shadow var(--pui-motion-state) var(--pui-motion-easing);
|
|
53
|
+
}
|
|
54
|
+
.pui-checkbox__label,
|
|
55
|
+
.pui-radio__label { min-width: 0; }
|
|
56
|
+
|
|
57
|
+
.pui-checkbox:hover .pui-checkbox__box,
|
|
58
|
+
.pui-radio:hover .pui-radio__box { border-color: var(--pui-border-strong); }
|
|
59
|
+
.pui-checkbox__input:focus-visible + .pui-checkbox__box,
|
|
60
|
+
.pui-radio__input:focus-visible + .pui-radio__box { border-color: var(--pui-border-focus); box-shadow: var(--pui-ring); }
|
|
61
|
+
|
|
62
|
+
.pui-checkbox__input:checked + .pui-checkbox__box,
|
|
63
|
+
.pui-checkbox__input:indeterminate + .pui-checkbox__box {
|
|
64
|
+
background: var(--pui-action-primary-bg);
|
|
65
|
+
border-color: var(--pui-action-primary-bg);
|
|
66
|
+
}
|
|
67
|
+
.pui-checkbox:hover .pui-checkbox__input:checked + .pui-checkbox__box,
|
|
68
|
+
.pui-checkbox:hover .pui-checkbox__input:indeterminate + .pui-checkbox__box {
|
|
69
|
+
background: var(--pui-action-primary-bg-hover);
|
|
70
|
+
border-color: var(--pui-action-primary-bg-hover);
|
|
71
|
+
}
|
|
72
|
+
.pui-checkbox__box::after {
|
|
73
|
+
content: "";
|
|
74
|
+
position: absolute;
|
|
75
|
+
inset: 0;
|
|
76
|
+
background: var(--pui-action-primary-fg);
|
|
77
|
+
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 12px no-repeat;
|
|
78
|
+
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 12px no-repeat;
|
|
79
|
+
opacity: 0;
|
|
80
|
+
transition: opacity var(--pui-motion-state) var(--pui-motion-easing);
|
|
81
|
+
}
|
|
82
|
+
.pui-checkbox__input:checked + .pui-checkbox__box::after { opacity: 1; }
|
|
83
|
+
.pui-checkbox__input:indeterminate + .pui-checkbox__box::after {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'><path d='M5 12h14'/></svg>");
|
|
86
|
+
mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'><path d='M5 12h14'/></svg>");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Error: the border, or the whole box when checked. */
|
|
90
|
+
.pui-checkbox--error .pui-checkbox__box,
|
|
91
|
+
.pui-checkbox__input[aria-invalid="true"] + .pui-checkbox__box,
|
|
92
|
+
.pui-radio--error .pui-radio__box,
|
|
93
|
+
.pui-radio__input[aria-invalid="true"] + .pui-radio__box { border-color: var(--pui-border-error); }
|
|
94
|
+
.pui-checkbox--error .pui-checkbox__input:checked + .pui-checkbox__box,
|
|
95
|
+
.pui-checkbox__input[aria-invalid="true"]:checked + .pui-checkbox__box,
|
|
96
|
+
.pui-checkbox--error .pui-checkbox__input:indeterminate + .pui-checkbox__box,
|
|
97
|
+
.pui-checkbox__input[aria-invalid="true"]:indeterminate + .pui-checkbox__box {
|
|
98
|
+
background: var(--pui-border-error);
|
|
99
|
+
border-color: var(--pui-border-error);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pui-checkbox:has(.pui-checkbox__input:disabled),
|
|
103
|
+
.pui-checkbox--disabled,
|
|
104
|
+
.pui-radio:has(.pui-radio__input:disabled),
|
|
105
|
+
.pui-radio--disabled { opacity: 0.5; cursor: not-allowed; }
|