@adea-ai/ui 0.97.2 → 0.97.4
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/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
- package/dist/components/composites/about-dialog/about-dialog.js +2 -1
- package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +44 -42
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +23 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts +22 -5
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +249 -152
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -0
- package/dist/components/composites/appearance-editor/appearance-types.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +10 -0
- package/dist/components/composites/appearance-editor/theme-preview.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +61 -12
- package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
- package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
- package/dist/components/composites/help-center/help-center.js +3 -2
- package/dist/components/composites/help-center/help-center.js.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +3 -3
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +6 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +19 -14
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +13 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +270 -160
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -0
- package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +58 -0
- package/dist/r/src/components/composites/help-center/help-center.tsx +3 -2
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +3 -3
- package/package.json +1 -1
- package/src/components/composites/about-dialog/about-dialog.tsx +6 -1
- package/src/components/composites/appearance-editor/appearance-choices.tsx +19 -14
- package/src/components/composites/appearance-editor/appearance-editor.tsx +13 -1
- package/src/components/composites/appearance-editor/appearance-rows.tsx +270 -160
- package/src/components/composites/appearance-editor/appearance-types.ts +7 -0
- package/src/components/composites/appearance-editor/theme-preview.tsx +58 -0
- package/src/components/composites/help-center/help-center.tsx +3 -2
- package/src/components/composites/update-dialog/update-dialog.tsx +3 -3
|
@@ -105,6 +105,64 @@ export function ThemeMiniatureSplit(props: { light: AdeaTheme; dark: AdeaTheme;
|
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
/**
|
|
109
|
+
* The dropdown-item preview: the ThemePreview composition (rail + panel +
|
|
110
|
+
* text bars + action row) at menu scale, so a menu item carries the theme's
|
|
111
|
+
* actual chrome rather than the three-band trigger swatch. `aria-hidden` —
|
|
112
|
+
* the item's accessible name stays the theme name.
|
|
113
|
+
*/
|
|
114
|
+
export function ThemeMenuPreview(props: { theme: AdeaTheme; class?: string }) {
|
|
115
|
+
const colors = () => props.theme.colors
|
|
116
|
+
return (
|
|
117
|
+
<span
|
|
118
|
+
data-theme-menu-preview
|
|
119
|
+
aria-hidden="true"
|
|
120
|
+
class={cn(
|
|
121
|
+
'flex h-16 w-28 shrink-0 overflow-hidden rounded-md border border-(--appearance-preview-border)',
|
|
122
|
+
props.class
|
|
123
|
+
)}
|
|
124
|
+
style={{
|
|
125
|
+
'background-color': colors().surface,
|
|
126
|
+
'--appearance-preview-border': colors().border,
|
|
127
|
+
}}
|
|
128
|
+
>
|
|
129
|
+
<span
|
|
130
|
+
class="flex w-5 shrink-0 flex-col items-center gap-1.5 border-e border-(--appearance-preview-border) pt-2"
|
|
131
|
+
style={{ 'background-color': colors().surfaceElevated }}
|
|
132
|
+
>
|
|
133
|
+
<span class="size-1.5 rounded-[3px]" style={{ 'background-color': colors().accent }} />
|
|
134
|
+
<span
|
|
135
|
+
class="size-1.5 rounded-[3px]"
|
|
136
|
+
style={{ 'background-color': colors().surfaceActive }}
|
|
137
|
+
/>
|
|
138
|
+
<span
|
|
139
|
+
class="size-1.5 rounded-[3px]"
|
|
140
|
+
style={{ 'background-color': colors().surfaceActive }}
|
|
141
|
+
/>
|
|
142
|
+
</span>
|
|
143
|
+
<span
|
|
144
|
+
class="m-1 flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-(--appearance-preview-border) p-1.5"
|
|
145
|
+
style={{
|
|
146
|
+
'background-color': colors().background,
|
|
147
|
+
'--appearance-preview-border': colors().border,
|
|
148
|
+
}}
|
|
149
|
+
>
|
|
150
|
+
<span class="h-1.5 w-8 rounded-full" style={{ 'background-color': colors().text }} />
|
|
151
|
+
<span class="h-1 w-full rounded-full" style={{ 'background-color': colors().textMuted }} />
|
|
152
|
+
<span class="h-1 w-3/4 rounded-full" style={{ 'background-color': colors().textMuted }} />
|
|
153
|
+
<span class="mt-auto flex items-center gap-1">
|
|
154
|
+
<span class="h-2.5 w-7 rounded-[3px]" style={{ 'background-color': colors().accent }} />
|
|
155
|
+
<span class="h-2.5 w-4 rounded-[3px]" style={{ 'background-color': colors().error }} />
|
|
156
|
+
<span
|
|
157
|
+
class="h-2.5 w-4 rounded-[3px]"
|
|
158
|
+
style={{ 'background-color': colors().surfaceActive }}
|
|
159
|
+
/>
|
|
160
|
+
</span>
|
|
161
|
+
</span>
|
|
162
|
+
</span>
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
|
|
108
166
|
export function PalettePreview(props: { theme: AdeaTheme; class?: string }) {
|
|
109
167
|
const bands = () => [
|
|
110
168
|
props.theme.colors.surface,
|
|
@@ -41,7 +41,7 @@ export function HelpCenter(props: HelpCenterProps) {
|
|
|
41
41
|
</div>
|
|
42
42
|
<Card>
|
|
43
43
|
<CardHeader>
|
|
44
|
-
<h2 class="text-base font-semibold text-
|
|
44
|
+
<h2 class="text-base font-semibold text-foreground">Keyboard shortcuts</h2>
|
|
45
45
|
</CardHeader>
|
|
46
46
|
<CardContent>
|
|
47
47
|
<ul class="flex flex-col gap-3">
|
|
@@ -60,7 +60,7 @@ export function HelpCenter(props: HelpCenterProps) {
|
|
|
60
60
|
</Card>
|
|
61
61
|
<Card>
|
|
62
62
|
<CardHeader>
|
|
63
|
-
<h2 class="text-base font-semibold text-
|
|
63
|
+
<h2 class="text-base font-semibold text-foreground">Project links</h2>
|
|
64
64
|
</CardHeader>
|
|
65
65
|
<CardContent>
|
|
66
66
|
<ul class="flex flex-col gap-4">
|
|
@@ -71,6 +71,7 @@ export function HelpCenter(props: HelpCenterProps) {
|
|
|
71
71
|
as="a"
|
|
72
72
|
variant="link"
|
|
73
73
|
size="sm"
|
|
74
|
+
class="text-foreground decoration-primary"
|
|
74
75
|
href={link.url}
|
|
75
76
|
target="_blank"
|
|
76
77
|
rel="noopener noreferrer"
|
|
@@ -590,7 +590,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
590
590
|
<p class="text-2xs font-semibold tracking-widest text-muted-foreground uppercase">
|
|
591
591
|
Installed version
|
|
592
592
|
</p>
|
|
593
|
-
<p class="text-xl font-semibold tracking-tight text-
|
|
593
|
+
<p class="text-xl font-semibold tracking-tight text-foreground">
|
|
594
594
|
v{state()?.currentVersion || local.fallbackVersion || '0.1.0'}
|
|
595
595
|
</p>
|
|
596
596
|
<p class="text-sm text-muted-foreground">
|
|
@@ -757,7 +757,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
757
757
|
<Show when={notes()}>
|
|
758
758
|
<div class="flex flex-col gap-2">
|
|
759
759
|
<div class="flex items-center gap-2">
|
|
760
|
-
<h2 id="update-release-notes" class="text-sm font-semibold text-
|
|
760
|
+
<h2 id="update-release-notes" class="text-sm font-semibold text-foreground">
|
|
761
761
|
What changed in this release
|
|
762
762
|
</h2>
|
|
763
763
|
<Badge variant="subtle" size="sm">
|
|
@@ -780,7 +780,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
780
780
|
|
|
781
781
|
<Show when={changelog()}>
|
|
782
782
|
<div class="flex flex-col gap-2">
|
|
783
|
-
<h2 id="update-changelog" class="text-sm font-semibold text-
|
|
783
|
+
<h2 id="update-changelog" class="text-sm font-semibold text-foreground">
|
|
784
784
|
Installed changelog
|
|
785
785
|
</h2>
|
|
786
786
|
<p class="text-xs text-muted-foreground">
|