@cyber-harbour/ui 1.0.52 → 1.0.54

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/dist/index.d.mts CHANGED
@@ -35,6 +35,7 @@ type LabelSizeStyle = {
35
35
  marginTop: number | string;
36
36
  };
37
37
  };
38
+ type SwitchState = 'default' | 'checked' | 'disabled';
38
39
  type Breakpoint = 'xs' | 's' | 'm' | 'l' | 'xl';
39
40
  type ButtonElementStyle = {
40
41
  background: string;
@@ -282,6 +283,14 @@ type Theme = {
282
283
  color: string;
283
284
  helpTextColor: string;
284
285
  };
286
+ leanerProgress: {
287
+ background: string;
288
+ progressColor: string;
289
+ };
290
+ switch: Record<SwitchState, {
291
+ background: string;
292
+ color: string;
293
+ }>;
285
294
  };
286
295
  type ThemeColors = Theme['colors'];
287
296
  type ColorCategory = keyof ThemeColors;
@@ -668,6 +677,21 @@ interface FileIconProps extends SVGProps<SVGSVGElement> {
668
677
  }
669
678
  declare const FileIcon: ({ fill, ...props }: FileIconProps) => react_jsx_runtime.JSX.Element;
670
679
 
680
+ interface IosIconProps extends SVGProps<SVGSVGElement> {
681
+ fill?: string;
682
+ }
683
+ declare const IosIcon: ({ fill, ...props }: IosIconProps) => react_jsx_runtime.JSX.Element;
684
+
685
+ interface AndroidIconProps extends SVGProps<SVGSVGElement> {
686
+ fill?: string;
687
+ }
688
+ declare const AndroidIcon: ({ fill, ...props }: AndroidIconProps) => react_jsx_runtime.JSX.Element;
689
+
690
+ interface MicrosoftIconProps extends SVGProps<SVGSVGElement> {
691
+ fill?: string;
692
+ }
693
+ declare const MicrosoftIcon: ({ fill, ...props }: MicrosoftIconProps) => react_jsx_runtime.JSX.Element;
694
+
671
695
  interface SidebarProps {
672
696
  defaultCollapsed?: boolean;
673
697
  children: any;
@@ -895,8 +919,11 @@ declare const FlexItem: ({ children, grow, shrink, basis, align, order, classNam
895
919
 
896
920
  type BoxProps = FabricComponent<{
897
921
  children: any;
922
+ element?: 'div' | 'section';
923
+ hasBorder?: boolean;
924
+ color?: ColorVariant | string;
898
925
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
899
- declare const Box: ({ children, ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
926
+ declare const Box: ({ children, element, hasBorder, color, ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
900
927
 
901
928
  type LineProps = FabricComponent<{
902
929
  direction?: 'horizontal' | 'vertical';
@@ -935,6 +962,7 @@ type LabelProps = FabricComponent<{
935
962
  errorText?: string;
936
963
  size?: LabelSize;
937
964
  children: any;
965
+ fullWidth?: boolean;
938
966
  }> & Omit<react__default.LabelHTMLAttributes<HTMLLabelElement>, 'children'> & (LabelDirection | LabelDirectionRaw);
939
967
  type LabelDirectionRaw = {
940
968
  direction?: 'row' | 'row-reverse';
@@ -943,19 +971,32 @@ type LabelDirectionRaw = {
943
971
  type LabelDirection = {
944
972
  direction?: Omit<react__default.CSSProperties['flexDirection'], 'row' | 'row-reverse'>;
945
973
  };
946
- declare const Label: ({ label, helpText, children, direction, size, errorText, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
974
+ declare const Label: ({ label, helpText, children, direction, size, errorText, fullWidth, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
947
975
 
948
976
  type CheckboxProps = FabricComponent<{
949
977
  label?: any;
950
978
  }> & Omit<react__default.InputHTMLAttributes<HTMLInputElement>, 'type'>;
951
979
  declare const Checkbox: ({ label, className, disabled, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
952
980
 
981
+ type Direction = 'horizontal' | 'vertical';
982
+ type LinerProgressProps = FabricComponent<{
983
+ height?: number;
984
+ width?: string | number;
985
+ direction?: Direction;
986
+ value: number;
987
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'children'>>;
988
+ declare const LinerProgress: ({ height, width, direction, value, ...props }: LinerProgressProps) => react_jsx_runtime.JSX.Element;
989
+
990
+ type SwitchProps = FabricComponent<Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>>;
991
+ declare const Switch: ({ className, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
992
+
953
993
  interface PageLayoutProps {
954
994
  header?: any;
955
995
  sidebar?: any;
956
996
  children?: any;
997
+ className?: string;
957
998
  }
958
- declare const PageLayout: ({ children, header, sidebar }: PageLayoutProps) => react_jsx_runtime.JSX.Element;
999
+ declare const PageLayout: ({ children, header, sidebar, className }: PageLayoutProps) => react_jsx_runtime.JSX.Element;
959
1000
  interface StyledContainerProps {
960
1001
  $withHeader?: boolean;
961
1002
  $withSidebar?: boolean;
@@ -1092,4 +1133,4 @@ interface FullscreenCardProps {
1092
1133
  }
1093
1134
  declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
1094
1135
 
1095
- export { type Action, Alert, AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, BusIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseCircleIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FileIcon, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, type Graph2DRef, type GraphData, type GraphState, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementProps, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, Label, type LabelSize, type LabelSizeStyle, Line, type LinkObject, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MoonIcon, type NestedColorPaths, type NodeButton, type NodeObject, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useContextMenuControl };
1136
+ export { type Action, Alert, AlertIcon, AndroidIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, BusIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseCircleIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FileIcon, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, type Graph2DRef, type GraphData, type GraphState, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementProps, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, IosIcon, Label, type LabelSize, type LabelSizeStyle, Line, LinerProgress, type LinkObject, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MicrosoftIcon, MoonIcon, type NestedColorPaths, type NodeButton, type NodeObject, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Switch, type SwitchState, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useContextMenuControl };
package/dist/index.d.ts CHANGED
@@ -35,6 +35,7 @@ type LabelSizeStyle = {
35
35
  marginTop: number | string;
36
36
  };
37
37
  };
38
+ type SwitchState = 'default' | 'checked' | 'disabled';
38
39
  type Breakpoint = 'xs' | 's' | 'm' | 'l' | 'xl';
39
40
  type ButtonElementStyle = {
40
41
  background: string;
@@ -282,6 +283,14 @@ type Theme = {
282
283
  color: string;
283
284
  helpTextColor: string;
284
285
  };
286
+ leanerProgress: {
287
+ background: string;
288
+ progressColor: string;
289
+ };
290
+ switch: Record<SwitchState, {
291
+ background: string;
292
+ color: string;
293
+ }>;
285
294
  };
286
295
  type ThemeColors = Theme['colors'];
287
296
  type ColorCategory = keyof ThemeColors;
@@ -668,6 +677,21 @@ interface FileIconProps extends SVGProps<SVGSVGElement> {
668
677
  }
669
678
  declare const FileIcon: ({ fill, ...props }: FileIconProps) => react_jsx_runtime.JSX.Element;
670
679
 
680
+ interface IosIconProps extends SVGProps<SVGSVGElement> {
681
+ fill?: string;
682
+ }
683
+ declare const IosIcon: ({ fill, ...props }: IosIconProps) => react_jsx_runtime.JSX.Element;
684
+
685
+ interface AndroidIconProps extends SVGProps<SVGSVGElement> {
686
+ fill?: string;
687
+ }
688
+ declare const AndroidIcon: ({ fill, ...props }: AndroidIconProps) => react_jsx_runtime.JSX.Element;
689
+
690
+ interface MicrosoftIconProps extends SVGProps<SVGSVGElement> {
691
+ fill?: string;
692
+ }
693
+ declare const MicrosoftIcon: ({ fill, ...props }: MicrosoftIconProps) => react_jsx_runtime.JSX.Element;
694
+
671
695
  interface SidebarProps {
672
696
  defaultCollapsed?: boolean;
673
697
  children: any;
@@ -895,8 +919,11 @@ declare const FlexItem: ({ children, grow, shrink, basis, align, order, classNam
895
919
 
896
920
  type BoxProps = FabricComponent<{
897
921
  children: any;
922
+ element?: 'div' | 'section';
923
+ hasBorder?: boolean;
924
+ color?: ColorVariant | string;
898
925
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
899
- declare const Box: ({ children, ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
926
+ declare const Box: ({ children, element, hasBorder, color, ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
900
927
 
901
928
  type LineProps = FabricComponent<{
902
929
  direction?: 'horizontal' | 'vertical';
@@ -935,6 +962,7 @@ type LabelProps = FabricComponent<{
935
962
  errorText?: string;
936
963
  size?: LabelSize;
937
964
  children: any;
965
+ fullWidth?: boolean;
938
966
  }> & Omit<react__default.LabelHTMLAttributes<HTMLLabelElement>, 'children'> & (LabelDirection | LabelDirectionRaw);
939
967
  type LabelDirectionRaw = {
940
968
  direction?: 'row' | 'row-reverse';
@@ -943,19 +971,32 @@ type LabelDirectionRaw = {
943
971
  type LabelDirection = {
944
972
  direction?: Omit<react__default.CSSProperties['flexDirection'], 'row' | 'row-reverse'>;
945
973
  };
946
- declare const Label: ({ label, helpText, children, direction, size, errorText, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
974
+ declare const Label: ({ label, helpText, children, direction, size, errorText, fullWidth, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
947
975
 
948
976
  type CheckboxProps = FabricComponent<{
949
977
  label?: any;
950
978
  }> & Omit<react__default.InputHTMLAttributes<HTMLInputElement>, 'type'>;
951
979
  declare const Checkbox: ({ label, className, disabled, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
952
980
 
981
+ type Direction = 'horizontal' | 'vertical';
982
+ type LinerProgressProps = FabricComponent<{
983
+ height?: number;
984
+ width?: string | number;
985
+ direction?: Direction;
986
+ value: number;
987
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'children'>>;
988
+ declare const LinerProgress: ({ height, width, direction, value, ...props }: LinerProgressProps) => react_jsx_runtime.JSX.Element;
989
+
990
+ type SwitchProps = FabricComponent<Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>>;
991
+ declare const Switch: ({ className, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
992
+
953
993
  interface PageLayoutProps {
954
994
  header?: any;
955
995
  sidebar?: any;
956
996
  children?: any;
997
+ className?: string;
957
998
  }
958
- declare const PageLayout: ({ children, header, sidebar }: PageLayoutProps) => react_jsx_runtime.JSX.Element;
999
+ declare const PageLayout: ({ children, header, sidebar, className }: PageLayoutProps) => react_jsx_runtime.JSX.Element;
959
1000
  interface StyledContainerProps {
960
1001
  $withHeader?: boolean;
961
1002
  $withSidebar?: boolean;
@@ -1092,4 +1133,4 @@ interface FullscreenCardProps {
1092
1133
  }
1093
1134
  declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
1094
1135
 
1095
- export { type Action, Alert, AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, BusIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseCircleIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FileIcon, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, type Graph2DRef, type GraphData, type GraphState, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementProps, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, Label, type LabelSize, type LabelSizeStyle, Line, type LinkObject, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MoonIcon, type NestedColorPaths, type NodeButton, type NodeObject, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useContextMenuControl };
1136
+ export { type Action, Alert, AlertIcon, AndroidIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, BusIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseCircleIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FileIcon, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, type Graph2DRef, type GraphData, type GraphState, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementProps, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, IosIcon, Label, type LabelSize, type LabelSizeStyle, Line, LinerProgress, type LinkObject, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MicrosoftIcon, MoonIcon, type NestedColorPaths, type NodeButton, type NodeObject, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Switch, type SwitchState, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useContextMenuControl };