@freitas-ds/react 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.
@@ -0,0 +1,1195 @@
1
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
2
+ import * as React from "react";
3
+ import { VariantProps } from "class-variance-authority";
4
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
5
+ import { DateRange, DayPickerProps } from "react-day-picker";
6
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
7
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
8
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
9
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
10
+ import { AnyFieldApi, AnyFormApi, useForm } from "@tanstack/react-form";
11
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
12
+ import * as SelectPrimitive from "@radix-ui/react-select";
13
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
14
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
15
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
16
+ import * as ToastPrimitive from "@radix-ui/react-toast";
17
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
18
+ import { FreitasThemeInput } from "@freitas-ds/theme";
19
+
20
+ //#region src/components/action-bar.d.ts
21
+ type ActionBarProps = React.HTMLAttributes<HTMLDivElement> & {
22
+ selectedCount: number;
23
+ label?: React.ReactNode;
24
+ onClearSelection?: () => void;
25
+ };
26
+ declare function ActionBar({
27
+ selectedCount,
28
+ label,
29
+ onClearSelection,
30
+ className,
31
+ children,
32
+ ...props
33
+ }: ActionBarProps): React.JSX.Element | null;
34
+ //#endregion
35
+ //#region src/components/alert.d.ts
36
+ type AlertTone = "neutral" | "info" | "success" | "warning" | "danger";
37
+ type AlertProps = React.HTMLAttributes<HTMLDivElement> & {
38
+ tone?: AlertTone;
39
+ title?: string;
40
+ description?: string;
41
+ icon?: React.ReactNode | false;
42
+ };
43
+ declare function Alert({
44
+ className,
45
+ tone,
46
+ title,
47
+ description,
48
+ icon,
49
+ children,
50
+ ...props
51
+ }: AlertProps): React.JSX.Element;
52
+ //#endregion
53
+ //#region src/components/alert-dialog.d.ts
54
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
55
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
56
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
57
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
58
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
59
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
60
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
61
+ declare function AlertDialogHeader({
62
+ className,
63
+ ...props
64
+ }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
65
+ declare function AlertDialogFooter({
66
+ className,
67
+ ...props
68
+ }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
69
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
70
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
71
+ declare function AlertDialogCancelButton({
72
+ className,
73
+ ...props
74
+ }: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>): React.JSX.Element;
75
+ declare function AlertDialogActionButton({
76
+ className,
77
+ variant,
78
+ ...props
79
+ }: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & {
80
+ variant?: "primary" | "danger";
81
+ }): React.JSX.Element;
82
+ //#endregion
83
+ //#region src/components/app-shell.d.ts
84
+ type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {
85
+ sidebar?: React.ReactNode;
86
+ topbar?: React.ReactNode;
87
+ children: React.ReactNode;
88
+ };
89
+ declare function AppShell({
90
+ sidebar,
91
+ topbar,
92
+ children,
93
+ className,
94
+ ...props
95
+ }: AppShellProps): React.JSX.Element;
96
+ type AppShellContentProps = React.HTMLAttributes<HTMLDivElement>;
97
+ declare function AppShellContent({
98
+ className,
99
+ ...props
100
+ }: AppShellContentProps): React.JSX.Element;
101
+ //#endregion
102
+ //#region src/components/avatar.d.ts
103
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
104
+ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
105
+ declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
106
+ declare function getInitials(name: string): string;
107
+ //#endregion
108
+ //#region src/components/badge.d.ts
109
+ declare const badgeVariants: (props?: ({
110
+ tone?: "neutral" | "primary" | "secondary" | "success" | "warning" | "info" | "danger" | null | undefined;
111
+ variant?: "soft" | "outline" | "solid" | null | undefined;
112
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
113
+ type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
114
+ declare function Badge({
115
+ className,
116
+ tone,
117
+ variant,
118
+ ...props
119
+ }: BadgeProps): React.JSX.Element;
120
+ //#endregion
121
+ //#region src/components/breadcrumb.d.ts
122
+ declare function Breadcrumb({
123
+ className,
124
+ ...props
125
+ }: React.HTMLAttributes<HTMLElement>): React.JSX.Element;
126
+ declare function BreadcrumbList({
127
+ className,
128
+ ...props
129
+ }: React.OlHTMLAttributes<HTMLOListElement>): React.JSX.Element;
130
+ declare function BreadcrumbItem({
131
+ className,
132
+ ...props
133
+ }: React.LiHTMLAttributes<HTMLLIElement>): React.JSX.Element;
134
+ declare function BreadcrumbLink({
135
+ className,
136
+ ...props
137
+ }: React.AnchorHTMLAttributes<HTMLAnchorElement>): React.JSX.Element;
138
+ declare function BreadcrumbPage({
139
+ className,
140
+ ...props
141
+ }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
142
+ declare function BreadcrumbSeparator({
143
+ children,
144
+ className,
145
+ ...props
146
+ }: React.HTMLAttributes<HTMLLIElement>): React.JSX.Element;
147
+ declare function BreadcrumbEllipsis({
148
+ className,
149
+ ...props
150
+ }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
151
+ //#endregion
152
+ //#region src/components/button.d.ts
153
+ declare const buttonVariants: (props?: ({
154
+ variant?: "primary" | "secondary" | "danger" | "outline" | "tertiary" | "ghost" | null | undefined;
155
+ size?: "sm" | "md" | "lg" | null | undefined;
156
+ fullWidth?: boolean | null | undefined;
157
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
158
+ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
159
+ loading?: boolean;
160
+ asChild?: boolean;
161
+ };
162
+ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
163
+ variant?: "primary" | "secondary" | "danger" | "outline" | "tertiary" | "ghost" | null | undefined;
164
+ size?: "sm" | "md" | "lg" | null | undefined;
165
+ fullWidth?: boolean | null | undefined;
166
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
167
+ loading?: boolean;
168
+ asChild?: boolean;
169
+ } & React.RefAttributes<HTMLButtonElement>>;
170
+ //#endregion
171
+ //#region src/components/calendar.d.ts
172
+ type CalendarProps = DayPickerProps;
173
+ declare function Calendar({
174
+ className,
175
+ classNames,
176
+ locale,
177
+ showOutsideDays,
178
+ navLayout,
179
+ components,
180
+ ...props
181
+ }: CalendarProps): import("react").JSX.Element;
182
+ //#endregion
183
+ //#region src/components/card.d.ts
184
+ type CardProps = React.HTMLAttributes<HTMLDivElement>;
185
+ declare function Card({
186
+ className,
187
+ ...props
188
+ }: CardProps): React.JSX.Element;
189
+ type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;
190
+ declare function CardHeader({
191
+ className,
192
+ ...props
193
+ }: CardHeaderProps): React.JSX.Element;
194
+ type CardContentProps = React.HTMLAttributes<HTMLDivElement>;
195
+ declare function CardContent({
196
+ className,
197
+ ...props
198
+ }: CardContentProps): React.JSX.Element;
199
+ type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;
200
+ declare function CardFooter({
201
+ className,
202
+ ...props
203
+ }: CardFooterProps): React.JSX.Element;
204
+ //#endregion
205
+ //#region src/components/checkbox.d.ts
206
+ type CheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> & {
207
+ error?: boolean;
208
+ };
209
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
210
+ error?: boolean;
211
+ } & React.RefAttributes<HTMLButtonElement>>;
212
+ type CheckboxFieldProps = CheckboxProps & {
213
+ label: string;
214
+ description?: string;
215
+ errorMessage?: string;
216
+ className?: string;
217
+ };
218
+ declare function CheckboxField({
219
+ id,
220
+ label,
221
+ description,
222
+ errorMessage,
223
+ required,
224
+ className,
225
+ ...props
226
+ }: CheckboxFieldProps): React.JSX.Element;
227
+ //#endregion
228
+ //#region src/components/combobox.d.ts
229
+ type ComboboxOption = {
230
+ value: string;
231
+ label: string;
232
+ description?: string;
233
+ disabled?: boolean;
234
+ };
235
+ type ComboboxGroup = {
236
+ label: string;
237
+ options: ComboboxOption[];
238
+ };
239
+ type ComboboxOptions = ComboboxOption[] | ComboboxGroup[];
240
+ type ComboboxProps = {
241
+ id?: string;
242
+ name?: string;
243
+ value?: string;
244
+ defaultValue?: string;
245
+ onValueChange?: (value: string) => void;
246
+ placeholder?: string;
247
+ searchPlaceholder?: string;
248
+ emptyMessage?: string;
249
+ options: ComboboxOptions;
250
+ actions?: React.ReactNode;
251
+ disabled?: boolean;
252
+ required?: boolean;
253
+ className?: string;
254
+ contentClassName?: string;
255
+ "aria-describedby"?: string;
256
+ "aria-invalid"?: boolean | "true" | "false";
257
+ "aria-label"?: string;
258
+ };
259
+ declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLButtonElement>>;
260
+ //#endregion
261
+ //#region src/components/command-menu.d.ts
262
+ type CommandMenuItem = {
263
+ value: string;
264
+ label: string;
265
+ description?: string;
266
+ icon?: React.ReactNode;
267
+ shortcut?: string | string[];
268
+ disabled?: boolean;
269
+ keywords?: string[];
270
+ onSelect?: () => void;
271
+ };
272
+ type CommandMenuGroup = {
273
+ label: string;
274
+ items: CommandMenuItem[];
275
+ };
276
+ type CommandMenuProps = {
277
+ open?: boolean;
278
+ defaultOpen?: boolean;
279
+ onOpenChange?: (open: boolean) => void;
280
+ title?: string;
281
+ description?: string;
282
+ placeholder?: string;
283
+ emptyMessage?: string;
284
+ groups: CommandMenuGroup[];
285
+ closeOnSelect?: boolean;
286
+ };
287
+ declare function CommandMenu({
288
+ open,
289
+ defaultOpen,
290
+ onOpenChange,
291
+ title,
292
+ description,
293
+ placeholder,
294
+ emptyMessage,
295
+ groups,
296
+ closeOnSelect
297
+ }: CommandMenuProps): React.JSX.Element;
298
+ //#endregion
299
+ //#region src/components/data-table.d.ts
300
+ type DataTableSortDirection = "asc" | "desc";
301
+ type DataTableSortState = {
302
+ id: string;
303
+ direction: DataTableSortDirection;
304
+ };
305
+ type DataTableColumn<TData> = {
306
+ id: string;
307
+ header: React.ReactNode;
308
+ accessor?: keyof TData | ((row: TData) => React.ReactNode);
309
+ cell?: (row: TData) => React.ReactNode;
310
+ sortValue?: (row: TData) => string | number | Date | null | undefined;
311
+ sortable?: boolean;
312
+ className?: string;
313
+ headerClassName?: string;
314
+ align?: "left" | "center" | "right";
315
+ };
316
+ type DataTableProps<TData> = {
317
+ columns: Array<DataTableColumn<TData>>;
318
+ data: TData[];
319
+ getRowId?: (row: TData, index: number) => string;
320
+ selectedRowIds?: string[];
321
+ defaultSelectedRowIds?: string[];
322
+ onSelectedRowIdsChange?: (rowIds: string[]) => void;
323
+ sort?: DataTableSortState;
324
+ defaultSort?: DataTableSortState;
325
+ onSortChange?: (sort: DataTableSortState | undefined) => void;
326
+ onRowClick?: (row: TData, rowId: string) => void;
327
+ emptyState?: React.ReactNode;
328
+ loading?: boolean;
329
+ loadingRows?: number;
330
+ "aria-label"?: string;
331
+ className?: string;
332
+ };
333
+ declare function DataTable<TData>({
334
+ columns,
335
+ data,
336
+ getRowId,
337
+ selectedRowIds,
338
+ defaultSelectedRowIds,
339
+ onSelectedRowIdsChange,
340
+ sort,
341
+ defaultSort,
342
+ onSortChange,
343
+ onRowClick,
344
+ emptyState,
345
+ loading,
346
+ loadingRows,
347
+ "aria-label": ariaLabel,
348
+ className
349
+ }: DataTableProps<TData>): React.JSX.Element;
350
+ //#endregion
351
+ //#region src/components/empty-state.d.ts
352
+ type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
353
+ icon?: React.ReactNode;
354
+ title: string;
355
+ description?: string;
356
+ action?: React.ReactNode;
357
+ };
358
+ declare function EmptyState({
359
+ className,
360
+ icon,
361
+ title,
362
+ description,
363
+ action,
364
+ ...props
365
+ }: EmptyStateProps): React.JSX.Element;
366
+ //#endregion
367
+ //#region src/components/pagination.d.ts
368
+ type PaginationProps = {
369
+ page: number;
370
+ totalPages: number;
371
+ onPageChange?: (page: number) => void;
372
+ siblingCount?: number;
373
+ className?: string;
374
+ };
375
+ declare function Pagination({
376
+ page,
377
+ totalPages,
378
+ onPageChange,
379
+ siblingCount,
380
+ className
381
+ }: PaginationProps): import("react").JSX.Element;
382
+ //#endregion
383
+ //#region src/components/search-input.d.ts
384
+ type SearchInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange"> & {
385
+ value?: string;
386
+ defaultValue?: string;
387
+ onValueChange?: (value: string) => void;
388
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
389
+ onClear?: () => void;
390
+ clearable?: boolean;
391
+ containerClassName?: string;
392
+ };
393
+ declare const SearchInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange"> & {
394
+ value?: string;
395
+ defaultValue?: string;
396
+ onValueChange?: (value: string) => void;
397
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
398
+ onClear?: () => void;
399
+ clearable?: boolean;
400
+ containerClassName?: string;
401
+ } & React.RefAttributes<HTMLInputElement>>;
402
+ //#endregion
403
+ //#region src/components/data-view.d.ts
404
+ type DataViewSearch = React.ReactNode | (Omit<SearchInputProps, "type"> & {
405
+ placeholder?: string;
406
+ });
407
+ type DataViewStateContent = React.ReactNode | (Pick<EmptyStateProps, "title" | "description" | "action" | "icon"> & {
408
+ retryLabel?: string;
409
+ onRetry?: () => void;
410
+ });
411
+ type DataViewProps = React.HTMLAttributes<HTMLDivElement> & {
412
+ title?: React.ReactNode;
413
+ description?: React.ReactNode;
414
+ search?: DataViewSearch;
415
+ filters?: React.ReactNode;
416
+ actions?: React.ReactNode;
417
+ selectedCount?: number;
418
+ selectedActions?: React.ReactNode;
419
+ selectedLabel?: React.ReactNode;
420
+ onClearSelection?: () => void;
421
+ empty?: DataViewStateContent;
422
+ loading?: boolean;
423
+ loadingLabel?: string;
424
+ error?: DataViewStateContent;
425
+ pagination?: React.ReactNode | PaginationProps;
426
+ };
427
+ declare function DataViewRoot({
428
+ title,
429
+ description,
430
+ search,
431
+ filters,
432
+ actions,
433
+ selectedCount,
434
+ selectedActions,
435
+ selectedLabel,
436
+ onClearSelection,
437
+ empty,
438
+ loading,
439
+ loadingLabel,
440
+ error,
441
+ pagination,
442
+ className,
443
+ children,
444
+ ...props
445
+ }: DataViewProps): React.JSX.Element;
446
+ type DataViewHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
447
+ title?: React.ReactNode;
448
+ description?: React.ReactNode;
449
+ actions?: React.ReactNode;
450
+ };
451
+ declare function DataViewHeader({
452
+ title,
453
+ description,
454
+ actions,
455
+ className,
456
+ ...props
457
+ }: DataViewHeaderProps): React.JSX.Element;
458
+ type DataViewToolbarProps = React.HTMLAttributes<HTMLDivElement> & {
459
+ title?: React.ReactNode;
460
+ description?: React.ReactNode;
461
+ search?: DataViewSearch;
462
+ filters?: React.ReactNode;
463
+ actions?: React.ReactNode;
464
+ };
465
+ declare function DataViewToolbar({
466
+ title,
467
+ description,
468
+ search,
469
+ filters,
470
+ actions,
471
+ className,
472
+ ...props
473
+ }: DataViewToolbarProps): React.JSX.Element;
474
+ type DataViewContentProps = React.HTMLAttributes<HTMLDivElement>;
475
+ declare function DataViewContent({
476
+ className,
477
+ ...props
478
+ }: DataViewContentProps): React.JSX.Element;
479
+ type DataViewEmptyProps = EmptyStateProps;
480
+ declare function DataViewEmpty(props: DataViewEmptyProps): React.JSX.Element;
481
+ type DataViewPaginationProps = React.HTMLAttributes<HTMLDivElement>;
482
+ declare function DataViewPagination({
483
+ className,
484
+ ...props
485
+ }: DataViewPaginationProps): React.JSX.Element;
486
+ //#endregion
487
+ //#region src/components/date-picker.d.ts
488
+ type DatePickerProps = {
489
+ value?: Date;
490
+ defaultValue?: Date;
491
+ onValueChange?: (date: Date | undefined) => void;
492
+ placeholder?: string;
493
+ disabled?: boolean;
494
+ required?: boolean;
495
+ clearable?: boolean;
496
+ className?: string;
497
+ calendarClassName?: string;
498
+ "aria-label"?: string;
499
+ "aria-describedby"?: string;
500
+ "aria-invalid"?: boolean | "true" | "false";
501
+ };
502
+ declare function formatDate(date: Date): string;
503
+ declare function DatePicker({
504
+ value,
505
+ defaultValue,
506
+ onValueChange,
507
+ placeholder,
508
+ disabled,
509
+ required,
510
+ clearable,
511
+ className,
512
+ calendarClassName,
513
+ "aria-label": ariaLabel,
514
+ "aria-describedby": ariaDescribedBy,
515
+ "aria-invalid": ariaInvalid
516
+ }: DatePickerProps): React.JSX.Element;
517
+ //#endregion
518
+ //#region src/components/date-range-picker.d.ts
519
+ type DateRangeValue = DateRange;
520
+ type DateRangePickerProps = {
521
+ value?: DateRangeValue;
522
+ defaultValue?: DateRangeValue;
523
+ onValueChange?: (range: DateRangeValue | undefined) => void;
524
+ placeholder?: string;
525
+ disabled?: boolean;
526
+ clearable?: boolean;
527
+ className?: string;
528
+ calendarClassName?: string;
529
+ "aria-label"?: string;
530
+ "aria-describedby"?: string;
531
+ "aria-invalid"?: boolean | "true" | "false";
532
+ };
533
+ declare function DateRangePicker({
534
+ value,
535
+ defaultValue,
536
+ onValueChange,
537
+ placeholder,
538
+ disabled,
539
+ clearable,
540
+ className,
541
+ calendarClassName,
542
+ "aria-label": ariaLabel,
543
+ "aria-describedby": ariaDescribedBy,
544
+ "aria-invalid": ariaInvalid
545
+ }: DateRangePickerProps): React.JSX.Element;
546
+ //#endregion
547
+ //#region src/components/dialog.d.ts
548
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
549
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
550
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
551
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
552
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
553
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
554
+ showCloseButton?: boolean;
555
+ } & React.RefAttributes<HTMLDivElement>>;
556
+ declare function DialogHeader({
557
+ className,
558
+ ...props
559
+ }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
560
+ declare function DialogFooter({
561
+ className,
562
+ ...props
563
+ }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
564
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
565
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
566
+ //#endregion
567
+ //#region src/components/dropdown-menu.d.ts
568
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
569
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
570
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
571
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
572
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
573
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
574
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
575
+ inset?: boolean;
576
+ } & React.RefAttributes<HTMLDivElement>>;
577
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
578
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
579
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
580
+ inset?: boolean;
581
+ tone?: "default" | "danger";
582
+ } & React.RefAttributes<HTMLDivElement>>;
583
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
584
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
585
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
586
+ inset?: boolean;
587
+ } & React.RefAttributes<HTMLDivElement>>;
588
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
589
+ declare function DropdownMenuShortcut({
590
+ className,
591
+ ...props
592
+ }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
593
+ //#endregion
594
+ //#region src/components/filter-bar.d.ts
595
+ type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {
596
+ label?: React.ReactNode;
597
+ };
598
+ declare function FilterBar({
599
+ label,
600
+ className,
601
+ children,
602
+ ...props
603
+ }: FilterBarProps): React.JSX.Element;
604
+ type FilterBarItemProps = React.HTMLAttributes<HTMLDivElement> & {
605
+ label: React.ReactNode;
606
+ };
607
+ declare function FilterBarItem({
608
+ label,
609
+ className,
610
+ children,
611
+ ...props
612
+ }: FilterBarItemProps): React.JSX.Element;
613
+ //#endregion
614
+ //#region src/components/label.d.ts
615
+ type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement> & {
616
+ required?: boolean;
617
+ requiredIndicator?: React.ReactNode;
618
+ showRequiredIndicator?: boolean;
619
+ };
620
+ declare function Label({
621
+ className,
622
+ children,
623
+ required,
624
+ requiredIndicator,
625
+ showRequiredIndicator,
626
+ ...props
627
+ }: LabelProps): React.JSX.Element;
628
+ //#endregion
629
+ //#region src/components/form.d.ts
630
+ type ReactFormApi = AnyFormApi & {
631
+ Field: unknown;
632
+ };
633
+ type FormProps = {
634
+ form: ReactFormApi;
635
+ children: React.ReactNode;
636
+ };
637
+ declare function Form({
638
+ form,
639
+ children
640
+ }: FormProps): React.JSX.Element;
641
+ type FormFieldControllerProps = {
642
+ form?: ReactFormApi;
643
+ name: string;
644
+ validators?: unknown;
645
+ children: (field: AnyFieldApi) => React.ReactNode;
646
+ };
647
+ declare function FormFieldController({
648
+ form,
649
+ name,
650
+ validators,
651
+ children
652
+ }: FormFieldControllerProps): React.JSX.Element;
653
+ type FormItemProps = React.HTMLAttributes<HTMLDivElement>;
654
+ declare function FormItem({
655
+ className,
656
+ ...props
657
+ }: FormItemProps): React.JSX.Element;
658
+ type FormLabelProps = LabelProps;
659
+ declare function FormLabel({
660
+ className,
661
+ ...props
662
+ }: FormLabelProps): React.JSX.Element;
663
+ type FormControlProps = {
664
+ children: React.ReactElement<{
665
+ id?: string;
666
+ "aria-describedby"?: string;
667
+ "aria-invalid"?: boolean | "true" | "false";
668
+ }>;
669
+ };
670
+ declare function FormControl({
671
+ children
672
+ }: FormControlProps): React.ReactElement<{
673
+ id?: string;
674
+ "aria-describedby"?: string;
675
+ "aria-invalid"?: boolean | "true" | "false";
676
+ }, string | React.JSXElementConstructor<any>>;
677
+ type FormDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
678
+ declare function FormDescription({
679
+ className,
680
+ ...props
681
+ }: FormDescriptionProps): React.JSX.Element;
682
+ type FormMessageProps = React.HTMLAttributes<HTMLParagraphElement> & {
683
+ children?: React.ReactNode;
684
+ };
685
+ declare function FormMessage({
686
+ className,
687
+ children,
688
+ ...props
689
+ }: FormMessageProps): React.JSX.Element | null;
690
+ declare function getInputFieldProps(field: AnyFieldApi): {
691
+ name: any;
692
+ value: any;
693
+ onBlur: () => void;
694
+ onChange: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
695
+ };
696
+ declare function getSelectFieldProps(field: AnyFieldApi): {
697
+ value: any;
698
+ onValueChange: (value: string) => void;
699
+ };
700
+ declare function getCheckboxFieldProps(field: AnyFieldApi): {
701
+ checked: boolean;
702
+ onCheckedChange: (value: boolean | "indeterminate") => void;
703
+ };
704
+ declare function getRadioGroupFieldProps(field: AnyFieldApi): {
705
+ value: any;
706
+ onValueChange: (value: string) => void;
707
+ };
708
+ declare function getSwitchFieldProps(field: AnyFieldApi): {
709
+ checked: boolean;
710
+ onCheckedChange: (value: boolean) => void;
711
+ };
712
+ declare function getDatePickerFieldProps(field: AnyFieldApi): {
713
+ value: any;
714
+ onValueChange: (value: Date | undefined) => void;
715
+ };
716
+ //#endregion
717
+ //#region src/components/form-field.d.ts
718
+ type FieldControlProps = {
719
+ id?: string;
720
+ required?: boolean;
721
+ "aria-required"?: boolean | "true" | "false";
722
+ "aria-describedby"?: string;
723
+ "aria-invalid"?: boolean | "true" | "false";
724
+ };
725
+ type FormFieldProps = {
726
+ id?: string;
727
+ label: string;
728
+ helperText?: string;
729
+ error?: string;
730
+ required?: boolean;
731
+ className?: string;
732
+ children: React.ReactElement<FieldControlProps>;
733
+ };
734
+ declare function FormField({
735
+ id,
736
+ label,
737
+ helperText,
738
+ error,
739
+ required,
740
+ className,
741
+ children
742
+ }: FormFieldProps): React.JSX.Element;
743
+ //#endregion
744
+ //#region src/components/input.d.ts
745
+ declare const inputVariants: (props?: ({
746
+ state?: "error" | "default" | null | undefined;
747
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
748
+ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & VariantProps<typeof inputVariants>;
749
+ declare const Input: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & VariantProps<(props?: ({
750
+ state?: "error" | "default" | null | undefined;
751
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
752
+ //#endregion
753
+ //#region src/components/kbd.d.ts
754
+ declare const kbdVariants: (props?: ({
755
+ size?: "sm" | "md" | null | undefined;
756
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
757
+ type KbdProps = React.HTMLAttributes<HTMLElement> & VariantProps<typeof kbdVariants>;
758
+ declare function Kbd({
759
+ className,
760
+ size,
761
+ ...props
762
+ }: KbdProps): React.JSX.Element;
763
+ //#endregion
764
+ //#region src/components/native-select.d.ts
765
+ type NativeSelectOption = {
766
+ value: string;
767
+ label: string;
768
+ disabled?: boolean;
769
+ };
770
+ declare const nativeSelectVariants: (props?: ({
771
+ state?: "error" | "default" | null | undefined;
772
+ fieldSize?: "sm" | "md" | "lg" | null | undefined;
773
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
774
+ type NativeSelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & VariantProps<typeof nativeSelectVariants> & {
775
+ placeholder?: string;
776
+ options?: NativeSelectOption[];
777
+ };
778
+ declare const NativeSelect: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & VariantProps<(props?: ({
779
+ state?: "error" | "default" | null | undefined;
780
+ fieldSize?: "sm" | "md" | "lg" | null | undefined;
781
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
782
+ placeholder?: string;
783
+ options?: NativeSelectOption[];
784
+ } & React.RefAttributes<HTMLSelectElement>>;
785
+ //#endregion
786
+ //#region src/components/page-header.d.ts
787
+ type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
788
+ eyebrow?: React.ReactNode;
789
+ title: React.ReactNode;
790
+ description?: React.ReactNode;
791
+ actions?: React.ReactNode;
792
+ };
793
+ declare function PageHeader({
794
+ className,
795
+ eyebrow,
796
+ title,
797
+ description,
798
+ actions,
799
+ ...props
800
+ }: PageHeaderProps): React.JSX.Element;
801
+ //#endregion
802
+ //#region src/components/popover.d.ts
803
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
804
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
805
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
806
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
807
+ //#endregion
808
+ //#region src/components/radio-group.d.ts
809
+ type RadioGroupOption = {
810
+ value: string;
811
+ label: string;
812
+ description?: string;
813
+ disabled?: boolean;
814
+ };
815
+ type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> & {
816
+ options: RadioGroupOption[];
817
+ error?: boolean;
818
+ };
819
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
820
+ options: RadioGroupOption[];
821
+ error?: boolean;
822
+ } & React.RefAttributes<HTMLDivElement>>;
823
+ //#endregion
824
+ //#region src/components/select.d.ts
825
+ type SelectOption = {
826
+ value: string;
827
+ label: string;
828
+ disabled?: boolean;
829
+ };
830
+ type SelectGroup = {
831
+ label: string;
832
+ options: SelectOption[];
833
+ };
834
+ type SelectOptions = SelectOption[] | SelectGroup[];
835
+ type SelectRootProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>;
836
+ type SelectProps = Omit<SelectRootProps, "children"> & {
837
+ id?: string;
838
+ placeholder?: string;
839
+ options: SelectOptions;
840
+ className?: string;
841
+ contentClassName?: string;
842
+ "aria-describedby"?: string;
843
+ "aria-invalid"?: boolean | "true" | "false";
844
+ };
845
+ declare const Select: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSharedProps & {
846
+ value?: string;
847
+ defaultValue?: string;
848
+ onValueChange?(value: string): void;
849
+ }, "children"> & {
850
+ id?: string;
851
+ placeholder?: string;
852
+ options: SelectOptions;
853
+ className?: string;
854
+ contentClassName?: string;
855
+ "aria-describedby"?: string;
856
+ "aria-invalid"?: boolean | "true" | "false";
857
+ } & React.RefAttributes<HTMLButtonElement>>;
858
+ //#endregion
859
+ //#region src/components/separator.d.ts
860
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
861
+ //#endregion
862
+ //#region src/components/sheet.d.ts
863
+ declare const Sheet: React.FC<DialogPrimitive.DialogProps>;
864
+ declare const SheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
865
+ declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
866
+ declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
867
+ declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
868
+ declare const sheetVariants: (props?: ({
869
+ side?: "top" | "bottom" | "left" | "right" | null | undefined;
870
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
871
+ type SheetContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & VariantProps<typeof sheetVariants> & {
872
+ showCloseButton?: boolean;
873
+ };
874
+ declare const SheetContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
875
+ side?: "top" | "bottom" | "left" | "right" | null | undefined;
876
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
877
+ showCloseButton?: boolean;
878
+ } & React.RefAttributes<HTMLDivElement>>;
879
+ declare function SheetHeader({
880
+ className,
881
+ ...props
882
+ }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
883
+ declare function SheetFooter({
884
+ className,
885
+ ...props
886
+ }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
887
+ declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
888
+ declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
889
+ //#endregion
890
+ //#region src/components/sidebar.d.ts
891
+ type SidebarProps = React.HTMLAttributes<HTMLDivElement>;
892
+ declare function Sidebar({
893
+ className,
894
+ ...props
895
+ }: SidebarProps): React.JSX.Element;
896
+ type SidebarHeaderProps = React.HTMLAttributes<HTMLDivElement>;
897
+ declare function SidebarHeader({
898
+ className,
899
+ ...props
900
+ }: SidebarHeaderProps): React.JSX.Element;
901
+ type SidebarBrandProps = React.HTMLAttributes<HTMLDivElement> & {
902
+ title: string;
903
+ description?: string;
904
+ icon?: React.ReactNode;
905
+ };
906
+ declare function SidebarBrand({
907
+ title,
908
+ description,
909
+ icon,
910
+ className,
911
+ ...props
912
+ }: SidebarBrandProps): React.JSX.Element;
913
+ type SidebarContentProps = React.HTMLAttributes<HTMLDivElement>;
914
+ declare function SidebarContent({
915
+ className,
916
+ ...props
917
+ }: SidebarContentProps): React.JSX.Element;
918
+ type SidebarSectionProps = React.HTMLAttributes<HTMLDivElement> & {
919
+ title?: string;
920
+ };
921
+ declare function SidebarSection({
922
+ title,
923
+ className,
924
+ children,
925
+ ...props
926
+ }: SidebarSectionProps): React.JSX.Element;
927
+ type SidebarNavItemProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
928
+ icon?: React.ReactNode;
929
+ active?: boolean;
930
+ asChild?: boolean;
931
+ };
932
+ declare const SidebarNavItem: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
933
+ icon?: React.ReactNode;
934
+ active?: boolean;
935
+ asChild?: boolean;
936
+ } & React.RefAttributes<HTMLButtonElement>>;
937
+ type SidebarFooterProps = React.HTMLAttributes<HTMLDivElement>;
938
+ declare function SidebarFooter({
939
+ className,
940
+ ...props
941
+ }: SidebarFooterProps): React.JSX.Element;
942
+ //#endregion
943
+ //#region src/components/skeleton.d.ts
944
+ type SkeletonProps = React.HTMLAttributes<HTMLDivElement>;
945
+ declare function Skeleton({
946
+ className,
947
+ ...props
948
+ }: SkeletonProps): React.JSX.Element;
949
+ //#endregion
950
+ //#region src/components/spinner.d.ts
951
+ declare const spinnerVariants: (props?: ({
952
+ size?: "sm" | "md" | "lg" | null | undefined;
953
+ tone?: "primary" | "success" | "warning" | "info" | "danger" | "current" | "muted" | null | undefined;
954
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
955
+ type SpinnerProps = React.HTMLAttributes<SVGSVGElement> & VariantProps<typeof spinnerVariants>;
956
+ declare function Spinner({
957
+ className,
958
+ size,
959
+ tone,
960
+ ...props
961
+ }: SpinnerProps): React.JSX.Element;
962
+ //#endregion
963
+ //#region src/components/status-badge.d.ts
964
+ type StatusBadgeStatus = "active" | "inactive" | "pending" | "completed" | "canceled" | "draft" | "blocked" | "archived";
965
+ type StatusBadgeProps = Omit<BadgeProps, "tone"> & {
966
+ status: StatusBadgeStatus;
967
+ label?: string;
968
+ tone?: BadgeProps["tone"];
969
+ };
970
+ declare function StatusBadge({
971
+ status,
972
+ label,
973
+ tone,
974
+ variant,
975
+ ...props
976
+ }: StatusBadgeProps): import("react").JSX.Element;
977
+ //#endregion
978
+ //#region src/components/switch.d.ts
979
+ type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
980
+ error?: boolean;
981
+ };
982
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
983
+ error?: boolean;
984
+ } & React.RefAttributes<HTMLButtonElement>>;
985
+ type SwitchFieldProps = SwitchProps & {
986
+ label: string;
987
+ description?: string;
988
+ errorMessage?: string;
989
+ className?: string;
990
+ };
991
+ declare function SwitchField({
992
+ id,
993
+ label,
994
+ description,
995
+ errorMessage,
996
+ required,
997
+ className,
998
+ ...props
999
+ }: SwitchFieldProps): React.JSX.Element;
1000
+ //#endregion
1001
+ //#region src/components/table.d.ts
1002
+ type TableContainerProps = React.HTMLAttributes<HTMLDivElement>;
1003
+ declare function TableContainer({
1004
+ className,
1005
+ ...props
1006
+ }: TableContainerProps): React.JSX.Element;
1007
+ type TableScrollAreaProps = React.HTMLAttributes<HTMLDivElement>;
1008
+ declare function TableScrollArea({
1009
+ className,
1010
+ ...props
1011
+ }: TableScrollAreaProps): React.JSX.Element;
1012
+ type TableProps = React.TableHTMLAttributes<HTMLTableElement>;
1013
+ declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
1014
+ type TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;
1015
+ declare const TableHeader: React.ForwardRefExoticComponent<TableHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
1016
+ type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;
1017
+ declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
1018
+ type TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;
1019
+ declare const TableFooter: React.ForwardRefExoticComponent<TableFooterProps & React.RefAttributes<HTMLTableSectionElement>>;
1020
+ type TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;
1021
+ declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
1022
+ type TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;
1023
+ declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
1024
+ type TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;
1025
+ declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
1026
+ type TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;
1027
+ declare const TableCaption: React.ForwardRefExoticComponent<TableCaptionProps & React.RefAttributes<HTMLTableCaptionElement>>;
1028
+ //#endregion
1029
+ //#region src/components/tabs.d.ts
1030
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
1031
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1032
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1033
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1034
+ //#endregion
1035
+ //#region src/components/textarea.d.ts
1036
+ declare const textareaVariants: (props?: ({
1037
+ state?: "error" | "default" | null | undefined;
1038
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1039
+ type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & VariantProps<typeof textareaVariants>;
1040
+ declare const Textarea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & VariantProps<(props?: ({
1041
+ state?: "error" | "default" | null | undefined;
1042
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLTextAreaElement>>;
1043
+ //#endregion
1044
+ //#region src/components/toast.d.ts
1045
+ type ToastTone = "default" | "success" | "warning" | "info" | "danger" | "error";
1046
+ declare const ToastProvider: React.FC<ToastPrimitive.ToastProviderProps>;
1047
+ declare const ToastAction: React.ForwardRefExoticComponent<ToastPrimitive.ToastActionProps & React.RefAttributes<HTMLButtonElement>>;
1048
+ declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
1049
+ type ToastProps = React.ComponentPropsWithoutRef<typeof ToastPrimitive.Root> & {
1050
+ tone?: ToastTone;
1051
+ };
1052
+ declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & {
1053
+ tone?: ToastTone;
1054
+ } & React.RefAttributes<HTMLLIElement>>;
1055
+ declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1056
+ declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1057
+ declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1058
+ //#endregion
1059
+ //#region src/components/toaster.d.ts
1060
+ type ToasterProps = {
1061
+ children?: React.ReactNode;
1062
+ duration?: number;
1063
+ swipeDirection?: React.ComponentProps<typeof ToastProvider>["swipeDirection"];
1064
+ };
1065
+ declare function Toaster({
1066
+ children,
1067
+ duration,
1068
+ swipeDirection
1069
+ }: ToasterProps): React.JSX.Element;
1070
+ //#endregion
1071
+ //#region src/components/toolbar.d.ts
1072
+ type ToolbarProps = React.HTMLAttributes<HTMLDivElement>;
1073
+ declare function Toolbar({
1074
+ className,
1075
+ ...props
1076
+ }: ToolbarProps): React.JSX.Element;
1077
+ type ToolbarSectionProps = React.HTMLAttributes<HTMLDivElement>;
1078
+ declare function ToolbarSection({
1079
+ className,
1080
+ ...props
1081
+ }: ToolbarSectionProps): React.JSX.Element;
1082
+ type ToolbarActionsProps = React.HTMLAttributes<HTMLDivElement>;
1083
+ declare function ToolbarActions({
1084
+ className,
1085
+ ...props
1086
+ }: ToolbarActionsProps): React.JSX.Element;
1087
+ type ToolbarTitleProps = React.HTMLAttributes<HTMLDivElement> & {
1088
+ title: React.ReactNode;
1089
+ description?: React.ReactNode;
1090
+ };
1091
+ declare function ToolbarTitle({
1092
+ title,
1093
+ description,
1094
+ className,
1095
+ ...props
1096
+ }: ToolbarTitleProps): React.JSX.Element;
1097
+ //#endregion
1098
+ //#region src/components/tooltip.d.ts
1099
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
1100
+ declare const TooltipRoot: React.FC<TooltipPrimitive.TooltipProps>;
1101
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
1102
+ type TooltipProps = {
1103
+ children: React.ReactNode;
1104
+ content: React.ReactNode;
1105
+ side?: "top" | "right" | "bottom" | "left";
1106
+ align?: "start" | "center" | "end";
1107
+ delayDuration?: number;
1108
+ className?: string;
1109
+ };
1110
+ declare function Tooltip({
1111
+ children,
1112
+ content,
1113
+ side,
1114
+ align,
1115
+ delayDuration,
1116
+ className
1117
+ }: TooltipProps): React.JSX.Element;
1118
+ //#endregion
1119
+ //#region src/components/topbar.d.ts
1120
+ type TopbarProps = React.HTMLAttributes<HTMLDivElement> & {
1121
+ start?: React.ReactNode;
1122
+ center?: React.ReactNode;
1123
+ end?: React.ReactNode;
1124
+ };
1125
+ declare function Topbar({
1126
+ start,
1127
+ center,
1128
+ end,
1129
+ className,
1130
+ children,
1131
+ ...props
1132
+ }: TopbarProps): React.JSX.Element;
1133
+ //#endregion
1134
+ //#region src/components/user-menu.d.ts
1135
+ type UserMenuItem = {
1136
+ label: string;
1137
+ icon?: React.ReactNode;
1138
+ shortcut?: React.ReactNode;
1139
+ disabled?: boolean;
1140
+ tone?: "default" | "danger";
1141
+ onSelect?: () => void;
1142
+ };
1143
+ type UserMenuProps = {
1144
+ name: string;
1145
+ email?: string;
1146
+ avatarUrl?: string;
1147
+ initials?: string;
1148
+ items?: UserMenuItem[];
1149
+ footerItems?: UserMenuItem[];
1150
+ };
1151
+ declare function UserMenu({
1152
+ name,
1153
+ email,
1154
+ avatarUrl,
1155
+ initials,
1156
+ items,
1157
+ footerItems
1158
+ }: UserMenuProps): React.JSX.Element;
1159
+ //#endregion
1160
+ //#region src/hooks/use-toast.d.ts
1161
+ type ToastInput = {
1162
+ title?: React.ReactNode;
1163
+ description?: React.ReactNode;
1164
+ action?: React.ReactNode;
1165
+ tone?: ToastTone;
1166
+ duration?: number;
1167
+ };
1168
+ type ToastRecord = ToastInput & {
1169
+ id: string;
1170
+ open: boolean;
1171
+ };
1172
+ type ToastHandle = {
1173
+ id: string;
1174
+ dismiss: () => void;
1175
+ };
1176
+ type ToastContextValue = {
1177
+ toasts: ToastRecord[];
1178
+ toast: (toast: ToastInput) => ToastHandle;
1179
+ dismiss: (id: string) => void;
1180
+ };
1181
+ declare const ToastContext: React.Context<ToastContextValue | null>;
1182
+ declare function useToast(): ToastContextValue;
1183
+ //#endregion
1184
+ //#region src/provider/freitas-provider.d.ts
1185
+ type FreitasProviderProps = {
1186
+ theme?: FreitasThemeInput;
1187
+ children: React.ReactNode;
1188
+ };
1189
+ declare function FreitasProvider({
1190
+ theme,
1191
+ children
1192
+ }: FreitasProviderProps): React.JSX.Element;
1193
+ //#endregion
1194
+ export { ActionBar, ActionBarProps, Alert, AlertDialog, AlertDialogAction, AlertDialogActionButton, AlertDialogCancel, AlertDialogCancelButton, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertProps, AlertTone, AppShell, AppShellContent, AppShellContentProps, AppShellProps, Avatar, AvatarFallback, AvatarImage, Badge, BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, Calendar, CalendarProps, Card, CardContent, CardContentProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, Checkbox, CheckboxField, CheckboxFieldProps, CheckboxProps, Combobox, ComboboxGroup, ComboboxOption, ComboboxProps, CommandMenu, CommandMenuGroup, CommandMenuItem, CommandMenuProps, DataTable, DataTableColumn, DataTableProps, DataTableSortDirection, DataTableSortState, DataViewRoot as DataView, DataViewRoot, DataViewContent, DataViewContentProps, DataViewEmpty, DataViewEmptyProps, DataViewHeader, DataViewHeaderProps, DataViewPagination, DataViewPaginationProps, DataViewProps, DataViewSearch, DataViewStateContent, DataViewToolbar, DataViewToolbarProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, DateRangeValue, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateProps, FilterBar, FilterBarItem, FilterBarItemProps, FilterBarProps, Form, FormControl, FormControlProps, FormDescription, FormDescriptionProps, FormField, FormFieldController, FormFieldControllerProps, FormFieldProps, FormItem, FormItemProps, FormLabel, FormLabelProps, FormMessage, FormMessageProps, FormProps, FreitasProvider, FreitasProviderProps, Input, InputProps, Kbd, KbdProps, Label, LabelProps, NativeSelect, NativeSelectOption, NativeSelectProps, PageHeader, PageHeaderProps, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupOption, RadioGroupProps, SearchInput, SearchInputProps, Select, SelectGroup, SelectOption, SelectProps, Separator, Sheet, SheetClose, SheetContent, SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBrand, SidebarBrandProps, SidebarContent, SidebarContentProps, SidebarFooter, SidebarFooterProps, SidebarHeader, SidebarHeaderProps, SidebarNavItem, SidebarNavItemProps, SidebarProps, SidebarSection, SidebarSectionProps, Skeleton, SkeletonProps, Spinner, SpinnerProps, StatusBadge, StatusBadgeProps, StatusBadgeStatus, Switch, SwitchField, SwitchFieldProps, SwitchProps, Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, TableScrollArea, TableScrollAreaProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastClose, ToastContext, ToastDescription, ToastHandle, ToastInput, ToastProps, ToastProvider, ToastRecord, ToastTitle, ToastTone, ToastViewport, Toaster, ToasterProps, Toolbar, ToolbarActions, ToolbarActionsProps, ToolbarProps, ToolbarSection, ToolbarSectionProps, ToolbarTitle, ToolbarTitleProps, Tooltip, TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, Topbar, TopbarProps, UserMenu, UserMenuItem, UserMenuProps, buttonVariants, formatDate, getCheckboxFieldProps, getDatePickerFieldProps, getInitials, getInputFieldProps, getRadioGroupFieldProps, getSelectFieldProps, getSwitchFieldProps, useForm, useToast };
1195
+ //# sourceMappingURL=index.d.mts.map