@sb1/ffe-form-react 14.0.15 → 15.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/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, !hiddenLabel && children));
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/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, !hiddenLabel && children));
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": "14.0.15",
3
+ "version": "15.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": "^26.0.5",
29
+ "@sb1/ffe-form": "^27.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": "0ff375001e4b4c81f9005e99687de4a53e959d7c"
48
+ "gitHead": "497fc1228aa51badd6f0043299c6f49d6b442057"
49
49
  }