@zohodesk/dot 1.2.4 → 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 +9 -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/coverage-final.json +12 -12
  24. package/coverage/coverage-summary.json +12 -12
  25. package/coverage/index.html +1 -1
  26. package/es/Drawer/Drawer.js +3 -2
  27. package/es/v1/ActionButton/ActionButton.js +11 -8
  28. package/es/v1/AlphabeticList/AlphabeticList.js +2 -2
  29. package/es/v1/Attachment/Attachment.js +1 -1
  30. package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
  31. package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
  32. package/es/v1/Drawer/Drawer.js +6 -6
  33. package/es/v1/FlipCard/FlipCard.js +4 -4
  34. package/es/v1/FormAction/FormAction.js +1 -1
  35. package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
  36. package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
  37. package/es/v1/IconButton/IconButton.js +3 -3
  38. package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
  39. package/es/v1/Loader/Loader.js +1 -1
  40. package/es/v1/MessageBanner/MessageBanner.js +1 -1
  41. package/es/v1/NewStar/NewStar.js +1 -1
  42. package/es/v1/Separator/Separator.js +1 -1
  43. package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
  44. package/es/v1/ToastMessage/ToastMessage.js +4 -4
  45. package/es/v1/Upload/Upload.js +1 -1
  46. package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
  47. package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
  48. package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
  49. package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
  50. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
  51. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
  52. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
  53. package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
  54. package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
  55. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  56. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
  57. package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
  58. package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
  59. package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
  60. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
  61. package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
  62. package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
  63. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
  64. package/es/v1/form/fields/CurrencyField/CurrencyField.js +128 -154
  65. package/es/v1/form/fields/DateField/DateField.js +131 -162
  66. package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
  67. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
  68. package/es/v1/form/fields/PhoneField/PhoneField.js +128 -156
  69. package/es/v1/form/fields/RadioField/RadioField.js +2 -2
  70. package/es/v1/form/fields/SelectField/SelectField.js +3 -3
  71. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
  72. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
  73. package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
  74. package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
  75. package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
  76. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
  77. package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
  78. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  79. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
  80. package/es/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
  81. package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
  82. package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
  83. package/es/v1/list/Comment/Comment.js +25 -32
  84. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
  85. package/es/v1/list/Dot/Dot.js +9 -16
  86. package/es/v1/list/DotNew/DotNew.js +11 -18
  87. package/es/v1/list/GridStencils/GridStencils.js +21 -24
  88. package/es/v1/list/Icons/AddNewIcon.js +19 -22
  89. package/es/v1/list/Icons/CompleteIcon.js +21 -24
  90. package/es/v1/list/Icons/DeleteIcon.js +22 -25
  91. package/es/v1/list/Icons/EditIcon.js +22 -25
  92. package/es/v1/list/Icons/FloatingIcons.js +12 -19
  93. package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
  94. package/es/v1/list/Icons/SmartIcon.js +20 -23
  95. package/es/v1/list/ListLayout/ListLayout.js +54 -68
  96. package/es/v1/list/ListStencils/ListStencils.js +28 -31
  97. package/es/v1/list/SecondaryText/AccountName.js +1 -1
  98. package/es/v1/list/SecondaryText/ContactName.js +1 -1
  99. package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
  100. package/es/v1/list/Thread/Thread.js +1 -1
  101. package/es/v1/list/UserTime/UserTime.js +1 -1
  102. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
  103. package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  104. package/es/v1/lookup/Lookup/Lookup.js +4 -3
  105. package/es/v1/lookup/Section/Section.js +1 -1
  106. package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  107. package/es/v1/lookup/header/Search/Search.js +3 -3
  108. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
  109. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
  110. package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
  111. package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
  112. package/es/v1/setup/header/Button/Button.js +1 -1
  113. package/es/v1/setup/header/Link/Link.js +1 -1
  114. package/es/v1/setup/header/Search/Search.js +1 -1
  115. package/es/v1/setup/table/Table/Table.js +1 -1
  116. package/es/v1/setup/table/TableBody/TableBody.js +1 -1
  117. package/es/v1/setup/table/TableData/TableData.js +1 -1
  118. package/es/v1/setup/table/TableHead/TableHead.js +1 -1
  119. package/es/v1/setup/table/TableRow/TableRow.js +1 -1
  120. package/lib/Drawer/Drawer.js +3 -2
  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 +6 -6
  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 +5 -3
  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 +8 -8
  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
