Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/core/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/components/popover/popover.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
6 changes: 6 additions & 0 deletions packages/core/src/components/popover/popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 2 additions & 0 deletions packages/demo-app/src/examples/PopoverExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const PopoverExample = memo(() => {
return (
<div className="example-row">
<ExampleCard label="Popover" subLabel="Text content" width={200}>
{/* eslint-disable-next-line @typescript-eslint/no-deprecated */}
<Popover
content={
<div style={{ minWidth: 100 }}>
Expand All @@ -59,6 +60,7 @@ export const PopoverExample = memo(() => {
</Popover>
</ExampleCard>
<ExampleCard label="Popover" subLabel="Dropdown menu" width={200}>
{/* eslint-disable-next-line @typescript-eslint/no-deprecated */}
<Popover content={textEditorMenu} fill={true} placement="bottom-start" minimal={true}>
<Button fill={true} text="Click to open" endIcon="caret-down" />
</Popover>
Expand Down