@zohodesk/components 1.0.0-temp-202.1 → 1.0.0-temp-203

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.
Files changed (176) hide show
  1. package/.cli/PropUnificationExcludeFilesArray.js +230 -230
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/css_error.log +1 -1
  5. package/es/AppContainer/AppContainer.module.css +18 -18
  6. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  7. package/es/AvatarTeam/AvatarTeam.js +7 -7
  8. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
  9. package/es/Button/Button.js +4 -4
  10. package/es/Buttongroup/Buttongroup.js +1 -1
  11. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  12. package/es/Card/Card.js +4 -4
  13. package/es/Card/Card.module.css +20 -20
  14. package/es/DateTime/DateWidget.module.css +38 -38
  15. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  16. package/es/DropDown/DropDown.module.css +5 -5
  17. package/es/DropDown/DropDownSearch.js +5 -2
  18. package/es/DropDown/DropDownSearch.module.css +14 -14
  19. package/es/DropDown/DropDownSeparator.module.css +7 -7
  20. package/es/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +2 -0
  21. package/es/DropDown/props/defaultProps.js +2 -1
  22. package/es/DropDown/props/propTypes.js +2 -1
  23. package/es/Heading/Heading.module.css +4 -4
  24. package/es/Label/Label.js +2 -2
  25. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  26. package/es/Layout/Layout.module.css +335 -335
  27. package/es/ListItem/ListItemWithCheckBox.js +2 -1
  28. package/es/ListItem/ListItemWithRadio.js +2 -1
  29. package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
  30. package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +2 -2
  31. package/es/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  32. package/es/MultiSelect/AdvancedMultiSelect.js +6 -2
  33. package/es/MultiSelect/MultiSelect.js +2 -1
  34. package/es/MultiSelect/MultiSelectWithAvatar.js +2 -1
  35. package/es/MultiSelect/SelectedOptions.js +8 -4
  36. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  37. package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +2 -2
  38. package/es/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +6 -6
  39. package/es/MultiSelect/props/defaultProps.js +2 -1
  40. package/es/MultiSelect/props/propTypes.js +2 -1
  41. package/es/Popup/PositionMapping.json +73 -73
  42. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  43. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  44. package/es/RippleEffect/RippleEffect.module.css +92 -92
  45. package/es/Select/Select.module.css +134 -134
  46. package/es/Select/SelectWithAvatar.js +5 -2
  47. package/es/Select/SelectWithIcon.js +2 -1
  48. package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
  49. package/es/Stencils/Stencils.module.css +96 -96
  50. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  51. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  52. package/es/Tab/TabContent.module.css +4 -4
  53. package/es/Tab/Tabs.js +21 -19
  54. package/es/Tag/Tag.js +8 -8
  55. package/es/Tooltip/Tooltip.js +4 -57
  56. package/es/Tooltip/Tooltip.module.css +140 -140
  57. package/es/common/a11y.module.css +3 -3
  58. package/es/common/animation.module.css +624 -624
  59. package/es/common/avatarsizes.module.css +48 -48
  60. package/es/common/basic.module.css +33 -33
  61. package/es/common/basicReset.module.css +40 -40
  62. package/es/common/boxShadow.module.css +33 -33
  63. package/es/common/common.module.css +524 -524
  64. package/es/common/reset.module.css +13 -13
  65. package/es/common/transition.module.css +146 -146
  66. package/es/semantic/Button/semanticButton.module.css +9 -9
  67. package/es/v1/Avatar/Avatar.js +5 -5
  68. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  69. package/es/v1/Button/Button.js +4 -4
  70. package/es/v1/DropDown/DropDownSearch.js +5 -2
  71. package/es/v1/DropDown/props/defaultProps.js +2 -1
  72. package/es/v1/DropDown/props/propTypes.js +2 -1
  73. package/es/v1/ListItem/ListItemWithCheckBox.js +2 -1
  74. package/es/v1/ListItem/ListItemWithRadio.js +2 -1
  75. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  76. package/es/v1/MultiSelect/AdvancedMultiSelect.js +6 -2
  77. package/es/v1/MultiSelect/MultiSelect.js +2 -1
  78. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +2 -1
  79. package/es/v1/MultiSelect/SelectedOptions.js +8 -4
  80. package/es/v1/MultiSelect/props/defaultProps.js +2 -1
  81. package/es/v1/MultiSelect/props/propTypes.js +2 -1
  82. package/es/v1/Select/SelectWithAvatar.js +5 -2
  83. package/es/v1/Select/SelectWithIcon.js +2 -1
  84. package/es/v1/Tab/Tabs.js +4 -2
  85. package/es/v1/Tab/v1TabContent.module.css +4 -4
  86. package/es/v1/Tag/Tag.js +8 -8
  87. package/es/v1/Typography/css/Typography.module.css +380 -380
  88. package/install.md +10 -10
  89. package/lib/AppContainer/AppContainer.module.css +18 -18
  90. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  91. package/lib/AvatarTeam/AvatarTeam.js +7 -7
  92. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
  93. package/lib/Button/Button.js +4 -4
  94. package/lib/Buttongroup/Buttongroup.js +1 -1
  95. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  96. package/lib/Card/Card.js +4 -4
  97. package/lib/Card/Card.module.css +20 -20
  98. package/lib/DateTime/DateWidget.module.css +38 -38
  99. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  100. package/lib/DropDown/DropDown.module.css +5 -5
  101. package/lib/DropDown/DropDownSearch.js +5 -2
  102. package/lib/DropDown/DropDownSearch.module.css +14 -14
  103. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  104. package/lib/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +2 -0
  105. package/lib/DropDown/props/defaultProps.js +2 -1
  106. package/lib/DropDown/props/propTypes.js +1 -1
  107. package/lib/Heading/Heading.module.css +4 -4
  108. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  109. package/lib/Layout/Layout.module.css +335 -335
  110. package/lib/ListItem/ListItemWithCheckBox.js +2 -1
  111. package/lib/ListItem/ListItemWithRadio.js +2 -1
  112. package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
  113. package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +2 -2
  114. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  115. package/lib/MultiSelect/AdvancedMultiSelect.js +8 -4
  116. package/lib/MultiSelect/MultiSelect.js +2 -1
  117. package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -1
  118. package/lib/MultiSelect/SelectedOptions.js +8 -4
  119. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  120. package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +2 -2
  121. package/lib/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +6 -6
  122. package/lib/MultiSelect/props/defaultProps.js +2 -1
  123. package/lib/MultiSelect/props/propTypes.js +2 -1
  124. package/lib/Popup/PositionMapping.json +73 -73
  125. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  126. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  127. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  128. package/lib/Select/Select.module.css +134 -134
  129. package/lib/Select/SelectWithAvatar.js +5 -2
  130. package/lib/Select/SelectWithIcon.js +2 -1
  131. package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
  132. package/lib/Stencils/Stencils.module.css +96 -96
  133. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  134. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  135. package/lib/Tab/TabContent.module.css +4 -4
  136. package/lib/Tab/Tabs.js +15 -13
  137. package/lib/Tag/Tag.js +8 -8
  138. package/lib/Tooltip/Tooltip.js +28 -89
  139. package/lib/Tooltip/Tooltip.module.css +140 -140
  140. package/lib/common/a11y.module.css +3 -3
  141. package/lib/common/animation.module.css +624 -624
  142. package/lib/common/avatarsizes.module.css +48 -48
  143. package/lib/common/basic.module.css +33 -33
  144. package/lib/common/basicReset.module.css +40 -40
  145. package/lib/common/boxShadow.module.css +33 -33
  146. package/lib/common/common.module.css +524 -524
  147. package/lib/common/reset.module.css +13 -13
  148. package/lib/common/transition.module.css +146 -146
  149. package/lib/semantic/Button/semanticButton.module.css +9 -9
  150. package/lib/v1/Avatar/Avatar.js +5 -5
  151. package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
  152. package/lib/v1/Button/Button.js +4 -4
  153. package/lib/v1/DropDown/DropDownSearch.js +5 -2
  154. package/lib/v1/DropDown/props/defaultProps.js +2 -1
  155. package/lib/v1/DropDown/props/propTypes.js +1 -1
  156. package/lib/v1/ListItem/ListItemWithCheckBox.js +2 -1
  157. package/lib/v1/ListItem/ListItemWithRadio.js +2 -1
  158. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  159. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +8 -4
  160. package/lib/v1/MultiSelect/MultiSelect.js +2 -1
  161. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +2 -1
  162. package/lib/v1/MultiSelect/SelectedOptions.js +8 -4
  163. package/lib/v1/MultiSelect/props/defaultProps.js +2 -1
  164. package/lib/v1/MultiSelect/props/propTypes.js +2 -1
  165. package/lib/v1/Select/SelectWithAvatar.js +5 -2
  166. package/lib/v1/Select/SelectWithIcon.js +2 -1
  167. package/lib/v1/Tab/Tabs.js +4 -2
  168. package/lib/v1/Tab/v1TabContent.module.css +4 -4
  169. package/lib/v1/Tag/Tag.js +8 -8
  170. package/lib/v1/Typography/css/Typography.module.css +380 -380
  171. package/package.json +4 -4
  172. package/postPublish.js +8 -8
  173. package/prePublish.js +70 -70
  174. package/propValidationArg.json +11 -11
  175. package/react-cli.config.js +23 -23
  176. package/result.json +1 -1
