@cyber-harbour/ui 1.0.27 → 1.0.28

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
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import react__default, { SVGProps, ElementType, CSSProperties as CSSProperties$1, InputHTMLAttributes } from 'react';
3
+ import react__default, { SVGProps, CSSProperties as CSSProperties$1, ElementType, InputHTMLAttributes } from 'react';
4
4
  import * as styled_components from 'styled-components';
5
5
  import { CSSProperties, DefaultTheme } from 'styled-components';
6
6
  import { PopoverPosition, PopoverAlign } from 'react-tiny-popover';
@@ -188,6 +188,16 @@ type Theme = {
188
188
  sizes: Record<InputSize, InputSizeStyle>;
189
189
  outlined: Record<InputState, InputElementStyle>;
190
190
  };
191
+ box: {
192
+ padding: number | string;
193
+ background: string;
194
+ border: {
195
+ radius: number | string;
196
+ width: number | string;
197
+ style: string;
198
+ color: string;
199
+ };
200
+ };
191
201
  };
192
202
  type ThemeColors = Theme['colors'];
193
203
  type ColorCategory = keyof ThemeColors;
@@ -261,7 +271,7 @@ interface BaseButtonProps {
261
271
  icon?: any;
262
272
  iconPosition?: 'left' | 'right';
263
273
  }
