[WEB-4840] chore: icon migration from @plane/ui to @plane/propel/icons (#7721)
* chore: move icons from ui package to propel package * chore: package and tsdown config updated * chore: migrate all icon imports from @plane/ui to @plane/propel/icons * chore: remove icon components from @plane/ui package (migrated to @plane/propel/icons) * chore: code refactoring * chore: migrate remaining icon components from @Plane/ui to @Plane/propel/icons * fix: lint error * chore: code refactor
This commit is contained in:
parent
36c735bede
commit
7d7e37439d
220 changed files with 196 additions and 146 deletions
|
|
@ -5,6 +5,7 @@ import { observer } from "mobx-react";
|
|||
import Image from "next/image";
|
||||
import { Tab } from "@headlessui/react";
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { StateGroupIcon } from "@plane/propel/icons";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueFilters,
|
||||
|
|
@ -13,7 +14,7 @@ import {
|
|||
TModulePlotType,
|
||||
TStateGroups,
|
||||
} from "@plane/types";
|
||||
import { Avatar, StateGroupIcon } from "@plane/ui";
|
||||
import { Avatar } from "@plane/ui";
|
||||
import { cn, getFileURL } from "@plane/utils";
|
||||
// components
|
||||
import { SingleProgressStats } from "@/components/core/sidebar/single-progress-stats";
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ import {
|
|||
} from "@plane/constants";
|
||||
// plane types
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { LayersIcon, ModuleStatusIcon } from "@plane/propel/icons";
|
||||
import { ILinkDetails, IModule, ModuleLink } from "@plane/types";
|
||||
// plane ui
|
||||
import { Loader, LayersIcon, CustomSelect, ModuleStatusIcon, TOAST_TYPE, setToast, TextArea } from "@plane/ui";
|
||||
import { Loader, CustomSelect, TOAST_TYPE, setToast, TextArea } from "@plane/ui";
|
||||
// components
|
||||
// helpers
|
||||
import { getDate, renderFormattedPayloadDate } from "@plane/utils";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { X } from "lucide-react";
|
|||
// ui
|
||||
import { MODULE_STATUS } from "@plane/constants";
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { ModuleStatusIcon } from "@plane/ui";
|
||||
import { ModuleStatusIcon } from "@plane/propel/icons";
|
||||
// constants
|
||||
|
||||
type Props = {
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import { useState } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { Search, X } from "lucide-react";
|
||||
// plane imports
|
||||
import { TModuleStatus } from "@plane/propel/icons";
|
||||
import { TModuleDisplayFilters, TModuleFilters } from "@plane/types";
|
||||
import { TModuleStatus } from "@plane/ui";
|
||||
// components
|
||||
import { FilterOption } from "@/components/issues/issue-layouts/filters";
|
||||
import { FilterLead, FilterMembers, FilterStartDate, FilterStatus, FilterTargetDate } from "@/components/modules";
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import React, { useState } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { MODULE_STATUS } from "@plane/constants";
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { ModuleStatusIcon } from "@plane/propel/icons";
|
||||
import { TModuleStatus } from "@plane/types";
|
||||
// components
|
||||
import { ModuleStatusIcon } from "@plane/ui";
|
||||
import { FilterHeader, FilterOption } from "@/components/issues/issue-layouts/filters";
|
||||
|
||||
type Props = {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import Link from "next/link";
|
|||
import { useParams } from "next/navigation";
|
||||
// ui
|
||||
import { MODULE_STATUS } from "@plane/constants";
|
||||
import { ModuleStatusIcon } from "@plane/propel/icons";
|
||||
import { Tooltip } from "@plane/propel/tooltip";
|
||||
import { ModuleStatusIcon } from "@plane/ui";
|
||||
// components
|
||||
import { SIDEBAR_WIDTH } from "@/components/gantt-chart/constants";
|
||||
import { getBlockViewDetails } from "@/components/issues/issue-layouts/utils";
|
||||
|
|
|
|||
|
|
@ -16,17 +16,10 @@ import {
|
|||
MODULE_TRACKER_ELEMENTS,
|
||||
} from "@plane/constants";
|
||||
import { useLocalStorage } from "@plane/hooks";
|
||||
import { LayersIcon } from "@plane/propel/icons";
|
||||
import { Tooltip } from "@plane/propel/tooltip";
|
||||
import { IModule } from "@plane/types";
|
||||
import {
|
||||
Card,
|
||||
FavoriteStar,
|
||||
LayersIcon,
|
||||
LinearProgressIndicator,
|
||||
TOAST_TYPE,
|
||||
setPromiseToast,
|
||||
setToast,
|
||||
} from "@plane/ui";
|
||||
import { Card, FavoriteStar, LinearProgressIndicator, TOAST_TYPE, setPromiseToast, setToast } from "@plane/ui";
|
||||
import { getDate, renderFormattedPayloadDate, generateQueryParams } from "@plane/utils";
|
||||
// components
|
||||
import { DateRangeDropdown } from "@/components/dropdowns/date-range";
|
||||
|
|
|
|||
|
|
@ -2,8 +2,9 @@ import React, { FC } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { MODULE_STATUS } from "@plane/constants";
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { ModuleStatusIcon, TModuleStatus } from "@plane/propel/icons";
|
||||
import { IModule } from "@plane/types";
|
||||
import { CustomSelect, TModuleStatus, ModuleStatusIcon } from "@plane/ui";
|
||||
import { CustomSelect } from "@plane/ui";
|
||||
|
||||
type Props = {
|
||||
isDisabled: boolean;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ import {
|
|||
} from "@plane/constants";
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
// ui
|
||||
import { ArchiveIcon, ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
import { ArchiveIcon } from "@plane/propel/icons";
|
||||
import { ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
import { copyUrlToClipboard, cn } from "@plane/utils";
|
||||
// components
|
||||
import { ArchiveModuleModal, CreateUpdateModuleModal, DeleteModuleModal } from "@/components/modules";
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@ import React from "react";
|
|||
import { Controller, FieldError, Control } from "react-hook-form";
|
||||
import { MODULE_STATUS } from "@plane/constants";
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { DoubleCircleIcon, ModuleStatusIcon } from "@plane/propel/icons";
|
||||
import type { IModule } from "@plane/types";
|
||||
// ui
|
||||
import { CustomSelect, DoubleCircleIcon, ModuleStatusIcon } from "@plane/ui";
|
||||
import { CustomSelect } from "@plane/ui";
|
||||
// types
|
||||
// constants
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@ import React from "react";
|
|||
import { Control, Controller, UseFormWatch } from "react-hook-form";
|
||||
import { MODULE_STATUS } from "@plane/constants";
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { DoubleCircleIcon } from "@plane/propel/icons";
|
||||
import { IModule } from "@plane/types";
|
||||
// ui
|
||||
import { CustomSelect, DoubleCircleIcon } from "@plane/ui";
|
||||
import { CustomSelect } from "@plane/ui";
|
||||
// types
|
||||
// common
|
||||
// constants
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue