-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bridge-ui-v2): review step (#14940)
- Loading branch information
1 parent
99b200b
commit c079223
Showing
22 changed files
with
636 additions
and
242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
node_modules | ||
/build | ||
/.svelte-kit | ||
.svelte-kit/ | ||
/package | ||
.env | ||
.env.* | ||
|
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
28 changes: 28 additions & 0 deletions
28
packages/bridge-ui-v2/src/components/Icon/IconFlipper.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,28 @@ | ||
<script lang="ts"> | ||
import { createEventDispatcher } from 'svelte'; | ||
import { Icon, type IconType } from '$components/Icon'; | ||
import { classNames } from '$libs/util/classNames'; | ||
export let iconType1: IconType; | ||
export let iconType2: IconType; | ||
export let selectedDefault: IconType = iconType1; | ||
const dispatch = createEventDispatcher(); | ||
function handleLabelClick() { | ||
selectedDefault = selectedDefault === iconType1 ? iconType2 : iconType1; | ||
dispatch('labelclick'); | ||
} | ||
$: isDefault = selectedDefault === iconType1; | ||
$: classes = classNames('swap swap-rotate', $$props.class); | ||
</script> | ||
|
||
<div role="button" tabindex="0" class={classes} on:click={handleLabelClick} on:keypress={handleLabelClick}> | ||
<input type="checkbox" class="border-none" bind:checked={isDefault} /> | ||
<Icon type={iconType1} class="fill-primary-icon swap-on" width={25} height={25} vHeight={25} vWidth={25} /> | ||
<Icon type={iconType2} class="fill-primary-icon swap-off" width={25} height={25} vHeight={25} vWidth={25} /> | ||
</div> |
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.
c079223
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.
Successfully deployed to the following URLs:
bridge-ui-v2-internal – ./packages/bridge-ui-v2
bridge-ui-v2-internal-taikoxyz.vercel.app
bridge-ui-v2-internal-git-main-taikoxyz.vercel.app
bridge-ui-v2-internal.vercel.app