-
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.
* fix: update default color of CopyToClipboard icon * feat: update Toast and primitives to use sonner * style: update toast recipe * ci(changesets): add changeset for Toast update * chore(toast): remove unused icon * chore(toast): update types in stories
- Loading branch information
1 parent
825f55f
commit 3aad5ce
Showing
13 changed files
with
137 additions
and
74 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": minor | ||
--- | ||
|
||
Update `Toast` components to use sonner |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { panda } from "generated/panda/jsx"; | ||
import { toast } from "generated/panda/recipes"; | ||
import { createStyleContext } from "lib/util"; | ||
|
||
import type { PandaComponent } from "generated/panda/types/jsx"; | ||
import type { ComponentProps } from "react"; | ||
|
||
const { withProvider, withContext } = createStyleContext(toast); | ||
|
||
/** | ||
* Core UI toast primitives. | ||
*/ | ||
export type PrimitiveToastProps = ComponentProps<typeof PrimitiveToast>; | ||
const PrimitiveToast: PandaComponent<typeof panda.div> = withProvider( | ||
panda.div, | ||
"root", | ||
); | ||
|
||
export type PrimitiveToastTitleProps = ComponentProps< | ||
typeof PrimitiveToastTitle | ||
>; | ||
export const PrimitiveToastTitle = withContext(panda.p, "title"); | ||
|
||
export type PrimitiveToastDescriptionProps = ComponentProps< | ||
typeof PrimitiveToastDescription | ||
>; | ||
export const PrimitiveToastDescription = withContext(panda.p, "description"); | ||
|
||
export type PrimitiveToastCloseProps = ComponentProps< | ||
typeof PrimitiveToastClose | ||
>; | ||
export const PrimitiveToastClose = withContext(panda.button, "closeTrigger"); | ||
|
||
export default PrimitiveToast; |
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
3aad5ce
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-lcr149rmh-animareflection.vercel.app
Built with commit 3aad5ce.
This pull request is being automatically deployed with vercel-action