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 CHANGED
@@ -126,7 +126,7 @@ var Item = function Item(props) {
126
126
  handleOnSelectItem(e);
127
127
  },
128
128
  role: 'button',
129
- onKeyDown: selectOnEnter && onKeyDown,
129
+ onKeyDown: selectOnEnter ? onKeyDown : undefined,
130
130
  tabIndex: '0'
131
131
  };
132
132
  };
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
- var newItensIds = children.length > 0 ? children.map(function (item) {
204
- return item.props && item.props.itemId;
205
- }).filter(Boolean) : [children.props.itemId];
206
- setItensId(newItensIds);
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,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "0.4.77-beta.16",
3
+ "version": "0.4.77-beta.19",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -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;