@signal9/era-ui 10.0.0 → 11.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/dist/ai/actions/actions.svelte +1 -1
- package/dist/ai/artifact/artifact-actions.svelte +1 -1
- package/dist/ai/artifact/artifact-close.svelte +1 -1
- package/dist/ai/artifact/artifact-content.svelte +1 -1
- package/dist/ai/artifact/artifact-header.svelte +1 -1
- package/dist/ai/artifact/artifact.svelte +1 -4
- package/dist/ai/chain-of-thought/chain-of-thought-step.svelte +3 -3
- package/dist/ai/chain-of-thought/chain-of-thought.svelte +1 -1
- package/dist/ai/checkpoint.svelte +2 -2
- package/dist/ai/confirmation/confirmation-actions.svelte +1 -1
- package/dist/ai/confirmation/confirmation-args.svelte +4 -4
- package/dist/ai/confirmation/confirmation.svelte +5 -8
- package/dist/ai/context/context.svelte +3 -3
- package/dist/ai/conversation/conversation-content.svelte +1 -4
- package/dist/ai/conversation/conversation-empty-state.svelte +1 -1
- package/dist/ai/conversation/conversation-scroll-button.svelte +3 -3
- package/dist/ai/conversations/conversations-group.svelte +2 -2
- package/dist/ai/conversations/conversations-item.svelte +8 -8
- package/dist/ai/conversations/conversations-root.svelte +2 -2
- package/dist/ai/error-panel/error-panel.svelte +7 -7
- package/dist/ai/image.svelte +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/inline-citation/inline-citation.svelte +5 -5
- package/dist/ai/loader.svelte +1 -4
- package/dist/ai/message/message-branch-selector.svelte +3 -3
- package/dist/ai/message/message-branch.svelte +1 -1
- package/dist/ai/message/message-content.svelte +1 -1
- package/dist/ai/message/message-toolbar.svelte +1 -1
- package/dist/ai/message/message-usage.svelte +5 -7
- package/dist/ai/message/message.svelte +1 -1
- package/dist/ai/model-selector/model-selector.svelte +2 -2
- package/dist/ai/open-in-chat/open-in-chat.svelte +2 -2
- package/dist/ai/plan/plan-content.svelte +1 -1
- package/dist/ai/plan/plan-header.svelte +2 -2
- package/dist/ai/plan/plan.svelte +1 -4
- package/dist/ai/prompt-input/prompt-input-add-attachments.svelte +1 -1
- package/dist/ai/prompt-input/prompt-input-attachments.svelte +5 -5
- package/dist/ai/prompt-input/prompt-input-submit.svelte +2 -2
- package/dist/ai/prompt-input/prompt-input-textarea.svelte +2 -2
- package/dist/ai/prompt-input/prompt-input-toolbar.svelte +1 -1
- package/dist/ai/prompt-input/prompt-input.svelte +1 -1
- package/dist/ai/queue/queue-item.svelte +1 -1
- package/dist/ai/queue/queue.svelte +1 -1
- package/dist/ai/reasoning/reasoning-trigger.svelte +1 -1
- package/dist/ai/response/response.svelte +1 -1
- package/dist/ai/run-status/run-status.svelte +7 -11
- package/dist/ai/runtime-feed/runtime-feed-item.svelte +1 -4
- package/dist/ai/runtime-feed/runtime-feed-root.svelte +1 -1
- package/dist/ai/sources/source.svelte +2 -2
- package/dist/ai/sources/sources-trigger.svelte +1 -1
- package/dist/ai/structured-value/structured-value.svelte +4 -4
- package/dist/ai/suggestion/suggestion.svelte +1 -1
- package/dist/ai/suggestion/suggestions.svelte +1 -1
- package/dist/ai/swarm/swarm-agent.svelte +3 -3
- package/dist/ai/swarm/swarm-artifact.svelte +2 -2
- package/dist/ai/swarm/swarm-barrier.svelte +3 -3
- package/dist/ai/swarm/swarm-barriers.svelte +1 -4
- package/dist/ai/swarm/swarm-counts.svelte +2 -2
- package/dist/ai/swarm/swarm-footer.svelte +4 -3
- package/dist/ai/swarm/swarm-grid.svelte +2 -2
- package/dist/ai/swarm/swarm-header.svelte +2 -2
- package/dist/ai/swarm/swarm-node.svelte +7 -9
- package/dist/ai/swarm/swarm-role.svelte +6 -3
- package/dist/ai/swarm/swarm-root.svelte +1 -4
- package/dist/ai/swarm/swarm-sandbox.svelte +4 -7
- package/dist/ai/swarm/swarm-tree.svelte +2 -2
- package/dist/ai/task/task-content.svelte +1 -4
- package/dist/ai/task/task-trigger.svelte +1 -1
- package/dist/ai/tool/tool-chip.svelte +3 -3
- package/dist/ai/tool/tool-chips.svelte +3 -3
- package/dist/ai/tool/tool-exec.svelte +4 -4
- package/dist/ai/tool/tool-header.svelte +1 -1
- package/dist/ai/web-preview/web-preview.svelte +4 -9
- package/dist/ai/workflow/canvas.svelte +1 -1
- package/dist/ai/workflow/node.svelte +3 -3
- package/dist/apps/index.d.ts +3 -3
- package/dist/apps/index.js +3 -3
- package/dist/apps/llm-shell/llm-shell.svelte +4 -4
- package/dist/apps/notes/editor/slash-menu.svelte +2 -4
- package/dist/apps/notes/notes.svelte +8 -8
- package/dist/dev/audit/audits/anonymous-text.d.ts +2 -0
- package/dist/dev/audit/audits/anonymous-text.js +73 -0
- package/dist/dev/audit/audits/even-container-padding.js +2 -2
- package/dist/dev/audit/audits/index.d.ts +2 -1
- package/dist/dev/audit/audits/index.js +3 -1
- package/dist/dev/audit/audits/single-glyph-square.js +2 -2
- package/dist/dev/audit/types.d.ts +1 -1
- package/dist/dev/audit-overlay.svelte +7 -7
- package/dist/docs/css-utilities.d.ts +31 -0
- package/dist/docs/css-utilities.js +142 -8
- package/dist/docs/llms-txt.js +2 -2
- package/dist/docs/notes.md +3 -3
- package/dist/docs/quickstart.md +5 -5
- package/dist/era-ui.css +1 -1
- package/dist/generated-docs/llms-full.txt +455 -110
- package/dist/generated-docs/llms.txt +29 -14
- package/dist/generated-docs/manifest.json +382 -55
- package/dist/generated-docs/notes.md +3 -3
- package/dist/generated-docs/utilities.json +359 -45
- package/dist/generated-docs/utilities.md +423 -93
- package/dist/os/notification-center.svelte +11 -17
- package/dist/os/pane-manager.svelte.d.ts +1 -1
- package/dist/os/pane.svelte +4 -6
- package/dist/os/taskbar.svelte +13 -18
- package/dist/os/toast.svelte +6 -11
- package/dist/os/toaster.svelte +1 -1
- package/dist/styles/density.css +0 -2
- package/dist/styles/index.css +160 -84
- package/dist/ui/accordion/accordion-content.svelte +1 -1
- package/dist/ui/accordion/accordion-trigger.svelte +2 -2
- package/dist/ui/alert-dialog/alert-dialog-content.svelte +2 -2
- package/dist/ui/alert-dialog/alert-dialog-overlay.svelte +1 -1
- package/dist/ui/aspect-ratio/aspect-ratio.svelte +1 -5
- package/dist/ui/avatar/avatar-fallback.svelte +1 -1
- package/dist/ui/avatar/avatar-root.svelte +1 -1
- package/dist/ui/badge/badge.svelte +1 -1
- package/dist/ui/badge/badge.svelte.d.ts +1 -1
- package/dist/ui/bar/bar.svelte +8 -8
- package/dist/ui/bar/bar.svelte.d.ts +16 -16
- package/dist/ui/button/button.svelte +13 -2
- package/dist/ui/button/variants.d.ts +4 -4
- package/dist/ui/button/variants.js +18 -18
- package/dist/ui/button-group/button-group.svelte +2 -2
- package/dist/ui/calendar/calendar-day.svelte +1 -1
- package/dist/ui/calendar/calendar-grid-row.svelte +1 -1
- package/dist/ui/calendar/calendar-grid.svelte +1 -1
- package/dist/ui/calendar/calendar-head-cell.svelte +1 -1
- package/dist/ui/calendar/calendar-header.svelte +1 -1
- package/dist/ui/calendar/calendar-next-button.svelte +1 -1
- package/dist/ui/calendar/calendar-prev-button.svelte +1 -1
- package/dist/ui/calendar/calendar-root.svelte +1 -1
- package/dist/ui/card/card.svelte +10 -10
- package/dist/ui/card/card.svelte.d.ts +16 -16
- package/dist/ui/checkbox/checkbox-group.svelte +1 -1
- package/dist/ui/checkbox/checkbox.svelte +1 -1
- package/dist/ui/chip/chip.svelte +15 -7
- package/dist/ui/chip/chip.svelte.d.ts +7 -7
- package/dist/ui/code-block/code-block.svelte +3 -9
- package/dist/ui/collapsible/collapsible-trigger.svelte +1 -1
- package/dist/ui/combobox/combobox-content.svelte +1 -1
- package/dist/ui/combobox/combobox-empty.svelte +1 -6
- package/dist/ui/combobox/combobox-group-heading.svelte +1 -4
- package/dist/ui/combobox/combobox-input.svelte +1 -1
- package/dist/ui/combobox/combobox-item.svelte +1 -1
- package/dist/ui/combobox/combobox-trigger.svelte +2 -2
- package/dist/ui/command/command-group-heading.svelte +1 -4
- package/dist/ui/command/command-group-items.svelte +1 -5
- package/dist/ui/command/command-item.svelte +1 -1
- package/dist/ui/command/command-link-item.svelte +1 -1
- package/dist/ui/command/command-root.svelte +2 -2
- package/dist/ui/command/command-viewport.svelte +1 -1
- package/dist/ui/command-bar/command-bar.svelte +9 -13
- package/dist/ui/context-menu/context-menu-checkbox-item.svelte +1 -1
- package/dist/ui/context-menu/context-menu-content.svelte +2 -2
- package/dist/ui/context-menu/context-menu-group-heading.svelte +1 -4
- package/dist/ui/context-menu/context-menu-item.svelte +1 -1
- package/dist/ui/context-menu/context-menu-radio-item.svelte +1 -1
- package/dist/ui/context-menu/context-menu-sub-content.svelte +1 -1
- package/dist/ui/context-menu/context-menu-sub-trigger.svelte +2 -2
- package/dist/ui/copy-button/copy-button.svelte +2 -2
- package/dist/ui/cycle/cycle.svelte +2 -2
- package/dist/ui/date-field/date-field-segment.svelte +1 -1
- package/dist/ui/date-picker/date-picker-calendar.svelte +1 -1
- package/dist/ui/date-picker/date-picker-content.svelte +1 -4
- package/dist/ui/date-picker/date-picker-day.svelte +1 -1
- package/dist/ui/date-picker/date-picker-grid-row.svelte +1 -1
- package/dist/ui/date-picker/date-picker-grid.svelte +1 -1
- package/dist/ui/date-picker/date-picker-head-cell.svelte +1 -1
- package/dist/ui/date-picker/date-picker-header.svelte +1 -1
- package/dist/ui/date-picker/date-picker-next-button.svelte +1 -1
- package/dist/ui/date-picker/date-picker-prev-button.svelte +1 -1
- package/dist/ui/date-picker/date-picker-segment.svelte +1 -1
- package/dist/ui/date-picker/date-picker-trigger.svelte +2 -2
- package/dist/ui/date-range-field/date-range-field-segment.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-calendar.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-content.svelte +1 -4
- package/dist/ui/date-range-picker/date-range-picker-day.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-grid-row.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-grid.svelte +1 -5
- package/dist/ui/date-range-picker/date-range-picker-head-cell.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-header.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-next-button.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-prev-button.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-segment.svelte +1 -1
- package/dist/ui/date-range-picker/date-range-picker-trigger.svelte +2 -2
- package/dist/ui/dialog/dialog-content.svelte +3 -5
- package/dist/ui/dialog/dialog-header.svelte +1 -6
- package/dist/ui/dialog/dialog-overlay.svelte +1 -5
- package/dist/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/ui/dropdown-menu/dropdown-menu-content.svelte +2 -2
- package/dist/ui/dropdown-menu/dropdown-menu-group-heading.svelte +1 -4
- package/dist/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +2 -2
- package/dist/ui/dropdown-menu/dropdown-menu-trigger.svelte +2 -2
- package/dist/ui/file-upload/file-upload.svelte +2 -2
- package/dist/ui/index.js +1 -1
- package/dist/ui/input/input.svelte +2 -2
- package/dist/ui/input/textarea.svelte +1 -1
- package/dist/ui/input/variants.d.ts +18 -18
- package/dist/ui/input/variants.js +6 -6
- package/dist/ui/kv/kv.svelte +2 -3
- package/dist/ui/link-preview/link-preview-content.svelte +1 -1
- package/dist/ui/menubar/menubar-checkbox-item.svelte +1 -1
- package/dist/ui/menubar/menubar-content.svelte +2 -2
- package/dist/ui/menubar/menubar-group-heading.svelte +1 -4
- package/dist/ui/menubar/menubar-item.svelte +1 -1
- package/dist/ui/menubar/menubar-radio-item.svelte +1 -1
- package/dist/ui/menubar/menubar-root.svelte +1 -4
- package/dist/ui/menubar/menubar-sub-content.svelte +1 -1
- package/dist/ui/menubar/menubar-sub-trigger.svelte +2 -2
- package/dist/ui/menubar/menubar-trigger.svelte +1 -1
- package/dist/ui/meter/meter.svelte +2 -2
- package/dist/ui/pagination/pagination-next-button.svelte +1 -1
- package/dist/ui/pagination/pagination-prev-button.svelte +1 -1
- package/dist/ui/pagination/pagination-root.svelte +1 -1
- package/dist/ui/pane/pane-content.svelte +1 -1
- package/dist/ui/pane/pane-root.svelte +1 -1
- package/dist/ui/pane/pane-tab-list.svelte +1 -1
- package/dist/ui/pane/pane-tab-panel.svelte +1 -1
- package/dist/ui/pane/pane-tab.svelte +1 -1
- package/dist/ui/pane/pane.svelte +1 -1
- package/dist/ui/pin-input/pin-input-cell.svelte +1 -1
- package/dist/ui/popover/popover-content.svelte +1 -1
- package/dist/ui/popover/popover-trigger.svelte +1 -4
- package/dist/ui/progress/progress.svelte +2 -2
- package/dist/ui/radio-group/radio-group-item.svelte +2 -2
- package/dist/ui/radio-group/radio-group-root.svelte +1 -1
- package/dist/ui/rating-group/rating-group-item.svelte +1 -1
- package/dist/ui/rating-group/rating-group-root.svelte +1 -1
- package/dist/ui/scroll-area/scroll-area-scrollbar.svelte +1 -1
- package/dist/ui/scroll-area/scroll-area-thumb.svelte +1 -1
- package/dist/ui/scroll-area/scroll-area.svelte +1 -1
- package/dist/ui/select/select-content.svelte +7 -6
- package/dist/ui/select/select-group-heading.svelte +1 -4
- package/dist/ui/select/select-item.svelte +1 -1
- package/dist/ui/select/select-trigger.svelte +2 -2
- package/dist/ui/select/select-value.svelte +1 -1
- package/dist/ui/separator/separator.svelte +1 -1
- package/dist/ui/sheet/sheet-content.svelte +3 -3
- package/dist/ui/sheet/sheet-content.svelte.d.ts +4 -4
- package/dist/ui/skeleton/skeleton.svelte +4 -4
- package/dist/ui/skeleton/skeleton.svelte.d.ts +10 -10
- package/dist/ui/slider/slider-range.svelte +1 -1
- package/dist/ui/slider/slider-thumb.svelte +1 -1
- package/dist/ui/slider/slider-tick.svelte +1 -1
- package/dist/ui/step/step-content.svelte +1 -1
- package/dist/ui/step/step-section.svelte +1 -1
- package/dist/ui/step/step-summary.svelte +7 -7
- package/dist/ui/switch/switch.svelte +2 -2
- package/dist/ui/table/table-cell.svelte +1 -1
- package/dist/ui/table/table-head-cell.svelte +1 -1
- package/dist/ui/table/table-row.svelte +1 -1
- package/dist/ui/time-field/time-field-segment.svelte +1 -1
- package/dist/ui/time-range-field/time-range-field-segment.svelte +1 -1
- package/dist/ui/toggle-group/toggle-group-item.svelte +1 -1
- package/dist/ui/toggle-group/toggle-group-root.svelte +1 -1
- package/dist/ui/tooltip/tooltip-content.svelte +1 -1
- package/dist/ui/video-player/video-player.svelte +44 -47
- package/dist/utils/index.js +1 -1
- package/package.json +4 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const chipVariants: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
size: {
|
|
3
|
-
chip: "h-
|
|
4
|
-
pill: "h-
|
|
3
|
+
chip: "h-chip min-w-chip rounded-chip pl-chip";
|
|
4
|
+
pill: "h-pill min-w-pill rounded-pill pl-pill";
|
|
5
5
|
};
|
|
6
6
|
dismissible: {
|
|
7
7
|
true: "";
|
|
8
8
|
false: "";
|
|
9
9
|
};
|
|
10
|
-
}, undefined, "inline-flex shrink-0 items-center bg-fill font-mono text-body leading-none whitespace-nowrap text-fg shadow-
|
|
10
|
+
}, undefined, "inline-flex shrink-0 items-center bg-fill font-mono text-body leading-none whitespace-nowrap text-fg shadow-sm", {
|
|
11
11
|
size: {
|
|
12
|
-
chip: "h-
|
|
13
|
-
pill: "h-
|
|
12
|
+
chip: "h-chip min-w-chip rounded-chip pl-chip";
|
|
13
|
+
pill: "h-pill min-w-pill rounded-pill pl-pill";
|
|
14
14
|
};
|
|
15
15
|
dismissible: {
|
|
16
16
|
true: "";
|
|
@@ -18,8 +18,8 @@ export declare const chipVariants: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
};
|
|
19
19
|
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
20
20
|
size: {
|
|
21
|
-
chip: "h-
|
|
22
|
-
pill: "h-
|
|
21
|
+
chip: "h-chip min-w-chip rounded-chip pl-chip";
|
|
22
|
+
pill: "h-pill min-w-pill rounded-pill pl-pill";
|
|
23
23
|
};
|
|
24
24
|
dismissible: {
|
|
25
25
|
true: "";
|
|
@@ -38,14 +38,11 @@
|
|
|
38
38
|
visibly off its curve. -->
|
|
39
39
|
<div
|
|
40
40
|
bind:this={ref}
|
|
41
|
-
class={cn(
|
|
42
|
-
'relative rounded-(--era-rd-bar) bg-(--era-field-bg) shadow-(--era-shadow-well)',
|
|
43
|
-
className
|
|
44
|
-
)}
|
|
41
|
+
class={cn('relative rounded-bar bg-field shadow-well', className)}
|
|
45
42
|
{...restProps}
|
|
46
43
|
>
|
|
47
44
|
<pre
|
|
48
|
-
class="overflow-x-auto px-
|
|
45
|
+
class="overflow-x-auto px-field py-inset-control pr-[calc(var(--era-chip-inset-bar)+var(--era-h-chip)+var(--era-field-px))] font-mono text-body leading-body text-fg"><code
|
|
49
46
|
>{#if children}{@render children()}{:else}{code}{/if}</code
|
|
50
47
|
></pre>
|
|
51
48
|
{#if copyable}
|
|
@@ -60,9 +57,6 @@
|
|
|
60
57
|
in, which broke the moment the leading changed and was never the
|
|
61
58
|
corner's own law: the button sat 4.75px from the top and 6.15px from
|
|
62
59
|
the right edge at dense, visibly off the curve. -->
|
|
63
|
-
<CopyButton
|
|
64
|
-
text={copyText}
|
|
65
|
-
class="absolute top-(--era-chip-inset-bar) right-(--era-chip-inset-bar) bg-(--era-field-bg)"
|
|
66
|
-
/>
|
|
60
|
+
<CopyButton text={copyText} class="absolute top-chip-inset-bar right-chip-inset-bar bg-field" />
|
|
67
61
|
{/if}
|
|
68
62
|
</div>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<Collapsible.Trigger
|
|
14
14
|
bind:ref
|
|
15
15
|
class={cn(
|
|
16
|
-
'flex h-
|
|
16
|
+
'flex h-control w-full items-center rounded-control px-inset-control text-body text-fg hover:bg-highlight focus:outline-none disabled:opacity-50',
|
|
17
17
|
className
|
|
18
18
|
)}
|
|
19
19
|
{...restProps}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
bind:ref
|
|
16
16
|
align="start"
|
|
17
17
|
class={cn(
|
|
18
|
-
'z-50 w-max min-w-(--bits-combobox-anchor-width) overflow-hidden rounded-
|
|
18
|
+
'z-50 w-max min-w-(--bits-combobox-anchor-width) overflow-hidden rounded-control bg-elevated p-menu shadow-lg glass-blur data-[side=bottom]:rounded-t-none data-[side=top]:rounded-b-none',
|
|
19
19
|
className
|
|
20
20
|
)}
|
|
21
21
|
{sideOffset}
|
|
@@ -11,12 +11,7 @@
|
|
|
11
11
|
} = $props();
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<div
|
|
15
|
-
class={cn(
|
|
16
|
-
'flex h-(--era-h-control) items-center px-(--era-inset-control) text-body text-muted',
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
19
|
-
>
|
|
14
|
+
<div class={cn('flex h-control items-center px-inset-control text-body text-muted', className)}>
|
|
20
15
|
{#if children}
|
|
21
16
|
{@render children()}
|
|
22
17
|
{:else}
|
|
@@ -12,10 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
<Combobox.GroupHeading
|
|
14
14
|
bind:ref
|
|
15
|
-
class={cn(
|
|
16
|
-
'flex h-(--era-h-control) items-center px-(--era-inset-control) text-body text-muted',
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
15
|
+
class={cn('flex h-control items-center px-inset-control text-body text-muted', className)}
|
|
19
16
|
{...restProps}
|
|
20
17
|
>
|
|
21
18
|
{@render children?.()}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
class={cn(
|
|
13
13
|
inputVariants(),
|
|
14
14
|
// era-ink-center: the same font-box-vs-ink correction Input documents.
|
|
15
|
-
'era-ink-center data-[state=open]:rounded-b-none data-[state=open]:shadow-
|
|
15
|
+
'era-ink-center data-[state=open]:rounded-b-none data-[state=open]:shadow-pressed',
|
|
16
16
|
className
|
|
17
17
|
)}
|
|
18
18
|
{...restProps}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<Combobox.Item
|
|
11
11
|
bind:ref
|
|
12
12
|
class={cn(
|
|
13
|
-
'flex h-
|
|
13
|
+
'flex h-control cursor-pointer items-center rounded-menu-item px-inset-control text-body text-fg data-[highlighted]:bg-highlight data-[highlighted]:shadow-highlight',
|
|
14
14
|
className
|
|
15
15
|
)}
|
|
16
16
|
{...restProps}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<Combobox.Trigger
|
|
15
15
|
bind:ref
|
|
16
16
|
class={cn(
|
|
17
|
-
'flex size-
|
|
17
|
+
'flex size-control shrink-0 items-center justify-center rounded-control text-muted focus:outline-none',
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
{#if children}
|
|
23
23
|
{@render children()}
|
|
24
24
|
{:else}
|
|
25
|
-
<ChevronDown class="size-
|
|
25
|
+
<ChevronDown class="size-icon" />
|
|
26
26
|
{/if}
|
|
27
27
|
</Combobox.Trigger>
|
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
<Command.GroupHeading
|
|
13
13
|
bind:ref
|
|
14
|
-
class={cn(
|
|
15
|
-
'flex h-(--era-h-control) items-center px-(--era-inset-control) text-body text-muted',
|
|
16
|
-
className
|
|
17
|
-
)}
|
|
14
|
+
class={cn('flex h-control items-center px-inset-control text-body text-muted', className)}
|
|
18
15
|
{...restProps}
|
|
19
16
|
/>
|
|
@@ -5,8 +5,4 @@
|
|
|
5
5
|
let { ref = $bindable(null), class: className, ...restProps }: Command.GroupItemsProps = $props();
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<Command.GroupItems
|
|
9
|
-
bind:ref
|
|
10
|
-
class={cn('flex flex-col gap-(--era-gap)', className)}
|
|
11
|
-
{...restProps}
|
|
12
|
-
/>
|
|
8
|
+
<Command.GroupItems bind:ref class={cn('flex flex-col gap-gutter', className)} {...restProps} />
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<Command.Item
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
'flex h-
|
|
11
|
+
'flex h-control cursor-pointer items-center gap-gutter rounded-control px-inset-control text-body leading-none text-fg outline-none select-none not-has-[svg]:era-label-ink data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[selected]:bg-highlight',
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<Command.LinkItem
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
'flex h-
|
|
11
|
+
'flex h-control cursor-pointer items-center gap-gutter rounded-control px-inset-control text-body leading-none text-fg no-underline outline-none select-none not-has-[svg]:era-label-ink data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[selected]:bg-highlight',
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
bind:ref
|
|
21
21
|
bind:value
|
|
22
22
|
class={cn(
|
|
23
|
-
'flex flex-col gap-
|
|
23
|
+
'flex flex-col gap-gutter',
|
|
24
24
|
// glass-blur, like every other floating panel (menus, dialogs, pickers):
|
|
25
25
|
// inert on opaque surfaces, blurs the backdrop when the palette floats.
|
|
26
26
|
!bare &&
|
|
27
|
-
'overflow-hidden rounded-
|
|
27
|
+
'overflow-hidden rounded-bar border border-(color:--era-border-color) bg-well p-gutter shadow-lg glass-blur',
|
|
28
28
|
className
|
|
29
29
|
)}
|
|
30
30
|
{...restProps}
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
let { ref = $bindable(null), class: className, ...restProps }: Command.ViewportProps = $props();
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<Command.Viewport bind:ref class={cn('flex flex-col gap-
|
|
8
|
+
<Command.Viewport bind:ref class={cn('flex flex-col gap-gutter', className)} {...restProps} />
|
|
@@ -190,10 +190,8 @@
|
|
|
190
190
|
glass-blur: a flat sheet on flat (shadow resolves to none), the chisel frame
|
|
191
191
|
on bevel, frost on glass — so it reads as "dedicated" on every surface, not
|
|
192
192
|
an undifferentiated rectangle. -->
|
|
193
|
-
<div
|
|
194
|
-
class=
|
|
195
|
-
>
|
|
196
|
-
<ChevronRight class="mx-(--era-gap) size-(--era-h-icon) shrink-0 text-fg" />
|
|
193
|
+
<div class={cn('relative flex h-control w-full min-w-0 items-center font-mono', className)}>
|
|
194
|
+
<ChevronRight class="mx-gutter size-icon shrink-0 text-fg" />
|
|
197
195
|
|
|
198
196
|
<!-- Completed segments: the locked prefix. Backspace (empty input) pops. -->
|
|
199
197
|
<!-- ONE chevron, one size, everywhere in the bar: the prompt's, the
|
|
@@ -204,7 +202,7 @@
|
|
|
204
202
|
sizes of it. -->
|
|
205
203
|
{#each stack as seg (seg.value)}
|
|
206
204
|
<span class="shrink-0 text-body text-muted">{seg.label}</span>
|
|
207
|
-
<ChevronRight class="mx-
|
|
205
|
+
<ChevronRight class="mx-gutter size-icon shrink-0 text-muted" />
|
|
208
206
|
{/each}
|
|
209
207
|
|
|
210
208
|
<!-- ONE source of truth for the field's type: font size and text colour live on
|
|
@@ -268,13 +266,11 @@
|
|
|
268
266
|
role="listbox"
|
|
269
267
|
tabindex="-1"
|
|
270
268
|
aria-label="Commands"
|
|
271
|
-
class="absolute top-full left-0 z-50 max-h-64 w-full overflow-x-hidden overflow-y-auto bg-
|
|
269
|
+
class="absolute top-full left-0 z-50 max-h-64 w-full overflow-x-hidden overflow-y-auto bg-elevated shadow-lg glass-blur"
|
|
272
270
|
onmousedown={(e) => e.preventDefault()}
|
|
273
271
|
>
|
|
274
272
|
{#if !filtered.length}
|
|
275
|
-
<div
|
|
276
|
-
class="flex h-(--era-h-control) items-center px-(--era-inset-control) text-body text-muted"
|
|
277
|
-
>
|
|
273
|
+
<div class="flex h-control items-center px-inset-control text-body text-muted">
|
|
278
274
|
{empty}
|
|
279
275
|
</div>
|
|
280
276
|
{:else}
|
|
@@ -290,7 +286,7 @@
|
|
|
290
286
|
tabindex={-1}
|
|
291
287
|
aria-selected={i === selectedIndex}
|
|
292
288
|
class={cn(
|
|
293
|
-
'flex h-
|
|
289
|
+
'flex h-control cursor-default items-center gap-gutter px-inset-control text-body leading-none whitespace-nowrap',
|
|
294
290
|
i === selectedIndex ? 'bg-3 text-bright' : 'text-fg'
|
|
295
291
|
)}
|
|
296
292
|
onclick={() => choose(item)}
|
|
@@ -299,14 +295,14 @@
|
|
|
299
295
|
<span class="shrink-0">{item.icon}</span>
|
|
300
296
|
{:else if item.icon}
|
|
301
297
|
{@const Icon = item.icon}
|
|
302
|
-
<Icon class="size-
|
|
298
|
+
<Icon class="size-icon shrink-0 text-muted" />
|
|
303
299
|
{/if}
|
|
304
300
|
<span class="shrink-0">{item.label}</span>
|
|
305
301
|
{#if item.items}
|
|
306
|
-
<ChevronRight class="size-
|
|
302
|
+
<ChevronRight class="size-icon shrink-0 text-muted" />
|
|
307
303
|
{/if}
|
|
308
304
|
{#if item.sublabel}
|
|
309
|
-
<span class="ml-auto truncate pl-
|
|
305
|
+
<span class="ml-auto truncate pl-inset-control text-body text-muted">
|
|
310
306
|
{item.sublabel}
|
|
311
307
|
</span>
|
|
312
308
|
{/if}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
bind:ref
|
|
15
15
|
bind:checked
|
|
16
16
|
class={cn(
|
|
17
|
-
'flex h-
|
|
17
|
+
'flex h-control cursor-pointer items-center rounded-menu-item px-inset-control text-body text-fg data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[highlighted]:bg-highlight data-[highlighted]:shadow-highlight',
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
<ContextMenu.Content
|
|
16
16
|
bind:ref
|
|
17
17
|
align="start"
|
|
18
|
-
// p-
|
|
18
|
+
// p-menu, SURFACE-owned on purpose: 0 on flat — rows run the
|
|
19
19
|
// panel's full width, flush, and the first row sits directly under the
|
|
20
20
|
// anchor bar (the reference terminal look) — while glass and bevel keep the
|
|
21
21
|
// 2px frame that stops a full-width highlight from breaking their chrome.
|
|
22
22
|
// A fixed gutter was tried here and rejected: it padded flat menus too.
|
|
23
23
|
class={cn(
|
|
24
|
-
'z-50 w-max overflow-hidden rounded-
|
|
24
|
+
'z-50 w-max overflow-hidden rounded-control bg-elevated p-menu shadow-lg glass-blur',
|
|
25
25
|
className
|
|
26
26
|
)}
|
|
27
27
|
{sideOffset}
|
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
<ContextMenu.GroupHeading
|
|
13
13
|
bind:ref
|
|
14
|
-
class={cn(
|
|
15
|
-
'flex h-(--era-h-control) items-center px-(--era-inset-control) text-body text-muted',
|
|
16
|
-
className
|
|
17
|
-
)}
|
|
14
|
+
class={cn('flex h-control items-center px-inset-control text-body text-muted', className)}
|
|
18
15
|
{...restProps}
|
|
19
16
|
/>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<ContextMenu.Item
|
|
14
14
|
bind:ref
|
|
15
15
|
class={cn(
|
|
16
|
-
'flex h-
|
|
16
|
+
'flex h-control cursor-pointer items-center gap-gutter rounded-menu-item px-inset-control text-body text-fg data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[highlighted]:bg-highlight data-[highlighted]:shadow-highlight',
|
|
17
17
|
className
|
|
18
18
|
)}
|
|
19
19
|
{...restProps}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<ContextMenu.RadioItem
|
|
13
13
|
bind:ref
|
|
14
14
|
class={cn(
|
|
15
|
-
'flex h-
|
|
15
|
+
'flex h-control cursor-pointer items-center rounded-menu-item px-inset-control text-body text-fg data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[highlighted]:bg-highlight data-[highlighted]:shadow-highlight',
|
|
16
16
|
className
|
|
17
17
|
)}
|
|
18
18
|
{...restProps}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<ContextMenu.SubContent
|
|
16
16
|
bind:ref
|
|
17
17
|
class={cn(
|
|
18
|
-
'z-50 w-max overflow-hidden rounded-
|
|
18
|
+
'z-50 w-max overflow-hidden rounded-control bg-elevated p-menu shadow-lg glass-blur',
|
|
19
19
|
className
|
|
20
20
|
)}
|
|
21
21
|
{sideOffset}
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
<ContextMenu.SubTrigger
|
|
15
15
|
bind:ref
|
|
16
16
|
class={cn(
|
|
17
|
-
'flex h-
|
|
17
|
+
'flex h-control cursor-pointer items-center justify-between gap-icon-inset-chip rounded-menu-item px-inset-control text-body text-fg data-[highlighted]:bg-highlight data-[highlighted]:shadow-highlight data-[state=open]:bg-hover',
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
21
21
|
>
|
|
22
22
|
{@render children?.()}
|
|
23
|
-
<ChevronRight class="size-
|
|
23
|
+
<ChevronRight class="size-icon text-muted" />
|
|
24
24
|
</ContextMenu.SubTrigger>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
// leaving one does the reverse; timing rides the motion axis, so the swap
|
|
76
76
|
// snaps at instant, is decisive at normal, and overshoots at extra.
|
|
77
77
|
const iconBase =
|
|
78
|
-
'absolute inset-0 size-
|
|
78
|
+
'absolute inset-0 size-icon transition-[opacity,scale,filter] duration-base ease-base';
|
|
79
79
|
const iconIn = 'scale-100 opacity-100 blur-none';
|
|
80
80
|
const iconOut = 'scale-25 opacity-0 blur-xs';
|
|
81
81
|
</script>
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
onclick={copy}
|
|
90
90
|
{...restProps}
|
|
91
91
|
>
|
|
92
|
-
<span class="relative block size-
|
|
92
|
+
<span class="relative block size-icon 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
95
|
<FailureIcon
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
// unmounts can only animate its enter. Timing rides the motion axis, so the
|
|
104
104
|
// swap snaps at instant, is decisive at normal, and overshoots at extra.
|
|
105
105
|
const faceBase =
|
|
106
|
-
'col-start-1 row-start-1 flex items-center justify-center transition-[opacity,scale,filter] duration-
|
|
106
|
+
'col-start-1 row-start-1 flex items-center justify-center transition-[opacity,scale,filter] duration-base ease-base';
|
|
107
107
|
const faceIn = 'scale-100 opacity-100 blur-none';
|
|
108
108
|
const faceOut = 'pointer-events-none scale-25 opacity-0 blur-xs';
|
|
109
109
|
</script>
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
{@render children(option)}
|
|
141
141
|
{:else if option.icon}
|
|
142
142
|
{@const Icon = option.icon}
|
|
143
|
-
<Icon class="size-
|
|
143
|
+
<Icon class="size-icon shrink-0" />
|
|
144
144
|
{:else}
|
|
145
145
|
{option.label}
|
|
146
146
|
{/if}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<DateField.Segment
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
'inline-flex h-
|
|
11
|
+
'inline-flex h-chip items-center rounded-chip px-[calc(var(--era-sp)/2)] focus:bg-highlight focus:text-bright focus:outline-none aria-[valuetext=Empty]:text-muted data-[segment=literal]:text-muted',
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
<DatePicker.Content
|
|
15
15
|
bind:ref
|
|
16
16
|
align="start"
|
|
17
|
-
class={cn(
|
|
18
|
-
'z-50 rounded-(--era-rd-bar) bg-(--era-surface-bg-elevated) p-(--era-pad-content) shadow-(--era-shadow-lg) glass-blur',
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
17
|
+
class={cn('z-50 rounded-bar bg-elevated p-content shadow-lg glass-blur', className)}
|
|
21
18
|
{sideOffset}
|
|
22
19
|
{...restProps}
|
|
23
20
|
>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<DatePicker.Day
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
'inline-flex size-
|
|
11
|
+
'inline-flex size-control cursor-default items-center justify-center rounded-control text-body text-fg hover:bg-highlight focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[outside-month]:pointer-events-none data-[outside-month]:text-muted/40 data-[selected]:bg-hover data-[selected]:text-bright data-[unavailable]:text-muted data-[unavailable]:line-through',
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
let { ref = $bindable(null), class: className, ...restProps }: DatePicker.GridRowProps = $props();
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<DatePicker.GridRow bind:ref class={cn('flex gap-
|
|
8
|
+
<DatePicker.GridRow bind:ref class={cn('flex gap-gutter', className)} {...restProps} />
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
let { ref = $bindable(null), class: className, ...restProps }: DatePicker.GridProps = $props();
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<DatePicker.Grid bind:ref class={cn('flex flex-col gap-
|
|
8
|
+
<DatePicker.Grid bind:ref class={cn('flex flex-col gap-gutter', className)} {...restProps} />
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<DatePicker.HeadCell
|
|
13
13
|
bind:ref
|
|
14
14
|
class={cn(
|
|
15
|
-
'flex size-
|
|
15
|
+
'flex size-control items-center justify-center text-body font-normal text-muted',
|
|
16
16
|
className
|
|
17
17
|
)}
|
|
18
18
|
{...restProps}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<DatePicker.Segment
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
'inline-flex h-
|
|
11
|
+
'inline-flex h-chip items-center rounded-chip px-[calc(var(--era-sp)/2)] focus:bg-highlight focus:text-bright focus:outline-none aria-[valuetext=Empty]:text-muted data-[segment=literal]:text-muted',
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<DatePicker.Trigger
|
|
15
15
|
bind:ref
|
|
16
16
|
class={cn(
|
|
17
|
-
'ml-auto flex size-
|
|
17
|
+
'ml-auto flex size-chip shrink-0 items-center justify-center rounded-chip text-muted hover:bg-highlight hover:text-fg focus:outline-none',
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
{#if children}
|
|
23
23
|
{@render children()}
|
|
24
24
|
{:else}
|
|
25
|
-
<CalendarDays class="size-
|
|
25
|
+
<CalendarDays class="size-icon" />
|
|
26
26
|
{/if}
|
|
27
27
|
</DatePicker.Trigger>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<DateRangeField.Segment
|
|
13
13
|
bind:ref
|
|
14
14
|
class={cn(
|
|
15
|
-
'inline-flex h-
|
|
15
|
+
'inline-flex h-chip items-center rounded-chip px-[calc(var(--era-sp)/2)] focus:bg-highlight focus:text-bright focus:outline-none aria-[valuetext=Empty]:text-muted data-[segment=literal]:text-muted',
|
|
16
16
|
className
|
|
17
17
|
)}
|
|
18
18
|
{...restProps}
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
<DateRangePicker.Content
|
|
15
15
|
bind:ref
|
|
16
16
|
align="start"
|
|
17
|
-
class={cn(
|
|
18
|
-
'z-50 rounded-(--era-rd-bar) bg-(--era-surface-bg-elevated) p-(--era-pad-content) shadow-(--era-shadow-lg) glass-blur',
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
17
|
+
class={cn('z-50 rounded-bar bg-elevated p-content shadow-lg glass-blur', className)}
|
|
21
18
|
{sideOffset}
|
|
22
19
|
{...restProps}
|
|
23
20
|
>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<DateRangePicker.Day
|
|
13
13
|
bind:ref
|
|
14
14
|
class={cn(
|
|
15
|
-
'inline-flex size-
|
|
15
|
+
'inline-flex size-control cursor-default items-center justify-center rounded-control text-body text-fg hover:bg-highlight focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-highlight data-[highlighted]:shadow-highlight data-[outside-month]:pointer-events-none data-[outside-month]:text-muted/40 data-[range-end]:bg-primary data-[range-end]:text-primary-fg data-[range-start]:bg-primary data-[range-start]:text-primary-fg data-[selected]:bg-hover data-[selected]:text-bright data-[unavailable]:text-muted data-[unavailable]:line-through',
|
|
16
16
|
className
|
|
17
17
|
)}
|
|
18
18
|
{...restProps}
|
|
@@ -9,8 +9,4 @@
|
|
|
9
9
|
}: DateRangePicker.GridProps = $props();
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<DateRangePicker.Grid
|
|
13
|
-
bind:ref
|
|
14
|
-
class={cn('flex flex-col gap-(--era-gap)', className)}
|
|
15
|
-
{...restProps}
|
|
16
|
-
/>
|
|
12
|
+
<DateRangePicker.Grid bind:ref class={cn('flex flex-col gap-gutter', className)} {...restProps} />
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<DateRangePicker.HeadCell
|
|
13
13
|
bind:ref
|
|
14
14
|
class={cn(
|
|
15
|
-
'flex size-
|
|
15
|
+
'flex size-control items-center justify-center text-body font-normal text-muted',
|
|
16
16
|
className
|
|
17
17
|
)}
|
|
18
18
|
{...restProps}
|