@medway-ui/core 1.2.1 → 1.3.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/index.d.mts +90 -31
- package/dist/index.d.ts +90 -31
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -3,12 +3,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
6
|
-
import
|
|
7
|
-
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
8
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
9
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
10
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
11
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
6
|
+
import { Avatar as Avatar$1, Collapsible as Collapsible$1, DropdownMenu as DropdownMenu$1, ScrollArea as ScrollArea$1, Tabs, Separator as Separator$1, Dialog, Tooltip as Tooltip$1 } from 'radix-ui';
|
|
12
7
|
|
|
13
8
|
interface AlertProps extends React.ComponentProps<"div"> {
|
|
14
9
|
variant?: "regular" | "emphasis" | "success" | "warning" | "error";
|
|
@@ -46,15 +41,24 @@ declare function AlertDialogCancel({ className, ...props }: React.ComponentProps
|
|
|
46
41
|
declare const avatarVariants: (props?: ({
|
|
47
42
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
48
43
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
-
interface AvatarProps extends React.ComponentProps<typeof
|
|
44
|
+
interface AvatarProps extends React.ComponentProps<typeof Avatar$1.Root>, VariantProps<typeof avatarVariants> {
|
|
50
45
|
src?: string;
|
|
51
46
|
alt?: string;
|
|
52
47
|
fallback?: React.ReactNode;
|
|
53
48
|
badge?: number | string;
|
|
54
49
|
}
|
|
55
50
|
declare function Avatar({ className, size, badge, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
56
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof
|
|
57
|
-
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof
|
|
51
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
|
|
52
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
54
|
+
declare const badgeVariants: (props?: ({
|
|
55
|
+
variant?: "regular" | "freemium" | null | undefined;
|
|
56
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
57
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
58
|
+
declare function Badge({ className, variant, size, icon, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
59
|
+
asChild?: boolean;
|
|
60
|
+
icon?: React.ReactNode;
|
|
61
|
+
}): react_jsx_runtime.JSX.Element;
|
|
58
62
|
|
|
59
63
|
interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
60
64
|
asChild?: boolean;
|
|
@@ -71,32 +75,32 @@ declare const buttonVariants: (props?: ({
|
|
|
71
75
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
72
76
|
declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
73
77
|
|
|
74
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof
|
|
75
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof
|
|
76
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof
|
|
78
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof Collapsible$1.Root>): react_jsx_runtime.JSX.Element;
|
|
79
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
80
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof Collapsible$1.Content>): react_jsx_runtime.JSX.Element;
|
|
77
81
|
|
|
78
|
-
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof
|
|
79
|
-
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof
|
|
80
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof
|
|
81
|
-
declare function DropdownMenuContent({ className, sideOffset, side, ...props }: React.ComponentProps<typeof
|
|
82
|
-
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof
|
|
83
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof
|
|
82
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
83
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
84
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
85
|
+
declare function DropdownMenuContent({ className, sideOffset, side, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
84
88
|
inset?: boolean;
|
|
85
89
|
variant?: "default" | "destructive";
|
|
86
90
|
}): react_jsx_runtime.JSX.Element;
|
|
87
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof
|
|
88
|
-
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof
|
|
89
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof
|
|
90
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof
|
|
91
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
92
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
93
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
91
95
|
inset?: boolean;
|
|
92
96
|
}): react_jsx_runtime.JSX.Element;
|
|
93
|
-
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof
|
|
97
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
94
98
|
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
95
|
-
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof
|
|
96
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof
|
|
99
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
100
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
97
101
|
inset?: boolean;
|
|
98
102
|
}): react_jsx_runtime.JSX.Element;
|
|
99
|
-
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof
|
|
103
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
100
104
|
|
|
101
105
|
declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
102
106
|
|
|
@@ -115,12 +119,67 @@ interface LogoProps {
|
|
|
115
119
|
declare function Logo({ width, height, className, svgClassName, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
116
120
|
declare function LogoShort({ width, height, className, svgClassName, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
117
121
|
|
|
118
|
-
|
|
122
|
+
interface PaginationProps {
|
|
123
|
+
currentPage: number;
|
|
124
|
+
totalPages: number;
|
|
125
|
+
maxVisibleItems?: number;
|
|
126
|
+
onPageChange: (page: number) => void;
|
|
127
|
+
className?: string;
|
|
128
|
+
itemsPerPage?: number;
|
|
129
|
+
totalItems?: number;
|
|
130
|
+
responsive?: boolean;
|
|
131
|
+
size?: "sm" | "md" | "lg";
|
|
132
|
+
variant?: "regular" | "emphasis" | "error" | "warning" | "outlined" | "success";
|
|
133
|
+
}
|
|
134
|
+
type PaginationLinkProps = {
|
|
135
|
+
isActive?: boolean;
|
|
136
|
+
iconLeft?: React.ReactNode;
|
|
137
|
+
iconRight?: React.ReactNode;
|
|
138
|
+
size?: "sm" | "md" | "lg";
|
|
139
|
+
variant?: ButtonVariant;
|
|
140
|
+
activeVariant?: ButtonVariant;
|
|
141
|
+
inactiveVariant?: ButtonVariant;
|
|
142
|
+
} & React.ComponentProps<"button">;
|
|
143
|
+
type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>["variant"]>;
|
|
144
|
+
declare function PaginationRoot({ className, ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
145
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
146
|
+
declare function PaginationInfo({ count, label, className, ...props }: React.ComponentProps<"p"> & {
|
|
147
|
+
count?: number;
|
|
148
|
+
label?: string;
|
|
149
|
+
}): react_jsx_runtime.JSX.Element;
|
|
150
|
+
declare function PaginationItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
151
|
+
declare function PaginationLink({ className, isActive, iconLeft, iconRight, size, variant, activeVariant, inactiveVariant, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
152
|
+
declare function PaginationPrevious({ className, size, variant, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
153
|
+
declare function PaginationNext({ className, size, variant, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
154
|
+
declare function PaginationEllipsis({ className, size, ...props }: React.ComponentProps<"span"> & {
|
|
155
|
+
size?: "sm" | "md" | "lg";
|
|
156
|
+
}): react_jsx_runtime.JSX.Element;
|
|
157
|
+
declare function Pagination({ currentPage, totalPages, maxVisibleItems, onPageChange, itemsPerPage, totalItems, className, responsive, size, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
158
|
+
|
|
159
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollArea$1.Root>): react_jsx_runtime.JSX.Element;
|
|
160
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
161
|
+
|
|
162
|
+
type SegmentSize = "sm" | "md" | "lg";
|
|
163
|
+
declare function SegmentControl({ className, size, children, ...props }: React.ComponentProps<typeof Tabs.Root> & {
|
|
164
|
+
size?: SegmentSize;
|
|
165
|
+
}): react_jsx_runtime.JSX.Element;
|
|
166
|
+
interface SegmentControlListProps extends React.ComponentProps<typeof Tabs.List> {
|
|
167
|
+
containerClassName?: string;
|
|
168
|
+
}
|
|
169
|
+
declare function SegmentControlList({ className, containerClassName, ...props }: SegmentControlListProps): react_jsx_runtime.JSX.Element;
|
|
170
|
+
interface SegmentControlTriggerProps extends React.ComponentProps<typeof Tabs.Trigger> {
|
|
171
|
+
icon?: React.ReactNode;
|
|
172
|
+
badge?: number | string;
|
|
173
|
+
}
|
|
174
|
+
declare function SegmentControlTrigger({ className, icon, badge, children, ...props }: SegmentControlTriggerProps): react_jsx_runtime.JSX.Element;
|
|
175
|
+
declare function SegmentControlContent({ className, ...props }: React.ComponentProps<typeof Tabs.Content>): react_jsx_runtime.JSX.Element;
|
|
176
|
+
|
|
177
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime.JSX.Element;
|
|
119
178
|
|
|
120
|
-
declare function Sheet({ ...props }: React.ComponentProps<typeof
|
|
179
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime.JSX.Element;
|
|
121
180
|
|
|
122
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof
|
|
123
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof
|
|
181
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
182
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
|
|
124
183
|
|
|
125
184
|
type SidebarContextProps = {
|
|
126
185
|
state: "expanded" | "collapsed";
|
|
@@ -281,4 +340,4 @@ declare function TileDescription({ className, ...props }: React.ComponentProps<"
|
|
|
281
340
|
|
|
282
341
|
declare function useIsMobile(): boolean;
|
|
283
342
|
|
|
284
|
-
export { Alert, AlertActions, AlertButton, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Loading, Logo, LogoShort, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tag, Tile, TileDescription, TileIcon, TileTitle, Tooltip, buttonVariants, tagVariants, useIsMobile, useSidebar };
|
|
343
|
+
export { Alert, AlertActions, AlertButton, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Loading, Logo, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, SegmentControlTrigger, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tag, Tile, TileDescription, TileIcon, TileTitle, Tooltip, badgeVariants, buttonVariants, tagVariants, useIsMobile, useSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
6
|
-
import
|
|
7
|
-
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
8
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
9
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
10
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
11
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
6
|
+
import { Avatar as Avatar$1, Collapsible as Collapsible$1, DropdownMenu as DropdownMenu$1, ScrollArea as ScrollArea$1, Tabs, Separator as Separator$1, Dialog, Tooltip as Tooltip$1 } from 'radix-ui';
|
|
12
7
|
|
|
13
8
|
interface AlertProps extends React.ComponentProps<"div"> {
|
|
14
9
|
variant?: "regular" | "emphasis" | "success" | "warning" | "error";
|
|
@@ -46,15 +41,24 @@ declare function AlertDialogCancel({ className, ...props }: React.ComponentProps
|
|
|
46
41
|
declare const avatarVariants: (props?: ({
|
|
47
42
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
48
43
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
-
interface AvatarProps extends React.ComponentProps<typeof
|
|
44
|
+
interface AvatarProps extends React.ComponentProps<typeof Avatar$1.Root>, VariantProps<typeof avatarVariants> {
|
|
50
45
|
src?: string;
|
|
51
46
|
alt?: string;
|
|
52
47
|
fallback?: React.ReactNode;
|
|
53
48
|
badge?: number | string;
|
|
54
49
|
}
|
|
55
50
|
declare function Avatar({ className, size, badge, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
56
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof
|
|
57
|
-
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof
|
|
51
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
|
|
52
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
54
|
+
declare const badgeVariants: (props?: ({
|
|
55
|
+
variant?: "regular" | "freemium" | null | undefined;
|
|
56
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
57
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
58
|
+
declare function Badge({ className, variant, size, icon, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
59
|
+
asChild?: boolean;
|
|
60
|
+
icon?: React.ReactNode;
|
|
61
|
+
}): react_jsx_runtime.JSX.Element;
|
|
58
62
|
|
|
59
63
|
interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
60
64
|
asChild?: boolean;
|
|
@@ -71,32 +75,32 @@ declare const buttonVariants: (props?: ({
|
|
|
71
75
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
72
76
|
declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
73
77
|
|
|
74
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof
|
|
75
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof
|
|
76
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof
|
|
78
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof Collapsible$1.Root>): react_jsx_runtime.JSX.Element;
|
|
79
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
80
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof Collapsible$1.Content>): react_jsx_runtime.JSX.Element;
|
|
77
81
|
|
|
78
|
-
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof
|
|
79
|
-
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof
|
|
80
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof
|
|
81
|
-
declare function DropdownMenuContent({ className, sideOffset, side, ...props }: React.ComponentProps<typeof
|
|
82
|
-
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof
|
|
83
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof
|
|
82
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
83
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
84
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
85
|
+
declare function DropdownMenuContent({ className, sideOffset, side, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
84
88
|
inset?: boolean;
|
|
85
89
|
variant?: "default" | "destructive";
|
|
86
90
|
}): react_jsx_runtime.JSX.Element;
|
|
87
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof
|
|
88
|
-
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof
|
|
89
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof
|
|
90
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof
|
|
91
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
92
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
93
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
91
95
|
inset?: boolean;
|
|
92
96
|
}): react_jsx_runtime.JSX.Element;
|
|
93
|
-
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof
|
|
97
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
94
98
|
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
95
|
-
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof
|
|
96
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof
|
|
99
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
100
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
97
101
|
inset?: boolean;
|
|
98
102
|
}): react_jsx_runtime.JSX.Element;
|
|
99
|
-
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof
|
|
103
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
100
104
|
|
|
101
105
|
declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
102
106
|
|
|
@@ -115,12 +119,67 @@ interface LogoProps {
|
|
|
115
119
|
declare function Logo({ width, height, className, svgClassName, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
116
120
|
declare function LogoShort({ width, height, className, svgClassName, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
117
121
|
|
|
118
|
-
|
|
122
|
+
interface PaginationProps {
|
|
123
|
+
currentPage: number;
|
|
124
|
+
totalPages: number;
|
|
125
|
+
maxVisibleItems?: number;
|
|
126
|
+
onPageChange: (page: number) => void;
|
|
127
|
+
className?: string;
|
|
128
|
+
itemsPerPage?: number;
|
|
129
|
+
totalItems?: number;
|
|
130
|
+
responsive?: boolean;
|
|
131
|
+
size?: "sm" | "md" | "lg";
|
|
132
|
+
variant?: "regular" | "emphasis" | "error" | "warning" | "outlined" | "success";
|
|
133
|
+
}
|
|
134
|
+
type PaginationLinkProps = {
|
|
135
|
+
isActive?: boolean;
|
|
136
|
+
iconLeft?: React.ReactNode;
|
|
137
|
+
iconRight?: React.ReactNode;
|
|
138
|
+
size?: "sm" | "md" | "lg";
|
|
139
|
+
variant?: ButtonVariant;
|
|
140
|
+
activeVariant?: ButtonVariant;
|
|
141
|
+
inactiveVariant?: ButtonVariant;
|
|
142
|
+
} & React.ComponentProps<"button">;
|
|
143
|
+
type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>["variant"]>;
|
|
144
|
+
declare function PaginationRoot({ className, ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
145
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
146
|
+
declare function PaginationInfo({ count, label, className, ...props }: React.ComponentProps<"p"> & {
|
|
147
|
+
count?: number;
|
|
148
|
+
label?: string;
|
|
149
|
+
}): react_jsx_runtime.JSX.Element;
|
|
150
|
+
declare function PaginationItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
151
|
+
declare function PaginationLink({ className, isActive, iconLeft, iconRight, size, variant, activeVariant, inactiveVariant, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
152
|
+
declare function PaginationPrevious({ className, size, variant, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
153
|
+
declare function PaginationNext({ className, size, variant, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
154
|
+
declare function PaginationEllipsis({ className, size, ...props }: React.ComponentProps<"span"> & {
|
|
155
|
+
size?: "sm" | "md" | "lg";
|
|
156
|
+
}): react_jsx_runtime.JSX.Element;
|
|
157
|
+
declare function Pagination({ currentPage, totalPages, maxVisibleItems, onPageChange, itemsPerPage, totalItems, className, responsive, size, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
158
|
+
|
|
159
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollArea$1.Root>): react_jsx_runtime.JSX.Element;
|
|
160
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
161
|
+
|
|
162
|
+
type SegmentSize = "sm" | "md" | "lg";
|
|
163
|
+
declare function SegmentControl({ className, size, children, ...props }: React.ComponentProps<typeof Tabs.Root> & {
|
|
164
|
+
size?: SegmentSize;
|
|
165
|
+
}): react_jsx_runtime.JSX.Element;
|
|
166
|
+
interface SegmentControlListProps extends React.ComponentProps<typeof Tabs.List> {
|
|
167
|
+
containerClassName?: string;
|
|
168
|
+
}
|
|
169
|
+
declare function SegmentControlList({ className, containerClassName, ...props }: SegmentControlListProps): react_jsx_runtime.JSX.Element;
|
|
170
|
+
interface SegmentControlTriggerProps extends React.ComponentProps<typeof Tabs.Trigger> {
|
|
171
|
+
icon?: React.ReactNode;
|
|
172
|
+
badge?: number | string;
|
|
173
|
+
}
|
|
174
|
+
declare function SegmentControlTrigger({ className, icon, badge, children, ...props }: SegmentControlTriggerProps): react_jsx_runtime.JSX.Element;
|
|
175
|
+
declare function SegmentControlContent({ className, ...props }: React.ComponentProps<typeof Tabs.Content>): react_jsx_runtime.JSX.Element;
|
|
176
|
+
|
|
177
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime.JSX.Element;
|
|
119
178
|
|
|
120
|
-
declare function Sheet({ ...props }: React.ComponentProps<typeof
|
|
179
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime.JSX.Element;
|
|
121
180
|
|
|
122
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof
|
|
123
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof
|
|
181
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
182
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
|
|
124
183
|
|
|
125
184
|
type SidebarContextProps = {
|
|
126
185
|
state: "expanded" | "collapsed";
|
|
@@ -281,4 +340,4 @@ declare function TileDescription({ className, ...props }: React.ComponentProps<"
|
|
|
281
340
|
|
|
282
341
|
declare function useIsMobile(): boolean;
|
|
283
342
|
|
|
284
|
-
export { Alert, AlertActions, AlertButton, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Loading, Logo, LogoShort, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tag, Tile, TileDescription, TileIcon, TileTitle, Tooltip, buttonVariants, tagVariants, useIsMobile, useSidebar };
|
|
343
|
+
export { Alert, AlertActions, AlertButton, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Loading, Logo, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, SegmentControlTrigger, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tag, Tile, TileDescription, TileIcon, TileTitle, Tooltip, badgeVariants, buttonVariants, tagVariants, useIsMobile, useSidebar };
|