flowbite-svelte 2.0.0-next.7 → 2.0.0-next.8
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.
|
@@ -40,12 +40,13 @@
|
|
|
40
40
|
const styles = $derived(tour({ size, color }));
|
|
41
41
|
|
|
42
42
|
async function updatePositions(): Promise<void> {
|
|
43
|
-
if (!active || !currentStepData?.target || !tooltipElement)
|
|
44
|
-
|
|
43
|
+
if (!active || !currentStepData?.target || !tooltipElement || !(tooltipElement instanceof HTMLElement)) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
45
46
|
await tick();
|
|
46
47
|
|
|
47
|
-
const target = document.querySelector(currentStepData.target)
|
|
48
|
-
if (!target) {
|
|
48
|
+
const target = document.querySelector(currentStepData.target);
|
|
49
|
+
if (!(target instanceof HTMLElement)) {
|
|
49
50
|
console.warn(`Tour: Target element "${currentStepData.target}" not found`);
|
|
50
51
|
return;
|
|
51
52
|
}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
ariaLabel = "Virtual scrolling list",
|
|
16
16
|
class: className,
|
|
17
17
|
classes,
|
|
18
|
-
contained = false
|
|
18
|
+
contained = false,
|
|
19
|
+
...restProps
|
|
19
20
|
}: VirtualListProps<T> = $props();
|
|
20
21
|
|
|
21
22
|
const styling = $derived(classes);
|
|
@@ -116,6 +117,7 @@
|
|
|
116
117
|
aria-label={ariaLabel}
|
|
117
118
|
class={base({ class: clsx(theme?.base, className) })}
|
|
118
119
|
style={`height:${height}px; position:relative;`}
|
|
120
|
+
{...restProps}
|
|
119
121
|
>
|
|
120
122
|
<div data-part="spacer" class={spacer({ class: clsx(theme?.spacer, styling?.spacer) })} style={`height:${totalHeight}px;`}>
|
|
121
123
|
<div data-part="content" class={content({ class: clsx(theme?.content, styling?.content) })} style={`transform:translateY(${offsetY}px); will-change:transform;`}>
|