@@ -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, {
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { defaultProps } from '../../../../version2/errorstate/UnableToProcessRequest/props/defaultProps';
3
- import { propTypes } from '../../../../version2/errorstate/UnableToProcessRequest/props/propTypes';
4
- import { Container } from '@zohodesk/components/lib/Layout';
2
+ import { defaultProps } from '../../../version2/errorstate/UnableToProcessRequest/props/defaultProps';
3
+ import { propTypes } from '../../../version2/errorstate/UnableToProcessRequest/props/propTypes';
4
+ import { Container } from '@zohodesk/components/es/v1/Layout';
5
5
  import ErrorUnableToProcessRequest from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorUnableToProcessRequest';
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 UnableToProcessRequest(props) {
10
10
  function errorUnableToProcess() {
11
11
  return /*#__PURE__*/React.createElement(ErrorUnableToProcessRequest, {
@@ -1,80 +1,61 @@
1
1
  import React from 'react';
2
- import { defaultProps } from '../../../errorstate/UnauthorizedLogin/props/defaultProps';
3
- import { propTypes } from '../../../errorstate/UnauthorizedLogin/props/propTypes';
4
- import { Container, Box } from '@zohodesk/components/lib/Layout';
5
- import LinkText from '../LinkText/LinkText';
6
- import UnauthorizedLoginSVG from '@zohodesk/svg/lib/errorstate/version1/UnauthorizedLogin';
7
- import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
8
- import commonStyle from '../../../errorstate/EmptyStates.module.css';
9
- import style from '../../../errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css';
10
- export default class UnauthorizedLogin 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 : commonStyle.tabletImageContainer}`
61
- }, /*#__PURE__*/React.createElement(UnauthorizedLoginSVG, {
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/UnauthorizedLogin/props/defaultProps';
3
+ import { propTypes } from '../../../version2/errorstate/UnauthorizedLogin/props/propTypes';
4
+ import { Container } from '@zohodesk/components/es/v1/Layout';
5
+ import ErrorUnauthorizedLogin from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorUnauthorizedLogin';
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 UnauthorizedLogin(props) {
10
+ function errorUnauthorizedLogin() {
11
+ return /*#__PURE__*/React.createElement(ErrorUnauthorizedLogin, {
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
+ buttonPalette,
25
+ onButtonClick,
26
+ urlText,
27
+ url,
28
+ onClick,
29
+ urlTarget,
30
+ size
31
+ } = props;
32
+ return /*#__PURE__*/React.createElement(Container, {
33
+ scroll: "vertical",
34
+ className: `${style.container} ${style[size]}`
35
+ }, /*#__PURE__*/React.createElement(CommonEmptyState, {
36
+ title: title,
37
+ description: description,
38
+ getEmptyState: errorUnauthorizedLogin,
39
+ className: `${style.errorState} ${className}`,
40
+ isFluid: isFluid,
41
+ dataId: dataId,
42
+ linkUrl: url,
43
+ linkText: urlText,
44
+ onUrlClick: onClick,
45
+ linkTarget: urlTarget,
46
+ customClass: {
47
+ titleClass: style.title,
48
+ descriptionClass: style.desc
49
+ }
50
+ }, isButtonNeeded ? /*#__PURE__*/React.createElement(Button, {
51
+ palette: buttonPalette,
52
+ text: buttonText,
53
+ customClass: {
54
+ customButton: style.errorBtn
55
+ },
56
+ onClick: onButtonClick,
57
+ dataId: `${dataId}_button`
58
+ }) : null));
78
59
  }
79
60
  UnauthorizedLogin.propTypes = propTypes;
80
61
  UnauthorizedLogin.defaultProps = defaultProps; // if (__DOCS__) {
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { defaultProps } from '../../../../version2/errorstate/UrlNotFound/props/defaultProps';
3
- import { propTypes } from '../../../../version2/errorstate/UrlNotFound/props/propTypes';
4
- import { Container } from '@zohodesk/components/lib/Layout';
2
+ import { defaultProps } from '../../../version2/errorstate/UrlNotFound/props/defaultProps';
3
+ import { propTypes } from '../../../version2/errorstate/UrlNotFound/props/propTypes';
4
+ import { Container } from '@zohodesk/components/es/v1/Layout';
5
5
  import ErrorUrlNotFound from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorUrlNotFound';
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 UrlNotFound(props) {
10
10
  function errorUrlNotFound() {
11
11
  return /*#__PURE__*/React.createElement(ErrorUrlNotFound, {
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { defaultProps } from '../../../../version2/errorstate/WillBeRightBack/props/defaultProps';
3
- import { propTypes } from '../../../../version2/errorstate/WillBeRightBack/props/propTypes';
4
- import { Container } from '@zohodesk/components/lib/Layout';
2
+ import { defaultProps } from '../../../version2/errorstate/WillBeRightBack/props/defaultProps';
3
+ import { propTypes } from '../../../version2/errorstate/WillBeRightBack/props/propTypes';
4
+ import { Container } from '@zohodesk/components/es/v1/Layout';
5
5
  import ErrorWillBeRightBack from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorWillBeRightBack';
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 WillBeRightBack(props) {
10
10
  function errorWillBeRightBack() {
11
11
  return /*#__PURE__*/React.createElement(ErrorWillBeRightBack, {
@@ -1,141 +1,125 @@
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/CheckBoxField/props/defaultProps';
6
6
  import { propTypes } from '../../../../form/fields/CheckBoxField/props/propTypes';
7
7
  /**** Components ****/
8
8
 
9
- import Label from '@zohodesk/components/lib/Label/Label';
10
- import CheckBox from '@zohodesk/components/lib/CheckBox/CheckBox';
9
+ import Label from '@zohodesk/components/es/v1/Label/Label';
10
+ import CheckBox from '@zohodesk/components/es/v1/CheckBox/CheckBox';
11
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { Container, Box } from '@zohodesk/components/lib/Layout';
12
+ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
13
13
  import FieldContainer from '../FieldContainer/FieldContainer';
14
14
  /**** CSS ****/
15
15
 
16
16
  import style from '../../../../form/fields/Fields.module.css';
17
- export default class CheckBoxField extends PureComponent {
18
- constructor(props) {
19
- super(props);
20
- this.handleChange = this.handleChange.bind(this);
21
- this.handleGetRef = this.handleGetRef.bind(this);
22
- this.handleLabelClick = this.handleLabelClick.bind(this);
23
- }
24
17
 
25
- handleChange(value) {
26
- let {
27
- id,
28
- onChange
29
- } = this.props;
18
+ function CheckBoxField(props) {
19
+ let {
20
+ labelName,
21
+ id,
22
+ isMandatory,
23
+ validationMessage,
24
+ validationPalette,
25
+ isReadOnly,
26
+ checked,
27
+ errorType,
28
+ isDisabled,
29
+ title,
30
+ dataId,
31
+ dataSelectorId,
32
+ validationRuleMessage,
33
+ validationRulePalette,
34
+ infoText,
35
+ fieldSize,
36
+ labelPalette,
37
+ labelCustomClass,
38
+ direction,
39
+ lineClamp,
40
+ isLocked,
41
+ lockedInfoText,
42
+ customProps,
43
+ renderLabelProps,
44
+ getRef,
45
+ onChange
46
+ } = props;
47
+ const {
48
+ LabelProps = {},
49
+ CheckBoxProps = {},
50
+ ValidationMessageProps1 = {},
51
+ ValidationMessageProps2 = {}
52
+ } = customProps;
53
+ let removeEvent = isDisabled || isReadOnly;
54
+ let isDirectCol = direction === 'column';
55
+ let labelElement = /*#__PURE__*/React.createElement(FieldContainer, {
56
+ isLocked: isLocked,
57
+ lockedInfoText: lockedInfoText,
58
+ infoText: infoText,
59
+ renderProps: renderLabelProps
60
+ }, /*#__PURE__*/React.createElement(Label, _extends({
61
+ text: labelName,
62
+ id: id,
63
+ size: fieldSize === 'small' ? 'small' : 'medium',
64
+ palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
65
+ infoText: infoText,
66
+ customClass: `${!isDirectCol ? style.checkboxText : ''} ${!isDirectCol ? style[`lineClamp_${lineClamp}`] : ''} ${isReadOnly || isDisabled ? style.cbTextReadonly : style.cbTextPointer} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
67
+ title: labelName,
68
+ onClick: !removeEvent ? handleLabelClick : null,
69
+ variant: isDirectCol ? 'default' : 'primary',
70
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
71
+ }, LabelProps)));
72
+
73
+ function handleChange(value) {
30
74
  onChange && onChange(id, value);
31
75
  }
