@offlinemediainc/offline-ui 0.1.4 → 0.2.1
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/USAGE.md +239 -0
- package/dist/chunk-4XVGVUB3.js +1490 -0
- package/dist/chunk-4XVGVUB3.js.map +1 -0
- package/dist/chunk-TVAKDV26.cjs +1514 -0
- package/dist/chunk-TVAKDV26.cjs.map +1 -0
- package/dist/design-system/index.cjs +88 -0
- package/dist/design-system/index.cjs.map +1 -0
- package/dist/design-system/index.d.cts +2109 -0
- package/dist/design-system/index.d.ts +2109 -0
- package/dist/design-system/index.js +3 -0
- package/dist/design-system/index.js.map +1 -0
- package/dist/design-system.json +1488 -0
- package/dist/index.cjs +355 -266
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +114 -33
- package/dist/index.js.map +1 -1
- package/package.json +16 -3
package/dist/index.d.cts
CHANGED
|
@@ -20,6 +20,7 @@ import { Toaster as Toaster$1 } from 'sonner';
|
|
|
20
20
|
export { toast } from 'sonner';
|
|
21
21
|
import * as RechartsPrimitive from 'recharts';
|
|
22
22
|
import { ClassValue } from 'clsx';
|
|
23
|
+
export { offlineDesignSystem } from './design-system/index.cjs';
|
|
23
24
|
|
|
24
25
|
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
25
26
|
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
@@ -199,6 +200,15 @@ declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
199
200
|
variant?: "default" | "outline" | null | undefined;
|
|
200
201
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
201
202
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
203
|
+
declare const SidebarMenuButtonLink: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
204
|
+
isActive?: boolean;
|
|
205
|
+
isExternal?: boolean;
|
|
206
|
+
showExternalIcon?: boolean;
|
|
207
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
208
|
+
} & VariantProps<(props?: ({
|
|
209
|
+
variant?: "default" | "outline" | null | undefined;
|
|
210
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
211
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
202
212
|
declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
203
213
|
asChild?: boolean;
|
|
204
214
|
showOnHover?: boolean;
|
|
@@ -227,6 +237,15 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPri
|
|
|
227
237
|
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
228
238
|
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
229
239
|
|
|
240
|
+
declare const alertVariants: (props?: ({
|
|
241
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
242
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
243
|
+
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
244
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
245
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
246
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
247
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
248
|
+
|
|
230
249
|
declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
231
250
|
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
232
251
|
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
@@ -502,4 +521,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
502
521
|
|
|
503
522
|
declare function useIsMobile(): boolean;
|
|
504
523
|
|
|
505
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleNavItem, CollapsibleTrigger, 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, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, type NavGroup, NavGroupComponent, type NavItem, type NavSubItem, OfflineAppIcon, OfflineSidebar, type OfflineSidebarProps, OfflineTopbar, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, type SidebarUser, type SidebarWorkspace, SimpleNavItem, Skeleton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserFooter, WorkspaceHeader, badgeVariants, buttonVariants, cn, useIsMobile, useSidebar };
|
|
524
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleNavItem, CollapsibleTrigger, 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, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, type NavGroup, NavGroupComponent, type NavItem, type NavSubItem, OfflineAppIcon, OfflineSidebar, type OfflineSidebarProps, OfflineTopbar, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, SidebarMenuButtonLink, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SidebarUser, type SidebarWorkspace, SimpleNavItem, Skeleton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserFooter, WorkspaceHeader, alertVariants, badgeVariants, buttonVariants, cn, useIsMobile, useSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { Toaster as Toaster$1 } from 'sonner';
|
|
|
20
20
|
export { toast } from 'sonner';
|
|
21
21
|
import * as RechartsPrimitive from 'recharts';
|
|
22
22
|
import { ClassValue } from 'clsx';
|
|
23
|
+
export { offlineDesignSystem } from './design-system/index.js';
|
|
23
24
|
|
|
24
25
|
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
25
26
|
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
@@ -199,6 +200,15 @@ declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
199
200
|
variant?: "default" | "outline" | null | undefined;
|
|
200
201
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
201
202
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
203
|
+
declare const SidebarMenuButtonLink: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
204
|
+
isActive?: boolean;
|
|
205
|
+
isExternal?: boolean;
|
|
206
|
+
showExternalIcon?: boolean;
|
|
207
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
208
|
+
} & VariantProps<(props?: ({
|
|
209
|
+
variant?: "default" | "outline" | null | undefined;
|
|
210
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
211
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
202
212
|
declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
203
213
|
asChild?: boolean;
|
|
204
214
|
showOnHover?: boolean;
|
|
@@ -227,6 +237,15 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPri
|
|
|
227
237
|
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
228
238
|
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
229
239
|
|
|
240
|
+
declare const alertVariants: (props?: ({
|
|
241
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
242
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
243
|
+
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
244
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
245
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
246
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
247
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
248
|
+
|
|
230
249
|
declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
231
250
|
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
232
251
|
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
@@ -502,4 +521,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
502
521
|
|
|
503
522
|
declare function useIsMobile(): boolean;
|
|
504
523
|
|
|
505
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleNavItem, CollapsibleTrigger, 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, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, type NavGroup, NavGroupComponent, type NavItem, type NavSubItem, OfflineAppIcon, OfflineSidebar, type OfflineSidebarProps, OfflineTopbar, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, type SidebarUser, type SidebarWorkspace, SimpleNavItem, Skeleton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserFooter, WorkspaceHeader, badgeVariants, buttonVariants, cn, useIsMobile, useSidebar };
|
|
524
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleNavItem, CollapsibleTrigger, 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, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, type NavGroup, NavGroupComponent, type NavItem, type NavSubItem, OfflineAppIcon, OfflineSidebar, type OfflineSidebarProps, OfflineTopbar, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, SidebarMenuButtonLink, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SidebarUser, type SidebarWorkspace, SimpleNavItem, Skeleton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserFooter, WorkspaceHeader, alertVariants, badgeVariants, buttonVariants, cn, useIsMobile, useSidebar };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { __objRest, __spreadValues, __spreadProps } from './chunk-4XVGVUB3.js';
|
|
2
|
+
export { offlineDesignSystem } from './chunk-4XVGVUB3.js';
|
|
1
3
|
import * as React12 from 'react';
|
|
2
4
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
5
|
import { clsx } from 'clsx';
|
|
@@ -7,7 +9,7 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
7
9
|
import { cva } from 'class-variance-authority';
|
|
8
10
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
9
11
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
|
-
import {
|
|
12
|
+
import { X, ChevronRight, Check, Circle, PanelLeft, ExternalLink, ChevronDown, Dot, ChevronUp, MoreHorizontal, ChevronsUpDown, User2, HelpCircle, Settings, LogOut, LayoutDashboard, Tag, Calendar, FileText } from 'lucide-react';
|
|
11
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
12
14
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
13
15
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -26,37 +28,6 @@ import Image2 from 'next/image';
|
|
|
26
28
|
import Link from 'next/link';
|
|
27
29
|
import { usePathname } from 'next/navigation';
|
|
28
30
|
|
|
29
|
-
var __defProp = Object.defineProperty;
|
|
30
|
-
var __defProps = Object.defineProperties;
|
|
31
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
32
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
33
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
34
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
35
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36
|
-
var __spreadValues = (a, b) => {
|
|
37
|
-
for (var prop in b || (b = {}))
|
|
38
|
-
if (__hasOwnProp.call(b, prop))
|
|
39
|
-
__defNormalProp(a, prop, b[prop]);
|
|
40
|
-
if (__getOwnPropSymbols)
|
|
41
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
42
|
-
if (__propIsEnum.call(b, prop))
|
|
43
|
-
__defNormalProp(a, prop, b[prop]);
|
|
44
|
-
}
|
|
45
|
-
return a;
|
|
46
|
-
};
|
|
47
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
48
|
-
var __objRest = (source, exclude) => {
|
|
49
|
-
var target = {};
|
|
50
|
-
for (var prop in source)
|
|
51
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
52
|
-
target[prop] = source[prop];
|
|
53
|
-
if (source != null && __getOwnPropSymbols)
|
|
54
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
55
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
56
|
-
target[prop] = source[prop];
|
|
57
|
-
}
|
|
58
|
-
return target;
|
|
59
|
-
};
|
|
60
31
|
function cn(...inputs) {
|
|
61
32
|
return twMerge(clsx(inputs));
|
|
62
33
|
}
|
|
@@ -1344,6 +1315,66 @@ var SidebarMenuButton = React12.forwardRef(
|
|
|
1344
1315
|
}
|
|
1345
1316
|
);
|
|
1346
1317
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
1318
|
+
var SidebarMenuButtonLink = React12.forwardRef(
|
|
1319
|
+
(_a, ref) => {
|
|
1320
|
+
var _b = _a, {
|
|
1321
|
+
isActive = false,
|
|
1322
|
+
isExternal = false,
|
|
1323
|
+
showExternalIcon = true,
|
|
1324
|
+
variant = "default",
|
|
1325
|
+
size = "default",
|
|
1326
|
+
tooltip,
|
|
1327
|
+
className,
|
|
1328
|
+
children
|
|
1329
|
+
} = _b, props = __objRest(_b, [
|
|
1330
|
+
"isActive",
|
|
1331
|
+
"isExternal",
|
|
1332
|
+
"showExternalIcon",
|
|
1333
|
+
"variant",
|
|
1334
|
+
"size",
|
|
1335
|
+
"tooltip",
|
|
1336
|
+
"className",
|
|
1337
|
+
"children"
|
|
1338
|
+
]);
|
|
1339
|
+
const { isMobile, state } = useSidebar();
|
|
1340
|
+
const externalProps = isExternal ? { target: "_blank", rel: "noopener noreferrer" } : {};
|
|
1341
|
+
const link = /* @__PURE__ */ jsxs(
|
|
1342
|
+
"a",
|
|
1343
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1344
|
+
ref,
|
|
1345
|
+
"data-sidebar": "menu-button",
|
|
1346
|
+
"data-size": size,
|
|
1347
|
+
"data-active": isActive,
|
|
1348
|
+
className: cn(sidebarMenuButtonVariants({ variant, size }), className)
|
|
1349
|
+
}, externalProps), props), {
|
|
1350
|
+
children: [
|
|
1351
|
+
children,
|
|
1352
|
+
isExternal && showExternalIcon && /* @__PURE__ */ jsx(ExternalLink, { className: "ml-auto h-3 w-3 opacity-60", "aria-hidden": "true" })
|
|
1353
|
+
]
|
|
1354
|
+
})
|
|
1355
|
+
);
|
|
1356
|
+
if (!tooltip) {
|
|
1357
|
+
return link;
|
|
1358
|
+
}
|
|
1359
|
+
if (typeof tooltip === "string") {
|
|
1360
|
+
tooltip = {
|
|
1361
|
+
children: tooltip
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
1365
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: link }),
|
|
1366
|
+
/* @__PURE__ */ jsx(
|
|
1367
|
+
TooltipContent,
|
|
1368
|
+
__spreadValues({
|
|
1369
|
+
side: "right",
|
|
1370
|
+
align: "center",
|
|
1371
|
+
hidden: state !== "collapsed" || isMobile
|
|
1372
|
+
}, tooltip)
|
|
1373
|
+
)
|
|
1374
|
+
] });
|
|
1375
|
+
}
|
|
1376
|
+
);
|
|
1377
|
+
SidebarMenuButtonLink.displayName = "SidebarMenuButtonLink";
|
|
1347
1378
|
var SidebarMenuAction = React12.forwardRef((_a, ref) => {
|
|
1348
1379
|
var _b = _a, { className, asChild = false, showOnHover = false } = _b, props = __objRest(_b, ["className", "asChild", "showOnHover"]);
|
|
1349
1380
|
const Comp = asChild ? Slot : "button";
|
|
@@ -1550,6 +1581,56 @@ var AccordionContent = React12.forwardRef((_a, ref) => {
|
|
|
1550
1581
|
);
|
|
1551
1582
|
});
|
|
1552
1583
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
1584
|
+
var alertVariants = cva(
|
|
1585
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
1586
|
+
{
|
|
1587
|
+
variants: {
|
|
1588
|
+
variant: {
|
|
1589
|
+
default: "bg-background text-foreground",
|
|
1590
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
|
|
1591
|
+
warning: "border-[var(--colors-yellow-400)]/50 bg-[var(--colors-yellow-50)] text-[var(--colors-yellow-800)] [&>svg]:text-[var(--colors-yellow-600)]",
|
|
1592
|
+
success: "border-[var(--semantic-success500)]/50 bg-green-50 text-green-800 [&>svg]:text-[var(--semantic-success500)]"
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
defaultVariants: {
|
|
1596
|
+
variant: "default"
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
);
|
|
1600
|
+
var Alert = React12.forwardRef((_a, ref) => {
|
|
1601
|
+
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
1602
|
+
return /* @__PURE__ */ jsx(
|
|
1603
|
+
"div",
|
|
1604
|
+
__spreadValues({
|
|
1605
|
+
ref,
|
|
1606
|
+
role: "alert",
|
|
1607
|
+
className: cn(alertVariants({ variant }), className)
|
|
1608
|
+
}, props)
|
|
1609
|
+
);
|
|
1610
|
+
});
|
|
1611
|
+
Alert.displayName = "Alert";
|
|
1612
|
+
var AlertTitle = React12.forwardRef((_a, ref) => {
|
|
1613
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1614
|
+
return /* @__PURE__ */ jsx(
|
|
1615
|
+
"h5",
|
|
1616
|
+
__spreadValues({
|
|
1617
|
+
ref,
|
|
1618
|
+
className: cn("mb-1 font-medium leading-none tracking-tight", className)
|
|
1619
|
+
}, props)
|
|
1620
|
+
);
|
|
1621
|
+
});
|
|
1622
|
+
AlertTitle.displayName = "AlertTitle";
|
|
1623
|
+
var AlertDescription = React12.forwardRef((_a, ref) => {
|
|
1624
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1625
|
+
return /* @__PURE__ */ jsx(
|
|
1626
|
+
"div",
|
|
1627
|
+
__spreadValues({
|
|
1628
|
+
ref,
|
|
1629
|
+
className: cn("text-sm [&_p]:leading-relaxed", className)
|
|
1630
|
+
}, props)
|
|
1631
|
+
);
|
|
1632
|
+
});
|
|
1633
|
+
AlertDescription.displayName = "AlertDescription";
|
|
1553
1634
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1554
1635
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1555
1636
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
@@ -2603,6 +2684,6 @@ function OfflineSidebar({
|
|
|
2603
2684
|
] });
|
|
2604
2685
|
}
|
|
2605
2686
|
|
|
2606
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleNavItem, CollapsibleTrigger2 as CollapsibleTrigger, 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, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item2 as Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label2 as Label, NavGroupComponent, OfflineAppIcon, OfflineSidebar, OfflineTopbar, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 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, SimpleNavItem, Skeleton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserFooter, WorkspaceHeader, badgeVariants, buttonVariants, cn, useIsMobile, useSidebar };
|
|
2687
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, 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, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleNavItem, CollapsibleTrigger2 as CollapsibleTrigger, 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, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item2 as Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label2 as Label, NavGroupComponent, OfflineAppIcon, OfflineSidebar, OfflineTopbar, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 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, SidebarMenuButtonLink, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleNavItem, Skeleton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserFooter, WorkspaceHeader, alertVariants, badgeVariants, buttonVariants, cn, useIsMobile, useSidebar };
|
|
2607
2688
|
//# sourceMappingURL=index.js.map
|
|
2608
2689
|
//# sourceMappingURL=index.js.map
|