sa2kit 1.6.6 → 1.6.7

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.
package/dist/index.d.mts CHANGED
@@ -386,6 +386,64 @@ interface CollisionBallsProps {
386
386
  }
387
387
  declare const CollisionBalls: React__default.FC<CollisionBallsProps>;
388
388
 
389
+ interface OrderableItem {
390
+ id: number;
391
+ [key: string]: any;
392
+ }
393
+ interface OrderManagerOperations<T extends OrderableItem> {
394
+ loadItems: () => Promise<T[]>;
395
+ moveItemUp: (id: number) => Promise<void>;
396
+ moveItemDown: (id: number) => Promise<void>;
397
+ updateItemOrder: (orders: {
398
+ id: number;
399
+ order: number;
400
+ }[]) => Promise<void>;
401
+ }
402
+ interface GenericOrderManagerProps<T extends OrderableItem> {
403
+ operations: OrderManagerOperations<T>;
404
+ renderItem: (item: T, index: number, isFirst: boolean, isLast: boolean) => React__default.ReactNode;
405
+ className?: string;
406
+ title?: string;
407
+ description?: string;
408
+ onOrderChanged?: () => void;
409
+ emptyMessage?: string;
410
+ loadingMessage?: string;
411
+ }
412
+ declare function GenericOrderManager<T extends OrderableItem>({ operations, renderItem, className, title, description, onOrderChanged, emptyMessage, loadingMessage }: GenericOrderManagerProps<T>): React__default.JSX.Element;
413
+
414
+ interface BackButtonProps {
415
+ href?: string;
416
+ className?: string;
417
+ }
418
+ declare const BackButton: React__default.FC<BackButtonProps>;
419
+
420
+ interface FilterOption<T> {
421
+ value: T;
422
+ label: string;
423
+ icon: string;
424
+ activeColor: {
425
+ bg: string;
426
+ shadow: string;
427
+ };
428
+ count?: number;
429
+ showCount?: boolean;
430
+ }
431
+ interface FilterButtonGroupProps<T> {
432
+ label: string;
433
+ value: T;
434
+ options: FilterOption<T>[];
435
+ onChange: (value: T) => void;
436
+ className?: string;
437
+ }
438
+ declare function FilterButtonGroup<T extends string>({ label, value, options, onChange, className }: FilterButtonGroupProps<T>): React__default.JSX.Element;
439
+
440
+ interface SearchResultHintProps {
441
+ searchQuery: string;
442
+ resultCount: number;
443
+ className?: string;
444
+ }
445
+ declare function SearchResultHint({ searchQuery, resultCount, className }: SearchResultHintProps): React__default.JSX.Element | null;
446
+
389
447
  interface SocialLink {
390
448
  type: string;
391
449
  url: string;
@@ -475,6 +533,51 @@ declare const About: React__default.FC<AboutProps>;
475
533
 
476
534
  declare const Contact: React__default.FC;
477
535
 
536
+ interface HomeConfig {
537
+ title: string;
538
+ subtitle: string;
539
+ buttons: Array<{
540
+ text: string;
541
+ link: string;
542
+ }>;
543
+ imageSrc: string;
544
+ }
545
+ interface HomeProps {
546
+ homeConfig: HomeConfig;
547
+ className?: string;
548
+ }
549
+ declare const Home: React__default.FC<HomeProps>;
550
+
551
+ interface ExperimentCardProps {
552
+ href: string;
553
+ title: string;
554
+ description: string;
555
+ tags: string[];
556
+ category: 'utility' | 'leisure';
557
+ isCompleted?: boolean;
558
+ updatedAt?: string;
559
+ createdAt?: string;
560
+ className?: string;
561
+ }
562
+ declare const ExperimentCard: React__default.FC<ExperimentCardProps>;
563
+
564
+ interface Project {
565
+ id: string;
566
+ title: string;
567
+ description: string;
568
+ image: string;
569
+ link?: string;
570
+ tags: string[];
571
+ }
572
+ interface ProjectsConfig {
573
+ projects: Project[];
574
+ }
575
+ interface ProjectCarouselProps {
576
+ projects: Project[];
577
+ className?: string;
578
+ }
579
+ declare const ProjectCarousel: React__default.FC<ProjectCarouselProps>;
580
+
478
581
  type NavigationDirection = 'horizontal' | 'vertical';
479
582
  type NavigationPosition = 'top' | 'bottom' | 'left' | 'right';
480
583
  interface NavigationItem {
@@ -563,4 +666,6 @@ interface FloatingMenuProps {
563
666
  }
564
667
  declare const FloatingMenu: React__default.FC<FloatingMenuProps>;
565
668
 
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 };
669
+ declare const FloatingMenuExample: React__default.FC;
670
+
671
+ export { About, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, type AutoOpenModalProps, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, 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, ExperimentCard, type ExperimentCardProps, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, FloatingMenu, FloatingMenuExample, GenericOrderManager, type GenericOrderManagerProps, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Home, type HomeConfig, Input, Label, Navigation, type NavigationConfig, type NavigationDirection, NavigationItemComponent as NavigationItem, type NavigationPosition, type NavigationProps, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, Progress, type Project, ProjectCarousel, type ProjectsConfig, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, 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 };
package/dist/index.d.ts CHANGED
@@ -386,6 +386,64 @@ interface CollisionBallsProps {
386
386
  }
387
387
  declare const CollisionBalls: React__default.FC<CollisionBallsProps>;
388
388
 
389
+ interface OrderableItem {
390
+ id: number;
391
+ [key: string]: any;
392
+ }
393
+ interface OrderManagerOperations<T extends OrderableItem> {
394
+ loadItems: () => Promise<T[]>;
395
+ moveItemUp: (id: number) => Promise<void>;
396
+ moveItemDown: (id: number) => Promise<void>;
397
+ updateItemOrder: (orders: {
398
+ id: number;
399
+ order: number;
400
+ }[]) => Promise<void>;
401
+ }
402
+ interface GenericOrderManagerProps<T extends OrderableItem> {
403
+ operations: OrderManagerOperations<T>;
404
+ renderItem: (item: T, index: number, isFirst: boolean, isLast: boolean) => React__default.ReactNode;
405
+ className?: string;
406
+ title?: string;
407
+ description?: string;
408
+ onOrderChanged?: () => void;
409
+ emptyMessage?: string;
410
+ loadingMessage?: string;
411
+ }
412
+ declare function GenericOrderManager<T extends OrderableItem>({ operations, renderItem, className, title, description, onOrderChanged, emptyMessage, loadingMessage }: GenericOrderManagerProps<T>): React__default.JSX.Element;
413
+
414
+ interface BackButtonProps {
415
+ href?: string;
416
+ className?: string;
417
+ }
418
+ declare const BackButton: React__default.FC<BackButtonProps>;
419
+
420
+ interface FilterOption<T> {
421
+ value: T;
422
+ label: string;
423
+ icon: string;
424
+ activeColor: {
425
+ bg: string;
426
+ shadow: string;
427
+ };
428
+ count?: number;
429
+ showCount?: boolean;
430
+ }
431
+ interface FilterButtonGroupProps<T> {
432
+ label: string;
433
+ value: T;
434
+ options: FilterOption<T>[];
435
+ onChange: (value: T) => void;
436
+ className?: string;
437
+ }
438
+ declare function FilterButtonGroup<T extends string>({ label, value, options, onChange, className }: FilterButtonGroupProps<T>): React__default.JSX.Element;
439
+
440
+ interface SearchResultHintProps {
441
+ searchQuery: string;
442
+ resultCount: number;
443
+ className?: string;
444
+ }
445
+ declare function SearchResultHint({ searchQuery, resultCount, className }: SearchResultHintProps): React__default.JSX.Element | null;
446
+
389
447
  interface SocialLink {
390
448
  type: string;
391
449
  url: string;
@@ -475,6 +533,51 @@ declare const About: React__default.FC<AboutProps>;
475
533
 
476
534
  declare const Contact: React__default.FC;
477
535
 
536
+ interface HomeConfig {
537
+ title: string;
538
+ subtitle: string;
539
+ buttons: Array<{
540
+ text: string;
541
+ link: string;
542
+ }>;
543
+ imageSrc: string;
544
+ }
545
+ interface HomeProps {
546
+ homeConfig: HomeConfig;
547
+ className?: string;
548
+ }
549
+ declare const Home: React__default.FC<HomeProps>;
550
+
551
+ interface ExperimentCardProps {
552
+ href: string;
553
+ title: string;
554
+ description: string;
555
+ tags: string[];
556
+ category: 'utility' | 'leisure';
557
+ isCompleted?: boolean;
558
+ updatedAt?: string;
559
+ createdAt?: string;
560
+ className?: string;
561
+ }
562
+ declare const ExperimentCard: React__default.FC<ExperimentCardProps>;
563
+
564
+ interface Project {
565
+ id: string;
566
+ title: string;
567
+ description: string;
568
+ image: string;
569
+ link?: string;
570
+ tags: string[];
571
+ }
572
+ interface ProjectsConfig {
573
+ projects: Project[];
574
+ }
575
+ interface ProjectCarouselProps {
576
+ projects: Project[];
577
+ className?: string;
578
+ }
579
+ declare const ProjectCarousel: React__default.FC<ProjectCarouselProps>;
580
+
478
581
  type NavigationDirection = 'horizontal' | 'vertical';
479
582
  type NavigationPosition = 'top' | 'bottom' | 'left' | 'right';
480
583
  interface NavigationItem {
@@ -563,4 +666,6 @@ interface FloatingMenuProps {
563
666
  }
564
667
  declare const FloatingMenu: React__default.FC<FloatingMenuProps>;
565
668
 
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 };
669
+ declare const FloatingMenuExample: React__default.FC;
670
+
671
+ export { About, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, type AutoOpenModalProps, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, 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, ExperimentCard, type ExperimentCardProps, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, FloatingMenu, FloatingMenuExample, GenericOrderManager, type GenericOrderManagerProps, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Home, type HomeConfig, Input, Label, Navigation, type NavigationConfig, type NavigationDirection, NavigationItemComponent as NavigationItem, type NavigationPosition, type NavigationProps, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, Progress, type Project, ProjectCarousel, type ProjectsConfig, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, 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 };