@cyber-harbour/ui 1.0.35 → 1.0.37
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 +39 -3
- package/dist/index.d.ts +39 -3
- package/dist/index.js +170 -165
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +170 -165
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/Header/Header.tsx +1 -1
- package/src/Core/Sidebar/Sidebar.tsx +4 -4
- package/src/Core/Sidebar/SidebarDelimeter.tsx +1 -1
- package/src/Core/Sidebar/SidebarItem.tsx +8 -8
- package/src/Graph2D/Graph2D.tsx +20 -14
- package/src/Graph2D/GraphLoader.tsx +9 -21
- package/src/Layouts/PageLayout/PageLayout.tsx +6 -3
- package/src/Theme/GlobalStyle.tsx +9 -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 +707 -0
- package/src/Theme/themes/index.ts +2 -0
- package/src/Theme/{theme.ts → themes/light.ts} +45 -52
- package/src/Theme/types.ts +28 -0
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,31 @@ 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
|
+
};
|
|
237
|
+
contentLoader: {
|
|
238
|
+
foreground: string;
|
|
239
|
+
background: string;
|
|
240
|
+
};
|
|
211
241
|
};
|
|
212
242
|
type ThemeColors = Theme['colors'];
|
|
213
243
|
type ColorCategory = keyof ThemeColors;
|
|
@@ -272,6 +302,12 @@ declare const getBreakpoint: (theme: DefaultTheme, size?: Breakpoint) => string;
|
|
|
272
302
|
*/
|
|
273
303
|
declare const lightThemePx: Theme;
|
|
274
304
|
declare const lightTheme: DefaultTheme$1;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Палітра, що містить як кольори, так і розміри в px
|
|
308
|
+
* Кольори взято з теми, розміри будуть автоматично конвертовані в rem
|
|
309
|
+
*/
|
|
310
|
+
declare const darkThemePx: Theme;
|
|
275
311
|
declare const darkTheme: DefaultTheme$1;
|
|
276
312
|
|
|
277
313
|
type MarginProps = {
|
|
@@ -843,4 +879,4 @@ interface FullscreenCardProps {
|
|
|
843
879
|
}
|
|
844
880
|
declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
845
881
|
|
|
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 };
|
|
882
|
+
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,31 @@ 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
|
+
};
|
|
237
|
+
contentLoader: {
|
|
238
|
+
foreground: string;
|
|
239
|
+
background: string;
|
|
240
|
+
};
|
|
211
241
|
};
|
|
212
242
|
type ThemeColors = Theme['colors'];
|
|
213
243
|
type ColorCategory = keyof ThemeColors;
|
|
@@ -272,6 +302,12 @@ declare const getBreakpoint: (theme: DefaultTheme, size?: Breakpoint) => string;
|
|
|
272
302
|
*/
|
|
273
303
|
declare const lightThemePx: Theme;
|
|
274
304
|
declare const lightTheme: DefaultTheme$1;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Палітра, що містить як кольори, так і розміри в px
|
|
308
|
+
* Кольори взято з теми, розміри будуть автоматично конвертовані в rem
|
|
309
|
+
*/
|
|
310
|
+
declare const darkThemePx: Theme;
|
|
275
311
|
declare const darkTheme: DefaultTheme$1;
|
|
276
312
|
|
|
277
313
|
type MarginProps = {
|
|
@@ -843,4 +879,4 @@ interface FullscreenCardProps {
|
|
|
843
879
|
}
|
|
844
880
|
declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
845
881
|
|
|
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 };
|
|
882
|
+
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 };
|