@sb1/ffe-form-react 14.0.16 → 16.0.0
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/es/BaseRadioButton.js +3 -1
- package/es/Checkbox.js +3 -1
- package/lib/BaseRadioButton.js +3 -1
- package/lib/Checkbox.js +3 -1
- package/package.json +3 -3
package/es/BaseRadioButton.js
CHANGED
|
@@ -62,7 +62,9 @@ var BaseRadioButton = /*#__PURE__*/function (_Component) {
|
|
|
62
62
|
htmlFor: this.id
|
|
63
63
|
}, labelProps, {
|
|
64
64
|
className: labelClasses
|
|
65
|
-
}),
|
|
65
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
66
|
+
className: "ffe-radio-input__content"
|
|
67
|
+
}, children)), tooltip && /*#__PURE__*/React.createElement(Tooltip, tooltipProps, tooltip));
|
|
66
68
|
}
|
|
67
69
|
}]);
|
|
68
70
|
return BaseRadioButton;
|
package/es/Checkbox.js
CHANGED
|
@@ -30,7 +30,9 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
30
30
|
}, rest)), typeof children === 'function' ? children(labelProps) :
|
|
31
31
|
/*#__PURE__*/
|
|
32
32
|
// eslint-disable-next-line jsx-a11y/label-has-for
|
|
33
|
-
React.createElement("label", labelProps,
|
|
33
|
+
React.createElement("label", labelProps, /*#__PURE__*/React.createElement("span", {
|
|
34
|
+
className: "ffe-checkbox__content"
|
|
35
|
+
}, !hiddenLabel && children)));
|
|
34
36
|
});
|
|
35
37
|
Checkbox.propTypes = {
|
|
36
38
|
/** Removes vertical margins from the checkbox */
|
package/lib/BaseRadioButton.js
CHANGED
|
@@ -71,7 +71,9 @@ var BaseRadioButton = /*#__PURE__*/function (_Component) {
|
|
|
71
71
|
htmlFor: this.id
|
|
72
72
|
}, labelProps, {
|
|
73
73
|
className: labelClasses
|
|
74
|
-
}),
|
|
74
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
75
|
+
className: "ffe-radio-input__content"
|
|
76
|
+
}, children)), tooltip && /*#__PURE__*/_react.default.createElement(_Tooltip.default, tooltipProps, tooltip));
|
|
75
77
|
}
|
|
76
78
|
}]);
|
|
77
79
|
return BaseRadioButton;
|
package/lib/Checkbox.js
CHANGED
|
@@ -40,7 +40,9 @@ var Checkbox = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
40
40
|
}, rest)), typeof children === 'function' ? children(labelProps) :
|
|
41
41
|
/*#__PURE__*/
|
|
42
42
|
// eslint-disable-next-line jsx-a11y/label-has-for
|
|
43
|
-
_react.default.createElement("label", labelProps,
|
|
43
|
+
_react.default.createElement("label", labelProps, /*#__PURE__*/_react.default.createElement("span", {
|
|
44
|
+
className: "ffe-checkbox__content"
|
|
45
|
+
}, !hiddenLabel && children)));
|
|
44
46
|
});
|
|
45
47
|
Checkbox.propTypes = {
|
|
46
48
|
/** Removes vertical margins from the checkbox */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-form-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "React component for form elements in ffe",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@sb1/ffe-collapse-react": "^2.0.10",
|
|
29
|
-
"@sb1/ffe-form": "^
|
|
29
|
+
"@sb1/ffe-form": "^28.0.0",
|
|
30
30
|
"@sb1/ffe-icons-react": "^9.0.3",
|
|
31
31
|
"classnames": "^2.3.1",
|
|
32
32
|
"uuid": "^9.0.0"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "eba90ee7c4b274041c749177c0d27daee9c4a2a0"
|
|
49
49
|
}
|