[WEB-4724] feat: migrate tooltips from blueprintjs to base-ui (#7646)

* feat: add card component to propel package and update tooltip imports

* refactor: remove @plane/ui dependency and update tooltip imports to use local card component

* fix: lint

* refactor: update import from @plane/ui to @plane/utils in command component

* chore: removed blueprintjs/core and blueprintjs/popover2 dependencies

* chore: updated tooltip instances across platform and performed related code refactoring

* chore: code refactor

* chore: code refactor

* fix: lint and build error

* chore: code refactor

* chore: code refactor

* chore: code refactor

* chore: code refactor

* fix: format issue

* fix: build fix

---------

Co-authored-by: Jayash Tripathy <76092296+JayashTripathy@users.noreply.github.com>
This commit is contained in:
Anmol Singh Bhatia 2025-09-02 18:19:56 +05:30 committed by GitHub
parent 569b2fba83
commit 26b48bfcf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
146 changed files with 325 additions and 426 deletions

View file

@ -1,6 +1,6 @@
import * as React from "react";
import { Accordion as BaseAccordion } from "@base-ui-components/react";
import { PlusIcon } from "lucide-react";
import * as React from "react";
interface AccordionRootProps {
defaultValue?: string[];

View file

@ -1,6 +1,6 @@
import React from "react";
import { NameType, Payload, ValueType } from "recharts/types/component/DefaultTooltipContent";
// plane imports
import { Card, ECardSpacing } from "../../card";
import { cn } from "../../utils/classname";

View file

@ -5,7 +5,7 @@ import { TPlacement, TSide, TAlign, convertPlacementToSideAndAlign } from "../ut
type ITooltipProps = {
tooltipHeading?: string;
tooltipContent: string | React.ReactNode;
tooltipContent?: string | React.ReactNode | null;
position?: TPlacement;
children: React.ReactElement;
disabled?: boolean;
@ -61,7 +61,7 @@ export function Tooltip(props: ITooltipProps) {
render={
<BaseTooltip.Popup>
{tooltipHeading && <h5 className="font-medium text-custom-text-100">{tooltipHeading}</h5>}
{tooltipContent}
{tooltipContent && tooltipContent}
</BaseTooltip.Popup>
}
/>

View file

@ -1 +1,2 @@
export * from "./classname";
export * from "./placement";