@centreon/ui 23.10.46 → 23.10.47

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.46",
3
+ "version": "23.10.47",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -7,11 +7,10 @@ import { makeStyles } from 'tss-react/mui';
7
7
  import { WizardContentProps } from './models';
8
8
  import ActionsBar from './ActionsBar';
9
9
 
10
- const useStyles = makeStyles()((theme) => ({
10
+ const useStyles = makeStyles()(() => ({
11
11
  content: {
12
12
  height: '100%',
13
- overflow: 'auto',
14
- padding: theme.spacing(2, 3, 1, 3)
13
+ overflow: 'auto'
15
14
  },
16
15
  form: {
17
16
  display: 'flex',
@@ -38,7 +38,8 @@ const Wizard = ({
38
38
  onClose = undefined,
39
39
  confirmDialogLabels = undefined,
40
40
  actionsBarLabels = actionsBarLabelsDefaultValues,
41
- displayConfirmDialog
41
+ displayConfirmDialog,
42
+ ...rest
42
43
  }: WizardProps): JSX.Element => {
43
44
  const { classes } = useStyles();
44
45
  const [currentStep, setCurrentStep] = useState(0);
@@ -119,6 +120,7 @@ const Wizard = ({
119
120
  maxWidth={width}
120
121
  open={open}
121
122
  onClose={handleClose}
123
+ {...rest}
122
124
  >
123
125
  <Stepper currentStep={currentStep} steps={steps} />
124
126
  <Formik
@@ -1,5 +1,7 @@
1
1
  import { FormikValues, FormikErrors, FormikHelpers } from 'formik';
2
2
 
3
+ import { DialogProps } from '@mui/material';
4
+
3
5
  export interface StepComponentProps {
4
6
  disableNextOnSendingRequests: (sendingRequests: Array<boolean>) => void;
5
7
  }
@@ -38,7 +40,10 @@ interface ConfirmDialogLabels {
38
40
  labelTitle: string;
39
41
  }
40
42
 
43
+ type ValueOf<T> = T[keyof T];
44
+
41
45
  export interface WizardProps {
46
+ [key: string]: ValueOf<DialogProps>;
42
47
  actionsBarLabels?: ActionsBarLabels;
43
48
  confirmDialogLabels?: ConfirmDialogLabels;
44
49
  displayConfirmDialog?: boolean;