@zohodesk/components 1.0.0-alpha-216 → 1.0.0-alpha-220

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 (66) hide show
  1. package/README.md +35 -20
  2. package/es/AppContainer/AppContainer.js +46 -5
  3. package/es/Appearance/dark/mode/darkMode.module.css +3 -5
  4. package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +5 -0
  5. package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
  6. package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +5 -0
  7. package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +5 -0
  8. package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
  9. package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +5 -0
  10. package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +5 -0
  11. package/es/Appearance/default/mode/defaultMode.module.css +11 -11
  12. package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -0
  13. package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
  14. package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +5 -0
  15. package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
  16. package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +5 -0
  17. package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
  18. package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +5 -0
  19. package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +5 -0
  20. package/es/Provider/Config.js +2 -1
  21. package/es/Responsive/ResizeComponent.js +1 -1
  22. package/es/Select/Select.js +1 -1
  23. package/es/Tag/Tag.module.css +1 -0
  24. package/es/common/animation.module.css +12 -0
  25. package/es/utils/ContextOptimizer.js +1 -1
  26. package/es/utils/shallowEqual.js +32 -0
  27. package/lib/AppContainer/AppContainer.js +55 -6
  28. package/lib/Appearance/dark/mode/darkMode.module.css +3 -5
  29. package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +5 -0
  30. package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
  31. package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +5 -0
  32. package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +5 -0
  33. package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
  34. package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +5 -0
  35. package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +5 -0
  36. package/lib/Appearance/default/mode/defaultMode.module.css +11 -11
  37. package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -0
  38. package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
  39. package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +5 -0
  40. package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
  41. package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +5 -0
  42. package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
  43. package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +5 -0
  44. package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +5 -0
  45. package/lib/Provider/Config.js +2 -1
  46. package/lib/Responsive/ResizeComponent.js +1 -1
  47. package/lib/Select/Select.js +2 -1
  48. package/lib/Tag/Tag.module.css +1 -0
  49. package/lib/common/animation.module.css +12 -0
  50. package/lib/utils/ContextOptimizer.js +2 -2
  51. package/lib/utils/shallowEqual.js +41 -0
  52. package/package.json +1 -1
  53. package/es/deprecated/Theme/darkTheme.module.css +0 -393
  54. package/es/deprecated/Theme/defaultTheme.module.css +0 -393
  55. package/es/deprecated/Theme/palette/darkCTAPalette.module.css +0 -116
  56. package/es/deprecated/Theme/palette/darkPalette.module.css +0 -155
  57. package/es/deprecated/Theme/palette/defaultCTAPalette.module.css +0 -116
  58. package/es/deprecated/Theme/palette/defaultPalette.module.css +0 -155
  59. package/es/deprecated/customscroll_Old.module.css +0 -46
  60. package/lib/deprecated/Theme/darkTheme.module.css +0 -393
  61. package/lib/deprecated/Theme/defaultTheme.module.css +0 -393
  62. package/lib/deprecated/Theme/palette/darkCTAPalette.module.css +0 -116
  63. package/lib/deprecated/Theme/palette/darkPalette.module.css +0 -155
  64. package/lib/deprecated/Theme/palette/defaultCTAPalette.module.css +0 -116
  65. package/lib/deprecated/Theme/palette/defaultPalette.module.css +0 -155
  66. package/lib/deprecated/customscroll_Old.module.css +0 -46
