foris 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.
@@ -17,17 +17,19 @@ CheckBox.propTypes = {
17
17
  helpText: PropTypes.string,
18
18
  /** Control if checkbox is clickable */
19
19
  disabled: PropTypes.bool,
20
+ /** Additional class name */
21
+ className: PropTypes.string,
20
22
  };
21
23
 
22
24
  CheckBox.defaultProps = {
23
25
  disabled: false,
24
26
  };
25
27
 
26
- function CheckBox({ label, helpText, disabled, ...props }) {
28
+ function CheckBox({ label, helpText, disabled, className, ...props }) {
27
29
  const uid = useUID();
28
30
 
29
31
  return (
30
- <div className="mb-3 form-check">
32
+ <div className={`${className || "mb-3"} form-check`.trim()}>
31
33
  <input
32
34
  className="form-check-input"
33
35
  type="checkbox"
@@ -83,12 +83,13 @@ Radio.propTypes = {
83
83
  id: PropTypes.string.isRequired,
84
84
  inline: PropTypes.bool,
85
85
  helpText: PropTypes.string,
86
+ className: PropTypes.string,
86
87
  };
87
88
 
88
- export function Radio({ label, id, helpText, inline, ...props }) {
89
+ export function Radio({ label, id, helpText, inline, className, ...props }) {
89
90
  return (
90
91
  <div
91
- className={`mb-2 ${inline ? "form-check form-check-inline" : ""}`.trim()}
92
+ className={`${className || "mb-3"} ${inline ? "form-check form-check-inline" : ""}`.trim()}
92
93
  >
93
94
  <input
94
95
  id={id}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foris",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "Foris JS library is a set of components and utils for reForis application and plugins.",
5
5
  "author": "CZ.NIC, z.s.p.o.",
6
6
  "repository": {
package/foris-6.0.1.tgz DELETED
Binary file