@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
@@ -1,185 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = AlertLookup;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _defaultProps = require("../../../../version2/lookup/AlertLookup/props/defaultProps");
11
-
12
- var _propTypes = require("../../../../version2/lookup/AlertLookup/props/propTypes");
13
-
14
- var _IdProvider = require("@zohodesk/components/lib/Provider/IdProvider");
15
-
16
- var _Button = _interopRequireDefault(require("@zohodesk/components/lib/Button/Button"));
17
-
18
- var _Layout = require("@zohodesk/components/lib/Layout");
19
-
20
- var _Lookup = _interopRequireDefault(require("../../../lookup/Lookup/Lookup"));
21
-
22
- var _AlertHeader = _interopRequireDefault(require("../AlertHeader/AlertHeader"));
23
-
24
- var _Section = _interopRequireDefault(require("../../../lookup/Section/Section"));
25
-
26
- var _FormAction = _interopRequireDefault(require("../../../FormAction/FormAction"));
27
-
28
- var _AlertLookupNewModule = _interopRequireDefault(require("../../../../version2/lookup/AlertLookup/AlertLookupNew.module.css"));
29
-
30
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
31
-
32
- 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); }
33
-
34
- var buttonPaletteObject = {
35
- success: {
36
- buttonPalette: 'successFilled'
37
- },
38
- error: {
39
- buttonPalette: 'dangerFilled'
40
- },
41
- danger: {
42
- buttonPalette: 'dangerFilled'
43
- },
44
- warning: {
45
- buttonPalette: 'dangerFilled'
46
- },
47
- info: {
48
- buttonPalette: 'primaryFilled'
49
- },
50
- notification: {
51
- buttonPalette: 'primaryFilled'
52
- }
53
- };
54
-
55
- function AlertLookup(props) {
56
- var getAriaId = (0, _IdProvider.useUniqueId)();
57
- var isActive = props.isActive,
58
- size = props.size,
59
- _props$type = props.type,
60
- type = _props$type === void 0 ? 'danger' : _props$type,
61
- title = props.title,
62
- message = props.message,
63
- confirmationMessage = props.confirmationMessage,
64
- submitText = props.submitText,
65
- cancelText = props.cancelText,
66
- onSubmitClick = props.onSubmitClick,
67
- onCancelClick = props.onCancelClick,
68
- children = props.children,
69
- forwardRef = props.forwardRef,
70
- onClose = props.onClose,
71
- headerChildren = props.headerChildren,
72
- wrapHeader = props.wrapHeader,
73
- dataId = props.dataId,
74
- onLookupClick = props.onLookupClick,
75
- _props$customClass = props.customClass,
76
- customClass = _props$customClass === void 0 ? {} : _props$customClass,
77
- needIcon = props.needIcon,
78
- a11y = props.a11y,
79
- customProps = props.customProps,
80
- align = props.align,
81
- childAnimationName = props.childAnimationName,
82
- isHtmlContent = props.isHtmlContent,
83
- scroll = props.scroll,
84
- isDefaultFocus = props.isDefaultFocus,
85
- onEsc = props.onEsc;
86
- var _customProps$LookupPr = customProps.LookupProps,
87
- LookupProps = _customProps$LookupPr === void 0 ? {} : _customProps$LookupPr,
88
- _customProps$AlertHea = customProps.AlertHeaderProps,
89
- AlertHeaderProps = _customProps$AlertHea === void 0 ? {} : _customProps$AlertHea,
90
- _customProps$PrimaryB = customProps.PrimaryButtonProps,
91
- PrimaryButtonProps = _customProps$PrimaryB === void 0 ? {} : _customProps$PrimaryB,
92
- _customProps$Secondar = customProps.SecondaryButtonProps,
93
- SecondaryButtonProps = _customProps$Secondar === void 0 ? {} : _customProps$Secondar;
94
- var _customClass$containe = customClass.containerClass,
95
- containerClass = _customClass$containe === void 0 ? '' : _customClass$containe,
96
- _customClass$sectionC = customClass.sectionClass,
97
- sectionClass = _customClass$sectionC === void 0 ? '' : _customClass$sectionC;
98
-
99
- var _ref = buttonPaletteObject[type] || {},
100
- _ref$buttonPalette = _ref.buttonPalette,
101
- buttonPalette = _ref$buttonPalette === void 0 ? 'dangerFilled' : _ref$buttonPalette;
102
-
103
- var ariaMessageId = getAriaId();
104
- var ariaConfirmMsgId = getAriaId();
105
- var ariaTitleId = getAriaId();
106
- var ariaLeaveButtonId = getAriaId();
107
- var ariaStayButtonId = getAriaId();
108
- a11y = {
109
- ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
110
- ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
111
- };
112
- return /*#__PURE__*/_react["default"].createElement(_Lookup["default"], _extends({
113
- onClose: onEsc == 'close' ? onClose : onCancelClick,
114
- needFocusScope: true,
115
- isActive: isActive,
116
- size: size,
117
- dataId: dataId,
118
- forwardRef: forwardRef,
119
- onClick: onLookupClick,
120
- customClass: containerClass,
121
- a11y: a11y,
122
- childAnimationName: childAnimationName
123
- }, LookupProps), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
124
- alignBox: "row",
125
- align: align,
126
- wrap: "wrap"
127
- }, /*#__PURE__*/_react["default"].createElement(_Section["default"], {
128
- alignBox: "row",
129
- className: _AlertLookupNewModule["default"].section
130
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
131
- alignBox: "column"
132
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_AlertHeader["default"], _extends({
133
- htmlId: ariaTitleId,
134
- title: title,
135
- type: type,
136
- needIcon: needIcon,
137
- onClose: onClose,
138
- breakChildren: wrapHeader
139
- }, AlertHeaderProps), headerChildren ? headerChildren() : null)), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
140
- flexible: true
141
- }, /*#__PURE__*/_react["default"].createElement("div", {
142
- className: "".concat(_AlertLookupNewModule["default"].innerSection, " ").concat(_AlertLookupNewModule["default"]["".concat(scroll, "Scroll")] ? _AlertLookupNewModule["default"]["".concat(scroll, "Scroll")] : '', " ").concat(sectionClass)
143
- }, children ? children : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isHtmlContent && message ? /*#__PURE__*/_react["default"].createElement("div", {
144
- id: ariaMessageId,
145
- dangerouslySetInnerHTML: {
146
- __html: message
147
- }
148
- }) : /*#__PURE__*/_react["default"].createElement("div", {
149
- id: ariaMessageId
150
- }, message), confirmationMessage && /*#__PURE__*/_react["default"].createElement("div", {
151
- id: ariaConfirmMsgId,
152
- className: "".concat(message ? _AlertLookupNewModule["default"].confirmMsgText : '')
153
- }, confirmationMessage)))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement("div", {
154
- className: _AlertLookupNewModule["default"].footer
155
- }, /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
156
- size: "small",
157
- paddingLeftSize: "xmedium"
158
- }, /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
159
- text: submitText,
160
- dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : "".concat(dataId, "_confirmButton"),
161
- onClick: onSubmitClick,
162
- palette: buttonPalette,
163
- customProps: {
164
- 'data-a11y-autofocus': isDefaultFocus
165
- }
166
- }, PrimaryButtonProps, {
167
- a11y: {
168
- 'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
169
- },
170
- id: ariaLeaveButtonId
171
- })), cancelText && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
172
- dataId: dataId === 'alertPopup' ? 'alertCancelButton' : "".concat(dataId, "_cancelButton"),
173
- text: cancelText,
174
- onClick: onCancelClick,
175
- palette: "secondary"
176
- }, SecondaryButtonProps, {
177
- a11y: {
178
- 'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
179
- },
180
- id: ariaStayButtonId
181
- }))))) : null))));
182
- }
183
-
184
- AlertLookup.propTypes = _propTypes.propTypes;
185
- AlertLookup.defaultProps = _defaultProps.defaultProps;
File without changes
File without changes