@zohodesk/dot 1.2.4 → 1.3.0-temp-158

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 (297) 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 +20 -9
  5. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
  6. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
  7. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
  8. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
  9. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
  10. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
  11. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
  12. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
  13. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
  14. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
  15. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
  16. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
  17. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
  18. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
  19. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
  20. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  21. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  22. package/coverage/ExternalLink/index.html +1 -1
  23. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  24. package/coverage/ExternalLink/props/index.html +1 -1
  25. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  26. package/coverage/IconButton/IconButton.js.html +466 -0
  27. package/coverage/IconButton/IconButton.module.css.html +151 -0
  28. package/coverage/IconButton/index.html +131 -0
  29. package/coverage/IconButton/props/defaultProps.js.html +136 -0
  30. package/coverage/IconButton/props/index.html +131 -0
  31. package/coverage/IconButton/props/propTypes.js.html +187 -0
  32. package/coverage/Image/Image.js.html +1 -1
  33. package/coverage/Image/Image.module.css.html +1 -1
  34. package/coverage/Image/index.html +1 -1
  35. package/coverage/Image/props/defaultProps.js.html +1 -1
  36. package/coverage/Image/props/index.html +1 -1
  37. package/coverage/Image/props/propTypes.js.html +1 -1
  38. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  39. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  40. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  41. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  42. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  43. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  44. package/coverage/coverage-final.json +16 -12
  45. package/coverage/coverage-summary.json +17 -13
  46. package/coverage/index.html +40 -10
  47. package/es/Drawer/Drawer.js +3 -2
  48. package/es/IconButton/__tests__/IconButton.spec.js +148 -0
  49. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  50. package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
  51. package/es/v1/ActionButton/ActionButton.js +11 -8
  52. package/es/v1/AlphabeticList/AlphabeticList.js +7 -3
  53. package/es/v1/Attachment/Attachment.js +79 -76
  54. package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
  55. package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
  56. package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
  57. package/es/v1/Drawer/Drawer.js +6 -6
  58. package/es/v1/FlipCard/FlipCard.js +4 -4
  59. package/es/v1/FormAction/FormAction.js +1 -1
  60. package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
  61. package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
  62. package/es/v1/IconButton/IconButton.js +3 -3
  63. package/es/v1/Image/Image.js +26 -33
  64. package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
  65. package/es/v1/Loader/Loader.js +12 -18
  66. package/es/v1/MessageBanner/MessageBanner.js +1 -1
  67. package/es/v1/NewStar/NewStar.js +1 -1
  68. package/es/v1/Separator/Separator.js +41 -48
  69. package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
  70. package/es/v1/ToastMessage/ToastMessage.js +4 -4
  71. package/es/v1/Upload/Upload.js +60 -67
  72. package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
  73. package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
  74. package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
  75. package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
  76. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
  77. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
  78. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
  79. package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
  80. package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
  81. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  82. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
  83. package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
  84. package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
  85. package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
  86. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
  87. package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
  88. package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
  89. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
  90. package/es/v1/form/fields/CurrencyField/CurrencyField.js +129 -155
  91. package/es/v1/form/fields/DateField/DateField.js +132 -163
  92. package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
  93. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
  94. package/es/v1/form/fields/PhoneField/PhoneField.js +129 -157
  95. package/es/v1/form/fields/RadioField/RadioField.js +91 -99
  96. package/es/v1/form/fields/SelectField/SelectField.js +141 -156
  97. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
  98. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
  99. package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
  100. package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
  101. package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
  102. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
  103. package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
  104. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  105. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +155 -198
  106. package/es/v1/layout/SubtabLayout/SubtabLayout.js +110 -126
  107. package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
  108. package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
  109. package/es/v1/list/Comment/Comment.js +25 -32
  110. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
  111. package/es/v1/list/Dot/Dot.js +9 -16
  112. package/es/v1/list/DotNew/DotNew.js +11 -18
  113. package/es/v1/list/GridStencils/GridStencils.js +21 -24
  114. package/es/v1/list/Icons/AddNewIcon.js +19 -22
  115. package/es/v1/list/Icons/CompleteIcon.js +21 -24
  116. package/es/v1/list/Icons/DeleteIcon.js +22 -25
  117. package/es/v1/list/Icons/EditIcon.js +22 -25
  118. package/es/v1/list/Icons/FloatingIcons.js +12 -19
  119. package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
  120. package/es/v1/list/Icons/SmartIcon.js +20 -23
  121. package/es/v1/list/ListLayout/ListLayout.js +54 -68
  122. package/es/v1/list/ListStencils/ListStencils.js +28 -31
  123. package/es/v1/list/SecondaryText/AccountName.js +1 -1
  124. package/es/v1/list/SecondaryText/ContactName.js +1 -1
  125. package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
  126. package/es/v1/list/Thread/Thread.js +1 -1
  127. package/es/v1/list/UserTime/UserTime.js +1 -1
  128. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
  129. package/es/v1/list/status/StatusListItem/StatusListItem.js +77 -102
  130. package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
  131. package/es/v1/lookup/Lookup/Lookup.js +4 -3
  132. package/es/v1/lookup/Section/Section.js +15 -21
  133. package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  134. package/es/v1/lookup/header/Search/Search.js +3 -3
  135. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
  136. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
  137. package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
  138. package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
  139. package/es/v1/setup/header/Button/Button.js +1 -1
  140. package/es/v1/setup/header/Link/Link.js +1 -1
  141. package/es/v1/setup/header/Search/Search.js +1 -1
  142. package/es/v1/setup/table/Table/Table.js +1 -1
  143. package/es/v1/setup/table/TableBody/TableBody.js +1 -1
  144. package/es/v1/setup/table/TableData/TableData.js +1 -1
  145. package/es/v1/setup/table/TableHead/TableHead.js +1 -1
  146. package/es/v1/setup/table/TableRow/TableRow.js +1 -1
  147. package/es/v1/svg/PlusIcon.js +20 -27
  148. package/es/v1/svg/SnippetIcon.js +22 -29
  149. package/es/v1/svg/TemplateIcon.js +23 -30
  150. package/lib/Drawer/Drawer.js +3 -2
  151. package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
  152. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  153. package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
  154. package/lib/v1/ActionButton/ActionButton.js +11 -9
  155. package/lib/v1/AlphabeticList/AlphabeticList.js +8 -6
  156. package/lib/v1/Attachment/Attachment.js +78 -113
  157. package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
  158. package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
  159. package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
  160. package/lib/v1/Drawer/Drawer.js +6 -6
  161. package/lib/v1/FlipCard/FlipCard.js +4 -4
  162. package/lib/v1/FormAction/FormAction.js +1 -1
  163. package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
  164. package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
  165. package/lib/v1/IconButton/IconButton.js +3 -3
  166. package/lib/v1/Image/Image.js +26 -71
  167. package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
  168. package/lib/v1/Loader/Loader.js +13 -56
  169. package/lib/v1/MessageBanner/MessageBanner.js +1 -1
  170. package/lib/v1/NewStar/NewStar.js +1 -1
  171. package/lib/v1/Separator/Separator.js +45 -86
  172. package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
  173. package/lib/v1/ToastMessage/ToastMessage.js +4 -4
  174. package/lib/v1/Upload/Upload.js +59 -104
  175. package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
  176. package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
  177. package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
  178. package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
  179. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
  180. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
  181. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
  182. package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
  183. package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
  184. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  185. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
  186. package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
  187. package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
  188. package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
  189. package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
  190. package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
  191. package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
  192. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +108 -160
  193. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +153 -194
  194. package/lib/v1/form/fields/DateField/DateField.js +141 -207
  195. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
  196. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +169 -229
  197. package/lib/v1/form/fields/PhoneField/PhoneField.js +151 -194
  198. package/lib/v1/form/fields/RadioField/RadioField.js +93 -139
  199. package/lib/v1/form/fields/SelectField/SelectField.js +152 -203
  200. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
  201. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
  202. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
  203. package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
  204. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
  205. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
  206. package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
  207. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  208. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +161 -254
  209. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +109 -208
  210. package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
  211. package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
  212. package/lib/v1/list/Comment/Comment.js +24 -69
  213. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
  214. package/lib/v1/list/Dot/Dot.js +9 -54
  215. package/lib/v1/list/DotNew/DotNew.js +11 -56
  216. package/lib/v1/list/GridStencils/GridStencils.js +21 -62
  217. package/lib/v1/list/Icons/AddNewIcon.js +19 -60
  218. package/lib/v1/list/Icons/CompleteIcon.js +21 -62
  219. package/lib/v1/list/Icons/DeleteIcon.js +22 -63
  220. package/lib/v1/list/Icons/EditIcon.js +22 -63
  221. package/lib/v1/list/Icons/FloatingIcons.js +17 -62
  222. package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
  223. package/lib/v1/list/Icons/SmartIcon.js +20 -65
  224. package/lib/v1/list/ListLayout/ListLayout.js +53 -116
  225. package/lib/v1/list/ListStencils/ListStencils.js +33 -72
  226. package/lib/v1/list/SecondaryText/AccountName.js +1 -1
  227. package/lib/v1/list/SecondaryText/ContactName.js +1 -1
  228. package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
  229. package/lib/v1/list/Thread/Thread.js +1 -1
  230. package/lib/v1/list/UserTime/UserTime.js +1 -1
  231. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
  232. package/lib/v1/list/status/StatusListItem/StatusListItem.js +83 -139
  233. package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
  234. package/lib/v1/lookup/Lookup/Lookup.js +5 -3
  235. package/lib/v1/lookup/Section/Section.js +15 -59
  236. package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  237. package/lib/v1/lookup/header/Search/Search.js +3 -3
  238. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
  239. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
  240. package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
  241. package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
  242. package/lib/v1/setup/header/Button/Button.js +1 -1
  243. package/lib/v1/setup/header/Link/Link.js +1 -1
  244. package/lib/v1/setup/header/Search/Search.js +1 -1
  245. package/lib/v1/setup/table/Table/Table.js +1 -1
  246. package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
  247. package/lib/v1/setup/table/TableData/TableData.js +1 -1
  248. package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
  249. package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
  250. package/lib/v1/svg/PlusIcon.js +20 -65
  251. package/lib/v1/svg/SnippetIcon.js +22 -67
  252. package/lib/v1/svg/TemplateIcon.js +23 -68
  253. package/package.json +10 -10
  254. package/result.json +1 -1
  255. package/unittest/index.html +1 -1
  256. package/es/v1/errorstate/LinkText/LinkText.js +0 -29
  257. package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
  258. package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
  259. package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
  260. package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
  261. package/es/v1/errorstate/WillBack/WillBack.js +0 -75
  262. package/es/v1/errorstate/index.js +0 -8
  263. package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
  264. package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
  265. package/es/v1/version2/index.js +0 -12
  266. package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
  267. package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
  268. package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
  269. package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
  270. package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
  271. package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
  272. package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
  273. package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
  274. package/lib/v1/errorstate/index.js +0 -71
  275. package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
  276. package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
  277. package/lib/v1/version2/index.js +0 -58
  278. package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
  279. package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
  280. /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
  281. /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
  282. /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
  283. /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
  284. /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
  285. /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
  286. /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
  287. /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
  288. /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
  289. /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
  290. /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
  291. /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
  292. /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
  293. /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
  294. /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
  295. /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
  296. /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
  297. /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
