Skip to content

Commit

Permalink
chore(@jsxcss/emotion): add dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Feb 28, 2023
1 parent b6b4729 commit afb8aa2
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
auto-install-peers = true
node-linker = isolated
hoist = true
4 changes: 4 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
transpilePackages: ['@slam/ui'],
compiler: {
emotion: true,
},
}
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@emotion/styled": "^11.10.4",
"@hookform/devtools": "^4.2.2",
"@hookform/resolvers": "^2.9.8",
"@jsxcss/emotion": "^0.2.2",
"@sentry/nextjs": "^7.15.0",
"@slam/hooks": "workspace:*",
"@slam/types": "workspace:*",
Expand Down
23 changes: 23 additions & 0 deletions apps/web/src/pages/test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { css } from '@emotion/react'
import { Box, Stack } from '@jsxcss/emotion'
import { motion } from 'framer-motion'

const boxStyle = css`
width: 100px;
height: 100px;
background-color: red;
`

const Test = () => {
return (
<>
<Stack.Vertical as={motion.div} whileTap={{ scale: 0.8 }}>
<Box css={boxStyle} />
<Box css={boxStyle} />
<Box css={boxStyle} />
</Stack.Vertical>
</>
)
}

export default Test
101 changes: 63 additions & 38 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 afb8aa2

Please sign in to comment.