reifyui 0.11.1 → 0.12.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/styles/chat.css CHANGED
@@ -32,16 +32,29 @@
32
32
  /* A turn fills the column; user right-aligned, assistant stacks timeline above prose. */
33
33
  .wbx-turn { display: flex; min-width: 0; padding: 0 var(--uic-turn-pad-x, 28px); }
34
34
  .wbx-turn.user { justify-content: flex-end; }
35
+ /* The optional caption above a turn: who said it. In the user turn it shares a column with the
36
+ bubble (`.wbx-turn-body`) so both start at the same left edge; in the assistant turn it is simply
37
+ the first line. Never a percentage flex-basis here: in a column that is 100% of the HEIGHT. */
38
+ .wbx-role { flex: none; width: 100%; font-family: var(--uic-mono, ui-monospace, monospace); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--uic-cap, #a8a29e); margin-bottom: 7px; }
39
+ .wbx-turn-body { display: flex; flex-direction: column; min-width: 0; max-width: var(--uic-bubble-max-w, 80%); }
40
+ .wbx-turn-body > .wbx-bubble-user { max-width: none; }
35
41
  /* assistant turn stacks vertically: activity timeline ABOVE the answer (never side by side) */
36
42
  .wbx-turn.asst { flex-direction: column; gap: 10px; align-items: stretch; }
37
43
  .wbx-bubble-user { max-width: var(--uic-bubble-max-w, 80%); background: var(--uic-brand-faint, #EFF3FF);
38
44
  border: 1px solid var(--uic-brand-soft, #E1E9FF);
39
45
  color: var(--uic-ink, #111317); border-radius: 16px 16px 5px 16px; padding: 10px 14px;
40
46
  font-size: var(--uic-font-md, 14px); white-space: pre-wrap; line-height: 1.55; }
41
- .wbx-bubble-text { white-space: pre-wrap; }
47
+ /* A pasted URL, hash or base64 blob has no break opportunity, so without this it runs straight
48
+ out of its bubble and gets clipped by whatever encloses it. */
49
+ .wbx-bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
42
50
 
43
51
  /* ── 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; }
52
+ /* overflow-wrap: anywhere, not normal: agents answer with hashes, URLs, file paths and base64,
53
+ and an unbreakable 200-character token overflows its own box while the box stays the width of
54
+ the pane. Nothing widens, nothing scrolls, the text is simply clipped away and unreachable.
55
+ It bit hardest in a 340px arena column but the same text is lost in any narrow pane. */
56
+ .wbx-md { color: var(--uic-ink, #111317); font-size: var(--uic-font-md, 14px); line-height: 1.62;
57
+ min-width: 0; overflow-wrap: anywhere; }
45
58
  .wbx-md > :first-child { margin-top: 0; }
46
59
  .wbx-md > :last-child { margin-bottom: 0; }
47
60
  .wbx-md p { margin: 0 0 10px; }
@@ -53,7 +66,8 @@
53
66
  background: var(--uic-brand-faint, #EFF3FF); border: 1px solid var(--uic-line, #DDDFE6); border-radius: 5px; padding: 1px 5px; }
54
67
  .wbx-md pre { background: var(--uic-code-block-bg, #0f1117); color: var(--uic-code-block-ink, #e6e8ee);
55
68
  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; }
69
+ .wbx-md pre code { background: none; border: none; color: inherit; padding: 0; font-size: 12.5px; line-height: 1.5;
70
+ overflow-wrap: normal; }
57
71
  /* ── CodeBlock: language-aware syntax highlighting (components/CodeBlock.jsx) ──
58
72
  The block itself carries the same geometry as .wbx-md pre (same padding/radius/font), fully
59
73
  styled here so it also works outside .wbx-md. hljs token classes map onto five --uic-code-*
@@ -85,7 +99,10 @@
85
99
  .wbx-mermaid-fallback { margin: 0 0 10px; }
86
100
  .wbx-md a { color: var(--uic-brand, #285AFF); text-decoration: underline; }
87
101
  .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; }
102
+ /* Code and tables cannot wrap without changing their meaning, so a wide one scrolls inside
103
+ itself rather than being squeezed into unreadable columns or clipped at the pane edge. */
104
+ .wbx-md table { border-collapse: collapse; margin: 0 0 10px; font-size: 13px;
105
+ display: block; width: max-content; max-width: 100%; overflow-x: auto; }
89
106
  .wbx-md th, .wbx-md td { border: 1px solid var(--uic-line, #DDDFE6); padding: 5px 9px; text-align: left; }
90
107
 
91
108
  /* ── loading skeleton (ChatMessagesSkeleton) ─────────────────────────────────
@@ -141,6 +158,10 @@
141
158
  animation: wbxblink 1.4s infinite ease-in-out; }
142
159
  .wbx-working-dots span:nth-child(2) { animation-delay: .2s; } .wbx-working-dots span:nth-child(3) { animation-delay: .4s; }
143
160
  .wbx-working-txt { animation: wbxbreath 1.8s ease-in-out infinite; }
161
+ @media (prefers-reduced-motion: reduce) {
162
+ .wbx-working-dots span { animation: none; opacity: .6; }
163
+ .wbx-working-txt { animation: none; opacity: .8; }
164
+ }
144
165
  @keyframes wbxblink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .9; } }
145
166
  @keyframes wbxbreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
146
167
 
@@ -161,8 +182,14 @@
161
182
  max-height: calc(var(--uic-font-md, 14px) * 1.5 * 15); }
162
183
  .wbx-composer-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
163
184
  /* ── pane resizer (useResizablePane + PaneResizer) ── */
164
- .uic-vresize { flex: 0 0 7px; align-self: stretch; cursor: col-resize; background: transparent; }
185
+ .uic-vresize { flex: 0 0 7px; align-self: stretch; cursor: col-resize; background: transparent; touch-action: none; }
186
+ /* Stacked split (useResizablePane axis 'y'): the bar is horizontal, the drag is vertical. */
187
+ .uic-hresize { flex: 0 0 7px; align-self: stretch; width: 100%; cursor: row-resize; background: transparent; touch-action: none; }
188
+ .uic-hresize:hover { background: var(--uic-brand-soft); }
189
+ body.uic-resizing-y { user-select: none; cursor: row-resize; }
190
+ body.uic-resizing-y iframe { pointer-events: none; }
165
191
  .uic-vresize:hover { background: var(--uic-brand-soft, #E1E9FF); }
192
+ .uic-vresize:focus-visible { outline: none; background: var(--uic-brand, #285AFF); opacity: .5; }
166
193
  /* While dragging, neutralize embedded iframes + selection so mouseup always lands. */
167
194
  body.uic-resizing { user-select: none; cursor: col-resize; }
168
195
  body.uic-resizing iframe { pointer-events: none; }
@@ -320,3 +347,16 @@ body.uic-resizing iframe { pointer-events: none; }
320
347
  /* Dragging the divider is meaningless once the panel floats over the page. */
321
348
  body:has(.uic-chat:not(.is-collapsed)) .uic-vresize { display: none; }
322
349
  }
350
+
351
+ /* ── Composer tray (Composer.jsx `tray`) ──
352
+ Inside the card, under the action row, on the SAME surface — no divider band, no tinted
353
+ strip: the wireframe's "one box" reading. Wraps on narrow widths. */
354
+ .uic-composer-tray { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
355
+ padding: 2px 2px 4px; }
356
+
357
+ /* ── Composer inline line (Composer.jsx `inline`) ── one row: accessories, textarea, send.
358
+ Centered, not flex-end: a single-line textarea's text must sit on the buttons' axis, and
359
+ bottom-pinning left the text visibly below them (measured). Multiline drafts keep the
360
+ buttons centered on the grown box, which is the common chat-input behavior. */
361
+ .uic-composer-line { display: flex; align-items: center; gap: 8px; }
362
+ .uic-composer-line textarea { flex: 1; min-width: 0; }
package/styles/chip.css CHANGED
@@ -51,3 +51,39 @@ button.uic-chip:hover { border-color: var(--uic-brand, #285AFF); color: var(--ui
51
51
  .uic-pop-item.is-on { background: var(--uic-brand-soft, #E1E9FF);
52
52
  color: var(--uic-brand-ink, #1641D8); font-weight: 600; }
53
53
  .uic-pop-check { width: 15px; flex-shrink: 0; display: inline-flex; color: var(--uic-brand, #285AFF); }
54
+
55
+ /* trailing — the compact control a chip can carry (Chip.jsx `trailing`). The chip supplies
56
+ spacing only; the control keeps its own semantics and focus behavior. */
57
+ .uic-chip-tr { display: inline-flex; align-items: center; min-width: 0; }
58
+ .uic-chip-tr select { border: none; background: transparent; font: inherit; font-size: 11.5px;
59
+ color: var(--uic-mute, #5B5D66); cursor: pointer; max-width: 160px; }
60
+ .uic-chip-tr select:focus { outline: none; color: var(--uic-ink, #111317); }
61
+
62
+ /* ── CascadeMenu ────────────────────────────────────────────────────────────
63
+ Two columns inside a Popover: items on the left, the highlighted item's options on the right.
64
+ Each column scrolls on its own inside the height the popover was given. Under the stack
65
+ breakpoint (JS) only one column shows at a time and the options column carries a way back. */
66
+ .uic-cascade { flex: 1; min-height: 0; display: flex; gap: 0; }
67
+ .uic-cascade-col { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
68
+ .uic-cascade-options { border-left: 1px solid var(--uic-line-soft, #EFF1F4); margin-left: 8px; padding-left: 8px; }
69
+ .uic-cascade.is-stacked .uic-cascade-options { border-left: 0; margin-left: 0; padding-left: 0; }
70
+ .uic-cascade-filter { flex: none; }
71
+ .uic-cascade-group { padding: 6px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
72
+ text-transform: uppercase; color: var(--uic-mute, #5B5D66); }
73
+ .uic-cascade-head { flex: none; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px;
74
+ font-size: 13px; font-weight: 600; color: var(--uic-ink, #111317); }
75
+ .uic-cascade-back { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
76
+ margin-left: -6px; border: 0; border-radius: 8px; background: none; color: var(--uic-mute, #5B5D66); cursor: pointer; }
77
+ .uic-cascade-back:hover { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
78
+ .uic-cascade-ic { display: inline-flex; flex-shrink: 0; line-height: 0; }
79
+ .uic-cascade-item .uic-chip-t, .uic-cascade-opt .uic-chip-t { flex: 1; }
80
+ .uic-cascade-chev { display: inline-flex; flex-shrink: 0; color: var(--uic-mute, #5B5D66); opacity: .6; }
81
+ /* The highlighted item is the one whose options show: it reads as "open", not as "chosen". */
82
+ .uic-cascade-item.is-active { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
83
+ .uic-cascade-note { flex-shrink: 0; font-size: 11px; color: var(--uic-mute, #5B5D66); }
84
+ .uic-pop-item:disabled { opacity: .5; cursor: default; }
85
+ .uic-pop-item:disabled:hover { background: none; }
86
+ .uic-pop-item:focus-visible { outline: 2px solid var(--uic-brand, #285AFF); outline-offset: -2px; }
87
+ /* The press target of a split chip (label + trailing control + ✕) answers hover like the
88
+ one-piece button chip does. */
89
+ .uic-chip-press:hover { color: var(--uic-brand-ink, #1641D8); }