@bixlab/mtone 0.9.0 → 0.11.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.ts CHANGED
@@ -50,7 +50,6 @@ interface InputSearchProps extends InputProps {
50
50
  searchButton?: React.ReactNode;
51
51
  loading?: boolean;
52
52
  }
53
- declare const SearchInput: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<HTMLInputElement>>;
54
53
  interface InputPasswordProps extends Omit<InputProps, "type"> {
55
54
  visible?: boolean;
56
55
  defaultVisible?: boolean;
@@ -62,7 +61,6 @@ interface InputTextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaEl
62
61
  maxRows?: number;
63
62
  };
64
63
  }
65
- declare const Textarea: React.ForwardRefExoticComponent<InputTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
66
64
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>> & {
67
65
  Search: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<HTMLInputElement>>;
68
66
  TextArea: React.ForwardRefExoticComponent<InputTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -93,7 +91,9 @@ interface FormValidationError {
93
91
  errorFields: FormFieldError[];
94
92
  outOfDate: boolean;
95
93
  }
94
+ declare const emptyStringIsValue: unique symbol;
96
95
  interface FieldRegistration {
96
+ [emptyStringIsValue]?: boolean;
97
97
  rules?: FormRule[];
98
98
  initialValue?: unknown;
99
99
  }
@@ -313,6 +313,74 @@ interface FloatingLayoutProps {
313
313
  align?: FloatingAlign;
314
314
  }
315
315
 
316
+ interface SelectOption extends Option {
317
+ /** Text to search when the visible label is not plain text. */
318
+ searchText?: string;
319
+ }
320
+ interface SelectOptionGroup {
321
+ label: React__default.ReactNode;
322
+ options: readonly SelectOption[];
323
+ }
324
+ interface SelectCommonProps extends OpenProps {
325
+ options: readonly (SelectOption | SelectOptionGroup)[];
326
+ /** Overrides option row content, not its selected display or search text. */
327
+ renderOption?: (option: SelectOption) => React__default.ReactNode;
328
+ placeholder?: string;
329
+ clearable?: boolean;
330
+ emptyContent?: React__default.ReactNode;
331
+ className?: string;
332
+ disabled?: boolean;
333
+ required?: boolean;
334
+ name?: string;
335
+ form?: string;
336
+ label?: string;
337
+ id?: string;
338
+ "aria-invalid"?: React__default.AriaAttributes["aria-invalid"];
339
+ "aria-describedby"?: string;
340
+ "aria-labelledby"?: string;
341
+ "aria-busy"?: boolean;
342
+ onBlur?: React__default.FocusEventHandler<HTMLElement>;
343
+ }
344
+ interface SelectSingleBaseProps extends SelectCommonProps {
345
+ mode?: "single";
346
+ searchPlaceholder?: string;
347
+ value?: string | null;
348
+ defaultValue?: string | null;
349
+ onValueChange?: (value: string | null) => void;
350
+ }
351
+ interface SelectSingleProps extends SelectSingleBaseProps {
352
+ searchable?: boolean;
353
+ }
354
+ interface SelectPopupSearchProps extends SelectSingleBaseProps {
355
+ searchable: "popup";
356
+ trigger?: React__default.ReactElement | string;
357
+ popupWidth?: number | string;
358
+ popupTitle?: React__default.ReactNode;
359
+ }
360
+ interface SelectMultipleProps extends SelectCommonProps {
361
+ mode: "multiple";
362
+ value?: string[];
363
+ defaultValue?: string[];
364
+ onValueChange?: (value: string[]) => void;
365
+ }
366
+ interface SelectTagsProps extends Omit<SelectMultipleProps, "mode"> {
367
+ mode: "tags";
368
+ }
369
+ type SelectProps = SelectSingleProps | SelectPopupSearchProps | SelectMultipleProps | SelectTagsProps;
370
+ /** @deprecated Use SelectMultipleProps and Select with mode="multiple". */
371
+ type MultiSelectProps = Omit<SelectMultipleProps, "mode">;
372
+ declare function Select(props: SelectProps): React__default.JSX.Element;
373
+ declare namespace Select {
374
+ var formValueType: (props: {
375
+ mode?: unknown;
376
+ }) => "array" | "select-single";
377
+ }
378
+ /** @deprecated Use <Select mode="multiple" />. */
379
+ declare function MultiSelect(props: MultiSelectProps): React__default.JSX.Element;
380
+ declare namespace MultiSelect {
381
+ var formValueType: "array";
382
+ }
383
+
316
384
  declare const accentNames: readonly ["neutral", "blue", "green", "orange", "red", "purple", "teal", "coral"];
317
385
  /** Shared theme accent keys, backed by the matching --mt-accent-* properties. */
318
386
  type MtoneAccent = (typeof accentNames)[number];
@@ -397,7 +465,6 @@ type ToastProviderProps = {
397
465
  position?: ToastPosition;
398
466
  };
399
467
  declare function ToastProvider({ children, timeout, limit, position, }: ToastProviderProps): React.JSX.Element;
400
- declare const Toast: typeof ToastProvider;
401
468
 
402
469
  interface Option {
403
470
  value: string;
@@ -431,33 +498,13 @@ declare function Checkbox({ label, children, className, ...props }: CheckboxProp
431
498
  declare function Switch({ label, children, className, ...props }: Omit<CheckboxProps, "indeterminate">): React__default.JSX.Element;
432
499
  interface RadioGroupProps extends Common, ValueProps<string> {
433
500
  options: Option[];
501
+ /** Visual treatment; both modes use the same radio semantics and form behavior. */
502
+ variant?: "default" | "segmented";
503
+ /** Defaults to vertical for standard radios and horizontal for segments. */
434
504
  orientation?: "horizontal" | "vertical";
435
505
  }
436
- declare function RadioGroup({ options, label, className, orientation, ...props }: RadioGroupProps): React__default.JSX.Element;
437
- interface FieldControlProps {
438
- id?: string;
439
- "aria-invalid"?: React__default.AriaAttributes["aria-invalid"];
440
- "aria-describedby"?: string;
441
- "aria-labelledby"?: string;
442
- "aria-busy"?: boolean;
443
- onBlur?: React__default.FocusEventHandler<HTMLElement>;
444
- }
445
- interface SelectProps extends Common, ValueProps<string | null>, OpenProps, FieldControlProps {
446
- options: Option[];
447
- placeholder?: string;
448
- }
449
- declare function Select({ options, label, placeholder, className, id, onBlur, "aria-invalid": invalid, "aria-describedby": describedBy, "aria-labelledby": labelledBy, "aria-busy": busy, ...props }: SelectProps): React__default.JSX.Element;
450
- declare namespace Select {
451
- var formValueType: "nullable";
452
- }
453
- interface MultiSelectProps extends Common, ValueProps<string[]>, OpenProps, FieldControlProps {
454
- options: Option[];
455
- placeholder?: string;
456
- }
457
- declare function MultiSelect({ options, label, placeholder, className, id, onBlur, "aria-invalid": invalid, "aria-describedby": describedBy, "aria-labelledby": labelledBy, "aria-busy": busy, ...props }: MultiSelectProps): React__default.JSX.Element;
458
- declare namespace MultiSelect {
459
- var formValueType: "array";
460
- }
506
+ declare function RadioGroup({ options, label, className, variant, orientation, ...props }: RadioGroupProps): React__default.JSX.Element;
507
+
461
508
  interface SliderProps extends Common, ValueProps<number> {
462
509
  min?: number;
463
510
  max?: number;
@@ -472,7 +519,6 @@ interface NumberInputProps extends Common, Omit<ValueProps<number | null>, "defa
472
519
  }
473
520
  declare function NumberInput({ label, className, ...props }: NumberInputProps): React__default.JSX.Element;
474
521
 
475
- declare function Segmented({ options, label, className, ...props }: RadioGroupProps): React__default.JSX.Element;
476
522
  interface MenuItem {
477
523
  type?: "item";
478
524
  icon?: React__default.ReactNode;
@@ -512,14 +558,21 @@ interface MenuRadioGroup {
512
558
  children: Omit<MenuItem, "type" | "children" | "onSelect">[];
513
559
  }
514
560
  type MenuEntry = MenuItem | MenuGroup | MenuDivider | MenuCheckboxItem | MenuRadioGroup;
515
- interface MenuProps extends OpenProps, FloatingLayoutProps {
561
+ interface MenuProps {
562
+ items: MenuEntry[];
563
+ onSelect?: (key: string) => void;
564
+ /** Accessible name for an inline menu. */
565
+ label?: string;
566
+ className?: string;
567
+ }
568
+ interface PopoverMenuProps extends OpenProps, FloatingLayoutProps, Omit<MenuProps, "className"> {
516
569
  trigger: string | React__default.ReactElement;
517
570
  /** Whether a mouse hover can open the menu in addition to normal presses. */
518
571
  triggerMode?: "click" | "hover";
519
- items: MenuEntry[];
520
- onSelect?: (key: string) => void;
521
572
  }
522
- declare function Menu({ trigger, triggerMode, items, onOpenChange, onSelect, width, align, ...props }: MenuProps): React__default.JSX.Element;
573
+ /** Commands in normal document flow, without a trigger or a floating surface. */
574
+ declare function Menu({ items, onSelect, label, className }: MenuProps): React__default.JSX.Element;
575
+ declare function PopoverMenu({ trigger, triggerMode, items, onOpenChange, onSelect, width, align, label, ...props }: PopoverMenuProps): React__default.JSX.Element;
523
576
  /** A top-level application menu. Keys must be unique within the bar. */
524
577
  interface MenubarMenu extends FloatingLayoutProps {
525
578
  key: string;
@@ -540,12 +593,9 @@ interface MenubarProps extends Omit<React__default.HTMLAttributes<HTMLDivElement
540
593
  }
541
594
  /** Coordinated command menus, sharing Menu items and floating surfaces. */
542
595
  declare function Menubar({ menus, openKey, defaultOpenKey, onOpenChange, onSelect, disabled, loop, trigger, width, align, className, ...props }: MenubarProps): React__default.JSX.Element;
543
- /** @deprecated Use MenuProps instead. */
544
- type DropdownMenuProps = MenuProps;
545
- /** @deprecated Use Menu instead. */
546
- declare const DropdownMenu: typeof Menu;
547
- declare function ContextMenu({ children, items, onSelect, width, ...props }: Omit<MenuProps, "trigger" | "align"> & {
596
+ declare function ContextMenu({ children, items, onSelect, width, label, ...props }: OpenProps & Omit<MenuProps, "className"> & {
548
597
  children: React__default.ReactNode;
598
+ width?: FloatingLayoutProps["width"];
549
599
  }): React__default.JSX.Element;
550
600
  interface PopoverProps extends OpenProps, Omit<FloatingLayoutProps, "align"> {
551
601
  trigger: string | React__default.ReactElement;
@@ -558,7 +608,10 @@ interface PopoverProps extends OpenProps, Omit<FloatingLayoutProps, "align"> {
558
608
  /** Remove the Popup frame, padding and background, keeping positioning and focus. */
559
609
  unstyled?: boolean;
560
610
  }
561
- declare function Popover({ trigger, content, title, label, side, align, width, unstyled, ...props }: PopoverProps): React__default.JSX.Element;
611
+ declare function PopoverRoot(props: PopoverProps): React__default.JSX.Element;
612
+ declare const Popover: typeof PopoverRoot & {
613
+ Menu: typeof PopoverMenu;
614
+ };
562
615
  declare function Tooltip({ children, content, side, ...props }: OpenProps & Pick<PopoverProps, "content" | "side"> & {
563
616
  children: React__default.ReactElement;
564
617
  }): React__default.JSX.Element;
@@ -575,10 +628,6 @@ interface DialogProps extends DialogFrameProps {
575
628
  modal?: boolean;
576
629
  }
577
630
  declare function Dialog({ modal, title, description, children, footer, trigger, className, ...props }: DialogProps): React__default.JSX.Element;
578
- /** @deprecated Use DialogProps instead. */
579
- type ModalProps = DialogProps;
580
- /** @deprecated Use Dialog instead. */
581
- declare const Modal: typeof Dialog;
582
631
  interface ConfirmDialogProps extends DialogFrameProps {
583
632
  onConfirm?: () => void | Promise<void>;
584
633
  confirmText?: string;
@@ -689,6 +738,8 @@ interface ListProps<T = unknown> extends Omit<React__default.HTMLAttributes<HTML
689
738
  getKey?: (item: T, index: number) => React__default.Key;
690
739
  /** Render row content, not a li/ListItem. The List owns the row element. */
691
740
  renderItem?: (item: T, index: number) => React__default.ReactNode;
741
+ /** Opt into live vertical drag sorting of nonvirtual data rows with a List.SortHandle. */
742
+ onReorder?: (fromIndex: number, toIndex: number) => void;
692
743
  groupBy?: (item: T) => React__default.Key;
693
744
  renderGroup?: (key: React__default.Key, items: readonly T[]) => React__default.ReactNode;
694
745
  stickyGroups?: boolean;
@@ -707,10 +758,10 @@ interface ListProps<T = unknown> extends Omit<React__default.HTMLAttributes<HTML
707
758
  ref?: React__default.Ref<ListHandle>;
708
759
  }
709
760
  /** Compact native list, with optional grouped and windowed data rendering. */
710
- declare function ListRoot<T = unknown>({ children, items, getKey, renderItem, groupBy, renderGroup, stickyGroups, height, contentWidth, virtual, estimatedItemHeight, estimatedGroupHeight, overscan, hoverable, emptyContent, loading, loadingContent, onEndReached, endThreshold, ref, className, style, onScroll, ...props }: ListProps<T>): React__default.JSX.Element;
761
+ declare function ListRoot<T = unknown>({ children, items, getKey, renderItem, onReorder, groupBy, renderGroup, stickyGroups, height, contentWidth, virtual, estimatedItemHeight, estimatedGroupHeight, overscan, hoverable, emptyContent, loading, loadingContent, onEndReached, endThreshold, ref, className, style, onScroll, onDragOver, onDrop, ...props }: ListProps<T>): React__default.JSX.Element;
711
762
  /** Drag grip for a controlled sortable list. Supply keyboard reordering separately. */
712
763
  type ListSortHandleProps = Omit<React__default.HTMLAttributes<HTMLSpanElement>, "children" | "draggable">;
713
- declare function ListSortHandle({ className, title, ...props }: ListSortHandleProps): React__default.JSX.Element;
764
+ declare function ListSortHandle({ className, title, onDragStart, ...props }: ListSortHandleProps): React__default.JSX.Element;
714
765
  interface ListItemProps extends React__default.LiHTMLAttributes<HTMLLIElement> {
715
766
  sortHandle?: ListSortHandleProps;
716
767
  icon?: React__default.ReactNode;
@@ -807,10 +858,12 @@ type ButtonGroupProps = React.HTMLAttributes<HTMLDivElement> & {
807
858
  declare function ButtonGroup({ className, connected, size, ...p }: ButtonGroupProps): React.JSX.Element;
808
859
 
809
860
  type Tone = "neutral" | "blue" | "green" | "orange" | "red" | "purple";
810
- declare function Badge({ children, tone, onRemove, className, ...p }: React.HTMLAttributes<HTMLSpanElement> & {
861
+ interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
811
862
  tone?: Tone;
863
+ variant?: "default" | "filter";
812
864
  onRemove?: () => void;
813
- }): React.JSX.Element;
865
+ }
866
+ declare function Tag({ children, tone, variant, onRemove, className, ...p }: TagProps): React.JSX.Element;
814
867
  declare const Status: ({ children, tone, }: {
815
868
  children: React.ReactNode;
816
869
  tone?: Tone;
@@ -851,9 +904,14 @@ declare function Spinner({ label }: {
851
904
  label?: string;
852
905
  }): React.JSX.Element;
853
906
 
907
+ interface SidebarTabsOptions extends Pick<TabsProps, "label" | "value" | "defaultValue" | "onValueChange"> {
908
+ items: readonly Pick<TabItem, "value" | "label" | "content" | "disabled" | "icon">[];
909
+ }
854
910
  type SidebarProps = React.HTMLAttributes<HTMLElement> & {
855
911
  header?: React.ReactNode | ((collapsed: boolean) => React.ReactNode);
856
912
  footer?: React.ReactNode | ((collapsed: boolean) => React.ReactNode);
913
+ /** A nonempty list replaces children with tabbed local navigation. */
914
+ tabs?: SidebarTabsOptions;
857
915
  collapsePlacement?: "header" | "footer";
858
916
  collapsible?: boolean;
859
917
  collapsed?: boolean;
@@ -862,7 +920,7 @@ type SidebarProps = React.HTMLAttributes<HTMLElement> & {
862
920
  collapseLabel?: string;
863
921
  expandLabel?: string;
864
922
  };
865
- declare function Sidebar({ className, children, header, footer, collapsePlacement, collapsible, collapsed, defaultCollapsed, onCollapsedChange, collapseLabel, expandLabel, ...p }: SidebarProps): React.JSX.Element;
923
+ declare function Sidebar({ className, children, header, footer, tabs, collapsePlacement, collapsible, collapsed, defaultCollapsed, onCollapsedChange, collapseLabel, expandLabel, ...p }: SidebarProps): React.JSX.Element;
866
924
  interface NavItemAction {
867
925
  content: React.ReactNode;
868
926
  visibility?: "always" | "hover" | "active";
@@ -915,18 +973,13 @@ interface BreadcrumbItem {
915
973
  /** Separator after this item; null hides it. */
916
974
  separator?: React.ReactNode;
917
975
  onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLButtonElement>;
918
- menu?: Omit<MenuProps, "trigger">;
976
+ menu?: Omit<PopoverMenuProps, "trigger">;
919
977
  }
920
978
  interface BreadcrumbProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
921
979
  items: BreadcrumbItem[];
922
980
  separator?: React.ReactNode;
923
981
  }
924
982
  declare function Breadcrumb({ items, separator, "aria-label": label, ...props }: BreadcrumbProps): React.JSX.Element;
925
- declare function FilterChip({ children, onRemove, }: {
926
- children: React.ReactNode;
927
- onRemove: () => void;
928
- }): React.JSX.Element;
929
- declare const FilterBar: ({ className, ...p }: React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
930
983
 
931
984
  type TableRef = Reference;
932
985
  type SortOrder = "ascend" | "descend" | null;
@@ -1322,7 +1375,6 @@ interface TreeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "draggabl
1322
1375
  expandAction?: false | "click" | "doubleClick";
1323
1376
  }
1324
1377
  declare const Tree: React.ForwardRefExoticComponent<TreeProps & React.RefAttributes<TreeRef>>;
1325
- declare const DirectoryTree: React.ForwardRefExoticComponent<TreeProps & React.RefAttributes<TreeRef>>;
1326
1378
 
1327
1379
  type PaginationProps = {
1328
1380
  total: number;
@@ -1372,7 +1424,6 @@ type UploadProps = {
1372
1424
  children?: React.ReactNode;
1373
1425
  };
1374
1426
  declare function Upload({ upload, accept, maxSize, multiple, disabled, onChange, className, children, }: UploadProps): React.JSX.Element;
1375
- declare const Dropzone: typeof Upload;
1376
1427
 
1377
1428
  type AdminLayoutProps = React.HTMLAttributes<HTMLDivElement> & {
1378
1429
  hasSider?: boolean;
@@ -1435,11 +1486,33 @@ interface PageLayoutProps extends Omit<React.ComponentPropsWithRef<"div">, "titl
1435
1486
  description?: React.ReactNode;
1436
1487
  extra?: React.ReactNode;
1437
1488
  tabs?: React.ReactNode;
1489
+ /** Optional page-local sidebar. Pass a Sidebar or any other content. */
1490
+ sidebar?: React.ReactNode;
1491
+ /** Physical side of the main column when there is room. */
1492
+ sidebarPosition?: "left" | "right";
1493
+ /** Span both columns with the header and tabs ("full"), only the header
1494
+ * ("header"), or keep both in the main column ("main"). */
1495
+ headerSpan?: "full" | "header" | "main";
1438
1496
  headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
1439
1497
  /** Center the entire layout in its parent, with a preset or maximum pixel width. */
1440
1498
  maxWidth?: keyof typeof pageLayoutWidths | number;
1441
1499
  }
1442
- declare function PageLayout({ title, subtitle, icon, actions, description, extra, tabs, children, headingLevel, maxWidth, className, style, ...rootProps }: PageLayoutProps): React.JSX.Element;
1500
+ declare function PageLayout({ title, subtitle, icon, actions, description, extra, tabs, children, sidebar, sidebarPosition, headerSpan, headingLevel, maxWidth, className, style, ...rootProps }: PageLayoutProps): React.JSX.Element;
1501
+
1502
+ type SectionGroupProps = React.ComponentPropsWithoutRef<"div"> & {
1503
+ /** Show a separator between sections. */
1504
+ dividers?: boolean;
1505
+ };
1506
+ type SectionGroupSectionProps = Omit<React.ComponentPropsWithoutRef<"section">, "title"> & {
1507
+ title: React.ReactNode;
1508
+ actions?: React.ReactNode;
1509
+ headingLevel?: 2 | 3 | 4 | 5 | 6;
1510
+ };
1511
+ declare function SectionGroupRoot({ children, className, dividers, ...props }: SectionGroupProps): React.JSX.Element;
1512
+ declare function Section({ title, actions, headingLevel, children, className, ...props }: SectionGroupSectionProps): React.JSX.Element;
1513
+ declare const SectionGroup: typeof SectionGroupRoot & {
1514
+ Section: typeof Section;
1515
+ };
1443
1516
 
1444
1517
  interface SpotlightAction {
1445
1518
  /** Unique within this Spotlight. */
@@ -1595,38 +1668,6 @@ declare const Mentions: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLA
1595
1668
  classNames?: Partial<Record<MentionsSemantic, string>>;
1596
1669
  styles?: Partial<Record<MentionsSemantic, React.CSSProperties>>;
1597
1670
  } & React.RefAttributes<MentionsRef>>;
1598
- declare const Mention: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "children" | "defaultValue" | "prefix" | "onChange" | "onSelect" | "value"> & {
1599
- value?: string;
1600
- defaultValue?: string;
1601
- onChange?: (value: string) => void;
1602
- options?: MentionOption[];
1603
- prefix?: string | string[];
1604
- split?: string;
1605
- onSearch?: (text: string, prefix: string) => void;
1606
- onSelect?: (option: MentionOption, prefix: string) => void;
1607
- filterOption?: false | ((input: string, option: MentionOption) => boolean);
1608
- validateSearch?: (text: string, split: string) => boolean;
1609
- loading?: boolean;
1610
- notFoundContent?: React.ReactNode;
1611
- placement?: "top" | "bottom";
1612
- getPopupContainer?: () => HTMLElement;
1613
- popupRender?: (menu: React.ReactElement) => React.ReactNode;
1614
- onPopupScroll?: React.UIEventHandler<HTMLDivElement>;
1615
- size?: "sm" | "md" | "lg";
1616
- status?: "error" | "warning";
1617
- autoSize?: boolean | {
1618
- minRows?: number;
1619
- maxRows?: number;
1620
- };
1621
- allowClear?: boolean | {
1622
- clearIcon?: React.ReactNode;
1623
- label?: string;
1624
- tabIndex?: number;
1625
- };
1626
- onClear?: () => void;
1627
- classNames?: Partial<Record<MentionsSemantic, string>>;
1628
- styles?: Partial<Record<MentionsSemantic, React.CSSProperties>>;
1629
- } & React.RefAttributes<MentionsRef>>;
1630
1671
 
1631
1672
  type CalendarMode = "month" | "year";
1632
1673
  type CalendarSelectInfo = {
@@ -1852,8 +1893,17 @@ interface TableOfContentsProps extends Omit<React__default.HTMLAttributes<HTMLEl
1852
1893
  selector?: string;
1853
1894
  title?: React__default.ReactNode;
1854
1895
  initialItems?: TableOfContentsItem[];
1896
+ /** Explicit ordered items, instead of discovering headings from the DOM. */
1897
+ items?: readonly TableOfContentsItem[];
1898
+ listStyle?: "flat" | "nested";
1899
+ /** A supplied href uses native link navigation instead of scrolling in JS. */
1900
+ getHref?: (item: TableOfContentsItem) => string | undefined;
1901
+ fallbackActiveId?: string;
1902
+ highlightLastAtEnd?: boolean;
1903
+ /** At this viewport width or below, use a native collapsed disclosure. */
1904
+ collapseBelow?: number;
1855
1905
  observe?: boolean;
1856
- offset?: number;
1906
+ offset?: number | (() => number);
1857
1907
  behavior?: ScrollBehavior;
1858
1908
  indent?: number;
1859
1909
  variant?: "default" | "subtle";
@@ -2390,11 +2440,6 @@ interface AiActivityProps extends React.HTMLAttributes<HTMLDivElement> {
2390
2440
  defaultOpen?: boolean;
2391
2441
  onOpenChange?: (open: boolean) => void;
2392
2442
  }
2393
- interface AiChainOfThoughtProps extends AiActivityProps {
2394
- steps?: AiActivityStep[];
2395
- }
2396
- /** Displays public summaries and observable steps supplied by the caller, not hidden model reasoning. */
2397
- declare function AiChainOfThought({ title, steps, children, ...props }: AiChainOfThoughtProps): React.JSX.Element;
2398
2443
  interface AiTaskProps extends AiActivityProps {
2399
2444
  steps?: AiActivityStep[];
2400
2445
  }
@@ -2574,4 +2619,46 @@ declare const CheckCard: typeof CheckCardRoot & {
2574
2619
  Group: typeof CheckCardGroup;
2575
2620
  };
2576
2621
 
2577
- export { AdminLayout, type AdminLayoutContentProps, type AdminLayoutHeaderProps, type AdminLayoutProps, type AdminLayoutSiderProps, Affix, type AffixProps, type AiActivityProps, type AiActivityStatus, type AiActivityStep, AiChainOfThought, type AiChainOfThoughtProps, AiChat, type AiChatProps, AiCheckpoint, type AiCheckpointProps, AiConfirmation, type AiConfirmationProps, AiContext, type AiContextProps, type AiEvidenceAppearance, type AiFileNode, AiFileTree, type AiFileTreeProps, AiInlineCitation, type AiInlineCitationProps, AiMessage, type AiMessageProps, type AiModelOption, AiModelSelector, type AiModelSelectorProps, AiPlan, type AiPlanProps, type AiPromptAttachment, AiPromptInput, type AiPromptInputProps, type AiPromptStatus, type AiPromptSubmission, AiQueue, type AiQueueProps, AiReasoning, type AiReasoningProps, type AiSource, AiSources, type AiSourcesProps, type AiStackFrame, AiStackTrace, type AiStackTraceProps, AiSubagent, type AiSubagentProps, AiSuggestion, type AiSuggestionProps, AiTask, type AiTaskProps, AiTerminal, type AiTerminalProps, type AiTerminalStatus, type AiTestResult, AiTestResults, type AiTestResultsProps, type AiTestStatus, AiTool, type AiToolProps, Alert, AutoComplete, type AutoCompleteGroup, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarBreakpoint, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Badge, Blockquote, type BlockquoteProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonToggleOptions, Calendar, type CalendarCellInfo, type CalendarHeaderInfo, type CalendarMode, type CalendarProps, type CalendarSelectInfo, type CalendarSemanticSlot, Card, type CardGridProps, CardGroup, type CardGroupBreakpoint, type CardGroupItemProps, type CardGroupProps, type CardGroupResponsive, type CardMetaProps, type CardMetaSemantic, type CardProps, type CardSemantic, type CardTabItem, type CardTokens, Cascader, type CascaderKey, type CascaderOption, CascaderPanel, type CascaderPanelProps, type CascaderPath, type CascaderProps, CheckCard, type CheckCardGroupProps, type CheckCardOption, type CheckCardProps, type CheckCardSize, Checkbox, type CheckboxProps, ConfirmDialog, type ConfirmDialogProps, ContextMenu, DataList, type DataListBatchContext, type DataListExpansion, type DataListKey, type DataListLocalPagination, type DataListPagination, type DataListProps, type DataListRemotePagination, type DataListSearch, type DataListSelection, DatePicker, type DatePickerProps, Dialog, type DialogProps, DirectoryTree, Divider, type DividerProps, DocumentCard, type DocumentItem, DocumentList, Drawer, DropdownMenu, type DropdownMenuProps, Dropzone, Empty, Fieldset, type FieldsetProps, FilterBar, FilterChip, Form, FormField, type FormFieldProps, type FormInstance, type FormProps, type FormRule, type FormValidateTrigger, type FormValidationError, type FormValues, GlobalNotice, type GlobalNoticeProps, HoverCard, type HoverCardProps, Image, ImageGroup, type ImageGroupProps, type ImageItem, ImagePreview, type ImagePreviewProps, type ImageProps, Input, type InputControlSize, type InputOTPProps, type InputPasswordProps, type InputProps, type InputSearchProps, type InputTextAreaProps, type InputVariant, Link, type LinkProps, List, type ListHandle, ListItem, type ListItemProps, type ListProps, type ListScrollTarget, type ListSortHandleProps, LoadingOverlay, type LoadingOverlayProps, type Locale, Mention, type MentionOption, Mentions, type MentionsProps, type MentionsRef, type MentionsSemantic, Menu, type MenuCheckboxItem, type MenuDivider, type MenuEntry, type MenuGroup, type MenuItem, type MenuProps, type MenuRadioGroup, Menubar, type MenubarMenu, type MenubarProps, Modal, type ModalProps, type MtoneAccent, MtoneProvider, type MtoneProviderProps, MtoneScope, type MtoneScopeProps, type MtoneTheme, MultiSelect, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemAction, type NavItemButtonProps, type NavItemLinkProps, type NavItemProps, NavSubmenu, type NavSubmenuProps, NumberInput, type NumberInputProps, type OpenProps, type Option, PageLayout, type PageLayoutProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popconfirm, type PopconfirmPlacement, type PopconfirmProps, Popover, type PopoverProps, Progress, type ProgressColor, type ProgressProps, type ProgressStatus, type ProgressType, PropertyItem, PropertyList, Questionnaire, type QuestionnaireAnswer, type QuestionnaireAnswers, type QuestionnaireChoice, type QuestionnaireItem, type QuestionnaireProps, RadioGroup, type RadioGroupProps, Rate, type RateCharacterInfo, type RateProps, Result, type ResultProps, type ResultSemantic, type ResultStatus, SearchInput, Segmented, Select, type SelectProps, Sidebar, type SidebarProps, Skeleton, Slider, type SliderProps, type SortOrder, Spinner, Splitter, type SplitterPanelProps, type SplitterProps, type SplitterSize, Spotlight, type SpotlightAction, type SpotlightProps, Status, Switch, type TabItem, Table, type TableClassNames, type TableColumn, type TableColumnTitleProps, type TableColumnsType, type TableExpandableConfig, type TableFilterDropdownProps, type TableFilterItem, type TableFilterValue, type TableFilters, type TableLocale, TableOfContents, type TableOfContentsHandle, type TableOfContentsItem, type TableOfContentsProps, type TablePagination, type TableProps, type TableRef, type TableRowSelection, type TableSelectionType, type TableSortResult, type TableState, type TableStyles, Tabs, type TabsIndicatorColor, type TabsProps, TagSelect, type TagSelectOption, type TagSelectProps, Text, type TextProps, Textarea, Timeline, type TimelineItem, type TimelinePlacement, type TimelineProps, type TimelineSemantic, Title, type TitleProps, Toast, type ToastOptions, type ToastPosition, type ToastPromiseOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToastUpdateOptions, type Tokens, type Tone, Tooltip, Transfer, type TransferDirection, type TransferItem, type TransferListContext, type TransferProps, Tree, type TreeCheckedKeys, type TreeDropInfo, type TreeItem, type TreeKey, type TreeNode, type TreeNodeInfo, type TreeProps, type TreeRef, TreeSelect, type TreeSelectCommonProps, type TreeSelectProps, Typography, type TypographyCodeProps, type TypographyCopyable, type TypographyEditable, type TypographyEllipsis, type TypographyTone, Upload, type UploadAdapter, type UploadContext, type UploadFile, type UploadProps, cn, getMentions, useMtone, useToast };
2622
+ interface ToolbarProps extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
2623
+ /** Search or another control that takes the full first row in a narrow toolbar. */
2624
+ search?: React.ReactNode;
2625
+ /** Controls aligned at the logical start, after search when present. */
2626
+ start?: React.ReactNode;
2627
+ /** Controls aligned at the logical end. */
2628
+ end?: React.ReactNode;
2629
+ /** Surface color resolved from the active mtone theme. */
2630
+ background?: "white" | "gray";
2631
+ }
2632
+ /** Standalone presentation for search, filters and actions. */
2633
+ declare const Toolbar: React.ForwardRefExoticComponent<ToolbarProps & React.RefAttributes<HTMLDivElement>>;
2634
+
2635
+ type Position = {
2636
+ left: number;
2637
+ top: number;
2638
+ };
2639
+ type Size = {
2640
+ width: number;
2641
+ height: number;
2642
+ };
2643
+ interface FloatingWindowProps {
2644
+ title: React.ReactNode;
2645
+ children?: React.ReactNode;
2646
+ trigger?: React.ReactElement | string;
2647
+ open?: boolean;
2648
+ defaultOpen?: boolean;
2649
+ onOpenChange?: (open: boolean) => void;
2650
+ initialPosition?: Position;
2651
+ initialSize?: Size;
2652
+ minWidth?: number;
2653
+ minHeight?: number;
2654
+ maxWidth?: number;
2655
+ maxHeight?: number;
2656
+ draggable?: boolean;
2657
+ resizable?: boolean;
2658
+ minimizable?: boolean;
2659
+ minimizedIcon?: React.ReactNode;
2660
+ zIndex?: number;
2661
+ }
2662
+ declare function FloatingWindow({ title, children, trigger, open: controlledOpen, defaultOpen, onOpenChange, initialPosition, initialSize, minWidth, minHeight, maxWidth, maxHeight, draggable, resizable, minimizable, minimizedIcon, zIndex, }: FloatingWindowProps): React.JSX.Element;
2663
+
2664
+ export { AdminLayout, type AdminLayoutContentProps, type AdminLayoutHeaderProps, type AdminLayoutProps, type AdminLayoutSiderProps, Affix, type AffixProps, type AiActivityProps, type AiActivityStatus, type AiActivityStep, AiChat, type AiChatProps, AiCheckpoint, type AiCheckpointProps, AiConfirmation, type AiConfirmationProps, AiContext, type AiContextProps, type AiEvidenceAppearance, type AiFileNode, AiFileTree, type AiFileTreeProps, AiInlineCitation, type AiInlineCitationProps, AiMessage, type AiMessageProps, type AiModelOption, AiModelSelector, type AiModelSelectorProps, AiPlan, type AiPlanProps, type AiPromptAttachment, AiPromptInput, type AiPromptInputProps, type AiPromptStatus, type AiPromptSubmission, AiQueue, type AiQueueProps, AiReasoning, type AiReasoningProps, type AiSource, AiSources, type AiSourcesProps, type AiStackFrame, AiStackTrace, type AiStackTraceProps, AiSubagent, type AiSubagentProps, AiSuggestion, type AiSuggestionProps, AiTask, type AiTaskProps, AiTerminal, type AiTerminalProps, type AiTerminalStatus, type AiTestResult, AiTestResults, type AiTestResultsProps, type AiTestStatus, AiTool, type AiToolProps, Alert, AutoComplete, type AutoCompleteGroup, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarBreakpoint, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Blockquote, type BlockquoteProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonToggleOptions, Calendar, type CalendarCellInfo, type CalendarHeaderInfo, type CalendarMode, type CalendarProps, type CalendarSelectInfo, type CalendarSemanticSlot, Card, type CardGridProps, CardGroup, type CardGroupBreakpoint, type CardGroupItemProps, type CardGroupProps, type CardGroupResponsive, type CardMetaProps, type CardMetaSemantic, type CardProps, type CardSemantic, type CardTabItem, type CardTokens, Cascader, type CascaderKey, type CascaderOption, CascaderPanel, type CascaderPanelProps, type CascaderPath, type CascaderProps, CheckCard, type CheckCardGroupProps, type CheckCardOption, type CheckCardProps, type CheckCardSize, Checkbox, type CheckboxProps, ConfirmDialog, type ConfirmDialogProps, ContextMenu, DataList, type DataListBatchContext, type DataListExpansion, type DataListKey, type DataListLocalPagination, type DataListPagination, type DataListProps, type DataListRemotePagination, type DataListSearch, type DataListSelection, DatePicker, type DatePickerProps, Dialog, type DialogProps, Divider, type DividerProps, DocumentCard, type DocumentItem, DocumentList, Drawer, Empty, Fieldset, type FieldsetProps, FloatingWindow, type FloatingWindowProps, Form, type FormFieldProps, type FormInstance, type FormProps, type FormRule, type FormValidateTrigger, type FormValidationError, type FormValues, GlobalNotice, type GlobalNoticeProps, HoverCard, type HoverCardProps, Image, ImageGroup, type ImageGroupProps, type ImageItem, ImagePreview, type ImagePreviewProps, type ImageProps, Input, type InputControlSize, type InputOTPProps, type InputPasswordProps, type InputProps, type InputSearchProps, type InputTextAreaProps, type InputVariant, Link, type LinkProps, List, type ListHandle, ListItem, type ListItemProps, type ListProps, type ListScrollTarget, type ListSortHandleProps, LoadingOverlay, type LoadingOverlayProps, type Locale, type MentionOption, Mentions, type MentionsProps, type MentionsRef, type MentionsSemantic, Menu, type MenuCheckboxItem, type MenuDivider, type MenuEntry, type MenuGroup, type MenuItem, type MenuProps, type MenuRadioGroup, Menubar, type MenubarMenu, type MenubarProps, type MtoneAccent, MtoneProvider, type MtoneProviderProps, MtoneScope, type MtoneScopeProps, type MtoneTheme, MultiSelect, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemAction, type NavItemButtonProps, type NavItemLinkProps, type NavItemProps, NavSubmenu, type NavSubmenuProps, NumberInput, type NumberInputProps, type OpenProps, type Option, PageLayout, type PageLayoutProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popconfirm, type PopconfirmPlacement, type PopconfirmProps, Popover, type PopoverMenuProps, type PopoverProps, Progress, type ProgressColor, type ProgressProps, type ProgressStatus, type ProgressType, PropertyItem, PropertyList, Questionnaire, type QuestionnaireAnswer, type QuestionnaireAnswers, type QuestionnaireChoice, type QuestionnaireItem, type QuestionnaireProps, RadioGroup, type RadioGroupProps, Rate, type RateCharacterInfo, type RateProps, Result, type ResultProps, type ResultSemantic, type ResultStatus, SectionGroup, type SectionGroupProps, type SectionGroupSectionProps, Select, type SelectMultipleProps, type SelectOption, type SelectOptionGroup, type SelectPopupSearchProps, type SelectProps, type SelectSingleProps, type SelectTagsProps, Sidebar, type SidebarProps, type SidebarTabsOptions, Skeleton, Slider, type SliderProps, type SortOrder, Spinner, Splitter, type SplitterPanelProps, type SplitterProps, type SplitterSize, Spotlight, type SpotlightAction, type SpotlightProps, Status, Switch, type TabItem, Table, type TableClassNames, type TableColumn, type TableColumnTitleProps, type TableColumnsType, type TableExpandableConfig, type TableFilterDropdownProps, type TableFilterItem, type TableFilterValue, type TableFilters, type TableLocale, TableOfContents, type TableOfContentsHandle, type TableOfContentsItem, type TableOfContentsProps, type TablePagination, type TableProps, type TableRef, type TableRowSelection, type TableSelectionType, type TableSortResult, type TableState, type TableStyles, Tabs, type TabsIndicatorColor, type TabsProps, Tag, type TagProps, TagSelect, type TagSelectOption, type TagSelectProps, Text, type TextProps, Timeline, type TimelineItem, type TimelinePlacement, type TimelineProps, type TimelineSemantic, Title, type TitleProps, type ToastOptions, type ToastPosition, type ToastPromiseOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToastUpdateOptions, type Tokens, type Tone, Toolbar, type ToolbarProps, Tooltip, Transfer, type TransferDirection, type TransferItem, type TransferListContext, type TransferProps, Tree, type TreeCheckedKeys, type TreeDropInfo, type TreeItem, type TreeKey, type TreeNode, type TreeNodeInfo, type TreeProps, type TreeRef, TreeSelect, type TreeSelectCommonProps, type TreeSelectProps, Typography, type TypographyCodeProps, type TypographyCopyable, type TypographyEditable, type TypographyEllipsis, type TypographyTone, Upload, type UploadAdapter, type UploadContext, type UploadFile, type UploadProps, cn, getMentions, useMtone, useToast };