@@ -1,189 +1,161 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  /**** Libraries ****/
4
- import React, { PureComponent } from 'react';
4
+ import React, { memo, useState, useRef } from 'react';
5
5
  import { defaultProps } from '../../../../form/fields/PhoneField/props/defaultProps';
6
6
  import { propTypes } from '../../../../form/fields/PhoneField/props/propTypes';
7
7
  /**** Components ****/
8
8
 
9
9
  import { Icon } from '@zohodesk/icons';
10
- import { Container, Box } from '@zohodesk/components/lib/Layout';
10
+ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
11
11
  import TextBoxField from '../TextBoxField/TextBoxField';
12
12
  import Link from '../../../Link/Link';
13
13
  /**** CSS ****/
14
14
 
15
15
  import style from '../../../../form/fields/Fields.module.css';
16
16
  import { formatPhoneUrl } from '../../../../utils/General';
17
- export default class PhoneField extends PureComponent {
18
- constructor(props) {
19
- super(props);
20
- this.state = {
21
- isActive: false
22
- };
23
- this.handleChange = this.handleChange.bind(this);
24
- this.handleGetRef = this.handleGetRef.bind(this);
25
- this.focusInput = this.focusInput.bind(this);
26
- this.onFocus = this.onFocus.bind(this);
27
- this.onBlur = this.onBlur.bind(this);
17
+
18
+ function PhoneField(props) {
19
+ let {
20
+ labelName,
21
+ id,
22
+ textBoxSize,
23
+ textBoxVariant,
24
+ textBoxType,
25
+ isMandatory,
26
+ validationMessage,
27
+ maxLength,
28
+ isReadOnly,
29
+ value,
30
+ errorType,
31
+ isDisabled,
32
+ title,
33
+ onBlur,
34
+ dataId,
35
+ dataSelectorId,
36
+ onKeyDown,
37
+ placeHolder,
38
+ infoText,
39
+ isTelephony,
40
+ providerName,
41
+ ticketId,
42
+ contactId,
43
+ borderColor,
44
+ fieldSize,
45
+ labelPalette,
46
+ labelCustomClass,
47
+ i18nKeys,
48
+ onCall,
49
+ ePhiData,
50
+ type,
51
+ onFocus,
52
+ onChange,
53
+ getRef,
54
+ customProps
55
+ } = props;
56
+ const {
57
+ TextBoxFieldProps = {},
58
+ LinkProps = {}
59
+ } = customProps;
60
+ const [isActive, setActive] = useState(false);
61
+ const textBoxElem = useRef(null);
62
+ let {
63
+ callTitle
64
+ } = i18nKeys;
65
+ let callBackparam = {
66
+ contact_id: contactId ? contactId : '',
67
+ request_id: ticketId,
68
+ activity_id: '',
69
+ entity_module: 'Requests'
70
+ };
71
+ let phoneValue = value;
72
+
73
+ if (isActive) {
74
+ phoneValue = value;
75
+ } else {
76
+ phoneValue = formatPhoneUrl(value);
28
77
  }
29
78
 
30
- handleChange(id, value) {
31
- let {
32
- onChange
33
- } = this.props;
79
+ function handleChange(id, value) {
34
80
  onChange && onChange(id, value);
35
81
  }
36
82
 
37
- handleGetRef(el) {
38
- let {
39
- getRef,
40
- id
41
- } = this.props;
42
- this.textBoxElem = el;
83
+ function handleGetRef(el) {
84
+ textBoxElem.current = el;
43
85
  getRef && getRef(el, id);
44
86
  }
45
87
 
46
- focusInput(e) {
47
- this.textBoxElem.focus();
88
+ function focusInput(e) {
89
+ textBoxElem.current.focus();
48
90
  }
49
91
 
50
- onFocus() {
51
- let {
52
- onFocus
53
- } = this.props;
54
- this.setState({
55
- isActive: true
56
- });
92
+ function handleFocus() {
93
+ setActive(true);
57
94
  onFocus && onFocus();
58
95
  }
59
96
 
60
- onBlur() {
61
- let {
62
- onBlur
63
- } = this.props;
64
- this.setState({
65
- isActive: false
66
- });
97
+ function handleBlur() {
98
+ setActive(false);
67
99
  onBlur && onBlur();
68
100
  }
69
101
 
70
- render() {
71
- let {
72
- labelName,
73
- id,
74
- textBoxSize,
75
- textBoxVariant,
76
- textBoxType,
77
- isMandatory,
78
- validationMessage,
79
- maxLength,
80
- isReadOnly,
81
- value,
82
- errorType,
83
- isDisabled,
84
- title,
85
- onBlur,
86
- dataId,
87
- dataSelectorId,
88
- onKeyDown,
89
- placeHolder,
90
- infoText,
91
- isTelephony,
92
- providerName,
93
- ticketId,
94
- contactId,
95
- borderColor,
96
- fieldSize,
97
- labelPalette,
98
- labelCustomClass,
99
- i18nKeys,
100
- onCall,
101
- ePhiData,
102
- type,
103
- customProps
104
- } = this.props;
105
- const {
106
- TextBoxFieldProps = {},
107
- LinkProps = {}
108
- } = customProps;
109
- let {
110
- isActive
111
- } = this.state;
112
- let {
113
- callTitle
114
- } = i18nKeys;
115
- let callBackparam = {
116
- contact_id: contactId ? contactId : '',
117
- request_id: ticketId,
118
- activity_id: '',
119
- entity_module: 'Requests'
120
- };
121
- let phoneValue = value;
122
-
123
- if (isActive) {
124
- phoneValue = value;
125
- } else {
126
- phoneValue = formatPhoneUrl(value);
127
- }
128
-
129
- return /*#__PURE__*/React.createElement(Container, {
130
- alignBox: "row",
131
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
132
- "data-title": isDisabled ? title : null,
133
- dataSelectorId: dataSelectorId
134
- }, /*#__PURE__*/React.createElement(Box, {
135
- flexible: true
136
- }, /*#__PURE__*/React.createElement(TextBoxField, _extends({
137
- labelName: labelName,
138
- id: id,
139
- palette: isMandatory ? 'mandatory' : 'default',
140
- onClick: this.focusInput,
141
- infoText: infoText,
142
- type: textBoxType,
143
- textBoxVariant: textBoxVariant,
144
- size: textBoxSize,
145
- maxLength: maxLength,
146
- isReadOnly: isReadOnly,
147
- getRef: this.handleGetRef,
148
- value: phoneValue,
149
- onChange: this.handleChange,
150
- dataId: dataId,
151
- onBlur: this.onBlur,
152
- onFocus: this.onFocus,
153
- onKeyDown: onKeyDown,
154
- placeHolder: placeHolder,
155
- validationMessage: validationMessage,
156
- borderColor: borderColor,
157
- isDisabled: isDisabled,
158
- fieldSize: fieldSize,
159
- isMandatory: isMandatory,
160
- labelPalette: labelPalette,
161
- labelCustomClass: labelCustomClass,
162
- errorType: errorType,
163
- ePhiData: ePhiData
164
- }, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
165
- className: style.phoneIcon,
166
- callfrom: "phone",
167
- pbxname: providerName,
168
- phonenum: value,
169
- module: "RequestDetailsView",
170
- title: callTitle,
171
- callBackParam: JSON.stringify(callBackparam),
172
- callto: 'RequestPhoneNumber',
173
- href: true,
174
- onClick: onCall,
175
- type: type
176
- }, LinkProps), /*#__PURE__*/React.createElement(Icon, {
177
- name: "ZD-GN-phone",
178
- size: "14"
179
- })) : null));
180
- }
181
-
102
+ return /*#__PURE__*/React.createElement(Container, {
103
+ alignBox: "row",
104
+ className: `${style.container} ${isDisabled ? style.disabled : ''}`,
105
+ "data-title": isDisabled ? title : null,
106
+ dataSelectorId: dataSelectorId
107
+ }, /*#__PURE__*/React.createElement(Box, {
108
+ flexible: true
109
+ }, /*#__PURE__*/React.createElement(TextBoxField, _extends({
110
+ labelName: labelName,
111
+ id: id,
112
+ palette: isMandatory ? 'mandatory' : 'default',
113
+ onClick: focusInput,
114
+ infoText: infoText,
115
+ type: textBoxType,
116
+ textBoxVariant: textBoxVariant,
117
+ size: textBoxSize,
118
+ maxLength: maxLength,
119
+ isReadOnly: isReadOnly,
120
+ getRef: handleGetRef,
121
+ value: phoneValue,
122
+ onChange: handleChange,
123
+ dataId: dataId,
124
+ onBlur: handleBlur,
125
+ onFocus: handleFocus,
126
+ onKeyDown: onKeyDown,
127
+ placeHolder: placeHolder,
128
+ validationMessage: validationMessage,
129
+ borderColor: borderColor,
130
+ isDisabled: isDisabled,
131
+ fieldSize: fieldSize,
132
+ isMandatory: isMandatory,
133
+ labelPalette: labelPalette,
134
+ labelCustomClass: labelCustomClass,
135
+ errorType: errorType,
136
+ ePhiData: ePhiData
137
+ }, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
138
+ className: style.phoneIcon,
139
+ callfrom: "phone",
140
+ pbxname: providerName,
141
+ phonenum: value,
142
+ module: "RequestDetailsView",
143
+ title: callTitle,
144
+ callBackParam: JSON.stringify(callBackparam),
145
+ callto: 'RequestPhoneNumber',
146
+ href: true,
147
+ onClick: onCall,
148
+ type: type
149
+ }, LinkProps), /*#__PURE__*/React.createElement(Icon, {
150
+ name: "ZD-GN-phone",
151
+ size: "14"
152
+ })) : null));
182
153
  }
154
+
183
155
  PhoneField.propTypes = propTypes;
184
- PhoneField.defaultProps = defaultProps; // if (__DOCS__) {
185
- // PhoneField.docs = {
186
- // componentGroup: 'Form Fields',
187
- // folderName: 'General'
188
- // };
189
- // }
156
+ PhoneField.defaultProps = defaultProps;
157
+ const MemoizedPhoneField = /*#__PURE__*/memo(PhoneField);
158
+ MemoizedPhoneField.propTypes = propTypes;
159
+ MemoizedPhoneField.defaultProps = defaultProps;
160
+ MemoizedPhoneField.displayName = 'PhoneField';
161
+ export default MemoizedPhoneField;
@@ -1,116 +1,108 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  /**** Libraries ****/
4
- import React, { PureComponent } from 'react';
4
+ import React, { memo } from 'react';
5
5
  import { defaultProps } from '../../../../form/fields/RadioField/props/defaultProps';
6
6
  import { propTypes } from '../../../../form/fields/RadioField/props/propTypes';
7
7
  /**** Components ****/
8
8
 
9
- import Label from '@zohodesk/components/lib/Label/Label';
10
- import Radio from '@zohodesk/components/lib/Radio/Radio';
9
+ import Label from '@zohodesk/components/es/v1/Label/Label';
10
+ import Radio from '@zohodesk/components/es/v1/Radio/Radio';
11
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
12
  /** Css */
13
13
 
14
14
  import style from '../../../../form/fields/Fields.module.css';
15
- export default class RadioField extends PureComponent {
16
- constructor(props) {
17
- super(props);
18
- this.handleChange = this.handleChange.bind(this);
19
- }
20
15
 
21
- handleChange(value) {
22
- let {
23
- id,
24
- onChange
25
- } = this.props;
16
+ const RadioField = props => {
17
+ const {
18
+ labelName,
19
+ id,
20
+ isMandatory,
21
+ options,
22
+ validationMessage,
23
+ validationPalette,
24
+ errorType,
25
+ isDisabled,
26
+ title,
27
+ labelPalette,
28
+ labelSize,
29
+ size,
30
+ selectedValue,
31
+ isActive,
32
+ dataId,
33
+ dataSelectorId,
34
+ validationRuleMessage,
35
+ validationRulePalette,
36
+ isReadOnly,
37
+ variant,
38
+ customProps,
39
+ onChange
40
+ } = props;
41
+ const {
42
+ LabelProps = {},
43
+ RadioProps = {},
44
+ ValidationMessageProps1 = {},
45
+ ValidationMessageProps2 = {}
46
+ } = customProps;
47
+
48
+ const handleChange = value => {
26
49
  onChange && onChange(id, value);
27
- }
50
+ };
28
51
 
29
- render() {
52
+ return /*#__PURE__*/React.createElement("div", {
53
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
54
+ "data-title": isDisabled ? title : null,
55
+ "data-selector-id": dataSelectorId
56
+ }, labelName && /*#__PURE__*/React.createElement(Label, _extends({
57
+ text: labelName,
58
+ size: "medium",
59
+ id: id,
60
+ palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
61
+ customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
62
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
63
+ }, LabelProps)), /*#__PURE__*/React.createElement("div", {
64
+ className: `${style.fieldContainer} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
65
+ }, options.map((option, index) => {
30
66
  let {
31
- labelName,
32
- id,
33
- isMandatory,
34
- options,
35
- validationMessage,
36
- validationPalette,
37
- errorType,
38
- isDisabled,
39
- title,
40
- labelPalette,
41
- labelSize,
42
- size,
43
- selectedValue,
44
- isActive,
45
- dataId,
46
- dataSelectorId,
47
- validationRuleMessage,
48
- validationRulePalette,
49
- isReadOnly,
50
- variant,
51
- customProps
52
- } = this.props;
53
- const {
54
- LabelProps = {},
55
- RadioProps = {},
56
- ValidationMessageProps1 = {},
57
- ValidationMessageProps2 = {}
58
- } = customProps;
59
- return /*#__PURE__*/React.createElement("div", {
60
- className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
61
- "data-title": isDisabled ? title : null,
62
- "data-selector-id": dataSelectorId
63
- }, labelName && /*#__PURE__*/React.createElement(Label, _extends({
64
- text: labelName,
65
- size: "medium",
66
- id: id,
67
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
68
- customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
69
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
70
- }, LabelProps)), /*#__PURE__*/React.createElement("div", {
71
- className: `${style.fieldContainer} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
72
- }, options.map((option, index) => {
73
- let {
74
- text,
75
- value
76
- } = option;
77
- return /*#__PURE__*/React.createElement("span", {
78
- key: index,
79
- className: `${style.radio}`
80
- }, /*#__PURE__*/React.createElement(Radio, _extends({
81
- id: index,
82
- value: value,
83
- name: id,
84
- text: text,
85
- labelPalette: labelPalette,
86
- labelSize: labelSize,
87
- active: isActive,
88
- disabled: isDisabled,
89
- onChange: this.handleChange,
90
- size: size,
91
- checked: selectedValue == value,
92
- dataId: dataId,
93
- isReadOnly: isReadOnly,
94
- variant: variant
95
- }, RadioProps)));
96
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
97
- text: validationMessage,
98
- palette: validationPalette,
99
- type: errorType,
100
- dataId: `${dataId}_ValidationMessage`
101
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
102
- text: validationRuleMessage,
103
- palette: validationRulePalette,
104
- type: errorType,
105
- dataId: `${dataId}_ValidationRuleMessage`
106
- }, ValidationMessageProps2)));
107
- }
67
+ text,
68
+ value
69
+ } = option;
70
+ return /*#__PURE__*/React.createElement("span", {
71
+ key: index,
72
+ className: `${style.radio}`
73
+ }, /*#__PURE__*/React.createElement(Radio, _extends({
74
+ id: index,
75
+ value: value,
76
+ name: id,
77
+ text: text,
78
+ labelPalette: labelPalette,
79
+ labelSize: labelSize,
80
+ active: isActive,
81
+ disabled: isDisabled,
82
+ onChange: handleChange,
83
+ size: size,
84
+ checked: selectedValue == value,
85
+ dataId: dataId,
86
+ isReadOnly: isReadOnly,
87
+ variant: variant
88
+ }, RadioProps)));
89
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
90
+ text: validationMessage,
91
+ palette: validationPalette,
92
+ type: errorType,
93
+ dataId: `${dataId}_ValidationMessage`
94
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
95
+ text: validationRuleMessage,
96
+ palette: validationRulePalette,
97
+ type: errorType,
98
+ dataId: `${dataId}_ValidationRuleMessage`
99
+ }, ValidationMessageProps2)));
100
+ };
108
101
 
109
- }
110
102
  RadioField.propTypes = propTypes;
111
- RadioField.defaultProps = defaultProps; // if (__DOCS__) {
112
- // RadioField.docs = {
113
- // componentGroup: 'Form Fields',
114
- // folderName: 'General'
115
- // };
116
- // }
103
+ RadioField.defaultProps = defaultProps;
104
+ const MemoizedRadioField = /*#__PURE__*/memo(RadioField);
105
+ MemoizedRadioField.propTypes = propTypes;
106
+ MemoizedRadioField.defaultProps = defaultProps;
107
+ MemoizedRadioField.displayName = 'RadioField';
108
+ export default MemoizedRadioField;