@invopop/popui 0.1.72 → 0.1.73

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.
@@ -16,7 +16,7 @@
16
16
  scrollIfSelected = false,
17
17
  onchange,
18
18
  onclick,
19
- onfocus
19
+ children
20
20
  }: DrawerContextItemProps = $props()
21
21
 
22
22
  let el: HTMLElement | undefined = $state()
@@ -96,7 +96,11 @@
96
96
  {#if item?.country && item?.flagPosition === 'before'}
97
97
  <BaseFlag country={item.country} />
98
98
  {/if}
99
- <span class="{labelStyles} text-base font-medium truncate">{item?.label || ''}</span>
99
+ {#if children}
100
+ {@render children()}
101
+ {:else}
102
+ <span class="{labelStyles} text-base font-medium truncate">{item?.label || ''}</span>
103
+ {/if}
100
104
 
101
105
  {#if item?.country && item?.flagPosition === 'after'}
102
106
  <BaseFlag country={item.country} />
package/dist/types.d.ts CHANGED
@@ -359,7 +359,7 @@ export interface DrawerContextItemProps {
359
359
  scrollIfSelected?: boolean;
360
360
  onclick?: (value: AnyProp) => void;
361
361
  onchange?: (item: DrawerOption) => void;
362
- onfocus?: (item: DrawerOption) => void;
362
+ children?: Snippet;
363
363
  }
364
364
  export interface DropdownSelectProps {
365
365
  value?: AnyProp;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.72",
4
+ "version": "0.1.73",
5
5
  "repository": {
6
6
  "url": "https://github.com/invopop/popui"
7
7
  },