@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,7 +2,7 @@ import React from 'react';
2
2
  import { defaultProps } from '../../Upload/props/defaultProps';
3
3
  import { propTypes } from '../../Upload/props/propTypes';
4
4
  import { Icon } from '@zohodesk/icons';
5
- import { Container, Box } from '@zohodesk/components/lib/Layout';
5
+ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
6
6
  import Image from '../Image/Image';
7
7
  import style from '../../Upload/Upload.module.css';
8
8
  export default class Upload extends React.Component {
@@ -2,7 +2,7 @@
2
2
  import React, { memo } from 'react';
3
3
  import { propTypes } from '../../../version2/AlertClose/props/propTypes';
4
4
  import { Icon } from '@zohodesk/icons';
5
- import { Container, Box } from '@zohodesk/components/lib/Layout';
5
+ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
6
6
  import style from '../../../version2/AlertClose/AlertClose.module.css';
7
7
 
8
8
  function AlertClose(props) {
@@ -1,70 +1,79 @@
1
- import React from 'react';
2
- import { defaultProps } from '../../../alert/AlertHeader/props/defaultProps';
3
- import { propTypes } from '../../../alert/AlertHeader/props/propTypes';
4
- import { Icon } from '@zohodesk/icons';
5
- import { Container, Box } from '@zohodesk/components/lib/Layout';
6
- import Title from '../../../lookup/header/Title/Title';
7
- import Close from '../../../lookup/header/Close/Close';
8
- import style from '../../../alert/AlertHeader/AlertHeader.module.css';
1
+ import React, { useRef } from 'react'; //AlertDependencies
2
+
3
+ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
4
+ import AlertClose from '../AlertClose/AlertClose';
5
+ import AlertIcons from '../alertIcons/AlertIcons'; //CSS
6
+
7
+ import style from '../../../version2/lookup/AlertHeader/css/AlertHeaderNew.module.css';
8
+ import cssJSLogic from '../../../version2/lookup/AlertHeader/css/cssJSLogic';
9
+ import { mergeStyle } from '@zohodesk/utils'; //customHooks
10
+
11
+ import useDragger from '../../../Hooks/Dragger/useDragger'; //Props
12
+
13
+ import defaultProps from '../../../version2/lookup/AlertHeader/props/defaultProps';
14
+ import propTypes from '../../../version2/lookup/AlertHeader/props/propTypes';
9
15
  export default function AlertHeader(props) {
10
- let {
16
+ const {
11
17
  title,
12
- palette,
13
18
  needIcon,
14
- iconType,
15
19
  onClose,
16
- iconName,
17
- iconSize,
18
20
  closeTitle,
19
21
  children,
20
22
  breakChildren,
21
23
  dataId,
22
- iconClass
24
+ type,
25
+ htmlId,
26
+ customStyle,
27
+ dragBoundaryLimit
23
28
  } = props;
24
- let iconObj = {
25
- delete: 'ZD-socialDelete',
26
- alert: 'ZD-exclamationThincircle',
27
- remoteAssist: 'ZD-taskDemo',
28
- splitTicket: 'ZD-splitNew',
29
- update: 'ZD-update'
30
- };
29
+ const finalStyle = mergeStyle(style, customStyle);
30
+ const {
31
+ alertHeaderContainerClass
32
+ } = cssJSLogic({
33
+ props,
34
+ style: finalStyle
35
+ });
36
+ const dragRef = useRef(null); //dragRef
37
+
38
+ useDragger({
39
+ isActive: true,
40
+ ChildRef: dragRef,
41
+ boundaryLimit: dragBoundaryLimit
42
+ }); //custom Hook
43
+
31
44
  return /*#__PURE__*/React.createElement(Container, {
32
45
  align: "vertical",
33
46
  alignBox: "row",
34
- className: `${style.container} ${style[palette]}`,
47
+ className: `${alertHeaderContainerClass}`,
35
48
  isCover: false,
36
- wrap: "wrap"
37
- }, needIcon ? /*#__PURE__*/React.createElement("div", {
38
- className: style.iconContainer
39
- }, /*#__PURE__*/React.createElement(Icon, {
40
- size: iconSize,
41
- name: iconName ? iconName : iconObj[iconType] ? iconObj[iconType] : iconName,
42
- iconClass: `${style.iconStyle} ${iconObj[iconType] && !iconSize ? style[`icon_${iconType}`] : ''} ${style[`text_${palette}`]} ${iconClass}`
43
- })) : null, /*#__PURE__*/React.createElement(Box, {
49
+ wrap: "wrap",
50
+ "data-drag-hook": "true",
51
+ eleRef: dragRef
52
+ }, needIcon && /*#__PURE__*/React.createElement("div", {
53
+ className: finalStyle.iconContainer
54
+ }, /*#__PURE__*/React.createElement(AlertIcons, {
55
+ type: type
56
+ })), (title || children) && /*#__PURE__*/React.createElement(Box, {
44
57
  flexible: true
45
58
  }, /*#__PURE__*/React.createElement(Container, {
46
59
  alignBox: "row",
47
- align: "vertical",
48
60
  wrap: breakChildren ? 'wrap' : null
49
- }, /*#__PURE__*/React.createElement(Box, {
50
- className: style.title,
51
- shrink: true
52
- }, /*#__PURE__*/React.createElement(Title, {
53
- text: title,
54
- palette: palette
55
- })), children ? /*#__PURE__*/React.createElement(Box, {
61
+ }, title && /*#__PURE__*/React.createElement(Box, {
62
+ className: finalStyle.title,
63
+ shrink: true,
64
+ id: htmlId
65
+ }, title), children && /*#__PURE__*/React.createElement(Box, {
56
66
  adjust: true,
57
67
  flexible: true
58
- }, children) : null)), onClose ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Close, {
68
+ }, children))), onClose && /*#__PURE__*/React.createElement(Box, {
69
+ className: style.close
70
+ }, /*#__PURE__*/React.createElement(AlertClose, {
59
71
  onClose: onClose,
60
- title: closeTitle,
61
- dataId: `${dataId}_close`
62
- })) : null);
63
- }
72
+ dataTitle: closeTitle,
73
+ dataId: `${dataId}_close`,
74
+ type: "light"
75
+ })));
76
+ } //Props
77
+
64
78
  AlertHeader.propTypes = propTypes;
