feat[utils.ts]:Add hard-coded icons into lucide utils icon object

This commit is contained in:
Igor Carvalho 2023-07-14 17:05:27 -03:00
commit c332050788
3 changed files with 93 additions and 0 deletions

View file

@ -14,6 +14,7 @@ export function IconFromSvg({ name }: IconProps): JSX.Element {
export default function IconComponent({
method,
name,
className,
}: IconComponentProps): JSX.Element {
switch (method) {
case "SVG":

View file

@ -169,4 +169,5 @@ export type IconProps = {
export type IconComponentProps = {
method: "SVG" | "LUCIDE";
name: string;
className?: string;
};

View file

@ -1,24 +1,68 @@
import clsx, { ClassValue } from "clsx";
import _ from "lodash";
import {
Bell,
Check,
CheckCircle2,
ChevronDown,
ChevronLeft,
ChevronRight,
ChevronsUpDown,
Circle,
Clipboard,
Code2,
Compass,
Copy,
Cpu,
Download,
DownloadCloud,
Eraser,
ExternalLink,
File,
FileDown,
FileSearch,
FileSearch2,
FileText,
FileUp,
Fingerprint,
Gift,
GitFork,
GithubIcon,
Hammer,
HelpCircle,
Home,
Info,
Laptop2,
Layers,
Lightbulb,
Link,
Lock,
LucideSend,
Menu,
MessageCircle,
MessageSquare,
MoonIcon,
Paperclip,
Plus,
Redo,
Rocket,
Save,
Scissors,
Search,
Settings2,
Sparkles,
SunIcon,
TerminalSquare,
Trash2,
Undo,
Upload,
Users2,
Variable,
Wand2,
Wrench,
X,
XCircle,
Zap,
} from "lucide-react";
import { Connection, Edge, Node, ReactFlowInstance } from "reactflow";
import { twMerge } from "tailwind-merge";
@ -265,7 +309,54 @@ export const nodeIconsLucide = {
output_parsers: Compass,
retrievers: FileSearch,
unknown: HelpCircle,
Trash2,
X,
XCircle,
Info,
CheckCircle2,
Zap,
MessageSquare,
ExternalLink,
ChevronsUpDown,
Check,
Home,
Users2,
SunIcon,
MoonIcon,
Bell,
ChevronLeft,
ChevronDown,
Plus,
Redo,
Settings2,
Undo,
FileSearch2,
ChevronRight,
Circle,
Clipboard,
Code2,
Variable,
Download,
Eraser,
Lock,
LucideSend,
Sparkles,
DownloadCloud,
File,
FileText,
GitFork,
GithubIcon,
FileDown,
FileUp,
Menu,
Save,
Search,
Copy,
Upload,
};
/* Trash2 */
export const gradients = [
"bg-gradient-to-br from-gray-800 via-rose-700 to-violet-900",