diff --git a/packages/core/src/components/index.ts b/packages/core/src/components/index.ts index 92b7986a6b9..2db741b1cc3 100644 --- a/packages/core/src/components/index.ts +++ b/packages/core/src/components/index.ts @@ -80,6 +80,7 @@ export { Text, type TextProps } from "./text/text"; // eslint-disable-next-line @typescript-eslint/no-deprecated export { PanelStack, type PanelStackProps, PanelStack2, type PanelStack2Props } from "./panel-stack/panelStack"; export type { Panel, PanelProps } from "./panel-stack/panelTypes"; +// eslint-disable-next-line @typescript-eslint/no-deprecated export { Popover } from "./popover/popover"; export { PopoverAnimation, PopoverInteractionKind, type PopoverProps } from "./popover/popoverProps"; export { PopoverPosition } from "./popover/popoverPosition"; diff --git a/packages/core/src/components/popover/popover.test.tsx b/packages/core/src/components/popover/popover.test.tsx index f015bec2964..dc649ecf827 100644 --- a/packages/core/src/components/popover/popover.test.tsx +++ b/packages/core/src/components/popover/popover.test.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +/* eslint-disable @typescript-eslint/no-deprecated */ + import { render, screen, waitFor } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; diff --git a/packages/core/src/components/popover/popover.tsx b/packages/core/src/components/popover/popover.tsx index f85a81696ad..abe5e09522d 100644 --- a/packages/core/src/components/popover/popover.tsx +++ b/packages/core/src/components/popover/popover.tsx @@ -14,6 +14,11 @@ * limitations under the License. */ +/** + * @fileoverview This component is DEPRECATED, and the code is frozen. + * All changes & bugfixes should be made to PopoverNext instead. + */ + import type { State as PopperState } from "@popperjs/core"; import classNames from "classnames"; import { Children, cloneElement, createElement, createRef } from "react"; @@ -60,6 +65,7 @@ export interface PopoverState { /** * Popover component, used to display a floating UI next to and tethered to a target element. * + * @deprecated use `PopoverNext` instead * @template T target element props interface. Consumers wishing to stay in sync with Blueprint's default target HTML * props interface should use the `DefaultPopoverTargetHTMLProps` type (although this is already the default type for * this type param). diff --git a/packages/demo-app/src/examples/PopoverExample.tsx b/packages/demo-app/src/examples/PopoverExample.tsx index eda06311e5f..4b5ff4540d0 100644 --- a/packages/demo-app/src/examples/PopoverExample.tsx +++ b/packages/demo-app/src/examples/PopoverExample.tsx @@ -44,6 +44,7 @@ export const PopoverExample = memo(() => { return (
+ {/* eslint-disable-next-line @typescript-eslint/no-deprecated */} @@ -59,6 +60,7 @@ export const PopoverExample = memo(() => { + {/* eslint-disable-next-line @typescript-eslint/no-deprecated */}