-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Support embedding modal into page. (#135) * docs: Change `@totejs/uikit` -> `@node-real/uikit` * fix: Update grid layout condition * feat: Support embedding modal into page. * chore: update versions (alpha) (#136) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix: Fixed ssr issue (#137) * docs: Change `@totejs/uikit` -> `@node-real/uikit` * fix: Update grid layout condition * feat: Support embedding modal into page. * fix: Fixed ssr issue * chore: update versions (alpha) (#138) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * docs: Update docs (#139) * docs: Change `@totejs/uikit` -> `@node-real/uikit` * fix: Update grid layout condition * feat: Support embedding modal into page. * fix: Fixed ssr issue * docs: Update docs * docs: Update docs (#140) * docs: Change `@totejs/uikit` -> `@node-real/uikit` * fix: Update grid layout condition * feat: Support embedding modal into page. * fix: Fixed ssr issue * docs: Update docs * docs: Update docs * Update docs (#141) * docs: Change `@totejs/uikit` -> `@node-real/uikit` * fix: Update grid layout condition * feat: Support embedding modal into page. * fix: Fixed ssr issue * docs: Update docs * docs: Update docs * docs: Update docs --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ac90453
commit f81777b
Showing
95 changed files
with
962 additions
and
595 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,5 @@ | ||
--- | ||
"@node-real/walletkit": patch | ||
--- | ||
|
||
Support embedding modal into page. |
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,5 @@ | ||
--- | ||
"@node-real/walletkit": patch | ||
--- | ||
|
||
Fixed ssr issue |
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,14 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "alpha", | ||
"initialVersions": { | ||
"example-nextjs": "0.0.1", | ||
"example-vite": "0.0.1", | ||
"@node-real/walletkit": "1.0.11", | ||
"website": "0.0.1" | ||
}, | ||
"changesets": [ | ||
"eight-bulldogs-heal", | ||
"olive-brooms-lie" | ||
] | ||
} |
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
11 changes: 11 additions & 0 deletions
11
packages/walletkit/src/base/components/Modal/ModalContent/index.tsx
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,11 @@ | ||
import { cx } from '@/base/utils/css'; | ||
import { Box, BoxProps } from '../../Box'; | ||
import { clsModalContent } from './style.css'; | ||
|
||
export type ModalContentProps = BoxProps; | ||
|
||
export function ModalContent(props: ModalContentProps) { | ||
const { className, ...restProps } = props; | ||
|
||
return <Box className={cx('wk-modal-content', clsModalContent, className)} {...restProps} />; | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/walletkit/src/base/components/Modal/ModalContent/style.css.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,21 @@ | ||
import { cssVar } from '@/base/utils/css'; | ||
import { mobile } from '@/base/vanilla/index.css'; | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const clsModalContent = style({ | ||
position: 'absolute', | ||
background: cssVar('modalBackground'), | ||
padding: '48px 24px', | ||
width: 'calc(100% - 32px)', | ||
maxWidth: 484, | ||
borderRadius: cssVar('modal', 'radii'), | ||
'@media': mobile({ | ||
width: '100%', | ||
maxWidth: '100vw', | ||
borderBottomLeftRadius: 0, | ||
borderBottomRightRadius: 0, | ||
paddingBottom: 40, | ||
left: 0, | ||
bottom: 0, | ||
}), | ||
}); |
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: 0 additions & 28 deletions
28
packages/walletkit/src/components/ModalProvider/context.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
packages/walletkit/src/components/ProfileModal/ProfileModalProvider/context.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,13 @@ | ||
import React, { useContext } from 'react'; | ||
|
||
export interface ProfileModalContextProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
onOpen: () => void; | ||
} | ||
|
||
export const ProfileModalContext = React.createContext({} as ProfileModalContextProps); | ||
|
||
export function useProfileModal() { | ||
return useContext(ProfileModalContext); | ||
} |
Oops, something went wrong.