@partrunner-ai/ui 2.4.4 → 2.5.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/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ButtonHTMLAttributes, ReactElement, ReactNode, HTMLAttributes, RefObject, Ref, InputHTMLAttributes, AriaAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, FieldsetHTMLAttributes, SelectHTMLAttributes, CSSProperties, HTMLAttributeAnchorTarget, ComponentType, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, RefAttributes, SetStateAction } from 'react';
2
+ import { ButtonHTMLAttributes, ReactElement, ReactNode, HTMLAttributes, RefObject, Ref, InputHTMLAttributes, AriaAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, FieldsetHTMLAttributes, SelectHTMLAttributes, CSSProperties, HTMLAttributeAnchorTarget, ComponentType, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, RefAttributes, SetStateAction, LiHTMLAttributes, MouseEventHandler } from 'react';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
 
5
5
  type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'glass' | 'danger' | 'success' | 'link';
@@ -1014,9 +1014,20 @@ interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
1014
1014
  interactive?: boolean;
1015
1015
  }
1016
1016
  declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
1017
- type TableHeadProps = ThHTMLAttributes<HTMLTableCellElement>;
1017
+ interface TableCellAlignProps {
1018
+ /**
1019
+ * Horizontal alignment of the cell text. Defaults to the start edge. `justify` and
1020
+ * `char` are the native HTML `align` values: they pass through as the attribute, no class.
1021
+ */
1022
+ align?: 'start' | 'center' | 'end' | 'left' | 'right' | 'justify' | 'char';
1023
+ /** A number column: end-aligned with tabular figures. Wins over `align`. */
1024
+ numeric?: boolean;
1025
+ }
1026
+ interface TableHeadProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, 'align'>, TableCellAlignProps {
1027
+ }
1018
1028
  declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
1019
- type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
1029
+ interface TableCellProps extends Omit<TdHTMLAttributes<HTMLTableCellElement>, 'align'>, TableCellAlignProps {
1030
+ }
1020
1031
  declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
1021
1032
  type TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
1022
1033
  declare const TableCaption: react.ForwardRefExoticComponent<TableCaptionProps & react.RefAttributes<HTMLTableCaptionElement>>;
