-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(website): improve component preview load time
- Loading branch information
1 parent
429d5a8
commit d76a161
Showing
16 changed files
with
100 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client' | ||
import { | ||
RatingGroup as ArkRatingGroup, | ||
type RatingGroupRootProps, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
import { Portal } from '@ark-ui/react' | ||
import { XIcon } from 'lucide-react' | ||
import { Box, Stack } from 'styled-system/jsx' | ||
import { Button, IconButton, Popover } from '~/components/ui' | ||
|
||
export const Demo = (props: Popover.RootProps) => ( | ||
<Popover.Root portalled {...props}> | ||
<Popover.Root {...props}> | ||
<Popover.Trigger asChild> | ||
<Button variant="outline">Open Popover</Button> | ||
</Popover.Trigger> | ||
<Portal> | ||
<Popover.Positioner> | ||
<Popover.Content> | ||
<Popover.Arrow> | ||
<Popover.ArrowTip /> | ||
</Popover.Arrow> | ||
<Stack gap="1"> | ||
<Popover.Title>Favorite Framework</Popover.Title> | ||
<Popover.Description> | ||
Tell us what is your favorite framework and why you love to use it. | ||
</Popover.Description> | ||
</Stack> | ||
<Box position="absolute" top="1" right="1"> | ||
<Popover.CloseTrigger asChild> | ||
<IconButton aria-label="Close Popover" variant="ghost" size="sm"> | ||
<XIcon /> | ||
</IconButton> | ||
</Popover.CloseTrigger> | ||
</Box> | ||
</Popover.Content> | ||
</Popover.Positioner> | ||
</Portal> | ||
<Popover.Positioner> | ||
<Popover.Content> | ||
<Popover.Arrow> | ||
<Popover.ArrowTip /> | ||
</Popover.Arrow> | ||
<Stack gap="1"> | ||
<Popover.Title>Favorite Framework</Popover.Title> | ||
<Popover.Description> | ||
Tell us what is your favorite framework and why you love to use it. | ||
</Popover.Description> | ||
</Stack> | ||
<Box position="absolute" top="1" right="1"> | ||
<Popover.CloseTrigger asChild> | ||
<IconButton aria-label="Close Popover" variant="ghost" size="sm"> | ||
<XIcon /> | ||
</IconButton> | ||
</Popover.CloseTrigger> | ||
</Box> | ||
</Popover.Content> | ||
</Popover.Positioner> | ||
</Popover.Root> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
import { Portal } from '@ark-ui/react' | ||
import { Tooltip } from '~/components/ui' | ||
|
||
export const Demo = (props: Tooltip.RootProps) => ( | ||
<Tooltip.Root {...props}> | ||
<Tooltip.Trigger>Hover Me</Tooltip.Trigger> | ||
<Portal> | ||
<Tooltip.Positioner> | ||
<Tooltip.Arrow> | ||
<Tooltip.ArrowTip /> | ||
</Tooltip.Arrow> | ||
<Tooltip.Content>I am a Tooltip!</Tooltip.Content> | ||
</Tooltip.Positioner> | ||
</Portal> | ||
<Tooltip.Positioner> | ||
<Tooltip.Arrow> | ||
<Tooltip.ArrowTip /> | ||
</Tooltip.Arrow> | ||
<Tooltip.Content>I am a Tooltip!</Tooltip.Content> | ||
</Tooltip.Positioner> | ||
</Tooltip.Root> | ||
) |