-
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
b9a0800
commit 0ed923e
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.
0ed923e
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.io as production
🚀 Deployed on https://670f32373a6926c8f65da8b8--rill-ui-stage.netlify.app
0ed923e
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.com as production
🚀 Deployed on https://670f51fe768054ed48c231e0--rill-ui.netlify.app