@cortexasystem/ui 0.1.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.cjs +2137 -0
- package/dist/index.d.cts +525 -0
- package/dist/index.d.ts +525 -0
- package/dist/index.js +1977 -0
- package/dist/isotipo-cortexa-dark-F2MDSEEV.png +0 -0
- package/dist/isotipo-cortexa-light-LV3O6ASR.png +0 -0
- package/package.json +61 -0
- package/src/styles.css +2 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { ReactNode, ElementType, ComponentPropsWithoutRef, HTMLAttributes } from 'react';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
import { LucideIcon } from 'lucide-react';
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import { ToasterProps } from 'sonner';
|
|
9
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
10
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
11
|
+
import * as vaul from 'vaul';
|
|
12
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
13
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
15
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
16
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
17
|
+
|
|
18
|
+
type Theme = "light" | "dark" | "system";
|
|
19
|
+
interface ThemeProviderState {
|
|
20
|
+
theme: Theme;
|
|
21
|
+
resolvedTheme: "light" | "dark";
|
|
22
|
+
setTheme: (theme: Theme) => void;
|
|
23
|
+
}
|
|
24
|
+
interface ThemeProviderProps {
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
defaultTheme?: Theme;
|
|
27
|
+
forcedTheme?: Theme;
|
|
28
|
+
storageKey?: string;
|
|
29
|
+
}
|
|
30
|
+
declare function ThemeProvider({ children, defaultTheme, forcedTheme, storageKey }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare function useTheme(): ThemeProviderState;
|
|
32
|
+
|
|
33
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
34
|
+
|
|
35
|
+
interface BrandLogoProps {
|
|
36
|
+
className?: string;
|
|
37
|
+
size?: "sm" | "md" | "lg";
|
|
38
|
+
href?: string;
|
|
39
|
+
}
|
|
40
|
+
declare function BrandLogo({ className, size, href }: BrandLogoProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
type IconTone = "brand" | "info" | "success" | "warning" | "danger" | "neutral";
|
|
43
|
+
type IconSize = "sm" | "md" | "lg";
|
|
44
|
+
interface FeatureIconProps {
|
|
45
|
+
className?: string;
|
|
46
|
+
icon: LucideIcon;
|
|
47
|
+
tone?: IconTone;
|
|
48
|
+
size?: IconSize;
|
|
49
|
+
iconClassName?: string;
|
|
50
|
+
}
|
|
51
|
+
declare function FeatureIcon({ className, icon: Icon, tone, size, iconClassName }: FeatureIconProps): react_jsx_runtime.JSX.Element;
|
|
52
|
+
interface ModuleIconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
53
|
+
icon: LucideIcon;
|
|
54
|
+
label: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
tone?: IconTone;
|
|
57
|
+
}
|
|
58
|
+
declare function ModuleIconButton({ className, type, icon, label, description, tone, ...props }: ModuleIconButtonProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
60
|
+
type ProfileAvatarSize = "xs" | "sm" | "md" | "lg";
|
|
61
|
+
type ProfileAvatarStatus = "online" | "away" | "offline" | "inactive";
|
|
62
|
+
interface ProfileAvatarProps {
|
|
63
|
+
className?: string;
|
|
64
|
+
avatarClassName?: string;
|
|
65
|
+
fallbackClassName?: string;
|
|
66
|
+
name: string;
|
|
67
|
+
src?: string;
|
|
68
|
+
alt?: string;
|
|
69
|
+
initials?: string;
|
|
70
|
+
size?: ProfileAvatarSize;
|
|
71
|
+
status?: ProfileAvatarStatus;
|
|
72
|
+
}
|
|
73
|
+
declare function ProfileAvatar({ className, avatarClassName, fallbackClassName, name, src, alt, initials, size, status }: ProfileAvatarProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
interface AvatarGroupUser {
|
|
75
|
+
id?: string;
|
|
76
|
+
name: string;
|
|
77
|
+
src?: string;
|
|
78
|
+
initials?: string;
|
|
79
|
+
status?: ProfileAvatarStatus;
|
|
80
|
+
}
|
|
81
|
+
interface AvatarGroupProps {
|
|
82
|
+
className?: string;
|
|
83
|
+
users: AvatarGroupUser[];
|
|
84
|
+
size?: Exclude<ProfileAvatarSize, "lg">;
|
|
85
|
+
limit?: number;
|
|
86
|
+
extraLabel?: ReactNode;
|
|
87
|
+
}
|
|
88
|
+
declare function AvatarGroup({ className, users, size, limit, extraLabel }: AvatarGroupProps): react_jsx_runtime.JSX.Element;
|
|
89
|
+
interface ProfileAvatarRowProps {
|
|
90
|
+
className?: string;
|
|
91
|
+
name: string;
|
|
92
|
+
role?: string;
|
|
93
|
+
src?: string;
|
|
94
|
+
initials?: string;
|
|
95
|
+
status?: ProfileAvatarStatus;
|
|
96
|
+
size?: ProfileAvatarSize;
|
|
97
|
+
aside?: ReactNode;
|
|
98
|
+
}
|
|
99
|
+
declare function ProfileAvatarRow({ className, name, role, src, initials, status, size, aside }: ProfileAvatarRowProps): react_jsx_runtime.JSX.Element;
|
|
100
|
+
|
|
101
|
+
declare const typographyVariants: (props?: ({
|
|
102
|
+
variant?: "small" | "h2" | "h3" | "body" | "code" | "h1" | "h4" | "lead" | "muted" | null | undefined;
|
|
103
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
104
|
+
type TypographyProps<T extends ElementType> = {
|
|
105
|
+
as?: T;
|
|
106
|
+
children: ReactNode;
|
|
107
|
+
className?: string;
|
|
108
|
+
} & VariantProps<typeof typographyVariants> & Omit<ComponentPropsWithoutRef<T>, "as" | "children" | "className">;
|
|
109
|
+
declare function Typography<T extends ElementType = "p">({ as, className, variant, children, ...props }: TypographyProps<T>): react_jsx_runtime.JSX.Element;
|
|
110
|
+
|
|
111
|
+
interface LoadingStateProps {
|
|
112
|
+
className?: string;
|
|
113
|
+
title?: string;
|
|
114
|
+
description?: string;
|
|
115
|
+
size?: "sm" | "md" | "lg";
|
|
116
|
+
icon?: ReactNode;
|
|
117
|
+
}
|
|
118
|
+
declare function LoadingState({ className, title, description, size, icon }: LoadingStateProps): react_jsx_runtime.JSX.Element;
|
|
119
|
+
interface LoadingCardProps {
|
|
120
|
+
className?: string;
|
|
121
|
+
rows?: number;
|
|
122
|
+
}
|
|
123
|
+
declare function LoadingCard({ className, rows }: LoadingCardProps): react_jsx_runtime.JSX.Element;
|
|
124
|
+
interface LoadingTableRowsProps {
|
|
125
|
+
className?: string;
|
|
126
|
+
columns?: number;
|
|
127
|
+
rows?: number;
|
|
128
|
+
}
|
|
129
|
+
declare function LoadingTableRows({ className, columns, rows }: LoadingTableRowsProps): react_jsx_runtime.JSX.Element;
|
|
130
|
+
|
|
131
|
+
declare const buttonVariants: (props?: ({
|
|
132
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
133
|
+
size?: "sm" | "lg" | "icon" | "default" | null | undefined;
|
|
134
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
135
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
136
|
+
asChild?: boolean;
|
|
137
|
+
}
|
|
138
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
139
|
+
|
|
140
|
+
type NotificationTone = "info" | "success" | "warning" | "danger" | "loading";
|
|
141
|
+
interface NotificationMessageProps {
|
|
142
|
+
className?: string;
|
|
143
|
+
tone?: NotificationTone;
|
|
144
|
+
title: string;
|
|
145
|
+
description?: ReactNode;
|
|
146
|
+
action?: ReactNode;
|
|
147
|
+
icon?: LucideIcon;
|
|
148
|
+
}
|
|
149
|
+
declare function NotificationMessage({ className, tone, title, description, action, icon }: NotificationMessageProps): react_jsx_runtime.JSX.Element;
|
|
150
|
+
interface NotifyPayload {
|
|
151
|
+
title: string;
|
|
152
|
+
description?: string;
|
|
153
|
+
actionLabel?: string;
|
|
154
|
+
onAction?: () => void;
|
|
155
|
+
}
|
|
156
|
+
declare const notify: {
|
|
157
|
+
info: (payload: NotifyPayload) => string | number;
|
|
158
|
+
success: (payload: NotifyPayload) => string | number;
|
|
159
|
+
warning: (payload: NotifyPayload) => string | number;
|
|
160
|
+
danger: (payload: NotifyPayload) => string | number;
|
|
161
|
+
loading: (payload: NotifyPayload) => string | number;
|
|
162
|
+
};
|
|
163
|
+
interface NotificationActionProps extends React.ComponentProps<typeof Button> {
|
|
164
|
+
children: ReactNode;
|
|
165
|
+
}
|
|
166
|
+
declare function NotificationAction({ children, variant, size, ...props }: NotificationActionProps): react_jsx_runtime.JSX.Element;
|
|
167
|
+
|
|
168
|
+
declare function Skeleton({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
interface SpinnerProps {
|
|
171
|
+
className?: string;
|
|
172
|
+
size?: "sm" | "md" | "lg";
|
|
173
|
+
}
|
|
174
|
+
declare function Spinner({ className, size }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
175
|
+
|
|
176
|
+
type StatusTone = "success" | "warning" | "danger" | "info" | "loading";
|
|
177
|
+
interface StatusBadgeProps {
|
|
178
|
+
children: string;
|
|
179
|
+
tone?: StatusTone;
|
|
180
|
+
className?: string;
|
|
181
|
+
}
|
|
182
|
+
declare function StatusBadge({ children, tone, className }: StatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
184
|
+
declare function Toaster(props: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
185
|
+
|
|
186
|
+
interface SearchableSelectOption {
|
|
187
|
+
value: string;
|
|
188
|
+
label: string;
|
|
189
|
+
sublabel?: string;
|
|
190
|
+
}
|
|
191
|
+
interface SearchableSelectProps {
|
|
192
|
+
options: SearchableSelectOption[];
|
|
193
|
+
value: string;
|
|
194
|
+
onValueChange: (value: string) => void;
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
searchPlaceholder?: string;
|
|
197
|
+
disabled?: boolean;
|
|
198
|
+
loading?: boolean;
|
|
199
|
+
emptyMessage?: string;
|
|
200
|
+
id?: string;
|
|
201
|
+
className?: string;
|
|
202
|
+
}
|
|
203
|
+
declare const SearchableSelect: React$1.ForwardRefExoticComponent<SearchableSelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
204
|
+
|
|
205
|
+
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
206
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
207
|
+
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
208
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
209
|
+
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
210
|
+
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
212
|
+
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
213
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
214
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
215
|
+
|
|
216
|
+
interface SidebarNavItem {
|
|
217
|
+
label: string;
|
|
218
|
+
href?: string;
|
|
219
|
+
active?: boolean;
|
|
220
|
+
icon?: LucideIcon;
|
|
221
|
+
onClick?: () => void;
|
|
222
|
+
}
|
|
223
|
+
interface SidebarGroup {
|
|
224
|
+
label: string;
|
|
225
|
+
items: SidebarNavItem[];
|
|
226
|
+
}
|
|
227
|
+
interface SidebarProps {
|
|
228
|
+
brand?: ReactNode;
|
|
229
|
+
groups: SidebarGroup[];
|
|
230
|
+
user?: {
|
|
231
|
+
name: string;
|
|
232
|
+
role?: string;
|
|
233
|
+
initials?: string;
|
|
234
|
+
};
|
|
235
|
+
footerAction?: {
|
|
236
|
+
label: string;
|
|
237
|
+
onClick?: () => void;
|
|
238
|
+
};
|
|
239
|
+
className?: string;
|
|
240
|
+
}
|
|
241
|
+
declare function Sidebar({ brand, groups, user, footerAction, className }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
242
|
+
|
|
243
|
+
interface AppShellProps {
|
|
244
|
+
brand?: ReactNode;
|
|
245
|
+
actions?: ReactNode;
|
|
246
|
+
sidebarGroups: SidebarGroup[];
|
|
247
|
+
sidebarUser?: {
|
|
248
|
+
name: string;
|
|
249
|
+
role?: string;
|
|
250
|
+
initials?: string;
|
|
251
|
+
};
|
|
252
|
+
sidebarFooterAction?: {
|
|
253
|
+
label: string;
|
|
254
|
+
onClick?: () => void;
|
|
255
|
+
};
|
|
256
|
+
children: ReactNode;
|
|
257
|
+
}
|
|
258
|
+
declare function AppShell({ brand, actions, sidebarGroups, sidebarUser, sidebarFooterAction, children }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
259
|
+
|
|
260
|
+
interface FormSectionProps {
|
|
261
|
+
title: string;
|
|
262
|
+
description?: string;
|
|
263
|
+
children: ReactNode;
|
|
264
|
+
}
|
|
265
|
+
declare function FormSection({ title, description, children }: FormSectionProps): react_jsx_runtime.JSX.Element;
|
|
266
|
+
|
|
267
|
+
interface PageHeaderProps {
|
|
268
|
+
title: string;
|
|
269
|
+
description?: string;
|
|
270
|
+
action?: ReactNode;
|
|
271
|
+
}
|
|
272
|
+
declare function PageHeader({ title, description, action }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
273
|
+
|
|
274
|
+
declare function ThemeToggle({ className }: {
|
|
275
|
+
className?: string;
|
|
276
|
+
}): react_jsx_runtime.JSX.Element;
|
|
277
|
+
|
|
278
|
+
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
279
|
+
separator?: React$1.ReactNode;
|
|
280
|
+
} & React$1.RefAttributes<HTMLElement>>;
|
|
281
|
+
declare const BreadcrumbList: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
282
|
+
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
283
|
+
declare const BreadcrumbLink: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
284
|
+
asChild?: boolean;
|
|
285
|
+
} & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
286
|
+
declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
287
|
+
declare const BreadcrumbSeparator: {
|
|
288
|
+
({ children, className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
289
|
+
displayName: string;
|
|
290
|
+
};
|
|
291
|
+
declare const BreadcrumbEllipsis: {
|
|
292
|
+
({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
293
|
+
displayName: string;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
interface NavbarProps {
|
|
297
|
+
brand?: ReactNode;
|
|
298
|
+
actions?: ReactNode;
|
|
299
|
+
onMenuClick?: () => void;
|
|
300
|
+
className?: string;
|
|
301
|
+
}
|
|
302
|
+
declare function Navbar({ brand, actions, onMenuClick, className }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
303
|
+
|
|
304
|
+
interface BreadcrumbItemDef {
|
|
305
|
+
label: string;
|
|
306
|
+
href?: string;
|
|
307
|
+
}
|
|
308
|
+
interface PageBreadcrumbProps {
|
|
309
|
+
items: BreadcrumbItemDef[];
|
|
310
|
+
}
|
|
311
|
+
declare function PageBreadcrumb({ items }: PageBreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
312
|
+
|
|
313
|
+
type StepStatus = "complete" | "current" | "upcoming" | "error";
|
|
314
|
+
interface StepItem {
|
|
315
|
+
id?: string;
|
|
316
|
+
title: string;
|
|
317
|
+
description?: string;
|
|
318
|
+
status?: StepStatus;
|
|
319
|
+
}
|
|
320
|
+
interface StepsProps {
|
|
321
|
+
className?: string;
|
|
322
|
+
items: StepItem[];
|
|
323
|
+
orientation?: "horizontal" | "vertical";
|
|
324
|
+
}
|
|
325
|
+
declare function Steps({ className, items, orientation }: StepsProps): react_jsx_runtime.JSX.Element;
|
|
326
|
+
|
|
327
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
328
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
329
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
330
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
331
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
332
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
333
|
+
declare const DialogHeader: {
|
|
334
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
335
|
+
displayName: string;
|
|
336
|
+
};
|
|
337
|
+
declare const DialogFooter: {
|
|
338
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
339
|
+
displayName: string;
|
|
340
|
+
};
|
|
341
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
342
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
343
|
+
|
|
344
|
+
declare const Drawer: {
|
|
345
|
+
({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
346
|
+
displayName: string;
|
|
347
|
+
};
|
|
348
|
+
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
349
|
+
declare const DrawerPortal: typeof vaul.Portal;
|
|
350
|
+
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
351
|
+
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
352
|
+
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
353
|
+
declare const DrawerHeader: {
|
|
354
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
355
|
+
displayName: string;
|
|
356
|
+
};
|
|
357
|
+
declare const DrawerFooter: {
|
|
358
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
359
|
+
displayName: string;
|
|
360
|
+
};
|
|
361
|
+
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
362
|
+
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
363
|
+
|
|
364
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
365
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
366
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
367
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
368
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
369
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
370
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
371
|
+
inset?: boolean;
|
|
372
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
373
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
374
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
375
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
376
|
+
inset?: boolean;
|
|
377
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
378
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
379
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
380
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
381
|
+
inset?: boolean;
|
|
382
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
383
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
384
|
+
declare const DropdownMenuShortcut: {
|
|
385
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
386
|
+
displayName: string;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
|
|
390
|
+
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
391
|
+
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
392
|
+
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
393
|
+
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
394
|
+
declare const sheetVariants: (props?: ({
|
|
395
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
396
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
397
|
+
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
398
|
+
}
|
|
399
|
+
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
400
|
+
declare const SheetHeader: {
|
|
401
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
402
|
+
displayName: string;
|
|
403
|
+
};
|
|
404
|
+
declare const SheetFooter: {
|
|
405
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
406
|
+
displayName: string;
|
|
407
|
+
};
|
|
408
|
+
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
409
|
+
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
410
|
+
|
|
411
|
+
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
412
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
413
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
414
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
415
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
416
|
+
|
|
417
|
+
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
418
|
+
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
419
|
+
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
420
|
+
|
|
421
|
+
declare const badgeVariants: (props?: ({
|
|
422
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
423
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
424
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
425
|
+
}
|
|
426
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
427
|
+
|
|
428
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
429
|
+
declare const ClickableCard: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
430
|
+
interface CenteredIconCardProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
431
|
+
icon: LucideIcon;
|
|
432
|
+
title: string;
|
|
433
|
+
iconClassName?: string;
|
|
434
|
+
}
|
|
435
|
+
declare const CenteredIconCard: React$1.ForwardRefExoticComponent<CenteredIconCardProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
436
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
437
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
438
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
439
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
440
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
441
|
+
|
|
442
|
+
type CheckboxProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type">;
|
|
443
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
444
|
+
interface CheckboxFieldProps extends CheckboxProps {
|
|
445
|
+
label: React$1.ReactNode;
|
|
446
|
+
description?: React$1.ReactNode;
|
|
447
|
+
containerClassName?: string;
|
|
448
|
+
}
|
|
449
|
+
declare function CheckboxField({ id, label, description, containerClassName, className, ...props }: CheckboxFieldProps): react_jsx_runtime.JSX.Element;
|
|
450
|
+
|
|
451
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
452
|
+
|
|
453
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
454
|
+
|
|
455
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
456
|
+
type RadioGroupItemProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type">;
|
|
457
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<RadioGroupItemProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
458
|
+
interface RadioFieldProps extends RadioGroupItemProps {
|
|
459
|
+
label: React$1.ReactNode;
|
|
460
|
+
description?: React$1.ReactNode;
|
|
461
|
+
containerClassName?: string;
|
|
462
|
+
}
|
|
463
|
+
declare function RadioField({ id, label, description, containerClassName, className, ...props }: RadioFieldProps): react_jsx_runtime.JSX.Element;
|
|
464
|
+
|
|
465
|
+
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
466
|
+
|
|
467
|
+
type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
|
468
|
+
size?: "default" | "sm";
|
|
469
|
+
};
|
|
470
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
|
|
471
|
+
size?: "default" | "sm";
|
|
472
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
473
|
+
interface SwitchFieldProps extends SwitchProps {
|
|
474
|
+
label: React$1.ReactNode;
|
|
475
|
+
description?: React$1.ReactNode;
|
|
476
|
+
containerClassName?: string;
|
|
477
|
+
}
|
|
478
|
+
declare function SwitchField({ id, label, description, containerClassName, size, className, ...props }: SwitchFieldProps): react_jsx_runtime.JSX.Element;
|
|
479
|
+
|
|
480
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
481
|
+
|
|
482
|
+
interface ColumnDef<T> {
|
|
483
|
+
key: keyof T | string;
|
|
484
|
+
label: string;
|
|
485
|
+
render?: (row: T) => ReactNode;
|
|
486
|
+
mobileHide?: boolean;
|
|
487
|
+
sortable?: boolean;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
interface DataTableProps<T> {
|
|
491
|
+
data: T[];
|
|
492
|
+
columns: ColumnDef<T>[];
|
|
493
|
+
isLoading?: boolean;
|
|
494
|
+
actions?: (row: T) => ReactNode;
|
|
495
|
+
emptyMessage?: string;
|
|
496
|
+
pageSize?: number;
|
|
497
|
+
}
|
|
498
|
+
declare function DataTable<T>({ data, columns, isLoading, actions, emptyMessage, pageSize }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
499
|
+
|
|
500
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
501
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
502
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
503
|
+
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
504
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
505
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
506
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
507
|
+
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
508
|
+
|
|
509
|
+
interface TableActionItem {
|
|
510
|
+
label: string;
|
|
511
|
+
icon?: ReactNode;
|
|
512
|
+
shortcut?: string;
|
|
513
|
+
disabled?: boolean;
|
|
514
|
+
destructive?: boolean;
|
|
515
|
+
onSelect?: () => void;
|
|
516
|
+
}
|
|
517
|
+
interface TableRowActionsProps {
|
|
518
|
+
className?: string;
|
|
519
|
+
label?: string;
|
|
520
|
+
menuLabel?: string;
|
|
521
|
+
items: TableActionItem[];
|
|
522
|
+
}
|
|
523
|
+
declare function TableRowActions({ className, label, menuLabel, items }: TableRowActionsProps): react_jsx_runtime.JSX.Element;
|
|
524
|
+
|
|
525
|
+
export { Alert, AlertDescription, AlertTitle, AppShell, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupUser, AvatarImage, Badge, type BadgeProps, BrandLogo, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemDef, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CenteredIconCard, Checkbox, CheckboxField, ClickableCard, type ColumnDef, DataTable, 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, FeatureIcon, type FeatureIconProps, FormSection, type IconSize, type IconTone, Input, Label, LoadingCard, LoadingState, LoadingTableRows, ModuleIconButton, type ModuleIconButtonProps, Navbar, NotificationAction, NotificationMessage, type NotificationMessageProps, type NotificationTone, PageBreadcrumb, PageHeader, ProfileAvatar, type ProfileAvatarProps, ProfileAvatarRow, type ProfileAvatarSize, type ProfileAvatarStatus, RadioField, RadioGroup, RadioGroupItem, SearchableSelect, type SearchableSelectOption, type SearchableSelectProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, type SidebarGroup, type SidebarNavItem, Skeleton, Spinner, StatusBadge, type StatusTone, type StepItem, type StepStatus, Steps, Switch, SwitchField, Table, type TableActionItem, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableRowActions, Textarea, type Theme, ThemeProvider, type ThemeProviderProps, ThemeToggle, Toaster, Typography, badgeVariants, buttonVariants, cn, notify, useTheme };
|