@zohodesk/dot 1.0.0-temp-162 → 1.0.0-temp-163

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 (115) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +9 -2
  4. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +0 -7
  5. package/assets/Appearance/light/mode/Dot_LightMode.module.css +0 -7
  6. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +0 -7
  7. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  8. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  9. package/coverage/ExternalLink/index.html +1 -1
  10. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  11. package/coverage/ExternalLink/props/index.html +1 -1
  12. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  13. package/coverage/IconButton/IconButton.js.html +1 -1
  14. package/coverage/IconButton/IconButton.module.css.html +1 -1
  15. package/coverage/IconButton/index.html +1 -1
  16. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  17. package/coverage/IconButton/props/index.html +1 -1
  18. package/coverage/IconButton/props/propTypes.js.html +1 -1
  19. package/coverage/Image/Image.js.html +1 -1
  20. package/coverage/Image/Image.module.css.html +1 -1
  21. package/coverage/Image/index.html +1 -1
  22. package/coverage/Image/props/defaultProps.js.html +1 -1
  23. package/coverage/Image/props/index.html +1 -1
  24. package/coverage/Image/props/propTypes.js.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  29. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  30. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  31. package/coverage/coverage-final.json +16 -16
  32. package/coverage/coverage-summary.json +16 -16
  33. package/coverage/index.html +1 -1
  34. package/es/Attachment/Attachment.module.css +2 -2
  35. package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
  36. package/es/ImportantNotes/ImportantNotes.module.css +2 -6
  37. package/es/ToastMessage/ToastMessage.module.css +2 -2
  38. package/es/Upload/Upload.module.css +1 -1
  39. package/es/alert/AlertLookup/AlertLookup.module.css +1 -1
  40. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
  41. package/es/errorstate/EmptyStates.module.css +3 -3
  42. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
  43. package/es/form/fields/Fields.module.css +2 -2
  44. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  45. package/es/list/Comment/Comment.js +4 -7
  46. package/es/list/Comment/props/defaultProps.js +2 -1
  47. package/es/list/Comment/props/propTypes.js +1 -0
  48. package/es/list/index.js +1 -2
  49. package/es/list/status/StatusListItem/StatusListItem.module.css +1 -1
  50. package/es/lookup/header/Close/LookupClose.module.css +1 -1
  51. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
  52. package/es/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
  53. package/es/v1/ActionButton/ActionButton.js +2 -2
  54. package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
  55. package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
  56. package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
  57. package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
  58. package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
  59. package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
  60. package/es/v1/list/Comment/Comment.js +4 -7
  61. package/es/v1/list/index.js +1 -2
  62. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  63. package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -1
  64. package/es/version2/errorstate/V2_ErrorStates.module.css +1 -1
  65. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
  66. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  67. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
  68. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -3
  69. package/lib/Attachment/Attachment.module.css +2 -2
  70. package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
  71. package/lib/ImportantNotes/ImportantNotes.module.css +2 -6
  72. package/lib/ToastMessage/ToastMessage.module.css +2 -2
  73. package/lib/Upload/Upload.module.css +1 -1
  74. package/lib/alert/AlertLookup/AlertLookup.module.css +1 -1
  75. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
  76. package/lib/errorstate/EmptyStates.module.css +3 -3
  77. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
  78. package/lib/form/fields/Fields.module.css +2 -2
  79. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  80. package/lib/list/Comment/Comment.js +4 -8
  81. package/lib/list/Comment/props/defaultProps.js +2 -1
  82. package/lib/list/Comment/props/propTypes.js +1 -0
  83. package/lib/list/index.js +0 -8
  84. package/lib/list/status/StatusListItem/StatusListItem.module.css +1 -1
  85. package/lib/lookup/header/Close/LookupClose.module.css +1 -1
  86. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
  87. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
  88. package/lib/v1/ActionButton/ActionButton.js +2 -2
  89. package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
  90. package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
  91. package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
  92. package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
  93. package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
  94. package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
  95. package/lib/v1/list/Comment/Comment.js +4 -8
  96. package/lib/v1/list/index.js +0 -8
  97. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  98. package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -1
  99. package/lib/version2/errorstate/V2_ErrorStates.module.css +1 -1
  100. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
  101. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  102. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
  103. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -3
  104. package/package.json +3 -5
  105. package/result.json +1 -1
  106. package/es/list/UserTime/UserTime.js +0 -83
  107. package/es/list/UserTime/UserTime.module.css +0 -58
  108. package/es/list/UserTime/props/defaultProps.js +0 -3
  109. package/es/list/UserTime/props/propTypes.js +0 -18
  110. package/es/v1/list/UserTime/UserTime.js +0 -83
  111. package/lib/list/UserTime/UserTime.js +0 -136
  112. package/lib/list/UserTime/UserTime.module.css +0 -58
  113. package/lib/list/UserTime/props/defaultProps.js +0 -10
  114. package/lib/list/UserTime/props/propTypes.js +0 -29
  115. package/lib/v1/list/UserTime/UserTime.js +0 -136
@@ -206,7 +206,7 @@
206
206
  <div class='footer quiet pad2 space-top1 center small'>
207
207
  Code coverage generated by
208
208
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
209
- at 2023-11-14T13:26:42.928Z
209
+ at 2023-11-16T05:26:33.603Z
210
210
  </div>
211
211
  <script src="prettify.js"></script>
212
212
  <script>
@@ -82,12 +82,12 @@
82
82
 
83
83
  .medium .atatchName {
84
84
  font-size: var(--zd_font_size14) ;
85
- line-height: 1.4285714285714286;
85
+ line-height: var(--zd_size20);
86
86
  }
87
87
 
88
88
  .small .atatchName {
89
89
  font-size: var(--zd_font_size12) ;
90
- line-height: 1.25;
90
+ line-height: var(--zd_size15);
91
91
  }
92
92
 
93
93
  .attachSize {
@@ -79,7 +79,7 @@
79
79
  font-size: var(--zd_font_size22) ;
80
80
  height: var(--zd_size38) ;
81
81
  width: var(--zd_size38) ;
82
- line-height: 1.6363636363636365;
82
+ line-height: var(--zd_size36);
83
83
  border-radius: 50%;
84
84
  cursor: pointer;
85
85
  }
@@ -2,23 +2,19 @@
2
2
  background: var(--zdt_importantnotes_bg);
3
3
  padding: var(--zd_size5) var(--zd_size10) ;
4
4
  }
5
-
6
5
  .title {
7
6
  font-size: var(--zd_font_size13) ;
8
- line-height: 1.3846153846153846;
7
+ line-height: var(--zd_font_size18);
9
8
  color: var(--zdt_importantnotes_title_text);
10
9
  }
11
-
12
10
  .icon {
13
11
  color: var(--zdt_importantnotes_icon);
14
12
  font-size: 0 ;
15
13
  margin-top: var(--zd_size1) ;
16
14
  }
17
-
18
15
  [dir=ltr] .icon {
19
16
  margin-right: var(--zd_size5) ;
20
17
  }
21
-
22
18
  [dir=rtl] .icon {
23
19
  margin-left: var(--zd_size5) ;
24
- }
20
+ }
@@ -177,14 +177,14 @@
177
177
  .alertMessage {
178
178
  font-size: var(--zd_font_size12) ;
179
179
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
180
- line-height: 1.3333333333333333;
180
+ line-height: var(--zd_size16);
181
181
  color: var(--zdt_toastmessage_alert_text);
182
182
  margin-top: var(--zd_size5) ;
183
183
  }
184
184
 
185
185
  .buttonText {
186
186
  font-size: inherit ;
187
- line-height: normal;
187
+ line-height: var(--zd_size14);
188
188
  text-align: center;
189
189
  padding: 0 var(--zd_size7) ;
190
190
  cursor: pointer;
@@ -88,7 +88,7 @@
88
88
  width: var(--zd_size12) ;
89
89
  top: 0 ;
90
90
  position: absolute;
91
- line-height: 0.8333333333333334;
91
+ line-height: var(--zd_size10);
92
92
  font-size: var(--zd_font_size12) ;
93
93
  text-align: center;
94
94
  }
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .innerSection {
6
- line-height: 1.6666666666666667;
6
+ line-height: var(--zd_size25);
7
7
  color: var(--zdt_alertlookup_innersection_text);
8
8
  font-size: var(--zd_font_size15) ;
9
9
  word-break: break-word;
@@ -57,7 +57,7 @@
57
57
  margin-left: var(--zd_size4) ;
58
58
  }
59
59
  .desc {
60
- line-height: 1.3571428571428572;
60
+ line-height: var(--zd_size19);
61
61
  }
62
62
  .link {
63
63
  color: var(--linkColor);
@@ -33,15 +33,15 @@
33
33
  }
34
34
  .title {
35
35
  font-size: var(--zd_font_size50) ;
36
- line-height: 1.4;
36
+ line-height: var(--zd_size70);
37
37
  }
38
38
  .tabletTitle {
39
39
  font-size: var(--zd_font_size24) ;
40
- line-height: 2.0833333333333335;
40
+ line-height: var(--zd_size50);
41
41
  }
42
42
  .mobileTitle {
43
43
  font-size: var(--zd_font_size22) ;
44
- line-height: 1.3636363636363635;
44
+ line-height: var(--zd_size30);
45
45
  }
46
46
  .subtitle {
47
47
  font-size: var(--zd_font_size30) ;
@@ -13,7 +13,7 @@
13
13
  font-size: var(--zd_font_size30) ;
14
14
  }
15
15
  .lastBox {
16
- line-height: 1.7142857142857142;
16
+ line-height: var(--zd_size24);
17
17
  font-size: var(--zd_font_size14) ;
18
18
  margin: 0 auto ;
19
19
  margin-bottom: var(--zd_size20) ;
@@ -35,7 +35,7 @@
35
35
  }
36
36
  .checkboxText {
37
37
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
38
- line-height: 1.2;
38
+ line-height: normal;
39
39
  }
40
40
  [dir=ltr] .checkboxText {
41
41
  padding-left: var(--zd_size6) ;
@@ -169,7 +169,7 @@
169
169
  color: var(--zdt_fields_phitag_text);
170
170
  font-size: var(--zd_font_size12) ;
171
171
  height: var(--zd_size18) ;
172
- line-height: 1.5;
172
+ line-height: var(--zd_size18);
173
173
  background-color: var(--zdt_fields_phitag_bg);
174
174
  border: 1px solid var(--zdt_fields_phitag_border);
175
175
  padding: 0 var(--zd_size5) ;
@@ -12,7 +12,7 @@
12
12
  font-size: var(--zd_font_size12) ;
13
13
  display: inline-block;
14
14
  color: var(--zdt_setupdetail_backicon);
15
- line-height: 2.5;
15
+ line-height: var(--zd_size30);
16
16
  text-align: center;
17
17
  border-radius: 50%;
18
18
  cursor: pointer;
@@ -29,7 +29,7 @@
29
29
  }
30
30
  .title {
31
31
  font-size: var(--zd_font_size16) ;
32
- line-height: 1;
32
+ line-height: var(--zd_size16);
33
33
  font-family: var(--zd_semibold);
34
34
  color: var(--zdt_setupdetail_backicon);
35
35
  composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
@@ -57,7 +57,7 @@
57
57
  padding: var(--zd_size12) 0 0 var(--zd_size15) ;
58
58
  }
59
59
  .helpInfo {
60
- line-height: 2.3636363636363638;
60
+ line-height: var(--zd_size26);
61
61
  height: var(--zd_size28) ;
62
62
  width: var(--zd_size28) ;
63
63
  color: var(--zdt_setupdetail_helpinfo_text);
@@ -120,7 +120,7 @@
120
120
  height: var(--zd_size26) ;
121
121
  width: var(--zd_size26) ;
122
122
  font-size: var(--zd_font_size12) ;
123
- line-height: 2;
123
+ line-height: var(--zd_size24);
124
124
  text-align: center;
125
125
  border: 1px solid var(--zdt_setupdetail_infoicon_border);
126
126
  border-radius: 2px;
@@ -2,7 +2,6 @@ import React, { Component } from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
4
  import { Icon } from '@zohodesk/icons';
5
- import { i18NProviderUtils } from '@zohodesk/i18n';
6
5
  import Button from '@zohodesk/components/lib/semantic/Button/Button';
7
6
  import style from './Comment.module.css';
8
7
  export default class Comment extends Component {
@@ -14,18 +13,16 @@ export default class Comment extends Component {
14
13
  let {
15
14
  count,
16
15
  onClick,
17
- className
16
+ className,
17
+ title
18
18
  } = this.props;
19
- let i18N = i18NProviderUtils.getI18NValue;
20
- let commentCount = parseInt(count);
21
- let commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
22
19
  return /*#__PURE__*/React.createElement(Button, {
23
20
  customClass: `${style.container} ${className} `,
24
21
  onClick: onClick,
25
22
  dataId: "commentLstContainer",
26
- title: commentTitle,
23
+ title: title,
27
24
  a11y: {
28
- ariaLabel: commentTitle
25
+ ariaLabel: title
29
26
  }
30
27
  }, /*#__PURE__*/React.createElement(Icon, {
31
28
  name: "ZD-TK-commentLine",
@@ -1,3 +1,4 @@
1
1
  export const defaultProps = {
2
- className: ''
2
+ className: '',
3
+ title: ''
3
4
  };
@@ -2,5 +2,6 @@ import PropTypes from 'prop-types';
2
2
  export const propTypes = {
3
3
  className: PropTypes.string,
4
4
  count: PropTypes.string,
5
+ title: PropTypes.string,
5
6
  onClick: PropTypes.func
6
7
  };
package/es/list/index.js CHANGED
@@ -13,5 +13,4 @@ export { default as StatusDropdown } from './status/StatusDropdown/StatusDropdow
13
13
  export { default as StatusListItem } from './status/StatusListItem/StatusListItem';
14
14
  export { default as Subject } from './Subject/Subject';
15
15
  export { default as TagNew } from './TagNew/TagNew';
16
- export { default as Thread } from './Thread/Thread';
17
- export { default as UserTime } from './UserTime/UserTime';
16
+ export { default as Thread } from './Thread/Thread';
@@ -31,7 +31,7 @@
31
31
  padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
32
32
  }
33
33
  .value,.multiLineValue {
34
- line-height: 1.53846153846;
34
+ line-height: var(--zd_size20);
35
35
  }
36
36
  .value {
37
37
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
@@ -1,7 +1,7 @@
1
1
  .container {
2
2
  width: var(--zd_size25) ;
3
3
  height: var(--zd_size25) ;
4
- line-height: 2.7777777777777777;
4
+ line-height: var(--zd_size25);
5
5
  color: var(--zdt_lookupclose_default_text);
6
6
  transition: var(--zd_transition2) cubic-bezier(0.4, 1, 0.65, 1);
7
7
  font-size: var(--zd_font_size9) ;
@@ -26,7 +26,7 @@
26
26
  /* Label Style */
27
27
  .labelCnt {
28
28
  composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
29
- line-height: 1.66666666667;
29
+ line-height: var(--zd_size20);
30
30
  color: var(--zdt_viewdropdown_label_text);
31
31
  cursor: pointer;
32
32
  }
@@ -1,6 +1,6 @@
1
1
  .text {
2
2
  font-size: var(--zd_font_size14) ;
3
3
  color: var(--zdt_helptips_text);
4
- line-height: 1.7142857142857142;
4
+ line-height: var(--zd_size24);
5
5
  margin: var(--zd_size10) 0 ;
6
6
  }
@@ -132,8 +132,8 @@ function ActionButton(props) {
132
132
  ActionButton.defaultProps = defaultProps;
133
133
  ActionButton.propTypes = propTypes;
134
134
  const ActionButtonComponent = Popup(ActionButton);
135
- ActionButtonComponent.defaultProps = ActionButton.defaultProps;
136
- ActionButtonComponent.propTypes = ActionButton.propTypes; // ActionButton.docs = {
135
+ ActionButtonComponent.defaultProps = defaultProps;
136
+ ActionButtonComponent.propTypes = propTypes; // ActionButton.docs = {
137
137
  // componentGroup: 'Atom'
138
138
  // };
139
139
 
@@ -10,8 +10,8 @@ import { mergeStyle } from '@zohodesk/utils'; //customHooks
10
10
 
11
11
  import useDragger from '../../../Hooks/Dragger/useDragger'; //Props
12
12
 
13
- import defaultProps from '../../../version2/lookup/AlertHeader/props/defaultProps';
14
- import propTypes from '../../../version2/lookup/AlertHeader/props/propTypes';
13
+ import defaultProps from './props/defaultProps';
14
+ import propTypes from './props/propTypes';
15
15
  export default function AlertHeader(props) {
16
16
  const {
17
17
  title,
@@ -24,7 +24,8 @@ export default function AlertHeader(props) {
24
24
  type,
25
25
  htmlId,
26
26
  customStyle,
27
- dragBoundaryLimit
27
+ dragBoundaryLimit,
28
+ renderAlertIcon
28
29
  } = props;
29
30
  const finalStyle = mergeStyle(style, customStyle);
30
31
  const {
@@ -51,7 +52,7 @@ export default function AlertHeader(props) {
51
52
  eleRef: dragRef
52
53
  }, needIcon && /*#__PURE__*/React.createElement("div", {
53
54
  className: finalStyle.iconContainer
54
- }, /*#__PURE__*/React.createElement(AlertIcons, {
55
+ }, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/React.createElement(AlertIcons, {
55
56
  type: type
56
57
  })), (title || children) && /*#__PURE__*/React.createElement(Box, {
57
58
  flexible: true
@@ -0,0 +1,12 @@
1
+ export default {
2
+ needIcon: true,
3
+ type: 'danger',
4
+ breakChildren: false,
5
+ dataId: 'alertHeader',
6
+ dragBoundaryLimit: {
7
+ top: 0,
8
+ left: 50,
9
+ right: 50,
10
+ bottom: 50
11
+ }
12
+ };
@@ -0,0 +1,20 @@
1
+ import PropTypes from 'prop-types';
2
+ export default {
3
+ breakChildren: PropTypes.bool,
4
+ children: PropTypes.node,
5
+ closeTitle: PropTypes.string,
6
+ dataId: PropTypes.string,
7
+ needIcon: PropTypes.bool,
8
+ onClose: PropTypes.func,
9
+ title: PropTypes.string,
10
+ type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification']),
11
+ htmlId: PropTypes.string,
12
+ customStyle: PropTypes.object,
13
+ dragBoundaryLimit: PropTypes.shape({
14
+ top: PropTypes.number,
15
+ left: PropTypes.number,
16
+ right: PropTypes.number,
17
+ bottom: PropTypes.number
18
+ }),
19
+ renderAlertIcon: PropTypes.func
20
+ };
@@ -2,8 +2,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
5
- import { defaultProps } from '../../../version2/lookup/AlertLookup/props/defaultProps';
6
- import { propTypes } from '../../../version2/lookup/AlertLookup/props/propTypes';
5
+ import { defaultProps } from './props/defaultProps';
6
+ import { propTypes } from './props/propTypes';
7
7
  /**** Components ****/
8
8
 
9
9
  import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
@@ -65,7 +65,8 @@ export default function AlertLookup(props) {
65
65
  isHtmlContent,
66
66
  scroll,
67
67
  isDefaultFocus,
68
- onEsc
68
+ onEsc,
69
+ renderAlertIcon
69
70
  } = props;
70
71
  const {
71
72
  LookupProps = {},
@@ -115,7 +116,8 @@ export default function AlertLookup(props) {
115
116
  type: type,
116
117
  needIcon: needIcon,
117
118
  onClose: onClose,
118
- breakChildren: wrapHeader
119
+ breakChildren: wrapHeader,
120
+ renderAlertIcon: renderAlertIcon
119
121
  }, AlertHeaderProps), headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
120
122
  flexible: true
121
123
  }, /*#__PURE__*/React.createElement("div", {
@@ -0,0 +1,13 @@
1
+ export const defaultProps = {
2
+ isActive: false,
3
+ size: 'small',
4
+ wrapHeader: false,
5
+ dataId: 'alertPopup',
6
+ isDefaultFocus: true,
7
+ customProps: {},
8
+ align: 'top',
9
+ childAnimationName: 'flyDown',
10
+ isHtmlContent: false,
11
+ scroll: '',
12
+ onEsc: 'cancel'
13
+ };
@@ -0,0 +1,36 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ cancelText: PropTypes.string,
4
+ children: PropTypes.node,
5
+ confirmationMessage: PropTypes.string,
6
+ customClass: PropTypes.object,
7
+ dataId: PropTypes.string,
8
+ forwardRef: PropTypes.object,
9
+ headerChildren: PropTypes.func,
10
+ isActive: PropTypes.bool,
11
+ isDefaultFocus: PropTypes.bool,
12
+ message: PropTypes.node,
13
+ needIcon: PropTypes.bool,
14
+ onCancelClick: PropTypes.func,
15
+ onClose: PropTypes.func,
16
+ onLookupClick: PropTypes.func,
17
+ onSubmitClick: PropTypes.func,
18
+ size: PropTypes.oneOf(['small', 'xmedium', 'medium']),
19
+ submitText: PropTypes.string,
20
+ title: PropTypes.string,
21
+ type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification']),
22
+ wrapHeader: PropTypes.bool,
23
+ a11y: PropTypes.object,
24
+ customProps: PropTypes.shape({
25
+ LookupProps: PropTypes.object,
26
+ AlertHeaderProps: PropTypes.object,
27
+ PrimaryButtonProps: PropTypes.object,
28
+ SecondaryButtonProps: PropTypes.object
29
+ }),
30
+ align: PropTypes.oneOf(['top', 'vertical']),
31
+ childAnimationName: PropTypes.oneOf(['expand', 'flyDown']),
32
+ isHtmlContent: PropTypes.bool,
33
+ scroll: PropTypes.oneOf(['horizontal', 'vertical', 'both']),
34
+ onEsc: PropTypes.oneOf(['close', 'cancel']),
35
+ renderAlertIcon: PropTypes.func
36
+ };
@@ -2,25 +2,22 @@ import React from 'react';
2
2
  import { defaultProps } from '../../../list/Comment/props/defaultProps';
3
3
  import { propTypes } from '../../../list/Comment/props/propTypes';
4
4
  import { Icon } from '@zohodesk/icons';
5
- import { i18NProviderUtils } from '@zohodesk/i18n';
6
5
  import Button from '@zohodesk/components/es/v1/semantic/Button/Button';
7
6
  import style from '../../../list/Comment/Comment.module.css';
8
7
  export default function Comment(props) {
9
8
  let {
10
9
  count,
11
10
  onClick,
12
- className
11
+ className,
12
+ title
13
13
  } = props;
14
- let i18N = i18NProviderUtils.getI18NValue;
15
- let commentCount = parseInt(count);
16
- let commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
17
14
  return /*#__PURE__*/React.createElement(Button, {
18
15
  customClass: `${style.container} ${className} `,
19
16
  onClick: onClick,
20
17
  dataId: "commentLstContainer",
21
- title: commentTitle,
18
+ title: title,
22
19
  a11y: {
23
- ariaLabel: commentTitle
20
+ ariaLabel: title
24
21
  }
25
22
  }, /*#__PURE__*/React.createElement(Icon, {
26
23
  name: "ZD-TK-commentLine",
@@ -13,5 +13,4 @@ export { default as StatusDropdown } from './status/StatusDropdown/StatusDropdow
13
13
  export { default as StatusListItem } from './status/StatusListItem/StatusListItem';
14
14
  export { default as Subject } from './Subject/Subject';
15
15
  export { default as TagNew } from './TagNew/TagNew';
16
- export { default as Thread } from './Thread/Thread';
17
- export { default as UserTime } from './UserTime/UserTime';
16
+ export { default as Thread } from './Thread/Thread';
@@ -369,6 +369,6 @@ function StatusDropdown(props) {
369
369
  StatusDropdown.defaultProps = defaultProps;
370
370
  StatusDropdown.propTypes = propTypes;
371
371
  const StatusDropdown_Component = Popup(StatusDropdown);
372
- StatusDropdown_Component.defaultProps = StatusDropdown.defaultProps;
373
- StatusDropdown_Component.propTypes = StatusDropdown.propTypes;
372
+ StatusDropdown_Component.defaultProps = defaultProps;
373
+ StatusDropdown_Component.propTypes = propTypes;
374
374
  export default StatusDropdown_Component;
@@ -99,7 +99,7 @@
99
99
  font-size: var(--zd_font_size14) ;
100
100
  font-family: var(--zd_semibold);
101
101
  composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
102
- line-height: 1.4285714285714286;
102
+ line-height: var(--zd_size20);
103
103
  }
104
104
 
105
105
  [dir=ltr] .text {
@@ -8,7 +8,7 @@
8
8
  font-family: var(--zd_bold);
9
9
  }
10
10
  .desc {
11
- line-height: 1.57142857143;
11
+ line-height: var(--zd_size22);
12
12
  }
13
13
  .large .errorState {
14
14
  width: var(--zd_size450) ;
@@ -55,7 +55,7 @@
55
55
  .title {
56
56
  color: var(--zdt_alertlookupnew_text);
57
57
  font-size: var(--zd_font_size18) ;
58
- line-height: 1.2222222222222223;
58
+ line-height: var(--zd_size22);
59
59
  font-family: var(--zd_bold);
60
60
  composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
61
61
  vertical-align: middle;
@@ -5,7 +5,7 @@
5
5
  .innerSection {
6
6
  color: var(--zdt_alertlookupnew_text);
7
7
  font-size: var(--zd_font_size14) ;
8
- line-height: 1.2857142857142858;
8
+ line-height: var(--zd_size18);
9
9
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
10
10
  padding: var(--zd_size17) var(--zd_size30) var(--zd_size30) ;
11
11
  }
@@ -102,7 +102,7 @@
102
102
 
103
103
  .subTitle {
104
104
  font-size: var(--zd_font_size15) ;
105
- line-height: 1.3333333333333333;
105
+ line-height: var(--zd_size20);
106
106
  font-family: var(--zd_semibold);
107
107
  composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
108
108
  }
@@ -113,7 +113,7 @@
113
113
 
114
114
  .infoText {
115
115
  font-size: var(--zd_font_size14) ;
116
- line-height: 1.2857142857142858;
116
+ line-height: var(--zd_size18);
117
117
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
118
118
  }
119
119
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  .title {
16
16
  font-size: var(--zd_font_size18) ;
17
- line-height: 1.2222222222222223;
17
+ line-height: var(--zd_size22);
18
18
  font-family: var(--zd_bold);
19
19
  composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
20
20
  }
@@ -70,7 +70,7 @@
70
70
  }
71
71
 
72
72
  .primary .infoText {
73
- line-height: 1;
73
+ line-height: var(--zd_size18);
74
74
  }
75
75
 
76
76
  .primary .close {
@@ -99,7 +99,7 @@
99
99
  }
100
100
 
101
101
  .secondary .infoText {
102
- line-height: 1.42857142857;
102
+ line-height: var(--zd_size20);
103
103
  }
104
104
 
105
105
  .secondary .iconContainer {
@@ -82,12 +82,12 @@
82
82
 
83
83
  .medium .atatchName {
84
84
  font-size: var(--zd_font_size14) ;
85
- line-height: 1.4285714285714286;
85
+ line-height: var(--zd_size20);
86
86
  }
87
87
 
88
88
  .small .atatchName {
89
89
  font-size: var(--zd_font_size12) ;
90
- line-height: 1.25;
90
+ line-height: var(--zd_size15);
91
91
  }
92
92
 
93
93
  .attachSize {
@@ -79,7 +79,7 @@
79
79
  font-size: var(--zd_font_size22) ;
80
80
  height: var(--zd_size38) ;
81
81
  width: var(--zd_size38) ;
82
- line-height: 1.6363636363636365;
82
+ line-height: var(--zd_size36);
83
83
  border-radius: 50%;
84
84
  cursor: pointer;
85
85
  }
@@ -2,23 +2,19 @@
2
2
  background: var(--zdt_importantnotes_bg);
3
3
  padding: var(--zd_size5) var(--zd_size10) ;
4
4
  }
5
-
6
5
  .title {
7
6
  font-size: var(--zd_font_size13) ;
8
- line-height: 1.3846153846153846;
7
+ line-height: var(--zd_font_size18);
9
8
  color: var(--zdt_importantnotes_title_text);
10
9
  }
11
-
12
10
  .icon {
13
11
  color: var(--zdt_importantnotes_icon);
14
12
  font-size: 0 ;
15
13
  margin-top: var(--zd_size1) ;
16
14
  }
17
-
18
15
  [dir=ltr] .icon {
19
16
  margin-right: var(--zd_size5) ;
20
17
  }
21
-
22
18
  [dir=rtl] .icon {
23
19
  margin-left: var(--zd_size5) ;
24
- }
20
+ }
@@ -177,14 +177,14 @@
177
177
  .alertMessage {
178
178
  font-size: var(--zd_font_size12) ;
179
179
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
180
- line-height: 1.3333333333333333;
180
+ line-height: var(--zd_size16);
181
181
  color: var(--zdt_toastmessage_alert_text);
182
182
  margin-top: var(--zd_size5) ;
183
183
  }
184
184
 
185
185
  .buttonText {
186
186
  font-size: inherit ;
187
- line-height: normal;
187
+ line-height: var(--zd_size14);
188
188
  text-align: center;
189
189
  padding: 0 var(--zd_size7) ;
190
190
  cursor: pointer;