adminium 1.0.1-patch.0 → 1.0.1-patch.2

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.cts CHANGED
@@ -1,13 +1,128 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import * as React$1 from 'react';
4
+ import { ReactNode, CSSProperties, HTMLAttributes, RefObject } from 'react';
4
5
  import { VariantProps } from 'class-variance-authority';
5
- import { Avatar as Avatar$1 } from 'radix-ui';
6
+ import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Popover as Popover$1, Avatar as Avatar$1, Label as Label$1, ScrollArea as ScrollArea$1, Select as Select$1 } from 'radix-ui';
6
7
  import { LucideIcon } from 'lucide-react';
8
+ import { Drawer as Drawer$1 } from 'vaul';
9
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
10
+ import { RowData, Table, SortingState, ColumnFiltersState, Row, Cell, Column, HeaderGroup, Header } from '@tanstack/react-table';
7
11
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
8
12
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
13
+ import * as react_hook_form from 'react-hook-form';
14
+ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
15
+ import { Slot } from '@radix-ui/react-slot';
9
16
  import { ClassValue } from 'clsx';
10
17
 
18
+ declare const alertVariants: (props?: ({
19
+ variant?: "primary" | "mono" | "destructive" | "success" | "secondary" | "info" | "warning" | null | undefined;
20
+ icon?: "primary" | "destructive" | "success" | "info" | "warning" | null | undefined;
21
+ appearance?: "outline" | "solid" | "stroke" | "light" | null | undefined;
22
+ size?: "lg" | "md" | "sm" | null | undefined;
23
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
24
+ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
25
+ close?: boolean;
26
+ onClose?: () => void;
27
+ }
28
+ interface AlertIconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
29
+ }
30
+ declare function Alert({ className, variant, size, icon, appearance, close, onClose, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
31
+ declare function AlertTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
32
+ declare function AlertIcon({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
33
+ declare function AlertToolbar({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
34
+ declare function AlertDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
35
+ declare function AlertContent({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
36
+
37
+ declare const buttonVariants: (props?: ({
38
+ variant?: "primary" | "mono" | "destructive" | "success" | "secondary" | "outline" | "dashed" | "ghost" | "dim" | "foreground" | "inverse" | null | undefined;
39
+ appearance?: "ghost" | "default" | null | undefined;
40
+ underline?: "dashed" | "solid" | null | undefined;
41
+ underlined?: "dashed" | "solid" | null | undefined;
42
+ size?: "lg" | "md" | "sm" | "icon" | null | undefined;
43
+ autoHeight?: boolean | null | undefined;
44
+ shape?: "default" | "circle" | null | undefined;
45
+ mode?: "default" | "icon" | "link" | "input" | null | undefined;
46
+ placeholder?: boolean | null | undefined;
47
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
48
+ declare function Button({ className, selected, variant, shape, appearance, mode, size, autoHeight, underlined, underline, asChild, placeholder, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
49
+ selected?: boolean;
50
+ asChild?: boolean;
51
+ }): react_jsx_runtime.JSX.Element;
52
+ interface ButtonArrowProps extends React$1.SVGProps<SVGSVGElement> {
53
+ icon?: LucideIcon;
54
+ }
55
+ declare function ButtonArrow({ icon: Icon, className, ...props }: ButtonArrowProps): react_jsx_runtime.JSX.Element;
56
+
57
+ declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime.JSX.Element;
58
+ declare function AlertDialogTrigger({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime.JSX.Element;
59
+ declare function AlertDialogPortal({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime.JSX.Element;
60
+ declare function AlertDialogOverlay({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime.JSX.Element;
61
+ declare function AlertDialogContent({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime.JSX.Element;
62
+ declare const AlertDialogHeader: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
63
+ declare const AlertDialogFooter: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
64
+ declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime.JSX.Element;
65
+ declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime.JSX.Element;
66
+ declare function AlertDialogAction({ className, variant, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Action> & VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
67
+ declare function AlertDialogCancel({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime.JSX.Element;
68
+
69
+ declare const dialogContentVariants: (props?: ({
70
+ variant?: "default" | "fullscreen" | null | undefined;
71
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
72
+ declare function Dialog({ ...props }: React$1.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
73
+ declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
74
+ declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
75
+ declare function DialogClose({ ...props }: React$1.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
76
+ declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
77
+ declare function DialogContent({ className, children, showCloseButton, overlay, variant, "aria-describedby": ariaDescribedBy, ...props }: React$1.ComponentProps<typeof Dialog$1.Content> & VariantProps<typeof dialogContentVariants> & {
78
+ showCloseButton?: boolean;
79
+ overlay?: boolean;
80
+ }): react_jsx_runtime.JSX.Element;
81
+
82
+ declare const DialogHeader: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
83
+ declare const DialogFooter: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
84
+ declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
85
+ declare const DialogBody: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
86
+ declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
87
+
88
+ declare function Popover({ ...props }: React$1.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime.JSX.Element;
89
+ declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime.JSX.Element;
90
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime.JSX.Element;
91
+
92
+ declare const Drawer: ({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>) => react_jsx_runtime.JSX.Element;
93
+ declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
94
+ declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
95
+ declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
96
+ declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
97
+ declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
98
+ declare const DrawerHeader: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
99
+ declare const DrawerFooter: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
100
+ declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
101
+ declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
102
+
103
+ declare function HoverCard({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime.JSX.Element;
104
+ declare function HoverCardTrigger({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
105
+ declare function HoverCardContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Content>): react_jsx_runtime.JSX.Element;
106
+
107
+ declare function Sheet({ ...props }: React$1.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
108
+ declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
109
+ declare function SheetClose({ ...props }: React$1.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
110
+ declare function SheetPortal({ ...props }: React$1.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
111
+ declare function SheetOverlay({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
112
+ declare const sheetVariants: (props?: ({
113
+ side?: "top" | "bottom" | "left" | "right" | null | undefined;
114
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
115
+ interface SheetContentProps extends React$1.ComponentProps<typeof Dialog$1.Content>, VariantProps<typeof sheetVariants> {
116
+ overlay?: boolean;
117
+ close?: boolean;
118
+ }
119
+ declare function SheetContent({ side, overlay, close, className, children, ...props }: React$1.ComponentProps<typeof Dialog$1.Content> & SheetContentProps): react_jsx_runtime.JSX.Element;
120
+ declare function SheetHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
121
+ declare function SheetBody({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
122
+ declare function SheetFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
123
+ declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
124
+ declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
125
+
11
126
  declare const avatarStatusVariants: (props?: ({
12
127
  variant?: "online" | "offline" | "busy" | "away" | null | undefined;
13
128
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -17,6 +132,197 @@ declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<
17
132
  declare function AvatarIndicator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
18
133
  declare function AvatarStatus({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof avatarStatusVariants>): react_jsx_runtime.JSX.Element;
19
134
 
135
+ type AnimationType = "default" | "flip" | "reveal";
136
+ interface AvatarGroupProps {
137
+ children: React$1.ReactNode;
138
+ className?: string;
139
+ tooltipClassName?: string;
140
+ animation?: AnimationType;
141
+ }
142
+ interface AvatarGroupItemProps {
143
+ children: React$1.ReactNode;
144
+ className?: string;
145
+ tooltipClassName?: string;
146
+ animation?: AnimationType;
147
+ }
148
+ interface AvatarGroupTooltipProps {
149
+ children: React$1.ReactNode;
150
+ className?: string;
151
+ }
152
+ declare function AvatarGroup({ children, className, tooltipClassName, animation, }: AvatarGroupProps): react_jsx_runtime.JSX.Element;
153
+ declare function AvatarGroupItem({ children, className, tooltipClassName, animation: itemAnimation, }: AvatarGroupItemProps): react_jsx_runtime.JSX.Element;
154
+ declare function AvatarGroupTooltip({ children, className, }: AvatarGroupTooltipProps): react_jsx_runtime.JSX.Element;
155
+
156
+ declare module "@tanstack/react-table" {
157
+ interface ColumnMeta<TData extends RowData, TValue> {
158
+ headerTitle?: string;
159
+ headerClassName?: string;
160
+ cellClassName?: string;
161
+ skeleton?: ReactNode;
162
+ expandedContent?: (row: TData) => ReactNode;
163
+ }
164
+ }
165
+ type DataGridApiFetchParams = {
166
+ pageIndex: number;
167
+ pageSize: number;
168
+ sorting?: SortingState;
169
+ filters?: ColumnFiltersState;
170
+ searchQuery?: string;
171
+ };
172
+ type DataGridApiResponse<T> = {
173
+ data: T[];
174
+ empty: boolean;
175
+ pagination: {
176
+ total: number;
177
+ page: number;
178
+ };
179
+ };
180
+ interface DataGridContextProps<TData extends object> {
181
+ props: DataGridProps<TData>;
182
+ table: Table<TData>;
183
+ recordCount: number;
184
+ isLoading: boolean;
185
+ }
186
+ type DataGridRequestParams = {
187
+ pageIndex: number;
188
+ pageSize: number;
189
+ sorting?: SortingState;
190
+ columnFilters?: ColumnFiltersState;
191
+ };
192
+ interface DataGridProps<TData extends object> {
193
+ className?: string;
194
+ table?: Table<TData>;
195
+ recordCount: number;
196
+ children?: ReactNode;
197
+ onRowClick?: (row: TData) => void;
198
+ isLoading?: boolean;
199
+ loadingMode?: "skeleton" | "spinner";
200
+ loadingMessage?: ReactNode | string;
201
+ emptyMessage?: ReactNode | string;
202
+ tableLayout?: {
203
+ dense?: boolean;
204
+ cellBorder?: boolean;
205
+ rowBorder?: boolean;
206
+ rowRounded?: boolean;
207
+ stripped?: boolean;
208
+ headerBackground?: boolean;
209
+ headerBorder?: boolean;
210
+ headerSticky?: boolean;
211
+ width?: "auto" | "fixed";
212
+ columnsVisibility?: boolean;
213
+ columnsResizable?: boolean;
214
+ columnsPinnable?: boolean;
215
+ columnsMovable?: boolean;
216
+ columnsDraggable?: boolean;
217
+ rowsDraggable?: boolean;
218
+ };
219
+ tableClassNames?: {
220
+ base?: string;
221
+ header?: string;
222
+ headerRow?: string;
223
+ headerSticky?: string;
224
+ body?: string;
225
+ bodyRow?: string;
226
+ footer?: string;
227
+ edgeCell?: string;
228
+ };
229
+ }
230
+ declare function useDataGrid(): DataGridContextProps<any>;
231
+ declare function DataGridProvider<TData extends object>({ children, table, ...props }: DataGridProps<TData> & {
232
+ table: Table<TData>;
233
+ }): react_jsx_runtime.JSX.Element;
234
+ declare function DataGrid<TData extends object>({ children, table, ...props }: DataGridProps<TData>): react_jsx_runtime.JSX.Element;
235
+ declare function DataGridContainer({ children, className, border, }: {
236
+ children: ReactNode;
237
+ className?: string;
238
+ border?: boolean;
239
+ }): react_jsx_runtime.JSX.Element;
240
+
241
+ declare function DataGridTableBase({ children }: {
242
+ children: ReactNode;
243
+ }): react_jsx_runtime.JSX.Element;
244
+ declare function DataGridTableHead({ children }: {
245
+ children: ReactNode;
246
+ }): react_jsx_runtime.JSX.Element;
247
+ declare function DataGridTableHeadRow<TData>({ children, headerGroup, }: {
248
+ children: ReactNode;
249
+ headerGroup: HeaderGroup<TData>;
250
+ }): react_jsx_runtime.JSX.Element;
251
+ declare function DataGridTableHeadRowCell<TData>({ children, header, dndRef, dndStyle, }: {
252
+ children: ReactNode;
253
+ header: Header<TData, unknown>;
254
+ dndRef?: React$1.Ref<HTMLTableCellElement>;
255
+ dndStyle?: CSSProperties;
256
+ }): react_jsx_runtime.JSX.Element;
257
+ declare function DataGridTableHeadRowCellResize<TData>({ header, }: {
258
+ header: Header<TData, unknown>;
259
+ }): react_jsx_runtime.JSX.Element;
260
+ declare function DataGridTableRowSpacer(): react_jsx_runtime.JSX.Element;
261
+ declare function DataGridTableBody({ children }: {
262
+ children: ReactNode;
263
+ }): react_jsx_runtime.JSX.Element;
264
+ declare function DataGridTableBodyRowSkeleton({ children }: {
265
+ children: ReactNode;
266
+ }): react_jsx_runtime.JSX.Element;
267
+ declare function DataGridTableBodyRowSkeletonCell<TData>({ children, column, }: {
268
+ children: ReactNode;
269
+ column: Column<TData>;
270
+ }): react_jsx_runtime.JSX.Element;
271
+ declare function DataGridTableBodyRow<TData>({ children, row, dndRef, dndStyle, }: {
272
+ children: ReactNode;
273
+ row: Row<TData>;
274
+ dndRef?: React$1.Ref<HTMLTableRowElement>;
275
+ dndStyle?: CSSProperties;
276
+ }): react_jsx_runtime.JSX.Element;
277
+ declare function DataGridTableBodyRowExpanded<TData>({ row }: {
278
+ row: Row<TData>;
279
+ }): react_jsx_runtime.JSX.Element;
280
+ declare function DataGridTableBodyRowCell<TData>({ children, cell, dndRef, dndStyle, }: {
281
+ children: ReactNode;
282
+ cell: Cell<TData, unknown>;
283
+ dndRef?: React$1.Ref<HTMLTableCellElement>;
284
+ dndStyle?: CSSProperties;
285
+ }): react_jsx_runtime.JSX.Element;
286
+ declare function DataGridTableEmpty(): react_jsx_runtime.JSX.Element;
287
+ declare function DataGridTableLoader(): react_jsx_runtime.JSX.Element;
288
+ declare function DataGridTableRowSelect<TData>({ row, size, }: {
289
+ row: Row<TData>;
290
+ size?: "sm" | "md" | "lg";
291
+ }): react_jsx_runtime.JSX.Element;
292
+ declare function DataGridTableRowSelectAll({ size }: {
293
+ size?: "sm" | "md" | "lg";
294
+ }): react_jsx_runtime.JSX.Element;
295
+ declare function DataGridTable<TData>(): react_jsx_runtime.JSX.Element;
296
+
297
+ interface DataGridColumnHeaderProps<TData, TValue> extends HTMLAttributes<HTMLDivElement> {
298
+ column: Column<TData, TValue>;
299
+ title?: string;
300
+ icon?: ReactNode;
301
+ pinnable?: boolean;
302
+ filter?: ReactNode;
303
+ visibility?: boolean;
304
+ }
305
+ declare function DataGridColumnHeader<TData, TValue>({ column, title, icon, className, filter, visibility, }: DataGridColumnHeaderProps<TData, TValue>): react_jsx_runtime.JSX.Element;
306
+
307
+ interface DataGridPaginationProps {
308
+ sizes?: number[];
309
+ sizesInfo?: string;
310
+ sizesLabel?: string;
311
+ sizesDescription?: string;
312
+ sizesSkeleton?: ReactNode;
313
+ more?: boolean;
314
+ moreLimit?: number;
315
+ info?: string;
316
+ infoSkeleton?: ReactNode;
317
+ className?: string;
318
+ }
319
+ declare function DataGridPagination(props: DataGridPaginationProps): react_jsx_runtime.JSX.Element;
320
+
321
+ declare function DataGridColumnVisibility<TData>({ table, trigger, }: {
322
+ table: Table<TData>;
323
+ trigger: ReactNode;
324
+ }): react_jsx_runtime.JSX.Element;
325
+
20
326
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
21
327
  asChild?: boolean;
22
328
  dotClassName?: string;
@@ -27,11 +333,11 @@ interface BadgeButtonProps extends React$1.ButtonHTMLAttributes<HTMLDivElement>,
27
333
  }
28
334
  type BadgeDotProps = React$1.HTMLAttributes<HTMLSpanElement>;
29
335
  declare const badgeVariants: (props?: ({
30
- variant?: "primary" | "secondary" | "success" | "warning" | "info" | "outline" | "destructive" | null | undefined;
31
- appearance?: "default" | "outline" | "light" | "ghost" | null | undefined;
336
+ variant?: "primary" | "destructive" | "success" | "secondary" | "outline" | "info" | "warning" | null | undefined;
337
+ appearance?: "outline" | "ghost" | "default" | "light" | null | undefined;
32
338
  disabled?: boolean | null | undefined;
33
339
  size?: "lg" | "md" | "sm" | "xs" | null | undefined;
34
- shape?: "circle" | "default" | null | undefined;
340
+ shape?: "default" | "circle" | null | undefined;
35
341
  } & class_variance_authority_types.ClassProp) | undefined) => string;
36
342
  declare const badgeButtonVariants: (props?: ({
37
343
  variant?: "default" | null | undefined;
@@ -44,26 +350,6 @@ declare function BadgeButton({ className, variant, asChild, ...props }: React$1.
44
350
  }): react_jsx_runtime.JSX.Element;
45
351
  declare function BadgeDot({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
46
352
 
47
- declare const buttonVariants: (props?: ({
48
- variant?: "primary" | "secondary" | "success" | "outline" | "destructive" | "ghost" | "mono" | "dashed" | "dim" | "foreground" | "inverse" | null | undefined;
49
- appearance?: "default" | "ghost" | null | undefined;
50
- underline?: "dashed" | "solid" | null | undefined;
51
- underlined?: "dashed" | "solid" | null | undefined;
52
- size?: "lg" | "md" | "sm" | "icon" | null | undefined;
53
- autoHeight?: boolean | null | undefined;
54
- shape?: "circle" | "default" | null | undefined;
55
- mode?: "input" | "link" | "default" | "icon" | null | undefined;
56
- placeholder?: boolean | null | undefined;
57
- } & class_variance_authority_types.ClassProp) | undefined) => string;
58
- declare function Button({ className, selected, variant, shape, appearance, mode, size, autoHeight, underlined, underline, asChild, placeholder, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
59
- selected?: boolean;
60
- asChild?: boolean;
61
- }): react_jsx_runtime.JSX.Element;
62
- interface ButtonArrowProps extends React$1.SVGProps<SVGSVGElement> {
63
- icon?: LucideIcon;
64
- }
65
- declare function ButtonArrow({ icon: Icon, className, ...props }: ButtonArrowProps): react_jsx_runtime.JSX.Element;
66
-
67
353
  declare const cardVariants: (props?: ({
68
354
  variant?: "default" | "accent" | null | undefined;
69
355
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -149,24 +435,70 @@ declare function DropdownMenuSeparator({ className, ...props }: React$1.Componen
149
435
  declare function DropdownMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
150
436
  declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
151
437
 
152
- declare const alertVariants: (props?: ({
153
- variant?: "primary" | "secondary" | "success" | "warning" | "info" | "destructive" | "mono" | null | undefined;
154
- icon?: "primary" | "success" | "warning" | "info" | "destructive" | null | undefined;
155
- appearance?: "outline" | "light" | "solid" | "stroke" | null | undefined;
438
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
439
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
440
+ declare const useFormField: () => {
441
+ invalid: boolean;
442
+ isDirty: boolean;
443
+ isTouched: boolean;
444
+ isValidating: boolean;
445
+ error?: react_hook_form.FieldError;
446
+ id: string;
447
+ name: string;
448
+ formItemId: string;
449
+ formDescriptionId: string;
450
+ formMessageId: string;
451
+ };
452
+ declare function FormItem({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
453
+ declare function FormLabel({ className, ...props }: React$1.ComponentProps<typeof Label$1.Root>): react_jsx_runtime.JSX.Element;
454
+ declare function FormControl({ ...props }: React$1.ComponentProps<typeof Slot>): react_jsx_runtime.JSX.Element;
455
+ declare function FormDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element | null;
456
+ declare function FormMessage({ className, children, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element | null;
457
+
458
+ declare const labelVariants: (props?: ({
459
+ variant?: "primary" | "secondary" | null | undefined;
460
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
461
+ declare function Label({ className, variant, ...props }: React$1.ComponentProps<typeof Label$1.Root> & VariantProps<typeof labelVariants>): react_jsx_runtime.JSX.Element;
462
+
463
+ declare function ScrollArea({ className, viewportClassName, children, viewportRef, ...props }: React$1.ComponentProps<typeof ScrollArea$1.Root> & {
464
+ viewportRef?: React$1.Ref<HTMLDivElement>;
465
+ viewportClassName?: string;
466
+ }): react_jsx_runtime.JSX.Element;
467
+ declare function ScrollBar({ className, orientation, ...props }: React$1.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
468
+
469
+ type ScrollspyProps = {
470
+ children: ReactNode;
471
+ targetRef?: RefObject<HTMLElement | HTMLDivElement | Document | null | undefined>;
472
+ onUpdate?: (id: string) => void;
473
+ offset?: number;
474
+ smooth?: boolean;
475
+ className?: string;
476
+ dataAttribute?: string;
477
+ history?: boolean;
478
+ throttleTime?: number;
479
+ };
480
+ declare function Scrollspy({ children, targetRef, onUpdate, className, offset, smooth, dataAttribute, history, }: ScrollspyProps): react_jsx_runtime.JSX.Element;
481
+
482
+ declare const Select: ({ indicatorPosition, indicatorVisibility, indicator, ...props }: {
483
+ indicatorPosition?: "left" | "right";
484
+ indicatorVisibility?: boolean;
485
+ indicator?: ReactNode;
486
+ } & React$1.ComponentProps<typeof Select$1.Root>) => react_jsx_runtime.JSX.Element;
487
+ declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
488
+ declare function SelectValue({ ...props }: React$1.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
489
+ declare const selectTriggerVariants: (props?: ({
156
490
  size?: "lg" | "md" | "sm" | null | undefined;
157
491
  } & class_variance_authority_types.ClassProp) | undefined) => string;
158
- interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
159
- close?: boolean;
160
- onClose?: () => void;
161
- }
162
- interface AlertIconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
492
+ interface SelectTriggerProps extends React$1.ComponentProps<typeof Select$1.Trigger>, VariantProps<typeof selectTriggerVariants> {
163
493
  }
164
- declare function Alert({ className, variant, size, icon, appearance, close, onClose, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
165
- declare function AlertTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
166
- declare function AlertIcon({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
167
- declare function AlertToolbar({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
168
- declare function AlertDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
169
- declare function AlertContent({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
494
+ declare function SelectTrigger({ className, children, size, ...props }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
495
+ declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof Select$1.ScrollUpButton>): react_jsx_runtime.JSX.Element;
496
+ declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
497
+ declare function SelectContent({ className, children, position, ...props }: React$1.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
498
+ declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
499
+ declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
500
+ declare function SelectIndicator({ children, className, ...props }: React$1.ComponentProps<typeof Select$1.ItemIndicator>): react_jsx_runtime.JSX.Element;
501
+ declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
170
502
 
171
503
  declare function useIsMobile(): boolean;
172
504
 
@@ -188,4 +520,4 @@ declare function useMounted(): boolean;
188
520
  */
189
521
  declare function cn(...inputs: ClassValue[]): string;
190
522
 
191
- export { Alert, AlertContent, AlertDescription, AlertIcon, AlertTitle, AlertToolbar, Avatar, AvatarFallback, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Skeleton, avatarStatusVariants, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, useCopyToClipboard, useIsMobile, useMounted };
523
+ export { Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DataGrid, type DataGridApiFetchParams, type DataGridApiResponse, DataGridColumnHeader, type DataGridColumnHeaderProps, DataGridColumnVisibility, DataGridContainer, type DataGridContextProps, DataGridPagination, type DataGridPaginationProps, type DataGridProps, DataGridProvider, type DataGridRequestParams, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableLoader, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, Dialog, DialogBody, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Label, Popover, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, avatarStatusVariants, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, labelVariants, selectTriggerVariants, useCopyToClipboard, useDataGrid, useFormField, useIsMobile, useMounted };