adminium 1.0.1-patch.1 → 1.0.1-patch.2

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.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
3
  import * as React$1 from 'react';
3
4
  import { ReactNode, CSSProperties, HTMLAttributes, RefObject } from 'react';
4
5
  import { VariantProps } from 'class-variance-authority';
5
- import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Popover as Popover$1, Label as Label$1, ScrollArea as ScrollArea$1, Select as Select$1 } from 'radix-ui';
6
- import * as class_variance_authority_types from 'class-variance-authority/types';
6
+ import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Popover as Popover$1, Avatar as Avatar$1, Label as Label$1, ScrollArea as ScrollArea$1, Select as Select$1 } from 'radix-ui';
7
7
  import { LucideIcon } from 'lucide-react';
8
8
  import { Drawer as Drawer$1 } from 'vaul';
9
9
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
@@ -15,6 +15,25 @@ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
15
15
  import { Slot } from '@radix-ui/react-slot';
16
16
  import { ClassValue } from 'clsx';
17
17
 
18
+ declare const alertVariants: (props?: ({
19
+ variant?: "primary" | "mono" | "destructive" | "success" | "secondary" | "info" | "warning" | null | undefined;
20
+ icon?: "primary" | "destructive" | "success" | "info" | "warning" | null | undefined;
21
+ appearance?: "outline" | "solid" | "stroke" | "light" | null | undefined;
22
+ size?: "lg" | "md" | "sm" | null | undefined;
23
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
24
+ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
25
+ close?: boolean;
26
+ onClose?: () => void;
27
+ }
28
+ interface AlertIconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
29
+ }
30
+ declare function Alert({ className, variant, size, icon, appearance, close, onClose, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
31
+ declare function AlertTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
32
+ declare function AlertIcon({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
33
+ declare function AlertToolbar({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
34
+ declare function AlertDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
35
+ declare function AlertContent({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
36
+
18
37
  declare const buttonVariants: (props?: ({
19
38
  variant?: "primary" | "mono" | "destructive" | "success" | "secondary" | "outline" | "dashed" | "ghost" | "dim" | "foreground" | "inverse" | null | undefined;
20
39
  appearance?: "ghost" | "default" | null | undefined;
@@ -104,6 +123,15 @@ declare function SheetFooter({ className, ...props }: React$1.ComponentProps<'di
104
123
  declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
105
124
  declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
106
125
 
126
+ declare const avatarStatusVariants: (props?: ({
127
+ variant?: "online" | "offline" | "busy" | "away" | null | undefined;
128
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
129
+ declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): react_jsx_runtime.JSX.Element;
130
+ declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
131
+ declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
132
+ declare function AvatarIndicator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
133
+ declare function AvatarStatus({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof avatarStatusVariants>): react_jsx_runtime.JSX.Element;
134
+
107
135
  type AnimationType = "default" | "flip" | "reveal";
108
136
  interface AvatarGroupProps {
109
137
  children: React$1.ReactNode;
@@ -492,4 +520,4 @@ declare function useMounted(): boolean;
492
520
  */
493
521
  declare function cn(...inputs: ClassValue[]): string;
494
522
 
495
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DataGrid, type DataGridApiFetchParams, type DataGridApiResponse, DataGridColumnHeader, type DataGridColumnHeaderProps, DataGridColumnVisibility, DataGridContainer, type DataGridContextProps, DataGridPagination, type DataGridPaginationProps, type DataGridProps, DataGridProvider, type DataGridRequestParams, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableLoader, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, Dialog, DialogBody, 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Label, Popover, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, labelVariants, selectTriggerVariants, useCopyToClipboard, useDataGrid, useFormField, useIsMobile, useMounted };
523
+ export { Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DataGrid, type DataGridApiFetchParams, type DataGridApiResponse, DataGridColumnHeader, type DataGridColumnHeaderProps, DataGridColumnVisibility, DataGridContainer, type DataGridContextProps, DataGridPagination, type DataGridPaginationProps, type DataGridProps, DataGridProvider, type DataGridRequestParams, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableLoader, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, Dialog, DialogBody, 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Label, Popover, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, avatarStatusVariants, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, labelVariants, selectTriggerVariants, useCopyToClipboard, useDataGrid, useFormField, useIsMobile, useMounted };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
3
  import * as React$1 from 'react';
3
4
  import { ReactNode, CSSProperties, HTMLAttributes, RefObject } from 'react';
4
5
  import { VariantProps } from 'class-variance-authority';
5
- import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Popover as Popover$1, Label as Label$1, ScrollArea as ScrollArea$1, Select as Select$1 } from 'radix-ui';
6
- import * as class_variance_authority_types from 'class-variance-authority/types';
6
+ import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Popover as Popover$1, Avatar as Avatar$1, Label as Label$1, ScrollArea as ScrollArea$1, Select as Select$1 } from 'radix-ui';
7
7
  import { LucideIcon } from 'lucide-react';
8
8
  import { Drawer as Drawer$1 } from 'vaul';
9
9
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
@@ -15,6 +15,25 @@ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
15
15
  import { Slot } from '@radix-ui/react-slot';
16
16
  import { ClassValue } from 'clsx';
17
17
 
18
+ declare const alertVariants: (props?: ({
19
+ variant?: "primary" | "mono" | "destructive" | "success" | "secondary" | "info" | "warning" | null | undefined;
20
+ icon?: "primary" | "destructive" | "success" | "info" | "warning" | null | undefined;
21
+ appearance?: "outline" | "solid" | "stroke" | "light" | null | undefined;
22
+ size?: "lg" | "md" | "sm" | null | undefined;
23
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
24
+ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
25
+ close?: boolean;
26
+ onClose?: () => void;
27
+ }
28
+ interface AlertIconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
29
+ }
30
+ declare function Alert({ className, variant, size, icon, appearance, close, onClose, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
31
+ declare function AlertTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
32
+ declare function AlertIcon({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
33
+ declare function AlertToolbar({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
34
+ declare function AlertDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
35
+ declare function AlertContent({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
36
+
18
37
  declare const buttonVariants: (props?: ({
19
38
  variant?: "primary" | "mono" | "destructive" | "success" | "secondary" | "outline" | "dashed" | "ghost" | "dim" | "foreground" | "inverse" | null | undefined;
20
39
  appearance?: "ghost" | "default" | null | undefined;
@@ -104,6 +123,15 @@ declare function SheetFooter({ className, ...props }: React$1.ComponentProps<'di
104
123
  declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
105
124
  declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
106
125
 
126
+ declare const avatarStatusVariants: (props?: ({
127
+ variant?: "online" | "offline" | "busy" | "away" | null | undefined;
128
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
129
+ declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): react_jsx_runtime.JSX.Element;
130
+ declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
131
+ declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
132
+ declare function AvatarIndicator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
133
+ declare function AvatarStatus({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof avatarStatusVariants>): react_jsx_runtime.JSX.Element;
134
+
107
135
  type AnimationType = "default" | "flip" | "reveal";
108
136
  interface AvatarGroupProps {
109
137
  children: React$1.ReactNode;
@@ -492,4 +520,4 @@ declare function useMounted(): boolean;
492
520
  */
493
521
  declare function cn(...inputs: ClassValue[]): string;
494
522
 
495
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DataGrid, type DataGridApiFetchParams, type DataGridApiResponse, DataGridColumnHeader, type DataGridColumnHeaderProps, DataGridColumnVisibility, DataGridContainer, type DataGridContextProps, DataGridPagination, type DataGridPaginationProps, type DataGridProps, DataGridProvider, type DataGridRequestParams, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableLoader, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, Dialog, DialogBody, 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Label, Popover, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, labelVariants, selectTriggerVariants, useCopyToClipboard, useDataGrid, useFormField, useIsMobile, useMounted };
523
+ export { Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DataGrid, type DataGridApiFetchParams, type DataGridApiResponse, DataGridColumnHeader, type DataGridColumnHeaderProps, DataGridColumnVisibility, DataGridContainer, type DataGridContextProps, DataGridPagination, type DataGridPaginationProps, type DataGridProps, DataGridProvider, type DataGridRequestParams, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableLoader, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, Dialog, DialogBody, 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Label, Popover, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, avatarStatusVariants, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, labelVariants, selectTriggerVariants, useCopyToClipboard, useDataGrid, useFormField, useIsMobile, useMounted };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { clsx } from 'clsx';
3
3
  import { twMerge } from 'tailwind-merge';
4
- import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Popover as Popover$1, Select as Select$1, Label, ScrollArea as ScrollArea$1 } from 'radix-ui';
5
4
  import { cva } from 'class-variance-authority';
6
5
  import { ChevronDown, X, Check, Minus, ChevronRight, Circle, ChevronUp, ChevronLeftIcon, ChevronRightIcon, ArrowDown, ArrowUp, ChevronsUpDown, ArrowLeftToLine, ArrowRightToLine, ArrowLeft, ArrowRight, Settings2, PinOff } from 'lucide-react';
7
6
  import * as SlotPrimitive2 from '@radix-ui/react-slot';
8
7
  import { Slot } from '@radix-ui/react-slot';
9
8
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
+ import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Popover as Popover$1, Avatar as Avatar$1, Select as Select$1, Label, ScrollArea as ScrollArea$1 } from 'radix-ui';
10
10
  import { Drawer as Drawer$1 } from 'vaul';
11
11
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
12
12
  import * as React from 'react';
@@ -408,6 +408,272 @@ function ButtonArrow({
408
408
  }
409
409
  );
410
410
  }
411
+ var alertVariants = cva(
412
+ "flex items-stretch w-full gap-2 group-[.toaster]:w-(--width)",
413
+ {
414
+ variants: {
415
+ variant: {
416
+ secondary: "",
417
+ primary: "",
418
+ destructive: "",
419
+ success: "",
420
+ info: "",
421
+ mono: "",
422
+ warning: ""
423
+ },
424
+ icon: {
425
+ primary: "",
426
+ destructive: "",
427
+ success: "",
428
+ info: "",
429
+ warning: ""
430
+ },
431
+ appearance: {
432
+ solid: "",
433
+ outline: "",
434
+ light: "",
435
+ stroke: "text-foreground"
436
+ },
437
+ size: {
438
+ lg: "rounded-lg p-4 gap-3 text-base [&>[data-slot=alert-icon]>svg]:size-6 *:data-slot=alert-icon:mt-0.5 [&_[data-slot=alert-close]]:mt-1",
439
+ md: "rounded-lg p-3.5 gap-2.5 text-sm [&>[data-slot=alert-icon]>svg]:size-5 *:data-slot=alert-icon:mt-0 [&_[data-slot=alert-close]]:mt-0.5",
440
+ sm: "rounded-md px-3 py-2.5 gap-2 text-xs [&>[data-slot=alert-icon]>svg]:size-4 *:data-alert-icon:mt-0.5 [&_[data-slot=alert-close]]:mt-0.25 [&_[data-slot=alert-close]_svg]:size-3.5"
441
+ }
442
+ },
443
+ compoundVariants: [
444
+ /* Solid */
445
+ {
446
+ variant: "secondary",
447
+ appearance: "solid",
448
+ className: "bg-muted text-foreground"
449
+ },
450
+ {
451
+ variant: "primary",
452
+ appearance: "solid",
453
+ className: "bg-primary text-primary-foreground"
454
+ },
455
+ {
456
+ variant: "destructive",
457
+ appearance: "solid",
458
+ className: "bg-destructive text-destructive-foreground"
459
+ },
460
+ {
461
+ variant: "success",
462
+ appearance: "solid",
463
+ className: "bg-[var(--color-success,var(--color-green-500))] text-[var(--color-success-foreground,var(--color-white))]"
464
+ },
465
+ {
466
+ variant: "info",
467
+ appearance: "solid",
468
+ className: "bg-[var(--color-info,var(--color-violet-600))] text-[var(--color-info-foreground,var(--color-white))]"
469
+ },
470
+ {
471
+ variant: "warning",
472
+ appearance: "solid",
473
+ className: "bg-[var(--color-warning,var(--color-yellow-500))] text-[var(--color-warning-foreground,var(--color-white))]"
474
+ },
475
+ {
476
+ variant: "mono",
477
+ appearance: "solid",
478
+ className: "bg-zinc-950 text-white dark:bg-zinc-300 dark:text-black *:data-slot-[alert=close]:text-white"
479
+ },
480
+ /* Outline */
481
+ {
482
+ variant: "secondary",
483
+ appearance: "outline",
484
+ className: "border border-border bg-background text-foreground [&_[data-slot=alert-close]]:text-foreground"
485
+ },
486
+ {
487
+ variant: "primary",
488
+ appearance: "outline",
489
+ className: "border border-border bg-background text-primary [&_[data-slot=alert-close]]:text-foreground"
490
+ },
491
+ {
492
+ variant: "destructive",
493
+ appearance: "outline",
494
+ className: "border border-border bg-background text-destructive [&_[data-slot=alert-close]]:text-foreground"
495
+ },
496
+ {
497
+ variant: "success",
498
+ appearance: "outline",
499
+ className: "border border-border bg-background text-[var(--color-success,var(--color-green-500))] [&_[data-slot=alert-close]]:text-foreground"
500
+ },
501
+ {
502
+ variant: "info",
503
+ appearance: "outline",
504
+ className: "border border-border bg-background text-[var(--color-info,var(--color-violet-600))] [&_[data-slot=alert-close]]:text-foreground"
505
+ },
506
+ {
507
+ variant: "warning",
508
+ appearance: "outline",
509
+ className: "border border-border bg-background text-[var(--color-warning,var(--color-yellow-500))] [&_[data-slot=alert-close]]:text-foreground"
510
+ },
511
+ {
512
+ variant: "mono",
513
+ appearance: "outline",
514
+ className: "border border-border bg-background text-foreground [&_[data-slot=alert-close]]:text-foreground"
515
+ },
516
+ /* Light */
517
+ {
518
+ variant: "secondary",
519
+ appearance: "light",
520
+ className: "bg-muted border border-border text-foreground"
521
+ },
522
+ {
523
+ variant: "primary",
524
+ appearance: "light",
525
+ className: "text-foreground bg-[var(--color-primary-soft,var(--color-blue-50))] border border-[var(--color-primary-alpha,var(--color-blue-100))] [&_[data-slot=alert-icon]]:text-primary dark:bg-[var(--color-primary-soft,var(--color-blue-950))] dark:border-[var(--color-primary-alpha,var(--color-blue-900))]"
526
+ },
527
+ {
528
+ variant: "destructive",
529
+ appearance: "light",
530
+ className: "bg-[var(--color-destructive-soft,var(--color-red-50))] border border-[var(--color-destructive-alpha,var(--color-red-100))] text-foreground [&_[data-slot=alert-icon]]:text-destructive dark:bg-[var(--color-destructive-soft,var(--color-red-950))] dark:border-[var(--color-destructive-alpha,var(--color-red-900))] "
531
+ },
532
+ {
533
+ variant: "success",
534
+ appearance: "light",
535
+ className: "bg-[var(--color-success-soft,var(--color-green-50))] border border-[var(--color-success-alpha,var(--color-green-200))] text-foreground [&_[data-slot=alert-icon]]:text-[var(--color-success-foreground,var(--color-green-600))] dark:bg-[var(--color-success-soft,var(--color-green-950))] dark:border-[var(--color-success-alpha,var(--color-green-900))]"
536
+ },
537
+ {
538
+ variant: "info",
539
+ appearance: "light",
540
+ className: "bg-[var(--color-info-soft,var(--color-violet-50))] border border-[var(--color-info-alpha,var(--color-violet-100))] text-foreground [&_[data-slot=alert-icon]]:text-[var(--color-info-foreground,var(--color-violet-600))] dark:bg-[var(--color-info-soft,var(--color-violet-950))] dark:border-[var(--color-info-alpha,var(--color-violet-900))]"
541
+ },
542
+ {
543
+ variant: "warning",
544
+ appearance: "light",
545
+ className: "bg-[var(--color-warning-soft,var(--color-yellow-50))] border border-[var(--color-warning-alpha,var(--color-yellow-200))] text-foreground [&_[data-slot=alert-icon]]:text-[var(--color-warning-foreground,var(--color-yellow-600))] dark:bg-[var(--color-warning-soft,var(--color-yellow-950))] dark:border-[var(--color-warning-alpha,var(--color-yellow-900))]"
546
+ },
547
+ /* Mono */
548
+ {
549
+ variant: "mono",
550
+ icon: "primary",
551
+ className: "[&_[data-slot=alert-icon]]:text-primary"
552
+ },
553
+ {
554
+ variant: "mono",
555
+ icon: "warning",
556
+ className: "[&_[data-slot=alert-icon]]:text-[var(--color-warning-foreground,var(--color-yellow-600))]"
557
+ },
558
+ {
559
+ variant: "mono",
560
+ icon: "success",
561
+ className: "[&_[data-slot=alert-icon]]:text-[var(--color-success-foreground,var(--color-green-600))]"
562
+ },
563
+ {
564
+ variant: "mono",
565
+ icon: "destructive",
566
+ className: "[&_[data-slot=alert-icon]]:text-destructive"
567
+ },
568
+ {
569
+ variant: "mono",
570
+ icon: "info",
571
+ className: "[&_[data-slot=alert-icon]]:text-[var(--color-info-foreground,var(--color-violet-600))]"
572
+ }
573
+ ],
574
+ defaultVariants: {
575
+ variant: "secondary",
576
+ appearance: "solid",
577
+ size: "md"
578
+ }
579
+ }
580
+ );
581
+ function Alert({
582
+ className,
583
+ variant,
584
+ size,
585
+ icon,
586
+ appearance,
587
+ close = false,
588
+ onClose,
589
+ children,
590
+ ...props
591
+ }) {
592
+ return /* @__PURE__ */ jsxs(
593
+ "div",
594
+ {
595
+ "data-slot": "alert",
596
+ role: "alert",
597
+ className: cn(
598
+ alertVariants({ variant, size, icon, appearance }),
599
+ className
600
+ ),
601
+ ...props,
602
+ children: [
603
+ children,
604
+ close && /* @__PURE__ */ jsx(
605
+ Button,
606
+ {
607
+ size: "sm",
608
+ variant: "inverse",
609
+ mode: "icon",
610
+ onClick: onClose,
611
+ "aria-label": "Dismiss",
612
+ "data-slot": "alert-close",
613
+ className: cn("group shrink-0 size-4"),
614
+ children: /* @__PURE__ */ jsx(X, { className: "opacity-60 group-hover:opacity-100 size-4" })
615
+ }
616
+ )
617
+ ]
618
+ }
619
+ );
620
+ }
621
+ function AlertTitle({
622
+ className,
623
+ ...props
624
+ }) {
625
+ return /* @__PURE__ */ jsx(
626
+ "div",
627
+ {
628
+ "data-slot": "alert-title",
629
+ className: cn("grow tracking-tight", className),
630
+ ...props
631
+ }
632
+ );
633
+ }
634
+ function AlertIcon({ children, className, ...props }) {
635
+ return /* @__PURE__ */ jsx(
636
+ "div",
637
+ {
638
+ "data-slot": "alert-icon",
639
+ className: cn("shrink-0", className),
640
+ ...props,
641
+ children
642
+ }
643
+ );
644
+ }
645
+ function AlertToolbar({ children, className, ...props }) {
646
+ return /* @__PURE__ */ jsx("div", { "data-slot": "alert-toolbar", className: cn(className), ...props, children });
647
+ }
648
+ function AlertDescription({
649
+ className,
650
+ ...props
651
+ }) {
652
+ return /* @__PURE__ */ jsx(
653
+ "div",
654
+ {
655
+ "data-slot": "alert-description",
656
+ className: cn("text-sm [&_p]:leading-relaxed [&_p]:mb-2", className),
657
+ ...props
658
+ }
659
+ );
660
+ }
661
+ function AlertContent({
662
+ className,
663
+ ...props
664
+ }) {
665
+ return /* @__PURE__ */ jsx(
666
+ "div",
667
+ {
668
+ "data-slot": "alert-content",
669
+ className: cn(
670
+ "space-y-2 [&_[data-slot=alert-title]]:font-semibold",
671
+ className
672
+ ),
673
+ ...props
674
+ }
675
+ );
676
+ }
411
677
  function AlertDialog({
412
678
  ...props
413
679
  }) {
@@ -907,6 +1173,94 @@ function SheetDescription({ className, ...props }) {
907
1173
  }
908
1174
  );
909
1175
  }
1176
+ var avatarStatusVariants = cva(
1177
+ "flex items-center rounded-full size-2 border-2 border-background",
1178
+ {
1179
+ variants: {
1180
+ variant: {
1181
+ online: "bg-green-600",
1182
+ offline: "bg-zinc-600 dark:bg-zinc-300",
1183
+ busy: "bg-yellow-600",
1184
+ away: "bg-blue-600"
1185
+ }
1186
+ },
1187
+ defaultVariants: {
1188
+ variant: "online"
1189
+ }
1190
+ }
1191
+ );
1192
+ function Avatar({
1193
+ className,
1194
+ ...props
1195
+ }) {
1196
+ return /* @__PURE__ */ jsx(
1197
+ Avatar$1.Root,
1198
+ {
1199
+ "data-slot": "avatar",
1200
+ className: cn("relative flex shrink-0 size-10", className),
1201
+ ...props
1202
+ }
1203
+ );
1204
+ }
1205
+ function AvatarImage({
1206
+ className,
1207
+ ...props
1208
+ }) {
1209
+ return /* @__PURE__ */ jsx("div", { className: cn("relative overflow-hidden rounded-full", className), children: /* @__PURE__ */ jsx(
1210
+ Avatar$1.Image,
1211
+ {
1212
+ "data-slot": "avatar-image",
1213
+ className: cn("aspect-square h-full w-full"),
1214
+ ...props
1215
+ }
1216
+ ) });
1217
+ }
1218
+ function AvatarFallback({
1219
+ className,
1220
+ ...props
1221
+ }) {
1222
+ return /* @__PURE__ */ jsx(
1223
+ Avatar$1.Fallback,
1224
+ {
1225
+ "data-slot": "avatar-fallback",
1226
+ className: cn(
1227
+ "flex h-full w-full items-center justify-center rounded-full border border-border bg-accent text-accent-foreground text-xs",
1228
+ className
1229
+ ),
1230
+ ...props
1231
+ }
1232
+ );
1233
+ }
1234
+ function AvatarIndicator({
1235
+ className,
1236
+ ...props
1237
+ }) {
1238
+ return /* @__PURE__ */ jsx(
1239
+ "div",
1240
+ {
1241
+ "data-slot": "avatar-indicator",
1242
+ className: cn(
1243
+ "absolute flex size-6 items-center justify-center",
1244
+ className
1245
+ ),
1246
+ ...props
1247
+ }
1248
+ );
1249
+ }
1250
+ function AvatarStatus({
1251
+ className,
1252
+ variant,
1253
+ ...props
1254
+ }) {
1255
+ return /* @__PURE__ */ jsx(
1256
+ "div",
1257
+ {
1258
+ "data-slot": "avatar-status",
1259
+ className: cn(avatarStatusVariants({ variant }), className),
1260
+ ...props
1261
+ }
1262
+ );
1263
+ }
910
1264
  var AvatarGroupContext = React.createContext(
911
1265
  null
912
1266
  );
@@ -3722,6 +4076,6 @@ function useMounted() {
3722
4076
  return mounted;
3723
4077
  }
3724
4078
 
3725
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, Badge, BadgeButton, BadgeDot, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DataGrid, DataGridColumnHeader, DataGridColumnVisibility, DataGridContainer, DataGridPagination, DataGridProvider, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableLoader, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, Dialog, DialogBody, 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Label2 as Label, Popover, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, labelVariants, selectTriggerVariants, useCopyToClipboard, useDataGrid, useFormField, useIsMobile, useMounted };
4079
+ export { Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, BadgeDot, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DataGrid, DataGridColumnHeader, DataGridColumnVisibility, DataGridContainer, DataGridPagination, DataGridProvider, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableLoader, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, Dialog, DialogBody, 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Label2 as Label, Popover, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, avatarStatusVariants, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, labelVariants, selectTriggerVariants, useCopyToClipboard, useDataGrid, useFormField, useIsMobile, useMounted };
3726
4080
  //# sourceMappingURL=index.js.map
3727
4081
  //# sourceMappingURL=index.js.map