@rjsf/mui 6.0.0 → 6.0.2

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": "@rjsf/mui",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -64,8 +64,8 @@
64
64
  "@emotion/styled": "^11.6.0",
65
65
  "@mui/icons-material": "^7.0.0",
66
66
  "@mui/material": "^7.0.0",
67
- "@rjsf/core": "^6.0.0-beta.23",
68
- "@rjsf/utils": "^6.0.0-beta.23",
67
+ "@rjsf/core": "^6.x",
68
+ "@rjsf/utils": "^6.x",
69
69
  "react": ">=18"
70
70
  },
71
71
  "devDependencies": {
@@ -74,10 +74,10 @@
74
74
  "@emotion/styled": "^11.14.1",
75
75
  "@mui/icons-material": "^7.3.4",
76
76
  "@mui/material": "^7.3.4",
77
- "@rjsf/core": "^6.0.0-beta.23",
78
- "@rjsf/snapshot-tests": "^6.0.0-beta.23",
79
- "@rjsf/utils": "^6.0.0-beta.23",
80
- "@rjsf/validator-ajv8": "^6.0.0-beta.23",
77
+ "@rjsf/core": "^6.x",
78
+ "@rjsf/snapshot-tests": "^6.x",
79
+ "@rjsf/utils": "^6.x",
80
+ "@rjsf/validator-ajv8": "^6.x",
81
81
  "eslint": "^8.57.1"
82
82
  },
83
83
  "publishConfig": {
@@ -36,7 +36,7 @@ export default function ArrayFieldItemTemplate<
36
36
  };
37
37
  return (
38
38
  <Grid container={true} alignItems='center'>
39
- <Grid size='auto' style={{ overflow: 'auto' }}>
39
+ <Grid size={{ xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 }} style={{ overflow: 'auto' }}>
40
40
  <Box mb={2}>
41
41
  <Paper elevation={2}>
42
42
  <Box p={2}>{children}</Box>
@@ -52,6 +52,9 @@ export default function FieldTemplate<
52
52
  if (hidden) {
53
53
  return <div style={{ display: 'none' }}>{children}</div>;
54
54
  }
55
+
56
+ const isCheckbox = uiOptions.widget === 'checkbox';
57
+
55
58
  return (
56
59
  <WrapIfAdditionalTemplate
57
60
  classNames={classNames}
@@ -70,7 +73,7 @@ export default function FieldTemplate<
70
73
  >
71
74
  <FormControl fullWidth={true} error={rawErrors.length ? true : false} required={required}>
72
75
  {children}
73
- {displayLabel && rawDescription ? (
76
+ {displayLabel && !isCheckbox && rawDescription ? (
74
77
  <Typography variant='caption' color='textSecondary'>
75
78
  {description}
76
79
  </Typography>