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.
- package/bootstrap/CheckBox.js +4 -2
- package/bootstrap/RadioSet.js +3 -2
- package/foris-6.0.2.tgz +0 -0
- package/package.json +1 -1
- package/foris-6.0.1.tgz +0 -0
package/bootstrap/CheckBox.js
CHANGED
|
@@ -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"
|
package/bootstrap/RadioSet.js
CHANGED
|
@@ -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={
|
|
92
|
+
className={`${className || "mb-3"} ${inline ? "form-check form-check-inline" : ""}`.trim()}
|
|
92
93
|
>
|
|
93
94
|
<input
|
|
94
95
|
id={id}
|
package/foris-6.0.2.tgz
ADDED
|
Binary file
|
package/package.json
CHANGED
package/foris-6.0.1.tgz
DELETED
|
Binary file
|