@cyber-harbour/ui 1.0.20 → 1.0.22

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
@@ -158,6 +158,9 @@ type Theme = {
158
158
  size: number | string;
159
159
  };
160
160
  };
161
+ select: {
162
+ item: Record<ButtonState, ButtonElementStyle>;
163
+ };
161
164
  };
162
165
  type ThemeColors = Theme['colors'];
163
166
  type ColorCategory = keyof ThemeColors;
@@ -364,10 +367,10 @@ interface PhonebookIconProps extends SVGProps<SVGSVGElement> {
364
367
  }
365
368
  declare const PhonebookIcon: ({ fill, ...props }: PhonebookIconProps) => react_jsx_runtime.JSX.Element;
366
369
 
367
- interface PrintIconProps extends SVGProps<SVGSVGElement> {
370
+ interface PrintIconProps$2 extends SVGProps<SVGSVGElement> {
368
371
  fill?: string;
369
372
  }
370
- declare const PrintIcon: ({ fill, ...props }: PrintIconProps) => react_jsx_runtime.JSX.Element;
373
+ declare const PrintIcon: ({ fill, ...props }: PrintIconProps$2) => react_jsx_runtime.JSX.Element;
371
374
 
372
375
  interface Profiler20IconProps extends SVGProps<SVGSVGElement> {
373
376
  fill?: string;
@@ -425,6 +428,16 @@ interface ChevronRightIconProps extends SVGProps<SVGSVGElement> {
425
428
  }
426
429
  declare const ChevronUpIcon: ({ fill, ...props }: ChevronRightIconProps) => react_jsx_runtime.JSX.Element;
427
430
 
431
+ interface PrintIconProps$1 extends SVGProps<SVGSVGElement> {
432
+ fill?: string;
433
+ }
434
+ declare const PlusIcon: ({ fill, ...props }: PrintIconProps$1) => react_jsx_runtime.JSX.Element;
435
+
436
+ interface PrintIconProps extends SVGProps<SVGSVGElement> {
437
+ fill?: string;
438
+ }
439
+ declare const UsersIcon: ({ fill, ...props }: PrintIconProps) => react_jsx_runtime.JSX.Element;
440
+
428
441
  interface SidebarProps {
429
442
  defaultCollapsed?: boolean;
430
443
  children: any;
@@ -564,8 +577,10 @@ interface ContextMenuProps {
564
577
  anchor?: any;
565
578
  positions?: PopoverPosition[] | PopoverPosition;
566
579
  align?: PopoverAlign;
580
+ hasBorder?: boolean;
581
+ maxHeight?: number;
567
582
  }
568
- declare const ContextMenu: ({ isOpen, onClickOutside, onClick, anchor, size, disabled, fullWidth, className, positions, align, children, }: ContextMenuProps) => react_jsx_runtime.JSX.Element;
583
+ declare const ContextMenu: ({ isOpen, onClickOutside, onClick, anchor, size, disabled, fullWidth, className, positions, align, children, hasBorder, maxHeight, }: ContextMenuProps) => react_jsx_runtime.JSX.Element;
569
584
 
570
585
  interface StyledProps {
571
586
  }
@@ -578,6 +593,23 @@ declare const useContextMenuControl: () => {
578
593
  openMenu: () => void;
579
594
  };
580
595
 
596
+ interface SelectProps<T extends string | number> {
597
+ selected?: T;
598
+ options: {
599
+ value: T;
600
+ inputDisplay?: string;
601
+ }[];
602
+ handleSelect: (id: T) => void;
603
+ placeholder: string;
604
+ disabled?: boolean;
605
+ positions?: PopoverPosition[] | PopoverPosition;
606
+ align?: PopoverAlign;
607
+ size?: ButtonSize;
608
+ hasBorder?: boolean;
609
+ maxHeight?: number;
610
+ }
611
+ declare const Select: <T extends string | number>({ options, selected, handleSelect, placeholder, disabled, positions, align, size, hasBorder, maxHeight, }: SelectProps<T>) => react_jsx_runtime.JSX.Element;
612
+
581
613
  interface PageLayoutProps {
582
614
  header?: any;
583
615
  sidebar?: any;
@@ -608,4 +640,4 @@ interface Graph2DProps {
608
640
 
609
641
  declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, config, onNodeClick, onLinkClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
610
642
 
611
- export { AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, type Breakpoint, BugReportIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, ContextMenu, ContextMenuDelimiter, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, FiltersIcon, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleIcon, type InputSize, type InputState, type InputVariant, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, SandBoxIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, ThemeProvider, Typography, type TypographyProps, type TypographyVariant, UpRightArrowCircleIcon, VectorIcon, convertPaletteToRem, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
643
+ export { AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, type Breakpoint, BugReportIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, ContextMenu, ContextMenuDelimiter, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, FiltersIcon, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleIcon, type InputSize, type InputState, type InputVariant, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, SandBoxIcon, Select, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, ThemeProvider, Typography, type TypographyProps, type TypographyVariant, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
package/dist/index.d.ts CHANGED
@@ -158,6 +158,9 @@ type Theme = {
158
158
  size: number | string;
159
159
  };
160
160
  };
161
+ select: {
162
+ item: Record<ButtonState, ButtonElementStyle>;
163
+ };
161
164
  };
162
165
  type ThemeColors = Theme['colors'];
163
166
  type ColorCategory = keyof ThemeColors;
@@ -364,10 +367,10 @@ interface PhonebookIconProps extends SVGProps<SVGSVGElement> {
364
367
  }
365
368
  declare const PhonebookIcon: ({ fill, ...props }: PhonebookIconProps) => react_jsx_runtime.JSX.Element;
366
369
 
367
- interface PrintIconProps extends SVGProps<SVGSVGElement> {
370
+ interface PrintIconProps$2 extends SVGProps<SVGSVGElement> {
368
371
  fill?: string;
369
372
  }
370
- declare const PrintIcon: ({ fill, ...props }: PrintIconProps) => react_jsx_runtime.JSX.Element;
373
+ declare const PrintIcon: ({ fill, ...props }: PrintIconProps$2) => react_jsx_runtime.JSX.Element;
371
374
 
372
375
  interface Profiler20IconProps extends SVGProps<SVGSVGElement> {
373
376
  fill?: string;
@@ -425,6 +428,16 @@ interface ChevronRightIconProps extends SVGProps<SVGSVGElement> {
425
428
  }
426
429
  declare const ChevronUpIcon: ({ fill, ...props }: ChevronRightIconProps) => react_jsx_runtime.JSX.Element;
427
430
 
431
+ interface PrintIconProps$1 extends SVGProps<SVGSVGElement> {
432
+ fill?: string;
433
+ }
434
+ declare const PlusIcon: ({ fill, ...props }: PrintIconProps$1) => react_jsx_runtime.JSX.Element;
435
+
436
+ interface PrintIconProps extends SVGProps<SVGSVGElement> {
437
+ fill?: string;
438
+ }
439
+ declare const UsersIcon: ({ fill, ...props }: PrintIconProps) => react_jsx_runtime.JSX.Element;
440
+
428
441
  interface SidebarProps {
429
442
  defaultCollapsed?: boolean;
430
443
  children: any;
@@ -564,8 +577,10 @@ interface ContextMenuProps {
564
577
  anchor?: any;
565
578
  positions?: PopoverPosition[] | PopoverPosition;
566
579
  align?: PopoverAlign;
580
+ hasBorder?: boolean;
581
+ maxHeight?: number;
567
582
  }
568
- declare const ContextMenu: ({ isOpen, onClickOutside, onClick, anchor, size, disabled, fullWidth, className, positions, align, children, }: ContextMenuProps) => react_jsx_runtime.JSX.Element;
583
+ declare const ContextMenu: ({ isOpen, onClickOutside, onClick, anchor, size, disabled, fullWidth, className, positions, align, children, hasBorder, maxHeight, }: ContextMenuProps) => react_jsx_runtime.JSX.Element;
569
584
 
570
585
  interface StyledProps {
571
586
  }
@@ -578,6 +593,23 @@ declare const useContextMenuControl: () => {
578
593
  openMenu: () => void;
579
594
  };
580
595
 
596
+ interface SelectProps<T extends string | number> {
597
+ selected?: T;
598
+ options: {
599
+ value: T;
600
+ inputDisplay?: string;
601
+ }[];
602
+ handleSelect: (id: T) => void;
603
+ placeholder: string;
604
+ disabled?: boolean;
605
+ positions?: PopoverPosition[] | PopoverPosition;
606
+ align?: PopoverAlign;
607
+ size?: ButtonSize;
608
+ hasBorder?: boolean;
609
+ maxHeight?: number;
610
+ }
611
+ declare const Select: <T extends string | number>({ options, selected, handleSelect, placeholder, disabled, positions, align, size, hasBorder, maxHeight, }: SelectProps<T>) => react_jsx_runtime.JSX.Element;
612
+
581
613
  interface PageLayoutProps {
582
614
  header?: any;
583
615
  sidebar?: any;
@@ -608,4 +640,4 @@ interface Graph2DProps {
608
640
 
609
641
  declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, config, onNodeClick, onLinkClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
610
642
 
611
- export { AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, type Breakpoint, BugReportIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, ContextMenu, ContextMenuDelimiter, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, FiltersIcon, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleIcon, type InputSize, type InputState, type InputVariant, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, SandBoxIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, ThemeProvider, Typography, type TypographyProps, type TypographyVariant, UpRightArrowCircleIcon, VectorIcon, convertPaletteToRem, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
643
+ export { AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, type Breakpoint, BugReportIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, ContextMenu, ContextMenuDelimiter, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, FiltersIcon, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleIcon, type InputSize, type InputState, type InputVariant, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, SandBoxIcon, Select, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, ThemeProvider, Typography, type TypographyProps, type TypographyVariant, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };