-
-
+
-
-
- Reset camera view
-
-
+
diff --git a/src/components/ui/VariablesTable.tsx b/src/components/ui/VariablesTable.tsx
deleted file mode 100644
index e873394bb..000000000
--- a/src/components/ui/VariablesTable.tsx
+++ /dev/null
@@ -1,118 +0,0 @@
-import React, {useState, useMemo} from "react";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
-import { ScrollArea } from "@/components/ui/scroll-area";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button-enhanced";
-import { useGlobalStore } from "@/GlobalStates/GlobalStore";
-import { useShallow } from "zustand/shallow";
-import {
- Dialog,
- DialogContent,
- DialogHeader,
- DialogTitle,
- DialogTrigger,
-} from "@/components/ui/dialog";
-
-export default function VariablesTable() {
- const { variables, zMeta, setVariable } = useGlobalStore(
- useShallow((state) => ({
- variables: state.variables,
- zMeta: state.zMeta,
- setVariable: state.setVariable,
- }))
- );
-
- const [query, setQuery] = useState("");
- const [selectedMeta, setSelectedMeta] = useState
(null);
- const [showMetaDialog, setShowMetaDialog] = useState(false);
-
- const filtered = useMemo(() => {
- const q = query.toLowerCase().trim();
- if (!q) return variables;
- return variables.filter((variable) =>
- variable.toLowerCase().includes(q)
- );
- }, [query, variables]);
-
- const handleViewDetails = (variable: string) => {
- const meta = zMeta?.find((e: any) => e.name === variable);
- setSelectedMeta(meta);
- setShowMetaDialog(true);
- };
-
- return (
-
-
-
- {/* Variables */}
-
- setQuery(e.target.value)}
- className="flex-1"
- />
-
-
-
-
-
-
- {/*
-
- Variable Name
-
- */}
-
- {filtered.length > 0 ? (
- filtered.map((variable, idx) => (
-
-
-
-
-
- ))
- ) : (
-
-
- {query ? "No variables found matching your search." : "No variables available."}
-
-
- )}
-
-
-
-
-
-
- );
-}
diff --git a/src/components/ui/Widgets/QuickTip.tsx b/src/components/ui/Widgets/QuickTip.tsx
new file mode 100644
index 000000000..ca4c4e190
--- /dev/null
+++ b/src/components/ui/Widgets/QuickTip.tsx
@@ -0,0 +1,35 @@
+import React from 'react'
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from "@/components/ui/tooltip";
+
+type Side = "right" | "top" | "bottom" | "left" | undefined
+
+export const QuickTip = ({
+ children,
+ message,
+ side = 'right',
+ delay = 500,
+ ...props
+}: {
+ children: React.ReactNode;
+ message: string;
+ side?: Side;
+ delay?: number;
+} & React.ComponentPropsWithoutRef) => {
+ return (
+
+
+ {children}
+
+
+ {message}
+
+
+ )
+}
+
+
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
index 4d38506ce..77d89955a 100644
--- a/src/components/ui/button.tsx
+++ b/src/components/ui/button.tsx
@@ -5,7 +5,7 @@ import { Slot } from "radix-ui"
import { cn } from "@/lib/utils"
const buttonVariants = cva(
- "inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "inline-flex shrink-0 items-center justify-center cursor-pointer gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {
diff --git a/src/components/ui/index.ts b/src/components/ui/index.ts
index c1abf2983..560883554 100644
--- a/src/components/ui/index.ts
+++ b/src/components/ui/index.ts
@@ -138,4 +138,5 @@ export {
TableCaption,
} from "./table";
-export { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip";
\ No newline at end of file
+export { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip";
+export {QuickTip} from "./Widgets/QuickTip"
\ No newline at end of file