-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build(deps): upgrade dependencies * refactor: remove portals from components * refactor(stories): remove custom layout story parameter * chore(stories): remove identity decorator * chore(examples): upgrade dependencies * chore: update JSDoc * fix(modal): use asChild for trigger * docs: add JSDoc comments for lazy mounting and exit unmounting --------- Co-authored-by: hobbescodes <87732294+hobbescodes@users.noreply.github.com>
- Loading branch information
1 parent
19b566c
commit 778f339
Showing
88 changed files
with
297 additions
and
327 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@animareflection/ui": patch | ||
--- | ||
|
||
Remove portals from `Drawer`, `Modal`, and `Tooltip` |
Binary file not shown.
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,21 +1,34 @@ | ||
import { Modal, Text } from "@animareflection/ui"; | ||
"use client"; | ||
|
||
import { useState } from "react"; | ||
|
||
import { Button, Modal, Text } from "@animareflection/ui"; | ||
|
||
import { Wrapper } from "components"; | ||
|
||
const ModalDemo = () => ( | ||
<Wrapper title="Modal"> | ||
<Modal | ||
trigger="Open Modal" | ||
title="Modal Title" | ||
description="Modal Description" | ||
> | ||
<Text mt={2}> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam. | ||
</Text> | ||
</Modal> | ||
</Wrapper> | ||
); | ||
const ModalDemo = () => { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
return ( | ||
<Wrapper title="Modal"> | ||
<Button w="fit-content" onClick={() => setIsOpen(true)}> | ||
Open Modal | ||
</Button> | ||
|
||
<Modal | ||
open={isOpen} | ||
onOpenChange={({ open }) => (open ? setIsOpen(true) : setIsOpen(false))} | ||
title="Modal Title" | ||
description="Modal Description" | ||
> | ||
<Text mt={2}> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do | ||
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad | ||
minim veniam. | ||
</Text> | ||
</Modal> | ||
</Wrapper> | ||
); | ||
}; | ||
|
||
export default ModalDemo; |
Binary file not shown.
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,21 +1,32 @@ | ||
import { useState } from "react"; | ||
|
||
import { Button, Modal, Text } from "@animareflection/ui"; | ||
|
||
import { Wrapper } from "components"; | ||
|
||
const ModalDemo = () => ( | ||
<Wrapper title="Modal"> | ||
<Modal | ||
trigger="Open Modal" | ||
title="Modal Title" | ||
description="Modal Description" | ||
> | ||
<Text mt={2}> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim | ||
veniam. | ||
</Text> | ||
</Modal> | ||
</Wrapper> | ||
); | ||
const ModalDemo = () => { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
return ( | ||
<Wrapper title="Modal"> | ||
<Button w="fit-content" onClick={() => setIsOpen(true)}> | ||
Open Modal | ||
</Button> | ||
|
||
<Modal | ||
open={isOpen} | ||
onOpenChange={({ open }) => (open ? setIsOpen(true) : setIsOpen(false))} | ||
title="Modal Title" | ||
description="Modal Description" | ||
> | ||
<Text mt={2}> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do | ||
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad | ||
minim veniam. | ||
</Text> | ||
</Modal> | ||
</Wrapper> | ||
); | ||
}; | ||
|
||
export default ModalDemo; |
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
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
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.
778f339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for ui-storybook ready!
✅ Preview
https://ui-storybook-40lll21bm-animareflection.vercel.app
Built with commit 778f339.
This pull request is being automatically deployed with vercel-action