@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.
@@ -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' : ''}` || placeholder
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 {widthClass} {multiple} {items} onclick={handleClick} onselect={handleSelected} />
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>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.21",
4
+ "version": "0.1.22",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "dev:clean": "npm run clean && vite dev",