diff --git a/apps/docs/app/examples/toast/color/page.tsx b/apps/docs/app/examples/toast/color/page.tsx index 7696a8b348..4fec2b1537 100644 --- a/apps/docs/app/examples/toast/color/page.tsx +++ b/apps/docs/app/examples/toast/color/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/custom-icon/page.tsx b/apps/docs/app/examples/toast/custom-icon/page.tsx index 9f7b02b5cd..df57c8659f 100644 --- a/apps/docs/app/examples/toast/custom-icon/page.tsx +++ b/apps/docs/app/examples/toast/custom-icon/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/custom-style/page.tsx b/apps/docs/app/examples/toast/custom-style/page.tsx index c0ef4d0695..ebb6977fb2 100644 --- a/apps/docs/app/examples/toast/custom-style/page.tsx +++ b/apps/docs/app/examples/toast/custom-style/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/disable-animation/page.tsx b/apps/docs/app/examples/toast/disable-animation/page.tsx index 350e4cbe79..a04ac2372e 100644 --- a/apps/docs/app/examples/toast/disable-animation/page.tsx +++ b/apps/docs/app/examples/toast/disable-animation/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/hidden-icon/page.tsx b/apps/docs/app/examples/toast/hidden-icon/page.tsx index 4e262ea482..b88d773d53 100644 --- a/apps/docs/app/examples/toast/hidden-icon/page.tsx +++ b/apps/docs/app/examples/toast/hidden-icon/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/placement/page.tsx b/apps/docs/app/examples/toast/placement/page.tsx index 3592a13bde..f388fd162f 100644 --- a/apps/docs/app/examples/toast/placement/page.tsx +++ b/apps/docs/app/examples/toast/placement/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/promise/page.tsx b/apps/docs/app/examples/toast/promise/page.tsx index d337c5e0d9..19e9bc2eed 100644 --- a/apps/docs/app/examples/toast/promise/page.tsx +++ b/apps/docs/app/examples/toast/promise/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/radius/page.tsx b/apps/docs/app/examples/toast/radius/page.tsx index 1d2ccf9b67..c34c6d69eb 100644 --- a/apps/docs/app/examples/toast/radius/page.tsx +++ b/apps/docs/app/examples/toast/radius/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/usage/page.tsx b/apps/docs/app/examples/toast/usage/page.tsx index 52bfe3779c..21050bce3b 100644 --- a/apps/docs/app/examples/toast/usage/page.tsx +++ b/apps/docs/app/examples/toast/usage/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/variant/page.tsx b/apps/docs/app/examples/toast/variant/page.tsx index 553adc8907..c3e023c174 100644 --- a/apps/docs/app/examples/toast/variant/page.tsx +++ b/apps/docs/app/examples/toast/variant/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/with-action/page.tsx b/apps/docs/app/examples/toast/with-action/page.tsx index dfb0808151..9c0824c72e 100644 --- a/apps/docs/app/examples/toast/with-action/page.tsx +++ b/apps/docs/app/examples/toast/with-action/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/with-description/page.tsx b/apps/docs/app/examples/toast/with-description/page.tsx index 28cf52f177..405340eac8 100644 --- a/apps/docs/app/examples/toast/with-description/page.tsx +++ b/apps/docs/app/examples/toast/with-description/page.tsx @@ -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 ( diff --git a/apps/docs/app/examples/toast/with-timeout/page.tsx b/apps/docs/app/examples/toast/with-timeout/page.tsx index d9516bf2eb..17c071237f 100644 --- a/apps/docs/app/examples/toast/with-timeout/page.tsx +++ b/apps/docs/app/examples/toast/with-timeout/page.tsx @@ -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 ( diff --git a/apps/docs/content/components/toast/color-root.raw.jsx b/apps/docs/content/components/toast/color-root.raw.jsx index c4c22c8713..f832dac4b6 100644 --- a/apps/docs/content/components/toast/color-root.raw.jsx +++ b/apps/docs/content/components/toast/color-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import ColorDemo from "./color.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/color.raw.jsx b/apps/docs/content/components/toast/color.raw.jsx index d78eb3c427..4ba2590025 100644 --- a/apps/docs/content/components/toast/color.raw.jsx +++ b/apps/docs/content/components/toast/color.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/custom-icon-root.raw.jsx b/apps/docs/content/components/toast/custom-icon-root.raw.jsx index cafc1a9108..1ee28a07c8 100644 --- a/apps/docs/content/components/toast/custom-icon-root.raw.jsx +++ b/apps/docs/content/components/toast/custom-icon-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import CustomIcon from "./custom-icon.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/custom-icon.raw.jsx b/apps/docs/content/components/toast/custom-icon.raw.jsx index 651a193a71..6a4ff51391 100644 --- a/apps/docs/content/components/toast/custom-icon.raw.jsx +++ b/apps/docs/content/components/toast/custom-icon.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/custom-styles-root.raw.jsx b/apps/docs/content/components/toast/custom-styles-root.raw.jsx index b84e723422..06430d5cd2 100644 --- a/apps/docs/content/components/toast/custom-styles-root.raw.jsx +++ b/apps/docs/content/components/toast/custom-styles-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import CustomStyles from "./custom-styles.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/custom-styles.raw.jsx b/apps/docs/content/components/toast/custom-styles.raw.jsx index 098e224926..004003b942 100644 --- a/apps/docs/content/components/toast/custom-styles.raw.jsx +++ b/apps/docs/content/components/toast/custom-styles.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button, cn} from "@nextui-org/react"; +import {addToast, Button, cn} from "@heroui/react"; const CustomToastComponent = () => { return ( diff --git a/apps/docs/content/components/toast/description-root.raw.jsx b/apps/docs/content/components/toast/description-root.raw.jsx index 404fceed97..ec55e5754e 100644 --- a/apps/docs/content/components/toast/description-root.raw.jsx +++ b/apps/docs/content/components/toast/description-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import Description from "./description.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/description.raw.jsx b/apps/docs/content/components/toast/description.raw.jsx index e17c5be7ab..658d2b2d19 100644 --- a/apps/docs/content/components/toast/description.raw.jsx +++ b/apps/docs/content/components/toast/description.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/disable-animation-root.raw.jsx b/apps/docs/content/components/toast/disable-animation-root.raw.jsx index 54af9c4a49..064938ccb5 100644 --- a/apps/docs/content/components/toast/disable-animation-root.raw.jsx +++ b/apps/docs/content/components/toast/disable-animation-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import DisableAnimation from "./disable-animation.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/disable-animation.raw.jsx b/apps/docs/content/components/toast/disable-animation.raw.jsx index a8cfaa9b45..7521421461 100644 --- a/apps/docs/content/components/toast/disable-animation.raw.jsx +++ b/apps/docs/content/components/toast/disable-animation.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/hidden-icon-root.raw.jsx b/apps/docs/content/components/toast/hidden-icon-root.raw.jsx index 201be3b801..75bcfed4ad 100644 --- a/apps/docs/content/components/toast/hidden-icon-root.raw.jsx +++ b/apps/docs/content/components/toast/hidden-icon-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import HiddenIcon from "./hidden-icon.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/hidden-icon.raw.jsx b/apps/docs/content/components/toast/hidden-icon.raw.jsx index c3428c4518..95cba0041a 100644 --- a/apps/docs/content/components/toast/hidden-icon.raw.jsx +++ b/apps/docs/content/components/toast/hidden-icon.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/page.tsx b/apps/docs/content/components/toast/page.tsx index 19788a13a7..fb861e5bf2 100644 --- a/apps/docs/content/components/toast/page.tsx +++ b/apps/docs/content/components/toast/page.tsx @@ -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 ( diff --git a/apps/docs/content/components/toast/placement-root.raw.jsx b/apps/docs/content/components/toast/placement-root.raw.jsx index bbf63a969d..e65d5d9d95 100644 --- a/apps/docs/content/components/toast/placement-root.raw.jsx +++ b/apps/docs/content/components/toast/placement-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import Position from "./placement.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/placement.raw.jsx b/apps/docs/content/components/toast/placement.raw.jsx index 94821f30c6..4971929bf4 100644 --- a/apps/docs/content/components/toast/placement.raw.jsx +++ b/apps/docs/content/components/toast/placement.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/promise-root.raw.jsx b/apps/docs/content/components/toast/promise-root.raw.jsx index 117bf739db..e276ede923 100644 --- a/apps/docs/content/components/toast/promise-root.raw.jsx +++ b/apps/docs/content/components/toast/promise-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import Promise from "./promise.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/promise.raw.jsx b/apps/docs/content/components/toast/promise.raw.jsx index cd7287015d..22ae33ca2c 100644 --- a/apps/docs/content/components/toast/promise.raw.jsx +++ b/apps/docs/content/components/toast/promise.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/radius-root.raw.jsx b/apps/docs/content/components/toast/radius-root.raw.jsx index 94bd78a851..2860f73233 100644 --- a/apps/docs/content/components/toast/radius-root.raw.jsx +++ b/apps/docs/content/components/toast/radius-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import Radius from "./radius.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/radius.raw.jsx b/apps/docs/content/components/toast/radius.raw.jsx index 7547b111c6..b2f3f05420 100644 --- a/apps/docs/content/components/toast/radius.raw.jsx +++ b/apps/docs/content/components/toast/radius.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/usage-root.raw.jsx b/apps/docs/content/components/toast/usage-root.raw.jsx index 9c8695cacd..a79bb5d750 100644 --- a/apps/docs/content/components/toast/usage-root.raw.jsx +++ b/apps/docs/content/components/toast/usage-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import Usage from "./usage.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/usage.raw.jsx b/apps/docs/content/components/toast/usage.raw.jsx index 1b252c6e35..76be12764d 100644 --- a/apps/docs/content/components/toast/usage.raw.jsx +++ b/apps/docs/content/components/toast/usage.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/variants-root.raw.jsx b/apps/docs/content/components/toast/variants-root.raw.jsx index fb63471d1f..cb09d4c60a 100644 --- a/apps/docs/content/components/toast/variants-root.raw.jsx +++ b/apps/docs/content/components/toast/variants-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import Variants from "./variants.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/variants.raw.jsx b/apps/docs/content/components/toast/variants.raw.jsx index e70f8c6539..db526feef0 100644 --- a/apps/docs/content/components/toast/variants.raw.jsx +++ b/apps/docs/content/components/toast/variants.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/with-action-root.raw.jsx b/apps/docs/content/components/toast/with-action-root.raw.jsx index c1acc97f34..60f3c39a40 100644 --- a/apps/docs/content/components/toast/with-action-root.raw.jsx +++ b/apps/docs/content/components/toast/with-action-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import WithAction from "./with-action.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/with-action.raw.jsx b/apps/docs/content/components/toast/with-action.raw.jsx index 36a89d105f..59351874d3 100644 --- a/apps/docs/content/components/toast/with-action.raw.jsx +++ b/apps/docs/content/components/toast/with-action.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/components/toast/with-timeout-root.raw.jsx b/apps/docs/content/components/toast/with-timeout-root.raw.jsx index 6412cf30de..5bc1889f75 100644 --- a/apps/docs/content/components/toast/with-timeout-root.raw.jsx +++ b/apps/docs/content/components/toast/with-timeout-root.raw.jsx @@ -1,4 +1,4 @@ -import {ToastProvider} from "@nextui-org/react"; +import {ToastProvider} from "@heroui/react"; import WithTimeout from "./with-timeout.raw.jsx?raw"; diff --git a/apps/docs/content/components/toast/with-timeout.raw.jsx b/apps/docs/content/components/toast/with-timeout.raw.jsx index d7fc3ab04e..e91ad63c91 100644 --- a/apps/docs/content/components/toast/with-timeout.raw.jsx +++ b/apps/docs/content/components/toast/with-timeout.raw.jsx @@ -1,4 +1,4 @@ -import {addToast, Button} from "@nextui-org/react"; +import {addToast, Button} from "@heroui/react"; export default function App() { return ( diff --git a/apps/docs/content/docs/components/toast.mdx b/apps/docs/content/docs/components/toast.mdx index ac44e6ffb3..6d259bfc11 100644 --- a/apps/docs/content/docs/components/toast.mdx +++ b/apps/docs/content/docs/components/toast.mdx @@ -32,7 +32,7 @@ Toasts are temporary notifications that provide concise feedback about an action diff --git a/packages/components/toast/package.json b/packages/components/toast/package.json index 736e1648da..ae7381d776 100644 --- a/packages/components/toast/package.json +++ b/packages/components/toast/package.json @@ -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" ], @@ -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:*", @@ -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" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b67c3bf981..1b37c95e1b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3021,14 +3021,17 @@ importers: specifier: 3.0.0-beta.15 version: 3.0.0-beta.15(react@18.2.0) '@react-aria/utils': - specifier: 3.24.1 - version: 3.24.1(react@18.2.0) + specifier: 3.26.0 + version: 3.26.0(react@18.2.0) '@react-stately/toast': specifier: 3.0.0-beta.5 version: 3.0.0-beta.5(react@18.2.0) '@react-stately/utils': specifier: 3.10.5 version: 3.10.5(react@18.2.0) + framer-motion: + specifier: '>=11.5.6 || >=12.0.0-alpha.1' + version: 11.11.13(@emotion/is-prop-valid@1.3.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) devDependencies: '@heroui/button': specifier: workspace:* @@ -6902,11 +6905,6 @@ packages: peerDependencies: react: 18.2.0 - '@react-aria/utils@3.24.1': - resolution: {integrity: sha512-O3s9qhPMd6n42x9sKeJ3lhu5V1Tlnzhu6Yk8QOvDuXf7UGuUjXf9mzfHJt1dYzID4l9Fwm8toczBzPM9t0jc8Q==} - peerDependencies: - react: 18.2.0 - '@react-aria/utils@3.26.0': resolution: {integrity: sha512-LkZouGSjjQ0rEqo4XJosS4L3YC/zzQkfRM3KoqK6fUOmUJ9t0jQ09WjiF+uOoG9u+p30AVg3TrZRUWmoTS+koQ==} peerDependencies: @@ -19237,15 +19235,6 @@ snapshots: '@swc/helpers': 0.5.15 react: 18.2.0 - '@react-aria/utils@3.24.1(react@18.2.0)': - dependencies: - '@react-aria/ssr': 3.9.7(react@18.2.0) - '@react-stately/utils': 3.10.5(react@18.2.0) - '@react-types/shared': 3.26.0(react@18.2.0) - '@swc/helpers': 0.5.15 - clsx: 2.1.1 - react: 18.2.0 - '@react-aria/utils@3.26.0(react@18.2.0)': dependencies: '@react-aria/ssr': 3.9.7(react@18.2.0)