@@ -1038,6 +1049,8 @@ interface TableColumn<T> {
1038
1049
  /** Without this the cell renders `row[key]` as text. */
1039
1050
  render?: (row: T, index: number) => ReactNode;
1040
1051
  align?: TableAlign;
1052
+ /** A number column: end-aligned with tabular figures. Wins over `align`. */
1053
+ numeric?: boolean;
1041
1054
  className?: string;
1042
1055
  headerClassName?: string;
1043
1056
  /**
@@ -2226,4 +2239,215 @@ interface PreparedCommentFile {
2226
2239
  }
2227
2240
  declare function prepareCommentFile(file: File): Promise<PreparedCommentFile>;
2228
2241
 
2229
- export { AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogMedia, type AlertDialogMediaProps, AlertDialogRoot, type AlertDialogRootProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AmbientBackground, type AmbientBackgroundProps, type AmbientBackgroundVariant, type AnchoredMenuOptions, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeTone, Button, type ButtonIcon, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarDate, type CalendarDisabledDates, type CalendarProps, type CalendarRange, type CalendarRangeProps, type CalendarSharedProps, type CalendarSingleProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, CardTitle, type CardTitleProps, type CardTone, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ChoiceGroupOrientation, type ChoiceOption, Combobox, type ComboboxOption, type ComboboxProps, type CommentAttachment, type CommentAuthor, type CommentAuthorKind, type CommentDraft, type CommentFollowState, type CommentMention, type CommentMentionCandidate, type CommentMentionKind, type CommentMessage, type CommentReaction, type CommentReplyRef, type CommentSegment, type CommentStatus, CommentThread, type CommentThreadProps, ConfirmDialog, type ConfirmDialogProps, CopyField, type CopyFieldProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerSize, type DateRange, DateRangeFilter, type DateRangeFilterLabels, type DateRangeFilterProps, type DateRangeFilterSize, type DateRangePreset, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogLayer, type DialogLayerAutoFocusEvent, type DialogLayerProps, type DialogPrimitiveSize, type DialogProps, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, DropdownMenu, type DropdownMenuAlign, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EMPTY_DATE_RANGE, EmptyState, type EmptyStateProps, FileDropzone, type FileDropzoneProps, type FileDropzoneSelectionSource, FilterChip, type FilterChipProps, FilterChipRow, type FilterChipRowProps, FormField, type FormFieldProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, IconTile, type IconTileProps, type IconTileSize, Input, type InputProps, type InputSize, Label, type LabelProps, type MenuPosition, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectVariant, type NavigationTabItem, NavigationTabs, type NavigationTabsLinkComponent, type NavigationTabsLinkProps, type NavigationTabsProps, OtpInput, type OtpInputProps, Page, PageHeader, type PageHeaderProps, type PageProps, PageSkeleton, type PageSkeletonProps, type PageSkeletonVariant, type PageWidth, Pagination, type PaginationLabels, type PaginationProps, type PaginationSummary, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, type PopoverPadding, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type PreparedCommentFile, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressDots, type ProgressDotsProps, ProgressRing, type ProgressRingProps, RadioGroup, type RadioGroupProps, RichSelect, RichSelectContent, type RichSelectContentProps, RichSelectEmpty, type RichSelectEmptyProps, RichSelectGroup, type RichSelectGroupProps, RichSelectItem, type RichSelectItemProps, RichSelectLabel, type RichSelectLabelProps, type RichSelectProps, RichSelectSearch, type RichSelectSearchProps, RichSelectSeparator, type RichSelectSeparatorProps, type RichSelectSize, RichSelectTrigger, type RichSelectTriggerProps, RichSelectValue, type RichSelectValueProps, SearchField, type SearchFieldProps, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, Select, type SelectOption, type SelectProps, type SelectSize, Separator, type SeparatorOrientation, type SeparatorProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetRoot, type SheetRootProps, type SheetSide, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SheetWidth, Skeleton, type SkeletonProps, type SkeletonShape, Slot, type SlotAllProps, type SlotProps, Spinner, type SpinnerProps, type SpinnerSize, StatTile, StatTileGrid, type StatTileGridColumns, type StatTileGridProps, type StatTileProps, type StatTone, StatusDot, type StatusDotProps, type StatusDotSize, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, TINT_TONES, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, type TableColumn, type TableDensity, TableFooter, type TableFooterProps, TableFrame, type TableFrameProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, type TableRootProps, TableRow, type TableRowProps, TableSkeleton, type TableSkeletonProps, Tabs, type TabsActivationMode, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsListVariant, type TabsOrientation, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type TextareaSize, type TintTone, Toolbar, ToolbarGroup, type ToolbarGroupProps, type ToolbarProps, ToolbarSpacer, type ToolbarSpacerProps, Tooltip, type TooltipProps, ValidationSummary, type ValidationSummaryError, type ValidationSummaryProps, activeMentionQuery, avatarInitials, commentDraftFromBody, commentPlainText, formatCalendarDate, formatDateRange, isCalendarDate, isSameDateRange, isValidDateRange, menuStyle, mergeCommentMessages, parseCalendarDate, parseCommentBody, prepareCommentFile, registerDialogLayerPortal, resolveActiveNavigationHref, serializeCalendarDate, serializeCommentDraft, toneFromString, useAnchoredMenu };
2242
+ type NoticeTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
2243
+ type NoticeSize = 'md' | 'sm';
2244
+ interface NoticeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
2245
+ /** Colour and meaning. Defaults to `info`. */
2246
+ tone?: NoticeTone;
2247
+ /** Short bold line above the body. */
2248
+ title?: ReactNode;
2249
+ /** Body text. */
2250
+ children?: ReactNode;
2251
+ /** Replaces the icon of the tone. `false` hides the icon. */
2252
+ icon?: ReactNode | false;
2253
+ /** Controls aligned to the end edge; they wrap under the text on narrow widths. */
2254
+ actions?: ReactNode;
2255
+ /** When given, a close button shows. The app owns what "dismissed" means. */
2256
+ onDismiss?: () => void;
2257
+ /** Accessible name of the close button. */
2258
+ dismissLabel?: string;
2259
+ size?: NoticeSize;
2260
+ }
2261
+ /**
2262
+ * A calm inline message inside a page or card. It is not a toast: it stays in
2263
+ * the flow and does not move. The role is `alert` for `danger` and `status`
2264
+ * for every other tone; a `role` passed by the caller wins.
2265
+ */
2266
+ declare const Notice: react.ForwardRefExoticComponent<NoticeProps & react.RefAttributes<HTMLDivElement>>;
2267
+
2268
+ type DetailListColumns = 1 | 2 | 3 | 4;
2269
+ type DetailListLayout = 'stacked' | 'inline';
2270
+ type DetailListDensity = 'comfortable' | 'compact';
2271
+ interface DetailListProps extends HTMLAttributes<HTMLDListElement> {
2272
+ /** Most columns on a wide container. Narrow widths collapse to one. Defaults to 2. */
2273
+ columns?: DetailListColumns;
2274
+ /**
2275
+ * `stacked` puts the label above the value. `inline` puts them on one row with a
2276
+ * hairline between rows, for narrow side panels. Ignores `columns`.
2277
+ */
2278
+ layout?: DetailListLayout;
2279
+ density?: DetailListDensity;
2280
+ }
2281
+ /**
2282
+ * The label/value facts of one record, as a `<dl>`. Label 12px muted, value
2283
+ * 14px; long values wrap. Put `DetailItem` children inside.
2284
+ */
2285
+ declare const DetailList: react.ForwardRefExoticComponent<DetailListProps & react.RefAttributes<HTMLDListElement>>;
2286
+ interface DetailItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
2287
+ label: ReactNode;
2288
+ /** The value. Null, undefined, `''` and `false` show `emptyText` instead. */
2289
+ children?: ReactNode;
2290
+ /** How many columns the item takes in a `stacked` list. */
2291
+ span?: 1 | 2 | 'full';
2292
+ /** Tabular figures; right-aligned in an `inline` list. */
2293
+ numeric?: boolean;
2294
+ /** Shown muted when there is no value. Defaults to an em dash. */
2295
+ emptyText?: string;
2296
+ }
2297
+ /** One fact inside a `DetailList`: a `<div>` that groups a `<dt>` and a `<dd>`. */
2298
+ declare const DetailItem: react.ForwardRefExoticComponent<DetailItemProps & react.RefAttributes<HTMLDivElement>>;
2299
+
2300
+ type ItemRowTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
2301
+ type ItemListDensity = 'comfortable' | 'compact';
2302
+ interface ItemListProps extends HTMLAttributes<HTMLUListElement> {
2303
+ density?: ItemListDensity;
2304
+ /** A hairline between rows. Defaults to true. */
2305
+ divided?: boolean;
2306
+ }
2307
+ /**
2308
+ * A vertical list of selectable records — the master list of an inbox. Put
2309
+ * `ItemRow` children inside. Name it with `aria-label`.
2310
+ */
2311
+ declare const ItemList: react.ForwardRefExoticComponent<ItemListProps & react.RefAttributes<HTMLUListElement>>;
2312
+ interface ItemRowLinkProps {
2313
+ href: string;
2314
+ className?: string;
2315
+ children: ReactNode;
2316
+ 'aria-current'?: 'true';
2317
+ 'data-slot'?: string;
2318
+ onClick?: MouseEventHandler<HTMLElement>;
2319
+ }
2320
+ type ItemRowLinkComponent = ComponentType<ItemRowLinkProps>;
2321
+ interface ItemRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'title' | 'onClick'> {
2322
+ title: ReactNode;
2323
+ /** One line with an ellipsis by default. */
2324
+ description?: ReactNode;
2325
+ descriptionLines?: 1 | 2;
2326
+ /** Small muted text at the end of the title line, such as a time. */
2327
+ meta?: ReactNode;
2328
+ /** Before the text: an `Avatar` or an icon. */
2329
+ leading?: ReactNode;
2330
+ /** After the text: a `Badge` or a count. Keep it non-interactive; the row is one control. */
2331
+ trailing?: ReactNode;
2332
+ /** Marks the open record: `aria-current`, a soft tint and a start-edge accent. */
2333
+ selected?: boolean;
2334
+ /**
2335
+ * A 3 px accent bar on the start edge, in the tone colour. Colour is never the
2336
+ * only signal: pair it with a `Badge` or text that says the same thing.
2337
+ */
2338
+ tone?: ItemRowTone;
2339
+ /**
2340
+ * A third line under the description, in the meta text style. One line with an
2341
+ * ellipsis. It takes text and non-interactive marks, such as a `Badge` at the
2342
+ * start; the badge keeps its size and the text truncates. It sits inside the
2343
+ * row's one interactive element, so it must not hold links or buttons.
2344
+ */
2345
+ footer?: ReactNode;
2346
+ /**
2347
+ * Bolder title and a small dot. With `leading`, the dot sits on the top-end corner of the
2348
+ * leading element and the title does not move. Without `leading`, it sits before the title.
2349
+ */
2350
+ unread?: boolean;
2351
+ /**
2352
+ * Visually hidden text read before the title when `unread` is set, so a screen reader
2353
+ * says "No leído, <title>". Defaults to `No leído`.
2354
+ */
2355
+ unreadLabel?: string;
2356
+ disabled?: boolean;
2357
+ /** Renders the row as a link. Without it the row is a button. */
2358
+ href?: string;
2359
+ onClick?: MouseEventHandler<HTMLElement>;
2360
+ /** Router-aware link used when `href` is set. Defaults to a native anchor. */
2361
+ LinkComponent?: ItemRowLinkComponent;
2362
+ }
2363
+ /**
2364
+ * One record in an `ItemList`. The `<li>` holds exactly one interactive
2365
+ * element: an `<a>` with `href`, otherwise a `<button type="button">`.
2366
+ */
2367
+ declare const ItemRow: react.ForwardRefExoticComponent<ItemRowProps & react.RefAttributes<HTMLLIElement>>;
2368
+
2369
+ type SplitViewListWidth = 'sm' | 'md' | 'lg';
2370
+ type SplitViewHeight = 'fill' | 'auto';
2371
+ interface SplitViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
2372
+ /** The master list, usually an `ItemList`. It scrolls on its own in `fill` height. */
2373
+ list: ReactNode;
2374
+ /** Fixed above the scrolling list, such as a `SearchField`. */
2375
+ listHeader?: ReactNode;
2376
+ /** The open record, or an `EmptyState` when nothing is selected. */
2377
+ detail: ReactNode;
2378
+ /** List pane width on wide screens: `sm` 280px, `md` 360px, `lg` 440px. Defaults to `md`. */
2379
+ listWidth?: SplitViewListWidth;
2380
+ /** Narrow screens show one pane. `true` shows the detail in place of the list. */
2381
+ detailOpen?: boolean;
2382
+ /** Narrow screens: shows a back button above the detail when given. */
2383
+ onBack?: () => void;
2384
+ backLabel?: string;
2385
+ listLabel?: string;
2386
+ detailLabel?: string;
2387
+ /**
2388
+ * `fill` (default): the frame has a fixed height and each pane scrolls on its own.
2389
+ * The default is `min(72vh, 900px)`. To size it from the page, pass `style={{ height }}`
2390
+ * or a class, or put it in a flex column parent: the frame also has `flex: 1 1 auto`
2391
+ * and `min-height: 0`. `auto`: the frame grows with its content and the page scrolls.
2392
+ */
2393
+ height?: SplitViewHeight;
2394
+ }
2395
+ /**
2396
+ * Master-detail layout: a list pane on the start side and a detail pane beside it,
2397
+ * inside one bordered frame. From 900px wide both panes show. Below, one pane
2398
+ * shows at a time, chosen by `detailOpen`. CSS only; no measurement.
2399
+ */
2400
+ declare const SplitView: react.ForwardRefExoticComponent<SplitViewProps & react.RefAttributes<HTMLDivElement>>;
2401
+
2402
+ type StackDirection = 'column' | 'row';
2403
+ type StackGap = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2404
+ type StackAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
2405
+ type StackJustify = 'start' | 'center' | 'end' | 'between';
2406
+ interface StackProps extends HTMLAttributes<HTMLDivElement> {
2407
+ /** Main axis. Defaults to `column`. */
2408
+ direction?: StackDirection;
2409
+ /** Space between children: `xs` 4px, `sm` 8px, `md` 12px, `lg` 16px, `xl` 24px. Defaults to `lg`. */
2410
+ gap?: StackGap;
2411
+ /** Cross-axis alignment. Unset keeps the browser default (`stretch`). */
2412
+ align?: StackAlign;
2413
+ /** Main-axis distribution. Unset keeps `start`. */
2414
+ justify?: StackJustify;
2415
+ /** Lets children flow onto the next line when the row is full. */
2416
+ wrap?: boolean;
2417
+ /** Render the child instead of a `<div>`, keeping the styling. Same contract as `Card`. */
2418
+ asChild?: boolean;
2419
+ }
2420
+ /**
2421
+ * The spacing primitive: a flex container whose gap comes from a fixed scale, so
2422
+ * screens stop inventing their own. Layout only: no colour, no type.
2423
+ */
2424
+ declare const Stack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLDivElement>>;
2425
+
2426
+ type DisclosureVariant = 'plain' | 'card';
2427
+ type DisclosureHeadingLevel = 2 | 3 | 4;
2428
+ interface DisclosureProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
2429
+ /** The header text. It is the accessible name of the button and of the panel. */
2430
+ title: ReactNode;
2431
+ /** A quiet line under the title. */
2432
+ description?: ReactNode;
2433
+ /** Non-interactive content at the end of the header, such as a `Badge` or a count. */
2434
+ trailing?: ReactNode;
2435
+ /** Initial state when uncontrolled. */
2436
+ defaultOpen?: boolean;
2437
+ /** Controlled state. Pair it with `onOpenChange`. */
2438
+ open?: boolean;
2439
+ onOpenChange?: (open: boolean) => void;
2440
+ /** `plain`: header row and content, with a hairline between stacked ones. `card`: the bordered surface of `Card`. */
2441
+ variant?: DisclosureVariant;
2442
+ /** Level of the heading that wraps the button. Defaults to 3. */
2443
+ headingLevel?: DisclosureHeadingLevel;
2444
+ children?: ReactNode;
2445
+ }
2446
+ /**
2447
+ * A section that opens and closes. The whole header row is one button with
2448
+ * `aria-expanded` and `aria-controls`; the panel is a labelled region that stays
2449
+ * in the DOM as `hidden` while closed. Use it instead of a raw `<details>`.
2450
+ */
2451
+ declare const Disclosure: react.ForwardRefExoticComponent<DisclosureProps & react.RefAttributes<HTMLDivElement>>;
2452
+
2453
+ export { AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogMedia, type AlertDialogMediaProps, AlertDialogRoot, type AlertDialogRootProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AmbientBackground, type AmbientBackgroundProps, type AmbientBackgroundVariant, type AnchoredMenuOptions, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeTone, Button, type ButtonIcon, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarDate, type CalendarDisabledDates, type CalendarProps, type CalendarRange, type CalendarRangeProps, type CalendarSharedProps, type CalendarSingleProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, CardTitle, type CardTitleProps, type CardTone, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ChoiceGroupOrientation, type ChoiceOption, Combobox, type ComboboxOption, type ComboboxProps, type CommentAttachment, type CommentAuthor, type CommentAuthorKind, type CommentDraft, type CommentFollowState, type CommentMention, type CommentMentionCandidate, type CommentMentionKind, type CommentMessage, type CommentReaction, type CommentReplyRef, type CommentSegment, type CommentStatus, CommentThread, type CommentThreadProps, ConfirmDialog, type ConfirmDialogProps, CopyField, type CopyFieldProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerSize, type DateRange, DateRangeFilter, type DateRangeFilterLabels, type DateRangeFilterProps, type DateRangeFilterSize, type DateRangePreset, DetailItem, type DetailItemProps, DetailList, type DetailListColumns, type DetailListDensity, type DetailListLayout, type DetailListProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogLayer, type DialogLayerAutoFocusEvent, type DialogLayerProps, type DialogPrimitiveSize, type DialogProps, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Disclosure, type DisclosureHeadingLevel, type DisclosureProps, type DisclosureVariant, DropdownMenu, type DropdownMenuAlign, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EMPTY_DATE_RANGE, EmptyState, type EmptyStateProps, FileDropzone, type FileDropzoneProps, type FileDropzoneSelectionSource, FilterChip, type FilterChipProps, FilterChipRow, type FilterChipRowProps, FormField, type FormFieldProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, IconTile, type IconTileProps, type IconTileSize, Input, type InputProps, type InputSize, ItemList, type ItemListDensity, type ItemListProps, ItemRow, type ItemRowLinkComponent, type ItemRowLinkProps, type ItemRowProps, type ItemRowTone, Label, type LabelProps, type MenuPosition, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectVariant, type NavigationTabItem, NavigationTabs, type NavigationTabsLinkComponent, type NavigationTabsLinkProps, type NavigationTabsProps, Notice, type NoticeProps, type NoticeSize, type NoticeTone, OtpInput, type OtpInputProps, Page, PageHeader, type PageHeaderProps, type PageProps, PageSkeleton, type PageSkeletonProps, type PageSkeletonVariant, type PageWidth, Pagination, type PaginationLabels, type PaginationProps, type PaginationSummary, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, type PopoverPadding, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type PreparedCommentFile, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressDots, type ProgressDotsProps, ProgressRing, type ProgressRingProps, RadioGroup, type RadioGroupProps, RichSelect, RichSelectContent, type RichSelectContentProps, RichSelectEmpty, type RichSelectEmptyProps, RichSelectGroup, type RichSelectGroupProps, RichSelectItem, type RichSelectItemProps, RichSelectLabel, type RichSelectLabelProps, type RichSelectProps, RichSelectSearch, type RichSelectSearchProps, RichSelectSeparator, type RichSelectSeparatorProps, type RichSelectSize, RichSelectTrigger, type RichSelectTriggerProps, RichSelectValue, type RichSelectValueProps, SearchField, type SearchFieldProps, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, Select, type SelectOption, type SelectProps, type SelectSize, Separator, type SeparatorOrientation, type SeparatorProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetRoot, type SheetRootProps, type SheetSide, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SheetWidth, Skeleton, type SkeletonProps, type SkeletonShape, Slot, type SlotAllProps, type SlotProps, Spinner, type SpinnerProps, type SpinnerSize, SplitView, type SplitViewHeight, type SplitViewListWidth, type SplitViewProps, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, StatTile, StatTileGrid, type StatTileGridColumns, type StatTileGridProps, type StatTileProps, type StatTone, StatusDot, type StatusDotProps, type StatusDotSize, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, TINT_TONES, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellAlignProps, type TableCellProps, type TableColumn, type TableDensity, TableFooter, type TableFooterProps, TableFrame, type TableFrameProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, type TableRootProps, TableRow, type TableRowProps, TableSkeleton, type TableSkeletonProps, Tabs, type TabsActivationMode, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsListVariant, type TabsOrientation, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type TextareaSize, type TintTone, Toolbar, ToolbarGroup, type ToolbarGroupProps, type ToolbarProps, ToolbarSpacer, type ToolbarSpacerProps, Tooltip, type TooltipProps, ValidationSummary, type ValidationSummaryError, type ValidationSummaryProps, activeMentionQuery, avatarInitials, commentDraftFromBody, commentPlainText, formatCalendarDate, formatDateRange, isCalendarDate, isSameDateRange, isValidDateRange, menuStyle, mergeCommentMessages, parseCalendarDate, parseCommentBody, prepareCommentFile, registerDialogLayerPortal, resolveActiveNavigationHref, serializeCalendarDate, serializeCommentDraft, toneFromString, useAnchoredMenu };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ButtonHTMLAttributes, ReactElement, ReactNode, HTMLAttributes, RefObject, Ref, InputHTMLAttributes, AriaAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, FieldsetHTMLAttributes, SelectHTMLAttributes, CSSProperties, HTMLAttributeAnchorTarget, ComponentType, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, RefAttributes, SetStateAction } from 'react';
2
+ import { ButtonHTMLAttributes, ReactElement, ReactNode, HTMLAttributes, RefObject, Ref, InputHTMLAttributes, AriaAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, FieldsetHTMLAttributes, SelectHTMLAttributes, CSSProperties, HTMLAttributeAnchorTarget, ComponentType, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, RefAttributes, SetStateAction, LiHTMLAttributes, MouseEventHandler } from 'react';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
 
