feat: add Hugging Face search integration for datasets and models, extend infinite scroll support, and improve UI components with animations and tooltips

This commit is contained in:
shine1i 2026-02-02 12:14:18 +01:00
parent e9857dab0f
commit e705230499
18 changed files with 789 additions and 336 deletions

View file

@ -17,17 +17,11 @@ import { Switch } from "@/components/ui/switch";
import { ArrowRight01Icon, Key01Icon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { AnimatePresence, motion } from "motion/react";
import { collapseAnim } from "../anim";
import { EXPORT_METHODS, type ExportMethod } from "../constants";
type Destination = "local" | "hub";
const anim = {
initial: { height: 0, opacity: 0 },
animate: { height: "auto" as const, opacity: 1 },
exit: { height: 0, opacity: 0 },
transition: { duration: 0.3, ease: [0.25, 0.1, 0.25, 1] as const },
};
interface ExportDialogProps {
open: boolean;
onOpenChange: (open: boolean) => void;
@ -96,7 +90,7 @@ export function ExportDialog({
<AnimatePresence>
{destination === "hub" && (
<motion.div {...anim} className="overflow-hidden">
<motion.div {...collapseAnim} className="overflow-hidden">
<div className="flex flex-col gap-4 px-0.5">
<div className="grid grid-cols-2 gap-3">
<div className="flex flex-col gap-1.5">