feat[utils.ts]:Add hard-coded icons into lucide utils icon object
This commit is contained in:
parent
18820facbb
commit
c332050788
3 changed files with 93 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ export function IconFromSvg({ name }: IconProps): JSX.Element {
|
||||||
export default function IconComponent({
|
export default function IconComponent({
|
||||||
method,
|
method,
|
||||||
name,
|
name,
|
||||||
|
className,
|
||||||
}: IconComponentProps): JSX.Element {
|
}: IconComponentProps): JSX.Element {
|
||||||
switch (method) {
|
switch (method) {
|
||||||
case "SVG":
|
case "SVG":
|
||||||
|
|
|
||||||
|
|
@ -169,4 +169,5 @@ export type IconProps = {
|
||||||
export type IconComponentProps = {
|
export type IconComponentProps = {
|
||||||
method: "SVG" | "LUCIDE";
|
method: "SVG" | "LUCIDE";
|
||||||
name: string;
|
name: string;
|
||||||
|
className?: string;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,68 @@
|
||||||
import clsx, { ClassValue } from "clsx";
|
import clsx, { ClassValue } from "clsx";
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import {
|
import {
|
||||||
|
Bell,
|
||||||
|
Check,
|
||||||
|
CheckCircle2,
|
||||||
|
ChevronDown,
|
||||||
|
ChevronLeft,
|
||||||
|
ChevronRight,
|
||||||
|
ChevronsUpDown,
|
||||||
|
Circle,
|
||||||
|
Clipboard,
|
||||||
|
Code2,
|
||||||
Compass,
|
Compass,
|
||||||
|
Copy,
|
||||||
Cpu,
|
Cpu,
|
||||||
|
Download,
|
||||||
|
DownloadCloud,
|
||||||
|
Eraser,
|
||||||
|
ExternalLink,
|
||||||
|
File,
|
||||||
|
FileDown,
|
||||||
FileSearch,
|
FileSearch,
|
||||||
|
FileSearch2,
|
||||||
|
FileText,
|
||||||
|
FileUp,
|
||||||
Fingerprint,
|
Fingerprint,
|
||||||
Gift,
|
Gift,
|
||||||
|
GitFork,
|
||||||
|
GithubIcon,
|
||||||
Hammer,
|
Hammer,
|
||||||
HelpCircle,
|
HelpCircle,
|
||||||
|
Home,
|
||||||
|
Info,
|
||||||
Laptop2,
|
Laptop2,
|
||||||
Layers,
|
Layers,
|
||||||
Lightbulb,
|
Lightbulb,
|
||||||
Link,
|
Link,
|
||||||
|
Lock,
|
||||||
|
LucideSend,
|
||||||
|
Menu,
|
||||||
MessageCircle,
|
MessageCircle,
|
||||||
|
MessageSquare,
|
||||||
|
MoonIcon,
|
||||||
Paperclip,
|
Paperclip,
|
||||||
|
Plus,
|
||||||
|
Redo,
|
||||||
Rocket,
|
Rocket,
|
||||||
|
Save,
|
||||||
Scissors,
|
Scissors,
|
||||||
|
Search,
|
||||||
|
Settings2,
|
||||||
|
Sparkles,
|
||||||
|
SunIcon,
|
||||||
TerminalSquare,
|
TerminalSquare,
|
||||||
|
Trash2,
|
||||||
|
Undo,
|
||||||
|
Upload,
|
||||||
|
Users2,
|
||||||
|
Variable,
|
||||||
Wand2,
|
Wand2,
|
||||||
Wrench,
|
Wrench,
|
||||||
|
X,
|
||||||
|
XCircle,
|
||||||
|
Zap,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { Connection, Edge, Node, ReactFlowInstance } from "reactflow";
|
import { Connection, Edge, Node, ReactFlowInstance } from "reactflow";
|
||||||
import { twMerge } from "tailwind-merge";
|
import { twMerge } from "tailwind-merge";
|
||||||
|
|
@ -265,7 +309,54 @@ export const nodeIconsLucide = {
|
||||||
output_parsers: Compass,
|
output_parsers: Compass,
|
||||||
retrievers: FileSearch,
|
retrievers: FileSearch,
|
||||||
unknown: HelpCircle,
|
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 = [
|
export const gradients = [
|
||||||
"bg-gradient-to-br from-gray-800 via-rose-700 to-violet-900",
|
"bg-gradient-to-br from-gray-800 via-rose-700 to-violet-900",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue