sa2kit 1.6.5 → 1.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/auth/index.d.mts +11 -1
  2. package/dist/auth/index.d.ts +11 -1
  3. package/dist/auth/index.js +9 -0
  4. package/dist/auth/index.js.map +1 -1
  5. package/dist/auth/index.mjs +9 -1
  6. package/dist/auth/index.mjs.map +1 -1
  7. package/dist/calendar/index.d.mts +497 -611
  8. package/dist/calendar/index.d.ts +497 -611
  9. package/dist/calendar/index.js +4104 -4088
  10. package/dist/calendar/index.js.map +1 -1
  11. package/dist/calendar/index.mjs +4092 -4075
  12. package/dist/calendar/index.mjs.map +1 -1
  13. package/dist/calendar/routes/index.js +21 -21
  14. package/dist/calendar/routes/index.mjs +1 -1
  15. package/dist/calendar/server.d.mts +3 -8
  16. package/dist/calendar/server.d.ts +3 -8
  17. package/dist/calendar/server.js +14 -14
  18. package/dist/calendar/server.js.map +1 -1
  19. package/dist/calendar/server.mjs +3 -3
  20. package/dist/calendar/server.mjs.map +1 -1
  21. package/dist/{chunk-OCIJT5VO.mjs → chunk-6WXOA4BE.mjs} +3 -7
  22. package/dist/chunk-6WXOA4BE.mjs.map +1 -0
  23. package/dist/{chunk-FJU3NA6B.js → chunk-AXP7KROR.js} +3 -7
  24. package/dist/chunk-AXP7KROR.js.map +1 -0
  25. package/dist/{chunk-NRYHBGU6.js → chunk-IEA55H3G.js} +5 -5
  26. package/dist/chunk-IEA55H3G.js.map +1 -0
  27. package/dist/{chunk-KFDEOLDH.mjs → chunk-R2F4BXUU.mjs} +5 -5
  28. package/dist/chunk-R2F4BXUU.mjs.map +1 -0
  29. package/dist/index.d.mts +96 -103
  30. package/dist/index.d.ts +96 -103
  31. package/dist/index.js +433 -466
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +371 -402
  34. package/dist/index.mjs.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunk-FJU3NA6B.js.map +0 -1
  37. package/dist/chunk-KFDEOLDH.mjs.map +0 -1
  38. package/dist/chunk-NRYHBGU6.js.map +0 -1
  39. package/dist/chunk-OCIJT5VO.mjs.map +0 -1
package/dist/index.d.ts CHANGED
@@ -177,7 +177,7 @@ declare const badgeVariants: (props?: ({
177
177
  } & class_variance_authority_types.ClassProp) | undefined) => string;
178
178
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
179
179
  }
180
- declare function Badge$1({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
180
+ declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
181
181
 
182
182
  declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
183
183
 
@@ -300,9 +300,77 @@ declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
300
300
  declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
301
301
  declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
302
302
 
303
+ declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
303
304
  declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
304
305
  declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
305
306
 
307
+ /** 基础网格项接口 */
308
+ interface GridItem {
309
+ id: string;
310
+ [key: string]: any;
311
+ }
312
+ /** 网格列数配置 */
313
+ interface GridColumns {
314
+ /** 小屏幕列数 (640px+) */
315
+ sm?: number;
316
+ /** 中等屏幕列数 (768px+) */
317
+ md?: number;
318
+ /** 大屏幕列数 (1024px+) */
319
+ lg?: number;
320
+ /** 超大屏幕列数 (1280px+) */
321
+ xl?: number;
322
+ }
323
+ /** 网格间距类型 */
324
+ type GridGap = 'sm' | 'md' | 'lg' | 'xl';
325
+ /** 通用网格组件 Props */
326
+ interface GridProps<T extends GridItem> {
327
+ /** 数据项数组 */
328
+ items: T[];
329
+ /** 渲染函数 */
330
+ renderItem: (item: T, index: number) => React__default.ReactNode;
331
+ /** 网格列数配置 */
332
+ columns?: GridColumns;
333
+ /** 间距配置 */
334
+ gap?: GridGap;
335
+ /** 额外的容器类名 */
336
+ className?: string;
337
+ /** 容器样式 */
338
+ style?: React__default.CSSProperties;
339
+ }
340
+ /** 通用网格组件 */
341
+ declare function Grid<T extends GridItem>({ items, renderItem, columns, gap, className, style }: GridProps<T>): React__default.JSX.Element;
342
+
343
+ interface SearchBoxProps {
344
+ searchQuery: string;
345
+ onSearchChange: (query: string) => void;
346
+ placeholder?: string;
347
+ size?: 'small' | 'medium' | 'large';
348
+ }
349
+ declare const SearchBox: React__default.FC<SearchBoxProps>;
350
+
351
+ interface TimelineItem {
352
+ date: string;
353
+ title: string;
354
+ description: string;
355
+ }
356
+ interface TimelineConfig {
357
+ items: TimelineItem[];
358
+ }
359
+ interface TimelineProps {
360
+ items?: TimelineItem[];
361
+ }
362
+ declare const Timeline: React__default.FC<TimelineProps>;
363
+
364
+ interface Ball {
365
+ x: number;
366
+ y: number;
367
+ vx: number;
368
+ vy: number;
369
+ radius: number;
370
+ color: string;
371
+ text?: string;
372
+ isDragging?: boolean;
373
+ }
306
374
  interface CollisionBallsConfig {
307
375
  balls: {
308
376
  id: string;
@@ -318,16 +386,6 @@ interface CollisionBallsProps {
318
386
  }
319
387
  declare const CollisionBalls: React__default.FC<CollisionBallsProps>;
320
388
 
321
- interface TimelineItem {
322
- date: string;
323
- title: string;
324
- description: string;
325
- }
326
- interface TimelineProps {
327
- items?: TimelineItem[];
328
- }
329
- declare const Timeline: React__default.FC<TimelineProps>;
330
-
331
389
  interface SocialLink {
332
390
  type: string;
333
391
  url: string;
@@ -341,10 +399,10 @@ interface ProfileData {
341
399
  contacts?: Record<string, string>;
342
400
  socialLinks?: SocialLink[];
343
401
  customContent?: ReactNode;
344
- badges?: Badge[];
402
+ badges?: ProfileBadge[];
345
403
  stats?: Stat[];
346
404
  }
347
- interface Badge {
405
+ interface ProfileBadge {
348
406
  label: string;
349
407
  type?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
350
408
  icon?: ReactNode;
@@ -358,47 +416,19 @@ interface Stat {
358
416
  interface ProfileButtonProps {
359
417
  data?: ProfileData;
360
418
  buttonText?: string;
361
- buttonClassName?: string;
419
+ variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
420
+ size?: 'default' | 'sm' | 'lg' | 'icon';
421
+ className?: string;
362
422
  modalTheme?: 'light' | 'dark' | 'blue';
363
423
  }
364
424
  /**
365
425
  * 个人信息按钮组件,点击后显示个人信息弹窗
366
426
  */
367
427
  declare const ProfileButton: React__default.FC<ProfileButtonProps>;
368
- /**
369
- * 示例用法:
370
- *
371
- * import ProfileButton from '@/utils/popWindow/selfInfo';
372
- *
373
- * // 使用默认数据
374
- * <ProfileButton />
375
- *
376
- * // 使用自定义数据
377
- * <ProfileButton
378
- * data={customData}
379
- * buttonText="查看我的资料"
380
- * modalTheme="blue"
381
- * />
382
- *
383
- * // 自定义按钮样式
384
- * <ProfileButton buttonClassName="myCustomButton" />
385
- */
386
428
 
387
- interface ModalProps {
429
+ interface ProfileModalProps {
388
430
  isOpen: boolean;
389
431
  onClose: () => void;
390
- title?: string;
391
- width?: number | string;
392
- height?: number | string;
393
- maskClosable?: boolean;
394
- showCloseButton?: boolean;
395
- className?: string;
396
- contentClassName?: string;
397
- zIndex?: number;
398
- children: React__default.ReactNode;
399
- }
400
-
401
- interface ProfileModalProps extends Omit<ModalProps, 'title' | 'children'> {
402
432
  data: ProfileData;
403
433
  showAvatar?: boolean;
404
434
  showContacts?: boolean;
@@ -409,6 +439,7 @@ interface ProfileModalProps extends Omit<ModalProps, 'title' | 'children'> {
409
439
  onSocialLinkClick?: (url: string, type: string) => void;
410
440
  onContactClick?: (type: string, value: string) => void;
411
441
  themeName?: 'light' | 'dark' | 'blue';
442
+ className?: string;
412
443
  children?: React__default.ReactNode;
413
444
  }
414
445
  declare const ProfileModal: React__default.FC<ProfileModalProps>;
@@ -425,6 +456,25 @@ interface AutoOpenModalProps {
425
456
  */
426
457
  declare const AutoOpenModal: React__default.FC<AutoOpenModalProps>;
427
458
 
459
+ interface EnhancedAvatarProps {
460
+ src?: string;
461
+ name?: string;
462
+ size?: 'small' | 'medium' | 'large' | number;
463
+ mood?: 'online' | 'offline' | 'away';
464
+ statusText?: string;
465
+ onClick?: () => void;
466
+ className?: string;
467
+ }
468
+ declare const EnhancedAvatar: React__default.FC<EnhancedAvatarProps>;
469
+
470
+ interface AboutProps {
471
+ timelineConfig: TimelineConfig;
472
+ collisionBallsConfig: CollisionBallsConfig;
473
+ }
474
+ declare const About: React__default.FC<AboutProps>;
475
+
476
+ declare const Contact: React__default.FC;
477
+
428
478
  type NavigationDirection = 'horizontal' | 'vertical';
429
479
  type NavigationPosition = 'top' | 'bottom' | 'left' | 'right';
430
480
  interface NavigationItem {
@@ -513,61 +563,4 @@ interface FloatingMenuProps {
513
563
  }
514
564
  declare const FloatingMenu: React__default.FC<FloatingMenuProps>;
515
565
 
516
- /** 基础网格项接口 */
517
- interface GridItem {
518
- id: string;
519
- [key: string]: any;
520
- }
521
- /** 网格列数配置 */
522
- interface GridColumns {
523
- /** 小屏幕列数 (640px+) */
524
- sm?: number;
525
- /** 中等屏幕列数 (768px+) */
526
- md?: number;
527
- /** 大屏幕列数 (1024px+) */
528
- lg?: number;
529
- /** 超大屏幕列数 (1280px+) */
530
- xl?: number;
531
- }
532
- /** 网格间距类型 */
533
- type GridGap = 'sm' | 'md' | 'lg' | 'xl';
534
- /** 构建网格列数类名 */
535
- declare function buildGridColsClasses(columns: GridColumns): string;
536
- /** 获取间距类名 */
537
- declare function getGapClassName(gap: GridGap): string;
538
- /** 通用网格组件 Props */
539
- interface GridProps<T extends GridItem> {
540
- /** 数据项数组 */
541
- items: T[];
542
- /** 渲染函数 */
543
- renderItem: (item: T, index: number) => React__default.ReactNode;
544
- /** 网格列数配置 */
545
- columns?: GridColumns;
546
- /** 间距配置 */
547
- gap?: GridGap;
548
- /** 额外的容器类名 */
549
- className?: string;
550
- /** 容器样式 */
551
- style?: React__default.CSSProperties;
552
- }
553
- /** 通用网格组件 */
554
- declare function Grid<T extends GridItem>({ items, renderItem, columns, gap, className, style }: GridProps<T>): React__default.JSX.Element;
555
-
556
- interface SearchBoxProps {
557
- searchQuery: string;
558
- onSearchChange: (query: string) => void;
559
- placeholder?: string;
560
- size?: 'small' | 'medium' | 'large';
561
- }
562
- declare function SearchBox({ searchQuery, onSearchChange, placeholder, size }: SearchBoxProps): React__default.JSX.Element;
563
-
564
- interface AvatarProps {
565
- src?: string;
566
- size?: 'small' | 'medium' | 'large';
567
- mood?: 'online' | 'offline' | 'away';
568
- statusText?: string;
569
- onClick?: () => void;
570
- }
571
- declare const Avatar: React__default.FC<AvatarProps>;
572
-
573
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, Avatar, AvatarFallback, AvatarImage, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge$1 as Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CollisionBalls, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FloatingMenu, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Input, Label, Navigation, NavigationItemComponent as NavigationItem, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProfileButton, ProfileModal, Progress, ScrollArea, ScrollBar, SearchBox, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SmartAssistant, Tabs, TabsContent, TabsList, TabsTrigger, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buildGridColsClasses, buttonVariants, getGapClassName, useBackgroundRemoval, useOCR, useSentimentAnalysis, useTextGeneration };
566
+ export { About, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, type AutoOpenModalProps, Avatar, AvatarFallback, AvatarImage, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, type BadgeProps, type Ball, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CollisionBalls, type CollisionBallsConfig, Contact, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EnhancedAvatar, type EnhancedAvatarProps, FloatingMenu, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Input, Label, Navigation, type NavigationConfig, type NavigationDirection, NavigationItemComponent as NavigationItem, type NavigationPosition, type NavigationProps, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, Progress, ScrollArea, ScrollBar, SearchBox, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SmartAssistant, type SocialLink, type Stat, Tabs, TabsContent, TabsList, TabsTrigger, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, type TimelineConfig, type TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, useBackgroundRemoval, useOCR, useSentimentAnalysis, useTextGeneration };