@zohodesk/dot 1.2.3 → 1.3.0

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 (257) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +13 -0
  5. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  6. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  7. package/coverage/ExternalLink/index.html +1 -1
  8. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  9. package/coverage/ExternalLink/props/index.html +1 -1
  10. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  11. package/coverage/Image/Image.js.html +1 -1
  12. package/coverage/Image/Image.module.css.html +1 -1
  13. package/coverage/Image/index.html +1 -1
  14. package/coverage/Image/props/defaultProps.js.html +1 -1
  15. package/coverage/Image/props/index.html +1 -1
  16. package/coverage/Image/props/propTypes.js.html +1 -1
  17. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  18. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  19. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  20. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  23. package/coverage/index.html +1 -1
  24. package/es/Drawer/Drawer.js +13 -12
  25. package/es/lookup/Lookup/Lookup.js +10 -10
  26. package/es/v1/ActionButton/ActionButton.js +11 -8
  27. package/es/v1/AlphabeticList/AlphabeticList.js +2 -2
  28. package/es/v1/Attachment/Attachment.js +1 -1
  29. package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
  30. package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
  31. package/es/v1/Drawer/Drawer.js +16 -16
  32. package/es/v1/FlipCard/FlipCard.js +4 -4
  33. package/es/v1/FormAction/FormAction.js +1 -1
  34. package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
  35. package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
  36. package/es/v1/IconButton/IconButton.js +3 -3
  37. package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
  38. package/es/v1/Loader/Loader.js +1 -1
  39. package/es/v1/MessageBanner/MessageBanner.js +1 -1
  40. package/es/v1/NewStar/NewStar.js +1 -1
  41. package/es/v1/Separator/Separator.js +1 -1
  42. package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
  43. package/es/v1/ToastMessage/ToastMessage.js +4 -4
  44. package/es/v1/Upload/Upload.js +1 -1
  45. package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
  46. package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
  47. package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
  48. package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
  49. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
  50. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
  51. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
  52. package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
  53. package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
  54. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  55. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
  56. package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
  57. package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
  58. package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
  59. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
  60. package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
  61. package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
  62. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
  63. package/es/v1/form/fields/CurrencyField/CurrencyField.js +128 -154
  64. package/es/v1/form/fields/DateField/DateField.js +131 -162
  65. package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
  66. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
  67. package/es/v1/form/fields/PhoneField/PhoneField.js +128 -156
  68. package/es/v1/form/fields/RadioField/RadioField.js +2 -2
  69. package/es/v1/form/fields/SelectField/SelectField.js +3 -3
  70. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
  71. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
  72. package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
  73. package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
  74. package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
  75. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
  76. package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
  77. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  78. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
  79. package/es/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
  80. package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
  81. package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
  82. package/es/v1/list/Comment/Comment.js +25 -32
  83. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
  84. package/es/v1/list/Dot/Dot.js +9 -16
  85. package/es/v1/list/DotNew/DotNew.js +11 -18
  86. package/es/v1/list/GridStencils/GridStencils.js +21 -24
  87. package/es/v1/list/Icons/AddNewIcon.js +19 -22
  88. package/es/v1/list/Icons/CompleteIcon.js +21 -24
  89. package/es/v1/list/Icons/DeleteIcon.js +22 -25
  90. package/es/v1/list/Icons/EditIcon.js +22 -25
  91. package/es/v1/list/Icons/FloatingIcons.js +12 -19
  92. package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
  93. package/es/v1/list/Icons/SmartIcon.js +20 -23
  94. package/es/v1/list/ListLayout/ListLayout.js +54 -68
  95. package/es/v1/list/ListStencils/ListStencils.js +28 -31
  96. package/es/v1/list/SecondaryText/AccountName.js +1 -1
  97. package/es/v1/list/SecondaryText/ContactName.js +1 -1
  98. package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
  99. package/es/v1/list/Thread/Thread.js +1 -1
  100. package/es/v1/list/UserTime/UserTime.js +1 -1
  101. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
  102. package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  103. package/es/v1/lookup/Lookup/Lookup.js +14 -13
  104. package/es/v1/lookup/Section/Section.js +1 -1
  105. package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  106. package/es/v1/lookup/header/Search/Search.js +3 -3
  107. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
  108. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
  109. package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
  110. package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
  111. package/es/v1/setup/header/Button/Button.js +1 -1
  112. package/es/v1/setup/header/Link/Link.js +1 -1
  113. package/es/v1/setup/header/Search/Search.js +1 -1
  114. package/es/v1/setup/table/Table/Table.js +1 -1
  115. package/es/v1/setup/table/TableBody/TableBody.js +1 -1
  116. package/es/v1/setup/table/TableData/TableData.js +1 -1
  117. package/es/v1/setup/table/TableHead/TableHead.js +1 -1
  118. package/es/v1/setup/table/TableRow/TableRow.js +1 -1
  119. package/lib/Drawer/Drawer.js +18 -17
  120. package/lib/lookup/Lookup/Lookup.js +15 -15
  121. package/lib/v1/ActionButton/ActionButton.js +11 -9
  122. package/lib/v1/AlphabeticList/AlphabeticList.js +2 -4
  123. package/lib/v1/Attachment/Attachment.js +1 -1
  124. package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
  125. package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
  126. package/lib/v1/Drawer/Drawer.js +21 -21
  127. package/lib/v1/FlipCard/FlipCard.js +4 -4
  128. package/lib/v1/FormAction/FormAction.js +1 -1
  129. package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
  130. package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
  131. package/lib/v1/IconButton/IconButton.js +3 -3
  132. package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
  133. package/lib/v1/Loader/Loader.js +1 -1
  134. package/lib/v1/MessageBanner/MessageBanner.js +1 -1
  135. package/lib/v1/NewStar/NewStar.js +1 -1
  136. package/lib/v1/Separator/Separator.js +1 -1
  137. package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
  138. package/lib/v1/ToastMessage/ToastMessage.js +4 -4
  139. package/lib/v1/Upload/Upload.js +1 -1
  140. package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
  141. package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
  142. package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
  143. package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
  144. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
  145. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
  146. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
  147. package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
  148. package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
  149. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  150. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
  151. package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
  152. package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
  153. package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
  154. package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
  155. package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
  156. package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
  157. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +107 -159
  158. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +152 -193
  159. package/lib/v1/form/fields/DateField/DateField.js +140 -206
  160. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
  161. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +168 -228
  162. package/lib/v1/form/fields/PhoneField/PhoneField.js +150 -193
  163. package/lib/v1/form/fields/RadioField/RadioField.js +2 -2
  164. package/lib/v1/form/fields/SelectField/SelectField.js +3 -3
  165. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
  166. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
  167. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
  168. package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
  169. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
  170. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
  171. package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
  172. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  173. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
  174. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
  175. package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
  176. package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
  177. package/lib/v1/list/Comment/Comment.js +24 -69
  178. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
  179. package/lib/v1/list/Dot/Dot.js +9 -54
  180. package/lib/v1/list/DotNew/DotNew.js +11 -56
  181. package/lib/v1/list/GridStencils/GridStencils.js +21 -62
  182. package/lib/v1/list/Icons/AddNewIcon.js +19 -60
  183. package/lib/v1/list/Icons/CompleteIcon.js +21 -62
  184. package/lib/v1/list/Icons/DeleteIcon.js +22 -63
  185. package/lib/v1/list/Icons/EditIcon.js +22 -63
  186. package/lib/v1/list/Icons/FloatingIcons.js +17 -62
  187. package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
  188. package/lib/v1/list/Icons/SmartIcon.js +20 -65
  189. package/lib/v1/list/ListLayout/ListLayout.js +53 -116
  190. package/lib/v1/list/ListStencils/ListStencils.js +33 -72
  191. package/lib/v1/list/SecondaryText/AccountName.js +1 -1
  192. package/lib/v1/list/SecondaryText/ContactName.js +1 -1
  193. package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
  194. package/lib/v1/list/Thread/Thread.js +1 -1
  195. package/lib/v1/list/UserTime/UserTime.js +1 -1
  196. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
  197. package/lib/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  198. package/lib/v1/lookup/Lookup/Lookup.js +20 -18
  199. package/lib/v1/lookup/Section/Section.js +1 -1
  200. package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  201. package/lib/v1/lookup/header/Search/Search.js +3 -3
  202. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
  203. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
  204. package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
  205. package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
  206. package/lib/v1/setup/header/Button/Button.js +1 -1
  207. package/lib/v1/setup/header/Link/Link.js +1 -1
  208. package/lib/v1/setup/header/Search/Search.js +1 -1
  209. package/lib/v1/setup/table/Table/Table.js +1 -1
  210. package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
  211. package/lib/v1/setup/table/TableData/TableData.js +1 -1
  212. package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
  213. package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
  214. package/package.json +11 -11
  215. package/result.json +1 -1
  216. package/es/v1/errorstate/LinkText/LinkText.js +0 -29
  217. package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
  218. package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
  219. package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
  220. package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
  221. package/es/v1/errorstate/WillBack/WillBack.js +0 -75
  222. package/es/v1/errorstate/index.js +0 -8
  223. package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
  224. package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
  225. package/es/v1/version2/index.js +0 -12
  226. package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
  227. package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
  228. package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
  229. package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
  230. package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
  231. package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
  232. package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
  233. package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
  234. package/lib/v1/errorstate/index.js +0 -71
  235. package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
  236. package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
  237. package/lib/v1/version2/index.js +0 -58
  238. package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
  239. package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
  240. /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
  241. /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
  242. /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
  243. /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
  244. /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
  245. /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
  246. /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
  247. /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
  248. /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
  249. /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
  250. /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
  251. /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
  252. /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
  253. /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
  254. /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
  255. /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
  256. /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
  257. /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
@@ -2,24 +2,17 @@ import React from 'react';
2
2
  import { propTypes } from '../../../list/BluePrintStatus/props/propTypes';
3
3
  import style from '../../../list/BluePrintStatus/BluePrintStatus.module.css';
4
4
  import { Icon } from '@zohodesk/icons';
5
- export default class BluePrintStatus extends React.Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
-
10
- render() {
11
- let {
12
- title
13
- } = this.props;
14
- return /*#__PURE__*/React.createElement("span", {
15
- className: `${style.container}`
16
- }, /*#__PURE__*/React.createElement(Icon, {
17
- name: "ZD-blueprint",
18
- title: title,
19
- iconClass: style.iconStyle
20
- }));
21
- }
22
-
5
+ export default function BluePrintStatus(props) {
6
+ let {
7
+ title
8
+ } = props;
9
+ return /*#__PURE__*/React.createElement("span", {
10
+ className: `${style.container}`
11
+ }, /*#__PURE__*/React.createElement(Icon, {
12
+ name: "ZD-blueprint",
13
+ title: title,
14
+ iconClass: style.iconStyle
15
+ }));
23
16
  }
24
17
  BluePrintStatus.propTypes = propTypes; // if (__DOCS__) {
25
18
  // BluePrintStatus.docs = {
@@ -1,40 +1,33 @@
1
- import React, { Component } from 'react';
1
+ 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
5
  import { i18NProviderUtils } from '@zohodesk/i18n';
6
- import Button from '@zohodesk/components/lib/semantic/Button/Button';
6
+ import Button from '@zohodesk/components/es/v1/semantic/Button/Button';
7
7
  import style from '../../../list/Comment/Comment.module.css';
8
- export default class Comment extends Component {
9
- constructor(props) {
10
- super(props);
11
- }
12
-
13
- render() {
14
- let {
15
- count,
16
- onClick,
17
- className
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
- return /*#__PURE__*/React.createElement(Button, {
23
- customClass: `${style.container} ${className} `,
24
- onClick: onClick,
25
- dataId: "commentLstContainer",
26
- title: commentTitle,
27
- a11y: {
28
- ariaLabel: commentTitle
29
- }
30
- }, /*#__PURE__*/React.createElement(Icon, {
31
- name: "ZD-TK-commentLine",
32
- iconClass: style.commentIcon
33
- }), count && /*#__PURE__*/React.createElement("span", {
34
- className: style.count
35
- }, count));
36
- }
37
-
8
+ export default function Comment(props) {
9
+ let {
10
+ count,
11
+ onClick,
12
+ className
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
+ return /*#__PURE__*/React.createElement(Button, {
18
+ customClass: `${style.container} ${className} `,
19
+ onClick: onClick,
20
+ dataId: "commentLstContainer",
21
+ title: commentTitle,
22
+ a11y: {
23
+ ariaLabel: commentTitle
24
+ }
25
+ }, /*#__PURE__*/React.createElement(Icon, {
26
+ name: "ZD-TK-commentLine",
27
+ iconClass: style.commentIcon
28
+ }), count && /*#__PURE__*/React.createElement("span", {
29
+ className: style.count
30
+ }, count));
38
31
  }
39
32
  Comment.defaultProps = defaultProps;
40
33
  Comment.propTypes = propTypes; // if (__DOCS__) {
@@ -1,23 +1,36 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { defaultProps } from '../../../list/DepartmentDropDown/props/defaultProps';
3
3
  import { propTypes } from '../../../list/DepartmentDropDown/props/propTypes';
4
4
  import ToggleDropDown from '../../dropdown/ToggleDropDown/ToggleDropDown';
5
5
  import { DepartmentText } from '../SecondaryText';
6
6
  import style from '../../../list/DepartmentDropDown/DepartmentDropDown.module.css';
7
7
 
8
- class DepartmentDropDown extends Component {
9
- constructor(props) {
10
- super(props);
11
- this.onClick = this.onClick.bind(this);
12
- this.onMoveDepartment = this.onMoveDepartment.bind(this);
13
- }
14
-
15
- onClick(e) {
16
- let {
17
- getDepartment,
18
- onSearch
19
- } = this.props;
8
+ function DepartmentDropDown(props) {
9
+ let {
10
+ departmentName,
11
+ departmentList = [],
12
+ onSelectLabel,
13
+ isEditable,
14
+ dataId,
15
+ isFetching,
16
+ isPopupActive,
17
+ getNextOptions,
18
+ isNextOptions,
19
+ onSearch,
20
+ needSearchFetching,
21
+ searchStr,
22
+ i18nKeys,
23
+ onMoveDepartment,
24
+ getDepartment
25
+ } = props;
26
+ let {
27
+ title = 'Move Department',
28
+ searchEmptyText = 'No results found',
29
+ searchErrorText = 'No results',
30
+ placeholder = 'Search Department'
31
+ } = i18nKeys;
20
32
 
33
+ function onClick(e) {
21
34
  if (getDepartment) {
22
35
  getDepartment(e);
23
36
  }
@@ -25,69 +38,41 @@ class DepartmentDropDown extends Component {
25
38
  onSearch('');
26
39
  }
27
40
 
28
- onMoveDepartment(deptId) {
29
- let {
30
- onSearch,
31
- onMoveDepartment
32
- } = this.props;
41
+ function handleMoveDepartment(deptId) {
33
42
  onSearch('');
34
43
  onMoveDepartment(deptId);
35
44
  }
36
45
 
37
- render() {
38
- let {
39
- departmentName,
40
- departmentList = [],
41
- onSelectLabel,
42
- isEditable,
43
- dataId,
44
- isFetching,
45
- isPopupActive,
46
- getNextOptions,
47
- isNextOptions,
48
- onSearch,
49
- needSearchFetching,
50
- searchStr,
51
- i18nKeys
52
- } = this.props;
53
- let {
54
- title = 'Move Department',
55
- searchEmptyText = 'No results found',
56
- searchErrorText = 'No results',
57
- placeholder = 'Search Department'
58
- } = i18nKeys;
59
- return /*#__PURE__*/React.createElement(ToggleDropDown, {
60
- title: title,
61
- options: departmentList,
62
- value: /*#__PURE__*/React.createElement(DepartmentText, {
63
- text: departmentName,
64
- dataTitle: departmentName
65
- }),
66
- keyName: "name",
67
- idName: "id",
68
- onClick: this.onMoveDepartment,
69
- isArrow: false,
70
- isEditable: isEditable,
71
- onSelectLabel: onSelectLabel,
72
- isPopupActive: isPopupActive,
73
- needExternalPopupState: true,
74
- isSearch: departmentList.length > 5 || searchStr.length !== 0,
75
- boxSize: "small",
76
- dataId: dataId,
77
- isDataLoaded: !isFetching,
78
- isPadding: false,
79
- searchErrorText: searchErrorText,
80
- searchEmptyHint: searchEmptyText,
81
- isNeedEffect: false,
82
- className: style.departmentBox,
83
- placeHolderText: placeholder,
84
- getNextOptions: getNextOptions,
85
- isNextOptions: isNextOptions,
86
- onSearch: onSearch,
87
- needSearchFetching: needSearchFetching
88
- });
89
- }
90
-
46
+ return /*#__PURE__*/React.createElement(ToggleDropDown, {
47
+ title: title,
48
+ options: departmentList,
49
+ value: /*#__PURE__*/React.createElement(DepartmentText, {
50
+ text: departmentName,
51
+ dataTitle: departmentName
52
+ }),
53
+ keyName: "name",
54
+ idName: "id",
55
+ onClick: handleMoveDepartment,
56
+ isArrow: false,
57
+ isEditable: isEditable,
58
+ onSelectLabel: onSelectLabel,
59
+ isPopupActive: isPopupActive,
60
+ needExternalPopupState: true,
61
+ isSearch: departmentList.length > 5 || searchStr.length !== 0,
62
+ boxSize: "small",
63
+ dataId: dataId,
64
+ isDataLoaded: !isFetching,
65
+ isPadding: false,
66
+ searchErrorText: searchErrorText,
67
+ searchEmptyHint: searchEmptyText,
68
+ isNeedEffect: false,
69
+ className: style.departmentBox,
70
+ placeHolderText: placeholder,
71
+ getNextOptions: getNextOptions,
72
+ isNextOptions: isNextOptions,
73
+ onSearch: onSearch,
74
+ needSearchFetching: needSearchFetching
75
+ });
91
76
  }
92
77
 
93
78
  DepartmentDropDown.defaultProps = defaultProps;
@@ -1,22 +1,15 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { defaultProps } from '../../../list/Dot/props/defaultProps';
3
3
  import { propTypes } from '../../../list/Dot/props/propTypes';
4
4
  import style from '../../../list/Dot/Dot.module.css';
5
- export default class Dot extends Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
-
10
- render() {
11
- let {
12
- className,
13
- spacingType
14
- } = this.props;
15
- return /*#__PURE__*/React.createElement("div", {
16
- className: `${style.dot} ${style[spacingType]} ${className}`
17
- }, ".");
18
- }
19
-
5
+ export default function Dot(props) {
6
+ let {
7
+ className,
8
+ spacingType
9
+ } = props;
10
+ return /*#__PURE__*/React.createElement("div", {
11
+ className: `${style.dot} ${style[spacingType]} ${className}`
12
+ }, ".");
20
13
  }
21
14
  Dot.propTypes = propTypes;
22
15
  Dot.defaultProps = defaultProps;
@@ -1,24 +1,17 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { defaultProps } from '../../../list/DotNew/props/defaultProps';
3
3
  import { propTypes } from '../../../list/DotNew/props/propTypes';
4
4
  import style from '../../../list/DotNew/DotNew.module.css';
5
- export default class DotNew extends Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
-
10
- render() {
11
- let {
12
- className,
13
- dataTitle,
14
- size
15
- } = this.props;
16
- return /*#__PURE__*/React.createElement("div", {
17
- className: `${style.container} ${style[size]} ${className ? className : ''}`,
18
- "data-title": dataTitle
19
- });
20
- }
21
-
5
+ export default function DotNew(props) {
6
+ let {
7
+ className,
8
+ dataTitle,
9
+ size
10
+ } = props;
11
+ return /*#__PURE__*/React.createElement("div", {
12
+ className: `${style.container} ${style[size]} ${className ? className : ''}`,
13
+ "data-title": dataTitle
14
+ });
22
15
  }
23
16
  DotNew.propTypes = propTypes;
24
17
  DotNew.defaultProps = defaultProps; // if (__DOCS__) {
@@ -1,30 +1,27 @@
1
1
  import React from 'react';
2
2
  import { propTypes } from '../../../list/GridStencils/props/propTypes';
3
3
  import style from '../../../list/GridStencils/GridStencils.module.css';
4
- export default class GridStencils extends React.Component {
5
- render() {
6
- let {
7
- lineBar,
8
- from,
9
- isThreeLayout,
10
- styles,
11
- order
12
- } = this.props;
13
- return /*#__PURE__*/React.createElement("div", {
14
- className: from == 'leftPanel' && isThreeLayout ? `${style.stenLoading} ${style.threeLayout}` : from == 'leftPanel' ? `${style.stenLoading} ${style.leftCont}` : style.stenLoading,
15
- style: styles,
16
- order: order
17
- }, lineBar ? /*#__PURE__*/React.createElement("div", {
18
- className: style.stenLoadbody
19
- }, /*#__PURE__*/React.createElement("div", {
20
- className: `${style.lineBar} ${style.stenListBAr}`
21
- }), /*#__PURE__*/React.createElement("div", {
22
- className: `${style.lineBar2} ${style.stenListBAr}`
23
- }), /*#__PURE__*/React.createElement("div", {
24
- className: `${style.lineBar3} ${style.stenListBAr}`
25
- })) : '');
26
- }
27
-
4
+ export default function GridStencils(props) {
5
+ let {
6
+ lineBar,
7
+ from,
8
+ isThreeLayout,
9
+ styles,
10
+ order
11
+ } = props;
12
+ return /*#__PURE__*/React.createElement("div", {
13
+ className: from == 'leftPanel' && isThreeLayout ? `${style.stenLoading} ${style.threeLayout}` : from == 'leftPanel' ? `${style.stenLoading} ${style.leftCont}` : style.stenLoading,
14
+ style: styles,
15
+ order: order
16
+ }, lineBar ? /*#__PURE__*/React.createElement("div", {
17
+ className: style.stenLoadbody
18
+ }, /*#__PURE__*/React.createElement("div", {
19
+ className: `${style.lineBar} ${style.stenListBAr}`
20
+ }), /*#__PURE__*/React.createElement("div", {
21
+ className: `${style.lineBar2} ${style.stenListBAr}`
22
+ }), /*#__PURE__*/React.createElement("div", {
23
+ className: `${style.lineBar3} ${style.stenListBAr}`
24
+ })) : '');
28
25
  }
29
26
  GridStencils.propTypes = propTypes; // if (__DOCS__) {
30
27
  // GridStencils.docs = {
@@ -1,28 +1,25 @@
1
1
  import React from 'react';
2
2
  import { AddNewIcon_propTypes } from '../../../list/Icons/props/propTypes';
3
3
  import { Icon } from '@zohodesk/icons';
4
- import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
4
+ import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
5
5
  import style from '../../../list/Icons/Icons.module.css';
6
- export default class AddNewIcon extends React.Component {
7
- render() {
8
- let {
9
- onClick,
10
- dataId,
11
- dataTitle,
12
- iconClass,
13
- className
14
- } = this.props;
15
- return /*#__PURE__*/React.createElement("button", {
16
- onClick: onClick,
17
- className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
18
- "data-id": dataId,
19
- "data-test-id": dataId,
20
- "data-title": dataTitle
21
- }, /*#__PURE__*/React.createElement(Icon, {
22
- name: "ZD-SE-addTickets",
23
- iconClass: iconClass ? iconClass : ''
24
- }));
25
- }
26
-
6
+ export default function AddNewIcon(props) {
7
+ let {
8
+ onClick,
9
+ dataId,
10
+ dataTitle,
11
+ iconClass,
12
+ className
13
+ } = props;
14
+ return /*#__PURE__*/React.createElement("button", {
15
+ onClick: onClick,
16
+ className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
17
+ "data-id": dataId,
18
+ "data-test-id": dataId,
19
+ "data-title": dataTitle
20
+ }, /*#__PURE__*/React.createElement(Icon, {
21
+ name: "ZD-SE-addTickets",
22
+ iconClass: iconClass ? iconClass : ''
23
+ }));
27
24
  }
28
25
  AddNewIcon.propTypes = AddNewIcon_propTypes;
@@ -1,30 +1,27 @@
1
1
  import React from 'react';
2
2
  import { CompleteIcon_propTypes } from '../../../list/Icons/props/propTypes';
3
3
  import { Icon } from '@zohodesk/icons';
4
- import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
4
+ import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
5
5
  import style from '../../../list/Icons/Icons.module.css';
6
- export default class CompleteIcon extends React.Component {
7
- render() {
8
- let {
9
- onClick,
10
- dataId,
11
- dataTitle,
12
- iconClass,
13
- className,
14
- iconSize
15
- } = this.props;
16
- return /*#__PURE__*/React.createElement("button", {
17
- onClick: onClick,
18
- className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
19
- "data-id": dataId,
20
- "data-test-id": dataId,
21
- "data-title": dataTitle
22
- }, /*#__PURE__*/React.createElement(Icon, {
23
- name: "ZD-GN-checkbox",
24
- iconClass: iconClass ? iconClass : '',
25
- size: iconSize
26
- }));
27
- }
28
-
6
+ export default function CompleteIcon(props) {
7
+ let {
8
+ onClick,
9
+ dataId,
10
+ dataTitle,
11
+ iconClass,
12
+ className,
13
+ iconSize
14
+ } = props;
15
+ return /*#__PURE__*/React.createElement("button", {
16
+ onClick: onClick,
17
+ className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
18
+ "data-id": dataId,
19
+ "data-test-id": dataId,
20
+ "data-title": dataTitle
21
+ }, /*#__PURE__*/React.createElement(Icon, {
22
+ name: "ZD-GN-checkbox",
23
+ iconClass: iconClass ? iconClass : '',
24
+ size: iconSize
25
+ }));
29
26
  }
30
27
  CompleteIcon.propTypes = CompleteIcon_propTypes;
@@ -2,30 +2,27 @@ import React from 'react';
2
2
  import { DeleteComponent_propTypes } from '../../../list/Icons/props/propTypes';
3
3
  import style from '../../../list/Icons/Icons.module.css';
4
4
  import { Icon } from '@zohodesk/icons';
5
- import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
6
- export default class DeleteComponent extends React.Component {
7
- render() {
8
- let {
9
- onClick,
10
- dataId,
11
- dataTitle,
12
- iconClass,
13
- iconSize,
14
- className
15
- } = this.props;
16
- return /*#__PURE__*/React.createElement("button", {
17
- onClick: onClick,
18
- className: `${style.iconStyle} ${style.redHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
19
- "data-id": dataId,
20
- "data-test-id": dataId,
21
- "data-title": dataTitle,
22
- "aria-label": dataTitle
23
- }, /*#__PURE__*/React.createElement(Icon, {
24
- name: "ZD-GN-delete",
25
- iconClass: iconClass ? iconClass : '',
26
- size: iconSize
27
- }));
28
- }
29
-
5
+ import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
6
+ export default function DeleteComponent(props) {
7
+ let {
8
+ onClick,
9
+ dataId,
10
+ dataTitle,
11
+ iconClass,
12
+ iconSize,
13
+ className
14
+ } = props;
15
+ return /*#__PURE__*/React.createElement("button", {
16
+ onClick: onClick,
17
+ className: `${style.iconStyle} ${style.redHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
18
+ "data-id": dataId,
19
+ "data-test-id": dataId,
20
+ "data-title": dataTitle,
21
+ "aria-label": dataTitle
22
+ }, /*#__PURE__*/React.createElement(Icon, {
23
+ name: "ZD-GN-delete",
24
+ iconClass: iconClass ? iconClass : '',
25
+ size: iconSize
26
+ }));
30
27
  }
31
28
  DeleteComponent.propTypes = DeleteComponent_propTypes;
@@ -2,30 +2,27 @@ import React from 'react';
2
2
  import { EditIcon_propTypes } from '../../../list/Icons/props/propTypes';
3
3
  import style from '../../../list/Icons/Icons.module.css';
4
4
  import { Icon } from '@zohodesk/icons';
5
- import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
6
- export default class EditIcon extends React.Component {
7
- render() {
8
- let {
9
- onClick,
10
- dataId,
11
- dataTitle,
12
- iconClass,
13
- iconSize,
14
- className
15
- } = this.props;
16
- return /*#__PURE__*/React.createElement("button", {
17
- onClick: onClick,
18
- className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
19
- "data-id": dataId,
20
- "data-test-id": dataId,
21
- "data-title": dataTitle,
22
- "aria-label": dataTitle
23
- }, /*#__PURE__*/React.createElement(Icon, {
24
- name: "ZD-GN-edit",
25
- iconClass: iconClass ? iconClass : '',
26
- size: iconSize
27
- }));
28
- }
29
-
5
+ import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
6
+ export default function EditIcon(props) {
7
+ let {
8
+ onClick,
9
+ dataId,
10
+ dataTitle,
11
+ iconClass,
12
+ iconSize,
13
+ className
14
+ } = props;
15
+ return /*#__PURE__*/React.createElement("button", {
16
+ onClick: onClick,
17
+ className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
18
+ "data-id": dataId,
19
+ "data-test-id": dataId,
20
+ "data-title": dataTitle,
21
+ "aria-label": dataTitle
22
+ }, /*#__PURE__*/React.createElement(Icon, {
23
+ name: "ZD-GN-edit",
24
+ iconClass: iconClass ? iconClass : '',
25
+ size: iconSize
26
+ }));
30
27
  }
31
28
  EditIcon.propTypes = EditIcon_propTypes;
@@ -1,25 +1,18 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { FloatingIcons_defaultProps } from '../../../list/Icons/props/defaultProps';
3
3
  import { FloatingIcons_propTypes } from '../../../list/Icons/props/propTypes';
4
4
  import style from '../../../list/Icons/Icons.module.css';
5
- export default class FloatingIcons extends Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
-
10
- render() {
11
- let {
12
- children = [],
13
- iconClass
14
- } = this.props;
15
- const icons = React.Children.toArray(children).filter(o => o);
16
- return /*#__PURE__*/React.createElement("span", {
17
- className: `${style.container}`
18
- }, icons.map(child => /*#__PURE__*/React.cloneElement(child, {
19
- iconClass
20
- })));
21
- }
22
-
5
+ export default function FloatingIcons(props) {
6
+ let {
7
+ children = [],
8
+ iconClass
9
+ } = props;
10
+ const icons = React.Children.toArray(children).filter(o => o);
11
+ return /*#__PURE__*/React.createElement("span", {
12
+ className: `${style.container}`
13
+ }, icons.map(child => /*#__PURE__*/React.cloneElement(child, {
14
+ iconClass
15
+ })));
23
16
  }
24
17
  FloatingIcons.propTypes = FloatingIcons_propTypes;
25
18
  FloatingIcons.defaultProps = FloatingIcons_defaultProps; // if (__DOCS__) {