Skip to content

Commit

Permalink
feat(website): various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cschroeter committed May 19, 2024
1 parent 2bc9581 commit 3bf7c5c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 15 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion packages/react/src/components/popover/examples/as-child.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// @ts-expect-error - Required for examples
import { Button } from '@acme/ui-lib'
import { Popover } from '../..'

export const AsChild = () => (
<Popover.Root>
<Popover.Trigger asChild>
{/* @ts-expect-error */}
<Button>Open</Button>
</Popover.Trigger>
</Popover.Root>
Expand Down
3 changes: 2 additions & 1 deletion packages/solid/src/components/popover/examples/as-child.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-expect-error
import { Button } from '@acme/ui-lib'
import { Popover } from '../..'

export const Basic = () => (
<Popover.Root>
{/* @ts-expect-error */}
<Popover.Trigger asChild={(props) => <Button {...props()} />}>Open</Popover.Trigger>
</Popover.Root>
)
2 changes: 2 additions & 0 deletions packages/vue/src/components/popover/examples/as-child.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup lang="ts">
// @ts-expect-error
import { Button } from '@acme/ui-lib'
import { Popover } from '../..'
</script>

Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@biomejs/biome": "1.7.3",
"@icons-pack/react-simple-icons": "9.5.0",
"@pandacss/dev": "0.39.1",
"@park-ui/panda-preset": "0.37.0",
"@park-ui/panda-preset": "0.37.1",
"@shikijs/transformers": "1.6.0",
"@types/node": "20.12.12",
"@types/react": "18.3.2",
Expand Down
15 changes: 3 additions & 12 deletions website/panda.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export default defineConfig({
},
code: {
fontFamily: 'code',
'::selection': {
bg: 'gray.dark.a4',
},
},
article: {
'--colors-prose-body': 'colors.fg.muted',
Expand All @@ -78,18 +81,6 @@ export default defineConfig({
},
theme: {
extend: {
recipes: {
code: {
base: {
whiteSpace: 'pre',
},
},
kbd: {
base: {
whiteSpace: 'pre',
},
},
},
tokens: {
fonts: {
body: { value: 'var(--font-outfit), sans-serif' },
Expand Down

0 comments on commit 3bf7c5c

Please sign in to comment.