@open-ui-kit/core 2.0.0-beta.1 → 2.0.0-beta.3
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/index.cjs.js +2 -2
- package/index.cjs.js.map +1 -1
- package/index.d.ts +376 -146
- package/index.esm.js +2 -2
- package/index.esm.js.map +1 -1
- package/index.umd.js +2 -2
- package/index.umd.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Color, Theme as Theme$1, TypographyVariant } from '@mui/material/styles';
|
|
1
|
+
import { Color, Theme as Theme$1, TypographyVariant, SxProps as SxProps$1 } from '@mui/material/styles';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode, ComponentType, CSSProperties, ReactElement, ComponentProps, HTMLAttributes, SyntheticEvent, ElementType } from 'react';
|
|
3
|
+
import React__default, { ReactNode, ComponentType, CSSProperties, MouseEvent, ReactElement, ComponentProps, HTMLAttributes, SyntheticEvent, ElementType } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as _mui_material from '@mui/material';
|
|
6
|
-
import { AccordionProps as AccordionProps$1, AccordionSummaryProps, BoxProps, BackdropProps as BackdropProps$1, SxProps, Theme, AlertProps, BadgeProps as BadgeProps$1, TypographyProps, SvgIconProps, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, CardProps as CardProps$1, CardActionAreaProps as CardActionAreaProps$1, CardHeaderProps as CardHeaderProps$1, CardContentProps as CardContentProps$1, CardActionsProps as CardActionsProps$1, CheckboxProps as CheckboxProps$1, TooltipProps as TooltipProps$1, IconButtonProps, StackProps, TextFieldProps, Popper, PopoverProps as PopoverProps$1, DividerProps as DividerProps$1, DrawerProps, ListItemProps as ListItemProps$1,
|
|
6
|
+
import { AccordionProps as AccordionProps$1, AccordionSummaryProps, BoxProps, BackdropProps as BackdropProps$1, AvatarGroupProps as AvatarGroupProps$1, AvatarProps as AvatarProps$1, SxProps, Theme, AlertProps, BadgeProps as BadgeProps$1, TypographyProps, SvgIconProps, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, CardProps as CardProps$1, CardActionAreaProps as CardActionAreaProps$1, CardHeaderProps as CardHeaderProps$1, CardContentProps as CardContentProps$1, CardActionsProps as CardActionsProps$1, CheckboxProps as CheckboxProps$1, TooltipProps as TooltipProps$1, IconButtonProps, StackProps, TextFieldProps, Popper, PopoverProps as PopoverProps$1, DividerProps as DividerProps$1, DrawerProps, ListItemProps as ListItemProps$1, ListProps as ListProps$1, ListItemButtonProps as ListItemButtonProps$1, ListItemTextProps as ListItemTextProps$1, ListItemIconProps as ListItemIconProps$1, ListSubheaderProps as ListSubheaderProps$1, InputProps, IconProps as IconProps$1, CircularProgressProps, DialogProps as DialogProps$1, DialogContentProps as DialogContentProps$1, DialogContentTextProps as DialogContentTextProps$1, DialogActionsProps as DialogActionsProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, ButtonBaseProps, RadioProps, FormControlLabelProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SkeletonProps as SkeletonProps$1, SliderProps as SliderProps$1, TabsProps as TabsProps$1, TabProps as TabProps$1, ChipProps, SwitchProps, PaginationProps as PaginationProps$1 } from '@mui/material';
|
|
7
7
|
export { Box, ButtonGroup, Container, Grid, IconButton, ListItemAvatar, Paper, PopoverOrigin, SelectChangeEvent, Stack, Typography, useTheme } from '@mui/material';
|
|
8
8
|
import { TimelineProps } from '@mui/lab';
|
|
9
9
|
import { LinkProps as LinkProps$1, To } from 'react-router-dom';
|
|
@@ -22,6 +22,7 @@ import * as _mui_material_OverridableComponent from '@mui/material/OverridableCo
|
|
|
22
22
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
23
23
|
import { ContentType } from 'recharts/types/component/Tooltip';
|
|
24
24
|
import { CategoricalChartFunc } from 'recharts/types/chart/generateCategoricalChart';
|
|
25
|
+
import { StackProps as StackProps$1 } from '@mui/material/Stack';
|
|
25
26
|
import { TooltipProps as TooltipProps$2, XAxisProps, YAxisProps, LineProps, CartesianGridProps } from 'recharts';
|
|
26
27
|
|
|
27
28
|
interface VarsType {
|
|
@@ -529,11 +530,16 @@ interface AnchorLinkMenuProps {
|
|
|
529
530
|
|
|
530
531
|
declare const AnchorLinkMenu: ({ items, selectedId, title, variant, onSelect, }: AnchorLinkMenuProps) => react_jsx_runtime.JSX.Element;
|
|
531
532
|
|
|
532
|
-
|
|
533
|
+
interface BackdropProps extends BackdropProps$1 {
|
|
534
|
+
/** Controls whether the backdrop is mounted and visible. */
|
|
535
|
+
open: boolean;
|
|
536
|
+
/** Removes the dimmed overlay while preserving the backdrop interaction layer. */
|
|
537
|
+
invisible?: boolean;
|
|
538
|
+
}
|
|
533
539
|
|
|
534
540
|
declare const Backdrop: ({ sx, ...props }: BackdropProps) => react_jsx_runtime.JSX.Element;
|
|
535
541
|
|
|
536
|
-
interface AvatarProps {
|
|
542
|
+
interface AvatarProps extends Omit<AvatarProps$1, "children"> {
|
|
537
543
|
/** Controls the avatar diameter. Large is 40px and medium is 32px. */
|
|
538
544
|
size?: "L" | "M";
|
|
539
545
|
/** Image source used when the avatar should represent a person or entity photo. */
|
|
@@ -545,16 +551,16 @@ interface AvatarProps {
|
|
|
545
551
|
/** Icon displayed when no image is provided. */
|
|
546
552
|
icon?: ReactNode;
|
|
547
553
|
}
|
|
548
|
-
interface AvatarGroupProps {
|
|
554
|
+
interface AvatarGroupProps extends Omit<AvatarGroupProps$1, "children"> {
|
|
549
555
|
/** Controls the size applied to every avatar in the group. */
|
|
550
556
|
size?: "L" | "M";
|
|
551
557
|
/** Avatar children to stack with the configured group overlap. */
|
|
552
558
|
children: ReactNode;
|
|
553
559
|
}
|
|
554
560
|
|
|
555
|
-
declare const Avatar: ({ size, src, alt, initials, icon, }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
561
|
+
declare const Avatar: ({ size, src, alt, initials, icon, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
556
562
|
|
|
557
|
-
declare const AvatarGroup: ({ size, children }: AvatarGroupProps) => react_jsx_runtime.JSX.Element;
|
|
563
|
+
declare const AvatarGroup: ({ size, children, ...props }: AvatarGroupProps) => react_jsx_runtime.JSX.Element;
|
|
558
564
|
|
|
559
565
|
interface ActionsDialogProps {
|
|
560
566
|
/** Controls whether the dialog is visible. */
|
|
@@ -591,6 +597,8 @@ interface BannerProps extends Omit<AlertProps, "variant" | "severity" | "childre
|
|
|
591
597
|
status?: StatusBanner;
|
|
592
598
|
/** Banner message content. */
|
|
593
599
|
text: ReactNode;
|
|
600
|
+
/** Optional icon shown before the message. Defaults to a status icon. */
|
|
601
|
+
icon?: ReactNode;
|
|
594
602
|
/** Shows the dismiss button and wires `onClose` when enabled. */
|
|
595
603
|
showCloseButton?: boolean;
|
|
596
604
|
}
|
|
@@ -601,13 +609,13 @@ type BadgeType = "default" | "excellent" | "neutral" | "error" | "warning" | "in
|
|
|
601
609
|
interface BadgeProps {
|
|
602
610
|
/** Visual status color family for the badge. */
|
|
603
611
|
type?: BadgeType;
|
|
604
|
-
/** Optional
|
|
612
|
+
/** Optional value rendered in the small bubble when the badge wraps another element. */
|
|
605
613
|
notificationContent?: ReactNode;
|
|
606
|
-
/**
|
|
614
|
+
/** Badge label, or the wrapped child when `notificationContent` is provided. */
|
|
607
615
|
content: ReactNode;
|
|
608
|
-
/** Style overrides for the
|
|
616
|
+
/** Style overrides for the badge root. Use sparingly to preserve badge sizing. */
|
|
609
617
|
styleBadge?: BadgeProps$1["sx"];
|
|
610
|
-
/** Style overrides for the badge
|
|
618
|
+
/** Style overrides for the visible badge text. */
|
|
611
619
|
styleContent?: TypographyProps["sx"];
|
|
612
620
|
}
|
|
613
621
|
|
|
@@ -707,7 +715,7 @@ interface BreadcrumbsProps extends BreadcrumbsProps$1 {
|
|
|
707
715
|
type?: LinkType;
|
|
708
716
|
/** Link size used for breadcrumb labels. */
|
|
709
717
|
size?: GeneralSize;
|
|
710
|
-
/** Maximum number of visible breadcrumbs before
|
|
718
|
+
/** Maximum number of visible breadcrumbs before middle items move into the collapsed menu. */
|
|
711
719
|
maximumNumberOfVisibleBreadcrumbs?: number;
|
|
712
720
|
}
|
|
713
721
|
|
|
@@ -727,8 +735,10 @@ interface ButtonProps extends ButtonProps$1 {
|
|
|
727
735
|
/** Open UI Kit button wrapper with tokenized variants, sizes, icon spacing, and states. */
|
|
728
736
|
declare const Button: ({ children, className, disableRipple, endIcon, startIcon, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
729
737
|
|
|
730
|
-
|
|
731
|
-
|
|
738
|
+
interface CardProps extends CardProps$1 {
|
|
739
|
+
/** Applies the disabled card treatment and marks the grouped content unavailable. */
|
|
740
|
+
disabled?: boolean;
|
|
741
|
+
}
|
|
732
742
|
/** Clickable wrapper for interactive cards. */
|
|
733
743
|
type CardActionAreaProps = CardActionAreaProps$1;
|
|
734
744
|
/** Header area for primary and secondary card text. */
|
|
@@ -752,11 +762,11 @@ declare const CardDescription: ({ children, ...props }: CardDescriptionProps) =>
|
|
|
752
762
|
declare const CardSubheader: ({ children, ...props }: CardSubheaderProps) => react_jsx_runtime.JSX.Element;
|
|
753
763
|
//# sourceMappingURL=card-subheader.d.ts.map
|
|
754
764
|
|
|
755
|
-
declare const Card: (props: CardProps) => react_jsx_runtime.JSX.Element;
|
|
756
|
-
declare const CardActionArea: (props: CardActionAreaProps) => react_jsx_runtime.JSX.Element;
|
|
757
|
-
declare const CardHeader: (props: CardHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
758
|
-
declare const CardContent: (props: CardContentProps) => react_jsx_runtime.JSX.Element;
|
|
759
|
-
declare const CardActions: (props: CardActionsProps) => react_jsx_runtime.JSX.Element;
|
|
765
|
+
declare const Card: ({ disabled, sx, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
766
|
+
declare const CardActionArea: ({ sx, ...props }: CardActionAreaProps) => react_jsx_runtime.JSX.Element;
|
|
767
|
+
declare const CardHeader: ({ sx, ...props }: CardHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
768
|
+
declare const CardContent: ({ sx, ...props }: CardContentProps) => react_jsx_runtime.JSX.Element;
|
|
769
|
+
declare const CardActions: ({ sx, ...props }: CardActionsProps) => react_jsx_runtime.JSX.Element;
|
|
760
770
|
|
|
761
771
|
/** Checkbox input for unchecked, checked, mixed, and disabled selection states. */
|
|
762
772
|
type CheckboxProps = CheckboxProps$1;
|
|
@@ -767,10 +777,11 @@ declare enum TooltipSize {
|
|
|
767
777
|
Medium = "medium",
|
|
768
778
|
Large = "large"
|
|
769
779
|
}
|
|
770
|
-
|
|
771
780
|
interface TooltipProps extends TooltipProps$1 {
|
|
781
|
+
/** Tooltip size from the design system: compact medium or roomier large. */
|
|
772
782
|
size?: TooltipSize;
|
|
773
783
|
}
|
|
784
|
+
|
|
774
785
|
declare const Tooltip: ({ size, children, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
775
786
|
|
|
776
787
|
/** Absolute placement option when the copy action is positioned inside a relative container. */
|
|
@@ -788,7 +799,7 @@ interface CopyButtonStylesProps {
|
|
|
788
799
|
left?: string;
|
|
789
800
|
/** Right offset used when `position="right"`. Defaults to `16px`. */
|
|
790
801
|
right?: string;
|
|
791
|
-
/**
|
|
802
|
+
/** Keeps the button flush with surrounding code-block layout; retained for compatibility. */
|
|
792
803
|
disableMargin?: boolean;
|
|
793
804
|
}
|
|
794
805
|
interface CopyButtonProps extends IconButtonProps, CopyButtonStylesProps {
|
|
@@ -796,6 +807,8 @@ interface CopyButtonProps extends IconButtonProps, CopyButtonStylesProps {
|
|
|
796
807
|
text: string;
|
|
797
808
|
/** Callback fired after the text is copied. */
|
|
798
809
|
onCopy?: () => void;
|
|
810
|
+
/** Controls the copied visual state. Leave unset to use the built-in temporary success state after click. */
|
|
811
|
+
copied?: boolean;
|
|
799
812
|
/** Tooltip placement around the icon button. Defaults to `top`. */
|
|
800
813
|
tooltipPlacement?: TooltipProps["placement"];
|
|
801
814
|
/** Tooltip label before a successful copy. Defaults to `Copy`. */
|
|
@@ -804,7 +817,7 @@ interface CopyButtonProps extends IconButtonProps, CopyButtonStylesProps {
|
|
|
804
817
|
copiedLabel?: string;
|
|
805
818
|
}
|
|
806
819
|
|
|
807
|
-
declare const CopyButton: ({ text, position, size, top, left, right, disableMargin, onCopy, tooltipPlacement, copyLabel, copiedLabel, onClick, ...props }: CopyButtonProps) => react_jsx_runtime.JSX.Element;
|
|
820
|
+
declare const CopyButton: ({ text, position, size, top, left, right, disableMargin, onCopy, copied, tooltipPlacement, copyLabel, copiedLabel, onClick, ...props }: CopyButtonProps) => react_jsx_runtime.JSX.Element;
|
|
808
821
|
|
|
809
822
|
/** Supported density options for the code block container, header, and line numbers. */
|
|
810
823
|
type CodeBlockSize = "small" | "medium";
|
|
@@ -924,49 +937,84 @@ declare const StaticDatePicker: (props: StaticDatePickerProps) => react_jsx_runt
|
|
|
924
937
|
|
|
925
938
|
declare const DateRangePicker: ({ startDate, endDate, setStartDate, setEndDate, getPopoverVisibility, popoverProps, inputFieldProps, }: DateRangePickerProps) => react_jsx_runtime.JSX.Element;
|
|
926
939
|
|
|
927
|
-
/**
|
|
928
|
-
type
|
|
940
|
+
/** Visual weight of the divider line. */
|
|
941
|
+
type DividerVariant = DividerProps$1["variant"] | "bold";
|
|
942
|
+
interface DividerProps extends Omit<DividerProps$1, "variant"> {
|
|
943
|
+
/** Direction of the divider line. Horizontal is the default. */
|
|
944
|
+
orientation?: DividerProps$1["orientation"];
|
|
945
|
+
/** Visual weight of the divider. Use `bold` for the 2px design-system line. */
|
|
946
|
+
variant?: DividerVariant;
|
|
947
|
+
}
|
|
929
948
|
|
|
930
949
|
declare const Divider: (props: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
931
950
|
|
|
951
|
+
interface SideDrawerFooterProps {
|
|
952
|
+
/** Footer page name used in the "Go to" action label. */
|
|
953
|
+
pageName?: string;
|
|
954
|
+
/** Hides the footer navigation action. */
|
|
955
|
+
hideGotoPage?: boolean;
|
|
956
|
+
/** Called when the footer navigation action is selected. */
|
|
957
|
+
onGotoPage?: () => void;
|
|
958
|
+
}
|
|
932
959
|
interface SideDrawerHeaderProps {
|
|
960
|
+
/** Main title text rendered in the drawer header. */
|
|
933
961
|
titleText?: string;
|
|
934
|
-
|
|
935
|
-
|
|
962
|
+
/** Custom title node for complex header titles. */
|
|
963
|
+
titleNode?: ReactNode;
|
|
964
|
+
/** Optional custom action rendered next to the title. */
|
|
965
|
+
titleAction?: ReactNode;
|
|
966
|
+
/** Optional severity level rendered as a compact status bar before the title. */
|
|
936
967
|
severity?: Severity;
|
|
968
|
+
/** URL copied by the header copy action. */
|
|
937
969
|
copyURL: string;
|
|
970
|
+
/** Optional style overrides for the header divider. */
|
|
938
971
|
customDividerStyle?: CSSProperties;
|
|
972
|
+
/** Whether the favorite action is currently selected. */
|
|
939
973
|
isFavorite?: boolean;
|
|
940
|
-
|
|
974
|
+
/** Action buttons rendered in the secondary header row. */
|
|
975
|
+
actionButtons?: ReactNode[];
|
|
976
|
+
/** Disables the previous navigation button. */
|
|
941
977
|
disablePrev?: boolean;
|
|
978
|
+
/** Disables the next navigation button. */
|
|
942
979
|
disableNext?: boolean;
|
|
980
|
+
/** Hides the previous navigation button. */
|
|
943
981
|
hidePrev?: boolean;
|
|
982
|
+
/** Hides the next navigation button. */
|
|
944
983
|
hideNext?: boolean;
|
|
984
|
+
/** Hides the title action. */
|
|
945
985
|
hideTitleAction?: boolean;
|
|
986
|
+
/** Hides the favorite action button. */
|
|
946
987
|
hideFavorite?: boolean;
|
|
988
|
+
/** Hides the copy action button. */
|
|
947
989
|
hideCopyBtn?: boolean;
|
|
990
|
+
/** Hides the secondary header action row. */
|
|
948
991
|
hideActionButtons?: boolean;
|
|
992
|
+
/** Called when the previous navigation button is selected. */
|
|
949
993
|
onPrev?: () => void;
|
|
994
|
+
/** Called when the next navigation button is selected. */
|
|
950
995
|
onNext?: () => void;
|
|
951
|
-
|
|
996
|
+
/** Called when the drawer close action is selected. */
|
|
997
|
+
onClose?: (event?: MouseEvent<HTMLElement>) => void;
|
|
998
|
+
/** Called when the favorite action is selected. */
|
|
952
999
|
onFavorite?: () => void;
|
|
1000
|
+
/** Called when the title action is selected. */
|
|
953
1001
|
onTitleAction?: () => void;
|
|
1002
|
+
/** Called after the copy action succeeds. */
|
|
954
1003
|
onCopyLink?: (link: string) => void;
|
|
955
1004
|
}
|
|
956
|
-
|
|
957
|
-
interface SideDrawerFooterProps {
|
|
958
|
-
pageName?: string;
|
|
959
|
-
hideGotoPage?: boolean;
|
|
960
|
-
onGotoPage?: () => void;
|
|
961
|
-
}
|
|
962
|
-
|
|
963
1005
|
interface SideDrawerProps extends Omit<DrawerProps, "onClose">, SideDrawerHeaderProps, SideDrawerFooterProps {
|
|
1006
|
+
/** Deprecated alias retained for compatibility; use `titleText`. */
|
|
964
1007
|
title?: string;
|
|
1008
|
+
/** Centers a loading spinner inside the drawer. */
|
|
965
1009
|
isLoading?: boolean;
|
|
1010
|
+
/** Shows the loading error state inside the drawer. */
|
|
966
1011
|
isError?: boolean;
|
|
1012
|
+
/** Hides the footer region entirely. */
|
|
967
1013
|
hideFooter?: boolean;
|
|
968
|
-
|
|
1014
|
+
/** Additional sx applied to the Drawer paper after internal styles. */
|
|
1015
|
+
paperProps?: SxProps<Theme>;
|
|
969
1016
|
}
|
|
1017
|
+
|
|
970
1018
|
declare const SideDrawer: ({ children, titleText, titleNode, open, isLoading, isError, isFavorite, severity, titleAction, copyURL, actionButtons, pageName, disablePrev, disableNext, hidePrev, hideNext, hideTitleAction, hideFooter, hideGotoPage, hideFavorite, hideCopyBtn, hideActionButtons, customDividerStyle, onPrev, onNext, onClose, onFavorite, onGotoPage, onTitleAction, onCopyLink, paperProps, ...props }: SideDrawerProps) => react_jsx_runtime.JSX.Element;
|
|
971
1019
|
|
|
972
1020
|
interface NestedMenuListboxProps {
|
|
@@ -1193,10 +1241,24 @@ interface SelectNodeProps {
|
|
|
1193
1241
|
}
|
|
1194
1242
|
declare const SelectNode: ({ isExpanded, isIconAllowed, isLeaf, isParentNode, isSelectAllNode, isSelectable, isSelected, nestLevel, nodeIcon, nodeLabel, onCheckboxClick, onExpand, parentSelectOnly, selectableLeavesCount, selectedLeavesCount, }: SelectNodeProps) => react_jsx_runtime.JSX.Element;
|
|
1195
1243
|
|
|
1244
|
+
type ListProps = ListProps$1;
|
|
1245
|
+
type ListItemProps = ListItemProps$1;
|
|
1246
|
+
type ListItemButtonProps = ListItemButtonProps$1;
|
|
1247
|
+
type ListItemTextProps = ListItemTextProps$1;
|
|
1248
|
+
type ListItemIconProps = ListItemIconProps$1;
|
|
1249
|
+
type ListSubheaderProps = ListSubheaderProps$1;
|
|
1250
|
+
|
|
1251
|
+
declare const List$1: ({ disablePadding, ...props }: ListProps) => react_jsx_runtime.JSX.Element;
|
|
1252
|
+
declare const ListItem: ({ sx, ...props }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
1253
|
+
declare const ListItemButton: ({ sx, ...props }: ListItemButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1254
|
+
declare const ListItemIcon: ({ sx, ...props }: ListItemIconProps) => react_jsx_runtime.JSX.Element;
|
|
1255
|
+
declare const ListSubheader: ({ sx, ...props }: ListSubheaderProps) => react_jsx_runtime.JSX.Element;
|
|
1256
|
+
declare const ListItemText: ({ sx, ...props }: ListItemTextProps) => react_jsx_runtime.JSX.Element;
|
|
1257
|
+
|
|
1196
1258
|
interface SelectNodeListItemProps {
|
|
1197
1259
|
isLeaf: boolean;
|
|
1198
1260
|
isSelectable?: boolean;
|
|
1199
|
-
listItemProps?: ListItemProps
|
|
1261
|
+
listItemProps?: ListItemProps;
|
|
1200
1262
|
onClick: () => void;
|
|
1201
1263
|
onExpand?: () => void;
|
|
1202
1264
|
selectNodeElement: ReactElement<ComponentProps<typeof SelectNode>>;
|
|
@@ -1215,6 +1277,8 @@ interface EmptyStateProps {
|
|
|
1215
1277
|
direction?: EmptyStateDirection;
|
|
1216
1278
|
/** Controls illustration, typography, spacing, and action button size. */
|
|
1217
1279
|
size?: GeneralSize;
|
|
1280
|
+
/** Hides the illustration for compact text-only empty states. */
|
|
1281
|
+
hideIllustration?: boolean;
|
|
1218
1282
|
/** Main heading. Hidden automatically for the small size. */
|
|
1219
1283
|
title?: string;
|
|
1220
1284
|
/** Supporting message shown below the title or beside the small illustration. */
|
|
@@ -1235,7 +1299,7 @@ interface EmptyStateProps {
|
|
|
1235
1299
|
containerProps?: StackProps;
|
|
1236
1300
|
}
|
|
1237
1301
|
|
|
1238
|
-
declare const EmptyState: ({ variant, direction, size, title, description, actionCallback, actionTitle, actionButtonProps, secondaryActionCallback, secondaryActionTitle, secondaryActionButtonProps, containerProps, }: EmptyStateProps) => react_jsx_runtime.JSX.Element;
|
|
1302
|
+
declare const EmptyState: ({ variant, direction, size, hideIllustration, title, description, actionCallback, actionTitle, actionButtonProps, secondaryActionCallback, secondaryActionTitle, secondaryActionButtonProps, containerProps, }: EmptyStateProps) => react_jsx_runtime.JSX.Element;
|
|
1239
1303
|
|
|
1240
1304
|
type FloatingButtonVariant = "primary" | "secondary";
|
|
1241
1305
|
type FloatingButtonSize = "medium" | "small";
|
|
@@ -1298,7 +1362,7 @@ interface FiltersBarActionsProps {
|
|
|
1298
1362
|
onFiltersButtonClick?: () => void;
|
|
1299
1363
|
/** Number of selected filter options displayed in the Filters button. */
|
|
1300
1364
|
activeFiltersCount?: number;
|
|
1301
|
-
/** Called
|
|
1365
|
+
/** Called whenever the search field value changes, and when Enter submits the current value. */
|
|
1302
1366
|
onSearch?: (search: string) => void;
|
|
1303
1367
|
/** Placeholder for the search field. */
|
|
1304
1368
|
searchPlaceHolder?: string;
|
|
@@ -1312,7 +1376,7 @@ interface FiltersBarActionsProps {
|
|
|
1312
1376
|
searchValue?: string;
|
|
1313
1377
|
/** Extra props/adornments forwarded to the search field input. */
|
|
1314
1378
|
inputProps?: {
|
|
1315
|
-
props: SearchInputProps["
|
|
1379
|
+
props: SearchInputProps["inputProps"];
|
|
1316
1380
|
extendEndAdornment?: JSX.Element;
|
|
1317
1381
|
};
|
|
1318
1382
|
/** Optional action area rendered at the far right of the filter bar. */
|
|
@@ -1494,20 +1558,6 @@ interface IndicatorBadgeProps extends Pick<IndicatorBadgeValueProps, "color"> {
|
|
|
1494
1558
|
|
|
1495
1559
|
declare const IndicatorBadge: ({ color, value, }: IndicatorBadgeProps) => JSX.Element;
|
|
1496
1560
|
|
|
1497
|
-
declare const List$1: ({ disablePadding, ...props }: ListProps$1) => react_jsx_runtime.JSX.Element;
|
|
1498
|
-
declare const ListItem: ({ sx, ...props }: ListItemProps$1) => react_jsx_runtime.JSX.Element;
|
|
1499
|
-
declare const ListItemButton: ({ sx, ...props }: ListItemButtonProps$1) => react_jsx_runtime.JSX.Element;
|
|
1500
|
-
declare const ListItemIcon: ({ sx, ...props }: ListItemIconProps$1) => react_jsx_runtime.JSX.Element;
|
|
1501
|
-
declare const ListSubheader: ({ sx, ...props }: ListSubheaderProps$1) => react_jsx_runtime.JSX.Element;
|
|
1502
|
-
declare const ListItemText: ({ sx, ...props }: ListItemTextProps$1) => react_jsx_runtime.JSX.Element;
|
|
1503
|
-
|
|
1504
|
-
type ListProps = ListProps$1;
|
|
1505
|
-
type ListItemProps = ListItemProps$1;
|
|
1506
|
-
type ListItemButtonProps = ListItemButtonProps$1;
|
|
1507
|
-
type ListItemTextProps = ListItemTextProps$1;
|
|
1508
|
-
type ListItemIconProps = ListItemIconProps$1;
|
|
1509
|
-
type ListSubheaderProps = ListSubheaderProps$1;
|
|
1510
|
-
|
|
1511
1561
|
type KeyValuePairsLayout = "inline" | "stacked";
|
|
1512
1562
|
interface KeyValuePairItem {
|
|
1513
1563
|
/** Key or label shown before or above the value. */
|
|
@@ -1553,9 +1603,17 @@ interface LoadingStatesProps extends Omit<BoxProps, "children"> {
|
|
|
1553
1603
|
declare const LoadingStates: ({ spinnerSizes, showSpinner, showSkeleton, skeletonStates, sx, ...props }: LoadingStatesProps) => react_jsx_runtime.JSX.Element;
|
|
1554
1604
|
|
|
1555
1605
|
interface SpinnerProps extends CircularProgressProps {
|
|
1606
|
+
/** Diameter of the spinner in pixels. Defaults to 40. */
|
|
1607
|
+
size?: CircularProgressProps["size"];
|
|
1608
|
+
/** Spinner color variant. Primary and secondary are tokenized by the component. */
|
|
1609
|
+
color?: CircularProgressProps["color"];
|
|
1610
|
+
/** MUI sx overrides applied to both progress layers after internal styles. */
|
|
1611
|
+
sx?: SxProps<Theme>;
|
|
1556
1612
|
/** Props forwarded to the wrapping Box element. */
|
|
1557
1613
|
boxProps?: BoxProps;
|
|
1558
1614
|
}
|
|
1615
|
+
|
|
1616
|
+
/** Tokenized two-layer circular loading indicator. */
|
|
1559
1617
|
declare const Spinner: ({ boxProps, size, sx, ...props }: SpinnerProps) => react_jsx_runtime.JSX.Element;
|
|
1560
1618
|
|
|
1561
1619
|
/** Controls which loading indicator is rendered. */
|
|
@@ -1681,7 +1739,7 @@ interface MessageProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
|
1681
1739
|
|
|
1682
1740
|
declare const Message: ({ actionLabel, children, hideClose, onActionClick, onClose, sx, title, type, ...props }: MessageProps) => react_jsx_runtime.JSX.Element;
|
|
1683
1741
|
|
|
1684
|
-
type NavigationItemState = "default" | "selected" | "disabled";
|
|
1742
|
+
type NavigationItemState = "default" | "selected" | "disabled" | "open";
|
|
1685
1743
|
interface NavigationItemData {
|
|
1686
1744
|
/** Stable item id used for selection and callbacks. */
|
|
1687
1745
|
id: string;
|
|
@@ -1689,7 +1747,7 @@ interface NavigationItemData {
|
|
|
1689
1747
|
label: ReactNode;
|
|
1690
1748
|
/** Optional secondary label shown in drawer/sub-navigation layouts. */
|
|
1691
1749
|
subtext?: ReactNode;
|
|
1692
|
-
/** Visual state for the item. */
|
|
1750
|
+
/** Visual state for the item. Use `open` when a nested panel is expanded. */
|
|
1693
1751
|
state?: NavigationItemState;
|
|
1694
1752
|
/** Disables item interaction and applies disabled styling. */
|
|
1695
1753
|
disabled?: boolean;
|
|
@@ -1780,8 +1838,8 @@ interface PathDisplayProps {
|
|
|
1780
1838
|
* Defaults to 3 — paths with 3 or more segments show "first / ... / last".
|
|
1781
1839
|
*/
|
|
1782
1840
|
numberOfLevels?: number;
|
|
1783
|
-
/**
|
|
1784
|
-
tooltipProps?: TooltipProps
|
|
1841
|
+
/** Optional props forwarded to the wrapping Tooltip; PathDisplay supplies the title and child. */
|
|
1842
|
+
tooltipProps?: Partial<Omit<TooltipProps, "children" | "title">>;
|
|
1785
1843
|
/** Props forwarded to the inner Typography element. */
|
|
1786
1844
|
typographyProps?: TypographyProps;
|
|
1787
1845
|
}
|
|
@@ -1807,6 +1865,8 @@ interface PickerItemProps extends Omit<ButtonBaseProps, "children"> {
|
|
|
1807
1865
|
|
|
1808
1866
|
declare const PickerItem: ({ icon, label, size, display, selected, disabled, sx, ...props }: PickerItemProps) => react_jsx_runtime.JSX.Element;
|
|
1809
1867
|
|
|
1868
|
+
/** Popover content width. Use `large` for wider confirmation/content panels. */
|
|
1869
|
+
type PopoverSize = "medium" | "large";
|
|
1810
1870
|
/**
|
|
1811
1871
|
* Where the directional arrow tip is rendered relative to the popover panel.
|
|
1812
1872
|
* Use together with `anchorOrigin` / `transformOrigin` to align the arrow
|
|
@@ -1820,8 +1880,14 @@ interface PopoverProps extends Omit<PopoverProps$1, "title"> {
|
|
|
1820
1880
|
body?: ReactNode;
|
|
1821
1881
|
/** Action elements (e.g. Buttons) rendered at the bottom-right of the popover. */
|
|
1822
1882
|
actions?: ReactNode;
|
|
1883
|
+
/** Optional icon rendered before the title/body column. */
|
|
1884
|
+
icon?: ReactNode;
|
|
1823
1885
|
/** When true, shows a close (×) button in the top-right corner. */
|
|
1824
1886
|
showCloseButton?: boolean;
|
|
1887
|
+
/** Adds the active feature-highlight border and arrow styling. */
|
|
1888
|
+
featureHighlight?: boolean;
|
|
1889
|
+
/** Content width. Defaults to the compact `medium` popover. */
|
|
1890
|
+
size?: PopoverSize;
|
|
1825
1891
|
/**
|
|
1826
1892
|
* Renders a directional arrow on the popover panel pointing toward the anchor.
|
|
1827
1893
|
* Omit for a plain panel with no arrow.
|
|
@@ -1831,7 +1897,7 @@ interface PopoverProps extends Omit<PopoverProps$1, "title"> {
|
|
|
1831
1897
|
paperSx?: SxProps<Theme>;
|
|
1832
1898
|
}
|
|
1833
1899
|
|
|
1834
|
-
declare const Popover: ({ title, body, actions, showCloseButton, arrowPosition, paperSx, onClose, children, ...props }: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
1900
|
+
declare const Popover: ({ title, body, actions, icon, showCloseButton, featureHighlight, size, arrowPosition, paperSx, onClose, children, ...props }: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
1835
1901
|
|
|
1836
1902
|
interface RadioButtonProps extends RadioProps {
|
|
1837
1903
|
/** Optional content displayed beside the radio control via FormControlLabel. */
|
|
@@ -1854,42 +1920,60 @@ type SelectProps<T = unknown> = SelectProps$1<T> & {
|
|
|
1854
1920
|
|
|
1855
1921
|
declare const Select: <T = unknown>({ clearable, defaultValue, disabled, endAdornment, IconComponent, MenuProps, multiple, onChange, onClear, variant, sx, value: valueProp, ...props }: SelectProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1856
1922
|
|
|
1857
|
-
|
|
1923
|
+
interface SkeletonProps extends SkeletonProps$1 {
|
|
1924
|
+
/** Placeholder shape. Use text, circular, rectangular, or rounded to match the content being loaded. */
|
|
1925
|
+
variant?: SkeletonProps$1["variant"];
|
|
1926
|
+
/** Loading animation. Defaults to wave; set false for a static placeholder. */
|
|
1927
|
+
animation?: SkeletonProps$1["animation"];
|
|
1928
|
+
/** Width of the placeholder. */
|
|
1929
|
+
width?: SkeletonProps$1["width"];
|
|
1930
|
+
/** Height of the placeholder. */
|
|
1931
|
+
height?: SkeletonProps$1["height"];
|
|
1932
|
+
/** MUI sx overrides merged after internal token styles so consumers can override safely. */
|
|
1933
|
+
sx?: SkeletonProps$1["sx"];
|
|
1934
|
+
}
|
|
1858
1935
|
|
|
1936
|
+
/** Open UI Kit skeleton placeholder with tokenized loading colors and animation defaults. */
|
|
1859
1937
|
declare const Skeleton: ({ animation, sx, ...props }: SkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
1860
1938
|
|
|
1861
1939
|
interface SeverityBarProps {
|
|
1862
1940
|
/**
|
|
1863
|
-
* Severity
|
|
1941
|
+
* Severity level used to resolve the bar color token.
|
|
1864
1942
|
*/
|
|
1865
1943
|
severity: Severity;
|
|
1866
1944
|
/**
|
|
1867
|
-
*
|
|
1945
|
+
* Additional styles merged after the internal 4x32px bar sizing.
|
|
1868
1946
|
*/
|
|
1869
1947
|
sx?: SxProps<Theme>;
|
|
1870
1948
|
}
|
|
1949
|
+
|
|
1871
1950
|
declare const SeverityBar$1: ({ severity, sx, }: SeverityBarProps) => JSX.Element;
|
|
1872
1951
|
|
|
1873
1952
|
interface SeverityBadgeProps {
|
|
1874
1953
|
/**
|
|
1875
|
-
*
|
|
1954
|
+
* Severity enum value used to display one of the standard severity colors.
|
|
1955
|
+
* When provided, it takes precedence over `value`.
|
|
1876
1956
|
*/
|
|
1877
1957
|
severity?: Severity;
|
|
1878
1958
|
/**
|
|
1879
|
-
*
|
|
1880
|
-
* `severity`
|
|
1959
|
+
* Numeric score used to pick a color from the configured score system.
|
|
1960
|
+
* Ignored when `severity` is provided.
|
|
1881
1961
|
*/
|
|
1882
1962
|
value?: number;
|
|
1883
1963
|
/**
|
|
1884
|
-
*
|
|
1964
|
+
* Ordered score thresholds and badge configuration for numeric values.
|
|
1965
|
+
* Omit this to use the default token-backed severity scale.
|
|
1885
1966
|
*/
|
|
1886
1967
|
scoreSystem?: SeverityBadgeScoreSystemItem[];
|
|
1887
1968
|
}
|
|
1888
1969
|
interface SeverityBadgeConfiguration extends IndicatorBadgeProps {
|
|
1970
|
+
/** Optional human-readable label for paired label components. */
|
|
1889
1971
|
label?: string;
|
|
1890
1972
|
}
|
|
1891
1973
|
interface SeverityBadgeScoreSystemItem {
|
|
1974
|
+
/** Badge color, value, and optional label used when the threshold matches. */
|
|
1892
1975
|
configuration: SeverityBadgeConfiguration;
|
|
1976
|
+
/** Inclusive upper bound for the score bucket. */
|
|
1893
1977
|
threshold: number;
|
|
1894
1978
|
}
|
|
1895
1979
|
|
|
@@ -1897,10 +1981,18 @@ declare const SeverityBadge: ({ severity, scoreSystem, value, }: SeverityBadgePr
|
|
|
1897
1981
|
|
|
1898
1982
|
interface SeverityBadgeLabelProps extends SeverityBadgeProps {
|
|
1899
1983
|
/**
|
|
1900
|
-
*
|
|
1984
|
+
* Custom text shown instead of the default severity or score label.
|
|
1901
1985
|
*/
|
|
1902
1986
|
label?: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* Props forwarded to the horizontal label container. Values override the
|
|
1989
|
+
* component defaults such as spacing and alignment.
|
|
1990
|
+
*/
|
|
1903
1991
|
containerStackProps?: StackProps;
|
|
1992
|
+
/**
|
|
1993
|
+
* Props forwarded to the text label. Values override the default body2
|
|
1994
|
+
* typography variant.
|
|
1995
|
+
*/
|
|
1904
1996
|
labelTypographyProps?: TypographyProps;
|
|
1905
1997
|
}
|
|
1906
1998
|
|
|
@@ -1910,9 +2002,14 @@ type SliderProps = SliderProps$1;
|
|
|
1910
2002
|
|
|
1911
2003
|
declare const Slider: ({ sx, ...props }: SliderProps) => react_jsx_runtime.JSX.Element;
|
|
1912
2004
|
|
|
2005
|
+
type StepperStepState = "completed" | "current" | "disabled" | "idle";
|
|
1913
2006
|
interface StepperStep {
|
|
1914
2007
|
/** Step label shown in the sidebar. */
|
|
1915
2008
|
label: string;
|
|
2009
|
+
/** Optional helper text shown below the sidebar label. */
|
|
2010
|
+
subtitle?: string;
|
|
2011
|
+
/** Explicit visual state. When omitted, state is inferred from activeStep. */
|
|
2012
|
+
state?: StepperStepState;
|
|
1916
2013
|
}
|
|
1917
2014
|
interface StepperPanelProps {
|
|
1918
2015
|
/** Array of step definitions. */
|
|
@@ -1921,6 +2018,16 @@ interface StepperPanelProps {
|
|
|
1921
2018
|
activeStep: number;
|
|
1922
2019
|
/** Called when the user clicks a step in the panel. */
|
|
1923
2020
|
onStepClick?: (index: number, event: SyntheticEvent) => void;
|
|
2021
|
+
/** Controls whether the sidebar renders in its compact icon-only state. */
|
|
2022
|
+
collapsed?: boolean;
|
|
2023
|
+
/** Initial collapsed state for uncontrolled usage. */
|
|
2024
|
+
defaultCollapsed?: boolean;
|
|
2025
|
+
/** Called when the sidebar collapse control is clicked. */
|
|
2026
|
+
onCollapseClick?: (event: SyntheticEvent) => void;
|
|
2027
|
+
/** Called after the sidebar collapsed state changes. */
|
|
2028
|
+
onCollapsedChange?: (collapsed: boolean, event: SyntheticEvent) => void;
|
|
2029
|
+
/** Accessible label for the sidebar collapse control. Defaults to collapse/expand text. */
|
|
2030
|
+
collapseButtonAriaLabel?: string;
|
|
1924
2031
|
/** Content rendered in the main area. */
|
|
1925
2032
|
children?: ReactNode;
|
|
1926
2033
|
/** Footer content (e.g. Back/Next buttons, status text). */
|
|
@@ -1928,8 +2035,36 @@ interface StepperPanelProps {
|
|
|
1928
2035
|
/** MUI sx overrides for the root container. */
|
|
1929
2036
|
sx?: SxProps<Theme>;
|
|
1930
2037
|
}
|
|
2038
|
+
interface StepperModalStep {
|
|
2039
|
+
/** Step label shown below the modal step indicator. */
|
|
2040
|
+
label: string;
|
|
2041
|
+
/** Explicit visual state. When omitted, state is inferred from activeStep. */
|
|
2042
|
+
state?: StepperStepState;
|
|
2043
|
+
}
|
|
2044
|
+
interface StepperModalProps extends Omit<DialogProps, "children" | "PaperProps" | "sx" | "title"> {
|
|
2045
|
+
/** Modal title. */
|
|
2046
|
+
title: string;
|
|
2047
|
+
/** Optional descriptor rendered below the title. */
|
|
2048
|
+
subtitle?: ReactNode;
|
|
2049
|
+
/** Array of step definitions rendered in the horizontal modal series. */
|
|
2050
|
+
steps: StepperModalStep[];
|
|
2051
|
+
/** Zero-based index of the current modal step. */
|
|
2052
|
+
activeStep: number;
|
|
2053
|
+
/** Body copy rendered between the step series and custom content. */
|
|
2054
|
+
description?: ReactNode;
|
|
2055
|
+
/** Content slot rendered in the modal body. */
|
|
2056
|
+
children?: ReactNode;
|
|
2057
|
+
/** Footer actions rendered in the bottom bar. */
|
|
2058
|
+
footer?: ReactNode;
|
|
2059
|
+
/** Props forwarded to the underlying dialog paper. */
|
|
2060
|
+
paperProps?: DialogProps["PaperProps"];
|
|
2061
|
+
/** MUI sx overrides for the modal dialog paper. */
|
|
2062
|
+
sx?: SxProps<Theme>;
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
declare const StepperPanel: ({ steps, activeStep, onStepClick, collapsed, defaultCollapsed, onCollapseClick, onCollapsedChange, collapseButtonAriaLabel, children, footer, sx, }: StepperPanelProps) => react_jsx_runtime.JSX.Element;
|
|
1931
2066
|
|
|
1932
|
-
declare const
|
|
2067
|
+
declare const StepperModal: ({ title, subtitle, steps, activeStep, description, children, footer, paperProps, sx, ...dialogProps }: StepperModalProps) => react_jsx_runtime.JSX.Element;
|
|
1933
2068
|
|
|
1934
2069
|
interface ExportProps {
|
|
1935
2070
|
enableExport?: boolean;
|
|
@@ -2068,20 +2203,23 @@ declare enum TagStatus {
|
|
|
2068
2203
|
"Allow" = "Allow",
|
|
2069
2204
|
"Deny" = "Deny"
|
|
2070
2205
|
}
|
|
2071
|
-
|
|
2072
|
-
|
|
2206
|
+
interface TagProps extends Omit<ChipProps, "size" | "children" | "label" | "color" | "sx"> {
|
|
2207
|
+
/** Background color token variant used for non-status tags. */
|
|
2073
2208
|
color?: TagBackgroundColorVariants;
|
|
2074
|
-
|
|
2209
|
+
/** Tag label content. */
|
|
2210
|
+
children: ReactNode;
|
|
2211
|
+
/** Tag scale. Small is 20px tall, medium is 24px, and large is 32px. */
|
|
2075
2212
|
size?: GeneralSize;
|
|
2213
|
+
/** Semantic status treatment. When set, it overrides the color variant. */
|
|
2076
2214
|
status?: TagStatus;
|
|
2215
|
+
/** Root style overrides. Consumer styles are applied after internal styles. */
|
|
2216
|
+
sx?: SxProps<Theme>;
|
|
2077
2217
|
}
|
|
2218
|
+
|
|
2078
2219
|
/**
|
|
2079
|
-
*
|
|
2080
|
-
* @param status - If status is provided, the tag will be styled according to the status, indepenently of the icon settings
|
|
2081
|
-
* @param avatar - When avatar is provided, icon is ignored and the size of the tag is bigger.
|
|
2082
|
-
* @returns
|
|
2220
|
+
* Tag labels categorized content with optional icon, avatar, status, and deletion affordances.
|
|
2083
2221
|
*/
|
|
2084
|
-
declare const Tag: ({ avatar, children, color, status, icon, onClick, size, ...props }: TagProps) => react_jsx_runtime.JSX.Element;
|
|
2222
|
+
declare const Tag: ({ avatar, children, color, status, icon, onClick, size, sx, ...props }: TagProps) => react_jsx_runtime.JSX.Element;
|
|
2085
2223
|
|
|
2086
2224
|
declare const selectTagStyle: (theme: Theme) => {
|
|
2087
2225
|
Excellent: {
|
|
@@ -2182,17 +2320,26 @@ declare const getTagStyle: ({ theme, size, statusStyle, clickable, color, hasAva
|
|
|
2182
2320
|
statusStyle?: TagStatusStyle;
|
|
2183
2321
|
}) => SxProps<Theme>;
|
|
2184
2322
|
|
|
2185
|
-
interface
|
|
2323
|
+
interface TagsProps {
|
|
2324
|
+
/** Customizes the visible label for each rendered tag. */
|
|
2186
2325
|
customizeLabel?: (node: AugmentedSelectNodeType | SelectNodeType) => string;
|
|
2187
|
-
|
|
2188
|
-
|
|
2326
|
+
/** Customizes the tooltip content shown for truncated tag labels. */
|
|
2327
|
+
customizeTooltip?: (node: AugmentedSelectNodeType | SelectNodeType) => ReactNode;
|
|
2328
|
+
/** Called when a tag delete control is clicked. */
|
|
2329
|
+
handleDelete?: (event: MouseEvent<HTMLElement>, node: AugmentedSelectNodeType | SelectNodeType, idx: number) => void;
|
|
2330
|
+
/** Items rendered as tags. Empty arrays render nothing. */
|
|
2189
2331
|
items: AugmentedSelectNodeType[] | SelectNodeType[];
|
|
2332
|
+
/** Maximum number of tags shown before the remainder is collapsed. */
|
|
2190
2333
|
maxTooltipTags?: number;
|
|
2334
|
+
/** Truncates long tag labels and shows the full value in a tooltip. */
|
|
2191
2335
|
shouldTruncate?: boolean;
|
|
2336
|
+
/** Shows the first tag plus a count tag for the remaining items. */
|
|
2192
2337
|
showOnlyFirst?: boolean;
|
|
2338
|
+
/** Size passed through to each Tag. */
|
|
2193
2339
|
size?: GeneralSize;
|
|
2194
2340
|
}
|
|
2195
|
-
|
|
2341
|
+
|
|
2342
|
+
declare const Tags: ({ customizeLabel, customizeTooltip, handleDelete, items, maxTooltipTags, shouldTruncate, showOnlyFirst, size, }: TagsProps) => react_jsx_runtime.JSX.Element | null;
|
|
2196
2343
|
|
|
2197
2344
|
declare const LabelAndChildrenTooltipContent: ({ node }: {
|
|
2198
2345
|
node: SelectNodeType;
|
|
@@ -2204,33 +2351,36 @@ declare const RemainingTags: ({ tags, }: {
|
|
|
2204
2351
|
}) => react_jsx_runtime.JSX.Element;
|
|
2205
2352
|
|
|
2206
2353
|
type ToastType = "default" | "info" | "success" | "warning" | "error";
|
|
2207
|
-
|
|
2354
|
+
interface ToastAction {
|
|
2355
|
+
/** Text shown in the optional toast action button. */
|
|
2356
|
+
label: string;
|
|
2357
|
+
/** Callback fired when the toast action button is clicked. */
|
|
2358
|
+
onClick: () => void;
|
|
2359
|
+
}
|
|
2208
2360
|
interface ToastProps extends Omit<AlertProps, "variant" | "severity" | "children" | "iconMapping" | "action" | "id" | "icon"> {
|
|
2209
|
-
/** Unique id used when dismissing via
|
|
2361
|
+
/** Unique id used when dismissing via Sonner. */
|
|
2210
2362
|
id: string;
|
|
2211
|
-
/** Visual type
|
|
2363
|
+
/** Visual type that controls the status icon and left border color. */
|
|
2212
2364
|
type?: ToastType;
|
|
2213
|
-
/**
|
|
2365
|
+
/** Optional bold title line rendered above the message. */
|
|
2214
2366
|
title?: string;
|
|
2215
|
-
/**
|
|
2367
|
+
/** Optional body message shown in the toast content area. */
|
|
2216
2368
|
description?: string;
|
|
2217
|
-
/**
|
|
2369
|
+
/** Shows the close button when true. */
|
|
2218
2370
|
showCloseButton?: boolean;
|
|
2219
|
-
/**
|
|
2371
|
+
/** Uses local React state for closing when true, or dismisses through Sonner when false. */
|
|
2220
2372
|
useNativeClose?: boolean;
|
|
2221
|
-
/** Optional action
|
|
2222
|
-
action?:
|
|
2223
|
-
|
|
2224
|
-
onClick: () => void;
|
|
2225
|
-
};
|
|
2226
|
-
/** Slot for custom action content when `action` is not used. */
|
|
2373
|
+
/** Optional single action rendered below the message. */
|
|
2374
|
+
action?: ToastAction;
|
|
2375
|
+
/** Custom action content rendered below the message when `action` is not provided. */
|
|
2227
2376
|
customActions?: React__default.ReactNode;
|
|
2228
2377
|
}
|
|
2378
|
+
type ToasterProps = React__default.ComponentProps<typeof Toaster$1>;
|
|
2379
|
+
|
|
2229
2380
|
declare const Toast: ({ type, showCloseButton, useNativeClose, title, description, action, id, customActions, ...props }: ToastProps) => react_jsx_runtime.JSX.Element | null;
|
|
2230
2381
|
declare const toast: ({ ...props }: Omit<ToastProps, "id">) => string | number;
|
|
2231
2382
|
|
|
2232
|
-
|
|
2233
|
-
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
2383
|
+
declare const Toaster: ({ toastOptions, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
2234
2384
|
|
|
2235
2385
|
/**
|
|
2236
2386
|
* Props for the Toggle component. Extends MUI Switch props for controlled,
|
|
@@ -2246,6 +2396,8 @@ interface UploadFile {
|
|
|
2246
2396
|
id: string;
|
|
2247
2397
|
/** Display name of the file. */
|
|
2248
2398
|
name: string;
|
|
2399
|
+
/** Optional thumbnail URL shown in image-oriented file rows. */
|
|
2400
|
+
thumbnailSrc?: string;
|
|
2249
2401
|
/** Upload progress 0–100, shown when status is "uploading". */
|
|
2250
2402
|
progress?: number;
|
|
2251
2403
|
/** Current status of the file. */
|
|
@@ -2256,7 +2408,7 @@ interface UploadFile {
|
|
|
2256
2408
|
interface UploadProps {
|
|
2257
2409
|
/** Trigger variant: drag-and-drop zone or a button. */
|
|
2258
2410
|
variant?: "drag" | "button";
|
|
2259
|
-
/** Size of the drag zone
|
|
2411
|
+
/** Size of the drag zone and file list rows. */
|
|
2260
2412
|
size?: "md" | "sm";
|
|
2261
2413
|
/** Primary label inside the drag zone or button label. */
|
|
2262
2414
|
label?: string;
|
|
@@ -2323,7 +2475,7 @@ declare const ViewSwitcher: ({ disabled, fullWidth, onChange, options, size, val
|
|
|
2323
2475
|
|
|
2324
2476
|
interface ScrollAreaProps extends BoxProps {
|
|
2325
2477
|
/** Content to render inside the scrollable viewport. */
|
|
2326
|
-
children?:
|
|
2478
|
+
children?: ReactNode;
|
|
2327
2479
|
}
|
|
2328
2480
|
|
|
2329
2481
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -2334,6 +2486,7 @@ type PaginationProps = PaginationProps$1;
|
|
|
2334
2486
|
declare const Pagination: (props: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
2335
2487
|
|
|
2336
2488
|
interface DonutProps extends ChartProps {
|
|
2489
|
+
/** Called with the selected slice data when a donut segment is clicked. */
|
|
2337
2490
|
handleClick?: (sliceData: ChartDataItem) => void;
|
|
2338
2491
|
}
|
|
2339
2492
|
/**
|
|
@@ -2342,45 +2495,36 @@ interface DonutProps extends ChartProps {
|
|
|
2342
2495
|
declare const DonutChart: ({ data, showTooltip, customTooltip, handleClick, }: DonutProps) => JSX.Element;
|
|
2343
2496
|
|
|
2344
2497
|
interface GaugeChartProps extends ChartProps {
|
|
2498
|
+
/** Highest target value used to calculate how much of the gauge arc is filled. */
|
|
2345
2499
|
maxValue?: number;
|
|
2346
|
-
|
|
2500
|
+
/** Optional content shown below the numeric value inside the gauge. */
|
|
2501
|
+
customLabelComponent?: ReactNode;
|
|
2502
|
+
/** Optional dimensional overrides for compact or expanded gauge layouts. */
|
|
2347
2503
|
styleProps?: {
|
|
2504
|
+
/** Custom gauge width in pixels. */
|
|
2348
2505
|
customWidth?: number;
|
|
2506
|
+
/** Custom gauge height in pixels. */
|
|
2349
2507
|
customHeight?: number;
|
|
2508
|
+
/** CSS top value for the central numeric label. */
|
|
2350
2509
|
textTop?: string;
|
|
2351
2510
|
};
|
|
2352
2511
|
}
|
|
2353
2512
|
declare const GaugeChart: ({ data, maxValue, customLabelComponent, styleProps, }: GaugeChartProps) => react_jsx_runtime.JSX.Element;
|
|
2354
|
-
declare const gaugeWrapper: ({ height, width, }: {
|
|
2355
|
-
height: number;
|
|
2356
|
-
width: number;
|
|
2357
|
-
}) => {
|
|
2358
|
-
readonly display: "inline-block";
|
|
2359
|
-
readonly width: `${number}px`;
|
|
2360
|
-
readonly height: `${number}px`;
|
|
2361
|
-
readonly position: "relative";
|
|
2362
|
-
};
|
|
2363
|
-
declare const barShadow: (barFill: string) => {
|
|
2364
|
-
filter: string;
|
|
2365
|
-
};
|
|
2366
|
-
declare const gaugeLabel: {
|
|
2367
|
-
transform: string;
|
|
2368
|
-
};
|
|
2369
|
-
declare const boxStyle: {
|
|
2370
|
-
position: string;
|
|
2371
|
-
top: string;
|
|
2372
|
-
left: string;
|
|
2373
|
-
transform: string;
|
|
2374
|
-
};
|
|
2375
2513
|
|
|
2376
2514
|
interface BarProps {
|
|
2515
|
+
/** Data key to read from each item's `barData` object. */
|
|
2377
2516
|
key: string;
|
|
2517
|
+
/** Fill color for the stacked bar segment. Use a theme palette token. */
|
|
2378
2518
|
color: string;
|
|
2379
2519
|
}
|
|
2380
2520
|
interface BarGraphProps extends ChartProps {
|
|
2521
|
+
/** Column header labels rendered above the item labels and stacked bars. */
|
|
2381
2522
|
headers?: string[];
|
|
2523
|
+
/** Stacked bar segment definitions. Each key must exist in every item's `barData`. */
|
|
2382
2524
|
bars?: BarProps[];
|
|
2525
|
+
/** Shows the category legend below the graph. */
|
|
2383
2526
|
showLegend?: boolean;
|
|
2527
|
+
/** Called when the Recharts graph receives a click event. */
|
|
2384
2528
|
handleClick?: CategoricalChartFunc;
|
|
2385
2529
|
}
|
|
2386
2530
|
declare const BarGraph: ({ data, showLegend, showTooltip, bars, headers, customTooltip, handleClick, }: BarGraphProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -2443,37 +2587,58 @@ type ConditionalPropsByType = {
|
|
|
2443
2587
|
type ExtendedChartProps = GaugeChartProps & Omit<DonutProps, "handleClick"> & Omit<BarGraphProps, "handleClick">;
|
|
2444
2588
|
|
|
2445
2589
|
interface BarChartProps extends ChartProps {
|
|
2590
|
+
/** Called when a data bar is selected. Use it for drill-down interactions. */
|
|
2446
2591
|
handleClick?: (item: ChartDataItem) => void;
|
|
2447
2592
|
}
|
|
2448
2593
|
declare const BarChart$1: ({ data, handleClick, showTooltip, customTooltip, }: BarChartProps) => react_jsx_runtime.JSX.Element;
|
|
2449
2594
|
|
|
2450
2595
|
interface IWidgetProps {
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2596
|
+
/** Main content rendered inside the widget body. */
|
|
2597
|
+
bodyElement: ReactElement;
|
|
2598
|
+
/** Style overrides for the outer widget card. Consumer values are applied last. */
|
|
2599
|
+
sx?: SxProps$1<Theme$1>;
|
|
2600
|
+
/** Headline label rendered in the widget header. Omit it for a body-only widget. */
|
|
2601
|
+
label?: string | ReactElement;
|
|
2602
|
+
/** Optional content rendered to the right of the headline area. */
|
|
2603
|
+
headerChildren?: ReactElement;
|
|
2604
|
+
/** Optional content rendered before the headline label. */
|
|
2605
|
+
headerLeftChildren?: ReactElement;
|
|
2606
|
+
/** Tooltip content displayed next to the headline label. */
|
|
2607
|
+
labelTooltip?: ReactNode;
|
|
2608
|
+
/** Tooltip content attached to the headline label itself. */
|
|
2609
|
+
titleTooltip?: ReactNode;
|
|
2610
|
+
/** Shows the loading skeleton instead of the body content. */
|
|
2458
2611
|
isLoading?: boolean;
|
|
2612
|
+
/** Uses the horizontal widget body layout for chart and legend compositions. */
|
|
2459
2613
|
isHorizontal?: boolean;
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2614
|
+
/** Optional chart-specific content rendered by chart wrappers. */
|
|
2615
|
+
chartCustomComponent?: ReactNode;
|
|
2616
|
+
/** Props forwarded to the body stack when composing chart wrappers. */
|
|
2617
|
+
stackStyle?: StackProps$1;
|
|
2618
|
+
/** Optional legend content rendered next to or below the body content. */
|
|
2619
|
+
legendCustomComponent?: ReactNode;
|
|
2620
|
+
/** Props forwarded to widget tooltips. */
|
|
2463
2621
|
tooltipProps?: Partial<TooltipProps>;
|
|
2622
|
+
/** Shows the empty state instead of the body content. */
|
|
2464
2623
|
isEmpty?: boolean;
|
|
2624
|
+
/** Called when the headline label is interactive. */
|
|
2465
2625
|
onLabelClick?: () => void;
|
|
2626
|
+
/** Optional Rosey analytics identifier applied to the outer card. */
|
|
2466
2627
|
dataRoseyUrn?: string;
|
|
2467
2628
|
}
|
|
2468
2629
|
|
|
2469
2630
|
type IChartWidgetProps = ExtendedChartProps & Omit<IWidgetProps, "bodyElement"> & ConditionalPropsByType & {
|
|
2470
|
-
|
|
2471
|
-
|
|
2631
|
+
/** Style overrides for the outer widget card. Consumer values are applied after chart-widget defaults. */
|
|
2632
|
+
sx?: SxProps$1<Theme$1>;
|
|
2633
|
+
/** Shared style overrides for the outer widget card when composing several chart widgets. */
|
|
2634
|
+
generalWidgetStyle?: SxProps$1<Theme$1>;
|
|
2635
|
+
/** Headline text rendered in the widget header. */
|
|
2472
2636
|
label: string;
|
|
2473
2637
|
};
|
|
2474
2638
|
declare const ChartWidget: ({ data, type, label, labelTooltip, showTooltip, categories, isLoading, isEmpty, isHorizontal, customTooltip, titleTooltip, sx, chartCustomComponent, stackStyle, legendCustomComponent, tooltipProps, generalWidgetStyle, headerChildren, headerLeftChildren, onLabelClick, dataRoseyUrn, ...rest }: IChartWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
2475
2639
|
|
|
2476
2640
|
interface HorizontalBarChartProps extends ChartProps {
|
|
2641
|
+
/** Called with the selected item when a horizontal bar row is clicked or activated by keyboard. */
|
|
2477
2642
|
handleClick?: (item: ChartDataItem) => void;
|
|
2478
2643
|
}
|
|
2479
2644
|
declare const HorizontalBarChart: ({ data, categories, handleClick, }: HorizontalBarChartProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -2485,42 +2650,68 @@ interface LineChartTooltipProps extends TooltipProps$2<number, string> {
|
|
|
2485
2650
|
|
|
2486
2651
|
type SafeLineProps = Omit<LineProps, "ref">;
|
|
2487
2652
|
interface LineChartProps extends ChartProps, Pick<LineChartTooltipProps, "valueFormatter"> {
|
|
2653
|
+
/** Optional title shown in the default tooltip before the category values. */
|
|
2488
2654
|
subject?: string;
|
|
2655
|
+
/** Props forwarded to the Recharts X axis for domain, tick, and formatter overrides. */
|
|
2489
2656
|
xAxisProps?: XAxisProps;
|
|
2657
|
+
/** Props forwarded to the Recharts Y axis for domain, tick, and formatter overrides. */
|
|
2490
2658
|
yAxisProps?: YAxisProps;
|
|
2659
|
+
/** Props forwarded to every line series. Use for dots, active dots, and stroke overrides. */
|
|
2491
2660
|
lineProps?: Partial<SafeLineProps>;
|
|
2661
|
+
/** Props forwarded to the Cartesian grid for dash and stroke overrides. */
|
|
2492
2662
|
gridProps?: CartesianGridProps;
|
|
2493
2663
|
}
|
|
2494
2664
|
declare const LineChart: ({ data, categories, showTooltip, subject, xAxisProps, yAxisProps, customTooltip, valueFormatter, lineProps, gridProps, }: LineChartProps) => react_jsx_runtime.JSX.Element;
|
|
2495
2665
|
|
|
2496
2666
|
type DataPoint = {
|
|
2667
|
+
/** Label rendered around the radar axis and in the default tooltip. */
|
|
2497
2668
|
subject: string;
|
|
2498
2669
|
};
|
|
2499
2670
|
type ExtendedDataPoint = {
|
|
2671
|
+
[key: string]: string | number | undefined;
|
|
2672
|
+
/** Numeric value rendered by the default `variableA` radar series. */
|
|
2500
2673
|
variableA?: number;
|
|
2501
2674
|
} & DataPoint;
|
|
2502
2675
|
type RadarType = {
|
|
2676
|
+
/** Legend and tooltip name for the radar series. */
|
|
2503
2677
|
name: string;
|
|
2678
|
+
/** Data key read from each item in `data`. */
|
|
2504
2679
|
dataKey: string;
|
|
2680
|
+
/** Solid fill token used under the custom conic gradient shape. */
|
|
2505
2681
|
fill?: string;
|
|
2682
|
+
/** CSS gradient or tokenized background used by the custom radar shape. */
|
|
2506
2683
|
background?: string;
|
|
2507
|
-
shape
|
|
2684
|
+
/** Optional Recharts shape override for the radar polygon. */
|
|
2685
|
+
shape?: ReactElement;
|
|
2508
2686
|
};
|
|
2509
2687
|
type Offset = {
|
|
2688
|
+
/** Horizontal label offset in pixels. */
|
|
2510
2689
|
cx: number;
|
|
2690
|
+
/** Vertical label offset in pixels. */
|
|
2511
2691
|
cy: number;
|
|
2512
2692
|
};
|
|
2513
2693
|
type SpiderChartProps = {
|
|
2694
|
+
/** Radar data points. `subject` labels each axis and numeric keys feed radar series. */
|
|
2514
2695
|
data: ExtendedDataPoint[];
|
|
2696
|
+
/** Radar series definitions. Each `dataKey` must exist on the data points. */
|
|
2515
2697
|
radars: RadarType[];
|
|
2698
|
+
/** Distance from the center to the outer radar ring. */
|
|
2516
2699
|
outerRadius?: number;
|
|
2700
|
+
/** Reserved spacing hook for downstream chart compositions. */
|
|
2517
2701
|
padData?: number;
|
|
2702
|
+
/** Called with the active subject when the tooltip area is clicked. */
|
|
2518
2703
|
onTooltipClick?: (subject: string) => void;
|
|
2519
|
-
|
|
2704
|
+
/** Custom renderer for the default tooltip body. */
|
|
2705
|
+
tooltipContent?: (dataPoint: ExtendedDataPoint) => ReactNode;
|
|
2706
|
+
/** Shows the default or custom tooltip. */
|
|
2520
2707
|
showTooltip?: boolean;
|
|
2708
|
+
/** Fully custom Recharts tooltip content. */
|
|
2521
2709
|
customTooltip?: ContentType<number, string>;
|
|
2710
|
+
/** Per-label pixel offsets for fine alignment around the chart. */
|
|
2522
2711
|
labelOffsets?: Offset[];
|
|
2712
|
+
/** Distance multiplier between the radar and outer labels. */
|
|
2523
2713
|
tickBand?: number;
|
|
2714
|
+
/** Scales the custom grid and radar line rendering. */
|
|
2524
2715
|
scale?: number;
|
|
2525
2716
|
};
|
|
2526
2717
|
|
|
@@ -2535,41 +2726,70 @@ declare const ChartTypeComponents: {
|
|
|
2535
2726
|
[key: string]: ComponentType<ChartProps>;
|
|
2536
2727
|
};
|
|
2537
2728
|
|
|
2538
|
-
type
|
|
2729
|
+
type BasePageContainerProps = BoxProps & {
|
|
2730
|
+
[key: `data-${string}`]: string | number | undefined;
|
|
2731
|
+
};
|
|
2732
|
+
type SubNavItem = Omit<TabProps$1, "value"> & {
|
|
2733
|
+
/** Router destination used by the sub-navigation tab. */
|
|
2539
2734
|
href?: string;
|
|
2735
|
+
/** Marks this item as the current page when URL matching is not enough. */
|
|
2540
2736
|
selected?: boolean;
|
|
2541
2737
|
};
|
|
2542
2738
|
interface BasePageProps {
|
|
2739
|
+
/** Page content rendered below the header and optional sub-navigation. */
|
|
2543
2740
|
children: ReactNode;
|
|
2544
|
-
|
|
2741
|
+
/** Props applied to the outer page container. Consumer `sx` is merged after internal spacing. */
|
|
2742
|
+
containerProps?: BasePageContainerProps;
|
|
2743
|
+
/** Breadcrumb items rendered above the page title when breadcrumbs are enabled. */
|
|
2545
2744
|
breadcrumbs?: BreadcrumbsProps["items"];
|
|
2745
|
+
/** Main page title rendered as the heading. */
|
|
2546
2746
|
title: ReactNode;
|
|
2747
|
+
/** Optional supporting text below the title. */
|
|
2547
2748
|
description?: ReactNode;
|
|
2749
|
+
/** Actions or controls rendered on the right side of the header. */
|
|
2548
2750
|
rightSideItems?: ReactNode;
|
|
2751
|
+
/** Props applied to the sub-navigation Tabs component. */
|
|
2549
2752
|
tabsProps?: TabsProps;
|
|
2753
|
+
/** Optional tabbed page navigation rendered below the title area. */
|
|
2550
2754
|
subNav?: SubNavItem[];
|
|
2755
|
+
/** Controls whether breadcrumbs render when breadcrumb items are supplied. */
|
|
2551
2756
|
useBreadcrumbs?: boolean;
|
|
2552
2757
|
}
|
|
2758
|
+
|
|
2553
2759
|
declare const BasePage: ({ children, containerProps, breadcrumbs, title, description, rightSideItems, subNav, tabsProps, useBreadcrumbs, }: BasePageProps) => react_jsx_runtime.JSX.Element;
|
|
2554
2760
|
|
|
2555
2761
|
interface LayoutProps {
|
|
2556
|
-
content
|
|
2762
|
+
/** Main page content rendered beside the optional side navigation. */
|
|
2763
|
+
content?: ReactNode;
|
|
2764
|
+
/** Controls whether the fixed application header is rendered. */
|
|
2557
2765
|
showHeader?: boolean;
|
|
2766
|
+
/** Props forwarded to the Header component. */
|
|
2558
2767
|
headerProps?: HeaderProps;
|
|
2768
|
+
/** Controls whether the side navigation drawer is rendered on desktop. */
|
|
2559
2769
|
showSideNav?: boolean;
|
|
2560
|
-
|
|
2770
|
+
/** Content rendered inside the desktop side navigation drawer. */
|
|
2771
|
+
sideNav?: ReactNode;
|
|
2561
2772
|
}
|
|
2773
|
+
|
|
2562
2774
|
declare const Layout$1: ({ showHeader, showSideNav, headerProps, content, sideNav, }: LayoutProps) => react_jsx_runtime.JSX.Element;
|
|
2563
2775
|
|
|
2564
2776
|
interface PageTitleProps {
|
|
2777
|
+
/** Main page heading rendered as the h1. */
|
|
2565
2778
|
title: ReactNode;
|
|
2779
|
+
/** Supporting text rendered below the title row. */
|
|
2566
2780
|
subtitle?: ReactNode;
|
|
2781
|
+
/** Optional image displayed before the title block. */
|
|
2567
2782
|
image?: ReactNode;
|
|
2783
|
+
/** Optional icon displayed before the title block when no image is supplied. */
|
|
2568
2784
|
icon?: ReactNode;
|
|
2785
|
+
/** Optional status tag or badge rendered beside the title. */
|
|
2569
2786
|
tag?: ReactNode;
|
|
2787
|
+
/** Breadcrumb items rendered above the title block. */
|
|
2570
2788
|
breadcrumbs?: BreadcrumbsProps["items"];
|
|
2789
|
+
/** Action controls rendered at the end of the title block. */
|
|
2571
2790
|
actions?: ReactNode;
|
|
2572
|
-
|
|
2791
|
+
/** Style overrides for the outer title container. Consumer values are applied last. */
|
|
2792
|
+
sx?: SxProps$1<Theme$1>;
|
|
2573
2793
|
}
|
|
2574
2794
|
|
|
2575
2795
|
declare const PageTitle: ({ title, subtitle, image, icon, tag, breadcrumbs, actions, sx, }: PageTitleProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -7445,18 +7665,28 @@ declare const lightVars: VarsType;
|
|
|
7445
7665
|
|
|
7446
7666
|
declare const darkVars: VarsType;
|
|
7447
7667
|
|
|
7668
|
+
declare enum ThemeMode {
|
|
7669
|
+
Light = "light",
|
|
7670
|
+
Dark = "dark"
|
|
7671
|
+
}
|
|
7448
7672
|
interface ThemeModeContextValue {
|
|
7449
|
-
|
|
7450
|
-
|
|
7673
|
+
mode: ThemeMode;
|
|
7674
|
+
setMode: React__default.Dispatch<React__default.SetStateAction<ThemeMode>>;
|
|
7451
7675
|
toggleTheme: () => void;
|
|
7452
7676
|
}
|
|
7453
7677
|
declare function useThemeMode(): ThemeModeContextValue;
|
|
7454
7678
|
interface ThemeProviderProps {
|
|
7455
7679
|
children: React__default.ReactNode;
|
|
7456
|
-
|
|
7457
|
-
|
|
7680
|
+
defaultMode?: ThemeMode;
|
|
7681
|
+
/**
|
|
7682
|
+
* A fully custom MUI Theme. Must include palette.vars (VarsType) to be
|
|
7683
|
+
* compatible with open-ui-kit components. When provided, takes precedence
|
|
7684
|
+
* over defaultMode for theme selection.
|
|
7685
|
+
* Reference: src/theme/light/light-theme.tsx
|
|
7686
|
+
*/
|
|
7687
|
+
customTheme?: Theme;
|
|
7458
7688
|
}
|
|
7459
|
-
declare const ThemeProvider: ({ children,
|
|
7689
|
+
declare const ThemeProvider: ({ children, defaultMode, customTheme, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
7460
7690
|
|
|
7461
|
-
export { Accordion, StyledAccordionSummary as AccordionSummary, ActionsDialog, ActivityTimeline, ActivityTimelineStepStatus, AddDomain, AddRepos, AnchorLinkMenu, AttackPathAnalysis, AttackPathAnalysisWalkThrough, Avatar, AvatarGroup, Backdrop, Badge, Banner, BarChart$1 as BarChart, BarGraph, BasePage, Breadcrumbs, Button, Card, CardActionArea, CardActions, CardContent, CardDescription, CardHeader, CardSubheader, Celebration, ChartType, ChartTypeComponents, ChartWidget, Checkbox$1 as Checkbox, CiCd, Cloud, CloudSimple, CodeBlock, CopyButton, CreateTableInstance, Dashboard, Data, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogSubtitle, DialogTitle, Divider, DonutChart, EMPTY_FUNCTION, EmptyData, EmptyState, FiltersBar, FiltersDrawer, FloatingButton, Footer, GaugeChart, GeneralSize, Git, GitSimple, GlobalSearchInput, Header, HorizontalBarChart, Icon, IconPosition, index_d as Icons, IndicatorBadge, Info, InputField, KeyValuePairs, Kubernetes, LabelAndChildrenTooltipContent, Layout$1 as Layout, LineChart, Link$1 as Link, LinkColorEnum, LinkType, List$1 as List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, LoadingErrorState, LoadingStates, Menu$1 as Menu, MenuItem, StyledMenuSubheader as MenuSubheader, Message, Navigation, NavigationDrawer, NavigationSubNavigation, Negative, NestedMenu, NestedMenuListbox, NoData, OS_LIGHT_COLORS, OverflowTooltip, PageTitle, Pagination, PathDisplay, PickerItem, Popover, Positive, RadioButton, RadioGroup, Recon, RemainingTags, SEVERITY_VALUE, ScrollArea, SearchInput, Select, SelectNode, SelectNodeListItem, Sent, Severity, SeverityBadge, SeverityBadgeLabel, SeverityBar$1 as SeverityBar, Shield, SideDrawer, Skeleton, Slider, SpiderChart, Spinner, StaticDatePicker, StaticDateTimePicker, StepperPanel, Success, Tab, Table$1 as Table, Tabs, Tag, TagAvatarSize, TagBackgroundColorVariants, TagStatus, Tags, ThemeProvider, TimePicker, Toast, Toaster, Toggle, Tooltip, TooltipSize, Upload$1 as Upload, ViewSwitcher, Warning, agentcyBlue, agentcyDarkBlue, agentcyYellow, augmentTreeData,
|
|
7462
|
-
export type { AccordionProps, ActionsDialogProps, ActivityTimelineProps, ActivityTimelineStep, AnchorLinkMenuItem, AnchorLinkMenuProps, AssetsData, AtomicTypes, AugmentedSelectNodeType, AvatarGroupProps, AvatarProps, BackdropProps, BadgeProps, BadgeType, BannerProps, BarChartProps, BarGraphItem, BarGraphProps, BarProps, BasePageProps, BreadcrumbItem, BreadcrumbsProps, ButtonProps, CardActionAreaProps, CardActionsProps, CardContentProps, CardDescriptionProps, CardHeaderProps, CardProps, CardSubheaderProps, ChartCategory, ChartCategoryItem, ChartDataItem, ChartProps, CheckboxProps, CodeBlockHeaderButton, CodeBlockProps, CodeBlockSize, ConditionalPropsByType, CopyButtonPosition, CopyButtonProps, CopyButtonSize, CopyButtonStylesProps, DatePickerProps, DateRangePickerProps, DateTimePickerProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogProps, DialogSubtitleProps, DialogTitleProps, DividerProps, DonutProps, EmptyStateDirection, EmptyStateProps, EmptyStateVariant, ExportProps, ExtendedChartProps, ExtendedDataPoint, FilterData, FilterOptionData, FiltersBarActionsProps, FiltersBarProps, FiltersDrawerProps, FlattenSelectTreeArgs, FlattenedSelectTreeData, FloatingButtonProps, FloatingButtonSize, FloatingButtonVariant, FooterProps, GaugeChartProps, GlobalSearchGroup, GlobalSearchItem, GlobalSearchProps, Gradient, GradientsPalette, HeaderAction, HeaderProps, HeaderTooltipMeta, IChartWidgetProps, IconProps, IndicatorBadgeProps, IndicatorBadgeValue, InputFieldProps, KeyValuePairItem, KeyValuePairsLayout, KeyValuePairsProps, LayoutProps, LineChartProps, LinkColorStatus, LinkProps, LinkState, ListItemButtonProps, ListItemIconProps, ListItemProps, ListItemTextProps, ListProps, ListSubheaderProps, LoadingErrorStateProps, LoadingStatesProps, LoadingStatesSkeletonState, MenuItemProps, MenuItemSize, MenuProps, MessageProps, MessageType, NavigationDrawerProps, NavigationItemData, NavigationItemState, NavigationProps, NavigationSectionData, NavigationSubNavigationProps, NestedMenuProps, OverflowTooltipProps, PageTitleProps, PaginationProps, PathDisplayProps, PickerDisplay, PickerItemProps, PickerSize, PopoverArrowPosition, PopoverProps, RadioButtonProps, RadioGroupProps, ScrollAreaProps, SearchInputProps, SelectNodeType, SelectProps, SeverityBadgeLabelProps, SeverityBadgeProps, SeverityBadgeScoreSystemItem, SeverityBarProps, SideDrawerFooterProps, SideDrawerHeaderProps, SideDrawerProps, SkeletonProps, SliderProps, SpiderChartProps, SpinnerProps, StaticDatePickerProps, StaticDateTimePickerProps, StaticTimePickerProps, StatusBanner, StepperPanelProps, StepperStep, TabProps, TableChartDataItem, TableProps, TableRow, TableTitle, TabsProps, TabsType, TagProps, TagStatusStyle, ThemeModeContextValue, ThemeProviderProps, TimePickerProps, ToastProps, ToastType, ToasterProps, ToggleProps, TooltipProps, TopToolbarProps, UploadFile, UploadFileStatus, UploadProps, VarsType, ViewSwitcherOption, ViewSwitcherOptionObject, ViewSwitcherOptionProperties, ViewSwitcherProps, ViewSwitcherSize };
|
|
7691
|
+
export { Accordion, StyledAccordionSummary as AccordionSummary, ActionsDialog, ActivityTimeline, ActivityTimelineStepStatus, AddDomain, AddRepos, AnchorLinkMenu, AttackPathAnalysis, AttackPathAnalysisWalkThrough, Avatar, AvatarGroup, Backdrop, Badge, Banner, BarChart$1 as BarChart, BarGraph, BasePage, Breadcrumbs, Button, Card, CardActionArea, CardActions, CardContent, CardDescription, CardHeader, CardSubheader, Celebration, ChartType, ChartTypeComponents, ChartWidget, Checkbox$1 as Checkbox, CiCd, Cloud, CloudSimple, CodeBlock, CopyButton, CreateTableInstance, Dashboard, Data, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogSubtitle, DialogTitle, Divider, DonutChart, EMPTY_FUNCTION, EmptyData, EmptyState, FiltersBar, FiltersDrawer, FloatingButton, Footer, GaugeChart, GeneralSize, Git, GitSimple, GlobalSearchInput, Header, HorizontalBarChart, Icon, IconPosition, index_d as Icons, IndicatorBadge, Info, InputField, KeyValuePairs, Kubernetes, LabelAndChildrenTooltipContent, Layout$1 as Layout, LineChart, Link$1 as Link, LinkColorEnum, LinkType, List$1 as List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, LoadingErrorState, LoadingStates, Menu$1 as Menu, MenuItem, StyledMenuSubheader as MenuSubheader, Message, Navigation, NavigationDrawer, NavigationSubNavigation, Negative, NestedMenu, NestedMenuListbox, NoData, OS_LIGHT_COLORS, OverflowTooltip, PageTitle, Pagination, PathDisplay, PickerItem, Popover, Positive, RadioButton, RadioGroup, Recon, RemainingTags, SEVERITY_VALUE, ScrollArea, SearchInput, Select, SelectNode, SelectNodeListItem, Sent, Severity, SeverityBadge, SeverityBadgeLabel, SeverityBar$1 as SeverityBar, Shield, SideDrawer, Skeleton, Slider, SpiderChart, Spinner, StaticDatePicker, StaticDateTimePicker, StepperModal, StepperPanel, Success, Tab, Table$1 as Table, Tabs, Tag, TagAvatarSize, TagBackgroundColorVariants, TagStatus, Tags, ThemeMode, ThemeProvider, TimePicker, Toast, Toaster, Toggle, Tooltip, TooltipSize, Upload$1 as Upload, ViewSwitcher, Warning, agentcyBlue, agentcyDarkBlue, agentcyYellow, augmentTreeData, blue100, blue200, blue300, blue400, blue50, blue500, blue600, blue700, blue800, blue900, blueAlpha10, blueAlpha40, blueFocusRingStrong, blueFocusRingWeak, bluePalette, brandColors, capitalize, darkModeCardFloating, darkModeCardLifted, darkModeCardRaised, darkModeCardSubtle, darkModeFooterBottom, darkModeSideDrawerLeft, darkModeSideDrawerRight, darkVars, deepCopyTree, flattenSelectTree, flattenSelectTreeWithSearch, flattenSelectTreeWithoutSearch, formatNodeValue, getAllSelectedLeaves, getAllSelectedParents, getChildrenOfTopLevelNode, getColorBySeverity, getLeafCounts, getTagStyle, gradientStopColors, gradientsPalette, green10, green100, green200, green300, green40, green400, green50, green500, green600, green700, green800, green900, greenPalette, grey0, grey100, grey200, grey300, grey400, grey50, grey500, grey600, grey700, grey800, grey900, greyAlpha10, greyAlpha40, greyPalette, illustrationGradientEnd, illustrationGradientStart, illustrationInfoGradientEnd, illustrationInfoGradientMiddle, illustrationInfoGradientStart, illustrationNegativeGradientStart, illustrationPositiveGradientEnd, illustrationPositiveGradientMiddle, illustrationPositiveGradientStart, illustrationRing, illustrationShell, illustrationStroke, illustrationSurface, illustrationSurfaceSubtle, illustrationWarningGradientEnd, illustrationWarningGradientStart, isLeaf, lavender10, lavender100, lavender200, lavender300, lavender400, lavender50, lavender500, lavender600, lavender700, lavender800, lavender900, lavenderPalette, lightAlphaOrange10, lightAlphaOrange40, lightBlue100, lightBlue200, lightBlue300, lightBlue400, lightBlue50, lightBlue500, lightBlue600, lightBlue700, lightBlue800, lightBlue900, lightBlueAlpha10, lightBlueAlpha40, lightBluePalette, lightModeCardFloating, lightModeCardLifted, lightModeCardRaised, lightModeCardSubtle, lightModeFooterBottom, lightModeSideDrawer, lightModeSideDrawerLeft, lightModeSideDrawerRight, lightOrange100, lightOrange200, lightOrange300, lightOrange400, lightOrange50, lightOrange500, lightOrange600, lightOrange700, lightOrange800, lightOrange900, lightOrangePalette, lightVars, lime10, lime100, lime200, lime300, lime400, lime50, lime500, lime600, lime700, lime800, lime900, limePalette, mergeNodeChildrenValueToText, night10, night100, night200, night300, night400, night50, night500, night600, night700, night800, night900, nightPalette, normalizeSeverity, orange100, orange200, orange300, orange400, orange50, orange500, orange600, orange700, orange800, orange900, orangeAlpha10, orangeAlpha40, orangePalette, outshiftBlue, outshiftLogoDark, outshiftLogoGreen, outshiftLogoLightBlue, outshiftLogoLightOrange, outshiftLogoOrange, outshiftLogoWhite, outshiftMidnightBlue, outshiftOrange, pink10, pink100, pink200, pink300, pink400, pink50, pink500, pink600, pink700, pink800, pink900, pinkPalette, purple100, purple200, purple300, purple400, purple50, purple500, purple600, purple700, purple800, purple900, purpleAlpha10, purpleAlpha40, purplePalette, red100, red200, red300, red400, red50, red500, red600, red700, red800, red900, redAlpha10, redAlpha40, redPalette, selectTagStyle, setSelectedMainSkillCategories, sortBySeverity, sunset10, sunset100, sunset200, sunset300, sunset400, sunset50, sunset500, sunset600, sunset700, sunset800, sunset900, sunsetPalette, surfaceDark100, surfaceDark200, surfaceDark300, surfaceDark400, surfaceDark50, surfaceDark500, surfaceDark600, surfaceDark700, surfaceDark800, surfaceDark800Alpha40, surfaceDark900, surfaceDark900Alpha10, surfaceDark900Alpha40, surfaceDarkPalette, surfaceLight100, surfaceLight200, surfaceLight300, surfaceLight400, surfaceLight50, surfaceLight500, surfaceLight50Alpha40, surfaceLight600, surfaceLight700, surfaceLight800, surfaceLight800Alpha40, surfaceLight900, surfaceLight900Alpha10, surfaceLight900Alpha40, surfaceLightPalette, teal10, teal100, teal200, teal300, teal400, teal50, teal500, teal600, teal700, teal800, teal900, tealPalette, toast, upwardsPush, useNestedMenu, useThemeMode, yellow100, yellow200, yellow300, yellow400, yellow50, yellow500, yellow600, yellow700, yellow800, yellow900, yellowAlpha10, yellowAlpha40, yellowPalette };
|
|
7692
|
+
export type { AccordionProps, ActionsDialogProps, ActivityTimelineProps, ActivityTimelineStep, AnchorLinkMenuItem, AnchorLinkMenuProps, AssetsData, AtomicTypes, AugmentedSelectNodeType, AvatarGroupProps, AvatarProps, BackdropProps, BadgeProps, BadgeType, BannerProps, BarChartProps, BarGraphItem, BarGraphProps, BarProps, BasePageProps, BreadcrumbItem, BreadcrumbsProps, ButtonProps, CardActionAreaProps, CardActionsProps, CardContentProps, CardDescriptionProps, CardHeaderProps, CardProps, CardSubheaderProps, ChartCategory, ChartCategoryItem, ChartDataItem, ChartProps, CheckboxProps, CodeBlockHeaderButton, CodeBlockProps, CodeBlockSize, ConditionalPropsByType, CopyButtonPosition, CopyButtonProps, CopyButtonSize, CopyButtonStylesProps, DatePickerProps, DateRangePickerProps, DateTimePickerProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogProps, DialogSubtitleProps, DialogTitleProps, DividerProps, DividerVariant, DonutProps, EmptyStateDirection, EmptyStateProps, EmptyStateVariant, ExportProps, ExtendedChartProps, ExtendedDataPoint, FilterData, FilterOptionData, FiltersBarActionsProps, FiltersBarProps, FiltersDrawerProps, FlattenSelectTreeArgs, FlattenedSelectTreeData, FloatingButtonProps, FloatingButtonSize, FloatingButtonVariant, FooterProps, GaugeChartProps, GlobalSearchGroup, GlobalSearchItem, GlobalSearchProps, Gradient, GradientsPalette, HeaderAction, HeaderProps, HeaderTooltipMeta, HorizontalBarChartProps, IChartWidgetProps, IconProps, IndicatorBadgeProps, IndicatorBadgeValue, InputFieldProps, KeyValuePairItem, KeyValuePairsLayout, KeyValuePairsProps, LayoutProps, LineChartProps, LinkColorStatus, LinkProps, LinkState, ListItemButtonProps, ListItemIconProps, ListItemProps, ListItemTextProps, ListProps, ListSubheaderProps, LoadingErrorStateProps, LoadingStatesProps, LoadingStatesSkeletonState, MenuItemProps, MenuItemSize, MenuProps, MessageProps, MessageType, NavigationDrawerProps, NavigationItemData, NavigationItemState, NavigationProps, NavigationSectionData, NavigationSubNavigationProps, NestedMenuProps, OverflowTooltipProps, PageTitleProps, PaginationProps, PathDisplayProps, PickerDisplay, PickerItemProps, PickerSize, PopoverArrowPosition, PopoverProps, PopoverSize, RadioButtonProps, RadioGroupProps, ScrollAreaProps, SearchInputProps, SelectNodeType, SelectProps, SeverityBadgeLabelProps, SeverityBadgeProps, SeverityBadgeScoreSystemItem, SeverityBarProps, SideDrawerFooterProps, SideDrawerHeaderProps, SideDrawerProps, SkeletonProps, SliderProps, SpiderChartProps, SpinnerProps, StaticDatePickerProps, StaticDateTimePickerProps, StaticTimePickerProps, StatusBanner, StepperModalProps, StepperModalStep, StepperPanelProps, StepperStep, SubNavItem, TabProps, TableChartDataItem, TableProps, TableRow, TableTitle, TabsProps, TabsType, TagProps, TagStatusStyle, TagsProps, ThemeModeContextValue, ThemeProviderProps, TimePickerProps, ToastAction, ToastProps, ToastType, ToasterProps, ToggleProps, TooltipProps, TopToolbarProps, UploadFile, UploadFileStatus, UploadProps, VarsType, ViewSwitcherOption, ViewSwitcherOptionObject, ViewSwitcherOptionProperties, ViewSwitcherProps, ViewSwitcherSize };
|