@medway-ui/core 0.3.23 → 0.3.24
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 +75 -50
- package/dist/index.d.ts +75 -50
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import React from 'react';
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
6
7
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
7
8
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
8
9
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
10
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
9
11
|
|
|
10
12
|
declare const avatarVariants: (props?: ({
|
|
11
13
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
@@ -16,9 +18,9 @@ interface AvatarProps extends React.ComponentProps<typeof AvatarPrimitive.Root>,
|
|
|
16
18
|
fallback?: React.ReactNode;
|
|
17
19
|
badge?: number | string;
|
|
18
20
|
}
|
|
19
|
-
declare function Avatar({ className, size, badge, children, ...props }: AvatarProps):
|
|
20
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>):
|
|
21
|
-
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>):
|
|
21
|
+
declare function Avatar({ className, size, badge, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
22
24
|
|
|
23
25
|
interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
24
26
|
asChild?: boolean;
|
|
@@ -33,15 +35,15 @@ declare const buttonVariants: (props?: ({
|
|
|
33
35
|
variant?: "primary" | "primary-outline" | "primary-ghost" | "secondary" | "secondary-outline" | "secondary-ghost" | "error" | "error-outline" | "error-ghost" | "outline" | "gradient" | null | undefined;
|
|
34
36
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
35
37
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
36
|
-
declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps):
|
|
38
|
+
declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
37
39
|
|
|
38
|
-
declare function Input({ className, type, ...props }: React.ComponentProps<"input">):
|
|
40
|
+
declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
39
41
|
|
|
40
42
|
interface LoadingProps {
|
|
41
43
|
size?: number;
|
|
42
44
|
className?: string;
|
|
43
45
|
}
|
|
44
|
-
declare function Loading({ size, className }: LoadingProps):
|
|
46
|
+
declare function Loading({ size, className }: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
45
47
|
|
|
46
48
|
interface LogoProps {
|
|
47
49
|
width?: string | number;
|
|
@@ -49,21 +51,44 @@ interface LogoProps {
|
|
|
49
51
|
className?: string;
|
|
50
52
|
svgClassName?: string;
|
|
51
53
|
}
|
|
52
|
-
declare function Logo({ width, height, className, svgClassName, }: LogoProps):
|
|
53
|
-
declare function LogoShort({ width, height, className, svgClassName, }: LogoProps):
|
|
54
|
+
declare function Logo({ width, height, className, svgClassName, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
55
|
+
declare function LogoShort({ width, height, className, svgClassName, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
54
56
|
|
|
55
|
-
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
57
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
56
58
|
|
|
57
|
-
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>):
|
|
59
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
58
60
|
|
|
59
|
-
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">):
|
|
61
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
60
62
|
|
|
61
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>):
|
|
62
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>):
|
|
63
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
63
65
|
|
|
64
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>):
|
|
65
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>):
|
|
66
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>):
|
|
66
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
67
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime.JSX.Element;
|
|
68
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
72
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare function DropdownMenuContent({ className, sideOffset, side, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
75
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
76
|
+
inset?: boolean;
|
|
77
|
+
variant?: "default" | "destructive";
|
|
78
|
+
}): react_jsx_runtime.JSX.Element;
|
|
79
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
80
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
81
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
82
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
83
|
+
inset?: boolean;
|
|
84
|
+
}): react_jsx_runtime.JSX.Element;
|
|
85
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
88
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
89
|
+
inset?: boolean;
|
|
90
|
+
}): react_jsx_runtime.JSX.Element;
|
|
91
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
67
92
|
|
|
68
93
|
type SidebarContextProps = {
|
|
69
94
|
state: "expanded" | "collapsed";
|
|
@@ -79,12 +104,12 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
|
|
|
79
104
|
defaultOpen?: boolean;
|
|
80
105
|
open?: boolean;
|
|
81
106
|
onOpenChange?: (open: boolean) => void;
|
|
82
|
-
}):
|
|
107
|
+
}): react_jsx_runtime.JSX.Element;
|
|
83
108
|
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
84
109
|
side?: "left" | "right";
|
|
85
110
|
variant?: "sidebar" | "floating" | "inset";
|
|
86
111
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
87
|
-
}):
|
|
112
|
+
}): react_jsx_runtime.JSX.Element;
|
|
88
113
|
declare function SidebarTrigger({ className, onClick, sizeIcon, icon, showTooltip, tooltipContent, enableHover, ...props }: React.ComponentProps<typeof Button> & {
|
|
89
114
|
icon?: React.ReactNode;
|
|
90
115
|
sizeIcon?: string;
|
|
@@ -94,26 +119,26 @@ declare function SidebarTrigger({ className, onClick, sizeIcon, icon, showToolti
|
|
|
94
119
|
closed?: string;
|
|
95
120
|
};
|
|
96
121
|
enableHover?: boolean;
|
|
97
|
-
}):
|
|
98
|
-
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">):
|
|
99
|
-
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">):
|
|
100
|
-
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>):
|
|
101
|
-
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
102
|
-
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
103
|
-
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>):
|
|
104
|
-
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">):
|
|
105
|
-
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">):
|
|
122
|
+
}): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
126
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
127
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
128
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
129
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
130
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
106
131
|
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
107
132
|
asChild?: boolean;
|
|
108
|
-
}):
|
|
133
|
+
}): react_jsx_runtime.JSX.Element;
|
|
109
134
|
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
110
135
|
asChild?: boolean;
|
|
111
|
-
}):
|
|
112
|
-
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">):
|
|
113
|
-
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">):
|
|
136
|
+
}): react_jsx_runtime.JSX.Element;
|
|
137
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
114
139
|
declare function SidebarMenuItem({ className, isActive, children, ...props }: React.ComponentProps<"li"> & {
|
|
115
140
|
isActive?: boolean;
|
|
116
|
-
}):
|
|
141
|
+
}): react_jsx_runtime.JSX.Element;
|
|
117
142
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
118
143
|
variant?: "section" | "outline" | "default" | null | undefined;
|
|
119
144
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -122,27 +147,27 @@ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip,
|
|
|
122
147
|
asChild?: boolean;
|
|
123
148
|
isActive?: boolean;
|
|
124
149
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
125
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
150
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
126
151
|
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
|
|
127
152
|
asChild?: boolean;
|
|
128
153
|
showOnHover?: boolean;
|
|
129
|
-
}):
|
|
130
|
-
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">):
|
|
154
|
+
}): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
131
156
|
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
132
157
|
showIcon?: boolean;
|
|
133
|
-
}):
|
|
134
|
-
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">):
|
|
135
|
-
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">):
|
|
158
|
+
}): react_jsx_runtime.JSX.Element;
|
|
159
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
160
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
136
161
|
declare function SidebarMenuItemTitle({ icon, title, }: {
|
|
137
162
|
icon?: React.ReactNode;
|
|
138
163
|
title: string;
|
|
139
|
-
}):
|
|
140
|
-
declare function SidebarMenuItemCollapse():
|
|
164
|
+
}): react_jsx_runtime.JSX.Element;
|
|
165
|
+
declare function SidebarMenuItemCollapse(): react_jsx_runtime.JSX.Element;
|
|
141
166
|
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
|
|
142
167
|
asChild?: boolean;
|
|
143
168
|
size?: "sm" | "md";
|
|
144
169
|
isActive?: boolean;
|
|
145
|
-
}):
|
|
170
|
+
}): react_jsx_runtime.JSX.Element;
|
|
146
171
|
|
|
147
172
|
interface SwitcherProps {
|
|
148
173
|
children: React.ReactNode;
|
|
@@ -173,24 +198,24 @@ interface SwitcherFooterProps {
|
|
|
173
198
|
onClick?: () => void;
|
|
174
199
|
icon?: React.ReactNode;
|
|
175
200
|
}
|
|
176
|
-
declare function Switcher({ children, value, onValueChange }: SwitcherProps):
|
|
177
|
-
declare function SwitcherTrigger({ children, asChild }: SwitcherTriggerProps):
|
|
178
|
-
declare function SwitcherContent({ children, align, side, }: SwitcherContentProps):
|
|
201
|
+
declare function Switcher({ children, value, onValueChange }: SwitcherProps): react_jsx_runtime.JSX.Element;
|
|
202
|
+
declare function SwitcherTrigger({ children, asChild }: SwitcherTriggerProps): react_jsx_runtime.JSX.Element;
|
|
203
|
+
declare function SwitcherContent({ children, align, side, }: SwitcherContentProps): react_jsx_runtime.JSX.Element;
|
|
179
204
|
interface SwitcherGroup {
|
|
180
205
|
label: string;
|
|
181
206
|
items: SwitcherItem[];
|
|
182
207
|
}
|
|
183
|
-
declare function SwitcherGroup({ children, label }: SwitcherGroupProps):
|
|
208
|
+
declare function SwitcherGroup({ children, label }: SwitcherGroupProps): react_jsx_runtime.JSX.Element;
|
|
184
209
|
interface SwitcherItem {
|
|
185
210
|
id: string;
|
|
186
211
|
label: string;
|
|
187
212
|
icon?: string;
|
|
188
213
|
onClick?: () => void;
|
|
189
214
|
}
|
|
190
|
-
declare function SwitcherItem({ children, value, onClick, icon }: SwitcherItemProps):
|
|
191
|
-
declare function SwitcherFooter({ children, onClick, icon }: SwitcherFooterProps):
|
|
192
|
-
declare function SwitcherSeparator():
|
|
215
|
+
declare function SwitcherItem({ children, value, onClick, icon }: SwitcherItemProps): react_jsx_runtime.JSX.Element;
|
|
216
|
+
declare function SwitcherFooter({ children, onClick, icon }: SwitcherFooterProps): react_jsx_runtime.JSX.Element;
|
|
217
|
+
declare function SwitcherSeparator(): react_jsx_runtime.JSX.Element;
|
|
193
218
|
|
|
194
219
|
declare function useIsMobile(): boolean;
|
|
195
220
|
|
|
196
|
-
export { Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, 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, Tooltip, buttonVariants, useIsMobile, useSidebar };
|
|
221
|
+
export { 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, Tooltip, buttonVariants, useIsMobile, useSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import React from 'react';
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
6
7
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
7
8
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
8
9
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
10
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
9
11
|
|
|
10
12
|
declare const avatarVariants: (props?: ({
|
|
11
13
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
@@ -16,9 +18,9 @@ interface AvatarProps extends React.ComponentProps<typeof AvatarPrimitive.Root>,
|
|
|
16
18
|
fallback?: React.ReactNode;
|
|
17
19
|
badge?: number | string;
|
|
18
20
|
}
|
|
19
|
-
declare function Avatar({ className, size, badge, children, ...props }: AvatarProps):
|
|
20
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>):
|
|
21
|
-
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>):
|
|
21
|
+
declare function Avatar({ className, size, badge, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
22
24
|
|
|
23
25
|
interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
24
26
|
asChild?: boolean;
|
|
@@ -33,15 +35,15 @@ declare const buttonVariants: (props?: ({
|
|
|
33
35
|
variant?: "primary" | "primary-outline" | "primary-ghost" | "secondary" | "secondary-outline" | "secondary-ghost" | "error" | "error-outline" | "error-ghost" | "outline" | "gradient" | null | undefined;
|
|
34
36
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
35
37
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
36
|
-
declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps):
|
|
38
|
+
declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
37
39
|
|
|
38
|
-
declare function Input({ className, type, ...props }: React.ComponentProps<"input">):
|
|
40
|
+
declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
39
41
|
|
|
40
42
|
interface LoadingProps {
|
|
41
43
|
size?: number;
|
|
42
44
|
className?: string;
|
|
43
45
|
}
|
|
44
|
-
declare function Loading({ size, className }: LoadingProps):
|
|
46
|
+
declare function Loading({ size, className }: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
45
47
|
|
|
46
48
|
interface LogoProps {
|
|
47
49
|
width?: string | number;
|
|
@@ -49,21 +51,44 @@ interface LogoProps {
|
|
|
49
51
|
className?: string;
|
|
50
52
|
svgClassName?: string;
|
|
51
53
|
}
|
|
52
|
-
declare function Logo({ width, height, className, svgClassName, }: LogoProps):
|
|
53
|
-
declare function LogoShort({ width, height, className, svgClassName, }: LogoProps):
|
|
54
|
+
declare function Logo({ width, height, className, svgClassName, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
55
|
+
declare function LogoShort({ width, height, className, svgClassName, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
54
56
|
|
|
55
|
-
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
57
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
56
58
|
|
|
57
|
-
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>):
|
|
59
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
58
60
|
|
|
59
|
-
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">):
|
|
61
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
60
62
|
|
|
61
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>):
|
|
62
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>):
|
|
63
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
63
65
|
|
|
64
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>):
|
|
65
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>):
|
|
66
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>):
|
|
66
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
67
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime.JSX.Element;
|
|
68
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
72
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare function DropdownMenuContent({ className, sideOffset, side, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
75
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
76
|
+
inset?: boolean;
|
|
77
|
+
variant?: "default" | "destructive";
|
|
78
|
+
}): react_jsx_runtime.JSX.Element;
|
|
79
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
80
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
81
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
82
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
83
|
+
inset?: boolean;
|
|
84
|
+
}): react_jsx_runtime.JSX.Element;
|
|
85
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
88
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
89
|
+
inset?: boolean;
|
|
90
|
+
}): react_jsx_runtime.JSX.Element;
|
|
91
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
67
92
|
|
|
68
93
|
type SidebarContextProps = {
|
|
69
94
|
state: "expanded" | "collapsed";
|
|
@@ -79,12 +104,12 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
|
|
|
79
104
|
defaultOpen?: boolean;
|
|
80
105
|
open?: boolean;
|
|
81
106
|
onOpenChange?: (open: boolean) => void;
|
|
82
|
-
}):
|
|
107
|
+
}): react_jsx_runtime.JSX.Element;
|
|
83
108
|
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
84
109
|
side?: "left" | "right";
|
|
85
110
|
variant?: "sidebar" | "floating" | "inset";
|
|
86
111
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
87
|
-
}):
|
|
112
|
+
}): react_jsx_runtime.JSX.Element;
|
|
88
113
|
declare function SidebarTrigger({ className, onClick, sizeIcon, icon, showTooltip, tooltipContent, enableHover, ...props }: React.ComponentProps<typeof Button> & {
|
|
89
114
|
icon?: React.ReactNode;
|
|
90
115
|
sizeIcon?: string;
|
|
@@ -94,26 +119,26 @@ declare function SidebarTrigger({ className, onClick, sizeIcon, icon, showToolti
|
|
|
94
119
|
closed?: string;
|
|
95
120
|
};
|
|
96
121
|
enableHover?: boolean;
|
|
97
|
-
}):
|
|
98
|
-
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">):
|
|
99
|
-
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">):
|
|
100
|
-
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>):
|
|
101
|
-
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
102
|
-
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
103
|
-
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>):
|
|
104
|
-
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">):
|
|
105
|
-
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">):
|
|
122
|
+
}): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
126
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
127
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
128
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
129
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
130
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
106
131
|
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
107
132
|
asChild?: boolean;
|
|
108
|
-
}):
|
|
133
|
+
}): react_jsx_runtime.JSX.Element;
|
|
109
134
|
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
110
135
|
asChild?: boolean;
|
|
111
|
-
}):
|
|
112
|
-
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">):
|
|
113
|
-
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">):
|
|
136
|
+
}): react_jsx_runtime.JSX.Element;
|
|
137
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
114
139
|
declare function SidebarMenuItem({ className, isActive, children, ...props }: React.ComponentProps<"li"> & {
|
|
115
140
|
isActive?: boolean;
|
|
116
|
-
}):
|
|
141
|
+
}): react_jsx_runtime.JSX.Element;
|
|
117
142
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
118
143
|
variant?: "section" | "outline" | "default" | null | undefined;
|
|
119
144
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -122,27 +147,27 @@ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip,
|
|
|
122
147
|
asChild?: boolean;
|
|
123
148
|
isActive?: boolean;
|
|
124
149
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
125
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
150
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
126
151
|
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
|
|
127
152
|
asChild?: boolean;
|
|
128
153
|
showOnHover?: boolean;
|
|
129
|
-
}):
|
|
130
|
-
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">):
|
|
154
|
+
}): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
131
156
|
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
132
157
|
showIcon?: boolean;
|
|
133
|
-
}):
|
|
134
|
-
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">):
|
|
135
|
-
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">):
|
|
158
|
+
}): react_jsx_runtime.JSX.Element;
|
|
159
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
160
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
136
161
|
declare function SidebarMenuItemTitle({ icon, title, }: {
|
|
137
162
|
icon?: React.ReactNode;
|
|
138
163
|
title: string;
|
|
139
|
-
}):
|
|
140
|
-
declare function SidebarMenuItemCollapse():
|
|
164
|
+
}): react_jsx_runtime.JSX.Element;
|
|
165
|
+
declare function SidebarMenuItemCollapse(): react_jsx_runtime.JSX.Element;
|
|
141
166
|
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
|
|
142
167
|
asChild?: boolean;
|
|
143
168
|
size?: "sm" | "md";
|
|
144
169
|
isActive?: boolean;
|
|
145
|
-
}):
|
|
170
|
+
}): react_jsx_runtime.JSX.Element;
|
|
146
171
|
|
|
147
172
|
interface SwitcherProps {
|
|
148
173
|
children: React.ReactNode;
|
|
@@ -173,24 +198,24 @@ interface SwitcherFooterProps {
|
|
|
173
198
|
onClick?: () => void;
|
|
174
199
|
icon?: React.ReactNode;
|
|
175
200
|
}
|
|
176
|
-
declare function Switcher({ children, value, onValueChange }: SwitcherProps):
|
|
177
|
-
declare function SwitcherTrigger({ children, asChild }: SwitcherTriggerProps):
|
|
178
|
-
declare function SwitcherContent({ children, align, side, }: SwitcherContentProps):
|
|
201
|
+
declare function Switcher({ children, value, onValueChange }: SwitcherProps): react_jsx_runtime.JSX.Element;
|
|
202
|
+
declare function SwitcherTrigger({ children, asChild }: SwitcherTriggerProps): react_jsx_runtime.JSX.Element;
|
|
203
|
+
declare function SwitcherContent({ children, align, side, }: SwitcherContentProps): react_jsx_runtime.JSX.Element;
|
|
179
204
|
interface SwitcherGroup {
|
|
180
205
|
label: string;
|
|
181
206
|
items: SwitcherItem[];
|
|
182
207
|
}
|
|
183
|
-
declare function SwitcherGroup({ children, label }: SwitcherGroupProps):
|
|
208
|
+
declare function SwitcherGroup({ children, label }: SwitcherGroupProps): react_jsx_runtime.JSX.Element;
|
|
184
209
|
interface SwitcherItem {
|
|
185
210
|
id: string;
|
|
186
211
|
label: string;
|
|
187
212
|
icon?: string;
|
|
188
213
|
onClick?: () => void;
|
|
189
214
|
}
|
|
190
|
-
declare function SwitcherItem({ children, value, onClick, icon }: SwitcherItemProps):
|
|
191
|
-
declare function SwitcherFooter({ children, onClick, icon }: SwitcherFooterProps):
|
|
192
|
-
declare function SwitcherSeparator():
|
|
215
|
+
declare function SwitcherItem({ children, value, onClick, icon }: SwitcherItemProps): react_jsx_runtime.JSX.Element;
|
|
216
|
+
declare function SwitcherFooter({ children, onClick, icon }: SwitcherFooterProps): react_jsx_runtime.JSX.Element;
|
|
217
|
+
declare function SwitcherSeparator(): react_jsx_runtime.JSX.Element;
|
|
193
218
|
|
|
194
219
|
declare function useIsMobile(): boolean;
|
|
195
220
|
|
|
196
|
-
export { Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, 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, Tooltip, buttonVariants, useIsMobile, useSidebar };
|
|
221
|
+
export { 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, Tooltip, buttonVariants, useIsMobile, useSidebar };
|