@zohodesk/components 1.0.0-alpha-252 → 1.0.0-alpha-253

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 (264) hide show
  1. package/README.md +6 -0
  2. package/es/Avatar/Avatar.js +2 -1
  3. package/es/Card/props/defaultProps.js +0 -1
  4. package/es/Card/props/propTypes.js +2 -2
  5. package/es/DateTime/CalendarView.js +4 -2
  6. package/es/DateTime/DateTime.module.css +1 -0
  7. package/es/DateTime/DateTimePopupHeader.js +21 -8
  8. package/es/DateTime/DateWidget.js +4 -2
  9. package/es/DateTime/DaysRow.js +2 -1
  10. package/es/DateTime/YearView.js +12 -4
  11. package/es/DateTime/YearView.module.css +19 -1
  12. package/es/DropDown/DropDownHeading.js +3 -1
  13. package/es/DropDown/props/propTypes.js +2 -1
  14. package/es/Label/Label.js +4 -2
  15. package/es/Layout/props/propTypes.js +3 -3
  16. package/es/ListItem/ListContainer.js +4 -2
  17. package/es/MultiSelect/MultiSelect.js +4 -2
  18. package/es/MultiSelect/Suggestions.js +2 -1
  19. package/es/Responsive/CustomResponsive.js +7 -3
  20. package/es/Select/Select.js +7 -4
  21. package/es/Select/SelectWithIcon.js +2 -1
  22. package/es/Tab/Tabs.js +9 -4
  23. package/es/Tab/Tabs.module.css +1 -1
  24. package/es/Tooltip/Tooltip.js +4 -1
  25. package/es/index.js +107 -106
  26. package/lib/Avatar/Avatar.js +2 -1
  27. package/lib/Card/props/defaultProps.js +0 -1
  28. package/lib/Card/props/propTypes.js +2 -2
  29. package/lib/DateTime/CalendarView.js +4 -2
  30. package/lib/DateTime/DateTime.module.css +1 -0
  31. package/lib/DateTime/DateTimePopupHeader.js +21 -8
  32. package/lib/DateTime/DateWidget.js +4 -2
  33. package/lib/DateTime/DaysRow.js +2 -1
  34. package/lib/DateTime/YearView.js +12 -4
  35. package/lib/DateTime/YearView.module.css +19 -1
  36. package/lib/DropDown/DropDownHeading.js +3 -1
  37. package/lib/DropDown/props/propTypes.js +2 -1
  38. package/lib/Label/Label.js +4 -2
  39. package/lib/Layout/props/propTypes.js +3 -3
  40. package/lib/ListItem/ListContainer.js +4 -2
  41. package/lib/MultiSelect/MultiSelect.js +4 -2
  42. package/lib/MultiSelect/Suggestions.js +2 -1
  43. package/lib/Responsive/CustomResponsive.js +7 -3
  44. package/lib/Select/Select.js +7 -4
  45. package/lib/Select/SelectWithIcon.js +2 -1
  46. package/lib/Tab/Tabs.js +9 -4
  47. package/lib/Tab/Tabs.module.css +1 -1
  48. package/lib/Tooltip/Tooltip.js +4 -1
  49. package/lib/index.js +1 -842
  50. package/package.json +10 -5
  51. package/es/Accordion/docs/Accordion__Demo.docs.js +0 -78
  52. package/es/Animation/docs/Animation__default.docs.js +0 -32
  53. package/es/Animation/docs/Animation__fadeIn.docs.js +0 -32
  54. package/es/Animation/docs/Animation__scaleIn.docs.js +0 -32
  55. package/es/Animation/docs/Animation__skewIn.docs.js +0 -32
  56. package/es/Animation/docs/Animation__slideDown.docs.js +0 -32
  57. package/es/Animation/docs/Animation__slideLeft.docs.js +0 -32
  58. package/es/Animation/docs/Animation__zoomIn.docs.js +0 -32
  59. package/es/AppContainer/docs/AppContainer__default.docs.js +0 -18
  60. package/es/Avatar/docs/Avatar__custom.docs.js +0 -27
  61. package/es/Avatar/docs/Avatar__default.docs.js +0 -27
  62. package/es/Avatar/docs/Avatar__palette.docs.js +0 -47
  63. package/es/Avatar/docs/Avatar__text.docs.js +0 -26
  64. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -71
  65. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -29
  66. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -48
  67. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -47
  68. package/es/Button/docs/Button__custom.docs.js +0 -769
  69. package/es/Button/docs/Button__default.docs.js +0 -534
  70. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -35
  71. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -31
  72. package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -40
  73. package/es/Card/docs/Card__Custom.docs.js +0 -32
  74. package/es/Card/docs/Card__Default.docs.js +0 -35
  75. package/es/Card/docs/Card__Scroll.docs.js +0 -56
  76. package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -289
  77. package/es/CheckBox/docs/CheckBox__default.docs.js +0 -215
  78. package/es/DateTime/docs/DateTime__default.docs.js +0 -88
  79. package/es/DateTime/docs/DateWidget__default.docs.js +0 -178
  80. package/es/DateTime/docs/timezonedata.json +0 -1
  81. package/es/DropBox/docs/DropBox__custom.docs.js +0 -64
  82. package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -85
  83. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -84
  84. package/es/DropBox/docs/DropBox__position.docs.js +0 -85
  85. package/es/DropBox/docs/DropBox__size.docs.js +0 -59
  86. package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -21
  87. package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -19
  88. package/es/Heading/docs/Heading__default.docs.js +0 -19
  89. package/es/Label/docs/Label__clipped.docs.js +0 -25
  90. package/es/Label/docs/Label__custom.docs.js +0 -28
  91. package/es/Label/docs/Label__palette.docs.js +0 -40
  92. package/es/Label/docs/Label__size.docs.js +0 -27
  93. package/es/Label/docs/Label__type.docs.js +0 -35
  94. package/es/Layout/docs/Layout__Hidden.docs.js +0 -76
  95. package/es/Layout/docs/Layout__default.docs.js +0 -48
  96. package/es/Layout/docs/Layout__four_Column.docs.js +0 -78
  97. package/es/Layout/docs/Layout__three_Column.docs.js +0 -75
  98. package/es/Layout/docs/Layout__two_Column.docs.js +0 -68
  99. package/es/LightNightMode/Colors.json +0 -497
  100. package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -92
  101. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -153
  102. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -110
  103. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -89
  104. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -63
  105. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -66
  106. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -60
  107. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -89
  108. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -63
  109. package/es/ListItem/docs/ListItem__custom.docs.js +0 -112
  110. package/es/ListItem/docs/ListItem__default.docs.js +0 -80
  111. package/es/Modal/__docs__/Modal__default.docs.js +0 -42
  112. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -118
  113. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -108
  114. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -137
  115. package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -156
  116. package/es/PopOver/docs/PopOver__default.docs.js +0 -30
  117. package/es/Provider/docs/Provider_Id__Class.docs.js +0 -28
  118. package/es/Provider/docs/Provider_Id__Function.docs.js +0 -17
  119. package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -31
  120. package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -22
  121. package/es/Provider.js +0 -91
  122. package/es/Radio/docs/Radio__custom.docs.js +0 -241
  123. package/es/Radio/docs/Radio__default.docs.js +0 -165
  124. package/es/Responsive/docs/Responsive__Custom.docs.js +0 -214
  125. package/es/Responsive/docs/Responsive__default.docs.js +0 -95
  126. package/es/Responsive/docs/style.module.css +0 -56
  127. package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -385
  128. package/es/Ribbon/docs/Ribbon__default.docs.js +0 -341
  129. package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -433
  130. package/es/Select/docs/GroupSelect__default.docs.js +0 -144
  131. package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -93
  132. package/es/Select/docs/SelectWithIcon__default.docs.js +0 -134
  133. package/es/Select/docs/Select__default.docs.js +0 -283
  134. package/es/Stencils/docs/Stencils__custom.docs.js +0 -43
  135. package/es/Stencils/docs/Stencils__default.docs.js +0 -48
  136. package/es/Switch/docs/Switch__custom.docs.js +0 -151
  137. package/es/Switch/docs/Switch__default.docs.js +0 -105
  138. package/es/Tab/docs/Tab__default.docs.js +0 -253
  139. package/es/Tab/docs/tabdocs.module.css +0 -29
  140. package/es/Tag/docs/Tag__custom.docs.js +0 -366
  141. package/es/Tag/docs/Tag__default.docs.js +0 -321
  142. package/es/TextBox/docs/TextBox__custom.docs.js +0 -41
  143. package/es/TextBox/docs/TextBox__default.docs.js +0 -38
  144. package/es/TextBox/docs/TextBox__size.docs.js +0 -36
  145. package/es/TextBox/docs/TextBox__variant.docs.js +0 -36
  146. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -87
  147. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -59
  148. package/es/Textarea/docs/Textarea__animated.docs.js +0 -39
  149. package/es/Textarea/docs/Textarea__custom.docs.js +0 -80
  150. package/es/Textarea/docs/Textarea__default.docs.js +0 -74
  151. package/es/Textarea/docs/Textarea__disabled.docs.js +0 -27
  152. package/es/Tooltip/docs/Tooltip__default.docs.js +0 -367
  153. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -92
  154. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -139
  155. package/es/common/docStyle.module.css +0 -766
  156. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -65
  157. package/es/semantic/Button/docs/Button__default.docs.js +0 -17
  158. package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -104
  159. package/lib/Animation/docs/Animation__default.docs.js +0 -61
  160. package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -61
  161. package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -61
  162. package/lib/Animation/docs/Animation__skewIn.docs.js +0 -61
  163. package/lib/Animation/docs/Animation__slideDown.docs.js +0 -61
  164. package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -61
  165. package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -61
  166. package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -47
  167. package/lib/Avatar/docs/Avatar__custom.docs.js +0 -62
  168. package/lib/Avatar/docs/Avatar__default.docs.js +0 -60
  169. package/lib/Avatar/docs/Avatar__palette.docs.js +0 -82
  170. package/lib/Avatar/docs/Avatar__text.docs.js +0 -61
  171. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -100
  172. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -58
  173. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -77
  174. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -76
  175. package/lib/Button/docs/Button__custom.docs.js +0 -800
  176. package/lib/Button/docs/Button__default.docs.js +0 -565
  177. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -64
  178. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -60
  179. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -71
  180. package/lib/Card/docs/Card__Custom.docs.js +0 -63
  181. package/lib/Card/docs/Card__Default.docs.js +0 -66
  182. package/lib/Card/docs/Card__Scroll.docs.js +0 -87
  183. package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -323
  184. package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -249
  185. package/lib/DateTime/docs/DateTime__default.docs.js +0 -119
  186. package/lib/DateTime/docs/DateWidget__default.docs.js +0 -212
  187. package/lib/DateTime/docs/timezonedata.json +0 -1
  188. package/lib/DropBox/docs/DropBox__custom.docs.js +0 -97
  189. package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -114
  190. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -113
  191. package/lib/DropBox/docs/DropBox__position.docs.js +0 -118
  192. package/lib/DropBox/docs/DropBox__size.docs.js +0 -92
  193. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -50
  194. package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -48
  195. package/lib/Heading/docs/Heading__default.docs.js +0 -50
  196. package/lib/Label/docs/Label__clipped.docs.js +0 -56
  197. package/lib/Label/docs/Label__custom.docs.js +0 -59
  198. package/lib/Label/docs/Label__palette.docs.js +0 -71
  199. package/lib/Label/docs/Label__size.docs.js +0 -58
  200. package/lib/Label/docs/Label__type.docs.js +0 -66
  201. package/lib/Layout/docs/Layout__Hidden.docs.js +0 -105
  202. package/lib/Layout/docs/Layout__default.docs.js +0 -77
  203. package/lib/Layout/docs/Layout__four_Column.docs.js +0 -107
  204. package/lib/Layout/docs/Layout__three_Column.docs.js +0 -104
  205. package/lib/Layout/docs/Layout__two_Column.docs.js +0 -97
  206. package/lib/LightNightMode/Colors.json +0 -497
  207. package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -128
  208. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -182
  209. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -139
  210. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -118
  211. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -92
  212. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -95
  213. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -89
  214. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -118
  215. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -92
  216. package/lib/ListItem/docs/ListItem__custom.docs.js +0 -141
  217. package/lib/ListItem/docs/ListItem__default.docs.js +0 -109
  218. package/lib/Modal/__docs__/Modal__default.docs.js +0 -65
  219. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -154
  220. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -140
  221. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -165
  222. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -186
  223. package/lib/PopOver/docs/PopOver__default.docs.js +0 -61
  224. package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -56
  225. package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -24
  226. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -59
  227. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -29
  228. package/lib/Provider.js +0 -116
  229. package/lib/Radio/docs/Radio__custom.docs.js +0 -273
  230. package/lib/Radio/docs/Radio__default.docs.js +0 -197
  231. package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -247
  232. package/lib/Responsive/docs/Responsive__default.docs.js +0 -118
  233. package/lib/Responsive/docs/style.module.css +0 -56
  234. package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -414
  235. package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -370
  236. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -462
  237. package/lib/Select/docs/GroupSelect__default.docs.js +0 -173
  238. package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -124
  239. package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -165
  240. package/lib/Select/docs/Select__default.docs.js +0 -313
  241. package/lib/Stencils/docs/Stencils__custom.docs.js +0 -72
  242. package/lib/Stencils/docs/Stencils__default.docs.js +0 -77
  243. package/lib/Switch/docs/Switch__custom.docs.js +0 -180
  244. package/lib/Switch/docs/Switch__default.docs.js +0 -134
  245. package/lib/Tab/docs/Tab__default.docs.js +0 -283
  246. package/lib/Tab/docs/tabdocs.module.css +0 -29
  247. package/lib/Tag/docs/Tag__custom.docs.js +0 -397
  248. package/lib/Tag/docs/Tag__default.docs.js +0 -352
  249. package/lib/TextBox/docs/TextBox__custom.docs.js +0 -72
  250. package/lib/TextBox/docs/TextBox__default.docs.js +0 -69
  251. package/lib/TextBox/docs/TextBox__size.docs.js +0 -67
  252. package/lib/TextBox/docs/TextBox__variant.docs.js +0 -67
  253. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -118
  254. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -90
  255. package/lib/Textarea/docs/Textarea__animated.docs.js +0 -70
  256. package/lib/Textarea/docs/Textarea__custom.docs.js +0 -111
  257. package/lib/Textarea/docs/Textarea__default.docs.js +0 -105
  258. package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -58
  259. package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -402
  260. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -123
  261. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -174
  262. package/lib/common/docStyle.module.css +0 -766
  263. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -111
  264. package/lib/semantic/Button/docs/Button__default.docs.js +0 -43
package/README.md CHANGED
@@ -32,6 +32,12 @@ In this Package, we Provide Some Basic Components to Build Web App
32
32
  - TextBoxIcon
33
33
  - Tooltip
34
34
 
35
+ # 1.0.0-alpha-253
36
+
37
+ - **Tabs, Tooltip** - If condition check added to reduce murphy error logs.
38
+
39
+ - `Accesssility`- Screen Reader support for some components.
40
+
35
41
  # 1.0.0-alpha-252
36
42
 
37
43
  - **Select,GroupSelect,SelectWithAvatar,SelectWithIcon,MultiSelect,MultiSelectWithAvatar** - Initial Loader and Scroll End Loader added.
@@ -154,7 +154,8 @@ export default class Avatar extends React.Component {
154
154
  name: name,
155
155
  onError: this.putInvalidImageURLJSON,
156
156
  onLoad: this.putValidImageURLJSON,
157
- src: showAlternateAvatar ? alternateSrc : src
157
+ src: showAlternateAvatar ? alternateSrc : src,
158
+ alt: name
158
159
  }), !isValidImageList && !showAlternateAvatar ? null : /*#__PURE__*/React.createElement("span", {
159
160
  className: `${style.shadow} ${textStyle} `
160
161
  })));
@@ -9,7 +9,6 @@ export const Card_defaultProps = {
9
9
  export const CardContent_defaultProps = {
10
10
  isScrollAttribute: false,
11
11
  scroll: 'vertical',
12
- preventParentScroll: 'vertical',
13
12
  dataId: 'CardContent',
14
13
  customClass: ''
15
14
  };
@@ -11,10 +11,10 @@ export const CardContent_propTypes = {
11
11
  eleRef: PropTypes.func,
12
12
  isScrollAttribute: PropTypes.bool,
13
13
  onScroll: PropTypes.func,
14
- scroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
14
+ scroll: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
15
15
  shrink: PropTypes.bool,
16
16
  customClass: PropTypes.string,
17
- preventParentScroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both'])
17
+ preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
18
18
  };
19
19
  export const Card_propTypes = {
20
20
  childTypes: PropTypes.object,
@@ -147,7 +147,8 @@ export default class CalendarView extends React.PureComponent {
147
147
  })();
148
148
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DaysRow, {
149
149
  dayNames: dayNames,
150
- dayNamesShort: dayNamesShort
150
+ dayNamesShort: dayNamesShort,
151
+ ariaLabel: dayNamesShort
151
152
  }), /*#__PURE__*/React.createElement("div", {
152
153
  "data-id": `${dataId}_dateContainer`,
153
154
  className: `${style.dateContainer} ${needBorder ? style.separator : ''}`
@@ -183,7 +184,8 @@ export class Span extends React.PureComponent {
183
184
  dataId: dataId,
184
185
  className: `${tdclass} ${isActive ? style.active : ''} ${isToday ? style.today : ''}`,
185
186
  key: i,
186
- onClick: this.handleSelectChild
187
+ onClick: this.handleSelectChild,
188
+ "aria-label": incremday
187
189
  }, incremday);
188
190
  }
189
191
  }
@@ -74,6 +74,7 @@
74
74
  line-height: var(--zd_size24);
75
75
  color: var(--zdt_datetime_datestr_text);
76
76
  composes: semibold;
77
+ display: initial
77
78
  }
78
79
 
79
80
  .dateContainer {
@@ -6,6 +6,7 @@ import React, { PureComponent } from 'react';
6
6
  /** ** Components *** */
7
7
  import { Container, Box } from '../Layout';
8
8
  import Icon from '@zohodesk/icons/lib/Icon';
9
+ import Heading from '../Heading/Heading';
9
10
 
10
11
  /** ** CSS *** */
11
12
  import style from './DateTime.module.css';
@@ -26,13 +27,16 @@ class Span extends React.PureComponent {
26
27
  dataTitle,
27
28
  children,
28
29
  dataId,
29
- className = ''
30
+ className = '',
31
+ ariaLabel
30
32
  } = this.props;
31
33
  return /*#__PURE__*/React.createElement(Box, {
32
34
  "data-title": dataTitle,
33
35
  dataId: dataId,
34
36
  className: `${style.thArrow} ${style.grid} ${className}`,
35
- onClick: this.modifyCalendarChild
37
+ onClick: this.modifyCalendarChild,
38
+ "aria-label": ariaLabel,
39
+ tabindex: "0"
36
40
  }, children);
37
41
  }
38
42
  }
@@ -54,19 +58,26 @@ export default class DateTimePopupHeader extends PureComponent {
54
58
  className: style.dateText,
55
59
  dataId: "selectYear",
56
60
  onClick: onOpenYearView
57
- }, /*#__PURE__*/React.createElement("span", {
58
- className: style.thMonYear
59
- }, showMonthTxt), /*#__PURE__*/React.createElement(Icon, {
61
+ }, /*#__PURE__*/React.createElement(Heading, {
62
+ className: style.thMonYear,
63
+ title: showMonthTxt,
64
+ tagName: "h2",
65
+ a11y: {
66
+ tabindex: '0'
67
+ }
68
+ }), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Icon, {
60
69
  name: "ZD-GN-dropdown",
61
70
  size: "12",
62
71
  iconClass: style.downArrow
63
- })), /*#__PURE__*/React.createElement(Box, {
72
+ }))), /*#__PURE__*/React.createElement(Box, {
64
73
  flexible: true
65
74
  }), !isYearView ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Span, {
66
75
  dataTitle: prevMonthTitleText,
67
76
  dataId: "prevMonth",
68
77
  modifyCalendar: onModifyCalendar,
69
- type: "previousMonth"
78
+ type: "previousMonth",
79
+ ariaLabel: "prevMonth",
80
+ tabindex: "0"
70
81
  }, /*#__PURE__*/React.createElement(Icon, {
71
82
  name: "ZD-arrowLeft3",
72
83
  isBold: true
@@ -75,7 +86,9 @@ export default class DateTimePopupHeader extends PureComponent {
75
86
  dataId: "nextMonth",
76
87
  modifyCalendar: onModifyCalendar,
77
88
  type: "nextMonth",
78
- className: style.navigation
89
+ className: style.navigation,
90
+ ariaLabel: "nextMonth",
91
+ tabindex: "0"
79
92
  }, /*#__PURE__*/React.createElement(Icon, {
80
93
  name: "ZD-arrowRight3",
81
94
  isBold: true
@@ -919,7 +919,8 @@ class DateWidgetComponent extends React.Component {
919
919
  positionsOffset,
920
920
  targetOffset,
921
921
  isRestrictScroll,
922
- dropBoxPortalId
922
+ dropBoxPortalId,
923
+ a11y
923
924
  } = this.props;
924
925
  const {
925
926
  selected: value = '',
@@ -969,7 +970,8 @@ class DateWidgetComponent extends React.Component {
969
970
  },
970
971
  iconOnHover: iconOnHover,
971
972
  isFocus: isPopupReady,
972
- autoComplete: false
973
+ autoComplete: false,
974
+ a11y: a11y
973
975
  }, /*#__PURE__*/React.createElement(Container, {
974
976
  align: "both",
975
977
  onClick: isDisabled || isReadOnly ? null : this.handleDateIconClick
@@ -20,7 +20,8 @@ export default class DaysRow extends PureComponent {
20
20
  }, dayNames.map((dayName, index) => /*#__PURE__*/React.createElement(Box, {
21
21
  key: dayName,
22
22
  className: `${style.daysStr} ${style.grid} ${index === 0 ? style.sunday : ''}`,
23
- "data-title": dayName
23
+ "data-title": dayName,
24
+ "aria-label": dayName
24
25
  }, dayNamesShort[index])));
25
26
  }
26
27
  }
@@ -7,6 +7,7 @@ import { YearView_defaultProps } from './props/defaultProps';
7
7
  import { Virtualizer } from '@zohodesk/virtualizer';
8
8
  import { Container, Box } from '../Layout';
9
9
  import Icon from '@zohodesk/icons/lib/Icon';
10
+ import Heading from '../Heading/Heading';
10
11
  /**** CSS ****/
11
12
  import style from './YearView.module.css';
12
13
 
@@ -50,9 +51,15 @@ class Year extends React.PureComponent {
50
51
  alignBox: "row",
51
52
  align: "vertical"
52
53
  }, /*#__PURE__*/React.createElement(Box, {
53
- flexible: true,
54
- className: style.yearText
55
- }, year), /*#__PURE__*/React.createElement(Icon, {
54
+ flexible: true
55
+ }, /*#__PURE__*/React.createElement(Heading, {
56
+ className: style.yearText,
57
+ title: year,
58
+ a11y: {
59
+ tabindex: '0'
60
+ },
61
+ tagName: "h4"
62
+ })), /*#__PURE__*/React.createElement(Icon, {
56
63
  name: "ZD-arrowDownSingle",
57
64
  size: "7",
58
65
  isBold: true,
@@ -85,7 +92,8 @@ class Month extends React.PureComponent {
85
92
  dataId: `month_${month}`,
86
93
  className: `${style.month} ${isActive ? style.currentMonth : ''}`,
87
94
  onClick: this.handleClick,
88
- "data-title": hoverText
95
+ "data-title": hoverText,
96
+ "aria-label": month
89
97
  }, displayText);
90
98
  }
91
99
  }
@@ -5,6 +5,7 @@
5
5
  padding-left: var(--zd_size19);
6
6
  padding-right: var(--zd_size19);
7
7
  }
8
+
8
9
  .month {
9
10
  width: 30.333%;
10
11
  font-size: var(--zd_font_size12);
@@ -17,51 +18,66 @@
17
18
  background-color: var(--zdt_yearview_month_bg);
18
19
  border-radius: 20px;
19
20
  }
21
+
20
22
  .month:hover {
21
23
  background-color: var(--zdt_yearview_month_hover_bg);
22
24
  }
25
+
23
26
  .currentMonth,
24
27
  .currentMonth:hover {
25
28
  color: var(--zdt_yearview_currentmonth_text);
26
29
  }
30
+
27
31
  .currentMonth, .currentMonth:hover {
28
32
  background-color: var(--zdt_yearview_currentmonth_bg);
29
33
  }
34
+
30
35
  .yearBox {
31
36
  border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
32
37
  }
38
+
33
39
  .year {
34
40
  padding: var(--zd_size7) 0;
35
41
  cursor: pointer;
36
42
  }
43
+
37
44
  .year:hover .yearText,
38
45
  .year:hover .arrow {
39
46
  color: var(--zdt_yearview_year_hover_text);
40
47
  }
48
+
41
49
  .yearText {
42
50
  color: var(--zdt_yearview_yeartext_text);
43
51
  font-size: var(--zd_font_size11);
44
52
  }
53
+
45
54
  .arrow {
46
55
  color: var(--zdt_yearview_yeartext_text);
47
56
  transition: transform var(--zd_transition1);
48
57
  }
58
+
49
59
  .isActive {
50
60
  cursor: default;
51
61
  }
62
+
52
63
  .isActive .yearText {
53
64
  font-family: var(--zd_semibold);
54
65
  color: var(--zdt_yearview_year_hover_text);
66
+ font-size: var(--zd_font_size11);
55
67
  }
68
+
56
69
  .arrowActive {
57
70
  color: var(--zdt_yearview_year_hover_text);
58
71
  }
72
+
59
73
  [dir=ltr] .arrowActive {
60
74
  transform: rotate(180deg);
61
75
  }
76
+
62
77
  [dir=rtl] .arrowActive {
63
78
  transform: rotate(-180deg);
64
79
  }
80
+
65
81
  .container {
66
82
  height: 100%;
67
83
  overflow-y: auto;
@@ -69,13 +85,15 @@
69
85
  composes: boxPadding;
70
86
  background-color: var(--zdt_yearview_default_bg);
71
87
  }
88
+
72
89
  .yearContainer {
73
90
  height: var(--zd_size135);
74
91
  overflow: hidden;
75
92
  transition: height var(--zd_transition1);
76
93
  padding-bottom: var(--zd_size5);
77
94
  }
95
+
78
96
  .toggleYear {
79
97
  height: 0;
80
98
  padding: 0;
81
- }
99
+ }
@@ -15,13 +15,15 @@ export default class DropDownHeading extends React.Component {
15
15
  } = this.props;
