dibk-design 2.1.8 → 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.
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _helpers = require("functions/helpers");
|
|
9
|
+
var _helpers = require("../functions/helpers");
|
|
10
10
|
var _CheckBoxListModule = _interopRequireDefault(require("./CheckBoxList.module.scss"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
var CheckBoxList = function CheckBoxList(props) {
|
|
@@ -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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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", {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _helpers = require("functions/helpers");
|
|
9
|
+
var _helpers = require("../functions/helpers");
|
|
10
10
|
var _RadioButtonListModule = _interopRequireDefault(require("./RadioButtonList.module.scss"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
var RadioButtonList = function RadioButtonList(props) {
|
|
@@ -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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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", {
|