linear-react-components-ui 0.4.77-beta.16 → 0.4.77-beta.19
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/lib/list/Item.js +1 -1
- package/lib/list/index.js +6 -4
- package/package.json +1 -1
- package/lib/inputs/date/helper.js +0 -16
package/lib/list/Item.js
CHANGED
package/lib/list/index.js
CHANGED
|
@@ -200,10 +200,12 @@ var List = function List(props) {
|
|
|
200
200
|
}
|
|
201
201
|
}, [props.selectedItemId]);
|
|
202
202
|
(0, _react.useEffect)(function () {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
if (children.length > 0 || children.props && children.props.itemId) {
|
|
204
|
+
var newItensIds = children.length > 0 ? children.map(function (item) {
|
|
205
|
+
return item.props && item.props.itemId;
|
|
206
|
+
}).filter(Boolean) : [children.props.itemId];
|
|
207
|
+
setItensId(newItensIds);
|
|
208
|
+
}
|
|
207
209
|
}, [children]);
|
|
208
210
|
(0, _react.useEffect)(function () {
|
|
209
211
|
if (skeletonize) {
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var getCalendarDropdownStyle = function getCalendarDropdownStyle(_ref) {
|
|
9
|
-
var topPosition = _ref.topPosition,
|
|
10
|
-
leftPosition = _ref.leftPosition,
|
|
11
|
-
width = _ref.width;
|
|
12
|
-
return "top: ".concat(topPosition, "px;\n left: ").concat(leftPosition, "px;\n width:").concat(width, "px");
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
var _default = getCalendarDropdownStyle;
|
|
16
|
-
exports["default"] = _default;
|