65
- AlertHeader.defaultProps = defaultProps; // if (__DOCS__) {
66
- // AlertHeader.docs = {
67
- // componentGroup: 'AlertHeader',
68
- // folderName: 'Alert'
69
- // };
70
- // }
79
+ AlertHeader.defaultProps = defaultProps;
@@ -2,24 +2,46 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
5
- import { defaultProps } from '../../../alert/AlertLookup/props/defaultProps';
6
- import { propTypes } from '../../../alert/AlertLookup/props/propTypes';
5
+ import { defaultProps } from '../../../version2/lookup/AlertLookup/props/defaultProps';
6
+ import { propTypes } from '../../../version2/lookup/AlertLookup/props/propTypes';
7
7
  /**** Components ****/
8
8
 
9
- import Button from '@zohodesk/components/lib/Button/Button';
9
+ import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
10
+ import Button from '@zohodesk/components/es/v1/Button/Button';
11
+ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
12
+ import Lookup from '../../lookup/Lookup/Lookup';
10
13
  import AlertHeader from '../AlertHeader/AlertHeader';
11
- import Lookup from '../../../lookup/Lookup/Lookup';
12
- import Section from '../../../lookup/Section/Section';
13
- import FormAction from '../../../FormAction/FormAction';
14
+ import Section from '../../lookup/Section/Section';
15
+ import FormAction from '../../FormAction/FormAction';
14
16
  /**** CSS ****/
15
17
 
