diff --git a/packages/components/toast/src/use-toast.ts b/packages/components/toast/src/use-toast.ts
index 51e793bbe..b94b0f624 100644
--- a/packages/components/toast/src/use-toast.ts
+++ b/packages/components/toast/src/use-toast.ts
@@ -396,24 +396,13 @@ export function useToast
(originalProps: UseToastProps)
"data-placement": placement,
"data-drag-value": dragValue,
"data-toast": true,
- "data-animation": toast.animation,
"aria-label": "toast",
- onTransitionEnd: () => {
- if (toast.animation === "exiting") {
- const updatedHeights = heights;
-
- updatedHeights.splice(index, 1);
- setHeights([...updatedHeights]);
-
- state.remove(toast.key);
- }
- },
style: {
opacity: opacityValue,
},
...mergeProps(props, otherProps, toastProps, hoverProps),
}),
- [slots, classNames, toastProps, hoverProps, toast, toast.animation, toast.key, opacityValue],
+ [slots, classNames, toastProps, hoverProps, toast, toast.key, opacityValue],
);
const getWrapperProps: PropGetter = useCallback(
@@ -555,7 +544,6 @@ export function useToast(originalProps: UseToastProps)
setHeights([...updatedHeights]);
state.close(toast.key);
- state.remove(toast.key);
return;
}
diff --git a/packages/components/toast/stories/toast.stories.tsx b/packages/components/toast/stories/toast.stories.tsx
index d85529f03..681f7b7f2 100644
--- a/packages/components/toast/stories/toast.stories.tsx
+++ b/packages/components/toast/stories/toast.stories.tsx
@@ -2,6 +2,15 @@ import React, {useEffect} from "react";
import {Meta} from "@storybook/react";
import {cn, toast} from "@heroui/theme";
import {Button} from "@heroui/button";
+import {
+ Modal,
+ ModalBody,
+ ModalContent,
+ ModalFooter,
+ ModalHeader,
+ useDisclosure,
+} from "@heroui/modal";
+import {Drawer, DrawerContent} from "@heroui/drawer";
import {Toast, ToastProps, ToastProvider, addToast, closeAll} from "../src";
@@ -205,7 +214,7 @@ const PromiseToastTemplate = (args: ToastProps) => {
description: "Toast Displayed Successfully",
promise: new Promise((resolve) => setTimeout(resolve, 3000)),
timeout: 3000,
- shouldShowTimeoutProgess: false,
+ shouldShowTimeoutProgress: false,
...args,
});
}}
@@ -217,6 +226,68 @@ const PromiseToastTemplate = (args: ToastProps) => {
);
};
+const WithToastFromOverlayTemplate = (args) => {
+ const {isOpen, onOpen, onOpenChange, onClose} = useDisclosure();
+ const {
+ isOpen: isDrawerOpen,
+ onOpen: onDrawerOpen,
+ onOpenChange: onDrawerOpenChange,
+ } = useDisclosure({defaultOpen: args.defaultOpen});
+
+ return (
+ <>
+
+
+
+
+ Toast from Modal
+
+ Press "Show Toast" to launch a toast.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+};
+
const CustomToastComponent = (args) => {
const color = args.color;
const colorMap = {
@@ -260,6 +331,7 @@ const CustomToastComponent = (args) => {
),
color: color,
+ ...args,
});
}}
>
@@ -409,6 +481,13 @@ export const WithEndContent = {
},
};
+export const ToastFromOverlay = {
+ render: WithToastFromOverlayTemplate,
+ args: {
+ ...defaultProps,
+ },
+};
+
export const CustomStyles = {
render: CustomToastTemplate,
args: {
diff --git a/packages/components/tooltip/CHANGELOG.md b/packages/components/tooltip/CHANGELOG.md
index f32797fc8..9c655ebec 100644
--- a/packages/components/tooltip/CHANGELOG.md
+++ b/packages/components/tooltip/CHANGELOG.md
@@ -1,5 +1,15 @@
# @heroui/tooltip
+## 2.2.13
+
+### Patch Changes
+
+- [#4998](https://github.com/heroui-inc/heroui/pull/4998) [`88f1641`](https://github.com/heroui-inc/heroui/commit/88f164116c2be75cd2de0a076f5ba0942a43e3de) Thanks [@wingkwong](https://github.com/wingkwong)! - bump RA versions
+
+- Updated dependencies [[`88f1641`](https://github.com/heroui-inc/heroui/commit/88f164116c2be75cd2de0a076f5ba0942a43e3de)]:
+ - @heroui/aria-utils@2.2.13
+ - @heroui/framer-utils@2.1.12
+
## 2.2.12
### Patch Changes
diff --git a/packages/components/tooltip/package.json b/packages/components/tooltip/package.json
index 2f9bc1a9f..b029532e5 100644
--- a/packages/components/tooltip/package.json
+++ b/packages/components/tooltip/package.json
@@ -1,6 +1,6 @@
{
"name": "@heroui/tooltip",
- "version": "2.2.12",
+ "version": "2.2.13",
"description": "A React Component for rendering dynamically positioned Tooltips",
"keywords": [
"tooltip"
@@ -47,13 +47,13 @@
"@heroui/framer-utils": "workspace:*",
"@heroui/use-safe-layout-effect": "workspace:*",
"@heroui/dom-animation": "workspace:*",
- "@react-aria/interactions": "3.23.0",
- "@react-aria/overlays": "3.25.0",
- "@react-aria/tooltip": "3.7.11",
- "@react-aria/utils": "3.27.0",
- "@react-stately/tooltip": "3.5.1",
- "@react-types/overlays": "3.8.12",
- "@react-types/tooltip": "3.4.14"
+ "@react-aria/interactions": "3.24.0",
+ "@react-aria/overlays": "3.26.0",
+ "@react-aria/tooltip": "3.8.0",
+ "@react-aria/utils": "3.28.0",
+ "@react-stately/tooltip": "3.5.2",
+ "@react-types/overlays": "3.8.13",
+ "@react-types/tooltip": "3.4.15"
},
"devDependencies": {
"@heroui/button": "workspace:*",
diff --git a/packages/components/user/CHANGELOG.md b/packages/components/user/CHANGELOG.md
index 3387eea2f..f62cb9607 100644
--- a/packages/components/user/CHANGELOG.md
+++ b/packages/components/user/CHANGELOG.md
@@ -1,5 +1,14 @@
# @heroui/user
+## 2.2.12
+
+### Patch Changes
+
+- [#4998](https://github.com/heroui-inc/heroui/pull/4998) [`88f1641`](https://github.com/heroui-inc/heroui/commit/88f164116c2be75cd2de0a076f5ba0942a43e3de) Thanks [@wingkwong](https://github.com/wingkwong)! - bump RA versions
+
+- Updated dependencies [[`88f1641`](https://github.com/heroui-inc/heroui/commit/88f164116c2be75cd2de0a076f5ba0942a43e3de)]:
+ - @heroui/avatar@2.2.12
+
## 2.2.11
### Patch Changes
diff --git a/packages/components/user/package.json b/packages/components/user/package.json
index 2442f7193..13fe4b996 100644
--- a/packages/components/user/package.json
+++ b/packages/components/user/package.json
@@ -1,6 +1,6 @@
{
"name": "@heroui/user",
- "version": "2.2.11",
+ "version": "2.2.12",
"description": "Flexible User Profile Component.",
"keywords": [
"user"
@@ -43,8 +43,8 @@
"@heroui/avatar": "workspace:*",
"@heroui/shared-utils": "workspace:*",
"@heroui/react-utils": "workspace:*",
- "@react-aria/focus": "3.19.1",
- "@react-aria/utils": "3.27.0"
+ "@react-aria/focus": "3.20.0",
+ "@react-aria/utils": "3.28.0"
},
"devDependencies": {
"@heroui/theme": "workspace:*",
diff --git a/packages/core/react/CHANGELOG.md b/packages/core/react/CHANGELOG.md
index b851b3467..e04ec0de7 100644
--- a/packages/core/react/CHANGELOG.md
+++ b/packages/core/react/CHANGELOG.md
@@ -1,5 +1,62 @@
# @heroui/react
+## 2.7.5
+
+### Patch Changes
+
+- [#4998](https://github.com/heroui-inc/heroui/pull/4998) [`88f1641`](https://github.com/heroui-inc/heroui/commit/88f164116c2be75cd2de0a076f5ba0942a43e3de) Thanks [@wingkwong](https://github.com/wingkwong)! - bump RA versions
+
+- Updated dependencies [[`e9c67fa`](https://github.com/heroui-inc/heroui/commit/e9c67fa6caf62fa835474d009b86cf722b08b66d), [`1f95899`](https://github.com/heroui-inc/heroui/commit/1f9589943af2e6910fc6a4b4bce53e47b91f4a61), [`6293536`](https://github.com/heroui-inc/heroui/commit/62935362fb712c5e7c36e39db72cd586f4500a5c), [`6f94545`](https://github.com/heroui-inc/heroui/commit/6f945458c8372949e80a1f5acc6c3047450d6b9d), [`58128c4`](https://github.com/heroui-inc/heroui/commit/58128c403e014315d96fbcb428c3b2a1e2ed9cf6), [`88f1641`](https://github.com/heroui-inc/heroui/commit/88f164116c2be75cd2de0a076f5ba0942a43e3de)]:
+ - @heroui/theme@2.4.12
+ - @heroui/toast@2.0.6
+ - @heroui/progress@2.2.12
+ - @heroui/input@2.4.16
+ - @heroui/autocomplete@2.3.17
+ - @heroui/number-input@2.0.6
+ - @heroui/breadcrumbs@2.2.12
+ - @heroui/date-picker@2.3.16
+ - @heroui/date-input@2.3.15
+ - @heroui/pagination@2.2.14
+ - @heroui/accordion@2.2.13
+ - @heroui/input-otp@2.1.15
+ - @heroui/calendar@2.2.16
+ - @heroui/checkbox@2.3.15
+ - @heroui/dropdown@2.3.16
+ - @heroui/divider@2.2.11
+ - @heroui/listbox@2.3.15
+ - @heroui/popover@2.3.16
+ - @heroui/snippet@2.2.17
+ - @heroui/tooltip@2.2.13
+ - @heroui/avatar@2.2.12
+ - @heroui/button@2.2.16
+ - @heroui/navbar@2.2.14
+ - @heroui/select@2.4.16
+ - @heroui/slider@2.4.13
+ - @heroui/switch@2.2.14
+ - @heroui/alert@2.2.16
+ - @heroui/modal@2.2.13
+ - @heroui/radio@2.3.15
+ - @heroui/table@2.2.15
+ - @heroui/card@2.2.15
+ - @heroui/chip@2.2.12
+ - @heroui/form@2.1.15
+ - @heroui/link@2.2.13
+ - @heroui/menu@2.2.15
+ - @heroui/tabs@2.2.13
+ - @heroui/user@2.2.12
+ - @heroui/kbd@2.2.12
+ - @heroui/system@2.4.12
+ - @heroui/badge@2.2.10
+ - @heroui/code@2.2.12
+ - @heroui/drawer@2.2.13
+ - @heroui/image@2.2.10
+ - @heroui/ripple@2.2.12
+ - @heroui/scroll-shadow@2.3.10
+ - @heroui/skeleton@2.2.10
+ - @heroui/spacer@2.2.12
+ - @heroui/spinner@2.2.13
+ - @heroui/framer-utils@2.1.12
+
## 2.7.4
### Patch Changes
diff --git a/packages/core/react/package.json b/packages/core/react/package.json
index 32ab5f771..1dbf03d55 100644
--- a/packages/core/react/package.json
+++ b/packages/core/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@heroui/react",
- "version": "2.7.4",
+ "version": "2.7.5",
"description": "🚀 Beautiful and modern React UI library.",
"author": "HeroUI