@@ -1,4 +1,4 @@
1
- /* $Id$ */
2
- .container {
3
- position: relative;
4
- }
1
+ /* $Id$ */
2
+ .container {
3
+ position: relative;
4
+ }
package/lib/Tab/Tabs.js CHANGED
@@ -195,9 +195,9 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
195
195
  tabKeys = _this$state.tabKeys;
196
196
 
197
197
  if (prevProps.children && children) {
198
- /**
199
- * To recalculate the dimensions of tabs we are checking the children length.
200
- * and also checking the tab id and their order.
198
+ /**
199
+ * To recalculate the dimensions of tabs we are checking the children length.
200
+ * and also checking the tab id and their order.
201
201
  */
202
202
  var newTabKeys = [];
203
203
 
@@ -382,14 +382,14 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
382
382
  });
383
383
 
384
384
  if (selectedTabDimension > totalDimension) {
385
- /* let { align } = this.props;
386
- let newDim = `${remConvert(totalDimension)}rem`;
387
- let newTabs;
388
- if (align === 'vertical') {
389
- newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
390
- } else {
391
- newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
392
- }
385
+ /* let { align } = this.props;
386
+ let newDim = `${remConvert(totalDimension)}rem`;
387
+ let newTabs;
388
+ if (align === 'vertical') {
389
+ newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
390
+ } else {
391
+ newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
392
+ }
393
393
  mainTabs = newTabs; */
394
394
  this.setMaxDim(totalDimension);
395
395
  }