16
- import style from '../../../alert/AlertLookup/AlertLookup.module.css';
18
+ import style from '../../../version2/lookup/AlertLookup/AlertLookupNew.module.css';
19
+ let buttonPaletteObject = {
20
+ success: {
21
+ buttonPalette: 'successFilled'
22
+ },
23
+ error: {
24
+ buttonPalette: 'dangerFilled'
25
+ },
26
+ danger: {
27
+ buttonPalette: 'dangerFilled'
28
+ },
29
+ warning: {
30
+ buttonPalette: 'dangerFilled'
31
+ },
32
+ info: {
33
+ buttonPalette: 'primaryFilled'
34
+ },
35
+ notification: {
36
+ buttonPalette: 'primaryFilled'
37
+ }
38
+ };
17
39
  export default function AlertLookup(props) {
40
+ const getAriaId = useUniqueId();
18
41
  let {
19
42
  isActive,
20
- palette,
21
43
  size,
22
- type,
44
+ type = 'danger',
23
45
  title,
24
46
  message,
25
47
  confirmationMessage,
@@ -32,16 +54,17 @@ export default function AlertLookup(props) {
32
54
  onClose,
33
55
  headerChildren,
34
56
  wrapHeader,
35
- sectionClassName,
36
57
  dataId,
37
58
  onLookupClick,
38
- customClass,
59
+ customClass = {},
39
60
  needIcon,
40
- iconName,
41
- iconClass,
42
- iconSize,
61
+ a11y,
43
62
  customProps,
63
+ align,
64
+ childAnimationName,
44
65
  isHtmlContent,
66
+ scroll,
67
+ isDefaultFocus,
45
68
  onEsc
46
69
  } = props;
47
70
  const {
@@ -50,55 +73,92 @@ export default function AlertLookup(props) {
50
73
  PrimaryButtonProps = {},
51
74
  SecondaryButtonProps = {}
52
75
  } = customProps;
76
+ let {
77
+ containerClass = '',
78
+ sectionClass = ''
79
+ } = customClass;
80
+ let {
81
+ buttonPalette = 'dangerFilled'
82
+ } = buttonPaletteObject[type] || {};
83
+ let ariaMessageId = getAriaId();
84
+ let ariaConfirmMsgId = getAriaId();
85
+ let ariaTitleId = getAriaId();
86
+ let ariaLeaveButtonId = getAriaId();
87
+ let ariaStayButtonId = getAriaId();
88
+ a11y = {
89
+ ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
90
+ ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
91
+ };
53
92
  return /*#__PURE__*/React.createElement(Lookup, _extends({
54
- needFocusScope: true,
55
93
  onClose: onEsc == 'close' ? onClose : onCancelClick,
94
+ needFocusScope: true,
56
95
  isActive: isActive,
57
96
  size: size,
58
97
  dataId: dataId,
59
98
  forwardRef: forwardRef,
60
99
  onClick: onLookupClick,
61
- customClass: customClass
62
- }, LookupProps), /*#__PURE__*/React.createElement(AlertHeader, _extends({
63
- title: title,
64
- palette: palette,
65
- iconType: type,
66
- needIcon: Boolean(type) || needIcon,
67
- onClose: onClose,
68
- breakChildren: wrapHeader,
69
- iconName: iconName,
70
- iconClass: iconClass,
71
- iconSize: iconSize
72
- }, AlertHeaderProps), headerChildren ? headerChildren() : null), /*#__PURE__*/React.createElement(Section, {
100
+ customClass: containerClass,
101
+ a11y: a11y,
102
+ childAnimationName: childAnimationName
103
+ }, LookupProps), /*#__PURE__*/React.createElement(Container, {
104
+ alignBox: "row",
105
+ align: align,
106
+ wrap: "wrap"
107
+ }, /*#__PURE__*/React.createElement(Section, {
73
108
  alignBox: "row",
74
109
  className: style.section
110
+ }, /*#__PURE__*/React.createElement(Container, {
111
+ alignBox: "column"
112
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, _extends({
113
+ htmlId: ariaTitleId,
114
+ title: title,
115
+ type: type,
116
+ needIcon: needIcon,
117
+ onClose: onClose,
118
+ breakChildren: wrapHeader
119
+ }, AlertHeaderProps), headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
120
+ flexible: true
75
121
  }, /*#__PURE__*/React.createElement("div", {
76
- className: `${style.innerSection} ${sectionClassName}`
122
+ className: `${style.innerSection} ${style[`${scroll}Scroll`] ? style[`${scroll}Scroll`] : ''} ${sectionClass}`
77
123
  }, children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, isHtmlContent && message ? /*#__PURE__*/React.createElement("div", {
124
+ id: ariaMessageId,
78
125
  dangerouslySetInnerHTML: {
79
126
  __html: message
80
127
  }
81
- }) : /*#__PURE__*/React.createElement("div", null, message), confirmationMessage && /*#__PURE__*/React.createElement("div", {
82
- className: style.text
83
- }, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/React.createElement(FormAction, {
128
+ }) : /*#__PURE__*/React.createElement("div", {
129
+ id: ariaMessageId
130
+ }, message), confirmationMessage && /*#__PURE__*/React.createElement("div", {
131
+ id: ariaConfirmMsgId,
132
+ className: `${message ? style.confirmMsgText : ''}`
133
+ }, confirmationMessage)))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
134
+ className: style.footer
135
+ }, /*#__PURE__*/React.createElement(FormAction, {
84
136
  size: "small",
85
- paddingLeftSize: "xsmall"
137
+ paddingLeftSize: "xmedium"
86
138
  }, /*#__PURE__*/React.createElement(Button, _extends({
87
139
  text: submitText,
88
140
  dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
89
141
  onClick: onSubmitClick,
90
- palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled'
91
- }, PrimaryButtonProps)), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
142
+ palette: buttonPalette,
143
+ customProps: {
144
+ 'data-a11y-autofocus': isDefaultFocus
145
+ }
146
+ }, PrimaryButtonProps, {
147
+ a11y: {
148
+ 'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
149
+ },
150
+ id: ariaLeaveButtonId
151
+ })), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
92
152
  dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
93
153
  text: cancelText,
94
154
  onClick: onCancelClick,
95
155
  palette: "secondary"
96
- }, SecondaryButtonProps))) : null));
156
+ }, SecondaryButtonProps, {
157
+ a11y: {
158
+ 'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
159
+ },
160
+ id: ariaStayButtonId
161
+ }))))) : null))));
97
162
  }
