From 0d429c480fe017147f8b74968301cae8e19e0f88 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Sun, 15 Dec 2024 14:58:58 +0800 Subject: [PATCH] fix(alert): slots & variantProps import --- .changeset/polite-dingos-call.md | 5 +++++ packages/components/alert/src/use-alert.ts | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/polite-dingos-call.md diff --git a/.changeset/polite-dingos-call.md b/.changeset/polite-dingos-call.md new file mode 100644 index 0000000000..6c2270045f --- /dev/null +++ b/.changeset/polite-dingos-call.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/alert": patch +--- + +fix alert slots & variantProps import (#4336) diff --git a/packages/components/alert/src/use-alert.ts b/packages/components/alert/src/use-alert.ts index 61e739cd7a..e56f85699a 100644 --- a/packages/components/alert/src/use-alert.ts +++ b/packages/components/alert/src/use-alert.ts @@ -1,9 +1,8 @@ import type {ButtonProps} from "@nextui-org/button"; +import type {AlertSlots, AlertVariantProps, SlotsToClasses} from "@nextui-org/theme"; import {HTMLNextUIProps, mapPropsVariants, PropGetter} from "@nextui-org/system"; -import {AlertSlots, SlotsToClasses} from "@nextui-org/theme"; import {filterDOMProps, ReactRef, useDOMRef} from "@nextui-org/react-utils"; -import {AlertVariantProps} from "@nextui-org/theme/src/components/alert"; import {ReactNode, useCallback, useMemo} from "react"; import {mergeProps} from "@react-aria/utils"; import {alert} from "@nextui-org/theme";