@signal9/era-ui 2.11.1 → 2.11.2

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.
@@ -157,14 +157,14 @@
157
157
  onkeydown={onTitleKeydown}
158
158
  onblur={commitRename}
159
159
  aria-label="Rename conversation"
160
- class="min-w-0 flex-1 border-b border-primary bg-transparent text-body text-bright outline-none era-text-trim"
160
+ class="min-w-0 flex-1 border-b border-primary bg-transparent text-body text-bright outline-none"
161
161
  />
162
162
  {:else}
163
163
  <button
164
164
  type="button"
165
165
  onclick={onSelect}
166
166
  ondblclick={startEditing}
167
- class="min-w-0 flex-1 cursor-pointer truncate text-left outline-none era-text-trim"
167
+ class="min-w-0 flex-1 cursor-pointer truncate text-left outline-none"
168
168
  >
169
169
  {title}
170
170
  </button>
@@ -58,7 +58,7 @@
58
58
  {:else}
59
59
  <CircleX class="size-(--era-h-xs) shrink-0 text-destructive" aria-hidden="true" />
60
60
  {/if}
61
- <span class="min-w-0 flex-1 truncate text-fg era-text-trim">{summary}</span>
61
+ <span class="min-w-0 flex-1 truncate text-fg">{summary}</span>
62
62
  {/snippet}
63
63
 
64
64
  <Collapsible.Root
@@ -122,7 +122,7 @@
122
122
  {#if latest}
123
123
  <div
124
124
  class={cn(
125
- 'truncate px-(--era-inset-md) pb-(--era-inset-sm) font-mono text-body era-text-trim',
125
+ 'truncate px-(--era-inset-md) pb-(--era-inset-sm) font-mono text-body',
126
126
  LOG_TONE[latest.tone]
127
127
  )}
128
128
  >
@@ -55,7 +55,7 @@
55
55
  {...restProps}
56
56
  >
57
57
  <span class="size-(--era-h-xxs) shrink-0 rounded-full bg-current" aria-hidden="true"></span>
58
- <span class="min-w-0 flex-1 truncate era-text-trim">
58
+ <span class="min-w-0 flex-1 truncate">
59
59
  {#if children}{@render children()}{:else}{text}{/if}
60
60
  </span>
61
61
  {#if label}
@@ -69,21 +69,21 @@
69
69
 
70
70
  {#snippet leaf(v: unknown)}
71
71
  {#if v === null || v === undefined}
72
- <span class="min-w-0 truncate text-muted era-text-trim">null</span>
72
+ <span class="min-w-0 truncate text-muted">null</span>
73
73
  {:else if typeof v === 'boolean'}
74
- <span class="min-w-0 truncate text-warning era-text-trim">{v ? 'true' : 'false'}</span>
74
+ <span class="min-w-0 truncate text-warning">{v ? 'true' : 'false'}</span>
75
75
  {:else if typeof v === 'number'}
76
- <span class="min-w-0 truncate text-fg tabular-nums era-text-trim">{v}</span>
76
+ <span class="min-w-0 truncate text-fg tabular-nums">{v}</span>
77
77
  {:else if typeof v === 'string'}
78
- <span class="min-w-0 truncate text-fg era-text-trim" title={v}>{v}</span>
78
+ <span class="min-w-0 truncate text-fg" title={v}>{v}</span>
79
79
  {:else if Array.isArray(v)}
80
80
  {#if v.length === 0}
81
- <span class="min-w-0 truncate text-muted era-text-trim">empty</span>
81
+ <span class="min-w-0 truncate text-muted">empty</span>
82
82
  {:else}
83
- <span class="min-w-0 truncate text-fg era-text-trim" title={summarize(v)}>{summarize(v)}</span>
83
+ <span class="min-w-0 truncate text-fg" title={summarize(v)}>{summarize(v)}</span>
84
84
  {/if}
85
85
  {:else}
86
- <span class="min-w-0 truncate text-muted era-text-trim">empty</span>
86
+ <span class="min-w-0 truncate text-muted">empty</span>
87
87
  {/if}
88
88
  {/snippet}
89
89
 
@@ -23,7 +23,7 @@
23
23
  {#if command || failed}
24
24
  <div class="flex min-w-0 items-center gap-(--era-gap)">
25
25
  {#if command}
26
- <code class="min-w-0 flex-1 truncate font-mono text-body text-muted era-text-trim"
26
+ <code class="min-w-0 flex-1 truncate font-mono text-body text-muted"
27
27
  >{command}</code
28
28
  >
29
29
  {/if}
@@ -67,6 +67,13 @@
67
67
  * but is descender-blind (reads high; CSSWG #9148) — measured 4x worse here.
68
68
  * Where text-box is supported it fully determines the box, so the two
69
69
  * declarations never fight. Worst-case residual: 0.44px.
70
+ *
71
+ * NEVER put this on an element that also clips overflow (`truncate`,
72
+ * `overflow-hidden`, or an <input>): trim-both collapses the box to the
73
+ * x-height band (~7.5px at 14px), and the clip then slices off every
74
+ * ascender, cap, and descender — text renders as a chopped middle stripe.
75
+ * Put era-text-trim on the fixed-height ROW/control instead, and let a
76
+ * truncating child inherit vertical centering from the row's items-center.
70
77
  */
71
78
  @utility era-text-trim {
72
79
  line-height: 1;
@@ -191,7 +191,7 @@
191
191
  autocomplete="off"
192
192
  autocorrect="off"
193
193
  spellcheck="false"
194
- class="era-text-trim h-full w-full bg-transparent text-body text-bright outline-none"
194
+ class="h-full w-full bg-transparent text-body text-bright outline-none"
195
195
  onkeydown={onKeydown}
196
196
  onfocus={() => (focused = true)}
197
197
  onblur={() => (focused = false)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",