@signal9/era-ui 2.21.0 → 2.23.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/dist/ai/artifact/artifact-actions.svelte +3 -1
- package/dist/ai/artifact/artifact-content.svelte +3 -1
- package/dist/ai/artifact/artifact-header.svelte +5 -1
- package/dist/ai/artifact/artifact.svelte +5 -1
- package/dist/ai/chain-of-thought/chain-of-thought-step.svelte +5 -1
- package/dist/ai/chain-of-thought/chain-of-thought.svelte +1 -1
- package/dist/ai/confirmation/confirmation-args.svelte +7 -7
- package/dist/ai/conversation/conversation-content.svelte +4 -1
- package/dist/ai/conversations/conversations-group.svelte +1 -1
- package/dist/ai/conversations/conversations.svelte.js +5 -1
- package/dist/ai/error-panel/error-panel.svelte +1 -1
- package/dist/ai/inline-citation/inline-citation.svelte +22 -5
- package/dist/ai/loader.svelte +4 -1
- package/dist/ai/message/message-usage.svelte +4 -2
- package/dist/ai/open-in-chat/open-in-chat.svelte +16 -4
- package/dist/ai/plan/plan-header.svelte +1 -1
- package/dist/ai/project.js +10 -2
- package/dist/ai/prompt-input/prompt-input-attachments.svelte +1 -1
- package/dist/ai/prompt-input/prompt-input.svelte +2 -6
- package/dist/ai/run-status/run-status.svelte +5 -2
- package/dist/ai/runtime-feed/runtime-feed-item.svelte +1 -1
- package/dist/ai/runtime-feed/runtime-feed-root.svelte +1 -3
- package/dist/ai/structured-value/structured-value.svelte +8 -7
- package/dist/ai/suggestion/suggestions.svelte +4 -1
- package/dist/ai/task/task-content.svelte +4 -1
- package/dist/ai/tool/tool-chip.svelte +1 -1
- package/dist/ai/tool/tool-exec.svelte +1 -3
- package/dist/ai/tool/tool.svelte +1 -4
- package/dist/ai/web-preview/web-preview.svelte +1 -1
- package/dist/ai/workflow/node.svelte +3 -1
- package/dist/dev/audit/audits/_helpers.d.ts +19 -0
- package/dist/dev/audit/audits/_helpers.js +68 -0
- package/dist/dev/audit/audits/collapsed-text-trim.d.ts +2 -0
- package/dist/dev/audit/audits/collapsed-text-trim.js +52 -0
- package/dist/dev/audit/audits/flat-chrome.d.ts +2 -0
- package/dist/dev/audit/audits/flat-chrome.js +46 -0
- package/dist/dev/audit/audits/icon-flush.d.ts +2 -0
- package/dist/dev/audit/audits/icon-flush.js +51 -0
- package/dist/dev/audit/audits/index.d.ts +7 -1
- package/dist/dev/audit/audits/index.js +20 -1
- package/dist/dev/audit/audits/off-axis-motion.d.ts +2 -0
- package/dist/dev/audit/audits/off-axis-motion.js +60 -0
- package/dist/dev/audit/audits/off-tier-height.d.ts +2 -0
- package/dist/dev/audit/audits/off-tier-height.js +47 -0
- package/dist/dev/audit/audits/single-glyph-square.d.ts +2 -0
- package/dist/dev/audit/audits/single-glyph-square.js +50 -0
- package/dist/dev/axis-signature.d.ts +17 -0
- package/dist/dev/axis-signature.js +87 -0
- package/dist/dev/index.d.ts +1 -0
- package/dist/dev/index.js +1 -0
- package/dist/era-ui.css +1 -1
- package/dist/os/window.svelte +1 -1
- package/dist/styles/typography.css +9 -1
- package/dist/ui/button/button.svelte +10 -0
- package/dist/ui/card/card.svelte +3 -1
- package/dist/ui/command/command-input.svelte +1 -1
- package/dist/ui/command/command-item.svelte +1 -1
- package/dist/ui/command/command-link-item.svelte +1 -1
- package/dist/ui/command-bar/command-bar.svelte +2 -2
- package/dist/ui/copy-button/copy-button.svelte +3 -1
- package/dist/ui/input/input.svelte +1 -1
- package/dist/ui/kv/kv.svelte +1 -1
- package/dist/ui/pane/pane-close.svelte +9 -1
- package/dist/ui/select/select-trigger.svelte +1 -1
- package/dist/ui/step/step-summary.svelte +1 -1
- package/package.json +1 -1
- package/skill/SKILL.md +9 -9
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
role="listbox"
|
|
215
215
|
tabindex="-1"
|
|
216
216
|
aria-label="Commands"
|
|
217
|
-
class="
|
|
217
|
+
class="absolute top-full left-0 z-50 max-h-64 w-full overflow-x-hidden overflow-y-auto bg-(--era-surface-bg-elevated) shadow-(--era-shadow-lg) glass-blur"
|
|
218
218
|
onmousedown={(e) => e.preventDefault()}
|
|
219
219
|
>
|
|
220
220
|
{#if !filtered.length}
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
tabindex={-1}
|
|
235
235
|
aria-selected={i === selectedIndex}
|
|
236
236
|
class={cn(
|
|
237
|
-
'flex h-(--era-h-md) cursor-default
|
|
237
|
+
'flex h-(--era-h-md) cursor-default items-center gap-(--era-gap) px-(--era-inset-md) text-body era-text-trim whitespace-nowrap',
|
|
238
238
|
i === selectedIndex ? 'bg-3 text-bright' : 'text-fg'
|
|
239
239
|
)}
|
|
240
240
|
onclick={() => choose(item)}
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
<span class="relative block size-(--era-h-xs) shrink-0">
|
|
93
93
|
<IdleIcon class={cn(iconBase, status === 'idle' ? iconIn : iconOut)} />
|
|
94
94
|
<SuccessIcon class={cn(iconBase, 'text-success', status === 'success' ? iconIn : iconOut)} />
|
|
95
|
-
<FailureIcon
|
|
95
|
+
<FailureIcon
|
|
96
|
+
class={cn(iconBase, 'text-destructive', status === 'failure' ? iconIn : iconOut)}
|
|
97
|
+
/>
|
|
96
98
|
</span>
|
|
97
99
|
</Button>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
bind:this={ref}
|
|
17
17
|
bind:value
|
|
18
18
|
class={cn(
|
|
19
|
-
'flex h-(--era-h-md) w-full era-interactive rounded-(--era-rd-md) bg-(--era-surface-bg-elevated) px-(--era-inset-md) text-body text-fg shadow-(--era-shadow-well) placeholder:text-muted hover:bg-(--era-highlight) focus:bg-(--era-highlight)
|
|
19
|
+
'flex h-(--era-h-md) w-full era-interactive rounded-(--era-rd-md) bg-(--era-surface-bg-elevated) px-(--era-inset-md) text-body era-text-trim text-fg shadow-(--era-shadow-well) placeholder:text-muted hover:bg-(--era-highlight) focus:bg-(--era-highlight)',
|
|
20
20
|
className
|
|
21
21
|
)}
|
|
22
22
|
{...restProps}
|
package/dist/ui/kv/kv.svelte
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<span
|
|
22
22
|
bind:this={ref}
|
|
23
23
|
class={cn(
|
|
24
|
-
'inline-flex h-(--era-h-xxs) items-center overflow-hidden rounded-(--era-rd-xxs) bg-hover font-mono text-body leading-none shadow-(--era-shadow)
|
|
24
|
+
'inline-flex h-(--era-h-xxs) items-center overflow-hidden rounded-(--era-rd-xxs) bg-hover font-mono text-body era-text-trim leading-none shadow-(--era-shadow)',
|
|
25
25
|
className
|
|
26
26
|
)}
|
|
27
27
|
{...restProps}
|
|
@@ -18,6 +18,14 @@
|
|
|
18
18
|
movement and suppresses the trailing click after a real drag). Its natural
|
|
19
19
|
rd-xs is what the PANE's corner radius conforms to (rd-sm — see Pane.Root),
|
|
20
20
|
not the other way round. -->
|
|
21
|
-
<Button
|
|
21
|
+
<Button
|
|
22
|
+
bind:ref
|
|
23
|
+
icon
|
|
24
|
+
size="icon"
|
|
25
|
+
tone="destructive"
|
|
26
|
+
aria-label="Close"
|
|
27
|
+
class={className}
|
|
28
|
+
{...restProps}
|
|
29
|
+
>
|
|
22
30
|
<X class="size-(--era-h-xs)" />
|
|
23
31
|
</Button>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<Select.Trigger
|
|
15
15
|
bind:ref
|
|
16
16
|
class={cn(
|
|
17
|
-
'flex h-(--era-h-md) w-full items-center justify-between gap-(--era-xs-inset-sm) rounded-(--era-rd-md) bg-(--era-surface-bg-elevated) px-(--era-inset-md) text-body text-fg shadow-(--era-shadow) hover:bg-(--era-highlight) focus:bg-(--era-highlight) focus:outline-none disabled:opacity-50 data-[state=open]:rounded-b-none data-[state=open]:shadow-(--era-shadow-pressed)
|
|
17
|
+
'flex h-(--era-h-md) w-full items-center justify-between gap-(--era-xs-inset-sm) rounded-(--era-rd-md) bg-(--era-surface-bg-elevated) px-(--era-inset-md) text-body era-text-trim text-fg shadow-(--era-shadow) hover:bg-(--era-highlight) focus:bg-(--era-highlight) focus:outline-none disabled:opacity-50 data-[state=open]:rounded-b-none data-[state=open]:shadow-(--era-shadow-pressed)',
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<Collapsible.Trigger
|
|
27
27
|
bind:ref
|
|
28
28
|
class={cn(
|
|
29
|
-
'flex h-(--era-h-md) w-full min-w-0 cursor-pointer
|
|
29
|
+
'flex h-(--era-h-md) w-full min-w-0 era-interactive cursor-pointer items-center gap-(--era-gap) rounded-(--era-rd-md) px-(--era-inset-md) text-body era-text-trim text-muted transition-colors duration-(--era-duration) ease-(--era-ease) hover:text-fg',
|
|
30
30
|
className
|
|
31
31
|
)}
|
|
32
32
|
{...restProps}
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -34,13 +34,13 @@ to ~13px, silently shrinking every rem-derived token).
|
|
|
34
34
|
|
|
35
35
|
## The tier ladder
|
|
36
36
|
|
|
37
|
-
| Tier | Height token
|
|
38
|
-
| ----- |
|
|
39
|
-
| `xs` | `--era-h-xs`
|
|
40
|
-
| `xxs` | `--era-h-xxs`
|
|
41
|
-
| `sm` | `--era-h-sm`
|
|
42
|
-
| `md` | `--era-h-md`
|
|
43
|
-
| `lg` | `--era-h-lg`
|
|
37
|
+
| Tier | Height token | Radius token | Use for |
|
|
38
|
+
| ----- | ------------- | -------------- | ----------------------------------------------- |
|
|
39
|
+
| `xs` | `--era-h-xs` | `--era-rd-xs` | icons (THE icon size), switch thumbs |
|
|
40
|
+
| `xxs` | `--era-h-xxs` | `--era-rd-xxs` | pills nested inside md (badge/chip in a button) |
|
|
41
|
+
| `sm` | `--era-h-sm` | `--era-rd-sm` | standalone pills, switch tracks, KV |
|
|
42
|
+
| `md` | `--era-h-md` | `--era-rd-md` | buttons, inputs, selects, triggers |
|
|
43
|
+
| `lg` | `--era-h-lg` | `--era-rd-lg` | bars, containers, dialog headers |
|
|
44
44
|
|
|
45
45
|
Usage: `h-(--era-h-md)`, `rounded-(--era-rd-md)`, icons `size-(--era-h-xs)`.
|
|
46
46
|
Always the paren shorthand — never `h-[var(--era-h-md)]`.
|
|
@@ -119,8 +119,8 @@ motion-axis-aware for free.
|
|
|
119
119
|
|
|
120
120
|
```svelte
|
|
121
121
|
<script lang="ts">
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
import { Button, Badge, OS, AI } from '@sig-nine/era-ui';
|
|
123
|
+
import * as Select from '@sig-nine/era-ui'; // namespaced parts: Select.Root…
|
|
124
124
|
</script>
|
|
125
125
|
```
|
|
126
126
|
|