@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.
Files changed (36) hide show
  1. package/dist/eye_light-3WS4REO5.png +0 -0
  2. package/dist/eye_light_hover-PVS4UAB4.png +0 -0
  3. package/dist/group_light-RVCSCGRJ.png +0 -0
  4. package/dist/group_light_hover-LVI5PRZM.png +0 -0
  5. package/dist/index.d.mts +43 -5
  6. package/dist/index.d.ts +43 -5
  7. package/dist/index.js +184 -170
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +268 -254
  10. package/dist/index.mjs.map +1 -1
  11. package/package.json +2 -1
  12. package/src/Core/Header/Header.tsx +1 -1
  13. package/src/Core/Sidebar/Sidebar.tsx +3 -3
  14. package/src/Core/Sidebar/SidebarDelimeter.tsx +1 -1
  15. package/src/FullscreenCard/FullscreenCard.tsx +39 -8
  16. package/src/Graph2D/Graph2D.tsx +71 -70
  17. package/src/Graph2D/GraphLoader.tsx +84 -0
  18. package/src/Graph2D/eye_light.png +0 -0
  19. package/src/Graph2D/eye_light_hover.png +0 -0
  20. package/src/Graph2D/group_light.png +0 -0
  21. package/src/Graph2D/group_light_hover.png +0 -0
  22. package/src/Graph2D/types.ts +1 -0
  23. package/src/Layouts/PageLayout/PageLayout.tsx +6 -3
  24. package/src/Theme/ThemeProvider.tsx +9 -3
  25. package/src/Theme/index.ts +1 -1
  26. package/src/Theme/themes/config.ts +41 -0
  27. package/src/Theme/themes/dark.ts +703 -0
  28. package/src/Theme/themes/index.ts +2 -0
  29. package/src/Theme/{theme.ts → themes/light.ts} +30 -41
  30. package/src/Theme/types.ts +24 -0
  31. package/dist/cross_light-JTZWFLSV.png +0 -0
  32. package/dist/cross_light_hover-UQZ7E3CW.png +0 -0
  33. package/dist/eye_light-EQXRQBFN.png +0 -0
  34. package/dist/eye_light_hover-5XFRPJS4.png +0 -0
  35. package/src/Graph2D/cross_light.png +0 -0
  36. package/src/Graph2D/cross_light_hover.png +0 -0
@@ -1,8 +1,8 @@
1
1
  import { DefaultTheme } from 'styled-components/dist/types';
2
2
 
3
- import 'styled-components';
4
- import { convertPaletteToRem } from './utils';
5
- import { Theme } from './types';
3
+ import { convertPaletteToRem } from '../utils';
4
+ import { Theme } from '../types';
5
+ import { breakpoints, typography, zIndex } from './config';
6
6
 
7
7
  /**
8
8
  * Палітра, що містить як кольори, так і розміри в px
@@ -14,6 +14,7 @@ export const lightThemePx: Theme = {
14
14
  // Секція кольорів з теми
15
15
  colors: {
16
16
  background: '#ffffff',
17
+ backgroundBase: '#F7F8FC',
17
18
  primary: {
18
19
  main: '#0042EC',
19
20
  light: '#80A0F5',
@@ -39,42 +40,9 @@ export const lightThemePx: Theme = {
39
40
  info: '#2F80ED',
40
41
  },
41
42
  // Типографія
42
- typography: {
43
- fontFamily:
44
- 'Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;',
45
- lineHeight: 1.49,
46
- // Розміри текстових елементів
47
- variants: {
48
- h1: {
49
- fontSize: 22,
50
- },
51
- h2: {
52
- fontSize: 16,
53
- },
54
- h3: {
55
- fontSize: 14,
56
- },
57
- body: {
58
- fontSize: 12,
59
- },
60
- },
61
- },
62
- breakpoints: {
63
- xs: 320,
64
- s: 576,
65
- m: 768,
66
- l: 992,
67
- xl: 1200,
68
- },
69
- zIndex: {
70
- dropdown: 1000,
71
- sticky: 1020,
72
- fixed: 1030,
73
- backdrop: 1040,
74
- modal: 1050,
75
- popover: 1060,
76
- tooltip: 1070,
77
- },
43
+ typography,
44
+ breakpoints,
45
+ zIndex,
78
46
  line: {
79
47
  size: 1,
80
48
  color: '#EBEBEB',
@@ -455,6 +423,7 @@ export const lightThemePx: Theme = {
455
423
  // Компонент Sidebar
456
424
  sidebar: {
457
425
  background: '#FFFFFF',
426
+ border: '#EBEBEB',
458
427
  width: 224,
459
428
  collapsedWidth: 65,
460
429
  text: {
@@ -706,8 +675,28 @@ export const lightThemePx: Theme = {
706
675
  },
707
676
  background: '#FFFFFF',
708
677
  },
678
+ // Graph2D
679
+ graph2D: {
680
+ ring: {
681
+ highlightFill: 'rgba(255, 165, 0, 0.3)',
682
+ },
683
+ button: {
684
+ stroke: '#e5e5e5',
685
+ normalFill: 'rgba(255, 255, 255, 0.8)',
686
+ hoverFill: 'rgba(230, 230, 230, 0.9)',
687
+ },
688
+ grid: {
689
+ dotColor: 'rgba(0, 0, 0, 0.5)',
690
+ },
691
+ link: {
692
+ normal: '#999',
693
+ highlighted: '#ff9900',
694
+ textColor: '#666',
695
+ highlightedTextColor: '#663300',
696
+ textBgColor: 'rgba(255, 255, 255, 0.8)',
697
+ highlightedTextBgColor: 'rgba(255, 230, 204, 0.9)',
698
+ },
699
+ },
709
700
  };
710
701
 
711
- // Конвертуємо всі розміри з px в rem
712
702
  export const lightTheme = convertPaletteToRem(lightThemePx, lightThemePx.baseSize) as DefaultTheme;
713
- export const darkTheme = convertPaletteToRem(lightThemePx, lightThemePx.baseSize) as DefaultTheme;
@@ -62,6 +62,7 @@ export type Theme = {
62
62
  baseSize: number;
63
63
  colors: {
64
64
  background: string;
65
+ backgroundBase: string;
65
66
  primary: {
66
67
  main: string;
67
68
  light: string;
@@ -118,6 +119,7 @@ export type Theme = {
118
119
  };
119
120
  sidebar: {
120
121
  background: string;
122
+ border: string;
121
123
  width: number;
122
124
  collapsedWidth: number;
123
125
  text: {
@@ -205,6 +207,28 @@ export type Theme = {
205
207
  color: string;
206
208
  };
207
209
  };
210
+ // Graph2D component
211
+ graph2D: {
212
+ ring: {
213
+ highlightFill: string;
214
+ };
215
+ button: {
216
+ stroke: string;
217
+ normalFill: string;
218
+ hoverFill: string;
219
+ };
220
+ grid: {
221
+ dotColor: string;
222
+ };
223
+ link: {
224
+ normal: string;
225
+ highlighted: string;
226
+ textColor: string;
227
+ highlightedTextColor: string;
228
+ textBgColor: string;
229
+ highlightedTextBgColor: string;
230
+ };
231
+ };
208
232
  };
209
233
 
210
234
  //TODO check and refactoring
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file