@open-ui-kit/core 1.2.0 → 1.3.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/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, CSSProperties, ReactElement, ComponentProps, JSX as JSX$1, ComponentType } from 'react';
3
3
  import { ColorPartial } from '@mui/material/styles/createPalette';
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, EmptyStateProps as EmptyStateProps$1, ILegendProps as ILegendProps$1, IWidgetProps as IWidgetProps$1 } from '@/components';
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, SeverityBadgeProps as SeverityBadgeProps$1, EmptyStateProps as EmptyStateProps$1, ILegendProps as ILegendProps$1, IWidgetProps as IWidgetProps$1 } from '@/components';
6
6
  import * as _mui_material from '@mui/material';
7
7
  import { BoxProps, TabProps, AccordionProps as AccordionProps$1, AccordionSummaryProps, SxProps, AlertProps, BadgeProps as BadgeProps$1, TypographyProps, BreadcrumbsProps as BreadcrumbsProps$2, StackOwnProps, Theme, IconButtonProps, Popper, TextFieldProps, PopoverProps, DrawerProps, ButtonProps, MenuProps, SvgIconProps, ListItemProps, StackProps, AppBarProps, CSSProperties as CSSProperties$1, DialogTitleProps, MenuItemProps as MenuItemProps$1, InputProps, CircularProgressProps, TabsProps as TabsProps$2, ChipProps, SwitchProps, TooltipProps as TooltipProps$3, PaginationProps as PaginationProps$1 } from '@mui/material';
8
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';
@@ -875,6 +875,16 @@ interface HeaderProps {
875
875
 
876
876
  declare const Header: ({ logo, title, searchProps, actions, userSection, position, elevation, useDivider, customSearchNode, sx, }: HeaderProps) => react_jsx_runtime.JSX.Element;
877
877
 
878
+ interface IndicatorBadgeValueProps {
879
+ color: string;
880
+ isActive?: boolean;
881
+ }
882
+
883
+ interface IndicatorBadgeProps extends Pick<IndicatorBadgeValueProps, "color"> {
884
+ value: 0 | 1 | 2 | 3 | 4;
885
+ }
886
+ declare const IndicatorBadge: ({ color, value, }: IndicatorBadgeProps) => JSX.Element;
887
+
878
888
  interface ILegendProps<T extends string> {
879
889
  headers: T[];
880
890
  rows: TRow<T>[];
@@ -975,6 +985,42 @@ interface SeverityBarProps {
975
985
  }
976
986
  declare const SeverityBar$1: ({ severity, sx, }: SeverityBarProps) => JSX.Element;
977
987
 
988
+ interface SeverityBadgeProps {
989
+ /**
990
+ * Set a type if you want to display the badge in severity colors.
991
+ */
992
+ severity?: Severity$1;
993
+ /**
994
+ * Set a value if you want to display the badge in score system colors.
995
+ * `severity` param overrides this behaviour.
996
+ */
997
+ value?: number;
998
+ /**
999
+ * Customizable colors / thresholds.
1000
+ */
1001
+ scoreSystem?: SeverityBadgeScoreSystemItem[];
1002
+ }
1003
+ interface SeverityBadgeConfiguration extends IndicatorBadgeProps$1 {
1004
+ label?: string;
1005
+ }
1006
+ interface SeverityBadgeScoreSystemItem {
1007
+ configuration: SeverityBadgeConfiguration;
1008
+ threshold: number;
1009
+ }
1010
+
1011
+ declare const SeverityBadge: ({ severity, scoreSystem, value, }: SeverityBadgeProps) => JSX.Element;
1012
+
1013
+ interface SeverityBadgeLabelProps extends SeverityBadgeProps$1 {
1014
+ /**
1015
+ * Provide a custom label to override the default ones
1016
+ */
1017
+ label?: string;
1018
+ containerStackProps?: StackProps;
1019
+ labelTypographyProps?: TypographyProps;
1020
+ }
1021
+
1022
+ declare const SeverityBadgeLabel: ({ label, scoreSystem, severity, containerStackProps, labelTypographyProps, value, }: SeverityBadgeLabelProps) => JSX.Element;
1023
+
978
1024
  interface SpinnerProps extends CircularProgressProps {
979
1025
  boxProps?: BoxProps;
980
1026
  }
@@ -1441,7 +1487,6 @@ type SpiderChartProps = {
1441
1487
  radars: RadarType[];
1442
1488
  outerRadius?: number;
1443
1489
  padData?: number;
1444
- band?: number;
1445
1490
  onTooltipClick?: (subject: string) => void;
1446
1491
  tooltipContent?: (dataPoint: ExtendedDataPoint) => React.ReactNode;
1447
1492
  showTooltip?: boolean;
@@ -1456,7 +1501,7 @@ type SpiderChartProps = {
1456
1501
  * Each variable is represented by an axis radiating from a common center point, and the values of the variables are plotted as data points along the corresponding axis.
1457
1502
  * The range of values in a spider chart depends on the specific variables being represented.
1458
1503
  */
1459
- declare const SpiderChart: ({ data, radars, band, tickBand, scale, outerRadius, labelOffsets, showTooltip, onTooltipClick, tooltipContent, customTooltip, }: SpiderChartProps) => react_jsx_runtime.JSX.Element;
1504
+ declare const SpiderChart: ({ data, radars, tickBand, scale, outerRadius, labelOffsets, showTooltip, onTooltipClick, tooltipContent, customTooltip, }: SpiderChartProps) => react_jsx_runtime.JSX.Element;
1460
1505
 
1461
1506
  interface ChartDataItem {
1462
1507
  name: string;
@@ -4714,5 +4759,5 @@ interface AugmentedSelectNodeType<T = unknown> extends SelectNodeType<T> {
4714
4759
  leavesCount?: number;
4715
4760
  }
4716
4761
 
4717
- 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, 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, 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 };
4718
- 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, FavoriteButtonProps, FlattenSelectTreeArgs, FlattenedSelectTreeData, FooterProps, GaugeChartProps, Gradient, GradientsPalette, HeaderAction, HeaderProps, IChartWidgetProps, ILegendProps, IWidgetProps, LayoutProps, LineChartProps, LinkColorStatus, LinkProps, LinkVariants, MenuItemProps, OverflowTooltipProps, PaginationProps, PathDisplayProps, SearchFieldProps, SelectNodeType, 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 };
4762
+ 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 };
4763
+ 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 };