@murabei-data-science/pumpwood-ui 1.3.2 → 1.3.3
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/README.md +2 -2
- package/dist/components.d.ts +1 -1
- package/dist/components.esm.js +1 -1
- package/dist/components.js +1 -1
- package/dist/design-system.d.ts +3 -37
- package/dist/design-system.esm.js +5 -5
- package/dist/design-system.js +5 -5
- package/dist/index.css +1 -1
- package/dist/types/components/DownloadButton/index.d.ts +1 -1
- package/dist/types/design-system/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/index.d.ts +0 -1599
- package/dist/index.esm.js +0 -39
- package/dist/index.js +0 -40
- package/dist/types/components/M2MTable/index.d.ts +0 -35
- package/dist/types/design-system/M2MTable/index.d.ts +0 -35
package/dist/index.d.ts
DELETED
|
@@ -1,1599 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import { InputHTMLAttributes, ReactNode, HTMLAttributes, ComponentType, ComponentPropsWithoutRef, ImgHTMLAttributes } from 'react';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { FileWithPath, Accept } from 'react-dropzone';
|
|
7
|
-
import { LucideIcon } from 'lucide-react';
|
|
8
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
9
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
10
|
-
import { IFKSelectProps as IFKSelectProps$1 } from '@/components/FKSelect';
|
|
11
|
-
import { DayPicker } from 'react-day-picker';
|
|
12
|
-
import { Button as Button$1 } from '@/components/ui/button';
|
|
13
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
14
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
15
|
-
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
16
|
-
import { Command as Command$1 } from 'cmdk';
|
|
17
|
-
import { Dialog as Dialog$1 } from '@/components/ui/dialog';
|
|
18
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
19
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
20
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
21
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
22
|
-
import { FieldError } from 'react-hook-form';
|
|
23
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
24
|
-
|
|
25
|
-
declare const buttonVariants: (props?: ({
|
|
26
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
27
|
-
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
28
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
29
|
-
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
30
|
-
asChild?: boolean;
|
|
31
|
-
icon?: React$1.ReactNode;
|
|
32
|
-
label?: React$1.ReactNode;
|
|
33
|
-
iconPosition?: "start" | "end";
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Displays a button or a component that looks like a button.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* <Button variant="default">Click me</Button>
|
|
41
|
-
* <Button variant="outline" size="sm">Action</Button>
|
|
42
|
-
* <Button
|
|
43
|
-
* label="Criar novo lote"
|
|
44
|
-
* icon={<SquarePlus size={16} />}
|
|
45
|
-
* />
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
49
|
-
|
|
50
|
-
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
51
|
-
icon?: ReactNode;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Displays a styled input field with optional leading icon.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```tsx
|
|
58
|
-
* <Input placeholder="Enter text..." />
|
|
59
|
-
* <Input icon={<Search className="h-4 w-4" />} placeholder="Search..." />
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
63
|
-
|
|
64
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
65
|
-
|
|
66
|
-
type StackProps = HTMLAttributes<HTMLDivElement> & {
|
|
67
|
-
children: ReactNode;
|
|
68
|
-
/** The direction of the stack. Defaults to 'col'. */
|
|
69
|
-
direction?: "row" | "col";
|
|
70
|
-
/** The gap between elements. Maps to Tailwind gap utility (e.g. 4 -> gap-4). */
|
|
71
|
-
gap?: number;
|
|
72
|
-
/** Click handler. When set, the stack becomes keyboard-accessible (role="button"). */
|
|
73
|
-
onClick?: () => void;
|
|
74
|
-
className?: string;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* A layout component that arranges children in a stack (vertical or horizontal).
|
|
78
|
-
*
|
|
79
|
-
* When `onClick` is provided, the stack receives `role="button"`, `tabIndex={0}`,
|
|
80
|
-
* and responds to Enter and Space keys. Provide visible text or pass `aria-label`
|
|
81
|
-
* via props for accessibility.
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```tsx
|
|
85
|
-
* <Stack direction="row" gap={4}>
|
|
86
|
-
* <Button>Btn 1</Button>
|
|
87
|
-
* <Button>Btn 2</Button>
|
|
88
|
-
* </Stack>
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
declare function Stack({ children, onClick, direction, gap, className, ...props }: StackProps): react_jsx_runtime.JSX.Element;
|
|
92
|
-
|
|
93
|
-
type DropzoneProps = {
|
|
94
|
-
children: ReactNode;
|
|
95
|
-
maxFiles?: number;
|
|
96
|
-
maxSize?: number;
|
|
97
|
-
accept?: Record<string, string[]>;
|
|
98
|
-
onFilesAccepted: (files: FileWithPath[]) => void;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* A drag-and-drop zone for file uploads.
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* ```tsx
|
|
105
|
-
* <Dropzone onFilesAccepted={(files) => console.log(files)}>
|
|
106
|
-
* <Button>Upload</Button>
|
|
107
|
-
* </Dropzone>
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
|
-
declare function PumpwoodDropzone({ children, maxFiles, maxSize, accept, onFilesAccepted, }: DropzoneProps): react_jsx_runtime.JSX.Element;
|
|
111
|
-
|
|
112
|
-
interface RootProps {
|
|
113
|
-
open: boolean;
|
|
114
|
-
onOpenChange: (open: boolean) => void;
|
|
115
|
-
children: ReactNode;
|
|
116
|
-
}
|
|
117
|
-
declare function Root$1({ open, onOpenChange, children }: RootProps): react_jsx_runtime.JSX.Element;
|
|
118
|
-
interface ContentProps {
|
|
119
|
-
children: ReactNode;
|
|
120
|
-
className?: string;
|
|
121
|
-
}
|
|
122
|
-
declare function Content$1({ children, className }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
123
|
-
interface HeaderProps {
|
|
124
|
-
children: ReactNode;
|
|
125
|
-
}
|
|
126
|
-
declare function Header$1({ children }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
127
|
-
interface TitleProps {
|
|
128
|
-
children: ReactNode;
|
|
129
|
-
}
|
|
130
|
-
declare function Title({ children }: TitleProps): react_jsx_runtime.JSX.Element;
|
|
131
|
-
interface DescriptionProps {
|
|
132
|
-
children: ReactNode;
|
|
133
|
-
}
|
|
134
|
-
declare function Description({ children }: DescriptionProps): react_jsx_runtime.JSX.Element;
|
|
135
|
-
interface FooterProps {
|
|
136
|
-
children: ReactNode;
|
|
137
|
-
}
|
|
138
|
-
declare function Footer$1({ children }: FooterProps): react_jsx_runtime.JSX.Element;
|
|
139
|
-
interface ActionProps {
|
|
140
|
-
children: ReactNode;
|
|
141
|
-
onClick: () => void;
|
|
142
|
-
variant?: "default" | "destructive";
|
|
143
|
-
className?: string;
|
|
144
|
-
}
|
|
145
|
-
declare function Action$1({ children, onClick, variant, className, }: ActionProps): react_jsx_runtime.JSX.Element;
|
|
146
|
-
interface CancelProps {
|
|
147
|
-
children: ReactNode;
|
|
148
|
-
onClick?: () => void;
|
|
149
|
-
className?: string;
|
|
150
|
-
}
|
|
151
|
-
declare function Cancel({ children, onClick, className }: CancelProps): react_jsx_runtime.JSX.Element;
|
|
152
|
-
/**
|
|
153
|
-
* A dialog component for confirming actions (e.g., delete).
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* ```tsx
|
|
157
|
-
* <ConfirmationDialog.Root open={isOpen} onOpenChange={setIsOpen}>
|
|
158
|
-
* <ConfirmationDialog.Content>
|
|
159
|
-
* <ConfirmationDialog.Header>
|
|
160
|
-
* <ConfirmationDialog.Title>Are you sure?</ConfirmationDialog.Title>
|
|
161
|
-
* <ConfirmationDialog.Description>This action cannot be undone.</ConfirmationDialog.Description>
|
|
162
|
-
* </ConfirmationDialog.Header>
|
|
163
|
-
* <ConfirmationDialog.Footer>
|
|
164
|
-
* <ConfirmationDialog.Cancel onClick={() => setIsOpen(false)}>Cancel</ConfirmationDialog.Cancel>
|
|
165
|
-
* <ConfirmationDialog.Action onClick={handleDelete} variant="destructive">Delete</ConfirmationDialog.Action>
|
|
166
|
-
* </ConfirmationDialog.Footer>
|
|
167
|
-
* </ConfirmationDialog.Content>
|
|
168
|
-
* </ConfirmationDialog.Root>
|
|
169
|
-
* ```
|
|
170
|
-
*/
|
|
171
|
-
declare const ConfirmationDialog: {
|
|
172
|
-
Root: typeof Root$1;
|
|
173
|
-
Content: typeof Content$1;
|
|
174
|
-
Header: typeof Header$1;
|
|
175
|
-
Title: typeof Title;
|
|
176
|
-
Description: typeof Description;
|
|
177
|
-
Footer: typeof Footer$1;
|
|
178
|
-
Action: typeof Action$1;
|
|
179
|
-
Cancel: typeof Cancel;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
type TypographyProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
183
|
-
children: ReactNode;
|
|
184
|
-
className?: string;
|
|
185
|
-
};
|
|
186
|
-
declare function H1({ children, className, ...props }: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
187
|
-
declare function Muted({ children, className, ...props }: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
188
|
-
/**
|
|
189
|
-
* Typography components for consistent text styling.
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* ```tsx
|
|
193
|
-
* <Typography.H1>Main Title</Typography.H1>
|
|
194
|
-
* <Typography.Muted>Subtitle text</Typography.Muted>
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
declare const Typography: {
|
|
198
|
-
H1: typeof H1;
|
|
199
|
-
Muted: typeof Muted;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* A container for grouping related content.
|
|
204
|
-
*
|
|
205
|
-
* @example
|
|
206
|
-
* ```tsx
|
|
207
|
-
* <Card>
|
|
208
|
-
* <CardHeader>
|
|
209
|
-
* <CardTitle>Title</CardTitle>
|
|
210
|
-
* </CardHeader>
|
|
211
|
-
* <CardContent>Content</CardContent>
|
|
212
|
-
* </Card>
|
|
213
|
-
* ```
|
|
214
|
-
*/
|
|
215
|
-
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
216
|
-
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
217
|
-
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
218
|
-
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
219
|
-
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
220
|
-
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* A Card component system for displaying content in boxes.
|
|
224
|
-
*
|
|
225
|
-
* @example
|
|
226
|
-
* ```tsx
|
|
227
|
-
* <Card.Root>
|
|
228
|
-
* <Card.Header>
|
|
229
|
-
* <Card.Title>Card Title</Card.Title>
|
|
230
|
-
* <Card.Description>Card Description</Card.Description>
|
|
231
|
-
* </Card.Header>
|
|
232
|
-
* <Card.Content>
|
|
233
|
-
* <p>Card Content</p>
|
|
234
|
-
* </Card.Content>
|
|
235
|
-
* </Card.Root>
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
|
-
declare const PumpwoodCard: {
|
|
239
|
-
Root: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
240
|
-
Content: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
241
|
-
Header: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
242
|
-
Title: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
243
|
-
Description: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
declare const badgeVariants: (props?: ({
|
|
247
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
248
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
249
|
-
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Displays a badge or a component that looks like a badge.
|
|
253
|
-
*
|
|
254
|
-
* @example
|
|
255
|
-
* ```tsx
|
|
256
|
-
* <Badge>Default</Badge>
|
|
257
|
-
* <Badge variant="secondary">Secondary</Badge>
|
|
258
|
-
* ```
|
|
259
|
-
*/
|
|
260
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
261
|
-
|
|
262
|
-
declare const pumpwoodBadgeVariants: (props?: ({
|
|
263
|
-
variant?: "destructive" | "secondary" | "warning" | "primary" | "muted" | null | undefined;
|
|
264
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
265
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
266
|
-
interface PumpwoodBadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof pumpwoodBadgeVariants> {
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* A Badge component for status indicators and labels.
|
|
270
|
-
*
|
|
271
|
-
* @example
|
|
272
|
-
* ```tsx
|
|
273
|
-
* <Badge variant="primary">New</Badge>
|
|
274
|
-
* <Badge variant="destructive" size="sm">Error</Badge>
|
|
275
|
-
* ```
|
|
276
|
-
*/
|
|
277
|
-
declare function PumpwoodBadge({ className, variant, size, ...props }: PumpwoodBadgeProps): React.JSX.Element;
|
|
278
|
-
|
|
279
|
-
interface FileDropzoneProps {
|
|
280
|
-
onFileSelected: (file: File) => void;
|
|
281
|
-
onFileDeleted?: () => void;
|
|
282
|
-
acceptExtensions?: string[];
|
|
283
|
-
accept?: Accept;
|
|
284
|
-
maxSizeMB?: number;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* A specialized file dropzone with built-in preview and validation.
|
|
288
|
-
*
|
|
289
|
-
* @example
|
|
290
|
-
* ```tsx
|
|
291
|
-
* <FileDropzone
|
|
292
|
-
* onFileSelected={(file) => console.log(file)}
|
|
293
|
-
* maxSizeMB={5}
|
|
294
|
-
* acceptExtensions={['.pdf', '.docx']}
|
|
295
|
-
* />
|
|
296
|
-
* ```
|
|
297
|
-
*/
|
|
298
|
-
declare function FileDropzone({ onFileSelected, onFileDeleted, acceptExtensions, accept, maxSizeMB, }: FileDropzoneProps): react_jsx_runtime.JSX.Element;
|
|
299
|
-
|
|
300
|
-
interface IUseSidebarCollapseOptions {
|
|
301
|
-
initialCollapsed?: boolean;
|
|
302
|
-
onPersist?: (collapsed: boolean) => void;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Hook for sidebar collapse state with optional persistence callback.
|
|
306
|
-
*/
|
|
307
|
-
declare function useSidebarCollapse({ initialCollapsed, onPersist, }?: IUseSidebarCollapseOptions): {
|
|
308
|
-
isCollapsed: boolean;
|
|
309
|
-
isCollapsing: boolean;
|
|
310
|
-
expandedItems: Record<string, boolean>;
|
|
311
|
-
setExpandedItems: React$1.Dispatch<React$1.SetStateAction<Record<string, boolean>>>;
|
|
312
|
-
toggleCollapse: () => void;
|
|
313
|
-
expand: () => void;
|
|
314
|
-
handleTransitionEnd: () => void;
|
|
315
|
-
toggleExpanded: (title: string) => void;
|
|
316
|
-
setExpandedOnCollapse: () => void;
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Props for the Sidebar Root component.
|
|
321
|
-
*/
|
|
322
|
-
interface SidebarRootProps {
|
|
323
|
-
/** The content of the sidebar. */
|
|
324
|
-
children: ReactNode;
|
|
325
|
-
/** Whether the sidebar is currently collapsed. */
|
|
326
|
-
isCollapsed: boolean;
|
|
327
|
-
/** Whether the sidebar is mid-collapse transition. */
|
|
328
|
-
isCollapsing?: boolean;
|
|
329
|
-
/** Callback to toggle the collapsed state. */
|
|
330
|
-
onToggleCollapse: () => void;
|
|
331
|
-
/** Callback when width transition ends. */
|
|
332
|
-
onTransitionEnd?: () => void;
|
|
333
|
-
/** Additional CSS classes. */
|
|
334
|
-
className?: string;
|
|
335
|
-
}
|
|
336
|
-
declare function Root({ children, isCollapsed, isCollapsing, onToggleCollapse, onTransitionEnd, className, }: SidebarRootProps): react_jsx_runtime.JSX.Element;
|
|
337
|
-
/**
|
|
338
|
-
* Props for the Sidebar Header component.
|
|
339
|
-
*/
|
|
340
|
-
interface SidebarHeaderProps {
|
|
341
|
-
children: ReactNode;
|
|
342
|
-
className?: string;
|
|
343
|
-
}
|
|
344
|
-
declare function Header({ children, className }: SidebarHeaderProps): react_jsx_runtime.JSX.Element;
|
|
345
|
-
/**
|
|
346
|
-
* Props for the Sidebar Content component.
|
|
347
|
-
*/
|
|
348
|
-
interface SidebarContentProps {
|
|
349
|
-
children: ReactNode;
|
|
350
|
-
className?: string;
|
|
351
|
-
}
|
|
352
|
-
declare function Content({ children, className }: SidebarContentProps): react_jsx_runtime.JSX.Element;
|
|
353
|
-
/**
|
|
354
|
-
* Props for the Sidebar Footer component.
|
|
355
|
-
*/
|
|
356
|
-
interface SidebarFooterProps {
|
|
357
|
-
children: ReactNode;
|
|
358
|
-
className?: string;
|
|
359
|
-
}
|
|
360
|
-
declare function Footer({ children, className }: SidebarFooterProps): react_jsx_runtime.JSX.Element;
|
|
361
|
-
/**
|
|
362
|
-
* Props for the Sidebar Toggle component.
|
|
363
|
-
*/
|
|
364
|
-
interface SidebarToggleProps {
|
|
365
|
-
className?: string;
|
|
366
|
-
}
|
|
367
|
-
declare function Toggle({ className }: SidebarToggleProps): react_jsx_runtime.JSX.Element;
|
|
368
|
-
/**
|
|
369
|
-
* Props for the Sidebar Logo component.
|
|
370
|
-
*/
|
|
371
|
-
interface SidebarLogoProps {
|
|
372
|
-
src: string;
|
|
373
|
-
alt: string;
|
|
374
|
-
width?: number;
|
|
375
|
-
height?: number;
|
|
376
|
-
className?: string;
|
|
377
|
-
ImageComponent?: ComponentType<{
|
|
378
|
-
src: string;
|
|
379
|
-
alt: string;
|
|
380
|
-
width: number;
|
|
381
|
-
height: number;
|
|
382
|
-
className?: string;
|
|
383
|
-
}>;
|
|
384
|
-
}
|
|
385
|
-
declare function Logo({ src, alt, width, height, className, ImageComponent, }: SidebarLogoProps): react_jsx_runtime.JSX.Element;
|
|
386
|
-
/**
|
|
387
|
-
* Props for the Sidebar Link component.
|
|
388
|
-
*/
|
|
389
|
-
interface SidebarLinkProps {
|
|
390
|
-
icon: LucideIcon;
|
|
391
|
-
children: ReactNode;
|
|
392
|
-
href: any;
|
|
393
|
-
active?: boolean;
|
|
394
|
-
className?: string;
|
|
395
|
-
LinkComponent?: ComponentType<{
|
|
396
|
-
href: any;
|
|
397
|
-
className?: string;
|
|
398
|
-
children: ReactNode;
|
|
399
|
-
title?: string;
|
|
400
|
-
}>;
|
|
401
|
-
}
|
|
402
|
-
declare function Link({ icon: Icon, children, href, active, className, LinkComponent, }: SidebarLinkProps): react_jsx_runtime.JSX.Element;
|
|
403
|
-
interface SidebarNavGroupProps {
|
|
404
|
-
icon: LucideIcon;
|
|
405
|
-
title: string;
|
|
406
|
-
isExpanded: boolean;
|
|
407
|
-
isActive?: boolean;
|
|
408
|
-
onToggle: () => void;
|
|
409
|
-
children: ReactNode;
|
|
410
|
-
className?: string;
|
|
411
|
-
}
|
|
412
|
-
declare function NavGroup({ icon: Icon, title, isExpanded, isActive, onToggle, children, className, }: SidebarNavGroupProps): react_jsx_runtime.JSX.Element;
|
|
413
|
-
interface SidebarNavSubLinkProps {
|
|
414
|
-
title: string;
|
|
415
|
-
href: string | Record<string, unknown>;
|
|
416
|
-
active?: boolean;
|
|
417
|
-
className?: string;
|
|
418
|
-
LinkComponent?: ComponentType<{
|
|
419
|
-
href: any;
|
|
420
|
-
className?: string;
|
|
421
|
-
children: ReactNode;
|
|
422
|
-
title?: string;
|
|
423
|
-
}>;
|
|
424
|
-
}
|
|
425
|
-
declare function NavSubLink({ title, href, active, className, LinkComponent, }: SidebarNavSubLinkProps): react_jsx_runtime.JSX.Element;
|
|
426
|
-
interface SidebarActionProps {
|
|
427
|
-
icon: LucideIcon;
|
|
428
|
-
label: string;
|
|
429
|
-
onClick: () => void;
|
|
430
|
-
className?: string;
|
|
431
|
-
}
|
|
432
|
-
declare function Action({ icon: Icon, label, onClick, className }: SidebarActionProps): react_jsx_runtime.JSX.Element;
|
|
433
|
-
/**
|
|
434
|
-
* A composable Sidebar component.
|
|
435
|
-
*
|
|
436
|
-
* @example
|
|
437
|
-
* ```tsx
|
|
438
|
-
* const [collapsed, setCollapsed] = useState(false);
|
|
439
|
-
*
|
|
440
|
-
* return (
|
|
441
|
-
* <Sidebar.Root isCollapsed={collapsed} onToggleCollapse={() => setCollapsed(!collapsed)}>
|
|
442
|
-
* <Sidebar.Header>
|
|
443
|
-
* <Sidebar.Logo src="/logo.png" alt="Logo" />
|
|
444
|
-
* <Sidebar.Toggle />
|
|
445
|
-
* </Sidebar.Header>
|
|
446
|
-
* <Sidebar.Content>
|
|
447
|
-
* <Sidebar.Link icon={HomeIcon} href="/">Home</Sidebar.Link>
|
|
448
|
-
* </Sidebar.Content>
|
|
449
|
-
* <Sidebar.Footer>
|
|
450
|
-
* User Info
|
|
451
|
-
* </Sidebar.Footer>
|
|
452
|
-
* </Sidebar.Root>
|
|
453
|
-
* )
|
|
454
|
-
* ```
|
|
455
|
-
*/
|
|
456
|
-
declare const Sidebar: {
|
|
457
|
-
Root: typeof Root;
|
|
458
|
-
Header: typeof Header;
|
|
459
|
-
Content: typeof Content;
|
|
460
|
-
Footer: typeof Footer;
|
|
461
|
-
Toggle: typeof Toggle;
|
|
462
|
-
Logo: typeof Logo;
|
|
463
|
-
Link: typeof Link;
|
|
464
|
-
NavGroup: typeof NavGroup;
|
|
465
|
-
NavSubLink: typeof NavSubLink;
|
|
466
|
-
Action: typeof Action;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
interface INavigationSidebarSubLink {
|
|
470
|
-
title: string;
|
|
471
|
-
href: string;
|
|
472
|
-
}
|
|
473
|
-
interface INavigationSidebarLink {
|
|
474
|
-
title: string;
|
|
475
|
-
href?: string;
|
|
476
|
-
icon: string;
|
|
477
|
-
subItems?: INavigationSidebarSubLink[];
|
|
478
|
-
}
|
|
479
|
-
interface INavigationSidebarLogo {
|
|
480
|
-
src: string;
|
|
481
|
-
alt: string;
|
|
482
|
-
width?: number;
|
|
483
|
-
height?: number;
|
|
484
|
-
}
|
|
485
|
-
interface INavigationSidebarProps {
|
|
486
|
-
links: INavigationSidebarLink[];
|
|
487
|
-
iconMap: Record<string, LucideIcon>;
|
|
488
|
-
pathname: string;
|
|
489
|
-
isSidebarCollapsedFromQuery?: boolean;
|
|
490
|
-
logo: INavigationSidebarLogo;
|
|
491
|
-
onLogout: () => void | Promise<void>;
|
|
492
|
-
logoutIcon?: LucideIcon;
|
|
493
|
-
logoutLabel?: string;
|
|
494
|
-
LinkComponent?: ComponentType<{
|
|
495
|
-
href: any;
|
|
496
|
-
className?: string;
|
|
497
|
-
children: ReactNode;
|
|
498
|
-
title?: string;
|
|
499
|
-
}>;
|
|
500
|
-
ImageComponent?: ComponentType<{
|
|
501
|
-
src: string;
|
|
502
|
-
alt: string;
|
|
503
|
-
width: number;
|
|
504
|
-
height: number;
|
|
505
|
-
className?: string;
|
|
506
|
-
}>;
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* Configurable navigation sidebar with collapse, groups and logout.
|
|
510
|
-
*/
|
|
511
|
-
declare function NavigationSidebar({ links, iconMap, pathname, isSidebarCollapsedFromQuery, logo, onLogout, logoutIcon, logoutLabel, LinkComponent, ImageComponent, }: INavigationSidebarProps): react_jsx_runtime.JSX.Element;
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* A set of layered sections of content—known as tab panels—that are displayed one at a time.
|
|
515
|
-
*
|
|
516
|
-
* @example
|
|
517
|
-
* ```tsx
|
|
518
|
-
* <Tabs defaultValue="account">
|
|
519
|
-
* <TabsList>
|
|
520
|
-
* <TabsTrigger value="account">Account</TabsTrigger>
|
|
521
|
-
* </TabsList>
|
|
522
|
-
* <TabsContent value="account">Content</TabsContent>
|
|
523
|
-
* </Tabs>
|
|
524
|
-
* ```
|
|
525
|
-
*/
|
|
526
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
527
|
-
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
528
|
-
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
529
|
-
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
530
|
-
|
|
531
|
-
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
532
|
-
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
533
|
-
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
534
|
-
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* A placeholder component for empty states.
|
|
538
|
-
*
|
|
539
|
-
* @example
|
|
540
|
-
* ```tsx
|
|
541
|
-
* <Empty>
|
|
542
|
-
* <EmptyHeader>
|
|
543
|
-
* <EmptyTitle>No data</EmptyTitle>
|
|
544
|
-
* </EmptyHeader>
|
|
545
|
-
* </Empty>
|
|
546
|
-
* ```
|
|
547
|
-
*/
|
|
548
|
-
declare function Empty({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
549
|
-
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
550
|
-
declare const emptyMediaVariants: (props?: ({
|
|
551
|
-
variant?: "default" | "icon" | null | undefined;
|
|
552
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
553
|
-
declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime.JSX.Element;
|
|
554
|
-
declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
555
|
-
declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
556
|
-
declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
557
|
-
|
|
558
|
-
interface EmptyContainerProps {
|
|
559
|
-
title: string;
|
|
560
|
-
description: string;
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* A container to display an empty state.
|
|
564
|
-
*
|
|
565
|
-
* @example
|
|
566
|
-
* ```tsx
|
|
567
|
-
* <EmptyContainer
|
|
568
|
-
* title="No Data"
|
|
569
|
-
* description="There are no items to display at this time."
|
|
570
|
-
* />
|
|
571
|
-
* ```
|
|
572
|
-
*/
|
|
573
|
-
declare function EmptyContainer({ title, description }: EmptyContainerProps): react_jsx_runtime.JSX.Element;
|
|
574
|
-
|
|
575
|
-
interface DateRangeFilterProps {
|
|
576
|
-
startDate?: Date;
|
|
577
|
-
endDate?: Date;
|
|
578
|
-
onStartDateChange: (date: Date | undefined) => void;
|
|
579
|
-
onEndDateChange: (date: Date | undefined) => void;
|
|
580
|
-
startLabel?: string;
|
|
581
|
-
endLabel?: string;
|
|
582
|
-
className?: string;
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* A date range picker filter component.
|
|
586
|
-
*
|
|
587
|
-
* @example
|
|
588
|
-
* ```tsx
|
|
589
|
-
* <DateRangeFilter
|
|
590
|
-
* startDate={startDate}
|
|
591
|
-
* endDate={endDate}
|
|
592
|
-
* onStartDateChange={setStartDate}
|
|
593
|
-
* onEndDateChange={setEndDate}
|
|
594
|
-
* />
|
|
595
|
-
* ```
|
|
596
|
-
*/
|
|
597
|
-
declare const DateRangeFilter: ({ startDate, endDate, onStartDateChange, onEndDateChange, startLabel, endLabel, className, }: DateRangeFilterProps) => react_jsx_runtime.JSX.Element;
|
|
598
|
-
|
|
599
|
-
interface CreatedByUserFilterProps {
|
|
600
|
-
value: string | number | null;
|
|
601
|
-
onChange: (value: string | number, item?: any) => void;
|
|
602
|
-
fetcher: (params: {
|
|
603
|
-
search: string;
|
|
604
|
-
modelClass: string;
|
|
605
|
-
limit?: number;
|
|
606
|
-
offset?: number;
|
|
607
|
-
}) => Promise<any[]>;
|
|
608
|
-
className?: string;
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* A filter component to select a user who created a resource.
|
|
612
|
-
*
|
|
613
|
-
* @example
|
|
614
|
-
* ```tsx
|
|
615
|
-
* <CreatedByUserFilter
|
|
616
|
-
* fetcher={fetchUsers}
|
|
617
|
-
* value={selectedUser}
|
|
618
|
-
* onChange={setSelectedUser}
|
|
619
|
-
* />
|
|
620
|
-
* ```
|
|
621
|
-
*/
|
|
622
|
-
declare const CreatedByUserFilter: ({ value, onChange, fetcher, className, }: CreatedByUserFilterProps) => react_jsx_runtime.JSX.Element;
|
|
623
|
-
|
|
624
|
-
/**
|
|
625
|
-
* Parameters passed to the FK fetcher function.
|
|
626
|
-
*/
|
|
627
|
-
type FKFetcherParams = {
|
|
628
|
-
search: string;
|
|
629
|
-
modelClass: string;
|
|
630
|
-
labelName: string;
|
|
631
|
-
additionalFilters?: Record<string, any>;
|
|
632
|
-
fields?: string[];
|
|
633
|
-
limit?: number;
|
|
634
|
-
offset?: number;
|
|
635
|
-
};
|
|
636
|
-
/**
|
|
637
|
-
* Props for the FKSelect component.
|
|
638
|
-
*/
|
|
639
|
-
interface IFKSelectProps {
|
|
640
|
-
/** Optional id used as data-testid on the trigger. */
|
|
641
|
-
id?: string;
|
|
642
|
-
/** Function to fetch data from the API. */
|
|
643
|
-
fetcher: (params: FKFetcherParams) => Promise<any[]>;
|
|
644
|
-
/** Optional function to resolve a value not present in the list. */
|
|
645
|
-
resolveValue?: (params: {
|
|
646
|
-
modelClass: string;
|
|
647
|
-
value: string | number;
|
|
648
|
-
}) => Promise<any>;
|
|
649
|
-
/** The model class name to identify the resource. */
|
|
650
|
-
modelClass: string;
|
|
651
|
-
/** The field name to use as the display label. */
|
|
652
|
-
labelName: string;
|
|
653
|
-
/** The field name to use as the value (ID). Defaults to 'pk'. */
|
|
654
|
-
valueField?: string;
|
|
655
|
-
/** Placeholder text for the search input. */
|
|
656
|
-
placeholder?: string;
|
|
657
|
-
/** Message to show when no items are found. */
|
|
658
|
-
emptyMessage?: string;
|
|
659
|
-
/** The currently selected value. */
|
|
660
|
-
value: string | number | null;
|
|
661
|
-
/** Callback when an item is selected. */
|
|
662
|
-
onChange: (value: string | number, item?: any) => void;
|
|
663
|
-
/** Additional filters to apply to the API request. */
|
|
664
|
-
additionalFilters?: Record<string, any>;
|
|
665
|
-
/** Extra fields to include in search. */
|
|
666
|
-
fields?: string[];
|
|
667
|
-
/** Optional class names for the wrapper. */
|
|
668
|
-
className?: string;
|
|
669
|
-
/** Debounce time in ms. Defaults to 300. */
|
|
670
|
-
debounceWait?: number;
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* A foreign key select component (async combobox).
|
|
674
|
-
*
|
|
675
|
-
* @example
|
|
676
|
-
* ```tsx
|
|
677
|
-
* <FKSelect
|
|
678
|
-
* fetcher={fetchData}
|
|
679
|
-
* modelClass="User"
|
|
680
|
-
* labelName="username"
|
|
681
|
-
* value={userId}
|
|
682
|
-
* onChange={setUserId}
|
|
683
|
-
* />
|
|
684
|
-
* ```
|
|
685
|
-
*/
|
|
686
|
-
declare const FKSelect: ({ id, fetcher, resolveValue, modelClass, labelName, valueField, placeholder, emptyMessage, value, onChange, additionalFilters, fields, className, debounceWait, }: IFKSelectProps) => react_jsx_runtime.JSX.Element;
|
|
687
|
-
|
|
688
|
-
type Option = {
|
|
689
|
-
value: string;
|
|
690
|
-
label: string;
|
|
691
|
-
};
|
|
692
|
-
type SharedSelectProps = {
|
|
693
|
-
/** Optional id used as data-testid on the trigger. */
|
|
694
|
-
id?: string;
|
|
695
|
-
/** Optional class names for the select wrapper (width, layout). */
|
|
696
|
-
className?: string;
|
|
697
|
-
};
|
|
698
|
-
/**
|
|
699
|
-
* Props for the static (default) Select variant.
|
|
700
|
-
*/
|
|
701
|
-
interface IStaticSelectProps extends SharedSelectProps {
|
|
702
|
-
variant?: "static";
|
|
703
|
-
/** Placeholder text when no value is selected. */
|
|
704
|
-
placeholder: string;
|
|
705
|
-
/** Static options with value and label. */
|
|
706
|
-
options: Option[];
|
|
707
|
-
/** Controlled selected value. */
|
|
708
|
-
value?: string;
|
|
709
|
-
/** Callback when the selected value changes. */
|
|
710
|
-
onValueChange?: (value: string) => void;
|
|
711
|
-
/** Marks the field as required in HTML forms. */
|
|
712
|
-
required?: boolean;
|
|
713
|
-
/** Name attribute for HTML form submission. */
|
|
714
|
-
name?: string;
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* Props for the FK variant of Select.
|
|
718
|
-
*/
|
|
719
|
-
interface ISelectFKProps extends IFKSelectProps$1 {
|
|
720
|
-
variant: "fk";
|
|
721
|
-
}
|
|
722
|
-
/**
|
|
723
|
-
* Props for the Select component (static or FK variant).
|
|
724
|
-
*/
|
|
725
|
-
type ISelectProps = IStaticSelectProps | ISelectFKProps;
|
|
726
|
-
/**
|
|
727
|
-
* A reusable dropdown component built with shadcn/ui.
|
|
728
|
-
*
|
|
729
|
-
* Supports a static variant (Radix Select) and an FK variant (async
|
|
730
|
-
* Combobox) for foreign-key fields.
|
|
731
|
-
*
|
|
732
|
-
* @example
|
|
733
|
-
* ```tsx
|
|
734
|
-
* <Select
|
|
735
|
-
* placeholder="Choose an option"
|
|
736
|
-
* options={[
|
|
737
|
-
* { value: "a", label: "Option A" },
|
|
738
|
-
* { value: "b", label: "Option B" },
|
|
739
|
-
* ]}
|
|
740
|
-
* value={selected}
|
|
741
|
-
* onValueChange={setSelected}
|
|
742
|
-
* />
|
|
743
|
-
*
|
|
744
|
-
* <Select
|
|
745
|
-
* variant="fk"
|
|
746
|
-
* fetcher={fetchUsers}
|
|
747
|
-
* modelClass="user"
|
|
748
|
-
* labelName="username"
|
|
749
|
-
* placeholder="Select user"
|
|
750
|
-
* value={userId}
|
|
751
|
-
* onChange={(id, item) => setUserId(id)}
|
|
752
|
-
* />
|
|
753
|
-
* ```
|
|
754
|
-
*/
|
|
755
|
-
declare const Select$1: (props: ISelectProps) => react_jsx_runtime.JSX.Element;
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Props for the DatePicker component.
|
|
759
|
-
*/
|
|
760
|
-
interface IDatePickerProps {
|
|
761
|
-
/** Optional id used as data-testid on the trigger button. */
|
|
762
|
-
id?: string;
|
|
763
|
-
/** Placeholder text when no date is selected. */
|
|
764
|
-
placeholder: string;
|
|
765
|
-
/** Controlled ISO date string (empty = no selection). */
|
|
766
|
-
value?: string;
|
|
767
|
-
/** Callback when the selected date changes (ISO string or empty). */
|
|
768
|
-
onValueChange?: (value: string) => void;
|
|
769
|
-
/** Optional class names for the wrapper (width, layout). */
|
|
770
|
-
className?: string;
|
|
771
|
-
/** Day boundary when serializing to ISO. */
|
|
772
|
-
boundary?: "start" | "end";
|
|
773
|
-
/** Display format for the selected date. */
|
|
774
|
-
dateFormat?: string;
|
|
775
|
-
}
|
|
776
|
-
/**
|
|
777
|
-
* A reusable date picker built with shadcn/ui.
|
|
778
|
-
*
|
|
779
|
-
* @example
|
|
780
|
-
* ```tsx
|
|
781
|
-
* <DatePicker
|
|
782
|
-
* placeholder="Data inicial"
|
|
783
|
-
* boundary="start"
|
|
784
|
-
* value={filters.created_at__gte}
|
|
785
|
-
* onValueChange={(value) =>
|
|
786
|
-
* onFiltersChange({ target: "created_at__gte", value })
|
|
787
|
-
* }
|
|
788
|
-
* />
|
|
789
|
-
* ```
|
|
790
|
-
*/
|
|
791
|
-
declare const DatePicker: ({ id, placeholder, value, onValueChange, className, boundary, dateFormat, }: IDatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* A calendar component for date selection.
|
|
795
|
-
*
|
|
796
|
-
* @example
|
|
797
|
-
* ```tsx
|
|
798
|
-
* <Calendar
|
|
799
|
-
* mode="single"
|
|
800
|
-
* selected={date}
|
|
801
|
-
* onSelect={setDate}
|
|
802
|
-
* className="rounded-md border"
|
|
803
|
-
* />
|
|
804
|
-
* ```
|
|
805
|
-
*/
|
|
806
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
807
|
-
buttonVariant?: React$1.ComponentProps<typeof Button$1>["variant"];
|
|
808
|
-
}): react_jsx_runtime.JSX.Element;
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* A popover component for displaying rich content in a portal.
|
|
812
|
-
*
|
|
813
|
-
* @example
|
|
814
|
-
* ```tsx
|
|
815
|
-
* <Popover>
|
|
816
|
-
* <PopoverTrigger>Open</PopoverTrigger>
|
|
817
|
-
* <PopoverContent>Content</PopoverContent>
|
|
818
|
-
* </Popover>
|
|
819
|
-
* ```
|
|
820
|
-
*/
|
|
821
|
-
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
822
|
-
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
823
|
-
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
824
|
-
|
|
825
|
-
interface ComboboxItem {
|
|
826
|
-
value: any;
|
|
827
|
-
label: string;
|
|
828
|
-
}
|
|
829
|
-
interface GenericComboboxProps extends Omit<React$1.ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
830
|
-
items: ComboboxItem[];
|
|
831
|
-
value: string | null;
|
|
832
|
-
onChange: (value: string, item: ComboboxItem | null) => void;
|
|
833
|
-
placeholder?: string;
|
|
834
|
-
emptyMessage?: string;
|
|
835
|
-
className?: string;
|
|
836
|
-
searchPlaceholder?: string;
|
|
837
|
-
onSearchChange?: (search: string) => void;
|
|
838
|
-
filterLocally?: boolean;
|
|
839
|
-
loading?: boolean;
|
|
840
|
-
displayLabel?: string;
|
|
841
|
-
disabled?: boolean;
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* A searchable select component (Combobox).
|
|
845
|
-
*
|
|
846
|
-
* @example
|
|
847
|
-
* ```tsx
|
|
848
|
-
* <Combobox
|
|
849
|
-
* items={[{ value: '1', label: 'Option 1' }]}
|
|
850
|
-
* value={selectedValue}
|
|
851
|
-
* onChange={setSelectedValue}
|
|
852
|
-
* />
|
|
853
|
-
* ```
|
|
854
|
-
*/
|
|
855
|
-
declare function Combobox({ items, value, onChange, placeholder, emptyMessage, className, searchPlaceholder, onSearchChange, filterLocally, loading, displayLabel, disabled, }: GenericComboboxProps): react_jsx_runtime.JSX.Element;
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* A demonstration component combining filters and a table.
|
|
859
|
-
*
|
|
860
|
-
* @example
|
|
861
|
-
* ```tsx
|
|
862
|
-
* <CombinedFilterTable />
|
|
863
|
-
* ```
|
|
864
|
-
*/
|
|
865
|
-
declare const CombinedFilterTable: () => react_jsx_runtime.JSX.Element;
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* Column definition for Table.
|
|
869
|
-
*/
|
|
870
|
-
interface ITableColumn<T> {
|
|
871
|
-
/** Row field key used to read cell value. */
|
|
872
|
-
key: keyof T & string;
|
|
873
|
-
/** Header label. */
|
|
874
|
-
label: string;
|
|
875
|
-
/** Tailwind width classes for head and cell. */
|
|
876
|
-
width?: string;
|
|
877
|
-
/** Extra classes for the header cell. */
|
|
878
|
-
className?: string;
|
|
879
|
-
/** Extra classes for the body cell. */
|
|
880
|
-
cellClassName?: string;
|
|
881
|
-
/** Whether the column supports sorting. */
|
|
882
|
-
sortable?: boolean;
|
|
883
|
-
/** Custom cell renderer. */
|
|
884
|
-
render?: (value: unknown, row: T) => ReactNode;
|
|
885
|
-
}
|
|
886
|
-
/**
|
|
887
|
-
* Props for the Table component.
|
|
888
|
-
*/
|
|
889
|
-
interface ITableProps<T> {
|
|
890
|
-
/** Rows to display. */
|
|
891
|
-
data: T[];
|
|
892
|
-
/** Column configuration. */
|
|
893
|
-
columns: ITableColumn<T>[];
|
|
894
|
-
/** Returns a stable key for each row. */
|
|
895
|
-
getRowKey: (row: T) => string | number;
|
|
896
|
-
/** Current sort field; prefix with '-' for descending. */
|
|
897
|
-
ordering?: string;
|
|
898
|
-
/** Called when a sortable column header is clicked. */
|
|
899
|
-
onSort?: (columnKey: string) => void;
|
|
900
|
-
/** Called when a row is clicked. */
|
|
901
|
-
onRowClick?: (row: T) => void;
|
|
902
|
-
/** Whether a data request is in progress. */
|
|
903
|
-
isLoading?: boolean;
|
|
904
|
-
/** Whether more rows can be loaded. */
|
|
905
|
-
hasMore?: boolean;
|
|
906
|
-
/** Called when the load-more button is clicked. */
|
|
907
|
-
onLoadMore?: () => void;
|
|
908
|
-
/** Extra classes for the scroll wrapper. */
|
|
909
|
-
className?: string;
|
|
910
|
-
}
|
|
911
|
-
/**
|
|
912
|
-
* Generic data table with loading, empty, sort, and load-more states.
|
|
913
|
-
*
|
|
914
|
-
* @example
|
|
915
|
-
* ```tsx
|
|
916
|
-
* <Table
|
|
917
|
-
* data={items}
|
|
918
|
-
* columns={columns}
|
|
919
|
-
* getRowKey={(row) => row.pk}
|
|
920
|
-
* ordering={ordering}
|
|
921
|
-
* onSort={handleSort}
|
|
922
|
-
* isLoading={isLoading}
|
|
923
|
-
* hasMore={hasMore}
|
|
924
|
-
* onLoadMore={handleLoadMore}
|
|
925
|
-
* />
|
|
926
|
-
* ```
|
|
927
|
-
*/
|
|
928
|
-
declare function Table$1<T extends Record<string, unknown>>({ data, columns, getRowKey, ordering, onSort, onRowClick, isLoading, hasMore, onLoadMore, className, }: ITableProps<T>): react_jsx_runtime.JSX.Element;
|
|
929
|
-
|
|
930
|
-
interface ITableSkeletonColumn {
|
|
931
|
-
/** Tailwind width classes matching the table column. */
|
|
932
|
-
width?: string;
|
|
933
|
-
/** Extra classes for the skeleton cell. */
|
|
934
|
-
cellClassName?: string;
|
|
935
|
-
}
|
|
936
|
-
interface ITableSkeletonProps {
|
|
937
|
-
/** Column layout or column count. */
|
|
938
|
-
columns: ITableSkeletonColumn[] | number;
|
|
939
|
-
/** Number of skeleton rows. Defaults to 5. */
|
|
940
|
-
rows?: number;
|
|
941
|
-
}
|
|
942
|
-
/**
|
|
943
|
-
* Skeleton rows rendered inside TableBody while data is loading.
|
|
944
|
-
*
|
|
945
|
-
* @example
|
|
946
|
-
* ```tsx
|
|
947
|
-
* <TableBody>
|
|
948
|
-
* <TableSkeleton columns={columns} rows={5} />
|
|
949
|
-
* </TableBody>
|
|
950
|
-
* ```
|
|
951
|
-
*/
|
|
952
|
-
declare function TableSkeleton({ columns, rows, }: ITableSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
953
|
-
|
|
954
|
-
interface INoResultProps {
|
|
955
|
-
/** Title shown in the empty state. */
|
|
956
|
-
title?: string;
|
|
957
|
-
/** Description shown in the empty state. */
|
|
958
|
-
description?: string;
|
|
959
|
-
}
|
|
960
|
-
/**
|
|
961
|
-
* Default empty state for tables and lists with no data.
|
|
962
|
-
*
|
|
963
|
-
* @example
|
|
964
|
-
* ```tsx
|
|
965
|
-
* <NoResult />
|
|
966
|
-
* ```
|
|
967
|
-
*/
|
|
968
|
-
declare function NoResult({ title, description, }: INoResultProps): react_jsx_runtime.JSX.Element;
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* A placeholder skeleton with pulse animation.
|
|
972
|
-
*
|
|
973
|
-
* @example
|
|
974
|
-
* ```tsx
|
|
975
|
-
* <Skeleton className="h-4 w-[200px]" />
|
|
976
|
-
* ```
|
|
977
|
-
*/
|
|
978
|
-
declare function Skeleton({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
979
|
-
|
|
980
|
-
/**
|
|
981
|
-
* A modal dialog component.
|
|
982
|
-
*
|
|
983
|
-
* @example
|
|
984
|
-
* ```tsx
|
|
985
|
-
* <Dialog>
|
|
986
|
-
* <DialogTrigger>Open</DialogTrigger>
|
|
987
|
-
* <DialogContent>
|
|
988
|
-
* <DialogTitle>Title</DialogTitle>
|
|
989
|
-
* <DialogDescription>Desc</DialogDescription>
|
|
990
|
-
* </DialogContent>
|
|
991
|
-
* </Dialog>
|
|
992
|
-
* ```
|
|
993
|
-
*/
|
|
994
|
-
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
995
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
996
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
997
|
-
showCloseButton?: boolean;
|
|
998
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
999
|
-
declare const DialogHeader: {
|
|
1000
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1001
|
-
displayName: string;
|
|
1002
|
-
};
|
|
1003
|
-
declare const DialogFooter: {
|
|
1004
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1005
|
-
displayName: string;
|
|
1006
|
-
};
|
|
1007
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1008
|
-
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1009
|
-
|
|
1010
|
-
/**
|
|
1011
|
-
* A modal dialog that interrupts the user with important content and expects a response.
|
|
1012
|
-
*
|
|
1013
|
-
* @example
|
|
1014
|
-
* ```tsx
|
|
1015
|
-
* <AlertDialog>
|
|
1016
|
-
* <AlertDialogTrigger>Open</AlertDialogTrigger>
|
|
1017
|
-
* <AlertDialogContent>
|
|
1018
|
-
* <AlertDialogHeader>
|
|
1019
|
-
* <AlertDialogTitle>Are you sure?</AlertDialogTitle>
|
|
1020
|
-
* </AlertDialogHeader>
|
|
1021
|
-
* <AlertDialogFooter>
|
|
1022
|
-
* <AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
1023
|
-
* <AlertDialogAction>Continue</AlertDialogAction>
|
|
1024
|
-
* </AlertDialogFooter>
|
|
1025
|
-
* </AlertDialogContent>
|
|
1026
|
-
* </AlertDialog>
|
|
1027
|
-
* ```
|
|
1028
|
-
*/
|
|
1029
|
-
declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1030
|
-
declare function AlertDialogTrigger({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1031
|
-
declare function AlertDialogPortal({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
1032
|
-
declare function AlertDialogOverlay({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
1033
|
-
declare function AlertDialogContent({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1034
|
-
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1035
|
-
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1036
|
-
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
1037
|
-
declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
1038
|
-
declare function AlertDialogAction({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
|
|
1039
|
-
declare function AlertDialogCancel({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* A command palette component.
|
|
1043
|
-
*
|
|
1044
|
-
* @example
|
|
1045
|
-
* ```tsx
|
|
1046
|
-
* <Command>
|
|
1047
|
-
* <CommandInput placeholder="Type a command..." />
|
|
1048
|
-
* <CommandList>
|
|
1049
|
-
* <CommandItem>Action</CommandItem>
|
|
1050
|
-
* </CommandList>
|
|
1051
|
-
* </Command>
|
|
1052
|
-
* ```
|
|
1053
|
-
*/
|
|
1054
|
-
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
1055
|
-
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React$1.ComponentProps<typeof Dialog$1> & {
|
|
1056
|
-
title?: string;
|
|
1057
|
-
description?: string;
|
|
1058
|
-
className?: string;
|
|
1059
|
-
showCloseButton?: boolean;
|
|
1060
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1061
|
-
declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
1062
|
-
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
1063
|
-
declare function CommandEmpty({ ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
1064
|
-
declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
1065
|
-
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
1066
|
-
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
1067
|
-
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1068
|
-
|
|
1069
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1070
|
-
|
|
1071
|
-
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1072
|
-
|
|
1073
|
-
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
1074
|
-
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
1075
|
-
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1076
|
-
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1077
|
-
|
|
1078
|
-
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
1079
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
1080
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1081
|
-
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1082
|
-
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1083
|
-
|
|
1084
|
-
declare function Breadcrumb({ ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
1085
|
-
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<"ol">): react_jsx_runtime.JSX.Element;
|
|
1086
|
-
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
1087
|
-
declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<"a"> & {
|
|
1088
|
-
asChild?: boolean;
|
|
1089
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1090
|
-
declare function BreadcrumbPage({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1091
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
1092
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1093
|
-
|
|
1094
|
-
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
1095
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1096
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1097
|
-
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
1098
|
-
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
1099
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1100
|
-
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1101
|
-
inset?: boolean;
|
|
1102
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1103
|
-
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1104
|
-
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1105
|
-
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1106
|
-
inset?: boolean;
|
|
1107
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1108
|
-
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1109
|
-
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1110
|
-
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1111
|
-
inset?: boolean;
|
|
1112
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1113
|
-
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1114
|
-
declare const DropdownMenuShortcut: {
|
|
1115
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
1116
|
-
displayName: string;
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
declare const Radio: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
1120
|
-
|
|
1121
|
-
/**
|
|
1122
|
-
* Spinner component
|
|
1123
|
-
* @param size the size of the spinner in REM
|
|
1124
|
-
* @returns
|
|
1125
|
-
*/
|
|
1126
|
-
declare const Spinner: ({ size }: {
|
|
1127
|
-
size?: number;
|
|
1128
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1129
|
-
|
|
1130
|
-
declare const ErrorMessage: ({ error }: {
|
|
1131
|
-
error: FieldError | undefined;
|
|
1132
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1133
|
-
|
|
1134
|
-
declare const ErrorToastContent: ({ message, error, }: {
|
|
1135
|
-
message: string;
|
|
1136
|
-
error: string;
|
|
1137
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1138
|
-
|
|
1139
|
-
declare function KeyValueContent({ data }: {
|
|
1140
|
-
data: Record<string, any>;
|
|
1141
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1142
|
-
|
|
1143
|
-
interface IAlertWithIconProps {
|
|
1144
|
-
icon: ReactNode;
|
|
1145
|
-
title: string;
|
|
1146
|
-
description: string;
|
|
1147
|
-
variant?: "default" | "destructive";
|
|
1148
|
-
className?: string;
|
|
1149
|
-
}
|
|
1150
|
-
/**
|
|
1151
|
-
* Alert with icon, title and description.
|
|
1152
|
-
*/
|
|
1153
|
-
declare function AlertWithIcon({ icon, title, description, variant, className, }: IAlertWithIconProps): react_jsx_runtime.JSX.Element;
|
|
1154
|
-
|
|
1155
|
-
interface ILoginCardProps {
|
|
1156
|
-
onLogin: (credentials: {
|
|
1157
|
-
username: string;
|
|
1158
|
-
password: string;
|
|
1159
|
-
}) => Promise<{
|
|
1160
|
-
error?: string | null;
|
|
1161
|
-
}>;
|
|
1162
|
-
onSuccess?: () => void;
|
|
1163
|
-
onError?: (message: string, error: string) => void;
|
|
1164
|
-
sessionExpired?: boolean;
|
|
1165
|
-
sessionExpiredAlert?: {
|
|
1166
|
-
icon: ReactNode;
|
|
1167
|
-
title?: string;
|
|
1168
|
-
description?: string;
|
|
1169
|
-
};
|
|
1170
|
-
forgotPasswordHref?: string;
|
|
1171
|
-
forgotPasswordLabel?: string;
|
|
1172
|
-
usernameLabel?: string;
|
|
1173
|
-
passwordLabel?: string;
|
|
1174
|
-
submitLabel?: string;
|
|
1175
|
-
loginErrorMessage?: string;
|
|
1176
|
-
LinkComponent?: ComponentType<{
|
|
1177
|
-
href: string;
|
|
1178
|
-
className?: string;
|
|
1179
|
-
children: ReactNode;
|
|
1180
|
-
}>;
|
|
1181
|
-
className?: string;
|
|
1182
|
-
}
|
|
1183
|
-
/**
|
|
1184
|
-
* Username and password login card.
|
|
1185
|
-
*/
|
|
1186
|
-
declare function LoginCard({ onLogin, onSuccess, onError, sessionExpired, sessionExpiredAlert, forgotPasswordHref, forgotPasswordLabel, usernameLabel, passwordLabel, submitLabel, loginErrorMessage, LinkComponent, className, }: ILoginCardProps): react_jsx_runtime.JSX.Element;
|
|
1187
|
-
|
|
1188
|
-
interface ILoginCardSSOProps {
|
|
1189
|
-
onLoginSSO: (email: string) => Promise<{
|
|
1190
|
-
redirect_url?: string | null;
|
|
1191
|
-
error?: string | null;
|
|
1192
|
-
}>;
|
|
1193
|
-
onRedirect?: (url: string) => void;
|
|
1194
|
-
onError?: (message: string, error: string) => void;
|
|
1195
|
-
sessionExpired?: boolean;
|
|
1196
|
-
sessionExpiredAlert?: {
|
|
1197
|
-
icon: ReactNode;
|
|
1198
|
-
title?: string;
|
|
1199
|
-
description?: string;
|
|
1200
|
-
};
|
|
1201
|
-
forgotPasswordHref?: string;
|
|
1202
|
-
forgotPasswordLabel?: string;
|
|
1203
|
-
emailLabel?: string;
|
|
1204
|
-
submitLabel?: string;
|
|
1205
|
-
unauthorizedMessage?: string;
|
|
1206
|
-
genericErrorMessage?: string;
|
|
1207
|
-
LinkComponent?: ComponentType<{
|
|
1208
|
-
href: string;
|
|
1209
|
-
className?: string;
|
|
1210
|
-
children: ReactNode;
|
|
1211
|
-
}>;
|
|
1212
|
-
className?: string;
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* SSO email login card.
|
|
1216
|
-
*/
|
|
1217
|
-
declare function LoginCardSSO({ onLoginSSO, onRedirect, onError, sessionExpired, sessionExpiredAlert, forgotPasswordHref, forgotPasswordLabel, emailLabel, submitLabel, unauthorizedMessage, genericErrorMessage, LinkComponent, className, }: ILoginCardSSOProps): react_jsx_runtime.JSX.Element;
|
|
1218
|
-
|
|
1219
|
-
interface IAuthenticatedViewProps {
|
|
1220
|
-
redirectHref: string;
|
|
1221
|
-
redirectDelayMs?: number;
|
|
1222
|
-
onRedirect?: (href: string) => void;
|
|
1223
|
-
title?: string;
|
|
1224
|
-
fallbackLinkLabel?: string;
|
|
1225
|
-
LinkComponent?: ComponentType<{
|
|
1226
|
-
href: string;
|
|
1227
|
-
className?: string;
|
|
1228
|
-
children: ReactNode;
|
|
1229
|
-
}>;
|
|
1230
|
-
className?: string;
|
|
1231
|
-
}
|
|
1232
|
-
/**
|
|
1233
|
-
* OAuth success screen with auto-redirect.
|
|
1234
|
-
*/
|
|
1235
|
-
declare function AuthenticatedView({ redirectHref, redirectDelayMs, onRedirect, title, fallbackLinkLabel, LinkComponent, className, }: IAuthenticatedViewProps): react_jsx_runtime.JSX.Element;
|
|
1236
|
-
|
|
1237
|
-
interface INotAuthenticatedViewProps {
|
|
1238
|
-
error: unknown;
|
|
1239
|
-
loginHref: string;
|
|
1240
|
-
title?: string;
|
|
1241
|
-
description?: string;
|
|
1242
|
-
fallbackLinkLabel?: string;
|
|
1243
|
-
errorDetailsLabel?: string;
|
|
1244
|
-
copyLabel?: string;
|
|
1245
|
-
copiedLabel?: string;
|
|
1246
|
-
LinkComponent?: ComponentType<{
|
|
1247
|
-
href: string;
|
|
1248
|
-
className?: string;
|
|
1249
|
-
children: ReactNode;
|
|
1250
|
-
}>;
|
|
1251
|
-
className?: string;
|
|
1252
|
-
}
|
|
1253
|
-
/**
|
|
1254
|
-
* OAuth error screen with expandable error details.
|
|
1255
|
-
*/
|
|
1256
|
-
declare function NotAuthenticatedView({ error, loginHref, title, description, fallbackLinkLabel, errorDetailsLabel, copyLabel, copiedLabel, LinkComponent, className, }: INotAuthenticatedViewProps): react_jsx_runtime.JSX.Element;
|
|
1257
|
-
|
|
1258
|
-
interface IDetailSection {
|
|
1259
|
-
title: string;
|
|
1260
|
-
fields: string[];
|
|
1261
|
-
cols?: 2 | 3 | 4;
|
|
1262
|
-
isFullWidth?: boolean;
|
|
1263
|
-
}
|
|
1264
|
-
interface IDetailFieldConfig {
|
|
1265
|
-
exclude?: string[];
|
|
1266
|
-
labels?: Record<string, string>;
|
|
1267
|
-
formatters?: Record<string, (value: unknown) => string>;
|
|
1268
|
-
sections?: IDetailSection[];
|
|
1269
|
-
}
|
|
1270
|
-
interface IFormatDetailValueOptions {
|
|
1271
|
-
statusLabels?: Record<string, string>;
|
|
1272
|
-
formatDate?: (date: string) => string;
|
|
1273
|
-
booleanLabels?: {
|
|
1274
|
-
true: string;
|
|
1275
|
-
false: string;
|
|
1276
|
-
};
|
|
1277
|
-
}
|
|
1278
|
-
declare const formatDetailLabel: (key: string, labels?: Record<string, string>) => string;
|
|
1279
|
-
declare const formatDetailValue: (value: unknown, key: string, options?: IFormatDetailValueOptions) => string;
|
|
1280
|
-
declare const getDetailFieldValue: (data: Record<string, unknown>, key: string) => unknown;
|
|
1281
|
-
declare const FULL_WIDTH_DETAIL_FIELDS: string[];
|
|
1282
|
-
|
|
1283
|
-
interface IAutoDetailContentProps {
|
|
1284
|
-
data: Record<string, any>;
|
|
1285
|
-
config?: IDetailFieldConfig;
|
|
1286
|
-
formatters?: {
|
|
1287
|
-
key: string;
|
|
1288
|
-
formatter: (value: unknown) => string;
|
|
1289
|
-
}[];
|
|
1290
|
-
wrapperElements?: {
|
|
1291
|
-
keys: string[];
|
|
1292
|
-
element: (props: {
|
|
1293
|
-
key: string;
|
|
1294
|
-
label: string;
|
|
1295
|
-
fieldValue: unknown;
|
|
1296
|
-
isFullWidth: boolean;
|
|
1297
|
-
data: Record<string, any>;
|
|
1298
|
-
}) => ReactNode;
|
|
1299
|
-
}[];
|
|
1300
|
-
statusLabels?: Record<string, string>;
|
|
1301
|
-
formatDate?: (date: string) => string;
|
|
1302
|
-
}
|
|
1303
|
-
/**
|
|
1304
|
-
* Auto-render entity detail fields in configurable sections.
|
|
1305
|
-
*/
|
|
1306
|
-
declare function AutoDetailContent({ data, config, formatters, wrapperElements, statusLabels, formatDate, }: IAutoDetailContentProps): react_jsx_runtime.JSX.Element;
|
|
1307
|
-
|
|
1308
|
-
interface IDetailPageSection {
|
|
1309
|
-
id?: string;
|
|
1310
|
-
title: string;
|
|
1311
|
-
content: ReactNode;
|
|
1312
|
-
defaultOpen?: boolean;
|
|
1313
|
-
}
|
|
1314
|
-
interface IDetailPageProps {
|
|
1315
|
-
title: string;
|
|
1316
|
-
titleAddon?: ReactNode;
|
|
1317
|
-
isLoading?: boolean;
|
|
1318
|
-
error?: Error | null;
|
|
1319
|
-
onBack?: () => void;
|
|
1320
|
-
actions?: ReactNode;
|
|
1321
|
-
sections?: IDetailPageSection[];
|
|
1322
|
-
children?: ReactNode;
|
|
1323
|
-
loadingComponent?: ReactNode;
|
|
1324
|
-
errorComponent?: ReactNode;
|
|
1325
|
-
backButtonLabel?: string;
|
|
1326
|
-
}
|
|
1327
|
-
/**
|
|
1328
|
-
* Reusable detail page shell with header, loading/error states and sections.
|
|
1329
|
-
*/
|
|
1330
|
-
declare function DetailPage({ title, titleAddon, isLoading, error, onBack, actions, sections, children, loadingComponent, errorComponent, backButtonLabel, }: IDetailPageProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element;
|
|
1331
|
-
|
|
1332
|
-
type DynamicListFn = (modelClass: string, filterDict: Record<string, unknown>, searchFields?: string[]) => Promise<[
|
|
1333
|
-
Record<string, unknown>[] | null,
|
|
1334
|
-
{
|
|
1335
|
-
message: string;
|
|
1336
|
-
} | null
|
|
1337
|
-
]>;
|
|
1338
|
-
type FKSelectFetcherParams = {
|
|
1339
|
-
search: string;
|
|
1340
|
-
modelClass: string;
|
|
1341
|
-
labelName: string;
|
|
1342
|
-
additionalFilters?: Record<string, unknown>;
|
|
1343
|
-
fields?: string[];
|
|
1344
|
-
};
|
|
1345
|
-
type CreateFKSelectFetcherOptions = {
|
|
1346
|
-
additionalFilters?: Record<string, unknown>;
|
|
1347
|
-
fields?: string[];
|
|
1348
|
-
};
|
|
1349
|
-
/**
|
|
1350
|
-
* Fetches FK select options via an injected dynamicList function.
|
|
1351
|
-
*/
|
|
1352
|
-
declare const fkSelectFetcher: (dynamicList: DynamicListFn, { search, modelClass, labelName, additionalFilters, fields, }: FKSelectFetcherParams) => Promise<Record<string, unknown>[]>;
|
|
1353
|
-
/**
|
|
1354
|
-
* Creates a stable fetcher function for FKSelect.
|
|
1355
|
-
*/
|
|
1356
|
-
declare const createFKSelectFetcher: (dynamicList: DynamicListFn, labelName: string, options?: CreateFKSelectFetcherOptions) => (params: FKFetcherParams) => Promise<Record<string, unknown>[]>;
|
|
1357
|
-
|
|
1358
|
-
interface IMarkdownEditorProps {
|
|
1359
|
-
value: string;
|
|
1360
|
-
onChange: (value: string) => void;
|
|
1361
|
-
placeholder?: string;
|
|
1362
|
-
error?: string;
|
|
1363
|
-
disabled?: boolean;
|
|
1364
|
-
className?: string;
|
|
1365
|
-
}
|
|
1366
|
-
/**
|
|
1367
|
-
* WYSIWYG markdown editor wrapper around Toast UI Editor.
|
|
1368
|
-
*/
|
|
1369
|
-
declare function MarkdownEditor({ value, onChange, placeholder, error, disabled, className, }: IMarkdownEditorProps): react_jsx_runtime.JSX.Element;
|
|
1370
|
-
|
|
1371
|
-
declare function Loading(): react_jsx_runtime.JSX.Element;
|
|
1372
|
-
|
|
1373
|
-
interface ErrorBoundaryProps {
|
|
1374
|
-
children: ReactNode;
|
|
1375
|
-
hasError: boolean;
|
|
1376
|
-
message?: string;
|
|
1377
|
-
className?: string;
|
|
1378
|
-
}
|
|
1379
|
-
declare const ErrorBoundary: ({ children, hasError, message, }: ErrorBoundaryProps) => react_jsx_runtime.JSX.Element;
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1382
|
-
* DeleteDialog - Confirmation dialog component for delete documents.
|
|
1383
|
-
*/
|
|
1384
|
-
declare const DeleteDialog: ({ openDialog, setOpenDialog, handleDelete, count, }: {
|
|
1385
|
-
openDialog: boolean;
|
|
1386
|
-
setOpenDialog: (value: boolean) => void;
|
|
1387
|
-
handleDelete: () => void;
|
|
1388
|
-
count?: number;
|
|
1389
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1390
|
-
|
|
1391
|
-
declare const ClearButton: ({ handleClear }: {
|
|
1392
|
-
handleClear: () => void;
|
|
1393
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1394
|
-
|
|
1395
|
-
type TooltipComponentProps = {
|
|
1396
|
-
trigger: React.ReactNode;
|
|
1397
|
-
children: React.ReactNode;
|
|
1398
|
-
className?: string;
|
|
1399
|
-
triggerClassName?: string;
|
|
1400
|
-
};
|
|
1401
|
-
declare const TooltipComponent: ({ triggerClassName, className, trigger, children, }: TooltipComponentProps) => react_jsx_runtime.JSX.Element;
|
|
1402
|
-
|
|
1403
|
-
type PaginationProps = {
|
|
1404
|
-
startRecord: number;
|
|
1405
|
-
endRecord: number;
|
|
1406
|
-
hasValidSearchValues: boolean;
|
|
1407
|
-
tabCount: number;
|
|
1408
|
-
disabledLoadBackButton: boolean;
|
|
1409
|
-
disabledLoadMoreButton: boolean;
|
|
1410
|
-
loadBack: () => void;
|
|
1411
|
-
loadMore: () => void;
|
|
1412
|
-
};
|
|
1413
|
-
declare const Pagination: ({ startRecord, endRecord, hasValidSearchValues, tabCount, disabledLoadBackButton, disabledLoadMoreButton, loadBack, loadMore, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
1414
|
-
|
|
1415
|
-
interface ITagItem {
|
|
1416
|
-
key: string;
|
|
1417
|
-
value: string;
|
|
1418
|
-
}
|
|
1419
|
-
interface ITagInputProps {
|
|
1420
|
-
value: ITagItem[];
|
|
1421
|
-
onChange: (tags: ITagItem[]) => void;
|
|
1422
|
-
keyPlaceholder?: string;
|
|
1423
|
-
valuePlaceholder?: string;
|
|
1424
|
-
disabled?: boolean;
|
|
1425
|
-
}
|
|
1426
|
-
declare function TagInput({ value, onChange, keyPlaceholder, valuePlaceholder, disabled, }: ITagInputProps): react_jsx_runtime.JSX.Element;
|
|
1427
|
-
|
|
1428
|
-
/**
|
|
1429
|
-
* Interface representing a form field specification
|
|
1430
|
-
*/
|
|
1431
|
-
interface IFormField {
|
|
1432
|
-
type: "text" | "number" | "password" | "email" | "textarea" | "checkbox" | "select" | "date" | "key-value";
|
|
1433
|
-
label?: string;
|
|
1434
|
-
placeholder?: string;
|
|
1435
|
-
required?: boolean;
|
|
1436
|
-
disabled?: boolean;
|
|
1437
|
-
options?: {
|
|
1438
|
-
label: string;
|
|
1439
|
-
value: string;
|
|
1440
|
-
}[];
|
|
1441
|
-
className?: string;
|
|
1442
|
-
cols?: 1 | 2 | 3 | 4;
|
|
1443
|
-
}
|
|
1444
|
-
/**
|
|
1445
|
-
* Custom section grouping configuration similar to AutoDetailContent
|
|
1446
|
-
*/
|
|
1447
|
-
interface IFormSection {
|
|
1448
|
-
title: string;
|
|
1449
|
-
fields: string[];
|
|
1450
|
-
cols?: 1 | 2 | 3 | 4;
|
|
1451
|
-
isFullWidth?: boolean;
|
|
1452
|
-
}
|
|
1453
|
-
interface IAutoFormContentProps {
|
|
1454
|
-
fields: Record<string, IFormField>;
|
|
1455
|
-
values?: Record<string, any>;
|
|
1456
|
-
defaultValue?: Record<string, any>;
|
|
1457
|
-
onChange?: (values: Record<string, any>) => void;
|
|
1458
|
-
errors?: Record<string, string>;
|
|
1459
|
-
config?: {
|
|
1460
|
-
exclude?: string[];
|
|
1461
|
-
labels?: Record<string, string>;
|
|
1462
|
-
sections?: IFormSection[];
|
|
1463
|
-
};
|
|
1464
|
-
customFields?: Record<string, (props: {
|
|
1465
|
-
value: any;
|
|
1466
|
-
onChange: (val: any) => void;
|
|
1467
|
-
error?: string;
|
|
1468
|
-
disabled?: boolean;
|
|
1469
|
-
fieldKey: string;
|
|
1470
|
-
}) => React$1.ReactNode>;
|
|
1471
|
-
}
|
|
1472
|
-
declare function AutoFormContent({ fields, values: externalValues, defaultValue, onChange, errors, config, customFields, }: IAutoFormContentProps): react_jsx_runtime.JSX.Element;
|
|
1473
|
-
|
|
1474
|
-
type M2MListFn = (modelClass: string, filterDict: Record<string, any>, fields: string[]) => Promise<[
|
|
1475
|
-
Record<string, any>[] | null,
|
|
1476
|
-
{
|
|
1477
|
-
message?: string;
|
|
1478
|
-
} | null
|
|
1479
|
-
]>;
|
|
1480
|
-
declare const M2MCreateDialog: ({ open, onOpenChange, targetModelClass, relationName, handleCreateNew, mutate, fkFetcher, }: {
|
|
1481
|
-
open: boolean;
|
|
1482
|
-
onOpenChange: (open: boolean) => void;
|
|
1483
|
-
targetModelClass: string;
|
|
1484
|
-
relationName: string;
|
|
1485
|
-
handleCreateNew: (id: string) => void;
|
|
1486
|
-
mutate: () => void;
|
|
1487
|
-
fkFetcher: (params: FKFetcherParams) => Promise<any[]>;
|
|
1488
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1489
|
-
interface IM2MTableProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
1490
|
-
modelClass: string;
|
|
1491
|
-
targetModelClass: string;
|
|
1492
|
-
filterDict: Record<string, any>;
|
|
1493
|
-
targetField: string;
|
|
1494
|
-
relationName: string;
|
|
1495
|
-
displayFields: {
|
|
1496
|
-
name: string;
|
|
1497
|
-
field: string;
|
|
1498
|
-
}[];
|
|
1499
|
-
handleCreateNew: (id: string) => void;
|
|
1500
|
-
handleDeleteItem: (id: string) => void;
|
|
1501
|
-
fields: string[];
|
|
1502
|
-
listFn: M2MListFn;
|
|
1503
|
-
fkFetcher: (params: FKFetcherParams) => Promise<any[]>;
|
|
1504
|
-
}
|
|
1505
|
-
declare const M2MTable: ({ modelClass, targetModelClass, targetField, filterDict, relationName, fields, displayFields, handleCreateNew, handleDeleteItem, listFn, fkFetcher, }: IM2MTableProps) => react_jsx_runtime.JSX.Element;
|
|
1506
|
-
|
|
1507
|
-
type ExpectedFile = {
|
|
1508
|
-
file: string;
|
|
1509
|
-
};
|
|
1510
|
-
type RetrieveFileFn = (modelClass: string, fileId: number) => Promise<[
|
|
1511
|
-
{
|
|
1512
|
-
data: number[];
|
|
1513
|
-
contentType: string;
|
|
1514
|
-
} | null,
|
|
1515
|
-
{
|
|
1516
|
-
message: string;
|
|
1517
|
-
} | null
|
|
1518
|
-
]>;
|
|
1519
|
-
interface IDownloadButtonProps<T extends ExpectedFile> {
|
|
1520
|
-
item: T;
|
|
1521
|
-
propertyName: keyof T;
|
|
1522
|
-
modelClass: string;
|
|
1523
|
-
retrieveFile: RetrieveFileFn;
|
|
1524
|
-
}
|
|
1525
|
-
declare const DownloadButton: <T extends ExpectedFile>({ item, modelClass, propertyName, retrieveFile, }: IDownloadButtonProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1526
|
-
|
|
1527
|
-
interface IMultiSelectOption {
|
|
1528
|
-
label: string;
|
|
1529
|
-
value: string;
|
|
1530
|
-
}
|
|
1531
|
-
interface IMultiSelectDropdownProps {
|
|
1532
|
-
options: IMultiSelectOption[];
|
|
1533
|
-
selected: string[];
|
|
1534
|
-
onChange: (selected: string[]) => void;
|
|
1535
|
-
placeholder?: string;
|
|
1536
|
-
className?: string;
|
|
1537
|
-
maxDisplay?: number;
|
|
1538
|
-
}
|
|
1539
|
-
declare function MultiSelectDropdown({ options, selected, onChange, placeholder, className, maxDisplay, }: IMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
|
|
1540
|
-
|
|
1541
|
-
interface ICustomBreadcrumbProps {
|
|
1542
|
-
label: string;
|
|
1543
|
-
steps?: string[];
|
|
1544
|
-
}
|
|
1545
|
-
declare function CustomBreadcrumb({ label, steps, }: ICustomBreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
1546
|
-
|
|
1547
|
-
type FileTypeCategory = "image" | "video" | "pdf" | "doc" | "excel" | "ppt" | "other";
|
|
1548
|
-
interface FilePreviewProps {
|
|
1549
|
-
fileUrl: string;
|
|
1550
|
-
fileName: string;
|
|
1551
|
-
isLoading?: boolean;
|
|
1552
|
-
getFileType: (fileName: string) => FileTypeCategory;
|
|
1553
|
-
ImageComponent?: ComponentType<ImgHTMLAttributes<HTMLImageElement> & {
|
|
1554
|
-
fill?: boolean;
|
|
1555
|
-
}>;
|
|
1556
|
-
}
|
|
1557
|
-
declare const FilePreview: ({ fileUrl, fileName, isLoading, getFileType, ImageComponent, }: FilePreviewProps) => react_jsx_runtime.JSX.Element;
|
|
1558
|
-
|
|
1559
|
-
/**
|
|
1560
|
-
* A responsive table component.
|
|
1561
|
-
*
|
|
1562
|
-
* @example
|
|
1563
|
-
* ```tsx
|
|
1564
|
-
* <Table>
|
|
1565
|
-
* <TableHeader>
|
|
1566
|
-
* <TableRow>
|
|
1567
|
-
* <TableHead>Header</TableHead>
|
|
1568
|
-
* </TableRow>
|
|
1569
|
-
* </TableHeader>
|
|
1570
|
-
* <TableBody>
|
|
1571
|
-
* <TableRow>
|
|
1572
|
-
* <TableCell>Cell</TableCell>
|
|
1573
|
-
* </TableRow>
|
|
1574
|
-
* </TableBody>
|
|
1575
|
-
* </Table>
|
|
1576
|
-
* ```
|
|
1577
|
-
*/
|
|
1578
|
-
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
1579
|
-
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1580
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1581
|
-
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1582
|
-
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
1583
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1584
|
-
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1585
|
-
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
1586
|
-
|
|
1587
|
-
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
1588
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1589
|
-
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1590
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1591
|
-
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1592
|
-
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1593
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1594
|
-
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1595
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1596
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1597
|
-
|
|
1598
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertWithIcon, AuthenticatedView, AutoDetailContent, AutoFormContent, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClearButton, CombinedFilterTable, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, CreatedByUserFilter, CustomBreadcrumb, DatePicker, DateRangeFilter, DeleteDialog, DetailPage, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DownloadButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PumpwoodDropzone as Dropzone, Empty, EmptyContainer, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, ErrorBoundary, ErrorMessage, ErrorToastContent, FKSelect, FULL_WIDTH_DETAIL_FIELDS, FileDropzone, FilePreview, Input, KeyValueContent, Label, Loading, LoginCard, LoginCardSSO, M2MCreateDialog, M2MTable, MarkdownEditor, MultiSelectDropdown, NavigationSidebar, NoResult, NotAuthenticatedView, Pagination, Popover, PopoverContent, PopoverTrigger, PumpwoodBadge, PumpwoodCard, Radio, Select$1 as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, Select as SelectPrimitive, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, Skeleton, Spinner, Stack, Table$1 as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, Table as TablePrimitive, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TagInput, Textarea, Tooltip, TooltipComponent, TooltipContent, TooltipProvider, TooltipTrigger, Typography, badgeVariants, createFKSelectFetcher, fkSelectFetcher, formatDetailLabel, formatDetailValue, getDetailFieldValue, pumpwoodBadgeVariants, useSidebarCollapse };
|
|
1599
|
-
export type { ComboboxItem, CreateFKSelectFetcherOptions, DynamicListFn, FKFetcherParams, FKSelectFetcherParams, FileTypeCategory, IAlertWithIconProps, IAuthenticatedViewProps, IAutoDetailContentProps, IAutoFormContentProps, IDatePickerProps, IDetailFieldConfig, IDetailPageProps, IDetailPageSection, IDetailSection, IFKSelectProps, IFormField, IFormSection, IFormatDetailValueOptions, ILoginCardProps, ILoginCardSSOProps, IMarkdownEditorProps, IMultiSelectOption, INavigationSidebarLink, INavigationSidebarLogo, INavigationSidebarProps, INavigationSidebarSubLink, INotAuthenticatedViewProps, ISelectFKProps, ISelectProps, IStaticSelectProps, ITableColumn, ITableProps, ITagItem, IUseSidebarCollapseOptions, M2MListFn, RetrieveFileFn };
|