@rjsf/fluentui-rc 6.0.1 → 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/fluentui-rc",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "FluentUI React Components theme, fields and widgets for react-jsonschema-form",
5
5
  "scripts": {
6
6
  "build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
@@ -73,9 +73,9 @@
73
73
  "react": ">=18"
74
74
  },
75
75
  "devDependencies": {
76
- "@fluentui/react-components": "^9.72.3",
76
+ "@fluentui/react-components": "^9.72.4",
77
77
  "@fluentui/react-icons": "^2.0.313",
78
- "@fluentui/react-migration-v0-v9": "^9.6.11",
78
+ "@fluentui/react-migration-v0-v9": "^9.6.12",
79
79
  "@rjsf/core": "^6.x",
80
80
  "@rjsf/snapshot-tests": "^6.x",
81
81
  "@rjsf/utils": "^6.x",
@@ -51,6 +51,7 @@ export default function FieldTemplate<
51
51
  if (hidden) {
52
52
  return <div style={{ display: 'none' }}>{children}</div>;
53
53
  }
54
+ const isCheckbox = uiOptions.widget === 'checkbox';
54
55
  return (
55
56
  <WrapIfAdditionalTemplate
56
57
  classNames={classNames}
@@ -69,7 +70,7 @@ export default function FieldTemplate<
69
70
  >
70
71
  <Field validationState={rawErrors.length ? 'error' : undefined} required={required}>
71
72
  {children}
72
- {displayLabel && rawDescription ? (
73
+ {displayLabel && rawDescription && !isCheckbox ? (
73
74
  <Text as='p' block style={{ marginTop: 0, marginBottom: 0 }}>
74
75
  {description}
75
76
  </Text>