@zohodesk/components 1.0.0-alpha-226 → 1.0.0-alpha-229

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 (68) hide show
  1. package/README.md +20 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +2 -0
  3. package/assets/Appearance/default/mode/defaultMode.module.css +2 -0
  4. package/es/Animation/Animation.js +7 -8
  5. package/es/Avatar/Avatar.js +10 -10
  6. package/es/Button/Button.js +15 -16
  7. package/es/Button/Button.module.css +6 -2
  8. package/es/Card/Card.js +4 -5
  9. package/es/DateTime/DateWidget.module.css +0 -4
  10. package/es/DropBox/DropBox.js +2 -2
  11. package/es/ListItem/ListContainer.js +3 -8
  12. package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -4
  13. package/es/MultiSelect/AdvancedMultiSelect.js +21 -7
  14. package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  15. package/es/MultiSelect/MultiSelect.js +18 -7
  16. package/es/MultiSelect/MultiSelect.module.css +8 -13
  17. package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
  18. package/es/MultiSelect/SelectedOptions.js +3 -2
  19. package/es/PopOver/PopOver.js +19 -20
  20. package/es/Popup/Popup.js +1 -1
  21. package/es/Radio/Radio.js +1 -2
  22. package/es/Radio/Radio.module.css +2 -2
  23. package/es/Ribbon/Ribbon.js +8 -8
  24. package/es/RippleEffect/RippleEffect.js +7 -4
  25. package/es/RippleEffect/RippleEffect.module.css +3 -0
  26. package/es/Select/Select.module.css +1 -1
  27. package/es/Select/SelectWithAvatar.js +7 -4
  28. package/es/Stencils/Stencils.js +5 -6
  29. package/es/Tag/Tag.js +10 -4
  30. package/es/Tag/Tag.module.css +14 -11
  31. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  32. package/es/TextBoxIcon/TextBoxIcon.module.css +5 -2
  33. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -1
  34. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
  35. package/es/utils/dropDownUtils.js +39 -1
  36. package/lib/Animation/Animation.js +7 -8
  37. package/lib/Avatar/Avatar.js +10 -10
  38. package/lib/Button/Button.js +15 -16
  39. package/lib/Button/Button.module.css +6 -2
  40. package/lib/Card/Card.js +4 -5
  41. package/lib/DateTime/DateWidget.module.css +0 -4
  42. package/lib/DropBox/DropBox.js +6 -2
  43. package/lib/ListItem/ListContainer.js +3 -8
  44. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -4
  45. package/lib/MultiSelect/AdvancedMultiSelect.js +21 -6
  46. package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  47. package/lib/MultiSelect/MultiSelect.js +18 -6
  48. package/lib/MultiSelect/MultiSelect.module.css +8 -13
  49. package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -3
  50. package/lib/MultiSelect/SelectedOptions.js +3 -2
  51. package/lib/PopOver/PopOver.js +19 -20
  52. package/lib/Popup/Popup.js +32 -29
  53. package/lib/Radio/Radio.js +1 -3
  54. package/lib/Radio/Radio.module.css +2 -2
  55. package/lib/Ribbon/Ribbon.js +8 -8
  56. package/lib/RippleEffect/RippleEffect.js +7 -4
  57. package/lib/RippleEffect/RippleEffect.module.css +3 -0
  58. package/lib/Select/Select.module.css +1 -1
  59. package/lib/Select/SelectWithAvatar.js +7 -4
  60. package/lib/Stencils/Stencils.js +5 -6
  61. package/lib/Tag/Tag.js +10 -4
  62. package/lib/Tag/Tag.module.css +14 -11
  63. package/lib/TextBoxIcon/TextBoxIcon.js +1 -1
  64. package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -2
  65. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +5 -3
  66. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -3
  67. package/lib/utils/dropDownUtils.js +45 -2
  68. package/package.json +4 -4
