Skip to content

Commit

Permalink
Removing vanilla-extract from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed May 3, 2024
1 parent 9fa00fc commit 5e6bc4d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 962 deletions.
7 changes: 1 addition & 6 deletions examples/next/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { createVanillaExtractPlugin } from '@vanilla-extract/next-plugin'

const withVanillaExtract = createVanillaExtractPlugin()

/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: config => {
config.externals.push('pino-pretty', 'encoding')
return config
}
// transpilePackages: ['@0xsequence/kit', '@0xsequence/kit-wallet', '@0xsequence/kit-connectors', '@0xsequence/checkout']
}

export default withVanillaExtract(nextConfig)
export default nextConfig
3 changes: 0 additions & 3 deletions examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vanilla-extract/next-plugin": "^2.4.0",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8",
"tailwindcss": "^3.4.3",
"typescript": "^5"
}
}
2 changes: 0 additions & 2 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@0xsequence/kit-wallet": "workspace:*",
"@0xsequence/network": "^1.9.26",
"@tanstack/react-query": "^5.32.0",
"@vanilla-extract/css": "^1.14.2",
"framer-motion": "^8.5.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -31,7 +30,6 @@
"@types/node": "^20.12.7",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vanilla-extract/vite-plugin": "^4.0.7",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^5.2.10",
"vite-plugin-node-polyfills": "^0.21.0",
Expand Down
17 changes: 12 additions & 5 deletions examples/react/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React from 'react'
import { Box, Image, Text, useMediaQuery } from '@0xsequence/design-system'
import { useTheme } from '@0xsequence/design-system'
import { Box, Image, Text, useMediaQuery, useTheme } from '@0xsequence/design-system'

import { bottomPageLinks, socialLinks } from '../constants'
import * as sharedStyles from '../shared/styles.css'

export const Footer = () => {
const { theme } = useTheme()
Expand All @@ -19,7 +17,14 @@ export const Footer = () => {
return (
<Box flexDirection="row" gap="4">
{bottomPageLinks.map((link, index) => (
<Box onClick={() => onClickLinkUrl(link.url)} className={sharedStyles.clickable} key={index} gap="4">
<Box
key={index}
onClick={() => onClickLinkUrl(link.url)}
cursor="pointer"
opacity={{ hover: '80' }}
userSelect="none"
gap="4"
>
<Text fontWeight="normal" fontSize="small" color="text50">
{link.label}
</Text>
Expand All @@ -36,7 +41,9 @@ export const Footer = () => {
return (
<Box
key={index}
className={sharedStyles.clickable}
cursor="pointer"
opacity={{ hover: '80' }}
userSelect="none"
onClick={() => {
if (typeof window !== 'undefined') {
window.open(socialLink.url)
Expand Down
9 changes: 0 additions & 9 deletions examples/react/src/shared/styles.css.ts

This file was deleted.

2 changes: 0 additions & 2 deletions examples/react/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from 'vite'
import dns from 'dns'
import react from '@vitejs/plugin-react'
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import viteTsconfigPaths from 'vite-tsconfig-paths'
import svgrPlugin from 'vite-plugin-svgr'
Expand All @@ -19,7 +18,6 @@ export default defineConfig(() => {
}
}),
viteTsconfigPaths(),
vanillaExtractPlugin(),
svgrPlugin()
],
define: {
Expand Down
Loading

0 comments on commit 5e6bc4d

Please sign in to comment.