-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improvement in the avatar and flex docs
- Loading branch information
Showing
24 changed files
with
167 additions
and
118 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
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
14 changes: 11 additions & 3 deletions
14
apps/docs/src/app/_components/playground/avatar/avatarAnimate.tsx
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,11 +1,19 @@ | ||
import { Avatar } from '@pillar-ui/core' | ||
|
||
const shared = { | ||
src: 'https://i.pravatar.cc/60?img=13', | ||
title: 'Hello', | ||
} | ||
|
||
export const AvatarAnimate = () => { | ||
return ( | ||
<> | ||
<Avatar image="https://i.pravatar.cc/60?img=51" animate="zoom" title="Success!" /> | ||
<Avatar image="https://i.pravatar.cc/60?img=41" animate="jump-x" title="Success!" /> | ||
<Avatar image="https://i.pravatar.cc/60?img=31" animate="jump-y" title="Success!" /> | ||
<Avatar {...shared} animate="zoom" /> | ||
<Avatar {...shared} animate="jump-x" /> | ||
<Avatar {...shared} animate="jump-y" /> | ||
<Avatar {...shared} animate="jump--y" /> | ||
<Avatar {...shared} animate="jump--x" /> | ||
<Avatar {...shared} animate="zoom-in" /> | ||
</> | ||
) | ||
} |
40 changes: 22 additions & 18 deletions
40
apps/docs/src/app/_components/playground/avatar/avatarCorner.tsx
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,26 +1,30 @@ | ||
import { Avatar } from '@pillar-ui/core' | ||
|
||
const shared = { | ||
src: 'https://i.pravatar.cc/120?img=11', | ||
title: 'Hello', | ||
} | ||
export const AvatarCorner = () => { | ||
return ( | ||
<> | ||
<Avatar image="https://i.pravatar.cc/120?img=11" corner="0" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=12" corner="1" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=18" corner="2" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=19" corner="3" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=20" corner="4" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=21" corner="5" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=22" corner="full" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=23" corner="b1" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=24" corner="b2" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=25" corner="b3" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=26" corner="b4" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=27" corner="b5" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=28" corner="h1" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=29" corner="h2" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=30" corner="h3" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=31" corner="h4" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=32" corner="h5" title="Hello" /> | ||
<Avatar image="https://i.pravatar.cc/120?img=33" corner="h6" title="Hello" /> | ||
<Avatar corner="0" {...shared} /> | ||
<Avatar corner="1" {...shared} /> | ||
<Avatar corner="2" {...shared} /> | ||
<Avatar corner="3" {...shared} /> | ||
<Avatar corner="4" {...shared} /> | ||
<Avatar corner="5" {...shared} /> | ||
<Avatar corner="full" {...shared} /> | ||
<Avatar corner="b1" {...shared} /> | ||
<Avatar corner="b2" {...shared} /> | ||
<Avatar corner="b3" {...shared} /> | ||
<Avatar corner="b4" {...shared} /> | ||
<Avatar corner="b5" {...shared} /> | ||
<Avatar corner="h1" {...shared} /> | ||
<Avatar corner="h2" {...shared} /> | ||
<Avatar corner="h3" {...shared} /> | ||
<Avatar corner="h4" {...shared} /> | ||
<Avatar corner="h5" {...shared} /> | ||
<Avatar corner="h6" {...shared} /> | ||
</> | ||
) | ||
} |
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
22 changes: 17 additions & 5 deletions
22
apps/docs/src/app/_components/playground/avatar/avatarVariant.tsx
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,12 +1,24 @@ | ||
import { Avatar } from '@pillar-ui/core' | ||
import { Avatar, Flex } from '@pillar-ui/core' | ||
|
||
const shared = { | ||
src: 'https://i.pravatar.cc/60?img=12', | ||
title: 'Hello', | ||
} | ||
export const AvatarVariant = () => { | ||
return ( | ||
<> | ||
<Avatar image="https://i.pravatar.cc/60?img=40" variant="solid" /> | ||
<Avatar image="https://i.pravatar.cc/60?img=41" variant="soft" /> | ||
<Avatar image="https://i.pravatar.cc/60?img=42" variant="outline" /> | ||
<Avatar image="https://i.pravatar.cc/60?img=43" variant="dashed" /> | ||
<Flex gap="2"> | ||
<Avatar variant="solid" {...shared} /> | ||
<Avatar variant="soft" {...shared} /> | ||
<Avatar variant="outline" {...shared} /> | ||
<Avatar variant="dashed" {...shared} /> | ||
</Flex> | ||
<Flex gap="2"> | ||
<Avatar variant="solid" {...shared} corner="b2" /> | ||
<Avatar variant="soft" {...shared} corner="b2" /> | ||
<Avatar variant="outline" {...shared} corner="b2" /> | ||
<Avatar variant="dashed" {...shared} corner="b2" /> | ||
</Flex> | ||
</> | ||
) | ||
} |
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
8 changes: 5 additions & 3 deletions
8
apps/docs/src/app/_components/playground/flex/flexDirection.tsx
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
Oops, something went wrong.