@centreon/ui 23.10.51 → 23.10.53
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 +3 -1
- package/src/Dashboard/Layout.tsx +4 -2
- package/src/Graph/BasicComponents/Axes/index.tsx +1 -1
- package/src/Graph/BasicComponents/Lines/RegularLines/index.tsx +6 -3
- package/src/Graph/BasicComponents/Lines/StackedLines/index.tsx +6 -3
- package/src/Graph/BasicComponents/Lines/Threshold/BasicThreshold.tsx +5 -3
- package/src/Graph/BasicComponents/Lines/Threshold/ThresholdWithPatternLines.tsx +5 -1
- package/src/Graph/BasicComponents/Lines/Threshold/ThresholdWithVariation.tsx +5 -1
- package/src/Graph/BasicComponents/Lines/Threshold/index.tsx +5 -1
- package/src/Graph/BasicComponents/Lines/index.tsx +6 -1
- package/src/Graph/BasicComponents/Lines/models.ts +3 -0
- package/src/Graph/Graph.tsx +40 -20
- package/src/Graph/Header/index.tsx +7 -7
- package/src/Graph/InteractiveComponents/AnchorPoint/TooltipAnchorPoint.tsx +48 -22
- package/src/Graph/InteractiveComponents/AnchorPoint/index.tsx +14 -12
- package/src/Graph/InteractiveComponents/TimeShiftZones/TimeShiftZone.tsx +1 -1
- package/src/Graph/index.stories.tsx +10 -0
- package/src/Graph/index.tsx +35 -23
- package/src/Graph/models.ts +1 -1
- package/src/InputField/Select/Autocomplete/Connected/index.tsx +9 -1
- package/src/InputField/Select/Autocomplete/Multi/index.tsx +7 -2
- package/src/RichTextEditor/ContentEditable.tsx +12 -9
- package/src/RichTextEditor/RichTextEditor.cypress.spec.tsx +109 -1
- package/src/RichTextEditor/RichTextEditor.tsx +19 -5
- package/src/RichTextEditor/plugins/AutoLinkPlugin/index.tsx +14 -5
- package/src/RichTextEditor/plugins/FloatingLinkEditorPlugin.tsx +14 -7
- package/src/RichTextEditor/plugins/ToolbarPlugin/BlockButtons.tsx +197 -0
- package/src/RichTextEditor/plugins/ToolbarPlugin/FormatButtons.tsx +3 -10
- package/src/RichTextEditor/plugins/ToolbarPlugin/MacrosButton.tsx +6 -1
- package/src/RichTextEditor/plugins/ToolbarPlugin/ToolbarPlugin.styles.ts +7 -0
- package/src/RichTextEditor/plugins/ToolbarPlugin/UndoRedoButtons.tsx +7 -3
- package/src/RichTextEditor/plugins/ToolbarPlugin/index.tsx +9 -7
- package/src/api/useGraphQuery/index.ts +92 -0
- package/src/api/useGraphQuery/models.ts +12 -0
- package/src/components/ItemComposition/Item.tsx +37 -0
- package/src/components/ItemComposition/ItemComposition.stories.tsx +78 -0
- package/src/components/ItemComposition/ItemComposition.styles.ts +26 -0
- package/src/components/ItemComposition/ItemComposition.tsx +41 -0
- package/src/components/ItemComposition/index.ts +6 -0
- package/src/components/Modal/Modal.styles.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/index.ts +3 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/AnchorPoint.styles.ts +0 -58
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from 'tss-react/mui';
|
|
2
|
-
|
|
3
|
-
interface StylesProps {
|
|
4
|
-
tooltipLeftAxisX?: number;
|
|
5
|
-
tooltipLeftAxisYLeft?: number;
|
|
6
|
-
tooltipLeftAxisYRight?: number;
|
|
7
|
-
tooltipTopAxisX?: number;
|
|
8
|
-
tooltipTopAxisYLeft?: number;
|
|
9
|
-
tooltipTopAxisYRight?: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const useStyles = makeStyles<StylesProps>()(
|
|
13
|
-
(
|
|
14
|
-
theme,
|
|
15
|
-
{
|
|
16
|
-
tooltipLeftAxisX,
|
|
17
|
-
tooltipTopAxisX,
|
|
18
|
-
tooltipLeftAxisYLeft,
|
|
19
|
-
tooltipTopAxisYLeft,
|
|
20
|
-
tooltipLeftAxisYRight,
|
|
21
|
-
tooltipTopAxisYRight
|
|
22
|
-
}
|
|
23
|
-
) => ({
|
|
24
|
-
tooltipAxis: {
|
|
25
|
-
'& > span': {
|
|
26
|
-
fontSize: 'inherit',
|
|
27
|
-
fontWeight: 'inherit',
|
|
28
|
-
lineHeight: 'inherit'
|
|
29
|
-
},
|
|
30
|
-
backgroundColor: theme.palette.background.tooltip,
|
|
31
|
-
border: 'unset',
|
|
32
|
-
borderRadius: theme.spacing(0.25),
|
|
33
|
-
color: theme.palette.primary.contrastText,
|
|
34
|
-
fontSize: '10px',
|
|
35
|
-
fontWeight: 500,
|
|
36
|
-
letterSpacing: '0.15px',
|
|
37
|
-
lineHeight: '100%',
|
|
38
|
-
padding: theme.spacing(0.375, 0.5),
|
|
39
|
-
position: 'absolute',
|
|
40
|
-
textAlign: 'center',
|
|
41
|
-
transform: 'translate(-50%, -50%)',
|
|
42
|
-
transformOrigin: 'center center',
|
|
43
|
-
transition: 'unset'
|
|
44
|
-
},
|
|
45
|
-
tooltipAxisBottom: {
|
|
46
|
-
left: tooltipLeftAxisX ?? 0,
|
|
47
|
-
top: tooltipTopAxisX ?? 0
|
|
48
|
-
},
|
|
49
|
-
tooltipAxisLeftY: {
|
|
50
|
-
left: tooltipLeftAxisYLeft ?? 0,
|
|
51
|
-
top: tooltipTopAxisYLeft ?? 0
|
|
52
|
-
},
|
|
53
|
-
tooltipLeftAxisRightY: {
|
|
54
|
-
left: tooltipLeftAxisYRight ?? 0,
|
|
55
|
-
top: tooltipTopAxisYRight ?? 0
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
);
|