@open-ui-kit/core 1.4.2 → 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 +486 -454
- 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 +16 -21
package/index.d.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
+
import { Color, TypographyVariant } from '@mui/material/styles';
|
|
1
2
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, {
|
|
3
|
-
import { ColorPartial } from '@mui/material/styles/createPalette';
|
|
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_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
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,19 +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 { ButtonProps as ButtonProps$1 } from '@mui/material/Button/Button';
|
|
27
|
-
import { LinkProps as LinkProps$2, To } from 'react-router-dom';
|
|
28
|
-
import { TooltipProps as TooltipProps$2 } from '@/components/tooltip/components/tooltip';
|
|
29
|
-
import { TextFieldProps as TextFieldProps$1 } from '@mui/material/TextField';
|
|
30
22
|
import { MRT_RowData, MRT_TableOptions, MRT_Cell, MRT_TableInstance } from 'material-react-table';
|
|
31
|
-
import
|
|
23
|
+
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
32
24
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
33
|
-
import { ChartProps as ChartProps$1, ChartDataItem as ChartDataItem$1, ExtendedChartProps as ExtendedChartProps$1, ConditionalPropsByType as ConditionalPropsByType$1 } from '@/charts';
|
|
34
|
-
import { CategoricalChartFunc } from 'recharts/types/chart/generateCategoricalChart';
|
|
35
|
-
import { TooltipProps as TooltipProps$4, XAxisProps, YAxisProps, LineProps, CartesianGridProps } from 'recharts';
|
|
36
25
|
import { ContentType } from 'recharts/types/component/Tooltip';
|
|
37
|
-
import {
|
|
26
|
+
import { CategoricalChartFunc } from 'recharts/types/chart/generateCategoricalChart';
|
|
27
|
+
import { TooltipProps as TooltipProps$2, XAxisProps, YAxisProps, LineProps, CartesianGridProps } from 'recharts';
|
|
38
28
|
export { StaticTimePickerProps } from '@mui/x-date-pickers/StaticTimePicker';
|
|
39
29
|
|
|
40
30
|
interface VarsType {
|
|
@@ -369,7 +359,7 @@ declare module "@mui/material/styles" {
|
|
|
369
359
|
orange?: PaletteOptions["primary"];
|
|
370
360
|
vars?: VarsType;
|
|
371
361
|
}
|
|
372
|
-
interface PaletteColor extends
|
|
362
|
+
interface PaletteColor extends Partial<Color> {
|
|
373
363
|
}
|
|
374
364
|
interface BreakpointOverrides {
|
|
375
365
|
xs: true;
|
|
@@ -439,31 +429,6 @@ declare module "@mui/material/Typography" {
|
|
|
439
429
|
}
|
|
440
430
|
//# sourceMappingURL=theme.d.ts.map
|
|
441
431
|
|
|
442
|
-
type SubNavItem = TabProps & {
|
|
443
|
-
href?: string;
|
|
444
|
-
selected?: boolean;
|
|
445
|
-
};
|
|
446
|
-
interface BasePageProps {
|
|
447
|
-
children: ReactNode;
|
|
448
|
-
containerProps?: BoxProps;
|
|
449
|
-
breadcrumbs?: BreadcrumbsProps$1["items"];
|
|
450
|
-
title: ReactNode;
|
|
451
|
-
description?: ReactNode;
|
|
452
|
-
rightSideItems?: ReactNode;
|
|
453
|
-
tabsProps?: TabsProps$1;
|
|
454
|
-
subNav?: SubNavItem[];
|
|
455
|
-
useBreadcrumbs?: boolean;
|
|
456
|
-
}
|
|
457
|
-
declare const BasePage: ({ children, containerProps, breadcrumbs, title, description, rightSideItems, subNav, tabsProps, useBreadcrumbs, }: BasePageProps) => react_jsx_runtime.JSX.Element;
|
|
458
|
-
|
|
459
|
-
interface LayoutProps {
|
|
460
|
-
content?: React.ReactNode;
|
|
461
|
-
showHeader?: boolean;
|
|
462
|
-
headerProps?: HeaderProps$1;
|
|
463
|
-
showSideNav?: boolean;
|
|
464
|
-
}
|
|
465
|
-
declare const Layout: ({ showHeader, showSideNav, headerProps, content, }: LayoutProps) => react_jsx_runtime.JSX.Element;
|
|
466
|
-
|
|
467
432
|
interface AccordionProps extends AccordionProps$1 {
|
|
468
433
|
contained?: boolean;
|
|
469
434
|
size?: "medium" | "large";
|
|
@@ -476,13 +441,11 @@ interface AccordionProps extends AccordionProps$1 {
|
|
|
476
441
|
}
|
|
477
442
|
declare const Accordion: ({ contained, size, arrowPosition, useDotsStyle, title, subTitle, accordionSummaryProps, detailsContentBoxProps, children, ...props }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
478
443
|
|
|
479
|
-
declare const StyledAccordionSummary:
|
|
480
|
-
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;
|
|
481
|
-
}, "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 & {
|
|
482
445
|
contained?: boolean;
|
|
483
446
|
arrowPosition?: "left" | "right";
|
|
484
447
|
mediumSize?: boolean;
|
|
485
|
-
}
|
|
448
|
+
}>;
|
|
486
449
|
|
|
487
450
|
declare enum ActivityTimelineStepStatus {
|
|
488
451
|
InProgress = "in-progress",
|
|
@@ -542,18 +505,257 @@ interface BadgeProps {
|
|
|
542
505
|
}
|
|
543
506
|
declare const Badge: ({ type, content, styleBadge, notificationContent, styleContent, }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
544
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
|
+
|
|
545
747
|
interface BreadcrumbItem {
|
|
546
|
-
Icon?: LinkProps
|
|
748
|
+
Icon?: LinkProps["Icon"];
|
|
547
749
|
text: string;
|
|
548
750
|
link?: string;
|
|
549
|
-
iconPosition?: IconPosition
|
|
751
|
+
iconPosition?: IconPosition;
|
|
550
752
|
}
|
|
551
|
-
interface BreadcrumbsProps extends BreadcrumbsProps$
|
|
552
|
-
iconPosition?: IconPosition
|
|
753
|
+
interface BreadcrumbsProps extends BreadcrumbsProps$1 {
|
|
754
|
+
iconPosition?: IconPosition;
|
|
553
755
|
items: BreadcrumbItem[];
|
|
554
|
-
color?: LinkColorEnum
|
|
555
|
-
type?: LinkType
|
|
556
|
-
size?: GeneralSize
|
|
756
|
+
color?: LinkColorEnum;
|
|
757
|
+
type?: LinkType;
|
|
758
|
+
size?: GeneralSize;
|
|
557
759
|
maximumNumberOfVisibleBreadcrumbs?: number;
|
|
558
760
|
}
|
|
559
761
|
declare const Breadcrumbs: ({ iconPosition, items, size, sx, color, type, maximumNumberOfVisibleBreadcrumbs, }: BreadcrumbsProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -570,13 +772,6 @@ interface CardSubheaderProps extends TypographyProps {
|
|
|
570
772
|
declare const CardSubheader: ({ children, ...props }: CardSubheaderProps) => react_jsx_runtime.JSX.Element;
|
|
571
773
|
//# sourceMappingURL=card-subheader.d.ts.map
|
|
572
774
|
|
|
573
|
-
interface CodeBlockProps extends Omit<SyntaxHighlighterProps, "children"> {
|
|
574
|
-
containerProps?: StackOwnProps;
|
|
575
|
-
text: string;
|
|
576
|
-
copyButtonProps?: Omit<CopyButtonProps$1, "text">;
|
|
577
|
-
}
|
|
578
|
-
declare const CodeBlock: (props: CodeBlockProps) => react_jsx_runtime.JSX.Element;
|
|
579
|
-
|
|
580
775
|
interface CopyButtonStylesProps {
|
|
581
776
|
position?: CopyButtonPosition;
|
|
582
777
|
theme?: Theme;
|
|
@@ -593,6 +788,13 @@ interface CopyButtonProps extends IconButtonProps, CopyButtonStylesProps {
|
|
|
593
788
|
}
|
|
594
789
|
declare const CopyButton: ({ text, position, top, bottom, left, right, onCopy, ...props }: CopyButtonProps) => react_jsx_runtime.JSX.Element;
|
|
595
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
|
+
|
|
596
798
|
interface DateTimePickerProps extends DateTimePickerProps$1<Dayjs> {
|
|
597
799
|
label?: string;
|
|
598
800
|
textFieldStyles?: SxProps;
|
|
@@ -634,7 +836,7 @@ interface DrawerShellHeaderProps {
|
|
|
634
836
|
titleText?: string;
|
|
635
837
|
titleNode?: React.ReactNode;
|
|
636
838
|
titleAction?: JSX.Element;
|
|
637
|
-
severity?: Severity
|
|
839
|
+
severity?: Severity;
|
|
638
840
|
copyURL: string;
|
|
639
841
|
customDividerStyle?: CSSProperties;
|
|
640
842
|
isFavorite?: boolean;
|
|
@@ -670,13 +872,23 @@ interface DrawerShellProps extends Omit<DrawerProps, "onClose">, DrawerShellHead
|
|
|
670
872
|
}
|
|
671
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;
|
|
672
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
|
+
|
|
673
885
|
type ValueType = string | number;
|
|
674
886
|
interface DropdownOption<T extends ValueType> {
|
|
675
887
|
label: string;
|
|
676
888
|
value: T;
|
|
677
889
|
icon?: JSX.Element;
|
|
678
890
|
customElement?: JSX.Element;
|
|
679
|
-
menuItemTooltipProps?: Partial<TooltipProps
|
|
891
|
+
menuItemTooltipProps?: Partial<TooltipProps>;
|
|
680
892
|
}
|
|
681
893
|
interface DropdownProps<T extends ValueType> {
|
|
682
894
|
onChange: (selected: DropdownOption<T>) => void;
|
|
@@ -690,7 +902,7 @@ interface DropdownProps<T extends ValueType> {
|
|
|
690
902
|
endIcon?: JSX.Element;
|
|
691
903
|
showSelectedOption?: boolean;
|
|
692
904
|
fixedWidth?: boolean;
|
|
693
|
-
buttonTooltipProps?: Partial<TooltipProps
|
|
905
|
+
buttonTooltipProps?: Partial<TooltipProps>;
|
|
694
906
|
}
|
|
695
907
|
declare const Dropdown: <T extends ValueType>({ onChange, options, selected, buttonProps, isActive, label, menuProps, startIcon, endIcon, showSelectedOption, fixedWidth, buttonTooltipProps, }: DropdownProps<T>) => JSX.Element;
|
|
696
908
|
|
|
@@ -701,7 +913,7 @@ interface DropdownAutocompleteTreeListboxProps {
|
|
|
701
913
|
onSelectAllChange?: (isSelected: boolean) => void;
|
|
702
914
|
searchPlaceholder?: string;
|
|
703
915
|
searchText?: string;
|
|
704
|
-
selectAllNode: AugmentedSelectNodeType
|
|
916
|
+
selectAllNode: AugmentedSelectNodeType;
|
|
705
917
|
setSearchText?: (text: string) => void;
|
|
706
918
|
virtualizationOverscanPx?: number;
|
|
707
919
|
}
|
|
@@ -710,29 +922,29 @@ declare const DropdownAutocompleteTreeListbox: ({ children, isIconAllowed, isSea
|
|
|
710
922
|
interface UseDropdownAutocompleteTreeProps {
|
|
711
923
|
parentSelectOnly?: boolean;
|
|
712
924
|
selectAllIcon?: React.ElementType<SvgIconProps> | null;
|
|
713
|
-
treeData: SelectNodeType
|
|
925
|
+
treeData: SelectNodeType[];
|
|
714
926
|
}
|
|
715
927
|
declare const useDropdownAutocompleteTree: ({ parentSelectOnly, selectAllIcon: SelectAllIcon, treeData, }: UseDropdownAutocompleteTreeProps) => {
|
|
716
|
-
flattenedTreeOptions: FlattenedSelectTreeData
|
|
928
|
+
flattenedTreeOptions: FlattenedSelectTreeData;
|
|
717
929
|
onSelectAllChange: (isSelected: boolean) => void;
|
|
718
930
|
searchText: string;
|
|
719
931
|
searchTextDebounced: any;
|
|
720
|
-
selectAllNode: AugmentedSelectNodeType
|
|
721
|
-
selectedValues: SelectNodeType
|
|
932
|
+
selectAllNode: AugmentedSelectNodeType<unknown>;
|
|
933
|
+
selectedValues: SelectNodeType<unknown>[];
|
|
722
934
|
setSearchText: React$1.Dispatch<React$1.SetStateAction<string>>;
|
|
723
|
-
setSelectedValues: React$1.Dispatch<React$1.SetStateAction<SelectNodeType
|
|
935
|
+
setSelectedValues: React$1.Dispatch<React$1.SetStateAction<SelectNodeType<unknown>[]>>;
|
|
724
936
|
toggleExpand: ({ selectNode, isExpanded, isRecursive, }: {
|
|
725
|
-
selectNode: AugmentedSelectNodeType
|
|
937
|
+
selectNode: AugmentedSelectNodeType | AugmentedSelectNodeType[];
|
|
726
938
|
isExpanded?: boolean | null;
|
|
727
939
|
isRecursive?: boolean;
|
|
728
940
|
}) => void;
|
|
729
|
-
updateCheckbox: (selectNode: AugmentedSelectNodeType
|
|
941
|
+
updateCheckbox: (selectNode: AugmentedSelectNodeType | AugmentedSelectNodeType[], isSelected: boolean) => void;
|
|
730
942
|
};
|
|
731
943
|
|
|
732
944
|
interface DropdownAutocompleteTreeProps {
|
|
733
945
|
buttonContent: ReactNode;
|
|
734
946
|
buttonSize?: "medium" | "large";
|
|
735
|
-
flattenedTreeOptions: AugmentedSelectNodeType
|
|
947
|
+
flattenedTreeOptions: AugmentedSelectNodeType[];
|
|
736
948
|
id?: string;
|
|
737
949
|
isIconAllowed?: boolean;
|
|
738
950
|
isSearchFieldEnabled?: boolean;
|
|
@@ -740,12 +952,12 @@ interface DropdownAutocompleteTreeProps {
|
|
|
740
952
|
parentSelectOnly?: boolean;
|
|
741
953
|
searchText: string;
|
|
742
954
|
selectAllIcon?: React.ElementType<SvgIconProps>;
|
|
743
|
-
selectAllNode: AugmentedSelectNodeType
|
|
955
|
+
selectAllNode: AugmentedSelectNodeType;
|
|
744
956
|
setSearchText: (text: string) => void;
|
|
745
957
|
toggleExpand: (args: {
|
|
746
|
-
selectNode: AugmentedSelectNodeType
|
|
958
|
+
selectNode: AugmentedSelectNodeType;
|
|
747
959
|
}) => void;
|
|
748
|
-
updateCheckbox: (selectNode: AugmentedSelectNodeType
|
|
960
|
+
updateCheckbox: (selectNode: AugmentedSelectNodeType, isSelected: boolean) => void;
|
|
749
961
|
popOverPaperSx?: SxProps;
|
|
750
962
|
buttonProps?: ButtonProps;
|
|
751
963
|
}
|
|
@@ -788,7 +1000,7 @@ type Direction = "row" | "column";
|
|
|
788
1000
|
interface EmptyStateProps {
|
|
789
1001
|
variant?: Variant;
|
|
790
1002
|
direction?: Direction;
|
|
791
|
-
size?: GeneralSize
|
|
1003
|
+
size?: GeneralSize;
|
|
792
1004
|
title?: string;
|
|
793
1005
|
description?: string;
|
|
794
1006
|
actionCallback?: () => void;
|
|
@@ -801,8 +1013,8 @@ declare const EmptyState: ({ variant, direction, size, title, description, actio
|
|
|
801
1013
|
type FavoriteButtonProps = {
|
|
802
1014
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
803
1015
|
isChecked?: boolean;
|
|
804
|
-
tooltipProps?: Partial<TooltipProps
|
|
805
|
-
buttonProps?: ButtonProps
|
|
1016
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
1017
|
+
buttonProps?: ButtonProps;
|
|
806
1018
|
withBackground?: boolean;
|
|
807
1019
|
};
|
|
808
1020
|
declare const FavoriteButton: ({ onClick, isChecked, tooltipProps, buttonProps, withBackground, }: FavoriteButtonProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -811,10 +1023,18 @@ interface FooterProps {
|
|
|
811
1023
|
productNode?: React__default.ReactNode;
|
|
812
1024
|
productName: string;
|
|
813
1025
|
productLink?: string;
|
|
814
|
-
links?: LinkProps
|
|
1026
|
+
links?: LinkProps[];
|
|
815
1027
|
}
|
|
816
1028
|
declare const Footer: React__default.FC<FooterProps>;
|
|
817
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
|
+
|
|
818
1038
|
interface HeaderAction {
|
|
819
1039
|
id: string;
|
|
820
1040
|
tooltip?: string;
|
|
@@ -838,7 +1058,7 @@ interface HeaderProps {
|
|
|
838
1058
|
* Configuration object for the search field.
|
|
839
1059
|
* If undefined, the search field will not be rendered.
|
|
840
1060
|
*/
|
|
841
|
-
searchProps?: SearchFieldProps
|
|
1061
|
+
searchProps?: SearchFieldProps;
|
|
842
1062
|
/**
|
|
843
1063
|
* A custom search field component to override the default search field.
|
|
844
1064
|
* If provided, this will be used instead of the default searchProps.
|
|
@@ -898,42 +1118,10 @@ interface TRow<T extends string> {
|
|
|
898
1118
|
[K in T]: string | number | JSX$1.Element;
|
|
899
1119
|
};
|
|
900
1120
|
tooltip?: React.ReactNode;
|
|
901
|
-
tooltipProps?: Partial<TooltipProps
|
|
1121
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
902
1122
|
}
|
|
903
1123
|
declare const Legend$1: <T extends string>({ headers, rows, isHorizontal, }: ILegendProps<T>) => react_jsx_runtime.JSX.Element;
|
|
904
1124
|
|
|
905
|
-
type LinkVariants = "body1" | "body2" | "caption";
|
|
906
|
-
interface LinkColorStatus {
|
|
907
|
-
disabled: boolean;
|
|
908
|
-
pressed: boolean;
|
|
909
|
-
hovered: boolean;
|
|
910
|
-
}
|
|
911
|
-
declare enum LinkType {
|
|
912
|
-
UnderlineRegular = "underlineRegular",
|
|
913
|
-
StandaloneRegular = "standaloneRegular",
|
|
914
|
-
StandaloneBold = "standaloneBold"
|
|
915
|
-
}
|
|
916
|
-
declare enum LinkColorEnum {
|
|
917
|
-
Primary = "primary",
|
|
918
|
-
Secondary = "secondary"
|
|
919
|
-
}
|
|
920
|
-
interface LinkProps extends Omit<LinkProps$2, "to"> {
|
|
921
|
-
Icon?: React.ElementType<SvgIconProps>;
|
|
922
|
-
color?: LinkColorEnum;
|
|
923
|
-
customizeColor?: ({ disabled, pressed, hovered }: LinkColorStatus) => string;
|
|
924
|
-
disabled?: boolean;
|
|
925
|
-
ellipsis?: boolean;
|
|
926
|
-
fontStyle?: CSSProperties$1;
|
|
927
|
-
href?: To;
|
|
928
|
-
iconPosition?: IconPosition$1;
|
|
929
|
-
linkType?: LinkType;
|
|
930
|
-
openInNewTab?: boolean;
|
|
931
|
-
size?: GeneralSize$1;
|
|
932
|
-
sx?: CSSProperties$1;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
declare const Link$1: ({ Icon, children, color, customizeColor, disabled, ellipsis, fontStyle, href, iconPosition, linkType, openInNewTab, size, style, ...props }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
936
|
-
|
|
937
1125
|
declare const LoadingErrorState: () => JSX.Element;
|
|
938
1126
|
|
|
939
1127
|
declare const ModalTitle: ({ children, ...props }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -941,15 +1129,15 @@ declare const ModalTitle: ({ children, ...props }: DialogTitleProps) => react_js
|
|
|
941
1129
|
declare const ModalSubtitle: ({ children, ...props }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
942
1130
|
|
|
943
1131
|
interface MenuItemProps extends MenuItemProps$1 {
|
|
944
|
-
href?: LinkProps
|
|
1132
|
+
href?: LinkProps["href"];
|
|
945
1133
|
openInNewTab?: boolean;
|
|
946
1134
|
ellipsis?: boolean;
|
|
947
|
-
iconPosition?: LinkProps
|
|
948
|
-
Icon?: LinkProps
|
|
1135
|
+
iconPosition?: LinkProps["iconPosition"];
|
|
1136
|
+
Icon?: LinkProps["Icon"];
|
|
949
1137
|
}
|
|
950
1138
|
declare const MenuItem: ({ children, disabled, ellipsis, href, Icon, iconPosition, openInNewTab, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
951
1139
|
|
|
952
|
-
interface OverflowTooltipProps extends Omit<TooltipProps
|
|
1140
|
+
interface OverflowTooltipProps extends Omit<TooltipProps, "title" | "children"> {
|
|
953
1141
|
value: React.ReactNode;
|
|
954
1142
|
someLongText: React.ReactNode;
|
|
955
1143
|
ellipsisDirection?: "start" | "end";
|
|
@@ -960,24 +1148,16 @@ declare const OverflowTooltip: ({ value, someLongText, ellipsisDirection, styleT
|
|
|
960
1148
|
type PathDisplayProps = {
|
|
961
1149
|
path: string;
|
|
962
1150
|
numberOfLevels?: number;
|
|
963
|
-
tooltipProps?: TooltipProps
|
|
1151
|
+
tooltipProps?: TooltipProps;
|
|
964
1152
|
TypographyProps?: TypographyProps;
|
|
965
1153
|
};
|
|
966
1154
|
declare const PathDisplay: ({ path, numberOfLevels, tooltipProps, TypographyProps, }: PathDisplayProps) => react_jsx_runtime.JSX.Element | null;
|
|
967
1155
|
|
|
968
|
-
interface SearchFieldProps extends Omit<TextFieldProps$1, "inputProps"> {
|
|
969
|
-
inputProps?: InputProps;
|
|
970
|
-
onChangeCallback?: (value: string) => void;
|
|
971
|
-
onClear?: () => void;
|
|
972
|
-
extendEndAdornment?: React__default.JSX.Element;
|
|
973
|
-
}
|
|
974
|
-
declare const SearchField: ({ inputProps, slotProps, onChangeCallback, extendEndAdornment, onClear, ...props }: SearchFieldProps) => react_jsx_runtime.JSX.Element;
|
|
975
|
-
|
|
976
1156
|
interface SeverityBarProps {
|
|
977
1157
|
/**
|
|
978
1158
|
* Severity of the bar
|
|
979
1159
|
*/
|
|
980
|
-
severity: Severity
|
|
1160
|
+
severity: Severity;
|
|
981
1161
|
/**
|
|
982
1162
|
* Styling for the bar
|
|
983
1163
|
*/
|
|
@@ -989,7 +1169,7 @@ interface SeverityBadgeProps {
|
|
|
989
1169
|
/**
|
|
990
1170
|
* Set a type if you want to display the badge in severity colors.
|
|
991
1171
|
*/
|
|
992
|
-
severity?: Severity
|
|
1172
|
+
severity?: Severity;
|
|
993
1173
|
/**
|
|
994
1174
|
* Set a value if you want to display the badge in score system colors.
|
|
995
1175
|
* `severity` param overrides this behaviour.
|
|
@@ -1000,7 +1180,7 @@ interface SeverityBadgeProps {
|
|
|
1000
1180
|
*/
|
|
1001
1181
|
scoreSystem?: SeverityBadgeScoreSystemItem[];
|
|
1002
1182
|
}
|
|
1003
|
-
interface SeverityBadgeConfiguration extends IndicatorBadgeProps
|
|
1183
|
+
interface SeverityBadgeConfiguration extends IndicatorBadgeProps {
|
|
1004
1184
|
label?: string;
|
|
1005
1185
|
}
|
|
1006
1186
|
interface SeverityBadgeScoreSystemItem {
|
|
@@ -1021,6 +1201,44 @@ interface SeverityBadgeLabelProps extends SeverityBadgeProps {
|
|
|
1021
1201
|
|
|
1022
1202
|
declare const SeverityBadgeLabel: ({ label, scoreSystem, severity, containerStackProps, labelTypographyProps, value, }: SeverityBadgeLabelProps) => JSX.Element;
|
|
1023
1203
|
|
|
1204
|
+
interface SidebarItem {
|
|
1205
|
+
id: string;
|
|
1206
|
+
"aria-label": string;
|
|
1207
|
+
tooltip?: string;
|
|
1208
|
+
icon?: React.ReactElement;
|
|
1209
|
+
onClick?: () => void;
|
|
1210
|
+
href?: string;
|
|
1211
|
+
target?: string;
|
|
1212
|
+
iconOnly?: boolean;
|
|
1213
|
+
}
|
|
1214
|
+
interface SidebarProps {
|
|
1215
|
+
/**
|
|
1216
|
+
* An array of action objects to render quick action icon buttons.
|
|
1217
|
+
*/
|
|
1218
|
+
navigationItems?: Array<SidebarItem | React.ReactElement>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Allows for custom styling overrides.
|
|
1221
|
+
*/
|
|
1222
|
+
sx?: SxProps<Theme>;
|
|
1223
|
+
/**
|
|
1224
|
+
* can side nav be colapsed
|
|
1225
|
+
* @default true
|
|
1226
|
+
*/
|
|
1227
|
+
collapsible?: boolean;
|
|
1228
|
+
/**
|
|
1229
|
+
* The width of the drawer when it is open.
|
|
1230
|
+
* @default '16.5rem'
|
|
1231
|
+
*/
|
|
1232
|
+
drawerWidth?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* If `true`, the sidebar is open by default.
|
|
1235
|
+
* @default true
|
|
1236
|
+
*/
|
|
1237
|
+
initialOpen?: boolean;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
declare const Sidebar: ({ navigationItems, drawerWidth, initialOpen, }: SidebarProps) => react_jsx_runtime.JSX.Element;
|
|
1241
|
+
|
|
1024
1242
|
interface SpinnerProps extends CircularProgressProps {
|
|
1025
1243
|
boxProps?: BoxProps;
|
|
1026
1244
|
}
|
|
@@ -1069,7 +1287,7 @@ interface TableProps<TData extends MRT_RowData> extends MRT_TableOptions<TData>
|
|
|
1069
1287
|
initialPageIndex?: number;
|
|
1070
1288
|
initialPageSize?: number;
|
|
1071
1289
|
rowsPerPageOptions?: number[];
|
|
1072
|
-
emptyStateProps?: EmptyStateProps
|
|
1290
|
+
emptyStateProps?: EmptyStateProps;
|
|
1073
1291
|
onRowLinkClick?: (rowData: RowData<TData>) => unknown;
|
|
1074
1292
|
}
|
|
1075
1293
|
type AtomicTypes = string | number | boolean | null | undefined;
|
|
@@ -1104,7 +1322,7 @@ declare const CreateTableInstance: <TData extends MRT_RowData>({ columns, data,
|
|
|
1104
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;
|
|
1105
1323
|
|
|
1106
1324
|
type TabsType = "main" | "subTab" | "toggleTab";
|
|
1107
|
-
interface TabsProps extends TabsProps$
|
|
1325
|
+
interface TabsProps extends TabsProps$1 {
|
|
1108
1326
|
type?: TabsType;
|
|
1109
1327
|
boxProps?: BoxProps;
|
|
1110
1328
|
}
|
|
@@ -1154,7 +1372,7 @@ declare enum TagStatus {
|
|
|
1154
1372
|
interface TagProps extends Omit<ChipProps, "size" | "children" | "label" | "color"> {
|
|
1155
1373
|
color?: TagBackgroundColorVariants;
|
|
1156
1374
|
children: React.ReactNode;
|
|
1157
|
-
size?: GeneralSize
|
|
1375
|
+
size?: GeneralSize;
|
|
1158
1376
|
status?: TagStatus;
|
|
1159
1377
|
}
|
|
1160
1378
|
/**
|
|
@@ -1260,29 +1478,29 @@ declare const getTagStyle: ({ theme, size, statusStyle, clickable, color, hasAva
|
|
|
1260
1478
|
color: TagBackgroundColorVariants;
|
|
1261
1479
|
hasAvatar: boolean;
|
|
1262
1480
|
theme: Theme;
|
|
1263
|
-
size?: GeneralSize
|
|
1481
|
+
size?: GeneralSize;
|
|
1264
1482
|
statusStyle?: TagStatusStyle;
|
|
1265
1483
|
}) => SxProps<Theme>;
|
|
1266
1484
|
|
|
1267
1485
|
interface SkillTagsProps {
|
|
1268
|
-
customizeLabel?: (node: AugmentedSelectNodeType
|
|
1269
|
-
customizeTooltip?: (node: AugmentedSelectNodeType
|
|
1270
|
-
handleDelete?: (event: React.MouseEvent<HTMLElement>, node: AugmentedSelectNodeType
|
|
1271
|
-
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[];
|
|
1272
1490
|
maxTooltipTags?: number;
|
|
1273
1491
|
shouldTruncate?: boolean;
|
|
1274
1492
|
showOnlyFirst?: boolean;
|
|
1275
|
-
size?: GeneralSize
|
|
1493
|
+
size?: GeneralSize;
|
|
1276
1494
|
}
|
|
1277
1495
|
declare const Tags: ({ customizeLabel, customizeTooltip, handleDelete, items, maxTooltipTags, shouldTruncate, showOnlyFirst, size, }: SkillTagsProps) => react_jsx_runtime.JSX.Element | null;
|
|
1278
1496
|
|
|
1279
1497
|
declare const LabelAndChildrenTooltipContent: ({ node }: {
|
|
1280
|
-
node: SelectNodeType
|
|
1498
|
+
node: SelectNodeType;
|
|
1281
1499
|
}) => react_jsx_runtime.JSX.Element;
|
|
1282
1500
|
//# sourceMappingURL=label-and-children-tooltip-content.d.ts.map
|
|
1283
1501
|
|
|
1284
1502
|
declare const RemainingTags: ({ tags, }: {
|
|
1285
|
-
tags: AugmentedSelectNodeType
|
|
1503
|
+
tags: AugmentedSelectNodeType[];
|
|
1286
1504
|
}) => react_jsx_runtime.JSX.Element;
|
|
1287
1505
|
|
|
1288
1506
|
type ToastType = "default" | "info" | "success" | "warning" | "error";
|
|
@@ -1310,16 +1528,6 @@ interface ToggleProps extends SwitchProps {
|
|
|
1310
1528
|
}
|
|
1311
1529
|
declare const Toggle: (props: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
1312
1530
|
|
|
1313
|
-
declare enum TooltipSize {
|
|
1314
|
-
Medium = "medium",
|
|
1315
|
-
Large = "large"
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
interface TooltipProps extends TooltipProps$3 {
|
|
1319
|
-
size?: TooltipSize;
|
|
1320
|
-
}
|
|
1321
|
-
declare const Tooltip: ({ size, children, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
1322
|
-
|
|
1323
1531
|
type ViewSwitcherOptionObject = {
|
|
1324
1532
|
size?: ViewSwitcherSize | undefined;
|
|
1325
1533
|
disabled?: boolean | undefined;
|
|
@@ -1359,60 +1567,59 @@ interface IWidgetProps<T extends string> {
|
|
|
1359
1567
|
labelTooltip?: React.ReactNode;
|
|
1360
1568
|
titleTooltip?: React.ReactNode;
|
|
1361
1569
|
isLoading?: boolean;
|
|
1362
|
-
legend?: ILegendProps
|
|
1570
|
+
legend?: ILegendProps<T>;
|
|
1363
1571
|
isHorizontal?: boolean;
|
|
1364
1572
|
chartCustomComponent?: React.ReactNode;
|
|
1365
1573
|
stackStyle?: Record<string, string | number>;
|
|
1366
1574
|
legendCustomComponent?: React.ReactNode;
|
|
1367
|
-
tooltipProps?: Partial<TooltipProps
|
|
1575
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
1368
1576
|
isEmpty?: boolean;
|
|
1369
1577
|
onLabelClick?: () => void;
|
|
1370
1578
|
dataRoseyUrn?: string;
|
|
1371
1579
|
}
|
|
1372
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;
|
|
1373
1581
|
|
|
1374
|
-
declare const ScrollArea: React$1.ForwardRefExoticComponent<
|
|
1375
|
-
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;
|
|
1376
|
-
}, 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>>;
|
|
1377
1583
|
//# sourceMappingURL=scroll-area.d.ts.map
|
|
1378
1584
|
|
|
1379
1585
|
interface PaginationProps extends PaginationProps$1 {
|
|
1380
1586
|
}
|
|
1381
1587
|
declare const Pagination: (props: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
1382
1588
|
|
|
1383
|
-
|
|
1384
|
-
|
|
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;
|
|
1385
1603
|
}
|
|
1386
|
-
declare const
|
|
1604
|
+
declare const BasePage: ({ children, containerProps, breadcrumbs, title, description, rightSideItems, subNav, tabsProps, useBreadcrumbs, }: BasePageProps) => react_jsx_runtime.JSX.Element;
|
|
1387
1605
|
|
|
1388
|
-
interface
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
headers?: string[];
|
|
1394
|
-
bars?: BarProps[];
|
|
1395
|
-
showLegend?: boolean;
|
|
1396
|
-
handleClick?: CategoricalChartFunc;
|
|
1606
|
+
interface LayoutProps {
|
|
1607
|
+
content?: React.ReactNode;
|
|
1608
|
+
showHeader?: boolean;
|
|
1609
|
+
headerProps?: HeaderProps;
|
|
1610
|
+
showSideNav?: boolean;
|
|
1397
1611
|
}
|
|
1398
|
-
declare const
|
|
1399
|
-
|
|
1400
|
-
type IChartWidgetProps<T extends string> = ExtendedChartProps$1 & Omit<IWidgetProps$1<T>, "bodyElement"> & ConditionalPropsByType$1 & {
|
|
1401
|
-
sx?: SxProps;
|
|
1402
|
-
generalWidgetStyle?: SxProps;
|
|
1403
|
-
label: string;
|
|
1404
|
-
};
|
|
1405
|
-
declare const ChartWidget: <T extends string>({ data, type, label, labelTooltip, showTooltip, categories, isLoading, legend, isEmpty, isHorizontal, customTooltip, titleTooltip, sx, chartCustomComponent, stackStyle, legendCustomComponent, tooltipProps, generalWidgetStyle, headerChildren, headerLeftChildren, onLabelClick, dataRoseyUrn, ...rest }: IChartWidgetProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1612
|
+
declare const Layout: ({ showHeader, showSideNav, headerProps, content, }: LayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1406
1613
|
|
|
1407
|
-
interface DonutProps extends ChartProps
|
|
1408
|
-
handleClick?: (sliceData: ChartDataItem
|
|
1614
|
+
interface DonutProps extends ChartProps {
|
|
1615
|
+
handleClick?: (sliceData: ChartDataItem) => void;
|
|
1409
1616
|
}
|
|
1410
1617
|
/**
|
|
1411
1618
|
* A donut chart typically shows the proportions of categorical data where the size of each piece of the donut communicates the proportion of each category.
|
|
1412
1619
|
*/
|
|
1413
1620
|
declare const DonutChart: ({ data, showTooltip, customTooltip, handleClick, }: DonutProps) => JSX.Element;
|
|
1414
1621
|
|
|
1415
|
-
interface GaugeChartProps extends ChartProps
|
|
1622
|
+
interface GaugeChartProps extends ChartProps {
|
|
1416
1623
|
maxValue?: number;
|
|
1417
1624
|
customLabelComponent?: React.ReactNode;
|
|
1418
1625
|
styleProps?: {
|
|
@@ -1444,18 +1651,99 @@ declare const boxStyle: {
|
|
|
1444
1651
|
transform: string;
|
|
1445
1652
|
};
|
|
1446
1653
|
|
|
1447
|
-
interface
|
|
1448
|
-
|
|
1654
|
+
interface BarProps {
|
|
1655
|
+
key: string;
|
|
1656
|
+
color: string;
|
|
1657
|
+
}
|
|
1658
|
+
interface BarGraphProps extends ChartProps {
|
|
1659
|
+
headers?: string[];
|
|
1660
|
+
bars?: BarProps[];
|
|
1661
|
+
showLegend?: boolean;
|
|
1662
|
+
handleClick?: CategoricalChartFunc;
|
|
1663
|
+
}
|
|
1664
|
+
declare const BarGraph: ({ data, showLegend, showTooltip, bars, headers, customTooltip, handleClick, }: BarGraphProps) => react_jsx_runtime.JSX.Element;
|
|
1665
|
+
|
|
1666
|
+
interface ChartDataItem {
|
|
1667
|
+
name: string;
|
|
1668
|
+
value: number;
|
|
1669
|
+
color: string;
|
|
1670
|
+
icon?: ElementType;
|
|
1671
|
+
}
|
|
1672
|
+
interface TableChartDataItem {
|
|
1673
|
+
name: string;
|
|
1674
|
+
value: number;
|
|
1675
|
+
color: string;
|
|
1676
|
+
}
|
|
1677
|
+
interface ChartCategory {
|
|
1678
|
+
name: string;
|
|
1679
|
+
color?: string;
|
|
1680
|
+
}
|
|
1681
|
+
interface ChartCategoryItem {
|
|
1682
|
+
date: string;
|
|
1683
|
+
[key: string]: number | string;
|
|
1684
|
+
}
|
|
1685
|
+
interface BarGraphItem {
|
|
1686
|
+
value: ReactNode;
|
|
1687
|
+
barData: {
|
|
1688
|
+
[barKey: string]: string | number;
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
interface ChartProps {
|
|
1692
|
+
data: ChartDataItem[] | ChartCategoryItem[] | BarGraphItem[] | TableChartDataItem[];
|
|
1693
|
+
showTooltip?: boolean;
|
|
1694
|
+
categories?: ChartCategory[];
|
|
1695
|
+
customTooltip?: ContentType<number, string>;
|
|
1696
|
+
}
|
|
1697
|
+
declare enum ChartType {
|
|
1698
|
+
VERTICAL_BAR = "vertical_bar",
|
|
1699
|
+
HORIZONTAL_BAR = "horizontal_bar",
|
|
1700
|
+
DONUT = "donut",
|
|
1701
|
+
GAUGE = "gauge",
|
|
1702
|
+
LINE = "line",
|
|
1703
|
+
BAR_GRAPH = "bar_graph"
|
|
1704
|
+
}
|
|
1705
|
+
type ConditionalPropsByType = {
|
|
1706
|
+
type: ChartType.BAR_GRAPH;
|
|
1707
|
+
handleClick?: CategoricalChartFunc;
|
|
1708
|
+
} | {
|
|
1709
|
+
type: ChartType.DONUT;
|
|
1710
|
+
handleClick?: (sliceData: ChartDataItem) => void;
|
|
1711
|
+
} | {
|
|
1712
|
+
type: ChartType.HORIZONTAL_BAR;
|
|
1713
|
+
handleClick?: (sliceData: ChartDataItem) => void;
|
|
1714
|
+
} | {
|
|
1715
|
+
type: ChartType.VERTICAL_BAR;
|
|
1716
|
+
handleClick?: (sliceData: ChartDataItem) => void;
|
|
1717
|
+
} | {
|
|
1718
|
+
type: ChartType;
|
|
1719
|
+
handleClick?: never;
|
|
1720
|
+
};
|
|
1721
|
+
type ExtendedChartProps = GaugeChartProps & Omit<DonutProps, "handleClick"> & Omit<BarGraphProps, "handleClick">;
|
|
1722
|
+
|
|
1723
|
+
interface BarChartProps extends ChartProps {
|
|
1724
|
+
handleClick?: (item: ChartDataItem) => void;
|
|
1725
|
+
}
|
|
1726
|
+
declare const BarChart: ({ data, handleClick, showTooltip, customTooltip, }: BarChartProps) => react_jsx_runtime.JSX.Element;
|
|
1727
|
+
|
|
1728
|
+
type IChartWidgetProps<T extends string> = ExtendedChartProps & Omit<IWidgetProps<T>, "bodyElement"> & ConditionalPropsByType & {
|
|
1729
|
+
sx?: SxProps;
|
|
1730
|
+
generalWidgetStyle?: SxProps;
|
|
1731
|
+
label: string;
|
|
1732
|
+
};
|
|
1733
|
+
declare const ChartWidget: <T extends string>({ data, type, label, labelTooltip, showTooltip, categories, isLoading, legend, isEmpty, isHorizontal, customTooltip, titleTooltip, sx, chartCustomComponent, stackStyle, legendCustomComponent, tooltipProps, generalWidgetStyle, headerChildren, headerLeftChildren, onLabelClick, dataRoseyUrn, ...rest }: IChartWidgetProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1734
|
+
|
|
1735
|
+
interface HorizontalBarChartProps extends ChartProps {
|
|
1736
|
+
handleClick?: (item: ChartDataItem) => void;
|
|
1449
1737
|
}
|
|
1450
1738
|
declare const HorizontalBarChart: ({ data, categories, handleClick, }: HorizontalBarChartProps) => react_jsx_runtime.JSX.Element;
|
|
1451
1739
|
|
|
1452
|
-
interface LineChartTooltipProps extends TooltipProps$
|
|
1740
|
+
interface LineChartTooltipProps extends TooltipProps$2<number, string> {
|
|
1453
1741
|
subject?: string;
|
|
1454
1742
|
valueFormatter?: (value?: number) => string;
|
|
1455
1743
|
}
|
|
1456
1744
|
|
|
1457
1745
|
type SafeLineProps = Omit<LineProps, "ref">;
|
|
1458
|
-
interface LineChartProps extends ChartProps
|
|
1746
|
+
interface LineChartProps extends ChartProps, Pick<LineChartTooltipProps, "valueFormatter"> {
|
|
1459
1747
|
subject?: string;
|
|
1460
1748
|
xAxisProps?: XAxisProps;
|
|
1461
1749
|
yAxisProps?: YAxisProps;
|
|
@@ -1502,65 +1790,9 @@ type SpiderChartProps = {
|
|
|
1502
1790
|
*/
|
|
1503
1791
|
declare const SpiderChart: ({ data, radars, tickBand, scale, outerRadius, labelOffsets, showTooltip, onTooltipClick, tooltipContent, customTooltip, }: SpiderChartProps) => react_jsx_runtime.JSX.Element;
|
|
1504
1792
|
|
|
1505
|
-
interface ChartDataItem {
|
|
1506
|
-
name: string;
|
|
1507
|
-
value: number;
|
|
1508
|
-
color: string;
|
|
1509
|
-
icon?: React.ElementType;
|
|
1510
|
-
}
|
|
1511
|
-
interface TableChartDataItem {
|
|
1512
|
-
name: string;
|
|
1513
|
-
value: number;
|
|
1514
|
-
color: string;
|
|
1515
|
-
}
|
|
1516
|
-
interface ChartCategory {
|
|
1517
|
-
name: string;
|
|
1518
|
-
color?: string;
|
|
1519
|
-
}
|
|
1520
|
-
interface ChartCategoryItem {
|
|
1521
|
-
date: string;
|
|
1522
|
-
[key: string]: number | string;
|
|
1523
|
-
}
|
|
1524
|
-
interface BarGraphItem {
|
|
1525
|
-
value: ReactNode;
|
|
1526
|
-
barData: {
|
|
1527
|
-
[barKey: string]: string | number;
|
|
1528
|
-
};
|
|
1529
|
-
}
|
|
1530
|
-
interface ChartProps {
|
|
1531
|
-
data: ChartDataItem[] | ChartCategoryItem[] | BarGraphItem[] | TableChartDataItem[];
|
|
1532
|
-
showTooltip?: boolean;
|
|
1533
|
-
categories?: ChartCategory[];
|
|
1534
|
-
customTooltip?: ContentType<number, string>;
|
|
1535
|
-
}
|
|
1536
|
-
declare enum ChartType {
|
|
1537
|
-
VERTICAL_BAR = "vertical_bar",
|
|
1538
|
-
HORIZONTAL_BAR = "horizontal_bar",
|
|
1539
|
-
DONUT = "donut",
|
|
1540
|
-
GAUGE = "gauge",
|
|
1541
|
-
LINE = "line",
|
|
1542
|
-
BAR_GRAPH = "bar_graph"
|
|
1543
|
-
}
|
|
1544
1793
|
declare const ChartTypeComponents: {
|
|
1545
|
-
[key: string]:
|
|
1546
|
-
};
|
|
1547
|
-
type ConditionalPropsByType = {
|
|
1548
|
-
type: ChartType.BAR_GRAPH;
|
|
1549
|
-
handleClick?: CategoricalChartFunc;
|
|
1550
|
-
} | {
|
|
1551
|
-
type: ChartType.DONUT;
|
|
1552
|
-
handleClick?: (sliceData: ChartDataItem) => void;
|
|
1553
|
-
} | {
|
|
1554
|
-
type: ChartType.HORIZONTAL_BAR;
|
|
1555
|
-
handleClick?: (sliceData: ChartDataItem) => void;
|
|
1556
|
-
} | {
|
|
1557
|
-
type: ChartType.VERTICAL_BAR;
|
|
1558
|
-
handleClick?: (sliceData: ChartDataItem) => void;
|
|
1559
|
-
} | {
|
|
1560
|
-
type: ChartType;
|
|
1561
|
-
handleClick?: never;
|
|
1794
|
+
[key: string]: ComponentType<ChartProps>;
|
|
1562
1795
|
};
|
|
1563
|
-
type ExtendedChartProps = GaugeChartProps & Omit<DonutProps, "handleClick"> & Omit<BarGraphProps, "handleClick">;
|
|
1564
1796
|
|
|
1565
1797
|
declare const ApiSecuritySelected: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1566
1798
|
declare const ApiSecurityUnSelected: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -4297,131 +4529,6 @@ declare const AddRepos: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
|
4297
4529
|
|
|
4298
4530
|
declare const Warning: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
4299
4531
|
|
|
4300
|
-
declare enum Severity {
|
|
4301
|
-
LOW = "LOW",
|
|
4302
|
-
MEDIUM = "MEDIUM",
|
|
4303
|
-
HIGH = "HIGH",
|
|
4304
|
-
CRITICAL = "CRITICAL",
|
|
4305
|
-
INFORMATION = "INFORMATION"
|
|
4306
|
-
}
|
|
4307
|
-
type TrendStatus = "good" | "bad" | "neutral";
|
|
4308
|
-
type TrendDirection = "up" | "down" | "neutral";
|
|
4309
|
-
|
|
4310
|
-
declare const SEVERITY_VALUE: Record<Severity, number>;
|
|
4311
|
-
declare enum GeneralSize {
|
|
4312
|
-
Large = "large",
|
|
4313
|
-
Medium = "medium",
|
|
4314
|
-
Small = "small"
|
|
4315
|
-
}
|
|
4316
|
-
declare enum IconPosition {
|
|
4317
|
-
NoIcon = "no-icon",
|
|
4318
|
-
LeftIcon = "left-icon",
|
|
4319
|
-
RightIcon = "right-icon"
|
|
4320
|
-
}
|
|
4321
|
-
|
|
4322
|
-
declare const EMPTY_FUNCTION: () => void;
|
|
4323
|
-
declare const capitalize: (str: string) => string;
|
|
4324
|
-
declare const getColorBySeverity: (severity: Severity, theme: Theme) => string;
|
|
4325
|
-
declare const normalizeSeverity: (severity: unknown) => Severity;
|
|
4326
|
-
declare const sortBySeverity: (a?: Severity, b?: Severity) => 0 | 1 | -1;
|
|
4327
|
-
|
|
4328
|
-
declare const useDebouncedValue: (value: any, delay: number) => any;
|
|
4329
|
-
//# sourceMappingURL=timing.d.ts.map
|
|
4330
|
-
|
|
4331
|
-
declare const flattenSelectTreeWithoutSearch: (rootNode: AugmentedSelectNodeType$1[], nestLevel?: number) => Array<AugmentedSelectNodeType$1>;
|
|
4332
|
-
/**
|
|
4333
|
-
* Builds a string representation of the node's value using its formatter function, if available.
|
|
4334
|
-
*
|
|
4335
|
-
* @param selectNode - The node to build the value for.
|
|
4336
|
-
* @returns A string representation of the node's value.
|
|
4337
|
-
*/
|
|
4338
|
-
declare const formatNodeValue: (selectNode: AugmentedSelectNodeType$1) => string;
|
|
4339
|
-
/**
|
|
4340
|
-
* Collects nodes from a given node up to the first node already included in the flattened list
|
|
4341
|
-
* and pushes them in reverse order.
|
|
4342
|
-
*
|
|
4343
|
-
* @param pushNode - The starting node to begin pushing.
|
|
4344
|
-
* @param flattenedTree - The list to push nodes into.
|
|
4345
|
-
* @param flattenedSet - A set of already included nodes.
|
|
4346
|
-
*/
|
|
4347
|
-
declare const upwardsPush: (pushNode: AugmentedSelectNodeType$1 | null, flattenedTree: AugmentedSelectNodeType$1[], flattenedSet: Set<AugmentedSelectNodeType$1>) => void;
|
|
4348
|
-
/**
|
|
4349
|
-
* Flattens a tree structure into a list of nodes while filtering nodes based on the search text.
|
|
4350
|
-
* Ensures that parent nodes of matching nodes are also included if they are expanded.
|
|
4351
|
-
*
|
|
4352
|
-
* @param rootNode - The root node(s) of the tree to flatten.
|
|
4353
|
-
* @param nestLevel - The starting nesting level for the nodes (default is 0).
|
|
4354
|
-
* @param searchText - Text to filter nodes by.
|
|
4355
|
-
* @returns A flattened list of nodes that match the search text.
|
|
4356
|
-
*/
|
|
4357
|
-
declare const flattenSelectTreeWithSearch: ({ rootNode, nestLevel, searchText, }: FlattenSelectTreeArgs$1) => Array<AugmentedSelectNodeType$1>;
|
|
4358
|
-
/**
|
|
4359
|
-
* Flattens a tree structure into a list of nodes.
|
|
4360
|
-
* If `searchText` is provided, filters nodes based on the search text.
|
|
4361
|
-
*
|
|
4362
|
-
* @param rootNode - The root node(s) of the tree to flatten.
|
|
4363
|
-
* @param nestLevel - The starting nesting level for the nodes (default is 0).
|
|
4364
|
-
* @param searchText - Text to filter nodes by (default is an empty string).
|
|
4365
|
-
* @returns A flattened list of nodes.
|
|
4366
|
-
*/
|
|
4367
|
-
interface FlattenedSelectTreeData {
|
|
4368
|
-
flattenedSelectTreeWithSearch: Array<AugmentedSelectNodeType$1>;
|
|
4369
|
-
flattenedSelectTreeWithoutSearch: Array<AugmentedSelectNodeType$1>;
|
|
4370
|
-
}
|
|
4371
|
-
declare const flattenSelectTree: ({ rootNode, nestLevel, searchText, }: FlattenSelectTreeArgs$1) => FlattenedSelectTreeData;
|
|
4372
|
-
declare const augmentTreeData: (rootNode: AugmentedSelectNodeType$1 | AugmentedSelectNodeType$1[]) => void;
|
|
4373
|
-
/**
|
|
4374
|
-
* Determines if a given node is a leaf node.
|
|
4375
|
-
* A leaf node has no child nodes.
|
|
4376
|
-
*
|
|
4377
|
-
* @param selectNode - The node to check.
|
|
4378
|
-
* @returns `true` if the node is a leaf, `false` otherwise.
|
|
4379
|
-
*/
|
|
4380
|
-
declare const isLeaf: (selectNode: AugmentedSelectNodeType$1) => boolean;
|
|
4381
|
-
/**
|
|
4382
|
-
* Calculates the total number of leaves and selected leaves across the tree.
|
|
4383
|
-
*
|
|
4384
|
-
* @param selectTree - The list of nodes to calculate.
|
|
4385
|
-
* @returns An object containing `totalSelectedLeavesCount` and `totalLeavesCount`, with -1, and 0 respectively if invalid.
|
|
4386
|
-
*/
|
|
4387
|
-
declare const getLeafCounts: (selectTree: AugmentedSelectNodeType$1[]) => {
|
|
4388
|
-
totalSelectedLeavesCount: number;
|
|
4389
|
-
totalSelectableLeavesCount: number;
|
|
4390
|
-
totalLeavesCount: number;
|
|
4391
|
-
};
|
|
4392
|
-
/**
|
|
4393
|
-
* Finds and returns all selected leaf nodes from a given tree.
|
|
4394
|
-
*
|
|
4395
|
-
* @param rootNode - The root node(s) of the tree to search.
|
|
4396
|
-
* @returns A list of selected leaf nodes.
|
|
4397
|
-
*/
|
|
4398
|
-
declare const getAllSelectedLeaves: (rootNode: AugmentedSelectNodeType$1 | AugmentedSelectNodeType$1[]) => Array<AugmentedSelectNodeType$1>;
|
|
4399
|
-
/**
|
|
4400
|
-
* Finds and returns all selected parent nodes from a given tree.
|
|
4401
|
-
*
|
|
4402
|
-
* @param selectTree - The list of nodes to filter.
|
|
4403
|
-
* @returns A list of selected parent nodes.
|
|
4404
|
-
*/
|
|
4405
|
-
declare const getAllSelectedParents: (selectTree: AugmentedSelectNodeType$1[]) => Array<AugmentedSelectNodeType$1>;
|
|
4406
|
-
declare const setSelectedMainSkillCategories: (fullflattenedTreeOptions: AugmentedSelectNodeType$1[]) => AugmentedSelectNodeType$1[];
|
|
4407
|
-
declare const deepCopyTree: (rootNode?: AugmentedSelectNodeType$1[]) => AugmentedSelectNodeType$1[];
|
|
4408
|
-
declare const getChildrenOfTopLevelNode: (topLevelNode: AugmentedSelectNodeType$1) => AugmentedSelectNodeType$1[];
|
|
4409
|
-
declare const mergeNodeChildrenValueToText: (children: AugmentedSelectNodeType$1[]) => string;
|
|
4410
|
-
|
|
4411
|
-
declare const ellipsisStyle: CSSProperties;
|
|
4412
|
-
declare const checkboxStyle: {
|
|
4413
|
-
padding: number;
|
|
4414
|
-
marginLeft: number;
|
|
4415
|
-
borderRadius: number;
|
|
4416
|
-
"& + *": {
|
|
4417
|
-
marginLeft: number;
|
|
4418
|
-
};
|
|
4419
|
-
};
|
|
4420
|
-
|
|
4421
|
-
declare const selectTreeExample: Array<AugmentedSelectNodeType$1>;
|
|
4422
|
-
declare const baseSelectTree: Array<AugmentedSelectNodeType$1>;
|
|
4423
|
-
declare const singleSelectTree: AugmentedSelectNodeType$1[];
|
|
4424
|
-
|
|
4425
4532
|
declare const OS_LIGHT_COLORS: {
|
|
4426
4533
|
surfaceLight: {
|
|
4427
4534
|
50: string;
|
|
@@ -4668,95 +4775,20 @@ declare const OS_LIGHT_COLORS: {
|
|
|
4668
4775
|
};
|
|
4669
4776
|
};
|
|
4670
4777
|
|
|
4671
|
-
declare const gradientsPalette: GradientsPalette
|
|
4778
|
+
declare const gradientsPalette: GradientsPalette;
|
|
4672
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;
|
|
4673
4786
|
interface ThemeProviderProps {
|
|
4674
4787
|
children: React__default.ReactNode;
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
declare const ThemeProvider: ({ children, isDarkMode, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
4678
|
-
|
|
4679
|
-
type Gradient = string;
|
|
4680
|
-
interface GradientsPalette {
|
|
4681
|
-
illustrations: {
|
|
4682
|
-
blue: Gradient;
|
|
4683
|
-
rainbow: Gradient;
|
|
4684
|
-
purple: Gradient;
|
|
4685
|
-
green: Gradient;
|
|
4686
|
-
lightBlue: Gradient;
|
|
4687
|
-
pink: Gradient;
|
|
4688
|
-
};
|
|
4689
|
-
primary: {
|
|
4690
|
-
default: Gradient;
|
|
4691
|
-
pressed: Gradient;
|
|
4692
|
-
hover: Gradient;
|
|
4693
|
-
};
|
|
4694
|
-
secondary: {
|
|
4695
|
-
default: Gradient;
|
|
4696
|
-
pressed: Gradient;
|
|
4697
|
-
hover: Gradient;
|
|
4698
|
-
};
|
|
4699
|
-
red: {
|
|
4700
|
-
default: Gradient;
|
|
4701
|
-
pressed: Gradient;
|
|
4702
|
-
hover: Gradient;
|
|
4703
|
-
};
|
|
4704
|
-
background: {
|
|
4705
|
-
light: Gradient;
|
|
4706
|
-
dark: Gradient;
|
|
4707
|
-
};
|
|
4708
|
-
}
|
|
4709
|
-
|
|
4710
|
-
interface FlattenSelectTreeArgs {
|
|
4711
|
-
rootNode: AugmentedSelectNodeType[];
|
|
4712
|
-
nestLevel?: number;
|
|
4713
|
-
searchText?: string;
|
|
4714
|
-
}
|
|
4715
|
-
interface SelectNodeType<T = unknown> {
|
|
4716
|
-
value: string | number;
|
|
4717
|
-
childNodes?: Array<SelectNodeType<T>>;
|
|
4718
|
-
valueFormatter?: (value: string | number) => string;
|
|
4719
|
-
isSelectable: boolean;
|
|
4720
|
-
icon?: React.ElementType<SvgIconProps> | null;
|
|
4721
|
-
isSelected?: boolean;
|
|
4722
|
-
/**
|
|
4723
|
-
* An optional key that uniquely identifies the node within the tree, in case `value` is not a unique identifier.
|
|
4724
|
-
* Only used as a key for the ListItem component, and not for any other purpose.
|
|
4725
|
-
*/
|
|
4726
|
-
nodeKey?: string;
|
|
4727
|
-
/**
|
|
4728
|
-
* An optional field for any data you want to associate with the node.
|
|
4729
|
-
* This can be of any type and is typically used for storing custom additional data relevant to the node.
|
|
4730
|
-
*/
|
|
4731
|
-
linkedData?: T;
|
|
4732
|
-
}
|
|
4733
|
-
interface AugmentedSelectNodeType<T = unknown> extends SelectNodeType<T> {
|
|
4734
|
-
childNodes?: Array<AugmentedSelectNodeType<T>>;
|
|
4735
|
-
/**
|
|
4736
|
-
* A flag indicating whether the node is expanded (shows its children).
|
|
4737
|
-
*/
|
|
4738
|
-
isExpanded?: boolean;
|
|
4739
|
-
/**
|
|
4740
|
-
* The nesting level of the node in the tree, used internally for rendering purposes.
|
|
4741
|
-
*/
|
|
4742
|
-
nestLevel?: number;
|
|
4743
|
-
/**
|
|
4744
|
-
* A reference to the parent node, used internally for tree traversal.
|
|
4745
|
-
*/
|
|
4746
|
-
parentNode?: AugmentedSelectNodeType<T> | null;
|
|
4747
|
-
/**
|
|
4748
|
-
* The count of selected leaf nodes within this node's subtree.
|
|
4749
|
-
*/
|
|
4750
|
-
selectedLeavesCount?: number;
|
|
4751
|
-
/**
|
|
4752
|
-
* The count of selectable leaf nodes within this node's subtree.
|
|
4753
|
-
*/
|
|
4754
|
-
selectableLeavesCount?: number;
|
|
4755
|
-
/**
|
|
4756
|
-
* The total number of leaf nodes within this node's subtree.
|
|
4757
|
-
*/
|
|
4758
|
-
leavesCount?: number;
|
|
4788
|
+
/** Initial value for the internal dark-mode flag. */
|
|
4789
|
+
defaultDarkMode?: boolean;
|
|
4759
4790
|
}
|
|
4791
|
+
declare const ThemeProvider: ({ children, defaultDarkMode, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
4760
4792
|
|
|
4761
|
-
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, 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 };
|
|
4762
|
-
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, 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 };
|