@open-ui-kit/core 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/index.d.ts +49 -3
- 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 +1 -1
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, 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 {
|
|
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
|
}
|
|
@@ -4713,5 +4759,5 @@ interface AugmentedSelectNodeType<T = unknown> extends SelectNodeType<T> {
|
|
|
4713
4759
|
leavesCount?: number;
|
|
4714
4760
|
}
|
|
4715
4761
|
|
|
4716
|
-
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 };
|
|
4717
|
-
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, 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 };
|