@@ -573,13 +573,15 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
573
573
  }, DropBoxProps, {
574
574
  isResponsivePadding: true,
575
575
  needFocusScope: true,
576
- onClose: _this8.togglePopup
576
+ onClose: _this8.togglePopup,
577
+ dataId: "".concat(dataId, "_dropbox")
577
578
  }), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(_this8.props), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
578
579
  flexible: true,
579
580
  shrink: true,
580
581
  scroll: "vertical",
581
582
  className: "".concat(tabletMode ? '' : _TabsModule["default"].menuBox, " ").concat(moreBoxClass),
582
- onScroll: _this8.onScroll
583
+ onScroll: _this8.onScroll,
584
+ dataId: "".concat(dataId, "_Tabs")
583
585
  }, _react["default"].Children.map(moreTabs, function (child) {
584
586
  if (!child) {
585
587
  return null;
package/lib/Tag/Tag.js CHANGED
@@ -51,16 +51,16 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
51
51
 
52
52
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
53
53
 
54
- /*
55
- * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
56
- * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
57
- * 'pureDotted', 'primaryDotted'] }]
54
+ /*
55
+ * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
56
+ * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
57
+ * 'pureDotted', 'primaryDotted'] }]
58
58
  */
59
59
 
60
- /*
61
- * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
62
- * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
63
- * 'pureDotted', 'primaryDotted'] }]
60
+ /*
61
+ * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
62
+ * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
63
+ * 'pureDotted', 'primaryDotted'] }]
64
64
  */
65
65
  var Tag = /*#__PURE__*/function (_PureComponent) {
66
66
  _inherits(Tag, _PureComponent);
@@ -60,9 +60,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
60
60
  top: 0,
61
61
  arrowLeft: 0,
62
62
  isArrowRight: null,
63
- isHtml: false,
64
- isDragging: false,
65
- initialX: 0
63
+ isHtml: false
66
64
  };
67
65
  _this.handleOver = _this.handleOver.bind(_assertThisInitialized(_this));
68
66
  _this.getToolTipDOM = _this.getToolTipDOM.bind(_assertThisInitialized(_this));
@@ -73,66 +71,11 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
73
71
  _this.observer = new _ResizeObserver["default"](_this.onResize);
74
72
  _this.isResized = true;
75
73
  _this.tooltipContainerClientRect = {};
76
- _this.tooltipContainerEl = {}; // draggable methods
77
-
78
- _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));
79
- _this.onMouseMove = _this.onMouseMove.bind(_assertThisInitialized(_this));
80
- _this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_this));
74
+ _this.tooltipContainerEl = {};
81
75
  return _this;
