@trading-game/design-intelligence-layer 0.13.0 → 0.13.1
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.cjs +75 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -5
- package/dist/index.d.ts +35 -5
- package/dist/index.js +75 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -500,9 +500,32 @@ declare function SheetTitle({ className, ...props }: React$1.ComponentProps<type
|
|
|
500
500
|
declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
501
501
|
|
|
502
502
|
declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
503
|
-
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
504
|
-
declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
505
|
-
|
|
503
|
+
declare function Tooltip({ children, ...props }: React$1.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
504
|
+
declare function TooltipTrigger({ children, ...props }: React$1.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
505
|
+
type TooltipVariant = "default" | "inverse";
|
|
506
|
+
declare function TooltipContent({ className, sideOffset, variant, title, closeLabel, children, ...props }: React$1.ComponentProps<typeof Tooltip$1.Content> & {
|
|
507
|
+
/**
|
|
508
|
+
* Surface variant. `default` is the brand-blue tooltip on light surfaces.
|
|
509
|
+
* `inverse` is a white surface with on-prominent (black) text — use over
|
|
510
|
+
* saturated coloured surfaces (e.g. the boost badge) where a blue tooltip
|
|
511
|
+
* would feel visually heavy. Only applies on desktop; mobile always uses
|
|
512
|
+
* the neutral drawer surface.
|
|
513
|
+
*/
|
|
514
|
+
variant?: TooltipVariant;
|
|
515
|
+
/**
|
|
516
|
+
* Drawer-only: visible heading shown at the top of the mobile drawer.
|
|
517
|
+
* Defaults to the placeholder string `"Title"` — consumers should pass
|
|
518
|
+
* domain-specific text. Desktop tooltips ignore this prop.
|
|
519
|
+
*/
|
|
520
|
+
title?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Drawer-only: text on the dismiss button at the bottom of the mobile
|
|
523
|
+
* drawer (wraps a `DrawerClose`, so tapping it dismisses the drawer).
|
|
524
|
+
* Defaults to the placeholder string `"Label"`. Desktop tooltips ignore
|
|
525
|
+
* this prop.
|
|
526
|
+
*/
|
|
527
|
+
closeLabel?: string;
|
|
528
|
+
}): react_jsx_runtime.JSX.Element;
|
|
506
529
|
|
|
507
530
|
type SidebarContextProps = {
|
|
508
531
|
state: "expanded" | "collapsed";
|
|
@@ -659,10 +682,17 @@ type BoostTicketCardProps = {
|
|
|
659
682
|
boostAmount?: string;
|
|
660
683
|
/** Currency shown in the boost badge (e.g. "USDT"). */
|
|
661
684
|
boostCurrency?: string;
|
|
685
|
+
/**
|
|
686
|
+
* Optional content for the boost info tooltip. When provided, the trailing
|
|
687
|
+
* info icon on the boost badge becomes a focusable button that opens a
|
|
688
|
+
* tooltip with this content on hover/focus. When omitted, the info icon is
|
|
689
|
+
* not rendered.
|
|
690
|
+
*/
|
|
691
|
+
boostInfo?: React$1.ReactNode;
|
|
662
692
|
/** Compact (mobile) layout — reduces horizontal padding from 16px to 8px. */
|
|
663
693
|
compact?: boolean;
|
|
664
694
|
};
|
|
665
|
-
declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
|
|
695
|
+
declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
|
|
666
696
|
/** Alias for the Figma-named variant. */
|
|
667
697
|
declare const TicketCardDesktop: typeof TicketCard;
|
|
668
698
|
|
|
@@ -681,4 +711,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
681
711
|
|
|
682
712
|
declare function useIsMobile(): boolean;
|
|
683
713
|
|
|
684
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BoostTicketCard, type BoostTicketCardProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Link, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationButton, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, type StepperProps, type StepperSize, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TicketCard, TicketCardDesktop, type TicketCardProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, inputVariants, linkVariants, navigationButtonVariants, navigationMenuTriggerStyle, tabsListVariants, toggleVariants, useComboboxAnchor, useDirection, useFormField, useIsMobile, useSidebar };
|
|
714
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BoostTicketCard, type BoostTicketCardProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Link, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationButton, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, type StepperProps, type StepperSize, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TicketCard, TicketCardDesktop, type TicketCardProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TooltipVariant, badgeVariants, buttonVariants, cn, inputVariants, linkVariants, navigationButtonVariants, navigationMenuTriggerStyle, tabsListVariants, toggleVariants, useComboboxAnchor, useDirection, useFormField, useIsMobile, useSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -500,9 +500,32 @@ declare function SheetTitle({ className, ...props }: React$1.ComponentProps<type
|
|
|
500
500
|
declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
501
501
|
|
|
502
502
|
declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
503
|
-
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
504
|
-
declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
505
|
-
|
|
503
|
+
declare function Tooltip({ children, ...props }: React$1.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
504
|
+
declare function TooltipTrigger({ children, ...props }: React$1.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
505
|
+
type TooltipVariant = "default" | "inverse";
|
|
506
|
+
declare function TooltipContent({ className, sideOffset, variant, title, closeLabel, children, ...props }: React$1.ComponentProps<typeof Tooltip$1.Content> & {
|
|
507
|
+
/**
|
|
508
|
+
* Surface variant. `default` is the brand-blue tooltip on light surfaces.
|
|
509
|
+
* `inverse` is a white surface with on-prominent (black) text — use over
|
|
510
|
+
* saturated coloured surfaces (e.g. the boost badge) where a blue tooltip
|
|
511
|
+
* would feel visually heavy. Only applies on desktop; mobile always uses
|
|
512
|
+
* the neutral drawer surface.
|
|
513
|
+
*/
|
|
514
|
+
variant?: TooltipVariant;
|
|
515
|
+
/**
|
|
516
|
+
* Drawer-only: visible heading shown at the top of the mobile drawer.
|
|
517
|
+
* Defaults to the placeholder string `"Title"` — consumers should pass
|
|
518
|
+
* domain-specific text. Desktop tooltips ignore this prop.
|
|
519
|
+
*/
|
|
520
|
+
title?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Drawer-only: text on the dismiss button at the bottom of the mobile
|
|
523
|
+
* drawer (wraps a `DrawerClose`, so tapping it dismisses the drawer).
|
|
524
|
+
* Defaults to the placeholder string `"Label"`. Desktop tooltips ignore
|
|
525
|
+
* this prop.
|
|
526
|
+
*/
|
|
527
|
+
closeLabel?: string;
|
|
528
|
+
}): react_jsx_runtime.JSX.Element;
|
|
506
529
|
|
|
507
530
|
type SidebarContextProps = {
|
|
508
531
|
state: "expanded" | "collapsed";
|
|
@@ -659,10 +682,17 @@ type BoostTicketCardProps = {
|
|
|
659
682
|
boostAmount?: string;
|
|
660
683
|
/** Currency shown in the boost badge (e.g. "USDT"). */
|
|
661
684
|
boostCurrency?: string;
|
|
685
|
+
/**
|
|
686
|
+
* Optional content for the boost info tooltip. When provided, the trailing
|
|
687
|
+
* info icon on the boost badge becomes a focusable button that opens a
|
|
688
|
+
* tooltip with this content on hover/focus. When omitted, the info icon is
|
|
689
|
+
* not rendered.
|
|
690
|
+
*/
|
|
691
|
+
boostInfo?: React$1.ReactNode;
|
|
662
692
|
/** Compact (mobile) layout — reduces horizontal padding from 16px to 8px. */
|
|
663
693
|
compact?: boolean;
|
|
664
694
|
};
|
|
665
|
-
declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
|
|
695
|
+
declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
|
|
666
696
|
/** Alias for the Figma-named variant. */
|
|
667
697
|
declare const TicketCardDesktop: typeof TicketCard;
|
|
668
698
|
|
|
@@ -681,4 +711,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
681
711
|
|
|
682
712
|
declare function useIsMobile(): boolean;
|
|
683
713
|
|
|
684
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BoostTicketCard, type BoostTicketCardProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Link, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationButton, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, type StepperProps, type StepperSize, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TicketCard, TicketCardDesktop, type TicketCardProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, inputVariants, linkVariants, navigationButtonVariants, navigationMenuTriggerStyle, tabsListVariants, toggleVariants, useComboboxAnchor, useDirection, useFormField, useIsMobile, useSidebar };
|
|
714
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BoostTicketCard, type BoostTicketCardProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Link, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationButton, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, type StepperProps, type StepperSize, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TicketCard, TicketCardDesktop, type TicketCardProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TooltipVariant, badgeVariants, buttonVariants, cn, inputVariants, linkVariants, navigationButtonVariants, navigationMenuTriggerStyle, tabsListVariants, toggleVariants, useComboboxAnchor, useDirection, useFormField, useIsMobile, useSidebar };
|
package/dist/index.js
CHANGED
|
@@ -5034,7 +5034,7 @@ function SheetDescription(_a) {
|
|
|
5034
5034
|
}
|
|
5035
5035
|
|
|
5036
5036
|
// components/ui/sidebar.tsx
|
|
5037
|
-
import * as
|
|
5037
|
+
import * as React10 from "react";
|
|
5038
5038
|
import { cva as cva12 } from "class-variance-authority";
|
|
5039
5039
|
import { PanelLeftIcon } from "lucide-react";
|
|
5040
5040
|
import { Slot as Slot8 } from "radix-ui";
|
|
@@ -5070,8 +5070,10 @@ function Skeleton(_a) {
|
|
|
5070
5070
|
}
|
|
5071
5071
|
|
|
5072
5072
|
// components/ui/tooltip.tsx
|
|
5073
|
+
import * as React9 from "react";
|
|
5073
5074
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
5074
5075
|
import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5076
|
+
var TooltipModeContext = React9.createContext("tooltip");
|
|
5075
5077
|
function TooltipProvider(_a) {
|
|
5076
5078
|
var _b = _a, {
|
|
5077
5079
|
delayDuration = 0
|
|
@@ -5087,36 +5089,71 @@ function TooltipProvider(_a) {
|
|
|
5087
5089
|
);
|
|
5088
5090
|
}
|
|
5089
5091
|
function Tooltip2(_a) {
|
|
5090
|
-
var
|
|
5091
|
-
|
|
5092
|
+
var _b = _a, {
|
|
5093
|
+
children
|
|
5094
|
+
} = _b, props = __objRest(_b, [
|
|
5095
|
+
"children"
|
|
5096
|
+
]);
|
|
5097
|
+
const isMobile = useIsMobile();
|
|
5098
|
+
const mode = isMobile ? "drawer" : "tooltip";
|
|
5099
|
+
if (mode === "drawer") {
|
|
5100
|
+
return /* @__PURE__ */ jsx49(TooltipModeContext.Provider, { value: "drawer", children: /* @__PURE__ */ jsx49(Drawer, { children }) });
|
|
5101
|
+
}
|
|
5102
|
+
return /* @__PURE__ */ jsx49(TooltipModeContext.Provider, { value: "tooltip", children: /* @__PURE__ */ jsx49(TooltipPrimitive.Root, __spreadProps(__spreadValues({ "data-slot": "tooltip" }, props), { children })) });
|
|
5092
5103
|
}
|
|
5093
5104
|
function TooltipTrigger(_a) {
|
|
5094
|
-
var
|
|
5095
|
-
|
|
5105
|
+
var _b = _a, {
|
|
5106
|
+
children
|
|
5107
|
+
} = _b, props = __objRest(_b, [
|
|
5108
|
+
"children"
|
|
5109
|
+
]);
|
|
5110
|
+
const mode = React9.useContext(TooltipModeContext);
|
|
5111
|
+
if (mode === "drawer") {
|
|
5112
|
+
return /* @__PURE__ */ jsx49(DrawerTrigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5113
|
+
}
|
|
5114
|
+
return /* @__PURE__ */ jsx49(TooltipPrimitive.Trigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5096
5115
|
}
|
|
5097
5116
|
function TooltipContent(_a) {
|
|
5098
5117
|
var _b = _a, {
|
|
5099
5118
|
className,
|
|
5100
5119
|
sideOffset = 6,
|
|
5120
|
+
variant = "default",
|
|
5121
|
+
title = "Title",
|
|
5122
|
+
closeLabel = "Label",
|
|
5101
5123
|
children
|
|
5102
5124
|
} = _b, props = __objRest(_b, [
|
|
5103
5125
|
"className",
|
|
5104
5126
|
"sideOffset",
|
|
5127
|
+
"variant",
|
|
5128
|
+
"title",
|
|
5129
|
+
"closeLabel",
|
|
5105
5130
|
"children"
|
|
5106
5131
|
]);
|
|
5132
|
+
const mode = React9.useContext(TooltipModeContext);
|
|
5133
|
+
if (mode === "drawer") {
|
|
5134
|
+
return /* @__PURE__ */ jsxs23(DrawerContent, { "data-slot": "tooltip-content", "data-variant": variant, children: [
|
|
5135
|
+
/* @__PURE__ */ jsx49(DrawerTitle, { className: "px-5 pt-2 text-left text-base font-bold text-on-prominent", children: title }),
|
|
5136
|
+
/* @__PURE__ */ jsx49("div", { className: cn("px-5 pt-2 pb-2 text-sm font-medium text-on-prominent", className), children }),
|
|
5137
|
+
/* @__PURE__ */ jsx49(DrawerFooter, { children: /* @__PURE__ */ jsx49(DrawerClose, { asChild: true, children: /* @__PURE__ */ jsx49(Button, { variant: "primary", size: "md", children: closeLabel }) }) })
|
|
5138
|
+
] });
|
|
5139
|
+
}
|
|
5140
|
+
const surfaceClasses = variant === "inverse" ? "bg-prominent text-on-prominent shadow-sm" : "bg-primary text-on-primary";
|
|
5141
|
+
const arrowClasses = variant === "inverse" ? "fill-prominent" : "fill-primary";
|
|
5107
5142
|
return /* @__PURE__ */ jsx49(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs23(
|
|
5108
5143
|
TooltipPrimitive.Content,
|
|
5109
5144
|
__spreadProps(__spreadValues({
|
|
5110
5145
|
"data-slot": "tooltip-content",
|
|
5146
|
+
"data-variant": variant,
|
|
5111
5147
|
sideOffset,
|
|
5112
5148
|
className: cn(
|
|
5113
|
-
"z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md
|
|
5149
|
+
"z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md border-0 px-3 py-1.5 text-sm font-medium text-balance fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
5150
|
+
surfaceClasses,
|
|
5114
5151
|
className
|
|
5115
5152
|
)
|
|
5116
5153
|
}, props), {
|
|
5117
5154
|
children: [
|
|
5118
5155
|
children,
|
|
5119
|
-
/* @__PURE__ */ jsx49(TooltipPrimitive.Arrow, { className:
|
|
5156
|
+
/* @__PURE__ */ jsx49(TooltipPrimitive.Arrow, { className: arrowClasses })
|
|
5120
5157
|
]
|
|
5121
5158
|
})
|
|
5122
5159
|
) });
|
|
@@ -5130,9 +5167,9 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
5130
5167
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5131
5168
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
5132
5169
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
5133
|
-
var SidebarContext =
|
|
5170
|
+
var SidebarContext = React10.createContext(null);
|
|
5134
5171
|
function useSidebar() {
|
|
5135
|
-
const context =
|
|
5172
|
+
const context = React10.useContext(SidebarContext);
|
|
5136
5173
|
if (!context) {
|
|
5137
5174
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
5138
5175
|
}
|
|
@@ -5155,10 +5192,10 @@ function SidebarProvider(_a) {
|
|
|
5155
5192
|
"children"
|
|
5156
5193
|
]);
|
|
5157
5194
|
const isMobile = useIsMobile();
|
|
5158
|
-
const [openMobile, setOpenMobile] =
|
|
5159
|
-
const [_open, _setOpen] =
|
|
5195
|
+
const [openMobile, setOpenMobile] = React10.useState(false);
|
|
5196
|
+
const [_open, _setOpen] = React10.useState(defaultOpen);
|
|
5160
5197
|
const open = openProp != null ? openProp : _open;
|
|
5161
|
-
const setOpen =
|
|
5198
|
+
const setOpen = React10.useCallback(
|
|
5162
5199
|
(value) => {
|
|
5163
5200
|
const openState = typeof value === "function" ? value(open) : value;
|
|
5164
5201
|
if (setOpenProp) {
|
|
@@ -5170,10 +5207,10 @@ function SidebarProvider(_a) {
|
|
|
5170
5207
|
},
|
|
5171
5208
|
[setOpenProp, open]
|
|
5172
5209
|
);
|
|
5173
|
-
const toggleSidebar =
|
|
5210
|
+
const toggleSidebar = React10.useCallback(() => {
|
|
5174
5211
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
5175
5212
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
5176
|
-
|
|
5213
|
+
React10.useEffect(() => {
|
|
5177
5214
|
const handleKeyDown = (event) => {
|
|
5178
5215
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
5179
5216
|
event.preventDefault();
|
|
@@ -5184,7 +5221,7 @@ function SidebarProvider(_a) {
|
|
|
5184
5221
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
5185
5222
|
}, [toggleSidebar]);
|
|
5186
5223
|
const state = open ? "expanded" : "collapsed";
|
|
5187
|
-
const contextValue =
|
|
5224
|
+
const contextValue = React10.useMemo(
|
|
5188
5225
|
() => ({
|
|
5189
5226
|
state,
|
|
5190
5227
|
open,
|
|
@@ -5762,7 +5799,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
5762
5799
|
}
|
|
5763
5800
|
|
|
5764
5801
|
// components/ui/slider.tsx
|
|
5765
|
-
import * as
|
|
5802
|
+
import * as React11 from "react";
|
|
5766
5803
|
import { Slider as SliderPrimitive } from "radix-ui";
|
|
5767
5804
|
import { jsx as jsx51, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5768
5805
|
function Slider(_a) {
|
|
@@ -5779,7 +5816,7 @@ function Slider(_a) {
|
|
|
5779
5816
|
"min",
|
|
5780
5817
|
"max"
|
|
5781
5818
|
]);
|
|
5782
|
-
const _values =
|
|
5819
|
+
const _values = React11.useMemo(
|
|
5783
5820
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
5784
5821
|
[value, defaultValue, min, max]
|
|
5785
5822
|
);
|
|
@@ -5877,7 +5914,7 @@ var Toaster = (_a) => {
|
|
|
5877
5914
|
};
|
|
5878
5915
|
|
|
5879
5916
|
// components/ui/stepper.tsx
|
|
5880
|
-
import * as
|
|
5917
|
+
import * as React12 from "react";
|
|
5881
5918
|
import { Minus, Plus } from "lucide-react";
|
|
5882
5919
|
import { jsx as jsx53, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5883
5920
|
function clamp(value, min, max) {
|
|
@@ -5913,16 +5950,16 @@ function Stepper({
|
|
|
5913
5950
|
}) {
|
|
5914
5951
|
const { container, buttonSize, iconClass } = stepperSizeConfig[size];
|
|
5915
5952
|
const isControlled = controlledValue !== void 0;
|
|
5916
|
-
const [internalValue, setInternalValue] =
|
|
5953
|
+
const [internalValue, setInternalValue] = React12.useState(
|
|
5917
5954
|
clamp(defaultValue, min, max)
|
|
5918
5955
|
);
|
|
5919
5956
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
5920
5957
|
const decimalPlaces = getDecimalPlaces(step);
|
|
5921
|
-
const [displayString, setDisplayString] =
|
|
5958
|
+
const [displayString, setDisplayString] = React12.useState(
|
|
5922
5959
|
formatValue(currentValue, decimalPlaces)
|
|
5923
5960
|
);
|
|
5924
|
-
const [isFocused, setIsFocused] =
|
|
5925
|
-
|
|
5961
|
+
const [isFocused, setIsFocused] = React12.useState(false);
|
|
5962
|
+
React12.useEffect(() => {
|
|
5926
5963
|
if (!isFocused) {
|
|
5927
5964
|
setDisplayString(formatValue(currentValue, decimalPlaces));
|
|
5928
5965
|
}
|
|
@@ -6362,6 +6399,7 @@ function BoostTicketCard({
|
|
|
6362
6399
|
stubDisabled = false,
|
|
6363
6400
|
boostAmount = "0.00",
|
|
6364
6401
|
boostCurrency = "USDT",
|
|
6402
|
+
boostInfo,
|
|
6365
6403
|
compact = false
|
|
6366
6404
|
}) {
|
|
6367
6405
|
return /* @__PURE__ */ jsx57("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ jsxs27("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
@@ -6384,7 +6422,18 @@ function BoostTicketCard({
|
|
|
6384
6422
|
boostAmount,
|
|
6385
6423
|
" ",
|
|
6386
6424
|
boostCurrency,
|
|
6387
|
-
/* @__PURE__ */ jsx57(
|
|
6425
|
+
boostInfo && /* @__PURE__ */ jsx57(TooltipProvider, { children: /* @__PURE__ */ jsxs27(Tooltip2, { children: [
|
|
6426
|
+
/* @__PURE__ */ jsx57(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx57(
|
|
6427
|
+
"button",
|
|
6428
|
+
{
|
|
6429
|
+
type: "button",
|
|
6430
|
+
"aria-label": "More info about boost",
|
|
6431
|
+
className: "inline-flex shrink-0 items-center justify-center rounded-full text-on-semantic-boost outline-none transition-opacity hover:opacity-70 focus-visible:opacity-70 focus-visible:ring-2 focus-visible:ring-on-semantic-boost/40 cursor-pointer",
|
|
6432
|
+
children: /* @__PURE__ */ jsx57(Info, { className: "!size-3.5", strokeWidth: 2 })
|
|
6433
|
+
}
|
|
6434
|
+
) }),
|
|
6435
|
+
/* @__PURE__ */ jsx57(TooltipContent, { side: "top", variant: "inverse", className: "max-w-xs whitespace-normal", children: boostInfo })
|
|
6436
|
+
] }) })
|
|
6388
6437
|
] })
|
|
6389
6438
|
] })
|
|
6390
6439
|
] }),
|
|
@@ -6478,10 +6527,10 @@ function Toggle(_a) {
|
|
|
6478
6527
|
}
|
|
6479
6528
|
|
|
6480
6529
|
// components/ui/toggle-group.tsx
|
|
6481
|
-
import * as
|
|
6530
|
+
import * as React13 from "react";
|
|
6482
6531
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
6483
6532
|
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
6484
|
-
var ToggleGroupContext =
|
|
6533
|
+
var ToggleGroupContext = React13.createContext({
|
|
6485
6534
|
size: "default",
|
|
6486
6535
|
variant: "default",
|
|
6487
6536
|
spacing: 0
|
|
@@ -6529,7 +6578,7 @@ function ToggleGroupItem(_a) {
|
|
|
6529
6578
|
"variant",
|
|
6530
6579
|
"size"
|
|
6531
6580
|
]);
|
|
6532
|
-
const context =
|
|
6581
|
+
const context = React13.useContext(ToggleGroupContext);
|
|
6533
6582
|
return /* @__PURE__ */ jsx59(
|
|
6534
6583
|
ToggleGroupPrimitive.Item,
|
|
6535
6584
|
__spreadProps(__spreadValues({
|