dibk-design 2.1.9 → 2.1.10

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.
@@ -14,20 +14,12 @@ var CheckBoxList = function CheckBoxList(props) {
14
14
  var renderChildElements = function renderChildElements(childElements) {
15
15
  var childElementsthroughFragments = (0, _helpers.cloneThroughFragments)(childElements);
16
16
  return childElementsthroughFragments.map(function (childElement, index) {
17
- var _childElement$type;
18
- if ((childElement === null || childElement === void 0 ? void 0 : (_childElement$type = childElement.type) === null || _childElement$type === void 0 ? void 0 : _childElement$type.name) === "CheckBoxListItem") {
19
- var childElementCopy = _react.default.cloneElement(childElement, {
20
- requiredGroup: props.required,
21
- compact: props.compact,
22
- key: "checkboxListItem-".concat(index)
23
- });
24
- return childElementCopy;
25
- } else {
26
- var _childElementCopy = _react.default.cloneElement(childElement, {
27
- key: "checkboxListChild-".concat(index)
28
- });
29
- return _childElementCopy;
30
- }
17
+ var childElementCopy = _react.default.cloneElement(childElement, {
18
+ requiredGroup: props.required,
19
+ compact: props.compact,
20
+ key: "checkboxListItem-".concat(index)
21
+ });
22
+ return childElementCopy;
31
23
  });
32
24
  };
33
25
  return _react.default.createElement("fieldset", {
@@ -14,20 +14,12 @@ var RadioButtonList = function RadioButtonList(props) {
14
14
  var renderChildElements = function renderChildElements(childElements) {
15
15
  var childElementsthroughFragments = (0, _helpers.cloneThroughFragments)(childElements);
16
16
  return childElementsthroughFragments.map(function (childElement, index) {
17
- var _childElement$type;
18
- if ((childElement === null || childElement === void 0 ? void 0 : (_childElement$type = childElement.type) === null || _childElement$type === void 0 ? void 0 : _childElement$type.name) === "RadioButtonListItem") {
19
- var childElementCopy = _react.default.cloneElement(childElement, {
20
- requiredGroup: props.required,
21
- compact: props.compact,
22
- key: "radioButtonListItem-".concat(index)
23
- });
24
- return childElementCopy;
25
- } else {
26
- var _childElementCopy = _react.default.cloneElement(childElement, {
27
- key: "radiobuttonListChild-".concat(index)
28
- });
29
- return _childElementCopy;
30
- }
17
+ var childElementCopy = _react.default.cloneElement(childElement, {
18
+ requiredGroup: props.required,
19
+ compact: props.compact,
20
+ key: "radioButtonListItem-".concat(index)
21
+ });
22
+ return childElementCopy;
31
23
  });
32
24
  };
33
25
  return _react.default.createElement("fieldset", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dibk-design",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",