index.ts 1.2 KB

1234567891011121314151617181920212223
  1. // 导出所有UI组件
  2. export { Button, buttonVariants } from './button'
  3. export { AvatarUpload } from './avatar-upload'
  4. export { Card, CardHeader, CardContent, CardFooter } from './card'
  5. export { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './dialog'
  6. export { Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, useFormField } from './form'
  7. export { Image } from './image'
  8. export { Input, inputVariants } from './input'
  9. export { Label, labelVariants } from './label'
  10. export { Navbar, NavbarPresets, createNavbar } from './navbar'
  11. export { PageContainer } from './page-container'
  12. export { TabBar } from './tab-bar'
  13. export { default as YongrenTabBarLayout } from './yongren-tab-bar-layout'
  14. export { UserStatusBar } from './user-status-bar'
  15. // 导出工具函数
  16. export { cn } from './utils/cn'
  17. export { getPlatform, isWeapp, isH5 } from './utils/platform'
  18. // 导出RPC客户端工具
  19. export { createRpcClient, type RpcClientConfig, type RpcClient } from './utils/rpc/rpc-client'
  20. export { ResponsePolyfill, registerGlobalResponsePolyfill } from './utils/rpc/response-polyfill'
  21. export { default as HeadersPolyfill, registerGlobalHeadersPolyfill } from './utils/rpc/headers-polyfill'