@zohodesk/dot 1.2.1 → 1.2.2

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 (56) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +10 -0
  4. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  5. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  6. package/coverage/ExternalLink/index.html +1 -1
  7. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  8. package/coverage/ExternalLink/props/index.html +1 -1
  9. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  10. package/coverage/Image/Image.js.html +1 -1
  11. package/coverage/Image/Image.module.css.html +1 -1
  12. package/coverage/Image/index.html +1 -1
  13. package/coverage/Image/props/defaultProps.js.html +1 -1
  14. package/coverage/Image/props/index.html +1 -1
  15. package/coverage/Image/props/propTypes.js.html +1 -1
  16. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  17. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  18. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  19. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  20. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  22. package/coverage/coverage-final.json +12 -12
  23. package/coverage/coverage-summary.json +12 -12
  24. package/coverage/index.html +1 -1
  25. package/es/Attachment/Attachment.js +2 -1
  26. package/es/Attachment/Attachment.module.css +10 -6
  27. package/es/Link/Link.js +2 -1
  28. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  29. package/es/list/Icons/AddNewIcon.js +3 -2
  30. package/es/list/Icons/CompleteIcon.js +3 -2
  31. package/es/list/Icons/DeleteIcon.js +4 -3
  32. package/es/list/Icons/EditIcon.js +5 -3
  33. package/es/list/Icons/ReadUnreadIcon.js +5 -3
  34. package/es/list/Icons/SmartIcon.js +5 -3
  35. package/es/list/ListLayout/ListLayout.module.css +24 -8
  36. package/es/list/listCommon.module.css +23 -5
  37. package/es/list/status/StatusDropdown/StatusDropdown.js +12 -2
  38. package/es/lookup/Lookup/Lookup.js +2 -0
  39. package/es/version2/lookup/AlertLookup/AlertLookup.js +14 -2
  40. package/lib/Attachment/Attachment.js +2 -1
  41. package/lib/Attachment/Attachment.module.css +10 -6
  42. package/lib/Link/Link.js +2 -1
  43. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  44. package/lib/list/Icons/AddNewIcon.js +4 -2
  45. package/lib/list/Icons/CompleteIcon.js +4 -2
  46. package/lib/list/Icons/DeleteIcon.js +5 -3
  47. package/lib/list/Icons/EditIcon.js +6 -3
  48. package/lib/list/Icons/ReadUnreadIcon.js +6 -3
  49. package/lib/list/Icons/SmartIcon.js +6 -3
  50. package/lib/list/ListLayout/ListLayout.module.css +24 -8
  51. package/lib/list/listCommon.module.css +23 -5
  52. package/lib/list/status/StatusDropdown/StatusDropdown.js +12 -2
  53. package/lib/lookup/Lookup/Lookup.js +2 -0
  54. package/lib/version2/lookup/AlertLookup/AlertLookup.js +14 -2
  55. package/package.json +4 -4
  56. package/result.json +1 -1
@@ -378,7 +378,13 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
378
378
  needExternalPopupState = _this$props7$needExte === void 0 ? false : _this$props7$needExte,
379
379
  _this$props7$isPopupA = _this$props7.isPopupActive,
380
380
  isPopupActive = _this$props7$isPopupA === void 0 ? false : _this$props7$isPopupA,
381
- needMultiLineText = _this$props7.needMultiLineText;
381
+ needMultiLineText = _this$props7.needMultiLineText,
382
+ _this$props7$a11y = _this$props7.a11y,
383
+ a11y = _this$props7$a11y === void 0 ? {} : _this$props7$a11y;
384
+ var _a11y$tabIndex = a11y.tabIndex,
385
+ tabIndex = _a11y$tabIndex === void 0 ? 0 : _a11y$tabIndex,
386
+ ariaLabelledby = a11y.ariaLabelledby,
387
+ ariaLabel = a11y.ariaLabel;
382
388
  var isPopupOpen = needExternalPopupState ? isPopupActive && isOpen : isOpen;
383
389
  var searchString = this.state.searchString;
384
390
  var containerClass = "".concat(className ? className : '', " ").concat(isPopupReady ? activeStyle ? activeStyle : '' : showIconOnHover ? _StatusDropdownModule["default"].hoverIcon : '', " ").concat(isDisabled ? _commonModule["default"].disabled : isReadOnly ? _StatusDropdownModule["default"].readOnly : !isEditable ? _StatusDropdownModule["default"].cursorDefault : !showOnHover ? "".concat(_StatusDropdownModule["default"].cursor, " ").concat(hoverStyle ? hoverStyle : '') : "".concat(hoverStyle ? hoverStyle : '', " ").concat(_StatusDropdownModule["default"].cursorDefault));
@@ -399,7 +405,11 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
399
405
  onClick: removeClose,
400
406
  disabled: isDisabled || isReadOnly ? true : false,
401
407
  "aria-haspopup": true,
402
- "aria-expanded": isPopupOpen && isEditable ? true : false
408
+ "aria-expanded": isPopupOpen && isEditable ? true : false,
409
+ tabIndex: tabIndex,
410
+ "aria-labelledby": ariaLabelledby,
411
+ "aria-label": ariaLabel,
412
+ "aria-disabled": isDisabled || isReadOnly
403
413
  }, isEditable ? /*#__PURE__*/_react["default"].createElement("div", {
404
414
  className: _StatusDropdownModule["default"].hiddenInput
405
415
  }, /*#__PURE__*/_react["default"].createElement(_TextBox["default"], {
@@ -105,6 +105,7 @@ var Lookup = /*#__PURE__*/function (_Component) {
105
105
  role = _a11y$role === void 0 ? 'dialog' : _a11y$role,
106
106
  ariaLabelledby = a11y.ariaLabelledby,
107
107
  ariaDescribedby = a11y.ariaDescribedby,
108
+ ariaLabel = a11y.ariaLabel,
108
109
  _a11y$ariaModal = a11y.ariaModal,
109
110
  ariaModal = _a11y$ariaModal === void 0 ? isActive ? true : undefined : _a11y$ariaModal;
110
111
  var _customProps$focusSco = customProps.focusScopeProps,
@@ -127,6 +128,7 @@ var Lookup = /*#__PURE__*/function (_Component) {
127
128
  role: role,
128
129
  "aria-labelledby": ariaLabelledby,
129
130
  "aria-describedby": ariaDescribedby,
131
+ "aria-label": ariaLabel,
130
132
  "aria-modal": ariaModal,
131
133
  id: htmlId,
132
134
  className: "".concat(_LookupModule["default"].box, " ").concat(_LookupModule["default"]["".concat(size, "Size")]),
@@ -176,6 +176,8 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
176
176
  var ariaMessageId = this.getAriaId();
177
177
  var ariaConfirmMsgId = this.getAriaId();
178
178
  var ariaTitleId = this.getAriaId();
179
+ var ariaLeaveButtonId = this.getAriaId();
180
+ var ariaStayButtonId = this.getAriaId();
179
181
  a11y = {
180
182
  ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
181
183
  ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
@@ -234,12 +236,22 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
234
236
  customProps: {
235
237
  'data-a11y-autofocus': isDefaultFocus
236
238
  }
237
- }, PrimaryButtonProps)), cancelText && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
239
+ }, PrimaryButtonProps, {
240
+ a11y: {
241
+ 'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
242
+ },
243
+ id: ariaLeaveButtonId
244
+ })), cancelText && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
238
245
  dataId: dataId === 'alertPopup' ? 'alertCancelButton' : "".concat(dataId, "_cancelButton"),
239
246
  text: cancelText,
240
247
  onClick: onCancelClick,
241
248
  palette: "secondary"
242
- }, SecondaryButtonProps))))) : null))));
249
+ }, SecondaryButtonProps, {
250
+ a11y: {
251
+ 'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
252
+ },
253
+ id: ariaStayButtonId
254
+ }))))) : null))));
243
255
  }
244
256
  }]);
245
257
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -51,7 +51,7 @@
51
51
  "@zohodesk-private/node-plugins": "^1.0.0",
52
52
  "@zohodesk-private/color-variable-preprocessor": "1.0.6",
53
53
  "@zohodesk-private/react-prop-validator": "0.0.7",
54
- "@zohodesk/components": "1.2.1",
54
+ "@zohodesk/components": "1.2.2",
55
55
  "@zohodesk/a11y": "2.0.0",
56
56
  "@zohodesk/i18n": "1.0.0-beta.23",
57
57
  "@zohodesk/icons": "1.0.1",
@@ -71,7 +71,7 @@
71
71
  "velocity-react": "1.4.3",
72
72
  "@zohodesk/variables": "1.0.0",
73
73
  "@zohodesk/i18n": "1.0.0-beta.23",
74
- "@zohodesk/components": "1.2.1",
74
+ "@zohodesk/components": "1.2.2",
75
75
  "@zohodesk/icons": "1.0.1",
76
76
  "@zohodesk/svg": "1.1.1",
77
77
  "@zohodesk/virtualizer": "1.0.3",
@@ -80,4 +80,4 @@
80
80
  "@zohodesk/utils": "1.3.13",
81
81
  "@zohodesk/a11y": "1.3.7"
82
82
  }
83
- }
83
+ }
package/result.json CHANGED
@@ -1 +1 @@
1
- {"jobDetails":{"isRunByLocal":true,"hostName":"bharathi-zt93","platForm":"Darwin","branchName":"testcase_gowtham"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":14,"numberOfFails":0,"numberOfCases":14,"numberOfSuites":3,"endTime":1691776057760,"startTime":1691776054972,"coverageDetail":{"codeCoveragePercentage":98.03,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":[],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}}]}}}
1
+ {"jobDetails":{"isRunByLocal":true,"hostName":"lakshmi-zt257","platForm":"Darwin","branchName":"Selva_Accessibility_Desk_Library"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":14,"numberOfFails":0,"numberOfCases":14,"numberOfSuites":3,"endTime":1692206993509,"startTime":1692206989635,"coverageDetail":{"codeCoveragePercentage":98.03,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}}]}}}