package/es/Popup/Popup.js CHANGED
@@ -422,7 +422,7 @@ const Popup = function (Component) {
422
422
  // isResizeHandling --->>> Window resize and dropBox resize
423
423
  const {
424
424
  direction
425
- } = this.context;
425
+ } = this.context || {};
426
426
  const {
427
427
  placeHolderElement,
428
428
  dropElement
package/es/Radio/Radio.js CHANGED
@@ -3,7 +3,6 @@ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import Label from '../Label/Label';
5
5
  import { Container, Box } from '../Layout';
6
- import CssProvider from '../Provider/CssProvider';
7
6
  import style from './Radio.module.css';
8
7
  export default class Radio extends React.Component {
9
8
  constructor(props) {
@@ -45,7 +44,7 @@ export default class Radio extends React.Component {
45
44
  customRadio = '',
46
45
  customLabel = ''
47
46
  } = customClass;
48
- let accessMode = isReadOnly ? style.readonly : disabled ? CssProvider('isDisabled') : style.pointer;
47
+ let accessMode = isReadOnly ? style.readonly : disabled ? style.disabled : style.pointer;
49
48
  let toolTip = disabled ? disabledTitle : title ? title : null;
50
49
  let {
51
50
  ariaHidden,
@@ -18,8 +18,8 @@
18
18
  .pointer {
19
19
  cursor: pointer;
20
20
  }
21
- .readonly {
22
- cursor: default;
21
+ .readonly, .disabled {
22
+ cursor: not-allowed;
23
23
  }
24
24
  .radio {
25
25
  composes: offSelection from '../common/common.module.css';
@@ -38,14 +38,14 @@ Ribbon.propTypes = {
38
38
  text: PropTypes.string,
39
39
  type: PropTypes.oneOf(['default', 'flag', 'plain', 'ribbon', 'box', 'stamp', 'sticker', 'tag']),
40
40
  customClass: PropTypes.string
41
- };
42
- Ribbon.propTypesDescription = {
43
- text: ' ',
44
- type: ' ',
45
- children: ' ',
46
- palette: ' ',
47
- size: ' '
48
- };
41
+ }; // Ribbon.propTypesDescription = {
42
+ // text: ' ',
43
+ // type: ' ',
44
+ // children: ' ',
45
+ // palette: ' ',
46
+ // size: ' '
47
+ // };
48
+
49
49
  Ribbon.defaultProps = {
50
50
  palette: 'default',
51
51
  size: 'large',
@@ -10,9 +10,10 @@ export default function RippleEffect(props) {
10
10
  palette,
11
11
  hoverType,
12
12
  isNeedEffect,
13
- needBorder
13
+ needBorder,
14
+ isCopyTextEnabled
14
15
  } = props;
15
- let className = isNeedEffect ? `${style.effect} ${style[palette]} ${needBorder ? style.border : ''} ${style[`${hoverType}Hover`] ? style[`${hoverType}Hover`] : ''} ${isActive && !isDisabled ? style.active : ''} ${isDisabled ? '' : style.hoverEffect} ${isDisabled ? CssProvider('isDisabled') : ''}` : '';
16
+ let className = isNeedEffect ? `${style.effect} ${style[palette]} ${needBorder ? style.border : ''} ${style[`${hoverType}Hover`] ? style[`${hoverType}Hover`] : ''} ${isActive && !isDisabled ? style.active : ''} ${isDisabled ? '' : style.hoverEffect} ${isCopyTextEnabled ? style.notAllowed : isDisabled ? CssProvider('isDisabled') : ''}` : '';
16
17
  let child = React.Children.only(children);
17
18
  return /*#__PURE__*/React.cloneElement(child, {
18
19
  className: `${child.props.className || ''} ${className}`
@@ -24,7 +25,8 @@ RippleEffect.defaultProps = {
24
25
  isNeedEffect: true,
25
26
  needBorder: true,
26
27
  hoverType: 'default',
27
- palette: 'default'
28
+ palette: 'default',
29
+ isCopyTextEnabled: false
28
30
  };
29
31
  RippleEffect.propTypes = {
30
32
  children: PropTypes.node,
@@ -33,7 +35,8 @@ RippleEffect.propTypes = {
33
35
  isDisabled: PropTypes.bool,
34
36
  isNeedEffect: PropTypes.bool,
35
37
  needBorder: PropTypes.bool,
36
- palette: PropTypes.oneOf(['default', 'primary', 'primaryLight', 'primaryFilled', 'primaryDark', 'green', 'danger'])
38
+ palette: PropTypes.oneOf(['default', 'primary', 'primaryLight', 'primaryFilled', 'primaryDark', 'green', 'danger']),
39
+ isCopyTextEnabled: PropTypes.bool
37
40
  };
38
41
 
39
42
  if (false) {
@@ -65,3 +65,6 @@
65
65
  .hoverEffect:hover.primaryDark.bgHover, .hoverEffect:focus.primaryDark.bgHover {
66
66
  background-color: var(--zdt_rippleeffect_primary_dark_bg);
67
67
  }
68
+ .notAllowed {
69
+ cursor: not-allowed;
70
+ }
@@ -47,7 +47,7 @@
47
47
  padding: var(--zd_size10) 0;
48
48
  }
49
49
  .readonly {
50
- composes: readonly from '../common/common.module.css';
50
+ --textboxicon_icon_cursor: not-allowed;
51
51
  }
52
52
  .transparentContainer .arrowIcon {
53
53
  opacity: 0;
@@ -141,7 +141,8 @@ class SelectWithAvatarComponent extends SelectComponent {
141
141
  tagSize,
142
142
  groupName,
143
143
  i18nKeys,
144
- htmlId
144
+ htmlId,
145
+ needEffect
145
146
  } = this.props;
146
147
  i18nKeys = Object.assign({}, i18nKeys, {
147
148
  emptyText: i18nKeys.emptyText || emptyMessage,
@@ -164,7 +165,7 @@ class SelectWithAvatarComponent extends SelectComponent {
164
165
  let setAriaId = this.getNextAriaId();
165
166
  let ariaErrorId = this.getNextAriaId();
166
167
  return /*#__PURE__*/React.createElement("div", {
167
- className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${className ? className : ''}`,
168
+ className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
168
169
  "data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
169
170
  "data-title": isDisabled ? title : ''
170
171
  }, /*#__PURE__*/React.createElement(Container, {
@@ -342,7 +343,8 @@ SelectWithAvatarComponent.propTypes = {
342
343
  title: PropTypes.string,
343
344
  togglePopup: PropTypes.func,
344
345
  valueField: PropTypes.string,
345
- htmlId: PropTypes.string
346
+ htmlId: PropTypes.string,
347
+ needEffect: PropTypes.bool
346
348
  };
347
349
  SelectWithAvatarComponent.defaultProps = {
348
350
  animationStyle: 'bounce',
@@ -363,7 +365,8 @@ SelectWithAvatarComponent.defaultProps = {
363
365
  dataId: 'selectWithAvatar',
364
366
  borderColor: 'default',
365
367
  isSearchClearOnClose: true,
366
- i18nKeys: {}
368
+ i18nKeys: {},
369
+ needEffect: true
367
370
  };
368
371
  SelectWithAvatarComponent.displayName = 'SelectWithAvatar';
369
372
  let SelectWithAvatar = Popup(SelectWithAvatarComponent);
@@ -30,12 +30,11 @@ Stencils.defaultProps = {
30
30
  shape: 'rect',
31
31
  size: 'medium',
32
32
  customClass: ''
33
- };
34
- Stencils.propTypesDescription = {
35
- shape: ' ',
36
- size: ' ',
37
- palette: ' '
38
- };
33
+ }; // Stencils.propTypesDescription = {
34
+ // shape: ' ',
35
+ // size: ' ',
36
+ // palette: ' '
37
+ // };
39
38
 
40
39
  if (false) {
41
40
  Stencils.docs = {
package/es/Tag/Tag.js CHANGED
@@ -78,7 +78,9 @@ export default class Tag extends PureComponent {
78
78
  tooltip,
79
79
  avatarPalette,
80
80
  customClass,
81
- a11y
81
+ a11y,
82
+ needEffect,
83
+ isReadOnly
82
84
  } = this.props;
83
85
  let {
84
86
  customTag = '',
@@ -93,7 +95,7 @@ export default class Tag extends PureComponent {
93
95
  } = a11y;
94
96
  let isDarkPalette = palette === 'dark';
95
97
  return /*#__PURE__*/React.createElement("div", {
96
- className: `${style.container} ${active ? `${style.selected} ${style[`active${palette}`]}` : ''} ${onRemove ? active ? `${style[`active${size}Effect`]}` : '' : ''} ${style[size]} ${rounded ? style.lgRadius : style.smRadius} ${style[palette]} ${disabled ? style.disabled : ''} ${onSelectTag ? style.pointer : ''} ${customTag}`,
98
+ className: `${style.container} ${needEffect && !isReadOnly ? style.effect : style.readonly} ${active ? `${style.selected} ${style[`active${palette}`]}` : ''} ${onRemove ? active ? `${style[`active${size}Effect`]}` : '' : ''} ${style[size]} ${rounded ? style.lgRadius : style.smRadius} ${style[palette]} ${disabled ? style.disabled : ''} ${onSelectTag ? style.pointer : ''} ${customTag}`,
97
99
  "data-id": active ? `${dataId}_TagSelected` : `${dataId}_Tag`,
98
100
  onClick: this.handleSelect,
99
101
  ref: this.getRef,
@@ -148,7 +150,9 @@ Tag.defaultProps = {
148
150
  size: 'medium',
149
151
  dataId: 'tag',
150
152
  customClass: {},
151
- a11y: {}
153
+ a11y: {},
154
+ needEffect: true,
155
+ isReadOnly: false
152
156
  };
153
157
  Tag.propTypes = {
154
158
  active: PropTypes.bool,
@@ -179,7 +183,9 @@ Tag.propTypes = {
179
183
  }),
180
184
  a11y: PropTypes.shape({
181
185
  clearLabel: PropTypes.string
182
- })
186
+ }),
187
+ needEffect: PropTypes.bool,
188
+ isReadOnly: PropTypes.bool
183
189
  };
184
190
 
185
191
  if (false) {
@@ -50,9 +50,12 @@
50
50
  }
51
51
  .disabled {
52
52
  pointer-events: none;
53
- --tag_cursor: not-allowed;
54
53
  --tag_text_color: var(--zdt_tag_disabled_text);
55
54
  }
55
+ .readonly,
56
+ .disabled {
57
+ --tag_cursor: not-allowed;
58
+ }
56
59
  .pointer {
57
60
  --tag_cursor: pointer;
58
61
  }
@@ -158,11 +161,11 @@
158
161
  .danger {
159
162
  --tag_bg_color: var(--zdt_tag_default_danger_bg);
160
163
  }
161
- .default:hover {
164
+ .effect.default:hover {
162
165
  --tag_bg_color: var(--zdt_tag_default_hover_bg);
163
166
  }
164
167
  .activedefault,
165
- .activedefault:hover {
168
+ .effect.activedefault:hover {
166
169
  --tag_bg_color: var(--zdt_tag_active_default_bg);
167
170
  }
168
171
  .activeprimaryClose,
@@ -170,11 +173,11 @@
170
173
  --tag_closeicon_bg_color: var(--zdt_tag_primary_bg);
171
174
  }
172
175
 
173
- .danger:hover {
176
+ .effect.danger:hover {
174
177
  --tag_bg_color: var(--zdt_tag_danger_hover_bg);
175
178
  }
176
179
  .activedanger,
177
- .activedanger:hover {
180
+ .effect.activedanger:hover {
178
181
  --tag_bg_color: var(--zdt_tag_danger_hover_bg);
179
182
  }
180
183
  .activedangerClose,
@@ -187,7 +190,7 @@
187
190
  --tag_text_color: var(--zdt_tag_secondary_text);
188
191
  }
189
192
  .activesecondary,
190
- .secondary:hover {
193
+ .effect.secondary:hover {
191
194
  --tag_bg_color: var(--zdt_tag_secondary_hover_bg);
192
195
  }
193
196
 
@@ -196,12 +199,12 @@
196
199
  --tag_border_width: 1px;
197
200
  --tag_border_color: var(--zdt_tag_pure_border);
198
201
  }
199
- .pureDotted:hover {
202
+ .effect.pureDotted:hover {
200
203
  --tag_bg_color: var(--zdt_tag_pure_hover_bg);
201
204
  --tag_border_color: var(--zdt_tag_pure_hover_border);
202
205
  }
203
206
  .activepureDotted,
204
- .activepureDotted:hover {
207
+ .effect.activepureDotted:hover {
205
208
  --tag_bg_color: var(--zdt_tag_pure_bg);
206
209
  }
207
210
 
@@ -210,10 +213,10 @@
210
213
  --tag_border_width: 1px;
211
214
  --tag_border_color: var(--zdt_tag_primary_border);
212
215
  }
213
- .primaryDotted:hover,
216
+ .effect.primaryDotted:hover,
214
217
  .activeprimaryDotted,
215
218
  .primary,
216
- .primary:hover {
219
+ .effect.primary:hover {
217
220
  --tag_bg_color: var(--zdt_tag_active_default_bg);
218
221
  }
219
222
 
@@ -228,7 +231,7 @@
228
231
  --tag_bg_color: var(--zdt_tag_dark_bg);
229
232
  --tag_text_color: var(--zdt_tag_dark_text);
230
233
  }
231
- .dark:hover {
234
+ .effect.dark:hover {
232
235
  --tag_bg_color: var(--zdt_tag_dark_hover_bg);
233
236
  --tag_text_color: var(--zdt_tag_dark_hover_text);
234
237
  }
@@ -100,7 +100,7 @@ export default class TextBoxIcon extends React.Component {
100
100
  return /*#__PURE__*/React.createElement(Container, {
101
101
  alignBox: "row",
102
102
  isCover: false,
103
- className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? needEffect ? style.effect : '' : style.effect} ${isActive || isFocus ? style.effectFocused : ''} ${customTBoxWrap} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
103
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? needEffect ? style.effect : style.readonly : style.effect} ${isActive || isFocus ? style.effectFocused : ''} ${customTBoxWrap} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
104
104
  "data-title": isDisabled ? title : ''
105
105
  }, /*#__PURE__*/React.createElement(Box, {
106
106
  flexible: true
@@ -12,8 +12,11 @@
12
12
  composes: varClass;
13
13
  position: relative;
14
14
  }
15
- .disabled {
16
- composes: disabled from '../common/common.module.css';
15
+ .disabled,.readonly {
16
+ --textboxicon_icon_cursor: not-allowed;
17
+ }
18
+ .disabled, .readonly {
19
+ cursor: not-allowed;
17
20
  }
18
21
  .icon {
19
22
  composes: offSelection from '../common/common.module.css';
@@ -23,7 +23,7 @@ export default class VelocityAnimation extends React.Component {
23
23
  let {
24
24
  direction,
25
25
  isReducedMotion
26
- } = this.context;
26
+ } = this.context || {};
27
27
  let enterAnimationObj = {
28
28
  fade: 'transition.fadeIn',
29
29
  slideDown: 'slideDown',
@@ -41,7 +41,7 @@ export default class VelocityAnimationGroup extends React.Component {
41
41
  let {
42
42
  direction,
43
43
  isReducedMotion
44
- } = this.context;
44
+ } = this.context || {};
45
45
  let childProps = clearProps(this.props);
46
46
  let enterAnimationObj = {
47
47
  fade: 'transition.fadeIn',
@@ -406,4 +406,42 @@ export const filterSelectedOptions = function () {
406
406
  return {
407
407
  newSelectedOptions: [...oldValidSelectedOptions, ...newlyAddedOptions]
408
408
  };
409
- };
409
+ };
410
+ export const makeGetIsShowClearIcon = () => createSelector([getSelectedOptionsSel, getDisabledOptions], (selectedOptions, disabledOptions) => {
411
+ let countForShowClear = 2;
412
+ let enabledOptionsLength = 0;
413
+ let isShowClearIcon = selectedOptions.length >= countForShowClear;
414
+
415
+ if (disabledOptions.length) {
416
+ let isHaveEnabledOptions = false;
417
+ let isAllDisabled = disabledOptions.length === selectedOptions.length;
418
+
419
+ if (!isAllDisabled) {
420
+ isHaveEnabledOptions = selectedOptions.some(option => {
421
+ let {
422
+ isDisabled = false
423
+ } = option || {};
424
+
425
+ if (!isDisabled) {
426
+ enabledOptionsLength += 1;
427
+
428
+ if (enabledOptionsLength === countForShowClear) {
429
+ return true;
430
+ }
431
+
432
+ return false;
433
+ }
434
+
435
+ return false;
436
+ });
437
+ }
438
+
439
+ return {
440
+ isShowClearIcon: isAllDisabled ? !isAllDisabled : isHaveEnabledOptions
441
+ };
442
+ }
443
+
444
+ return {
445
+ isShowClearIcon
446
+ };
447
+ });
@@ -188,14 +188,13 @@ Animation.defaultProps = {
188
188
  isActive: false,
189
189
  name: 'fadeIn',
190
190
  unmountOnExit: true
191
- };
192
- Animation.propTypesDescription = {
193
- name: ' ',
194
- children: ' ',
195
- enterDuration: ' ',
196
- exitDuration: ' ',
197
- isActive: ' '
198
- };
191
+ }; // Animation.propTypesDescription = {
192
+ // name: ' ',
193
+ // children: ' ',
194
+ // enterDuration: ' ',
195
+ // exitDuration: ' ',
196
+ // isActive: ' '
197
+ // };
199
198
 
200
199
  if (false) {
201
200
  Animation.docs = {
@@ -259,16 +259,16 @@ Avatar.propTypes = {
259
259
  customProps: _propTypes["default"].shape({
260
260
  AvatarProps: _propTypes["default"].object
261
261
  })
262
- };
263
- Avatar.propTypesDescription = {
264
- name: ' ',
265
- size: ' ',
266
- src: ' ',
267
- palette: ' ',
268
- onClick: ' ',
269
- shape: ' ',
270
- title: ' '
271
- };
262
+ }; // Avatar.propTypesDescription = {
263
+ // name: ' ',
264
+ // size: ' ',
265
+ // src: ' ',
266
+ // palette: ' ',
267
+ // onClick: ' ',
268
+ // shape: ' ',
269
+ // title: ' '
270
+ // };
271
+
272
272
  Avatar.invalidImageURLs = [];
273
273
  Avatar.validImageURLs = [];
274
274
 
@@ -81,7 +81,7 @@ var Button = /*#__PURE__*/function (_React$Component) {
81
81
  customStatusSize = _customClass$customSt2 === void 0 ? '' : _customClass$customSt2;
82
82
  var paletteLower = palette.toLowerCase();
83
83
  var statusLower = status.toLowerCase();
84
- var classList = needAppearance ? "".concat(_ButtonModule["default"][paletteLower], " ").concat(rounded ? _ButtonModule["default"].rounded : '', " ").concat(!children ? _ButtonModule["default"][size.toLowerCase()] : "".concat(_ButtonModule["default"]["".concat(size, "Btn")], " \n ").concat(rounded ? _ButtonModule["default"]["".concat(size, "Btn").concat(paletteLower)] : '')) : "".concat(_ButtonModule["default"]["default"]);
84
+ var classList = needAppearance ? "".concat(_ButtonModule["default"][paletteLower], " ").concat(rounded ? _ButtonModule["default"].rounded : '', " ").concat(!children ? _ButtonModule["default"][size.toLowerCase()] : "".concat(_ButtonModule["default"]["".concat(size, "Btn")], " \n ").concat(rounded ? _ButtonModule["default"]["".concat(size, "Btn").concat(paletteLower)] : ''), " ").concat(statusLower !== 'none' ? _ButtonModule["default"].loader : '') : "".concat(_ButtonModule["default"]["default"]);
85
85
  return /*#__PURE__*/_react["default"].createElement("button", {
86
86
  className: "".concat(customButton, " ").concat(classList, " ").concat(isBold ? _ButtonModule["default"].bold : '', " "),
87
87
  "data-id": disabled ? "".concat(dataId, "_disabled") : dataId,
@@ -90,12 +90,12 @@ var Button = /*#__PURE__*/function (_React$Component) {
90
90
  "data-title": title,
91
91
  type: "button",
92
92
  ref: getRef
93
- }, children ? children : text, status !== 'none' && needAppearance && /*#__PURE__*/_react["default"].createElement("div", {
93
+ }, children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/_react["default"].createElement("div", {
94
94
  className: _ButtonModule["default"].overlay
95
95
  }, /*#__PURE__*/_react["default"].createElement("div", {
96
- className: "".concat(customStatusSize, " ").concat(statusLower === 'loading' ? "".concat(_ButtonModule["default"].loading, " ").concat(_ButtonModule["default"]["".concat(size, "loading")]) : _ButtonModule["default"].success)
96
+ className: "".concat(customStatusSize, " ").concat(statusLower === 'loading' ? "".concat(_ButtonModule["default"].loading, " ").concat(_ButtonModule["default"]["".concat(size, "loading")] ? _ButtonModule["default"]["".concat(size, "loading")] : '') : _ButtonModule["default"].success)
97
97
  }, /*#__PURE__*/_react["default"].createElement("div", {
98
- className: "".concat(customStatus, " ").concat(statusLower === 'loading' ? "".concat(_ButtonModule["default"].loadingelement, " ").concat(_ButtonModule["default"]["".concat(paletteLower, "element")]) : "".concat(_ButtonModule["default"].successelement, " ").concat(_ButtonModule["default"]["".concat(paletteLower, "success")]))
98
+ className: "".concat(customStatus, " ").concat(statusLower === 'loading' ? "".concat(_ButtonModule["default"].loadingelement, " ").concat(_ButtonModule["default"]["".concat(paletteLower, "element")] ? _ButtonModule["default"]["".concat(paletteLower, "element")] : '') : "".concat(_ButtonModule["default"].successelement, " ").concat(_ButtonModule["default"]["".concat(paletteLower, "success")] ? _ButtonModule["default"]["".concat(paletteLower, "success")] : ''))
99
99
  }))));
100
100
  }
101
101
  }]);
@@ -138,18 +138,17 @@ Button.propTypes = {
138
138
  customStatus: _propTypes["default"].string,
139
139
  customStatusSize: _propTypes["default"].string
140
140
  })
141
- };
142
- Button.propTypesDescription = {
143
- onClick: ' ',
144
- text: ' ',
145
- palette: ' ',
146
- disabled: ' ',
147
- size: ' ',
148
- rounded: ' ',
149
- status: ' ',
150
- isBold: ' ',
151
- children: ' '
152
- };
141
+ }; // Button.propTypesDescription = {
142
+ // onClick: ' ',
143
+ // text: ' ',
144
+ // palette: ' ',
145
+ // disabled: ' ',
146
+ // size: ' ',
147
+ // rounded: ' ',
148
+ // status: ' ',
149
+ // isBold: ' ',
150
+ // children: ' '
151
+ // };
153
152
 
154
153
  if (false) {
155
154
  Button.docs = {
@@ -362,17 +362,20 @@
362
362
 
363
363
  .primaryelement:before {
364
364
  --button_loading_bg_color: var(--zdt_button_primaryfill_bg);
365
+ --zdt_button_loading_linear_gradient:var(--zdt_button_loading_primary_linear_gradient);
365
366
  transform: rotateX(180deg);
366
367
  }
367
368
 
368
369
  .dangerelement:before {
369
370
  --button_loading_bg_color: var(--zdt_button_dangerfill_bg);
371
+ --zdt_button_loading_linear_gradient:var(--zdt_button_loading_danger_linear_gradient);
370
372
  transform: rotateX(180deg);
371
373
  }
372
374
 
373
375
  .primarysuccess {
374
376
  --button_success_border_color: var(--zdt_button_default_border);
375
377
  }
378
+
376
379
  .primaryfilled .successelement {
377
380
  --button_success_border_color: var(--zdt_button_tick_primary_border);
378
381
  }
@@ -456,7 +459,6 @@
456
459
  top: calc(var(--zd_size2) * -1);
457
460
  width: var(--zd_size6);
458
461
  transform: scaleX(-1) rotate(135deg);
459
- -ms-transform: scaleX(-1) rotate(135deg);
460
462
  -moz-transform: scaleX(-1) rotate(135deg);
461
463
  -webkit-transform: scaleX(-1) rotate(135deg);
462
464
  transform-origin: center;
@@ -515,4 +517,6 @@
515
517
  height: var(--zd_size15);
516
518
  width: var(--zd_size6);
517
519
  }
518
- }
520
+ }
521
+
522
+ .loader{color:var(--dot_mirror)}
package/lib/Card/Card.js CHANGED
@@ -358,11 +358,10 @@ Card.defaultProps = {
358
358
  scrollAt: '10',
359
359
  a11y: {},
360
360
  isPercentageScroll: false
361
- };
362
- Card.propTypesDescription = {
363
- children: ' ',
364
- isScrollAttribute: ' '
365
- };
361
+ }; // Card.propTypesDescription = {
362
+ // children: ' ',
363
+ // isScrollAttribute: ' '
364
+ // };
366
365
 
367
366
  if (false) {
368
367
  Card.docs = {
@@ -6,10 +6,6 @@
6
6
  .readOnly, .readOnly > input, .disabled {
7
7
  cursor: not-allowed;
8
8
  }
9
- .readOnly,
10
- .disabled {
11
- composes: readonly from '../common/common.module.css';
12
- }
13
9
  .enabled {
14
10
  cursor: pointer;
15
11
  }
@@ -118,7 +118,9 @@ var DropBoxElement = /*#__PURE__*/function (_React$Component) {
118
118
  targetOffset = _this$props2.targetOffset,
119
119
  zIndexStyle = _this$props2.zIndexStyle,
120
120
  customStyle = _this$props2.customStyle;
121
- var isReducedMotion = this.context.isReducedMotion;
121
+
122
+ var _ref = this.context || {},
123
+ isReducedMotion = _ref.isReducedMotion;
122
124
 
123
125
  if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
124
126
  isAbsolutePositioningNeeded = true;
@@ -278,7 +280,9 @@ var DropBox = /*#__PURE__*/function (_React$Component2) {
278
280
  var zIndexStyle = isActive && needAutoZindex ? {
279
281
  zIndex: this.getNextIndex()
280
282
  } : {};
281
- var direction = this.context.direction;
283
+
284
+ var _ref2 = this.context || {},
285
+ direction = _ref2.direction;
282
286
 
283
287
  var dropBoxEle = /*#__PURE__*/_react["default"].createElement(DropBoxElement, _extends({
284
288
  isModel: isModel,
@@ -87,7 +87,7 @@ ListContainer.defaultProps = {
87
87
  target: 'blank',
88
88
  needBorder: true,
89
89
  a11y: {},
90
- customClass: {},
90
+ customClass: '',
91
91
  customProps: {}
92
92
  };
93
93
  var _default = ListContainer;
@@ -115,13 +115,8 @@ ListContainer.propTypes = {
115
115
  role: _propTypes["default"].string,
116
116
  ariaSelected: _propTypes["default"].bool
117
117
  }),
118
- customClass: _propTypes["default"].shape({
119
- customListItem: _propTypes["default"].string,
120
- customTickIcon: _propTypes["default"].string
121
- }),
122
- customProps: _propTypes["default"].shape({
123
- ListItemProps: _propTypes["default"].object
124
- })
118
+ customClass: _propTypes["default"].string,
119
+ customProps: _propTypes["default"].object
125
120
  };
126
121
 
127
122
  if (false) {
@@ -945,7 +945,8 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
945
945
  i18nKeys = _this$props8.i18nKeys,
946
946
  a11y = _this$props8.a11y,
947
947
  isSearchClearOnSelect = _this$props8.isSearchClearOnSelect,
948
- palette = _this$props8.palette;
948
+ palette = _this$props8.palette,
949
+ needEffect = _this$props8.needEffect;
949
950
  var _i18nKeys = i18nKeys,
950
951
  _i18nKeys$clearText = _i18nKeys.clearText,
951
952
  clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
@@ -973,7 +974,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
973
974
  var setAriaId = this.getNextAriaId();
974
975
  var ariaErrorId = this.getNextAriaId();
975
976
  return /*#__PURE__*/_react["default"].createElement("div", {
976
- className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : ''),
977
+ className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
977
978
  "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
978
979
  "data-title": isDisabled ? title : '',
979
980
  onClick: this.handleInputFocus
@@ -1150,7 +1151,8 @@ AdvancedGroupMultiSelect.defaultProps = {
1150
1151
  isPadding: false,
1151
1152
  i18nKeys: {},
1152
1153
  a11y: {},
1153
- isSearchClearOnSelect: true
1154
+ isSearchClearOnSelect: true,
1155
+ needEffect: _propTypes["default"].bool
1154
1156
  };
1155
1157
  AdvancedGroupMultiSelect.propTypes = {
1156
1158
  animationStyle: _propTypes["default"].string,
@@ -1200,7 +1202,8 @@ AdvancedGroupMultiSelect.propTypes = {
1200
1202
  variant: _propTypes["default"].string,
1201
1203
  htmlId: _propTypes["default"].string,
1202
1204
  isSearchClearOnSelect: _propTypes["default"].bool,
1203
- palette: _propTypes["default"].oneOf(['default', 'dark'])
1205
+ palette: _propTypes["default"].oneOf(['default', 'dark']),
1206
+ needEffect: true
1204
1207
  };
1205
1208
 
1206
1209
  if (false) {