uilab-core 0.1.9 → 0.1.10
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 +16 -2
- package/dist/components/accordion.d.ts +8 -4
- package/dist/components/alert-dialog.d.ts +22 -11
- package/dist/components/alert.d.ts +6 -3
- package/dist/components/aspect-ratio.d.ts +2 -1
- package/dist/components/avatar.d.ts +6 -3
- package/dist/components/form.d.ts +3 -3
- package/dist/components/index.d.ts +0 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/spinner.d.ts +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +53 -37
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/container.d.ts +0 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
4
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
5
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -18,7 +17,7 @@ import { Drawer as Drawer$1 } from 'vaul';
|
|
|
18
17
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
19
18
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
20
19
|
import * as react_hook_form from 'react-hook-form';
|
|
21
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
20
|
+
import { FieldValues, FieldPath, ControllerProps, FormProviderProps } from 'react-hook-form';
|
|
22
21
|
import { Slot } from '@radix-ui/react-slot';
|
|
23
22
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
24
23
|
import { OTPInput } from 'input-otp';
|
|
@@ -32,41 +31,64 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
|
32
31
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
33
32
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
34
33
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
34
|
+
import { LucideProps } from 'lucide-react';
|
|
35
35
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
36
36
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
37
37
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
38
38
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
39
39
|
import { ClassValue } from 'clsx';
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
declare function
|
|
43
|
-
|
|
44
|
-
declare function
|
|
41
|
+
type AccordionProps = React$1.ComponentProps<typeof AccordionPrimitive.Root>;
|
|
42
|
+
declare function Accordion({ ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
43
|
+
type AccordionItemProps = React$1.ComponentProps<typeof AccordionPrimitive.Item>;
|
|
44
|
+
declare function AccordionItem({ className, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
45
|
+
type AccordionTriggerProps = React$1.ComponentProps<typeof AccordionPrimitive.Trigger>;
|
|
46
|
+
declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
|
|
47
|
+
type AccordionContentProps = React$1.ComponentProps<typeof AccordionPrimitive.Content>;
|
|
48
|
+
declare function AccordionContent({ className, children, ...props }: AccordionContentProps): react_jsx_runtime.JSX.Element;
|
|
45
49
|
|
|
46
50
|
declare const alertVariants: (props?: ({
|
|
47
51
|
variant?: "default" | "destructive" | null | undefined;
|
|
48
52
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
-
|
|
50
|
-
declare function
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
declare function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
declare function
|
|
58
|
-
|
|
59
|
-
declare function
|
|
60
|
-
|
|
61
|
-
declare function
|
|
62
|
-
|
|
63
|
-
declare function
|
|
64
|
-
|
|
65
|
-
declare function
|
|
66
|
-
|
|
67
|
-
declare function
|
|
68
|
-
|
|
69
|
-
declare function
|
|
53
|
+
type AlertProps = React$1.ComponentProps<'div'> & VariantProps<typeof alertVariants>;
|
|
54
|
+
declare function Alert({ className, variant, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
55
|
+
type AlertTitleProps = React$1.ComponentProps<'div'>;
|
|
56
|
+
declare function AlertTitle({ className, ...props }: AlertTitleProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
type AlertDescriptionProps = React$1.ComponentProps<'div'>;
|
|
58
|
+
declare function AlertDescription({ className, ...props }: AlertDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
60
|
+
type AlertDialogProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Root>;
|
|
61
|
+
declare function AlertDialog({ ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
type AlertDialogTriggerProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Trigger>;
|
|
63
|
+
declare function AlertDialogTrigger({ ...props }: AlertDialogTriggerProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
type AlertDialogPortalProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Portal>;
|
|
65
|
+
declare function AlertDialogPortal({ ...props }: AlertDialogPortalProps): react_jsx_runtime.JSX.Element;
|
|
66
|
+
type AlertDialogOverlayProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>;
|
|
67
|
+
declare function AlertDialogOverlay({ className, ...props }: AlertDialogOverlayProps): react_jsx_runtime.JSX.Element;
|
|
68
|
+
type AlertDialogContentProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Content>;
|
|
69
|
+
declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
|
|
70
|
+
type AlertDialogHeaderProps = React$1.ComponentProps<'div'>;
|
|
71
|
+
declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): react_jsx_runtime.JSX.Element;
|
|
72
|
+
type AlertDialogFooterProps = React$1.ComponentProps<'div'>;
|
|
73
|
+
declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
type AlertDialogTitleProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Title>;
|
|
75
|
+
declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
|
|
76
|
+
type AlertDialogDescriptionProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Description>;
|
|
77
|
+
declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
78
|
+
type AlertDialogActionProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Action>;
|
|
79
|
+
declare function AlertDialogAction({ className, ...props }: AlertDialogActionProps): react_jsx_runtime.JSX.Element;
|
|
80
|
+
type AlertDialogCancelProps = React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>;
|
|
81
|
+
declare function AlertDialogCancel({ className, ...props }: AlertDialogCancelProps): react_jsx_runtime.JSX.Element;
|
|
82
|
+
|
|
83
|
+
type AspectRatioProps = React.ComponentProps<typeof AspectRatioPrimitive.Root>;
|
|
84
|
+
declare function AspectRatio({ ...props }: AspectRatioProps): react_jsx_runtime.JSX.Element;
|
|
85
|
+
|
|
86
|
+
type AvatarProps = React$1.ComponentProps<typeof AvatarPrimitive.Root>;
|
|
87
|
+
declare function Avatar({ className, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
88
|
+
type AvatarImageProps = React$1.ComponentProps<typeof AvatarPrimitive.Image>;
|
|
89
|
+
declare function AvatarImage({ className, ...props }: AvatarImageProps): react_jsx_runtime.JSX.Element;
|
|
90
|
+
type AvatarFallbackProps = React$1.ComponentProps<typeof AvatarPrimitive.Fallback>;
|
|
91
|
+
declare function AvatarFallback({ className, ...props }: AvatarFallbackProps): react_jsx_runtime.JSX.Element;
|
|
70
92
|
|
|
71
93
|
declare const badgeVariants: (props?: ({
|
|
72
94
|
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
@@ -151,13 +173,6 @@ declare function CommandSeparator({ className, ...props }: React$1.ComponentProp
|
|
|
151
173
|
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
152
174
|
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
153
175
|
|
|
154
|
-
declare const containerVariants: (props?: ({
|
|
155
|
-
variant?: "constrainedPadded" | "breakpointPadded" | "narrowConstrainedPadded" | null | undefined;
|
|
156
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
157
|
-
declare function Container({ asChild, className, children, variant, ...props }: ComponentProps<"div"> & VariantProps<typeof containerVariants> & {
|
|
158
|
-
asChild?: boolean;
|
|
159
|
-
}): react_jsx_runtime.JSX.Element;
|
|
160
|
-
|
|
161
176
|
declare function ContextMenu({ ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
162
177
|
declare function ContextMenuTrigger({ ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
163
178
|
declare function ContextMenuGroup({ ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
@@ -249,7 +264,7 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
249
264
|
} | undefined>;
|
|
250
265
|
}): react_jsx_runtime.JSX.Element | null;
|
|
251
266
|
|
|
252
|
-
declare const Form: <TFieldValues extends FieldValues
|
|
267
|
+
declare const Form: <TFieldValues extends FieldValues = FieldValues>(props: FormProviderProps<TFieldValues>) => React$1.JSX.Element;
|
|
253
268
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
254
269
|
declare const useFormField: () => {
|
|
255
270
|
invalid: boolean;
|
|
@@ -482,7 +497,7 @@ declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>):
|
|
|
482
497
|
|
|
483
498
|
declare function Slider({ className, defaultValue, value, min, max, ...props }: React$1.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
484
499
|
|
|
485
|
-
declare function Spinner({ className, ...props }:
|
|
500
|
+
declare function Spinner({ className, ...props }: LucideProps): react_jsx_runtime.JSX.Element;
|
|
486
501
|
|
|
487
502
|
declare function Switch({ className, ...props }: React$1.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
488
503
|
|
|
@@ -517,4 +532,5 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
517
532
|
|
|
518
533
|
declare const _default: {};
|
|
519
534
|
|
|
520
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut,
|
|
535
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, 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, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, 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, 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, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonGroupVariants, buttonVariants, cn, _default as default, navigationMenuTriggerStyle, toggleVariants, useFormField, useIsMobile, useSidebar };
|
|
536
|
+
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AlertDescriptionProps, AlertDialogActionProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogDescriptionProps, AlertDialogFooterProps, AlertDialogHeaderProps, AlertDialogOverlayProps, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps, AlertProps, AlertTitleProps, AspectRatioProps, AvatarFallbackProps, AvatarImageProps, AvatarProps, PaginationLinkProps };
|