@immich/ui 0.53.2 → 0.53.3
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.
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
<div class="flex flex-col">
|
|
43
43
|
<div class="flex place-items-center gap-2">
|
|
44
44
|
<Text fontWeight="semi-bold">{item.title}</Text>
|
|
45
|
-
|
|
45
|
+
{#if item.icon}
|
|
46
|
+
<Icon icon={item.icon} size="1.25rem" class={item.iconClass} />
|
|
47
|
+
{/if}
|
|
46
48
|
</div>
|
|
47
49
|
{#if item.description}
|
|
48
50
|
<Text
|
|
@@ -133,7 +133,9 @@
|
|
|
133
133
|
class="px-1"
|
|
134
134
|
>
|
|
135
135
|
<div class={itemStyles({ color: item.color })}>
|
|
136
|
-
|
|
136
|
+
{#if item.icon}
|
|
137
|
+
<Icon icon={item.icon} class="m-2 shrink-0" />
|
|
138
|
+
{/if}
|
|
137
139
|
<Text class="grow text-start font-medium select-none" size="medium">{item.title}</Text>
|
|
138
140
|
</div>
|
|
139
141
|
</DropdownMenu.Item>
|
|
@@ -144,16 +146,18 @@
|
|
|
144
146
|
<DropdownMenu.Separator class="dark:border-light-300 my-0.5 border-t" />
|
|
145
147
|
<div class="flex gap-1 px-1">
|
|
146
148
|
{#each filteredBottomItems as item (item.title)}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
{#if item.icon}
|
|
150
|
+
<DropdownMenu.Item
|
|
151
|
+
textValue={item.title}
|
|
152
|
+
closeOnSelect
|
|
153
|
+
onSelect={() => item.onAction(item)}
|
|
154
|
+
title={item.title}
|
|
155
|
+
>
|
|
156
|
+
<div class={cleanClass(itemStyles({ color: item.color }))}>
|
|
157
|
+
<Icon icon={item.icon} class="m-2 shrink-0" />
|
|
158
|
+
</div>
|
|
159
|
+
</DropdownMenu.Item>
|
|
160
|
+
{/if}
|
|
157
161
|
{/each}
|
|
158
162
|
</div>
|
|
159
163
|
{/if}
|
|
@@ -19,7 +19,7 @@ declare class CommandPaletteManager {
|
|
|
19
19
|
description?: string;
|
|
20
20
|
type?: string;
|
|
21
21
|
searchText?: string;
|
|
22
|
-
icon
|
|
22
|
+
icon?: import("../types.js").IconLike;
|
|
23
23
|
iconClass?: string;
|
|
24
24
|
color?: import("../types.js").Color;
|
|
25
25
|
onAction: import("../types.js").ActionItemHandler;
|
package/dist/types.d.ts
CHANGED