[WEB-4748] chore: propel utils (#7662)

* chore: tailwind merge added to propel

* chore: classname utils updated

* chore: utils import alias added

* chore: code refactor

* chore: code refactor

* chore: code refactor

* chore: code refactor

* chore: code refactor
This commit is contained in:
Anmol Singh Bhatia 2025-08-28 18:39:27 +05:30 committed by GitHub
parent 3b3bd3e54e
commit aef465415b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 29 additions and 28 deletions

View file

@ -2,7 +2,7 @@
import React from "react";
// plane imports
import { TBarChartShapeVariant, TBarItem, TChartData } from "@plane/types";
import { cn } from "@plane/utils";
import { cn } from "../../utils/classname";
// Constants
const MIN_BAR_HEIGHT_FOR_INTERNAL_TEXT = 14; // Minimum height required to show text inside bar

View file

@ -2,7 +2,7 @@ import React from "react";
import { LegendProps } from "recharts";
// plane imports
import { TChartLegend } from "@plane/types";
import { cn } from "@plane/utils";
import { cn } from "../../utils/classname";
export const getLegendProps = (args: TChartLegend): LegendProps => {
const { align, layout, verticalAlign } = args;

View file

@ -2,8 +2,7 @@ import React from "react";
import { NameType, Payload, ValueType } from "recharts/types/component/DefaultTooltipContent";
// plane imports
import { Card, ECardSpacing } from "../../card";
import { cn } from "@plane/utils";
import { cn } from "../../utils/classname";
type Props = {
active: boolean | undefined;

View file

@ -1,7 +1,7 @@
import React, { useMemo } from "react";
// plane imports
import { TBottomSectionConfig, TContentVisibility, TTopSectionConfig } from "@plane/types";
import { cn } from "@plane/utils";
import { cn } from "../../utils/classname";
const LAYOUT = {
PADDING: 2,

View file

@ -2,8 +2,8 @@ import React from "react";
import { Treemap, ResponsiveContainer, Tooltip } from "recharts";
// plane imports
import { TreeMapChartProps } from "@plane/types";
import { cn } from "@plane/utils";
// local imports
import { cn } from "../../utils/classname";
import { CustomTreeMapContent } from "./map-content";
import { TreeMapTooltip } from "./tooltip";