5
5
  type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'glass' | 'danger' | 'success' | 'link';
@@ -1014,9 +1014,20 @@ interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
1014
1014
  interactive?: boolean;
1015
1015
  }
1016
1016
  declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
1017
- type TableHeadProps = ThHTMLAttributes<HTMLTableCellElement>;
1017
+ interface TableCellAlignProps {
1018
+ /**
1019
+ * Horizontal alignment of the cell text. Defaults to the start edge. `justify` and
1020
+ * `char` are the native HTML `align` values: they pass through as the attribute, no class.
1021
+ */
1022
+ align?: 'start' | 'center' | 'end' | 'left' | 'right' | 'justify' | 'char';
1023
+ /** A number column: end-aligned with tabular figures. Wins over `align`. */
1024
+ numeric?: boolean;
1025
+ }
1026
+ interface TableHeadProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, 'align'>, TableCellAlignProps {
1027
+ }
1018
1028
  declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
1019
- type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
1029
+ interface TableCellProps extends Omit<TdHTMLAttributes<HTMLTableCellElement>, 'align'>, TableCellAlignProps {
1030
+ }
1020
1031
  declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
1021
1032
  type TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
1022
1033
  declare const TableCaption: react.ForwardRefExoticComponent<TableCaptionProps & react.RefAttributes<HTMLTableCaptionElement>>;
