@zohodesk/components 1.0.0-temp-206.4 → 1.0.0-temp-206.5

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 (48) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +0 -10
  3. package/es/ListItem/ListItemWithAvatar.js +5 -9
  4. package/es/ListItem/props/defaultProps.js +0 -1
  5. package/es/ListItem/props/propTypes.js +1 -4
  6. package/es/MultiSelect/Suggestions.js +0 -2
  7. package/es/MultiSelect/props/propTypes.js +0 -1
  8. package/es/Responsive/CustomResponsive.js +2 -2
  9. package/es/Responsive/RefWrapper.js +2 -1
  10. package/es/Tab/Tabs.js +2 -9
  11. package/es/Tag/Tag.js +2 -4
  12. package/es/Tag/props/propTypes.js +1 -2
  13. package/es/v1/Card/props/propTypes.js +1 -1
  14. package/es/v1/DateTime/props/propTypes.js +1 -1
  15. package/es/v1/ListItem/ListItemWithAvatar.js +5 -9
  16. package/es/v1/ListItem/props/defaultProps.js +0 -1
  17. package/es/v1/ListItem/props/propTypes.js +1 -4
  18. package/es/v1/MultiSelect/Suggestions.js +0 -2
  19. package/es/v1/MultiSelect/props/propTypes.js +0 -1
  20. package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
  21. package/es/v1/Ribbon/props/propTypes.js +1 -1
  22. package/es/v1/Tab/Tabs.js +2 -9
  23. package/es/v1/Tag/Tag.js +2 -4
  24. package/es/v1/Tag/props/propTypes.js +1 -2
  25. package/lib/ListItem/ListItemWithAvatar.js +5 -9
  26. package/lib/ListItem/props/defaultProps.js +0 -1
  27. package/lib/ListItem/props/propTypes.js +2 -4
  28. package/lib/MultiSelect/Suggestions.js +0 -2
  29. package/lib/MultiSelect/props/propTypes.js +0 -1
  30. package/lib/Responsive/CustomResponsive.js +2 -2
  31. package/lib/Responsive/RefWrapper.js +4 -3
  32. package/lib/Tab/Tabs.js +3 -10
  33. package/lib/Tag/Tag.js +2 -4
  34. package/lib/Tag/props/propTypes.js +1 -2
  35. package/lib/v1/Card/props/propTypes.js +1 -1
  36. package/lib/v1/DateTime/props/propTypes.js +1 -1
  37. package/lib/v1/ListItem/ListItemWithAvatar.js +5 -9
  38. package/lib/v1/ListItem/props/defaultProps.js +0 -1
  39. package/lib/v1/ListItem/props/propTypes.js +2 -4
  40. package/lib/v1/MultiSelect/Suggestions.js +0 -2
  41. package/lib/v1/MultiSelect/props/propTypes.js +0 -1
  42. package/lib/v1/ResponsiveDropBox/props/propTypes.js +1 -1
  43. package/lib/v1/Ribbon/props/propTypes.js +1 -1
  44. package/lib/v1/Tab/Tabs.js +3 -10
  45. package/lib/v1/Tag/Tag.js +2 -4
  46. package/lib/v1/Tag/props/propTypes.js +1 -2
  47. package/package.json +3 -3
  48. package/result.json +1 -1
package/README.md CHANGED
@@ -34,16 +34,6 @@ In this Package, we Provide Some Basic Components to Build Web App
34
34
 
35
35
  # 1.2.41
36
36
 
37
- - **ListItemWithAvatar**
38
- - onAvatarClick and avatarSize prop added (v0& v1)
39
- - declared small as default value for avatarSize prop (v0& v1)
40
-
41
- - **Suggestions**
42
- - onAvatarClick prop added (v0& v1)
43
-
44
- - **Tag**
45
- - onAvatarClick prop added (v0& v1)
46
-
47
37
  - **Tabs**
48
38
  - Search implemented in more popup (v0& v1)
49
39
 
@@ -74,9 +74,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
74
74
  a11y,
