-
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.
- Loading branch information
Showing
21 changed files
with
300 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
'@reown/appkit-scaffold-ui': patch | ||
'@apps/laboratory': patch | ||
'@reown/appkit-core': patch | ||
'@apps/gallery': patch | ||
'@reown/appkit-ui': patch | ||
'@apps/demo': patch | ||
'@examples/html-ethers': patch | ||
'@examples/html-ethers5': patch | ||
'@examples/html-wagmi': patch | ||
'@examples/next-ethers': patch | ||
'@examples/next-wagmi': patch | ||
'@examples/react-ethers': patch | ||
'@examples/react-ethers5': patch | ||
'@examples/react-solana': patch | ||
'@examples/react-wagmi': patch | ||
'@examples/vue-ethers5': patch | ||
'@examples/vue-solana': patch | ||
'@examples/vue-wagmi': patch | ||
'@reown/appkit-adapter-ethers': patch | ||
'@reown/appkit-adapter-ethers5': patch | ||
'@reown/appkit-adapter-polkadot': patch | ||
'@reown/appkit-adapter-solana': patch | ||
'@reown/appkit-adapter-wagmi': patch | ||
'@reown/appkit': patch | ||
'@reown/appkit-utils': patch | ||
'@reown/appkit-cdn': patch | ||
'@reown/appkit-common': patch | ||
'@reown/appkit-ethers': patch | ||
'@reown/appkit-ethers5': patch | ||
'@reown/appkit-polyfills': patch | ||
'@reown/appkit-siwe': patch | ||
'@reown/appkit-solana': patch | ||
'@reown/appkit-wagmi': patch | ||
'@reown/appkit-wallet': patch | ||
--- | ||
|
||
Added create wallet flow in connect modal |
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
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
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
69 changes: 69 additions & 0 deletions
69
packages/scaffold-ui/src/partials/w3m-wallet-guide/index.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,69 @@ | ||
import { customElement } from '@reown/appkit-ui' | ||
import { LitElement, html } from 'lit' | ||
import styles from './styles.js' | ||
import { RouterController, type WalletGuideType } from '@reown/appkit-core' | ||
import { property } from 'lit/decorators.js' | ||
|
||
@customElement('w3m-wallet-guide') | ||
export class W3mWalletGuide extends LitElement { | ||
public static override styles = styles | ||
|
||
// -- State & Properties -------------------------------- // | ||
@property() public walletGuide: WalletGuideType = 'get-started' | ||
|
||
// -- Render -------------------------------------------- // | ||
public override render() { | ||
return this.walletGuide === 'explore' | ||
? html`<wui-flex | ||
class="wallet-guide" | ||
flexDirection="column" | ||
alignItems="center" | ||
justifyContent="center" | ||
rowGap="xs" | ||
data-testid="w3m-wallet-guide-explore" | ||
> | ||
<wui-text variant="small-400" color="fg-200" align="center"> | ||
Looking for a self-custody wallet? | ||
</wui-text> | ||
<wui-flex class="chip-box"> | ||
<wui-chip | ||
imageIcon="walletConnectLightBrown" | ||
icon="externalLink" | ||
variant="transparent" | ||
href="https://explorer.walletconnect.com" | ||
title="Visit our Explorer" | ||
></wui-chip> | ||
</wui-flex> | ||
</wui-flex>` | ||
: html`<wui-flex | ||
columnGap="4xs" | ||
flexDirection="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<wui-text variant="small-400" class="title" color="fg-200" | ||
>Haven't got a wallet?</wui-text | ||
> | ||
<wui-link | ||
data-testid="w3m-wallet-guide-get-started" | ||
color="blue-100" | ||
class="get-started-link" | ||
@click=${this.onGetStarted} | ||
> | ||
Get started | ||
</wui-link> | ||
</wui-flex>` | ||
} | ||
|
||
// -- Private ------------------------------------------- // | ||
private onGetStarted() { | ||
RouterController.push('Create') | ||
} | ||
} | ||
|
||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'w3m-wallet-guide': W3mWalletGuide | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/scaffold-ui/src/partials/w3m-wallet-guide/styles.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,17 @@ | ||
import { css } from 'lit' | ||
|
||
export default css` | ||
wui-flex { | ||
width: 100%; | ||
} | ||
.wallet-guide { | ||
width: 100%; | ||
} | ||
.chip-box { | ||
width: fit-content; | ||
background-color: var(--wui-color-gray-glass-005); | ||
border-radius: var(--wui-border-radius-3xl); | ||
} | ||
` |
Oops, something went wrong.