@zohodesk/components 1.2.29 → 1.2.31

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 (122) hide show
  1. package/README.md +8 -0
  2. package/es/AppContainer/AppContainer.js +10 -9
  3. package/es/Avatar/Avatar.js +4 -5
  4. package/es/Avatar/Avatar.module.css +0 -12
  5. package/es/AvatarTeam/AvatarTeam.js +7 -7
  6. package/es/AvatarTeam/AvatarTeam.module.css +0 -4
  7. package/es/Button/Button.js +5 -6
  8. package/es/Button/css/Button.module.css +0 -6
  9. package/es/Buttongroup/Buttongroup.module.css +0 -2
  10. package/es/CheckBox/CheckBox.js +8 -8
  11. package/es/CheckBox/CheckBox.module.css +0 -2
  12. package/es/DateTime/DateTime.module.css +0 -1
  13. package/es/DropBox/DropBox.js +10 -11
  14. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
  15. package/es/DropBox/css/DropBox.module.css +0 -1
  16. package/es/DropDown/DropDown.js +2 -1
  17. package/es/DropDown/DropDownHeading.module.css +0 -6
  18. package/es/DropDown/DropDownItem.module.css +0 -3
  19. package/es/Label/Label.module.css +0 -1
  20. package/es/ListItem/ListContainer.js +6 -5
  21. package/es/ListItem/ListItem.js +4 -5
  22. package/es/ListItem/ListItem.module.css +0 -21
  23. package/es/ListItem/ListItemWithAvatar.js +4 -5
  24. package/es/ListItem/ListItemWithCheckBox.js +4 -5
  25. package/es/ListItem/ListItemWithIcon.js +4 -5
  26. package/es/ListItem/ListItemWithRadio.js +4 -5
  27. package/es/Modal/Modal.js +4 -5
  28. package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
  29. package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
  30. package/es/MultiSelect/SelectedOptions.js +6 -8
  31. package/es/MultiSelect/Suggestions.js +6 -8
  32. package/es/MultiSelect/props/defaultProps.js +4 -2
  33. package/es/PopOver/PopOver.module.css +3 -3
  34. package/es/Popup/Popup.js +3 -4
  35. package/es/Radio/Radio.js +8 -8
  36. package/es/Radio/Radio.module.css +0 -1
  37. package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  38. package/es/Ribbon/Ribbon.module.css +0 -4
  39. package/es/Select/GroupSelect.js +11 -6
  40. package/es/Select/Select.js +4 -6
  41. package/es/Select/props/defaultProps.js +1 -0
  42. package/es/Switch/Switch.js +8 -8
  43. package/es/Switch/Switch.module.css +0 -2
  44. package/es/Tab/Tab.js +4 -5
  45. package/es/Tab/TabContentWrapper.js +4 -5
  46. package/es/Tab/TabWrapper.js +2 -4
  47. package/es/Tab/Tabs.js +16 -16
  48. package/es/Tag/Tag.module.css +0 -6
  49. package/es/TextBox/TextBox.js +5 -5
  50. package/es/TextBox/TextBox.module.css +1 -21
  51. package/es/TextBoxIcon/TextBoxIcon.js +2 -4
  52. package/es/TextBoxIcon/TextBoxIcon.module.css +0 -5
  53. package/es/Textarea/Textarea.js +4 -6
  54. package/es/Textarea/Textarea.module.css +0 -6
  55. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  56. package/es/common/customscroll.module.css +27 -3
  57. package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
  58. package/es/v1/AppContainer/AppContainer.js +10 -9
  59. package/es/v1/Avatar/Avatar.js +4 -5
  60. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  61. package/es/v1/Button/Button.js +5 -6
  62. package/es/v1/CheckBox/CheckBox.js +8 -8
  63. package/es/v1/DropBox/DropBox.js +10 -11
  64. package/es/v1/DropDown/DropDown.js +2 -1
  65. package/es/v1/ListItem/ListContainer.js +6 -5
  66. package/es/v1/ListItem/ListItem.js +4 -5
  67. package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
  68. package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
  69. package/es/v1/ListItem/ListItemWithIcon.js +4 -5
  70. package/es/v1/ListItem/ListItemWithRadio.js +4 -5
  71. package/es/v1/Modal/Modal.js +4 -5
  72. package/es/v1/MultiSelect/AdvancedMultiSelect.js +8 -9
  73. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +4 -5
  74. package/es/v1/MultiSelect/SelectedOptions.js +6 -8
  75. package/es/v1/MultiSelect/Suggestions.js +6 -8
  76. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  77. package/es/v1/Popup/Popup.js +3 -4
  78. package/es/v1/Radio/Radio.js +8 -8
  79. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  80. package/es/v1/Select/GroupSelect.js +11 -6
  81. package/es/v1/Select/Select.js +4 -6
  82. package/es/v1/Select/props/defaultProps.js +1 -0
  83. package/es/v1/Switch/Switch.js +8 -8
  84. package/es/v1/Tab/Tab.js +4 -5
  85. package/es/v1/Tab/TabContentWrapper.js +4 -5
  86. package/es/v1/Tab/TabWrapper.js +2 -4
  87. package/es/v1/Tab/Tabs.js +16 -16
  88. package/es/v1/TextBox/TextBox.js +5 -5
  89. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
  90. package/es/v1/Textarea/Textarea.js +4 -6
  91. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  92. package/lib/Avatar/Avatar.module.css +0 -12
  93. package/lib/AvatarTeam/AvatarTeam.module.css +0 -4
  94. package/lib/Button/css/Button.module.css +0 -6
  95. package/lib/Buttongroup/Buttongroup.module.css +0 -2
  96. package/lib/CheckBox/CheckBox.module.css +0 -2
  97. package/lib/DateTime/DateTime.module.css +0 -1
  98. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
  99. package/lib/DropBox/css/DropBox.module.css +0 -1
  100. package/lib/DropDown/DropDownHeading.module.css +0 -6
  101. package/lib/DropDown/DropDownItem.module.css +0 -3
  102. package/lib/Label/Label.module.css +0 -1
  103. package/lib/ListItem/ListItem.module.css +0 -21
  104. package/lib/MultiSelect/props/defaultProps.js +4 -2
  105. package/lib/PopOver/PopOver.module.css +3 -3
  106. package/lib/Radio/Radio.module.css +0 -1
  107. package/lib/Ribbon/Ribbon.module.css +0 -4
  108. package/lib/Select/GroupSelect.js +11 -6
  109. package/lib/Select/Select.js +0 -2
  110. package/lib/Select/props/defaultProps.js +1 -0
  111. package/lib/Switch/Switch.module.css +0 -2
  112. package/lib/Tag/Tag.module.css +0 -6
  113. package/lib/TextBox/TextBox.module.css +1 -21
  114. package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -5
  115. package/lib/Textarea/Textarea.module.css +0 -6
  116. package/lib/common/customscroll.module.css +27 -3
  117. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  118. package/lib/v1/Select/GroupSelect.js +11 -6
  119. package/lib/v1/Select/Select.js +0 -2
  120. package/lib/v1/Select/props/defaultProps.js +1 -0
  121. package/package.json +10 -10
  122. package/result.json +1 -1
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  import React from 'react';
4
2
  import Radio from '../Radio/Radio';
5
3
  import { Box } from '../Layout';
@@ -77,7 +75,7 @@ export default class ListItemWithRadio extends React.Component {
77
75
  customRadio = '',
78
76
  customRadioWrap = ''
79
77
  } = customClass;
80
- return /*#__PURE__*/React.createElement(ListContainer, _extends({
78
+ return /*#__PURE__*/React.createElement(ListContainer, {
81
79
  a11y: listA11y,
82
80
  size: size,
83
81
  palette: palette,
@@ -93,8 +91,9 @@ export default class ListItemWithRadio extends React.Component {
93
91
  eleRef: this.getRef,
94
92
  disableTitle: disableTitle,
95
93
  title: null,
96
- customProps: ListItemProps
97
- }, ContainerProps), /*#__PURE__*/React.createElement(Box, {
94
+ customProps: ListItemProps,
95
+ ...ContainerProps
96
+ }, /*#__PURE__*/React.createElement(Box, {
98
97
  className: style.iconBox
99
98
  }, /*#__PURE__*/React.createElement(Radio, {
100
99
  checked: checked,
package/es/Modal/Modal.js CHANGED
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import ReactDOM from 'react-dom';
@@ -131,9 +129,10 @@ export default class Modal extends React.Component {
131
129
 
132
130
  if (isMounted) {
133
131
  if (Element) {
134
- return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, _extends({
135
- ref: this.setRef
136
- }, elementProps)), this.portalDiv);
132
+ return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, {
133
+ ref: this.setRef,
134
+ ...elementProps
135
+ }), this.portalDiv);
137
136
  }
138
137
 
139
138
  return null;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import { AdvancedMultiSelect_propTypes } from './props/propTypes';
@@ -488,7 +486,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
488
486
  let {
489
487
  tabletMode
490
488
  } = _ref2;
491
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
489
+ return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
492
490
  animationStyle: animationStyle,
493
491
  boxPosition: position || `${defaultDropBoxPosition}Center`,
494
492
  getRef: getContainerRef,
@@ -502,11 +500,11 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
502
500
  a11y: {
503
501
  role: 'listbox',
504
502
  ariaMultiselectable: true
505
- }
506
- }, DropBoxProps, {
503
+ },
504
+ ...DropBoxProps,
507
505
  alignBox: "row",
508
506
  isResponsivePadding: getFooter ? false : true
509
- }), isLoading ? /*#__PURE__*/React.createElement(Container, {
507
+ }, isLoading ? /*#__PURE__*/React.createElement(Container, {
510
508
  align: "both",
511
509
  className: style.loader
512
510
  }, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(Box, {
@@ -523,7 +521,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
523
521
  shrink: true,
524
522
  customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
525
523
  eleRef: this.suggestionContainerRef
526
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
524
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
527
525
  suggestions: suggestions,
528
526
  selectedOptions: allselectedOptionIds,
529
527
  getRef: this.suggestionItemRef,
@@ -534,8 +532,9 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
534
532
  listItemSize: listItemSize,
535
533
  a11y: {
536
534
  role: 'option'
537
- }
538
- }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
535
+ },
536
+ ...SuggestionsProps
537
+ }) : /*#__PURE__*/React.createElement(EmptyState, {
539
538
  isLoading: isFetchingOptions,
540
539
  options: options,
541
540
  searchString: searchStr,
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import { MultiSelectWithAvatar_propTypes } from './props/propTypes';
@@ -157,7 +155,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
157
155
  shrink: true,
158
156
  customClass: !isModel && dropBoxSize ? style[dropBoxSize] : '',
159
157
  eleRef: this.suggestionContainerRef
160
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
158
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
161
159
  needTick: keepSelectedOptions,
162
160
  suggestions: suggestions,
163
161
  getRef: this.suggestionItemRef,
@@ -170,8 +168,9 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
170
168
  selectedOptions: selectedOptionIds,
171
169
  a11y: {
172
170
  role: 'option'
173
- }
174
- }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
171
+ },
172
+ ...SuggestionsProps
173
+ }) : /*#__PURE__*/React.createElement(EmptyState, {
175
174
  isLoading: isFetchingOptions,
176
175
  options: options,
177
176
  searchString: searchStr,
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import { SelectedOptions_propTypes } from './props/propTypes';
@@ -52,28 +50,28 @@ export default class SelectedOptions extends React.PureComponent {
52
50
  return /*#__PURE__*/React.createElement(Box, {
53
51
  className: `${style.tag} ${style[size]}`,
54
52
  key: `${id}photoTag`
55
- }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
53
+ }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
56
54
  active: highLightedSelectOptions.indexOf(id) >= 0,
57
55
  hasAvatar: true,
58
56
  imageURL: photoURL
59
- })));
57
+ }));
60
58
  } else if (optionType === 'icon') {
61
59
  return /*#__PURE__*/React.createElement(Box, {
62
60
  className: `${style.tag} ${style[size]}`,
63
61
  key: `${id}iconTag`
64
- }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
62
+ }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
65
63
  active: highLightedSelectOptions.indexOf(id) >= 0,
66
64
  iconName: icon,
67
65
  iconSize: iconSize
68
- })));
66
+ }));
69
67
  }
70
68
 
71
69
  return /*#__PURE__*/React.createElement(Box, {
72
70
  className: `${style.tag} ${style[size]}`,
73
71
  key: `${id}tag`
74
- }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
72
+ }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
75
73
  active: highLightedSelectOptions.indexOf(id) >= 0
76
- })));
74
+ }));
77
75
  }));
78
76
  }
79
77
 
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import { Suggestions_propTypes } from './props/propTypes';
@@ -76,7 +74,7 @@ export default class Suggestions extends React.PureComponent {
76
74
  }
77
75
 
78
76
  if (optionType === 'avatar') {
79
- return /*#__PURE__*/React.createElement(ListItemWithAvatar, _extends({}, commonProps, {
77
+ return /*#__PURE__*/React.createElement(ListItemWithAvatar, { ...commonProps,
80
78
  autoHover: false,
81
79
  getRef: getRef,
82
80
  highlight: isHighlight,
@@ -95,9 +93,9 @@ export default class Suggestions extends React.PureComponent {
95
93
  avatarPalette: avatarPalette,
96
94
  palette: palette,
97
95
  a11y: list_a11y
98
- }));
96
+ });
99
97
  } else if (optionType === 'icon') {
100
- return /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({}, commonProps, {
98
+ return /*#__PURE__*/React.createElement(ListItemWithIcon, { ...commonProps,
101
99
  autoHover: false,
102
100
  getRef: getRef,
103
101
  highlight: isHighlight,
@@ -115,10 +113,10 @@ export default class Suggestions extends React.PureComponent {
115
113
  size: listItemSize,
116
114
  palette: palette,
117
115
  a11y: list_a11y
118
- }));
116
+ });
119
117
  }
120
118
 
121
- return /*#__PURE__*/React.createElement(ListItem, _extends({}, commonProps, {
119
+ return /*#__PURE__*/React.createElement(ListItem, { ...commonProps,
122
120
  autoHover: false,
123
121
  getRef: getRef,
124
122
  highlight: isHighlight,
@@ -134,7 +132,7 @@ export default class Suggestions extends React.PureComponent {
134
132
  size: listItemSize,
135
133
  palette: palette,
136
134
  a11y: list_a11y
137
- }));
135
+ });
138
136
  })));
139
137
  }
140
138
 
@@ -109,7 +109,8 @@ export const MultiSelect_defaultProps = {
109
109
  dataSelectorId: 'multiSelect',
110
110
  keepSelectedOptions: false,
111
111
  selectedOptionsCount: 0,
112
- cardHeaderName: ''
112
+ cardHeaderName: '',
113
+ needResponsive: true
113
114
  };
114
115
  export const MultiSelectHeader_defaultProps = {
115
116
  dataId: 'MultiSelectHeader'
@@ -143,7 +144,8 @@ export const MultiSelectWithAvatar_defaultProps = {
143
144
  isLoading: false,
144
145
  dataSelectorId: 'multiSelectWithAvatar',
145
146
  keepSelectedOptions: false,
146
- customProps: {}
147
+ customProps: {},
148
+ needResponsive: true
147
149
  };
148
150
  export const SelectedOptions_defaultProps = {
149
151
  size: 'medium'
@@ -1,9 +1,9 @@
1
1
  .popup {
2
2
  position: relative;
3
- /* css:theme-validation:ignore */
4
- background-color: var(--dot_white);
3
+ background-color: var(--zdt_popover_default_bg);
5
4
  }
5
+
6
6
  .target {
7
7
  composes: offSelection from '../common/common.module.css';
8
8
  cursor: pointer;
9
- }
9
+ }
package/es/Popup/Popup.js CHANGED
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import PropTypes from 'prop-types';
@@ -623,14 +621,15 @@ const Popup = function (Component) {
623
621
  isPopupOpen
624
622
  } = this.state;
625
623
  const localState = isPopupReady ? this.state : {};
626
- return /*#__PURE__*/React.createElement(Component, _extends({}, this.props, this.state, {
624
+ return /*#__PURE__*/React.createElement(Component, { ...this.props,
625
+ ...this.state,
627
626
  openPopupOnly: this.openPopupOnly,
628
627
  closePopupOnly: this.closePopupOnly,
629
628
  togglePopup: this.togglePopup,
630
629
  removeClose: this.removeClose,
631
630
  getTargetRef: this.getTargetRef,
632
631
  getContainerRef: this.getContainerRef
633
- }));
632
+ });
634
633
  }
635
634
 
636
635
  }
package/es/Radio/Radio.js CHANGED
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium'] }] */
4
2
  import React from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -73,7 +71,7 @@ export default class Radio extends React.Component {
73
71
  ContainerProps = {},
74
72
  LabelProps = {}
75
73
  } = customProps;
76
- return /*#__PURE__*/React.createElement(Container, _extends({
74
+ return /*#__PURE__*/React.createElement(Container, {
77
75
  dataId: value ? value.toLowerCase() : 'RadioComp',
78
76
  isCover: false,
79
77
  isInline: text ? false : true,
@@ -89,8 +87,9 @@ export default class Radio extends React.Component {
89
87
  "aria-Hidden": ariaHidden,
90
88
  "aria-label": ariaLabel,
91
89
  "aria-labelledby": ariaLabelledby,
92
- "aria-readonly": ariaReadonly
93
- }, ContainerProps), /*#__PURE__*/React.createElement(Box, {
90
+ "aria-readonly": ariaReadonly,
91
+ ...ContainerProps
92
+ }, /*#__PURE__*/React.createElement(Box, {
94
93
  className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
95
94
  ${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
96
95
  }, /*#__PURE__*/React.createElement("input", {
@@ -116,7 +115,7 @@ export default class Radio extends React.Component {
116
115
  }) : null))), text && /*#__PURE__*/React.createElement(Box, {
117
116
  flexible: true,
118
117
  className: style.text
119
- }, /*#__PURE__*/React.createElement(Label, _extends({
118
+ }, /*#__PURE__*/React.createElement(Label, {
120
119
  text: text,
121
120
  palette: labelPalette,
122
121
  size: labelSize,
@@ -126,8 +125,9 @@ export default class Radio extends React.Component {
126
125
  variant: variant,
127
126
  title: toolTip ? toolTip : text,
128
127
  customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
129
- ${style[`${palette}Label`]} ${accessMode} ${customLabel}`
130
- }, LabelProps))), children);
128
+ ${style[`${palette}Label`]} ${accessMode} ${customLabel}`,
129
+ ...LabelProps
130
+ })), children);
131
131
  }
132
132
 
133
133
  }
@@ -28,7 +28,6 @@
28
28
  composes: offSelection from '../common/common.module.css';
29
29
  width: var(--radio_width);
30
30
  height: var(--radio_height);
31
- /* css:theme-validation:ignore */
32
31
  stroke: var(--radio_stroke_color);
33
32
  background: var(--radio_bg_color);
34
33
  border-radius: 50%;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  import React, { Component } from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -45,9 +43,9 @@ export default class ResponsiveDropBox extends Component {
45
43
  customMobileDropBoxWrap: `${customMobileDropBoxWrap}`,
46
44
  customResponsiveContainer: `${customResponsiveContainer}`
47
45
  };
48
- return /*#__PURE__*/React.createElement(DropBox, _extends({}, this.props, {
46
+ return /*#__PURE__*/React.createElement(DropBox, { ...this.props,
49
47
  customClass: dropBoxClasses
50
- }), /*#__PURE__*/React.createElement(ResponsiveReceiver, {
48
+ }, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
51
49
  query: this.responsiveFunc,
52
50
  responsiveId: "Helmet"
53
51
  }, _ref2 => {
@@ -36,12 +36,9 @@
36
36
  .basic {
37
37
  composes: varClass;
38
38
  position: relative;
39
- /* css:theme-validation:ignore */
40
39
  color: var(--ribbon_text_color);
41
40
  text-transform: var(--ribbon_text_transform);
42
41
  font-size: var(--ribbon_font_size);
43
- /* css:theme-validation:ignore */
44
- /* css:theme-validation:ignore */
45
42
  line-height: var(--ribbon_line_height);
46
43
  padding: var(--ribbon_padding);
47
44
  background-color: var(--ribbon_bg_color);
@@ -368,7 +365,6 @@
368
365
  position: absolute;
369
366
  content: '';
370
367
  top: var(--ribbon_tag_before_top);
371
- /* css:theme-validation:ignore */
372
368
  width: var(--ribbon_tag_before_width);
373
369
  height: var(--ribbon_tag_before_height);
374
370
  background-color: inherit;
@@ -618,7 +618,9 @@ export class GroupSelectComponent extends PureComponent {
618
618
  }, /*#__PURE__*/React.createElement("div", {
619
619
  className: `${className ? className : ''}`,
620
620
  onClick: isDisabled || isReadOnly ? null : this.togglePopup,
621
- ref: getTargetRef
621
+ ref: getTargetRef,
622
+ "data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
623
+ "data-test-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`
622
624
  }, children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, needSelectDownIcon ? /*#__PURE__*/React.createElement(TextBoxIcon, {
623
625
  isDisabled: isDisabled,
624
626
  iconRotated: isPopupOpen,
@@ -633,7 +635,7 @@ export class GroupSelectComponent extends PureComponent {
633
635
  value: selected,
634
636
  variant: textBoxVariant,
635
637
  needReadOnlyStyle: isReadOnly ? true : false,
636
- dataId: dataId,
638
+ dataId: `${dataId}_textBox`,
637
639
  onKeyPress: this.handleValueInputChange,
638
640
  needEffect: isReadOnly || isDisabled ? false : true,
639
641
  borderColor: borderColor,
@@ -670,7 +672,7 @@ export class GroupSelectComponent extends PureComponent {
670
672
  value: selected,
671
673
  variant: textBoxVariant,
672
674
  needReadOnlyStyle: isReadOnly ? true : false,
673
- dataId: dataId,
675
+ dataId: `${dataId}_textBox`,
674
676
  onKeyPress: this.handleValueInputChange,
675
677
  borderColor: borderColor,
676
678
  htmlId: htmlId,
@@ -704,7 +706,8 @@ export class GroupSelectComponent extends PureComponent {
704
706
  needResponsive: needResponsive,
705
707
  isPadding: false,
706
708
  isResponsivePadding: getFooter ? false : true,
707
- alignBox: "row"
709
+ alignBox: "row",
710
+ dataId: `${dataId}_suggestionBox`
708
711
  }, isLoading ? /*#__PURE__*/React.createElement(Container, {
709
712
  align: "both",
710
713
  className: style.loader
@@ -729,7 +732,8 @@ export class GroupSelectComponent extends PureComponent {
729
732
  ariaAutocomplete: 'list',
730
733
  ariaDescribedby: ariaErrorId
731
734
  },
732
- autoComplete: false
735
+ autoComplete: false,
736
+ dataId: `${dataId}_search`
733
737
  }))) : null, /*#__PURE__*/React.createElement(CardContent, {
734
738
  shrink: true,
735
739
  customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
@@ -764,7 +768,8 @@ export class GroupSelectComponent extends PureComponent {
764
768
  a11y: {
765
769
  ariaParentRole: 'listbox',
766
770
  role: 'option'
767
- }
771
+ },
772
+ dataId: `${dataId}_Options`
768
773
  }));
769
774
  }) : /*#__PURE__*/React.createElement(EmptyState, {
770
775
  options: revampedGroups,
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React, { Component } from 'react';
5
3
  import { Select_defaultProps } from './props/defaultProps';
@@ -25,7 +23,6 @@ import { debounce, scrollTo, getIsEmptyValue, getSearchString, findScrollEnd, ge
25
23
  /**** CSS ****/
26
24
 
27
25
  import style from './Select.module.css';
28
- import { getLibraryConfig } from '../Provider/Config';
29
26
  /* eslint-disable react/no-deprecated */
30
27
 
31
28
  /* eslint-disable react/no-unused-prop-types */
@@ -917,7 +914,7 @@ export class SelectComponent extends Component {
917
914
  shrink: true,
918
915
  customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
919
916
  eleRef: this.suggestionContainerRef
920
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
917
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
921
918
  activeId: selectedId,
922
919
  suggestions: suggestions,
923
920
  getRef: this.suggestionItemRef,
@@ -934,8 +931,9 @@ export class SelectComponent extends Component {
934
931
  a11y: {
935
932
  ariaParentRole: 'listbox',
936
933
  role: 'option'
937
- }
938
- }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
934
+ },
935
+ ...SuggestionsProps
936
+ }) : /*#__PURE__*/React.createElement(EmptyState, {
939
937
  isLoading: isFetchingOptions,
940
938
  options: options,
941
939
  searchString: searchStr,
@@ -59,6 +59,7 @@ export const GroupSelect_defaultProps = {
59
59
  dataIdDownIcon: 'downIcon',
60
60
  dataIdLoading: 'loading',
61
61
  dataIdSrchEmptyMsg: 'searchEmptyMessage',
62
+ dataId: 'GroupSelect',
62
63
  isPopupOpenOnEnter: false,
63
64
  borderColor: 'default',
64
65
  needTick: true,
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  import React from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -50,7 +48,7 @@ export default class Switch extends React.Component {
50
48
  customLabel = ''
51
49
  } = customClass;
52
50
  size !== 'small' ? size = 'switch_medium' : size = 'switch_small';
53
- return /*#__PURE__*/React.createElement(Container, _extends({
51
+ return /*#__PURE__*/React.createElement(Container, {
54
52
  align: "vertical",
55
53
  isCover: false,
56
54
  alignBox: "row",
@@ -59,8 +57,9 @@ export default class Switch extends React.Component {
59
57
  "data-title": disabled ? disableTitle : title,
60
58
  "aria-checked": checked,
61
59
  role: "switch",
62
- dataSelectorId: dataSelectorId
63
- }, SwitchProps), /*#__PURE__*/React.createElement(Box, {
60
+ dataSelectorId: dataSelectorId,
61
+ ...SwitchProps
62
+ }, /*#__PURE__*/React.createElement(Box, {
64
63
  className: `${style[size]} ${customSwitchSize}`
65
64
  }, /*#__PURE__*/React.createElement("input", {
66
65
  type: "checkbox",
@@ -78,15 +77,16 @@ export default class Switch extends React.Component {
78
77
  "data-test-id": dataId,
79
78
  className: `${style.label} ${style[`${size}Label`]} ${customSwitch}`,
80
79
  tabIndex: isReadOnly || disabled ? '-1' : '0'
81
- })), text && /*#__PURE__*/React.createElement(Label, _extends({
80
+ })), text && /*#__PURE__*/React.createElement(Label, {
82
81
  text: text,
83
82
  palette: labelPalette,
84
83
  id: id,
85
84
  size: labelSize,
86
85
  type: "subtitle",
87
86
  onClick: !disabled || !isReadOnly ? this.onChange : null,
88
- customClass: customLabel
89
- }, LabelProps)));
87
+ customClass: customLabel,
88
+ ...LabelProps
89
+ }));
90
90
  }
91
91
 
92
92
  }
@@ -26,7 +26,6 @@
26
26
  display: inline-block;
27
27
  position: relative;
28
28
  transition: box-shadow var(--zd_transition3) ease-in-out;
29
- /* css:theme-validation:ignore */
30
29
  background-color: var(--switch_off_bg_color);
31
30
  border-radius: 20px;
32
31
  cursor: pointer;
@@ -45,7 +44,6 @@
45
44
  right: 50% ;
46
45
  transition: all var(--zd_transition2);
47
46
  box-shadow: var(--switch_cricle_box_shadow);
48
- /* css:theme-validation:ignore */
49
47
  background-color: var(--switch_circle_bg_color);
50
48
  border-radius: var(--switch_circle_border_radius);
51
49
  }
package/es/Tab/Tab.js CHANGED
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  /* eslint-disable react/forbid-component-props */
4
2
 
5
3
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['text', 'tabAlpha', 'alphaActive', 'gammaActive', 'betaActive', 'deltaActive', 'tabGamma', 'tabBeta', 'tabDelta',', 'specialActive', 'tabSpecial', 'alphaActive_border', 'gammaActive_border', 'betaActive_border', 'deltaActive_border'] }] */
@@ -70,7 +68,7 @@ export default function Tab(_ref) {
70
68
  let activeClasses = cs([needAppearance && activeWithAppearance, activeClass]);
71
69
  let inActiveClasses = needAppearance && cs([styles[styleContent.tab], tabTypes[type] && styles[`${`${type}Hover`}`]]);
72
70
  let tabClass = cs([styles.tab, align === 'vertical' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
73
- return /*#__PURE__*/React.createElement(Box, _extends({
71
+ return /*#__PURE__*/React.createElement(Box, {
74
72
  tourId: tourId,
75
73
  tagName: isLink ? 'a' : 'div',
76
74
  className: tabClass,
@@ -88,8 +86,9 @@ export default function Tab(_ref) {
88
86
  "aria-selected": isActive ? true : false,
89
87
  tabIndex: isLink ? undefined : isActive && !isDisabled ? '0' : '0',
90
88
  "aria-label": text ? text : null,
91
- dataSelectorId: dataSelectorId
92
- }, customProps), /*#__PURE__*/React.createElement(Container, {
89
+ dataSelectorId: dataSelectorId,
90
+ ...customProps
91
+ }, /*#__PURE__*/React.createElement(Container, {
93
92
  alignBox: "row",
94
93
  align: "both",
95
94
  className: styles.textContainer
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  import React from 'react';
4
2
  import { TabContentWrapper_defaultProps } from './props/defaultProps';
5
3
  import { TabContentWrapper_propTypes } from './props/propTypes';
@@ -18,15 +16,16 @@ const TabContentWrapper = _ref => {
18
16
  tagName,
19
17
  a11y
20
18
  } = _ref;
21
- return /*#__PURE__*/React.createElement(Box, _extends({
19
+ return /*#__PURE__*/React.createElement(Box, {
22
20
  flexible: true,
23
21
  style: style,
24
22
  dataId: dataId,
25
23
  className: className,
26
24
  onScroll: onScroll,
27
25
  dataSelectorId: dataSelectorId,
28
- tagName: tagName
29
- }, a11y), React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
26
+ tagName: tagName,
27
+ ...a11y
28
+ }, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
30
29
  };
31
30
 
32
31
  TabContentWrapper.defaultProps = TabContentWrapper_defaultProps;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
2
-
3
1
  import React, { useState, useCallback } from 'react';
4
2
  import { TabWrapper_defaultProps } from './props/defaultProps';
5
3
  import { TabWrapper_propTypes } from './props/propTypes';
@@ -37,7 +35,7 @@ function TabWrapper(_ref) {
37
35
  let TabsChild = child.type;
38
36
  let selectedTab = hookToDisableInternalState ? defaultTab : selectedTabInternal;
39
37
  return /*#__PURE__*/React.createElement(TabsChild // eslint-disable-next-line react/no-array-index-key
40
- , _extends({}, child.props, {
38
+ , { ...child.props,
41
39
  selectedTab: selectedTab,
42
40
  onSelect: setSelectedTab,
43
41
  type: type,
@@ -48,7 +46,7 @@ function TabWrapper(_ref) {
48
46
  needAppearance: needAppearance,
49
47
  hookToDisableInternalState: hookToDisableInternalState,
50
48
  align: align
51
- }));
49
+ });
52
50
  }));
53
51
  }
54
52