@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.
@@ -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;
@@ -9,6 +9,7 @@ exports[`ResponsiveDropBox rendering the defult props 1`] = `
9
9
  data-position="bottomStart"
10
10
  data-selector-id="dropBox"
11
11
  data-test-id="dropBox"
12
+ dot-ui-element="dropbox"
12
13
  >
13
14
  <div
14
15
  class="subContainer bottom_shadow radius defaultPalette"
@@ -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.48",
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.63",
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.63",
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",