@@ -42,7 +42,7 @@ export default class ResizeComponent extends React.Component {
42
42
  let newAdded = false;
43
43
  mutation.addedNodes.forEach(mut => {
44
44
  // Here we can listen for icon nodes. Confirm with bk
45
- if (mut.attributes['data-responsive'] && (childrenList.length !== this.querySelector().length || this.childrenCurrentList.length !== this.querySelector().length)) {
45
+ if (mut.attributes && mut.attributes['data-responsive'] && (childrenList.length !== this.querySelector().length || this.childrenCurrentList.length !== this.querySelector().length)) {
46
46
  newAdded = true;
47
47
  }
48
48
  });
@@ -249,7 +249,7 @@ export class SelectComponent extends Component {
249
249
  options,
250
250
  valueField,
251
251
  textField,
252
- customProps
252
+ customProps = {}
253
253
  } = props;
254
254
  let {
255
255
  listItemProps = {}
@@ -230,6 +230,7 @@
230
230
  }
231
231
  .dark:hover {
232
232
  --tag_bg_color: var(--zdt_tag_dark_hover_bg);
233
+ --tag_text_color: var(--zdt_tag_dark_hover_text);
233
234
  }
234
235
  .darkTagClose {
235
236
  --tag_closeicon_bg_color: var(--zdt_tag_dark_close_bg);
@@ -21,6 +21,18 @@
21
21
  -webkit-animation-iteration-count: infinite;
22
22
  -ms-animation-iteration-count: infinite;
23
23
  }
24
+ [dir=ltr] .both {
25
+ animation-fill-mode: both;
26
+ -webkit-animation-fill-mode: both;
27
+ -ms-animation-fill-mode: both;
28
+ -moz-animation-fill-mode: both;
29
+ }
30
+ [dir=rtl] .both {
31
+ animation-fill-mode: both;
32
+ -webkit-animation-fill-mode: both;
33
+ -ms-animation-fill-mode: both;
34
+ -moz-animation-fill-mode: both;
35
+ }
24
36
  .fadeIn {
25
37
  opacity: 0;
26
38
  }
@@ -1,7 +1,7 @@
1
1
  /** ** Libraries *** */
2
2
  import { useContext, useRef } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { shallowEqual } from 'react-redux'; // Please use this component with children as inline function for force this components rerender when parent rerender regardless of reason
4
+ import shallowEqual from './shallowEqual'; // Please use this component with children as inline function for force this components rerender when parent rerender regardless of reason
5
5
  // Because below componends only rerender when children or calculation are changed, unless no changes will update below
6
6
  // this component logic based on return same children reference to stop rerender.
7
7
  // Think before change logic
@@ -0,0 +1,32 @@
1
+ function is(x, y) {
2
+ if (x === y) {
3
+ return x !== 0 || y !== 0 || 1 / x === 1 / y;
4
+ } else {
5
+ return x !== x && y !== y;
6
+ }
7
+ }
8
+
9
+ export default function shallowEqual(objA, objB) {
10
+ if (is(objA, objB)) {
11
+ return true;
12
+ }
13
+
14
+ if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
15
+ return false;
16
+ }
17
+
18
+ const keysA = Object.keys(objA);
19
+ const keysB = Object.keys(objB);
20
+
21
+ if (keysA.length !== keysB.length) {
22
+ return false;
23
+ }
24
+
25
+ for (let i = 0; i < keysA.length; i++) {
26
+ if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
27
+ return false;
28
+ }
29
+ }
30
+
31
+ return true;
32
+ }
@@ -33,6 +33,8 @@ require("@zohodesk/variables/lib/no_transitionVariables.module.css");
33
33
 
34
34
  var _AppContainerModule = _interopRequireDefault(require("./AppContainer.module.css"));
35
35
 
36
+ var _Config = require("../Provider/Config");
37
+
36
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
37
39
 
38
40
  function _extends() { _extends = Object.assign || 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); }
@@ -70,21 +72,69 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
70
72
  _this = _super.call(this, props);
71
73
  _this.setTooltipRef = _this.setTooltipRef.bind(_assertThisInitialized(_this));
72
74
  _this.handleOver = _this.handleOver.bind(_assertThisInitialized(_this));
75
+ _this.mouseOverDispatch = _this.mouseOverDispatch.bind(_assertThisInitialized(_this));
76
+ _this.removeTimeout = _this.removeTimeout.bind(_assertThisInitialized(_this));
77
+ _this.getContainerRef = _this.getContainerRef.bind(_assertThisInitialized(_this));
78
+ _this.timer = null;
79
+ _this.tooltipDebounce = (0, _Config.getLibraryConfig)('tooltipDebounce');
73
80
  return _this;
74
81
  }
75
82
 
