-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: alternate connector support for visual metrics (#5909)
* wip * cleanup * wip * cleanup * feedback
- Loading branch information
1 parent
6d93dea
commit e1320f2
Showing
15 changed files
with
735 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script lang="ts"> | ||
import Tooltip from "../tooltip/Tooltip.svelte"; | ||
import TooltipContent from "../tooltip/TooltipContent.svelte"; | ||
import InfoCircle from "../icons/InfoCircle.svelte"; | ||
export let id: string; | ||
export let label: string; | ||
export let hint: string | undefined = undefined; | ||
export let optional = false; | ||
</script> | ||
|
||
<div class="label-wrapper"> | ||
<label for={id} class="line-clamp-1"> | ||
{label} | ||
{#if optional} | ||
<span class="text-gray-500 text-[12px] font-normal">(optional)</span> | ||
{/if} | ||
</label> | ||
{#if hint} | ||
<Tooltip location="right" alignment="middle" distance={8}> | ||
<div class="text-gray-500"> | ||
<InfoCircle size="13px" /> | ||
</div> | ||
<TooltipContent maxWidth="400px" slot="tooltip-content"> | ||
{@html hint} | ||
</TooltipContent> | ||
</Tooltip> | ||
{/if} | ||
<slot name="mode-switch" /> | ||
</div> | ||
|
||
<style lang="postcss"> | ||
.label-wrapper { | ||
@apply flex items-center gap-x-1; | ||
} | ||
label { | ||
@apply text-sm font-medium text-gray-800; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e1320f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ui.rilldata.in as production
🚀 Deployed on https://670f31a4fd38bec339b4ebfa--rill-ui-dev.netlify.app