-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: account list select component (#3287)
- Loading branch information
Showing
18 changed files
with
329 additions
and
288 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
apps/gallery-new/stories/composites/wui-list-address.stories.ts
This file was deleted.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
apps/gallery-new/stories/composites/wui-list-select-account.stories.ts
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,57 @@ | ||
import { html } from 'lit' | ||
import type { Meta } from '@storybook/web-components' | ||
import '@reown/appkit-ui-new/src/composites/wui-list-select-account' | ||
import '../../components/gallery-container' | ||
import type { WuiListSelectAccount } from '@reown/appkit-ui-new' | ||
import { iconOptions } from '../../utils/PresetUtils' | ||
|
||
type Component = Meta<WuiListSelectAccount> | ||
|
||
export default { | ||
title: 'Composites/wui-list-select-account', | ||
args: { | ||
amount: 1740.72, | ||
currency: 'USD', | ||
address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', | ||
description: 'Email', | ||
icon: 'mail', | ||
disabled: false | ||
}, | ||
argTypes: { | ||
amount: { | ||
control: { type: 'number' } | ||
}, | ||
currency: { | ||
options: ['USD', 'EUR', 'GBP'], | ||
control: { type: 'select' } | ||
}, | ||
address: { | ||
control: { type: 'text' } | ||
}, | ||
description: { | ||
control: { type: 'text' } | ||
}, | ||
icon: { | ||
options: iconOptions, | ||
control: { type: 'select' } | ||
}, | ||
disabled: { | ||
control: { type: 'boolean' } | ||
} | ||
} | ||
} as Component | ||
|
||
export const Default: Component = { | ||
render: args => html` | ||
<gallery-container width="328"> | ||
<wui-list-select-account | ||
amount=${args.amount} | ||
currency=${args.currency} | ||
address=${args.address} | ||
description=${args.description} | ||
icon=${args.icon} | ||
?disabled=${args.disabled} | ||
></wui-list-select-account> | ||
</gallery-container> | ||
` | ||
} |
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
import { svg } from 'lit' | ||
|
||
export const mailSvg = svg`<svg fill="none" viewBox="0 0 16 16"> | ||
<path | ||
fill="currentColor" | ||
fill-rule="evenodd" | ||
d="M4.83 1.34h6.34c.68 0 1.26 0 1.73.04.5.05.97.15 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73v3.71c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.47.03-1.05.03-1.73.03H4.83c-.68 0-1.26 0-1.73-.04-.5-.04-.97-.14-1.42-.4-.52-.29-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.41A20.9 20.9 0 0 1 0 9.88v-3.7c0-.7 0-1.27.04-1.74.05-.5.14-.97.4-1.42.3-.52.72-.95 1.24-1.24.45-.25.92-.35 1.42-.4.47-.04 1.05-.04 1.73-.04ZM3.28 3.38c-.36.03-.51.08-.6.14-.21.11-.39.29-.5.5a.8.8 0 0 0-.08.19l5.16 3.44c.45.3 1.03.3 1.48 0L13.9 4.2a.79.79 0 0 0-.08-.2c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.13-.37-.04-.86-.04-1.6-.04H4.88c-.73 0-1.22 0-1.6.04ZM14 6.54 9.85 9.31a3.33 3.33 0 0 1-3.7 0L2 6.54v3.3c0 .74 0 1.22.03 1.6.04.36.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h6.25c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6v-3.3Z" | ||
clip-rule="evenodd" | ||
/> | ||
</svg>` | ||
export const mailSvg = svg`<svg viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M10.5 2.75H1.5C1.40054 2.75 1.30516 2.78951 1.23483 2.85984C1.16451 2.93016 1.125 3.02554 1.125 3.125V9.5C1.125 9.69891 1.20402 9.88968 1.34467 10.0303C1.48532 10.171 1.67609 10.25 1.875 10.25H10.125C10.3239 10.25 10.5147 10.171 10.6553 10.0303C10.796 9.88968 10.875 9.69891 10.875 9.5V3.125C10.875 3.02554 10.8355 2.93016 10.7652 2.85984C10.6948 2.78951 10.5995 2.75 10.5 2.75ZM10.125 9.5H1.875V3.97766L5.74641 7.52656C5.81559 7.59007 5.90609 7.62531 6 7.62531C6.09391 7.62531 6.18441 7.59007 6.25359 7.52656L10.125 3.97766V9.5Z" fill="currentColor"/> | ||
</svg> | ||
` |
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
Oops, something went wrong.