76
83
  _createClass(AppContainer, [{
77
- key: "handleOver",
78
- value: function handleOver(e) {
84
+ key: "mouseOverDispatch",
85
+ value: function mouseOverDispatch(e) {
79
86
  if (this.tooltipRef) {
80
87
  this.tooltipRef.handleOver(e);
81
88
  }
82
89
  }
90
+ }, {
91
+ key: "removeTimeout",
92
+ value: function removeTimeout() {
93
+ if (this.timer) {
94
+ this.timer = clearTimeout(this.timer);
95
+ }
96
+ }
97
+ }, {
98
+ key: "handleOver",
99
+ value: function handleOver(e) {
100
+ var _this2 = this;
101
+
102
+ if (this.timer) {
103
+ this.timer = clearTimeout(this.timer);
104
+ }
105
+
106
+ this.timer = setTimeout(function () {
107
+ return _this2.mouseOverDispatch(e);
108
+ }, this.tooltipDebounce);
109
+ }
110
+ }, {
111
+ key: "getContainerRef",
112
+ value: function getContainerRef(ref) {
113
+ var eleRef = this.props.eleRef;
114
+ this.containerElement = ref;
115
+ eleRef && eleRef(ref);
116
+ }
83
117
  }, {
84
118
  key: "setTooltipRef",
85
119
  value: function setTooltipRef(ref) {
86
120
  this.tooltipRef = ref;
87
121
  }
122
+ }, {
123
+ key: "componentDidMount",
124
+ value: function componentDidMount() {
125
+ if (this.containerElement) {
126
+ this.containerElement.addEventListener('mouseover', this.handleOver, false);
127
+ this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
128
+ }
129
+ }
130
+ }, {
131
+ key: "componentWillUnmount",
132
+ value: function componentWillUnmount() {
133
+ if (this.containerElement) {
134
+ this.containerElement.removeEventListener('mouseover', this.handleOver, false);
135
+ this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
136
+ }
137
+ }
88
138
  }, {
89
139
  key: "render",
90
140
  value: function render() {
@@ -93,7 +143,6 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
93
143
  children = _this$props.children,
94
144
  tagName = _this$props.tagName,
95
145
  dataId = _this$props.dataId,
96
- eleRef = _this$props.eleRef,
97
146
  tooltipClass = _this$props.tooltipClass,
98
147
  tooltipParentClass = _this$props.tooltipParentClass,
99
148
  customProps = _this$props.customProps;
@@ -104,11 +153,11 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
104
153
  _customProps$ExtraPro = customProps.ExtraProps,
105
154
  ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
106
155
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
107
- className: "".concat(_AppContainerModule["default"].container, " ").concat(className),
108
- onMouseOver: this.handleOver,
156
+ className: "".concat(_AppContainerModule["default"].container, " ").concat(className) //onMouseOver={this.handleOver}
157
+ ,
109
158
  dataId: dataId,
110
159
  tagName: tagName,
111
- eleRef: eleRef
160
+ eleRef: this.getContainerRef
112
161
  }, ContainerProps, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
113
162
  flexible: true
114
163
  }, children)), /*#__PURE__*/_react["default"].createElement("div", _extends({}, ExtraProps, {
@@ -153,7 +153,6 @@
153
153
  --zdt_textbox_effect_hover_border: var(--dot_inputLineHover);
154
154
  --zdt_textbox_effect_focus_border: var(--dot_inputLineFocus);
155
155
  --zdt_textbox_secondary_text: #a8b0bd;
156
- --zdt_textbox_light_text: var(--dot_text_white);
157
156
 
158
157
  /* dropdown */
159
158
  --zdt_dropdown_default_text: #e2e4e6;
@@ -295,7 +294,6 @@
295
294
  --zdt_multiselect_box_bg: #232b38;
296
295
  --zdt_multiselect_selectall_text: var(--zdt_cta_primary_text);
297
296
  --zdt_multiselect_message_text: #828994;
298
- --zdt_multiselect_darkmsg_text: #d0d0d4;
299
297
 
300
298
  /* advanced multiselect */
301
299
  --zdt_advancedmultiselect_default_border: var(--dot_inputLine);
@@ -382,14 +380,14 @@
382
380
  --zdt_tabs_alpha_box_shadow: var(--zd_shadow_dark10);
383
381
  --zdt_tabs_delta_border: var(--zdt_cta_primary_border);
384
382
  --zdt_tabs_highlight_border: #e2e4e6;
385
-
383
+
386
384
  /* custom scroll */
387
385
  --zdt_customscroll_default_bg: rgba(225, 225, 225, 0.06);
388
386
  --zdt_customscroll_thump_bg: rgba(225, 225, 225, 0.12);
389
- --zdt_customscroll_thump_dark_bg: rgba(225, 225, 225, 0.12);
390
387
  --zdt_customscroll_thump_hover_bg: rgba(168, 176, 189, 0.3);
391
- --zdt_customscroll_thump_dark_hover_bg: rgba(225, 225, 225, 0.14);
392
388
  --zdt_customscroll_border: rgba(225, 225, 225, 0.12);
389
+ --zdt_customscroll_thump_dark_bg: rgba(225, 225, 225, 0.12);
390
+ --zdt_customscroll_thump_dark_hover_bg: rgba(225, 225, 225, 0.14);
393
391
  --zdt_customscroll_dark_border: rgba(225, 225, 225, 0.12);
394
392
  --zdt_customscroll_dark_bg: rgba(225, 225, 225, 0.06);
395
393
  }
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: #42485f;
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: #4b5168;
31
32
  --zdt_multiselect_darkmsg_bg: #232b38;
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: #a8b0bd;
43
48
  }
@@ -18,7 +18,7 @@
18
18
  --zdt_cta_alpha_hover_text: #0e7c1c;
19
19
  --zdt_cta_alpha_border: #45a159;
20
20
  --zdt_cta_alpha_hover_border: #0e7c1c;
21
- --zdt_cta_alpha_bg: #2A433F;
21
+ --zdt_cta_alpha_bg: #2a433f;
22
22
  --zdt_cta_beta_border: #45a159;
23
23
  --zdt_cta_grey_10_bg: #262f3d;
24
24
  --zdt_cta_grey_10_border: #262f3d;
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: #42485f;
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: #4b5168;
31
32
  --zdt_multiselect_darkmsg_bg: #232b38;
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: #a8b0bd;
43
48
  }
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: #42485f;
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: #4b5168;
31
32
  --zdt_multiselect_darkmsg_bg: #232b38;
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: #a8b0bd;
43
48
  }