16
16
  let {
17
17
  role,
18
- ariaLabelledby
18
+ ariaLabelledby,
19
+ ariaLabel
19
20
  } = a11y;
20
21
  return /*#__PURE__*/React.createElement("div", {
21
22
  className: `${style[palette]} ${customClass}`,
22
23
  "data-title": title,
23
24
  role: role,
24
25
  "aria-labelledby": ariaLabelledby,
26
+ "aria-label": ariaLabel,
25
27
  id: htmlId
26
28
  // tabindex='0'
27
29
  }, text, children);
@@ -38,7 +38,8 @@ export const DropDownHeading_propTypes = {
38
38
  htmlId: PropTypes.string,
39
39
  a11y: PropTypes.shape({
40
40
  role: PropTypes.string,
41
- ariaLabelledby: PropTypes.string
41
+ ariaLabelledby: PropTypes.string,
42
+ ariaLabel: PropTypes.string
42
43
  })
43
44
  };
44
45
  export const DropDownItem_propTypes = {
package/es/Label/Label.js CHANGED
@@ -19,7 +19,8 @@ export default class Label extends React.Component {
19
19
  onClick,
20
20
  dataId,
21
21
  variant,
22
- customClass
22
+ customClass,
23
+ id
23
24
  } = this.props;
24
25
  return /*#__PURE__*/React.createElement("label", {
25
26
  className: `${style.label} ${style[type]} ${style[size]} ${colors[palette]} ${style[`font_${variant}`]}
@@ -27,7 +28,8 @@ export default class Label extends React.Component {
27
28
  htmlFor: htmlFor,
28
29
  "data-title": title,
29
30
  "data-id": dataId,
30
- onClick: onClick
31
+ onClick: onClick,
32
+ id: id
31
33
  }, text);
32
34
  }
33
35
  }
@@ -16,11 +16,11 @@ export const BoxProps = {
16
16
  isFirst: PropTypes.bool,
17
17
  isLast: PropTypes.bool,
18
18
  isScrollAttribute: PropTypes.bool,
19
- scroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
19
+ scroll: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
20
20
  shrink: PropTypes.bool,
21
21
  tagName: PropTypes.string,
22
22
  tourId: PropTypes.string,
23
- preventParentScroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both'])
23
+ preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
24
24
  };
25
25
  export const ContainerProps = {
26
26
  align: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around', 'baseline']),
@@ -38,5 +38,5 @@ export const ContainerProps = {
38
38
  tagName: PropTypes.string,
39
39
  tourId: PropTypes.string,
40
40
  wrap: PropTypes.oneOf(['wrap', 'wrap-reverse', 'nowrap']),
41
- preventParentScroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both'])
41
+ preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
42
42
  };
@@ -50,7 +50,8 @@ const ListContainer = props => {
50
50
  } = useResponsiveReceiver('Helmet', responsiveFunc);
51
51
  const {
52
52
  role,
53
- ariaSelected
53
+ ariaSelected,
54
+ ariaLabel
54
55
  } = a11y;
55
56
  const options = {};
56
57
  if (isLink) {
@@ -60,12 +61,13 @@ const ListContainer = props => {
60
61
  if (active) {
61
62
  options['data-selected'] = active;
62
63
  }
63
- if (!isDisabled && !isLink && active) {
64
+ if (!isDisabled && !isLink) {
64
65
  options.tabindex = '0';
65
66
  }
66
67
  return /*#__PURE__*/React.createElement(Container, _extends({
67
68
  role: role,
68
69
  "aria-selected": ariaSelected,
70
+ "aria-label": ariaLabel,
69
71
  isCover: false,
70
72
  align: "vertical",
71
73
  alignBox: "row",
@@ -825,7 +825,8 @@ export class MultiSelectComponent extends React.Component {
825
825
  searchText = 'Searching...'
826
826
  } = i18nKeys;
827
827
  const {
828
- clearLabel = 'Clear all'
828
+ clearLabel = 'Clear all',
829
+ ariaLabelledby
829
830
  } = a11y;
830
831
  i18nKeys = Object.assign({}, i18nKeys, {
831
832
  emptyText: i18nKeys.emptyText || emptyMessage,
@@ -907,7 +908,8 @@ export class MultiSelectComponent extends React.Component {
907
908
  ariaExpanded: !isReadOnly && !isDisabled && !disableAction && isPopupOpen ? true : false,
908
909
  ariaHaspopup: true,
909
910
  ariaRequired: true,
910
- ariaDescribedby: ariaErrorId
911
+ ariaDescribedby: ariaErrorId,
912
+ ariaLabelledby: ariaLabelledby
911
913
  },
912
914
  autoComplete: autoComplete
913
915
  }, /*#__PURE__*/React.createElement(Container, {
@@ -57,7 +57,8 @@ export default class Suggestions extends React.PureComponent {
57
57
  const isActive = activeId === id || selectedOptions.indexOf(id) >= 0;
58
58
  const isHighlight = hoverOption === index || id === hoverId ? true : false;
59
59
  const list_a11y = Object.assign({}, a11y, {
60
- ariaSelected: isActive
60
+ ariaSelected: isActive,
61
+ ariaLabel: value
61
62
  });
62
63
  const commonProps = {
63
64
  isDisabled
@@ -99,6 +99,7 @@ export function useResponsiveReceiver() {
99
99
  const data = useRef();
100
100
  function updateLatestData() {
101
101
  const size = contextData.isParentSize ? contextData.getSize() : validSizeContextData.getSize();
102
+ const prevData = data.current;
102
103
  data.current = query({
103
104
  isTouchDevice,
104
105
  isParentSize: contextData.isParentSize,
@@ -122,13 +123,16 @@ export function useResponsiveReceiver() {
122
123
  });
123
124
  }
124
125
  });
126
+ const isSameValues = shallowCompare(data.current, prevData);
127
+ if (isSameValues) {
128
+ data.current = prevData;
129
+ }
130
+ return isSameValues;
125
131
  }
126
132
  resizeHandlerRef.current = updateLatestData;
127
133
  useEffect(() => {
128
134
  function handleResize(size) {
129
- const prevData = data.current;
130
- resizeHandlerRef.current(size);
131
- const isSameValues = shallowCompare(data.current, prevData);
135
+ const isSameValues = resizeHandlerRef.current(size);
132
136
  !isSameValues && forceUpdate({});
133
137
  }
134
138
  contextData.resize.subscribe(handleResize);
@@ -676,6 +676,7 @@ export class SelectComponent extends Component {
676
676
  iconOnHover,
677
677
  customProps,
678
678
  autoComplete,
679
+ ariaLabelledby,
679
680
  isLoading
680
681
  } = this.props;
681
682
  let {
@@ -712,14 +713,15 @@ export class SelectComponent extends Component {
712
713
  "data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`
713
714
  }, needSelectDownIcon ? /*#__PURE__*/React.createElement(TextBoxIcon, {
714
715
  a11y: {
715
- role: 'combobox',
716
+ role: 'Menuitem',
716
717
  ariaLabel: TextBox_ally_label,
717
718
  ariaControls: setAriaId,
718
719
  ariaExpanded: !isReadOnly && !isDisabled && isPopupOpen ? true : false,
719
720
  ariaHaspopup: true,
720
721
  ariaReadonly: true,
721
722
  ariaActivedescendant: selectedId,
722
- ariaOwns: setAriaId
723
+ ariaOwns: setAriaId,
724
+ ariaLabelledby: ariaLabelledby
723
725
  },
724
726
  isDisabled: isDisabled,
725
727
  iconRotated: isPopupOpen,
@@ -764,14 +766,15 @@ export class SelectComponent extends Component {
764
766
  size: "7"
765
767
  })))) : /*#__PURE__*/React.createElement(Textbox, {
766
768
  a11y: {
767
- role: 'combobox',
769
+ role: 'Menuitem',
768
770
  ariaLabel: TextBox_ally_label,
769
771
  ariaControls: setAriaId,
770
772
  ariaExpanded: !isReadOnly && !isDisabled && isPopupOpen ? true : false,
771
773
  ariaHaspopup: true,
772
774
  ariaReadonly: true,
773
775
  ariaActivedescendant: selectedId,
774
- ariaOwns: setAriaId
776
+ ariaOwns: setAriaId,
777
+ ariaLabelledby: ariaLabelledby
775
778
  },
776
779
  isDisabled: isDisabled,
777
780
  inputRef: this.valueInputRef,
@@ -455,7 +455,8 @@ class SelectWithIcon extends Component {
455
455
  getRef: this.itemRef,
456
456
  a11y: {
457
457
  role: 'option',
458
- ariaSelected: selectedId === options[idKey]
458
+ ariaSelected: selectedId === options[idKey],
459
+ ariaLabel: options[valueKey]
459
460
  }
460
461
  });
461
462
  })) : /*#__PURE__*/React.createElement(EmptyState, {
package/es/Tab/Tabs.js CHANGED
@@ -20,6 +20,7 @@ import tabsStyle from './Tabs.module.css';
20
20
  import Popup from '../Popup/Popup';
21
21
  import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
22
22
  import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
23
+ import btnstyle from '../semantic/Button/semanticButton.module.css';
23
24
  class Tabs extends React.Component {
24
25
  constructor(props) {
25
26
  super(props);
@@ -222,7 +223,7 @@ class Tabs extends React.Component {
222
223
  let {
223
224
  align
224
225
  } = this.props;
225
- let totalDimension = getTotalDimension(this.tabsEle, align);
226
+ let totalDimension = this.tabsEle && getTotalDimension(this.tabsEle, align);
226
227
  return totalDimension;
227
228
  }
228
229
  getTabDimensions() {
@@ -233,7 +234,7 @@ class Tabs extends React.Component {
233
234
  } = this.props;
234
235
  let tabDimensions = {};
235
236
  React.Children.forEach(children, child => /*#__PURE__*/React.isValidElement(child) && child.type === childType && this[child.props.id] && Object.assign(tabDimensions, {
236
- [child.props.id]: getTotalDimension(this[child.props.id], align)
237
+ [child.props.id]: this[child.props.id] && getTotalDimension(this[child.props.id], align)
237
238
  }));
238
239
  return tabDimensions;
239
240
  }
@@ -424,12 +425,16 @@ class Tabs extends React.Component {
424
425
  }), React.Children.count(moreTabs) ? /*#__PURE__*/React.createElement(Box, {
425
426
  className: `${tabsStyle.menu} `
426
427
  }, /*#__PURE__*/React.createElement(Container, _extends({
427
- className: `${moreButtonClass} ${isPopupOpen ? moreButtonActiveClass : ''}`,
428
+ className: `${btnstyle.buttonReset} ${moreButtonClass} ${isPopupOpen ? moreButtonActiveClass : ''}`,
428
429
  align: "both",
429
430
  onClick: this.togglePopup,
430
431
  dataId: "moreTabs",
431
432
  eleRef: getTargetRef
432
- }, MoreButtonProps), /*#__PURE__*/React.createElement(Icon, {
433
+ }, MoreButtonProps, {
434
+ "aria-label": "MoreTabs",
435
+ role: "tab",
436
+ tagName: "button"
437
+ }), /*#__PURE__*/React.createElement(Icon, {
433
438
  name: iconName,
434
439
  size: iconSize
435
440
  })), isPopupOpen && /*#__PURE__*/React.createElement(ResponsiveReceiver, {
@@ -138,4 +138,4 @@
138
138
 
139
139
  .hidden{
140
140
  visibility: hidden;
141
- }
141
+ }
@@ -4,6 +4,7 @@ import { propTypes } from './props/propTypes';
4
4
  import { getLibraryConfig } from '../Provider/Config';
5
5
  import style from './Tooltip.module.css';
6
6
  import ResizeObserver from '../Responsive/ResizeObserver';
7
+ import selectn from 'selectn';
7
8
  export default class Tooltip extends React.Component {
8
9
  constructor(props) {
9
10
  super(props);
@@ -146,7 +147,9 @@ export default class Tooltip extends React.Component {
146
147
  // isContentDotted = element.offsetHeight < element.scrollHeight;
147
148
  // }
148
149
  } else {
149
- isContentDotted = element.parentElement.offsetWidth < element.parentElement.scrollWidth;
150
+ const offWidth = selectn('parentElement.offsetWidth', element) || 0;
151
+ const scrollWidth = selectn('parentElement.scrollWidth', element) || 0;
152
+ isContentDotted = offWidth < scrollWidth;
150
153
  }
151
154
  let originText = element.innerText.replace(/\s/g, '').toLowerCase();
152
155
  let tooltipText = title.replace(/\s/g, '').toLowerCase();