@bixlab/mtone 0.8.0 → 0.9.0
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 +562 -40
- package/dist/index.js +3520 -1030
- package/dist/styles.css +1 -1
- package/dist/typography-highlight-WZ7OAZVP.js +62 -0
- package/llms.txt +984 -110
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -252,6 +252,8 @@ interface TextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
252
252
|
}
|
|
253
253
|
interface TitleProps extends TextProps {
|
|
254
254
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
255
|
+
/** Draws a full-width rule below the heading. Defaults to true only for h2. */
|
|
256
|
+
divider?: boolean;
|
|
255
257
|
}
|
|
256
258
|
type ParagraphProps = TextProps;
|
|
257
259
|
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -276,12 +278,19 @@ interface BlockquoteProps extends Omit<React.BlockquoteHTMLAttributes<HTMLQuoteE
|
|
|
276
278
|
textWrap?: React.CSSProperties["textWrap"];
|
|
277
279
|
}
|
|
278
280
|
declare const Blockquote: React.ForwardRefExoticComponent<BlockquoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
281
|
+
interface TypographyCodeProps extends Omit<React.HTMLAttributes<HTMLElement>, "dangerouslySetInnerHTML"> {
|
|
282
|
+
/** Render a preformatted block instead of inline code. */
|
|
283
|
+
block?: boolean;
|
|
284
|
+
/** Highlight a supported language in multiline string blocks. */
|
|
285
|
+
language?: string;
|
|
286
|
+
}
|
|
279
287
|
declare const Typography: {
|
|
280
288
|
Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
281
289
|
Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
282
290
|
Paragraph: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
283
291
|
Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
284
292
|
Blockquote: React.ForwardRefExoticComponent<BlockquoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
293
|
+
Code: React.ForwardRefExoticComponent<TypographyCodeProps & React.RefAttributes<HTMLElement>>;
|
|
285
294
|
};
|
|
286
295
|
|
|
287
296
|
interface DividerProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -296,20 +305,17 @@ interface DividerProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
296
305
|
/** A non-interactive separator. Titles are supported in horizontal orientation only. */
|
|
297
306
|
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>>;
|
|
298
307
|
|
|
299
|
-
type
|
|
300
|
-
interface
|
|
308
|
+
type FloatingAlign = "start" | "end" | "left" | "right";
|
|
309
|
+
interface FloatingLayoutProps {
|
|
301
310
|
/** Content-sized by default. Numbers are CSS pixels; strings are CSS widths. */
|
|
302
311
|
width?: React__default.CSSProperties["width"];
|
|
303
312
|
/** start/end are logical; left/right are physical even in RTL. */
|
|
304
|
-
align?:
|
|
313
|
+
align?: FloatingAlign;
|
|
305
314
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
label?: string;
|
|
311
|
-
}
|
|
312
|
-
declare function Dropdown({ trigger, content, width, align, label, ...props }: DropdownProps): React__default.JSX.Element;
|
|
315
|
+
|
|
316
|
+
declare const accentNames: readonly ["neutral", "blue", "green", "orange", "red", "purple", "teal", "coral"];
|
|
317
|
+
/** Shared theme accent keys, backed by the matching --mt-accent-* properties. */
|
|
318
|
+
type MtoneAccent = (typeof accentNames)[number];
|
|
313
319
|
|
|
314
320
|
interface TabItem {
|
|
315
321
|
value: string;
|
|
@@ -322,6 +328,8 @@ interface TabItem {
|
|
|
322
328
|
forceRender?: boolean;
|
|
323
329
|
destroyOnHidden?: boolean;
|
|
324
330
|
}
|
|
331
|
+
/** A theme accent preset, or any valid CSS color value. */
|
|
332
|
+
type TabsIndicatorColor = MtoneAccent | (string & {});
|
|
325
333
|
interface TabsProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange" | "children"> {
|
|
326
334
|
items: TabItem[];
|
|
327
335
|
value?: string;
|
|
@@ -329,8 +337,11 @@ interface TabsProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>,
|
|
|
329
337
|
onValueChange?: (value: string) => void;
|
|
330
338
|
label?: string;
|
|
331
339
|
placement?: "top" | "bottom" | "start" | "end";
|
|
332
|
-
|
|
340
|
+
/** Attached connects to the panel at top; other placements use line styling. */
|
|
341
|
+
variant?: "line" | "card" | "editable-card" | "attached";
|
|
333
342
|
size?: "small" | "medium" | "large";
|
|
343
|
+
/** Color of the selected line indicator; defaults to currentColor. */
|
|
344
|
+
indicatorColor?: TabsIndicatorColor;
|
|
334
345
|
centered?: boolean;
|
|
335
346
|
gap?: number;
|
|
336
347
|
extraStart?: React__default.ReactNode;
|
|
@@ -501,21 +512,23 @@ interface MenuRadioGroup {
|
|
|
501
512
|
children: Omit<MenuItem, "type" | "children" | "onSelect">[];
|
|
502
513
|
}
|
|
503
514
|
type MenuEntry = MenuItem | MenuGroup | MenuDivider | MenuCheckboxItem | MenuRadioGroup;
|
|
504
|
-
interface MenuProps extends OpenProps,
|
|
505
|
-
trigger: React__default.ReactElement;
|
|
515
|
+
interface MenuProps extends OpenProps, FloatingLayoutProps {
|
|
516
|
+
trigger: string | React__default.ReactElement;
|
|
517
|
+
/** Whether a mouse hover can open the menu in addition to normal presses. */
|
|
518
|
+
triggerMode?: "click" | "hover";
|
|
506
519
|
items: MenuEntry[];
|
|
507
520
|
onSelect?: (key: string) => void;
|
|
508
521
|
}
|
|
509
|
-
declare function Menu({ trigger, items, onSelect, width, align, ...props }: MenuProps): React__default.JSX.Element;
|
|
522
|
+
declare function Menu({ trigger, triggerMode, items, onOpenChange, onSelect, width, align, ...props }: MenuProps): React__default.JSX.Element;
|
|
510
523
|
/** A top-level application menu. Keys must be unique within the bar. */
|
|
511
|
-
interface MenubarMenu extends
|
|
524
|
+
interface MenubarMenu extends FloatingLayoutProps {
|
|
512
525
|
key: string;
|
|
513
526
|
label: React__default.ReactNode;
|
|
514
527
|
icon?: React__default.ReactNode;
|
|
515
528
|
disabled?: boolean;
|
|
516
529
|
items: MenuEntry[];
|
|
517
530
|
}
|
|
518
|
-
interface MenubarProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, "onSelect" | "children">,
|
|
531
|
+
interface MenubarProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, "onSelect" | "children">, FloatingLayoutProps {
|
|
519
532
|
menus: MenubarMenu[];
|
|
520
533
|
openKey?: string | null;
|
|
521
534
|
defaultOpenKey?: string | null;
|
|
@@ -525,7 +538,7 @@ interface MenubarProps extends Omit<React__default.HTMLAttributes<HTMLDivElement
|
|
|
525
538
|
loop?: boolean;
|
|
526
539
|
trigger?: "click" | "hover";
|
|
527
540
|
}
|
|
528
|
-
/** Coordinated command menus, sharing Menu items and
|
|
541
|
+
/** Coordinated command menus, sharing Menu items and floating surfaces. */
|
|
529
542
|
declare function Menubar({ menus, openKey, defaultOpenKey, onOpenChange, onSelect, disabled, loop, trigger, width, align, className, ...props }: MenubarProps): React__default.JSX.Element;
|
|
530
543
|
/** @deprecated Use MenuProps instead. */
|
|
531
544
|
type DropdownMenuProps = MenuProps;
|
|
@@ -534,14 +547,19 @@ declare const DropdownMenu: typeof Menu;
|
|
|
534
547
|
declare function ContextMenu({ children, items, onSelect, width, ...props }: Omit<MenuProps, "trigger" | "align"> & {
|
|
535
548
|
children: React__default.ReactNode;
|
|
536
549
|
}): React__default.JSX.Element;
|
|
537
|
-
interface PopoverProps extends OpenProps {
|
|
538
|
-
trigger: React__default.ReactElement;
|
|
550
|
+
interface PopoverProps extends OpenProps, Omit<FloatingLayoutProps, "align"> {
|
|
551
|
+
trigger: string | React__default.ReactElement;
|
|
539
552
|
content: React__default.ReactNode;
|
|
540
553
|
title?: React__default.ReactNode;
|
|
554
|
+
/** Accessible name. Overrides the visible title when supplied. */
|
|
555
|
+
label?: string;
|
|
541
556
|
side?: "top" | "bottom" | "left" | "right";
|
|
557
|
+
align?: FloatingLayoutProps["align"] | "center";
|
|
558
|
+
/** Remove the Popup frame, padding and background, keeping positioning and focus. */
|
|
559
|
+
unstyled?: boolean;
|
|
542
560
|
}
|
|
543
|
-
declare function Popover({ trigger, content, title, side, ...props }: PopoverProps): React__default.JSX.Element;
|
|
544
|
-
declare function Tooltip({ children, content, side, ...props }:
|
|
561
|
+
declare function Popover({ trigger, content, title, label, side, align, width, unstyled, ...props }: PopoverProps): React__default.JSX.Element;
|
|
562
|
+
declare function Tooltip({ children, content, side, ...props }: OpenProps & Pick<PopoverProps, "content" | "side"> & {
|
|
545
563
|
children: React__default.ReactElement;
|
|
546
564
|
}): React__default.JSX.Element;
|
|
547
565
|
interface DialogFrameProps extends OpenProps {
|
|
@@ -597,6 +615,13 @@ interface CardTabItem {
|
|
|
597
615
|
}
|
|
598
616
|
interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
599
617
|
title?: React.ReactNode;
|
|
618
|
+
/** Show a separate header control that hides content without unmounting it. */
|
|
619
|
+
collapsible?: boolean;
|
|
620
|
+
collapsed?: boolean;
|
|
621
|
+
defaultCollapsed?: boolean;
|
|
622
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
623
|
+
/** Accessible name of the collapse control; defaults to localized action text. */
|
|
624
|
+
collapseLabel?: string;
|
|
600
625
|
/** Native HTML tooltip, formerly supplied through title. */
|
|
601
626
|
htmlTitle?: string;
|
|
602
627
|
extra?: React.ReactNode;
|
|
@@ -716,37 +741,70 @@ type MtoneProviderProps = Partial<Context> & {
|
|
|
716
741
|
children: React.ReactNode;
|
|
717
742
|
};
|
|
718
743
|
declare function MtoneProvider({ children, locale, tokens, theme, }: MtoneProviderProps): React.JSX.Element;
|
|
744
|
+
/** Visual treatment of an opt-in pressed Button. */
|
|
745
|
+
type ButtonToggleOptions = {
|
|
746
|
+
mode: "background";
|
|
747
|
+
} | {
|
|
748
|
+
mode: "icon";
|
|
749
|
+
preset: "star" | "pin";
|
|
750
|
+
offIcon?: never;
|
|
751
|
+
onIcon?: never;
|
|
752
|
+
} | {
|
|
753
|
+
mode: "icon";
|
|
754
|
+
preset?: never;
|
|
755
|
+
offIcon: React.ReactNode;
|
|
756
|
+
onIcon: React.ReactNode;
|
|
757
|
+
};
|
|
758
|
+
type ButtonSize = "small" | "normal" | "large" | "sm" | "md" | "lg";
|
|
719
759
|
type ButtonProps = Omit<React.ComponentPropsWithoutRef<typeof Button$1>, "className"> & {
|
|
720
760
|
className?: string;
|
|
721
761
|
variant?: "blue" | "solid" | "outline" | "soft" | "ghost";
|
|
722
|
-
size?:
|
|
762
|
+
size?: ButtonSize;
|
|
763
|
+
/** Square icon-only mode. Provide aria-label or aria-labelledby for its accessible name. */
|
|
764
|
+
iconOnly?: boolean;
|
|
723
765
|
danger?: boolean;
|
|
724
766
|
loading?: boolean;
|
|
767
|
+
/** Opt into a persistent pressed state. True uses background mode. */
|
|
768
|
+
toggle?: boolean | ButtonToggleOptions;
|
|
769
|
+
pressed?: boolean;
|
|
770
|
+
defaultPressed?: boolean;
|
|
771
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
725
772
|
icon?: React.ReactNode;
|
|
773
|
+
/** Content before the label (inline start). When omitted, icon is used. */
|
|
774
|
+
leftSection?: React.ReactNode;
|
|
775
|
+
/** Content after the label (inline end), including while loading. */
|
|
776
|
+
rightSection?: React.ReactNode;
|
|
777
|
+
/** Visual-only dropdown chevron, unless rightSection is explicitly specified. */
|
|
778
|
+
preset?: "dropdown";
|
|
726
779
|
};
|
|
727
780
|
declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<_base_ui_react.ButtonProps, "ref"> & React.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
728
781
|
className?: string;
|
|
729
782
|
variant?: "blue" | "solid" | "outline" | "soft" | "ghost";
|
|
730
|
-
size?:
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
icon?: React.ReactNode;
|
|
734
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
735
|
-
declare const IconButton: React.ForwardRefExoticComponent<Omit<Omit<Omit<_base_ui_react.ButtonProps, "ref"> & React.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
736
|
-
className?: string;
|
|
737
|
-
variant?: "blue" | "solid" | "outline" | "soft" | "ghost";
|
|
738
|
-
size?: "sm" | "md" | "lg";
|
|
783
|
+
size?: ButtonSize;
|
|
784
|
+
/** Square icon-only mode. Provide aria-label or aria-labelledby for its accessible name. */
|
|
785
|
+
iconOnly?: boolean;
|
|
739
786
|
danger?: boolean;
|
|
740
787
|
loading?: boolean;
|
|
788
|
+
/** Opt into a persistent pressed state. True uses background mode. */
|
|
789
|
+
toggle?: boolean | ButtonToggleOptions;
|
|
790
|
+
pressed?: boolean;
|
|
791
|
+
defaultPressed?: boolean;
|
|
792
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
741
793
|
icon?: React.ReactNode;
|
|
742
|
-
|
|
743
|
-
|
|
794
|
+
/** Content before the label (inline start). When omitted, icon is used. */
|
|
795
|
+
leftSection?: React.ReactNode;
|
|
796
|
+
/** Content after the label (inline end), including while loading. */
|
|
797
|
+
rightSection?: React.ReactNode;
|
|
798
|
+
/** Visual-only dropdown chevron, unless rightSection is explicitly specified. */
|
|
799
|
+
preset?: "dropdown";
|
|
744
800
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
745
801
|
type ButtonGroupProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
746
802
|
/** Join adjacent buttons, keeping only the outside corners rounded. */
|
|
747
803
|
connected?: boolean;
|
|
804
|
+
/** Default size for Buttons without their own size, including composed triggers. */
|
|
805
|
+
size?: ButtonSize;
|
|
748
806
|
};
|
|
749
|
-
declare
|
|
807
|
+
declare function ButtonGroup({ className, connected, size, ...p }: ButtonGroupProps): React.JSX.Element;
|
|
750
808
|
|
|
751
809
|
type Tone = "neutral" | "blue" | "green" | "orange" | "red" | "purple";
|
|
752
810
|
declare function Badge({ children, tone, onRemove, className, ...p }: React.HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -805,14 +863,46 @@ type SidebarProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
805
863
|
expandLabel?: string;
|
|
806
864
|
};
|
|
807
865
|
declare function Sidebar({ className, children, header, footer, collapsePlacement, collapsible, collapsed, defaultCollapsed, onCollapsedChange, collapseLabel, expandLabel, ...p }: SidebarProps): React.JSX.Element;
|
|
808
|
-
|
|
866
|
+
interface NavItemAction {
|
|
867
|
+
content: React.ReactNode;
|
|
868
|
+
visibility?: "always" | "hover" | "active";
|
|
869
|
+
}
|
|
870
|
+
interface NavItemCommonProps {
|
|
809
871
|
active?: boolean;
|
|
810
872
|
icon?: React.ReactNode;
|
|
811
|
-
|
|
812
|
-
|
|
873
|
+
actions?: NavItemAction | readonly NavItemAction[];
|
|
874
|
+
}
|
|
875
|
+
type NavItemButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & NavItemCommonProps & {
|
|
876
|
+
href?: undefined;
|
|
877
|
+
};
|
|
878
|
+
type NavItemLinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & NavItemCommonProps & {
|
|
879
|
+
href: string;
|
|
880
|
+
disabled?: boolean;
|
|
881
|
+
};
|
|
882
|
+
type NavItemProps = NavItemButtonProps | NavItemLinkProps;
|
|
883
|
+
declare const NavItem: {
|
|
884
|
+
(props: NavItemLinkProps & React.RefAttributes<HTMLAnchorElement>): React.ReactNode;
|
|
885
|
+
(props: NavItemButtonProps & React.RefAttributes<HTMLButtonElement>): React.ReactNode;
|
|
886
|
+
};
|
|
887
|
+
interface NavGroupProps {
|
|
813
888
|
label?: React.ReactNode;
|
|
814
889
|
children: React.ReactNode;
|
|
815
|
-
|
|
890
|
+
/** Show a decorative divider before this group when it follows another group. */
|
|
891
|
+
divider?: boolean;
|
|
892
|
+
/** Header controls at the inline end, hidden in the collapsed sidebar. */
|
|
893
|
+
actions?: React.ReactNode;
|
|
894
|
+
}
|
|
895
|
+
declare function NavGroup({ label, children, divider, actions }: NavGroupProps): React.JSX.Element;
|
|
896
|
+
interface NavSubmenuProps {
|
|
897
|
+
label: React.ReactNode;
|
|
898
|
+
children: React.ReactNode;
|
|
899
|
+
icon?: React.ReactNode;
|
|
900
|
+
defaultExpanded?: boolean;
|
|
901
|
+
expanded?: boolean;
|
|
902
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
903
|
+
disabled?: boolean;
|
|
904
|
+
}
|
|
905
|
+
declare function NavSubmenu({ label, children, icon, defaultExpanded, expanded, onExpandedChange, disabled, }: NavSubmenuProps): React.JSX.Element;
|
|
816
906
|
interface BreadcrumbItem {
|
|
817
907
|
key?: React.Key;
|
|
818
908
|
label: React.ReactNode;
|
|
@@ -1287,6 +1377,8 @@ declare const Dropzone: typeof Upload;
|
|
|
1287
1377
|
type AdminLayoutProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1288
1378
|
hasSider?: boolean;
|
|
1289
1379
|
fullHeight?: boolean;
|
|
1380
|
+
/** Optional banner above the sidebar and main area, outside their scroll regions. */
|
|
1381
|
+
notice?: React.ReactNode;
|
|
1290
1382
|
};
|
|
1291
1383
|
type AdminLayoutSiderProps = Omit<SidebarProps, "header" | "footer" | "collapsePlacement"> & {
|
|
1292
1384
|
logo?: React.ReactNode;
|
|
@@ -1308,7 +1400,7 @@ type AdminLayoutContentProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1308
1400
|
};
|
|
1309
1401
|
declare function AdminLayoutContent({ as: Element, className, ...props }: AdminLayoutContentProps): React.JSX.Element;
|
|
1310
1402
|
declare function AdminLayoutFooter({ className, ...props }: React.HTMLAttributes<HTMLElement>): React.JSX.Element;
|
|
1311
|
-
declare function AdminLayoutRoot({ hasSider, fullHeight, className, children, ...props }: AdminLayoutProps): React.JSX.Element;
|
|
1403
|
+
declare function AdminLayoutRoot({ hasSider, fullHeight, className, children, notice, ...props }: AdminLayoutProps): React.JSX.Element;
|
|
1312
1404
|
/** Compose nested layouts with the familiar AdminLayout.Sider/Header/Content/Footer API. */
|
|
1313
1405
|
declare const AdminLayout: typeof AdminLayoutRoot & {
|
|
1314
1406
|
Sider: typeof AdminLayoutSider;
|
|
@@ -1317,6 +1409,38 @@ declare const AdminLayout: typeof AdminLayoutRoot & {
|
|
|
1317
1409
|
Footer: typeof AdminLayoutFooter;
|
|
1318
1410
|
};
|
|
1319
1411
|
|
|
1412
|
+
type GlobalNoticeProps = Omit<React.ComponentPropsWithRef<"div">, "title"> & {
|
|
1413
|
+
title: React.ReactNode;
|
|
1414
|
+
icon?: React.ReactNode;
|
|
1415
|
+
/** Label for the trailing action; omit it for an icon-only dismiss button. */
|
|
1416
|
+
actionLabel?: string;
|
|
1417
|
+
actionRef?: React.Ref<HTMLButtonElement>;
|
|
1418
|
+
/** The app owns visibility, pending state, and any async side effects. */
|
|
1419
|
+
onAction?: () => void;
|
|
1420
|
+
loading?: boolean;
|
|
1421
|
+
error?: React.ReactNode;
|
|
1422
|
+
};
|
|
1423
|
+
declare function GlobalNotice({ title, children, icon, actionLabel, actionRef, onAction, loading, error, className, ...props }: GlobalNoticeProps): React.JSX.Element;
|
|
1424
|
+
|
|
1425
|
+
declare const pageLayoutWidths: {
|
|
1426
|
+
readonly sm: 720;
|
|
1427
|
+
readonly md: 960;
|
|
1428
|
+
readonly lg: 1200;
|
|
1429
|
+
};
|
|
1430
|
+
interface PageLayoutProps extends Omit<React.ComponentPropsWithRef<"div">, "title"> {
|
|
1431
|
+
title: React.ReactNode;
|
|
1432
|
+
subtitle?: React.ReactNode;
|
|
1433
|
+
icon?: React.ReactNode;
|
|
1434
|
+
actions?: React.ReactNode;
|
|
1435
|
+
description?: React.ReactNode;
|
|
1436
|
+
extra?: React.ReactNode;
|
|
1437
|
+
tabs?: React.ReactNode;
|
|
1438
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1439
|
+
/** Center the entire layout in its parent, with a preset or maximum pixel width. */
|
|
1440
|
+
maxWidth?: keyof typeof pageLayoutWidths | number;
|
|
1441
|
+
}
|
|
1442
|
+
declare function PageLayout({ title, subtitle, icon, actions, description, extra, tabs, children, headingLevel, maxWidth, className, style, ...rootProps }: PageLayoutProps): React.JSX.Element;
|
|
1443
|
+
|
|
1320
1444
|
interface SpotlightAction {
|
|
1321
1445
|
/** Unique within this Spotlight. */
|
|
1322
1446
|
id: string;
|
|
@@ -2052,4 +2176,402 @@ interface TagSelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "chi
|
|
|
2052
2176
|
/** An inline group of multi-select tags with optional responsive row disclosure. */
|
|
2053
2177
|
declare function TagSelect({ options, value, defaultValue, onValueChange, disabled, selectAll, selectAllLabel, expandable, expanded, defaultExpanded, onExpandedChange, expandLabel, collapseLabel, className, ...props }: TagSelectProps): React.JSX.Element;
|
|
2054
2178
|
|
|
2055
|
-
|
|
2179
|
+
type DataListKey = string | number;
|
|
2180
|
+
interface DataListSearch<T> {
|
|
2181
|
+
value?: string;
|
|
2182
|
+
defaultValue?: string;
|
|
2183
|
+
onChange?: (value: string) => void;
|
|
2184
|
+
placeholder?: string;
|
|
2185
|
+
label?: string;
|
|
2186
|
+
/** Client-side matcher. Remote lists ignore it. */
|
|
2187
|
+
match?: (item: T, query: string) => boolean;
|
|
2188
|
+
}
|
|
2189
|
+
interface DataListLocalPagination {
|
|
2190
|
+
mode?: "local";
|
|
2191
|
+
page?: number;
|
|
2192
|
+
defaultPage?: number;
|
|
2193
|
+
pageSize?: number;
|
|
2194
|
+
onPageChange?: (page: number) => void;
|
|
2195
|
+
}
|
|
2196
|
+
interface DataListRemotePagination {
|
|
2197
|
+
mode: "remote";
|
|
2198
|
+
page: number;
|
|
2199
|
+
pageSize: number;
|
|
2200
|
+
total: number;
|
|
2201
|
+
onPageChange: (page: number) => void;
|
|
2202
|
+
}
|
|
2203
|
+
type DataListPagination = DataListLocalPagination | DataListRemotePagination;
|
|
2204
|
+
interface DataListSelection<T> {
|
|
2205
|
+
selectedKeys?: readonly DataListKey[];
|
|
2206
|
+
defaultSelectedKeys?: readonly DataListKey[];
|
|
2207
|
+
onChange?: (keys: DataListKey[]) => void;
|
|
2208
|
+
getDisabled?: (item: T) => boolean;
|
|
2209
|
+
}
|
|
2210
|
+
interface DataListExpansion<T> {
|
|
2211
|
+
expandedKeys?: readonly DataListKey[];
|
|
2212
|
+
defaultExpandedKeys?: readonly DataListKey[];
|
|
2213
|
+
onChange?: (keys: DataListKey[]) => void;
|
|
2214
|
+
isExpandable?: (item: T) => boolean;
|
|
2215
|
+
renderDetail: (item: T) => React.ReactNode;
|
|
2216
|
+
}
|
|
2217
|
+
interface DataListBatchContext {
|
|
2218
|
+
selectedKeys: readonly DataListKey[];
|
|
2219
|
+
clearSelection: () => void;
|
|
2220
|
+
}
|
|
2221
|
+
interface DataListProps<T> extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
2222
|
+
items: readonly T[];
|
|
2223
|
+
/** Unique stable string or finite number. */
|
|
2224
|
+
getKey: (item: T) => DataListKey;
|
|
2225
|
+
/** Accessible row name; defaults to the stringified key. */
|
|
2226
|
+
getLabel?: (item: T) => string;
|
|
2227
|
+
/** Row content only. DataList's underlying List owns the li. */
|
|
2228
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
2229
|
+
search?: DataListSearch<T>;
|
|
2230
|
+
/** Client-side predicate. Remote lists ignore it. */
|
|
2231
|
+
filter?: (item: T) => boolean;
|
|
2232
|
+
filters?: React.ReactNode;
|
|
2233
|
+
toolbar?: React.ReactNode;
|
|
2234
|
+
pagination?: DataListPagination;
|
|
2235
|
+
selection?: DataListSelection<T>;
|
|
2236
|
+
expansion?: DataListExpansion<T>;
|
|
2237
|
+
renderActions?: (item: T) => React.ReactNode;
|
|
2238
|
+
renderBatchActions?: (context: DataListBatchContext) => React.ReactNode;
|
|
2239
|
+
loading?: boolean;
|
|
2240
|
+
empty?: React.ReactNode;
|
|
2241
|
+
}
|
|
2242
|
+
declare function DataList<T>({ items, getKey, getLabel, renderItem, search, filter, filters, toolbar, pagination, selection, expansion, renderActions, renderBatchActions, loading, empty, className, ...props }: DataListProps<T>): React.JSX.Element;
|
|
2243
|
+
|
|
2244
|
+
type CardGroupBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
2245
|
+
type CardGroupResponsive = number | Partial<Record<CardGroupBreakpoint, number>>;
|
|
2246
|
+
interface CardGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2247
|
+
direction?: "horizontal" | "vertical";
|
|
2248
|
+
columns?: CardGroupResponsive;
|
|
2249
|
+
gap?: CardGroupResponsive;
|
|
2250
|
+
divided?: boolean;
|
|
2251
|
+
}
|
|
2252
|
+
interface CardGroupItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2253
|
+
span?: CardGroupResponsive;
|
|
2254
|
+
}
|
|
2255
|
+
declare function CardGroupItem({ span: _span, className, style, ...props }: CardGroupItemProps): React.JSX.Element;
|
|
2256
|
+
declare function CardGroupRoot({ direction, columns, gap, divided, children, className, style, ...props }: CardGroupProps): React.JSX.Element;
|
|
2257
|
+
declare const CardGroup: typeof CardGroupRoot & {
|
|
2258
|
+
Item: typeof CardGroupItem;
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
type QuestionnaireChoice = {
|
|
2262
|
+
value: string;
|
|
2263
|
+
label: React.ReactNode;
|
|
2264
|
+
disabled?: boolean;
|
|
2265
|
+
};
|
|
2266
|
+
type Question = {
|
|
2267
|
+
id: string;
|
|
2268
|
+
title: string;
|
|
2269
|
+
description?: React.ReactNode;
|
|
2270
|
+
required?: boolean;
|
|
2271
|
+
};
|
|
2272
|
+
type TextField = {
|
|
2273
|
+
placeholder?: string;
|
|
2274
|
+
label?: string;
|
|
2275
|
+
};
|
|
2276
|
+
type QuestionnaireItem = Question & ({
|
|
2277
|
+
type: "single";
|
|
2278
|
+
choices: readonly QuestionnaireChoice[];
|
|
2279
|
+
other?: TextField;
|
|
2280
|
+
} | {
|
|
2281
|
+
type: "multiple";
|
|
2282
|
+
choices: readonly QuestionnaireChoice[];
|
|
2283
|
+
} | ({
|
|
2284
|
+
type: "text";
|
|
2285
|
+
} & TextField));
|
|
2286
|
+
type QuestionnaireAnswer = {
|
|
2287
|
+
type: "choice";
|
|
2288
|
+
value: string;
|
|
2289
|
+
} | {
|
|
2290
|
+
type: "choices";
|
|
2291
|
+
values: readonly string[];
|
|
2292
|
+
} | {
|
|
2293
|
+
type: "text";
|
|
2294
|
+
value: string;
|
|
2295
|
+
};
|
|
2296
|
+
type QuestionnaireAnswers = Readonly<Partial<Record<string, QuestionnaireAnswer>>>;
|
|
2297
|
+
interface QuestionnaireProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onSubmit"> {
|
|
2298
|
+
items: readonly QuestionnaireItem[];
|
|
2299
|
+
answers?: QuestionnaireAnswers;
|
|
2300
|
+
defaultAnswers?: QuestionnaireAnswers;
|
|
2301
|
+
onAnswersChange?: (answers: QuestionnaireAnswers) => void;
|
|
2302
|
+
onSubmit: (answers: QuestionnaireAnswers) => void | Promise<void>;
|
|
2303
|
+
submitLabel?: React.ReactNode;
|
|
2304
|
+
}
|
|
2305
|
+
declare function Questionnaire({ items, answers, defaultAnswers, onAnswersChange, onSubmit, submitLabel, className, ...props }: QuestionnaireProps): React.JSX.Element;
|
|
2306
|
+
|
|
2307
|
+
interface AiChatProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2308
|
+
autoFollow?: boolean;
|
|
2309
|
+
bottomThreshold?: number;
|
|
2310
|
+
scrollToBottomLabel?: string;
|
|
2311
|
+
empty?: React.ReactNode;
|
|
2312
|
+
footer?: React.ReactNode;
|
|
2313
|
+
}
|
|
2314
|
+
declare function AiChat({ autoFollow, bottomThreshold, scrollToBottomLabel, empty, footer, children, className, ...props }: AiChatProps): React.JSX.Element;
|
|
2315
|
+
interface AiMessageProps extends React.HTMLAttributes<HTMLElement> {
|
|
2316
|
+
from: "user" | "assistant" | "system";
|
|
2317
|
+
name?: React.ReactNode;
|
|
2318
|
+
avatar?: React.ReactNode;
|
|
2319
|
+
actions?: React.ReactNode;
|
|
2320
|
+
status?: "idle" | "streaming" | "error";
|
|
2321
|
+
statusLabel?: string;
|
|
2322
|
+
}
|
|
2323
|
+
declare function AiMessage({ from, name, avatar, actions, status, statusLabel, children, className, ...props }: AiMessageProps): React.JSX.Element;
|
|
2324
|
+
interface AiPromptAttachment {
|
|
2325
|
+
id: string;
|
|
2326
|
+
name: string;
|
|
2327
|
+
size?: number;
|
|
2328
|
+
}
|
|
2329
|
+
interface AiPromptSubmission {
|
|
2330
|
+
text: string;
|
|
2331
|
+
attachments: readonly AiPromptAttachment[];
|
|
2332
|
+
}
|
|
2333
|
+
type AiPromptStatus = "ready" | "submitted" | "streaming" | "error";
|
|
2334
|
+
interface AiPromptInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit" | "defaultValue"> {
|
|
2335
|
+
value?: string;
|
|
2336
|
+
defaultValue?: string;
|
|
2337
|
+
onValueChange?: (value: string) => void;
|
|
2338
|
+
onSubmit: (submission: AiPromptSubmission) => void | Promise<void>;
|
|
2339
|
+
onStop?: () => void;
|
|
2340
|
+
status?: AiPromptStatus;
|
|
2341
|
+
disabled?: boolean;
|
|
2342
|
+
placeholder?: string;
|
|
2343
|
+
attachments?: readonly AiPromptAttachment[];
|
|
2344
|
+
onFilesSelect?: (files: File[]) => void;
|
|
2345
|
+
onAttachmentRemove?: (id: string) => void;
|
|
2346
|
+
accept?: string;
|
|
2347
|
+
multiple?: boolean;
|
|
2348
|
+
toolbar?: React.ReactNode;
|
|
2349
|
+
error?: React.ReactNode;
|
|
2350
|
+
submitLabel?: string;
|
|
2351
|
+
stopLabel?: string;
|
|
2352
|
+
attachmentLabel?: string;
|
|
2353
|
+
}
|
|
2354
|
+
declare function AiPromptInput({ value, defaultValue, onValueChange, onSubmit, onStop, status, disabled, placeholder, attachments, onFilesSelect, onAttachmentRemove, accept, multiple, toolbar, error, submitLabel, stopLabel, attachmentLabel, className, ...props }: AiPromptInputProps): React.JSX.Element;
|
|
2355
|
+
interface AiSuggestionProps extends Omit<ButtonProps, "onSelect"> {
|
|
2356
|
+
prompt: string;
|
|
2357
|
+
onSelect?: (prompt: string) => void;
|
|
2358
|
+
}
|
|
2359
|
+
declare function AiSuggestion({ prompt, onSelect, children, onClick, className, ...props }: AiSuggestionProps): React.JSX.Element;
|
|
2360
|
+
interface AiModelOption {
|
|
2361
|
+
value: string;
|
|
2362
|
+
label: string;
|
|
2363
|
+
disabled?: boolean;
|
|
2364
|
+
}
|
|
2365
|
+
interface AiModelSelectorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2366
|
+
models: AiModelOption[];
|
|
2367
|
+
value: string;
|
|
2368
|
+
onValueChange: (value: string) => void;
|
|
2369
|
+
efforts?: AiModelOption[];
|
|
2370
|
+
effort?: string;
|
|
2371
|
+
onEffortChange?: (value: string) => void;
|
|
2372
|
+
disabled?: boolean;
|
|
2373
|
+
modelLabel?: string;
|
|
2374
|
+
effortLabel?: string;
|
|
2375
|
+
}
|
|
2376
|
+
declare function AiModelSelector({ models, value, onValueChange, efforts, effort, onEffortChange, disabled, modelLabel, effortLabel, className, ...props }: AiModelSelectorProps): React.JSX.Element;
|
|
2377
|
+
|
|
2378
|
+
type AiActivityStatus = "pending" | "running" | "completed" | "error" | "cancelled";
|
|
2379
|
+
interface AiActivityStep {
|
|
2380
|
+
id: string;
|
|
2381
|
+
title: string;
|
|
2382
|
+
description?: React.ReactNode;
|
|
2383
|
+
status?: AiActivityStatus;
|
|
2384
|
+
}
|
|
2385
|
+
interface AiActivityProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2386
|
+
title?: string;
|
|
2387
|
+
status?: AiActivityStatus;
|
|
2388
|
+
statusLabel?: string;
|
|
2389
|
+
open?: boolean;
|
|
2390
|
+
defaultOpen?: boolean;
|
|
2391
|
+
onOpenChange?: (open: boolean) => void;
|
|
2392
|
+
}
|
|
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
|
+
interface AiTaskProps extends AiActivityProps {
|
|
2399
|
+
steps?: AiActivityStep[];
|
|
2400
|
+
}
|
|
2401
|
+
declare function AiTask({ title, steps, children, ...props }: AiTaskProps): React.JSX.Element;
|
|
2402
|
+
interface AiReasoningProps extends AiActivityProps {
|
|
2403
|
+
text: string;
|
|
2404
|
+
}
|
|
2405
|
+
/** The text is a caller-provided public explanation. Does not retrieve or expose private reasoning. */
|
|
2406
|
+
declare function AiReasoning({ title, text, children, ...props }: AiReasoningProps): React.JSX.Element;
|
|
2407
|
+
interface AiPlanProps extends AiActivityProps {
|
|
2408
|
+
items: AiActivityStep[];
|
|
2409
|
+
}
|
|
2410
|
+
declare function AiPlan({ title, items, children, defaultOpen, ...props }: AiPlanProps): React.JSX.Element;
|
|
2411
|
+
interface AiQueueProps extends AiActivityProps {
|
|
2412
|
+
items: AiActivityStep[];
|
|
2413
|
+
}
|
|
2414
|
+
declare function AiQueue({ title, items, children, defaultOpen, ...props }: AiQueueProps): React.JSX.Element;
|
|
2415
|
+
interface AiSubagentProps extends AiActivityProps {
|
|
2416
|
+
name: string;
|
|
2417
|
+
description?: React.ReactNode;
|
|
2418
|
+
result?: React.ReactNode;
|
|
2419
|
+
}
|
|
2420
|
+
declare function AiSubagent({ name, title, description, result, children, ...props }: AiSubagentProps): React.JSX.Element;
|
|
2421
|
+
interface AiToolProps extends AiActivityProps {
|
|
2422
|
+
name: string;
|
|
2423
|
+
input?: string;
|
|
2424
|
+
output?: string;
|
|
2425
|
+
}
|
|
2426
|
+
/** Presentation only. Input and output are escaped plain text; this component never invokes a tool. */
|
|
2427
|
+
declare function AiTool({ name, title, input, output, children, ...props }: AiToolProps): React.JSX.Element;
|
|
2428
|
+
interface AiCheckpointProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2429
|
+
label?: string;
|
|
2430
|
+
description?: React.ReactNode;
|
|
2431
|
+
onRestore?: () => void;
|
|
2432
|
+
restoreLabel?: string;
|
|
2433
|
+
disabled?: boolean;
|
|
2434
|
+
}
|
|
2435
|
+
declare function AiCheckpoint({ label, description, onRestore, restoreLabel, disabled, children, className, ...props }: AiCheckpointProps): React.JSX.Element;
|
|
2436
|
+
interface AiConfirmationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2437
|
+
title?: string;
|
|
2438
|
+
description?: React.ReactNode;
|
|
2439
|
+
/** Fully controlled decision. Clicking only calls the corresponding callback. */
|
|
2440
|
+
state?: "pending" | "approved" | "rejected";
|
|
2441
|
+
busy?: boolean;
|
|
2442
|
+
onConfirm?: () => void;
|
|
2443
|
+
onReject?: () => void;
|
|
2444
|
+
confirmLabel?: string;
|
|
2445
|
+
rejectLabel?: string;
|
|
2446
|
+
}
|
|
2447
|
+
/** A request UI, not an authorization engine: no automatic decision, execution or persistence. */
|
|
2448
|
+
declare function AiConfirmation({ title, description, state, busy, onConfirm, onReject, confirmLabel, rejectLabel, children, className, ...props }: AiConfirmationProps): React.JSX.Element;
|
|
2449
|
+
|
|
2450
|
+
interface AiEvidenceAppearance {
|
|
2451
|
+
className?: string;
|
|
2452
|
+
style?: React.CSSProperties;
|
|
2453
|
+
label?: string;
|
|
2454
|
+
}
|
|
2455
|
+
interface AiContextProps extends AiEvidenceAppearance {
|
|
2456
|
+
usedTokens: number;
|
|
2457
|
+
maxTokens?: number;
|
|
2458
|
+
inputTokens?: number;
|
|
2459
|
+
outputTokens?: number;
|
|
2460
|
+
/** Caller-formatted monetary value; no billing or pricing calculation is performed. */
|
|
2461
|
+
cost?: string;
|
|
2462
|
+
}
|
|
2463
|
+
declare function AiContext({ usedTokens, maxTokens, inputTokens, outputTokens, cost, label, className, style, }: AiContextProps): React.JSX.Element;
|
|
2464
|
+
interface AiFileNode {
|
|
2465
|
+
id: string;
|
|
2466
|
+
name: string;
|
|
2467
|
+
kind?: "file" | "folder";
|
|
2468
|
+
children?: AiFileNode[];
|
|
2469
|
+
disabled?: boolean;
|
|
2470
|
+
}
|
|
2471
|
+
interface AiFileTreeProps extends AiEvidenceAppearance {
|
|
2472
|
+
items: AiFileNode[];
|
|
2473
|
+
selectedId?: string | null;
|
|
2474
|
+
defaultSelectedId?: string;
|
|
2475
|
+
onSelect?: (id: string, node: AiFileNode) => void;
|
|
2476
|
+
defaultExpandedIds?: string[];
|
|
2477
|
+
}
|
|
2478
|
+
declare function AiFileTree({ items, selectedId, defaultSelectedId, onSelect, defaultExpandedIds, label, className, style, }: AiFileTreeProps): React.JSX.Element;
|
|
2479
|
+
interface AiSource {
|
|
2480
|
+
id: string;
|
|
2481
|
+
title: string;
|
|
2482
|
+
url?: string;
|
|
2483
|
+
description?: string;
|
|
2484
|
+
}
|
|
2485
|
+
interface AiInlineCitationProps {
|
|
2486
|
+
source: AiSource;
|
|
2487
|
+
index?: number;
|
|
2488
|
+
className?: string;
|
|
2489
|
+
style?: React.CSSProperties;
|
|
2490
|
+
}
|
|
2491
|
+
declare function AiInlineCitation({ source, index, className, style, }: AiInlineCitationProps): React.JSX.Element;
|
|
2492
|
+
interface AiSourcesProps extends AiEvidenceAppearance {
|
|
2493
|
+
sources: AiSource[];
|
|
2494
|
+
defaultOpen?: boolean;
|
|
2495
|
+
}
|
|
2496
|
+
declare function AiSources({ sources, defaultOpen, label, className, style, }: AiSourcesProps): React.JSX.Element;
|
|
2497
|
+
interface AiStackFrame {
|
|
2498
|
+
file: string;
|
|
2499
|
+
line?: number;
|
|
2500
|
+
column?: number;
|
|
2501
|
+
functionName?: string;
|
|
2502
|
+
}
|
|
2503
|
+
interface AiStackTraceProps extends AiEvidenceAppearance {
|
|
2504
|
+
message: string;
|
|
2505
|
+
frames: AiStackFrame[];
|
|
2506
|
+
defaultOpen?: boolean;
|
|
2507
|
+
}
|
|
2508
|
+
declare function AiStackTrace({ message, frames, defaultOpen, label, className, style, }: AiStackTraceProps): React.JSX.Element;
|
|
2509
|
+
type AiTerminalStatus = "idle" | "running" | "success" | "error";
|
|
2510
|
+
interface AiTerminalProps extends AiEvidenceAppearance {
|
|
2511
|
+
output: string;
|
|
2512
|
+
status?: AiTerminalStatus;
|
|
2513
|
+
}
|
|
2514
|
+
declare function AiTerminal({ output, status, label, className, style, }: AiTerminalProps): React.JSX.Element;
|
|
2515
|
+
type AiTestStatus = "passed" | "failed" | "skipped" | "running";
|
|
2516
|
+
interface AiTestResult {
|
|
2517
|
+
id: string;
|
|
2518
|
+
name: string;
|
|
2519
|
+
status: AiTestStatus;
|
|
2520
|
+
durationMs?: number;
|
|
2521
|
+
details?: string;
|
|
2522
|
+
}
|
|
2523
|
+
interface AiTestResultsProps extends AiEvidenceAppearance {
|
|
2524
|
+
results: AiTestResult[];
|
|
2525
|
+
defaultOpen?: boolean;
|
|
2526
|
+
}
|
|
2527
|
+
declare function AiTestResults({ results, defaultOpen, label, className, style, }: AiTestResultsProps): React.JSX.Element;
|
|
2528
|
+
|
|
2529
|
+
type CheckCardSize = "sm" | "md" | "lg";
|
|
2530
|
+
interface CheckCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "onChange"> {
|
|
2531
|
+
value?: string;
|
|
2532
|
+
checked?: boolean;
|
|
2533
|
+
defaultChecked?: boolean;
|
|
2534
|
+
onChange?: (checked: boolean) => void;
|
|
2535
|
+
name?: string;
|
|
2536
|
+
form?: string;
|
|
2537
|
+
required?: boolean;
|
|
2538
|
+
disabled?: boolean;
|
|
2539
|
+
loading?: boolean;
|
|
2540
|
+
title?: React.ReactNode;
|
|
2541
|
+
description?: React.ReactNode;
|
|
2542
|
+
avatar?: React.ReactNode;
|
|
2543
|
+
cover?: React.ReactNode;
|
|
2544
|
+
extra?: React.ReactNode;
|
|
2545
|
+
size?: CheckCardSize;
|
|
2546
|
+
bordered?: boolean;
|
|
2547
|
+
}
|
|
2548
|
+
type CheckCardOption = Omit<CheckCardProps, "value" | "checked" | "defaultChecked" | "onChange" | "name" | "form"> & {
|
|
2549
|
+
value: string;
|
|
2550
|
+
};
|
|
2551
|
+
type CheckCardGroupCommon = Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange" | "defaultValue"> & {
|
|
2552
|
+
legend?: React.ReactNode;
|
|
2553
|
+
loading?: boolean;
|
|
2554
|
+
options?: readonly CheckCardOption[];
|
|
2555
|
+
size?: CheckCardSize;
|
|
2556
|
+
bordered?: boolean;
|
|
2557
|
+
};
|
|
2558
|
+
type CheckCardGroupProps = CheckCardGroupCommon & ({
|
|
2559
|
+
multiple?: false;
|
|
2560
|
+
value?: string;
|
|
2561
|
+
defaultValue?: string;
|
|
2562
|
+
onChange?: (value: string) => void;
|
|
2563
|
+
required?: boolean;
|
|
2564
|
+
} | {
|
|
2565
|
+
multiple: true;
|
|
2566
|
+
value?: readonly string[];
|
|
2567
|
+
defaultValue?: readonly string[];
|
|
2568
|
+
onChange?: (value: string[]) => void;
|
|
2569
|
+
required?: never;
|
|
2570
|
+
});
|
|
2571
|
+
declare function CheckCardGroup(props: CheckCardGroupProps): React.JSX.Element;
|
|
2572
|
+
declare function CheckCardRoot({ value, checked, defaultChecked, onChange, name, form, required, disabled, loading: ownLoading, title, description, avatar, cover, extra, children, size, bordered, className, id, "aria-label": label, "aria-labelledby": labelledBy, "aria-describedby": describedBy, ...props }: CheckCardProps): React.JSX.Element;
|
|
2573
|
+
declare const CheckCard: typeof CheckCardRoot & {
|
|
2574
|
+
Group: typeof CheckCardGroup;
|
|
2575
|
+
};
|
|
2576
|
+
|
|
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 };
|