-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ProposalStatusInfo+InformationTooltip (#1949)
- Loading branch information
1 parent
cce2577
commit fdadc57
Showing
8 changed files
with
31 additions
and
28 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
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 @@ | ||
export { default as ProposalStatusInfo } from './ProposalStatusInfo.svelte' |
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 @@ | ||
export * from './components' |
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
<script lang="ts"> | ||
import { Text, Tooltip } from '@ui' | ||
import { TextType } from './enums' | ||
import { Popover, Text, type TextColor } from '@bloomwalletio/ui' | ||
export let title: string = '' | ||
export let body: string = '' | ||
export let titleColor: TextColor | undefined = undefined | ||
export let bodyColor: TextColor | undefined = undefined | ||
</script> | ||
|
||
<Tooltip {...$$restProps}> | ||
<div class="flex flex-col text-left space-y-2"> | ||
{#if title} | ||
<Text type={TextType.h4} color={$$restProps?.titleColor ?? undefined}> | ||
{title} | ||
</Text> | ||
{/if} | ||
{#if body} | ||
<Text type={TextType.p} color={$$restProps?.bodyColor ?? undefined}> | ||
{body} | ||
</Text> | ||
{/if} | ||
</div> | ||
</Tooltip> | ||
<Popover | ||
showArrow | ||
event="hover" | ||
class="shadow-elevation-4 p-4 rounded-xl flex flex-col text-left space-y-2 max-w-[15rem]" | ||
{...$$restProps} | ||
> | ||
{#if title} | ||
<Text type="h6" textColor={titleColor}> | ||
{title} | ||
</Text> | ||
{/if} | ||
{#if body} | ||
<Text textColor={bodyColor} fontWeight="medium"> | ||
{body} | ||
</Text> | ||
{/if} | ||
</Popover> |
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