264
- type ButtonProps = BaseButtonProps & (react__default.AnchorHTMLAttributes<HTMLAnchorElement> | react__default.ButtonHTMLAttributes<HTMLButtonElement>);
274
+ type ButtonProps = (Omit<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> | Omit<react__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>) & BaseButtonProps;
265
275
  declare const Button: ({ children, variant, color, size, disabled, fullWidth, className, icon, iconPosition, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
266
276
 
267
277
  interface AlertIconProps extends SVGProps<SVGSVGElement> {
@@ -520,15 +530,16 @@ interface SidebarSectionProps {
520
530
  declare const SidebarSection: ({ grow, shrink, basis, items }: SidebarSectionProps) => react_jsx_runtime.JSX.Element;
521
531
 
522
532
  interface TypographyProps {
533
+ style?: CSSProperties$1;
523
534
  variant?: TypographyVariant;
524
535
  element?: ElementType;
525
536
  children: any;
526
537
  weight?: CSSProperties$1['fontWeight'];
527
- style?: CSSProperties$1['fontStyle'];
538
+ fontStyle?: CSSProperties$1['fontStyle'];
528
539
  color?: ColorVariant | string;
529
540
  className?: string;
530
541
  }
531
- declare const Typography: ({ variant, element, children, weight, style, color, className, }: TypographyProps) => react_jsx_runtime.JSX.Element;
542
+ declare const Typography: ({ variant, element, children, weight, fontStyle, color, className, style, }: TypographyProps) => react_jsx_runtime.JSX.Element;
532
543
 
533
544
  interface ListMenuProps {
534
545
  children: any;
@@ -675,6 +686,46 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
675
686
  };
676
687
  declare const Input: ({ error, append, prepend, size, disabled, className, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
677
688
 
689
+ type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
690
+ type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
691
+ type FlexJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
692
+ type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
693
+ type FlexGap = string | number;
694
+ interface FlexContainerProps {
695
+ children: any;
696
+ direction?: FlexDirection;
697
+ wrap?: FlexWrap;
698
+ justify?: FlexJustify;
699
+ align?: FlexAlign;
700
+ alignContent?: FlexAlign;
701
+ gap?: FlexGap;
702
+ rowGap?: FlexGap;
703
+ columnGap?: FlexGap;
704
+ className?: string;
705
+ style?: CSSProperties$1;
706
+ as?: any;
707
+ }
708
+ declare const FlexContainer: ({ children, direction, wrap, justify, align, alignContent, gap, rowGap, columnGap, className, style, as, }: FlexContainerProps) => react_jsx_runtime.JSX.Element;
709
+
710
+ type FlexItemGrow = number;
711
+ type FlexItemShrink = number;
712
+ type FlexItemBasis = string | number;
713
+ type FlexItemAlign = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
714
+ interface FlexItemProps {
715
+ children?: any;
716
+ grow?: FlexItemGrow;
717
+ shrink?: FlexItemShrink;
718
+ basis?: FlexItemBasis;
719
+ align?: FlexItemAlign;
720
+ order?: number;
721
+ className?: string;
722
+ style?: CSSProperties$1;
723
+ as?: any;
724
+ }
725
+ declare const FlexItem: ({ children, grow, shrink, basis, align, order, className, style, as, }: FlexItemProps) => react_jsx_runtime.JSX.Element;
726
+
727
+ declare const Box: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
728
+
678
729
  interface PageLayoutProps {
679
730
  header?: any;
680
731
  sidebar?: any;
@@ -708,4 +759,4 @@ interface Graph2DProps {
708
759
 
709
760
  declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, config, onNodeClick, onLinkClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
710
761
 
711
- export { type Action, 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, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, FiltersIcon, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputSize, type InputSizeStyle, 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, RowActionsMenu, 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, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
762
+ export { type Action, AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, 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, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, FiltersIcon, FlexContainer, FlexItem, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputSize, type InputSizeStyle, 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, RowActionsMenu, 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, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import react__default, { SVGProps, ElementType, CSSProperties as CSSProperties$1, InputHTMLAttributes } from 'react';
3
+ import react__default, { SVGProps, CSSProperties as CSSProperties$1, ElementType, InputHTMLAttributes } from 'react';
4
4
  import * as styled_components from 'styled-components';
5
5
  import { CSSProperties, DefaultTheme } from 'styled-components';
6
6
  import { PopoverPosition, PopoverAlign } from 'react-tiny-popover';
@@ -188,6 +188,16 @@ type Theme = {
188
188
  sizes: Record<InputSize, InputSizeStyle>;
189
189
  outlined: Record<InputState, InputElementStyle>;
190
190
  };
191
+ box: {
192
+ padding: number | string;
193
+ background: string;
194
+ border: {
195
+ radius: number | string;
196
+ width: number | string;
197
+ style: string;
198
+ color: string;
199
+ };
200
+ };
191
201
  };
192
202
  type ThemeColors = Theme['colors'];
193
203
  type ColorCategory = keyof ThemeColors;
@@ -261,7 +271,7 @@ interface BaseButtonProps {
261
271
  icon?: any;
262
272
  iconPosition?: 'left' | 'right';
263
273
  }
264
- type ButtonProps = BaseButtonProps & (react__default.AnchorHTMLAttributes<HTMLAnchorElement> | react__default.ButtonHTMLAttributes<HTMLButtonElement>);
274
+ type ButtonProps = (Omit<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> | Omit<react__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>) & BaseButtonProps;
265
275
  declare const Button: ({ children, variant, color, size, disabled, fullWidth, className, icon, iconPosition, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
266
276
 
267
277
  interface AlertIconProps extends SVGProps<SVGSVGElement> {
@@ -520,15 +530,16 @@ interface SidebarSectionProps {
520
530
  declare const SidebarSection: ({ grow, shrink, basis, items }: SidebarSectionProps) => react_jsx_runtime.JSX.Element;
521
531
 
522
532
  interface TypographyProps {
533
+ style?: CSSProperties$1;
523
534
  variant?: TypographyVariant;
524
535
  element?: ElementType;
525
536
  children: any;
526
537
  weight?: CSSProperties$1['fontWeight'];
527
- style?: CSSProperties$1['fontStyle'];
538
+ fontStyle?: CSSProperties$1['fontStyle'];
528
539
  color?: ColorVariant | string;
529
540
  className?: string;
530
541
  }
531
- declare const Typography: ({ variant, element, children, weight, style, color, className, }: TypographyProps) => react_jsx_runtime.JSX.Element;
542
+ declare const Typography: ({ variant, element, children, weight, fontStyle, color, className, style, }: TypographyProps) => react_jsx_runtime.JSX.Element;
532
543
 
533
544
  interface ListMenuProps {
534
545
  children: any;
@@ -675,6 +686,46 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
675
686
  };
676
687
  declare const Input: ({ error, append, prepend, size, disabled, className, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
677
688
 
689
+ type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
690
+ type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
691
+ type FlexJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
692
+ type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
693
+ type FlexGap = string | number;
694
+ interface FlexContainerProps {
695
+ children: any;
696
+ direction?: FlexDirection;
697
+ wrap?: FlexWrap;
698
+ justify?: FlexJustify;
699
+ align?: FlexAlign;
700
+ alignContent?: FlexAlign;
701
+ gap?: FlexGap;
702
+ rowGap?: FlexGap;
703
+ columnGap?: FlexGap;
704
+ className?: string;
705
+ style?: CSSProperties$1;
706
+ as?: any;
707
+ }
708
+ declare const FlexContainer: ({ children, direction, wrap, justify, align, alignContent, gap, rowGap, columnGap, className, style, as, }: FlexContainerProps) => react_jsx_runtime.JSX.Element;
709
+
710
+ type FlexItemGrow = number;
711
+ type FlexItemShrink = number;
712
+ type FlexItemBasis = string | number;
713
+ type FlexItemAlign = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
714
+ interface FlexItemProps {
715
+ children?: any;
716
+ grow?: FlexItemGrow;
717
+ shrink?: FlexItemShrink;
718
+ basis?: FlexItemBasis;
719
+ align?: FlexItemAlign;
720
+ order?: number;
721
+ className?: string;
722
+ style?: CSSProperties$1;
723
+ as?: any;
724
+ }
725
+ declare const FlexItem: ({ children, grow, shrink, basis, align, order, className, style, as, }: FlexItemProps) => react_jsx_runtime.JSX.Element;
726
+
727
+ declare const Box: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
728
+
678
729
  interface PageLayoutProps {
679
730
  header?: any;
680
731
  sidebar?: any;
@@ -708,4 +759,4 @@ interface Graph2DProps {
708
759
 
709
760
  declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, config, onNodeClick, onLinkClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
710
761
 
711
- export { type Action, 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, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, FiltersIcon, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputSize, type InputSizeStyle, 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, RowActionsMenu, 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, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
762
+ export { type Action, AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, 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, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, FiltersIcon, FlexContainer, FlexItem, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputSize, type InputSizeStyle, 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, RowActionsMenu, 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, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };