@centreon/ui 23.10.1-release-23-10-next.21 → 23.10.1-release-23-10-next.22

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.1-release-23-10-next.21",
3
+ "version": "23.10.1-release-23-10-next.22",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -29,6 +29,7 @@ const actionsBarLabelsDefaultValues = {
29
29
  };
30
30
 
31
31
  const Wizard = ({
32
+ classNameDialogContent,
32
33
  steps,
33
34
  onSubmit = undefined,
34
35
  initialValues = {},
@@ -41,7 +42,7 @@ const Wizard = ({
41
42
  displayConfirmDialog,
42
43
  ...rest
43
44
  }: WizardProps): JSX.Element => {
44
- const { classes } = useStyles();
45
+ const { classes, cx } = useStyles();
45
46
  const [currentStep, setCurrentStep] = useState(0);
46
47
  const [sendingRequest, setSendingRequest] = useState(false);
47
48
  const [openConfirm, setOpenConfirm] = useState(false);
@@ -131,7 +132,9 @@ const Wizard = ({
131
132
  validationSchema={validationSchema}
132
133
  onSubmit={submit}
133
134
  >
134
- <DialogContent className={classes.dialogContent}>
135
+ <DialogContent
136
+ className={cx(classes.dialogContent, classNameDialogContent)}
137
+ >
135
138
  <WizardContent
136
139
  actionsBarLabels={actionsBarLabels}
137
140
  currentStep={currentStep}
@@ -45,6 +45,7 @@ type ValueOf<T> = T[keyof T];
45
45
  export interface WizardProps {
46
46
  [key: string]: ValueOf<DialogProps>;
47
47
  actionsBarLabels?: ActionsBarLabels;
48
+ classNameDialogContent?: string;
48
49
  confirmDialogLabels?: ConfirmDialogLabels;
49
50
  displayConfirmDialog?: boolean;
50
51
  fullHeight?: boolean;