horizon-design 0.0.8 → 0.0.10
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.
|
@@ -165,6 +165,20 @@
|
|
|
165
165
|
document.body.style.cursor = '';
|
|
166
166
|
};
|
|
167
167
|
});
|
|
168
|
+
|
|
169
|
+
$effect(() => {
|
|
170
|
+
const ids = new Set(cards.map((c) => c.id));
|
|
171
|
+
|
|
172
|
+
const prunedExpanded = expandedIds.filter((id) => ids.has(id));
|
|
173
|
+
if (prunedExpanded.length !== expandedIds.length) {
|
|
174
|
+
expandedIds = prunedExpanded;
|
|
175
|
+
onExpandedChange?.(prunedExpanded);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (cursorId && !ids.has(cursorId)) {
|
|
179
|
+
cursorId = null;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
168
182
|
</script>
|
|
169
183
|
|
|
170
184
|
{#if isDragging}
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
class: className = '',
|
|
8
|
+
innerClass = '',
|
|
8
9
|
children,
|
|
9
10
|
...rest
|
|
10
11
|
}: {
|
|
11
12
|
class?: string;
|
|
13
|
+
innerClass?: string;
|
|
12
14
|
children?: Snippet;
|
|
13
15
|
[key: string]: unknown;
|
|
14
16
|
} = $props();
|
|
@@ -41,7 +43,7 @@
|
|
|
41
43
|
<ScrollArea.Viewport
|
|
42
44
|
class="size-full scrollbar-none rounded-[inherit] [&::-webkit-scrollbar]:hidden"
|
|
43
45
|
>
|
|
44
|
-
<div bind:this={contentEl}>
|
|
46
|
+
<div class={cn('size-full', innerClass)} bind:this={contentEl}>
|
|
45
47
|
{@render children?.()}
|
|
46
48
|
</div>
|
|
47
49
|
</ScrollArea.Viewport>
|