Skip to content

Commit

Permalink
sync react versions
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Nov 29, 2024
1 parent 999d37f commit af1ba7c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 13 deletions.
5 changes: 3 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@ensdomains/thorin": "workspace:*",
"@reach/skip-nav": "^0.16.0",
"@sindresorhus/slugify": "^2.1.0",
"@vanilla-extract/dynamic": "^2.1.2",
"@vanilla-extract/next-plugin": "^2.3.1",
"copy-to-clipboard": "^3.3.1",
"eslint-config-next": "^13.5.6",
Expand All @@ -23,8 +24,8 @@
"nookies": "^2.5.2",
"prism-react-renderer": "^1.2.1",
"prism-theme-vars": "^0.2.4",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-element-to-jsx-string": "^14.3.4",
"react-live": "3.1.1",
"react-transition-state": "^2.1.2",
Expand Down
11 changes: 11 additions & 0 deletions docs/src/components/AdditionalColors/components/PaletteRow.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { createVar, style } from '@vanilla-extract/css'

export const paletteCellBackgroundColor = createVar()

export const paletteCell = style({
'backgroundColor': paletteCellBackgroundColor,
'transform': 'scale(1)',
':hover': {
transform: 'scale(1.05)',
},
})
13 changes: 9 additions & 4 deletions docs/src/components/AdditionalColors/components/PaletteRow.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React from 'react'
import type { RawColor } from '@ensdomains/thorin'
import { Box, Typography } from '@ensdomains/thorin'
import { Box, rawColorToRGB, Typography } from '@ensdomains/thorin'
import { match, P } from 'ts-pattern'
import * as styles from './PaletteRow.css'
import { assignInlineVars } from '@vanilla-extract/dynamic'

const PaletteCell = ({
name,
Expand All @@ -26,11 +28,14 @@ const PaletteCell = ({
<Box
width="full"
height="24"
// backgroundColor={rawColorToRGB(color)}
className={styles.paletteCell}
style={assignInlineVars({
[styles.paletteCellBackgroundColor]: rawColorToRGB(color),
})}
borderRadius="large"
// border="1px solid"
borderWidth="1x"
borderStyle="solid"
borderColor="border"
// transform={{ base: 'scale(1)', hover: 'scale(1.05)' }}
transitionDuration={150}
transitionTimingFunction="ease-in-out"
transitionProperty="transform"
Expand Down
3 changes: 2 additions & 1 deletion docs/src/components/CodeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const Pre = (props: PropsWithChildren) => (
backgroundColor="greySurface"
borderRadius="large"
padding="4"
border="1px solid"
borderWidth="1x"
borderStyle="solid"
borderColor="border"
position="relative"
/>
Expand Down
14 changes: 8 additions & 6 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 af1ba7c

Please sign in to comment.