@tradalab/lyra 1.0.0 → 1.1.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/dist/{breadcrumb-CGzHbSCd.d.ts → breadcrumb-CgEcSonR.d.ts} +42 -1
- package/dist/chunk-CV3UXQBT.js +110 -0
- package/dist/chunk-CV3UXQBT.js.map +1 -0
- package/dist/{chunk-E2QCV5QI.js → chunk-NJQZMWIU.js} +197 -16
- package/dist/chunk-NJQZMWIU.js.map +1 -0
- package/dist/{chunk-X2BCIKOJ.js → chunk-VEWKPOMS.js} +3 -105
- package/dist/chunk-VEWKPOMS.js.map +1 -0
- package/dist/data-table/index.js +2 -1
- package/dist/data-table/index.js.map +1 -1
- package/dist/shell/index.d.ts +117 -2
- package/dist/shell/index.js +154 -5
- package/dist/shell/index.js.map +1 -1
- package/dist/ui/index.d.ts +3 -42
- package/dist/ui/index.js +13 -193
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-E2QCV5QI.js.map +0 -1
- package/dist/chunk-X2BCIKOJ.js.map +0 -1
package/dist/ui/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, Dialog as Dialog$1, ContextMenu as ContextMenu$1, DropdownMenu as DropdownMenu$1, Label as Label$1, HoverCard as HoverCard$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Slider as Slider$1, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import {
|
|
6
|
-
export { B as Breadcrumb,
|
|
5
|
+
import { d as Button, e as Separator } from '../breadcrumb-CgEcSonR.js';
|
|
6
|
+
export { f as AccountMenu, c as AccountMenuLabels, g as AccountMenuProps, A as AccountMenuUser, B as Breadcrumb, h as BreadcrumbEllipsis, i as BreadcrumbItem, j as BreadcrumbLink, k as BreadcrumbList, l as BreadcrumbPage, m as BreadcrumbSeparator, I as Input, b as Sidebar, n as SidebarContent, o as SidebarFooter, p as SidebarGroup, q as SidebarGroupAction, r as SidebarGroupContent, s as SidebarGroupLabel, t as SidebarHeader, u as SidebarInput, a as SidebarInset, v as SidebarMenu, w as SidebarMenuAction, x as SidebarMenuBadge, y as SidebarMenuButton, z as SidebarMenuItem, C as SidebarMenuSkeleton, D as SidebarMenuSub, E as SidebarMenuSubButton, F as SidebarMenuSubItem, S as SidebarProvider, G as SidebarRail, H as SidebarSeparator, J as SidebarTrigger, T as Tooltip, K as TooltipContent, L as TooltipProvider, M as TooltipTrigger, N as buttonVariants, O as defaultAccountMenuLabels, P as initialsOf, Q as useSidebar } from '../breadcrumb-CgEcSonR.js';
|
|
7
7
|
import { Command as Command$1 } from 'cmdk';
|
|
8
8
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
9
9
|
import { OTPInput } from 'input-otp';
|
|
@@ -374,43 +374,4 @@ declare function ToggleGroup({ className, variant, size, spacing, orientation, c
|
|
|
374
374
|
}): React$1.JSX.Element;
|
|
375
375
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): React$1.JSX.Element;
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
name?: string | null;
|
|
379
|
-
email?: string | null;
|
|
380
|
-
image?: string | null;
|
|
381
|
-
};
|
|
382
|
-
type AccountMenuLabels = {
|
|
383
|
-
account: string;
|
|
384
|
-
guest: string;
|
|
385
|
-
signIn: string;
|
|
386
|
-
switchAccount: string;
|
|
387
|
-
signOut: string;
|
|
388
|
-
};
|
|
389
|
-
/** Default English labels — spread + override, or reference directly. */
|
|
390
|
-
declare const defaultAccountMenuLabels: AccountMenuLabels;
|
|
391
|
-
interface AccountMenuProps {
|
|
392
|
-
/** Current user, or `null`/`undefined` for a guest. */
|
|
393
|
-
user?: AccountMenuUser | null;
|
|
394
|
-
/** Override labels — pass translated strings if your app is localized. */
|
|
395
|
-
labels?: Partial<AccountMenuLabels>;
|
|
396
|
-
/** Sign-out handler (signed-in only). Item hidden if omitted. */
|
|
397
|
-
onSignOut?: () => void;
|
|
398
|
-
/** Switch-account handler (signed-in only). Item hidden if omitted. */
|
|
399
|
-
onSwitchAccount?: () => void;
|
|
400
|
-
/** Sign-in handler (guest only). Item hidden if omitted. */
|
|
401
|
-
onSignIn?: () => void;
|
|
402
|
-
/** Dropdown alignment. Default `"end"`. */
|
|
403
|
-
align?: "start" | "center" | "end";
|
|
404
|
-
/** Extra menu content (e.g. theme/language submenus) above the account actions. */
|
|
405
|
-
children?: React$1.ReactNode;
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Account dropdown built on lyra's standardized session shape. Signed-in users
|
|
409
|
-
* get an avatar trigger + switch-account / sign-out; guests get a neutral icon +
|
|
410
|
-
* sign-in. All actions are callbacks and all labels are props, so the component
|
|
411
|
-
* stays framework- and i18n-agnostic. Use `children` to inject app preferences
|
|
412
|
-
* (theme, language, …) above the account actions.
|
|
413
|
-
*/
|
|
414
|
-
declare function AccountMenu({ user, labels, onSignOut, onSwitchAccount, onSignIn, align, children, }: AccountMenuProps): React$1.JSX.Element;
|
|
415
|
-
|
|
416
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, type AccountMenuLabels, type AccountMenuProps, type AccountMenuUser, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, 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, 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, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, HoverCard, HoverCardContent, HoverCardTrigger, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, 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, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, badgeVariants, buttonGroupVariants, defaultAccountMenuLabels, navigationMenuTriggerStyle, tabsListVariants, toggleVariants };
|
|
377
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, 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, 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, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, HoverCard, HoverCardContent, HoverCardTrigger, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, 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, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, badgeVariants, buttonGroupVariants, navigationMenuTriggerStyle, tabsListVariants, toggleVariants };
|
package/dist/ui/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Dialog, DialogHeader, DialogTitle, DialogDescription, DialogContent, Label } from '../chunk-BEAQYKGM.js';
|
|
3
3
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Label } from '../chunk-BEAQYKGM.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Input, 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, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, useSidebar } from '../chunk-E2QCV5QI.js';
|
|
4
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from '../chunk-CV3UXQBT.js';
|
|
5
|
+
import { Separator, Input } from '../chunk-NJQZMWIU.js';
|
|
6
|
+
export { AccountMenu, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Input, 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, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, defaultAccountMenuLabels, initialsOf, useSidebar } from '../chunk-NJQZMWIU.js';
|
|
8
7
|
import '../chunk-QYA2HGKW.js';
|
|
8
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '../chunk-VEWKPOMS.js';
|
|
9
9
|
import { Button } from '../chunk-KFQOYZ64.js';
|
|
10
10
|
export { Button, buttonVariants } from '../chunk-KFQOYZ64.js';
|
|
11
11
|
import { cn } from '../chunk-XH55BHUU.js';
|
|
12
|
-
import * as
|
|
12
|
+
import * as React25 from 'react';
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1,
|
|
15
|
-
import { ChevronDownIcon, ChevronUpIcon, CheckIcon, SearchIcon, ChevronRightIcon, MinusIcon, ChevronLeftIcon, MoreHorizontalIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, InfoIcon, CircleCheckIcon
|
|
16
|
-
import { jsx, jsxs
|
|
14
|
+
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Slot, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, HoverCard as HoverCard$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Slider as Slider$1, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
15
|
+
import { ChevronDownIcon, ChevronUpIcon, CheckIcon, SearchIcon, ChevronRightIcon, MinusIcon, ChevronLeftIcon, MoreHorizontalIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, InfoIcon, CircleCheckIcon } from 'lucide-react';
|
|
16
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
17
|
import { cva } from 'class-variance-authority';
|
|
18
18
|
import { Command as Command$1 } from 'cmdk';
|
|
19
19
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
@@ -303,101 +303,6 @@ function AlertDialogCancel({
|
|
|
303
303
|
function AspectRatio({ ...props }) {
|
|
304
304
|
return /* @__PURE__ */ jsx(AspectRatio$1.Root, { "data-slot": "aspect-ratio", ...props });
|
|
305
305
|
}
|
|
306
|
-
function Avatar({
|
|
307
|
-
className,
|
|
308
|
-
size = "default",
|
|
309
|
-
...props
|
|
310
|
-
}) {
|
|
311
|
-
return /* @__PURE__ */ jsx(
|
|
312
|
-
Avatar$1.Root,
|
|
313
|
-
{
|
|
314
|
-
"data-slot": "avatar",
|
|
315
|
-
"data-size": size,
|
|
316
|
-
className: cn(
|
|
317
|
-
"group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",
|
|
318
|
-
className
|
|
319
|
-
),
|
|
320
|
-
...props
|
|
321
|
-
}
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
function AvatarImage({
|
|
325
|
-
className,
|
|
326
|
-
...props
|
|
327
|
-
}) {
|
|
328
|
-
return /* @__PURE__ */ jsx(
|
|
329
|
-
Avatar$1.Image,
|
|
330
|
-
{
|
|
331
|
-
"data-slot": "avatar-image",
|
|
332
|
-
className: cn(
|
|
333
|
-
"aspect-square size-full rounded-full object-cover",
|
|
334
|
-
className
|
|
335
|
-
),
|
|
336
|
-
...props
|
|
337
|
-
}
|
|
338
|
-
);
|
|
339
|
-
}
|
|
340
|
-
function AvatarFallback({
|
|
341
|
-
className,
|
|
342
|
-
...props
|
|
343
|
-
}) {
|
|
344
|
-
return /* @__PURE__ */ jsx(
|
|
345
|
-
Avatar$1.Fallback,
|
|
346
|
-
{
|
|
347
|
-
"data-slot": "avatar-fallback",
|
|
348
|
-
className: cn(
|
|
349
|
-
"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
350
|
-
className
|
|
351
|
-
),
|
|
352
|
-
...props
|
|
353
|
-
}
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
function AvatarBadge({ className, ...props }) {
|
|
357
|
-
return /* @__PURE__ */ jsx(
|
|
358
|
-
"span",
|
|
359
|
-
{
|
|
360
|
-
"data-slot": "avatar-badge",
|
|
361
|
-
className: cn(
|
|
362
|
-
"absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none",
|
|
363
|
-
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
364
|
-
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
365
|
-
"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
|
|
366
|
-
className
|
|
367
|
-
),
|
|
368
|
-
...props
|
|
369
|
-
}
|
|
370
|
-
);
|
|
371
|
-
}
|
|
372
|
-
function AvatarGroup({ className, ...props }) {
|
|
373
|
-
return /* @__PURE__ */ jsx(
|
|
374
|
-
"div",
|
|
375
|
-
{
|
|
376
|
-
"data-slot": "avatar-group",
|
|
377
|
-
className: cn(
|
|
378
|
-
"group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",
|
|
379
|
-
className
|
|
380
|
-
),
|
|
381
|
-
...props
|
|
382
|
-
}
|
|
383
|
-
);
|
|
384
|
-
}
|
|
385
|
-
function AvatarGroupCount({
|
|
386
|
-
className,
|
|
387
|
-
...props
|
|
388
|
-
}) {
|
|
389
|
-
return /* @__PURE__ */ jsx(
|
|
390
|
-
"div",
|
|
391
|
-
{
|
|
392
|
-
"data-slot": "avatar-group-count",
|
|
393
|
-
className: cn(
|
|
394
|
-
"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-xs text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",
|
|
395
|
-
className
|
|
396
|
-
),
|
|
397
|
-
...props
|
|
398
|
-
}
|
|
399
|
-
);
|
|
400
|
-
}
|
|
401
306
|
var badgeVariants = cva(
|
|
402
307
|
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-none border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
403
308
|
{
|
|
@@ -1318,7 +1223,7 @@ function InputOTPSlot({
|
|
|
1318
1223
|
className,
|
|
1319
1224
|
...props
|
|
1320
1225
|
}) {
|
|
1321
|
-
const inputOTPContext =
|
|
1226
|
+
const inputOTPContext = React25.useContext(OTPInputContext);
|
|
1322
1227
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
1323
1228
|
return /* @__PURE__ */ jsxs(
|
|
1324
1229
|
"div",
|
|
@@ -2013,7 +1918,7 @@ function Slider({
|
|
|
2013
1918
|
max = 100,
|
|
2014
1919
|
...props
|
|
2015
1920
|
}) {
|
|
2016
|
-
const _values =
|
|
1921
|
+
const _values = React25.useMemo(
|
|
2017
1922
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
2018
1923
|
[value, defaultValue, min, max]
|
|
2019
1924
|
);
|
|
@@ -2221,7 +2126,7 @@ function Toggle({
|
|
|
2221
2126
|
}) {
|
|
2222
2127
|
return /* @__PURE__ */ jsx(Toggle$1.Root, { "data-slot": "toggle", className: cn(toggleVariants({ variant, size, className })), ...props });
|
|
2223
2128
|
}
|
|
2224
|
-
var ToggleGroupContext =
|
|
2129
|
+
var ToggleGroupContext = React25.createContext({
|
|
2225
2130
|
size: "default",
|
|
2226
2131
|
variant: "default",
|
|
2227
2132
|
spacing: 0,
|
|
@@ -2261,7 +2166,7 @@ function ToggleGroupItem({
|
|
|
2261
2166
|
size = "default",
|
|
2262
2167
|
...props
|
|
2263
2168
|
}) {
|
|
2264
|
-
const context =
|
|
2169
|
+
const context = React25.useContext(ToggleGroupContext);
|
|
2265
2170
|
return /* @__PURE__ */ jsx(
|
|
2266
2171
|
ToggleGroup$1.Item,
|
|
2267
2172
|
{
|
|
@@ -2282,92 +2187,7 @@ function ToggleGroupItem({
|
|
|
2282
2187
|
}
|
|
2283
2188
|
);
|
|
2284
2189
|
}
|
|
2285
|
-
var defaultAccountMenuLabels = {
|
|
2286
|
-
account: "Account",
|
|
2287
|
-
guest: "Guest",
|
|
2288
|
-
signIn: "Sign in",
|
|
2289
|
-
switchAccount: "Switch account",
|
|
2290
|
-
signOut: "Sign out"
|
|
2291
|
-
};
|
|
2292
|
-
function AccountMenu({
|
|
2293
|
-
user,
|
|
2294
|
-
labels,
|
|
2295
|
-
onSignOut,
|
|
2296
|
-
onSwitchAccount,
|
|
2297
|
-
onSignIn,
|
|
2298
|
-
align = "end",
|
|
2299
|
-
children
|
|
2300
|
-
}) {
|
|
2301
|
-
const l = { ...defaultAccountMenuLabels, ...labels };
|
|
2302
|
-
const displayName = user?.name ?? user?.email ?? l.account;
|
|
2303
|
-
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
2304
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: user ? /* @__PURE__ */ jsxs(
|
|
2305
|
-
"button",
|
|
2306
|
-
{
|
|
2307
|
-
type: "button",
|
|
2308
|
-
"aria-label": l.account,
|
|
2309
|
-
className: cn(
|
|
2310
|
-
"focus-visible:ring-ring flex items-center gap-3 rounded-none outline-none focus-visible:ring-2"
|
|
2311
|
-
),
|
|
2312
|
-
children: [
|
|
2313
|
-
/* @__PURE__ */ jsxs("span", { className: "hidden text-right leading-tight sm:flex sm:flex-col", children: [
|
|
2314
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: user.name ?? "\u2014" }),
|
|
2315
|
-
user.email ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs", children: user.email }) : null
|
|
2316
|
-
] }),
|
|
2317
|
-
/* @__PURE__ */ jsxs(Avatar, { children: [
|
|
2318
|
-
user.image ? /* @__PURE__ */ jsx(AvatarImage, { src: user.image, alt: displayName }) : null,
|
|
2319
|
-
/* @__PURE__ */ jsx(AvatarFallback, { children: initialsOf(user.name ?? user.email) })
|
|
2320
|
-
] })
|
|
2321
|
-
]
|
|
2322
|
-
}
|
|
2323
|
-
) : /* @__PURE__ */ jsxs(
|
|
2324
|
-
"button",
|
|
2325
|
-
{
|
|
2326
|
-
type: "button",
|
|
2327
|
-
"aria-label": l.account,
|
|
2328
|
-
className: cn(
|
|
2329
|
-
"focus-visible:ring-ring text-muted-foreground flex items-center gap-2 rounded-none outline-none focus-visible:ring-2"
|
|
2330
|
-
),
|
|
2331
|
-
children: [
|
|
2332
|
-
/* @__PURE__ */ jsx("span", { className: "hidden text-sm sm:inline", children: l.guest }),
|
|
2333
|
-
/* @__PURE__ */ jsx(CircleUser, { className: "size-7" })
|
|
2334
|
-
]
|
|
2335
|
-
}
|
|
2336
|
-
) }),
|
|
2337
|
-
/* @__PURE__ */ jsxs(DropdownMenuContent, { align, className: "w-56", children: [
|
|
2338
|
-
user ? /* @__PURE__ */ jsxs(DropdownMenuLabel, { className: "flex flex-col gap-0.5", children: [
|
|
2339
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium leading-tight", children: user.name ?? "\u2014" }),
|
|
2340
|
-
user.email ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs font-normal leading-tight", children: user.email }) : null
|
|
2341
|
-
] }) : /* @__PURE__ */ jsx(DropdownMenuLabel, { className: "text-muted-foreground font-normal", children: l.guest }),
|
|
2342
|
-
children ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2343
|
-
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
2344
|
-
children
|
|
2345
|
-
] }) : null,
|
|
2346
|
-
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
2347
|
-
user ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2348
|
-
onSwitchAccount ? /* @__PURE__ */ jsxs(DropdownMenuItem, { onSelect: onSwitchAccount, children: [
|
|
2349
|
-
/* @__PURE__ */ jsx(Users, { className: "mr-2" }),
|
|
2350
|
-
l.switchAccount
|
|
2351
|
-
] }) : null,
|
|
2352
|
-
onSignOut ? /* @__PURE__ */ jsxs(DropdownMenuItem, { variant: "destructive", onSelect: onSignOut, children: [
|
|
2353
|
-
/* @__PURE__ */ jsx(LogOut, { className: "mr-2" }),
|
|
2354
|
-
l.signOut
|
|
2355
|
-
] }) : null
|
|
2356
|
-
] }) : onSignIn ? /* @__PURE__ */ jsxs(DropdownMenuItem, { onSelect: onSignIn, children: [
|
|
2357
|
-
/* @__PURE__ */ jsx(LogIn, { className: "mr-2" }),
|
|
2358
|
-
l.signIn
|
|
2359
|
-
] }) : null
|
|
2360
|
-
] })
|
|
2361
|
-
] });
|
|
2362
|
-
}
|
|
2363
|
-
function initialsOf(value) {
|
|
2364
|
-
if (!value) return "?";
|
|
2365
|
-
const base = value.includes("@") ? value.split("@")[0] ?? value : value;
|
|
2366
|
-
const parts = base.split(/[\s._-]+/).filter(Boolean);
|
|
2367
|
-
const letters = (parts[0]?.[0] ?? "") + (parts[1]?.[0] ?? "");
|
|
2368
|
-
return (letters || base.slice(0, 2)).toUpperCase();
|
|
2369
|
-
}
|
|
2370
2190
|
|
|
2371
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger,
|
|
2191
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, HoverCard, HoverCardContent, HoverCardTrigger, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, 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, Slider, Spinner, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, badgeVariants, buttonGroupVariants, navigationMenuTriggerStyle, tabsListVariants, toggleVariants };
|
|
2372
2192
|
//# sourceMappingURL=index.js.map
|
|
2373
2193
|
//# sourceMappingURL=index.js.map
|