ui-arreya-components 0.1.4 → 0.1.8

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.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { forwardRef, createContext, useId, useState, useCallback, useEffect, useMemo, useContext } from 'react';
2
3
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
4
  import { clsx } from 'clsx';
@@ -11,6 +12,7 @@ import { DayPicker } from 'react-day-picker';
11
12
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
12
13
  import { Command as Command$1 } from 'cmdk';
13
14
  import * as DialogPrimitive from '@radix-ui/react-dialog';
15
+ import { Drawer as Drawer$1 } from 'vaul';
14
16
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
15
17
  import { useFormContext, FormProvider, Controller } from 'react-hook-form';
16
18
  import * as LabelPrimitive from '@radix-ui/react-label';
@@ -20,6 +22,7 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
20
22
  import * as SelectPrimitive from '@radix-ui/react-select';
21
23
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
22
24
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
25
+ import * as SliderPrimitive from '@radix-ui/react-slider';
23
26
  import { useTheme } from 'next-themes';
24
27
  import { Toaster as Toaster$1 } from 'sonner';
25
28
  import * as SwitchPrimitives from '@radix-ui/react-switch';
@@ -427,6 +430,47 @@ var CommandShortcut = ({ className, ...props }) => {
427
430
  return /* @__PURE__ */ jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
428
431
  };
429
432
  CommandShortcut.displayName = "CommandShortcut";
433
+ var Drawer = ({ shouldScaleBackground = true, ...props }) => /* @__PURE__ */ jsx(Drawer$1.Root, { shouldScaleBackground, ...props });
434
+ Drawer.displayName = "Drawer";
435
+ var DrawerTrigger = Drawer$1.Trigger;
436
+ var DrawerPortal = Drawer$1.Portal;
437
+ var DrawerClose = Drawer$1.Close;
438
+ var DrawerOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Overlay, { ref, className: cn("fixed inset-0 z-50 bg-black/80", className), ...props }));
439
+ DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
440
+ var DrawerContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
441
+ /* @__PURE__ */ jsx(DrawerOverlay, {}),
442
+ /* @__PURE__ */ jsxs(
443
+ Drawer$1.Content,
444
+ {
445
+ ref,
446
+ className: cn(
447
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
448
+ className
449
+ ),
450
+ ...props,
451
+ children: [
452
+ /* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
453
+ children
454
+ ]
455
+ }
456
+ )
457
+ ] }));
458
+ DrawerContent.displayName = "DrawerContent";
459
+ var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("grid gap-1.5 p-4 text-center sm:text-left", className), ...props });
460
+ DrawerHeader.displayName = "DrawerHeader";
461
+ var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props });
462
+ DrawerFooter.displayName = "DrawerFooter";
463
+ var DrawerTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
464
+ Drawer$1.Title,
465
+ {
466
+ ref,
467
+ className: cn("text-lg font-semibold leading-none tracking-tight", className),
468
+ ...props
469
+ }
470
+ ));
471
+ DrawerTitle.displayName = Drawer$1.Title.displayName;
472
+ var DrawerDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
473
+ DrawerDescription.displayName = Drawer$1.Description.displayName;
430
474
  var DropdownMenu = DropdownMenuPrimitive.Root;
431
475
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
432
476
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
@@ -1359,6 +1403,19 @@ var SidebarMenuSubButton = forwardRef(({ asChild = false, size = "md", isActive,
1359
1403
  );
1360
1404
  });
1361
1405
  SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
1406
+ var Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
1407
+ SliderPrimitive.Root,
1408
+ {
1409
+ ref,
1410
+ className: cn("relative flex w-full touch-none select-none items-center", className),
1411
+ ...props,
1412
+ children: [
1413
+ /* @__PURE__ */ jsx(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
1414
+ /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
1415
+ ]
1416
+ }
1417
+ ));
1418
+ Slider.displayName = SliderPrimitive.Root.displayName;
1362
1419
  var Toaster = ({ ...props }) => {
1363
1420
  const { theme = "system" } = useTheme();
1364
1421
  return /* @__PURE__ */ jsx(
@@ -1490,6 +1547,6 @@ var TabsContent = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
1490
1547
  ));
1491
1548
  TabsContent.displayName = TabsPrimitive.Content.displayName;
1492
1549
 
1493
- export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, Label2 as Label, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, 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, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, useFormField, useIsMobile, useSidebar };
1550
+ export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, Label2 as Label, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, 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, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, useFormField, useIsMobile, useSidebar };
1494
1551
  //# sourceMappingURL=index.mjs.map
1495
1552
  //# sourceMappingURL=index.mjs.map