@facter/ds-core 1.33.6 → 1.33.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2788 -0
- package/dist/index.d.ts +2788 -0
- package/dist/index.js +136 -209
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +135 -208
- package/dist/index.mjs.map +1 -1
- package/dist/themes/index.d.mts +62 -0
- package/dist/themes/index.d.ts +62 -0
- package/dist/themes/tailwind-preset.d.mts +19 -0
- package/dist/themes/tailwind-preset.d.ts +19 -0
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2788 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { ReactNode, ComponentType } from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
7
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
8
|
+
import * as _tanstack_react_table from '@tanstack/react-table';
|
|
9
|
+
import { ColumnDef, Column, SortingState, ColumnFiltersState, VisibilityState, RowSelectionState, PaginationState, Table as Table$1 } from '@tanstack/react-table';
|
|
10
|
+
export { ColumnDef, flexRender } from '@tanstack/react-table';
|
|
11
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
12
|
+
import { Toaster as Toaster$1, toast as toast$1 } from 'sonner';
|
|
13
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
14
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
15
|
+
import { FieldValues, FieldPath, UseFormReturn, SubmitHandler, SubmitErrorHandler, Path } from 'react-hook-form';
|
|
16
|
+
export { FormProvider, useFormContext } from 'react-hook-form';
|
|
17
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
18
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
19
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
20
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
21
|
+
import { LucideIcon } from 'lucide-react';
|
|
22
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
23
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
24
|
+
import { ClassValue } from 'clsx';
|
|
25
|
+
export { FACTER_THEMES, FacterTheme, THEME_INFO } from './themes/index.js';
|
|
26
|
+
|
|
27
|
+
declare const buttonVariants: (props?: ({
|
|
28
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
29
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | null | undefined;
|
|
30
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
31
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
loadingText?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
|
|
38
|
+
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
39
|
+
}
|
|
40
|
+
declare function Card({ className, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare namespace Card {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
44
|
+
interface CardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
45
|
+
}
|
|
46
|
+
declare function CardHeader({ className, ...props }: CardHeaderProps): react_jsx_runtime.JSX.Element;
|
|
47
|
+
declare namespace CardHeader {
|
|
48
|
+
var displayName: string;
|
|
49
|
+
}
|
|
50
|
+
interface CardTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
51
|
+
}
|
|
52
|
+
declare function CardTitle({ className, ...props }: CardTitleProps): react_jsx_runtime.JSX.Element;
|
|
53
|
+
declare namespace CardTitle {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
interface CardDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
57
|
+
}
|
|
58
|
+
declare function CardDescription({ className, ...props }: CardDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
declare namespace CardDescription {
|
|
60
|
+
var displayName: string;
|
|
61
|
+
}
|
|
62
|
+
interface CardContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
63
|
+
}
|
|
64
|
+
declare function CardContent({ className, ...props }: CardContentProps): react_jsx_runtime.JSX.Element;
|
|
65
|
+
declare namespace CardContent {
|
|
66
|
+
var displayName: string;
|
|
67
|
+
}
|
|
68
|
+
interface CardFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
69
|
+
}
|
|
70
|
+
declare function CardFooter({ className, ...props }: CardFooterProps): react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare namespace CardFooter {
|
|
72
|
+
var displayName: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare const inputVariants: (props?: ({
|
|
76
|
+
variant?: "default" | "error" | null | undefined;
|
|
77
|
+
inputSize?: "default" | "sm" | "lg" | null | undefined;
|
|
78
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
79
|
+
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
80
|
+
label?: string;
|
|
81
|
+
error?: boolean;
|
|
82
|
+
icon?: React$1.ComponentType<any>;
|
|
83
|
+
containerClassName?: string;
|
|
84
|
+
labelClassName?: string;
|
|
85
|
+
}
|
|
86
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
87
|
+
|
|
88
|
+
declare const badgeVariants: (props?: ({
|
|
89
|
+
variant?: "default" | "outline" | "secondary" | "error" | "success" | "warning" | "info" | null | undefined;
|
|
90
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
91
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
92
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
93
|
+
}
|
|
94
|
+
declare function Badge({ className, variant, size, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
95
|
+
declare namespace Badge {
|
|
96
|
+
var displayName: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type SparklineColor = 'chart-1' | 'chart-2' | 'chart-3' | 'chart-4' | 'chart-5';
|
|
100
|
+
type BigNumberCardSize = 'default' | 'sm' | 'lg';
|
|
101
|
+
interface BigNumberCardRootProps {
|
|
102
|
+
children: React$1.ReactNode;
|
|
103
|
+
className?: string;
|
|
104
|
+
size?: BigNumberCardSize;
|
|
105
|
+
}
|
|
106
|
+
interface BigNumberCardHeaderProps {
|
|
107
|
+
children: React$1.ReactNode;
|
|
108
|
+
className?: string;
|
|
109
|
+
}
|
|
110
|
+
interface BigNumberCardTitleProps {
|
|
111
|
+
children: React$1.ReactNode;
|
|
112
|
+
className?: string;
|
|
113
|
+
}
|
|
114
|
+
interface BigNumberCardLinkProps {
|
|
115
|
+
children: React$1.ReactNode;
|
|
116
|
+
href?: string;
|
|
117
|
+
onClick?: () => void;
|
|
118
|
+
className?: string;
|
|
119
|
+
}
|
|
120
|
+
interface BigNumberCardContentProps {
|
|
121
|
+
children: React$1.ReactNode;
|
|
122
|
+
className?: string;
|
|
123
|
+
}
|
|
124
|
+
interface BigNumberCardValueProps {
|
|
125
|
+
children: React$1.ReactNode;
|
|
126
|
+
prefix?: string;
|
|
127
|
+
suffix?: string;
|
|
128
|
+
className?: string;
|
|
129
|
+
}
|
|
130
|
+
interface BigNumberCardTrendProps {
|
|
131
|
+
value: number;
|
|
132
|
+
direction: 'up' | 'down';
|
|
133
|
+
children?: React$1.ReactNode;
|
|
134
|
+
className?: string;
|
|
135
|
+
show?: boolean;
|
|
136
|
+
}
|
|
137
|
+
interface BigNumberCardSparklineProps {
|
|
138
|
+
data: number[];
|
|
139
|
+
color?: SparklineColor;
|
|
140
|
+
animate?: boolean;
|
|
141
|
+
className?: string;
|
|
142
|
+
show?: boolean;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare function Sparkline({ data, color, animate, className, show, }: BigNumberCardSparklineProps): react_jsx_runtime.JSX.Element | null;
|
|
146
|
+
declare namespace Sparkline {
|
|
147
|
+
var displayName: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare function BigNumberCardRoot({ children, className, size }: BigNumberCardRootProps): react_jsx_runtime.JSX.Element;
|
|
151
|
+
declare namespace BigNumberCardRoot {
|
|
152
|
+
var displayName: string;
|
|
153
|
+
}
|
|
154
|
+
declare function BigNumberCardHeader({ children, className }: BigNumberCardHeaderProps): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare namespace BigNumberCardHeader {
|
|
156
|
+
var displayName: string;
|
|
157
|
+
}
|
|
158
|
+
declare function BigNumberCardTitle({ children, className }: BigNumberCardTitleProps): react_jsx_runtime.JSX.Element;
|
|
159
|
+
declare namespace BigNumberCardTitle {
|
|
160
|
+
var displayName: string;
|
|
161
|
+
}
|
|
162
|
+
declare function BigNumberCardLink({ children, href, onClick, className }: BigNumberCardLinkProps): react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare namespace BigNumberCardLink {
|
|
164
|
+
var displayName: string;
|
|
165
|
+
}
|
|
166
|
+
declare function BigNumberCardContent({ children, className }: BigNumberCardContentProps): react_jsx_runtime.JSX.Element;
|
|
167
|
+
declare namespace BigNumberCardContent {
|
|
168
|
+
var displayName: string;
|
|
169
|
+
}
|
|
170
|
+
declare function BigNumberCardValue({ children, prefix, suffix, className }: BigNumberCardValueProps): react_jsx_runtime.JSX.Element;
|
|
171
|
+
declare namespace BigNumberCardValue {
|
|
172
|
+
var displayName: string;
|
|
173
|
+
}
|
|
174
|
+
declare function BigNumberCardTrend({ value, direction, children, className, show }: BigNumberCardTrendProps): react_jsx_runtime.JSX.Element | null;
|
|
175
|
+
declare namespace BigNumberCardTrend {
|
|
176
|
+
var displayName: string;
|
|
177
|
+
}
|
|
178
|
+
interface BigNumberCardDescriptionProps {
|
|
179
|
+
children: React$1.ReactNode;
|
|
180
|
+
className?: string;
|
|
181
|
+
show?: boolean;
|
|
182
|
+
}
|
|
183
|
+
declare function BigNumberCardDescription({ children, className, show }: BigNumberCardDescriptionProps): react_jsx_runtime.JSX.Element | null;
|
|
184
|
+
declare namespace BigNumberCardDescription {
|
|
185
|
+
var displayName: string;
|
|
186
|
+
}
|
|
187
|
+
declare function BigNumberCardSparklineWrapper(props: React$1.ComponentProps<typeof Sparkline>): react_jsx_runtime.JSX.Element | null;
|
|
188
|
+
declare namespace BigNumberCardSparklineWrapper {
|
|
189
|
+
var displayName: string;
|
|
190
|
+
}
|
|
191
|
+
declare const BigNumberCard: {
|
|
192
|
+
Root: typeof BigNumberCardRoot;
|
|
193
|
+
Header: typeof BigNumberCardHeader;
|
|
194
|
+
Title: typeof BigNumberCardTitle;
|
|
195
|
+
Link: typeof BigNumberCardLink;
|
|
196
|
+
Content: typeof BigNumberCardContent;
|
|
197
|
+
Value: typeof BigNumberCardValue;
|
|
198
|
+
Trend: typeof BigNumberCardTrend;
|
|
199
|
+
Description: typeof BigNumberCardDescription;
|
|
200
|
+
Sparkline: typeof BigNumberCardSparklineWrapper;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
204
|
+
variant?: 'default' | 'circular' | 'text';
|
|
205
|
+
animation?: 'pulse' | 'wave' | 'none';
|
|
206
|
+
}
|
|
207
|
+
declare function Skeleton({ className, variant, animation, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
208
|
+
declare namespace Skeleton {
|
|
209
|
+
var displayName: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
declare const selectVariants: (props?: ({
|
|
213
|
+
variant?: "default" | "error" | null | undefined;
|
|
214
|
+
selectSize?: "default" | "sm" | "lg" | null | undefined;
|
|
215
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
216
|
+
interface SelectProps extends Omit<React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, 'size'>, VariantProps<typeof selectVariants> {
|
|
217
|
+
label?: string;
|
|
218
|
+
error?: boolean;
|
|
219
|
+
icon?: React$1.ComponentType<any>;
|
|
220
|
+
className?: string;
|
|
221
|
+
containerClassName?: string;
|
|
222
|
+
labelClassName?: string;
|
|
223
|
+
placeholder?: string;
|
|
224
|
+
required?: boolean;
|
|
225
|
+
children: React$1.ReactNode;
|
|
226
|
+
}
|
|
227
|
+
declare const Select: React$1.ForwardRefExoticComponent<SelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
228
|
+
interface SelectItemProps extends React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
|
|
229
|
+
children: React$1.ReactNode;
|
|
230
|
+
}
|
|
231
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
232
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
233
|
+
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
234
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
235
|
+
|
|
236
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
237
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
238
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
239
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
240
|
+
|
|
241
|
+
declare const loaderVariants: (props?: ({
|
|
242
|
+
variant?: "default" | "pulse" | "spinner" | "dots" | "bars" | null | undefined;
|
|
243
|
+
scope?: "local" | "global" | null | undefined;
|
|
244
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
245
|
+
interface LoaderProps extends VariantProps<typeof loaderVariants> {
|
|
246
|
+
message?: string;
|
|
247
|
+
isTransparentBg?: boolean;
|
|
248
|
+
show?: boolean;
|
|
249
|
+
}
|
|
250
|
+
declare const Loader: React$1.ForwardRefExoticComponent<LoaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
251
|
+
|
|
252
|
+
interface LoaderContextValue {
|
|
253
|
+
show: (options?: LoaderOptions) => void;
|
|
254
|
+
hide: () => void;
|
|
255
|
+
isLoading: boolean;
|
|
256
|
+
}
|
|
257
|
+
interface LoaderOptions {
|
|
258
|
+
message?: string;
|
|
259
|
+
variant?: LoaderProps['variant'];
|
|
260
|
+
scope?: LoaderProps['scope'];
|
|
261
|
+
isTransparentBg?: boolean;
|
|
262
|
+
}
|
|
263
|
+
declare function LoaderProvider({ children }: {
|
|
264
|
+
children: React$1.ReactNode;
|
|
265
|
+
}): react_jsx_runtime.JSX.Element;
|
|
266
|
+
declare function useLoader(): LoaderContextValue;
|
|
267
|
+
declare const loader: {
|
|
268
|
+
show: (options?: LoaderOptions) => void;
|
|
269
|
+
hide: () => void;
|
|
270
|
+
};
|
|
271
|
+
declare function GlobalLoaderController(): null;
|
|
272
|
+
|
|
273
|
+
declare const emptyStateVariants: (props?: ({
|
|
274
|
+
layout?: "horizontal" | "vertical" | null | undefined;
|
|
275
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
276
|
+
interface EmptyStateProps extends VariantProps<typeof emptyStateVariants> {
|
|
277
|
+
message?: string;
|
|
278
|
+
description?: string;
|
|
279
|
+
icon?: React$1.ComponentType<any>;
|
|
280
|
+
actionLabel?: string;
|
|
281
|
+
onAction?: () => void;
|
|
282
|
+
hideDescription?: boolean;
|
|
283
|
+
size?: 'default' | 'sm';
|
|
284
|
+
className?: string;
|
|
285
|
+
animated?: boolean;
|
|
286
|
+
}
|
|
287
|
+
declare const EmptyState: React$1.NamedExoticComponent<EmptyStateProps>;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Props do componente root DataTable.
|
|
291
|
+
*
|
|
292
|
+
* TData deve ser um objeto para garantir type-safety com o TanStack Table.
|
|
293
|
+
* Usando `extends object` para aceitar interfaces TypeScript normalmente.
|
|
294
|
+
*/
|
|
295
|
+
interface DataTableProps<TData extends object> {
|
|
296
|
+
/** Data array - deve ser memoizado pelo consumer */
|
|
297
|
+
data: TData[];
|
|
298
|
+
/** Column definitions - deve ser memoizado pelo consumer */
|
|
299
|
+
columns: ColumnDef<TData, unknown>[];
|
|
300
|
+
/** Children usando Compound Component pattern */
|
|
301
|
+
children: React$1.ReactNode;
|
|
302
|
+
/** Função para obter ID único da row */
|
|
303
|
+
getRowId?: (row: TData) => string;
|
|
304
|
+
/**
|
|
305
|
+
* Habilita server-side pagination.
|
|
306
|
+
* Quando true, a tabela não faz paginação local e depende do servidor.
|
|
307
|
+
*/
|
|
308
|
+
manualPagination?: boolean;
|
|
309
|
+
/** Número inicial de items por página (default: 10) */
|
|
310
|
+
initialPageSize?: number;
|
|
311
|
+
/**
|
|
312
|
+
* Total de páginas (obrigatório se manualPagination=true).
|
|
313
|
+
* Usado para calcular navegação quando dados vêm do servidor.
|
|
314
|
+
*/
|
|
315
|
+
pageCount?: number;
|
|
316
|
+
/**
|
|
317
|
+
* Callback disparado quando page ou pageSize mudam (server-side pagination).
|
|
318
|
+
* Inclui mudanças do autoPageSize e do seletor manual.
|
|
319
|
+
*/
|
|
320
|
+
onPaginationChange?: (pagination: {
|
|
321
|
+
pageIndex: number;
|
|
322
|
+
pageSize: number;
|
|
323
|
+
}) => void;
|
|
324
|
+
/** Custom className */
|
|
325
|
+
className?: string;
|
|
326
|
+
}
|
|
327
|
+
interface DataTableState {
|
|
328
|
+
sorting: SortingState;
|
|
329
|
+
columnFilters: ColumnFiltersState;
|
|
330
|
+
columnVisibility: VisibilityState;
|
|
331
|
+
rowSelection: RowSelectionState;
|
|
332
|
+
pagination: PaginationState;
|
|
333
|
+
globalFilter: string;
|
|
334
|
+
density: DataTableDensity;
|
|
335
|
+
}
|
|
336
|
+
type DataTableDensity = 'compact' | 'default' | 'comfortable';
|
|
337
|
+
interface DataTableMeta {
|
|
338
|
+
isLoading: boolean;
|
|
339
|
+
isEmpty: boolean;
|
|
340
|
+
selectedRowCount: number;
|
|
341
|
+
totalRows: number;
|
|
342
|
+
density: DataTableDensity;
|
|
343
|
+
}
|
|
344
|
+
interface DataTableLoadingProps {
|
|
345
|
+
/** Controla visibilidade do loading */
|
|
346
|
+
visible: boolean;
|
|
347
|
+
/** Custom skeleton component */
|
|
348
|
+
skeleton?: React$1.ReactNode;
|
|
349
|
+
/** Número de rows no skeleton */
|
|
350
|
+
skeletonRows?: number;
|
|
351
|
+
/** Custom className */
|
|
352
|
+
className?: string;
|
|
353
|
+
}
|
|
354
|
+
interface DataTableToolbarProps {
|
|
355
|
+
/** Children components */
|
|
356
|
+
children?: React$1.ReactNode;
|
|
357
|
+
/** Custom className */
|
|
358
|
+
className?: string;
|
|
359
|
+
}
|
|
360
|
+
interface DataTableSearchProps {
|
|
361
|
+
/** Placeholder text */
|
|
362
|
+
placeholder?: string;
|
|
363
|
+
/** Coluna específica para buscar (se não passar, busca global) */
|
|
364
|
+
column?: string;
|
|
365
|
+
/** Debounce delay em ms */
|
|
366
|
+
debounce?: number;
|
|
367
|
+
/** Callback para server-side search (recebe valor com debounce aplicado) */
|
|
368
|
+
onSearch?: (value: string) => void;
|
|
369
|
+
/** Custom className */
|
|
370
|
+
className?: string;
|
|
371
|
+
}
|
|
372
|
+
interface DataTableFiltersProps {
|
|
373
|
+
/** Children: Individual filters */
|
|
374
|
+
children?: React$1.ReactNode;
|
|
375
|
+
/** Callback when any column filter changes (server-side filtering) */
|
|
376
|
+
onChange?: (filters: _tanstack_react_table.ColumnFiltersState) => void;
|
|
377
|
+
/** Custom className */
|
|
378
|
+
className?: string;
|
|
379
|
+
}
|
|
380
|
+
interface DataTableFilterOption {
|
|
381
|
+
label: string;
|
|
382
|
+
value: string;
|
|
383
|
+
icon?: React$1.ReactNode;
|
|
384
|
+
}
|
|
385
|
+
interface DataTableFilterProps {
|
|
386
|
+
/** Coluna para filtrar (opcional para server-side only) */
|
|
387
|
+
column?: string;
|
|
388
|
+
/** Label do filtro */
|
|
389
|
+
title: string;
|
|
390
|
+
/** Opções de filtro */
|
|
391
|
+
options: DataTableFilterOption[];
|
|
392
|
+
/** Permitir seleção múltipla */
|
|
393
|
+
multiSelect?: boolean;
|
|
394
|
+
/** Callback para server-side filtering (recebe valor selecionado ou undefined para "todos") */
|
|
395
|
+
onValueChange?: (value: string | undefined) => void;
|
|
396
|
+
/** Custom className */
|
|
397
|
+
className?: string;
|
|
398
|
+
}
|
|
399
|
+
interface DataTableContentProps {
|
|
400
|
+
/** Header fixo no scroll */
|
|
401
|
+
stickyHeader?: boolean;
|
|
402
|
+
/** Linhas alternadas (zebra) */
|
|
403
|
+
stripedRows?: boolean;
|
|
404
|
+
/** Highlight no hover */
|
|
405
|
+
highlightOnHover?: boolean;
|
|
406
|
+
/** Callback quando uma row é clicada */
|
|
407
|
+
onRowClick?: (row: unknown) => void;
|
|
408
|
+
/**
|
|
409
|
+
* Habilita scroll vertical com altura calculada automaticamente.
|
|
410
|
+
* O header das colunas fica sticky e apenas as rows fazem scroll.
|
|
411
|
+
*/
|
|
412
|
+
scrollable?: boolean;
|
|
413
|
+
/** Margem inferior em px para o cálculo de altura automática (default: 68) */
|
|
414
|
+
scrollBottomOffset?: number;
|
|
415
|
+
/**
|
|
416
|
+
* Calcula automaticamente o número de rows por página baseado na altura disponível.
|
|
417
|
+
* Mede do início do tbody até o final do viewport, descontando pagination e margem.
|
|
418
|
+
*/
|
|
419
|
+
autoPageSize?: boolean;
|
|
420
|
+
/** Custom className */
|
|
421
|
+
className?: string;
|
|
422
|
+
}
|
|
423
|
+
type DataTablePaginationMode = 'client' | 'server';
|
|
424
|
+
interface DataTablePaginationProps {
|
|
425
|
+
/** Modo de paginação */
|
|
426
|
+
mode?: DataTablePaginationMode;
|
|
427
|
+
/** Total de páginas (obrigatório se mode="server") */
|
|
428
|
+
pageCount?: number;
|
|
429
|
+
/** Opções de items por página */
|
|
430
|
+
pageSizes?: number[];
|
|
431
|
+
/** Mostrar seletor de page size */
|
|
432
|
+
showPageSize?: boolean;
|
|
433
|
+
/** Mostrar informação de página atual */
|
|
434
|
+
showPageInfo?: boolean;
|
|
435
|
+
/** Mostrar botões primeira/última página */
|
|
436
|
+
showFirstLast?: boolean;
|
|
437
|
+
/** Custom className */
|
|
438
|
+
className?: string;
|
|
439
|
+
}
|
|
440
|
+
interface DataTableEmptyStateProps {
|
|
441
|
+
/** Título */
|
|
442
|
+
title?: string;
|
|
443
|
+
/** Descrição */
|
|
444
|
+
description?: string;
|
|
445
|
+
/** Ícone customizado */
|
|
446
|
+
icon?: React$1.ReactNode;
|
|
447
|
+
/** Ação (botão, link, etc) */
|
|
448
|
+
action?: React$1.ReactNode;
|
|
449
|
+
/** Custom className */
|
|
450
|
+
className?: string;
|
|
451
|
+
}
|
|
452
|
+
interface DataTableBulkActionsProps<TData = unknown> {
|
|
453
|
+
/** Render prop que recebe as rows selecionadas */
|
|
454
|
+
children: (selectedRows: TData[]) => React$1.ReactNode;
|
|
455
|
+
/** Custom className */
|
|
456
|
+
className?: string;
|
|
457
|
+
}
|
|
458
|
+
interface DataTableColumnVisibilityProps {
|
|
459
|
+
/** Custom className */
|
|
460
|
+
className?: string;
|
|
461
|
+
}
|
|
462
|
+
interface DataTableDensityToggleProps {
|
|
463
|
+
/** Custom className */
|
|
464
|
+
className?: string;
|
|
465
|
+
}
|
|
466
|
+
interface DataTableTab {
|
|
467
|
+
/** Identificador único da tab */
|
|
468
|
+
value: string;
|
|
469
|
+
/** Label exibido na tab */
|
|
470
|
+
label: string;
|
|
471
|
+
/** Contador opcional (ex: "Todas 85") */
|
|
472
|
+
count?: number;
|
|
473
|
+
}
|
|
474
|
+
interface DataTableTabsProps {
|
|
475
|
+
/** Lista de tabs disponíveis */
|
|
476
|
+
tabs: DataTableTab[];
|
|
477
|
+
/** Tab ativa (controlled) */
|
|
478
|
+
value?: string;
|
|
479
|
+
/** Tab ativa inicial (uncontrolled) */
|
|
480
|
+
defaultValue?: string;
|
|
481
|
+
/** Callback quando tab muda */
|
|
482
|
+
onValueChange?: (value: string) => void;
|
|
483
|
+
/** Custom className */
|
|
484
|
+
className?: string;
|
|
485
|
+
}
|
|
486
|
+
type DataTableExportFormat = 'csv' | 'xlsx' | 'pdf';
|
|
487
|
+
interface DataTableExportProps {
|
|
488
|
+
/** Formatos disponíveis para export */
|
|
489
|
+
formats?: DataTableExportFormat[];
|
|
490
|
+
/** Nome do arquivo (sem extensão) */
|
|
491
|
+
filename?: string;
|
|
492
|
+
/** Custom className */
|
|
493
|
+
className?: string;
|
|
494
|
+
}
|
|
495
|
+
interface DataTableColumnHeaderProps<TData = unknown, TValue = unknown> {
|
|
496
|
+
/** Column instance do TanStack Table */
|
|
497
|
+
column: Column<TData, TValue>;
|
|
498
|
+
/** Título do header */
|
|
499
|
+
title: string;
|
|
500
|
+
/** Custom className */
|
|
501
|
+
className?: string;
|
|
502
|
+
}
|
|
503
|
+
interface DataTableRowActionsProps {
|
|
504
|
+
/** Children (DropdownMenuItems) */
|
|
505
|
+
children: React$1.ReactNode;
|
|
506
|
+
/** Custom className */
|
|
507
|
+
className?: string;
|
|
508
|
+
}
|
|
509
|
+
interface DataTableContextValue<TData = unknown> {
|
|
510
|
+
table: Table$1<TData>;
|
|
511
|
+
state: DataTableMeta;
|
|
512
|
+
density: DataTableDensity;
|
|
513
|
+
setDensity: (density: DataTableDensity) => void;
|
|
514
|
+
}
|
|
515
|
+
interface UseDataTableConfig<TData extends object> {
|
|
516
|
+
data: TData[];
|
|
517
|
+
columns: ColumnDef<TData, unknown>[];
|
|
518
|
+
getRowId?: (row: TData) => string;
|
|
519
|
+
initialPageSize?: number;
|
|
520
|
+
initialPageIndex?: number;
|
|
521
|
+
}
|
|
522
|
+
interface PaginationMeta {
|
|
523
|
+
page: number;
|
|
524
|
+
perPage: number;
|
|
525
|
+
totalItems: number;
|
|
526
|
+
totalPages: number;
|
|
527
|
+
hasNextPage: boolean;
|
|
528
|
+
hasPreviousPage: boolean;
|
|
529
|
+
sortBy?: string;
|
|
530
|
+
sortOrder?: 'asc' | 'desc';
|
|
531
|
+
}
|
|
532
|
+
interface PaginatedResponse<T> {
|
|
533
|
+
data: T[];
|
|
534
|
+
meta: PaginationMeta;
|
|
535
|
+
}
|
|
536
|
+
interface PaginationParams {
|
|
537
|
+
page?: number;
|
|
538
|
+
perPage?: number;
|
|
539
|
+
sortBy?: string;
|
|
540
|
+
sortOrder?: 'asc' | 'desc';
|
|
541
|
+
}
|
|
542
|
+
declare const DENSITY_CONFIG: {
|
|
543
|
+
readonly compact: {
|
|
544
|
+
readonly rowHeight: 32;
|
|
545
|
+
readonly fontSize: "text-xs";
|
|
546
|
+
readonly padding: "py-1 px-2";
|
|
547
|
+
};
|
|
548
|
+
readonly default: {
|
|
549
|
+
readonly rowHeight: 40;
|
|
550
|
+
readonly fontSize: "text-sm";
|
|
551
|
+
readonly padding: "py-2 px-4";
|
|
552
|
+
};
|
|
553
|
+
readonly comfortable: {
|
|
554
|
+
readonly rowHeight: 52;
|
|
555
|
+
readonly fontSize: "text-sm";
|
|
556
|
+
readonly padding: "py-3 px-4";
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
declare function DataTableRoot<TData extends object>({ children, data, columns, getRowId, manualPagination, pageCount, initialPageSize, onPaginationChange, className, }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
561
|
+
declare namespace DataTableRoot {
|
|
562
|
+
var displayName: string;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare function DataTableLoading({ visible, skeletonRows, }: DataTableLoadingProps): null;
|
|
566
|
+
declare namespace DataTableLoading {
|
|
567
|
+
var displayName: string;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
declare function DataTableColumnHeader({ column, title, className, }: DataTableColumnHeaderProps): react_jsx_runtime.JSX.Element;
|
|
571
|
+
|
|
572
|
+
declare function DataTableColumnVisibility({ className, }: DataTableColumnVisibilityProps): react_jsx_runtime.JSX.Element;
|
|
573
|
+
declare namespace DataTableColumnVisibility {
|
|
574
|
+
var displayName: string;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
declare function DataTableDensityToggle({ className, }: DataTableDensityToggleProps): react_jsx_runtime.JSX.Element;
|
|
578
|
+
declare namespace DataTableDensityToggle {
|
|
579
|
+
var displayName: string;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
declare function DataTableBulkActions<TData extends Record<string, unknown>>({ children, className, }: DataTableBulkActionsProps<TData>): react_jsx_runtime.JSX.Element | null;
|
|
583
|
+
declare namespace DataTableBulkActions {
|
|
584
|
+
var displayName: string;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
declare function DataTableExport({ formats, filename, className, }: DataTableExportProps): react_jsx_runtime.JSX.Element;
|
|
588
|
+
declare namespace DataTableExport {
|
|
589
|
+
var displayName: string;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
declare function DataTableTabs({ tabs, value, defaultValue, onValueChange, className, }: DataTableTabsProps): react_jsx_runtime.JSX.Element;
|
|
593
|
+
declare namespace DataTableTabs {
|
|
594
|
+
var displayName: string;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
598
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
599
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
600
|
+
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
601
|
+
declare const TableRow: React$1.NamedExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
602
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
603
|
+
declare const TableCell: React$1.NamedExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
604
|
+
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Context 3: Density
|
|
608
|
+
* - Muda apenas quando usuário altera densidade
|
|
609
|
+
* - Separado para não re-renderizar toda tabela
|
|
610
|
+
*/
|
|
611
|
+
interface DensityContextValue {
|
|
612
|
+
density: DataTableDensity;
|
|
613
|
+
setDensity: (density: DataTableDensity) => void;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Hook para acessar a instância da tabela
|
|
617
|
+
* Não causa re-renders pois a instância é estável
|
|
618
|
+
*/
|
|
619
|
+
declare function useDataTable<TData = unknown>(): Table$1<TData>;
|
|
620
|
+
/**
|
|
621
|
+
* Hook para acessar o estado meta da tabela
|
|
622
|
+
* Re-renderiza quando loading, empty, ou selection muda
|
|
623
|
+
*/
|
|
624
|
+
declare function useDataTableMeta(): DataTableMeta;
|
|
625
|
+
/**
|
|
626
|
+
* Hook para acessar apenas o loading state
|
|
627
|
+
* Otimizado para componentes que só precisam saber se está carregando
|
|
628
|
+
*/
|
|
629
|
+
declare function useDataTableLoading(): boolean;
|
|
630
|
+
/**
|
|
631
|
+
* Hook para acessar apenas o empty state
|
|
632
|
+
* Otimizado para componentes que só precisam saber se está vazio
|
|
633
|
+
*/
|
|
634
|
+
declare function useDataTableEmpty(): boolean;
|
|
635
|
+
/**
|
|
636
|
+
* Hook para acessar rows selecionadas
|
|
637
|
+
* Re-renderiza quando seleção muda
|
|
638
|
+
*/
|
|
639
|
+
declare function useDataTableSelection<TData = unknown>(): TData[];
|
|
640
|
+
/**
|
|
641
|
+
* Hook para acessar densidade
|
|
642
|
+
* Separado para não re-renderizar componentes que não usam
|
|
643
|
+
*/
|
|
644
|
+
declare function useDataTableDensity(): DensityContextValue;
|
|
645
|
+
/**
|
|
646
|
+
* Hook para paginação
|
|
647
|
+
* Retorna informações de paginação memoizadas
|
|
648
|
+
* Re-renderiza quando pageIndex ou pageSize muda (via contexto)
|
|
649
|
+
*/
|
|
650
|
+
declare function useDataTablePagination(): {
|
|
651
|
+
pageIndex: number;
|
|
652
|
+
pageSize: number;
|
|
653
|
+
pageCount: number;
|
|
654
|
+
canPreviousPage: boolean;
|
|
655
|
+
canNextPage: boolean;
|
|
656
|
+
setPageIndex: (index: number) => void;
|
|
657
|
+
setPageSize: (size: number) => void;
|
|
658
|
+
previousPage: () => void;
|
|
659
|
+
nextPage: () => void;
|
|
660
|
+
firstPage: () => void;
|
|
661
|
+
lastPage: () => void;
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* Hook para sorting
|
|
665
|
+
* Retorna informações de sorting memoizadas
|
|
666
|
+
*/
|
|
667
|
+
declare function useDataTableSorting(): {
|
|
668
|
+
sorting: _tanstack_react_table.SortingState;
|
|
669
|
+
setSorting: (updater: _tanstack_react_table.Updater<_tanstack_react_table.SortingState>) => void;
|
|
670
|
+
clearSorting: () => void;
|
|
671
|
+
toggleSort: (columnId: string) => void;
|
|
672
|
+
};
|
|
673
|
+
/**
|
|
674
|
+
* Hook para column visibility
|
|
675
|
+
* Retorna informações de visibilidade memoizadas
|
|
676
|
+
*/
|
|
677
|
+
declare function useDataTableColumnVisibility(): {
|
|
678
|
+
columnVisibility: _tanstack_react_table.VisibilityState;
|
|
679
|
+
setColumnVisibility: (updater: _tanstack_react_table.Updater<_tanstack_react_table.VisibilityState>) => void;
|
|
680
|
+
toggleColumn: (columnId: string) => void;
|
|
681
|
+
getAllColumns: () => _tanstack_react_table.Column<unknown, unknown>[];
|
|
682
|
+
};
|
|
683
|
+
declare const useDataTableInstance: typeof useDataTable;
|
|
684
|
+
declare const useDataTableState: typeof useDataTableMeta;
|
|
685
|
+
|
|
686
|
+
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
687
|
+
declare function useDebouncedCallback<T extends (...args: any[]) => any>(callback: T, delay?: number): T;
|
|
688
|
+
|
|
689
|
+
declare const DataTable: typeof DataTableRoot & {
|
|
690
|
+
Loading: typeof DataTableLoading;
|
|
691
|
+
EmptyState: React$1.NamedExoticComponent<DataTableEmptyStateProps>;
|
|
692
|
+
Tabs: typeof DataTableTabs;
|
|
693
|
+
Toolbar: React$1.NamedExoticComponent<DataTableToolbarProps>;
|
|
694
|
+
Content: React$1.NamedExoticComponent<DataTableContentProps>;
|
|
695
|
+
Search: React$1.NamedExoticComponent<DataTableSearchProps>;
|
|
696
|
+
Filters: React$1.NamedExoticComponent<DataTableFiltersProps>;
|
|
697
|
+
Filter: React$1.NamedExoticComponent<DataTableFilterProps>;
|
|
698
|
+
Pagination: React$1.NamedExoticComponent<DataTablePaginationProps>;
|
|
699
|
+
BulkActions: typeof DataTableBulkActions;
|
|
700
|
+
ColumnVisibility: typeof DataTableColumnVisibility;
|
|
701
|
+
DensityToggle: typeof DataTableDensityToggle;
|
|
702
|
+
Export: typeof DataTableExport;
|
|
703
|
+
ColumnHeader: typeof DataTableColumnHeader;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
707
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
708
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
709
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
710
|
+
declare const DialogOverlay: React$1.NamedExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
711
|
+
declare const dialogContentVariants: (props?: ({
|
|
712
|
+
size?: "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "4xl" | "full" | null | undefined;
|
|
713
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
714
|
+
interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof dialogContentVariants> {
|
|
715
|
+
showCloseButton?: boolean;
|
|
716
|
+
/** Disable the mesh gradient + grid pattern effect (default: false) */
|
|
717
|
+
disableMeshEffect?: boolean;
|
|
718
|
+
}
|
|
719
|
+
declare const DialogContent: React$1.NamedExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
720
|
+
declare const DialogHeader: React$1.NamedExoticComponent<React$1.HTMLAttributes<HTMLDivElement>>;
|
|
721
|
+
declare const DialogFooter: React$1.NamedExoticComponent<React$1.HTMLAttributes<HTMLDivElement>>;
|
|
722
|
+
declare const DialogTitle: React$1.NamedExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
723
|
+
declare const DialogDescription: React$1.NamedExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
724
|
+
declare const DialogBody: React$1.NamedExoticComponent<React$1.HTMLAttributes<HTMLDivElement>>;
|
|
725
|
+
|
|
726
|
+
interface RippleEffectProps {
|
|
727
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
728
|
+
color?: 'primary' | 'secondary' | 'accent' | 'muted';
|
|
729
|
+
intensity?: 'light' | 'medium' | 'strong';
|
|
730
|
+
rings?: number;
|
|
731
|
+
position?: 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center';
|
|
732
|
+
className?: string;
|
|
733
|
+
}
|
|
734
|
+
declare const RippleEffect: React$1.NamedExoticComponent<RippleEffectProps>;
|
|
735
|
+
interface RippleWrapperProps {
|
|
736
|
+
children: React$1.ReactNode;
|
|
737
|
+
rippleProps?: RippleEffectProps;
|
|
738
|
+
className?: string;
|
|
739
|
+
}
|
|
740
|
+
declare const RippleWrapper: React$1.NamedExoticComponent<RippleWrapperProps>;
|
|
741
|
+
interface RippleBackgroundProps extends RippleEffectProps {
|
|
742
|
+
containerClassName?: string;
|
|
743
|
+
}
|
|
744
|
+
declare const RippleBackground: React$1.NamedExoticComponent<RippleBackgroundProps>;
|
|
745
|
+
|
|
746
|
+
declare const iconWrapperVariants: (props?: ({
|
|
747
|
+
variant?: "default" | "destructive" | "secondary" | "success" | "muted" | "accent" | null | undefined;
|
|
748
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
749
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
750
|
+
interface DialogWrapperProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof iconWrapperVariants> {
|
|
751
|
+
children?: React$1.ReactNode;
|
|
752
|
+
icon?: React$1.ElementType<{
|
|
753
|
+
className?: string;
|
|
754
|
+
}>;
|
|
755
|
+
status?: 'active' | 'inactive' | 'warning' | 'error' | null;
|
|
756
|
+
showRipple?: boolean;
|
|
757
|
+
rippleProps?: Partial<RippleEffectProps>;
|
|
758
|
+
iconSize?: 'sm' | 'md' | 'lg';
|
|
759
|
+
}
|
|
760
|
+
declare const DialogWrapper: React$1.NamedExoticComponent<DialogWrapperProps>;
|
|
761
|
+
|
|
762
|
+
type ToasterProps = React$1.ComponentProps<typeof Toaster$1>;
|
|
763
|
+
declare const toastVariants: {
|
|
764
|
+
default: {
|
|
765
|
+
bg: string;
|
|
766
|
+
border: string;
|
|
767
|
+
barColor: string;
|
|
768
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
769
|
+
textColor: string;
|
|
770
|
+
};
|
|
771
|
+
success: {
|
|
772
|
+
bg: string;
|
|
773
|
+
border: string;
|
|
774
|
+
barColor: string;
|
|
775
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
776
|
+
textColor: string;
|
|
777
|
+
};
|
|
778
|
+
error: {
|
|
779
|
+
bg: string;
|
|
780
|
+
border: string;
|
|
781
|
+
barColor: string;
|
|
782
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
783
|
+
textColor: string;
|
|
784
|
+
};
|
|
785
|
+
warning: {
|
|
786
|
+
bg: string;
|
|
787
|
+
border: string;
|
|
788
|
+
barColor: string;
|
|
789
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
790
|
+
textColor: string;
|
|
791
|
+
};
|
|
792
|
+
info: {
|
|
793
|
+
bg: string;
|
|
794
|
+
border: string;
|
|
795
|
+
barColor: string;
|
|
796
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
797
|
+
textColor: string;
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
801
|
+
interface ToastProps {
|
|
802
|
+
title: string;
|
|
803
|
+
description?: string;
|
|
804
|
+
variant?: keyof typeof toastVariants;
|
|
805
|
+
action?: {
|
|
806
|
+
label: string;
|
|
807
|
+
onClick: () => void;
|
|
808
|
+
};
|
|
809
|
+
onClose?: () => void;
|
|
810
|
+
}
|
|
811
|
+
declare const toast: ((message: string) => string | number) & {
|
|
812
|
+
success: (message: string | ToastProps) => string | number;
|
|
813
|
+
error: (message: string | ToastProps) => string | number;
|
|
814
|
+
warning: (message: string | ToastProps) => string | number;
|
|
815
|
+
info: (message: string | ToastProps) => string | number;
|
|
816
|
+
custom: (component: Parameters<typeof toast$1.custom>[0], options?: Parameters<typeof toast$1.custom>[1]) => string | number;
|
|
817
|
+
dismiss: (id?: string | number) => string | number;
|
|
818
|
+
promise: <T>(promise: Promise<T> | (() => Promise<T>), options: {
|
|
819
|
+
loading: string;
|
|
820
|
+
success: string | ((data: T) => string);
|
|
821
|
+
error: string | ((error: any) => string);
|
|
822
|
+
}) => (string & {
|
|
823
|
+
unwrap: () => Promise<T>;
|
|
824
|
+
}) | (number & {
|
|
825
|
+
unwrap: () => Promise<T>;
|
|
826
|
+
}) | {
|
|
827
|
+
unwrap: () => Promise<T>;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
declare const checkboxVariants: (props?: ({
|
|
832
|
+
variant?: "default" | "outline" | "secondary" | "muted" | null | undefined;
|
|
833
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
834
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
835
|
+
interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
|
|
836
|
+
}
|
|
837
|
+
declare const Checkbox: React$1.NamedExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
838
|
+
|
|
839
|
+
declare const switchVariants: (props?: ({
|
|
840
|
+
variant?: "default" | "secondary" | "success" | null | undefined;
|
|
841
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
842
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
843
|
+
interface SwitchProps extends React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, VariantProps<typeof switchVariants> {
|
|
844
|
+
}
|
|
845
|
+
declare const Switch: React$1.NamedExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
846
|
+
|
|
847
|
+
declare const textareaVariants: (props?: ({
|
|
848
|
+
variant?: "default" | "error" | null | undefined;
|
|
849
|
+
textareaSize?: "default" | "sm" | "lg" | null | undefined;
|
|
850
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
851
|
+
interface TextareaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, VariantProps<typeof textareaVariants> {
|
|
852
|
+
label?: string;
|
|
853
|
+
error?: boolean;
|
|
854
|
+
icon?: React$1.ComponentType<any>;
|
|
855
|
+
containerClassName?: string;
|
|
856
|
+
labelClassName?: string;
|
|
857
|
+
autoResize?: boolean;
|
|
858
|
+
}
|
|
859
|
+
declare const Textarea: React$1.NamedExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
860
|
+
|
|
861
|
+
interface FormLabelProps extends React$1.LabelHTMLAttributes<HTMLLabelElement> {
|
|
862
|
+
required?: boolean;
|
|
863
|
+
}
|
|
864
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<FormLabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
865
|
+
interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
866
|
+
}
|
|
867
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
868
|
+
interface FormErrorProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
869
|
+
message?: string;
|
|
870
|
+
}
|
|
871
|
+
declare const FormError: React$1.ForwardRefExoticComponent<FormErrorProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
872
|
+
interface FormFieldWrapperProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
873
|
+
label?: string;
|
|
874
|
+
description?: string;
|
|
875
|
+
required?: boolean;
|
|
876
|
+
error?: string;
|
|
877
|
+
}
|
|
878
|
+
declare const FormFieldWrapper: React$1.ForwardRefExoticComponent<FormFieldWrapperProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
879
|
+
|
|
880
|
+
interface FormContextValue<T extends FieldValues = FieldValues> {
|
|
881
|
+
form: UseFormReturn<T>;
|
|
882
|
+
}
|
|
883
|
+
interface FormFieldContextValue {
|
|
884
|
+
name: string;
|
|
885
|
+
id: string;
|
|
886
|
+
error?: string;
|
|
887
|
+
isRequired?: boolean;
|
|
888
|
+
}
|
|
889
|
+
interface BaseFieldProps<T extends FieldValues = FieldValues> {
|
|
890
|
+
name: FieldPath<T>;
|
|
891
|
+
label?: string;
|
|
892
|
+
description?: string;
|
|
893
|
+
required?: boolean;
|
|
894
|
+
disabled?: boolean;
|
|
895
|
+
className?: string;
|
|
896
|
+
}
|
|
897
|
+
type MaskType = 'phone' | 'cpf' | 'cnpj' | 'cep' | 'money' | 'percent' | 'plate' | 'date' | 'time' | 'datetime';
|
|
898
|
+
interface FormInputProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T>, Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'name' | 'size'> {
|
|
899
|
+
mask?: MaskType;
|
|
900
|
+
icon?: React$1.ComponentType<{
|
|
901
|
+
className?: string;
|
|
902
|
+
}>;
|
|
903
|
+
showPasswordToggle?: boolean;
|
|
904
|
+
inputSize?: 'sm' | 'default' | 'lg';
|
|
905
|
+
hideError?: boolean;
|
|
906
|
+
}
|
|
907
|
+
interface SelectOption {
|
|
908
|
+
value: string;
|
|
909
|
+
label: string;
|
|
910
|
+
description?: string;
|
|
911
|
+
icon?: React$1.ComponentType<{
|
|
912
|
+
className?: string;
|
|
913
|
+
}>;
|
|
914
|
+
disabled?: boolean;
|
|
915
|
+
}
|
|
916
|
+
interface FormSelectProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
917
|
+
options: SelectOption[];
|
|
918
|
+
placeholder?: string;
|
|
919
|
+
multiple?: boolean;
|
|
920
|
+
searchable?: boolean;
|
|
921
|
+
clearable?: boolean;
|
|
922
|
+
loading?: boolean;
|
|
923
|
+
emptyText?: string;
|
|
924
|
+
icon?: React$1.ComponentType<{
|
|
925
|
+
className?: string;
|
|
926
|
+
}>;
|
|
927
|
+
hideError?: boolean;
|
|
928
|
+
selectSize?: 'sm' | 'default' | 'lg';
|
|
929
|
+
/** Render as dropdown (default) or visual card grid */
|
|
930
|
+
variant?: 'default' | 'card';
|
|
931
|
+
/** Server-side search callback. If not provided, filters locally */
|
|
932
|
+
onSearch?: (query: string) => void;
|
|
933
|
+
/** Infinite scroll: callback to load more items */
|
|
934
|
+
onLoadMore?: () => void;
|
|
935
|
+
/** Infinite scroll: whether there are more items to load */
|
|
936
|
+
hasMore?: boolean;
|
|
937
|
+
/** Placeholder for the search input */
|
|
938
|
+
searchPlaceholder?: string;
|
|
939
|
+
}
|
|
940
|
+
interface FormTextareaProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T>, Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, 'name'> {
|
|
941
|
+
hideError?: boolean;
|
|
942
|
+
showCount?: boolean;
|
|
943
|
+
maxLength?: number;
|
|
944
|
+
}
|
|
945
|
+
interface FormCheckboxProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
946
|
+
hideError?: boolean;
|
|
947
|
+
}
|
|
948
|
+
interface FormSwitchProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
949
|
+
hideError?: boolean;
|
|
950
|
+
}
|
|
951
|
+
type RadioOptionColor = 'default' | 'destructive' | 'warning' | 'success' | 'info';
|
|
952
|
+
interface RadioOption {
|
|
953
|
+
value: string;
|
|
954
|
+
label: string;
|
|
955
|
+
description?: string;
|
|
956
|
+
disabled?: boolean;
|
|
957
|
+
color?: RadioOptionColor;
|
|
958
|
+
}
|
|
959
|
+
interface FormRadioGroupProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
960
|
+
options: RadioOption[];
|
|
961
|
+
orientation?: 'horizontal' | 'vertical';
|
|
962
|
+
hideError?: boolean;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
declare function FormInput<T extends FieldValues = FieldValues>({ name, label, description, required, disabled, className, mask, icon, showPasswordToggle, inputSize, hideError, type, maxLength, ...inputProps }: FormInputProps<T>): react_jsx_runtime.JSX.Element;
|
|
966
|
+
declare namespace FormInput {
|
|
967
|
+
var displayName: string;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
declare function FormSelect<T extends FieldValues = FieldValues>({ name, label, description, required, disabled, className, options, placeholder, icon, hideError, selectSize, emptyText, loading, variant, searchable, onSearch, onLoadMore, hasMore, searchPlaceholder, }: FormSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
971
|
+
declare namespace FormSelect {
|
|
972
|
+
var displayName: string;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
declare function FormTextarea<T extends FieldValues = FieldValues>({ name, label, description, required, disabled, className, hideError, showCount, maxLength, ...textareaProps }: FormTextareaProps<T>): react_jsx_runtime.JSX.Element;
|
|
976
|
+
declare namespace FormTextarea {
|
|
977
|
+
var displayName: string;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
declare function FormCheckbox<T extends FieldValues = FieldValues>({ name, label, description, required, disabled, className, hideError, }: FormCheckboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
981
|
+
declare namespace FormCheckbox {
|
|
982
|
+
var displayName: string;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
declare function FormSwitch<T extends FieldValues = FieldValues>({ name, label, description, required, disabled, className, hideError, }: FormSwitchProps<T>): react_jsx_runtime.JSX.Element;
|
|
986
|
+
declare namespace FormSwitch {
|
|
987
|
+
var displayName: string;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
declare function FormRadioGroup<T extends FieldValues = FieldValues>({ name, label, description, required, disabled, className, options, orientation, hideError, }: FormRadioGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
991
|
+
declare namespace FormRadioGroup {
|
|
992
|
+
var displayName: string;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
declare function useFormFieldContext(): FormFieldContextValue;
|
|
996
|
+
interface FormFieldProviderProps {
|
|
997
|
+
name: string;
|
|
998
|
+
children: React$1.ReactNode;
|
|
999
|
+
}
|
|
1000
|
+
declare function FormFieldProvider({ name, children }: FormFieldProviderProps): react_jsx_runtime.JSX.Element;
|
|
1001
|
+
|
|
1002
|
+
interface FormRootProps<T extends FieldValues = FieldValues> extends Omit<React$1.FormHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'onError'> {
|
|
1003
|
+
form: UseFormReturn<T>;
|
|
1004
|
+
onSubmit: SubmitHandler<T>;
|
|
1005
|
+
onError?: SubmitErrorHandler<T>;
|
|
1006
|
+
}
|
|
1007
|
+
declare function FormRoot<T extends FieldValues = FieldValues>({ form, onSubmit, onError, children, className, ...props }: FormRootProps<T>): react_jsx_runtime.JSX.Element;
|
|
1008
|
+
declare namespace FormRoot {
|
|
1009
|
+
var displayName: string;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
declare const Form: typeof FormRoot & {
|
|
1013
|
+
Input: typeof FormInput;
|
|
1014
|
+
Select: typeof FormSelect;
|
|
1015
|
+
Textarea: typeof FormTextarea;
|
|
1016
|
+
Checkbox: typeof FormCheckbox;
|
|
1017
|
+
Switch: typeof FormSwitch;
|
|
1018
|
+
RadioGroup: typeof FormRadioGroup;
|
|
1019
|
+
Label: React$1.ForwardRefExoticComponent<FormLabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1020
|
+
Description: React$1.ForwardRefExoticComponent<FormDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1021
|
+
Error: React$1.ForwardRefExoticComponent<FormErrorProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1022
|
+
FieldWrapper: React$1.ForwardRefExoticComponent<FormFieldWrapperProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1023
|
+
Field: typeof FormFieldProvider;
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
interface AvatarProps extends React$1.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> {
|
|
1027
|
+
className?: string;
|
|
1028
|
+
}
|
|
1029
|
+
interface AvatarImageProps extends React$1.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image> {
|
|
1030
|
+
className?: string;
|
|
1031
|
+
}
|
|
1032
|
+
interface AvatarFallbackProps extends React$1.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback> {
|
|
1033
|
+
className?: string;
|
|
1034
|
+
}
|
|
1035
|
+
declare const Avatar: React$1.ForwardRefExoticComponent<AvatarProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1036
|
+
declare const AvatarImage: React$1.ForwardRefExoticComponent<AvatarImageProps & React$1.RefAttributes<HTMLImageElement>>;
|
|
1037
|
+
declare const AvatarFallback: React$1.ForwardRefExoticComponent<AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1038
|
+
|
|
1039
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
1040
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1041
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1042
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
1043
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
1044
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1045
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1046
|
+
inset?: boolean;
|
|
1047
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1048
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1049
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1050
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1051
|
+
inset?: boolean;
|
|
1052
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1053
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1054
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1055
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1056
|
+
inset?: boolean;
|
|
1057
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1058
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1059
|
+
declare const DropdownMenuShortcut: {
|
|
1060
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
1061
|
+
displayName: string;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
1065
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1066
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1067
|
+
|
|
1068
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
1069
|
+
declare const TooltipRoot: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
1070
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1071
|
+
declare const TooltipPortal: React$1.FC<TooltipPrimitive.TooltipPortalProps>;
|
|
1072
|
+
declare const TooltipArrow: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipArrowProps & React$1.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
1073
|
+
variant?: "light" | "dark";
|
|
1074
|
+
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1075
|
+
declare const tooltipContentVariants: (props?: ({
|
|
1076
|
+
variant?: "light" | "dark" | null | undefined;
|
|
1077
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
1078
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1079
|
+
interface TooltipContentProps extends React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
|
|
1080
|
+
showArrow?: boolean;
|
|
1081
|
+
onDismiss?: () => void;
|
|
1082
|
+
}
|
|
1083
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<TooltipContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1084
|
+
interface TooltipHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1085
|
+
}
|
|
1086
|
+
declare const TooltipHeader: React$1.ForwardRefExoticComponent<TooltipHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1087
|
+
interface TooltipTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1088
|
+
}
|
|
1089
|
+
declare const TooltipTitle: React$1.ForwardRefExoticComponent<TooltipTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1090
|
+
interface TooltipDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
1091
|
+
}
|
|
1092
|
+
declare const TooltipDescription: React$1.ForwardRefExoticComponent<TooltipDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1093
|
+
interface TooltipActionsProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1094
|
+
}
|
|
1095
|
+
declare const TooltipActions: React$1.ForwardRefExoticComponent<TooltipActionsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1096
|
+
declare const tooltipActionVariants: (props?: ({
|
|
1097
|
+
variant?: "outline" | "secondary" | "primary" | null | undefined;
|
|
1098
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1099
|
+
interface TooltipActionProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof tooltipActionVariants> {
|
|
1100
|
+
}
|
|
1101
|
+
declare const TooltipAction: React$1.ForwardRefExoticComponent<TooltipActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1102
|
+
interface TooltipIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1103
|
+
}
|
|
1104
|
+
declare const TooltipIcon: React$1.ForwardRefExoticComponent<TooltipIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1105
|
+
interface SimpleTooltipProps {
|
|
1106
|
+
children: React$1.ReactNode;
|
|
1107
|
+
content: React$1.ReactNode;
|
|
1108
|
+
variant?: 'light' | 'dark';
|
|
1109
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
1110
|
+
align?: 'start' | 'center' | 'end';
|
|
1111
|
+
delayDuration?: number;
|
|
1112
|
+
open?: boolean;
|
|
1113
|
+
defaultOpen?: boolean;
|
|
1114
|
+
onOpenChange?: (open: boolean) => void;
|
|
1115
|
+
}
|
|
1116
|
+
declare const SimpleTooltip: {
|
|
1117
|
+
({ children, content, variant, side, align, delayDuration, open, defaultOpen, onOpenChange, }: SimpleTooltipProps): react_jsx_runtime.JSX.Element;
|
|
1118
|
+
displayName: string;
|
|
1119
|
+
};
|
|
1120
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps> & {
|
|
1121
|
+
Provider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
1122
|
+
Trigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1123
|
+
Portal: React$1.FC<TooltipPrimitive.TooltipPortalProps>;
|
|
1124
|
+
Content: React$1.ForwardRefExoticComponent<TooltipContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1125
|
+
Arrow: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipArrowProps & React$1.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
1126
|
+
variant?: "light" | "dark";
|
|
1127
|
+
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1128
|
+
Header: React$1.ForwardRefExoticComponent<TooltipHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1129
|
+
Title: React$1.ForwardRefExoticComponent<TooltipTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1130
|
+
Description: React$1.ForwardRefExoticComponent<TooltipDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1131
|
+
Actions: React$1.ForwardRefExoticComponent<TooltipActionsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1132
|
+
Action: React$1.ForwardRefExoticComponent<TooltipActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1133
|
+
Icon: React$1.ForwardRefExoticComponent<TooltipIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1134
|
+
Simple: {
|
|
1135
|
+
({ children, content, variant, side, align, delayDuration, open, defaultOpen, onOpenChange, }: SimpleTooltipProps): react_jsx_runtime.JSX.Element;
|
|
1136
|
+
displayName: string;
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1140
|
+
interface AuthLayoutProps {
|
|
1141
|
+
children: React$1.ReactNode;
|
|
1142
|
+
className?: string;
|
|
1143
|
+
}
|
|
1144
|
+
interface AuthLayoutImageProps {
|
|
1145
|
+
/** Image source URL (optional if using showPattern) */
|
|
1146
|
+
src?: string;
|
|
1147
|
+
/** Image alt text */
|
|
1148
|
+
alt?: string;
|
|
1149
|
+
/** Position of the image panel */
|
|
1150
|
+
position?: 'left' | 'right';
|
|
1151
|
+
/** Additional CSS classes */
|
|
1152
|
+
className?: string;
|
|
1153
|
+
/** Whether to load image with priority */
|
|
1154
|
+
priority?: boolean;
|
|
1155
|
+
/** Show geometric pattern overlay (useful as placeholder) */
|
|
1156
|
+
showPattern?: boolean;
|
|
1157
|
+
}
|
|
1158
|
+
interface AuthLayoutContentProps {
|
|
1159
|
+
children: React$1.ReactNode;
|
|
1160
|
+
className?: string;
|
|
1161
|
+
maxWidth?: 'sm' | 'md' | 'lg';
|
|
1162
|
+
}
|
|
1163
|
+
interface AuthLayoutHeaderProps {
|
|
1164
|
+
children?: React$1.ReactNode;
|
|
1165
|
+
className?: string;
|
|
1166
|
+
logo?: React$1.ReactNode;
|
|
1167
|
+
title?: string;
|
|
1168
|
+
description?: string;
|
|
1169
|
+
centered?: boolean;
|
|
1170
|
+
/** Position of the header: 'default' (inline) or 'top-left' (absolute corner) */
|
|
1171
|
+
position?: 'default' | 'top-left' | 'top-right';
|
|
1172
|
+
}
|
|
1173
|
+
interface AuthLayoutBodyProps {
|
|
1174
|
+
children: React$1.ReactNode;
|
|
1175
|
+
className?: string;
|
|
1176
|
+
}
|
|
1177
|
+
interface AuthLayoutFooterProps {
|
|
1178
|
+
children: React$1.ReactNode;
|
|
1179
|
+
className?: string;
|
|
1180
|
+
}
|
|
1181
|
+
interface AuthLayoutLinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1182
|
+
children: React$1.ReactNode;
|
|
1183
|
+
}
|
|
1184
|
+
interface AuthLayoutDividerProps {
|
|
1185
|
+
text?: string;
|
|
1186
|
+
className?: string;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
declare function AuthLayoutRoot({ children, className }: AuthLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1190
|
+
declare namespace AuthLayoutRoot {
|
|
1191
|
+
var displayName: string;
|
|
1192
|
+
}
|
|
1193
|
+
declare function AuthLayoutImage({ src, alt, position: _position, className, priority, showPattern, }: AuthLayoutImageProps): react_jsx_runtime.JSX.Element;
|
|
1194
|
+
declare namespace AuthLayoutImage {
|
|
1195
|
+
var displayName: string;
|
|
1196
|
+
}
|
|
1197
|
+
declare function AuthLayoutContent({ children, className, maxWidth, }: AuthLayoutContentProps): react_jsx_runtime.JSX.Element;
|
|
1198
|
+
declare namespace AuthLayoutContent {
|
|
1199
|
+
var displayName: string;
|
|
1200
|
+
}
|
|
1201
|
+
declare function AuthLayoutHeader({ children, className, logo, title, description, centered, position, }: AuthLayoutHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1202
|
+
declare namespace AuthLayoutHeader {
|
|
1203
|
+
var displayName: string;
|
|
1204
|
+
}
|
|
1205
|
+
declare function AuthLayoutBody({ children, className }: AuthLayoutBodyProps): react_jsx_runtime.JSX.Element;
|
|
1206
|
+
declare namespace AuthLayoutBody {
|
|
1207
|
+
var displayName: string;
|
|
1208
|
+
}
|
|
1209
|
+
declare function AuthLayoutFooter({ children, className }: AuthLayoutFooterProps): react_jsx_runtime.JSX.Element;
|
|
1210
|
+
declare namespace AuthLayoutFooter {
|
|
1211
|
+
var displayName: string;
|
|
1212
|
+
}
|
|
1213
|
+
declare function AuthLayoutLink({ children, className, ...props }: AuthLayoutLinkProps): react_jsx_runtime.JSX.Element;
|
|
1214
|
+
declare namespace AuthLayoutLink {
|
|
1215
|
+
var displayName: string;
|
|
1216
|
+
}
|
|
1217
|
+
declare function AuthLayoutDivider({ text, className }: AuthLayoutDividerProps): react_jsx_runtime.JSX.Element;
|
|
1218
|
+
declare namespace AuthLayoutDivider {
|
|
1219
|
+
var displayName: string;
|
|
1220
|
+
}
|
|
1221
|
+
declare const AuthLayout: typeof AuthLayoutRoot & {
|
|
1222
|
+
Image: typeof AuthLayoutImage;
|
|
1223
|
+
Content: typeof AuthLayoutContent;
|
|
1224
|
+
Header: typeof AuthLayoutHeader;
|
|
1225
|
+
Body: typeof AuthLayoutBody;
|
|
1226
|
+
Footer: typeof AuthLayoutFooter;
|
|
1227
|
+
Link: typeof AuthLayoutLink;
|
|
1228
|
+
Divider: typeof AuthLayoutDivider;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
interface SelectionLayoutProps {
|
|
1232
|
+
children: React$1.ReactNode;
|
|
1233
|
+
className?: string;
|
|
1234
|
+
}
|
|
1235
|
+
interface SelectionLayoutSidebarProps {
|
|
1236
|
+
children: React$1.ReactNode;
|
|
1237
|
+
className?: string;
|
|
1238
|
+
}
|
|
1239
|
+
interface SelectionLayoutLogoProps {
|
|
1240
|
+
children: React$1.ReactNode;
|
|
1241
|
+
className?: string;
|
|
1242
|
+
}
|
|
1243
|
+
interface SelectionLayoutHeadlineProps {
|
|
1244
|
+
title: string;
|
|
1245
|
+
bullets?: string[];
|
|
1246
|
+
className?: string;
|
|
1247
|
+
}
|
|
1248
|
+
interface SelectionLayoutStatsProps {
|
|
1249
|
+
label: string;
|
|
1250
|
+
value: string | number;
|
|
1251
|
+
className?: string;
|
|
1252
|
+
}
|
|
1253
|
+
interface SelectionLayoutMainProps {
|
|
1254
|
+
children: React$1.ReactNode;
|
|
1255
|
+
className?: string;
|
|
1256
|
+
}
|
|
1257
|
+
interface SelectionLayoutHeaderProps {
|
|
1258
|
+
title: string;
|
|
1259
|
+
subtitle?: string;
|
|
1260
|
+
action?: React$1.ReactNode;
|
|
1261
|
+
className?: string;
|
|
1262
|
+
}
|
|
1263
|
+
interface SelectionLayoutSearchProps {
|
|
1264
|
+
value: string;
|
|
1265
|
+
onChange: (value: string) => void;
|
|
1266
|
+
placeholder?: string;
|
|
1267
|
+
className?: string;
|
|
1268
|
+
}
|
|
1269
|
+
interface SelectionLayoutTabsProps {
|
|
1270
|
+
children: React$1.ReactNode;
|
|
1271
|
+
value: string;
|
|
1272
|
+
onValueChange: (value: string) => void;
|
|
1273
|
+
className?: string;
|
|
1274
|
+
}
|
|
1275
|
+
interface SelectionLayoutTabProps {
|
|
1276
|
+
value: string;
|
|
1277
|
+
label: string;
|
|
1278
|
+
icon?: LucideIcon;
|
|
1279
|
+
badge?: string | number;
|
|
1280
|
+
className?: string;
|
|
1281
|
+
}
|
|
1282
|
+
interface SelectionLayoutListProps {
|
|
1283
|
+
children: React$1.ReactNode;
|
|
1284
|
+
className?: string;
|
|
1285
|
+
}
|
|
1286
|
+
interface SelectionLayoutCardProps {
|
|
1287
|
+
children?: React$1.ReactNode;
|
|
1288
|
+
className?: string;
|
|
1289
|
+
onClick?: () => void;
|
|
1290
|
+
icon?: LucideIcon | React$1.ReactNode;
|
|
1291
|
+
title: string;
|
|
1292
|
+
description?: string;
|
|
1293
|
+
badge?: React$1.ReactNode;
|
|
1294
|
+
favorite?: boolean;
|
|
1295
|
+
onFavoriteClick?: () => void;
|
|
1296
|
+
}
|
|
1297
|
+
interface SelectionLayoutEmptyProps {
|
|
1298
|
+
icon?: LucideIcon;
|
|
1299
|
+
title: string;
|
|
1300
|
+
description?: string;
|
|
1301
|
+
action?: React$1.ReactNode;
|
|
1302
|
+
className?: string;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
declare function SelectionLayoutRoot({ children, className }: SelectionLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1306
|
+
declare namespace SelectionLayoutRoot {
|
|
1307
|
+
var displayName: string;
|
|
1308
|
+
}
|
|
1309
|
+
declare function SelectionLayoutSidebar({ children, className }: SelectionLayoutSidebarProps): react_jsx_runtime.JSX.Element;
|
|
1310
|
+
declare namespace SelectionLayoutSidebar {
|
|
1311
|
+
var displayName: string;
|
|
1312
|
+
}
|
|
1313
|
+
declare function SelectionLayoutLogo({ children, className }: SelectionLayoutLogoProps): react_jsx_runtime.JSX.Element;
|
|
1314
|
+
declare namespace SelectionLayoutLogo {
|
|
1315
|
+
var displayName: string;
|
|
1316
|
+
}
|
|
1317
|
+
declare function SelectionLayoutHeadline({ title, bullets, className, }: SelectionLayoutHeadlineProps): react_jsx_runtime.JSX.Element;
|
|
1318
|
+
declare namespace SelectionLayoutHeadline {
|
|
1319
|
+
var displayName: string;
|
|
1320
|
+
}
|
|
1321
|
+
declare function SelectionLayoutStats({ label, value, className }: SelectionLayoutStatsProps): react_jsx_runtime.JSX.Element;
|
|
1322
|
+
declare namespace SelectionLayoutStats {
|
|
1323
|
+
var displayName: string;
|
|
1324
|
+
}
|
|
1325
|
+
declare function SelectionLayoutMain({ children, className }: SelectionLayoutMainProps): react_jsx_runtime.JSX.Element;
|
|
1326
|
+
declare namespace SelectionLayoutMain {
|
|
1327
|
+
var displayName: string;
|
|
1328
|
+
}
|
|
1329
|
+
declare function SelectionLayoutHeader({ title, subtitle, action, className, }: SelectionLayoutHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1330
|
+
declare namespace SelectionLayoutHeader {
|
|
1331
|
+
var displayName: string;
|
|
1332
|
+
}
|
|
1333
|
+
declare function SelectionLayoutSearch({ value, onChange, placeholder, className, }: SelectionLayoutSearchProps): react_jsx_runtime.JSX.Element;
|
|
1334
|
+
declare namespace SelectionLayoutSearch {
|
|
1335
|
+
var displayName: string;
|
|
1336
|
+
}
|
|
1337
|
+
declare function SelectionLayoutTabs({ children, value, onValueChange, className, }: SelectionLayoutTabsProps): react_jsx_runtime.JSX.Element;
|
|
1338
|
+
declare namespace SelectionLayoutTabs {
|
|
1339
|
+
var displayName: string;
|
|
1340
|
+
}
|
|
1341
|
+
declare function SelectionLayoutTab({ value, label, icon: Icon, badge, className, }: SelectionLayoutTabProps): react_jsx_runtime.JSX.Element;
|
|
1342
|
+
declare namespace SelectionLayoutTab {
|
|
1343
|
+
var displayName: string;
|
|
1344
|
+
}
|
|
1345
|
+
declare function SelectionLayoutList({ children, className }: SelectionLayoutListProps): react_jsx_runtime.JSX.Element;
|
|
1346
|
+
declare namespace SelectionLayoutList {
|
|
1347
|
+
var displayName: string;
|
|
1348
|
+
}
|
|
1349
|
+
declare function SelectionLayoutCard({ children, className, onClick, icon, title, description, badge, favorite, onFavoriteClick, }: SelectionLayoutCardProps): react_jsx_runtime.JSX.Element;
|
|
1350
|
+
declare namespace SelectionLayoutCard {
|
|
1351
|
+
var displayName: string;
|
|
1352
|
+
}
|
|
1353
|
+
declare function SelectionLayoutEmpty({ icon: Icon, title, description, action, className, }: SelectionLayoutEmptyProps): react_jsx_runtime.JSX.Element;
|
|
1354
|
+
declare namespace SelectionLayoutEmpty {
|
|
1355
|
+
var displayName: string;
|
|
1356
|
+
}
|
|
1357
|
+
declare const SelectionLayout: typeof SelectionLayoutRoot & {
|
|
1358
|
+
Sidebar: typeof SelectionLayoutSidebar;
|
|
1359
|
+
Logo: typeof SelectionLayoutLogo;
|
|
1360
|
+
Headline: typeof SelectionLayoutHeadline;
|
|
1361
|
+
Stats: typeof SelectionLayoutStats;
|
|
1362
|
+
Main: typeof SelectionLayoutMain;
|
|
1363
|
+
Header: typeof SelectionLayoutHeader;
|
|
1364
|
+
Search: typeof SelectionLayoutSearch;
|
|
1365
|
+
Tabs: typeof SelectionLayoutTabs;
|
|
1366
|
+
Tab: typeof SelectionLayoutTab;
|
|
1367
|
+
List: typeof SelectionLayoutList;
|
|
1368
|
+
Card: typeof SelectionLayoutCard;
|
|
1369
|
+
Empty: typeof SelectionLayoutEmpty;
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
interface DashboardLayoutContextValue {
|
|
1373
|
+
sidebarExpanded: boolean;
|
|
1374
|
+
setSidebarExpanded: (expanded: boolean) => void;
|
|
1375
|
+
sidebarPinned: boolean;
|
|
1376
|
+
setSidebarPinned: (pinned: boolean) => void;
|
|
1377
|
+
isMobile: boolean;
|
|
1378
|
+
mobileMenuOpen: boolean;
|
|
1379
|
+
setMobileMenuOpen: (open: boolean) => void;
|
|
1380
|
+
}
|
|
1381
|
+
interface DashboardLayoutProps {
|
|
1382
|
+
children: React.ReactNode;
|
|
1383
|
+
className?: string;
|
|
1384
|
+
defaultExpanded?: boolean;
|
|
1385
|
+
defaultPinned?: boolean;
|
|
1386
|
+
}
|
|
1387
|
+
interface DashboardLayoutSidebarProps {
|
|
1388
|
+
children: React.ReactNode;
|
|
1389
|
+
className?: string;
|
|
1390
|
+
collapsedWidth?: number;
|
|
1391
|
+
expandedWidth?: number;
|
|
1392
|
+
}
|
|
1393
|
+
interface DashboardLayoutSidebarHeaderProps {
|
|
1394
|
+
children?: React.ReactNode;
|
|
1395
|
+
className?: string;
|
|
1396
|
+
logo?: React.ReactNode;
|
|
1397
|
+
collapsedLogo?: React.ReactNode;
|
|
1398
|
+
title?: string;
|
|
1399
|
+
}
|
|
1400
|
+
interface DashboardLayoutSidebarNavProps {
|
|
1401
|
+
children: React.ReactNode;
|
|
1402
|
+
className?: string;
|
|
1403
|
+
}
|
|
1404
|
+
interface DashboardLayoutSidebarNavItemProps {
|
|
1405
|
+
icon?: LucideIcon | React.ReactNode;
|
|
1406
|
+
label: string;
|
|
1407
|
+
href?: string;
|
|
1408
|
+
onClick?: () => void;
|
|
1409
|
+
isActive?: boolean;
|
|
1410
|
+
badge?: string | number;
|
|
1411
|
+
badgeVariant?: 'default' | 'primary' | 'destructive';
|
|
1412
|
+
className?: string;
|
|
1413
|
+
disabled?: boolean;
|
|
1414
|
+
}
|
|
1415
|
+
interface DashboardLayoutSidebarNavGroupProps {
|
|
1416
|
+
icon?: LucideIcon | React.ReactNode;
|
|
1417
|
+
label: string;
|
|
1418
|
+
children: React.ReactNode;
|
|
1419
|
+
defaultOpen?: boolean;
|
|
1420
|
+
isActive?: boolean;
|
|
1421
|
+
badge?: string | number;
|
|
1422
|
+
badgeVariant?: 'default' | 'primary' | 'destructive';
|
|
1423
|
+
className?: string;
|
|
1424
|
+
}
|
|
1425
|
+
interface DashboardLayoutSidebarSectionProps {
|
|
1426
|
+
title?: string;
|
|
1427
|
+
children: React.ReactNode;
|
|
1428
|
+
className?: string;
|
|
1429
|
+
}
|
|
1430
|
+
interface DashboardLayoutSidebarFooterProps {
|
|
1431
|
+
children: React.ReactNode;
|
|
1432
|
+
className?: string;
|
|
1433
|
+
}
|
|
1434
|
+
interface DashboardLayoutHeaderProps {
|
|
1435
|
+
children?: React.ReactNode;
|
|
1436
|
+
className?: string;
|
|
1437
|
+
}
|
|
1438
|
+
interface DashboardLayoutHeaderTitleProps {
|
|
1439
|
+
children?: React.ReactNode;
|
|
1440
|
+
className?: string;
|
|
1441
|
+
title?: string;
|
|
1442
|
+
subtitle?: string;
|
|
1443
|
+
}
|
|
1444
|
+
interface DashboardLayoutHeaderActionsProps {
|
|
1445
|
+
children: React.ReactNode;
|
|
1446
|
+
className?: string;
|
|
1447
|
+
}
|
|
1448
|
+
interface DashboardLayoutHeaderUserProps {
|
|
1449
|
+
name: string;
|
|
1450
|
+
email?: string;
|
|
1451
|
+
avatar?: string;
|
|
1452
|
+
className?: string;
|
|
1453
|
+
children?: React.ReactNode;
|
|
1454
|
+
onLogout?: () => void;
|
|
1455
|
+
}
|
|
1456
|
+
interface DashboardLayoutContentProps {
|
|
1457
|
+
children: React.ReactNode;
|
|
1458
|
+
className?: string;
|
|
1459
|
+
}
|
|
1460
|
+
interface DashboardLayoutBreadcrumbsProps {
|
|
1461
|
+
items: Array<{
|
|
1462
|
+
label: string;
|
|
1463
|
+
href?: string;
|
|
1464
|
+
icon?: LucideIcon;
|
|
1465
|
+
}>;
|
|
1466
|
+
className?: string;
|
|
1467
|
+
separator?: React.ReactNode;
|
|
1468
|
+
}
|
|
1469
|
+
interface DashboardLayoutMobileNavProps {
|
|
1470
|
+
children: React.ReactNode;
|
|
1471
|
+
className?: string;
|
|
1472
|
+
}
|
|
1473
|
+
interface DashboardLayoutMobileNavItemProps {
|
|
1474
|
+
icon: LucideIcon;
|
|
1475
|
+
label: string;
|
|
1476
|
+
href?: string;
|
|
1477
|
+
onClick?: () => void;
|
|
1478
|
+
isActive?: boolean;
|
|
1479
|
+
badge?: string | number;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
declare function useDashboardLayout(): DashboardLayoutContextValue;
|
|
1483
|
+
declare function DashboardLayoutRoot({ children, className, defaultExpanded, defaultPinned, }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1484
|
+
declare namespace DashboardLayoutRoot {
|
|
1485
|
+
var displayName: string;
|
|
1486
|
+
}
|
|
1487
|
+
declare function DashboardLayoutSidebar({ children, className, collapsedWidth, expandedWidth, }: DashboardLayoutSidebarProps): react_jsx_runtime.JSX.Element;
|
|
1488
|
+
declare namespace DashboardLayoutSidebar {
|
|
1489
|
+
var displayName: string;
|
|
1490
|
+
}
|
|
1491
|
+
declare function DashboardLayoutSidebarHeader({ children, className, logo, collapsedLogo, title, }: DashboardLayoutSidebarHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1492
|
+
declare namespace DashboardLayoutSidebarHeader {
|
|
1493
|
+
var displayName: string;
|
|
1494
|
+
}
|
|
1495
|
+
declare function DashboardLayoutSidebarNav({ children, className }: DashboardLayoutSidebarNavProps): react_jsx_runtime.JSX.Element;
|
|
1496
|
+
declare namespace DashboardLayoutSidebarNav {
|
|
1497
|
+
var displayName: string;
|
|
1498
|
+
}
|
|
1499
|
+
declare function DashboardLayoutSidebarNavItem({ icon, label, href, onClick, isActive, badge, badgeVariant, className, disabled, }: DashboardLayoutSidebarNavItemProps): react_jsx_runtime.JSX.Element;
|
|
1500
|
+
declare namespace DashboardLayoutSidebarNavItem {
|
|
1501
|
+
var displayName: string;
|
|
1502
|
+
}
|
|
1503
|
+
declare function DashboardLayoutSidebarNavGroup({ icon, label, children, defaultOpen, isActive, badge, badgeVariant, className, }: DashboardLayoutSidebarNavGroupProps): react_jsx_runtime.JSX.Element;
|
|
1504
|
+
declare namespace DashboardLayoutSidebarNavGroup {
|
|
1505
|
+
var displayName: string;
|
|
1506
|
+
}
|
|
1507
|
+
declare function DashboardLayoutSidebarSection({ title, children, className, }: DashboardLayoutSidebarSectionProps): react_jsx_runtime.JSX.Element;
|
|
1508
|
+
declare namespace DashboardLayoutSidebarSection {
|
|
1509
|
+
var displayName: string;
|
|
1510
|
+
}
|
|
1511
|
+
declare function DashboardLayoutSidebarFooter({ children, className }: DashboardLayoutSidebarFooterProps): react_jsx_runtime.JSX.Element;
|
|
1512
|
+
declare namespace DashboardLayoutSidebarFooter {
|
|
1513
|
+
var displayName: string;
|
|
1514
|
+
}
|
|
1515
|
+
declare function DashboardLayoutHeader({ children, className }: DashboardLayoutHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1516
|
+
declare namespace DashboardLayoutHeader {
|
|
1517
|
+
var displayName: string;
|
|
1518
|
+
}
|
|
1519
|
+
declare function DashboardLayoutHeaderTitle({ children, className, title, subtitle, }: DashboardLayoutHeaderTitleProps): react_jsx_runtime.JSX.Element;
|
|
1520
|
+
declare namespace DashboardLayoutHeaderTitle {
|
|
1521
|
+
var displayName: string;
|
|
1522
|
+
}
|
|
1523
|
+
declare function DashboardLayoutHeaderActions({ children, className }: DashboardLayoutHeaderActionsProps): react_jsx_runtime.JSX.Element;
|
|
1524
|
+
declare namespace DashboardLayoutHeaderActions {
|
|
1525
|
+
var displayName: string;
|
|
1526
|
+
}
|
|
1527
|
+
declare function DashboardLayoutHeaderUser({ name, email, avatar, className, children, onLogout, }: DashboardLayoutHeaderUserProps): react_jsx_runtime.JSX.Element;
|
|
1528
|
+
declare namespace DashboardLayoutHeaderUser {
|
|
1529
|
+
var displayName: string;
|
|
1530
|
+
}
|
|
1531
|
+
declare function DashboardLayoutContent({ children, className }: DashboardLayoutContentProps): react_jsx_runtime.JSX.Element;
|
|
1532
|
+
declare namespace DashboardLayoutContent {
|
|
1533
|
+
var displayName: string;
|
|
1534
|
+
}
|
|
1535
|
+
declare function DashboardLayoutBreadcrumbs({ items, className, separator, }: DashboardLayoutBreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
1536
|
+
declare namespace DashboardLayoutBreadcrumbs {
|
|
1537
|
+
var displayName: string;
|
|
1538
|
+
}
|
|
1539
|
+
declare function DashboardLayoutMobileNav({ children, className }: DashboardLayoutMobileNavProps): react_jsx_runtime.JSX.Element;
|
|
1540
|
+
declare namespace DashboardLayoutMobileNav {
|
|
1541
|
+
var displayName: string;
|
|
1542
|
+
}
|
|
1543
|
+
declare function DashboardLayoutMobileNavItem({ icon: Icon, label, href, onClick, isActive, badge, }: DashboardLayoutMobileNavItemProps): react_jsx_runtime.JSX.Element;
|
|
1544
|
+
declare namespace DashboardLayoutMobileNavItem {
|
|
1545
|
+
var displayName: string;
|
|
1546
|
+
}
|
|
1547
|
+
declare const DashboardLayout: typeof DashboardLayoutRoot & {
|
|
1548
|
+
Sidebar: typeof DashboardLayoutSidebar;
|
|
1549
|
+
SidebarHeader: typeof DashboardLayoutSidebarHeader;
|
|
1550
|
+
SidebarNav: typeof DashboardLayoutSidebarNav;
|
|
1551
|
+
SidebarNavItem: typeof DashboardLayoutSidebarNavItem;
|
|
1552
|
+
SidebarNavGroup: typeof DashboardLayoutSidebarNavGroup;
|
|
1553
|
+
SidebarSection: typeof DashboardLayoutSidebarSection;
|
|
1554
|
+
SidebarFooter: typeof DashboardLayoutSidebarFooter;
|
|
1555
|
+
Header: typeof DashboardLayoutHeader;
|
|
1556
|
+
HeaderTitle: typeof DashboardLayoutHeaderTitle;
|
|
1557
|
+
HeaderActions: typeof DashboardLayoutHeaderActions;
|
|
1558
|
+
HeaderUser: typeof DashboardLayoutHeaderUser;
|
|
1559
|
+
Content: typeof DashboardLayoutContent;
|
|
1560
|
+
Breadcrumbs: typeof DashboardLayoutBreadcrumbs;
|
|
1561
|
+
MobileNav: typeof DashboardLayoutMobileNav;
|
|
1562
|
+
MobileNavItem: typeof DashboardLayoutMobileNavItem;
|
|
1563
|
+
};
|
|
1564
|
+
|
|
1565
|
+
interface SidebarContextValue {
|
|
1566
|
+
expanded: boolean;
|
|
1567
|
+
setExpanded: (expanded: boolean) => void;
|
|
1568
|
+
pinned: boolean;
|
|
1569
|
+
setPinned: (pinned: boolean) => void;
|
|
1570
|
+
activeSection: string | null;
|
|
1571
|
+
setActiveSection: (id: string | null) => void;
|
|
1572
|
+
isMobile: boolean;
|
|
1573
|
+
collapsedWidth: number;
|
|
1574
|
+
expandedWidth: number;
|
|
1575
|
+
}
|
|
1576
|
+
interface SidebarProps {
|
|
1577
|
+
children: React.ReactNode;
|
|
1578
|
+
defaultExpanded?: boolean;
|
|
1579
|
+
defaultPinned?: boolean;
|
|
1580
|
+
collapsedWidth?: number;
|
|
1581
|
+
expandedWidth?: number;
|
|
1582
|
+
className?: string;
|
|
1583
|
+
}
|
|
1584
|
+
interface SidebarHeaderProps {
|
|
1585
|
+
logo?: React.ReactNode;
|
|
1586
|
+
collapsedLogo?: React.ReactNode;
|
|
1587
|
+
title?: string;
|
|
1588
|
+
showPinButton?: boolean;
|
|
1589
|
+
className?: string;
|
|
1590
|
+
}
|
|
1591
|
+
interface SidebarNavProps {
|
|
1592
|
+
children: React.ReactNode;
|
|
1593
|
+
className?: string;
|
|
1594
|
+
}
|
|
1595
|
+
interface SidebarSectionProps {
|
|
1596
|
+
title?: string;
|
|
1597
|
+
children: React.ReactNode;
|
|
1598
|
+
className?: string;
|
|
1599
|
+
}
|
|
1600
|
+
type BadgeVariant = 'default' | 'notification' | 'success' | 'warning';
|
|
1601
|
+
interface SidebarNavItemProps {
|
|
1602
|
+
icon?: LucideIcon | React.ReactNode;
|
|
1603
|
+
label: string;
|
|
1604
|
+
href?: string;
|
|
1605
|
+
onClick?: () => void;
|
|
1606
|
+
isActive?: boolean;
|
|
1607
|
+
badge?: string | number;
|
|
1608
|
+
badgeVariant?: BadgeVariant;
|
|
1609
|
+
disabled?: boolean;
|
|
1610
|
+
className?: string;
|
|
1611
|
+
}
|
|
1612
|
+
interface SidebarNavGroupProps {
|
|
1613
|
+
icon?: LucideIcon | React.ReactNode;
|
|
1614
|
+
label: string;
|
|
1615
|
+
children: React.ReactNode;
|
|
1616
|
+
id?: string;
|
|
1617
|
+
defaultOpen?: boolean;
|
|
1618
|
+
isActive?: boolean;
|
|
1619
|
+
badge?: string | number;
|
|
1620
|
+
badgeVariant?: BadgeVariant;
|
|
1621
|
+
className?: string;
|
|
1622
|
+
}
|
|
1623
|
+
interface SidebarFooterUser {
|
|
1624
|
+
name: string;
|
|
1625
|
+
email?: string;
|
|
1626
|
+
avatar?: string;
|
|
1627
|
+
}
|
|
1628
|
+
interface SidebarFooterMenuItem {
|
|
1629
|
+
icon?: LucideIcon;
|
|
1630
|
+
label: string;
|
|
1631
|
+
onClick: () => void;
|
|
1632
|
+
variant?: 'default' | 'destructive';
|
|
1633
|
+
}
|
|
1634
|
+
interface SidebarFooterProps {
|
|
1635
|
+
user?: SidebarFooterUser;
|
|
1636
|
+
menuItems?: SidebarFooterMenuItem[];
|
|
1637
|
+
children?: React.ReactNode;
|
|
1638
|
+
className?: string;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
interface SidebarRootProps {
|
|
1642
|
+
children: React$1.ReactNode;
|
|
1643
|
+
defaultExpanded?: boolean;
|
|
1644
|
+
defaultPinned?: boolean;
|
|
1645
|
+
collapsedWidth?: number;
|
|
1646
|
+
expandedWidth?: number;
|
|
1647
|
+
}
|
|
1648
|
+
declare function SidebarRoot({ children, defaultExpanded, defaultPinned, collapsedWidth, expandedWidth, }: SidebarRootProps): react_jsx_runtime.JSX.Element;
|
|
1649
|
+
declare namespace SidebarRoot {
|
|
1650
|
+
var displayName: string;
|
|
1651
|
+
}
|
|
1652
|
+
interface SidebarAsideProps {
|
|
1653
|
+
children: React$1.ReactNode;
|
|
1654
|
+
className?: string;
|
|
1655
|
+
}
|
|
1656
|
+
declare function SidebarAside({ children, className }: SidebarAsideProps): react_jsx_runtime.JSX.Element | null;
|
|
1657
|
+
declare namespace SidebarAside {
|
|
1658
|
+
var displayName: string;
|
|
1659
|
+
}
|
|
1660
|
+
interface SidebarContentProps {
|
|
1661
|
+
children: React$1.ReactNode;
|
|
1662
|
+
className?: string;
|
|
1663
|
+
}
|
|
1664
|
+
declare function SidebarContent({ children, className }: SidebarContentProps): react_jsx_runtime.JSX.Element;
|
|
1665
|
+
declare namespace SidebarContent {
|
|
1666
|
+
var displayName: string;
|
|
1667
|
+
}
|
|
1668
|
+
declare function LegacySidebar({ children, defaultExpanded, defaultPinned, collapsedWidth, expandedWidth, className, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1669
|
+
declare namespace LegacySidebar {
|
|
1670
|
+
var displayName: string;
|
|
1671
|
+
}
|
|
1672
|
+
declare const Sidebar: typeof LegacySidebar & {
|
|
1673
|
+
Root: typeof SidebarRoot;
|
|
1674
|
+
Aside: typeof SidebarAside;
|
|
1675
|
+
Content: typeof SidebarContent;
|
|
1676
|
+
Header: React$1.NamedExoticComponent<SidebarHeaderProps>;
|
|
1677
|
+
Nav: React$1.NamedExoticComponent<SidebarNavProps>;
|
|
1678
|
+
Section: React$1.NamedExoticComponent<SidebarSectionProps>;
|
|
1679
|
+
NavItem: React$1.NamedExoticComponent<SidebarNavItemProps>;
|
|
1680
|
+
NavGroup: React$1.NamedExoticComponent<SidebarNavGroupProps>;
|
|
1681
|
+
Footer: React$1.NamedExoticComponent<SidebarFooterProps>;
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
declare function useSidebar(): SidebarContextValue;
|
|
1685
|
+
declare function useSidebarOptional(): SidebarContextValue | null;
|
|
1686
|
+
declare function useMediaQuery(query: string): boolean;
|
|
1687
|
+
|
|
1688
|
+
interface MobileNavItemConfig {
|
|
1689
|
+
icon: LucideIcon | React.ReactNode;
|
|
1690
|
+
label: string;
|
|
1691
|
+
href?: string;
|
|
1692
|
+
onClick?: () => void;
|
|
1693
|
+
isActive?: boolean;
|
|
1694
|
+
}
|
|
1695
|
+
interface MobileNavFabAction {
|
|
1696
|
+
icon: React.ReactNode;
|
|
1697
|
+
label: string;
|
|
1698
|
+
onClick: () => void;
|
|
1699
|
+
}
|
|
1700
|
+
interface MobileNavProps {
|
|
1701
|
+
items: MobileNavItemConfig[];
|
|
1702
|
+
fabAction?: MobileNavFabAction;
|
|
1703
|
+
className?: string;
|
|
1704
|
+
}
|
|
1705
|
+
interface MobileNavItemProps {
|
|
1706
|
+
icon: LucideIcon | React.ReactNode;
|
|
1707
|
+
label: string;
|
|
1708
|
+
isActive?: boolean;
|
|
1709
|
+
onClick?: () => void;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
declare const MobileNav: React$1.NamedExoticComponent<MobileNavProps>;
|
|
1713
|
+
|
|
1714
|
+
declare const MobileNavItem: React$1.NamedExoticComponent<MobileNavItemProps>;
|
|
1715
|
+
|
|
1716
|
+
interface NavbarProps {
|
|
1717
|
+
children: React$1.ReactNode;
|
|
1718
|
+
className?: string;
|
|
1719
|
+
style?: React$1.CSSProperties;
|
|
1720
|
+
}
|
|
1721
|
+
declare const Navbar: React$1.NamedExoticComponent<NavbarProps>;
|
|
1722
|
+
|
|
1723
|
+
interface ThemeToggleProps {
|
|
1724
|
+
className?: string;
|
|
1725
|
+
}
|
|
1726
|
+
declare function ThemeToggle({ className }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
|
|
1727
|
+
declare namespace ThemeToggle {
|
|
1728
|
+
var displayName: string;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
interface NotificationItem {
|
|
1732
|
+
id: string;
|
|
1733
|
+
icon?: React$1.ReactNode;
|
|
1734
|
+
title: string;
|
|
1735
|
+
description: string;
|
|
1736
|
+
time: string;
|
|
1737
|
+
isHighlighted?: boolean;
|
|
1738
|
+
}
|
|
1739
|
+
interface NavbarNotificationProps {
|
|
1740
|
+
notifications?: NotificationItem[];
|
|
1741
|
+
onMarkAllAsRead?: () => void;
|
|
1742
|
+
onViewAll?: () => void;
|
|
1743
|
+
}
|
|
1744
|
+
declare function NavbarNotification({ notifications, onMarkAllAsRead, onViewAll, }: NavbarNotificationProps): react_jsx_runtime.JSX.Element;
|
|
1745
|
+
declare namespace NavbarNotification {
|
|
1746
|
+
var displayName: string;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
interface Company {
|
|
1750
|
+
id: string;
|
|
1751
|
+
name: string;
|
|
1752
|
+
cnpj?: string;
|
|
1753
|
+
}
|
|
1754
|
+
interface NavbarCompanyProfileProps {
|
|
1755
|
+
/** Lista de empresas vinculadas */
|
|
1756
|
+
companies: Company[];
|
|
1757
|
+
/** ID da empresa ativa */
|
|
1758
|
+
activeCompanyId?: string;
|
|
1759
|
+
/** Callback quando uma empresa é selecionada */
|
|
1760
|
+
onCompanySelect?: (companyId: string) => void;
|
|
1761
|
+
/** Se está carregando as empresas */
|
|
1762
|
+
isLoading?: boolean;
|
|
1763
|
+
/** Função para formatar CNPJ (opcional) */
|
|
1764
|
+
formatCnpj?: (cnpj: string) => string;
|
|
1765
|
+
}
|
|
1766
|
+
declare function NavbarCompanyProfile({ companies, activeCompanyId, onCompanySelect, isLoading, formatCnpj, }: NavbarCompanyProfileProps): react_jsx_runtime.JSX.Element | null;
|
|
1767
|
+
declare namespace NavbarCompanyProfile {
|
|
1768
|
+
var displayName: string;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
interface UserMenuItemConfig {
|
|
1772
|
+
icon?: React$1.ReactNode;
|
|
1773
|
+
label: string;
|
|
1774
|
+
onClick?: () => void;
|
|
1775
|
+
href?: string;
|
|
1776
|
+
variant?: 'default' | 'destructive';
|
|
1777
|
+
}
|
|
1778
|
+
interface NavbarUserMenuProps {
|
|
1779
|
+
/** Nome do usuário */
|
|
1780
|
+
name: string;
|
|
1781
|
+
/** Email do usuário */
|
|
1782
|
+
email?: string;
|
|
1783
|
+
/** URL do avatar */
|
|
1784
|
+
avatarUrl?: string;
|
|
1785
|
+
/** Se está no modo colapsado (só mostra avatar) */
|
|
1786
|
+
isCollapsed?: boolean;
|
|
1787
|
+
/** Itens do menu */
|
|
1788
|
+
menuItems?: UserMenuItemConfig[];
|
|
1789
|
+
/** Children customizado para o menu */
|
|
1790
|
+
children?: React$1.ReactNode;
|
|
1791
|
+
}
|
|
1792
|
+
declare function NavbarUserMenu({ name, email, avatarUrl, isCollapsed, menuItems, children, }: NavbarUserMenuProps): react_jsx_runtime.JSX.Element;
|
|
1793
|
+
declare namespace NavbarUserMenu {
|
|
1794
|
+
var displayName: string;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
1798
|
+
separator?: React$1.ReactNode;
|
|
1799
|
+
} & React$1.RefAttributes<HTMLElement>>;
|
|
1800
|
+
declare const BreadcrumbList: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
1801
|
+
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
1802
|
+
declare const BreadcrumbLink: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
1803
|
+
asChild?: boolean;
|
|
1804
|
+
} & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
1805
|
+
declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1806
|
+
declare const BreadcrumbSeparator: {
|
|
1807
|
+
({ children, className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
1808
|
+
displayName: string;
|
|
1809
|
+
};
|
|
1810
|
+
declare const BreadcrumbEllipsis: {
|
|
1811
|
+
({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1812
|
+
displayName: string;
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1815
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1816
|
+
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1817
|
+
|
|
1818
|
+
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1819
|
+
|
|
1820
|
+
interface SectionHeaderRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1821
|
+
/**
|
|
1822
|
+
* Adds a gradient from primary color on the left side
|
|
1823
|
+
* @default true
|
|
1824
|
+
*/
|
|
1825
|
+
gradient?: boolean;
|
|
1826
|
+
/**
|
|
1827
|
+
* Adds bottom border
|
|
1828
|
+
* @default true
|
|
1829
|
+
*/
|
|
1830
|
+
bordered?: boolean;
|
|
1831
|
+
}
|
|
1832
|
+
declare function SectionHeaderRoot({ children, className, gradient, bordered, ...props }: SectionHeaderRootProps): react_jsx_runtime.JSX.Element;
|
|
1833
|
+
declare namespace SectionHeaderRoot {
|
|
1834
|
+
var displayName: string;
|
|
1835
|
+
}
|
|
1836
|
+
interface SectionHeaderIconProps {
|
|
1837
|
+
icon: LucideIcon;
|
|
1838
|
+
className?: string;
|
|
1839
|
+
}
|
|
1840
|
+
declare function SectionHeaderIcon({ icon: Icon, className }: SectionHeaderIconProps): react_jsx_runtime.JSX.Element;
|
|
1841
|
+
declare namespace SectionHeaderIcon {
|
|
1842
|
+
var displayName: string;
|
|
1843
|
+
}
|
|
1844
|
+
interface SectionHeaderContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1845
|
+
}
|
|
1846
|
+
declare function SectionHeaderContent({ children, className, ...props }: SectionHeaderContentProps): react_jsx_runtime.JSX.Element;
|
|
1847
|
+
declare namespace SectionHeaderContent {
|
|
1848
|
+
var displayName: string;
|
|
1849
|
+
}
|
|
1850
|
+
interface SectionHeaderTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1851
|
+
}
|
|
1852
|
+
declare function SectionHeaderTitle({ children, className, ...props }: SectionHeaderTitleProps): react_jsx_runtime.JSX.Element;
|
|
1853
|
+
declare namespace SectionHeaderTitle {
|
|
1854
|
+
var displayName: string;
|
|
1855
|
+
}
|
|
1856
|
+
interface SectionHeaderSubtitleProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
1857
|
+
}
|
|
1858
|
+
declare function SectionHeaderSubtitle({ children, className, ...props }: SectionHeaderSubtitleProps): react_jsx_runtime.JSX.Element;
|
|
1859
|
+
declare namespace SectionHeaderSubtitle {
|
|
1860
|
+
var displayName: string;
|
|
1861
|
+
}
|
|
1862
|
+
interface SectionHeaderActionsProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1863
|
+
}
|
|
1864
|
+
declare function SectionHeaderActions({ children, className, ...props }: SectionHeaderActionsProps): react_jsx_runtime.JSX.Element;
|
|
1865
|
+
declare namespace SectionHeaderActions {
|
|
1866
|
+
var displayName: string;
|
|
1867
|
+
}
|
|
1868
|
+
interface SectionHeaderBadgeProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
1869
|
+
variant?: 'default' | 'muted';
|
|
1870
|
+
}
|
|
1871
|
+
declare function SectionHeaderBadge({ children, className, variant, ...props }: SectionHeaderBadgeProps): react_jsx_runtime.JSX.Element;
|
|
1872
|
+
declare namespace SectionHeaderBadge {
|
|
1873
|
+
var displayName: string;
|
|
1874
|
+
}
|
|
1875
|
+
declare const SectionHeader: typeof SectionHeaderRoot & {
|
|
1876
|
+
Icon: typeof SectionHeaderIcon;
|
|
1877
|
+
Content: typeof SectionHeaderContent;
|
|
1878
|
+
Title: typeof SectionHeaderTitle;
|
|
1879
|
+
Subtitle: typeof SectionHeaderSubtitle;
|
|
1880
|
+
Actions: typeof SectionHeaderActions;
|
|
1881
|
+
Badge: typeof SectionHeaderBadge;
|
|
1882
|
+
};
|
|
1883
|
+
|
|
1884
|
+
interface PageHeaderProps {
|
|
1885
|
+
/** Título da página */
|
|
1886
|
+
title: string;
|
|
1887
|
+
/** Descrição/subtítulo */
|
|
1888
|
+
description: string;
|
|
1889
|
+
/** Ações (botões) no lado direito */
|
|
1890
|
+
children?: React$1.ReactNode;
|
|
1891
|
+
/** Custom className */
|
|
1892
|
+
className?: string;
|
|
1893
|
+
}
|
|
1894
|
+
declare const PageHeader: React$1.NamedExoticComponent<PageHeaderProps>;
|
|
1895
|
+
|
|
1896
|
+
interface KanbanItem {
|
|
1897
|
+
id: string;
|
|
1898
|
+
[key: string]: unknown;
|
|
1899
|
+
}
|
|
1900
|
+
interface KanbanColumnConfig {
|
|
1901
|
+
id: string;
|
|
1902
|
+
title: string;
|
|
1903
|
+
color?: string;
|
|
1904
|
+
headerClassName?: string;
|
|
1905
|
+
dropZoneClassName?: string;
|
|
1906
|
+
}
|
|
1907
|
+
interface KanbanBoardProps {
|
|
1908
|
+
children: ReactNode;
|
|
1909
|
+
onDragEnd?: (result: KanbanDragResult) => void;
|
|
1910
|
+
onDragStart?: (itemId: string, sourceColumnId: string) => void;
|
|
1911
|
+
className?: string;
|
|
1912
|
+
}
|
|
1913
|
+
interface KanbanColumnProps {
|
|
1914
|
+
id: string;
|
|
1915
|
+
title: string;
|
|
1916
|
+
count?: number;
|
|
1917
|
+
children?: ReactNode;
|
|
1918
|
+
className?: string;
|
|
1919
|
+
headerClassName?: string;
|
|
1920
|
+
emptyMessage?: string;
|
|
1921
|
+
/** Optional footer element (e.g., "Add Task" button) */
|
|
1922
|
+
footer?: ReactNode;
|
|
1923
|
+
/** Callback to check if a drop is allowed in this column */
|
|
1924
|
+
canDrop?: (itemId: string, sourceColumnId: string) => boolean;
|
|
1925
|
+
}
|
|
1926
|
+
interface KanbanCardProps {
|
|
1927
|
+
id: string;
|
|
1928
|
+
columnId: string;
|
|
1929
|
+
children: ReactNode;
|
|
1930
|
+
className?: string;
|
|
1931
|
+
disabled?: boolean;
|
|
1932
|
+
}
|
|
1933
|
+
interface KanbanDragResult {
|
|
1934
|
+
itemId: string;
|
|
1935
|
+
sourceColumnId: string;
|
|
1936
|
+
destinationColumnId: string;
|
|
1937
|
+
}
|
|
1938
|
+
interface KanbanContextValue {
|
|
1939
|
+
isDragging: boolean;
|
|
1940
|
+
draggedItemId: string | null;
|
|
1941
|
+
sourceColumnId: string | null;
|
|
1942
|
+
hoveredColumnId: string | null;
|
|
1943
|
+
setHoveredColumnId: (columnId: string | null) => void;
|
|
1944
|
+
canDropInColumn: (columnId: string) => boolean;
|
|
1945
|
+
registerDropValidator: (columnId: string, validator: (itemId: string, sourceColumnId: string) => boolean) => void;
|
|
1946
|
+
unregisterDropValidator: (columnId: string) => void;
|
|
1947
|
+
}
|
|
1948
|
+
interface KanbanEmptyProps {
|
|
1949
|
+
message?: string;
|
|
1950
|
+
className?: string;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
declare function KanbanBoard({ children, onDragEnd, onDragStart, className, }: KanbanBoardProps): react_jsx_runtime.JSX.Element;
|
|
1954
|
+
declare namespace KanbanBoard {
|
|
1955
|
+
var displayName: string;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
declare function KanbanColumn({ id, title, count, children, className, headerClassName, emptyMessage, footer, canDrop, }: KanbanColumnProps): react_jsx_runtime.JSX.Element;
|
|
1959
|
+
declare namespace KanbanColumn {
|
|
1960
|
+
var displayName: string;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
declare function KanbanCard({ id, columnId, children, className, disabled, }: KanbanCardProps): react_jsx_runtime.JSX.Element;
|
|
1964
|
+
declare namespace KanbanCard {
|
|
1965
|
+
var displayName: string;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* Kanban - A compound component for building Kanban boards
|
|
1970
|
+
*
|
|
1971
|
+
* @example
|
|
1972
|
+
* ```tsx
|
|
1973
|
+
* <Kanban.Board onDragEnd={handleDragEnd}>
|
|
1974
|
+
* <Kanban.Column id="pending" title="Pendente" count={3}>
|
|
1975
|
+
* <Kanban.Card id="1" columnId="pending">
|
|
1976
|
+
* <div>Card content</div>
|
|
1977
|
+
* </Kanban.Card>
|
|
1978
|
+
* </Kanban.Column>
|
|
1979
|
+
* <Kanban.Column
|
|
1980
|
+
* id="done"
|
|
1981
|
+
* title="Concluido"
|
|
1982
|
+
* canDrop={(itemId, sourceColumnId) => sourceColumnId === 'in-progress'}
|
|
1983
|
+
* >
|
|
1984
|
+
* <Kanban.Card id="2" columnId="done">
|
|
1985
|
+
* <div>Card content</div>
|
|
1986
|
+
* </Kanban.Card>
|
|
1987
|
+
* </Kanban.Column>
|
|
1988
|
+
* </Kanban.Board>
|
|
1989
|
+
* ```
|
|
1990
|
+
*/
|
|
1991
|
+
declare const Kanban: {
|
|
1992
|
+
Board: typeof KanbanBoard;
|
|
1993
|
+
Column: typeof KanbanColumn;
|
|
1994
|
+
Card: typeof KanbanCard;
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
declare function useKanban(): KanbanContextValue;
|
|
1998
|
+
declare function useKanbanOptional(): KanbanContextValue | null;
|
|
1999
|
+
|
|
2000
|
+
interface ItemCardActionsProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2001
|
+
/** Whether to show border on top */
|
|
2002
|
+
bordered?: boolean;
|
|
2003
|
+
}
|
|
2004
|
+
declare const ItemCardActions: React$1.ForwardRefExoticComponent<ItemCardActionsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2005
|
+
interface ItemCardActionButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2006
|
+
/** Whether to show chevron arrow */
|
|
2007
|
+
showArrow?: boolean;
|
|
2008
|
+
/** Loading state */
|
|
2009
|
+
loading?: boolean;
|
|
2010
|
+
/** Variant style */
|
|
2011
|
+
variant?: 'default' | 'primary' | 'secondary' | 'destructive';
|
|
2012
|
+
}
|
|
2013
|
+
declare const ItemCardActionButton: React$1.ForwardRefExoticComponent<ItemCardActionButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2014
|
+
interface ItemCardActionsRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2015
|
+
}
|
|
2016
|
+
declare const ItemCardActionsRow: React$1.ForwardRefExoticComponent<ItemCardActionsRowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2017
|
+
|
|
2018
|
+
interface ItemCardFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2019
|
+
}
|
|
2020
|
+
declare const ItemCardFooter: React$1.ForwardRefExoticComponent<ItemCardFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2021
|
+
interface ItemCardFooterItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2022
|
+
/** Small label text */
|
|
2023
|
+
label: string;
|
|
2024
|
+
/** Main value */
|
|
2025
|
+
value: React$1.ReactNode;
|
|
2026
|
+
/** Alignment */
|
|
2027
|
+
align?: 'left' | 'right';
|
|
2028
|
+
}
|
|
2029
|
+
declare const ItemCardFooterItem: React$1.ForwardRefExoticComponent<ItemCardFooterItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2030
|
+
interface ItemCardFooterDividerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2031
|
+
}
|
|
2032
|
+
declare const ItemCardFooterDivider: React$1.ForwardRefExoticComponent<ItemCardFooterDividerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2033
|
+
|
|
2034
|
+
interface ItemCardContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2035
|
+
/** Whether to use muted background */
|
|
2036
|
+
muted?: boolean;
|
|
2037
|
+
}
|
|
2038
|
+
declare const ItemCardContent: React$1.ForwardRefExoticComponent<ItemCardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2039
|
+
interface ItemCardContentItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2040
|
+
/** Label on the left */
|
|
2041
|
+
label?: React$1.ReactNode;
|
|
2042
|
+
/** Value on the right */
|
|
2043
|
+
value?: React$1.ReactNode;
|
|
2044
|
+
/** Secondary value (e.g., price) */
|
|
2045
|
+
secondary?: React$1.ReactNode;
|
|
2046
|
+
}
|
|
2047
|
+
declare const ItemCardContentItem: React$1.ForwardRefExoticComponent<ItemCardContentItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2048
|
+
interface ItemCardEmptyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2049
|
+
/** Icon to display */
|
|
2050
|
+
icon?: React$1.ReactNode;
|
|
2051
|
+
/** Message to display */
|
|
2052
|
+
message?: string;
|
|
2053
|
+
}
|
|
2054
|
+
declare const ItemCardEmpty: React$1.ForwardRefExoticComponent<ItemCardEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2055
|
+
|
|
2056
|
+
interface ItemCardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2057
|
+
/** Alignment of content */
|
|
2058
|
+
align?: 'left' | 'right' | 'between';
|
|
2059
|
+
}
|
|
2060
|
+
declare const ItemCardHeader: React$1.ForwardRefExoticComponent<ItemCardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2061
|
+
declare const itemCardIconVariants: (props?: ({
|
|
2062
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
2063
|
+
variant?: "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | "muted" | "primary" | null | undefined;
|
|
2064
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2065
|
+
interface ItemCardIconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemCardIconVariants> {
|
|
2066
|
+
/** Whether to show ripple effect */
|
|
2067
|
+
ripple?: boolean;
|
|
2068
|
+
}
|
|
2069
|
+
declare const ItemCardIcon: React$1.ForwardRefExoticComponent<ItemCardIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2070
|
+
interface ItemCardTitleGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2071
|
+
/** Alignment of text */
|
|
2072
|
+
align?: 'left' | 'right' | 'center';
|
|
2073
|
+
}
|
|
2074
|
+
declare const ItemCardTitleGroup: React$1.ForwardRefExoticComponent<ItemCardTitleGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2075
|
+
interface ItemCardTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
2076
|
+
}
|
|
2077
|
+
declare const ItemCardTitle: React$1.ForwardRefExoticComponent<ItemCardTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
2078
|
+
interface ItemCardSubtitleProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
2079
|
+
}
|
|
2080
|
+
declare const ItemCardSubtitle: React$1.ForwardRefExoticComponent<ItemCardSubtitleProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
2081
|
+
|
|
2082
|
+
declare const itemCardBadgeVariants: (props?: ({
|
|
2083
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info" | "muted" | "primary" | null | undefined;
|
|
2084
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2085
|
+
interface ItemCardBadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemCardBadgeVariants> {
|
|
2086
|
+
}
|
|
2087
|
+
declare const ItemCardBadge: React$1.ForwardRefExoticComponent<ItemCardBadgeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2088
|
+
|
|
2089
|
+
declare const itemCardVariants: (props?: ({
|
|
2090
|
+
variant?: "default" | "selected" | "muted" | null | undefined;
|
|
2091
|
+
hover?: boolean | null | undefined;
|
|
2092
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2093
|
+
interface ItemCardContextValue {
|
|
2094
|
+
isSelected?: boolean;
|
|
2095
|
+
}
|
|
2096
|
+
declare function useItemCard(): ItemCardContextValue;
|
|
2097
|
+
interface ItemCardRootProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemCardVariants> {
|
|
2098
|
+
/** Whether the card is selected */
|
|
2099
|
+
selected?: boolean;
|
|
2100
|
+
/** Whether the card is clickable */
|
|
2101
|
+
asButton?: boolean;
|
|
2102
|
+
}
|
|
2103
|
+
declare const ItemCardRoot: React$1.ForwardRefExoticComponent<ItemCardRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2104
|
+
|
|
2105
|
+
/**
|
|
2106
|
+
* ItemCard - A compound component for building item/resource cards
|
|
2107
|
+
*
|
|
2108
|
+
* Inspired by the Kit de Peças card pattern. Use for displaying items like:
|
|
2109
|
+
* - Part Kits (Kits de Peças)
|
|
2110
|
+
* - Maintenance Plans (Planejamento de Manutenção)
|
|
2111
|
+
* - Resources, Products, or any item with icon, details, and actions
|
|
2112
|
+
*
|
|
2113
|
+
* @example Basic Usage
|
|
2114
|
+
* ```tsx
|
|
2115
|
+
* <ItemCard.Root>
|
|
2116
|
+
* <ItemCard.Badge variant="primary">Publicado</ItemCard.Badge>
|
|
2117
|
+
*
|
|
2118
|
+
* <ItemCard.Header>
|
|
2119
|
+
* <ItemCard.Icon variant="primary">
|
|
2120
|
+
* <BoxIcon className="w-5 h-5" />
|
|
2121
|
+
* </ItemCard.Icon>
|
|
2122
|
+
* <ItemCard.TitleGroup>
|
|
2123
|
+
* <ItemCard.Title>Kit Cubo</ItemCard.Title>
|
|
2124
|
+
* <ItemCard.Subtitle>2 Peças</ItemCard.Subtitle>
|
|
2125
|
+
* </ItemCard.TitleGroup>
|
|
2126
|
+
* </ItemCard.Header>
|
|
2127
|
+
*
|
|
2128
|
+
* <ItemCard.Content>
|
|
2129
|
+
* <ItemCard.ContentItem label="Araldite 10min" value="2x" secondary="R$ 28,00" />
|
|
2130
|
+
* <ItemCard.ContentItem label="Aditivo Radiador 1L" value="1x" secondary="R$ 55,00" />
|
|
2131
|
+
* </ItemCard.Content>
|
|
2132
|
+
*
|
|
2133
|
+
* <ItemCard.Footer>
|
|
2134
|
+
* <ItemCard.FooterItem label="Tipo Ativo" value="Implemento" />
|
|
2135
|
+
* <ItemCard.FooterItem label="Custo Total" value="R$ 111,00" align="right" />
|
|
2136
|
+
* </ItemCard.Footer>
|
|
2137
|
+
*
|
|
2138
|
+
* <ItemCard.Actions>
|
|
2139
|
+
* <ItemCard.ActionButton>Ações</ItemCard.ActionButton>
|
|
2140
|
+
* </ItemCard.Actions>
|
|
2141
|
+
* </ItemCard.Root>
|
|
2142
|
+
* ```
|
|
2143
|
+
*
|
|
2144
|
+
* @example With Selection
|
|
2145
|
+
* ```tsx
|
|
2146
|
+
* <ItemCard.Root selected={isSelected} onClick={() => setSelected(!isSelected)}>
|
|
2147
|
+
* ...
|
|
2148
|
+
* </ItemCard.Root>
|
|
2149
|
+
* ```
|
|
2150
|
+
*
|
|
2151
|
+
* @example Maintenance Planning Card
|
|
2152
|
+
* ```tsx
|
|
2153
|
+
* <ItemCard.Root>
|
|
2154
|
+
* <ItemCard.Badge variant="warning">Crítico</ItemCard.Badge>
|
|
2155
|
+
*
|
|
2156
|
+
* <ItemCard.Header>
|
|
2157
|
+
* <ItemCard.Icon variant="warning" ripple>
|
|
2158
|
+
* <TruckIcon className="w-5 h-5" />
|
|
2159
|
+
* </ItemCard.Icon>
|
|
2160
|
+
* <ItemCard.TitleGroup>
|
|
2161
|
+
* <ItemCard.Title>ABC-1234</ItemCard.Title>
|
|
2162
|
+
* <ItemCard.Subtitle>Scania R450</ItemCard.Subtitle>
|
|
2163
|
+
* </ItemCard.TitleGroup>
|
|
2164
|
+
* </ItemCard.Header>
|
|
2165
|
+
*
|
|
2166
|
+
* <ItemCard.Content>
|
|
2167
|
+
* <ItemCard.ContentItem label="Troca de Óleo" value="500 km" />
|
|
2168
|
+
* <ItemCard.ContentItem label="Revisão Freios" value="1.200 km" />
|
|
2169
|
+
* </ItemCard.Content>
|
|
2170
|
+
*
|
|
2171
|
+
* <ItemCard.Footer>
|
|
2172
|
+
* <ItemCard.FooterItem label="Status" value="Urgente" />
|
|
2173
|
+
* <ItemCard.FooterItem label="Próxima" value="15/02/2024" align="right" />
|
|
2174
|
+
* </ItemCard.Footer>
|
|
2175
|
+
*
|
|
2176
|
+
* <ItemCard.Actions>
|
|
2177
|
+
* <ItemCard.ActionButton variant="primary">Ver Detalhes</ItemCard.ActionButton>
|
|
2178
|
+
* </ItemCard.Actions>
|
|
2179
|
+
* </ItemCard.Root>
|
|
2180
|
+
* ```
|
|
2181
|
+
*/
|
|
2182
|
+
declare const ItemCard: React$1.ForwardRefExoticComponent<ItemCardRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
2183
|
+
Badge: React$1.ForwardRefExoticComponent<ItemCardBadgeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2184
|
+
Header: React$1.ForwardRefExoticComponent<ItemCardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2185
|
+
Icon: React$1.ForwardRefExoticComponent<ItemCardIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2186
|
+
TitleGroup: React$1.ForwardRefExoticComponent<ItemCardTitleGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2187
|
+
Title: React$1.ForwardRefExoticComponent<ItemCardTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
2188
|
+
Subtitle: React$1.ForwardRefExoticComponent<ItemCardSubtitleProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
2189
|
+
Content: React$1.ForwardRefExoticComponent<ItemCardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2190
|
+
ContentItem: React$1.ForwardRefExoticComponent<ItemCardContentItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2191
|
+
Empty: React$1.ForwardRefExoticComponent<ItemCardEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2192
|
+
Footer: React$1.ForwardRefExoticComponent<ItemCardFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2193
|
+
FooterItem: React$1.ForwardRefExoticComponent<ItemCardFooterItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2194
|
+
FooterDivider: React$1.ForwardRefExoticComponent<ItemCardFooterDividerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2195
|
+
Actions: React$1.ForwardRefExoticComponent<ItemCardActionsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2196
|
+
ActionButton: React$1.ForwardRefExoticComponent<ItemCardActionButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2197
|
+
ActionsRow: React$1.ForwardRefExoticComponent<ItemCardActionsRowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* Generic validation schema interface
|
|
2202
|
+
* Compatible with Zod and other validation libraries
|
|
2203
|
+
*/
|
|
2204
|
+
interface ValidationSchema {
|
|
2205
|
+
safeParseAsync: (data: unknown) => Promise<{
|
|
2206
|
+
success: boolean;
|
|
2207
|
+
error?: {
|
|
2208
|
+
issues: Array<{
|
|
2209
|
+
path: (string | number)[];
|
|
2210
|
+
message: string;
|
|
2211
|
+
}>;
|
|
2212
|
+
};
|
|
2213
|
+
}>;
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* Configuration for a single wizard step
|
|
2217
|
+
*/
|
|
2218
|
+
interface WizardStepConfig<T extends FieldValues = FieldValues> {
|
|
2219
|
+
/** Unique identifier for the step */
|
|
2220
|
+
id: string;
|
|
2221
|
+
/** Step name used for lookups and matching with Panel */
|
|
2222
|
+
name: string;
|
|
2223
|
+
/** Display label for the step indicator */
|
|
2224
|
+
label?: string;
|
|
2225
|
+
/** Optional description shown below the label */
|
|
2226
|
+
description?: string;
|
|
2227
|
+
/** Icon component to display in step indicator */
|
|
2228
|
+
icon?: ComponentType<{
|
|
2229
|
+
className?: string;
|
|
2230
|
+
}>;
|
|
2231
|
+
/** Fields that belong to this step (for validation) */
|
|
2232
|
+
fields?: Path<T>[];
|
|
2233
|
+
/** Validation schema for per-step validation (Zod compatible) */
|
|
2234
|
+
validationSchema?: ValidationSchema;
|
|
2235
|
+
/** Whether this step can be skipped */
|
|
2236
|
+
isOptional?: boolean;
|
|
2237
|
+
/** Whether step is disabled (static or dynamic) */
|
|
2238
|
+
isDisabled?: boolean | ((data: T) => boolean);
|
|
2239
|
+
/** Whether step is hidden (static or dynamic) */
|
|
2240
|
+
isHidden?: boolean | ((data: T) => boolean);
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Props for the root Wizard component
|
|
2244
|
+
*/
|
|
2245
|
+
interface WizardProps<T extends FieldValues = FieldValues> {
|
|
2246
|
+
/** Child components (Wizard.Steps, Wizard.Content, etc.) */
|
|
2247
|
+
children: ReactNode;
|
|
2248
|
+
/** React Hook Form instance */
|
|
2249
|
+
form: UseFormReturn<T>;
|
|
2250
|
+
/** Array of step configurations */
|
|
2251
|
+
steps: WizardStepConfig<T>[];
|
|
2252
|
+
/** Initial step index (0-based) */
|
|
2253
|
+
initialStep?: number;
|
|
2254
|
+
/** Callback when step changes */
|
|
2255
|
+
onStepChange?: (step: number, direction: 'next' | 'prev' | 'jump') => void;
|
|
2256
|
+
/** Callback when wizard completes (form submit on last step) */
|
|
2257
|
+
onComplete?: (data: T) => void | Promise<void>;
|
|
2258
|
+
/** Whether to validate before advancing to next step (default: true) */
|
|
2259
|
+
validateOnNext?: boolean;
|
|
2260
|
+
/** Whether to allow jumping to any completed step (default: false) */
|
|
2261
|
+
allowJumpToStep?: boolean;
|
|
2262
|
+
/** Additional class name for the wizard container */
|
|
2263
|
+
className?: string;
|
|
2264
|
+
}
|
|
2265
|
+
/**
|
|
2266
|
+
* Context value provided by the Wizard
|
|
2267
|
+
*/
|
|
2268
|
+
interface WizardContextValue<T extends FieldValues = FieldValues> {
|
|
2269
|
+
/** Current step index (0-based) */
|
|
2270
|
+
currentStep: number;
|
|
2271
|
+
/** Total number of visible steps */
|
|
2272
|
+
totalSteps: number;
|
|
2273
|
+
/** Filtered list of visible steps */
|
|
2274
|
+
activeSteps: WizardStepConfig<T>[];
|
|
2275
|
+
/** All step configurations (including hidden) */
|
|
2276
|
+
allSteps: WizardStepConfig<T>[];
|
|
2277
|
+
/** Whether current step is the first step */
|
|
2278
|
+
isFirstStep: boolean;
|
|
2279
|
+
/** Whether current step is the last step */
|
|
2280
|
+
isLastStep: boolean;
|
|
2281
|
+
/** Progress percentage (0-100) */
|
|
2282
|
+
progress: number;
|
|
2283
|
+
/** Navigate to next step (validates current step first) */
|
|
2284
|
+
goToNextStep: () => Promise<boolean>;
|
|
2285
|
+
/** Navigate to previous step (no validation) */
|
|
2286
|
+
goToPrevStep: () => void;
|
|
2287
|
+
/** Navigate to specific step by index */
|
|
2288
|
+
goToStep: (index: number) => Promise<boolean>;
|
|
2289
|
+
/** Reset wizard to initial state */
|
|
2290
|
+
reset: () => void;
|
|
2291
|
+
/** Validate current step fields */
|
|
2292
|
+
validateCurrentStep: () => Promise<boolean>;
|
|
2293
|
+
/** Check if a step has been completed */
|
|
2294
|
+
isStepCompleted: (index: number) => boolean;
|
|
2295
|
+
/** Check if a step has errors */
|
|
2296
|
+
hasStepErrors: (index: number) => boolean;
|
|
2297
|
+
/** React Hook Form instance */
|
|
2298
|
+
form: UseFormReturn<T>;
|
|
2299
|
+
/** Current step configuration */
|
|
2300
|
+
currentStepConfig: WizardStepConfig<T>;
|
|
2301
|
+
/** Get step config by index */
|
|
2302
|
+
getStepConfig: (index: number) => WizardStepConfig<T> | undefined;
|
|
2303
|
+
/** Get step config by name */
|
|
2304
|
+
getStepByName: (name: string) => WizardStepConfig<T> | undefined;
|
|
2305
|
+
/** Get step index by name */
|
|
2306
|
+
getStepIndexByName: (name: string) => number;
|
|
2307
|
+
/** Whether jumping to steps is allowed */
|
|
2308
|
+
allowJumpToStep: boolean;
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* Props for Wizard.Steps component
|
|
2312
|
+
*/
|
|
2313
|
+
interface WizardStepsProps {
|
|
2314
|
+
/** Layout variant */
|
|
2315
|
+
variant?: 'horizontal' | 'vertical';
|
|
2316
|
+
/** Whether to show step descriptions */
|
|
2317
|
+
showDescription?: boolean;
|
|
2318
|
+
/** Whether to show step numbers instead of icons */
|
|
2319
|
+
showNumbers?: boolean;
|
|
2320
|
+
/** Size variant */
|
|
2321
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2322
|
+
/** Additional class name */
|
|
2323
|
+
className?: string;
|
|
2324
|
+
}
|
|
2325
|
+
/**
|
|
2326
|
+
* Props for individual Wizard.Step indicator
|
|
2327
|
+
*/
|
|
2328
|
+
interface WizardStepIndicatorProps {
|
|
2329
|
+
/** Step configuration */
|
|
2330
|
+
step: WizardStepConfig;
|
|
2331
|
+
/** Step index (0-based) */
|
|
2332
|
+
index: number;
|
|
2333
|
+
/** Step state */
|
|
2334
|
+
state: 'completed' | 'current' | 'pending' | 'error' | 'disabled';
|
|
2335
|
+
/** Whether to show step number */
|
|
2336
|
+
showNumber?: boolean;
|
|
2337
|
+
/** Whether to show description */
|
|
2338
|
+
showDescription?: boolean;
|
|
2339
|
+
/** Size variant */
|
|
2340
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2341
|
+
/** Whether step is clickable */
|
|
2342
|
+
isClickable?: boolean;
|
|
2343
|
+
/** Click handler */
|
|
2344
|
+
onClick?: () => void;
|
|
2345
|
+
}
|
|
2346
|
+
/**
|
|
2347
|
+
* Props for step connector line
|
|
2348
|
+
*/
|
|
2349
|
+
interface WizardStepConnectorProps {
|
|
2350
|
+
/** Whether the step before this connector is completed */
|
|
2351
|
+
isCompleted?: boolean;
|
|
2352
|
+
/** Layout variant */
|
|
2353
|
+
variant?: 'horizontal' | 'vertical';
|
|
2354
|
+
/** Additional class name */
|
|
2355
|
+
className?: string;
|
|
2356
|
+
}
|
|
2357
|
+
/**
|
|
2358
|
+
* Props for Wizard.Content component
|
|
2359
|
+
*/
|
|
2360
|
+
interface WizardContentProps {
|
|
2361
|
+
/** Panel children */
|
|
2362
|
+
children: ReactNode;
|
|
2363
|
+
/** Additional class name */
|
|
2364
|
+
className?: string;
|
|
2365
|
+
}
|
|
2366
|
+
/**
|
|
2367
|
+
* Props for Wizard.Panel component
|
|
2368
|
+
*/
|
|
2369
|
+
interface WizardPanelProps {
|
|
2370
|
+
/** Name matching a step's name */
|
|
2371
|
+
name: string;
|
|
2372
|
+
/** Panel content */
|
|
2373
|
+
children: ReactNode;
|
|
2374
|
+
/** Additional class name */
|
|
2375
|
+
className?: string;
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Props for Wizard.Navigation component
|
|
2379
|
+
*/
|
|
2380
|
+
interface WizardNavigationProps {
|
|
2381
|
+
/** Label for cancel button (default: "Cancelar") */
|
|
2382
|
+
cancelLabel?: string;
|
|
2383
|
+
/** Label for previous button (default: "Voltar") */
|
|
2384
|
+
prevLabel?: string;
|
|
2385
|
+
/** Label for next button (default: "Continuar") */
|
|
2386
|
+
nextLabel?: string;
|
|
2387
|
+
/** Label for submit button (default: "Finalizar") */
|
|
2388
|
+
submitLabel?: string;
|
|
2389
|
+
/** Label shown when loading (default: "Processando...") */
|
|
2390
|
+
loadingLabel?: string;
|
|
2391
|
+
/** Handler for cancel button */
|
|
2392
|
+
onCancel?: () => void;
|
|
2393
|
+
/** Whether to show cancel button (default: true on first step) */
|
|
2394
|
+
showCancel?: boolean;
|
|
2395
|
+
/** Whether submit button is disabled */
|
|
2396
|
+
submitDisabled?: boolean;
|
|
2397
|
+
/** Additional class name */
|
|
2398
|
+
className?: string;
|
|
2399
|
+
}
|
|
2400
|
+
/**
|
|
2401
|
+
* Props for Wizard.Progress component
|
|
2402
|
+
*/
|
|
2403
|
+
interface WizardProgressProps {
|
|
2404
|
+
/** Whether to show percentage text */
|
|
2405
|
+
showPercentage?: boolean;
|
|
2406
|
+
/** Whether to show step count (e.g., "2 de 4") */
|
|
2407
|
+
showStepCount?: boolean;
|
|
2408
|
+
/** Additional class name */
|
|
2409
|
+
className?: string;
|
|
2410
|
+
}
|
|
2411
|
+
/**
|
|
2412
|
+
* Step state type
|
|
2413
|
+
*/
|
|
2414
|
+
type StepState = 'completed' | 'current' | 'pending' | 'error' | 'disabled';
|
|
2415
|
+
|
|
2416
|
+
/**
|
|
2417
|
+
* Visual step indicators component
|
|
2418
|
+
*
|
|
2419
|
+
* Displays the wizard steps with their current states:
|
|
2420
|
+
* - Completed (checkmark, green)
|
|
2421
|
+
* - Current (highlighted, primary)
|
|
2422
|
+
* - Pending (muted)
|
|
2423
|
+
* - Error (red indicator)
|
|
2424
|
+
* - Disabled (grayed out)
|
|
2425
|
+
*
|
|
2426
|
+
* @example
|
|
2427
|
+
* ```tsx
|
|
2428
|
+
* <Wizard.Steps variant="horizontal" showDescription />
|
|
2429
|
+
* ```
|
|
2430
|
+
*/
|
|
2431
|
+
declare function WizardSteps({ variant, showDescription, showNumbers, size, className, }: WizardStepsProps): react_jsx_runtime.JSX.Element;
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* Container for wizard step panels
|
|
2435
|
+
*
|
|
2436
|
+
* Automatically renders only the panel matching the current step
|
|
2437
|
+
*
|
|
2438
|
+
* @example
|
|
2439
|
+
* ```tsx
|
|
2440
|
+
* <Wizard.Content>
|
|
2441
|
+
* <Wizard.Panel name="step1">Step 1 content</Wizard.Panel>
|
|
2442
|
+
* <Wizard.Panel name="step2">Step 2 content</Wizard.Panel>
|
|
2443
|
+
* </Wizard.Content>
|
|
2444
|
+
* ```
|
|
2445
|
+
*/
|
|
2446
|
+
declare function WizardContent({ children, className }: WizardContentProps): react_jsx_runtime.JSX.Element;
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* Individual panel for wizard step content
|
|
2450
|
+
*
|
|
2451
|
+
* The `name` prop must match a step's `name` or `id` in the wizard configuration
|
|
2452
|
+
*
|
|
2453
|
+
* @example
|
|
2454
|
+
* ```tsx
|
|
2455
|
+
* <Wizard.Panel name="personal">
|
|
2456
|
+
* <Form.Input name="name" label="Nome" required />
|
|
2457
|
+
* <Form.Input name="email" label="Email" required />
|
|
2458
|
+
* </Wizard.Panel>
|
|
2459
|
+
* ```
|
|
2460
|
+
*/
|
|
2461
|
+
declare function WizardPanel({ name, children, className }: WizardPanelProps): react_jsx_runtime.JSX.Element;
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* Navigation buttons for the wizard
|
|
2465
|
+
*
|
|
2466
|
+
* Provides:
|
|
2467
|
+
* - Cancel button (first step only by default)
|
|
2468
|
+
* - Previous button
|
|
2469
|
+
* - Next button (type="button" - does NOT submit)
|
|
2470
|
+
* - Submit button (last step only, type="submit")
|
|
2471
|
+
*
|
|
2472
|
+
* @example
|
|
2473
|
+
* ```tsx
|
|
2474
|
+
* <Wizard.Navigation
|
|
2475
|
+
* cancelLabel="Cancelar"
|
|
2476
|
+
* prevLabel="Voltar"
|
|
2477
|
+
* nextLabel="Continuar"
|
|
2478
|
+
* submitLabel="Finalizar"
|
|
2479
|
+
* onCancel={() => dialog.close()}
|
|
2480
|
+
* />
|
|
2481
|
+
* ```
|
|
2482
|
+
*/
|
|
2483
|
+
declare function WizardNavigation({ cancelLabel, prevLabel, nextLabel, submitLabel, loadingLabel, onCancel, showCancel, submitDisabled, className, }: WizardNavigationProps): react_jsx_runtime.JSX.Element;
|
|
2484
|
+
|
|
2485
|
+
/**
|
|
2486
|
+
* Progress bar component for the wizard
|
|
2487
|
+
*
|
|
2488
|
+
* Displays a visual progress indicator with optional percentage and step count
|
|
2489
|
+
*
|
|
2490
|
+
* @example
|
|
2491
|
+
* ```tsx
|
|
2492
|
+
* <Wizard.Progress showPercentage showStepCount />
|
|
2493
|
+
* ```
|
|
2494
|
+
*/
|
|
2495
|
+
declare function WizardProgress({ showPercentage, showStepCount, className, }: WizardProgressProps): react_jsx_runtime.JSX.Element;
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* Root Wizard component
|
|
2499
|
+
*
|
|
2500
|
+
* Provides multi-step form functionality with:
|
|
2501
|
+
* - Per-step validation with Zod schemas
|
|
2502
|
+
* - Visual step indicators
|
|
2503
|
+
* - Navigation controls
|
|
2504
|
+
* - Progress tracking
|
|
2505
|
+
*
|
|
2506
|
+
* @example
|
|
2507
|
+
* ```tsx
|
|
2508
|
+
* const form = useForm<FormData>({
|
|
2509
|
+
* resolver: zodResolver(schema),
|
|
2510
|
+
* mode: 'onTouched',
|
|
2511
|
+
* });
|
|
2512
|
+
*
|
|
2513
|
+
* <Wizard form={form} steps={steps} onComplete={handleSubmit}>
|
|
2514
|
+
* <Wizard.Steps />
|
|
2515
|
+
* <Wizard.Content>
|
|
2516
|
+
* <Wizard.Panel name="step1">...</Wizard.Panel>
|
|
2517
|
+
* <Wizard.Panel name="step2">...</Wizard.Panel>
|
|
2518
|
+
* </Wizard.Content>
|
|
2519
|
+
* <Wizard.Navigation onCancel={handleClose} />
|
|
2520
|
+
* </Wizard>
|
|
2521
|
+
* ```
|
|
2522
|
+
*/
|
|
2523
|
+
declare function WizardRoot<T extends FieldValues>({ children, form, steps, initialStep, onStepChange, onComplete, validateOnNext, allowJumpToStep, className, }: WizardProps<T>): react_jsx_runtime.JSX.Element;
|
|
2524
|
+
declare const Wizard: typeof WizardRoot & {
|
|
2525
|
+
/** Visual step indicators */
|
|
2526
|
+
Steps: typeof WizardSteps;
|
|
2527
|
+
/** Container for step panels */
|
|
2528
|
+
Content: typeof WizardContent;
|
|
2529
|
+
/** Individual step content panel */
|
|
2530
|
+
Panel: typeof WizardPanel;
|
|
2531
|
+
/** Navigation buttons (prev, next, submit) */
|
|
2532
|
+
Navigation: typeof WizardNavigation;
|
|
2533
|
+
/** Progress bar indicator */
|
|
2534
|
+
Progress: typeof WizardProgress;
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* Hook to access wizard context
|
|
2539
|
+
* @throws Error if used outside of Wizard component
|
|
2540
|
+
*/
|
|
2541
|
+
declare function useWizardContext<T extends FieldValues = FieldValues>(): WizardContextValue<T>;
|
|
2542
|
+
/**
|
|
2543
|
+
* Optional hook that returns undefined if outside wizard context
|
|
2544
|
+
*/
|
|
2545
|
+
declare function useWizardContextOptional<T extends FieldValues = FieldValues>(): WizardContextValue<T> | undefined;
|
|
2546
|
+
interface WizardProviderProps<T extends FieldValues> extends WizardProps<T> {
|
|
2547
|
+
children: ReactNode;
|
|
2548
|
+
}
|
|
2549
|
+
/**
|
|
2550
|
+
* Wizard context provider component
|
|
2551
|
+
*/
|
|
2552
|
+
declare function WizardProvider<T extends FieldValues>({ children, form, steps, initialStep, onStepChange, validateOnNext, allowJumpToStep, }: WizardProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
2553
|
+
|
|
2554
|
+
/**
|
|
2555
|
+
* Individual step indicator component
|
|
2556
|
+
*
|
|
2557
|
+
* Displays a step with:
|
|
2558
|
+
* - Circle with number/icon/checkmark
|
|
2559
|
+
* - Optional label
|
|
2560
|
+
* - Optional description
|
|
2561
|
+
*/
|
|
2562
|
+
declare function WizardStepIndicator({ step, index, state, showNumber, showDescription, size, isClickable, onClick, }: WizardStepIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* Connector line between wizard steps
|
|
2566
|
+
*
|
|
2567
|
+
* Changes color based on completion state:
|
|
2568
|
+
* - Completed: primary/green color
|
|
2569
|
+
* - Pending: muted gray
|
|
2570
|
+
*/
|
|
2571
|
+
declare function WizardStepConnector({ isCompleted, variant, className, }: WizardStepConnectorProps): react_jsx_runtime.JSX.Element;
|
|
2572
|
+
|
|
2573
|
+
interface FloatingBarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2574
|
+
/** Controls visibility with animation */
|
|
2575
|
+
visible?: boolean;
|
|
2576
|
+
/** Position on screen */
|
|
2577
|
+
position?: 'bottom-center' | 'bottom-left' | 'bottom-right';
|
|
2578
|
+
/** Additional classes for the outer positioning wrapper */
|
|
2579
|
+
wrapperClassName?: string;
|
|
2580
|
+
}
|
|
2581
|
+
declare const actionVariants: (props?: ({
|
|
2582
|
+
variant?: "default" | "destructive" | "ghost" | "success" | null | undefined;
|
|
2583
|
+
size?: "default" | "sm" | null | undefined;
|
|
2584
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2585
|
+
interface FloatingBarActionProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof actionVariants> {
|
|
2586
|
+
icon?: React$1.ElementType;
|
|
2587
|
+
}
|
|
2588
|
+
declare const FloatingBarAction: React$1.ForwardRefExoticComponent<FloatingBarActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2589
|
+
declare const iconActionVariants: (props?: ({
|
|
2590
|
+
variant?: "default" | "success" | "warning" | "danger" | null | undefined;
|
|
2591
|
+
size?: "default" | "sm" | null | undefined;
|
|
2592
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2593
|
+
interface FloatingBarIconActionProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconActionVariants> {
|
|
2594
|
+
icon: React$1.ElementType;
|
|
2595
|
+
/** Tooltip label (aria-label) */
|
|
2596
|
+
label: string;
|
|
2597
|
+
}
|
|
2598
|
+
declare const FloatingBarIconAction: React$1.ForwardRefExoticComponent<FloatingBarIconActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2599
|
+
interface FloatingBarDividerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2600
|
+
}
|
|
2601
|
+
declare const FloatingBarDivider: React$1.ForwardRefExoticComponent<FloatingBarDividerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2602
|
+
interface FloatingBarCounterProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
2603
|
+
count: number;
|
|
2604
|
+
/** Singular label */
|
|
2605
|
+
label?: string;
|
|
2606
|
+
/** Plural label */
|
|
2607
|
+
pluralLabel?: string;
|
|
2608
|
+
}
|
|
2609
|
+
declare const FloatingBarCounter: React$1.ForwardRefExoticComponent<FloatingBarCounterProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2610
|
+
declare const FloatingBarCompound: React$1.ForwardRefExoticComponent<FloatingBarProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
2611
|
+
Action: React$1.ForwardRefExoticComponent<FloatingBarActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2612
|
+
IconAction: React$1.ForwardRefExoticComponent<FloatingBarIconActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2613
|
+
Divider: React$1.ForwardRefExoticComponent<FloatingBarDividerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2614
|
+
Counter: React$1.ForwardRefExoticComponent<FloatingBarCounterProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2615
|
+
};
|
|
2616
|
+
|
|
2617
|
+
interface LogoProps {
|
|
2618
|
+
/** Width of the logo (number for px, string for custom units) */
|
|
2619
|
+
width?: number | string;
|
|
2620
|
+
/** Color of the logo (defaults to currentColor for theme compatibility) */
|
|
2621
|
+
color?: string;
|
|
2622
|
+
/** Additional CSS classes */
|
|
2623
|
+
className?: string;
|
|
2624
|
+
}
|
|
2625
|
+
/**
|
|
2626
|
+
* Facter brand logo - SVG component
|
|
2627
|
+
*
|
|
2628
|
+
* The logo uses currentColor by default, so it inherits the text color
|
|
2629
|
+
* from its parent. Use the `color` prop to override, or apply text color
|
|
2630
|
+
* classes via `className`.
|
|
2631
|
+
*
|
|
2632
|
+
* @example
|
|
2633
|
+
* // Basic usage (inherits color from parent)
|
|
2634
|
+
* <Logo width={32} />
|
|
2635
|
+
*
|
|
2636
|
+
* // With explicit color class
|
|
2637
|
+
* <Logo width={32} className="text-primary" />
|
|
2638
|
+
*
|
|
2639
|
+
* // With custom color
|
|
2640
|
+
* <Logo width={32} color="#ffffff" />
|
|
2641
|
+
*/
|
|
2642
|
+
declare function Logo({ width, color, className, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
2643
|
+
|
|
2644
|
+
type ColorScheme = 'green' | 'red' | 'yellow' | 'blue' | 'primary';
|
|
2645
|
+
type Variant = 'default' | 'compact' | 'mini';
|
|
2646
|
+
interface StatsCardRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2647
|
+
colorScheme?: ColorScheme;
|
|
2648
|
+
variant?: Variant;
|
|
2649
|
+
}
|
|
2650
|
+
declare function StatsCardRoot({ colorScheme, variant, className, children, ...props }: StatsCardRootProps): react_jsx_runtime.JSX.Element;
|
|
2651
|
+
interface StatsCardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2652
|
+
}
|
|
2653
|
+
declare function StatsCardHeader({ className, children, ...props }: StatsCardHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2654
|
+
interface StatsCardIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2655
|
+
icon: React$1.ComponentType<{
|
|
2656
|
+
className?: string;
|
|
2657
|
+
}>;
|
|
2658
|
+
}
|
|
2659
|
+
declare function StatsCardIcon({ icon: Icon, className, ...props }: StatsCardIconProps): react_jsx_runtime.JSX.Element;
|
|
2660
|
+
interface StatsCardTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
2661
|
+
}
|
|
2662
|
+
declare function StatsCardTitle({ className, children, ...props }: StatsCardTitleProps): react_jsx_runtime.JSX.Element;
|
|
2663
|
+
interface StatsCardSubtitleProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
2664
|
+
}
|
|
2665
|
+
declare function StatsCardSubtitle({ className, children, ...props }: StatsCardSubtitleProps): react_jsx_runtime.JSX.Element;
|
|
2666
|
+
interface StatsCardValueProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
2667
|
+
}
|
|
2668
|
+
declare function StatsCardValue({ className, children, ...props }: StatsCardValueProps): react_jsx_runtime.JSX.Element;
|
|
2669
|
+
interface StatsCardChangeProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2670
|
+
type?: 'positive' | 'negative';
|
|
2671
|
+
}
|
|
2672
|
+
declare function StatsCardChange({ type, className, children, ...props }: StatsCardChangeProps): react_jsx_runtime.JSX.Element;
|
|
2673
|
+
interface ChartDataPoint {
|
|
2674
|
+
value: number;
|
|
2675
|
+
date: string;
|
|
2676
|
+
}
|
|
2677
|
+
interface StatsCardChartProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2678
|
+
data: ChartDataPoint[];
|
|
2679
|
+
height?: number;
|
|
2680
|
+
}
|
|
2681
|
+
declare function StatsCardChart({ data, height, className, ...props }: StatsCardChartProps): react_jsx_runtime.JSX.Element | null;
|
|
2682
|
+
interface StatsCardContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2683
|
+
}
|
|
2684
|
+
declare function StatsCardContent({ className, children, ...props }: StatsCardContentProps): react_jsx_runtime.JSX.Element;
|
|
2685
|
+
interface StatsCardTodayProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
2686
|
+
label?: string;
|
|
2687
|
+
type?: 'positive' | 'negative';
|
|
2688
|
+
}
|
|
2689
|
+
declare function StatsCardToday({ label, type, className, children, ...props }: StatsCardTodayProps): react_jsx_runtime.JSX.Element;
|
|
2690
|
+
declare const StatsCard: typeof StatsCardRoot & {
|
|
2691
|
+
Header: typeof StatsCardHeader;
|
|
2692
|
+
Icon: typeof StatsCardIcon;
|
|
2693
|
+
Title: typeof StatsCardTitle;
|
|
2694
|
+
Subtitle: typeof StatsCardSubtitle;
|
|
2695
|
+
Value: typeof StatsCardValue;
|
|
2696
|
+
Change: typeof StatsCardChange;
|
|
2697
|
+
Chart: typeof StatsCardChart;
|
|
2698
|
+
Content: typeof StatsCardContent;
|
|
2699
|
+
Today: typeof StatsCardToday;
|
|
2700
|
+
};
|
|
2701
|
+
|
|
2702
|
+
interface UseAvailableHeightOptions {
|
|
2703
|
+
/** Bottom margin in pixels (default: 16) */
|
|
2704
|
+
bottomOffset?: number;
|
|
2705
|
+
/** Minimum height in pixels (default: 200) */
|
|
2706
|
+
minHeight?: number;
|
|
2707
|
+
/** Whether the calculation is enabled (default: true) */
|
|
2708
|
+
enabled?: boolean;
|
|
2709
|
+
}
|
|
2710
|
+
/**
|
|
2711
|
+
* Hook that calculates the available height from an element's top position
|
|
2712
|
+
* to the bottom of the viewport. Useful for making containers fill remaining space.
|
|
2713
|
+
*
|
|
2714
|
+
* Recalculates on window resize automatically.
|
|
2715
|
+
*
|
|
2716
|
+
* @example
|
|
2717
|
+
* ```tsx
|
|
2718
|
+
* function MyTable() {
|
|
2719
|
+
* const { ref, height } = useAvailableHeight({ bottomOffset: 32 })
|
|
2720
|
+
* return (
|
|
2721
|
+
* <div ref={ref} style={{ maxHeight: height }}>
|
|
2722
|
+
* {content}
|
|
2723
|
+
* </div>
|
|
2724
|
+
* )
|
|
2725
|
+
* }
|
|
2726
|
+
* ```
|
|
2727
|
+
*/
|
|
2728
|
+
declare function useAvailableHeight<T extends HTMLElement = HTMLDivElement>(options?: UseAvailableHeightOptions): {
|
|
2729
|
+
ref: React$1.RefObject<T | null>;
|
|
2730
|
+
height: number | undefined;
|
|
2731
|
+
style: {
|
|
2732
|
+
maxHeight: string;
|
|
2733
|
+
} | undefined;
|
|
2734
|
+
};
|
|
2735
|
+
|
|
2736
|
+
interface UseAutoPageSizeOptions {
|
|
2737
|
+
/** Height of each row in pixels (default: 49) */
|
|
2738
|
+
rowHeight?: number;
|
|
2739
|
+
/** Extra offset below the table in pixels — pagination, margins, etc (default: 64) */
|
|
2740
|
+
bottomOffset?: number;
|
|
2741
|
+
/** Minimum rows per page (default: 3) */
|
|
2742
|
+
minRows?: number;
|
|
2743
|
+
/** Maximum rows per page (default: 50) */
|
|
2744
|
+
maxRows?: number;
|
|
2745
|
+
/** Whether auto calculation is enabled (default: true) */
|
|
2746
|
+
enabled?: boolean;
|
|
2747
|
+
}
|
|
2748
|
+
/**
|
|
2749
|
+
* Hook that calculates the optimal number of rows per page
|
|
2750
|
+
* based on the available viewport height.
|
|
2751
|
+
*
|
|
2752
|
+
* The ref should point to the element where rows START (e.g. tbody container).
|
|
2753
|
+
* The hook measures from ref.top to viewport bottom, subtracts bottomOffset,
|
|
2754
|
+
* and divides by rowHeight.
|
|
2755
|
+
*
|
|
2756
|
+
* If the user manually changes page size, their choice is respected.
|
|
2757
|
+
*/
|
|
2758
|
+
declare function useAutoPageSize<T extends HTMLElement = HTMLDivElement>(options?: UseAutoPageSizeOptions): {
|
|
2759
|
+
ref: React$1.RefObject<T | null>;
|
|
2760
|
+
perPage: number;
|
|
2761
|
+
setPerPage: (size: number) => void;
|
|
2762
|
+
autoPerPage: number;
|
|
2763
|
+
isAutoSized: boolean;
|
|
2764
|
+
};
|
|
2765
|
+
|
|
2766
|
+
type Theme = 'dark' | 'light' | 'system';
|
|
2767
|
+
interface ThemeProviderProps {
|
|
2768
|
+
children: React$1.ReactNode;
|
|
2769
|
+
defaultTheme?: Theme;
|
|
2770
|
+
storageKey?: string;
|
|
2771
|
+
}
|
|
2772
|
+
interface ThemeProviderState {
|
|
2773
|
+
theme: Theme;
|
|
2774
|
+
setTheme: (theme: Theme) => void;
|
|
2775
|
+
}
|
|
2776
|
+
declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
2777
|
+
declare const useTheme: () => ThemeProviderState;
|
|
2778
|
+
|
|
2779
|
+
/**
|
|
2780
|
+
* Merge Tailwind CSS classes
|
|
2781
|
+
* Combines clsx (conditional classes) with tailwind-merge (deduplicates classes)
|
|
2782
|
+
*
|
|
2783
|
+
* @example
|
|
2784
|
+
* cn('px-4 py-2', isActive && 'bg-primary', className)
|
|
2785
|
+
*/
|
|
2786
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
2787
|
+
|
|
2788
|
+
export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, type ChartDataPoint, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FloatingBarCompound as FloatingBar, FloatingBarAction, type FloatingBarActionProps, FloatingBarCounter, type FloatingBarCounterProps, FloatingBarDivider, type FloatingBarDividerProps, FloatingBarIconAction, type FloatingBarIconActionProps, type FloatingBarProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps, FormRadioGroup, type FormRadioGroupProps, type FormRootProps, FormSelect, type FormSelectProps, FormSwitch, type FormSwitchProps, FormTextarea, type FormTextareaProps, GlobalLoaderController, Input, type InputProps, ItemCard, ItemCardActionButton, type ItemCardActionButtonProps, ItemCardActions, type ItemCardActionsProps, ItemCardActionsRow, type ItemCardActionsRowProps, ItemCardBadge, type ItemCardBadgeProps, ItemCardContent, ItemCardContentItem, type ItemCardContentItemProps, type ItemCardContentProps, ItemCardEmpty, type ItemCardEmptyProps, ItemCardFooter, ItemCardFooterDivider, type ItemCardFooterDividerProps, ItemCardFooterItem, type ItemCardFooterItemProps, type ItemCardFooterProps, ItemCardHeader, type ItemCardHeaderProps, ItemCardIcon, type ItemCardIconProps, ItemCardRoot, type ItemCardRootProps, ItemCardSubtitle, type ItemCardSubtitleProps, ItemCardTitle, ItemCardTitleGroup, type ItemCardTitleGroupProps, type ItemCardTitleProps, Kanban, type KanbanBoardProps, type KanbanCardProps, type KanbanColumnConfig, type KanbanColumnProps, type KanbanContextValue, type KanbanDragResult, type KanbanEmptyProps, type KanbanItem, Loader, type LoaderProps, LoaderProvider, Logo, type LogoProps, type MaskType, MobileNav, type MobileNavFabAction, MobileNavItem, type MobileNavItemConfig, type MobileNavItemProps, type MobileNavProps, Navbar, NavbarCompanyProfile, type NavbarCompanyProfileProps, NavbarNotification, type NavbarNotificationProps, type NavbarProps, NavbarUserMenu, type NavbarUserMenuProps, type NotificationItem, PageHeader, type PageHeaderProps, type PaginatedResponse, type PaginationMeta, type PaginationParams, Popover, PopoverContent, PopoverTrigger, type RadioOption, type RadioOptionColor, RippleBackground, type RippleBackgroundProps, RippleEffect, type RippleEffectProps, RippleWrapper, type RippleWrapperProps, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderBadge, type SectionHeaderBadgeProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderIcon, type SectionHeaderIconProps, SectionHeaderRoot, type SectionHeaderRootProps, SectionHeaderSubtitle, type SectionHeaderSubtitleProps, SectionHeaderTitle, type SectionHeaderTitleProps, Select, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectSeparator, SelectionLayout, type SelectionLayoutCardProps, type SelectionLayoutEmptyProps, type SelectionLayoutHeaderProps, type SelectionLayoutHeadlineProps, type SelectionLayoutListProps, type SelectionLayoutLogoProps, type SelectionLayoutMainProps, type SelectionLayoutProps, type SelectionLayoutSearchProps, type SelectionLayoutSidebarProps, type SelectionLayoutStatsProps, type SelectionLayoutTabProps, type SelectionLayoutTabsProps, Separator, Sidebar, type SidebarContextValue, type SidebarFooterMenuItem, type SidebarFooterProps, type SidebarFooterUser, type SidebarHeaderProps, type SidebarNavGroupProps, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, type SidebarSectionProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, type SkeletonProps, Sparkline, type SparklineColor, StatsCard, type StatsCardChangeProps, type StatsCardChartProps, type ColorScheme as StatsCardColorScheme, type StatsCardContentProps, type StatsCardHeaderProps, type StatsCardIconProps, type StatsCardRootProps, type StatsCardSubtitleProps, type StatsCardTitleProps, type StatsCardTodayProps, type StatsCardValueProps, type Variant as StatsCardVariant, type StepState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type ThemeToggleProps, Toaster, type ToasterProps, Tooltip, TooltipAction, type TooltipActionProps, TooltipActions, type TooltipActionsProps, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipDescription, type TooltipDescriptionProps, TooltipHeader, type TooltipHeaderProps, TooltipIcon, type TooltipIconProps, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTitle, type TooltipTitleProps, TooltipTrigger, type UseDataTableConfig, type UserMenuItemConfig, type ValidationSchema, Wizard, WizardContent, type WizardContentProps, type WizardContextValue, WizardNavigation, type WizardNavigationProps, WizardPanel, type WizardPanelProps, WizardProgress, type WizardProgressProps, type WizardProps, WizardProvider, type WizardStepConfig, WizardStepConnector, type WizardStepConnectorProps, WizardStepIndicator, type WizardStepIndicatorProps, WizardSteps, type WizardStepsProps, cn, itemCardBadgeVariants, itemCardIconVariants, itemCardVariants, loader, toast, useAutoPageSize, useAvailableHeight, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useItemCard, useKanban, useKanbanOptional, useLoader, useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
|