@zohodesk/components 1.2.48 → 1.2.49
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 +9 -1
- package/es/DropBox/DropBoxElement/DropBoxElement.js +3 -1
- package/es/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +1 -0
- package/es/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +1 -0
- package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +1 -0
- package/es/Popup/Popup.js +107 -8
- package/es/Popup/intersectionObserver.js +39 -0
- package/es/Popup/props/propTypes.js +30 -0
- package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +1 -0
- package/es/TextBox/TextBox.js +1 -1
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +3 -1
- package/lib/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +1 -0
- package/lib/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +1 -0
- package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +1 -0
- package/lib/Popup/Popup.js +118 -9
- package/lib/Popup/intersectionObserver.js +62 -0
- package/lib/Popup/props/propTypes.js +51 -0
- package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +1 -0
- package/lib/TextBox/TextBox.js +1 -1
- package/package.json +4 -4
- package/result.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PopupWrappersPropTypes = exports.PopupPropTypes = exports.ContextTypes = void 0;
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
+
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
|
|
16
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
+
|
|
18
|
+
var ContextTypes = {
|
|
19
|
+
direction: _propTypes["default"].string
|
|
20
|
+
};
|
|
21
|
+
exports.ContextTypes = ContextTypes;
|
|
22
|
+
var PopupPropTypes = {
|
|
23
|
+
popupGroup: _propTypes["default"].string,
|
|
24
|
+
isArrow: _propTypes["default"].bool,
|
|
25
|
+
isPopupOpen: _propTypes["default"].bool,
|
|
26
|
+
closeOnScroll: _propTypes["default"].bool,
|
|
27
|
+
isOutsideScrollBlocked: _propTypes["default"].bool,
|
|
28
|
+
needResizeHandling: _propTypes["default"].bool,
|
|
29
|
+
isAbsolutePositioningNeeded: _propTypes["default"].bool,
|
|
30
|
+
scrollDebounceTime: _propTypes["default"].number,
|
|
31
|
+
customOrder: _propTypes["default"].arrayOf(_propTypes["default"].string),
|
|
32
|
+
checkBeforeClose: _propTypes["default"].func
|
|
33
|
+
};
|
|
34
|
+
exports.PopupPropTypes = PopupPropTypes;
|
|
35
|
+
|
|
36
|
+
var PopupWrappersPropTypes = _objectSpread(_objectSpread({
|
|
37
|
+
openPopupOnly: _propTypes["default"].func,
|
|
38
|
+
closePopupOnly: _propTypes["default"].func,
|
|
39
|
+
togglePopup: _propTypes["default"].func,
|
|
40
|
+
removeClose: _propTypes["default"].func,
|
|
41
|
+
isPopupReady: _propTypes["default"].bool,
|
|
42
|
+
position: _propTypes["default"].oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
|
|
43
|
+
getTargetRef: _propTypes["default"].func,
|
|
44
|
+
getContainerRef: _propTypes["default"].func
|
|
45
|
+
}, PopupPropTypes), {}, {
|
|
46
|
+
isRestrictScroll: _propTypes["default"].bool,
|
|
47
|
+
positionsOffset: _propTypes["default"].object,
|
|
48
|
+
targetOffset: _propTypes["default"].object
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
exports.PopupWrappersPropTypes = PopupWrappersPropTypes;
|
package/lib/TextBox/TextBox.js
CHANGED
|
@@ -211,7 +211,7 @@ var TextBox = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
211
211
|
ref: this.inputRef,
|
|
212
212
|
type: type,
|
|
213
213
|
value: value,
|
|
214
|
-
onScroll: isScrollPrevent ? this.handlePreventTextBoxScroll :
|
|
214
|
+
onScroll: isScrollPrevent ? this.handlePreventTextBoxScroll : null,
|
|
215
215
|
onKeyPress: onKeyPress,
|
|
216
216
|
onMouseDown: onMouseDown
|
|
217
217
|
}, options, customProps));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.49",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"postpublish": "node postPublish.js",
|
|
43
43
|
"report": "react-cli publish:report",
|
|
44
44
|
"test": "react-cli test",
|
|
45
|
-
"test-clean": "react-cli clean coverage",
|
|
45
|
+
"test-clean": "react-cli clean ./coverage",
|
|
46
46
|
"snap-update": "npm run test-clean && npm run test -- -u",
|
|
47
47
|
"sstest": "npm run init && react-cli sstest",
|
|
48
48
|
"build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy && react-cli build:component:umd && npm run externalDocHTMLChange",
|
|
@@ -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.66",
|
|
75
75
|
"@zohodesk/svg": "1.1.22",
|
|
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.66",
|
|
90
90
|
"@zohodesk/variables": "1.0.0",
|
|
91
91
|
"@zohodesk/svg": "1.1.22",
|
|
92
92
|
"@zohodesk/virtualizer": "1.0.3",
|