@steroidsjs/bootstrap 3.0.17 → 3.0.18
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,11 +6,11 @@ exports.__esModule = true;
|
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
|
|
8
8
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
9
|
-
var TreeItemView_1 = __importDefault(require("../../nav/TreeItem/TreeItemView"));
|
|
10
9
|
function CheckboxTreeFieldView(props) {
|
|
11
10
|
var bem = (0, useBem_1["default"])('CheckboxTreeFieldView');
|
|
12
11
|
var prefix = (0, hooks_1.useUniqueId)('checkbox');
|
|
13
|
-
|
|
12
|
+
var TreeItemView = props.itemView;
|
|
13
|
+
return (react_1["default"].createElement("div", { className: bem.block() }, props.items.map(function (checkbox) { return (react_1["default"].createElement(TreeItemView, { key: checkbox.uniqueId, item: checkbox, levelPadding: props.levelPadding, hasIconExpandOnly: props.hasIconExpandOnly, withoutPointerOnLabel: props.hasOnlyLeafCheckboxes && checkbox.hasItems && !checkbox.isOpened }, props.renderCheckbox({
|
|
14
14
|
id: props.hasOnlyLeafCheckboxes && checkbox.hasItems ? null : "".concat(prefix, "_").concat(checkbox.id),
|
|
15
15
|
label: checkbox.label,
|
|
16
16
|
inputProps: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-use": "^17.4.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@steroidsjs/core": "3.0.
|
|
38
|
+
"@steroidsjs/core": "3.0.25",
|
|
39
39
|
"@steroidsjs/eslint-config": "^2.1.6",
|
|
40
40
|
"@types/enzyme": "^3.10.8",
|
|
41
41
|
"@types/googlemaps": "^3.43.3",
|