@open-ui-kit/core 1.5.0 → 1.6.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/README.md +19 -13
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/index.d.ts +388 -392
- package/index.esm.js +1 -1
- package/index.esm.js.map +1 -1
- package/index.umd.js +1 -1
- package/index.umd.js.map +1 -1
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { Color, TypographyVariant } from '@mui/material/styles';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, {
|
|
3
|
+
import React__default, { ComponentType, CSSProperties, ReactNode, ReactElement, ComponentProps, JSX as JSX$1, ElementType } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { BreadcrumbsProps as BreadcrumbsProps$1, TabsProps as TabsProps$1, HeaderProps as HeaderProps$1, LinkProps as LinkProps$1, LinkColorEnum as LinkColorEnum$1, LinkType as LinkType$1, CopyButtonProps as CopyButtonProps$1, TooltipProps as TooltipProps$1, SearchFieldProps as SearchFieldProps$1, IndicatorBadgeProps as IndicatorBadgeProps$1, EmptyStateProps as EmptyStateProps$1, ILegendProps as ILegendProps$1, IWidgetProps as IWidgetProps$1 } from '@/components';
|
|
6
5
|
import * as _mui_material from '@mui/material';
|
|
7
|
-
import {
|
|
8
|
-
export { Avatar, Backdrop, Box, Button, ButtonGroup, Card, CardActionArea, CardActions, CardContent, CardHeader, Checkbox, Container, Dialog, Divider, Drawer, Fab, Grid, Icon, IconButton, List, ListItem, ListItemButton, Menu, MenuProps, Dialog as Modal, DialogActions as ModalActions, DialogContent as ModalContent, DialogContentText as ModalContentText, DialogProps as ModalProps, Paper, Radio, RadioGroup, Select, Skeleton, Slider, SpeedDial, Stack, Stepper, Typography, debounce } from '@mui/material';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import * as _mui_system from '@mui/system';
|
|
6
|
+
import { AccordionProps as AccordionProps$1, AccordionSummaryProps, BoxProps, SxProps, AlertProps, BadgeProps as BadgeProps$1, TypographyProps, Theme, SvgIconProps, CSSProperties as CSSProperties$1, BreadcrumbsProps as BreadcrumbsProps$1, IconButtonProps, StackOwnProps, Popper, TextFieldProps, PopoverProps, DrawerProps, TooltipProps as TooltipProps$1, ButtonProps, MenuProps, ListItemProps, StackProps, InputProps, AppBarProps, DialogTitleProps, MenuItemProps as MenuItemProps$1, CircularProgressProps, TabsProps as TabsProps$1, TabProps, ChipProps, SwitchProps, Box, PaginationProps as PaginationProps$1 } from '@mui/material';
|
|
7
|
+
export { Avatar, Backdrop, Box, Button, ButtonGroup, Card, CardActionArea, CardActions, CardContent, CardHeader, Checkbox, Container, Dialog, Divider, Drawer, Fab, Grid, Icon, IconButton, List, ListItem, ListItemButton, Menu, MenuProps, Dialog as Modal, DialogActions as ModalActions, DialogContent as ModalContent, DialogContentText as ModalContentText, DialogProps as ModalProps, Paper, Radio, RadioGroup, Select, Skeleton, Slider, SpeedDial, Stack, Stepper, Typography, debounce, useTheme } from '@mui/material';
|
|
8
|
+
import { LinkProps as LinkProps$1, To } from 'react-router-dom';
|
|
9
|
+
import { TextFieldProps as TextFieldProps$1 } from '@mui/material/TextField';
|
|
12
10
|
import { TimelineProps } from '@mui/lab';
|
|
13
|
-
import { IconPosition as IconPosition$1, GeneralSize as GeneralSize$1, Severity as Severity$1, FlattenedSelectTreeData as FlattenedSelectTreeData$1 } from '@/common';
|
|
14
11
|
import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
|
|
15
12
|
import { DateTimePickerProps as DateTimePickerProps$1 } from '@mui/x-date-pickers/DateTimePicker';
|
|
16
13
|
import { DatePickerProps as DatePickerProps$1 } from '@mui/x-date-pickers/DatePicker';
|
|
@@ -22,16 +19,12 @@ import { StaticDateTimePickerProps } from '@mui/x-date-pickers/StaticDateTimePic
|
|
|
22
19
|
export { StaticDateTimePickerProps } from '@mui/x-date-pickers/StaticDateTimePicker';
|
|
23
20
|
import { StaticDatePickerProps } from '@mui/x-date-pickers/StaticDatePicker';
|
|
24
21
|
export { StaticDatePickerProps } from '@mui/x-date-pickers/StaticDatePicker';
|
|
25
|
-
import { AugmentedSelectNodeType as AugmentedSelectNodeType$1, SelectNodeType as SelectNodeType$1, FlattenSelectTreeArgs as FlattenSelectTreeArgs$1 } from '@/types';
|
|
26
|
-
import { LinkProps as LinkProps$2, To } from 'react-router-dom';
|
|
27
|
-
import { TooltipProps as TooltipProps$2 } from '@/components/tooltip/components/tooltip';
|
|
28
|
-
import { TextFieldProps as TextFieldProps$1 } from '@mui/material/TextField';
|
|
29
22
|
import { MRT_RowData, MRT_TableOptions, MRT_Cell, MRT_TableInstance } from 'material-react-table';
|
|
23
|
+
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
30
24
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
31
25
|
import { ContentType } from 'recharts/types/component/Tooltip';
|
|
32
26
|
import { CategoricalChartFunc } from 'recharts/types/chart/generateCategoricalChart';
|
|
33
|
-
import { TooltipProps as TooltipProps$
|
|
34
|
-
import { GradientsPalette as GradientsPalette$1 } from '@/types/palette';
|
|
27
|
+
import { TooltipProps as TooltipProps$2, XAxisProps, YAxisProps, LineProps, CartesianGridProps } from 'recharts';
|
|
35
28
|
export { StaticTimePickerProps } from '@mui/x-date-pickers/StaticTimePicker';
|
|
36
29
|
|
|
37
30
|
interface VarsType {
|
|
@@ -436,31 +429,6 @@ declare module "@mui/material/Typography" {
|
|
|
436
429
|
}
|
|
437
430
|
//# sourceMappingURL=theme.d.ts.map
|
|
438
431
|
|
|
439
|
-
type SubNavItem = TabProps & {
|
|
440
|
-
href?: string;
|
|
441
|
-
selected?: boolean;
|
|
442
|
-
};
|
|
443
|
-
interface BasePageProps {
|
|
444
|
-
children: ReactNode;
|
|
445
|
-
containerProps?: BoxProps;
|
|
446
|
-
breadcrumbs?: BreadcrumbsProps$1["items"];
|
|
447
|
-
title: ReactNode;
|
|
448
|
-
description?: ReactNode;
|
|
449
|
-
rightSideItems?: ReactNode;
|
|
450
|
-
tabsProps?: TabsProps$1;
|
|
451
|
-
subNav?: SubNavItem[];
|
|
452
|
-
useBreadcrumbs?: boolean;
|
|
453
|
-
}
|
|
454
|
-
declare const BasePage: ({ children, containerProps, breadcrumbs, title, description, rightSideItems, subNav, tabsProps, useBreadcrumbs, }: BasePageProps) => react_jsx_runtime.JSX.Element;
|
|
455
|
-
|
|
456
|
-
interface LayoutProps {
|
|
457
|
-
content?: React.ReactNode;
|
|
458
|
-
showHeader?: boolean;
|
|
459
|
-
headerProps?: HeaderProps$1;
|
|
460
|
-
showSideNav?: boolean;
|
|
461
|
-
}
|
|
462
|
-
declare const Layout: ({ showHeader, showSideNav, headerProps, content, }: LayoutProps) => react_jsx_runtime.JSX.Element;
|
|
463
|
-
|
|
464
432
|
interface AccordionProps extends AccordionProps$1 {
|
|
465
433
|
contained?: boolean;
|
|
466
434
|
size?: "medium" | "large";
|
|
@@ -473,13 +441,11 @@ interface AccordionProps extends AccordionProps$1 {
|
|
|
473
441
|
}
|
|
474
442
|
declare const Accordion: ({ contained, size, arrowPosition, useDotsStyle, title, subTitle, accordionSummaryProps, detailsContentBoxProps, children, ...props }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
475
443
|
|
|
476
|
-
declare const StyledAccordionSummary:
|
|
477
|
-
ref?: ((instance: HTMLDivElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
478
|
-
}, "className" | "style" | "classes" | "children" | "sx" | "tabIndex" | "disabled" | "slots" | "slotProps" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
|
|
444
|
+
declare const StyledAccordionSummary: ComponentType<AccordionSummaryProps & {
|
|
479
445
|
contained?: boolean;
|
|
480
446
|
arrowPosition?: "left" | "right";
|
|
481
447
|
mediumSize?: boolean;
|
|
482
|
-
}
|
|
448
|
+
}>;
|
|
483
449
|
|
|
484
450
|
declare enum ActivityTimelineStepStatus {
|
|
485
451
|
InProgress = "in-progress",
|
|
@@ -539,18 +505,257 @@ interface BadgeProps {
|
|
|
539
505
|
}
|
|
540
506
|
declare const Badge: ({ type, content, styleBadge, notificationContent, styleContent, }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
541
507
|
|
|
508
|
+
declare enum Severity {
|
|
509
|
+
LOW = "LOW",
|
|
510
|
+
MEDIUM = "MEDIUM",
|
|
511
|
+
HIGH = "HIGH",
|
|
512
|
+
CRITICAL = "CRITICAL",
|
|
513
|
+
INFORMATION = "INFORMATION"
|
|
514
|
+
}
|
|
515
|
+
type TrendStatus = "good" | "bad" | "neutral";
|
|
516
|
+
type TrendDirection = "up" | "down" | "neutral";
|
|
517
|
+
|
|
518
|
+
declare const SEVERITY_VALUE: Record<Severity, number>;
|
|
519
|
+
declare enum GeneralSize {
|
|
520
|
+
Large = "large",
|
|
521
|
+
Medium = "medium",
|
|
522
|
+
Small = "small"
|
|
523
|
+
}
|
|
524
|
+
declare enum IconPosition {
|
|
525
|
+
NoIcon = "no-icon",
|
|
526
|
+
LeftIcon = "left-icon",
|
|
527
|
+
RightIcon = "right-icon"
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
declare const EMPTY_FUNCTION: () => void;
|
|
531
|
+
declare const capitalize: (str: string) => string;
|
|
532
|
+
declare const getColorBySeverity: (severity: Severity, theme: Theme) => string;
|
|
533
|
+
declare const normalizeSeverity: (severity: unknown) => Severity;
|
|
534
|
+
declare const sortBySeverity: (a?: Severity, b?: Severity) => 0 | 1 | -1;
|
|
535
|
+
|
|
536
|
+
declare const useDebouncedValue: (value: any, delay: number) => any;
|
|
537
|
+
//# sourceMappingURL=timing.d.ts.map
|
|
538
|
+
|
|
539
|
+
type Gradient = string;
|
|
540
|
+
interface GradientsPalette {
|
|
541
|
+
illustrations: {
|
|
542
|
+
blue: Gradient;
|
|
543
|
+
rainbow: Gradient;
|
|
544
|
+
purple: Gradient;
|
|
545
|
+
green: Gradient;
|
|
546
|
+
lightBlue: Gradient;
|
|
547
|
+
pink: Gradient;
|
|
548
|
+
};
|
|
549
|
+
primary: {
|
|
550
|
+
default: Gradient;
|
|
551
|
+
pressed: Gradient;
|
|
552
|
+
hover: Gradient;
|
|
553
|
+
};
|
|
554
|
+
secondary: {
|
|
555
|
+
default: Gradient;
|
|
556
|
+
pressed: Gradient;
|
|
557
|
+
hover: Gradient;
|
|
558
|
+
};
|
|
559
|
+
red: {
|
|
560
|
+
default: Gradient;
|
|
561
|
+
pressed: Gradient;
|
|
562
|
+
hover: Gradient;
|
|
563
|
+
};
|
|
564
|
+
background: {
|
|
565
|
+
light: Gradient;
|
|
566
|
+
dark: Gradient;
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
interface FlattenSelectTreeArgs {
|
|
571
|
+
rootNode: AugmentedSelectNodeType[];
|
|
572
|
+
nestLevel?: number;
|
|
573
|
+
searchText?: string;
|
|
574
|
+
}
|
|
575
|
+
interface SelectNodeType<T = unknown> {
|
|
576
|
+
value: string | number;
|
|
577
|
+
childNodes?: Array<SelectNodeType<T>>;
|
|
578
|
+
valueFormatter?: (value: string | number) => string;
|
|
579
|
+
isSelectable: boolean;
|
|
580
|
+
icon?: React.ElementType<SvgIconProps> | null;
|
|
581
|
+
isSelected?: boolean;
|
|
582
|
+
/**
|
|
583
|
+
* An optional key that uniquely identifies the node within the tree, in case `value` is not a unique identifier.
|
|
584
|
+
* Only used as a key for the ListItem component, and not for any other purpose.
|
|
585
|
+
*/
|
|
586
|
+
nodeKey?: string;
|
|
587
|
+
/**
|
|
588
|
+
* An optional field for any data you want to associate with the node.
|
|
589
|
+
* This can be of any type and is typically used for storing custom additional data relevant to the node.
|
|
590
|
+
*/
|
|
591
|
+
linkedData?: T;
|
|
592
|
+
}
|
|
593
|
+
interface AugmentedSelectNodeType<T = unknown> extends SelectNodeType<T> {
|
|
594
|
+
childNodes?: Array<AugmentedSelectNodeType<T>>;
|
|
595
|
+
/**
|
|
596
|
+
* A flag indicating whether the node is expanded (shows its children).
|
|
597
|
+
*/
|
|
598
|
+
isExpanded?: boolean;
|
|
599
|
+
/**
|
|
600
|
+
* The nesting level of the node in the tree, used internally for rendering purposes.
|
|
601
|
+
*/
|
|
602
|
+
nestLevel?: number;
|
|
603
|
+
/**
|
|
604
|
+
* A reference to the parent node, used internally for tree traversal.
|
|
605
|
+
*/
|
|
606
|
+
parentNode?: AugmentedSelectNodeType<T> | null;
|
|
607
|
+
/**
|
|
608
|
+
* The count of selected leaf nodes within this node's subtree.
|
|
609
|
+
*/
|
|
610
|
+
selectedLeavesCount?: number;
|
|
611
|
+
/**
|
|
612
|
+
* The count of selectable leaf nodes within this node's subtree.
|
|
613
|
+
*/
|
|
614
|
+
selectableLeavesCount?: number;
|
|
615
|
+
/**
|
|
616
|
+
* The total number of leaf nodes within this node's subtree.
|
|
617
|
+
*/
|
|
618
|
+
leavesCount?: number;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
declare const flattenSelectTreeWithoutSearch: (rootNode: AugmentedSelectNodeType[], nestLevel?: number) => Array<AugmentedSelectNodeType>;
|
|
622
|
+
/**
|
|
623
|
+
* Builds a string representation of the node's value using its formatter function, if available.
|
|
624
|
+
*
|
|
625
|
+
* @param selectNode - The node to build the value for.
|
|
626
|
+
* @returns A string representation of the node's value.
|
|
627
|
+
*/
|
|
628
|
+
declare const formatNodeValue: (selectNode: AugmentedSelectNodeType) => string;
|
|
629
|
+
/**
|
|
630
|
+
* Collects nodes from a given node up to the first node already included in the flattened list
|
|
631
|
+
* and pushes them in reverse order.
|
|
632
|
+
*
|
|
633
|
+
* @param pushNode - The starting node to begin pushing.
|
|
634
|
+
* @param flattenedTree - The list to push nodes into.
|
|
635
|
+
* @param flattenedSet - A set of already included nodes.
|
|
636
|
+
*/
|
|
637
|
+
declare const upwardsPush: (pushNode: AugmentedSelectNodeType | null, flattenedTree: AugmentedSelectNodeType[], flattenedSet: Set<AugmentedSelectNodeType>) => void;
|
|
638
|
+
/**
|
|
639
|
+
* Flattens a tree structure into a list of nodes while filtering nodes based on the search text.
|
|
640
|
+
* Ensures that parent nodes of matching nodes are also included if they are expanded.
|
|
641
|
+
*
|
|
642
|
+
* @param rootNode - The root node(s) of the tree to flatten.
|
|
643
|
+
* @param nestLevel - The starting nesting level for the nodes (default is 0).
|
|
644
|
+
* @param searchText - Text to filter nodes by.
|
|
645
|
+
* @returns A flattened list of nodes that match the search text.
|
|
646
|
+
*/
|
|
647
|
+
declare const flattenSelectTreeWithSearch: ({ rootNode, nestLevel, searchText, }: FlattenSelectTreeArgs) => Array<AugmentedSelectNodeType>;
|
|
648
|
+
/**
|
|
649
|
+
* Flattens a tree structure into a list of nodes.
|
|
650
|
+
* If `searchText` is provided, filters nodes based on the search text.
|
|
651
|
+
*
|
|
652
|
+
* @param rootNode - The root node(s) of the tree to flatten.
|
|
653
|
+
* @param nestLevel - The starting nesting level for the nodes (default is 0).
|
|
654
|
+
* @param searchText - Text to filter nodes by (default is an empty string).
|
|
655
|
+
* @returns A flattened list of nodes.
|
|
656
|
+
*/
|
|
657
|
+
interface FlattenedSelectTreeData {
|
|
658
|
+
flattenedSelectTreeWithSearch: Array<AugmentedSelectNodeType>;
|
|
659
|
+
flattenedSelectTreeWithoutSearch: Array<AugmentedSelectNodeType>;
|
|
660
|
+
}
|
|
661
|
+
declare const flattenSelectTree: ({ rootNode, nestLevel, searchText, }: FlattenSelectTreeArgs) => FlattenedSelectTreeData;
|
|
662
|
+
declare const augmentTreeData: (rootNode: AugmentedSelectNodeType | AugmentedSelectNodeType[]) => void;
|
|
663
|
+
/**
|
|
664
|
+
* Determines if a given node is a leaf node.
|
|
665
|
+
* A leaf node has no child nodes.
|
|
666
|
+
*
|
|
667
|
+
* @param selectNode - The node to check.
|
|
668
|
+
* @returns `true` if the node is a leaf, `false` otherwise.
|
|
669
|
+
*/
|
|
670
|
+
declare const isLeaf: (selectNode: AugmentedSelectNodeType) => boolean;
|
|
671
|
+
/**
|
|
672
|
+
* Calculates the total number of leaves and selected leaves across the tree.
|
|
673
|
+
*
|
|
674
|
+
* @param selectTree - The list of nodes to calculate.
|
|
675
|
+
* @returns An object containing `totalSelectedLeavesCount` and `totalLeavesCount`, with -1, and 0 respectively if invalid.
|
|
676
|
+
*/
|
|
677
|
+
declare const getLeafCounts: (selectTree: AugmentedSelectNodeType[]) => {
|
|
678
|
+
totalSelectedLeavesCount: number;
|
|
679
|
+
totalSelectableLeavesCount: number;
|
|
680
|
+
totalLeavesCount: number;
|
|
681
|
+
};
|
|
682
|
+
/**
|
|
683
|
+
* Finds and returns all selected leaf nodes from a given tree.
|
|
684
|
+
*
|
|
685
|
+
* @param rootNode - The root node(s) of the tree to search.
|
|
686
|
+
* @returns A list of selected leaf nodes.
|
|
687
|
+
*/
|
|
688
|
+
declare const getAllSelectedLeaves: (rootNode: AugmentedSelectNodeType | AugmentedSelectNodeType[]) => Array<AugmentedSelectNodeType>;
|
|
689
|
+
/**
|
|
690
|
+
* Finds and returns all selected parent nodes from a given tree.
|
|
691
|
+
*
|
|
692
|
+
* @param selectTree - The list of nodes to filter.
|
|
693
|
+
* @returns A list of selected parent nodes.
|
|
694
|
+
*/
|
|
695
|
+
declare const getAllSelectedParents: (selectTree: AugmentedSelectNodeType[]) => Array<AugmentedSelectNodeType>;
|
|
696
|
+
declare const setSelectedMainSkillCategories: (fullflattenedTreeOptions: AugmentedSelectNodeType[]) => AugmentedSelectNodeType[];
|
|
697
|
+
declare const deepCopyTree: (rootNode?: AugmentedSelectNodeType[]) => AugmentedSelectNodeType[];
|
|
698
|
+
declare const getChildrenOfTopLevelNode: (topLevelNode: AugmentedSelectNodeType) => AugmentedSelectNodeType[];
|
|
699
|
+
declare const mergeNodeChildrenValueToText: (children: AugmentedSelectNodeType[]) => string;
|
|
700
|
+
|
|
701
|
+
declare const ellipsisStyle: CSSProperties;
|
|
702
|
+
declare const checkboxStyle: {
|
|
703
|
+
padding: number;
|
|
704
|
+
marginLeft: number;
|
|
705
|
+
borderRadius: number;
|
|
706
|
+
"& + *": {
|
|
707
|
+
marginLeft: number;
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
declare const selectTreeExample: Array<AugmentedSelectNodeType>;
|
|
712
|
+
declare const baseSelectTree: Array<AugmentedSelectNodeType>;
|
|
713
|
+
declare const singleSelectTree: AugmentedSelectNodeType[];
|
|
714
|
+
|
|
715
|
+
type LinkVariants = "body1" | "body2" | "caption";
|
|
716
|
+
interface LinkColorStatus {
|
|
717
|
+
disabled: boolean;
|
|
718
|
+
pressed: boolean;
|
|
719
|
+
hovered: boolean;
|
|
720
|
+
}
|
|
721
|
+
declare enum LinkType {
|
|
722
|
+
UnderlineRegular = "underlineRegular",
|
|
723
|
+
StandaloneRegular = "standaloneRegular",
|
|
724
|
+
StandaloneBold = "standaloneBold"
|
|
725
|
+
}
|
|
726
|
+
declare enum LinkColorEnum {
|
|
727
|
+
Primary = "primary",
|
|
728
|
+
Secondary = "secondary"
|
|
729
|
+
}
|
|
730
|
+
interface LinkProps extends Omit<LinkProps$1, "to"> {
|
|
731
|
+
Icon?: React.ElementType<SvgIconProps>;
|
|
732
|
+
color?: LinkColorEnum;
|
|
733
|
+
customizeColor?: ({ disabled, pressed, hovered }: LinkColorStatus) => string;
|
|
734
|
+
disabled?: boolean;
|
|
735
|
+
ellipsis?: boolean;
|
|
736
|
+
fontStyle?: CSSProperties$1;
|
|
737
|
+
href?: To;
|
|
738
|
+
iconPosition?: IconPosition;
|
|
739
|
+
linkType?: LinkType;
|
|
740
|
+
openInNewTab?: boolean;
|
|
741
|
+
size?: GeneralSize;
|
|
742
|
+
sx?: CSSProperties$1;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
declare const Link$1: ({ Icon, children, color, customizeColor, disabled, ellipsis, fontStyle, href, iconPosition, linkType, openInNewTab, size, style, ...props }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
746
|
+
|
|
542
747
|
interface BreadcrumbItem {
|
|
543
|
-
Icon?: LinkProps
|
|
748
|
+
Icon?: LinkProps["Icon"];
|
|
544
749
|
text: string;
|
|
545
750
|
link?: string;
|
|
546
|
-
iconPosition?: IconPosition
|
|
751
|
+
iconPosition?: IconPosition;
|
|
547
752
|
}
|
|
548
|
-
interface BreadcrumbsProps extends BreadcrumbsProps$
|
|
549
|
-
iconPosition?: IconPosition
|
|
753
|
+
interface BreadcrumbsProps extends BreadcrumbsProps$1 {
|
|
754
|
+
iconPosition?: IconPosition;
|
|
550
755
|
items: BreadcrumbItem[];
|
|
551
|
-
color?: LinkColorEnum
|
|
552
|
-
type?: LinkType
|
|
553
|
-
size?: GeneralSize
|
|
756
|
+
color?: LinkColorEnum;
|
|
757
|
+
type?: LinkType;
|
|
758
|
+
size?: GeneralSize;
|
|
554
759
|
maximumNumberOfVisibleBreadcrumbs?: number;
|
|
555
760
|
}
|
|
556
761
|
declare const Breadcrumbs: ({ iconPosition, items, size, sx, color, type, maximumNumberOfVisibleBreadcrumbs, }: BreadcrumbsProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -567,13 +772,6 @@ interface CardSubheaderProps extends TypographyProps {
|
|
|
567
772
|
declare const CardSubheader: ({ children, ...props }: CardSubheaderProps) => react_jsx_runtime.JSX.Element;
|
|
568
773
|
//# sourceMappingURL=card-subheader.d.ts.map
|
|
569
774
|
|
|
570
|
-
interface CodeBlockProps extends Omit<SyntaxHighlighterProps, "children"> {
|
|
571
|
-
containerProps?: StackOwnProps;
|
|
572
|
-
text: string;
|
|
573
|
-
copyButtonProps?: Omit<CopyButtonProps$1, "text">;
|
|
574
|
-
}
|
|
575
|
-
declare const CodeBlock: (props: CodeBlockProps) => react_jsx_runtime.JSX.Element;
|
|
576
|
-
|
|
577
775
|
interface CopyButtonStylesProps {
|
|
578
776
|
position?: CopyButtonPosition;
|
|
579
777
|
theme?: Theme;
|
|
@@ -590,6 +788,13 @@ interface CopyButtonProps extends IconButtonProps, CopyButtonStylesProps {
|
|
|
590
788
|
}
|
|
591
789
|
declare const CopyButton: ({ text, position, top, bottom, left, right, onCopy, ...props }: CopyButtonProps) => react_jsx_runtime.JSX.Element;
|
|
592
790
|
|
|
791
|
+
interface CodeBlockProps extends Omit<SyntaxHighlighterProps, "children"> {
|
|
792
|
+
containerProps?: StackOwnProps;
|
|
793
|
+
text: string;
|
|
794
|
+
copyButtonProps?: Omit<CopyButtonProps, "text">;
|
|
795
|
+
}
|
|
796
|
+
declare const CodeBlock: (props: CodeBlockProps) => react_jsx_runtime.JSX.Element;
|
|
797
|
+
|
|
593
798
|
interface DateTimePickerProps extends DateTimePickerProps$1<Dayjs> {
|
|
594
799
|
label?: string;
|
|
595
800
|
textFieldStyles?: SxProps;
|
|
@@ -631,7 +836,7 @@ interface DrawerShellHeaderProps {
|
|
|
631
836
|
titleText?: string;
|
|
632
837
|
titleNode?: React.ReactNode;
|
|
633
838
|
titleAction?: JSX.Element;
|
|
634
|
-
severity?: Severity
|
|
839
|
+
severity?: Severity;
|
|
635
840
|
copyURL: string;
|
|
636
841
|
customDividerStyle?: CSSProperties;
|
|
637
842
|
isFavorite?: boolean;
|
|
@@ -667,13 +872,23 @@ interface DrawerShellProps extends Omit<DrawerProps, "onClose">, DrawerShellHead
|
|
|
667
872
|
}
|
|
668
873
|
declare const DrawerShell: ({ 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 }: DrawerShellProps) => react_jsx_runtime.JSX.Element;
|
|
669
874
|
|
|
875
|
+
declare enum TooltipSize {
|
|
876
|
+
Medium = "medium",
|
|
877
|
+
Large = "large"
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
interface TooltipProps extends TooltipProps$1 {
|
|
881
|
+
size?: TooltipSize;
|
|
882
|
+
}
|
|
883
|
+
declare const Tooltip: ({ size, children, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
884
|
+
|
|
670
885
|
type ValueType = string | number;
|
|
671
886
|
interface DropdownOption<T extends ValueType> {
|
|
672
887
|
label: string;
|
|
673
888
|
value: T;
|
|
674
889
|
icon?: JSX.Element;
|
|
675
890
|
customElement?: JSX.Element;
|
|
676
|
-
menuItemTooltipProps?: Partial<TooltipProps
|
|
891
|
+
menuItemTooltipProps?: Partial<TooltipProps>;
|
|
677
892
|
}
|
|
678
893
|
interface DropdownProps<T extends ValueType> {
|
|
679
894
|
onChange: (selected: DropdownOption<T>) => void;
|
|
@@ -687,7 +902,7 @@ interface DropdownProps<T extends ValueType> {
|
|
|
687
902
|
endIcon?: JSX.Element;
|
|
688
903
|
showSelectedOption?: boolean;
|
|
689
904
|
fixedWidth?: boolean;
|
|
690
|
-
buttonTooltipProps?: Partial<TooltipProps
|
|
905
|
+
buttonTooltipProps?: Partial<TooltipProps>;
|
|
691
906
|
}
|
|
692
907
|
declare const Dropdown: <T extends ValueType>({ onChange, options, selected, buttonProps, isActive, label, menuProps, startIcon, endIcon, showSelectedOption, fixedWidth, buttonTooltipProps, }: DropdownProps<T>) => JSX.Element;
|
|
693
908
|
|
|
@@ -698,7 +913,7 @@ interface DropdownAutocompleteTreeListboxProps {
|
|
|
698
913
|
onSelectAllChange?: (isSelected: boolean) => void;
|
|
699
914
|
searchPlaceholder?: string;
|
|
700
915
|
searchText?: string;
|
|
701
|
-
selectAllNode: AugmentedSelectNodeType
|
|
916
|
+
selectAllNode: AugmentedSelectNodeType;
|
|
702
917
|
setSearchText?: (text: string) => void;
|
|
703
918
|
virtualizationOverscanPx?: number;
|
|
704
919
|
}
|
|
@@ -707,29 +922,29 @@ declare const DropdownAutocompleteTreeListbox: ({ children, isIconAllowed, isSea
|
|
|
707
922
|
interface UseDropdownAutocompleteTreeProps {
|
|
708
923
|
parentSelectOnly?: boolean;
|
|
709
924
|
selectAllIcon?: React.ElementType<SvgIconProps> | null;
|
|
710
|
-
treeData: SelectNodeType
|
|
925
|
+
treeData: SelectNodeType[];
|
|
711
926
|
}
|
|
712
927
|
declare const useDropdownAutocompleteTree: ({ parentSelectOnly, selectAllIcon: SelectAllIcon, treeData, }: UseDropdownAutocompleteTreeProps) => {
|
|
713
|
-
flattenedTreeOptions: FlattenedSelectTreeData
|
|
928
|
+
flattenedTreeOptions: FlattenedSelectTreeData;
|
|
714
929
|
onSelectAllChange: (isSelected: boolean) => void;
|
|
715
930
|
searchText: string;
|
|
716
931
|
searchTextDebounced: any;
|
|
717
|
-
selectAllNode: AugmentedSelectNodeType
|
|
718
|
-
selectedValues: SelectNodeType
|
|
932
|
+
selectAllNode: AugmentedSelectNodeType<unknown>;
|
|
933
|
+
selectedValues: SelectNodeType<unknown>[];
|
|
719
934
|
setSearchText: React$1.Dispatch<React$1.SetStateAction<string>>;
|
|
720
|
-
setSelectedValues: React$1.Dispatch<React$1.SetStateAction<SelectNodeType
|
|
935
|
+
setSelectedValues: React$1.Dispatch<React$1.SetStateAction<SelectNodeType<unknown>[]>>;
|
|
721
936
|
toggleExpand: ({ selectNode, isExpanded, isRecursive, }: {
|
|
722
|
-
selectNode: AugmentedSelectNodeType
|
|
937
|
+
selectNode: AugmentedSelectNodeType | AugmentedSelectNodeType[];
|
|
723
938
|
isExpanded?: boolean | null;
|
|
724
939
|
isRecursive?: boolean;
|
|
725
940
|
}) => void;
|
|
726
|
-
updateCheckbox: (selectNode: AugmentedSelectNodeType
|
|
941
|
+
updateCheckbox: (selectNode: AugmentedSelectNodeType | AugmentedSelectNodeType[], isSelected: boolean) => void;
|
|
727
942
|
};
|
|
728
943
|
|
|
729
944
|
interface DropdownAutocompleteTreeProps {
|
|
730
945
|
buttonContent: ReactNode;
|
|
731
946
|
buttonSize?: "medium" | "large";
|
|
732
|
-
flattenedTreeOptions: AugmentedSelectNodeType
|
|
947
|
+
flattenedTreeOptions: AugmentedSelectNodeType[];
|
|
733
948
|
id?: string;
|
|
734
949
|
isIconAllowed?: boolean;
|
|
735
950
|
isSearchFieldEnabled?: boolean;
|
|
@@ -737,12 +952,12 @@ interface DropdownAutocompleteTreeProps {
|
|
|
737
952
|
parentSelectOnly?: boolean;
|
|
738
953
|
searchText: string;
|
|
739
954
|
selectAllIcon?: React.ElementType<SvgIconProps>;
|
|
740
|
-
selectAllNode: AugmentedSelectNodeType
|
|
955
|
+
selectAllNode: AugmentedSelectNodeType;
|
|
741
956
|
setSearchText: (text: string) => void;
|
|
742
957
|
toggleExpand: (args: {
|
|
743
|
-
selectNode: AugmentedSelectNodeType
|
|
958
|
+
selectNode: AugmentedSelectNodeType;
|
|
744
959
|
}) => void;
|
|
745
|
-
updateCheckbox: (selectNode: AugmentedSelectNodeType
|
|
960
|
+
updateCheckbox: (selectNode: AugmentedSelectNodeType, isSelected: boolean) => void;
|
|
746
961
|
popOverPaperSx?: SxProps;
|
|
747
962
|
buttonProps?: ButtonProps;
|
|
748
963
|
}
|
|
@@ -785,7 +1000,7 @@ type Direction = "row" | "column";
|
|
|
785
1000
|
interface EmptyStateProps {
|
|
786
1001
|
variant?: Variant;
|
|
787
1002
|
direction?: Direction;
|
|
788
|
-
size?: GeneralSize
|
|
1003
|
+
size?: GeneralSize;
|
|
789
1004
|
title?: string;
|
|
790
1005
|
description?: string;
|
|
791
1006
|
actionCallback?: () => void;
|
|
@@ -798,7 +1013,7 @@ declare const EmptyState: ({ variant, direction, size, title, description, actio
|
|
|
798
1013
|
type FavoriteButtonProps = {
|
|
799
1014
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
800
1015
|
isChecked?: boolean;
|
|
801
|
-
tooltipProps?: Partial<TooltipProps
|
|
1016
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
802
1017
|
buttonProps?: ButtonProps;
|
|
803
1018
|
withBackground?: boolean;
|
|
804
1019
|
};
|
|
@@ -808,10 +1023,18 @@ interface FooterProps {
|
|
|
808
1023
|
productNode?: React__default.ReactNode;
|
|
809
1024
|
productName: string;
|
|
810
1025
|
productLink?: string;
|
|
811
|
-
links?: LinkProps
|
|
1026
|
+
links?: LinkProps[];
|
|
812
1027
|
}
|
|
813
1028
|
declare const Footer: React__default.FC<FooterProps>;
|
|
814
1029
|
|
|
1030
|
+
interface SearchFieldProps extends Omit<TextFieldProps$1, "inputProps"> {
|
|
1031
|
+
inputProps?: InputProps;
|
|
1032
|
+
onChangeCallback?: (value: string) => void;
|
|
1033
|
+
onClear?: () => void;
|
|
1034
|
+
extendEndAdornment?: React__default.JSX.Element;
|
|
1035
|
+
}
|
|
1036
|
+
declare const SearchField: ({ inputProps, slotProps, onChangeCallback, extendEndAdornment, onClear, ...props }: SearchFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1037
|
+
|
|
815
1038
|
interface HeaderAction {
|
|
816
1039
|
id: string;
|
|
817
1040
|
tooltip?: string;
|
|
@@ -835,7 +1058,7 @@ interface HeaderProps {
|
|
|
835
1058
|
* Configuration object for the search field.
|
|
836
1059
|
* If undefined, the search field will not be rendered.
|
|
837
1060
|
*/
|
|
838
|
-
searchProps?: SearchFieldProps
|
|
1061
|
+
searchProps?: SearchFieldProps;
|
|
839
1062
|
/**
|
|
840
1063
|
* A custom search field component to override the default search field.
|
|
841
1064
|
* If provided, this will be used instead of the default searchProps.
|
|
@@ -870,66 +1093,34 @@ interface HeaderProps {
|
|
|
870
1093
|
useDivider?: boolean;
|
|
871
1094
|
}
|
|
872
1095
|
|
|
873
|
-
declare const Header: ({ logo, title, searchProps, actions, userSection, position, elevation, useDivider, customSearchNode, sx, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
874
|
-
|
|
875
|
-
interface IndicatorBadgeValueProps {
|
|
876
|
-
color: string;
|
|
877
|
-
isActive?: boolean;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
interface IndicatorBadgeProps extends Pick<IndicatorBadgeValueProps, "color"> {
|
|
881
|
-
value: 0 | 1 | 2 | 3 | 4;
|
|
882
|
-
}
|
|
883
|
-
declare const IndicatorBadge: ({ color, value, }: IndicatorBadgeProps) => JSX.Element;
|
|
884
|
-
|
|
885
|
-
interface ILegendProps<T extends string> {
|
|
886
|
-
headers: T[];
|
|
887
|
-
rows: TRow<T>[];
|
|
888
|
-
isHorizontal?: boolean;
|
|
889
|
-
}
|
|
890
|
-
interface TRow<T extends string> {
|
|
891
|
-
color?: string | number;
|
|
892
|
-
icon?: React.ReactNode;
|
|
893
|
-
onClick?: ({ color, icon, values }: TRow<T>) => void;
|
|
894
|
-
values: {
|
|
895
|
-
[K in T]: string | number | JSX$1.Element;
|
|
896
|
-
};
|
|
897
|
-
tooltip?: React.ReactNode;
|
|
898
|
-
tooltipProps?: Partial<TooltipProps
|
|
899
|
-
}
|
|
900
|
-
declare const Legend$1: <T extends string>({ headers, rows, isHorizontal, }: ILegendProps<T>) => react_jsx_runtime.JSX.Element;
|
|
901
|
-
|
|
902
|
-
type LinkVariants = "body1" | "body2" | "caption";
|
|
903
|
-
interface LinkColorStatus {
|
|
904
|
-
disabled: boolean;
|
|
905
|
-
pressed: boolean;
|
|
906
|
-
hovered: boolean;
|
|
907
|
-
}
|
|
908
|
-
declare enum LinkType {
|
|
909
|
-
UnderlineRegular = "underlineRegular",
|
|
910
|
-
StandaloneRegular = "standaloneRegular",
|
|
911
|
-
StandaloneBold = "standaloneBold"
|
|
912
|
-
}
|
|
913
|
-
declare enum LinkColorEnum {
|
|
914
|
-
Primary = "primary",
|
|
915
|
-
Secondary = "secondary"
|
|
916
|
-
}
|
|
917
|
-
interface LinkProps extends Omit<LinkProps$2, "to"> {
|
|
918
|
-
Icon?: React.ElementType<SvgIconProps>;
|
|
919
|
-
color?: LinkColorEnum;
|
|
920
|
-
customizeColor?: ({ disabled, pressed, hovered }: LinkColorStatus) => string;
|
|
921
|
-
disabled?: boolean;
|
|
922
|
-
ellipsis?: boolean;
|
|
923
|
-
fontStyle?: CSSProperties$1;
|
|
924
|
-
href?: To;
|
|
925
|
-
iconPosition?: IconPosition$1;
|
|
926
|
-
linkType?: LinkType;
|
|
927
|
-
openInNewTab?: boolean;
|
|
928
|
-
size?: GeneralSize$1;
|
|
929
|
-
sx?: CSSProperties$1;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
declare const Link$1: ({ Icon, children, color, customizeColor, disabled, ellipsis, fontStyle, href, iconPosition, linkType, openInNewTab, size, style, ...props }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
1096
|
+
declare const Header: ({ logo, title, searchProps, actions, userSection, position, elevation, useDivider, customSearchNode, sx, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1097
|
+
|
|
1098
|
+
interface IndicatorBadgeValueProps {
|
|
1099
|
+
color: string;
|
|
1100
|
+
isActive?: boolean;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
interface IndicatorBadgeProps extends Pick<IndicatorBadgeValueProps, "color"> {
|
|
1104
|
+
value: 0 | 1 | 2 | 3 | 4;
|
|
1105
|
+
}
|
|
1106
|
+
declare const IndicatorBadge: ({ color, value, }: IndicatorBadgeProps) => JSX.Element;
|
|
1107
|
+
|
|
1108
|
+
interface ILegendProps<T extends string> {
|
|
1109
|
+
headers: T[];
|
|
1110
|
+
rows: TRow<T>[];
|
|
1111
|
+
isHorizontal?: boolean;
|
|
1112
|
+
}
|
|
1113
|
+
interface TRow<T extends string> {
|
|
1114
|
+
color?: string | number;
|
|
1115
|
+
icon?: React.ReactNode;
|
|
1116
|
+
onClick?: ({ color, icon, values }: TRow<T>) => void;
|
|
1117
|
+
values: {
|
|
1118
|
+
[K in T]: string | number | JSX$1.Element;
|
|
1119
|
+
};
|
|
1120
|
+
tooltip?: React.ReactNode;
|
|
1121
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
1122
|
+
}
|
|
1123
|
+
declare const Legend$1: <T extends string>({ headers, rows, isHorizontal, }: ILegendProps<T>) => react_jsx_runtime.JSX.Element;
|
|
933
1124
|
|
|
934
1125
|
declare const LoadingErrorState: () => JSX.Element;
|
|
935
1126
|
|
|
@@ -938,15 +1129,15 @@ declare const ModalTitle: ({ children, ...props }: DialogTitleProps) => react_js
|
|
|
938
1129
|
declare const ModalSubtitle: ({ children, ...props }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
939
1130
|
|
|
940
1131
|
interface MenuItemProps extends MenuItemProps$1 {
|
|
941
|
-
href?: LinkProps
|
|
1132
|
+
href?: LinkProps["href"];
|
|
942
1133
|
openInNewTab?: boolean;
|
|
943
1134
|
ellipsis?: boolean;
|
|
944
|
-
iconPosition?: LinkProps
|
|
945
|
-
Icon?: LinkProps
|
|
1135
|
+
iconPosition?: LinkProps["iconPosition"];
|
|
1136
|
+
Icon?: LinkProps["Icon"];
|
|
946
1137
|
}
|
|
947
1138
|
declare const MenuItem: ({ children, disabled, ellipsis, href, Icon, iconPosition, openInNewTab, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
948
1139
|
|
|
949
|
-
interface OverflowTooltipProps extends Omit<TooltipProps
|
|
1140
|
+
interface OverflowTooltipProps extends Omit<TooltipProps, "title" | "children"> {
|
|
950
1141
|
value: React.ReactNode;
|
|
951
1142
|
someLongText: React.ReactNode;
|
|
952
1143
|
ellipsisDirection?: "start" | "end";
|
|
@@ -957,24 +1148,16 @@ declare const OverflowTooltip: ({ value, someLongText, ellipsisDirection, styleT
|
|
|
957
1148
|
type PathDisplayProps = {
|
|
958
1149
|
path: string;
|
|
959
1150
|
numberOfLevels?: number;
|
|
960
|
-
tooltipProps?: TooltipProps
|
|
1151
|
+
tooltipProps?: TooltipProps;
|
|
961
1152
|
TypographyProps?: TypographyProps;
|
|
962
1153
|
};
|
|
963
1154
|
declare const PathDisplay: ({ path, numberOfLevels, tooltipProps, TypographyProps, }: PathDisplayProps) => react_jsx_runtime.JSX.Element | null;
|
|
964
1155
|
|
|
965
|
-
interface SearchFieldProps extends Omit<TextFieldProps$1, "inputProps"> {
|
|
966
|
-
inputProps?: InputProps;
|
|
967
|
-
onChangeCallback?: (value: string) => void;
|
|
968
|
-
onClear?: () => void;
|
|
969
|
-
extendEndAdornment?: React__default.JSX.Element;
|
|
970
|
-
}
|
|
971
|
-
declare const SearchField: ({ inputProps, slotProps, onChangeCallback, extendEndAdornment, onClear, ...props }: SearchFieldProps) => react_jsx_runtime.JSX.Element;
|
|
972
|
-
|
|
973
1156
|
interface SeverityBarProps {
|
|
974
1157
|
/**
|
|
975
1158
|
* Severity of the bar
|
|
976
1159
|
*/
|
|
977
|
-
severity: Severity
|
|
1160
|
+
severity: Severity;
|
|
978
1161
|
/**
|
|
979
1162
|
* Styling for the bar
|
|
980
1163
|
*/
|
|
@@ -986,7 +1169,7 @@ interface SeverityBadgeProps {
|
|
|
986
1169
|
/**
|
|
987
1170
|
* Set a type if you want to display the badge in severity colors.
|
|
988
1171
|
*/
|
|
989
|
-
severity?: Severity
|
|
1172
|
+
severity?: Severity;
|
|
990
1173
|
/**
|
|
991
1174
|
* Set a value if you want to display the badge in score system colors.
|
|
992
1175
|
* `severity` param overrides this behaviour.
|
|
@@ -997,7 +1180,7 @@ interface SeverityBadgeProps {
|
|
|
997
1180
|
*/
|
|
998
1181
|
scoreSystem?: SeverityBadgeScoreSystemItem[];
|
|
999
1182
|
}
|
|
1000
|
-
interface SeverityBadgeConfiguration extends IndicatorBadgeProps
|
|
1183
|
+
interface SeverityBadgeConfiguration extends IndicatorBadgeProps {
|
|
1001
1184
|
label?: string;
|
|
1002
1185
|
}
|
|
1003
1186
|
interface SeverityBadgeScoreSystemItem {
|
|
@@ -1104,7 +1287,7 @@ interface TableProps<TData extends MRT_RowData> extends MRT_TableOptions<TData>
|
|
|
1104
1287
|
initialPageIndex?: number;
|
|
1105
1288
|
initialPageSize?: number;
|
|
1106
1289
|
rowsPerPageOptions?: number[];
|
|
1107
|
-
emptyStateProps?: EmptyStateProps
|
|
1290
|
+
emptyStateProps?: EmptyStateProps;
|
|
1108
1291
|
onRowLinkClick?: (rowData: RowData<TData>) => unknown;
|
|
1109
1292
|
}
|
|
1110
1293
|
type AtomicTypes = string | number | boolean | null | undefined;
|
|
@@ -1139,7 +1322,7 @@ declare const CreateTableInstance: <TData extends MRT_RowData>({ columns, data,
|
|
|
1139
1322
|
declare const Table$1: <TData extends MRT_RowData>({ columns, data, initialState, isLoading, manualPagination, manualSorting, densityCompact, enableExpandAll, enableExpanding, titleExtension, ...props }: TableProps<TData>) => react_jsx_runtime.JSX.Element;
|
|
1140
1323
|
|
|
1141
1324
|
type TabsType = "main" | "subTab" | "toggleTab";
|
|
1142
|
-
interface TabsProps extends TabsProps$
|
|
1325
|
+
interface TabsProps extends TabsProps$1 {
|
|
1143
1326
|
type?: TabsType;
|
|
1144
1327
|
boxProps?: BoxProps;
|
|
1145
1328
|
}
|
|
@@ -1189,7 +1372,7 @@ declare enum TagStatus {
|
|
|
1189
1372
|
interface TagProps extends Omit<ChipProps, "size" | "children" | "label" | "color"> {
|
|
1190
1373
|
color?: TagBackgroundColorVariants;
|
|
1191
1374
|
children: React.ReactNode;
|
|
1192
|
-
size?: GeneralSize
|
|
1375
|
+
size?: GeneralSize;
|
|
1193
1376
|
status?: TagStatus;
|
|
1194
1377
|
}
|
|
1195
1378
|
/**
|
|
@@ -1295,29 +1478,29 @@ declare const getTagStyle: ({ theme, size, statusStyle, clickable, color, hasAva
|
|
|
1295
1478
|
color: TagBackgroundColorVariants;
|
|
1296
1479
|
hasAvatar: boolean;
|
|
1297
1480
|
theme: Theme;
|
|
1298
|
-
size?: GeneralSize
|
|
1481
|
+
size?: GeneralSize;
|
|
1299
1482
|
statusStyle?: TagStatusStyle;
|
|
1300
1483
|
}) => SxProps<Theme>;
|
|
1301
1484
|
|
|
1302
1485
|
interface SkillTagsProps {
|
|
1303
|
-
customizeLabel?: (node: AugmentedSelectNodeType
|
|
1304
|
-
customizeTooltip?: (node: AugmentedSelectNodeType
|
|
1305
|
-
handleDelete?: (event: React.MouseEvent<HTMLElement>, node: AugmentedSelectNodeType
|
|
1306
|
-
items: AugmentedSelectNodeType
|
|
1486
|
+
customizeLabel?: (node: AugmentedSelectNodeType | SelectNodeType) => string;
|
|
1487
|
+
customizeTooltip?: (node: AugmentedSelectNodeType | SelectNodeType) => React.ReactNode;
|
|
1488
|
+
handleDelete?: (event: React.MouseEvent<HTMLElement>, node: AugmentedSelectNodeType | SelectNodeType, idx: number) => void;
|
|
1489
|
+
items: AugmentedSelectNodeType[] | SelectNodeType[];
|
|
1307
1490
|
maxTooltipTags?: number;
|
|
1308
1491
|
shouldTruncate?: boolean;
|
|
1309
1492
|
showOnlyFirst?: boolean;
|
|
1310
|
-
size?: GeneralSize
|
|
1493
|
+
size?: GeneralSize;
|
|
1311
1494
|
}
|
|
1312
1495
|
declare const Tags: ({ customizeLabel, customizeTooltip, handleDelete, items, maxTooltipTags, shouldTruncate, showOnlyFirst, size, }: SkillTagsProps) => react_jsx_runtime.JSX.Element | null;
|
|
1313
1496
|
|
|
1314
1497
|
declare const LabelAndChildrenTooltipContent: ({ node }: {
|
|
1315
|
-
node: SelectNodeType
|
|
1498
|
+
node: SelectNodeType;
|
|
1316
1499
|
}) => react_jsx_runtime.JSX.Element;
|
|
1317
1500
|
//# sourceMappingURL=label-and-children-tooltip-content.d.ts.map
|
|
1318
1501
|
|
|
1319
1502
|
declare const RemainingTags: ({ tags, }: {
|
|
1320
|
-
tags: AugmentedSelectNodeType
|
|
1503
|
+
tags: AugmentedSelectNodeType[];
|
|
1321
1504
|
}) => react_jsx_runtime.JSX.Element;
|
|
1322
1505
|
|
|
1323
1506
|
type ToastType = "default" | "info" | "success" | "warning" | "error";
|
|
@@ -1345,16 +1528,6 @@ interface ToggleProps extends SwitchProps {
|
|
|
1345
1528
|
}
|
|
1346
1529
|
declare const Toggle: (props: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
1347
1530
|
|
|
1348
|
-
declare enum TooltipSize {
|
|
1349
|
-
Medium = "medium",
|
|
1350
|
-
Large = "large"
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
interface TooltipProps extends TooltipProps$3 {
|
|
1354
|
-
size?: TooltipSize;
|
|
1355
|
-
}
|
|
1356
|
-
declare const Tooltip: ({ size, children, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
1357
|
-
|
|
1358
1531
|
type ViewSwitcherOptionObject = {
|
|
1359
1532
|
size?: ViewSwitcherSize | undefined;
|
|
1360
1533
|
disabled?: boolean | undefined;
|
|
@@ -1394,27 +1567,50 @@ interface IWidgetProps<T extends string> {
|
|
|
1394
1567
|
labelTooltip?: React.ReactNode;
|
|
1395
1568
|
titleTooltip?: React.ReactNode;
|
|
1396
1569
|
isLoading?: boolean;
|
|
1397
|
-
legend?: ILegendProps
|
|
1570
|
+
legend?: ILegendProps<T>;
|
|
1398
1571
|
isHorizontal?: boolean;
|
|
1399
1572
|
chartCustomComponent?: React.ReactNode;
|
|
1400
1573
|
stackStyle?: Record<string, string | number>;
|
|
1401
1574
|
legendCustomComponent?: React.ReactNode;
|
|
1402
|
-
tooltipProps?: Partial<TooltipProps
|
|
1575
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
1403
1576
|
isEmpty?: boolean;
|
|
1404
1577
|
onLabelClick?: () => void;
|
|
1405
1578
|
dataRoseyUrn?: string;
|
|
1406
1579
|
}
|
|
1407
1580
|
declare const Widget: <T extends string>({ sx, label, headerChildren, headerLeftChildren, labelTooltip, titleTooltip, bodyElement, isLoading, legend, isHorizontal, isEmpty, legendCustomComponent, tooltipProps, onLabelClick, dataRoseyUrn, }: IWidgetProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1408
1581
|
|
|
1409
|
-
declare const ScrollArea: React$1.ForwardRefExoticComponent<
|
|
1410
|
-
ref?: ((instance: HTMLDivElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
1411
|
-
}, keyof _mui_system.BoxOwnProps<_mui_material.Theme>>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1582
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<React$1.ComponentProps<typeof Box> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1412
1583
|
//# sourceMappingURL=scroll-area.d.ts.map
|
|
1413
1584
|
|
|
1414
1585
|
interface PaginationProps extends PaginationProps$1 {
|
|
1415
1586
|
}
|
|
1416
1587
|
declare const Pagination: (props: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
1417
1588
|
|
|
1589
|
+
type SubNavItem = TabProps & {
|
|
1590
|
+
href?: string;
|
|
1591
|
+
selected?: boolean;
|
|
1592
|
+
};
|
|
1593
|
+
interface BasePageProps {
|
|
1594
|
+
children: ReactNode;
|
|
1595
|
+
containerProps?: BoxProps;
|
|
1596
|
+
breadcrumbs?: BreadcrumbsProps["items"];
|
|
1597
|
+
title: ReactNode;
|
|
1598
|
+
description?: ReactNode;
|
|
1599
|
+
rightSideItems?: ReactNode;
|
|
1600
|
+
tabsProps?: TabsProps;
|
|
1601
|
+
subNav?: SubNavItem[];
|
|
1602
|
+
useBreadcrumbs?: boolean;
|
|
1603
|
+
}
|
|
1604
|
+
declare const BasePage: ({ children, containerProps, breadcrumbs, title, description, rightSideItems, subNav, tabsProps, useBreadcrumbs, }: BasePageProps) => react_jsx_runtime.JSX.Element;
|
|
1605
|
+
|
|
1606
|
+
interface LayoutProps {
|
|
1607
|
+
content?: React.ReactNode;
|
|
1608
|
+
showHeader?: boolean;
|
|
1609
|
+
headerProps?: HeaderProps;
|
|
1610
|
+
showSideNav?: boolean;
|
|
1611
|
+
}
|
|
1612
|
+
declare const Layout: ({ showHeader, showSideNav, headerProps, content, }: LayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1613
|
+
|
|
1418
1614
|
interface DonutProps extends ChartProps {
|
|
1419
1615
|
handleClick?: (sliceData: ChartDataItem) => void;
|
|
1420
1616
|
}
|
|
@@ -1529,7 +1725,7 @@ interface BarChartProps extends ChartProps {
|
|
|
1529
1725
|
}
|
|
1530
1726
|
declare const BarChart: ({ data, handleClick, showTooltip, customTooltip, }: BarChartProps) => react_jsx_runtime.JSX.Element;
|
|
1531
1727
|
|
|
1532
|
-
type IChartWidgetProps<T extends string> = ExtendedChartProps & Omit<IWidgetProps
|
|
1728
|
+
type IChartWidgetProps<T extends string> = ExtendedChartProps & Omit<IWidgetProps<T>, "bodyElement"> & ConditionalPropsByType & {
|
|
1533
1729
|
sx?: SxProps;
|
|
1534
1730
|
generalWidgetStyle?: SxProps;
|
|
1535
1731
|
label: string;
|
|
@@ -1541,7 +1737,7 @@ interface HorizontalBarChartProps extends ChartProps {
|
|
|
1541
1737
|
}
|
|
1542
1738
|
declare const HorizontalBarChart: ({ data, categories, handleClick, }: HorizontalBarChartProps) => react_jsx_runtime.JSX.Element;
|
|
1543
1739
|
|
|
1544
|
-
interface LineChartTooltipProps extends TooltipProps$
|
|
1740
|
+
interface LineChartTooltipProps extends TooltipProps$2<number, string> {
|
|
1545
1741
|
subject?: string;
|
|
1546
1742
|
valueFormatter?: (value?: number) => string;
|
|
1547
1743
|
}
|
|
@@ -4333,131 +4529,6 @@ declare const AddRepos: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
|
4333
4529
|
|
|
4334
4530
|
declare const Warning: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
4335
4531
|
|
|
4336
|
-
declare enum Severity {
|
|
4337
|
-
LOW = "LOW",
|
|
4338
|
-
MEDIUM = "MEDIUM",
|
|
4339
|
-
HIGH = "HIGH",
|
|
4340
|
-
CRITICAL = "CRITICAL",
|
|
4341
|
-
INFORMATION = "INFORMATION"
|
|
4342
|
-
}
|
|
4343
|
-
type TrendStatus = "good" | "bad" | "neutral";
|
|
4344
|
-
type TrendDirection = "up" | "down" | "neutral";
|
|
4345
|
-
|
|
4346
|
-
declare const SEVERITY_VALUE: Record<Severity, number>;
|
|
4347
|
-
declare enum GeneralSize {
|
|
4348
|
-
Large = "large",
|
|
4349
|
-
Medium = "medium",
|
|
4350
|
-
Small = "small"
|
|
4351
|
-
}
|
|
4352
|
-
declare enum IconPosition {
|
|
4353
|
-
NoIcon = "no-icon",
|
|
4354
|
-
LeftIcon = "left-icon",
|
|
4355
|
-
RightIcon = "right-icon"
|
|
4356
|
-
}
|
|
4357
|
-
|
|
4358
|
-
declare const EMPTY_FUNCTION: () => void;
|
|
4359
|
-
declare const capitalize: (str: string) => string;
|
|
4360
|
-
declare const getColorBySeverity: (severity: Severity, theme: Theme) => string;
|
|
4361
|
-
declare const normalizeSeverity: (severity: unknown) => Severity;
|
|
4362
|
-
declare const sortBySeverity: (a?: Severity, b?: Severity) => 0 | 1 | -1;
|
|
4363
|
-
|
|
4364
|
-
declare const useDebouncedValue: (value: any, delay: number) => any;
|
|
4365
|
-
//# sourceMappingURL=timing.d.ts.map
|
|
4366
|
-
|
|
4367
|
-
declare const flattenSelectTreeWithoutSearch: (rootNode: AugmentedSelectNodeType$1[], nestLevel?: number) => Array<AugmentedSelectNodeType$1>;
|
|
4368
|
-
/**
|
|
4369
|
-
* Builds a string representation of the node's value using its formatter function, if available.
|
|
4370
|
-
*
|
|
4371
|
-
* @param selectNode - The node to build the value for.
|
|
4372
|
-
* @returns A string representation of the node's value.
|
|
4373
|
-
*/
|
|
4374
|
-
declare const formatNodeValue: (selectNode: AugmentedSelectNodeType$1) => string;
|
|
4375
|
-
/**
|
|
4376
|
-
* Collects nodes from a given node up to the first node already included in the flattened list
|
|
4377
|
-
* and pushes them in reverse order.
|
|
4378
|
-
*
|
|
4379
|
-
* @param pushNode - The starting node to begin pushing.
|
|
4380
|
-
* @param flattenedTree - The list to push nodes into.
|
|
4381
|
-
* @param flattenedSet - A set of already included nodes.
|
|
4382
|
-
*/
|
|
4383
|
-
declare const upwardsPush: (pushNode: AugmentedSelectNodeType$1 | null, flattenedTree: AugmentedSelectNodeType$1[], flattenedSet: Set<AugmentedSelectNodeType$1>) => void;
|
|
4384
|
-
/**
|
|
4385
|
-
* Flattens a tree structure into a list of nodes while filtering nodes based on the search text.
|
|
4386
|
-
* Ensures that parent nodes of matching nodes are also included if they are expanded.
|
|
4387
|
-
*
|
|
4388
|
-
* @param rootNode - The root node(s) of the tree to flatten.
|
|
4389
|
-
* @param nestLevel - The starting nesting level for the nodes (default is 0).
|
|
4390
|
-
* @param searchText - Text to filter nodes by.
|
|
4391
|
-
* @returns A flattened list of nodes that match the search text.
|
|
4392
|
-
*/
|
|
4393
|
-
declare const flattenSelectTreeWithSearch: ({ rootNode, nestLevel, searchText, }: FlattenSelectTreeArgs$1) => Array<AugmentedSelectNodeType$1>;
|
|
4394
|
-
/**
|
|
4395
|
-
* Flattens a tree structure into a list of nodes.
|
|
4396
|
-
* If `searchText` is provided, filters nodes based on the search text.
|
|
4397
|
-
*
|
|
4398
|
-
* @param rootNode - The root node(s) of the tree to flatten.
|
|
4399
|
-
* @param nestLevel - The starting nesting level for the nodes (default is 0).
|
|
4400
|
-
* @param searchText - Text to filter nodes by (default is an empty string).
|
|
4401
|
-
* @returns A flattened list of nodes.
|
|
4402
|
-
*/
|
|
4403
|
-
interface FlattenedSelectTreeData {
|
|
4404
|
-
flattenedSelectTreeWithSearch: Array<AugmentedSelectNodeType$1>;
|
|
4405
|
-
flattenedSelectTreeWithoutSearch: Array<AugmentedSelectNodeType$1>;
|
|
4406
|
-
}
|
|
4407
|
-
declare const flattenSelectTree: ({ rootNode, nestLevel, searchText, }: FlattenSelectTreeArgs$1) => FlattenedSelectTreeData;
|
|
4408
|
-
declare const augmentTreeData: (rootNode: AugmentedSelectNodeType$1 | AugmentedSelectNodeType$1[]) => void;
|
|
4409
|
-
/**
|
|
4410
|
-
* Determines if a given node is a leaf node.
|
|
4411
|
-
* A leaf node has no child nodes.
|
|
4412
|
-
*
|
|
4413
|
-
* @param selectNode - The node to check.
|
|
4414
|
-
* @returns `true` if the node is a leaf, `false` otherwise.
|
|
4415
|
-
*/
|
|
4416
|
-
declare const isLeaf: (selectNode: AugmentedSelectNodeType$1) => boolean;
|
|
4417
|
-
/**
|
|
4418
|
-
* Calculates the total number of leaves and selected leaves across the tree.
|
|
4419
|
-
*
|
|
4420
|
-
* @param selectTree - The list of nodes to calculate.
|
|
4421
|
-
* @returns An object containing `totalSelectedLeavesCount` and `totalLeavesCount`, with -1, and 0 respectively if invalid.
|
|
4422
|
-
*/
|
|
4423
|
-
declare const getLeafCounts: (selectTree: AugmentedSelectNodeType$1[]) => {
|
|
4424
|
-
totalSelectedLeavesCount: number;
|
|
4425
|
-
totalSelectableLeavesCount: number;
|
|
4426
|
-
totalLeavesCount: number;
|
|
4427
|
-
};
|
|
4428
|
-
/**
|
|
4429
|
-
* Finds and returns all selected leaf nodes from a given tree.
|
|
4430
|
-
*
|
|
4431
|
-
* @param rootNode - The root node(s) of the tree to search.
|
|
4432
|
-
* @returns A list of selected leaf nodes.
|
|
4433
|
-
*/
|
|
4434
|
-
declare const getAllSelectedLeaves: (rootNode: AugmentedSelectNodeType$1 | AugmentedSelectNodeType$1[]) => Array<AugmentedSelectNodeType$1>;
|
|
4435
|
-
/**
|
|
4436
|
-
* Finds and returns all selected parent nodes from a given tree.
|
|
4437
|
-
*
|
|
4438
|
-
* @param selectTree - The list of nodes to filter.
|
|
4439
|
-
* @returns A list of selected parent nodes.
|
|
4440
|
-
*/
|
|
4441
|
-
declare const getAllSelectedParents: (selectTree: AugmentedSelectNodeType$1[]) => Array<AugmentedSelectNodeType$1>;
|
|
4442
|
-
declare const setSelectedMainSkillCategories: (fullflattenedTreeOptions: AugmentedSelectNodeType$1[]) => AugmentedSelectNodeType$1[];
|
|
4443
|
-
declare const deepCopyTree: (rootNode?: AugmentedSelectNodeType$1[]) => AugmentedSelectNodeType$1[];
|
|
4444
|
-
declare const getChildrenOfTopLevelNode: (topLevelNode: AugmentedSelectNodeType$1) => AugmentedSelectNodeType$1[];
|
|
4445
|
-
declare const mergeNodeChildrenValueToText: (children: AugmentedSelectNodeType$1[]) => string;
|
|
4446
|
-
|
|
4447
|
-
declare const ellipsisStyle: CSSProperties;
|
|
4448
|
-
declare const checkboxStyle: {
|
|
4449
|
-
padding: number;
|
|
4450
|
-
marginLeft: number;
|
|
4451
|
-
borderRadius: number;
|
|
4452
|
-
"& + *": {
|
|
4453
|
-
marginLeft: number;
|
|
4454
|
-
};
|
|
4455
|
-
};
|
|
4456
|
-
|
|
4457
|
-
declare const selectTreeExample: Array<AugmentedSelectNodeType$1>;
|
|
4458
|
-
declare const baseSelectTree: Array<AugmentedSelectNodeType$1>;
|
|
4459
|
-
declare const singleSelectTree: AugmentedSelectNodeType$1[];
|
|
4460
|
-
|
|
4461
4532
|
declare const OS_LIGHT_COLORS: {
|
|
4462
4533
|
surfaceLight: {
|
|
4463
4534
|
50: string;
|
|
@@ -4704,95 +4775,20 @@ declare const OS_LIGHT_COLORS: {
|
|
|
4704
4775
|
};
|
|
4705
4776
|
};
|
|
4706
4777
|
|
|
4707
|
-
declare const gradientsPalette: GradientsPalette
|
|
4778
|
+
declare const gradientsPalette: GradientsPalette;
|
|
4708
4779
|
|
|
4780
|
+
interface ThemeModeContextValue {
|
|
4781
|
+
isDarkMode: boolean;
|
|
4782
|
+
setIsDarkMode: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
4783
|
+
toggleTheme: () => void;
|
|
4784
|
+
}
|
|
4785
|
+
declare function useThemeMode(): ThemeModeContextValue;
|
|
4709
4786
|
interface ThemeProviderProps {
|
|
4710
4787
|
children: React__default.ReactNode;
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
declare const ThemeProvider: ({ children, isDarkMode, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
4714
|
-
|
|
4715
|
-
type Gradient = string;
|
|
4716
|
-
interface GradientsPalette {
|
|
4717
|
-
illustrations: {
|
|
4718
|
-
blue: Gradient;
|
|
4719
|
-
rainbow: Gradient;
|
|
4720
|
-
purple: Gradient;
|
|
4721
|
-
green: Gradient;
|
|
4722
|
-
lightBlue: Gradient;
|
|
4723
|
-
pink: Gradient;
|
|
4724
|
-
};
|
|
4725
|
-
primary: {
|
|
4726
|
-
default: Gradient;
|
|
4727
|
-
pressed: Gradient;
|
|
4728
|
-
hover: Gradient;
|
|
4729
|
-
};
|
|
4730
|
-
secondary: {
|
|
4731
|
-
default: Gradient;
|
|
4732
|
-
pressed: Gradient;
|
|
4733
|
-
hover: Gradient;
|
|
4734
|
-
};
|
|
4735
|
-
red: {
|
|
4736
|
-
default: Gradient;
|
|
4737
|
-
pressed: Gradient;
|
|
4738
|
-
hover: Gradient;
|
|
4739
|
-
};
|
|
4740
|
-
background: {
|
|
4741
|
-
light: Gradient;
|
|
4742
|
-
dark: Gradient;
|
|
4743
|
-
};
|
|
4744
|
-
}
|
|
4745
|
-
|
|
4746
|
-
interface FlattenSelectTreeArgs {
|
|
4747
|
-
rootNode: AugmentedSelectNodeType[];
|
|
4748
|
-
nestLevel?: number;
|
|
4749
|
-
searchText?: string;
|
|
4750
|
-
}
|
|
4751
|
-
interface SelectNodeType<T = unknown> {
|
|
4752
|
-
value: string | number;
|
|
4753
|
-
childNodes?: Array<SelectNodeType<T>>;
|
|
4754
|
-
valueFormatter?: (value: string | number) => string;
|
|
4755
|
-
isSelectable: boolean;
|
|
4756
|
-
icon?: React.ElementType<SvgIconProps> | null;
|
|
4757
|
-
isSelected?: boolean;
|
|
4758
|
-
/**
|
|
4759
|
-
* An optional key that uniquely identifies the node within the tree, in case `value` is not a unique identifier.
|
|
4760
|
-
* Only used as a key for the ListItem component, and not for any other purpose.
|
|
4761
|
-
*/
|
|
4762
|
-
nodeKey?: string;
|
|
4763
|
-
/**
|
|
4764
|
-
* An optional field for any data you want to associate with the node.
|
|
4765
|
-
* This can be of any type and is typically used for storing custom additional data relevant to the node.
|
|
4766
|
-
*/
|
|
4767
|
-
linkedData?: T;
|
|
4768
|
-
}
|
|
4769
|
-
interface AugmentedSelectNodeType<T = unknown> extends SelectNodeType<T> {
|
|
4770
|
-
childNodes?: Array<AugmentedSelectNodeType<T>>;
|
|
4771
|
-
/**
|
|
4772
|
-
* A flag indicating whether the node is expanded (shows its children).
|
|
4773
|
-
*/
|
|
4774
|
-
isExpanded?: boolean;
|
|
4775
|
-
/**
|
|
4776
|
-
* The nesting level of the node in the tree, used internally for rendering purposes.
|
|
4777
|
-
*/
|
|
4778
|
-
nestLevel?: number;
|
|
4779
|
-
/**
|
|
4780
|
-
* A reference to the parent node, used internally for tree traversal.
|
|
4781
|
-
*/
|
|
4782
|
-
parentNode?: AugmentedSelectNodeType<T> | null;
|
|
4783
|
-
/**
|
|
4784
|
-
* The count of selected leaf nodes within this node's subtree.
|
|
4785
|
-
*/
|
|
4786
|
-
selectedLeavesCount?: number;
|
|
4787
|
-
/**
|
|
4788
|
-
* The count of selectable leaf nodes within this node's subtree.
|
|
4789
|
-
*/
|
|
4790
|
-
selectableLeavesCount?: number;
|
|
4791
|
-
/**
|
|
4792
|
-
* The total number of leaf nodes within this node's subtree.
|
|
4793
|
-
*/
|
|
4794
|
-
leavesCount?: number;
|
|
4788
|
+
/** Initial value for the internal dark-mode flag. */
|
|
4789
|
+
defaultDarkMode?: boolean;
|
|
4795
4790
|
}
|
|
4791
|
+
declare const ThemeProvider: ({ children, defaultDarkMode, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
4796
4792
|
|
|
4797
|
-
export { Accordion, StyledAccordionSummary as AccordionSummary, ActionsModal, ActivityTimeline, ActivityTimelineStepStatus, AddDomain, AddRepos, AttackPathAnalysis, AttackPathAnalysisWalkThrough, Badge, Banner, BarChart, BarGraph, BasePage, Breadcrumbs, CardDescription, CardSubheader, Celebration, ChartType, ChartTypeComponents, ChartWidget, CiCd, Cloud, CloudSimple, CodeBlock, CopyButton, CreateTableInstance, Dashboard, Data, DatePicker, DateRangePicker, DateTimePicker, DonutChart, DrawerShell, Dropdown, DropdownAutocompleteTree, DropdownAutocompleteTreeListbox, EMPTY_FUNCTION, EmptyData, EmptyState, FavoriteButton, Footer, GaugeChart, GeneralSize, Git, GitSimple, Header, HorizontalBarChart, IconPosition, index_d as Icons, IndicatorBadge, Info, Kubernetes, LabelAndChildrenTooltipContent, Layout, Legend$1 as Legend, LineChart, Link$1 as Link, LinkColorEnum, LinkType, LoadingErrorState, MenuItem, ModalSubtitle, ModalTitle, Negative, NoData, OS_LIGHT_COLORS, OverflowTooltip, Pagination, PathDisplay, Positive, Recon, RemainingTags, SEVERITY_VALUE, ScrollArea, SearchField, SelectNode, SelectNodeListItem, Sent, Severity, SeverityBadge, SeverityBadgeLabel, SeverityBar$1 as SeverityBar, Shield, Sidebar, SpiderChart, Spinner, StaticDatePicker, StaticDateTimePicker, Success, Tab, Table$1 as Table, Tabs, Tag, TagAvatarSize, TagBackgroundColorVariants, TagStatus, Tags, ThemeProvider, TimePicker, Toast, Toaster, Toggle, Tooltip, TooltipSize, ViewSwitcher, Warning, Widget, augmentTreeData, barShadow, baseSelectTree, boxStyle, capitalize, checkboxStyle, deepCopyTree, ellipsisStyle, flattenSelectTree, flattenSelectTreeWithSearch, flattenSelectTreeWithoutSearch, formatNodeValue, gaugeLabel, gaugeWrapper, getAllSelectedLeaves, getAllSelectedParents, getChildrenOfTopLevelNode, getColorBySeverity, getLeafCounts, getTagStyle, gradientsPalette, isLeaf, mergeNodeChildrenValueToText, normalizeSeverity, selectTagStyle, selectTreeExample, setSelectedMainSkillCategories, singleSelectTree, sortBySeverity, toast, upwardsPush, useDebouncedValue, useDropdownAutocompleteTree };
|
|
4798
|
-
export type { AccordionProps, ActionsModalProps, ActivityTimelineProps, ActivityTimelineStep, AtomicTypes, AugmentedSelectNodeType, BadgeProps, BadgeType, BannerProps, BarChartProps, BarGraphItem, BarGraphProps, BarProps, BasePageProps, BreadcrumbsProps, ChartCategory, ChartCategoryItem, ChartDataItem, ChartProps, CodeBlockProps, ConditionalPropsByType, CopyButtonPosition, CopyButtonProps, DatePickerProps, DateTimePickerProps, DonutProps, DrawerShellProps, DropdownAutocompleteTreeProps, DropdownOption, DropdownProps, EmptyStateProps, ExportProps, ExtendedChartProps, ExtendedDataPoint, FavoriteButtonProps, FlattenSelectTreeArgs, FlattenedSelectTreeData, FooterProps, GaugeChartProps, Gradient, GradientsPalette, HeaderAction, HeaderProps, IChartWidgetProps, ILegendProps, IWidgetProps, IndicatorBadgeProps, LayoutProps, LineChartProps, LinkColorStatus, LinkProps, LinkVariants, MenuItemProps, OverflowTooltipProps, PaginationProps, PathDisplayProps, SearchFieldProps, SelectNodeType, SeverityBadgeLabelProps, SeverityBadgeProps, SeverityBadgeScoreSystemItem, SeverityBarProps, SidebarItem, SidebarProps, SpiderChartProps, SpinnerProps, StatusBanner, TableChartDataItem, TableProps, TableRow, TableTitle, TabsProps, TabsType, TagProps, TagStatusStyle, ThemeProviderProps, TimePickerProps, ToastProps, ToastType, ToasterProps, ToggleProps, TooltipProps, TopToolbarProps, TrendDirection, TrendStatus, ViewSwitcherOption, ViewSwitcherOptionObject, ViewSwitcherOptionProperties, ViewSwitcherSize };
|
|
4793
|
+
export { Accordion, StyledAccordionSummary as AccordionSummary, ActionsModal, ActivityTimeline, ActivityTimelineStepStatus, AddDomain, AddRepos, AttackPathAnalysis, AttackPathAnalysisWalkThrough, Badge, Banner, BarChart, BarGraph, BasePage, Breadcrumbs, CardDescription, CardSubheader, Celebration, ChartType, ChartTypeComponents, ChartWidget, CiCd, Cloud, CloudSimple, CodeBlock, CopyButton, CreateTableInstance, Dashboard, Data, DatePicker, DateRangePicker, DateTimePicker, DonutChart, DrawerShell, Dropdown, DropdownAutocompleteTree, DropdownAutocompleteTreeListbox, EMPTY_FUNCTION, EmptyData, EmptyState, FavoriteButton, Footer, GaugeChart, GeneralSize, Git, GitSimple, Header, HorizontalBarChart, IconPosition, index_d as Icons, IndicatorBadge, Info, Kubernetes, LabelAndChildrenTooltipContent, Layout, Legend$1 as Legend, LineChart, Link$1 as Link, LinkColorEnum, LinkType, LoadingErrorState, MenuItem, ModalSubtitle, ModalTitle, Negative, NoData, OS_LIGHT_COLORS, OverflowTooltip, Pagination, PathDisplay, Positive, Recon, RemainingTags, SEVERITY_VALUE, ScrollArea, SearchField, SelectNode, SelectNodeListItem, Sent, Severity, SeverityBadge, SeverityBadgeLabel, SeverityBar$1 as SeverityBar, Shield, Sidebar, SpiderChart, Spinner, StaticDatePicker, StaticDateTimePicker, Success, Tab, Table$1 as Table, Tabs, Tag, TagAvatarSize, TagBackgroundColorVariants, TagStatus, Tags, ThemeProvider, TimePicker, Toast, Toaster, Toggle, Tooltip, TooltipSize, ViewSwitcher, Warning, Widget, augmentTreeData, barShadow, baseSelectTree, boxStyle, capitalize, checkboxStyle, deepCopyTree, ellipsisStyle, flattenSelectTree, flattenSelectTreeWithSearch, flattenSelectTreeWithoutSearch, formatNodeValue, gaugeLabel, gaugeWrapper, getAllSelectedLeaves, getAllSelectedParents, getChildrenOfTopLevelNode, getColorBySeverity, getLeafCounts, getTagStyle, gradientsPalette, isLeaf, mergeNodeChildrenValueToText, normalizeSeverity, selectTagStyle, selectTreeExample, setSelectedMainSkillCategories, singleSelectTree, sortBySeverity, toast, upwardsPush, useDebouncedValue, useDropdownAutocompleteTree, useThemeMode };
|
|
4794
|
+
export type { AccordionProps, ActionsModalProps, ActivityTimelineProps, ActivityTimelineStep, AtomicTypes, AugmentedSelectNodeType, BadgeProps, BadgeType, BannerProps, BarChartProps, BarGraphItem, BarGraphProps, BarProps, BasePageProps, BreadcrumbsProps, ChartCategory, ChartCategoryItem, ChartDataItem, ChartProps, CodeBlockProps, ConditionalPropsByType, CopyButtonPosition, CopyButtonProps, DatePickerProps, DateTimePickerProps, DonutProps, DrawerShellProps, DropdownAutocompleteTreeProps, DropdownOption, DropdownProps, EmptyStateProps, ExportProps, ExtendedChartProps, ExtendedDataPoint, FavoriteButtonProps, FlattenSelectTreeArgs, FlattenedSelectTreeData, FooterProps, GaugeChartProps, Gradient, GradientsPalette, HeaderAction, HeaderProps, IChartWidgetProps, ILegendProps, IWidgetProps, IndicatorBadgeProps, LayoutProps, LineChartProps, LinkColorStatus, LinkProps, LinkVariants, MenuItemProps, OverflowTooltipProps, PaginationProps, PathDisplayProps, SearchFieldProps, SelectNodeType, SeverityBadgeLabelProps, SeverityBadgeProps, SeverityBadgeScoreSystemItem, SeverityBarProps, SidebarItem, SidebarProps, SpiderChartProps, SpinnerProps, StatusBanner, TableChartDataItem, TableProps, TableRow, TableTitle, TabsProps, TabsType, TagProps, TagStatusStyle, ThemeModeContextValue, ThemeProviderProps, TimePickerProps, ToastProps, ToastType, ToasterProps, ToggleProps, TooltipProps, TopToolbarProps, TrendDirection, TrendStatus, ViewSwitcherOption, ViewSwitcherOptionObject, ViewSwitcherOptionProperties, ViewSwitcherSize };
|