@codefast/ui 0.9.2 → 0.10.0
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/CHANGELOG.md +110 -0
- package/README.md +3 -0
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +2 -2
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/attachment.d.ts +2 -2
- package/dist/components/attachment.js +3 -3
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.js +3 -3
- package/dist/components/bubble.d.ts +1 -1
- package/dist/components/bubble.js +2 -2
- package/dist/components/button-group.d.ts +2 -2
- package/dist/components/button-group.js +3 -3
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.d.ts +1 -1
- package/dist/components/calendar.js +3 -3
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.d.ts +1 -1
- package/dist/components/carousel.js +17 -26
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox-cards.d.ts +1 -1
- package/dist/components/checkbox-cards.js +3 -3
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/command.d.ts +8 -2
- package/dist/components/command.js +5 -5
- package/dist/components/context-menu.js +1 -1
- package/dist/components/dialog.d.ts +14 -2
- package/dist/components/dialog.js +6 -6
- package/dist/components/drawer.d.ts +2 -2
- package/dist/components/drawer.js +2 -2
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/empty.d.ts +1 -1
- package/dist/components/empty.js +2 -2
- package/dist/components/field.d.ts +2 -2
- package/dist/components/field.js +4 -4
- package/dist/components/form.js +2 -2
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-group.d.ts +4 -4
- package/dist/components/input-group.js +5 -5
- package/dist/components/input-number.d.ts +2 -2
- package/dist/components/input-number.js +6 -6
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input-password.d.ts +16 -3
- package/dist/components/input-password.js +3 -3
- package/dist/components/input-search.d.ts +8 -2
- package/dist/components/input-search.js +3 -3
- package/dist/components/input.js +1 -1
- package/dist/components/item.d.ts +2 -2
- package/dist/components/item.js +3 -3
- package/dist/components/kbd.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/marker.d.ts +1 -1
- package/dist/components/marker.js +2 -2
- package/dist/components/menubar.js +1 -1
- package/dist/components/message-scroller.d.ts +3 -3
- package/dist/components/message-scroller.js +3 -3
- package/dist/components/message.js +1 -1
- package/dist/components/native-select.js +1 -1
- package/dist/components/navigation-menu.js +2 -2
- package/dist/components/pagination.d.ts +2 -2
- package/dist/components/pagination.js +3 -3
- package/dist/components/popover.js +1 -1
- package/dist/components/progress-circle.d.ts +2 -2
- package/dist/components/progress-circle.js +3 -3
- package/dist/components/progress.d.ts +6 -1
- package/dist/components/progress.js +12 -4
- package/dist/components/radio-cards.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/resizable.js +1 -1
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +2 -2
- package/dist/components/sheet.d.ts +9 -3
- package/dist/components/sheet.js +5 -5
- package/dist/components/sidebar.d.ts +19 -7
- package/dist/components/sidebar.js +66 -32
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.js +2 -2
- package/dist/components/textarea.js +1 -1
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +2 -2
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/hooks/use-is-mobile.js +1 -1
- package/dist/hooks/use-media-query.d.ts +3 -3
- package/dist/hooks/use-media-query.js +15 -32
- package/dist/hooks/use-message-scroller-commands.d.ts +2 -2
- package/dist/hooks/use-message-scroller-commands.js +2 -2
- package/dist/hooks/use-message-scroller-controller.d.ts +2 -2
- package/dist/hooks/use-message-scroller-controller.js +4 -4
- package/dist/hooks/use-message-scroller-refs.d.ts +1 -1
- package/dist/hooks/use-message-scroller-refs.js +3 -3
- package/dist/index.d.ts +180 -180
- package/dist/index.js +93 -93
- package/dist/lib/message-scroller/geometry.d.ts +1 -1
- package/dist/lib/message-scroller/geometry.js +1 -1
- package/dist/lib/message-scroller/stores.d.ts +1 -1
- package/dist/lib/message-scroller/stores.js +1 -1
- package/dist/lib/message-scroller/types.d.ts +1 -1
- package/dist/primitives/input-number.d.ts +6 -6
- package/dist/primitives/input-number.js +6 -6
- package/dist/primitives/message-scroller.d.ts +6 -6
- package/dist/primitives/message-scroller.js +3 -3
- package/dist/variants/alert.d.ts +1 -1
- package/dist/variants/alert.js +1 -1
- package/dist/variants/attachment.d.ts +1 -1
- package/dist/variants/attachment.js +1 -1
- package/dist/variants/badge.d.ts +1 -1
- package/dist/variants/badge.js +1 -1
- package/dist/variants/bubble.d.ts +1 -1
- package/dist/variants/bubble.js +1 -1
- package/dist/variants/button-group.d.ts +1 -1
- package/dist/variants/button-group.js +1 -1
- package/dist/variants/button.d.ts +1 -1
- package/dist/variants/button.js +1 -1
- package/dist/variants/empty.d.ts +1 -1
- package/dist/variants/empty.js +1 -1
- package/dist/variants/field.d.ts +1 -1
- package/dist/variants/field.js +1 -1
- package/dist/variants/input-group.d.ts +1 -1
- package/dist/variants/input-group.js +1 -1
- package/dist/variants/item.d.ts +1 -1
- package/dist/variants/item.js +1 -1
- package/dist/variants/marker.d.ts +1 -1
- package/dist/variants/marker.js +1 -1
- package/dist/variants/navigation-menu.d.ts +1 -1
- package/dist/variants/navigation-menu.js +1 -1
- package/dist/variants/progress-circle.d.ts +1 -1
- package/dist/variants/progress-circle.js +1 -1
- package/dist/variants/scroll-area.d.ts +1 -1
- package/dist/variants/scroll-area.js +1 -1
- package/dist/variants/separator.d.ts +1 -1
- package/dist/variants/separator.js +1 -1
- package/dist/variants/sheet.d.ts +1 -1
- package/dist/variants/sheet.js +1 -1
- package/dist/variants/sidebar.d.ts +1 -1
- package/dist/variants/sidebar.js +1 -1
- package/dist/variants/tabs.d.ts +1 -1
- package/dist/variants/tabs.js +1 -1
- package/dist/variants/toggle.d.ts +1 -1
- package/dist/variants/toggle.js +1 -1
- package/package.json +8 -7
- package/src/css/foundation/base.css +68 -0
- package/src/css/foundation/motion.css +65 -0
- package/src/css/foundation/source.css +14 -0
- package/src/css/foundation/tokens.css +83 -0
- package/src/css/foundation/utilities.css +451 -0
- package/src/css/foundation/variants.css +121 -0
- package/src/css/preset.css +14 -0
- package/src/css/style.css +11 -0
- package/src/css/themes/amber.css +105 -0
- package/src/css/themes/blue.css +105 -0
- package/src/css/themes/cyan.css +105 -0
- package/src/css/themes/emerald.css +105 -0
- package/src/css/themes/fuchsia.css +105 -0
- package/src/css/themes/gray.css +105 -0
- package/src/css/themes/green.css +105 -0
- package/src/css/themes/indigo.css +105 -0
- package/src/css/themes/lime.css +105 -0
- package/src/css/themes/neutral.css +105 -0
- package/src/css/themes/orange.css +105 -0
- package/src/css/themes/pink.css +105 -0
- package/src/css/themes/purple.css +105 -0
- package/src/css/themes/red.css +105 -0
- package/src/css/themes/rose.css +105 -0
- package/src/css/themes/sky.css +105 -0
- package/src/css/themes/slate.css +105 -0
- package/src/css/themes/stone.css +105 -0
- package/src/css/themes/teal.css +105 -0
- package/src/css/themes/violet.css +105 -0
- package/src/css/themes/yellow.css +105 -0
- package/src/css/themes/zinc.css +105 -0
package/dist/index.js
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "
|
|
2
|
-
export { Alert, AlertAction, AlertDescription, AlertTitle } from "
|
|
3
|
-
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogTitle, AlertDialogTrigger, } from "
|
|
4
|
-
export { AspectRatio } from "
|
|
5
|
-
export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, } from "
|
|
6
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "
|
|
7
|
-
export { Badge } from "
|
|
8
|
-
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "
|
|
9
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "
|
|
10
|
-
export { Button } from "
|
|
11
|
-
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from "
|
|
12
|
-
export { Calendar, CalendarDayButton } from "
|
|
13
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "
|
|
14
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, createCarouselScope, } from "
|
|
15
|
-
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, createChartScope, } from "
|
|
16
|
-
export { Checkbox } from "
|
|
17
|
-
export { CheckboxCards, CheckboxCardsItem } from "
|
|
18
|
-
export { CheckboxGroup, CheckboxGroupItem } from "
|
|
19
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from "
|
|
20
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, } from "
|
|
21
|
-
export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "
|
|
22
|
-
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "
|
|
23
|
-
export { DirectionProvider, useDirection } from "
|
|
24
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "
|
|
25
|
-
export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "
|
|
26
|
-
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "
|
|
27
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, } from "
|
|
28
|
-
export { createFormFieldScope, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from "
|
|
29
|
-
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger } from "
|
|
30
|
-
export { Input } from "
|
|
31
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from "
|
|
32
|
-
export { InputNumber } from "
|
|
33
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, } from "
|
|
34
|
-
export { InputPassword } from "
|
|
35
|
-
export { InputSearch } from "
|
|
36
|
-
export { Kbd, KbdGroup } from "
|
|
37
|
-
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, } from "
|
|
38
|
-
export { Label } from "
|
|
39
|
-
export { Marker, MarkerContent, MarkerIcon } from "
|
|
40
|
-
export { Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "
|
|
41
|
-
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, } from "
|
|
42
|
-
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, } from "
|
|
43
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, } from "
|
|
44
|
-
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "
|
|
45
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "
|
|
46
|
-
export { Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from "
|
|
47
|
-
export { Progress } from "
|
|
48
|
-
export { ProgressCircle } from "
|
|
49
|
-
export { Radio } from "
|
|
50
|
-
export { RadioCards, RadioCardsItem } from "
|
|
51
|
-
export { RadioGroup, RadioGroupItem } from "
|
|
52
|
-
export { ResizableGroup, ResizablePanel, ResizableSeparator } from "
|
|
53
|
-
export { ScrollArea, ScrollAreaScrollbar } from "
|
|
54
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from "
|
|
55
|
-
export { Separator, SeparatorItem } from "
|
|
56
|
-
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "
|
|
57
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "
|
|
58
|
-
export { Skeleton } from "
|
|
59
|
-
export { Slider } from "
|
|
60
|
-
export { toast, Toaster, useSonner } from "
|
|
61
|
-
export { Spinner } from "
|
|
62
|
-
export { Switch } from "
|
|
63
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "
|
|
64
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger } from "
|
|
65
|
-
export { Textarea } from "
|
|
66
|
-
export { Toggle } from "
|
|
67
|
-
export { ToggleGroup, ToggleGroupItem } from "
|
|
68
|
-
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger } from "
|
|
69
|
-
export { useAnimatedValue } from "
|
|
70
|
-
export { useCopyToClipboard } from "
|
|
71
|
-
export { useIsMobile } from "
|
|
72
|
-
export { useMediaQuery } from "
|
|
73
|
-
export { useMutationObserver } from "
|
|
74
|
-
export { ELLIPSIS, usePagination } from "
|
|
75
|
-
export { alertVariants } from "
|
|
76
|
-
export { attachmentMediaVariants, attachmentVariants } from "
|
|
77
|
-
export { badgeVariants } from "
|
|
78
|
-
export { bubbleReactionsVariants, bubbleVariants } from "
|
|
79
|
-
export { buttonGroupVariants } from "
|
|
80
|
-
export { buttonVariants } from "
|
|
81
|
-
export { emptyMediaVariants } from "
|
|
82
|
-
export { fieldVariants } from "
|
|
83
|
-
export { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants } from "
|
|
84
|
-
export { itemMediaVariants, itemVariants } from "
|
|
85
|
-
export { markerVariants } from "
|
|
86
|
-
export { navigationMenuTriggerVariants } from "
|
|
87
|
-
export { progressCircleVariants } from "
|
|
88
|
-
export { scrollAreaScrollbarVariants } from "
|
|
89
|
-
export { separatorVariants } from "
|
|
90
|
-
export { sheetContentVariants } from "
|
|
91
|
-
export { sidebarMenuButtonVariants } from "
|
|
92
|
-
export { tabsListVariants } from "
|
|
93
|
-
export { toggleVariants } from "
|
|
1
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "#components/accordion";
|
|
2
|
+
export { Alert, AlertAction, AlertDescription, AlertTitle } from "#components/alert";
|
|
3
|
+
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogTitle, AlertDialogTrigger, } from "#components/alert-dialog";
|
|
4
|
+
export { AspectRatio } from "#components/aspect-ratio";
|
|
5
|
+
export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, } from "#components/attachment";
|
|
6
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "#components/avatar";
|
|
7
|
+
export { Badge } from "#components/badge";
|
|
8
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "#components/button-group";
|
|
9
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "#components/breadcrumb";
|
|
10
|
+
export { Button } from "#components/button";
|
|
11
|
+
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from "#components/bubble";
|
|
12
|
+
export { Calendar, CalendarDayButton } from "#components/calendar";
|
|
13
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "#components/card";
|
|
14
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, createCarouselScope, } from "#components/carousel";
|
|
15
|
+
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, createChartScope, } from "#components/chart";
|
|
16
|
+
export { Checkbox } from "#components/checkbox";
|
|
17
|
+
export { CheckboxCards, CheckboxCardsItem } from "#components/checkbox-cards";
|
|
18
|
+
export { CheckboxGroup, CheckboxGroupItem } from "#components/checkbox-group";
|
|
19
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from "#components/collapsible";
|
|
20
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, } from "#components/command";
|
|
21
|
+
export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "#components/context-menu";
|
|
22
|
+
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "#components/dialog";
|
|
23
|
+
export { DirectionProvider, useDirection } from "#components/direction";
|
|
24
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "#components/drawer";
|
|
25
|
+
export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "#components/dropdown-menu";
|
|
26
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "#components/empty";
|
|
27
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, } from "#components/field";
|
|
28
|
+
export { createFormFieldScope, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from "#components/form";
|
|
29
|
+
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger } from "#components/hover-card";
|
|
30
|
+
export { Input } from "#components/input";
|
|
31
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from "#components/input-group";
|
|
32
|
+
export { InputNumber } from "#components/input-number";
|
|
33
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, } from "#components/input-otp";
|
|
34
|
+
export { InputPassword } from "#components/input-password";
|
|
35
|
+
export { InputSearch } from "#components/input-search";
|
|
36
|
+
export { Kbd, KbdGroup } from "#components/kbd";
|
|
37
|
+
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, } from "#components/item";
|
|
38
|
+
export { Label } from "#components/label";
|
|
39
|
+
export { Marker, MarkerContent, MarkerIcon } from "#components/marker";
|
|
40
|
+
export { Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "#components/menubar";
|
|
41
|
+
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, } from "#components/message";
|
|
42
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, } from "#components/message-scroller";
|
|
43
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, } from "#components/navigation-menu";
|
|
44
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "#components/native-select";
|
|
45
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "#components/pagination";
|
|
46
|
+
export { Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from "#components/popover";
|
|
47
|
+
export { Progress } from "#components/progress";
|
|
48
|
+
export { ProgressCircle } from "#components/progress-circle";
|
|
49
|
+
export { Radio } from "#components/radio";
|
|
50
|
+
export { RadioCards, RadioCardsItem } from "#components/radio-cards";
|
|
51
|
+
export { RadioGroup, RadioGroupItem } from "#components/radio-group";
|
|
52
|
+
export { ResizableGroup, ResizablePanel, ResizableSeparator } from "#components/resizable";
|
|
53
|
+
export { ScrollArea, ScrollAreaScrollbar } from "#components/scroll-area";
|
|
54
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from "#components/select";
|
|
55
|
+
export { Separator, SeparatorItem } from "#components/separator";
|
|
56
|
+
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "#components/sheet";
|
|
57
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "#components/sidebar";
|
|
58
|
+
export { Skeleton } from "#components/skeleton";
|
|
59
|
+
export { Slider } from "#components/slider";
|
|
60
|
+
export { toast, Toaster, useSonner } from "#components/sonner";
|
|
61
|
+
export { Spinner } from "#components/spinner";
|
|
62
|
+
export { Switch } from "#components/switch";
|
|
63
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "#components/table";
|
|
64
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from "#components/tabs";
|
|
65
|
+
export { Textarea } from "#components/textarea";
|
|
66
|
+
export { Toggle } from "#components/toggle";
|
|
67
|
+
export { ToggleGroup, ToggleGroupItem } from "#components/toggle-group";
|
|
68
|
+
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger } from "#components/tooltip";
|
|
69
|
+
export { useAnimatedValue } from "#hooks/use-animated-value";
|
|
70
|
+
export { useCopyToClipboard } from "#hooks/use-copy-to-clipboard";
|
|
71
|
+
export { useIsMobile } from "#hooks/use-is-mobile";
|
|
72
|
+
export { useMediaQuery } from "#hooks/use-media-query";
|
|
73
|
+
export { useMutationObserver } from "#hooks/use-mutation-observer";
|
|
74
|
+
export { ELLIPSIS, usePagination } from "#hooks/use-pagination";
|
|
75
|
+
export { alertVariants } from "#variants/alert";
|
|
76
|
+
export { attachmentMediaVariants, attachmentVariants } from "#variants/attachment";
|
|
77
|
+
export { badgeVariants } from "#variants/badge";
|
|
78
|
+
export { bubbleReactionsVariants, bubbleVariants } from "#variants/bubble";
|
|
79
|
+
export { buttonGroupVariants } from "#variants/button-group";
|
|
80
|
+
export { buttonVariants } from "#variants/button";
|
|
81
|
+
export { emptyMediaVariants } from "#variants/empty";
|
|
82
|
+
export { fieldVariants } from "#variants/field";
|
|
83
|
+
export { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants } from "#variants/input-group";
|
|
84
|
+
export { itemMediaVariants, itemVariants } from "#variants/item";
|
|
85
|
+
export { markerVariants } from "#variants/marker";
|
|
86
|
+
export { navigationMenuTriggerVariants } from "#variants/navigation-menu";
|
|
87
|
+
export { progressCircleVariants } from "#variants/progress-circle";
|
|
88
|
+
export { scrollAreaScrollbarVariants } from "#variants/scroll-area";
|
|
89
|
+
export { separatorVariants } from "#variants/separator";
|
|
90
|
+
export { sheetContentVariants } from "#variants/sheet";
|
|
91
|
+
export { sidebarMenuButtonVariants } from "#variants/sidebar";
|
|
92
|
+
export { tabsListVariants } from "#variants/tabs";
|
|
93
|
+
export { toggleVariants } from "#variants/toggle";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageScrollerScrollAlign, MessageScrollerScrollEdges, MessageScrollerVisibilityState } from "
|
|
1
|
+
import type { MessageScrollerScrollAlign, MessageScrollerScrollEdges, MessageScrollerVisibilityState } from "#lib/message-scroller/types";
|
|
2
2
|
/**
|
|
3
3
|
* @since 0.5.0-canary.3
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EMPTY_MESSAGE_SCROLLER_SCROLLABLE, EMPTY_MESSAGE_SCROLLER_VISIBILITY_STATE, SCROLL_POSITION_EPSILON, } from "
|
|
1
|
+
import { EMPTY_MESSAGE_SCROLLER_SCROLLABLE, EMPTY_MESSAGE_SCROLLER_VISIBILITY_STATE, SCROLL_POSITION_EPSILON, } from "#lib/message-scroller/types";
|
|
2
2
|
/**
|
|
3
3
|
* @since 0.5.0-canary.3
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageScrollerScrollable, MessageScrollerStore, MessageScrollerVisibilityState, MessageScrollerVisibilityStore } from "
|
|
1
|
+
import type { MessageScrollerScrollable, MessageScrollerStore, MessageScrollerVisibilityState, MessageScrollerVisibilityStore } from "#lib/message-scroller/types";
|
|
2
2
|
/**
|
|
3
3
|
* @since 0.5.0-canary.3
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EMPTY_MESSAGE_SCROLLER_VISIBILITY_STATE } from "
|
|
1
|
+
import { EMPTY_MESSAGE_SCROLLER_VISIBILITY_STATE } from "#lib/message-scroller/types";
|
|
2
2
|
// Generic useSyncExternalStore backing: a stable snapshot (referentially equal
|
|
3
3
|
// while isEqual holds, so subscribers only re-render on real transitions) plus
|
|
4
4
|
// optional reference-counting via the subscribe-time lifecycle callbacks.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode, RefObject } from "react";
|
|
2
|
-
import type { UseRenderComponentProps } from "
|
|
2
|
+
import type { UseRenderComponentProps } from "#lib/use-render";
|
|
3
3
|
/**
|
|
4
4
|
* Default scrollEdgeThreshold. Sub-pixel tolerance so edge detection does not
|
|
5
5
|
* flicker across engines that round scrollTop differently.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from "radix-ui/internal";
|
|
2
2
|
import type { ComponentProps, JSX } from "react";
|
|
3
|
-
import * as InputPrimitive from "
|
|
3
|
+
import * as InputPrimitive from "#primitives/input";
|
|
4
4
|
/**
|
|
5
5
|
* Props that include an optional scope for the InputNumber component.
|
|
6
6
|
*/
|
|
@@ -20,11 +20,7 @@ interface InputNumberProps extends ComponentProps<typeof InputPrimitive.Root> {
|
|
|
20
20
|
/**
|
|
21
21
|
* Accessible label for the decrement button
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Accessible label for the increment button
|
|
26
|
-
*/
|
|
27
|
-
ariaIncrementLabel?: string;
|
|
23
|
+
decrementLabel?: string;
|
|
28
24
|
/**
|
|
29
25
|
* Initial value when uncontrolled
|
|
30
26
|
*/
|
|
@@ -37,6 +33,10 @@ interface InputNumberProps extends ComponentProps<typeof InputPrimitive.Root> {
|
|
|
37
33
|
* Unique identifier for the input
|
|
38
34
|
*/
|
|
39
35
|
id?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Accessible label for the increment button
|
|
38
|
+
*/
|
|
39
|
+
incrementLabel?: string;
|
|
40
40
|
/**
|
|
41
41
|
* Locale used for number formatting
|
|
42
42
|
*/
|
|
@@ -3,8 +3,8 @@ import { composeEventHandlers } from "radix-ui/internal";
|
|
|
3
3
|
import { Context } from "radix-ui/internal";
|
|
4
4
|
import { useControllableState } from "radix-ui/internal";
|
|
5
5
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
6
|
-
import * as InputPrimitive from "
|
|
7
|
-
import { createInputScope } from "
|
|
6
|
+
import * as InputPrimitive from "#primitives/input";
|
|
7
|
+
import { createInputScope } from "#primitives/input";
|
|
8
8
|
// ── Context: InputNumber ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
9
9
|
/**
|
|
10
10
|
* The name of the InputNumber component constant.
|
|
@@ -19,7 +19,7 @@ const [InputNumberContextProvider, useInputNumberContext] = createInputNumberCon
|
|
|
19
19
|
* @since 0.3.16-canary.0
|
|
20
20
|
*/
|
|
21
21
|
function InputNumber(numberInputProps) {
|
|
22
|
-
const { __scopeInputNumber,
|
|
22
|
+
const { __scopeInputNumber, decrementLabel, defaultValue, formatOptions = { minimumFractionDigits: 0, style: "decimal" }, id, incrementLabel, locale, max, min, onChange, step = 1, value: valueProperty, ...props } = numberInputProps;
|
|
23
23
|
/**
|
|
24
24
|
* Context.Scope for the input component
|
|
25
25
|
*/
|
|
@@ -116,7 +116,7 @@ function InputNumber(numberInputProps) {
|
|
|
116
116
|
const handleDecrementToMin = useCallback(() => {
|
|
117
117
|
changeNumberValue((number) => min ?? number - step);
|
|
118
118
|
}, [changeNumberValue, min, step]);
|
|
119
|
-
return (_jsx(InputNumberContextProvider, {
|
|
119
|
+
return (_jsx(InputNumberContextProvider, { decrementLabel: decrementLabel, defaultValue: defaultValue, disabled: props.disabled, formatOptions: stableFormatOptions, formatValue: formatValue, id: id, incrementLabel: incrementLabel, inputRef: inputRef, max: max, min: min, parseValue: parseValue, readOnly: props.readOnly, scope: __scopeInputNumber, value: value, onChange: setValue, onDecrement: handleDecrement, onDecrementToMin: handleDecrementToMin, onIncrement: handleIncrement, onIncrementToMax: handleIncrementToMax, children: _jsx(InputPrimitive.Root, { ...inputScope, ...props }) }));
|
|
120
120
|
}
|
|
121
121
|
// ── Component: InputNumberField ──────────────────────────────────────────────────────────────────────────────────────
|
|
122
122
|
/**
|
|
@@ -320,7 +320,7 @@ function InputNumberField({ __scopeInputNumber, onBlur, onKeyDown, ...props }) {
|
|
|
320
320
|
const NUMBER_STEPPER_BUTTON_NAME = "NumberStepperButton";
|
|
321
321
|
function NumberStepperButton({ __scopeInputNumber, operation, ...props }) {
|
|
322
322
|
// Destructures relevant context values for the button functionality.
|
|
323
|
-
const {
|
|
323
|
+
const { decrementLabel, disabled, id, incrementLabel, max, min, onDecrement, onIncrement, value } = useInputNumberContext(NUMBER_STEPPER_BUTTON_NAME, __scopeInputNumber);
|
|
324
324
|
const isDisabled = useMemo(() => {
|
|
325
325
|
if (disabled) {
|
|
326
326
|
return true;
|
|
@@ -397,7 +397,7 @@ function NumberStepperButton({ __scopeInputNumber, operation, ...props }) {
|
|
|
397
397
|
action();
|
|
398
398
|
}
|
|
399
399
|
}, [onDecrement, onIncrement, operation]);
|
|
400
|
-
return (_jsx("button", { "aria-controls": id, "aria-label": operation === "increment" ?
|
|
400
|
+
return (_jsx("button", { "aria-controls": id, "aria-label": operation === "increment" ? incrementLabel : decrementLabel, disabled: isDisabled, type: "button", onContextMenu: handleContextMenu, onKeyDown: handleKeyDown, onPointerCancel: clearActionInterval, onPointerDown: handlePointerDown, onPointerLeave: clearActionInterval, onPointerUp: clearActionInterval, ...props }));
|
|
401
401
|
}
|
|
402
402
|
/**
|
|
403
403
|
* @since 0.3.16-canary.0
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type { MessageScrollerButtonProps, MessageScrollerContentProps, MessageScrollerItemProps, MessageScrollerProps, MessageScrollerProviderProps, MessageScrollerViewportProps } from "
|
|
1
|
+
import type { MessageScrollerButtonProps, MessageScrollerContentProps, MessageScrollerItemProps, MessageScrollerProps, MessageScrollerProviderProps, MessageScrollerViewportProps } from "#lib/message-scroller/types";
|
|
2
2
|
/**
|
|
3
3
|
* @since 0.5.0-canary.3
|
|
4
4
|
*/
|
|
5
5
|
declare function useMessageScroller(): {
|
|
6
|
-
scrollToEnd: (options?: import("
|
|
7
|
-
scrollToMessage: (messageId: string, options?: import("
|
|
8
|
-
scrollToStart: (options?: import("
|
|
6
|
+
scrollToEnd: (options?: import("#lib/message-scroller/types").MessageScrollerScrollOptions) => boolean;
|
|
7
|
+
scrollToMessage: (messageId: string, options?: import("#lib/message-scroller/types").MessageScrollerScrollOptions) => boolean;
|
|
8
|
+
scrollToStart: (options?: import("#lib/message-scroller/types").MessageScrollerScrollOptions) => boolean;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* @since 0.5.0-canary.3
|
|
12
12
|
*/
|
|
13
|
-
declare function useMessageScrollerScrollable(): import("
|
|
13
|
+
declare function useMessageScrollerScrollable(): import("#lib/message-scroller/types").MessageScrollerScrollable;
|
|
14
14
|
/**
|
|
15
15
|
* @since 0.5.0-canary.3
|
|
16
16
|
*/
|
|
17
|
-
declare function useMessageScrollerVisibility(): import("
|
|
17
|
+
declare function useMessageScrollerVisibility(): import("#lib/message-scroller/types").MessageScrollerVisibilityState;
|
|
18
18
|
/**
|
|
19
19
|
* @since 0.5.0-canary.3
|
|
20
20
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useSyncExternalStore, } from "react";
|
|
3
|
-
import { useMessageScrollerController } from "
|
|
4
|
-
import { USER_SCROLL_KEYS } from "
|
|
5
|
-
import { composeRefs, mergeProps, useRender } from "
|
|
3
|
+
import { useMessageScrollerController } from "#hooks/use-message-scroller-controller";
|
|
4
|
+
import { USER_SCROLL_KEYS } from "#lib/message-scroller/types";
|
|
5
|
+
import { composeRefs, mergeProps, useRender } from "#lib/use-render";
|
|
6
6
|
const MessageScrollerContext = createContext(null);
|
|
7
7
|
const MessageScrollerItemContext = createContext(null);
|
|
8
8
|
function useMessageScrollerContext() {
|
package/dist/variants/alert.d.ts
CHANGED
package/dist/variants/alert.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "#lib/utils";
|
|
2
2
|
// ── Variant: Attachment ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
3
3
|
/**
|
|
4
4
|
* File/media attachment card. Size drives padding for the media and content
|
package/dist/variants/badge.d.ts
CHANGED
package/dist/variants/badge.js
CHANGED
package/dist/variants/bubble.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "#lib/utils";
|
|
2
2
|
// ── Variant: Bubble ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
3
3
|
/**
|
|
4
4
|
* Chat bubble surface. Variants paint the nested `bubble-content`, so the color
|
package/dist/variants/button.js
CHANGED
package/dist/variants/empty.d.ts
CHANGED
package/dist/variants/empty.js
CHANGED
package/dist/variants/field.d.ts
CHANGED
package/dist/variants/field.js
CHANGED
package/dist/variants/item.d.ts
CHANGED
package/dist/variants/item.js
CHANGED
package/dist/variants/marker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "#lib/utils";
|
|
2
2
|
// ── Variant: Marker ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
3
3
|
/**
|
|
4
4
|
* Inline chat divider — plain label, centered separator rule, or bottom border.
|
package/dist/variants/sheet.d.ts
CHANGED
package/dist/variants/sheet.js
CHANGED