@invopop/popui 0.0.84 → 0.0.86
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.
|
@@ -57,7 +57,7 @@ onMount(() => {
|
|
|
57
57
|
{:else if item.icon}
|
|
58
58
|
<Icon
|
|
59
59
|
src={item.icon}
|
|
60
|
-
class="w-4 h-4 {item.destructive ? 'text-danger-500' : 'text-neutral-500'}"
|
|
60
|
+
class="w-4 h-4 {item.destructive ? 'text-danger-500' : item.iconClass || 'text-neutral-500'}"
|
|
61
61
|
/>
|
|
62
62
|
{/if}
|
|
63
63
|
<div class="whitespace-nowrap flex-1 text-left flex flex-col truncate" title={item.label}>
|
|
@@ -34,6 +34,8 @@ $:
|
|
|
34
34
|
selectedColor = !multiple && items.find((i) => i.selected)?.color;
|
|
35
35
|
$:
|
|
36
36
|
selectedIcon = !multiple && items.find((i) => i.selected)?.icon;
|
|
37
|
+
$:
|
|
38
|
+
selectedIconColor = !multiple && items.find((i) => i.selected)?.iconClass || "text-neutral-500";
|
|
37
39
|
$:
|
|
38
40
|
selectedLabel = `${selectedItems[0]?.label || ""}${selectedItems.length > 1 ? " and more..." : ""}` || placeholder;
|
|
39
41
|
$:
|
|
@@ -64,7 +66,7 @@ function handleSelected(e) {
|
|
|
64
66
|
{#if selectedColor}
|
|
65
67
|
<TagStatus dot status={selectedColor} />
|
|
66
68
|
{:else if selectedIcon}
|
|
67
|
-
<Icon src={selectedIcon} {iconTheme} class="h-4 w-4
|
|
69
|
+
<Icon src={selectedIcon} {iconTheme} class="{selectedIconColor} h-4 w-4 flex-shrink-0" />
|
|
68
70
|
{:else if resolvedIcon}
|
|
69
71
|
<Icon src={resolvedIcon} {iconTheme} class="h-4 w-4 text-neutral-500 flex-shrink-0" />
|
|
70
72
|
{/if}
|
package/dist/types.d.ts
CHANGED