@centreon/ui 26.7.8 → 26.9.0
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/package.json
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
import AccountTreeIcon from '@mui/icons-material/AccountTree';
|
|
2
1
|
import type { SvgIconProps } from '@mui/material';
|
|
3
2
|
|
|
4
3
|
import BaseIcon from './BaseIcon';
|
|
5
4
|
|
|
5
|
+
const icon = (
|
|
6
|
+
<g>
|
|
7
|
+
<path
|
|
8
|
+
d="M6.94873 13.4287V19.1429L11.8975 22L16.8463 19.1429V13.4287L11.8975 10.5716L6.94873 13.4287Z"
|
|
9
|
+
fill="none"
|
|
10
|
+
stroke="currentColor"
|
|
11
|
+
strokeWidth="2"
|
|
12
|
+
/>
|
|
13
|
+
<path
|
|
14
|
+
d="M2 4.85709V10.5713L6.9488 13.4284L11.8976 10.5713V4.85709L6.9488 2L2 4.85709Z"
|
|
15
|
+
fill="none"
|
|
16
|
+
stroke="currentColor"
|
|
17
|
+
strokeWidth="2"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M11.8975 4.85709V10.5713L16.8463 13.4284L21.7951 10.5713V4.85709L16.8463 2L11.8975 4.85709Z"
|
|
21
|
+
fill="none"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
strokeWidth="2"
|
|
24
|
+
/>
|
|
25
|
+
</g>
|
|
26
|
+
);
|
|
27
|
+
|
|
6
28
|
export const BusinessActivityIcon = (props: SvgIconProps): JSX.Element => (
|
|
7
|
-
<BaseIcon
|
|
8
|
-
dataTestId="BusinessActivityIcon"
|
|
9
|
-
Icon={AccountTreeIcon}
|
|
10
|
-
{...props}
|
|
11
|
-
/>
|
|
29
|
+
<BaseIcon dataTestId="BusinessActivityIcon" Icon={icon} {...props} />
|
|
12
30
|
);
|
package/src/Icon/HostIcon.tsx
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { Dns } from '@mui/icons-material';
|
|
2
1
|
import type { SvgIconProps } from '@mui/material';
|
|
3
2
|
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
|
|
4
5
|
import BaseIcon from './BaseIcon';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
<
|
|
7
|
+
const icon = (
|
|
8
|
+
<g>
|
|
9
|
+
<path d="M4 21C3.45 21 2.97917 20.8042 2.5875 20.4125C2.19583 20.0208 2 19.55 2 19V5C2 4.45 2.19583 3.97917 2.5875 3.5875C2.97917 3.19583 3.45 3 4 3H9C9.55 3 10.0208 3.19583 10.4125 3.5875C10.8042 3.97917 11 4.45 11 5V19C11 19.55 10.8042 20.0208 10.4125 20.4125C10.0208 20.8042 9.55 21 9 21H4ZM15 21C14.45 21 13.9792 20.8042 13.5875 20.4125C13.1958 20.0208 13 19.55 13 19V5C13 4.45 13.1958 3.97917 13.5875 3.5875C13.9792 3.19583 14.45 3 15 3H20C20.55 3 21.0208 3.19583 21.4125 3.5875C21.8042 3.97917 22 4.45 22 5V19C22 19.55 21.8042 20.0208 21.4125 20.4125C21.0208 20.8042 20.55 21 20 21H15ZM4 19H9V5H4V19ZM15 19H20V5H15V19ZM5 15H8V13H5V15ZM16 15H19V13H16V15ZM5 12H8V10H5V12ZM16 12H19V10H16V12ZM5 9H8V7H5V9ZM16 9H19V7H16V9Z" />
|
|
10
|
+
</g>
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
export const HostIcon = (props: SvgIconProps): ReactElement => (
|
|
14
|
+
<BaseIcon dataTestId="HostIcon" Icon={icon} {...props} />
|
|
8
15
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
|
|
2
2
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SvgIconProps } from '@mui/material';
|
|
4
4
|
import { Badge, ClickAwayListener } from '@mui/material';
|
|
5
5
|
|
|
6
|
-
import { useEffect, useState } from 'react';
|
|
6
|
+
import { ComponentType, useEffect, useState } from 'react';
|
|
7
7
|
import { makeStyles } from 'tss-react/mui';
|
|
8
8
|
|
|
9
9
|
import useCloseOnLegacyPage from './useCloseOnLegacyPage';
|
|
@@ -98,7 +98,7 @@ const useStyles = makeStyles()((theme) => ({
|
|
|
98
98
|
}));
|
|
99
99
|
|
|
100
100
|
interface TopCounterLayoutProps {
|
|
101
|
-
Icon:
|
|
101
|
+
Icon: ComponentType<SvgIconProps>;
|
|
102
102
|
renderIndicators: () => JSX.Element;
|
|
103
103
|
renderSubMenu: (params: { closeSubMenu: () => void }) => JSX.Element;
|
|
104
104
|
showPendingBadge?: boolean;
|