75
75
  customClass,
76
76
  customProps,
77
- needMultiLineText,
78
- onAvatarClick,
79
- avatarSize
77
+ needMultiLineText
80
78
  } = this.props;
81
79
  let {
82
80
  ListItemProps = {},
@@ -121,7 +119,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
121
119
  className: style.leftAvatar
122
120
  }, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
123
121
  name: name,
124
- size: avatarSize,
122
+ size: "small",
125
123
  src: imgSrc,
126
124
  needTitle: needAvatarTitle,
127
125
  textPalette: isDarkPalette ? 'white' : '',
@@ -129,18 +127,16 @@ export default class ListItemWithAvatar extends React.PureComponent {
129
127
  customClass: {
130
128
  customAvatar: customAvatar,
131
129
  customAvatarTeam: customAvatarTeam
132
- },
133
- onClick: onAvatarClick
130
+ }
134
131
  }) : /*#__PURE__*/React.createElement(Avatar, {
135
132
  name: name,
136
- size: avatarSize,
133
+ size: "small",
137
134
  src: imgSrc,
138
135
  initial: initial,
139
136
  textPalette: isDarkPalette ? 'white' : '',
140
137
  needTitle: needAvatarTitle,
141
138
  palette: isDarkPalette ? 'info' : avatarPalette,
142
- customClass: customAvatar,
143
- onClick: onAvatarClick
139
+ customClass: customAvatar
144
140
  })) : null, value ? /*#__PURE__*/React.createElement(Box, {
145
141
  flexible: true,
146
142
  shrink: true,
@@ -39,7 +39,6 @@ export const ListItemWithAvatarDefaultProps = {
39
39
  needTick: false,
40
40
  palette: 'default',
41
41
  size: 'medium',
42
- avatarSize: 'small',
43
42
  value: 'List',
44
43
  dataId: 'listAvatar',
45
44
  needBorder: true,
@@ -1,5 +1,4 @@
1
1
  import PropTypes from 'prop-types';
2
- import { propTypes as AvatarProps } from '../../Avatar/props/propTypes.js';
3
2
  export const ListContainer_Props = {
4
3
  active: PropTypes.bool,
5
4
  autoHover: PropTypes.bool,
@@ -88,7 +87,6 @@ export const ListItemWithAvatar_Props = {
88
87
  onMouseEnter: PropTypes.func,
89
88
  palette: PropTypes.oneOf(['dark']),
90
89
  size: PropTypes.string,
91
- avatarSize: AvatarProps.size,
92
90
  title: PropTypes.string,
93
91
  value: PropTypes.string,
94
92
  a11y: PropTypes.shape({
@@ -104,8 +102,7 @@ export const ListItemWithAvatar_Props = {
104
102
  needMultiLineText: PropTypes.bool,
105
103
  customProps: PropTypes.shape({
106
104
  ListItemProps: PropTypes.object
107
- }),
108
- onAvatarClick: PropTypes.func
105
+ })
109
106
  };
110
107
  export const ListItemWithCheckBox_Props = {
111
108
  active: PropTypes.bool,
@@ -15,7 +15,6 @@ export default class Suggestions extends React.PureComponent {
15
15
  getRef,
16
16
  hoverOption,
17
17
  onClick,
18
- onAvatarClick,
19
18
  onMouseEnter,
20
19
  needTick,
21
20
  needBorder,
@@ -84,7 +83,6 @@ export default class Suggestions extends React.PureComponent {
84
83
  key: `${id}avatarListItem`,
85
84
  name: value,
86
85
  onClick: onClick,
87
- onAvatarClick: onAvatarClick,
88
86
  onMouseEnter: onMouseEnter,
89
87
  value: value,
90
88
  title: value,
@@ -161,7 +161,6 @@ export const Suggestions_propTypes = {
161
161
  needBorder: PropTypes.bool,
162
162
  needTick: PropTypes.bool,
163
163
  onClick: PropTypes.func,
164
- onAvatarClick: PropTypes.func,
165
164
  onMouseEnter: PropTypes.func,
166
165
  palette: PropTypes.string,
167
166
  selectedOptions: PropTypes.array,
@@ -91,10 +91,10 @@ export function ResponsiveSender(props) {
91
91
  calculation: contextSelector
92
92
  }, totalContext => /*#__PURE__*/React.createElement(ResponsiveContext.Provider, {
93
93
  value: totalContext
94
- }, /*#__PURE__*/React.createElement(DOMRefWrapper, {
94
+ }, !elementRef ? /*#__PURE__*/React.createElement(DOMRefWrapper, {
95
95
  domRefKey: domRefKey,
96
96
  ref: containerRef
97
- }, children)));
97
+ }, children) : children));
98
98
  }
99
99
  ResponsiveSender.defaultProps = { ...CustomResponsiveSender_defaultProps,
100
100
  responsiveId: defaultResponsiveId
@@ -17,7 +17,8 @@ const DOMRefWrapper = /*#__PURE__*/forwardRef((props, refFunc) => {
17
17
 
18
18
  const refKey = typeof ele.type !== 'string' ? domRefKey : 'ref'; // const setAttribute = useCallback(node => {
19
19
 
20
- const eleRealRefFunc = ele.props[refKey];
20
+ const eleRealRefFunc = refKey == 'ref' ? ele.ref : ele.props[refKey];
21
+ console.log(typeof ele.type, 'typeof ele.typetypeof ele.typetypeof ele.type', refKey, ele, eleRealRefFunc);
21
22
  const setAttribute = useCallback(ref => {
22
23
  setRef(refFunc, ref);
23
24
  setRef(eleRealRefFunc, ref);
package/es/Tab/Tabs.js CHANGED
@@ -478,7 +478,7 @@ class Tabs extends React.Component {
478
478
  size: "small"
479
479
  }), /*#__PURE__*/React.createElement("div", {
480
480
  className: tabsStyle.emptyStateTitle
481
- }, searchErrorText)); // return <EmptySearch size='small' />;
481
+ }, searchErrorText));
482
482
  }
483
483
 
484
484
  renderTabs(mainTabs, moreTabs, isVirtual) {
@@ -590,7 +590,7 @@ class Tabs extends React.Component {
590
590
  },
591
591
  boxPosition: position,
592
592
  getRef: getContainerRef,
593
- isBoxPaddingNeed: false,
593
+ isBoxPaddingNeed: true,
594
594
  isArrow: false,
595
595
  ...DropBoxProps,
596
596
  isResponsivePadding: true,
@@ -612,13 +612,6 @@ class Tabs extends React.Component {
612
612
  }
613
613
  },
614
614
  dataId: `${dataId}_search`,
615
- a11y: {
616
- role: 'combobox',
617
- ariaOwns: ariaTitleId,
618
- ariaAutocomplete: 'list',
619
- ariaHaspopup: true,
620
- ariaExpanded: true
621
- },
622
615
  ...TextBoxIconProps
623
616
  })) : null, /*#__PURE__*/React.createElement(Box, {
624
617
  flexible: true,
package/es/Tag/Tag.js CHANGED
@@ -83,8 +83,7 @@ export default class Tag extends PureComponent {
83
83
  customAttributes,
84
84
  a11y,
85
85
  needEffect,
86
- isReadOnly,
87
- onAvatarClick
86
+ isReadOnly
88
87
  } = this.props;
89
88
  let {
90
89
  customTag = '',
@@ -117,8 +116,7 @@ export default class Tag extends PureComponent {
117
116
  size: "small",
118
117
  src: imageURL,
119
118
  textPalette: isDarkPalette ? 'white' : '',
120
- customClass: customAvatar,
121
- onClick: onAvatarClick
119
+ customClass: customAvatar
122
120
  })) : null, iconName ? /*#__PURE__*/React.createElement("div", {
123
121
  className: `${style.icon} ${customTagIcon}`,
124
122
  "aria-hidden": true
@@ -32,6 +32,5 @@ export const propTypes = {
32
32
  }),
33
33
  needEffect: PropTypes.bool,
34
34
  isReadOnly: PropTypes.bool,
35
- dataSelectorId: PropTypes.string,
36
- onAvatarClick: PropTypes.func
35
+ dataSelectorId: PropTypes.string
37
36
  };
@@ -1,6 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  export const CardHeader_propTypes = {
3
- children: PropTypes.element,
3
+ children: PropTypes.node,
4
4
  dataId: PropTypes.string,
5
5
  isScroll: PropTypes.bool,
6
6
  customClass: PropTypes.string,
@@ -84,7 +84,7 @@ export const DateTime_propTypes = {
84
84
  export const DateWidget_propTypes = {
85
85
  borderColor: PropTypes.oneOf(['transparent', 'default']),
86
86
  cantEditOnPopupOpen: PropTypes.bool,
87
- children: PropTypes.object,
87
+ children: PropTypes.node,
88
88
  className: PropTypes.string,
89
89
  closePopupOnly: PropTypes.func,
90
90
  dataId: PropTypes.string,
@@ -16,7 +16,6 @@ import style from '../../ListItem/ListItem.module.css';
16
16
  const ListItemWithAvatar = props => {
17
17
  let {
18
18
  size,
19
- avatarSize,
20
19
  active,
21
20
  highlight,
22
21
  value,
@@ -43,8 +42,7 @@ const ListItemWithAvatar = props => {
43
42
  id,
44
43
  getRef,
45
44
  onClick,
46
- onMouseEnter,
47
- onAvatarClick
45
+ onMouseEnter
48
46
  } = props;
49
47
 
50
48
  function handleRef(ele) {
@@ -102,7 +100,7 @@ const ListItemWithAvatar = props => {
102
100
  className: style.leftAvatar
103
101
  }, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
104
102
  name: name,
105
- size: avatarSize,
103
+ size: "small",
106
104
  src: imgSrc,
107
105
  needTitle: needAvatarTitle,
108
106
  textPalette: isDarkPalette ? 'white' : '',
@@ -110,18 +108,16 @@ const ListItemWithAvatar = props => {
110
108
  customClass: {
111
109
  customAvatar: customAvatar,
112
110
  customAvatarTeam: customAvatarTeam
113
- },
114
- onClick: onAvatarClick
111
+ }
115
112
  }) : /*#__PURE__*/React.createElement(Avatar, {
116
113
  name: name,
117
- size: avatarSize,
114
+ size: "small",
118
115
  src: imgSrc,
119
116
  initial: initial,
120
117
  textPalette: isDarkPalette ? 'white' : '',
121
118
  needTitle: needAvatarTitle,
122
119
  palette: isDarkPalette ? 'info' : avatarPalette,
123
- customClass: customAvatar,
124
- onClick: onAvatarClick
120
+ customClass: customAvatar
125
121
  })) : null, value ? /*#__PURE__*/React.createElement(Box, {
126
122
  flexible: true,
127
123
  shrink: true,
@@ -39,7 +39,6 @@ export const ListItemWithAvatarDefaultProps = {
39
39
  needTick: false,
40
40
  palette: 'default',
41
41
  size: 'medium',
42
- avatarSize: 'small',
43
42
  value: 'List',
44
43
  dataId: 'listAvatar',
45
44
  needBorder: true,
@@ -1,5 +1,4 @@
1
1
  import PropTypes from 'prop-types';
2
- import { propTypes as AvatarProps } from '../../Avatar/props/propTypes.js';
3
2
  export const ListContainer_Props = {
4
3
  active: PropTypes.bool,
5
4
  autoHover: PropTypes.bool,
@@ -88,7 +87,6 @@ export const ListItemWithAvatar_Props = {
88
87
  onMouseEnter: PropTypes.func,
89
88
  palette: PropTypes.oneOf(['dark']),
90
89
  size: PropTypes.string,
91
- avatarSize: AvatarProps.size,
92
90
  title: PropTypes.string,
93
91
  value: PropTypes.string,
94
92
  a11y: PropTypes.shape({
@@ -104,8 +102,7 @@ export const ListItemWithAvatar_Props = {
104
102
  needMultiLineText: PropTypes.bool,
105
103
  customProps: PropTypes.shape({
106
104
  ListItemProps: PropTypes.object
107
- }),
108
- onAvatarClick: PropTypes.func
105
+ })
109
106
  };
110
107
  export const ListItemWithCheckBox_Props = {
111
108
  active: PropTypes.bool,
@@ -15,7 +15,6 @@ export default class Suggestions extends React.PureComponent {
15
15
  getRef,
16
16
  hoverOption,
17
17
  onClick,
18
- onAvatarClick,
19
18
  onMouseEnter,
20
19
  needTick,
21
20
  needBorder,
@@ -84,7 +83,6 @@ export default class Suggestions extends React.PureComponent {
84
83
  key: `${id}avatarListItem`,
85
84
  name: value,
86
85
  onClick: onClick,
87
- onAvatarClick: onAvatarClick,
88
86
  onMouseEnter: onMouseEnter,
89
87
  value: value,
90
88
  title: value,
@@ -158,7 +158,6 @@ export const Suggestions_propTypes = {
158
158
  needBorder: PropTypes.bool,
159
159
  needTick: PropTypes.bool,
160
160
  onClick: PropTypes.func,
161
- onAvatarClick: PropTypes.func,
162
161
  onMouseEnter: PropTypes.func,
163
162
  palette: PropTypes.string,
164
163
  selectedOptions: PropTypes.array,
@@ -1,7 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import { DropBoxPropTypes } from './../../DropBox/props/propTypes';
3
3
  export const propTypes = { ...DropBoxPropTypes,
4
- children: PropTypes.element,
4
+ children: PropTypes.node,
5
5
  customClass: PropTypes.object,
6
6
  isResponsivePadding: PropTypes.bool,
7
7
  alignBox: PropTypes.oneOf(['column', 'row'])
@@ -1,6 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  export const propTypes = {
3
- children: PropTypes.element,
3
+ children: PropTypes.node,
4
4
  dataId: PropTypes.string,
5
5
  palette: PropTypes.oneOf(['default', 'danger', 'primary', 'secondary', 'info', 'dark']),
6
6
  size: PropTypes.oneOf(['small', 'medium', 'large', 'xlarge']),
package/es/v1/Tab/Tabs.js CHANGED
@@ -109,7 +109,7 @@ const Tabs = props => {
109
109
  size: "small"
110
110
  }), /*#__PURE__*/React.createElement("div", {
111
111
  className: tabsStyle.emptyStateTitle
112
- }, searchErrorText)); // return <EmptySearch size='small' />;
112
+ }, searchErrorText));
113
113
  }
114
114
 
115
115
  function onTabResize(size, target) {
@@ -510,7 +510,7 @@ const Tabs = props => {
510
510
  },
511
511
  boxPosition: position,
512
512
  getRef: getContainerRef,
513
- isBoxPaddingNeed: false,
513
+ isBoxPaddingNeed: true,
514
514
  isArrow: false,
515
515
  ...DropBoxProps,
516
516
  isResponsivePadding: true,
@@ -532,13 +532,6 @@ const Tabs = props => {
532
532
  }
533
533
  },
534
534
  dataId: `${dataId}_search`,
535
- a11y: {
536
- role: 'combobox',
537
- ariaOwns: ariaTitleId,
538
- ariaAutocomplete: 'list',
539
- ariaHaspopup: true,
540
- ariaExpanded: true
541
- },
542
535
  ...TextBoxIconProps
543
536
  })) : null, /*#__PURE__*/React.createElement(Box, {
544
537
  flexible: true,
package/es/v1/Tag/Tag.js CHANGED
@@ -45,8 +45,7 @@ function Tag(props) {
45
45
  a11y,
46
46
  needEffect,
47
47
  isReadOnly,
48
- id,
49
- onAvatarClick
48
+ id
50
49
  } = props;
51
50
 
52
51
  const handleSelect = e => {
@@ -102,8 +101,7 @@ function Tag(props) {
102
101
  size: "small",
103
102
  src: imageURL,
104
103
  textPalette: isDarkPalette ? 'white' : '',
105
- customClass: customAvatar,
106
- onClick: onAvatarClick
104
+ customClass: customAvatar
107
105
  })) : null, iconName ? /*#__PURE__*/React.createElement("div", {
108
106
  className: `${style.icon} ${customTagIcon}`,
109
107
  "aria-hidden": true
@@ -32,6 +32,5 @@ export const propTypes = {
32
32
  }),
33
33
  needEffect: PropTypes.bool,
34
34
  isReadOnly: PropTypes.bool,
35
- dataSelectorId: PropTypes.string,
36
- onAvatarClick: PropTypes.func
35
+ dataSelectorId: PropTypes.string
37
36
  };
@@ -128,9 +128,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
128
128
  a11y = _this$props4.a11y,
129
129
  customClass = _this$props4.customClass,
130
130
  customProps = _this$props4.customProps,
131
- needMultiLineText = _this$props4.needMultiLineText,
132
- onAvatarClick = _this$props4.onAvatarClick,
133
- avatarSize = _this$props4.avatarSize;
131
+ needMultiLineText = _this$props4.needMultiLineText;
134
132
  var _customProps$ListItem = customProps.ListItemProps,
135
133
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
136
134
  _customProps$Containe = customProps.ContainerProps,
@@ -173,7 +171,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
173
171
  className: _ListItemModule["default"].leftAvatar
174
172
  }, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
175
173
  name: name,
176
- size: avatarSize,
174
+ size: "small",
177
175
  src: imgSrc,
178
176
  needTitle: needAvatarTitle,
179
177
  textPalette: isDarkPalette ? 'white' : '',
@@ -181,18 +179,16 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
181
179
  customClass: {
182
180
  customAvatar: customAvatar,
183
181
  customAvatarTeam: customAvatarTeam
184
- },
185
- onClick: onAvatarClick
182
+ }
186
183
  }) : /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
187
184
  name: name,
188
- size: avatarSize,
185
+ size: "small",
189
186
  src: imgSrc,
190
187
  initial: initial,
191
188
  textPalette: isDarkPalette ? 'white' : '',
192
189
  needTitle: needAvatarTitle,
193
190
  palette: isDarkPalette ? 'info' : avatarPalette,
194
- customClass: customAvatar,
195
- onClick: onAvatarClick
191
+ customClass: customAvatar
196
192
  })) : null, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
197
193
  flexible: true,
198
194
  shrink: true,
@@ -47,7 +47,6 @@ var ListItemWithAvatarDefaultProps = {
47
47
  needTick: false,
48
48
  palette: 'default',
49
49
  size: 'medium',
50
- avatarSize: 'small',
51
50
  value: 'List',
52
51
  dataId: 'listAvatar',
53
52
  needBorder: true,
@@ -7,8 +7,6 @@ exports.ListItem_Props = exports.ListItemWithRadio_Props = exports.ListItemWithI
7
7
 
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
- var _propTypes2 = require("../../Avatar/props/propTypes.js");
11
-
12
10
  var _ListItemWithAvatar_P;
13
11
 
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -85,7 +83,7 @@ var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
85
83
  active: _propTypes["default"].bool,
86
84
  autoHover: _propTypes["default"].bool,
87
85
  avatarPalette: _propTypes["default"].string
88
- }, _defineProperty(_ListItemWithAvatar_P, "avatarPalette", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataSelectorId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "disableTitle", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "getRef", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "highlight", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "id", _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])), _defineProperty(_ListItemWithAvatar_P, "imgSrc", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "index", _propTypes["default"].number), _defineProperty(_ListItemWithAvatar_P, "initial", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "isDisabled", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "isTeam", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "name", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "needAvatarTitle", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needBorder", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needTick", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "onClick", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "onMouseEnter", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "palette", _propTypes["default"].oneOf(['dark'])), _defineProperty(_ListItemWithAvatar_P, "size", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "avatarSize", _propTypes2.propTypes.size), _defineProperty(_ListItemWithAvatar_P, "title", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "value", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "a11y", _propTypes["default"].shape({
86
+ }, _defineProperty(_ListItemWithAvatar_P, "avatarPalette", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataSelectorId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "disableTitle", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "getRef", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "highlight", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "id", _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])), _defineProperty(_ListItemWithAvatar_P, "imgSrc", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "index", _propTypes["default"].number), _defineProperty(_ListItemWithAvatar_P, "initial", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "isDisabled", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "isTeam", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "name", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "needAvatarTitle", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needBorder", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needTick", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "onClick", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "onMouseEnter", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "palette", _propTypes["default"].oneOf(['dark'])), _defineProperty(_ListItemWithAvatar_P, "size", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "title", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "value", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "a11y", _propTypes["default"].shape({
89
87
  role: _propTypes["default"].string,
90
88
  ariaSelected: _propTypes["default"].bool,
91
89
  ariaHidden: _propTypes["default"].bool
@@ -95,7 +93,7 @@ var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
95
93
  customAvatarTeam: _propTypes["default"].string
96
94
  })), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
97
95
  ListItemProps: _propTypes["default"].object
98
- })), _defineProperty(_ListItemWithAvatar_P, "onAvatarClick", _propTypes["default"].func), _ListItemWithAvatar_P);
96
+ })), _ListItemWithAvatar_P);
99
97
  exports.ListItemWithAvatar_Props = ListItemWithAvatar_Props;
100
98
  var ListItemWithCheckBox_Props = {
101
99
  active: _propTypes["default"].bool,
@@ -70,7 +70,6 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
70
70
  getRef = _this$props.getRef,
71
71
  hoverOption = _this$props.hoverOption,
72
72
  onClick = _this$props.onClick,
73
- onAvatarClick = _this$props.onAvatarClick,
74
73
  onMouseEnter = _this$props.onMouseEnter,
75
74
  needTick = _this$props.needTick,
76
75
  needBorder = _this$props.needBorder,
@@ -135,7 +134,6 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
135
134
  key: "".concat(id, "avatarListItem"),
136
135
  name: value,
137
136
  onClick: onClick,
138
- onAvatarClick: onAvatarClick,
139
137
  onMouseEnter: onMouseEnter,
140
138
  value: value,
141
139
  title: value,
@@ -183,7 +183,6 @@ var Suggestions_propTypes = {
183
183
  needBorder: _propTypes["default"].bool,
184
184
  needTick: _propTypes["default"].bool,
185
185
  onClick: _propTypes["default"].func,
186
- onAvatarClick: _propTypes["default"].func,
187
186
  onMouseEnter: _propTypes["default"].func,
188
187
  palette: _propTypes["default"].string,
189
188
  selectedOptions: _propTypes["default"].array,
@@ -132,10 +132,10 @@ function ResponsiveSender(props) {
132
132
  }, function (totalContext) {
133
133
  return /*#__PURE__*/_react["default"].createElement(ResponsiveContext.Provider, {
134
134
  value: totalContext
135
- }, /*#__PURE__*/_react["default"].createElement(_RefWrapper["default"], {
135
+ }, !elementRef ? /*#__PURE__*/_react["default"].createElement(_RefWrapper["default"], {
136
136
  domRefKey: domRefKey,
137
137
  ref: containerRef
138
- }, children));
138
+ }, children) : children);
139
139
  });
140
140
  }
141
141
 
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
@@ -19,6 +17,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
19
17
 
20
18
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
19
 
20
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
21
+
22
22
  function setRef(refFunc, value) {
23
23
  if (typeof refFunc === 'function') {
24
24
  refFunc(value);
@@ -35,7 +35,8 @@ var DOMRefWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (props, refFunc
35
35
 
36
36
  var refKey = typeof ele.type !== 'string' ? domRefKey : 'ref'; // const setAttribute = useCallback(node => {
37
37
 
38
- var eleRealRefFunc = ele.props[refKey];
38
+ var eleRealRefFunc = refKey == 'ref' ? ele.ref : ele.props[refKey];
39
+ console.log(_typeof(ele.type), 'typeof ele.typetypeof ele.typetypeof ele.type', refKey, ele, eleRealRefFunc);
39
40
  var setAttribute = (0, _react.useCallback)(function (ref) {
40
41
  setRef(refFunc, ref);
41
42
  setRef(eleRealRefFunc, ref);
package/lib/Tab/Tabs.js CHANGED
@@ -540,7 +540,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
540
540
  size: "small"
541
541
  }), /*#__PURE__*/_react["default"].createElement("div", {
542
542
  className: _TabsModule["default"].emptyStateTitle
543
- }, searchErrorText)); // return <EmptySearch size='small' />;
543
+ }, searchErrorText));
544
544
  }
545
545
  }, {
546
546
  key: "renderTabs",
@@ -651,7 +651,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
651
651
  },
652
652
  boxPosition: position,
653
653
  getRef: getContainerRef,
654
- isBoxPaddingNeed: false,
654
+ isBoxPaddingNeed: true,
655
655
  isArrow: false
656
656
  }, DropBoxProps, {
657
657
  isResponsivePadding: true,
@@ -672,14 +672,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
672
672
  'data-a11y-autofocus': true
673
673
  }
674
674
  },
675
- dataId: "".concat(dataId, "_search"),
676
- a11y: {
677
- role: 'combobox',
678
- ariaOwns: ariaTitleId,
679
- ariaAutocomplete: 'list',
680
- ariaHaspopup: true,
681
- ariaExpanded: true
682
- }
675
+ dataId: "".concat(dataId, "_search")
683
676
  }, TextBoxIconProps))) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
684
677
  flexible: true,
685
678
  shrink: true,
package/lib/Tag/Tag.js CHANGED
@@ -140,8 +140,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
140
140
  customAttributes = _this$props4.customAttributes,
141
141
  a11y = _this$props4.a11y,
142
142
  needEffect = _this$props4.needEffect,
143
- isReadOnly = _this$props4.isReadOnly,
144
- onAvatarClick = _this$props4.onAvatarClick;
143
+ isReadOnly = _this$props4.isReadOnly;
145
144
  var _customClass$customTa = customClass.customTag,
146
145
  customTag = _customClass$customTa === void 0 ? '' : _customClass$customTa,
147
146
  _customClass$customTa2 = customClass.customTagClose,
@@ -173,8 +172,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
173
172
  size: "small",
174
173
  src: imageURL,
175
174
  textPalette: isDarkPalette ? 'white' : '',
176
- customClass: customAvatar,
177
- onClick: onAvatarClick
175
+ customClass: customAvatar
178
176
  })) : null, iconName ? /*#__PURE__*/_react["default"].createElement("div", {
179
177
  className: "".concat(_TagModule["default"].icon, " ").concat(customTagIcon),
180
178
  "aria-hidden": true
@@ -42,7 +42,6 @@ var propTypes = {
42
42
  }),
43
43
  needEffect: _propTypes["default"].bool,
44
44
  isReadOnly: _propTypes["default"].bool,
45
- dataSelectorId: _propTypes["default"].string,
46
- onAvatarClick: _propTypes["default"].func
45
+ dataSelectorId: _propTypes["default"].string
47
46
  };
48
47
  exports.propTypes = propTypes;
@@ -10,7 +10,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
 
12
12
  var CardHeader_propTypes = {
13
- children: _propTypes["default"].element,
13
+ children: _propTypes["default"].node,
14
14
  dataId: _propTypes["default"].string,
15
15
  isScroll: _propTypes["default"].bool,
16
16
  customClass: _propTypes["default"].string,