-
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.
Merge branch 'V4' of github.com:WalletConnect/web3modal into feat/demo
- Loading branch information
Showing
130 changed files
with
3,784 additions
and
910 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/ci_canary.yml → .github/workflows/publish_canary.yml
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,4 +1,4 @@ | ||
name: ci_canary | ||
name: Publish Canary Image | ||
on: | ||
workflow_dispatch: | ||
push: | ||
|
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
28 changes: 28 additions & 0 deletions
28
apps/gallery/stories/composites/wui-input-amount.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,28 @@ | ||
import type { Meta } from '@storybook/web-components' | ||
import '@web3modal/ui/src/composites/wui-input-amount' | ||
import type { WuiInputAmount } from '@web3modal/ui/src/composites/wui-input-amount' | ||
import { html } from 'lit' | ||
import '../../components/gallery-container' | ||
|
||
type Component = Meta<WuiInputAmount> | ||
|
||
export default { | ||
title: 'Composites/wui-input-amount', | ||
args: { | ||
disabled: false, | ||
placeholder: '0' | ||
}, | ||
argTypes: { | ||
disabled: { | ||
control: { type: 'boolean' } | ||
} | ||
} | ||
} as Component | ||
|
||
export const Default: Component = { | ||
render: args => | ||
html` <wui-input-amount | ||
placeholder=${args.placeholder} | ||
?disabled=${args.disabled} | ||
></wui-input-amount>` | ||
} |
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>` | ||
} |
34 changes: 34 additions & 0 deletions
34
apps/gallery/stories/composites/wui-preview-item.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,34 @@ | ||
import type { Meta } from '@storybook/web-components' | ||
import '@web3modal/ui/src/composites/wui-preview-item' | ||
import type { WuiPreviewItem } from '@web3modal/ui/src/composites/wui-preview-item' | ||
import { html } from 'lit' | ||
import { address, networkImageSrc } from '../../utils/PresetUtils' | ||
|
||
type Component = Meta<WuiPreviewItem> | ||
|
||
export default { | ||
title: 'Composites/wui-preview-item', | ||
args: { | ||
imageSrc: networkImageSrc, | ||
address, | ||
text: '0.2 ETH', | ||
isAddress: false | ||
}, | ||
argTypes: { | ||
isAddress: { | ||
control: { type: 'boolean' } | ||
} | ||
} | ||
} as Component | ||
|
||
export const Default: Component = { | ||
render: args => html` | ||
<wui-preview-item | ||
text=${args.text} | ||
?isAddress=${args.isAddress} | ||
.address=${args.address} | ||
.imageSrc=${args.imageSrc} | ||
> | ||
</wui-preview-item> | ||
` | ||
} |
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
20 changes: 20 additions & 0 deletions
20
apps/gallery/stories/composites/wui-token-button.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,20 @@ | ||
import type { Meta } from '@storybook/web-components' | ||
import '@web3modal/ui/src/composites/wui-token-button' | ||
import type { WuiTokenButton } from '@web3modal/ui/src/composites/wui-token-button' | ||
import { html } from 'lit' | ||
import { networkImageSrc } from '../../utils/PresetUtils' | ||
|
||
type Component = Meta<WuiTokenButton> | ||
|
||
export default { | ||
title: 'Composites/wui-token-button', | ||
args: { | ||
text: 'ETH', | ||
imageSrc: networkImageSrc | ||
} | ||
} as Component | ||
|
||
export const Default: Component = { | ||
render: args => | ||
html`<wui-token-button text=${args.text} .imageSrc=${args.imageSrc}>Recent</wui-token-button>` | ||
} |
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.