Skip to content

Commit

Permalink
:feat integrating account balance (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvoskamp authored Mar 7, 2024
1 parent 1f5f41b commit 8109853
Show file tree
Hide file tree
Showing 37 changed files with 1,068 additions and 346 deletions.
48 changes: 48 additions & 0 deletions apps/gallery/stories/composites/wui-list-description.stories.ts
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>`
}
32 changes: 32 additions & 0 deletions apps/gallery/stories/composites/wui-list-token.stories.ts
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>`
}
1 change: 1 addition & 0 deletions apps/gallery/utils/PresetUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const colorOptions: ColorType[] = [
export const textOptions: TextType[] = [
'micro-700',
'micro-600',
'mini-700',
'tiny-500',
'tiny-600',
'small-500',
Expand Down
Loading

0 comments on commit 8109853

Please sign in to comment.