@invopop/popui 0.1.21 → 0.1.22
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/BaseCard.svelte
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{...rest}
|
|
21
21
|
{onclick}
|
|
22
22
|
>
|
|
23
|
-
<div class="flex flex-col gap-2 w-full">
|
|
23
|
+
<div class="flex flex-col gap-2 w-full flex-1">
|
|
24
24
|
<div class="flex items-start justify-between w-full">
|
|
25
25
|
<div
|
|
26
26
|
class="size-8 border border-border rounded-lg overflow-hidden flex items-center justify-center shrink-0"
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
(!multiple && items.find((i) => i.selected)?.iconClass) || 'text-foreground-default-secondary'
|
|
45
45
|
)
|
|
46
46
|
let selectedLabel = $derived(
|
|
47
|
-
`${selectedItems[0]?.label || ''}${selectedItems.length > 1 ? ' and more' : ''}` ||
|
|
47
|
+
`${selectedItems[0]?.label || ''}${selectedItems.length > 1 && multiple ? ' and more' : ''}` ||
|
|
48
|
+
placeholder
|
|
48
49
|
)
|
|
49
50
|
|
|
50
51
|
let styles = $derived(
|
|
@@ -114,7 +115,13 @@
|
|
|
114
115
|
{/if}
|
|
115
116
|
</div>
|
|
116
117
|
{/snippet}
|
|
117
|
-
<DrawerContext
|
|
118
|
+
<DrawerContext
|
|
119
|
+
widthClass="min-w-[256px]"
|
|
120
|
+
{multiple}
|
|
121
|
+
{items}
|
|
122
|
+
onclick={handleClick}
|
|
123
|
+
onselect={handleSelected}
|
|
124
|
+
/>
|
|
118
125
|
</BaseDropdown>
|
|
119
126
|
|
|
120
127
|
<style>
|