82
- } // mouse button pressed on the element
83
-
76
+ }
84
77
 
85
78
  _createClass(Tooltip, [{
86
- key: "onMouseDown",
87
- value: function onMouseDown(element) {
88
- var _this2 = this;
89
-
90
- return function (event) {
91
- var left = _this2.state.left;
92
-
93
- _this2.setState({
94
- isDragging: true,
95
- initialX: event.clientX - left
96
- });
97
-
98
- var mouseMoveHandler = _this2.onMouseMove(element);
99
-
100
- document.addEventListener('mousemove', mouseMoveHandler);
101
- document.addEventListener('mouseup', _this2.onMouseUp);
102
- };
103
- } // mouse moves - dragging progress
104
-
105
- }, {
106
- key: "onMouseMove",
107
- value: function onMouseMove(element) {
108
- var _this3 = this;
109
-
110
- return function () {
111
- var _this3$state = _this3.state,
112
- isDragging = _this3$state.isDragging,
113
- initialX = _this3$state.initialX;
114
- var elementLeft = element.getBoundingClientRect().left - initialX;
115
-
116
- if (isDragging) {
117
- _this3.setState({
118
- left: elementLeft
119
- });
120
- }
121
- };
122
- } // mouse button released
123
-
124
- }, {
125
- key: "onMouseUp",
126
- value: function onMouseUp() {
127
- this.setState({
128
- isDragging: false,
129
- initialX: 0
130
- });
131
- this.reset();
132
- document.removeEventListener('mousemove', this.onMouseMove);
133
- document.removeEventListener('mouseup', this.onMouseUp);
134
- }
135
- }, {
136
79
  key: "onResize",
137
80
  value: function onResize(sizeOfObservedEl, observedEl) {
138
81
  this.isResized = true;
@@ -179,11 +122,9 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
179
122
  }, {
180
123
  key: "reset",
181
124
  value: function reset() {
182
- var _this$state = this.state,
183
- title = _this$state.title,
184
- isDragging = _this$state.isDragging;
125
+ var title = this.state.title;
185
126
 
186
- if (title !== null && !isDragging) {
127
+ if (title !== null) {
187
128
  this.setState({
188
129
  title: null,
189
130
  top: 0,
@@ -248,12 +189,11 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
248
189
  }, {
249
190
  key: "handleOver",
250
191
  value: function handleOver(e, targetElement) {
251
- var _this4 = this;
192
+ var _this2 = this;
252
193
 
253
194
  var containerElement = this.tooltipContainerEl;
254
195
  var element = e.target;
255
196
  var titleDiv = element.hasAttribute('data-title') || element.hasAttribute('title') ? element : element.closest('[data-title]') || element.closest('[title]');
256
- var draggable = element.hasAttribute('data-title-draggable') ? true : false;
257
197
 
258
198
  if (titleDiv) {
259
199
  var title = titleDiv.getAttribute('data-title') || titleDiv.getAttribute('title');
@@ -320,7 +260,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
320
260
  dataTooltipnoArrow: dataTooltipnoArrow,
321
261
  dataTooltipWrap: dataTooltipWrap
322
262
  }, function () {
323
- var tooltip = _this4.toolTip;
263
+ var tooltip = _this2.toolTip;
324
264
 
325
265
  if (tooltip) {
326
266
  /* element top, left, height, width */
@@ -391,7 +331,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
391
331
  /* top tooltip left and right corner edge case */
392
332
 
393
333
 
394
- var values = _this4.leftRightScreenEdge(tLeft, toolTipArrowLeft, thisLeft, thisWidth, tooltipoffsetWidth, bodyWidth, rightEdge, bodyLeft);
334
+ var values = _this2.leftRightScreenEdge(tLeft, toolTipArrowLeft, thisLeft, thisWidth, tooltipoffsetWidth, bodyWidth, rightEdge, bodyLeft);
395
335
 
396
336
  tLeft = values.tLeft, toolTipArrowLeft = values.toolTipArrowLeft, thisLeft = values.thisLeft, thisWidth = values.thisWidth, tooltipoffsetWidth = values.tooltipoffsetWidth, bodyWidth = values.bodyWidth, rightEdge = values.rightEdge;
397
337
  } else if (isPosition == 'bottom') {
@@ -423,7 +363,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
423
363
  /* bottom tooltip left and right corner edge case */
424
364
 
425
365
 
426
- var _values = _this4.leftRightScreenEdge(tLeft, toolTipArrowLeft, thisLeft, thisWidth, tooltipoffsetWidth, bodyWidth, rightEdge, bodyLeft);
366
+ var _values = _this2.leftRightScreenEdge(tLeft, toolTipArrowLeft, thisLeft, thisWidth, tooltipoffsetWidth, bodyWidth, rightEdge, bodyLeft);
427
367
 
428
368
  tLeft = _values.tLeft, toolTipArrowLeft = _values.toolTipArrowLeft, thisLeft = _values.thisLeft, thisWidth = _values.thisWidth, tooltipoffsetWidth = _values.tooltipoffsetWidth, bodyWidth = _values.bodyWidth, rightEdge = _values.rightEdge;
429
369
  } else if (isPosition == 'left') {
@@ -460,7 +400,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
460
400
  /* left tooltip top and bottom corner edge case */
461
401
 
462
402
 
463
- var _values2 = _this4.topBottomScreenEdge(tTop, toolTipArrowTop, thisTop, thisHeight, tooltipoffsetHeight, bodyHeight, bottomEdge);
403
+ var _values2 = _this2.topBottomScreenEdge(tTop, toolTipArrowTop, thisTop, thisHeight, tooltipoffsetHeight, bodyHeight, bottomEdge);
464
404
 
465
405
  tTop = _values2.tTop, toolTipArrowTop = _values2.toolTipArrowTop, thisTop = _values2.thisTop, thisHeight = _values2.thisHeight, tooltipoffsetHeight = _values2.tooltipoffsetHeight, bodyHeight = _values2.bodyHeight, bottomEdge = _values2.bottomEdge;
466
406
  } else if (isPosition == 'right') {
@@ -504,12 +444,12 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
504
444
  /* right tooltip left and right corner edge case */
505
445
 
506
446
 
507
- var _values3 = _this4.topBottomScreenEdge(tTop, toolTipArrowTop, thisTop, thisHeight, tooltipoffsetHeight, bodyHeight, bottomEdge);
447
+ var _values3 = _this2.topBottomScreenEdge(tTop, toolTipArrowTop, thisTop, thisHeight, tooltipoffsetHeight, bodyHeight, bottomEdge);
508
448
 
509
449
  tTop = _values3.tTop, toolTipArrowTop = _values3.toolTipArrowTop, thisTop = _values3.thisTop, thisHeight = _values3.thisHeight, tooltipoffsetHeight = _values3.tooltipoffsetHeight, bodyHeight = _values3.bodyHeight, bottomEdge = _values3.bottomEdge;
510
450
  }
511
451
 
512
- _this4.setState({
452
+ _this2.setState({
513
453
  top: tTop,
514
454
  left: tLeft,
515
455
  arrowTop: toolTipArrowTop,
@@ -520,7 +460,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
520
460
  width: tWidth
521
461
  });
522
462
  } else {
523
- _this4.setState({
463
+ _this2.setState({
524
464
  isArrowRight: null
525
465
  });
526
466
 
@@ -555,7 +495,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
555
495
  if (isArrowDown) {
556
496
  var arrowTop = tooltipoffsetHeight - 4;
557
497
 
558
- _this4.setState({
498
+ _this2.setState({
559
499
  top: tTop,
560
500
  left: tLeft,
561
501
  arrowLeft: tooltipLeft,
@@ -564,7 +504,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
564
504
  isArrowHorizontal: isArrowHorizontal
565
505
  });
566
506
  } else {
567
- _this4.setState({
507
+ _this2.setState({
568
508
  top: tTop,
569
509
  left: tLeft,
570
510
  arrowLeft: tooltipLeft,
@@ -579,7 +519,6 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
579
519
  titleDiv.addEventListener('click', this.reset);
580
520
  titleDiv.addEventListener('mouseup', this.reset);
581
521
  titleDiv.addEventListener('mouseleave', this.reset);
582
- draggable && titleDiv.addEventListener('mousedown', this.onMouseDown(element));
583
522
  }
584
523
  } else {
585
524
  this.reset();
@@ -588,19 +527,19 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
588
527
  }, {
589
528
  key: "render",
590
529
  value: function render() {
591
- var _this$state2 = this.state,
592
- title = _this$state2.title,
593
- left = _this$state2.left,
594
- top = _this$state2.top,
595
- arrowLeft = _this$state2.arrowLeft,
596
- arrowTop = _this$state2.arrowTop,
597
- isArrowDown = _this$state2.isArrowDown,
598
- isArrowRight = _this$state2.isArrowRight,
599
- isArrowHorizontal = _this$state2.isArrowHorizontal,
600
- width = _this$state2.width,
601
- isHtml = _this$state2.isHtml,
602
- dataTooltipnoArrow = _this$state2.dataTooltipnoArrow,
603
- dataTooltipWrap = _this$state2.dataTooltipWrap;
530
+ var _this$state = this.state,
531
+ title = _this$state.title,
532
+ left = _this$state.left,
533
+ top = _this$state.top,
534
+ arrowLeft = _this$state.arrowLeft,
535
+ arrowTop = _this$state.arrowTop,
536
+ isArrowDown = _this$state.isArrowDown,
537
+ isArrowRight = _this$state.isArrowRight,
538
+ isArrowHorizontal = _this$state.isArrowHorizontal,
539
+ width = _this$state.width,
540
+ isHtml = _this$state.isHtml,
541
+ dataTooltipnoArrow = _this$state.dataTooltipnoArrow,
542
+ dataTooltipWrap = _this$state.dataTooltipWrap;
604
543
  var _this$props = this.props,
605
544
  dataId = _this$props.dataId,
606
545
  customClass = _this$props.customClass;
@@ -1,141 +1,141 @@
1
- .tooltiptext {
2
- position: fixed;
3
- z-index: 9999999;
4
- /*Hook for editor alert*/
5
- pointer-events: none;
6
- box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
7
- border-radius: var(--zd_size4);
8
- }[dir=ltr] .tooltiptext {
9
- animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
10
- }[dir=rtl] .tooltiptext {
11
- animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
12
- }
13
-
14
- .tooltipcont {
15
- color: var(--zdt_tooltip_default_text);
16
- font-size: var(--zd_font_size13) ;
17
- font-family: var(--zd_semibold);
18
- word-break: break-word;
19
- max-width: var(--zd_size420) ;
20
- line-height: 1.5385;
21
- min-height: var(--zd_size24) ;
22
- overflow: hidden;
23
- background-color: var(--zdt_tooltip_default_bg);
24
- padding: 0 var(--zd_size10) ;
25
- border-style: solid;
26
- border-color: transparent;
27
- border-radius: var(--zd_size4);
28
- }
29
-
30
- .tooltipWrapCont {
31
- white-space: pre-wrap;
32
- }
33
-
34
- .tooltipNormalCont {
35
- white-space: normal;
36
- }
37
- .tooltiparrow {
38
- content: '';
39
- position: absolute;
40
- top: 0 ;
41
- border-top-left-radius: 3px;
42
- }
43
-
44
- .arrowUp,
45
- .arrowDown {
46
- /* Variable:Ignore */
47
- width: 11px;
48
- /* Variable:Ignore */
49
- height: 11px;
50
- border-top: solid 6px var(--zdt_tooltip_default_bg);
51
- border-left: solid 6px var(--zdt_tooltip_default_bg);
52
- border-right: solid 6px transparent;
53
- border-bottom: solid 6px transparent;
54
- box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
55
- z-index: -1;
56
- }
57
-
58
- .arrowDown {
59
- /* Variable:Ignore */
60
- margin-top: -4px !important;
61
- /* put important because of '.wms-mainui *' have margin: 0; */
62
- }
63
-
64
- .arrowLeft,
65
- .arrowRight {
66
- /* Variable:Ignore */
67
- width: 11px;
68
- /* Variable:Ignore */
69
- height: 11px;
70
- border-top: solid 6px var(--zdt_tooltip_default_bg);
71
- border-left: solid 6px var(--zdt_tooltip_default_bg);
72
- border-right: solid 6px transparent;
73
- border-bottom: solid 6px transparent;
74
- box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
75
- z-index: -1;
76
- }
77
-
78
- .arrowRight {
79
- /* Variable:Ignore */
80
- margin-left: -2px;
81
- }
82
-
83
- .arrowLeft {
84
- /* Variable:Ignore */
85
- margin-left: 1px;
86
- }
87
-
88
- .arrowUp {
89
- transform: rotate(45deg);
90
- }
91
-
92
- .arrowDown {
93
- transform: rotate(225deg);
94
- }
95
-
96
- .arrowLeft {
97
- transform: rotate(315deg) translateY(-50%);
98
- }
99
-
100
- .arrowRight {
101
- transform: rotate(135deg) translateY(50%);
102
- }
103
- @keyframes tooltip-grow {
104
- from {
105
- opacity: 0;
106
- }
107
-
108
- to {
109
- opacity: 1;
110
- }
111
- }
112
-
113
- @-webkit-keyframes tooltip-grow {
114
- from {
115
- opacity: 0;
116
- }
117
-
118
- to {
119
- opacity: 1;
120
- }
121
- }
122
-
123
- @-moz-keyframes tooltip-grow {
124
- from {
125
- opacity: 0;
126
- }
127
-
128
- to {
129
- opacity: 1;
130
- }
131
- }
132
-
133
- @-ms-keyframes tooltip-grow {
134
- from {
135
- opacity: 0;
136
- }
137
-
138
- to {
139
- opacity: 1;
140
- }
1
+ .tooltiptext {
2
+ position: fixed;
3
+ z-index: 9999999;
4
+ /*Hook for editor alert*/
5
+ pointer-events: none;
6
+ box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
7
+ border-radius: var(--zd_size4);
8
+ }[dir=ltr] .tooltiptext {
9
+ animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
10
+ }[dir=rtl] .tooltiptext {
11
+ animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
12
+ }
13
+
14
+ .tooltipcont {
15
+ color: var(--zdt_tooltip_default_text);
16
+ font-size: var(--zd_font_size13) ;
17
+ font-family: var(--zd_semibold);
18
+ word-break: break-word;
19
+ max-width: var(--zd_size420) ;
20
+ line-height: 1.5385;
21
+ min-height: var(--zd_size24) ;
22
+ overflow: hidden;
23
+ background-color: var(--zdt_tooltip_default_bg);
24
+ padding: 0 var(--zd_size10) ;
25
+ border-style: solid;
26
+ border-color: transparent;
27
+ border-radius: var(--zd_size4);
28
+ }
29
+
30
+ .tooltipWrapCont {
31
+ white-space: pre-wrap;
32
+ }
33
+
34
+ .tooltipNormalCont {
35
+ white-space: normal;
36
+ }
37
+ .tooltiparrow {
38
+ content: '';
39
+ position: absolute;
40
+ top: 0 ;
41
+ border-top-left-radius: 3px;
42
+ }
43
+
44
+ .arrowUp,
45
+ .arrowDown {
46
+ /* Variable:Ignore */
47
+ width: 11px;
48
+ /* Variable:Ignore */
49
+ height: 11px;
50
+ border-top: solid 6px var(--zdt_tooltip_default_bg);
51
+ border-left: solid 6px var(--zdt_tooltip_default_bg);
52
+ border-right: solid 6px transparent;
53
+ border-bottom: solid 6px transparent;
54
+ box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
55
+ z-index: -1;
56
+ }
57
+
58
+ .arrowDown {
59
+ /* Variable:Ignore */
60
+ margin-top: -4px !important;
61
+ /* put important because of '.wms-mainui *' have margin: 0; */
62
+ }
63
+
64
+ .arrowLeft,
65
+ .arrowRight {
66
+ /* Variable:Ignore */
67
+ width: 11px;
68
+ /* Variable:Ignore */
69
+ height: 11px;
70
+ border-top: solid 6px var(--zdt_tooltip_default_bg);
71
+ border-left: solid 6px var(--zdt_tooltip_default_bg);
72
+ border-right: solid 6px transparent;
73
+ border-bottom: solid 6px transparent;
74
+ box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
75
+ z-index: -1;
76
+ }
77
+
78
+ .arrowRight {
79
+ /* Variable:Ignore */
80
+ margin-left: -2px;
81
+ }
82
+
83
+ .arrowLeft {
84
+ /* Variable:Ignore */
85
+ margin-left: 1px;
86
+ }
87
+
88
+ .arrowUp {
89
+ transform: rotate(45deg);
90
+ }
91
+
92
+ .arrowDown {
93
+ transform: rotate(225deg);
94
+ }
95
+
96
+ .arrowLeft {
97
+ transform: rotate(315deg) translateY(-50%);
98
+ }
99
+
100
+ .arrowRight {
101
+ transform: rotate(135deg) translateY(50%);
102
+ }
103
+ @keyframes tooltip-grow {
104
+ from {
105
+ opacity: 0;
106
+ }
107
+
108
+ to {
109
+ opacity: 1;
110
+ }
111
+ }
112
+
113
+ @-webkit-keyframes tooltip-grow {
114
+ from {
115
+ opacity: 0;
116
+ }
117
+
118
+ to {
119
+ opacity: 1;
120
+ }
121
+ }
122
+
123
+ @-moz-keyframes tooltip-grow {
124
+ from {
125
+ opacity: 0;
126
+ }
127
+
128
+ to {
129
+ opacity: 1;
130
+ }
131
+ }
132
+
133
+ @-ms-keyframes tooltip-grow {
134
+ from {
135
+ opacity: 0;
136
+ }
137
+
138
+ to {
139
+ opacity: 1;
140
+ }
141
141
  }
@@ -1,4 +1,4 @@
1
- :root {
2
- --lib_a11y_focusScope_focus_border: var(--zdt_a11y_focusScope_focus_border);
3
- --lib_a11y_focusScope_focus_bg: var(--zdt_listitem_highlight_bg);
1
+ :root {
2
+ --lib_a11y_focusScope_focus_border: var(--zdt_a11y_focusScope_focus_border);
3
+ --lib_a11y_focusScope_focus_bg: var(--zdt_listitem_highlight_bg);
4
4
  }