@cyber-harbour/ui 1.0.35 → 1.0.36

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
@@ -10,9 +10,12 @@ import { GraphData, NodeObject } from 'react-force-graph-2d';
10
10
 
11
11
  declare const GlobalStyle: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
12
12
 
13
- declare const ThemeProvider: ({ children }: {
13
+ interface ThemeProviderProps {
14
14
  children: any;
15
- }) => react_jsx_runtime.JSX.Element;
15
+ mode?: 'light' | 'LIGHT' | 'dark' | 'DARK';
16
+ }
17
+ type ThemeMode = 'light' | 'LIGHT' | 'dark' | 'DARK';
18
+ declare const ThemeProvider: ({ children, mode }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
16
19
 
17
20
  type ButtonVariant = 'fill' | 'outlined' | 'empty';
18
21
  type ButtonColor = 'default' | 'primary' | 'secondary' | 'error';
@@ -62,6 +65,7 @@ type Theme = {
62
65
  baseSize: number;
63
66
  colors: {
64
67
  background: string;
68
+ backgroundBase: string;
65
69
  primary: {
66
70
  main: string;
67
71
  light: string;
@@ -126,6 +130,7 @@ type Theme = {
126
130
  };
127
131
  sidebar: {
128
132
  background: string;
133
+ border: string;
129
134
  width: number;
130
135
  collapsedWidth: number;
131
136
  text: {
@@ -208,6 +213,27 @@ type Theme = {
208
213
  color: string;
209
214
  };
210
215
  };
216
+ graph2D: {
217
+ ring: {
218
+ highlightFill: string;
219
+ };
220
+ button: {
221
+ stroke: string;
222
+ normalFill: string;
223
+ hoverFill: string;
224
+ };
225
+ grid: {
226
+ dotColor: string;
227
+ };
228
+ link: {
229
+ normal: string;
230
+ highlighted: string;
231
+ textColor: string;
232
+ highlightedTextColor: string;
233
+ textBgColor: string;
234
+ highlightedTextBgColor: string;
235
+ };
236
+ };
211
237
  };
212
238
  type ThemeColors = Theme['colors'];
213
239
  type ColorCategory = keyof ThemeColors;
@@ -272,6 +298,12 @@ declare const getBreakpoint: (theme: DefaultTheme, size?: Breakpoint) => string;
272
298
  */
273
299
  declare const lightThemePx: Theme;
274
300
  declare const lightTheme: DefaultTheme$1;
301
+
302
+ /**
303
+ * Палітра, що містить як кольори, так і розміри в px
304
+ * Кольори взято з теми, розміри будуть автоматично конвертовані в rem
305
+ */
306
+ declare const darkThemePx: Theme;
275
307
  declare const darkTheme: DefaultTheme$1;
276
308
 
277
309
  type MarginProps = {
@@ -843,4 +875,4 @@ interface FullscreenCardProps {
843
875
  }
844
876
  declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
845
877
 
846
- 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, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, Line, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, createComponent, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
878
+ 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, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, Line, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
package/dist/index.d.ts CHANGED
@@ -10,9 +10,12 @@ import { GraphData, NodeObject } from 'react-force-graph-2d';
10
10
 
11
11
  declare const GlobalStyle: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
12
12
 
13
- declare const ThemeProvider: ({ children }: {
13
+ interface ThemeProviderProps {
14
14
  children: any;
15
- }) => react_jsx_runtime.JSX.Element;
15
+ mode?: 'light' | 'LIGHT' | 'dark' | 'DARK';
16
+ }
17
+ type ThemeMode = 'light' | 'LIGHT' | 'dark' | 'DARK';
18
+ declare const ThemeProvider: ({ children, mode }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
16
19
 
17
20
  type ButtonVariant = 'fill' | 'outlined' | 'empty';
18
21
  type ButtonColor = 'default' | 'primary' | 'secondary' | 'error';
@@ -62,6 +65,7 @@ type Theme = {
62
65
  baseSize: number;
63
66
  colors: {
64
67
  background: string;
68
+ backgroundBase: string;
65
69
  primary: {
66
70
  main: string;
67
71
  light: string;
@@ -126,6 +130,7 @@ type Theme = {
126
130
  };
127
131
  sidebar: {
128
132
  background: string;
133
+ border: string;
129
134
  width: number;
130
135
  collapsedWidth: number;
131
136
  text: {
@@ -208,6 +213,27 @@ type Theme = {
208
213
  color: string;
209
214
  };
210
215
  };
216
+ graph2D: {
217
+ ring: {
218
+ highlightFill: string;
219
+ };
220
+ button: {
221
+ stroke: string;
222
+ normalFill: string;
223
+ hoverFill: string;
224
+ };
225
+ grid: {
226
+ dotColor: string;
227
+ };
228
+ link: {
229
+ normal: string;
230
+ highlighted: string;
231
+ textColor: string;
232
+ highlightedTextColor: string;
233
+ textBgColor: string;
234
+ highlightedTextBgColor: string;
235
+ };
236
+ };
211
237
  };
212
238
  type ThemeColors = Theme['colors'];
213
239
  type ColorCategory = keyof ThemeColors;
@@ -272,6 +298,12 @@ declare const getBreakpoint: (theme: DefaultTheme, size?: Breakpoint) => string;
272
298
  */
273
299
  declare const lightThemePx: Theme;
274
300
  declare const lightTheme: DefaultTheme$1;
301
+
302
+ /**
303
+ * Палітра, що містить як кольори, так і розміри в px
304
+ * Кольори взято з теми, розміри будуть автоматично конвертовані в rem
305
+ */
306
+ declare const darkThemePx: Theme;
275
307
  declare const darkTheme: DefaultTheme$1;
276
308
 
277
309
  type MarginProps = {
@@ -843,4 +875,4 @@ interface FullscreenCardProps {
843
875
  }
844
876
  declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
845
877
 
846
- 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, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, Line, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, createComponent, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
878
+ 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, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, Line, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };