@rjsf/semantic-ui 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/semantic-ui",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -61,16 +61,16 @@
61
61
  ]
62
62
  },
63
63
  "peerDependencies": {
64
- "@rjsf/core": "^6.0.0-beta.23",
65
- "@rjsf/utils": "^6.0.0-beta.23",
64
+ "@rjsf/core": "^6.x",
65
+ "@rjsf/utils": "^6.x",
66
66
  "react": ">=18",
67
67
  "semantic-ui-react": "^2.1.3"
68
68
  },
69
69
  "devDependencies": {
70
- "@rjsf/core": "^6.0.0-beta.23",
71
- "@rjsf/snapshot-tests": "^6.0.0-beta.23",
72
- "@rjsf/utils": "^6.0.0-beta.23",
73
- "@rjsf/validator-ajv8": "^6.0.0-beta.23",
70
+ "@rjsf/core": "^6.x",
71
+ "@rjsf/snapshot-tests": "^6.x",
72
+ "@rjsf/utils": "^6.x",
73
+ "@rjsf/validator-ajv8": "^6.x",
74
74
  "atob": "^2.1.2",
75
75
  "eslint": "^8.57.1",
76
76
  "semantic-ui-react": "^2.1.5"
@@ -52,6 +52,8 @@ export default function FieldTemplate<
52
52
  return <div style={{ display: 'none' }}>{children}</div>;
53
53
  }
54
54
 
55
+ const isCheckbox = uiOptions.widget === 'checkbox';
56
+
55
57
  return (
56
58
  <WrapIfAdditionalTemplate
57
59
  classNames={classNames}
@@ -66,7 +68,7 @@ export default function FieldTemplate<
66
68
  <Form.Group key={id} widths='equal' grouped>
67
69
  <MaybeWrap wrap={wrapContent} className='sui-field-content'>
68
70
  {children}
69
- {displayLabel && rawDescription && (
71
+ {displayLabel && rawDescription && !isCheckbox && (
70
72
  <MaybeWrap wrap={wrapLabel} className='sui-field-label'>
71
73
  {description}
72
74
  </MaybeWrap>