Skip to content

Commit

Permalink
Internal shared example component lib
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed May 29, 2024
1 parent f9c7530 commit cb9b612
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 12 deletions.
13 changes: 13 additions & 0 deletions examples/components/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@0xsequence/kit-example-shared-components",
"exports": {
".": "./src/index.ts"
},
"dependencies": {
"typescript": "latest"
},
"peerDependencies": {
"@0xsequence/design-system": "*",
"wagmi": "*"
}
}
File renamed without changes.
1 change: 1 addition & 0 deletions examples/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Header } from './Header'
15 changes: 15 additions & 0 deletions examples/components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"preserveWatchOutput": true,
"skipLibCheck": true,
"noEmit": true,
"strict": true,
"jsx": "react-jsx"
},
"exclude": ["node_modules"]
}
1 change: 1 addition & 0 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@0xsequence/kit-checkout": "workspace:*",
"@0xsequence/kit-connectors": "workspace:*",
"@0xsequence/kit-wallet": "workspace:*",
"@0xsequence/kit-example-shared-components": "workspace:*",
"@0xsequence/network": "^1.9.27",
"@tanstack/react-query": "^5.37.1",
"framer-motion": "^8.5.2",
Expand Down
3 changes: 1 addition & 2 deletions examples/react/src/components/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
getModalPositionCss
} from '@0xsequence/kit'
import { useCheckoutModal, useAddFundsModal } from '@0xsequence/kit-checkout'
import { Header } from '@0xsequence/kit-example-shared-components'
import { useOpenWalletModal } from '@0xsequence/kit-wallet'
import { allNetworks, ChainId } from '@0xsequence/network'
import { ethers } from 'ethers'
Expand All @@ -41,8 +42,6 @@ import {
import { messageToSign, abi } from '../constants'
import { delay, getCheckoutSettings } from '../utils'

import { Header } from './Header'

// append ?debug to url to enable debug mode
const searchParams = new URLSearchParams(location.search)
const isDebugMode = searchParams.has('debug')
Expand Down
14 changes: 4 additions & 10 deletions examples/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -14,14 +10,12 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["vite/client", "vite-plugin-svgr/client"],
"types": ["vite/client", "vite-plugin-svgr/client"]
},
"include": [
"src"
]
"include": ["src"]
}
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb9b612

Please sign in to comment.