@zohodesk/components 1.0.0-temp-210.1 → 1.0.0-temp-199.2
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/README.md +4 -4
- package/es/DateTime/CalendarView.js +9 -7
- package/es/ListItem/ListItem.js +2 -2
- package/es/ListItem/ListItem.module.css +85 -18
- package/es/ListItem/ListItemWithAvatar.js +3 -3
- package/es/ListItem/ListItemWithIcon.js +2 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -2
- package/es/MultiSelect/AdvancedMultiSelect.js +2 -1
- package/es/MultiSelect/MultiSelect.js +7 -2
- package/es/MultiSelect/Suggestions.js +8 -4
- package/es/MultiSelect/props/defaultProps.js +6 -4
- package/es/MultiSelect/props/propTypes.js +4 -2
- package/es/Popup/Popup.js +8 -97
- package/es/Select/GroupSelect.js +7 -2
- package/es/Select/SelectWithAvatar.js +7 -2
- package/es/Select/SelectWithIcon.js +4 -2
- package/es/Select/props/defaultProps.js +4 -2
- package/es/Select/props/propTypes.js +4 -2
- package/es/v1/Popup/Popup.js +8 -96
- package/lib/DateTime/CalendarView.js +9 -7
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +85 -18
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/AdvancedMultiSelect.js +3 -1
- package/lib/MultiSelect/MultiSelect.js +6 -3
- package/lib/MultiSelect/Suggestions.js +8 -4
- package/lib/MultiSelect/props/defaultProps.js +6 -4
- package/lib/MultiSelect/props/propTypes.js +6 -5
- package/lib/Popup/Popup.js +9 -106
- package/lib/Select/GroupSelect.js +8 -3
- package/lib/Select/SelectWithAvatar.js +8 -3
- package/lib/Select/SelectWithIcon.js +5 -3
- package/lib/Select/props/defaultProps.js +4 -2
- package/lib/Select/props/propTypes.js +4 -2
- package/lib/v1/Popup/Popup.js +9 -105
- package/package.json +4 -4
- package/result.json +1 -1
- package/es/Popup/props/propTypes.js +0 -31
- package/lib/Popup/props/propTypes.js +0 -44
|
@@ -51,6 +51,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
51
51
|
|
|
52
52
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
53
53
|
|
|
54
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
55
|
+
|
|
54
56
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
55
57
|
|
|
56
58
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -664,7 +666,10 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
664
666
|
htmlId = _this$props9.htmlId,
|
|
665
667
|
iconOnHover = _this$props9.iconOnHover,
|
|
666
668
|
isLoading = _this$props9.isLoading,
|
|
667
|
-
dataSelectorId = _this$props9.dataSelectorId
|
|
669
|
+
dataSelectorId = _this$props9.dataSelectorId,
|
|
670
|
+
customProps = _this$props9.customProps;
|
|
671
|
+
var _customProps$suggesti = customProps.suggestionsProps,
|
|
672
|
+
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
668
673
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
669
674
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
670
675
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -837,7 +842,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
837
842
|
a11y: {
|
|
838
843
|
role: 'heading'
|
|
839
844
|
}
|
|
840
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
845
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
841
846
|
activeId: selectedId,
|
|
842
847
|
suggestions: options,
|
|
843
848
|
getRef: _this7.suggestionItemRef,
|
|
@@ -853,7 +858,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
853
858
|
role: 'option'
|
|
854
859
|
},
|
|
855
860
|
dataId: "".concat(dataId, "_Options")
|
|
856
|
-
}));
|
|
861
|
+
}, suggestionsProps)));
|
|
857
862
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
858
863
|
options: revampedGroups,
|
|
859
864
|
searchString: searchStr,
|
|
@@ -51,6 +51,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
51
51
|
|
|
52
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
53
53
|
|
|
54
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
55
|
+
|
|
54
56
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
55
57
|
|
|
56
58
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -213,7 +215,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
213
215
|
needEffect = _this$props.needEffect,
|
|
214
216
|
isLoading = _this$props.isLoading,
|
|
215
217
|
dataSelectorId = _this$props.dataSelectorId,
|
|
216
|
-
getTargetRef = _this$props.getTargetRef
|
|
218
|
+
getTargetRef = _this$props.getTargetRef,
|
|
219
|
+
customProps = _this$props.customProps;
|
|
220
|
+
var _customProps$suggesti = customProps.suggestionsProps,
|
|
221
|
+
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
217
222
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
218
223
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
219
224
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -352,7 +357,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
352
357
|
a11y: {
|
|
353
358
|
role: 'heading'
|
|
354
359
|
}
|
|
355
|
-
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
360
|
+
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
356
361
|
dataId: "".concat(dataId, "_Options"),
|
|
357
362
|
activeId: selectedId,
|
|
358
363
|
suggestions: suggestions,
|
|
@@ -369,7 +374,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
369
374
|
ariaParentRole: 'listbox',
|
|
370
375
|
role: 'option'
|
|
371
376
|
}
|
|
372
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
377
|
+
}, suggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
373
378
|
isLoading: isFetchingOptions,
|
|
374
379
|
options: options,
|
|
375
380
|
searchString: searchStr,
|
|
@@ -440,7 +440,9 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
440
440
|
_customProps$Dropdown = customProps.DropdownSearchTextBoxProps,
|
|
441
441
|
DropdownSearchTextBoxProps = _customProps$Dropdown === void 0 ? {} : _customProps$Dropdown,
|
|
442
442
|
_customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
443
|
-
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI
|
|
443
|
+
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
444
|
+
_customProps$listItem = customProps.listItemProps,
|
|
445
|
+
listItemProps = _customProps$listItem === void 0 ? {} : _customProps$listItem;
|
|
444
446
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
445
447
|
className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : ''),
|
|
446
448
|
"data-title": isDisabled ? title : null,
|
|
@@ -573,7 +575,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
573
575
|
var iconName = options.iconName,
|
|
574
576
|
iconSize = options.iconSize,
|
|
575
577
|
iconColor = options.iconColor;
|
|
576
|
-
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
|
|
578
|
+
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
|
|
577
579
|
key: options[idKey],
|
|
578
580
|
value: options[valueKey],
|
|
579
581
|
size: "medium",
|
|
@@ -597,7 +599,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
597
599
|
ariaSelected: selectedId === options[idKey],
|
|
598
600
|
ariaLabel: options[valueKey]
|
|
599
601
|
}
|
|
600
|
-
});
|
|
602
|
+
}, listItemProps));
|
|
601
603
|
})) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
602
604
|
isLoading: isFetchingOptions,
|
|
603
605
|
options: options,
|
|
@@ -82,7 +82,8 @@ var GroupSelect_defaultProps = {
|
|
|
82
82
|
isRestrictScroll: false,
|
|
83
83
|
i18nKeys: {},
|
|
84
84
|
iconOnHover: false,
|
|
85
|
-
isLoading: false
|
|
85
|
+
isLoading: false,
|
|
86
|
+
customProps: {}
|
|
86
87
|
};
|
|
87
88
|
exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
|
|
88
89
|
var SelectWithAvatar_defaultProps = {
|
|
@@ -109,7 +110,8 @@ var SelectWithAvatar_defaultProps = {
|
|
|
109
110
|
isRestrictScroll: false,
|
|
110
111
|
i18nKeys: {},
|
|
111
112
|
needEffect: true,
|
|
112
|
-
isLoading: false
|
|
113
|
+
isLoading: false,
|
|
114
|
+
customProps: {}
|
|
113
115
|
};
|
|
114
116
|
exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
|
|
115
117
|
var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
@@ -191,7 +191,8 @@ var GroupSelect_propTypes = {
|
|
|
191
191
|
}),
|
|
192
192
|
isLoading: _propTypes["default"].bool,
|
|
193
193
|
dataSelectorId: _propTypes["default"].string,
|
|
194
|
-
isDefaultSelectValue: _propTypes["default"].bool
|
|
194
|
+
isDefaultSelectValue: _propTypes["default"].bool,
|
|
195
|
+
customProps: _propTypes["default"].string
|
|
195
196
|
};
|
|
196
197
|
exports.GroupSelect_propTypes = GroupSelect_propTypes;
|
|
197
198
|
|
|
@@ -254,7 +255,8 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
|
|
|
254
255
|
htmlId: _propTypes["default"].string,
|
|
255
256
|
needEffect: _propTypes["default"].bool,
|
|
256
257
|
isLoading: _propTypes["default"].bool,
|
|
257
|
-
dataSelectorId: _propTypes["default"].string
|
|
258
|
+
dataSelectorId: _propTypes["default"].string,
|
|
259
|
+
customProps: _propTypes["default"].string
|
|
258
260
|
});
|
|
259
261
|
|
|
260
262
|
exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
|
package/lib/v1/Popup/Popup.js
CHANGED
|
@@ -9,9 +9,9 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
|
|
15
15
|
|
|
16
16
|
var _Common = require("../../utils/Common.js");
|
|
17
17
|
|
|
@@ -151,11 +151,6 @@ var Popup = function Popup(Component) {
|
|
|
151
151
|
_this.handleDocumentMouseDown = _this.handleDocumentMouseDown.bind(_assertThisInitialized(_this));
|
|
152
152
|
_this.handleDocumentFocus = _this.handleDocumentFocus.bind(_assertThisInitialized(_this));
|
|
153
153
|
_this.handleGetNeedPrevent = _this.handleGetNeedPrevent.bind(_assertThisInitialized(_this));
|
|
154
|
-
_this.handleBlockScroll = _this.handleBlockScroll.bind(_assertThisInitialized(_this));
|
|
155
|
-
_this.handlePositionChange = _this.handlePositionChange.bind(_assertThisInitialized(_this));
|
|
156
|
-
_this.preventKeyboardScroll = _this.preventKeyboardScroll.bind(_assertThisInitialized(_this));
|
|
157
|
-
_this.addScrollBlockListeners = _this.addScrollBlockListeners.bind(_assertThisInitialized(_this));
|
|
158
|
-
_this.removeScrollBlockListeners = _this.removeScrollBlockListeners.bind(_assertThisInitialized(_this));
|
|
159
154
|
_this.popupObserver = new _ResizeObserver["default"](_this.handlePopupResize); //dropBoxSize
|
|
160
155
|
|
|
161
156
|
_this.size = null;
|
|
@@ -169,7 +164,6 @@ var Popup = function Popup(Component) {
|
|
|
169
164
|
scrollDebounceTime = _this$getScrollDeboun.scrollDebounceTime;
|
|
170
165
|
|
|
171
166
|
_this.handleScroll = (0, _Common.debounce)(_this.handleScroll.bind(_assertThisInitialized(_this)), scrollDebounceTime);
|
|
172
|
-
_this.handleDebouncedPositionChange = (0, _Common.debounce)(_this.handlePositionChange.bind(_assertThisInitialized(_this)), 100);
|
|
173
167
|
return _this;
|
|
174
168
|
}
|
|
175
169
|
|
|
@@ -213,10 +207,7 @@ var Popup = function Popup(Component) {
|
|
|
213
207
|
oldStateOpen = _ref2$isPopupReady === void 0 ? false : _ref2$isPopupReady;
|
|
214
208
|
|
|
215
209
|
var dropElement = this.dropElement;
|
|
216
|
-
var
|
|
217
|
-
propResizeHandling = _this$props.needResizeHandling,
|
|
218
|
-
isAbsolutePositioningNeeded = _this$props.isAbsolutePositioningNeeded,
|
|
219
|
-
isBlockedOutsideScroll = _this$props.isBlockedOutsideScroll;
|
|
210
|
+
var propResizeHandling = this.props.needResizeHandling;
|
|
220
211
|
|
|
221
212
|
if (oldStateOpen !== isPopupReady) {
|
|
222
213
|
if (isPopupReady && dropElement && (propResizeHandling !== undefined ? propResizeHandling : needResizeHandling)) {
|
|
@@ -225,14 +216,6 @@ var Popup = function Popup(Component) {
|
|
|
225
216
|
this.size = null;
|
|
226
217
|
this.popupObserver.disconnect();
|
|
227
218
|
}
|
|
228
|
-
|
|
229
|
-
if (isBlockedOutsideScroll && !isAbsolutePositioningNeeded) {
|
|
230
|
-
if (isPopupReady) {
|
|
231
|
-
this.addScrollBlockListeners();
|
|
232
|
-
} else {
|
|
233
|
-
this.removeScrollBlockListeners();
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
219
|
}
|
|
237
220
|
}
|
|
238
221
|
}, {
|
|
@@ -253,7 +236,6 @@ var Popup = function Popup(Component) {
|
|
|
253
236
|
|
|
254
237
|
return res;
|
|
255
238
|
}, popups);
|
|
256
|
-
this.removeScrollBlockListeners();
|
|
257
239
|
var noPopups = true;
|
|
258
240
|
|
|
259
241
|
for (var i in popups) {
|
|
@@ -277,81 +259,6 @@ var Popup = function Popup(Component) {
|
|
|
277
259
|
document.removeEventListener('focus', this.handleDocumentFocus, true);
|
|
278
260
|
}
|
|
279
261
|
}
|
|
280
|
-
}, {
|
|
281
|
-
key: "addScrollBlockListeners",
|
|
282
|
-
value: function addScrollBlockListeners() {
|
|
283
|
-
document.addEventListener('wheel', this.handleBlockScroll, {
|
|
284
|
-
capture: true,
|
|
285
|
-
passive: false
|
|
286
|
-
});
|
|
287
|
-
document.addEventListener('touchmove', this.handleBlockScroll, {
|
|
288
|
-
capture: true,
|
|
289
|
-
passive: false
|
|
290
|
-
});
|
|
291
|
-
document.addEventListener('scroll', this.handleDebouncedPositionChange, {
|
|
292
|
-
capture: true,
|
|
293
|
-
passive: false
|
|
294
|
-
});
|
|
295
|
-
document.addEventListener('keydown', this.preventKeyboardScroll, {
|
|
296
|
-
capture: true,
|
|
297
|
-
passive: false
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
}, {
|
|
301
|
-
key: "removeScrollBlockListeners",
|
|
302
|
-
value: function removeScrollBlockListeners() {
|
|
303
|
-
document.removeEventListener('wheel', this.handleBlockScroll, {
|
|
304
|
-
capture: true,
|
|
305
|
-
passive: false
|
|
306
|
-
});
|
|
307
|
-
document.removeEventListener('touchmove', this.handleBlockScroll, {
|
|
308
|
-
capture: true,
|
|
309
|
-
passive: false
|
|
310
|
-
});
|
|
311
|
-
document.removeEventListener('scroll', this.handleDebouncedPositionChange, {
|
|
312
|
-
capture: true,
|
|
313
|
-
passive: false
|
|
314
|
-
});
|
|
315
|
-
document.removeEventListener('keydown', this.preventKeyboardScroll, {
|
|
316
|
-
capture: true,
|
|
317
|
-
passive: false
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
}, {
|
|
321
|
-
key: "handleBlockScroll",
|
|
322
|
-
value: function handleBlockScroll(event) {
|
|
323
|
-
// const targetElement = this.placeHolderElement;
|
|
324
|
-
var containerElement = this.dropElement;
|
|
325
|
-
|
|
326
|
-
if (containerElement && containerElement !== event.target && !containerElement.contains(event.target)) {
|
|
327
|
-
// --- Scroll exclude Target & Container elements --- For reference. Will adopt in future
|
|
328
|
-
// if(
|
|
329
|
-
// (containerElement && (containerElement !== event.target && !containerElement.contains(event.target)))
|
|
330
|
-
// && (targetElement && (targetElement !== event.target && !targetElement.contains(event.target)))
|
|
331
|
-
// ) {
|
|
332
|
-
event.preventDefault();
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}, {
|
|
336
|
-
key: "handlePositionChange",
|
|
337
|
-
value: function handlePositionChange(event) {
|
|
338
|
-
var targetElement = this.placeHolderElement;
|
|
339
|
-
var containerElement = this.dropElement;
|
|
340
|
-
|
|
341
|
-
if (containerElement && containerElement !== event.target && !containerElement.contains(event.target) && targetElement && targetElement !== event.target && !targetElement.contains(event.target) && event.target.contains(targetElement)) {
|
|
342
|
-
this.handlePopupPosition(this.state.position);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}, {
|
|
346
|
-
key: "preventKeyboardScroll",
|
|
347
|
-
value: function preventKeyboardScroll(event) {
|
|
348
|
-
var containerElement = this.dropElement;
|
|
349
|
-
var keys = [32, 37, 38, 39, 40]; // Space, Arrow keys
|
|
350
|
-
|
|
351
|
-
if (containerElement && containerElement !== event.target && !containerElement.contains(event.target) && keys.includes(event.keyCode)) {
|
|
352
|
-
event.preventDefault();
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
262
|
}, {
|
|
356
263
|
key: "getGroup",
|
|
357
264
|
value: function getGroup() {
|
|
@@ -680,19 +587,15 @@ var Popup = function Popup(Component) {
|
|
|
680
587
|
_ref6$left = _ref6.left,
|
|
681
588
|
oldLeft = _ref6$left === void 0 ? '' : _ref6$left,
|
|
682
589
|
_ref6$top = _ref6.top,
|
|
683
|
-
oldTop = _ref6$top === void 0 ? '' : _ref6$top
|
|
684
|
-
_ref6$bottom = _ref6.bottom,
|
|
685
|
-
oldBottom = _ref6$bottom === void 0 ? '' : _ref6$bottom;
|
|
590
|
+
oldTop = _ref6$top === void 0 ? '' : _ref6$top;
|
|
686
591
|
|
|
687
592
|
var _ref7 = viewsOffset[view] || {},
|
|
688
593
|
_ref7$left = _ref7.left,
|
|
689
594
|
left = _ref7$left === void 0 ? '' : _ref7$left,
|
|
690
595
|
_ref7$top = _ref7.top,
|
|
691
|
-
top = _ref7$top === void 0 ? '' : _ref7$top
|
|
692
|
-
_ref7$bottom = _ref7.bottom,
|
|
693
|
-
bottom = _ref7$bottom === void 0 ? '' : _ref7$bottom;
|
|
596
|
+
top = _ref7$top === void 0 ? '' : _ref7$top;
|
|
694
597
|
|
|
695
|
-
var changeState = isAbsolute ? position !== view : oldLeft !== left || oldTop !== top
|
|
598
|
+
var changeState = isAbsolute ? position !== view : oldLeft !== left || oldTop !== top; // let isInViewPort = viewPort.isInViewPort(
|
|
696
599
|
// placeHolderElement,
|
|
697
600
|
// scrollContainer
|
|
698
601
|
// );
|
|
@@ -802,8 +705,9 @@ var Popup = function Popup(Component) {
|
|
|
802
705
|
}(_react["default"].Component);
|
|
803
706
|
|
|
804
707
|
Popup.displayName = Component.displayName || Component.name || Popup.name;
|
|
805
|
-
Popup.contextTypes =
|
|
806
|
-
|
|
708
|
+
Popup.contextTypes = {
|
|
709
|
+
direction: _propTypes["default"].string
|
|
710
|
+
};
|
|
807
711
|
return (0, _hoistNonReactStatics["default"])(Popup, Component);
|
|
808
712
|
};
|
|
809
713
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-199.2",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
|
|
39
39
|
"coverage": "react-cli coverage",
|
|
40
40
|
"prepare": "npm run init && npm run build && npm run rtl && npm run cssVariableConvert ",
|
|
41
|
-
"prepublishOnly": "node prePublish.js && npm run
|
|
41
|
+
"prepublishOnly": "node prePublish.js && npm run download && npm run css:review",
|
|
42
42
|
"postpublish": "node postPublish.js",
|
|
43
43
|
"report": "react-cli publish:report",
|
|
44
44
|
"test": "react-cli test",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@zohodesk/a11y": "2.2.6",
|
|
72
72
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
73
73
|
"@zohodesk/hooks": "2.0.5",
|
|
74
|
-
"@zohodesk/icons": "1.0.
|
|
74
|
+
"@zohodesk/icons": "1.0.62",
|
|
75
75
|
"@zohodesk/svg": "1.1.19",
|
|
76
76
|
"@zohodesk/utils": "1.3.14",
|
|
77
77
|
"@zohodesk/variables": "1.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"selectn": "1.1.2"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@zohodesk/icons": "1.0.
|
|
89
|
+
"@zohodesk/icons": "1.0.62",
|
|
90
90
|
"@zohodesk/variables": "1.0.0",
|
|
91
91
|
"@zohodesk/svg": "1.1.19",
|
|
92
92
|
"@zohodesk/virtualizer": "1.0.3",
|