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
4 changes: 2 additions & 2 deletions packages/propel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
"@plane/constants": "workspace:*",
"@plane/hooks": "workspace:*",
"@plane/types": "workspace:*",
"@plane/utils": "workspace:*",
"@tanstack/react-table": "^8.21.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.469.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"recharts": "^2.15.1"
"recharts": "^2.15.1",
"tailwind-merge": "^3.3.1"
},
"devDependencies": {
"@plane/eslint-config": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/propel/src/avatar/avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import { Avatar as AvatarPrimitive } from "@base-ui-components/react/avatar";
// utils
import { cn } from "@plane/utils";
import { cn } from "../utils/classname";

export type TAvatarSize = "sm" | "md" | "base" | "lg" | number;

Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/card/card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { cn } from "@plane/utils";
import { cn } from "../utils/classname";
import {
ECardDirection,
ECardSpacing,
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/charts/bar-chart/bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/charts/components/legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions packages/propel/src/charts/components/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/charts/tree-map/map-content.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -146,7 +146,7 @@
return `${stringText.slice(0, maxChars - 3)}...`;
};

export const CustomTreeMapContent: React.FC<any> = ({

Check warning on line 149 in packages/propel/src/charts/tree-map/map-content.tsx

View workflow job for this annotation

GitHub Actions / Build and lint web apps

Unexpected any. Specify a different type

Check warning on line 149 in packages/propel/src/charts/tree-map/map-content.tsx

View workflow job for this annotation

GitHub Actions / Build and lint web apps

Unexpected any. Specify a different type
x,
y,
width,
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/charts/tree-map/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/combobox/combobox.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import { cn } from "@plane/utils";
import { Command } from "../command/command";
import { Popover } from "../popover/root";
import { cn } from "../utils/classname";

export interface ComboboxOption {
value: unknown;
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/command/command.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import { Command as CommandPrimitive } from "cmdk";
import { SearchIcon } from "lucide-react";
import { cn } from "@plane/utils";
import { cn } from "../utils/classname";

function CommandComponent({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {
return <CommandPrimitive data-slot="command" className={cn("", className)} {...props} />;
Expand All @@ -19,7 +19,7 @@
);
}

function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) {

Check warning on line 22 in packages/propel/src/command/command.tsx

View workflow job for this annotation

GitHub Actions / Build and lint web apps

'className' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 22 in packages/propel/src/command/command.tsx

View workflow job for this annotation

GitHub Actions / Build and lint web apps

'className' is defined but never used. Allowed unused args must match /^_/u
return <CommandPrimitive.List data-slot="command-list" {...props} />;
}

Expand All @@ -27,7 +27,7 @@
return <CommandPrimitive.Empty data-slot="command-empty" {...props} />;
}

function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) {

Check warning on line 30 in packages/propel/src/command/command.tsx

View workflow job for this annotation

GitHub Actions / Build and lint web apps

'className' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 30 in packages/propel/src/command/command.tsx

View workflow job for this annotation

GitHub Actions / Build and lint web apps

'className' is defined but never used. Allowed unused args must match /^_/u
return <CommandPrimitive.Item data-slot="command-item" {...props} />;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/dialog/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as React from "react";
import { Dialog as BaseDialog } from "@base-ui-components/react";
import { cn } from "@plane/utils";
import { cn } from "../utils/classname";

// enums

Expand Down
3 changes: 1 addition & 2 deletions packages/propel/src/menu/menu.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from "react";
import { Menu as BaseMenu } from "@base-ui-components/react/menu";
import { ChevronDown, ChevronRight, MoreHorizontal } from "lucide-react";
// plane imports
import { cn } from "@plane/utils";
import { cn } from "../utils/classname";
import { TMenuProps, TSubMenuProps, TMenuItemProps } from "./types";

// Context for main menu to communicate with submenus
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/switch/root.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import { Switch as BaseSwitch } from "@base-ui-components/react/switch";
import { cn } from "@plane/utils";
import { cn } from "../utils/classname";

interface IToggleSwitchProps {
value: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/table/core.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";

import { cn } from "@plane/utils";
import { cn } from "../utils/classname";

const Table = React.forwardRef<React.ComponentRef<"table">, React.ComponentPropsWithoutRef<"table">>(
({ className, ...props }, ref) => (
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/tabs/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FC } from "react";
import { Tabs as BaseTabs } from "@base-ui-components/react/tabs";
import { LucideProps } from "lucide-react";
// helpers
import { cn } from "@plane/utils";
import { cn } from "../utils/classname";

export type TabListItem = {
key: string;
Expand Down
4 changes: 1 addition & 3 deletions packages/propel/src/tabs/tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React, { FC, useEffect, useState } from "react";
import { Tabs as BaseTabs } from "@base-ui-components/react/tabs";
// helpers
import { useLocalStorage } from "@plane/hooks";
import { cn } from "@plane/utils";
// types
import { cn } from "../utils/classname";
import { TabList, TabListItem } from "./list";

export type TabContent = {
Expand Down
2 changes: 1 addition & 1 deletion packages/propel/src/tooltip/root.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import { Tooltip as BaseTooltip } from "@base-ui-components/react/tooltip";
import { cn } from "@plane/utils";
import { cn } from "../utils/classname";
import { TPlacement, TSide, TAlign, convertPlacementToSideAndAlign } from "../utils/placement";

type ITooltipProps = {
Expand Down
5 changes: 3 additions & 2 deletions packages/propel/src/utils/classname.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { clsx, type ClassValue } from "clsx";
import clsx, { type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";

export const cn = (...inputs: ClassValue[]) => clsx(inputs);
export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));
11 changes: 8 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading