@zohodesk/components 1.2.29 → 1.2.30

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 (112) hide show
  1. package/README.md +4 -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/Select.js +4 -5
  40. package/es/Switch/Switch.js +8 -8
  41. package/es/Switch/Switch.module.css +0 -2
  42. package/es/Tab/Tab.js +4 -5
  43. package/es/Tab/TabContentWrapper.js +4 -5
  44. package/es/Tab/TabWrapper.js +2 -4
  45. package/es/Tab/Tabs.js +16 -16
  46. package/es/Tag/Tag.module.css +0 -6
  47. package/es/TextBox/TextBox.js +5 -5
  48. package/es/TextBox/TextBox.module.css +1 -21
  49. package/es/TextBoxIcon/TextBoxIcon.js +2 -4
  50. package/es/TextBoxIcon/TextBoxIcon.module.css +0 -5
  51. package/es/Textarea/Textarea.js +4 -6
  52. package/es/Textarea/Textarea.module.css +0 -6
  53. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  54. package/es/common/customscroll.module.css +27 -3
  55. package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
  56. package/es/v1/AppContainer/AppContainer.js +10 -9
  57. package/es/v1/Avatar/Avatar.js +4 -5
  58. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  59. package/es/v1/Button/Button.js +5 -6
  60. package/es/v1/CheckBox/CheckBox.js +8 -8
  61. package/es/v1/DropBox/DropBox.js +10 -11
  62. package/es/v1/DropDown/DropDown.js +2 -1
  63. package/es/v1/ListItem/ListContainer.js +6 -5
  64. package/es/v1/ListItem/ListItem.js +4 -5
  65. package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
  66. package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
  67. package/es/v1/ListItem/ListItemWithIcon.js +4 -5
  68. package/es/v1/ListItem/ListItemWithRadio.js +4 -5
  69. package/es/v1/Modal/Modal.js +4 -5
  70. package/es/v1/MultiSelect/AdvancedMultiSelect.js +8 -9
  71. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +4 -5
  72. package/es/v1/MultiSelect/SelectedOptions.js +6 -8
  73. package/es/v1/MultiSelect/Suggestions.js +6 -8
  74. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  75. package/es/v1/Popup/Popup.js +3 -4
  76. package/es/v1/Radio/Radio.js +8 -8
  77. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  78. package/es/v1/Select/Select.js +4 -5
  79. package/es/v1/Switch/Switch.js +8 -8
  80. package/es/v1/Tab/Tab.js +4 -5
  81. package/es/v1/Tab/TabContentWrapper.js +4 -5
  82. package/es/v1/Tab/TabWrapper.js +2 -4
  83. package/es/v1/Tab/Tabs.js +16 -16
  84. package/es/v1/TextBox/TextBox.js +5 -5
  85. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
  86. package/es/v1/Textarea/Textarea.js +4 -6
  87. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  88. package/lib/Avatar/Avatar.module.css +0 -12
  89. package/lib/AvatarTeam/AvatarTeam.module.css +0 -4
  90. package/lib/Button/css/Button.module.css +0 -6
  91. package/lib/Buttongroup/Buttongroup.module.css +0 -2
  92. package/lib/CheckBox/CheckBox.module.css +0 -2
  93. package/lib/DateTime/DateTime.module.css +0 -1
  94. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
  95. package/lib/DropBox/css/DropBox.module.css +0 -1
  96. package/lib/DropDown/DropDownHeading.module.css +0 -6
  97. package/lib/DropDown/DropDownItem.module.css +0 -3
  98. package/lib/Label/Label.module.css +0 -1
  99. package/lib/ListItem/ListItem.module.css +0 -21
  100. package/lib/MultiSelect/props/defaultProps.js +4 -2
  101. package/lib/PopOver/PopOver.module.css +3 -3
  102. package/lib/Radio/Radio.module.css +0 -1
  103. package/lib/Ribbon/Ribbon.module.css +0 -4
  104. package/lib/Switch/Switch.module.css +0 -2
  105. package/lib/Tag/Tag.module.css +0 -6
  106. package/lib/TextBox/TextBox.module.css +1 -21
  107. package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -5
  108. package/lib/Textarea/Textarea.module.css +0 -6
  109. package/lib/common/customscroll.module.css +27 -3
  110. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  111. package/package.json +10 -10
  112. 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;
@@ -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';
@@ -917,7 +915,7 @@ export class SelectComponent extends Component {
917
915
  shrink: true,
918
916
  customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
919
917
  eleRef: this.suggestionContainerRef
920
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
918
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
921
919
  activeId: selectedId,
922
920
  suggestions: suggestions,
923
921
  getRef: this.suggestionItemRef,
@@ -934,8 +932,9 @@ export class SelectComponent extends Component {
934
932
  a11y: {
935
933
  ariaParentRole: 'listbox',
936
934
  role: 'option'
937
- }
938
- }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
935
+ },
936
+ ...SuggestionsProps
937
+ }) : /*#__PURE__*/React.createElement(EmptyState, {
939
938
  isLoading: isFetchingOptions,
940
939
  options: options,
941
940
  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
  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
 
package/es/Tab/Tabs.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, {
@@ -459,7 +457,7 @@ class Tabs extends React.Component {
459
457
  classProps.className = itemClass;
460
458
  }
461
459
 
462
- return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, _extends({}, child.props, {
460
+ return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, { ...child.props,
463
461
  key: child.props.id,
464
462
  getTabRef: this.getTabRef,
465
463
  onSelect: onSelect,
@@ -470,22 +468,23 @@ class Tabs extends React.Component {
470
468
  needBorder: needTabBorder,
471
469
  needAppearance: needAppearance,
472
470
  align: align,
473
- isVirtual: isVirtual
474
- }, classProps));
471
+ isVirtual: isVirtual,
472
+ ...classProps
473
+ });
475
474
  }), React.Children.count(moreTabs) ? /*#__PURE__*/React.createElement(Box, {
476
475
  className: `${tabsStyle.menu} `,
477
476
  dataSelectorId: `${dataSelectorId}_moreIcon`
478
- }, /*#__PURE__*/React.createElement(Container, _extends({
477
+ }, /*#__PURE__*/React.createElement(Container, {
479
478
  className: `${btnstyle.buttonReset} ${moreButtonClass} ${isPopupOpen ? moreButtonActiveClass : ''}`,
480
479
  align: "both",
481
480
  onClick: this.togglePopup,
482
481
  dataId: "moreTabs",
483
- eleRef: getTargetRef
484
- }, MoreButtonProps, {
482
+ eleRef: getTargetRef,
483
+ ...MoreButtonProps,
485
484
  "aria-label": "MoreTabs",
486
485
  role: "link",
487
486
  tagName: "button"
488
- }), /*#__PURE__*/React.createElement(Icon, {
487
+ }, /*#__PURE__*/React.createElement(Icon, {
489
488
  name: iconName,
490
489
  size: iconSize
491
490
  })), isPopupOpen && /*#__PURE__*/React.createElement(ResponsiveReceiver, {
@@ -495,7 +494,7 @@ class Tabs extends React.Component {
495
494
  let {
496
495
  tabletMode
497
496
  } = _ref2;
498
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
497
+ return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
499
498
  isActive: isPopupReady,
500
499
  isAnimate: true,
501
500
  size: "medium",
@@ -505,12 +504,12 @@ class Tabs extends React.Component {
505
504
  boxPosition: position,
506
505
  getRef: getContainerRef,
507
506
  isBoxPaddingNeed: true,
508
- isArrow: false
509
- }, DropBoxProps, {
507
+ isArrow: false,
508
+ ...DropBoxProps,
510
509
  isResponsivePadding: true,
511
510
  needFocusScope: true,
512
511
  onClose: this.togglePopup
513
- }), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(this.props), /*#__PURE__*/React.createElement(Box, {
512
+ }, getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(this.props), /*#__PURE__*/React.createElement(Box, {
514
513
  flexible: true,
515
514
  shrink: true,
516
515
  scroll: "vertical",
@@ -531,7 +530,7 @@ class Tabs extends React.Component {
531
530
  dataId
532
531
  } = child.props;
533
532
  const value = text ? text : showTitleInMoreOptions ? title : null;
534
- return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(ListItem, _extends({
533
+ return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(ListItem, {
535
534
  key: id,
536
535
  value: value,
537
536
  onClick: this.moreTabSelect,
@@ -544,8 +543,9 @@ class Tabs extends React.Component {
544
543
  customListItem: menuItemClass
545
544
  },
546
545
  target: "self",
547
- dataId: `${dataId}_Tab`
548
- }, ListItemProps), !showTitleInMoreOptions ? children : null);
546
+ dataId: `${dataId}_Tab`,
547
+ ...ListItemProps
548
+ }, !showTitleInMoreOptions ? children : null);
549
549
  })));
550
550
  })) : null);
551
551
  }