-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:sei-protocol/sei-js into feature/me…
…tamask-snap # Conflicts: # yarn.lock
- Loading branch information
Showing
15 changed files
with
1,640 additions
and
4,081 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
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
39 changes: 0 additions & 39 deletions
39
packages/react/src/lib/components/WalletConnectButton/styles.css
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
packages/react/src/lib/components/WalletConnectButton/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,63 @@ | ||
import styled from 'styled-components'; | ||
import { IoWalletOutline } from '@react-icons/all-files/io5/IoWalletOutline'; | ||
import { IoLogOutOutline } from '@react-icons/all-files/io5/IoLogOutOutline'; | ||
import { IoCopyOutline } from '@react-icons/all-files/io5/IoCopyOutline'; | ||
import { addOpacityToColor } from '../../utils/colors'; | ||
|
||
export const ConnectWrapper = styled.div` | ||
position: relative; | ||
`; | ||
|
||
export const WalletMenu = styled.div` | ||
position: absolute; | ||
display: flex; | ||
flex-direction: column; | ||
top: 46px; | ||
right: 0; | ||
padding: 12px; | ||
gap: 12px; | ||
background-color: ${(props) => props.theme.backgroundColor || '#F1F1F1'}; | ||
border-radius: 4px; | ||
border: #2c2c2c22 solid 1px; | ||
`; | ||
|
||
export const WalletMenuItem = styled.div` | ||
display: flex; | ||
align-items: center; | ||
gap: 12px; | ||
font-weight: 500; | ||
font-size: 1.15rem; | ||
white-space: nowrap; | ||
color: ${(props) => props.theme.primaryColor || '#121212'}; | ||
cursor: pointer; | ||
border-radius: 6px; | ||
padding: 9px; | ||
&:hover { | ||
background-color: ${(props) => addOpacityToColor(props.theme.primaryColor || '#121212', 0.32)}; | ||
} | ||
`; | ||
|
||
export const WalletMenuItemChange = styled(IoWalletOutline)` | ||
width: 20px; | ||
height: 20px; | ||
color: ${(props) => props.theme.primaryColor || '#121212'}; | ||
fill: ${(props) => props.theme.primaryColor || '#121212'}; | ||
stroke: ${(props) => props.theme.primaryColor || '#121212'}; | ||
`; | ||
|
||
export const WalletMenuItemCopy = styled(IoCopyOutline)` | ||
width: 20px; | ||
height: 20px; | ||
color: ${(props) => props.theme.primaryColor || '#121212'}; | ||
fill: ${(props) => props.theme.primaryColor || '#121212'}; | ||
stroke: ${(props) => props.theme.primaryColor || '#121212'}; | ||
`; | ||
|
||
export const WalletMenuItemLogOut = styled(IoLogOutOutline)` | ||
width: 20px; | ||
height: 20px; | ||
color: ${(props) => props.theme.primaryColor || '#121212'}; | ||
fill: ${(props) => props.theme.primaryColor || '#121212'}; | ||
stroke: ${(props) => props.theme.primaryColor || '#121212'}; | ||
`; |
6 changes: 0 additions & 6 deletions
6
packages/react/src/lib/components/WalletConnectButton/types.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 |
---|---|---|
@@ -1,9 +1,3 @@ | ||
import { SeiWallet } from '@sei-js/core'; | ||
|
||
export type WalletConnectButtonProps = { | ||
buttonClassName?: string; | ||
wallets?: SeiWallet[]; | ||
primaryColor?: string; | ||
secondaryColor?: string; | ||
backgroundColor?: string; | ||
}; |
Oops, something went wrong.