sv5ui 1.1.1 → 1.1.2
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.
|
@@ -118,30 +118,32 @@
|
|
|
118
118
|
</Tooltip.Content>
|
|
119
119
|
{/snippet}
|
|
120
120
|
|
|
121
|
-
<Tooltip.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
121
|
+
<Tooltip.Provider {delayDuration} {disableHoverableContent}>
|
|
122
|
+
<Tooltip.Root
|
|
123
|
+
bind:open
|
|
124
|
+
{onOpenChange}
|
|
125
|
+
{delayDuration}
|
|
126
|
+
{disableHoverableContent}
|
|
127
|
+
{disableCloseOnTriggerClick}
|
|
128
|
+
{ignoreNonKeyboardFocus}
|
|
129
|
+
disabled={disabled || !hasContent}
|
|
130
|
+
>
|
|
131
|
+
{#if children}
|
|
132
|
+
<Tooltip.Trigger>
|
|
133
|
+
{#snippet child({ props })}
|
|
134
|
+
<span {...props} class={className as string}>
|
|
135
|
+
{@render children({ open })}
|
|
136
|
+
</span>
|
|
137
|
+
{/snippet}
|
|
138
|
+
</Tooltip.Trigger>
|
|
139
|
+
{/if}
|
|
139
140
|
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
{#if portal}
|
|
142
|
+
<Tooltip.Portal>
|
|
143
|
+
{@render tooltipContentEl()}
|
|
144
|
+
</Tooltip.Portal>
|
|
145
|
+
{:else}
|
|
142
146
|
{@render tooltipContentEl()}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
{/if}
|
|
147
|
-
</Tooltip.Root>
|
|
147
|
+
{/if}
|
|
148
|
+
</Tooltip.Root>
|
|
149
|
+
</Tooltip.Provider>
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { Tooltip as BitsTooltip } from 'bits-ui'
|
|
3
2
|
import Tooltip from './Tooltip.svelte'
|
|
4
3
|
import type { TooltipProps } from './tooltip.types.js'
|
|
5
4
|
|
|
6
5
|
let props: TooltipProps = $props()
|
|
7
6
|
</script>
|
|
8
7
|
|
|
9
|
-
<
|
|
10
|
-
<Tooltip {...props} />
|
|
11
|
-
</BitsTooltip.Provider>
|
|
8
|
+
<Tooltip {...props} />
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED