Skip to content

Commit

Permalink
Re export the design system styles.css from kit to reduce extra peer …
Browse files Browse the repository at this point in the history
…dependency on integrators (#162)
  • Loading branch information
corbanbrook authored Oct 4, 2024
1 parent d4d5ed6 commit 30fbb51
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ View the [demo](https://0xsequence.github.io/kit)! 👀
To install this package:

```bash
npm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query @0xsequence/design-system
npm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
# or
pnpm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query @0xsequence/design-system
pnpm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
# or
yarn add @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query @0xsequence/design-system
yarn add @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
```

### Setting up the Library
Expand Down Expand Up @@ -136,7 +136,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { createConfig, http, WagmiProvider } from 'wagmi'
import { mainnet, polygon, Chain } from 'wagmi/chains'

import '@0xsequence/design-system/styles.css'
import '@0xsequence/kit/styles.css'

const projectAccessKey = '<your-project-access-key>'

Expand Down
2 changes: 1 addition & 1 deletion examples/next/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { headers } from 'next/headers'
import { cookieToInitialState } from 'wagmi'

import './globals.css'
import '@0xsequence/design-system/styles.css'
import '@0xsequence/kit/styles.css'

import { config } from '../config'

Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@0xsequence/design-system/styles.css'
import '@0xsequence/kit/styles.css'

import { ThemeProvider } from '@0xsequence/design-system'
import { SequenceKit } from '@0xsequence/kit'
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"dev:react": "pnpm --filter @0xsequence/kit-example-react dev",
"serve:react": "pnpm --filter @0xsequence/kit-example-react serve",
"build:react": "pnpm --filter @0xsequence/kit-example-react build",
"dev:react-boilerplate": "pnpm --filter @0xsequence/kit-example-react-boilerplate dev",
"serve:react-boilerplate": "pnpm --filter @0xsequence/kit-example-react-boilerplate serve",
"build:react-boilerplate": "pnpm --filter @0xsequence/kit-example-react-boilerplate build",
"dev:next": "pnpm --filter @0xsequence/kit-example-next dev",
"serve:next": "pnpm --filter @0xsequence/kit-example-next start",
"build:next": "pnpm --filter @0xsequence/kit-example-next build"
Expand Down
8 changes: 4 additions & 4 deletions packages/kit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ View the [demo](https://0xsequence.github.io/kit)! 👀
To install this package:

```bash
npm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query @0xsequence/design-system
npm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
# or
pnpm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query @0xsequence/design-system
pnpm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
# or
yarn add @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query @0xsequence/design-system
yarn add @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
```

### Setting up the Library
Expand Down Expand Up @@ -135,7 +135,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { createConfig, http, WagmiProvider } from 'wagmi'
import { mainnet, polygon, Chain } from 'wagmi/chains'

import '@0xsequence/design-system/styles.css'
import '@0xsequence/kit/styles.css'

const projectAccessKey = 'xyz'

Expand Down
5 changes: 3 additions & 2 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"./styles.css": "./node_modules/@0xsequence/design-system/dist/style.css"
},
"files": [
"src",
Expand All @@ -39,6 +40,7 @@
"@0xsequence/api": "^2.0.9",
"@0xsequence/auth": "^2.0.9",
"@0xsequence/core": "^2.0.9",
"@0xsequence/design-system": "^1.7.8",
"@0xsequence/ethauth": "^1.0.0",
"@0xsequence/indexer": "^2.0.9",
"@0xsequence/metadata": "^2.0.9",
Expand All @@ -51,7 +53,6 @@
},
"peerDependencies": {
"0xsequence": ">= 2.0.9",
"@0xsequence/design-system": ">=1.7.8",
"@react-oauth/google": ">= 0.11.1",
"@tanstack/react-query": ">= 5.0.0",
"ethers": ">= 6.13.0",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

0 comments on commit 30fbb51

Please sign in to comment.