[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:
parent
569b2fba83
commit
26b48bfcf0
146 changed files with 325 additions and 426 deletions
|
|
@ -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[];
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
export * from "./classname";
|
||||
export * from "./placement";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue