-
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 integrating account balance (#2030)
- Loading branch information
1 parent
1f5f41b
commit 8109853
Showing
37 changed files
with
1,068 additions
and
346 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
apps/gallery/stories/composites/wui-list-description.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,48 @@ | ||
import type { Meta } from '@storybook/web-components' | ||
import '@web3modal/ui/src/composites/wui-list-description' | ||
import type { WuiListDescription } from '@web3modal/ui/src/composites/wui-list-description' | ||
import { html } from 'lit' | ||
import '../../components/gallery-container' | ||
import { colorOptions, iconOptions } from '../../utils/PresetUtils' | ||
|
||
type Component = Meta<WuiListDescription> | ||
|
||
export default { | ||
title: 'Composites/wui-list-description', | ||
args: { | ||
icon: 'card', | ||
text: 'Buy Crypto', | ||
tag: 'Popular', | ||
description: 'Easy with card or bank account', | ||
iconBackgroundColor: 'success-100', | ||
iconColor: 'success-100' | ||
}, | ||
argTypes: { | ||
icon: { | ||
options: iconOptions, | ||
control: { type: 'select' } | ||
}, | ||
iconBackgroundColor: { | ||
options: colorOptions, | ||
control: { type: 'select' } | ||
}, | ||
iconColor: { | ||
options: colorOptions, | ||
control: { type: 'select' } | ||
} | ||
} | ||
} as Component | ||
|
||
export const Default: Component = { | ||
render: args => | ||
html` <gallery-container width="336"> | ||
<wui-list-description | ||
icon=${args.icon} | ||
text=${args.text} | ||
.tag=${args.tag} | ||
description=${args.description} | ||
iconBackgroundColor=${args.iconBackgroundColor} | ||
iconColor=${args.iconColor} | ||
></wui-list-description> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { Meta } from '@storybook/web-components' | ||
import '@web3modal/ui/src/composites/wui-list-token' | ||
import type { WuiListToken } from '@web3modal/ui/src/composites/wui-list-token' | ||
import { html } from 'lit' | ||
import '../../components/gallery-container' | ||
import { networkImageSrc } from '../../utils/PresetUtils' | ||
|
||
type Component = Meta<WuiListToken> | ||
|
||
export default { | ||
title: 'Composites/wui-list-token', | ||
args: { | ||
tokenName: 'Ethereum', | ||
tokenImageUrl: networkImageSrc, | ||
tokenValue: '$1,740.72', | ||
tokenAmount: 0.867, | ||
tokenCurrency: 'ETH' | ||
} | ||
} as Component | ||
|
||
export const Default: Component = { | ||
render: args => | ||
html` <gallery-container width="336"> | ||
<wui-list-token | ||
tokenName=${args.tokenName} | ||
tokenImageUrl=${args.tokenImageUrl} | ||
tokenValue=${args.tokenValue} | ||
tokenAmount=${args.tokenAmount} | ||
tokenCurrency=${args.tokenCurrency} | ||
></wui-list-token> | ||
</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
Oops, something went wrong.