同步工作区剩余变更,主要包括: - 营销页面组件与布局持续优化(about/news/services/solutions/team 等) - 详情页四层叙事组件、布局组件、UI 组件调整 - CMS 数据模型、API 路由、权限、工作流、站内通知、媒体管理扩展 - 新增/补充单元测试与 E2E 测试(cms-workflow.spec.ts 等) - ESLint 9 迁移、jest/tsconfig 配置更新、依赖调整 - 新增 ADR、CMS 评估文档、Release Review / Acceptance 报告 - 移除水墨装饰组件与大体积未使用字体文件
202 lines
4.8 KiB
TypeScript
202 lines
4.8 KiB
TypeScript
// === shadcn/ui 标准组件 ===
|
|
export { Button, buttonVariants } from './button';
|
|
export type { ButtonProps } from './button';
|
|
|
|
export {
|
|
Card,
|
|
CardHeader,
|
|
CardFooter,
|
|
CardTitle,
|
|
CardAction,
|
|
CardDescription,
|
|
CardContent,
|
|
} from './card';
|
|
|
|
export { Badge, badgeVariants } from './badge';
|
|
|
|
export { Input } from './input';
|
|
|
|
export { Textarea } from './textarea';
|
|
|
|
export { Label, labelVariants } from './label';
|
|
|
|
export { LabeledInput } from './labeled-input';
|
|
export type { LabeledInputProps } from './labeled-input';
|
|
|
|
export { LabeledTextarea } from './labeled-textarea';
|
|
export type { LabeledTextareaProps } from './labeled-textarea';
|
|
|
|
export { Skeleton, SkeletonText, SkeletonCard, SkeletonList, SkeletonHero, SkeletonForm } from './skeleton';
|
|
|
|
// === 表单类 ===
|
|
export { Checkbox } from './checkbox';
|
|
export { Switch } from './switch';
|
|
export { RadioGroup, RadioGroupItem } from './radio-group';
|
|
export { Slider } from './slider';
|
|
export {
|
|
Select,
|
|
SelectGroup,
|
|
SelectValue,
|
|
SelectTrigger,
|
|
SelectContent,
|
|
SelectLabel,
|
|
SelectItem,
|
|
SelectSeparator,
|
|
SelectScrollUpButton,
|
|
SelectScrollDownButton,
|
|
} from './select';
|
|
export {
|
|
Form,
|
|
FormField,
|
|
FormItem,
|
|
FormLabel,
|
|
FormControl,
|
|
FormDescription,
|
|
FormMessage,
|
|
useFormField,
|
|
useFormWithZod,
|
|
} from './form';
|
|
|
|
// === 反馈类 ===
|
|
export { Alert, AlertTitle, AlertDescription, alertVariants } from './alert';
|
|
export {
|
|
AlertDialog,
|
|
AlertDialogPortal,
|
|
AlertDialogOverlay,
|
|
AlertDialogTrigger,
|
|
AlertDialogContent,
|
|
AlertDialogHeader,
|
|
AlertDialogFooter,
|
|
AlertDialogTitle,
|
|
AlertDialogDescription,
|
|
AlertDialogAction,
|
|
AlertDialogCancel,
|
|
} from './alert-dialog';
|
|
export {
|
|
Dialog,
|
|
DialogPortal,
|
|
DialogOverlay,
|
|
DialogTrigger,
|
|
DialogClose,
|
|
DialogContent,
|
|
DialogHeader,
|
|
DialogFooter,
|
|
DialogTitle,
|
|
DialogDescription,
|
|
} from './dialog';
|
|
export { Progress } from './progress';
|
|
|
|
// === 导航类 ===
|
|
export {
|
|
DropdownMenu,
|
|
DropdownMenuTrigger,
|
|
DropdownMenuContent,
|
|
DropdownMenuItem,
|
|
DropdownMenuCheckboxItem,
|
|
DropdownMenuRadioItem,
|
|
DropdownMenuLabel,
|
|
DropdownMenuSeparator,
|
|
DropdownMenuShortcut,
|
|
DropdownMenuGroup,
|
|
DropdownMenuPortal,
|
|
DropdownMenuSub,
|
|
DropdownMenuSubContent,
|
|
DropdownMenuSubTrigger,
|
|
DropdownMenuRadioGroup,
|
|
} from './dropdown-menu';
|
|
export { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs';
|
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from './accordion';
|
|
export {
|
|
Pagination,
|
|
PaginationContent,
|
|
PaginationLink,
|
|
PaginationItem,
|
|
PaginationPrevious,
|
|
PaginationNext,
|
|
PaginationEllipsis,
|
|
} from './pagination';
|
|
export {
|
|
Breadcrumb,
|
|
BreadcrumbList,
|
|
BreadcrumbItem,
|
|
BreadcrumbLink,
|
|
BreadcrumbPage,
|
|
BreadcrumbSeparator,
|
|
BreadcrumbEllipsis,
|
|
} from './breadcrumb';
|
|
|
|
// === 数据类 ===
|
|
export {
|
|
Table,
|
|
TableHeader,
|
|
TableBody,
|
|
TableFooter,
|
|
TableHead,
|
|
TableRow,
|
|
TableCell,
|
|
TableCaption,
|
|
} from './table';
|
|
export { Avatar, AvatarImage, AvatarFallback } from './avatar';
|
|
export { Separator } from './separator';
|
|
export { ScrollArea, ScrollBar } from './scroll-area';
|
|
|
|
// === 浮层类 ===
|
|
export {
|
|
Tooltip,
|
|
TooltipTrigger,
|
|
TooltipContent,
|
|
TooltipProvider,
|
|
LegacyTooltip,
|
|
} from './tooltip';
|
|
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from './popover';
|
|
export { HoverCard, HoverCardTrigger, HoverCardContent } from './hover-card';
|
|
export {
|
|
ContextMenu,
|
|
ContextMenuTrigger,
|
|
ContextMenuContent,
|
|
ContextMenuItem,
|
|
ContextMenuCheckboxItem,
|
|
ContextMenuRadioItem,
|
|
ContextMenuLabel,
|
|
ContextMenuSeparator,
|
|
ContextMenuShortcut,
|
|
ContextMenuGroup,
|
|
ContextMenuPortal,
|
|
ContextMenuSub,
|
|
ContextMenuSubContent,
|
|
ContextMenuSubTrigger,
|
|
ContextMenuRadioGroup,
|
|
} from './context-menu';
|
|
|
|
// === Toast (Sonner) ===
|
|
export { Toaster, toast } from './sonner';
|
|
export { Toast } from './toast';
|
|
|
|
// === 业务自定义组件(保留) ===
|
|
export { ScrollReveal, StaggerReveal } from './scroll-reveal';
|
|
export { ScrollProgress } from './scroll-progress';
|
|
export { BackToTop } from './back-to-top';
|
|
export { StaticLink } from './static-link';
|
|
export { Spinner, LoadingState, PageLoader, useLoadingState } from './loading-state';
|
|
export { ErrorBoundary } from './error-boundary';
|
|
export { PageTransition, StaggerChildren } from './page-transition';
|
|
export {
|
|
EASE_OUT,
|
|
GrainOverlay,
|
|
SectionLabel,
|
|
} from './page-decoration';
|
|
export {
|
|
GeometricDecoration,
|
|
DataBar,
|
|
GradientDivider,
|
|
BrandStamp,
|
|
} from './brand-visuals';
|
|
export { ChallengeCard } from './challenge-card';
|
|
export { ProductCard as UiProductCard } from './product-card';
|
|
export { DetailSwipeNav } from './detail-swipe-nav';
|
|
export { FlipClock } from './flip-clock';
|
|
export { AnimatedCounter } from './animated-counter';
|
|
export { MetricCard } from './metric-card';
|
|
export { StatsShowcase } from './stats-showcase';
|
|
export { MilestoneTimeline } from './milestone-timeline';
|