@invopop/popui 0.1.73 → 0.1.74
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/DrawerContext.svelte +4 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -484,12 +484,16 @@
|
|
|
484
484
|
{#if item.separator}
|
|
485
485
|
<DrawerContextSeparator />
|
|
486
486
|
{:else}
|
|
487
|
+
{#snippet itemChildren()}
|
|
488
|
+
{@render item.content?.(item)}
|
|
489
|
+
{/snippet}
|
|
487
490
|
<div class:px-1={!item.groupBy} class:cursor-grab={draggable && !item.locked}>
|
|
488
491
|
<DrawerContextItem
|
|
489
492
|
item={{ ...item, focused: item.value === focusedItemValue, flagPosition: item.flagPosition || flagPosition }}
|
|
490
493
|
{multiple}
|
|
491
494
|
{onclick}
|
|
492
495
|
onchange={updateItem}
|
|
496
|
+
children={item.content ? itemChildren : undefined}
|
|
493
497
|
/>
|
|
494
498
|
</div>
|
|
495
499
|
{/if}
|
package/dist/types.d.ts
CHANGED