@invopop/popui 0.1.65 → 0.1.66
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/DataListItem.svelte
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
}: DataListItemProps = $props()
|
|
17
17
|
|
|
18
18
|
let valueStyles = $derived(
|
|
19
|
-
clsx('text-foreground font-medium text-base min-w-0
|
|
19
|
+
clsx('text-foreground font-medium text-base min-w-0', {
|
|
20
20
|
'font-mono slashed-zero tabular-nums lining-nums': monospaced,
|
|
21
21
|
truncate: !children,
|
|
22
|
-
'
|
|
23
|
-
'items-start': children
|
|
22
|
+
'leading-6': !children,
|
|
23
|
+
'flex items-start': children
|
|
24
24
|
})
|
|
25
25
|
)
|
|
26
26
|
|
|
@@ -62,7 +62,11 @@
|
|
|
62
62
|
)}
|
|
63
63
|
onclick={clickAction ? handleAreaClick : undefined}
|
|
64
64
|
>
|
|
65
|
-
<div
|
|
65
|
+
<div
|
|
66
|
+
class={clsx('flex-1 min-w-0', {
|
|
67
|
+
'overflow-x-auto': children
|
|
68
|
+
})}
|
|
69
|
+
>
|
|
66
70
|
<div class={valueStyles}>
|
|
67
71
|
{#if children}
|
|
68
72
|
{@render children()}
|
|
@@ -23,11 +23,7 @@
|
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
{#if typeof content === 'string'}
|
|
26
|
-
{
|
|
27
|
-
{content}
|
|
28
|
-
{:else}
|
|
29
|
-
<span class="text-foreground-default-tertiary">-</span>
|
|
30
|
-
{/if}
|
|
26
|
+
{content}
|
|
31
27
|
{:else if content instanceof Function}
|
|
32
28
|
<!-- It's unlikely that a CellContext will be passed to a Header -->
|
|
33
29
|
<!-- eslint-disable-next-line @typescript-eslint/no-explicit-any -->
|
|
@@ -40,7 +36,5 @@
|
|
|
40
36
|
{@render snippet({ ...params, attach })}
|
|
41
37
|
{:else if result != null && result !== ''}
|
|
42
38
|
{result}
|
|
43
|
-
{:else}
|
|
44
|
-
<span class="text-foreground-default-tertiary">-</span>
|
|
45
39
|
{/if}
|
|
46
40
|
{/if}
|