@@ -18,7 +18,7 @@
18
18
  --zdt_cta_alpha_hover_text: #a81111;
19
19
  --zdt_cta_alpha_border: #e94f4f;
20
20
  --zdt_cta_alpha_hover_border: #a81111;
21
- --zdt_cta_alpha_bg: #372F3A;
21
+ --zdt_cta_alpha_bg: #372f3a;
22
22
  --zdt_cta_beta_border: #e94f4f;
23
23
  --zdt_cta_grey_10_bg: #262f3d;
24
24
  --zdt_cta_grey_10_border: #262f3d;
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: #42485f;
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: #4b5168;
31
32
  --zdt_multiselect_darkmsg_bg: #232b38;
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: #a8b0bd;
43
48
  }
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: #42485f;
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: #4b5168;
31
32
  --zdt_multiselect_darkmsg_bg: #232b38;
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: #a8b0bd;
43
48
  }
@@ -141,6 +141,8 @@
141
141
  --zdt_tag_pure_border: var(--zd_border_smoke91);
142
142
  --zdt_tag_pure_hover_bg: var(--zd_bg_smoke6);
143
143
  --zdt_tag_pure_hover_border: var(--zd_border_dark6);
144
+ --zdt_tag_dark_close_bg: #864654;
145
+ --zdt_tag_dark_close_text: #de3535;
144
146
  --zdt_tag_dark_close_hover_bg: #de3535;
145
147
 
146
148
  /* textbox */
@@ -153,7 +155,6 @@
153
155
  --zdt_textbox_effect_hover_border: var(--dot_inputLineHover);
154
156
  --zdt_textbox_effect_focus_border: var(--dot_inputLineFocus);
155
157
  --zdt_textbox_secondary_text: var(--dot_text_shuttleGrey);
156
- --zdt_textbox_light_text: var(--dot_text_white);
157
158
 
158
159
  /* dropdown */
159
160
  --zdt_dropdown_default_text: var(--dot_text_black);
