From d69398ac06846fe115dc770f823ebbc15f56f3b8 Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Fri, 28 Jun 2024 10:29:41 +0300 Subject: [PATCH 1/3] Add className prop to CheckBox and Radio components --- src/bootstrap/CheckBox.js | 6 ++++-- src/bootstrap/RadioSet.js | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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 ( -
+
Date: Fri, 28 Jun 2024 10:30:25 +0300 Subject: [PATCH 2/3] Update Snapshots --- src/bootstrap/__tests__/__snapshots__/RadioSet.test.js.snap | 6 +++--- .../__tests__/__snapshots__/WiFiSettings.test.js.snap | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bootstrap/__tests__/__snapshots__/RadioSet.test.js.snap b/src/bootstrap/__tests__/__snapshots__/RadioSet.test.js.snap index 84db55e..47e6e9c 100644 --- a/src/bootstrap/__tests__/__snapshots__/RadioSet.test.js.snap +++ b/src/bootstrap/__tests__/__snapshots__/RadioSet.test.js.snap @@ -11,7 +11,7 @@ exports[` 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`] = ` + +
+
+ Date: Fri, 28 Jun 2024 13:57:32 +0300 Subject: [PATCH 3/3] Bump v6.0.2 * Add className prop to CheckBox and Radio components --- CHANGELOG.md | 13 ++++++++++--- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) 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": {