@centreon/ui 23.10.36 → 23.10.38

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "23.10.36",
3
+ "version": "23.10.38",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -95,7 +95,11 @@ const CollapsibleGroup = ({
95
95
  <ContainerComponent>
96
96
  {isCollapsible && <CollapseIcon />}
97
97
  <div className={classes.groupTitleIcon}>
98
- <Typography className="groupText" variant="h5">
98
+ <Typography
99
+ className="groupText"
100
+ variant="h5"
101
+ {...group?.titleAttributes}
102
+ >
99
103
  {t(group?.name as string)}
100
104
  </Typography>
101
105
  {group?.EndIcon && (
@@ -1,6 +1,6 @@
1
1
  import { FormikValues } from 'formik';
2
2
 
3
- import { SvgIconProps } from '@mui/material';
3
+ import { SvgIconProps, TypographyProps } from '@mui/material';
4
4
 
5
5
  import { SelectEntry } from '../../InputField/Select';
6
6
  import { ConditionsSearchParameter } from '../../api/buildListingEndpoint/models';
@@ -104,4 +104,5 @@ export interface Group {
104
104
  TooltipContent?: () => JSX.Element;
105
105
  name: string;
106
106
  order: number;
107
+ titleAttributes?: TypographyProps;
107
108
  }
@@ -283,10 +283,7 @@ export const getTheme = (mode: ThemeMode): ThemeOptions => ({
283
283
  caption: {
284
284
  fontSize: '0.625rem'
285
285
  },
286
- fontFamily: 'Roboto, Arial',
287
- formTitle: {
288
- fontSize: '1.125rem'
289
- }
286
+ fontFamily: 'Roboto, Arial'
290
287
  }
291
288
  });
292
289