@@ -295,7 +296,6 @@
295
296
  --zdt_multiselect_box_bg: var(--dot_bg_white);
296
297
  --zdt_multiselect_selectall_text: var(--zdt_cta_primary_text);
297
298
  --zdt_multiselect_message_text: var(--dot_text_slateGrey);
298
- --zdt_multiselect_darkmsg_text: #d0d0d4;
299
299
 
300
300
  /* advanced multiselect */
301
301
  --zdt_advancedmultiselect_default_border: var(--dot_inputLine);
@@ -383,13 +383,13 @@
383
383
  --zdt_tabs_delta_border: var(--zdt_cta_primary_border);
384
384
  --zdt_tabs_highlight_border: var(--dot_border_black);
385
385
 
386
- /* custom scroll */
387
- --zdt_customscroll_default_bg: rgba(0, 0, 0, 0.02);
388
- --zdt_customscroll_thump_bg: rgba(0, 0, 0, 0.12);
389
- --zdt_customscroll_thump_dark_bg: rgba(225, 225, 225, 0.15);
390
- --zdt_customscroll_thump_hover_bg: rgba(0, 0, 0, 0.16);
391
- --zdt_customscroll_thump_dark_hover_bg: rgba(225, 225, 225, 0.17);
392
- --zdt_customscroll_border: rgba(44, 51, 77, 0.1);
393
- --zdt_customscroll_dark_border: rgba(225, 225, 225, 0.12);
394
- --zdt_customscroll_dark_bg: rgba(225, 225, 225, 0.06);
386
+ /* custom scroll */
387
+ --zdt_customscroll_default_bg: rgba(0, 0, 0, 0.02);
388
+ --zdt_customscroll_thump_bg: rgba(0, 0, 0, 0.12);
389
+ --zdt_customscroll_thump_hover_bg: rgba(0, 0, 0, 0.16);
390
+ --zdt_customscroll_border: rgba(44, 51, 77, 0.1);
391
+ --zdt_customscroll_thump_dark_bg: rgba(225, 225, 225, 0.15);
392
+ --zdt_customscroll_thump_dark_hover_bg: rgba(225, 225, 225, 0.17);
393
+ --zdt_customscroll_dark_border: rgba(225, 225, 225, 0.12);
394
+ --zdt_customscroll_dark_bg: rgba(225, 225, 225, 0.06);
395
395
  }
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: #42485f;
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: #4b5168;
31
32
  --zdt_multiselect_darkmsg_bg: #383f57;
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: var(--dot_text_white);
43
48
  }
@@ -18,7 +18,7 @@
18
18
  --zdt_cta_alpha_hover_text: #0e7526;
19
19
  --zdt_cta_alpha_border: #26a942;
20
20
  --zdt_cta_alpha_hover_border: #0e7526;
21
- --zdt_cta_alpha_bg: #D4EED9;
21
+ --zdt_cta_alpha_bg: #d4eed9;
22
22
  --zdt_cta_beta_border: #26a942;
23
23
  --zdt_cta_grey_10_bg: #f6faf9;
24
24
  --zdt_cta_grey_10_border: #f6faf9;
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
31
32
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: var(--dot_text_white);
43
48
  }
@@ -18,7 +18,7 @@
18
18
  --zdt_cta_alpha_hover_text: #b25900;
19
19
  --zdt_cta_alpha_border: #e57717;
20
20
  --zdt_cta_alpha_hover_border: #b25900;
21
- --zdt_cta_alpha_bg: #FAE4D1;
21
+ --zdt_cta_alpha_bg: #fae4d1;
22
22
  --zdt_cta_beta_border: #e57717;
23
23
  --zdt_cta_grey_10_bg: #f9f7f6;
24
24
  --zdt_cta_grey_10_border: #f9f7f6;
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
31
32
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: var(--dot_text_white);
43
48
  }
@@ -18,7 +18,7 @@
18
18
  --zdt_cta_alpha_hover_text: #ab1a18;
19
19
  --zdt_cta_alpha_border: #de3535;
20
20
  --zdt_cta_alpha_hover_border: #ab1a18;
