@cyber-harbour/ui 1.0.34 → 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/eye_light-3WS4REO5.png +0 -0
- package/dist/eye_light_hover-PVS4UAB4.png +0 -0
- package/dist/group_light-RVCSCGRJ.png +0 -0
- package/dist/group_light_hover-LVI5PRZM.png +0 -0
- package/dist/index.d.mts +43 -5
- package/dist/index.d.ts +43 -5
- package/dist/index.js +184 -170
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +268 -254
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/src/Core/Header/Header.tsx +1 -1
- package/src/Core/Sidebar/Sidebar.tsx +3 -3
- package/src/Core/Sidebar/SidebarDelimeter.tsx +1 -1
- package/src/FullscreenCard/FullscreenCard.tsx +39 -8
- package/src/Graph2D/Graph2D.tsx +71 -70
- package/src/Graph2D/GraphLoader.tsx +84 -0
- package/src/Graph2D/eye_light.png +0 -0
- package/src/Graph2D/eye_light_hover.png +0 -0
- package/src/Graph2D/group_light.png +0 -0
- package/src/Graph2D/group_light_hover.png +0 -0
- package/src/Graph2D/types.ts +1 -0
- package/src/Layouts/PageLayout/PageLayout.tsx +6 -3
- package/src/Theme/ThemeProvider.tsx +9 -3
- package/src/Theme/index.ts +1 -1
- package/src/Theme/themes/config.ts +41 -0
- package/src/Theme/themes/dark.ts +703 -0
- package/src/Theme/themes/index.ts +2 -0
- package/src/Theme/{theme.ts → themes/light.ts} +30 -41
- package/src/Theme/types.ts +24 -0
- package/dist/cross_light-JTZWFLSV.png +0 -0
- package/dist/cross_light_hover-UQZ7E3CW.png +0 -0
- package/dist/eye_light-EQXRQBFN.png +0 -0
- package/dist/eye_light_hover-5XFRPJS4.png +0 -0
- package/src/Graph2D/cross_light.png +0 -0
- package/src/Graph2D/cross_light_hover.png +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
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
|
-
|
|
13
|
+
interface ThemeProviderProps {
|
|
14
14
|
children: any;
|
|
15
|
-
|
|
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 = {
|
|
@@ -810,6 +842,7 @@ interface Graph2DProps {
|
|
|
810
842
|
graphData?: GraphData;
|
|
811
843
|
linkSource?: string;
|
|
812
844
|
linkTarget?: string;
|
|
845
|
+
loading?: boolean;
|
|
813
846
|
width?: number;
|
|
814
847
|
height?: number;
|
|
815
848
|
config?: {
|
|
@@ -828,13 +861,18 @@ interface Graph2DProps {
|
|
|
828
861
|
onBackgroundClick?: () => void;
|
|
829
862
|
}
|
|
830
863
|
|
|
831
|
-
declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, config, onNodeClick, onNodeHover, onLinkHover, onLinkClick, onBackgroundClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
|
|
864
|
+
declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, loading, config, onNodeClick, onNodeHover, onLinkHover, onLinkClick, onBackgroundClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
|
|
832
865
|
|
|
833
866
|
interface FullscreenCardProps {
|
|
834
867
|
children: any;
|
|
868
|
+
className?: string;
|
|
835
869
|
position: 'absolute' | 'fixed';
|
|
836
870
|
isActive: boolean;
|
|
871
|
+
top?: number;
|
|
872
|
+
left?: number;
|
|
873
|
+
right?: number;
|
|
874
|
+
bottom?: number;
|
|
837
875
|
}
|
|
838
|
-
declare const FullscreenCard: ({ isActive, position, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
876
|
+
declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
839
877
|
|
|
840
|
-
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
|
-
|
|
13
|
+
interface ThemeProviderProps {
|
|
14
14
|
children: any;
|
|
15
|
-
|
|
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 = {
|
|
@@ -810,6 +842,7 @@ interface Graph2DProps {
|
|
|
810
842
|
graphData?: GraphData;
|
|
811
843
|
linkSource?: string;
|
|
812
844
|
linkTarget?: string;
|
|
845
|
+
loading?: boolean;
|
|
813
846
|
width?: number;
|
|
814
847
|
height?: number;
|
|
815
848
|
config?: {
|
|
@@ -828,13 +861,18 @@ interface Graph2DProps {
|
|
|
828
861
|
onBackgroundClick?: () => void;
|
|
829
862
|
}
|
|
830
863
|
|
|
831
|
-
declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, config, onNodeClick, onNodeHover, onLinkHover, onLinkClick, onBackgroundClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
|
|
864
|
+
declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, loading, config, onNodeClick, onNodeHover, onLinkHover, onLinkClick, onBackgroundClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
|
|
832
865
|
|
|
833
866
|
interface FullscreenCardProps {
|
|
834
867
|
children: any;
|
|
868
|
+
className?: string;
|
|
835
869
|
position: 'absolute' | 'fixed';
|
|
836
870
|
isActive: boolean;
|
|
871
|
+
top?: number;
|
|
872
|
+
left?: number;
|
|
873
|
+
right?: number;
|
|
874
|
+
bottom?: number;
|
|
837
875
|
}
|
|
838
|
-
declare const FullscreenCard: ({ isActive, position, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
876
|
+
declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
839
877
|
|
|
840
|
-
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 };
|