@tradalab/lyra 3.2.0 → 3.4.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/README.md +34 -2
- package/dist/blocks/index.d.ts +68 -1
- package/dist/blocks/index.js +152 -4
- package/dist/blocks/index.js.map +1 -1
- package/dist/{chunk-DUWK53B5.js → chunk-EJP7F42V.js} +41 -4
- package/dist/chunk-EJP7F42V.js.map +1 -0
- package/dist/data-table/index.d.ts +10 -1
- package/dist/data-table/index.js +14 -1
- package/dist/data-table/index.js.map +1 -1
- package/dist/shell/index.d.ts +66 -2
- package/dist/shell/index.js +36 -3
- package/dist/shell/index.js.map +1 -1
- package/dist/ui/index.d.ts +58 -5
- package/dist/ui/index.js +27 -41
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/globals.css +631 -0
- package/dist/chunk-DUWK53B5.js.map +0 -1
package/dist/ui/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Spinner } from '../chunk-
|
|
3
|
-
export { Alert, AlertAction, AlertDescription, AlertTitle, Badge, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Label, Progress, Spinner, Switch, badgeVariants, useComboboxAnchor } from '../chunk-
|
|
2
|
+
import { Spinner, Badge } from '../chunk-EJP7F42V.js';
|
|
3
|
+
export { Alert, AlertAction, AlertDescription, AlertTitle, Badge, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Label, Progress, RadioGroup, RadioGroupItem, Spinner, Switch, badgeVariants, useComboboxAnchor } from '../chunk-EJP7F42V.js';
|
|
4
4
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from '../chunk-CV3UXQBT.js';
|
|
5
5
|
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from '../chunk-FHM6VOPQ.js';
|
|
6
6
|
export { AccountMenu, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ScrollArea, ScrollBar, 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-BTZYRWFX.js';
|
|
@@ -16,7 +16,7 @@ import { Button, buttonVariants } from '../chunk-VGOGWZCF.js';
|
|
|
16
16
|
export { Button, Input, buttonVariants } from '../chunk-VGOGWZCF.js';
|
|
17
17
|
import { cn } from '../chunk-XH55BHUU.js';
|
|
18
18
|
import * as React6 from 'react';
|
|
19
|
-
import { Direction, Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Slot, Checkbox as Checkbox$1, Collapsible as Collapsible$1, HoverCard as HoverCard$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1,
|
|
19
|
+
import { Direction, Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Slot, Checkbox as Checkbox$1, Collapsible as Collapsible$1, HoverCard as HoverCard$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Select as Select$1, Slider as Slider$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
20
20
|
import { ChevronDownIcon, ChevronUpIcon, ChevronLeftIcon, ChevronRightIcon, CheckIcon, MinusIcon, ArrowDownIcon, MoreHorizontalIcon, XIcon, CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, Loader2Icon } from 'lucide-react';
|
|
21
21
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
22
|
import { cva } from 'class-variance-authority';
|
|
@@ -2496,43 +2496,6 @@ function PaginationEllipsis({
|
|
|
2496
2496
|
}
|
|
2497
2497
|
);
|
|
2498
2498
|
}
|
|
2499
|
-
function RadioGroup({
|
|
2500
|
-
className,
|
|
2501
|
-
...props
|
|
2502
|
-
}) {
|
|
2503
|
-
return /* @__PURE__ */ jsx(
|
|
2504
|
-
RadioGroup$1.Root,
|
|
2505
|
-
{
|
|
2506
|
-
"data-slot": "radio-group",
|
|
2507
|
-
className: cn("grid w-full gap-2", className),
|
|
2508
|
-
...props
|
|
2509
|
-
}
|
|
2510
|
-
);
|
|
2511
|
-
}
|
|
2512
|
-
function RadioGroupItem({
|
|
2513
|
-
className,
|
|
2514
|
-
...props
|
|
2515
|
-
}) {
|
|
2516
|
-
return /* @__PURE__ */ jsx(
|
|
2517
|
-
RadioGroup$1.Item,
|
|
2518
|
-
{
|
|
2519
|
-
"data-slot": "radio-group-item",
|
|
2520
|
-
className: cn(
|
|
2521
|
-
"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",
|
|
2522
|
-
className
|
|
2523
|
-
),
|
|
2524
|
-
...props,
|
|
2525
|
-
children: /* @__PURE__ */ jsx(
|
|
2526
|
-
RadioGroup$1.Indicator,
|
|
2527
|
-
{
|
|
2528
|
-
"data-slot": "radio-group-indicator",
|
|
2529
|
-
className: "flex size-4 items-center justify-center",
|
|
2530
|
-
children: /* @__PURE__ */ jsx("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
|
|
2531
|
-
}
|
|
2532
|
-
)
|
|
2533
|
-
}
|
|
2534
|
-
);
|
|
2535
|
-
}
|
|
2536
2499
|
function ResizablePanelGroup({
|
|
2537
2500
|
className,
|
|
2538
2501
|
...props
|
|
@@ -3189,7 +3152,30 @@ function Container({ as: Component = "div", maxWidth = "xl", fluid = false, cent
|
|
|
3189
3152
|
}
|
|
3190
3153
|
);
|
|
3191
3154
|
}
|
|
3155
|
+
function EmptyState({ icon, title, description, action, className }) {
|
|
3156
|
+
return /* @__PURE__ */ jsxs(Empty, { className, children: [
|
|
3157
|
+
/* @__PURE__ */ jsxs(EmptyHeader, { children: [
|
|
3158
|
+
icon ? /* @__PURE__ */ jsx(EmptyMedia, { variant: "icon", children: icon }) : null,
|
|
3159
|
+
/* @__PURE__ */ jsx(EmptyTitle, { children: title }),
|
|
3160
|
+
description ? /* @__PURE__ */ jsx(EmptyDescription, { children: description }) : null
|
|
3161
|
+
] }),
|
|
3162
|
+
action ? /* @__PURE__ */ jsx(EmptyContent, { children: action }) : null
|
|
3163
|
+
] });
|
|
3164
|
+
}
|
|
3165
|
+
var TONE = {
|
|
3166
|
+
ok: "text-success border-success/45",
|
|
3167
|
+
attention: "text-warning border-warning/45",
|
|
3168
|
+
bad: "text-destructive border-destructive/45",
|
|
3169
|
+
info: "text-info border-info/45",
|
|
3170
|
+
neutral: "text-muted-foreground"
|
|
3171
|
+
};
|
|
3172
|
+
function StatusBadge({ tone, children, className }) {
|
|
3173
|
+
return /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: cn("gap-1.5", TONE[tone], className), children: [
|
|
3174
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "size-[5px] shrink-0 bg-current" }),
|
|
3175
|
+
children
|
|
3176
|
+
] });
|
|
3177
|
+
}
|
|
3192
3178
|
|
|
3193
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Bubble, BubbleContent, BubbleGroup, BubbleReactions, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Container, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, HoverCard, HoverCardContent, HoverCardTrigger, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Marker, MarkerContent, MarkerIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious,
|
|
3179
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Bubble, BubbleContent, BubbleGroup, BubbleReactions, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Container, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, HoverCard, HoverCardContent, HoverCardTrigger, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Marker, MarkerContent, MarkerIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, StatusBadge, Tabs, TabsContent, TabsList, TabsTrigger, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastPortal, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, buttonGroupVariants, createToastManager, markerVariants, navigationMenuTriggerStyle, tabsListVariants, toast, toggleVariants, useCarousel, useDirection, useToastManager };
|
|
3194
3180
|
//# sourceMappingURL=index.js.map
|
|
3195
3181
|
//# sourceMappingURL=index.js.map
|