@botiverse/raft-ui 0.21.2 → 0.22.1
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/CHANGELOG.md +90 -0
- package/dist/components/timeline/timeline.css +2 -2
- package/dist/foundation.css +3 -3
- package/dist/{inbox-item.recipe-CuJPcy-3.mjs → inbox-item-BtvK75T1.mjs} +2242 -390
- package/dist/{index-C1FHbVfH.d.mts → inbox-item-ChANmbeB.d.mts} +496 -11
- package/dist/index.d.mts +32 -320
- package/dist/index.mjs +110 -1006
- package/dist/style.css +1 -1
- package/dist/styles.css +82 -8
- package/dist/tokens.json +2 -2
- package/dist/wip.d.mts +107 -3
- package/dist/wip.mjs +139 -3
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Dialog } from "@base-ui/react/dialog";
|
|
2
|
-
import { VariantProps } from "tailwind-variants/lite";
|
|
3
2
|
import { CSSProperties, ComponentPropsWithRef, ElementType, ReactNode } from "react";
|
|
3
|
+
import { VariantProps } from "tailwind-variants/lite";
|
|
4
4
|
import { Button } from "@base-ui/react/button";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
6
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
7
7
|
import { Checkbox } from "@base-ui/react/checkbox";
|
|
8
8
|
import { Avatar } from "@base-ui/react";
|
|
9
9
|
import { Menu } from "@base-ui/react/menu";
|
|
10
|
+
import { Popover } from "@base-ui/react/popover";
|
|
11
|
+
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
10
12
|
import { Toggle } from "@base-ui/react/toggle";
|
|
11
13
|
import { Toolbar } from "@base-ui/react/toolbar";
|
|
12
14
|
//#region src/lib/styled-props.d.ts
|
|
@@ -278,6 +280,10 @@ type ButtonProps = StyledProps<Button.Props> & Omit<ButtonVariantProps, "size">
|
|
|
278
280
|
};
|
|
279
281
|
declare function Button$1({ variant, size, loading, loadingLabel, disabled, className, children, render, nativeButton, ...props }: ButtonProps): import("react").JSX.Element;
|
|
280
282
|
//#endregion
|
|
283
|
+
//#region src/components/panel/panel-action.d.ts
|
|
284
|
+
type PanelActionProps = Omit<StyledProps<Button.Props>, "type"> & DataAttributes;
|
|
285
|
+
declare function PanelAction({ className, render, nativeButton, ...props }: PanelActionProps): import("react").JSX.Element;
|
|
286
|
+
//#endregion
|
|
281
287
|
//#region src/components/dialog/dialog.d.ts
|
|
282
288
|
type DialogProps = Dialog.Root.Props;
|
|
283
289
|
declare function Dialog$1({ children, ...props }: DialogProps): import("react").JSX.Element;
|
|
@@ -301,21 +307,43 @@ type DialogCloseProps = Dialog.Close.Props & Pick<ButtonProps, "variant" | "size
|
|
|
301
307
|
children?: ReactNode;
|
|
302
308
|
};
|
|
303
309
|
declare function DialogClose({ className, variant, size, children, render, "aria-label": ariaLabel, ...props }: DialogCloseProps): import("react").JSX.Element;
|
|
310
|
+
type DialogSheetBackProps = PanelActionProps;
|
|
311
|
+
/**
|
|
312
|
+
* Back, in a later step of a flow drawn as a phone sheet: it takes the head's
|
|
313
|
+
* start in place of × (stdrc, 2026-10-22). The sheet is a stack of steps, and
|
|
314
|
+
* Back undoes one, as on a pushed page; Esc still closes. Put it in
|
|
315
|
+
* `DialogHeader` beside the `DialogClose`, from the second step on; it draws
|
|
316
|
+
* nothing outside a sheet, where Back stays in the footer. Its icon is
|
|
317
|
+
* `arrow-left`, as every Back (Alignment, "The ends of a header").
|
|
318
|
+
*/
|
|
319
|
+
declare function DialogSheetBack({ className, children, "aria-label": ariaLabel, ...props }: DialogSheetBackProps): import("react").JSX.Element | null;
|
|
304
320
|
type DialogHeaderProps = ComponentPropsWithRef<"div"> & {
|
|
305
321
|
/** A pinned bar of a scrolling (`size="wide"`) dialog. */
|
|
306
322
|
bar?: boolean;
|
|
307
323
|
};
|
|
308
|
-
declare function DialogHeader({ className, bar, ...props }: DialogHeaderProps): import("react").JSX.Element;
|
|
324
|
+
declare function DialogHeader({ className, bar, children, ...props }: DialogHeaderProps): import("react").JSX.Element;
|
|
309
325
|
type DialogBodyProps = ComponentPropsWithRef<"div"> & {
|
|
310
326
|
/** A pinned bar of a scrolling (`size="wide"`) dialog. */
|
|
311
327
|
bar?: boolean;
|
|
312
328
|
};
|
|
313
|
-
declare function DialogBody({ className, bar, ...props }: DialogBodyProps): import("react").JSX.Element;
|
|
329
|
+
declare function DialogBody({ className, bar, children, ...props }: DialogBodyProps): import("react").JSX.Element;
|
|
314
330
|
type DialogFooterProps = ComponentPropsWithRef<"div"> & {
|
|
315
331
|
/** A pinned bar of a scrolling (`size="wide"`) dialog. */
|
|
316
332
|
bar?: boolean;
|
|
317
333
|
};
|
|
318
|
-
declare function DialogFooter({ className, bar, ...props }: DialogFooterProps): import("react").JSX.Element;
|
|
334
|
+
declare function DialogFooter({ className, bar, hidden, children, ref, ...props }: DialogFooterProps): import("react").JSX.Element;
|
|
335
|
+
type DialogFooterNoteProps = ComponentPropsWithRef<"p">;
|
|
336
|
+
/**
|
|
337
|
+
* One short line at the start of `DialogFooter` that says what the commit
|
|
338
|
+
* button will do ("You'll be billed $8 per member each month"). Muted footnote
|
|
339
|
+
* text, start-aligned and never cut. Only in a `lg` or `wide` dialog, and at
|
|
340
|
+
* most 40 characters: on a desktop it is one line beside the buttons and never
|
|
341
|
+
* wraps; on a phone it goes above the buttons when they don't fit beside it,
|
|
342
|
+
* and may wrap to 2 lines. In a phone sheet, which has no footer, it moves
|
|
343
|
+
* to the end of the body. Longer copy belongs in the body. A footer holds a note or a `TextLink`,
|
|
344
|
+
* never both.
|
|
345
|
+
*/
|
|
346
|
+
declare function DialogFooterNote({ className, children, ...props }: DialogFooterNoteProps): import("react").JSX.Element | null;
|
|
319
347
|
type DialogTitleProps = StyledProps<Dialog.Title.Props>;
|
|
320
348
|
declare function DialogTitle({ className, ...props }: DialogTitleProps): import("react").JSX.Element;
|
|
321
349
|
type DialogDescriptionProps = StyledProps<Dialog.Description.Props>;
|
|
@@ -328,11 +356,39 @@ type DialogSurfaceProps = useRender.ComponentProps<"div">;
|
|
|
328
356
|
* animates itself: the host centres it, and a centred modal has no motion.
|
|
329
357
|
* DialogContent draws the same frame for a Base UI dialog.
|
|
330
358
|
*/
|
|
331
|
-
declare function DialogSurface({ className, render, ...props }: DialogSurfaceProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
359
|
+
declare function DialogSurface({ className, render, children, ...props }: DialogSurfaceProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
332
360
|
type DialogNavProps = useRender.ComponentProps<"nav">;
|
|
333
361
|
/** The section list of a wide (`size="wide"`) dialog, inside a `bar` body. */
|
|
334
362
|
declare function DialogNav({ className, render, ...props }: DialogNavProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
335
363
|
//#endregion
|
|
364
|
+
//#region src/components/dialog/dialog-sheet.d.ts
|
|
365
|
+
type DialogSheetContentProps = DialogContentProps;
|
|
366
|
+
/**
|
|
367
|
+
* DialogContent for a dialog with several fields, a long list or steps. On a
|
|
368
|
+
* desktop and a tablet it is DialogContent, the same DOM and classes. Below
|
|
369
|
+
* 768px it is a sheet: docked to the bottom, 90% of the screen tall, sliding
|
|
370
|
+
* up over its scrim; `DialogHeader` becomes a pushed page's head (× at the
|
|
371
|
+
* start, the title, the `DialogCommit` button at the end), `DialogFooter` is
|
|
372
|
+
* hidden (× is Cancel) and `DialogBody` scrolls on the phone's 16px margin
|
|
373
|
+
* above the home indicator. Base UI keeps Esc, focus and close.
|
|
374
|
+
*/
|
|
375
|
+
declare function DialogSheetContent({ className, overlay, style, ref, children, ...props }: DialogSheetContentProps): import("react").JSX.Element;
|
|
376
|
+
type DialogCommitProps = ButtonProps;
|
|
377
|
+
/**
|
|
378
|
+
* The dialog's one commit button: a `Button`, written where it goes on a
|
|
379
|
+
* desktop (the end of `DialogFooter`). In a `DialogSheetContent` below 768px
|
|
380
|
+
* it is drawn at the end of the sheet's head instead, the same button (color,
|
|
381
|
+
* words, disabled and loading state) at `size="md"`. In a flow of steps, write
|
|
382
|
+
* each step's button as one (Next, then the last step's action).
|
|
383
|
+
*
|
|
384
|
+
* A submit button stays its form's default button in the head: it is tied to
|
|
385
|
+
* the form it was written in by the form's `id` (the `form` attribute), so a
|
|
386
|
+
* click and Enter in a field submit, and neither does while it is disabled.
|
|
387
|
+
* Give that form an `id`, or pass `form`. Without one a click still submits
|
|
388
|
+
* the form, but Enter in a field doesn't.
|
|
389
|
+
*/
|
|
390
|
+
declare function DialogCommit({ size, form, onClick, ...props }: DialogCommitProps): import("react").JSX.Element;
|
|
391
|
+
//#endregion
|
|
336
392
|
//#region src/components/text-link/text-link.d.ts
|
|
337
393
|
declare const textLinkVariants: import("tailwind-variants/lite").TVReturnType<{
|
|
338
394
|
variant: {
|
|
@@ -353,6 +409,178 @@ declare const textLinkVariants: import("tailwind-variants/lite").TVReturnType<{
|
|
|
353
409
|
type TextLinkProps = useRender.ComponentProps<"button"> & VariantProps<typeof textLinkVariants>;
|
|
354
410
|
declare function TextLink({ variant, className, render, ...props }: TextLinkProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
355
411
|
//#endregion
|
|
412
|
+
//#region src/lib/row-tone.d.ts
|
|
413
|
+
/**
|
|
414
|
+
* What a place in a list is to you, shared by every row that lists places
|
|
415
|
+
* (ListRow, SidebarItem): something waits for you (`unread`), you muted it
|
|
416
|
+
* (`muted`), or you are not in it: offline or not joined (`away`).
|
|
417
|
+
*/
|
|
418
|
+
type RowTone = "default" | "unread" | "muted" | "away";
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region src/components/list-row/list-row.recipe.d.ts
|
|
421
|
+
declare const listRow: import("tailwind-variants/lite").TVReturnType<{
|
|
422
|
+
variant: {
|
|
423
|
+
default: {
|
|
424
|
+
root: (string | string[])[];
|
|
425
|
+
};
|
|
426
|
+
plain: {
|
|
427
|
+
root: (string | string[])[];
|
|
428
|
+
};
|
|
429
|
+
entry: {
|
|
430
|
+
root: string;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
interactive: {
|
|
434
|
+
true: {
|
|
435
|
+
root: string[];
|
|
436
|
+
};
|
|
437
|
+
false: {};
|
|
438
|
+
};
|
|
439
|
+
wrap: {
|
|
440
|
+
true: {
|
|
441
|
+
description: string;
|
|
442
|
+
};
|
|
443
|
+
false: {};
|
|
444
|
+
};
|
|
445
|
+
}, {
|
|
446
|
+
group: string[];
|
|
447
|
+
root: string[];
|
|
448
|
+
icon: string[];
|
|
449
|
+
body: string[];
|
|
450
|
+
line: string[];
|
|
451
|
+
title: string[];
|
|
452
|
+
description: string[];
|
|
453
|
+
meta: string[];
|
|
454
|
+
value: string[];
|
|
455
|
+
chevron: string[];
|
|
456
|
+
}, undefined, {
|
|
457
|
+
variant: {
|
|
458
|
+
default: {
|
|
459
|
+
root: (string | string[])[];
|
|
460
|
+
};
|
|
461
|
+
plain: {
|
|
462
|
+
root: (string | string[])[];
|
|
463
|
+
};
|
|
464
|
+
entry: {
|
|
465
|
+
root: string;
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
interactive: {
|
|
469
|
+
true: {
|
|
470
|
+
root: string[];
|
|
471
|
+
};
|
|
472
|
+
false: {};
|
|
473
|
+
};
|
|
474
|
+
wrap: {
|
|
475
|
+
true: {
|
|
476
|
+
description: string;
|
|
477
|
+
};
|
|
478
|
+
false: {};
|
|
479
|
+
};
|
|
480
|
+
}, {
|
|
481
|
+
group: string[];
|
|
482
|
+
root: string[];
|
|
483
|
+
icon: string[];
|
|
484
|
+
body: string[];
|
|
485
|
+
line: string[];
|
|
486
|
+
title: string[];
|
|
487
|
+
description: string[];
|
|
488
|
+
meta: string[];
|
|
489
|
+
value: string[];
|
|
490
|
+
chevron: string[];
|
|
491
|
+
}, import("tailwind-variants/lite").TVReturnTypeLike<{
|
|
492
|
+
variant: {
|
|
493
|
+
default: {
|
|
494
|
+
root: (string | string[])[];
|
|
495
|
+
};
|
|
496
|
+
plain: {
|
|
497
|
+
root: (string | string[])[];
|
|
498
|
+
};
|
|
499
|
+
entry: {
|
|
500
|
+
root: string;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
interactive: {
|
|
504
|
+
true: {
|
|
505
|
+
root: string[];
|
|
506
|
+
};
|
|
507
|
+
false: {};
|
|
508
|
+
};
|
|
509
|
+
wrap: {
|
|
510
|
+
true: {
|
|
511
|
+
description: string;
|
|
512
|
+
};
|
|
513
|
+
false: {};
|
|
514
|
+
};
|
|
515
|
+
}, {
|
|
516
|
+
group: string[];
|
|
517
|
+
root: string[];
|
|
518
|
+
icon: string[];
|
|
519
|
+
body: string[];
|
|
520
|
+
line: string[];
|
|
521
|
+
title: string[];
|
|
522
|
+
description: string[];
|
|
523
|
+
meta: string[];
|
|
524
|
+
value: string[];
|
|
525
|
+
chevron: string[];
|
|
526
|
+
}>>;
|
|
527
|
+
//#endregion
|
|
528
|
+
//#region src/components/list-row/list-row.d.ts
|
|
529
|
+
type ListRowGroupProps = useRender.ComponentProps<"div">;
|
|
530
|
+
/** An inset group: rows wrapped in a card (surface, hairline, radius-lg). */
|
|
531
|
+
declare function ListRowGroup({ className, render, ...props }: ListRowGroupProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
532
|
+
type ListRowProps = useRender.ComponentProps<"button"> & Pick<VariantProps<typeof listRow>, "variant"> & {
|
|
533
|
+
/** Something waits for you here (bold title, ink preview), the place is
|
|
534
|
+
* muted (ink-2 title), or you are not in it yet (ink-3 title and preview).
|
|
535
|
+
* A disabled row ignores it: everything is ink-disabled. */
|
|
536
|
+
tone?: RowTone;
|
|
537
|
+
/** The item open beside the list: the row takes the cyan wash and stops
|
|
538
|
+
* reacting to hover. Say why it is selected with `aria-current` or
|
|
539
|
+
* `aria-selected` yourself. */
|
|
540
|
+
selected?: boolean;
|
|
541
|
+
/** `false` renders a display-only row: a `div` with no hover or press,
|
|
542
|
+
* for a row whose controls (a switch, a button) are its only targets. */
|
|
543
|
+
interactive?: boolean;
|
|
544
|
+
};
|
|
545
|
+
/**
|
|
546
|
+
* One row of a list. It renders a `button` by default; pass `render={<a />}`
|
|
547
|
+
* (or a router link) for a row that goes somewhere. Children are the leading
|
|
548
|
+
* block (an avatar, a channel or icon tile, `ListRowIcon`), `ListRowBody`, and
|
|
549
|
+
* anything trailing (a value, a badge, a switch, `ListRowChevron`).
|
|
550
|
+
*/
|
|
551
|
+
declare function ListRow({ variant, tone, selected, interactive, className, render, ...props }: ListRowProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
552
|
+
type ListRowIconProps = useRender.ComponentProps<"span">;
|
|
553
|
+
/** A 20px leading icon in ink-3: entry rows and settings. */
|
|
554
|
+
declare function ListRowIcon({ className, render, ...props }: ListRowIconProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
555
|
+
type ListRowBodyProps = useRender.ComponentProps<"span">;
|
|
556
|
+
/** The text column: the title and the preview, or a `ListRowTop` and a `ListRowBottom`. */
|
|
557
|
+
declare function ListRowBody({ className, render, ...props }: ListRowBodyProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
558
|
+
type ListRowTopProps = useRender.ComponentProps<"span">;
|
|
559
|
+
/** The first line: the title, then the time. */
|
|
560
|
+
declare function ListRowTop({ className, render, ...props }: ListRowTopProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
561
|
+
type ListRowBottomProps = useRender.ComponentProps<"span">;
|
|
562
|
+
/** The second line: the preview, then at most one badge. */
|
|
563
|
+
declare function ListRowBottom({ className, render, ...props }: ListRowBottomProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
564
|
+
type ListRowTitleProps = useRender.ComponentProps<"span">;
|
|
565
|
+
/** 16/24 600 on one line; the row's tone sets its weight and ink. */
|
|
566
|
+
declare function ListRowTitle({ className, render, ...props }: ListRowTitleProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
567
|
+
type ListRowDescriptionProps = useRender.ComponentProps<"span"> & {
|
|
568
|
+
/** Let the text run onto more lines instead of truncating: a setting's
|
|
569
|
+
* consequence. */
|
|
570
|
+
wrap?: boolean;
|
|
571
|
+
};
|
|
572
|
+
/** The preview (who spoke first: "Wug: …") or a setting's consequence, 14/20 ink-2. */
|
|
573
|
+
declare function ListRowDescription({ className, render, wrap, ...props }: ListRowDescriptionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
574
|
+
type ListRowMetaProps = useRender.ComponentProps<"span">;
|
|
575
|
+
/** Machine-written facts in Space Mono 12, ink-3: the time, a gray count. */
|
|
576
|
+
declare function ListRowMeta({ className, render, ...props }: ListRowMetaProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
577
|
+
type ListRowValueProps = useRender.ComponentProps<"span">;
|
|
578
|
+
/** A setting's current value on the right, 15/20 ink-3, at most 45% of the row. */
|
|
579
|
+
declare function ListRowValue({ className, render, ...props }: ListRowValueProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
580
|
+
type ListRowChevronProps = useRender.ComponentProps<"span">;
|
|
581
|
+
/** The ink-3 arrow of a row that opens another page. */
|
|
582
|
+
declare function ListRowChevron({ className, render, ...props }: ListRowChevronProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
583
|
+
//#endregion
|
|
356
584
|
//#region src/lib/presence.d.ts
|
|
357
585
|
/**
|
|
358
586
|
* The five status lights of the design system. Each colour is a fixed
|
|
@@ -607,6 +835,122 @@ type DropdownMenuLinkItemProps = StyledProps<Menu.LinkItem.Props> & {
|
|
|
607
835
|
*/
|
|
608
836
|
declare function DropdownMenuLinkItem({ current, className, children, ...props }: DropdownMenuLinkItemProps): import("react").JSX.Element;
|
|
609
837
|
//#endregion
|
|
838
|
+
//#region src/components/mobile-nav/mobile-nav.d.ts
|
|
839
|
+
type MobileNavRootProps = useRender.ComponentProps<"nav">;
|
|
840
|
+
declare function MobileNavRoot({ className, render, ...props }: MobileNavRootProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
841
|
+
type MobileNavItemProps = useRender.ComponentProps<"button"> & {
|
|
842
|
+
nativeButton?: boolean;
|
|
843
|
+
selected?: boolean;
|
|
844
|
+
};
|
|
845
|
+
declare function MobileNavItem({ nativeButton, selected, className, render, ...props }: MobileNavItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
846
|
+
type MobileNavLabelProps = useRender.ComponentProps<"span">;
|
|
847
|
+
declare function MobileNavLabel({ className, render, ...props }: MobileNavLabelProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
848
|
+
//#endregion
|
|
849
|
+
//#region src/components/popover/popover.d.ts
|
|
850
|
+
type PopoverProps = Popover.Root.Props;
|
|
851
|
+
declare function Popover$1(props: PopoverProps): import("react").JSX.Element;
|
|
852
|
+
type PopoverTriggerProps = StyledProps<Popover.Trigger.Props>;
|
|
853
|
+
declare function PopoverTrigger({ className, ...props }: PopoverTriggerProps): import("react").JSX.Element;
|
|
854
|
+
type PopoverPortalProps = Popover.Portal.Props;
|
|
855
|
+
declare function PopoverPortal(props: PopoverPortalProps): import("react").JSX.Element;
|
|
856
|
+
type PopoverPopupProps = ComponentPropsWithRef<"div">;
|
|
857
|
+
declare function PopoverPopup({ className, ...props }: PopoverPopupProps): import("react").JSX.Element;
|
|
858
|
+
type PopoverContentProps = StyledProps<Popover.Popup.Props> & Pick<Popover.Positioner.Props, "align" | "alignOffset" | "anchor" | "arrowPadding" | "collisionAvoidance" | "collisionBoundary" | "collisionPadding" | "disableAnchorTracking" | "positionMethod" | "side" | "sideOffset" | "sticky"> & {
|
|
859
|
+
container?: PopoverPortalProps["container"];
|
|
860
|
+
portalProps?: PopoverPortalProps;
|
|
861
|
+
};
|
|
862
|
+
declare function PopoverContent({ align, alignOffset, anchor, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, disableAnchorTracking, positionMethod, side, sideOffset, sticky, container, portalProps, className, ...props }: PopoverContentProps): import("react").JSX.Element;
|
|
863
|
+
type PopoverViewportProps = StyledProps<Popover.Viewport.Props>;
|
|
864
|
+
declare function PopoverViewport({ className, ...props }: PopoverViewportProps): import("react").JSX.Element;
|
|
865
|
+
type PopoverHeaderProps = ComponentPropsWithRef<"div">;
|
|
866
|
+
declare function PopoverHeader({ className, ...props }: PopoverHeaderProps): import("react").JSX.Element;
|
|
867
|
+
type PopoverSeparatorProps = StyledProps<ComponentPropsWithRef<"div">>;
|
|
868
|
+
declare function PopoverSeparator({ className, ...props }: PopoverSeparatorProps): import("react").JSX.Element;
|
|
869
|
+
type PopoverTitleProps = StyledProps<Popover.Title.Props>;
|
|
870
|
+
declare function PopoverTitle({ className, ...props }: PopoverTitleProps): import("react").JSX.Element;
|
|
871
|
+
type PopoverDescriptionProps = StyledProps<Popover.Description.Props>;
|
|
872
|
+
declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): import("react").JSX.Element;
|
|
873
|
+
type PopoverCloseProps = StyledProps<Popover.Close.Props>;
|
|
874
|
+
declare function PopoverClose({ className, ...props }: PopoverCloseProps): import("react").JSX.Element;
|
|
875
|
+
type PopoverArrowProps = StyledProps<Popover.Arrow.Props>;
|
|
876
|
+
declare function PopoverArrow({ className, ...props }: PopoverArrowProps): import("react").JSX.Element;
|
|
877
|
+
type PopoverBackdropProps = StyledProps<Popover.Backdrop.Props>;
|
|
878
|
+
declare function PopoverBackdrop({ className, ...props }: PopoverBackdropProps): import("react").JSX.Element;
|
|
879
|
+
type PopoverBodyProps = ComponentPropsWithRef<"div">;
|
|
880
|
+
/** The panel's text: a `PopoverTitle` and a `PopoverDescription`, 16px in from its edges. */
|
|
881
|
+
declare function PopoverBody({ className, ...props }: PopoverBodyProps): import("react").JSX.Element;
|
|
882
|
+
type PopoverActionsProps = ComponentPropsWithRef<"div">;
|
|
883
|
+
/** The panel's buttons, at its end, under `PopoverBody`: the way out first, then the confirm button. */
|
|
884
|
+
declare function PopoverActions({ className, ...props }: PopoverActionsProps): import("react").JSX.Element;
|
|
885
|
+
//#endregion
|
|
886
|
+
//#region src/components/mobile-nav/mobile-nav-server.d.ts
|
|
887
|
+
type MobileNavServerPopoverProps = Omit<PopoverProps, "handle">;
|
|
888
|
+
/** The root: owns the popover's open state, like `Popover` (`open`, `onOpenChange`). */
|
|
889
|
+
declare function MobileNavServerPopover(props: MobileNavServerPopoverProps): import("react").JSX.Element;
|
|
890
|
+
type MobileNavServerItemProps = Omit<MobileNavItemProps, "selected" | "render" | "nativeButton">;
|
|
891
|
+
/**
|
|
892
|
+
* The tab: the server's avatar and its name in `MobileNavLabel`, as children.
|
|
893
|
+
* A press opens the popover, and so does holding it for 500ms (the long press
|
|
894
|
+
* of raft-ui's menus). Lifting the finger after a hold never closes it: the
|
|
895
|
+
* click that ends the hold is not a press, whether the hold opened the
|
|
896
|
+
* popover or found it open.
|
|
897
|
+
* It is never `selected`: it holds no page.
|
|
898
|
+
*/
|
|
899
|
+
declare function MobileNavServerItem({ className, id, ref, onClick, onContextMenu, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, onPointerLeave, ...props }: MobileNavServerItemProps): import("react").JSX.Element;
|
|
900
|
+
type MobileNavServerPopoverContentProps = PopoverContentProps;
|
|
901
|
+
/**
|
|
902
|
+
* The popover above the tab bar, 8px from each side of it and 8px above it,
|
|
903
|
+
* as tall as its content and at most 60% of the screen. It stops below the
|
|
904
|
+
* top safe area (a notch in a standalone web app): Base UI's collision padding
|
|
905
|
+
* takes only pixels, so the height cap subtracts `env(safe-area-inset-top)`.
|
|
906
|
+
* The bottom needs none: the tab bar under the popover already pads the
|
|
907
|
+
* bottom safe area. A column:
|
|
908
|
+
* `MobileNavServerPopoverList` takes the room left and scrolls, and the
|
|
909
|
+
* destinations and the footer after it stay in view.
|
|
910
|
+
*/
|
|
911
|
+
declare function MobileNavServerPopoverContent({ anchor, side, align, sideOffset, collisionPadding, className, ...props }: MobileNavServerPopoverContentProps): import("react").JSX.Element;
|
|
912
|
+
type MobileNavServerPopoverListProps = ComponentPropsWithRef<"div">;
|
|
913
|
+
/** The server list: takes the room left in the popover and scrolls inside it. */
|
|
914
|
+
declare function MobileNavServerPopoverList({ className, ...props }: MobileNavServerPopoverListProps): import("react").JSX.Element;
|
|
915
|
+
type MobileNavServerPopoverGroupProps = ComponentPropsWithRef<"div">;
|
|
916
|
+
/** Rows that always stay in view, such as the footer actions. */
|
|
917
|
+
declare function MobileNavServerPopoverGroup({ className, ...props }: MobileNavServerPopoverGroupProps): import("react").JSX.Element;
|
|
918
|
+
type MobileNavServerPopoverRowProps = ComponentPropsWithRef<"button">;
|
|
919
|
+
/**
|
|
920
|
+
* One row at the option height of every popup list (`py-option-inset`, 36px
|
|
921
|
+
* for one line; a second line adds its own height and nothing else): a 20px
|
|
922
|
+
* avatar or a 16px icon, `MobileNavServerPopoverRowLabel` (or a
|
|
923
|
+
* `MobileNavServerPopoverRowBody` with a description under the label), then
|
|
924
|
+
* anything trailing (a check, a count), centered on the row.
|
|
925
|
+
* `aria-current="true"` marks the current server in bold.
|
|
926
|
+
*/
|
|
927
|
+
declare function MobileNavServerPopoverRow({ className, type, ...props }: MobileNavServerPopoverRowProps): import("react").JSX.Element;
|
|
928
|
+
type MobileNavServerPopoverRowLabelProps = ComponentPropsWithRef<"span">;
|
|
929
|
+
/** A row's label: takes the room and truncates. */
|
|
930
|
+
declare function MobileNavServerPopoverRowLabel({ className, ...props }: MobileNavServerPopoverRowLabelProps): import("react").JSX.Element;
|
|
931
|
+
type MobileNavServerPopoverDestinationsProps = ComponentPropsWithRef<"div">;
|
|
932
|
+
/** The server's own pages, side by side in equal cells; a `group`, named with `aria-label`. */
|
|
933
|
+
declare function MobileNavServerPopoverDestinations({ className, ...props }: MobileNavServerPopoverDestinationsProps): import("react").JSX.Element;
|
|
934
|
+
type MobileNavServerPopoverDestinationProps = ComponentPropsWithRef<"button">;
|
|
935
|
+
/**
|
|
936
|
+
* One of the server's pages: a 20px icon over a short label in a `span`, which
|
|
937
|
+
* truncates. Something new on that page (a feedback reply, a computer that
|
|
938
|
+
* needs attention) is an `accent` `Status` child, the attention dot at the
|
|
939
|
+
* icon's top-right corner: the server tab's avatar never carries it.
|
|
940
|
+
*/
|
|
941
|
+
declare function MobileNavServerPopoverDestination({ className, type, ...props }: MobileNavServerPopoverDestinationProps): import("react").JSX.Element;
|
|
942
|
+
type MobileNavServerPopoverRowBodyProps = ComponentPropsWithRef<"span">;
|
|
943
|
+
/**
|
|
944
|
+
* The text of a two-line row: `MobileNavServerPopoverRowLabel`, then
|
|
945
|
+
* `MobileNavServerPopoverRowDescription` under it. The second line adds its
|
|
946
|
+
* own height and nothing else; the avatar and the trailing check or count
|
|
947
|
+
* center on both lines.
|
|
948
|
+
*/
|
|
949
|
+
declare function MobileNavServerPopoverRowBody({ className, ...props }: MobileNavServerPopoverRowBodyProps): import("react").JSX.Element;
|
|
950
|
+
type MobileNavServerPopoverRowDescriptionProps = ComponentPropsWithRef<"span">;
|
|
951
|
+
/** A row's second line, such as a server's address: muted Space Mono; truncates. */
|
|
952
|
+
declare function MobileNavServerPopoverRowDescription({ className, ...props }: MobileNavServerPopoverRowDescriptionProps): import("react").JSX.Element;
|
|
953
|
+
//#endregion
|
|
610
954
|
//#region src/components/tooltip/tooltip.d.ts
|
|
611
955
|
type TooltipProviderProps = Tooltip.Provider.Props;
|
|
612
956
|
declare function TooltipProvider({ delay, ...props }: TooltipProviderProps): import("react").JSX.Element;
|
|
@@ -622,6 +966,45 @@ type TooltipContentProps = StyledProps<Tooltip.Popup.Props> & Pick<Tooltip.Posit
|
|
|
622
966
|
};
|
|
623
967
|
declare function TooltipContent({ align, alignOffset, anchor, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, disableAnchorTracking, positionMethod, side, sideOffset, sticky, container, portalProps, className, children, ...props }: TooltipContentProps): import("react").JSX.Element;
|
|
624
968
|
//#endregion
|
|
969
|
+
//#region src/components/preview-card/preview-card.d.ts
|
|
970
|
+
type PreviewCardProps = PreviewCard.Root.Props;
|
|
971
|
+
declare function PreviewCard$1(props: PreviewCardProps): import("react").JSX.Element;
|
|
972
|
+
type PreviewCardTriggerProps = StyledProps<PreviewCard.Trigger.Props>;
|
|
973
|
+
declare function PreviewCardTrigger({ delay, closeDelay, className, ...props }: PreviewCardTriggerProps): import("react").JSX.Element;
|
|
974
|
+
type PreviewCardPortalProps = PreviewCard.Portal.Props;
|
|
975
|
+
declare function PreviewCardPortal(props: PreviewCardPortalProps): import("react").JSX.Element;
|
|
976
|
+
type PreviewCardPopupProps = ComponentPropsWithRef<"div">;
|
|
977
|
+
declare function PreviewCardPopup({ className, ...props }: PreviewCardPopupProps): import("react").JSX.Element;
|
|
978
|
+
type PreviewCardContentProps = StyledProps<PreviewCard.Popup.Props> & Pick<PreviewCard.Positioner.Props, "align" | "alignOffset" | "anchor" | "arrowPadding" | "collisionAvoidance" | "collisionBoundary" | "collisionPadding" | "disableAnchorTracking" | "positionMethod" | "side" | "sideOffset" | "sticky"> & {
|
|
979
|
+
portalProps?: PreviewCardPortalProps;
|
|
980
|
+
};
|
|
981
|
+
declare function PreviewCardContent({ align, alignOffset, anchor, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, disableAnchorTracking, positionMethod, side, sideOffset, sticky, portalProps, className, ...props }: PreviewCardContentProps): import("react").JSX.Element;
|
|
982
|
+
type PreviewCardHeaderProps = ComponentPropsWithRef<"div">;
|
|
983
|
+
declare function PreviewCardHeader({ className, ...props }: PreviewCardHeaderProps): import("react").JSX.Element;
|
|
984
|
+
type PreviewCardSeparatorProps = StyledProps<ComponentPropsWithRef<"div">>;
|
|
985
|
+
declare function PreviewCardSeparator({ className, ...props }: PreviewCardSeparatorProps): import("react").JSX.Element;
|
|
986
|
+
type PreviewCardTitleProps = ComponentPropsWithRef<"p">;
|
|
987
|
+
declare function PreviewCardTitle({ className, ...props }: PreviewCardTitleProps): import("react").JSX.Element;
|
|
988
|
+
type PreviewCardDescriptionProps = ComponentPropsWithRef<"p">;
|
|
989
|
+
declare function PreviewCardDescription({ className, ...props }: PreviewCardDescriptionProps): import("react").JSX.Element;
|
|
990
|
+
type PreviewCardArrowProps = StyledProps<PreviewCard.Arrow.Props>;
|
|
991
|
+
declare function PreviewCardArrow({ className, ...props }: PreviewCardArrowProps): import("react").JSX.Element;
|
|
992
|
+
type PreviewCardBodyProps = ComponentPropsWithRef<"div">;
|
|
993
|
+
/** The item card's block: the id line, the title and the details row, in that order. */
|
|
994
|
+
declare function PreviewCardBody({ className, ...props }: PreviewCardBodyProps): import("react").JSX.Element;
|
|
995
|
+
type PreviewCardEyebrowProps = ComponentPropsWithRef<"p">;
|
|
996
|
+
/** The muted line above the title that identifies the item, such as its id. One line, truncated. */
|
|
997
|
+
declare function PreviewCardEyebrow({ className, ...props }: PreviewCardEyebrowProps): import("react").JSX.Element;
|
|
998
|
+
type PreviewCardMetaProps = ComponentPropsWithRef<"div">;
|
|
999
|
+
/** The row under the title: one state chip, then muted details. Wraps when it runs out of room. */
|
|
1000
|
+
declare function PreviewCardMeta({ className, ...props }: PreviewCardMetaProps): import("react").JSX.Element;
|
|
1001
|
+
type PreviewCardActionsProps = ComponentPropsWithRef<"div">;
|
|
1002
|
+
/** The row of at most two buttons. */
|
|
1003
|
+
declare function PreviewCardActions({ className, ...props }: PreviewCardActionsProps): import("react").JSX.Element;
|
|
1004
|
+
type PreviewCardFooterProps = ComponentPropsWithRef<"p">;
|
|
1005
|
+
/** The caption under a hairline at the bottom of the card: where the item comes from. */
|
|
1006
|
+
declare function PreviewCardFooter({ className, ...props }: PreviewCardFooterProps): import("react").JSX.Element;
|
|
1007
|
+
//#endregion
|
|
625
1008
|
//#region src/components/avatar/avatar.d.ts
|
|
626
1009
|
declare const avatar: import("tailwind-variants/lite").TVReturnType<{
|
|
627
1010
|
type: {
|
|
@@ -878,8 +1261,17 @@ declare const messageItem: import("tailwind-variants/lite").TVReturnType<{
|
|
|
878
1261
|
type MessageItemVariantProps = VariantProps<typeof messageItem>;
|
|
879
1262
|
//#endregion
|
|
880
1263
|
//#region src/components/message-item/message-item-root.d.ts
|
|
881
|
-
type MessageItemProps = useRender.ComponentProps<"div"> & Pick<MessageItemVariantProps, "compact"
|
|
882
|
-
|
|
1264
|
+
type MessageItemProps = useRender.ComponentProps<"div"> & Pick<MessageItemVariantProps, "compact"> & {
|
|
1265
|
+
/**
|
|
1266
|
+
* The message someone just jumped to: the row shows `info-soft` at once
|
|
1267
|
+
* and fades it out by `LOCATED_MS` (design/foundations/states.md#located).
|
|
1268
|
+
* Pass `useLocated(request)`, which turns it off after `LOCATED_MS` and
|
|
1269
|
+
* restarts it on the next jump; a search match, a checked row or an open
|
|
1270
|
+
* popup keeps its own fill instead.
|
|
1271
|
+
*/
|
|
1272
|
+
located?: boolean;
|
|
1273
|
+
};
|
|
1274
|
+
declare function MessageItem({ className, compact, located, render, ...props }: MessageItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
883
1275
|
//#endregion
|
|
884
1276
|
//#region src/components/message-item/message-item-gutter.d.ts
|
|
885
1277
|
type MessageItemGutterProps = useRender.ComponentProps<"div">;
|
|
@@ -1047,18 +1439,41 @@ type MessageReferenceTextProps = SpanProps$1 & {
|
|
|
1047
1439
|
declare function MessageReferenceText({ className, render, variant, ...props }: MessageReferenceTextProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1048
1440
|
type MessageReferenceIndicatorProps = useRender.ComponentProps<"span">;
|
|
1049
1441
|
declare function MessageReferenceIndicator({ className, render, ...props }: MessageReferenceIndicatorProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1442
|
+
type MessageReferenceReadMarkProps = useRender.ComponentProps<"span">;
|
|
1443
|
+
/**
|
|
1444
|
+
* The read receipt on a mention: a muted check after the mention's text, once
|
|
1445
|
+
* the one mentioned has read the message. Put it last inside the mention, and
|
|
1446
|
+
* render nothing until then. The check is decorative; `children` is what a
|
|
1447
|
+
* screen reader says instead ("Read"), visually hidden.
|
|
1448
|
+
*/
|
|
1449
|
+
declare function MessageReferenceReadMark({ children, className, render, ...props }: MessageReferenceReadMarkProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1050
1450
|
type MessageReferenceChipProps = SpanProps$1 & {
|
|
1051
1451
|
variant?: MessageReferenceChipVariant;
|
|
1452
|
+
/**
|
|
1453
|
+
* Stops the chip at `min(100%, 24em)`; a longer `MessageReferenceLabel`
|
|
1454
|
+
* truncates at the end. For words Raft doesn't write, such as an app's title.
|
|
1455
|
+
*/
|
|
1456
|
+
capped?: boolean;
|
|
1052
1457
|
};
|
|
1053
|
-
declare function MessageReferenceChip({ className, render, variant, ...props }: MessageReferenceChipProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1458
|
+
declare function MessageReferenceChip({ className, render, variant, capped, ...props }: MessageReferenceChipProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1054
1459
|
type MessageReferenceLabelProps = useRender.ComponentProps<"span">;
|
|
1055
1460
|
declare function MessageReferenceLabel({ className, render, ...props }: MessageReferenceLabelProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1056
1461
|
type MessageReferenceSuffixProps = useRender.ComponentProps<"span">;
|
|
1057
1462
|
/** A short note after a chip's label in muted machine type, such as `msg` on a
|
|
1058
1463
|
* link to a message. It lines up with the label by the middle of its letters. */
|
|
1059
1464
|
declare function MessageReferenceSuffix({ className, render, ...props }: MessageReferenceSuffixProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1060
|
-
type
|
|
1061
|
-
|
|
1465
|
+
type MessageReferenceIconProps = useRender.ComponentProps<"span">;
|
|
1466
|
+
/**
|
|
1467
|
+
* The chip's leading icon when it is not a plain svg: an image or a `3xs`
|
|
1468
|
+
* Avatar, such as an app's registered icon. It holds one child at 14px,
|
|
1469
|
+
* centred on the chip. Put it first in the chip.
|
|
1470
|
+
*/
|
|
1471
|
+
declare function MessageReferenceIcon({ className, render, ...props }: MessageReferenceIconProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1472
|
+
type MessageReferencePendingProps = SpanProps$1 & {
|
|
1473
|
+
/** The same cap as `MessageReferenceChip`'s, so the chip that replaces it keeps its width. */
|
|
1474
|
+
capped?: boolean;
|
|
1475
|
+
};
|
|
1476
|
+
declare function MessageReferencePending({ className, render, capped, ...props }: MessageReferencePendingProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1062
1477
|
type MessageReferenceUnavailableProps = SpanProps$1;
|
|
1063
1478
|
declare function MessageReferenceUnavailable({ className, render, ...props }: MessageReferenceUnavailableProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1064
1479
|
//#endregion
|
|
@@ -1156,4 +1571,74 @@ type MessageListJumpPillDismissProps = StyledProps<Button.Props> & DataAttribute
|
|
|
1156
1571
|
};
|
|
1157
1572
|
declare function MessageListJumpPillDismiss({ className, children, render, nativeButton, ...props }: MessageListJumpPillDismissProps): import("react").JSX.Element;
|
|
1158
1573
|
//#endregion
|
|
1159
|
-
|
|
1574
|
+
//#region src/components/inbox-item/inbox-item.d.ts
|
|
1575
|
+
/**
|
|
1576
|
+
* `compact`: one line for the title and one for the excerpt, the row centred
|
|
1577
|
+
* on its leading visual, and the trailing column set on the same two 20px
|
|
1578
|
+
* lines (a conversation list). Leave it unset for the default two-line rows.
|
|
1579
|
+
*/
|
|
1580
|
+
type InboxItemDensity = "compact";
|
|
1581
|
+
type InboxItemProps = useRender.ComponentProps<"div"> & {
|
|
1582
|
+
active?: boolean;
|
|
1583
|
+
density?: InboxItemDensity;
|
|
1584
|
+
disabled?: boolean;
|
|
1585
|
+
};
|
|
1586
|
+
declare function InboxItem({ active, className, density, disabled, render, ...props }: InboxItemProps): import("react").JSX.Element;
|
|
1587
|
+
type InboxItemTriggerProps = Omit<useRender.ComponentProps<"button">, "type">;
|
|
1588
|
+
declare function InboxItemTrigger({ className, onClick, render, ...props }: InboxItemTriggerProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1589
|
+
/**
|
|
1590
|
+
* A leading visual before the content: a 36px avatar, a channel tile. The
|
|
1591
|
+
* divider between rows starts after it.
|
|
1592
|
+
*/
|
|
1593
|
+
type InboxItemLeadingProps = useRender.ComponentProps<"div">;
|
|
1594
|
+
declare function InboxItemLeading({ className, render, ...props }: InboxItemLeadingProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1595
|
+
type InboxItemSelectionProps = useRender.ComponentProps<"div">;
|
|
1596
|
+
declare function InboxItemSelection({ className, render, ...props }: InboxItemSelectionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1597
|
+
type InboxItemContentProps = useRender.ComponentProps<"div">;
|
|
1598
|
+
declare function InboxItemContent({ className, render, ...props }: InboxItemContentProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1599
|
+
type InboxItemContextProps = useRender.ComponentProps<"div">;
|
|
1600
|
+
declare function InboxItemContext({ className, render, ...props }: InboxItemContextProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1601
|
+
type InboxItemSubtitleProps = useRender.ComponentProps<"div">;
|
|
1602
|
+
declare function InboxItemSubtitle({ className, render, ...props }: InboxItemSubtitleProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1603
|
+
type InboxItemHeadingProps = useRender.ComponentProps<"div">;
|
|
1604
|
+
declare function InboxItemHeading({ className, render, ...props }: InboxItemHeadingProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1605
|
+
type InboxItemTitleProps = useRender.ComponentProps<"div">;
|
|
1606
|
+
declare function InboxItemTitle({ className, render, ...props }: InboxItemTitleProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1607
|
+
type InboxItemTrailingProps = useRender.ComponentProps<"div">;
|
|
1608
|
+
declare function InboxItemTrailing({ className, render, ...props }: InboxItemTrailingProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1609
|
+
type InboxItemTimestampProps = useRender.ComponentProps<"span">;
|
|
1610
|
+
declare function InboxItemTimestamp({ className, render, ...props }: InboxItemTimestampProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1611
|
+
/**
|
|
1612
|
+
* Marks at the end of a line: a mention, muted, an unread count. A 20px line
|
|
1613
|
+
* of its own in `InboxItemTrailing`, so it sits beside the excerpt.
|
|
1614
|
+
*/
|
|
1615
|
+
type InboxItemMarksProps = useRender.ComponentProps<"div">;
|
|
1616
|
+
declare function InboxItemMarks({ className, render, ...props }: InboxItemMarksProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Takes the pointer inside the content, which otherwise lets it through to
|
|
1619
|
+
* the trigger, so a badge's tooltip opens on hover. A click on it still opens
|
|
1620
|
+
* the item: it is passed on to `InboxItemTrigger`.
|
|
1621
|
+
*/
|
|
1622
|
+
type InboxItemHoverTargetProps = useRender.ComponentProps<"span">;
|
|
1623
|
+
declare function InboxItemHoverTarget({ className, onClick, render, ...props }: InboxItemHoverTargetProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1624
|
+
type InboxItemBodyProps = useRender.ComponentProps<"p">;
|
|
1625
|
+
declare function InboxItemBody({ className, render, ...props }: InboxItemBodyProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1626
|
+
type InboxItemMessageProps = useRender.ComponentProps<"p">;
|
|
1627
|
+
declare function InboxItemMessage({ className, render, ...props }: InboxItemMessageProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1628
|
+
type InboxItemSenderProps = useRender.ComponentProps<"span">;
|
|
1629
|
+
declare function InboxItemSender({ className, render, ...props }: InboxItemSenderProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1630
|
+
type InboxItemMetadataProps = useRender.ComponentProps<"div">;
|
|
1631
|
+
declare function InboxItemMetadata({ className, render, ...props }: InboxItemMetadataProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1632
|
+
type InboxItemActionsProps = useRender.ComponentProps<"div"> & {
|
|
1633
|
+
/**
|
|
1634
|
+
* `hover`: with a mouse, the actions stay hidden until the row is hovered,
|
|
1635
|
+
* holds focus, is `active` or has a menu open, and then take the place of
|
|
1636
|
+
* the rest of `InboxItemTrailing` (the timestamp, the marks, the attention
|
|
1637
|
+
* dot), which steps aside. On a touch screen (`pointer: coarse`) they show
|
|
1638
|
+
* at rest and the rest of the trailing column moves over to make room.
|
|
1639
|
+
*/
|
|
1640
|
+
reveal?: "hover";
|
|
1641
|
+
};
|
|
1642
|
+
declare function InboxItemActions({ className, render, reveal, ...props }: InboxItemActionsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
1643
|
+
//#endregion
|
|
1644
|
+
export { MessageListNoticeProps as $, DropdownMenuCheckboxItemIndicator as $a, MobileNavServerPopoverDestinationProps as $i, MessageItemToolbarButtonProps as $n, ListRowChevron as $o, AvatarGroup as $r, DialogTriggerProps as $s, MessageReferenceLabelProps as $t, InboxItemTimestamp as A, PopoverHeader as Aa, PreviewCardProps as Ai, MessageReactionTooltipContent as An, DropdownMenuShortcutProps as Ao, MessageItemContentProps as Ar, DialogContentProps as As, MessageQuotedPreviewUnavailable as At, MessageListJumpPill as B, PopoverTitleProps as Ba, TooltipPortal as Bi, MessageReactionTooltipSeparator as Bn, KbdProps as Bo, MessageItemAvatarSlotProps as Br, DialogNavProps as Bs, MessageMultiSelectCheckboxProps as Bt, InboxItemProps as C, PopoverBodyProps as Ca, PreviewCardHeaderProps as Ci, MessageReactionPickerContentProps as Cn, DropdownMenuRadioItem as Co, MessageItemTime as Cr, DialogSheetContentProps as Cs, MessageQuotedPreviewProps as Ct, InboxItemSenderProps as D, PopoverContentProps as Da, PreviewCardPopupProps as Di, MessageReactionQuickButtonProps as Dn, DropdownMenuSeparator as Do, MessageItemBody as Dr, DialogClose as Ds, MessageQuotedPreviewThreadProps as Dt, InboxItemSender as E, PopoverContent as Ea, PreviewCardPopup as Ei, MessageReactionQuickButton as En, DropdownMenuRadioItemProps as Eo, MessageItemAttachmentsProps as Er, DialogBodyProps as Es, MessageQuotedPreviewThread as Et, InboxItemTrailingProps as F, PopoverPortalProps as Fa, PreviewCardTrigger as Fi, MessageReactionTooltipNameProps as Fn, DropdownMenuTrigger as Fo, MessageItemFooter as Fr, DialogFooterNoteProps as Fs, MessageTextSelectionToolbarProps as Ft, MessageListJumpPillProps as G, MobileNavItem as Ga, TooltipTrigger as Gi, MessageItemBadgeSeparatorProps as Gn, Checkbox$1 as Go, MessageItem as Gr, DialogProps as Gs, MessageMultiSelectToolbarProps as Gt, MessageListJumpPillDismissProps as H, PopoverTriggerProps as Ha, TooltipProps as Hi, MessageItemBadge as Hn, BadgeProps as Ho, MessageItemContinuationTimeProps as Hr, DialogOverlayProps as Hs, MessageMultiSelectToolbar as Ht, InboxItemTrigger as I, PopoverProps as Ia, PreviewCardTriggerProps as Ii, MessageReactionTooltipNameText as In, DropdownMenuTriggerProps as Io, MessageItemFooterProps as Ir, DialogFooterProps as Is, MessageTextSelectionToolbarSeparator as It, MessageListEndFade as J, MobileNavLabelProps as Ja, MobileNavServerItemProps as Ji, MessageItemReadReceiptProps as Jn, ListRow as Jo, AvatarBadge as Jr, DialogSurface as Js, MessageReferenceIcon as Jt, MessageListDateDivider as K, MobileNavItemProps as Ka, TooltipTriggerProps as Ki, MessageItemBadgeStatus as Kn, CheckboxProps as Ko, MessageItemProps as Kr, DialogSheetBack as Ks, MessageReferenceChip as Kt, InboxItemTriggerProps as L, PopoverSeparator as La, Tooltip$1 as Li, MessageReactionTooltipNameTextProps as Ln, Kbd as Lo, MessageItemSearchMatch as Lr, DialogHeader as Ls, MessageTextSelectionToolbarSeparatorProps as Lt, InboxItemTitle as M, PopoverPopup as Ma, PreviewCardSeparatorProps as Mi, MessageReactionTooltipMeta as Mn, DropdownMenuSubmenuProps as Mo, MessageItemEditedProps as Mr, DialogDescriptionProps as Ms, MessageTextSelectionToolbar as Mt, InboxItemTitleProps as N, PopoverPopupProps as Na, PreviewCardTitle as Ni, MessageReactionTooltipMetaProps as Nn, DropdownMenuSubmenuTrigger as No, MessageItemEmbedded as Nr, DialogFooter as Ns, MessageTextSelectionToolbarButton as Nt, InboxItemSubtitle as O, PopoverDescription as Oa, PreviewCardPortal as Oi, MessageReactionQuickRow as On, DropdownMenuSeparatorProps as Oo, MessageItemBodyProps as Or, DialogCloseProps as Os, MessageQuotedPreviewTimestamp as Ot, InboxItemTrailing as P, PopoverPortal as Pa, PreviewCardTitleProps as Pi, MessageReactionTooltipName as Pn, DropdownMenuSubmenuTriggerProps as Po, MessageItemEmbeddedProps as Pr, DialogFooterNote as Ps, MessageTextSelectionToolbarButtonProps as Pt, MessageListNotice as Q, DropdownMenuCheckboxItem as Qa, MobileNavServerPopoverDestination as Qi, MessageItemToolbarButton as Qn, ListRowBottomProps as Qo, AvatarFallbackProps as Qr, DialogTrigger as Qs, MessageReferenceLabel as Qt, MessageListJumpControls as R, PopoverSeparatorProps as Ra, TooltipContent as Ri, MessageReactionTooltipNames as Rn, KbdGroup as Ro, MessageItemSearchMatchProps as Rr, DialogHeaderProps as Rs, MessageMultiSelect as Rt, InboxItemMetadataProps as S, PopoverBody as Sa, PreviewCardHeader as Si, MessageReactionPickerContent as Sn, DropdownMenuRadioGroupProps as So, MessageItemSenderProps as Sr, DialogSheetContent as Ss, MessageQuotedPreviewLoadingProps as St, InboxItemSelectionProps as T, PopoverCloseProps as Ta, PreviewCardMetaProps as Ti, MessageReactionPickerStaticProps as Tn, DropdownMenuRadioItemIndicatorProps as To, MessageItemAttachments as Tr, DialogBody as Ts, MessageQuotedPreviewTextProps as Tt, MessageListJumpPillGroup as U, PopoverViewport as Ua, TooltipProvider as Ui, MessageItemBadgeProps as Un, CheckboxIndicator as Uo, MessageItemGutter as Ur, DialogPortal as Us, MessageMultiSelectToolbarActions as Ut, MessageListJumpPillDismiss as V, PopoverTrigger as Va, TooltipPortalProps as Vi, MessageReactionTooltipSeparatorProps as Vn, Badge as Vo, MessageItemContinuationTime as Vr, DialogOverlay as Vs, MessageMultiSelectProps as Vt, MessageListJumpPillGroupProps as W, PopoverViewportProps as Wa, TooltipProviderProps as Wi, MessageItemBadgeSeparator as Wn, CheckboxIndicatorProps as Wo, MessageItemGutterProps as Wr, DialogPortalProps as Ws, MessageMultiSelectToolbarActionsProps as Wt, MessageListHistoryLimited as X, MobileNavRootProps as Xa, MobileNavServerPopoverContent as Xi, MessageItemSavedIndicatorProps as Xn, ListRowBodyProps as Xo, AvatarBadgeProps as Xr, DialogTitle as Xs, MessageReferenceIndicator as Xt, MessageListEndFadeProps as Y, MobileNavRoot as Ya, MobileNavServerPopover as Yi, MessageItemSavedIndicator as Yn, ListRowBody as Yo, AvatarBadgeOffset as Yr, DialogSurfaceProps as Ys, MessageReferenceIconProps as Yt, MessageListHistoryLimitedProps as Z, DropdownMenu as Za, MobileNavServerPopoverContentProps as Zi, MessageItemToolbar as Zn, ListRowBottom as Zo, AvatarFallback as Zr, DialogTitleProps as Zs, MessageReferenceIndicatorProps as Zt, InboxItemMarks as _, PopoverActionsProps as _a, PreviewCardDescriptionProps as _i, MessageReactionCountProps as _n, DropdownMenuPopupProps as _o, MessageItemSenderBadgesProps as _r, TextLink as _s, MessageQuotedPreviewContent as _t, InboxItemBodyProps as a, MobileNavServerPopoverListProps as aa, DeprecatedButtonSize as ac, AvatarProps as ai, MessageReferenceSuffixProps as an, DropdownMenuFooterProps as ao, MessageItemDelegatedByButtonProps as ar, ListRowIcon as as, MessageQuotedPreviewAttachments as at, InboxItemMessageProps as b, PopoverBackdrop as ba, PreviewCardFooter as bi, MessageReactionGlyph as bn, DropdownMenuProps as bo, MessageItemSenderGroup as br, DialogCommit as bs, MessageQuotedPreviewHeaderProps as bt, InboxItemContext as c, MobileNavServerPopoverRowBody as ca, DataAttributes as cc, PreviewCardActions as ci, MessageReferenceUnavailable as cn, DropdownMenuItemCountProps as co, MessageItemDelegatedByProps as cr, ListRowMetaProps as cs, MessageQuotedPreviewAuthorDelegatedBy as ct, InboxItemHeading as d, MobileNavServerPopoverRowDescriptionProps as da, PreviewCardArrowProps as di, MessageReferenceTextVariant as dn, DropdownMenuItemProps as do, MessageItemInlineStatus as dr, ListRowTitleProps as ds, MessageQuotedPreviewAuthorMetaProps as dt, MobileNavServerPopoverDestinations as ea, PanelAction as ec, AvatarGroupCount as ei, MessageReferencePending as en, DropdownMenuCheckboxItemIndicatorProps as eo, MessageItemToolbarProps as er, ListRowChevronProps as es, MessageList as et, InboxItemHeadingProps as f, MobileNavServerPopoverRowLabel as fa, PreviewCardBody as fi, MessageReactionAddButton as fn, DropdownMenuLabel as fo, MessageItemInlineStatusProps as fr, ListRowTop as fs, MessageQuotedPreviewAuthorName as ft, InboxItemLeadingProps as g, PopoverActions as ga, PreviewCardDescription as gi, MessageReactionCount as gn, DropdownMenuPopup as go, MessageItemSenderBadges as gr, RowTone as gs, MessageQuotedPreviewChannelProps as gt, InboxItemLeading as h, Popover$1 as ha, PreviewCardContentProps as hi, MessageReactionChipProps as hn, DropdownMenuLinkItemProps as ho, MessageItemSender as hr, ListRowValueProps as hs, MessageQuotedPreviewChannel as ht, InboxItemBody as i, MobileNavServerPopoverList as ia, ButtonSize as ic, AvatarImageProps as ii, MessageReferenceSuffix as in, DropdownMenuFooter as io, MessageItemDelegatedByButton as ir, ListRowGroupProps as is, MessageQuotedPreviewAttachmentProps as it, InboxItemTimestampProps as j, PopoverHeaderProps as ja, PreviewCardSeparator as ji, MessageReactionTooltipContentProps as jn, DropdownMenuSubmenu as jo, MessageItemEdited as jr, DialogDescription as js, MessageQuotedPreviewUnavailableProps as jt, InboxItemSubtitleProps as k, PopoverDescriptionProps as ka, PreviewCardPortalProps as ki, MessageReactionQuickRowProps as kn, DropdownMenuShortcut as ko, MessageItemContent as kr, DialogContent as ks, MessageQuotedPreviewTimestampProps as kt, InboxItemContextProps as l, MobileNavServerPopoverRowBodyProps as la, StyledProps as lc, PreviewCardActionsProps as li, MessageReferenceUnavailableProps as ln, DropdownMenuItemLabel as lo, MessageItemHeader as lr, ListRowProps as ls, MessageQuotedPreviewAuthorDelegatedByProps as lt, InboxItemHoverTargetProps as m, MobileNavServerPopoverRowProps as ma, PreviewCardContent as mi, MessageReactionChip as mn, DropdownMenuLinkItem as mo, MessageItemMetaProps as mr, ListRowValue as ms, MessageQuotedPreviewAuthorProps as mt, InboxItemActions as n, MobileNavServerPopoverGroup as na, Button$1 as nc, AvatarGroupProps as ni, MessageReferenceReadMark as nn, DropdownMenuContent as no, MessageItemDelegatedAvatarProps as nr, ListRowDescriptionProps as ns, MessageQuotedPreview as nt, InboxItemContent as o, MobileNavServerPopoverProps as oa, buttonVariants as oc, AvatarSize as oi, MessageReferenceText as on, DropdownMenuItem as oo, MessageItemDelegatedByName as or, ListRowIconProps as os, MessageQuotedPreviewAttachmentsProps as ot, InboxItemHoverTarget as p, MobileNavServerPopoverRowLabelProps as pa, PreviewCardBodyProps as pi, MessageReactionAddButtonProps as pn, DropdownMenuLabelProps as po, MessageItemMeta as pr, ListRowTopProps as ps, MessageQuotedPreviewAuthorNameProps as pt, MessageListDateDividerProps as q, MobileNavLabel as qa, MobileNavServerItem as qi, MessageItemReadReceipt as qn, Presence as qo, Avatar$1 as qr, DialogSheetBackProps as qs, MessageReferenceChipProps as qt, InboxItemActionsProps as r, MobileNavServerPopoverGroupProps as ra, ButtonProps as rc, AvatarImage as ri, MessageReferenceReadMarkProps as rn, DropdownMenuContentProps as ro, MessageItemDelegatedBy as rr, ListRowGroup as rs, MessageQuotedPreviewAttachment as rt, InboxItemContentProps as s, MobileNavServerPopoverRow as sa, VariantProps as sc, PreviewCard$1 as si, MessageReferenceTextProps as sn, DropdownMenuItemCount as so, MessageItemDelegatedByNameProps as sr, ListRowMeta as ss, MessageQuotedPreviewAuthor as st, InboxItem as t, MobileNavServerPopoverDestinationsProps as ta, PanelActionProps as tc, AvatarGroupCountProps as ti, MessageReferencePendingProps as tn, DropdownMenuCheckboxItemProps as to, MessageItemDelegatedAvatar as tr, ListRowDescription as ts, MessageListProps as tt, InboxItemDensity as u, MobileNavServerPopoverRowDescription as ua, PreviewCardArrow as ui, MessageReferenceChipVariant as un, DropdownMenuItemLabelProps as uo, MessageItemHeaderProps as ur, ListRowTitle as us, MessageQuotedPreviewAuthorMeta as ut, InboxItemMarksProps as v, PopoverArrow as va, PreviewCardEyebrow as vi, MessageReactionErrorIndicator as vn, DropdownMenuPortal as vo, MessageItemSenderButton as vr, TextLinkProps as vs, MessageQuotedPreviewContentProps as vt, InboxItemSelection as w, PopoverClose as wa, PreviewCardMeta as wi, MessageReactionPickerStatic as wn, DropdownMenuRadioItemIndicator as wo, MessageItemTimeProps as wr, Dialog$1 as ws, MessageQuotedPreviewText as wt, InboxItemMetadata as x, PopoverBackdropProps as xa, PreviewCardFooterProps as xi, MessageReactionGlyphProps as xn, DropdownMenuRadioGroup as xo, MessageItemSenderGroupProps as xr, DialogCommitProps as xs, MessageQuotedPreviewLoading as xt, InboxItemMessage as y, PopoverArrowProps as ya, PreviewCardEyebrowProps as yi, MessageReactionErrorIndicatorProps as yn, DropdownMenuPortalProps as yo, MessageItemSenderButtonProps as yr, textLinkVariants as ys, MessageQuotedPreviewHeader as yt, MessageListJumpControlsProps as z, PopoverTitle as za, TooltipContentProps as zi, MessageReactionTooltipNamesProps as zn, KbdGroupProps as zo, MessageItemAvatarSlot as zr, DialogNav as zs, MessageMultiSelectCheckbox as zt };
|