21
- --zdt_cta_alpha_bg: #F8D7D7;
21
+ --zdt_cta_alpha_bg: #f8d7d7;
22
22
  --zdt_cta_beta_border: #de3535;
23
23
  --zdt_cta_grey_10_bg: #f9f6f7;
24
24
  --zdt_cta_grey_10_border: #f9f6f7;
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
31
32
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: var(--dot_text_white);
43
48
  }
@@ -22,6 +22,7 @@
22
22
  /* tag */
23
23
  --zdt_tag_dark_text: #d0d0d4;
24
24
  --zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
25
+ --zdt_tag_dark_hover_text: #d0d0d4;
25
26
  --zdt_tag_dark_hover_bg: #503348;
26
27
  --zdt_tag_dark_close_bg: #864654;
27
28
  --zdt_tag_dark_close_text: #de3535;
@@ -29,6 +30,7 @@
29
30
  /* multiselect */
30
31
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
31
32
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
33
+ --zdt_multiselect_darkmsg_text: #d0d0d4;
32
34
  --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
33
35
 
34
36
  /* avatar */
@@ -38,6 +40,9 @@
38
40
  /* label */
39
41
  --zdt_label_dark_text: #d0d0d4;
40
42
 
43
+ /* textbox */
44
+ --zdt_textbox_light_text: var(--dot_text_white);
45
+
41
46
  /* dropdown */
42
47
  --zdt_dropdown_darkheading_text: var(--dot_text_white);
43
48
  }
@@ -12,7 +12,8 @@ var id = {
12
12
  idPrefix: 'ZD',
13
13
  scrollFetchLimit: 80,
14
14
  isReducedMotion: false,
15
- direction: 'ltr'
15
+ direction: 'ltr',
16
+ tooltipDebounce: 175
16
17
  };
17
18
 
18
19
  function getLibraryConfig(key) {
@@ -97,7 +97,7 @@ var ResizeComponent = /*#__PURE__*/function (_React$Component) {
97
97
  var newAdded = false;
98
98
  mutation.addedNodes.forEach(function (mut) {
99
99
  // Here we can listen for icon nodes. Confirm with bk
100
- if (mut.attributes['data-responsive'] && (childrenList.length !== _this2.querySelector().length || _this2.childrenCurrentList.length !== _this2.querySelector().length)) {
100
+ if (mut.attributes && mut.attributes['data-responsive'] && (childrenList.length !== _this2.querySelector().length || _this2.childrenCurrentList.length !== _this2.querySelector().length)) {
101
101
  newAdded = true;
102
102
  }
103
103
  });
@@ -295,7 +295,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
295
295
  var options = props.options,
296
296
  valueField = props.valueField,
297
297
  textField = props.textField,
298
- customProps = props.customProps;
298
+ _props$customProps = props.customProps,
299
+ customProps = _props$customProps === void 0 ? {} : _props$customProps;
299
300
  var _customProps$listItem = customProps.listItemProps,
300
301
  listItemProps = _customProps$listItem === void 0 ? {} : _customProps$listItem;
301
302
  return this.formatOptions({
@@ -230,6 +230,7 @@
230
230
  }
231
231
  .dark:hover {
232
232
  --tag_bg_color: var(--zdt_tag_dark_hover_bg);
233
+ --tag_text_color: var(--zdt_tag_dark_hover_text);
233
234
  }
234
235
  .darkTagClose {
235
236
  --tag_closeicon_bg_color: var(--zdt_tag_dark_close_bg);
@@ -21,6 +21,18 @@
21
21
  -webkit-animation-iteration-count: infinite;
22
22
  -ms-animation-iteration-count: infinite;
23
23
  }
24
+ [dir=ltr] .both {
25
+ animation-fill-mode: both;
26
+ -webkit-animation-fill-mode: both;
27
+ -ms-animation-fill-mode: both;
28
+ -moz-animation-fill-mode: both;
29
+ }
30
+ [dir=rtl] .both {
31
+ animation-fill-mode: both;
32
+ -webkit-animation-fill-mode: both;
33
+ -ms-animation-fill-mode: both;
34
+ -moz-animation-fill-mode: both;
35
+ }
24
36
  .fadeIn {
25
37
  opacity: 0;
26
38
  }