@@ -1038,6 +1049,8 @@ interface TableColumn<T> {
1038
1049
  /** Without this the cell renders `row[key]` as text. */
1039
1050
  render?: (row: T, index: number) => ReactNode;
1040
1051
  align?: TableAlign;
1052
+ /** A number column: end-aligned with tabular figures. Wins over `align`. */
1053
+ numeric?: boolean;
1041
1054
  className?: string;
1042
1055
  headerClassName?: string;
1043
1056
  /**
@@ -2226,4 +2239,215 @@ interface PreparedCommentFile {
2226
2239
  }
2227
2240
  declare function prepareCommentFile(file: File): Promise<PreparedCommentFile>;
2228
2241
 
2229
- export { AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogMedia, type AlertDialogMediaProps, AlertDialogRoot, type AlertDialogRootProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AmbientBackground, type AmbientBackgroundProps, type AmbientBackgroundVariant, type AnchoredMenuOptions, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeTone, Button, type ButtonIcon, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarDate, type CalendarDisabledDates, type CalendarProps, type CalendarRange, type CalendarRangeProps, type CalendarSharedProps, type CalendarSingleProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, CardTitle, type CardTitleProps, type CardTone, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ChoiceGroupOrientation, type ChoiceOption, Combobox, type ComboboxOption, type ComboboxProps, type CommentAttachment, type CommentAuthor, type CommentAuthorKind, type CommentDraft, type CommentFollowState, type CommentMention, type CommentMentionCandidate, type CommentMentionKind, type CommentMessage, type CommentReaction, type CommentReplyRef, type CommentSegment, type CommentStatus, CommentThread, type CommentThreadProps, ConfirmDialog, type ConfirmDialogProps, CopyField, type CopyFieldProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerSize, type DateRange, DateRangeFilter, type DateRangeFilterLabels, type DateRangeFilterProps, type DateRangeFilterSize, type DateRangePreset, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogLayer, type DialogLayerAutoFocusEvent, type DialogLayerProps, type DialogPrimitiveSize, type DialogProps, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, DropdownMenu, type DropdownMenuAlign, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EMPTY_DATE_RANGE, EmptyState, type EmptyStateProps, FileDropzone, type FileDropzoneProps, type FileDropzoneSelectionSource, FilterChip, type FilterChipProps, FilterChipRow, type FilterChipRowProps, FormField, type FormFieldProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, IconTile, type IconTileProps, type IconTileSize, Input, type InputProps, type InputSize, Label, type LabelProps, type MenuPosition, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectVariant, type NavigationTabItem, NavigationTabs, type NavigationTabsLinkComponent, type NavigationTabsLinkProps, type NavigationTabsProps, OtpInput, type OtpInputProps, Page, PageHeader, type PageHeaderProps, type PageProps, PageSkeleton, type PageSkeletonProps, type PageSkeletonVariant, type PageWidth, Pagination, type PaginationLabels, type PaginationProps, type PaginationSummary, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, type PopoverPadding, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type PreparedCommentFile, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressDots, type ProgressDotsProps, ProgressRing, type ProgressRingProps, RadioGroup, type RadioGroupProps, RichSelect, RichSelectContent, type RichSelectContentProps, RichSelectEmpty, type RichSelectEmptyProps, RichSelectGroup, type RichSelectGroupProps, RichSelectItem, type RichSelectItemProps, RichSelectLabel, type RichSelectLabelProps, type RichSelectProps, RichSelectSearch, type RichSelectSearchProps, RichSelectSeparator, type RichSelectSeparatorProps, type RichSelectSize, RichSelectTrigger, type RichSelectTriggerProps, RichSelectValue, type RichSelectValueProps, SearchField, type SearchFieldProps, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, Select, type SelectOption, type SelectProps, type SelectSize, Separator, type SeparatorOrientation, type SeparatorProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetRoot, type SheetRootProps, type SheetSide, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SheetWidth, Skeleton, type SkeletonProps, type SkeletonShape, Slot, type SlotAllProps, type SlotProps, Spinner, type SpinnerProps, type SpinnerSize, StatTile, StatTileGrid, type StatTileGridColumns, type StatTileGridProps, type StatTileProps, type StatTone, StatusDot, type StatusDotProps, type StatusDotSize, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, TINT_TONES, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, type TableColumn, type TableDensity, TableFooter, type TableFooterProps, TableFrame, type TableFrameProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, type TableRootProps, TableRow, type TableRowProps, TableSkeleton, type TableSkeletonProps, Tabs, type TabsActivationMode, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsListVariant, type TabsOrientation, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type TextareaSize, type TintTone, Toolbar, ToolbarGroup, type ToolbarGroupProps, type ToolbarProps, ToolbarSpacer, type ToolbarSpacerProps, Tooltip, type TooltipProps, ValidationSummary, type ValidationSummaryError, type ValidationSummaryProps, activeMentionQuery, avatarInitials, commentDraftFromBody, commentPlainText, formatCalendarDate, formatDateRange, isCalendarDate, isSameDateRange, isValidDateRange, menuStyle, mergeCommentMessages, parseCalendarDate, parseCommentBody, prepareCommentFile, registerDialogLayerPortal, resolveActiveNavigationHref, serializeCalendarDate, serializeCommentDraft, toneFromString, useAnchoredMenu };
2242
+ type NoticeTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
2243
+ type NoticeSize = 'md' | 'sm';
2244
+ interface NoticeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
2245
+ /** Colour and meaning. Defaults to `info`. */
2246
+ tone?: NoticeTone;
2247
+ /** Short bold line above the body. */
2248
+ title?: ReactNode;
2249
+ /** Body text. */
2250
+ children?: ReactNode;
2251
+ /** Replaces the icon of the tone. `false` hides the icon. */
2252
+ icon?: ReactNode | false;
2253
+ /** Controls aligned to the end edge; they wrap under the text on narrow widths. */
2254
+ actions?: ReactNode;
2255
+ /** When given, a close button shows. The app owns what "dismissed" means. */
2256
+ onDismiss?: () => void;
2257
+ /** Accessible name of the close button. */
2258
+ dismissLabel?: string;
2259
+ size?: NoticeSize;
2260
+ }
2261
+ /**
2262
+ * A calm inline message inside a page or card. It is not a toast: it stays in
2263
+ * the flow and does not move. The role is `alert` for `danger` and `status`
2264
+ * for every other tone; a `role` passed by the caller wins.
2265
+ */
2266
+ declare const Notice: react.ForwardRefExoticComponent<NoticeProps & react.RefAttributes<HTMLDivElement>>;
2267
+
2268
+ type DetailListColumns = 1 | 2 | 3 | 4;
2269
+ type DetailListLayout = 'stacked' | 'inline';
2270
+ type DetailListDensity = 'comfortable' | 'compact';
2271
+ interface DetailListProps extends HTMLAttributes<HTMLDListElement> {
2272
+ /** Most columns on a wide container. Narrow widths collapse to one. Defaults to 2. */
2273
+ columns?: DetailListColumns;
2274
+ /**
2275
+ * `stacked` puts the label above the value. `inline` puts them on one row with a
2276
+ * hairline between rows, for narrow side panels. Ignores `columns`.
2277
+ */
2278
+ layout?: DetailListLayout;
2279
+ density?: DetailListDensity;
2280
+ }
2281
+ /**
2282
+ * The label/value facts of one record, as a `<dl>`. Label 12px muted, value
2283
+ * 14px; long values wrap. Put `DetailItem` children inside.
2284
+ */
2285
+ declare const DetailList: react.ForwardRefExoticComponent<DetailListProps & react.RefAttributes<HTMLDListElement>>;
2286
+ interface DetailItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
2287
+ label: ReactNode;
2288
+ /** The value. Null, undefined, `''` and `false` show `emptyText` instead. */
2289
+ children?: ReactNode;
2290
+ /** How many columns the item takes in a `stacked` list. */
2291
+ span?: 1 | 2 | 'full';
2292
+ /** Tabular figures; right-aligned in an `inline` list. */
2293
+ numeric?: boolean;
2294
+ /** Shown muted when there is no value. Defaults to an em dash. */
2295
+ emptyText?: string;
2296
+ }
2297
+ /** One fact inside a `DetailList`: a `<div>` that groups a `<dt>` and a `<dd>`. */
2298
+ declare const DetailItem: react.ForwardRefExoticComponent<DetailItemProps & react.RefAttributes<HTMLDivElement>>;
2299
+
2300
+ type ItemRowTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
2301
+ type ItemListDensity = 'comfortable' | 'compact';
2302
+ interface ItemListProps extends HTMLAttributes<HTMLUListElement> {
2303
+ density?: ItemListDensity;
2304
+ /** A hairline between rows. Defaults to true. */
2305
+ divided?: boolean;
2306
+ }
2307
+ /**
2308
+ * A vertical list of selectable records — the master list of an inbox. Put
2309
+ * `ItemRow` children inside. Name it with `aria-label`.
2310
+ */
2311
+ declare const ItemList: react.ForwardRefExoticComponent<ItemListProps & react.RefAttributes<HTMLUListElement>>;
2312
+ interface ItemRowLinkProps {
2313
+ href: string;
2314
+ className?: string;
2315
+ children: ReactNode;
2316
+ 'aria-current'?: 'true';
2317
+ 'data-slot'?: string;
2318
+ onClick?: MouseEventHandler<HTMLElement>;
2319
+ }
2320
+ type ItemRowLinkComponent = ComponentType<ItemRowLinkProps>;
2321
+ interface ItemRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'title' | 'onClick'> {
2322
+ title: ReactNode;
2323
+ /** One line with an ellipsis by default. */
2324
+ description?: ReactNode;
2325
+ descriptionLines?: 1 | 2;
2326
+ /** Small muted text at the end of the title line, such as a time. */
2327
+ meta?: ReactNode;
2328
+ /** Before the text: an `Avatar` or an icon. */
2329
+ leading?: ReactNode;
2330
+ /** After the text: a `Badge` or a count. Keep it non-interactive; the row is one control. */
2331
+ trailing?: ReactNode;
2332
+ /** Marks the open record: `aria-current`, a soft tint and a start-edge accent. */
2333
+ selected?: boolean;
2334
+ /**
2335
+ * A 3 px accent bar on the start edge, in the tone colour. Colour is never the
2336
+ * only signal: pair it with a `Badge` or text that says the same thing.
2337
+ */
2338
+ tone?: ItemRowTone;
2339
+ /**
2340
+ * A third line under the description, in the meta text style. One line with an
2341
+ * ellipsis. It takes text and non-interactive marks, such as a `Badge` at the
2342
+ * start; the badge keeps its size and the text truncates. It sits inside the
2343
+ * row's one interactive element, so it must not hold links or buttons.
2344
+ */
2345
+ footer?: ReactNode;
2346
+ /**
2347
+ * Bolder title and a small dot. With `leading`, the dot sits on the top-end corner of the
2348
+ * leading element and the title does not move. Without `leading`, it sits before the title.
2349
+ */
2350
+ unread?: boolean;
2351
+ /**
2352
+ * Visually hidden text read before the title when `unread` is set, so a screen reader
2353
+ * says "No leído, <title>". Defaults to `No leído`.
2354
+ */
2355
+ unreadLabel?: string;
2356
+ disabled?: boolean;
2357
+ /** Renders the row as a link. Without it the row is a button. */
2358
+ href?: string;
2359
+ onClick?: MouseEventHandler<HTMLElement>;
2360
+ /** Router-aware link used when `href` is set. Defaults to a native anchor. */
2361
+ LinkComponent?: ItemRowLinkComponent;
2362
+ }
2363
+ /**
2364
+ * One record in an `ItemList`. The `<li>` holds exactly one interactive
2365
+ * element: an `<a>` with `href`, otherwise a `<button type="button">`.
2366
+ */
2367
+ declare const ItemRow: react.ForwardRefExoticComponent<ItemRowProps & react.RefAttributes<HTMLLIElement>>;
2368
+
2369
+ type SplitViewListWidth = 'sm' | 'md' | 'lg';
2370
+ type SplitViewHeight = 'fill' | 'auto';
2371
+ interface SplitViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
2372
+ /** The master list, usually an `ItemList`. It scrolls on its own in `fill` height. */
2373
+ list: ReactNode;
2374
+ /** Fixed above the scrolling list, such as a `SearchField`. */
2375
+ listHeader?: ReactNode;
2376
+ /** The open record, or an `EmptyState` when nothing is selected. */
2377
+ detail: ReactNode;
2378
+ /** List pane width on wide screens: `sm` 280px, `md` 360px, `lg` 440px. Defaults to `md`. */
2379
+ listWidth?: SplitViewListWidth;
2380
+ /** Narrow screens show one pane. `true` shows the detail in place of the list. */
2381
+ detailOpen?: boolean;
2382
+ /** Narrow screens: shows a back button above the detail when given. */
2383
+ onBack?: () => void;
2384
+ backLabel?: string;
2385
+ listLabel?: string;
2386
+ detailLabel?: string;
2387
+ /**
2388
+ * `fill` (default): the frame has a fixed height and each pane scrolls on its own.
2389
+ * The default is `min(72vh, 900px)`. To size it from the page, pass `style={{ height }}`
2390
+ * or a class, or put it in a flex column parent: the frame also has `flex: 1 1 auto`
2391
+ * and `min-height: 0`. `auto`: the frame grows with its content and the page scrolls.
2392
+ */
2393
+ height?: SplitViewHeight;
2394
+ }
2395
+ /**
2396
+ * Master-detail layout: a list pane on the start side and a detail pane beside it,
2397
+ * inside one bordered frame. From 900px wide both panes show. Below, one pane
2398
+ * shows at a time, chosen by `detailOpen`. CSS only; no measurement.
2399
+ */
2400
+ declare const SplitView: react.ForwardRefExoticComponent<SplitViewProps & react.RefAttributes<HTMLDivElement>>;
2401
+
2402
+ type StackDirection = 'column' | 'row';
2403
+ type StackGap = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2404
+ type StackAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
2405
+ type StackJustify = 'start' | 'center' | 'end' | 'between';
2406
+ interface StackProps extends HTMLAttributes<HTMLDivElement> {
2407
+ /** Main axis. Defaults to `column`. */
2408
+ direction?: StackDirection;
2409
+ /** Space between children: `xs` 4px, `sm` 8px, `md` 12px, `lg` 16px, `xl` 24px. Defaults to `lg`. */
2410
+ gap?: StackGap;
2411
+ /** Cross-axis alignment. Unset keeps the browser default (`stretch`). */
2412
+ align?: StackAlign;
2413
+ /** Main-axis distribution. Unset keeps `start`. */
2414
+ justify?: StackJustify;
2415
+ /** Lets children flow onto the next line when the row is full. */
2416
+ wrap?: boolean;
2417
+ /** Render the child instead of a `<div>`, keeping the styling. Same contract as `Card`. */
2418
+ asChild?: boolean;
2419
+ }
2420
+ /**
2421
+ * The spacing primitive: a flex container whose gap comes from a fixed scale, so
2422
+ * screens stop inventing their own. Layout only: no colour, no type.
2423
+ */
2424
+ declare const Stack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLDivElement>>;
2425
+
2426
+ type DisclosureVariant = 'plain' | 'card';
2427
+ type DisclosureHeadingLevel = 2 | 3 | 4;
2428
+ interface DisclosureProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
2429
+ /** The header text. It is the accessible name of the button and of the panel. */
2430
+ title: ReactNode;
2431
+ /** A quiet line under the title. */
2432
+ description?: ReactNode;
2433
+ /** Non-interactive content at the end of the header, such as a `Badge` or a count. */
2434
+ trailing?: ReactNode;
2435
+ /** Initial state when uncontrolled. */
2436
+ defaultOpen?: boolean;
2437
+ /** Controlled state. Pair it with `onOpenChange`. */
2438
+ open?: boolean;
2439
+ onOpenChange?: (open: boolean) => void;
2440
+ /** `plain`: header row and content, with a hairline between stacked ones. `card`: the bordered surface of `Card`. */
2441
+ variant?: DisclosureVariant;
2442
+ /** Level of the heading that wraps the button. Defaults to 3. */
2443
+ headingLevel?: DisclosureHeadingLevel;
2444
+ children?: ReactNode;
2445
+ }
2446
+ /**
2447
+ * A section that opens and closes. The whole header row is one button with
2448
+ * `aria-expanded` and `aria-controls`; the panel is a labelled region that stays
2449
+ * in the DOM as `hidden` while closed. Use it instead of a raw `<details>`.
2450
+ */
2451
+ declare const Disclosure: react.ForwardRefExoticComponent<DisclosureProps & react.RefAttributes<HTMLDivElement>>;
2452
+
2453
+ export { AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogMedia, type AlertDialogMediaProps, AlertDialogRoot, type AlertDialogRootProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AmbientBackground, type AmbientBackgroundProps, type AmbientBackgroundVariant, type AnchoredMenuOptions, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeTone, Button, type ButtonIcon, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarDate, type CalendarDisabledDates, type CalendarProps, type CalendarRange, type CalendarRangeProps, type CalendarSharedProps, type CalendarSingleProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, CardTitle, type CardTitleProps, type CardTone, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ChoiceGroupOrientation, type ChoiceOption, Combobox, type ComboboxOption, type ComboboxProps, type CommentAttachment, type CommentAuthor, type CommentAuthorKind, type CommentDraft, type CommentFollowState, type CommentMention, type CommentMentionCandidate, type CommentMentionKind, type CommentMessage, type CommentReaction, type CommentReplyRef, type CommentSegment, type CommentStatus, CommentThread, type CommentThreadProps, ConfirmDialog, type ConfirmDialogProps, CopyField, type CopyFieldProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerSize, type DateRange, DateRangeFilter, type DateRangeFilterLabels, type DateRangeFilterProps, type DateRangeFilterSize, type DateRangePreset, DetailItem, type DetailItemProps, DetailList, type DetailListColumns, type DetailListDensity, type DetailListLayout, type DetailListProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogLayer, type DialogLayerAutoFocusEvent, type DialogLayerProps, type DialogPrimitiveSize, type DialogProps, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Disclosure, type DisclosureHeadingLevel, type DisclosureProps, type DisclosureVariant, DropdownMenu, type DropdownMenuAlign, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EMPTY_DATE_RANGE, EmptyState, type EmptyStateProps, FileDropzone, type FileDropzoneProps, type FileDropzoneSelectionSource, FilterChip, type FilterChipProps, FilterChipRow, type FilterChipRowProps, FormField, type FormFieldProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, IconTile, type IconTileProps, type IconTileSize, Input, type InputProps, type InputSize, ItemList, type ItemListDensity, type ItemListProps, ItemRow, type ItemRowLinkComponent, type ItemRowLinkProps, type ItemRowProps, type ItemRowTone, Label, type LabelProps, type MenuPosition, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectVariant, type NavigationTabItem, NavigationTabs, type NavigationTabsLinkComponent, type NavigationTabsLinkProps, type NavigationTabsProps, Notice, type NoticeProps, type NoticeSize, type NoticeTone, OtpInput, type OtpInputProps, Page, PageHeader, type PageHeaderProps, type PageProps, PageSkeleton, type PageSkeletonProps, type PageSkeletonVariant, type PageWidth, Pagination, type PaginationLabels, type PaginationProps, type PaginationSummary, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, type PopoverPadding, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type PreparedCommentFile, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressDots, type ProgressDotsProps, ProgressRing, type ProgressRingProps, RadioGroup, type RadioGroupProps, RichSelect, RichSelectContent, type RichSelectContentProps, RichSelectEmpty, type RichSelectEmptyProps, RichSelectGroup, type RichSelectGroupProps, RichSelectItem, type RichSelectItemProps, RichSelectLabel, type RichSelectLabelProps, type RichSelectProps, RichSelectSearch, type RichSelectSearchProps, RichSelectSeparator, type RichSelectSeparatorProps, type RichSelectSize, RichSelectTrigger, type RichSelectTriggerProps, RichSelectValue, type RichSelectValueProps, SearchField, type SearchFieldProps, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, Select, type SelectOption, type SelectProps, type SelectSize, Separator, type SeparatorOrientation, type SeparatorProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetRoot, type SheetRootProps, type SheetSide, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SheetWidth, Skeleton, type SkeletonProps, type SkeletonShape, Slot, type SlotAllProps, type SlotProps, Spinner, type SpinnerProps, type SpinnerSize, SplitView, type SplitViewHeight, type SplitViewListWidth, type SplitViewProps, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, StatTile, StatTileGrid, type StatTileGridColumns, type StatTileGridProps, type StatTileProps, type StatTone, StatusDot, type StatusDotProps, type StatusDotSize, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, TINT_TONES, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellAlignProps, type TableCellProps, type TableColumn, type TableDensity, TableFooter, type TableFooterProps, TableFrame, type TableFrameProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, type TableRootProps, TableRow, type TableRowProps, TableSkeleton, type TableSkeletonProps, Tabs, type TabsActivationMode, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsListVariant, type TabsOrientation, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type TextareaSize, type TintTone, Toolbar, ToolbarGroup, type ToolbarGroupProps, type ToolbarProps, ToolbarSpacer, type ToolbarSpacerProps, Tooltip, type TooltipProps, ValidationSummary, type ValidationSummaryError, type ValidationSummaryProps, activeMentionQuery, avatarInitials, commentDraftFromBody, commentPlainText, formatCalendarDate, formatDateRange, isCalendarDate, isSameDateRange, isValidDateRange, menuStyle, mergeCommentMessages, parseCalendarDate, parseCommentBody, prepareCommentFile, registerDialogLayerPortal, resolveActiveNavigationHref, serializeCalendarDate, serializeCommentDraft, toneFromString, useAnchoredMenu };