98
163
  AlertLookup.propTypes = propTypes;
99
- AlertLookup.defaultProps = defaultProps; // if (__DOCS__) {
100
- // AlertLookup.docs = {
101
- // componentGroup: 'AlertLookup',
102
- // folderName: 'Alert'
103
- // };
104
- // }
164
+ AlertLookup.defaultProps = defaultProps;
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  import React from 'react';
4
4
  import { defaultProps } from '../../../avatar/AvatarClose/props/defaultProps';
5
5
  import { propTypes } from '../../../avatar/AvatarClose/props/propTypes';
6
- import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
6
+ import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
7
7
  import { Icon } from '@zohodesk/icons';
8
8
  import style from '../../../avatar/AvatarClose/AvatarClose.module.css';
9
9
  export default class AvatarClose extends React.Component {
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  import React from 'react';
4
4
  import { defaultProps } from '../../../avatar/AvatarCollision/props/defaultProps';
5
5
  import { propTypes } from '../../../avatar/AvatarCollision/props/propTypes';
6
- import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
6
+ import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
7
7
  import { Icon } from '@zohodesk/icons';
8
8
  import style from '../../../avatar/AvatarCollision/AvatarCollision.module.css';
9
9
  export default class AvatarCollision extends React.Component {
@@ -4,8 +4,8 @@ import React from 'react';
4
4
  import { defaultProps } from '../../../avatar/AvatarIcon/props/defaultProps';
5
5
  import { propTypes } from '../../../avatar/AvatarIcon/props/propTypes';
6
6
  import { Icon } from '@zohodesk/icons';
7
- import { Container } from '@zohodesk/components/lib/Layout';
8
- import AvatarSize from '@zohodesk/components/lib/Provider/AvatarSize';
7
+ import { Container } from '@zohodesk/components/es/v1/Layout';
8
+ import AvatarSize from '@zohodesk/components/es/v1/Provider/AvatarSize';
9
9
  import style from '../../../avatar/AvatarIcon/AvatarIcon.module.css';
10
10
  export default class AvatarIcon extends React.Component {
11
11
  render() {
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  import React from 'react';
4
4
  import { defaultProps } from '../../../avatar/AvatarStatus/props/defaultProps';
5
5
  import { propTypes } from '../../../avatar/AvatarStatus/props/propTypes';
6
- import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
6
+ import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
7
7
  import style from '../../../avatar/AvatarStatus/AvatarStatus.module.css';
8
8
  export default class AvatarStatus extends React.Component {
9
9
  constructor(props) {
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  import React from 'react';
4
4
  import { defaultProps } from '../../../avatar/AvatarThread/props/defaultProps';
5
5
  import { propTypes } from '../../../avatar/AvatarThread/props/propTypes';
6
- import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
6
+ import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
7
7
  import { Icon } from '@zohodesk/icons';
8
8
  import style from '../../../avatar/AvatarThread/AvatarThread.module.css';
9
9
  export default class AvatarThread extends React.Component {
@@ -6,7 +6,7 @@ import { defaultProps } from '../../../avatar/AvatarUser/props/defaultProps';
6
6
  import { propTypes } from '../../../avatar/AvatarUser/props/propTypes';
7
7
  /**** Components ****/
8
8
 
9
- import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
9
+ import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
10
10
  import AvatarIcon from '../AvatarIcon/AvatarIcon';
11
11
  import { Icon } from '@zohodesk/icons';
12
12
  import style from '../../../avatar/AvatarUser/AvatarUser.module.css';
@@ -3,8 +3,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  import React from 'react';
4
4
  import { defaultProps } from '../../../avatar/AvatarWithTeam/props/defaultProps';
5
5
  import { propTypes } from '../../../avatar/AvatarWithTeam/props/propTypes';
6
- import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
7
- import AvatarTeam from '@zohodesk/components/lib/AvatarTeam/AvatarTeam';
6
+ import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
7
+ import AvatarTeam from '@zohodesk/components/es/v1/AvatarTeam/AvatarTeam';
8
8
  import style from '../../../avatar/AvatarWithTeam/AvatarWithTeam.module.css';
9
9
  export default class AvatarWithTeam extends React.Component {
10
10
  render() {
@@ -4,22 +4,22 @@ import React, { Component, Fragment } from 'react';
4
4
  import { defaultProps } from '../../../dropdown/ToggleDropDown/props/defaultProps';
5
5
  import { propTypes } from '../../../dropdown/ToggleDropDown/props/propTypes';
6
6
  import { Icon } from '@zohodesk/icons';
7
- import Popup from '@zohodesk/components/lib/Popup/Popup';
8
- import { Box, Container } from '@zohodesk/components/lib/Layout';
9
- import ListItem from '@zohodesk/components/lib/ListItem/ListItem';
10
- import ListItemWithIcon from '@zohodesk/components/lib/ListItem/ListItemWithIcon';
11
- import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
12
- import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
7
+ import Popup from '@zohodesk/components/es/v1/Popup/Popup';
8
+ import { Box, Container } from '@zohodesk/components/es/v1/Layout';
9
+ import ListItem from '@zohodesk/components/es/v1/ListItem/ListItem';
10
+ import ListItemWithIcon from '@zohodesk/components/es/v1/ListItem/ListItemWithIcon';
11
+ import DropDownHeading from '@zohodesk/components/es/v1/DropDown/DropDownHeading';
12
+ import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
13
13
  import Loader from '@zohodesk/svg/lib/Loader/Loader';
14
14
  import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
15
15
  import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
16
- import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
17
- import { scrollTo, findScrollEnd } from '@zohodesk/components/lib/utils/Common';
18
- import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
19
- import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
20
- import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
21
- import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
22
- import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
16
+ import CssProvider from '@zohodesk/components/es/v1/Provider/CssProvider';
17
+ import { scrollTo, findScrollEnd } from '@zohodesk/components/es/utils/Common';
18
+ import { getUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
19
+ import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
20
+ import RippleEffect from '@zohodesk/components/es/v1/RippleEffect/RippleEffect';
21
+ import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
22
+ import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
23
23
  import style from '../../../dropdown/ToggleDropDown/ToggleDropDown.module.css';
24
24
  export class ToggleDropDown extends Component {
25
25
  constructor(props) {
@@ -852,10 +852,13 @@ export class ToggleDropDown extends Component {
852
852
 
853
853
  }
854
854
  ToggleDropDown.defaultProps = defaultProps;
855
- ToggleDropDown.propTypes = propTypes; // if (__DOCS__) {
855
+ ToggleDropDown.propTypes = propTypes;
856
+ const ToggleDropDown_Component = Popup(ToggleDropDown);
857
+ ToggleDropDown_Component.defaultProps = ToggleDropDown.defaultProps;
858
+ ToggleDropDown_Component.propTypes = ToggleDropDown.propTypes; // if (__DOCS__) {
856
859
  // ToggleDropDown.docs = {
857
860
  // componentGroup: 'Molecule'
858
861
  // };
859
862
  // }
860
863
 
861
- export default Popup(ToggleDropDown);
864
+ export default ToggleDropDown_Component;
@@ -1,86 +1,59 @@
1
1
  import React from 'react';
2
- import { defaultProps } from '../../../errorstate/Inconvenience/props/defaultProps';
3
- import { propTypes } from '../../../errorstate/Inconvenience/props/propTypes';
4
- import { Container, Box } from '@zohodesk/components/lib/Layout';
5
- import LinkText from '../LinkText/LinkText';
6
- import InconvenienceSVG from '@zohodesk/svg/lib/errorstate/version1/EmptyInconvenience';
7
- import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
8
- import commonStyle from '../../../errorstate/EmptyStates.module.css';
9
- import style from '../../../errorstate/Inconvenience/Inconvenience.module.css';
10
- export default class Inconvenience extends React.Component {
11
- constructor(props) {
12
- super(props);
13
- this.responsiveFunc = this.responsiveFunc.bind(this);
14
- }
15
-
16
- responsiveFunc(_ref) {
17
- let {
18
- mediaQueryOR
19
- } = _ref;
20
- return {
21
- tablet: mediaQueryOR([{
22
- minWidth: 481,
23
- maxWidth: 768
24
- }]),
25
- uptoMobile: mediaQueryOR([{
26
- maxWidth: 480
27
- }])
28
- };
29
- }
30
-
31
- render() {
32
- let {
33
- title,
34
- subtitle,
35
- description,
36
- urlText,
37
- url,
38
- onClick,
39
- dataId,
40
- customClass
41
- } = this.props;
42
- return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
43
- query: this.responsiveFunc
44
- }, _ref2 => {
45
- let {
46
- tablet,
47
- uptoMobile
48
- } = _ref2;
49
- return /*#__PURE__*/React.createElement(Container, {
50
- className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
51
- dataId: dataId,
52
- scroll: "vertical"
53
- }, /*#__PURE__*/React.createElement(Box, {
54
- className: commonStyle.top
55
- }, title ? /*#__PURE__*/React.createElement("div", {
56
- className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
57
- }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
58
- className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
59
- }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
60
- className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer}`
61
- }, /*#__PURE__*/React.createElement(InconvenienceSVG, {
62
- isFluid: true,
63
- dataId: `${dataId}_svg`
64
- })), /*#__PURE__*/React.createElement(Box, {
65
- className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
66
- }, /*#__PURE__*/React.createElement("div", {
67
- className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
68
- }, description), /*#__PURE__*/React.createElement(LinkText, {
69
- text: urlText,
70
- href: url,
71
- onClick: onClick,
72
- dataId: `${dataId}_link`,
73
- customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
74
- })));
2
+ import { defaultProps } from '../../../version2/errorstate/Inconvenience/props/defaultProps';
3
+ import { propTypes } from '../../../version2/errorstate/Inconvenience/props/propTypes';
4
+ import { Container } from '@zohodesk/components/es/v1/Layout';
5
+ import ErrorInconvenience from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorInconvenience';
6
+ import Button from '@zohodesk/components/es/v1/Button/Button';
7
+ import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
8
+ import style from '../../../version2/errorstate/V2_ErrorStates.module.css';
9
+ export default function Inconvenience(props) {
10
+ function errorInconvenience() {
11
+ return /*#__PURE__*/React.createElement(ErrorInconvenience, {
12
+ className: style.errorSvg
75
13
  });
76
14
  }
77
15
 
16
+ let {
17
+ title,
18
+ description,
19
+ isButtonNeeded,
20
+ className,
21
+ isFluid,
22
+ dataId,
23
+ buttonText,
24
+ onButtonClick,
25
+ urlText,
26
+ url,
27
+ onClick,
28
+ urlTarget,
29
+ size
30
+ } = props;
31
+ return /*#__PURE__*/React.createElement(Container, {
32
+ scroll: "vertical",
33
+ className: `${style.container} ${style[size]}`
34
+ }, /*#__PURE__*/React.createElement(CommonEmptyState, {
35
+ title: title,
36
+ description: description,
37
+ getEmptyState: errorInconvenience,
38
+ className: `${style.errorState} ${className}`,
39
+ isFluid: isFluid,
40
+ dataId: dataId,
41
+ linkUrl: url,
42
+ linkText: urlText,
43
+ onUrlClick: onClick,
44
+ linkTarget: urlTarget,
45
+ customClass: {
46
+ titleClass: style.title,
47
+ descriptionClass: style.desc
48
+ }
49
+ }, isButtonNeeded ? /*#__PURE__*/React.createElement(Button, {
50
+ palette: "primaryFilled",
51
+ text: buttonText,
52
+ customClass: {
53
+ customButton: style.errorBtn
54
+ },
55
+ onClick: onButtonClick
56
+ }) : null));
78
57
  }
79
58
  Inconvenience.propTypes = propTypes;
80
- Inconvenience.defaultProps = defaultProps;
81
-
82
- if (false) {
83
- Inconvenience.docs = {
84
- componentGroup: 'errorStates'
85
- };
86
- }
59
+ Inconvenience.defaultProps = defaultProps;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { defaultProps } from '../../../../version2/errorstate/OopsSomethingMiss/props/defaultProps';
3
- import { propTypes } from '../../../../version2/errorstate/OopsSomethingMiss/props/propTypes';
4
- import { Container } from '@zohodesk/components/lib/Layout';
2
+ import { defaultProps } from '../../../version2/errorstate/OopsSomethingMiss/props/defaultProps';
3
+ import { propTypes } from '../../../version2/errorstate/OopsSomethingMiss/props/propTypes';
4
+ import { Container } from '@zohodesk/components/es/v1/Layout';
5
5
  import ErrorOopsSomethingMiss from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorOopsSomethingMiss';
6
- import Button from '@zohodesk/components/lib/Button/Button';
7
- import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
8
- import style from '../../../../version2/errorstate/V2_ErrorStates.module.css';
6
+ import Button from '@zohodesk/components/es/v1/Button/Button';
7
+ import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
8
+ import style from '../../../version2/errorstate/V2_ErrorStates.module.css';
9
9
  export default function OopsSomethingMiss(props) {
10
10
  function errorOopsSomethingMiss() {
11
11
  return /*#__PURE__*/React.createElement(ErrorOopsSomethingMiss, {