Skip to content

Commit

Permalink
chore: adding marcus' suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
macci001 committed Jan 20, 2025
1 parent b4225e7 commit 90f223c
Show file tree
Hide file tree
Showing 44 changed files with 55 additions and 65 deletions.
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/color/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/custom-icon/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/custom-style/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import {addToast, Button, cn, ToastProvider} from "@nextui-org/react";
import {addToast, Button, cn, ToastProvider} from "@heroui/react";

const CustomToastComponent = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/disable-animation/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/hidden-icon/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/placement/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/promise/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/radius/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/usage/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/variant/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/with-action/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/with-description/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/toast/with-timeout/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/color-root.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import ColorDemo from "./color.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/color.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import CustomIcon from "./custom-icon.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/custom-icon.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import CustomStyles from "./custom-styles.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/custom-styles.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button, cn} from "@nextui-org/react";
import {addToast, Button, cn} from "@heroui/react";

const CustomToastComponent = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import Description from "./description.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/description.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import DisableAnimation from "./disable-animation.raw.jsx?raw";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import HiddenIcon from "./hidden-icon.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/hidden-icon.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import {addToast, Button, ToastProvider} from "@nextui-org/react";
import {addToast, Button, ToastProvider} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/placement-root.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import Position from "./placement.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/placement.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/promise-root.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import Promise from "./promise.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/promise.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/radius-root.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import Radius from "./radius.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/radius.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/usage-root.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import Usage from "./usage.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/usage.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/variants-root.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import Variants from "./variants.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/variants.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import WithAction from "./with-action.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/with-action.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ToastProvider} from "@nextui-org/react";
import {ToastProvider} from "@heroui/react";

import WithTimeout from "./with-timeout.raw.jsx?raw";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/toast/with-timeout.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addToast, Button} from "@nextui-org/react";
import {addToast, Button} from "@heroui/react";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/toast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Toasts are temporary notifications that provide concise feedback about an action

<ImportTabs
commands={{
main: 'import {addToast, ToastProvider} from "@nextui-org/react";',
main: 'import {addToast, ToastProvider} from "@heroui/react";',
individual: 'import {addToast, ToastProvider} from "@nextui-org/toast";',
}}
/>
Expand Down
13 changes: 7 additions & 6 deletions packages/components/toast/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heroui/toast",
"version": "2.0.0",
"description": "adding toast",
"description": "Toast are temporary notifications that provide concise feedback about an action or event",
"keywords": [
"toast"
],
Expand Down Expand Up @@ -34,10 +34,11 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"@heroui/system": ">=2.0.0",
"@heroui/theme": ">=2.0.0",
"react": ">=18",
"react-dom": ">=18"
"@heroui/system": ">=2.4.8",
"@heroui/theme": ">=2.4.7",
"react": ">=18 || >=19.0.0-rc.0",
"react-dom": ">=18 || >=19.0.0-rc.0",
"framer-motion": ">=11.5.6 || >=12.0.0-alpha.1"
},
"dependencies": {
"@heroui/react-utils": "workspace:*",
Expand All @@ -46,7 +47,7 @@
"@heroui/dom-animation": "workspace:*",
"@heroui/spinner": "workspace:*",
"@react-aria/toast": "3.0.0-beta.15",
"@react-aria/utils": "3.24.1",
"@react-aria/utils": "3.26.0",
"@react-aria/interactions": "3.22.5",
"@react-stately/toast": "3.0.0-beta.5",
"@react-stately/utils": "3.10.5"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/toast/stories/toast.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {useEffect} from "react";
import {Meta} from "@storybook/react";
import {cn, toast} from "@nextui-org/theme";
import {Button} from "@nextui-org/button";
import {cn, toast} from "@heroui/theme";
import {Button} from "@heroui/button";

import {Toast, ToastProps, ToastProvider, addToast, closeAll} from "../src";

Expand Down
21 changes: 5 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90f223c

Please sign in to comment.