32
76
 
33
- handleGetRef(el) {
34
- let {
35
- getRef,
36
- id
37
- } = this.props;
77
+ function handleGetRef(el) {
38
78
  getRef && getRef(el, id);
39
79
  }
40
80
 
41
- handleLabelClick() {
42
- let {
43
- checked
44
- } = this.props;
45
- this.handleChange(!checked);
81
+ function handleLabelClick() {
82
+ handleChange(!checked);
46
83
  }
47
84
 
48
- render() {
49
- let {
50
- labelName,
51
- id,
52
- isMandatory,
53
- validationMessage,
54
- validationPalette,
55
- isReadOnly,
56
- checked,
57
- errorType,
58
- isDisabled,
59
- title,
60
- dataId,
61
- dataSelectorId,
62
- validationRuleMessage,
63
- validationRulePalette,
64
- infoText,
65
- fieldSize,
66
- labelPalette,
67
- labelCustomClass,
68
- direction,
69
- lineClamp,
70
- isLocked,
71
- lockedInfoText,
72
- customProps,
73
- renderLabelProps
74
- } = this.props;
75
- const {
76
- LabelProps = {},
77
- CheckBoxProps = {},
78
- ValidationMessageProps1 = {},
79
- ValidationMessageProps2 = {}
80
- } = customProps;
81
- let removeEvent = isDisabled || isReadOnly;
82
- let isDirectCol = direction === 'column';
83
- let labelElement = /*#__PURE__*/React.createElement(FieldContainer, {
84
- isLocked: isLocked,
85
- lockedInfoText: lockedInfoText,
86
- infoText: infoText,
87
- renderProps: renderLabelProps
88
- }, /*#__PURE__*/React.createElement(Label, _extends({
89
- text: labelName,
90
- id: id,
91
- size: fieldSize === 'small' ? 'small' : 'medium',
92
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
93
- infoText: infoText,
94
- customClass: `${!isDirectCol ? style.checkboxText : ''} ${!isDirectCol ? style[`lineClamp_${lineClamp}`] : ''} ${isReadOnly || isDisabled ? style.cbTextReadonly : style.cbTextPointer} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
95
- title: labelName,
96
- onClick: !removeEvent ? this.handleLabelClick : null,
97
- variant: isDirectCol ? 'default' : 'primary',
98
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
99
- }, LabelProps)));
100
- return /*#__PURE__*/React.createElement("div", {
101
- className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
102
- "data-title": isDisabled ? title : null,
103
- "data-selector-id": dataSelectorId
104
- }, isDirectCol && labelElement, /*#__PURE__*/React.createElement("div", {
105
- className: `${isDirectCol ? style.fieldContainer : style.checkboxFieldContainer} ${isDirectCol && labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
106
- }, /*#__PURE__*/React.createElement(Container, {
107
- alignBox: "row",
108
- isCover: false,
109
- align: "top"
110
- }, /*#__PURE__*/React.createElement(Box, {
111
- className: isDirectCol ? style.checkbox : style.checkboxRow
112
- }, /*#__PURE__*/React.createElement(CheckBox, _extends({
113
- id: id,
114
- onChange: this.handleChange,
115
- disabled: removeEvent,
116
- checked: checked,
117
- getRef: this.handleGetRef,
118
- dataId: dataId
119
- }, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
120
- flexible: true
121
- }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
122
- text: validationMessage,
123
- palette: validationPalette,
124
- type: errorType,
125
- dataId: `${dataId}_ValidationMessage`
126
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
127
- text: validationRuleMessage,
128
- palette: validationRulePalette,
129
- type: errorType,
130
- dataId: `${dataId}_ValidationRuleMessage`
131
- }, ValidationMessageProps2))));
132
- }
85
+ return /*#__PURE__*/React.createElement("div", {
86
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
87
+ "data-title": isDisabled ? title : null,
88
+ "data-selector-id": dataSelectorId
89
+ }, isDirectCol && labelElement, /*#__PURE__*/React.createElement("div", {
90
+ className: `${isDirectCol ? style.fieldContainer : style.checkboxFieldContainer} ${isDirectCol && labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
91
+ }, /*#__PURE__*/React.createElement(Container, {
92
+ alignBox: "row",
93
+ isCover: false,
94
+ align: "top"
95
+ }, /*#__PURE__*/React.createElement(Box, {
96
+ className: isDirectCol ? style.checkbox : style.checkboxRow
97
+ }, /*#__PURE__*/React.createElement(CheckBox, _extends({
98
+ id: id,
99
+ onChange: handleChange,
100
+ disabled: removeEvent,
101
+ checked: checked,
102
+ getRef: handleGetRef,
103
+ dataId: dataId
104
+ }, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
105
+ flexible: true
106
+ }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
107
+ text: validationMessage,
108
+ palette: validationPalette,
109
+ type: errorType,
110
+ dataId: `${dataId}_ValidationMessage`
111
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
112
+ text: validationRuleMessage,
113
+ palette: validationRulePalette,
114
+ type: errorType,
115
+ dataId: `${dataId}_ValidationRuleMessage`
116
+ }, ValidationMessageProps2))));
117
+ } // const MomoizedCheckBoxField = memo(CheckBoxField);
118
+ // export default MomoizedCheckBoxField;
119
+ // MomoizedCheckBoxField.propTypes = propTypes;
120
+ // MomoizedCheckBoxField.defaultProps = defaultProps;
121
+
133
122
 
134
- }
135
123
  CheckBoxField.propTypes = propTypes;
136
- CheckBoxField.defaultProps = defaultProps; // if (__DOCS__) {
137
- // CheckBoxField.docs = {
138
- // componentGroup: 'Form Fields',
139
- // folderName: 'General'
140
- // };
141
- // }
124
+ CheckBoxField.defaultProps = defaultProps;
125
+ export default CheckBoxField;