@postxl/ui-components 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +143 -135
- package/dist/index.js +37 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from "clsx";
|
|
2
2
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
+
import * as React$43 from "react";
|
|
3
4
|
import * as React$42 from "react";
|
|
4
5
|
import * as React$41 from "react";
|
|
5
6
|
import * as React$40 from "react";
|
|
@@ -10,8 +11,8 @@ import * as React$36 from "react";
|
|
|
10
11
|
import * as React$35 from "react";
|
|
11
12
|
import * as React$34 from "react";
|
|
12
13
|
import * as React$33 from "react";
|
|
13
|
-
import * as React$32 from "react";
|
|
14
14
|
import * as react17 from "react";
|
|
15
|
+
import * as React$32 from "react";
|
|
15
16
|
import * as React$31 from "react";
|
|
16
17
|
import * as React$30 from "react";
|
|
17
18
|
import * as React$29 from "react";
|
|
@@ -163,50 +164,50 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
163
164
|
|
|
164
165
|
//#endregion
|
|
165
166
|
//#region src/accordion/accordion.d.ts
|
|
166
|
-
declare const Accordion: React$
|
|
167
|
-
declare const AccordionItem: React$
|
|
168
|
-
declare const AccordionTrigger: React$
|
|
169
|
-
declare const AccordionContent: React$
|
|
167
|
+
declare const Accordion: React$43.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$43.RefAttributes<HTMLDivElement>>;
|
|
168
|
+
declare const AccordionItem: React$43.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$43.RefAttributes<HTMLDivElement>, "ref"> & React$43.RefAttributes<HTMLDivElement>>;
|
|
169
|
+
declare const AccordionTrigger: React$43.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$43.RefAttributes<HTMLButtonElement>, "ref"> & React$43.RefAttributes<HTMLButtonElement>>;
|
|
170
|
+
declare const AccordionContent: React$43.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$43.RefAttributes<HTMLDivElement>, "ref"> & React$43.RefAttributes<HTMLDivElement>>;
|
|
170
171
|
|
|
171
172
|
//#endregion
|
|
172
173
|
//#region src/alert/alert.d.ts
|
|
173
|
-
declare const Alert: React$
|
|
174
|
+
declare const Alert: React$42.ForwardRefExoticComponent<React$42.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
174
175
|
variant?: "default" | "destructive" | null | undefined;
|
|
175
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string> & React$
|
|
176
|
-
declare const AlertTitle: React$
|
|
177
|
-
declare const AlertDescription: React$
|
|
176
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string> & React$42.RefAttributes<HTMLDivElement>>;
|
|
177
|
+
declare const AlertTitle: React$42.ForwardRefExoticComponent<React$42.HTMLAttributes<HTMLHeadingElement> & React$42.RefAttributes<HTMLParagraphElement>>;
|
|
178
|
+
declare const AlertDescription: React$42.ForwardRefExoticComponent<React$42.HTMLAttributes<HTMLParagraphElement> & React$42.RefAttributes<HTMLParagraphElement>>;
|
|
178
179
|
|
|
179
180
|
//#endregion
|
|
180
181
|
//#region src/alert-dialog/alert-dialog.d.ts
|
|
181
|
-
declare const AlertDialog: React$
|
|
182
|
-
declare const AlertDialogTrigger: React$
|
|
183
|
-
declare const AlertDialogPortal: React$
|
|
184
|
-
declare const AlertDialogOverlay: React$
|
|
185
|
-
declare const AlertDialogContent: React$
|
|
182
|
+
declare const AlertDialog: React$41.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
183
|
+
declare const AlertDialogTrigger: React$41.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$41.RefAttributes<HTMLButtonElement>>;
|
|
184
|
+
declare const AlertDialogPortal: React$41.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
185
|
+
declare const AlertDialogOverlay: React$41.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$41.RefAttributes<HTMLDivElement>, "ref"> & React$41.RefAttributes<HTMLDivElement>>;
|
|
186
|
+
declare const AlertDialogContent: React$41.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$41.RefAttributes<HTMLDivElement>, "ref"> & React$41.RefAttributes<HTMLDivElement>>;
|
|
186
187
|
declare const AlertDialogHeader: {
|
|
187
188
|
({
|
|
188
189
|
className,
|
|
189
190
|
...props
|
|
190
|
-
}: React$
|
|
191
|
+
}: React$41.HTMLAttributes<HTMLDivElement>): react_jsx_runtime1.JSX.Element;
|
|
191
192
|
displayName: string;
|
|
192
193
|
};
|
|
193
194
|
declare const AlertDialogFooter: {
|
|
194
195
|
({
|
|
195
196
|
className,
|
|
196
197
|
...props
|
|
197
|
-
}: React$
|
|
198
|
+
}: React$41.HTMLAttributes<HTMLDivElement>): react_jsx_runtime1.JSX.Element;
|
|
198
199
|
displayName: string;
|
|
199
200
|
};
|
|
200
|
-
declare const AlertDialogTitle: React$
|
|
201
|
-
declare const AlertDialogDescription: React$
|
|
202
|
-
declare const AlertDialogAction: React$
|
|
203
|
-
declare const AlertDialogCancel: React$
|
|
201
|
+
declare const AlertDialogTitle: React$41.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$41.RefAttributes<HTMLHeadingElement>, "ref"> & React$41.RefAttributes<HTMLHeadingElement>>;
|
|
202
|
+
declare const AlertDialogDescription: React$41.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$41.RefAttributes<HTMLParagraphElement>, "ref"> & React$41.RefAttributes<HTMLParagraphElement>>;
|
|
203
|
+
declare const AlertDialogAction: React$41.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$41.RefAttributes<HTMLButtonElement>, "ref"> & React$41.RefAttributes<HTMLButtonElement>>;
|
|
204
|
+
declare const AlertDialogCancel: React$41.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$41.RefAttributes<HTMLButtonElement>, "ref"> & React$41.RefAttributes<HTMLButtonElement>>;
|
|
204
205
|
|
|
205
206
|
//#endregion
|
|
206
207
|
//#region src/avatar/avatar.d.ts
|
|
207
|
-
declare const Avatar: React$
|
|
208
|
-
declare const AvatarImage: React$
|
|
209
|
-
declare const AvatarFallback: React$
|
|
208
|
+
declare const Avatar: React$40.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$40.RefAttributes<HTMLSpanElement>, "ref"> & React$40.RefAttributes<HTMLSpanElement>>;
|
|
209
|
+
declare const AvatarImage: React$40.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$40.RefAttributes<HTMLImageElement>, "ref"> & React$40.RefAttributes<HTMLImageElement>>;
|
|
210
|
+
declare const AvatarFallback: React$40.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$40.RefAttributes<HTMLSpanElement>, "ref"> & React$40.RefAttributes<HTMLSpanElement>>;
|
|
210
211
|
|
|
211
212
|
//#endregion
|
|
212
213
|
//#region src/badge/badge.d.ts
|
|
@@ -220,34 +221,34 @@ declare function Badge({
|
|
|
220
221
|
size,
|
|
221
222
|
asChild,
|
|
222
223
|
...props
|
|
223
|
-
}: React$
|
|
224
|
+
}: React$39.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
224
225
|
asChild?: boolean;
|
|
225
226
|
}): react_jsx_runtime4.JSX.Element;
|
|
226
227
|
|
|
227
228
|
//#endregion
|
|
228
229
|
//#region src/breadcrumb/breadcrumb.d.ts
|
|
229
|
-
declare const Breadcrumb: React$
|
|
230
|
-
separator?: React$
|
|
231
|
-
} & React$
|
|
232
|
-
declare const BreadcrumbList: React$
|
|
233
|
-
declare const BreadcrumbItem: React$
|
|
234
|
-
declare const BreadcrumbLink: React$
|
|
230
|
+
declare const Breadcrumb: React$38.ForwardRefExoticComponent<Omit<React$38.DetailedHTMLProps<React$38.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
231
|
+
separator?: React$38.ReactNode;
|
|
232
|
+
} & React$38.RefAttributes<HTMLElement>>;
|
|
233
|
+
declare const BreadcrumbList: React$38.ForwardRefExoticComponent<Omit<React$38.DetailedHTMLProps<React$38.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$38.RefAttributes<HTMLOListElement>>;
|
|
234
|
+
declare const BreadcrumbItem: React$38.ForwardRefExoticComponent<Omit<React$38.DetailedHTMLProps<React$38.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$38.RefAttributes<HTMLLIElement>>;
|
|
235
|
+
declare const BreadcrumbLink: React$38.ForwardRefExoticComponent<Omit<React$38.DetailedHTMLProps<React$38.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
235
236
|
asChild?: boolean;
|
|
236
|
-
} & React$
|
|
237
|
-
declare const BreadcrumbPage: React$
|
|
237
|
+
} & React$38.RefAttributes<HTMLAnchorElement>>;
|
|
238
|
+
declare const BreadcrumbPage: React$38.ForwardRefExoticComponent<Omit<React$38.DetailedHTMLProps<React$38.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$38.RefAttributes<HTMLSpanElement>>;
|
|
238
239
|
declare const BreadcrumbSeparator: {
|
|
239
240
|
({
|
|
240
241
|
children,
|
|
241
242
|
className,
|
|
242
243
|
...props
|
|
243
|
-
}: React$
|
|
244
|
+
}: React$38.ComponentProps<"li">): react_jsx_runtime5.JSX.Element;
|
|
244
245
|
displayName: string;
|
|
245
246
|
};
|
|
246
247
|
declare const BreadcrumbEllipsis: {
|
|
247
248
|
({
|
|
248
249
|
className,
|
|
249
250
|
...props
|
|
250
|
-
}: React$
|
|
251
|
+
}: React$38.ComponentProps<"span">): react_jsx_runtime5.JSX.Element;
|
|
251
252
|
displayName: string;
|
|
252
253
|
};
|
|
253
254
|
|
|
@@ -257,7 +258,7 @@ declare const buttonVariants: (props?: ({
|
|
|
257
258
|
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | "outlineInvert" | "extraGhost" | "extraGhost2" | "neutral" | null | undefined;
|
|
258
259
|
size?: "default" | "xs" | "sm" | "lg" | "xs2" | "icon" | "iconSm" | "smLow" | "max" | null | undefined;
|
|
259
260
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
260
|
-
type ButtonProps = React$
|
|
261
|
+
type ButtonProps = React$37.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
261
262
|
asChild?: boolean;
|
|
262
263
|
/**
|
|
263
264
|
* E2E test_id to identify the button.
|
|
@@ -285,8 +286,8 @@ declare function Calendar({
|
|
|
285
286
|
formatters,
|
|
286
287
|
components,
|
|
287
288
|
...props
|
|
288
|
-
}: React$
|
|
289
|
-
buttonVariant?: React$
|
|
289
|
+
}: React$36.ComponentProps<typeof DayPicker> & {
|
|
290
|
+
buttonVariant?: React$36.ComponentProps<typeof Button>['variant'];
|
|
290
291
|
showYearNavigation?: boolean;
|
|
291
292
|
}): react_jsx_runtime9.JSX.Element;
|
|
292
293
|
declare function CalendarDayButton({
|
|
@@ -294,22 +295,22 @@ declare function CalendarDayButton({
|
|
|
294
295
|
day,
|
|
295
296
|
modifiers,
|
|
296
297
|
...props
|
|
297
|
-
}: React$
|
|
298
|
+
}: React$36.ComponentProps<typeof DayButton>): react_jsx_runtime9.JSX.Element;
|
|
298
299
|
|
|
299
300
|
//#endregion
|
|
300
301
|
//#region src/card/card.d.ts
|
|
301
|
-
declare const Card: React$
|
|
302
|
-
declare const CardHeader: React$
|
|
303
|
-
declare const CardTitle: React$
|
|
304
|
-
declare const CardDescription: React$
|
|
305
|
-
declare const CardContent: React$
|
|
306
|
-
declare const CardFooter: React$
|
|
302
|
+
declare const Card: React$35.ForwardRefExoticComponent<React$35.HTMLAttributes<HTMLDivElement> & React$35.RefAttributes<HTMLDivElement>>;
|
|
303
|
+
declare const CardHeader: React$35.ForwardRefExoticComponent<React$35.HTMLAttributes<HTMLDivElement> & React$35.RefAttributes<HTMLDivElement>>;
|
|
304
|
+
declare const CardTitle: React$35.ForwardRefExoticComponent<React$35.HTMLAttributes<HTMLHeadingElement> & React$35.RefAttributes<HTMLParagraphElement>>;
|
|
305
|
+
declare const CardDescription: React$35.ForwardRefExoticComponent<React$35.HTMLAttributes<HTMLParagraphElement> & React$35.RefAttributes<HTMLParagraphElement>>;
|
|
306
|
+
declare const CardContent: React$35.ForwardRefExoticComponent<React$35.HTMLAttributes<HTMLDivElement> & React$35.RefAttributes<HTMLDivElement>>;
|
|
307
|
+
declare const CardFooter: React$35.ForwardRefExoticComponent<React$35.HTMLAttributes<HTMLDivElement> & React$35.RefAttributes<HTMLDivElement>>;
|
|
307
308
|
|
|
308
309
|
//#endregion
|
|
309
310
|
//#region src/card-hover/card-hover.d.ts
|
|
310
|
-
declare const HoverCard: React$
|
|
311
|
-
declare const HoverCardTrigger: React$
|
|
312
|
-
declare const HoverCardContent: React$
|
|
311
|
+
declare const HoverCard: React$34.FC<HoverCardPrimitive.HoverCardProps>;
|
|
312
|
+
declare const HoverCardTrigger: React$34.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React$34.RefAttributes<HTMLAnchorElement>>;
|
|
313
|
+
declare const HoverCardContent: React$34.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React$34.RefAttributes<HTMLDivElement>, "ref"> & React$34.RefAttributes<HTMLDivElement>>;
|
|
313
314
|
|
|
314
315
|
//#endregion
|
|
315
316
|
//#region src/carousel/carousel.d.ts
|
|
@@ -323,23 +324,23 @@ type CarouselProps = {
|
|
|
323
324
|
orientation?: 'horizontal' | 'vertical';
|
|
324
325
|
setApi?: (api: CarouselApi) => void;
|
|
325
326
|
};
|
|
326
|
-
declare const Carousel: React$
|
|
327
|
-
declare const CarouselContent: React$
|
|
328
|
-
declare const CarouselItem: React$
|
|
329
|
-
declare const CarouselPrevious: React$
|
|
327
|
+
declare const Carousel: React$33.ForwardRefExoticComponent<React$33.HTMLAttributes<HTMLDivElement> & CarouselProps & React$33.RefAttributes<HTMLDivElement>>;
|
|
328
|
+
declare const CarouselContent: React$33.ForwardRefExoticComponent<React$33.HTMLAttributes<HTMLDivElement> & React$33.RefAttributes<HTMLDivElement>>;
|
|
329
|
+
declare const CarouselItem: React$33.ForwardRefExoticComponent<React$33.HTMLAttributes<HTMLDivElement> & React$33.RefAttributes<HTMLDivElement>>;
|
|
330
|
+
declare const CarouselPrevious: React$33.ForwardRefExoticComponent<Omit<React$33.ClassAttributes<HTMLButtonElement> & React$33.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority12.VariantProps<(props?: ({
|
|
330
331
|
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | "outlineInvert" | "extraGhost" | "extraGhost2" | "neutral" | null | undefined;
|
|
331
332
|
size?: "default" | "xs" | "sm" | "lg" | "xs2" | "icon" | "iconSm" | "smLow" | "max" | null | undefined;
|
|
332
333
|
} & class_variance_authority_types11.ClassProp) | undefined) => string> & {
|
|
333
334
|
asChild?: boolean;
|
|
334
335
|
__e2e_test_id__?: string;
|
|
335
|
-
}, "ref"> & React$
|
|
336
|
-
declare const CarouselNext: React$
|
|
336
|
+
}, "ref"> & React$33.RefAttributes<HTMLButtonElement>>;
|
|
337
|
+
declare const CarouselNext: React$33.ForwardRefExoticComponent<Omit<React$33.ClassAttributes<HTMLButtonElement> & React$33.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority12.VariantProps<(props?: ({
|
|
337
338
|
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | "outlineInvert" | "extraGhost" | "extraGhost2" | "neutral" | null | undefined;
|
|
338
339
|
size?: "default" | "xs" | "sm" | "lg" | "xs2" | "icon" | "iconSm" | "smLow" | "max" | null | undefined;
|
|
339
340
|
} & class_variance_authority_types11.ClassProp) | undefined) => string> & {
|
|
340
341
|
asChild?: boolean;
|
|
341
342
|
__e2e_test_id__?: string;
|
|
342
|
-
}, "ref"> & React$
|
|
343
|
+
}, "ref"> & React$33.RefAttributes<HTMLButtonElement>>;
|
|
343
344
|
|
|
344
345
|
//#endregion
|
|
345
346
|
//#region src/checkbox/checkbox.d.ts
|
|
@@ -379,40 +380,40 @@ declare function ComboboxDemo(): react_jsx_runtime23.JSX.Element;
|
|
|
379
380
|
|
|
380
381
|
//#endregion
|
|
381
382
|
//#region src/dialog/dialog.d.ts
|
|
382
|
-
declare function Dialog(props: Readonly<React$
|
|
383
|
-
declare function DialogTrigger(props: Readonly<React$
|
|
384
|
-
declare function DialogPortal(props: Readonly<React$
|
|
385
|
-
declare function DialogClose(props: Readonly<React$
|
|
383
|
+
declare function Dialog(props: Readonly<React$32.ComponentProps<typeof DialogPrimitive.Root>>): react_jsx_runtime60.JSX.Element;
|
|
384
|
+
declare function DialogTrigger(props: Readonly<React$32.ComponentProps<typeof DialogPrimitive.Trigger>>): react_jsx_runtime60.JSX.Element;
|
|
385
|
+
declare function DialogPortal(props: Readonly<React$32.ComponentProps<typeof DialogPrimitive.Portal>>): react_jsx_runtime60.JSX.Element;
|
|
386
|
+
declare function DialogClose(props: Readonly<React$32.ComponentProps<typeof DialogPrimitive.Close>>): react_jsx_runtime60.JSX.Element;
|
|
386
387
|
declare function DialogOverlay({
|
|
387
388
|
className,
|
|
388
389
|
...props
|
|
389
|
-
}: React$
|
|
390
|
+
}: React$32.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime60.JSX.Element;
|
|
390
391
|
declare function DialogContent({
|
|
391
392
|
className,
|
|
392
393
|
children,
|
|
393
394
|
showCloseButton,
|
|
394
395
|
__e2e_test_id__,
|
|
395
396
|
...props
|
|
396
|
-
}: React$
|
|
397
|
+
}: React$32.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
397
398
|
showCloseButton?: boolean;
|
|
398
399
|
__e2e_test_id__?: string;
|
|
399
400
|
}): react_jsx_runtime60.JSX.Element;
|
|
400
401
|
declare function DialogHeader({
|
|
401
402
|
className,
|
|
402
403
|
...props
|
|
403
|
-
}: React$
|
|
404
|
+
}: React$32.ComponentProps<'div'>): react_jsx_runtime60.JSX.Element;
|
|
404
405
|
declare function DialogFooter({
|
|
405
406
|
className,
|
|
406
407
|
...props
|
|
407
|
-
}: React$
|
|
408
|
+
}: React$32.ComponentProps<'div'>): react_jsx_runtime60.JSX.Element;
|
|
408
409
|
declare function DialogTitle({
|
|
409
410
|
className,
|
|
410
411
|
...props
|
|
411
|
-
}: React$
|
|
412
|
+
}: React$32.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime60.JSX.Element;
|
|
412
413
|
declare function DialogDescription({
|
|
413
414
|
className,
|
|
414
415
|
...props
|
|
415
|
-
}: React$
|
|
416
|
+
}: React$32.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime60.JSX.Element;
|
|
416
417
|
|
|
417
418
|
//#endregion
|
|
418
419
|
//#region src/command/command.d.ts
|
|
@@ -468,13 +469,13 @@ declare function CommandShortcut({
|
|
|
468
469
|
|
|
469
470
|
//#endregion
|
|
470
471
|
//#region src/command-palette/command-palette.d.ts
|
|
471
|
-
declare const CommandPalette: React$
|
|
472
|
-
children?: React$
|
|
473
|
-
} & Pick<Pick<React$
|
|
474
|
-
ref?: React$
|
|
472
|
+
declare const CommandPalette: React$31.ForwardRefExoticComponent<Omit<{
|
|
473
|
+
children?: React$31.ReactNode;
|
|
474
|
+
} & Pick<Pick<React$31.DetailedHTMLProps<React$31.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
475
|
+
ref?: React$31.Ref<HTMLDivElement>;
|
|
475
476
|
} & {
|
|
476
477
|
asChild?: boolean;
|
|
477
|
-
}, "key" | "asChild" | keyof React$
|
|
478
|
+
}, "key" | "asChild" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
478
479
|
label?: string;
|
|
479
480
|
shouldFilter?: boolean;
|
|
480
481
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -484,72 +485,72 @@ declare const CommandPalette: React$30.ForwardRefExoticComponent<Omit<{
|
|
|
484
485
|
loop?: boolean;
|
|
485
486
|
disablePointerSelection?: boolean;
|
|
486
487
|
vimBindings?: boolean;
|
|
487
|
-
} & React$
|
|
488
|
+
} & React$31.RefAttributes<HTMLDivElement>, "ref"> & React$31.RefAttributes<HTMLDivElement>>;
|
|
488
489
|
type CommandPaletteDialogProps = DialogProps;
|
|
489
490
|
declare const CommandPaletteDialog: ({
|
|
490
491
|
children,
|
|
491
492
|
...props
|
|
492
493
|
}: CommandPaletteDialogProps) => react_jsx_runtime33.JSX.Element;
|
|
493
|
-
declare const CommandPaletteInput: React$
|
|
494
|
-
ref?: React$
|
|
494
|
+
declare const CommandPaletteInput: React$31.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$31.DetailedHTMLProps<React$31.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$31.InputHTMLAttributes<HTMLInputElement>> & {
|
|
495
|
+
ref?: React$31.Ref<HTMLInputElement>;
|
|
495
496
|
} & {
|
|
496
497
|
asChild?: boolean;
|
|
497
|
-
}, "key" | "asChild" | keyof React$
|
|
498
|
+
}, "key" | "asChild" | keyof React$31.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
498
499
|
value?: string;
|
|
499
500
|
onValueChange?: (search: string) => void;
|
|
500
|
-
} & React$
|
|
501
|
-
declare const CommandPaletteList: React$
|
|
502
|
-
children?: React$
|
|
503
|
-
} & Pick<Pick<React$
|
|
504
|
-
ref?: React$
|
|
501
|
+
} & React$31.RefAttributes<HTMLInputElement>, "ref"> & React$31.RefAttributes<HTMLInputElement>>;
|
|
502
|
+
declare const CommandPaletteList: React$31.ForwardRefExoticComponent<Omit<{
|
|
503
|
+
children?: React$31.ReactNode;
|
|
504
|
+
} & Pick<Pick<React$31.DetailedHTMLProps<React$31.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
505
|
+
ref?: React$31.Ref<HTMLDivElement>;
|
|
505
506
|
} & {
|
|
506
507
|
asChild?: boolean;
|
|
507
|
-
}, "key" | "asChild" | keyof React$
|
|
508
|
+
}, "key" | "asChild" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
508
509
|
label?: string;
|
|
509
|
-
} & React$
|
|
510
|
-
declare const CommandPaletteEmpty: React$
|
|
511
|
-
children?: React$
|
|
512
|
-
} & Pick<Pick<React$
|
|
513
|
-
ref?: React$
|
|
510
|
+
} & React$31.RefAttributes<HTMLDivElement>, "ref"> & React$31.RefAttributes<HTMLDivElement>>;
|
|
511
|
+
declare const CommandPaletteEmpty: React$31.ForwardRefExoticComponent<Omit<{
|
|
512
|
+
children?: React$31.ReactNode;
|
|
513
|
+
} & Pick<Pick<React$31.DetailedHTMLProps<React$31.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
514
|
+
ref?: React$31.Ref<HTMLDivElement>;
|
|
514
515
|
} & {
|
|
515
516
|
asChild?: boolean;
|
|
516
|
-
}, "key" | "asChild" | keyof React$
|
|
517
|
-
declare const CommandPaletteGroup: React$
|
|
518
|
-
children?: React$
|
|
519
|
-
} & Omit<Pick<Pick<React$
|
|
520
|
-
ref?: React$
|
|
517
|
+
}, "key" | "asChild" | keyof React$31.HTMLAttributes<HTMLDivElement>> & React$31.RefAttributes<HTMLDivElement>, "ref"> & React$31.RefAttributes<HTMLDivElement>>;
|
|
518
|
+
declare const CommandPaletteGroup: React$31.ForwardRefExoticComponent<Omit<{
|
|
519
|
+
children?: React$31.ReactNode;
|
|
520
|
+
} & Omit<Pick<Pick<React$31.DetailedHTMLProps<React$31.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
521
|
+
ref?: React$31.Ref<HTMLDivElement>;
|
|
521
522
|
} & {
|
|
522
523
|
asChild?: boolean;
|
|
523
|
-
}, "key" | "asChild" | keyof React$
|
|
524
|
-
heading?: React$
|
|
524
|
+
}, "key" | "asChild" | keyof React$31.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
525
|
+
heading?: React$31.ReactNode;
|
|
525
526
|
value?: string;
|
|
526
527
|
forceMount?: boolean;
|
|
527
|
-
} & React$
|
|
528
|
-
declare const CommandPaletteSeparator: React$
|
|
529
|
-
ref?: React$
|
|
528
|
+
} & React$31.RefAttributes<HTMLDivElement>, "ref"> & React$31.RefAttributes<HTMLDivElement>>;
|
|
529
|
+
declare const CommandPaletteSeparator: React$31.ForwardRefExoticComponent<Omit<Pick<Pick<React$31.DetailedHTMLProps<React$31.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
530
|
+
ref?: React$31.Ref<HTMLDivElement>;
|
|
530
531
|
} & {
|
|
531
532
|
asChild?: boolean;
|
|
532
|
-
}, "key" | "asChild" | keyof React$
|
|
533
|
+
}, "key" | "asChild" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
533
534
|
alwaysRender?: boolean;
|
|
534
|
-
} & React$
|
|
535
|
-
declare const CommandPaletteItem: React$
|
|
536
|
-
children?: React$
|
|
537
|
-
} & Omit<Pick<Pick<React$
|
|
538
|
-
ref?: React$
|
|
535
|
+
} & React$31.RefAttributes<HTMLDivElement>, "ref"> & React$31.RefAttributes<HTMLDivElement>>;
|
|
536
|
+
declare const CommandPaletteItem: React$31.ForwardRefExoticComponent<Omit<{
|
|
537
|
+
children?: React$31.ReactNode;
|
|
538
|
+
} & Omit<Pick<Pick<React$31.DetailedHTMLProps<React$31.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$31.HTMLAttributes<HTMLDivElement>> & {
|
|
539
|
+
ref?: React$31.Ref<HTMLDivElement>;
|
|
539
540
|
} & {
|
|
540
541
|
asChild?: boolean;
|
|
541
|
-
}, "key" | "asChild" | keyof React$
|
|
542
|
+
}, "key" | "asChild" | keyof React$31.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
542
543
|
disabled?: boolean;
|
|
543
544
|
onSelect?: (value: string) => void;
|
|
544
545
|
value?: string;
|
|
545
546
|
keywords?: string[];
|
|
546
547
|
forceMount?: boolean;
|
|
547
|
-
} & React$
|
|
548
|
+
} & React$31.RefAttributes<HTMLDivElement>, "ref"> & React$31.RefAttributes<HTMLDivElement>>;
|
|
548
549
|
declare const CommandPaletteShortcut: {
|
|
549
550
|
({
|
|
550
551
|
className,
|
|
551
552
|
...props
|
|
552
|
-
}: React$
|
|
553
|
+
}: React$31.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime33.JSX.Element;
|
|
553
554
|
displayName: string;
|
|
554
555
|
};
|
|
555
556
|
|
|
@@ -583,31 +584,31 @@ declare const ContentFrame: ({
|
|
|
583
584
|
|
|
584
585
|
//#endregion
|
|
585
586
|
//#region src/context-menu/context-menu.d.ts
|
|
586
|
-
declare const ContextMenu: React$
|
|
587
|
-
declare const ContextMenuTrigger: React$
|
|
588
|
-
declare const ContextMenuGroup: React$
|
|
589
|
-
declare const ContextMenuPortal: React$
|
|
590
|
-
declare const ContextMenuSub: React$
|
|
591
|
-
declare const ContextMenuRadioGroup: React$
|
|
592
|
-
declare const ContextMenuSubTrigger: React$
|
|
587
|
+
declare const ContextMenu: React$30.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
588
|
+
declare const ContextMenuTrigger: React$30.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React$30.RefAttributes<HTMLSpanElement>>;
|
|
589
|
+
declare const ContextMenuGroup: React$30.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React$30.RefAttributes<HTMLDivElement>>;
|
|
590
|
+
declare const ContextMenuPortal: React$30.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
|
591
|
+
declare const ContextMenuSub: React$30.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
592
|
+
declare const ContextMenuRadioGroup: React$30.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React$30.RefAttributes<HTMLDivElement>>;
|
|
593
|
+
declare const ContextMenuSubTrigger: React$30.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React$30.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
593
594
|
inset?: boolean;
|
|
594
|
-
} & React$
|
|
595
|
-
declare const ContextMenuSubContent: React$
|
|
596
|
-
declare const ContextMenuContent: React$
|
|
597
|
-
declare const ContextMenuItem: React$
|
|
595
|
+
} & React$30.RefAttributes<HTMLDivElement>>;
|
|
596
|
+
declare const ContextMenuSubContent: React$30.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React$30.RefAttributes<HTMLDivElement>, "ref"> & React$30.RefAttributes<HTMLDivElement>>;
|
|
597
|
+
declare const ContextMenuContent: React$30.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React$30.RefAttributes<HTMLDivElement>, "ref"> & React$30.RefAttributes<HTMLDivElement>>;
|
|
598
|
+
declare const ContextMenuItem: React$30.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React$30.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
598
599
|
inset?: boolean;
|
|
599
|
-
} & React$
|
|
600
|
-
declare const ContextMenuCheckboxItem: React$
|
|
601
|
-
declare const ContextMenuRadioItem: React$
|
|
602
|
-
declare const ContextMenuLabel: React$
|
|
600
|
+
} & React$30.RefAttributes<HTMLDivElement>>;
|
|
601
|
+
declare const ContextMenuCheckboxItem: React$30.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React$30.RefAttributes<HTMLDivElement>, "ref"> & React$30.RefAttributes<HTMLDivElement>>;
|
|
602
|
+
declare const ContextMenuRadioItem: React$30.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React$30.RefAttributes<HTMLDivElement>, "ref"> & React$30.RefAttributes<HTMLDivElement>>;
|
|
603
|
+
declare const ContextMenuLabel: React$30.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React$30.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
603
604
|
inset?: boolean;
|
|
604
|
-
} & React$
|
|
605
|
-
declare const ContextMenuSeparator: React$
|
|
605
|
+
} & React$30.RefAttributes<HTMLDivElement>>;
|
|
606
|
+
declare const ContextMenuSeparator: React$30.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React$30.RefAttributes<HTMLDivElement>, "ref"> & React$30.RefAttributes<HTMLDivElement>>;
|
|
606
607
|
declare const ContextMenuShortcut: {
|
|
607
608
|
({
|
|
608
609
|
className,
|
|
609
610
|
...props
|
|
610
|
-
}: React$
|
|
611
|
+
}: React$30.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime37.JSX.Element;
|
|
611
612
|
displayName: string;
|
|
612
613
|
};
|
|
613
614
|
|
|
@@ -668,8 +669,8 @@ type Cell = {
|
|
|
668
669
|
min?: number;
|
|
669
670
|
max?: number;
|
|
670
671
|
step?: number;
|
|
671
|
-
prefix?: string;
|
|
672
|
-
suffix?: string;
|
|
672
|
+
prefix?: string | ((row: unknown, value: number | null) => React$29.ReactNode);
|
|
673
|
+
suffix?: string | ((row: unknown, value: number | null) => React$29.ReactNode);
|
|
673
674
|
fallbackValue?: string;
|
|
674
675
|
} | ({
|
|
675
676
|
variant: 'select';
|
|
@@ -699,7 +700,7 @@ type ColumnMenuRendererFunction<TData extends RowData, TValue> = (args: {
|
|
|
699
700
|
column: Column<TData, TValue>;
|
|
700
701
|
open?: boolean;
|
|
701
702
|
onOpenChange?: (open: boolean) => void;
|
|
702
|
-
}) => React.ReactNode;
|
|
703
|
+
}) => React$29.ReactNode;
|
|
703
704
|
declare module '@tanstack/react-table' {
|
|
704
705
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
705
706
|
label?: string;
|
|
@@ -707,11 +708,17 @@ declare module '@tanstack/react-table' {
|
|
|
707
708
|
align?: 'left' | 'right' | 'center';
|
|
708
709
|
className?: string | ((row: TData) => string | undefined);
|
|
709
710
|
editable?: boolean | ((row: TData) => boolean);
|
|
710
|
-
headerMenuFooter?: React.ReactNode | ColumnMenuRendererFunction<TData, TValue>;
|
|
711
|
-
headerCustomComponent?: React.ReactNode | ColumnMenuRendererFunction<TData, TValue>;
|
|
711
|
+
headerMenuFooter?: React$29.ReactNode | ColumnMenuRendererFunction<TData, TValue>;
|
|
712
|
+
headerCustomComponent?: React$29.ReactNode | ColumnMenuRendererFunction<TData, TValue>;
|
|
713
|
+
/**
|
|
714
|
+
* Optional overlay component rendered absolutely positioned within the cell.
|
|
715
|
+
* Receives the row data, cell value, row index, and column id, returns a React node or null.
|
|
716
|
+
* Useful for indicators like "overwritten value" badges.
|
|
717
|
+
*/
|
|
718
|
+
cellOverlay?: (row: TData, value: TValue, rowIndex: number, columnId: string) => React$29.ReactNode | null;
|
|
712
719
|
}
|
|
713
720
|
interface TableMeta<TData extends RowData> {
|
|
714
|
-
dataGridRef?: React.RefObject<HTMLElement | null>;
|
|
721
|
+
dataGridRef?: React$29.RefObject<HTMLElement | null>;
|
|
715
722
|
focusedCell?: CellPosition | null;
|
|
716
723
|
editingCell?: CellPosition | null;
|
|
717
724
|
selectionState?: SelectionState;
|
|
@@ -728,12 +735,12 @@ declare module '@tanstack/react-table' {
|
|
|
728
735
|
onCellChange?: (update: UpdateCell) => void;
|
|
729
736
|
onRowsDelete?: (rowIndices: number[]) => void | Promise<void>;
|
|
730
737
|
onColumnClick?: (columnId: string) => void;
|
|
731
|
-
onCellClick?: (rowIndex: number, columnId: string, event?: React.MouseEvent) => void;
|
|
738
|
+
onCellClick?: (rowIndex: number, columnId: string, event?: React$29.MouseEvent) => void;
|
|
732
739
|
onCellDoubleClick?: (rowIndex: number, columnId: string) => void;
|
|
733
|
-
onCellMouseDown?: (rowIndex: number, columnId: string, event: React.MouseEvent) => void;
|
|
734
|
-
onCellMouseEnter?: (rowIndex: number, columnId: string, event: React.MouseEvent) => void;
|
|
740
|
+
onCellMouseDown?: (rowIndex: number, columnId: string, event: React$29.MouseEvent) => void;
|
|
741
|
+
onCellMouseEnter?: (rowIndex: number, columnId: string, event: React$29.MouseEvent) => void;
|
|
735
742
|
onCellMouseUp?: () => void;
|
|
736
|
-
onCellContextMenu?: (rowIndex: number, columnId: string, event: React.MouseEvent) => void;
|
|
743
|
+
onCellContextMenu?: (rowIndex: number, columnId: string, event: React$29.MouseEvent) => void;
|
|
737
744
|
onCellEditingStart?: (rowIndex: number, columnId: string) => void;
|
|
738
745
|
onCellEditingStop?: (opts?: {
|
|
739
746
|
direction?: NavigationDirection;
|
|
@@ -896,8 +903,8 @@ declare function DataGridCell<TData>({
|
|
|
896
903
|
|
|
897
904
|
//#endregion
|
|
898
905
|
//#region src/data-grid/data-grid-cell-wrapper.d.ts
|
|
899
|
-
type DataGridCellWrapperProps<TData> = {
|
|
900
|
-
cell: Cell$1<TData,
|
|
906
|
+
type DataGridCellWrapperProps<TData, TValue> = {
|
|
907
|
+
cell: Cell$1<TData, TValue>;
|
|
901
908
|
table: Table<TData>;
|
|
902
909
|
rowIndex: number;
|
|
903
910
|
columnId: string;
|
|
@@ -905,7 +912,7 @@ type DataGridCellWrapperProps<TData> = {
|
|
|
905
912
|
isFocused: boolean;
|
|
906
913
|
isSelected: boolean;
|
|
907
914
|
} & React$26.ComponentProps<'div'>;
|
|
908
|
-
declare function DataGridCellWrapper<TData>({
|
|
915
|
+
declare function DataGridCellWrapper<TData, TValue>({
|
|
909
916
|
cell,
|
|
910
917
|
table,
|
|
911
918
|
rowIndex,
|
|
@@ -916,8 +923,9 @@ declare function DataGridCellWrapper<TData>({
|
|
|
916
923
|
className,
|
|
917
924
|
onClick: onClickProp,
|
|
918
925
|
onKeyDown: onKeyDownProp,
|
|
926
|
+
children,
|
|
919
927
|
...props
|
|
920
|
-
}: DataGridCellWrapperProps<TData>): react_jsx_runtime41.JSX.Element;
|
|
928
|
+
}: DataGridCellWrapperProps<TData, TValue>): react_jsx_runtime41.JSX.Element;
|
|
921
929
|
|
|
922
930
|
//#endregion
|
|
923
931
|
//#region src/dropdown-menu/dropdown-menu.d.ts
|