@framingui/ui 0.6.6 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +26 -9
- package/dist/index.mjs +310 -235
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -14
- package/LICENSE +0 -21
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import { TokenReference } from '@framingui/tokens';
|
|
3
|
-
import { Variants, Transition } from 'framer-motion';
|
|
4
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
4
|
import * as React$1 from 'react';
|
|
6
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { Variants, Transition } from 'framer-motion';
|
|
7
7
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
@@ -77,6 +77,23 @@ type TektonTokenVars = typeof tokenVars;
|
|
|
77
77
|
declare function isTokenReference(value: string): value is TokenReference;
|
|
78
78
|
declare function extractTokenName(token: TokenReference): string;
|
|
79
79
|
|
|
80
|
+
declare const headingVariants: (props?: ({
|
|
81
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
82
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
83
|
+
interface HeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
|
|
84
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
85
|
+
}
|
|
86
|
+
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
87
|
+
|
|
88
|
+
declare const textVariants: (props?: ({
|
|
89
|
+
variant?: "body" | "caption" | "label" | "code" | null | undefined;
|
|
90
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
91
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
92
|
+
interface TextProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textVariants> {
|
|
93
|
+
as?: 'span' | 'p' | 'div';
|
|
94
|
+
}
|
|
95
|
+
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<HTMLElement>>;
|
|
96
|
+
|
|
80
97
|
interface ThemeDefinition {
|
|
81
98
|
id: string;
|
|
82
99
|
name: string;
|
|
@@ -246,8 +263,8 @@ declare function useMotionSafe(): boolean;
|
|
|
246
263
|
declare function getMotionTransition(transition: Transition, motionSafe: boolean): Transition;
|
|
247
264
|
|
|
248
265
|
declare const buttonVariants: (props?: ({
|
|
249
|
-
variant?: "link" | "
|
|
250
|
-
size?: "
|
|
266
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
267
|
+
size?: "sm" | "default" | "lg" | "icon" | null | undefined;
|
|
251
268
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
252
269
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
253
270
|
asChild?: boolean;
|
|
@@ -267,7 +284,7 @@ declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttribu
|
|
|
267
284
|
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
268
285
|
|
|
269
286
|
declare const badgeVariants: (props?: ({
|
|
270
|
-
variant?: "
|
|
287
|
+
variant?: "default" | "outline" | "destructive" | "secondary" | null | undefined;
|
|
271
288
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
272
289
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
273
290
|
}
|
|
@@ -472,7 +489,7 @@ declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<Omit<Nav
|
|
|
472
489
|
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
473
490
|
|
|
474
491
|
declare const breadcrumbVariants: (props?: ({
|
|
475
|
-
size?: "
|
|
492
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
476
493
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
477
494
|
declare const breadcrumbLinkVariants: (props?: ({
|
|
478
495
|
active?: boolean | null | undefined;
|
|
@@ -517,7 +534,7 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
|
|
|
517
534
|
ref?: React$1.Ref<HTMLInputElement>;
|
|
518
535
|
} & {
|
|
519
536
|
asChild?: boolean;
|
|
520
|
-
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "
|
|
537
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
521
538
|
value?: string;
|
|
522
539
|
onValueChange?: (search: string) => void;
|
|
523
540
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -543,7 +560,7 @@ declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
543
560
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
544
561
|
} & {
|
|
545
562
|
asChild?: boolean;
|
|
546
|
-
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "
|
|
563
|
+
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
547
564
|
heading?: React$1.ReactNode;
|
|
548
565
|
value?: string;
|
|
549
566
|
forceMount?: boolean;
|
|
@@ -561,7 +578,7 @@ declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
561
578
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
562
579
|
} & {
|
|
563
580
|
asChild?: boolean;
|
|
564
|
-
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "
|
|
581
|
+
}, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
565
582
|
disabled?: boolean;
|
|
566
583
|
onSelect?: (value: string) => void;
|
|
567
584
|
value?: string;
|
|
@@ -579,4 +596,4 @@ declare namespace Calendar {
|
|
|
579
596
|
var displayName: string;
|
|
580
597
|
}
|
|
581
598
|
|
|
582
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, 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, type InputProps, Label, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type OKLCHColor, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, SidebarSectionTitle, Skeleton, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TektonTokenVars, Textarea, type TextareaProps, type ThemeDefinition, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, extractTokenName, fadeVariants, getCurrentThemeId, getMotionTransition, injectThemeCSS, isTokenReference, motionTokens, navigationMenuTriggerStyle, oklchToCSS, resolveSemanticToken, scaleVariants, setThemeId, sidebarVariants, slideVariants, themeToCSS, tokenVars, transitions, useMotionSafe };
|
|
599
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, 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, Heading, type HeadingProps, Input, type InputProps, Label, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type OKLCHColor, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, SidebarSectionTitle, Skeleton, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TektonTokenVars, Text, type TextProps, Textarea, type TextareaProps, type ThemeDefinition, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, extractTokenName, fadeVariants, getCurrentThemeId, getMotionTransition, headingVariants, injectThemeCSS, isTokenReference, motionTokens, navigationMenuTriggerStyle, oklchToCSS, resolveSemanticToken, scaleVariants, setThemeId, sidebarVariants, slideVariants, textVariants, themeToCSS, tokenVars, transitions, useMotionSafe };
|