diff --git a/CHANGELOG.md b/CHANGELOG.md index eee5d3b..f8e0e7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,15 +8,21 @@ and this project adheres to ## [Unreleased] +## [6.0.2] - 2024-06-28 + +### Added + +- Added className prop to CheckBox and Radio components + ## [6.0.1] - 2024-06-26 ### Added -- Add className prop to Switch component +- Added className prop to Switch component ### Changed -- Update dependencies in package.json +- Updated dependencies in package.json - NPM audit fix ## [6.0.0] - 2024-06-11 @@ -325,7 +331,8 @@ and this project adheres to ## [0.0.7] - 2019-09-02 [unreleased]: - https://gitlab.nic.cz/turris/reforis/foris-js/-/compare/v6.0.1...master + https://gitlab.nic.cz/turris/reforis/foris-js/-/compare/v6.0.2...master +[6.0.2]: https://gitlab.nic.cz/turris/reforis/foris-js/-/compare/v6.0.1...v6.0.2 [6.0.1]: https://gitlab.nic.cz/turris/reforis/foris-js/-/compare/v6.0.0...v6.0.1 [6.0.0]: https://gitlab.nic.cz/turris/reforis/foris-js/-/compare/v5.6.1...v6.0.0 [5.6.1]: https://gitlab.nic.cz/turris/reforis/foris-js/-/compare/v5.6.0...v5.6.1 diff --git a/package-lock.json b/package-lock.json index b097182..1bbaa67 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "foris", - "version": "6.0.1", + "version": "6.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "foris", - "version": "6.0.1", + "version": "6.0.2", "license": "GPL-3.0", "dependencies": { "axios": "^1.7.2", diff --git a/package.json b/package.json index 106b379..7f781fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "foris", - "version": "6.0.1", + "version": "6.0.2", "description": "Foris JS library is a set of components and utils for reForis application and plugins.", "author": "CZ.NIC, z.s.p.o.", "repository": { diff --git a/src/bootstrap/CheckBox.js b/src/bootstrap/CheckBox.js index 0f7da40..7cf744d 100644 --- a/src/bootstrap/CheckBox.js +++ b/src/bootstrap/CheckBox.js @@ -17,17 +17,19 @@ CheckBox.propTypes = { helpText: PropTypes.string, /** Control if checkbox is clickable */ disabled: PropTypes.bool, + /** Additional class name */ + className: PropTypes.string, }; CheckBox.defaultProps = { disabled: false, }; -function CheckBox({ label, helpText, disabled, ...props }) { +function CheckBox({ label, helpText, disabled, className, ...props }) { const uid = useUID(); return ( -
+
Render radio set 1`] = ` Radios set label
Render radio set 1`] = `
Render radio set 1`] = `
Snapshot one module enabled. 1`] = ` + GHz + +
+ Snapshot one module enabled. 1`] = ` + +
+
+