@centreon/ui 25.1.5 → 25.1.7

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/Dashboard/Dashboard.styles.ts +76 -21
  3. package/src/Dashboard/Grid.tsx +2 -2
  4. package/src/Dashboard/Item.tsx +11 -9
  5. package/src/Dashboard/Layout.tsx +15 -32
  6. package/src/Dashboard/utils.ts +1 -1
  7. package/src/Dialog/Confirm/index.tsx +4 -2
  8. package/src/Dialog/Duplicate/index.tsx +6 -4
  9. package/src/Dialog/index.tsx +4 -1
  10. package/src/Form/FormButtons.tsx +1 -1
  11. package/src/Form/Inputs/Text.tsx +8 -4
  12. package/src/Graph/Chart/Chart.tsx +1 -1
  13. package/src/Graph/SingleBar/SingleBar.tsx +15 -8
  14. package/src/InputField/Number/Number.cypress.spec.tsx +6 -2
  15. package/src/InputField/Number/Number.tsx +10 -5
  16. package/src/InputField/Select/Autocomplete/Draggable/index.tsx +13 -3
  17. package/src/InputField/Select/Autocomplete/autoComplete.styles.ts +92 -0
  18. package/src/InputField/Select/Autocomplete/index.tsx +61 -129
  19. package/src/InputField/Text/index.tsx +46 -40
  20. package/src/Listing/Header/Cell/ListingHeaderCell.tsx +3 -1
  21. package/src/Listing/Listing.cypress.spec.tsx +2 -2
  22. package/src/Listing/Row/Row.tsx +1 -1
  23. package/src/ThemeProvider/palettes.ts +2 -2
  24. package/src/TopCounterElements/ResourceCounters.tsx +1 -3
  25. package/src/api/useMutationQuery/useOptimisticMutation.ts +8 -5
  26. package/src/components/Button/Icon/IconButton.tsx +32 -27
  27. package/src/components/CrudPage/Actions/Search.tsx +6 -2
  28. package/src/components/CrudPage/CrudPageRoot.tsx +3 -1
  29. package/src/components/DataTable/Item/DataTableItem.tsx +1 -1
  30. package/src/components/Form/Dashboard/GlobalRefreshFieldOption.tsx +7 -3
  31. package/src/components/Header/PageHeader/PageHeader.styles.ts +18 -20
  32. package/src/components/Layout/PageLayout/PageLayout.styles.ts +3 -3
@@ -9,8 +9,8 @@ const useStyles = makeStyles()((theme) => ({
9
9
  display: 'flex',
10
10
  flexDirection: 'row',
11
11
  h1: {
12
- font: 'normal normal 600 24px/24px Roboto',
13
- letterSpacing: '0.18px',
12
+ ...theme.typography.h5,
13
+ fontWeight: theme.typography.fontWeightMedium,
14
14
  margin: theme.spacing(0, 0, 1.5, 0)
15
15
  },
16
16
  justifyContent: 'space-between',
@@ -27,8 +27,7 @@ const useStyles = makeStyles()((theme) => ({
27
27
  alignItems: 'center',
28
28
  borderBottom: `1px solid ${theme.palette.header.page.border}`,
29
29
  display: 'flex',
30
- gap: theme.spacing(4),
31
- paddingBottom: theme.spacing(1.5)
30
+ gap: theme.spacing(4)
32
31
  },
33
32
  pageHeaderActions: {
34
33
  '& > button': {
@@ -47,13 +46,15 @@ const useStyles = makeStyles()((theme) => ({
47
46
  pageHeaderMain: {
48
47
  display: 'flex',
49
48
  flexGrow: 1,
50
- gap: theme.spacing(1)
49
+ gap: theme.spacing(1),
50
+ minHeight: theme.spacing(4.5)
51
51
  },
52
52
  pageHeaderMenu: {
53
53
  alignItems: 'flex-start',
54
54
  display: 'flex',
55
55
  position: 'relative',
56
- transform: `translateY(-${theme.spacing(0.25)})`
56
+ transform: `translateY(-${theme.spacing(0.25)})`,
57
+ alignSelf: 'center'
57
58
  },
58
59
  pageHeaderMessage: {
59
60
  alignItems: 'center',
@@ -87,20 +88,17 @@ const useStyles = makeStyles()((theme) => ({
87
88
  '& > span': {
88
89
  display: 'flex',
89
90
  flexDirection: 'row',
90
-
91
- gap: theme.spacing(2)
91
+ gap: theme.spacing(2),
92
+ alignItems: 'center'
92
93
  },
93
94
  display: 'flex',
94
-
95
95
  flexDirection: 'column',
96
-
97
- gap: theme.spacing(1),
98
-
96
+ alignSelf: 'flex-start',
99
97
  h1: {
100
- color: theme.palette.header.page.title,
101
- font: 'normal normal 700 24px/100% Roboto',
102
- letterSpacing: '0.15px',
103
- margin: theme.spacing(0)
98
+ ...theme.typography.h5,
99
+ fontWeight: theme.typography.fontWeightMedium,
100
+ margin: theme.spacing(0),
101
+ lineHeight: '1'
104
102
  }
105
103
  },
106
104
  pageHeaderTitleActions: {
@@ -110,16 +108,16 @@ const useStyles = makeStyles()((theme) => ({
110
108
  },
111
109
  alignItems: 'bottom',
112
110
  display: 'flex',
113
- gap: theme.spacing(1)
111
+ gap: theme.spacing(1),
112
+ paddingTop: theme.spacing(0.5)
114
113
  },
115
114
  pageHeaderTitleDescription: {
116
115
  color: theme.palette.header.page.description,
117
- font: 'normal normal 400 12px/16px Roboto',
118
- letterSpacing: '0.15px',
119
116
  maxWidth: '560px',
120
117
  overflow: 'hidden',
121
118
  textOverflow: 'ellipsis',
122
- whiteSpace: 'nowrap'
119
+ whiteSpace: 'nowrap',
120
+ lineHeight: '1.8'
123
121
  }
124
122
  }));
125
123
 
@@ -17,7 +17,7 @@ export const useStyles = makeStyles()((theme) => ({
17
17
  },
18
18
  display: 'flex',
19
19
  justifyContent: 'space-between',
20
- paddingBottom: theme.spacing(2.5)
20
+ paddingBottom: theme.spacing(1.5)
21
21
  },
22
22
  pageLayoutBody: {
23
23
  '&[data-has-background="true"]': {
@@ -29,7 +29,7 @@ export const useStyles = makeStyles()((theme) => ({
29
29
  display: 'grid',
30
30
  gridTemplateRows: 'auto',
31
31
  overflow: 'hidden',
32
- padding: theme.spacing(1.5, 3, 5)
32
+ padding: theme.spacing(1.5, 3, 1.5)
33
33
  },
34
34
  pageLayoutHeader: {
35
35
  '[data-variant="fixed-header"] &': {
@@ -40,6 +40,6 @@ export const useStyles = makeStyles()((theme) => ({
40
40
  top: 0,
41
41
  zIndex: `calc(${theme.zIndex.mobileStepper} - 100)`
42
42
  },
43
- padding: theme.spacing(3, 3, 0)
43
+ padding: theme.spacing(1, 3, 0)
44
44
  }
45
45
  }));