@rh-support/components 2.0.4 → 2.0.7-beta.1

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 (286) hide show
  1. package/lib/cjs/AlertMessage/AlertMessage.js +5 -5
  2. package/lib/cjs/AlertMessage/index.d.ts +0 -1
  3. package/lib/cjs/AlertMessage/index.d.ts.map +1 -1
  4. package/lib/cjs/AlertMessage/index.js +1 -1
  5. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  6. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  7. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +13 -41
  8. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +4 -2
  9. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  10. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +7 -6
  11. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -6
  12. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -1
  13. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +29 -69
  14. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -1
  15. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  16. package/lib/cjs/CoverSpinner/CoverSpinner.js +1 -1
  17. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  18. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +25 -25
  19. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -1
  20. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  21. package/lib/cjs/CustomTextInput/CustomTextInput.js +10 -21
  22. package/lib/cjs/DropDownList/AsyncDropDownList.js +5 -5
  23. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -1
  24. package/lib/cjs/DropDownList/DropDownList.d.ts.map +1 -1
  25. package/lib/cjs/DropDownList/DropDownList.js +45 -75
  26. package/lib/cjs/DropDownList/DropdownWrapper.js +7 -18
  27. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +3 -3
  28. package/lib/cjs/DropDownList/SearchableList.d.ts +1 -0
  29. package/lib/cjs/DropDownList/SearchableList.d.ts.map +1 -1
  30. package/lib/cjs/DropDownList/SearchableList.js +45 -55
  31. package/lib/cjs/DropDownList/SelectList.js +15 -26
  32. package/lib/cjs/DropDownList/async.js +28 -38
  33. package/lib/cjs/DropDownList/dropdownList.css +1 -1
  34. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +1 -1
  35. package/lib/cjs/DropDownList/dropdownUtils.js +9 -19
  36. package/lib/cjs/DropDownList/types.d.ts +1 -0
  37. package/lib/cjs/DropDownList/types.d.ts.map +1 -1
  38. package/lib/cjs/DropDownList/withMulti.js +15 -26
  39. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +18 -47
  40. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  41. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  42. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +10 -10
  43. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -1
  44. package/lib/cjs/ErrorPages/Generic403.d.ts.map +1 -1
  45. package/lib/cjs/ErrorPages/Generic403.js +2 -2
  46. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -1
  47. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  48. package/lib/cjs/FeedbackForm/FeedbackForm.js +24 -52
  49. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  50. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +81 -154
  51. package/lib/cjs/InlineEdit/InlineEdit.d.ts +1 -0
  52. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +1 -1
  53. package/lib/cjs/InlineEdit/InlineEdit.js +58 -144
  54. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +1 -0
  55. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  56. package/lib/cjs/InlineEdit/NewInlineEdit.js +62 -147
  57. package/lib/cjs/InlineEdit/inlineEdit.css +4 -0
  58. package/lib/cjs/InlineEdit/newInlineEdit.css +4 -0
  59. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -1
  60. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  61. package/lib/cjs/LanguageSelector/LanguageSelector.js +10 -26
  62. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -1
  63. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +1 -1
  64. package/lib/cjs/LoadingDots/LoadingDots.js +4 -4
  65. package/lib/cjs/LoadingDots/index.d.ts +0 -1
  66. package/lib/cjs/LoadingDots/index.d.ts.map +1 -1
  67. package/lib/cjs/LoadingDots/index.js +1 -1
  68. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  69. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  70. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +3 -3
  71. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -1
  72. package/lib/cjs/LoginModal/LoginModal.d.ts.map +1 -1
  73. package/lib/cjs/LoginModal/LoginModal.js +3 -3
  74. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +113 -165
  75. package/lib/cjs/MoreOrLess/MoreOrLess.js +20 -40
  76. package/lib/cjs/PaginatedList/PaginatedList.js +15 -31
  77. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -1
  78. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  79. package/lib/cjs/PaginationCompact/PaginationCompact.js +14 -31
  80. package/lib/cjs/PhoneInput/CountryData.d.ts +3 -0
  81. package/lib/cjs/PhoneInput/CountryData.d.ts.map +1 -0
  82. package/lib/cjs/PhoneInput/CountryData.js +583 -0
  83. package/lib/cjs/PhoneInput/PhoneInput.d.ts +19 -0
  84. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +1 -0
  85. package/lib/cjs/PhoneInput/PhoneInput.js +284 -0
  86. package/lib/cjs/PhoneInput/PhoneInput.scss +753 -0
  87. package/lib/cjs/PhoneInput/flags.png +0 -0
  88. package/lib/cjs/PhoneInput/index.d.ts +2 -0
  89. package/lib/cjs/PhoneInput/index.d.ts.map +1 -0
  90. package/lib/cjs/PhoneInput/index.js +13 -0
  91. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  92. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  93. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +14 -14
  94. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +20 -18
  95. package/lib/cjs/ProgressBar/ProgressBar.js +8 -19
  96. package/lib/cjs/PromisifyModal/PromisifyModal.js +19 -36
  97. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  98. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  99. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +5 -5
  100. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -1
  101. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +1 -1
  102. package/lib/cjs/SubscriptionAbuse/const.js +3 -3
  103. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  104. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  105. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +8 -24
  106. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  107. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  108. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +50 -120
  109. package/lib/cjs/Table/PFTable.js +52 -89
  110. package/lib/cjs/Table/Table.js +12 -29
  111. package/lib/cjs/Table/TableColumnSelector.d.ts +0 -1
  112. package/lib/cjs/Table/TableColumnSelector.d.ts.map +1 -1
  113. package/lib/cjs/Table/TableColumnSelector.js +14 -15
  114. package/lib/cjs/Table/TablePagination.d.ts +0 -1
  115. package/lib/cjs/Table/TablePagination.d.ts.map +1 -1
  116. package/lib/cjs/Table/TablePagination.js +8 -8
  117. package/lib/cjs/Table/TableProvider.js +6 -6
  118. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  119. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  120. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +46 -100
  121. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +35 -62
  122. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +12 -25
  123. package/lib/cjs/ToastNotification/ToastNotification.js +35 -70
  124. package/lib/cjs/TopContentSearch/TopContentSearch.js +48 -113
  125. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +13 -29
  126. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -1
  127. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +1 -1
  128. package/lib/cjs/helperFunctions/errorMessage.js +13 -13
  129. package/lib/cjs/hooks/useBreakpoint.js +26 -43
  130. package/lib/cjs/hooks/useCopyToClipboard.js +8 -24
  131. package/lib/cjs/hooks/useDebounce.js +13 -38
  132. package/lib/cjs/hooks/useFetch.js +47 -123
  133. package/lib/cjs/hooks/useForceUpdate.js +2 -18
  134. package/lib/cjs/hooks/useForkRef.js +3 -3
  135. package/lib/cjs/hooks/useIsMounted.js +4 -4
  136. package/lib/cjs/hooks/useLRUCache.js +11 -11
  137. package/lib/cjs/hooks/useLocalStorage.js +7 -23
  138. package/lib/cjs/hooks/useOnScreen.js +5 -24
  139. package/lib/cjs/hooks/usePolling.js +8 -30
  140. package/lib/cjs/hooks/usePrevious.js +3 -3
  141. package/lib/cjs/hooks/useTitle.js +4 -4
  142. package/lib/cjs/hooks/useUndo.js +49 -72
  143. package/lib/cjs/index.d.ts +1 -0
  144. package/lib/cjs/index.d.ts.map +1 -1
  145. package/lib/cjs/index.js +1 -0
  146. package/lib/esm/AlertMessage/AlertMessage.js +2 -2
  147. package/lib/esm/AlertMessage/index.d.ts +0 -1
  148. package/lib/esm/AlertMessage/index.d.ts.map +1 -1
  149. package/lib/esm/AlertMessage/index.js +1 -1
  150. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  151. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  152. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts +4 -2
  153. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  154. package/lib/esm/ConfirmationModal/ConfirmationDialog.js +3 -2
  155. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -6
  156. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -1
  157. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.js +19 -18
  158. package/lib/esm/CoverSpinner/CoverSpinner.d.ts +0 -1
  159. package/lib/esm/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  160. package/lib/esm/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  161. package/lib/esm/CustomContentLoader/CustomContentLoader.js +23 -23
  162. package/lib/esm/CustomTextInput/CustomTextInput.d.ts +0 -1
  163. package/lib/esm/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  164. package/lib/esm/CustomTextInput/CustomTextInput.js +1 -1
  165. package/lib/esm/DropDownList/DropDownList.d.ts +0 -1
  166. package/lib/esm/DropDownList/DropDownList.d.ts.map +1 -1
  167. package/lib/esm/DropDownList/SearchableList.d.ts +1 -0
  168. package/lib/esm/DropDownList/SearchableList.d.ts.map +1 -1
  169. package/lib/esm/DropDownList/SearchableList.js +6 -2
  170. package/lib/esm/DropDownList/dropdownList.css +1 -1
  171. package/lib/esm/DropDownList/dropdownUtils.d.ts.map +1 -1
  172. package/lib/esm/DropDownList/dropdownUtils.js +1 -0
  173. package/lib/esm/DropDownList/types.d.ts +1 -0
  174. package/lib/esm/DropDownList/types.d.ts.map +1 -1
  175. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  176. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  177. package/lib/esm/ErrorPages/Generic403.d.ts +0 -1
  178. package/lib/esm/ErrorPages/Generic403.d.ts.map +1 -1
  179. package/lib/esm/FeedbackForm/FeedbackForm.d.ts +0 -1
  180. package/lib/esm/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  181. package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  182. package/lib/esm/Functional/CaseContactsSelectorExternal.js +2 -2
  183. package/lib/esm/InlineEdit/InlineEdit.d.ts +1 -0
  184. package/lib/esm/InlineEdit/InlineEdit.d.ts.map +1 -1
  185. package/lib/esm/InlineEdit/InlineEdit.js +3 -3
  186. package/lib/esm/InlineEdit/NewInlineEdit.d.ts +1 -0
  187. package/lib/esm/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  188. package/lib/esm/InlineEdit/NewInlineEdit.js +3 -3
  189. package/lib/esm/InlineEdit/inlineEdit.css +4 -0
  190. package/lib/esm/InlineEdit/newInlineEdit.css +4 -0
  191. package/lib/esm/LanguageSelector/LanguageSelector.d.ts +0 -1
  192. package/lib/esm/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  193. package/lib/esm/LoadingDots/LoadingDots.d.ts +0 -1
  194. package/lib/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
  195. package/lib/esm/LoadingDots/LoadingDots.js +1 -1
  196. package/lib/esm/LoadingDots/index.d.ts +0 -1
  197. package/lib/esm/LoadingDots/index.d.ts.map +1 -1
  198. package/lib/esm/LoadingDots/index.js +1 -1
  199. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  200. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  201. package/lib/esm/LoginModal/LoginModal.d.ts +0 -1
  202. package/lib/esm/LoginModal/LoginModal.d.ts.map +1 -1
  203. package/lib/esm/PaginationCompact/PaginationCompact.d.ts +0 -1
  204. package/lib/esm/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  205. package/lib/esm/PhoneInput/CountryData.d.ts +3 -0
  206. package/lib/esm/PhoneInput/CountryData.d.ts.map +1 -0
  207. package/lib/esm/PhoneInput/CountryData.js +580 -0
  208. package/lib/esm/PhoneInput/PhoneInput.d.ts +19 -0
  209. package/lib/esm/PhoneInput/PhoneInput.d.ts.map +1 -0
  210. package/lib/esm/PhoneInput/PhoneInput.js +257 -0
  211. package/lib/esm/PhoneInput/PhoneInput.scss +753 -0
  212. package/lib/esm/PhoneInput/flags.png +0 -0
  213. package/lib/esm/PhoneInput/index.d.ts +2 -0
  214. package/lib/esm/PhoneInput/index.d.ts.map +1 -0
  215. package/lib/esm/PhoneInput/index.js +1 -0
  216. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  217. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  218. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  219. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  220. package/lib/esm/SubscriptionAbuse/const.d.ts +0 -1
  221. package/lib/esm/SubscriptionAbuse/const.d.ts.map +1 -1
  222. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  223. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  224. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  225. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  226. package/lib/esm/Table/TableColumnSelector.d.ts +0 -1
  227. package/lib/esm/Table/TableColumnSelector.d.ts.map +1 -1
  228. package/lib/esm/Table/TablePagination.d.ts +0 -1
  229. package/lib/esm/Table/TablePagination.d.ts.map +1 -1
  230. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  231. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  232. package/lib/esm/TextAreaResizable/TextAreaResizable.js +1 -1
  233. package/lib/esm/helperFunctions/errorMessage.d.ts +0 -1
  234. package/lib/esm/helperFunctions/errorMessage.d.ts.map +1 -1
  235. package/lib/esm/index.d.ts +1 -0
  236. package/lib/esm/index.d.ts.map +1 -1
  237. package/lib/esm/index.js +1 -0
  238. package/package.json +16 -30
  239. package/lib/cjs/AlertMessage/AlertMessage.stories.d.ts +0 -12
  240. package/lib/cjs/AlertMessage/AlertMessage.stories.d.ts.map +0 -1
  241. package/lib/cjs/AlertMessage/AlertMessage.stories.js +0 -29
  242. package/lib/cjs/DropDownList/Dropdownlist.stories.d.ts +0 -17
  243. package/lib/cjs/DropDownList/Dropdownlist.stories.d.ts.map +0 -1
  244. package/lib/cjs/DropDownList/Dropdownlist.stories.js +0 -253
  245. package/lib/cjs/LoadingDots/LoadingDots.stories.d.ts +0 -10
  246. package/lib/cjs/LoadingDots/LoadingDots.stories.d.ts.map +0 -1
  247. package/lib/cjs/LoadingDots/LoadingDots.stories.js +0 -16
  248. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
  249. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  250. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.js +0 -18
  251. package/lib/cjs/Table/PFTable.stories.d.ts +0 -20
  252. package/lib/cjs/Table/PFTable.stories.d.ts.map +0 -1
  253. package/lib/cjs/Table/PFTable.stories.js +0 -81
  254. package/lib/cjs/demo/Demo.css +0 -3
  255. package/lib/cjs/demo/Demo.d.ts +0 -13
  256. package/lib/cjs/demo/Demo.d.ts.map +0 -1
  257. package/lib/cjs/demo/Demo.js +0 -42
  258. package/lib/cjs/demo/Demo.md +0 -0
  259. package/lib/cjs/demo/Demo.scss +0 -3
  260. package/lib/cjs/demo/index.d.ts +0 -3
  261. package/lib/cjs/demo/index.d.ts.map +0 -1
  262. package/lib/cjs/demo/index.js +0 -23
  263. package/lib/esm/AlertMessage/AlertMessage.stories.d.ts +0 -12
  264. package/lib/esm/AlertMessage/AlertMessage.stories.d.ts.map +0 -1
  265. package/lib/esm/AlertMessage/AlertMessage.stories.js +0 -20
  266. package/lib/esm/DropDownList/Dropdownlist.stories.d.ts +0 -17
  267. package/lib/esm/DropDownList/Dropdownlist.stories.d.ts.map +0 -1
  268. package/lib/esm/DropDownList/Dropdownlist.stories.js +0 -156
  269. package/lib/esm/LoadingDots/LoadingDots.stories.d.ts +0 -10
  270. package/lib/esm/LoadingDots/LoadingDots.stories.d.ts.map +0 -1
  271. package/lib/esm/LoadingDots/LoadingDots.stories.js +0 -8
  272. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
  273. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  274. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.js +0 -9
  275. package/lib/esm/Table/PFTable.stories.d.ts +0 -20
  276. package/lib/esm/Table/PFTable.stories.d.ts.map +0 -1
  277. package/lib/esm/Table/PFTable.stories.js +0 -73
  278. package/lib/esm/demo/Demo.css +0 -3
  279. package/lib/esm/demo/Demo.d.ts +0 -13
  280. package/lib/esm/demo/Demo.d.ts.map +0 -1
  281. package/lib/esm/demo/Demo.js +0 -26
  282. package/lib/esm/demo/Demo.md +0 -0
  283. package/lib/esm/demo/Demo.scss +0 -3
  284. package/lib/esm/demo/index.d.ts +0 -3
  285. package/lib/esm/demo/index.d.ts.map +0 -1
  286. package/lib/esm/demo/index.js +0 -2
@@ -17,8 +17,8 @@ function AlertMessage(props) {
17
17
  return null;
18
18
  }
19
19
  // If there is no title then the children node becomes the title to have a better styling
20
- const alertMsg = props.title || props.children;
21
- return (React.createElement(Alert, { label: props.title, className: props.className, variant: props.variant, title: alertMsg, isInline: props.isInline, actionClose: !!props.onClose ? React.createElement(AlertActionCloseButton, { onClose: props.onClose }) : null }, props.title ? props.children : React.createElement(React.Fragment, null)));
20
+ const alertMsgTitle = props.title || props.children;
21
+ return (React.createElement(Alert, { label: props.title, className: props.className, variant: props.variant, title: alertMsgTitle, isInline: props.isInline, actionClose: !!props.onClose ? React.createElement(AlertActionCloseButton, { onClose: props.onClose }) : null }, props.title ? props.children : React.createElement(React.Fragment, null)));
22
22
  }
23
23
  AlertMessage.defaultProps = defaultProps;
24
24
  export { AlertMessage };
@@ -1,3 +1,2 @@
1
1
  export * from './AlertMessage';
2
- export * from './AlertMessage.stories';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AlertMessage/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AlertMessage/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export * from './AlertMessage';
2
- export * from './AlertMessage.stories';
2
+ //export * from './AlertMessage.stories';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfirmationOptions } from './ConfirmationDialog';
3
2
  export declare const useConfirmation: () => (options: ConfirmationOptions) => Promise<void>;
4
3
  export declare const ConfirmationServiceProvider: ({ children }: {
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmationContext.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationContext.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAsB,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI/E,eAAO,MAAM,eAAe,kBAFqC,mBAAmB,KAAK,QAAQ,IAAI,CAE1B,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;iBA2CvC,CAAC"}
1
+ {"version":3,"file":"ConfirmationContext.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI/E,eAAO,MAAM,eAAe,kBAFqC,mBAAmB,KAAK,QAAQ,IAAI,CAE1B,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;iBA2CvC,CAAC"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { ButtonVariant } from '@patternfly/react-core';
1
+ import { ButtonVariant, ModalVariant } from '@patternfly/react-core';
3
2
  export interface ConfirmationOptions {
4
3
  catchOnCancel?: boolean;
5
4
  title?: string;
@@ -8,11 +7,13 @@ export interface ConfirmationOptions {
8
7
  confirmButtonVariant?: ButtonVariant;
9
8
  cancelText?: string;
10
9
  cancelButtonVariant?: ButtonVariant;
10
+ modalVariant?: ModalVariant;
11
11
  }
12
12
  interface IProps extends ConfirmationOptions {
13
13
  open: boolean;
14
14
  onConfirm: () => void;
15
15
  onClose: () => void;
16
+ modalVariant?: ModalVariant;
16
17
  }
17
18
  declare function ConfirmationDialog(props: IProps): JSX.Element;
18
19
  declare namespace ConfirmationDialog {
@@ -21,6 +22,7 @@ declare namespace ConfirmationDialog {
21
22
  cancelText: string;
22
23
  confirmButtonVariant: ButtonVariant;
23
24
  cancelButtonVariant: ButtonVariant;
25
+ modalVariant: ModalVariant;
24
26
  };
25
27
  }
26
28
  export { ConfirmationDialog };
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAU,aAAa,EAAS,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,mBAAmB;IAChC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC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BQ,kBAAkB;;;;;;;;;AAwB3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Button, ButtonVariant, Modal } from '@patternfly/react-core';
1
+ import { Button, ButtonVariant, Modal, ModalVariant } from '@patternfly/react-core';
2
2
  import React from 'react';
3
3
  import { Trans, useTranslation } from 'react-i18next';
4
4
  const defaultProps = {
@@ -6,10 +6,11 @@ const defaultProps = {
6
6
  cancelText: 'Cancel',
7
7
  confirmButtonVariant: ButtonVariant.primary,
8
8
  cancelButtonVariant: ButtonVariant.link,
9
+ modalVariant: ModalVariant.medium,
9
10
  };
10
11
  function ConfirmationDialog(props) {
11
12
  const { t } = useTranslation();
12
- return (React.createElement(Modal, { width: '50%', "aria-describedby": "se-confirm-dialog", "aria-label": t('confirmation modal'), title: props.title || null, isOpen: props.open, onClose: props.onClose, actions: [
13
+ return (React.createElement(Modal, { variant: props.modalVariant, "aria-describedby": "se-confirm-dialog", "aria-label": t('confirmation modal'), title: props.title || '', isOpen: props.open, onClose: props.onClose, actions: [
13
14
  React.createElement(Button, { key: "confirm", onClick: props.onConfirm, variant: props.confirmButtonVariant },
14
15
  React.createElement(Trans, null, props.confirmText)),
15
16
  React.createElement(Button, { key: "cancel", onClick: props.onClose, variant: props.cancelButtonVariant },
@@ -1,7 +1 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ConfirmDialog: () => JSX.Element;
7
1
  //# sourceMappingURL=ConfirmationModal.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmationModal.stories.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationModal.stories.tsx"],"names":[],"mappings":";;;;AAIA,wBAEE;AAwBF,eAAO,MAAM,aAAa,mBAIzB,CAAC"}
1
+ {"version":3,"file":"ConfirmationModal.stories.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationModal.stories.tsx"],"names":[],"mappings":""}
@@ -1,35 +1,36 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import React from 'react';
1
+ /*import React from 'react';
2
+
11
3
  import { ConfirmationServiceProvider, useConfirmation } from './ConfirmationContext';
4
+
12
5
  export default {
13
6
  title: 'Components/ConfirmationModal',
14
7
  };
8
+
15
9
  const options = {
16
10
  catchOnCancel: true,
17
11
  title: 'Title',
18
12
  description: 'Decroption',
19
13
  };
14
+
20
15
  const ActionPage = () => {
21
16
  const confirm = useConfirmation();
22
- const action = () => () => __awaiter(void 0, void 0, void 0, function* () {
17
+
18
+ const action = () => async () => {
23
19
  try {
24
- yield confirm(options);
20
+ await confirm(options);
25
21
  // confirmed, continue
26
22
  // rest of code
27
- }
28
- catch (e) {
23
+ } catch (e) {
29
24
  // didn't confirm
30
25
  }
31
- });
32
- return React.createElement("button", { onClick: action() }, "action link");
26
+ };
27
+
28
+ return <button onClick={action()}>action link</button>;
33
29
  };
34
- export const ConfirmDialog = () => (React.createElement(ConfirmationServiceProvider, null,
35
- React.createElement(ActionPage, null)));
30
+
31
+ export const ConfirmDialog = () => (
32
+ <ConfirmationServiceProvider>
33
+ <ActionPage />
34
+ </ConfirmationServiceProvider>
35
+ );
36
+ */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './CoverSpinner.css';
3
2
  export declare function CoverSpinner(): JSX.Element;
4
3
  //# sourceMappingURL=CoverSpinner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoverSpinner.d.ts","sourceRoot":"","sources":["../../../src/CoverSpinner/CoverSpinner.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAI5B,wBAAgB,YAAY,gBAM3B"}
1
+ {"version":3,"file":"CoverSpinner.d.ts","sourceRoot":"","sources":["../../../src/CoverSpinner/CoverSpinner.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAI5B,wBAAgB,YAAY,gBAM3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomContentLoader.d.ts","sourceRoot":"","sources":["../../../src/CustomContentLoader/CustomContentLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,qBAAqB,gBAgEpC;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,2BAA2B;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,2BAA2B,eAMrE"}
1
+ {"version":3,"file":"CustomContentLoader.d.ts","sourceRoot":"","sources":["../../../src/CustomContentLoader/CustomContentLoader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,qBAAqB,gBAgEpC;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,2BAA2B;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,2BAA2B,eAUrE"}
@@ -1,23 +1,23 @@
1
+ import { Skeleton } from '@patternfly/react-core';
1
2
  import React from 'react';
2
- import ContentLoader from 'react-content-loader';
3
3
  export function OverviewContentLoader() {
4
4
  return (React.createElement("div", { style: { width: '100%', position: 'relative' } },
5
- React.createElement(ContentLoader, { height: '900', width: '70%' },
6
- React.createElement("rect", { x: "2.3%", y: "50", width: "15%", height: "30" }),
7
- React.createElement("rect", { x: "2.3%", y: "95", width: "12%", height: "25" }),
8
- React.createElement("rect", { x: "2.3%", y: "140", width: "50%", height: "25" }),
9
- React.createElement("rect", { x: "2.3%", y: "190", width: "100%", height: "150" }),
10
- React.createElement("rect", { x: "2.3%", y: "370", width: "100%", height: "120" }),
11
- React.createElement("rect", { x: "2.3%", y: "520", width: "100%", height: "50" }),
12
- React.createElement("rect", { x: "3%", y: "590", width: "10%", height: "25" }),
13
- React.createElement("rect", { x: "3%", y: "635", width: "43%", height: "25" }),
14
- React.createElement("rect", { x: "55%", y: "590", width: "10%", height: "25" }),
15
- React.createElement("rect", { x: "55%", y: "635", width: "43%", height: "25" }),
16
- React.createElement("rect", { x: "3%", y: "695", width: "10%", height: "25" }),
17
- React.createElement("rect", { x: "3%", y: "740", width: "95%", height: "25" }),
18
- React.createElement("rect", { x: "2.3%", y: "570", width: "1", height: "220" }),
19
- React.createElement("rect", { x: "99.9%", y: "570", width: "1", height: "220" }),
20
- React.createElement("rect", { x: "2.3%", y: "790", width: "100%", height: "1" })),
5
+ React.createElement("div", { style: { width: '70%', height: '900px', position: 'relative' } },
6
+ React.createElement(Skeleton, { height: "30px", width: "15%", style: { top: '50px', left: '2.3%' } }),
7
+ React.createElement(Skeleton, { height: "25px", width: "12%", style: { top: '95px', left: '2.3%' } }),
8
+ React.createElement(Skeleton, { height: "25px", width: "50%", style: { top: '140px', left: '2.3%' } }),
9
+ React.createElement(Skeleton, { height: "150px", width: "97.7%", style: { top: '190px', left: '2.3%' } }),
10
+ React.createElement(Skeleton, { height: "120px", width: "97.7%", style: { top: '370px', left: '2.3%' } }),
11
+ React.createElement(Skeleton, { height: "50px", width: "97.7%", style: { top: '520px', left: '2.3%' } }),
12
+ React.createElement(Skeleton, { height: "25px", width: "10%", style: { top: '590px', left: '3%' } }),
13
+ React.createElement(Skeleton, { height: "25px", width: "43%", style: { top: '635px', left: '3%' } }),
14
+ React.createElement(Skeleton, { height: "25px", width: "10%", style: { top: '590px', left: '55%' } }),
15
+ React.createElement(Skeleton, { height: "25px", width: "43%", style: { top: '635px', left: '55%' } }),
16
+ React.createElement(Skeleton, { height: "25px", width: "10%", style: { top: '695px', left: '3%' } }),
17
+ React.createElement(Skeleton, { height: "25px", width: "95%", style: { top: '740px', left: '3%' } }),
18
+ React.createElement(Skeleton, { height: "220px", width: "1px", style: { top: '570px', left: '2.3%' } }),
19
+ React.createElement(Skeleton, { height: "220px", width: "1px", style: { top: '570px', left: '99.9%' } }),
20
+ React.createElement(Skeleton, { height: "1px", width: "97.7%", style: { top: '790px', left: '2.3%' } })),
21
21
  React.createElement("div", { style: {
22
22
  position: 'absolute',
23
23
  top: '0',
@@ -42,13 +42,13 @@ export function OverviewContentLoader() {
42
42
  bottom: '0',
43
43
  backgroundColor: '#ededed',
44
44
  } },
45
- React.createElement(ContentLoader, { height: '100%', width: '100%', backgroundColor: '#fff', foregroundColor: '#f5f6f7' },
46
- React.createElement("rect", { x: "3%", y: "40", height: "500", width: "94%" }),
47
- React.createElement("rect", { x: "3%", y: "570", height: "500", width: "94%" })))));
45
+ React.createElement("div", { className: "gray-loader-background", style: { height: '100%', width: '100%' } },
46
+ React.createElement(Skeleton, { height: "500px", width: "94%", style: { top: '40px', left: '3%' } }),
47
+ React.createElement(Skeleton, { height: "500px", width: "94%", style: { top: '570px', left: '3%' } })))));
48
48
  }
49
49
  export function CustomContentLoader(props) {
50
50
  const children = (props.rectangles &&
51
- props.rectangles.map((obj) => React.createElement("rect", { x: obj.x, y: obj.y, height: obj.height, width: obj.width }))) ||
52
- props.children || React.createElement("rect", { x: 0, y: 0, width: 400, height: 100 });
53
- return React.createElement(ContentLoader, null, children);
51
+ props.rectangles.map((obj) => (React.createElement(Skeleton, { height: obj.height, width: obj.width, style: { top: obj.y, left: obj.x } })))) ||
52
+ props.children || (React.createElement(Skeleton, { height: "100px", width: "400px", style: { position: 'relative', marginBottom: '50px' } }));
53
+ return React.createElement(React.Fragment, null, children);
54
54
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextInputProps } from '@patternfly/react-core';
3
2
  interface IProps extends TextInputProps {
4
3
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomTextInput.d.ts","sourceRoot":"","sources":["../../../src/CustomTextInput/CustomTextInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAoB,MAAM,wBAAwB,CAAC;AAIrF,UAAU,MAAO,SAAQ,cAAc;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,UAAW,MAAM,gBAqD5C,CAAC"}
1
+ {"version":3,"file":"CustomTextInput.d.ts","sourceRoot":"","sources":["../../../src/CustomTextInput/CustomTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAoB,MAAM,wBAAwB,CAAC;AAIrF,UAAU,MAAO,SAAQ,cAAc;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,UAAW,MAAM,gBAqD5C,CAAC"}
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { TextInput } from '@patternfly/react-core';
13
- import { isEmpty } from 'lodash';
13
+ import isEmpty from 'lodash/isEmpty';
14
14
  import React from 'react';
15
15
  export const CustomTextInput = (props) => {
16
16
  // To set defaultProps
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './dropdownList.css';
3
2
  import { IDropdownListProps } from './types';
4
3
  declare function Dropdown<T>(props: IDropdownListProps<T>): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"DropDownList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/DropDownList.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAa5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAuB7C,iBAAS,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,eAoJhD;kBApJQ,QAAQ;;;AAsJjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"DropDownList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/DropDownList.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAa5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAuB7C,iBAAS,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,eAoJhD;kBApJQ,QAAQ;;;AAsJjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -7,6 +7,7 @@ interface IProps<T> extends Omit<IDropdownListProps<T>, 'onChange' | 'onInputCha
7
7
  onChange: (changes: UseComboboxStateChange<IOption<T>>) => void;
8
8
  itemsList: IOption<T>[];
9
9
  onInputChange?: (items: IOption<T>[], inputValue: string) => void;
10
+ isPDFExporting?: boolean;
10
11
  }
11
12
  export default function SearchableList<T>(props: IProps<T>): JSX.Element;
12
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"SearchableList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/SearchableList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAEH,sBAAsB,EAEtB,sBAAsB,EAEzB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,MAAM,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;IACjF,eAAe,EAAE,CAAC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;IACtF,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAwIzD"}
1
+ {"version":3,"file":"SearchableList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/SearchableList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAEH,sBAAsB,EAEtB,sBAAsB,EAEzB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,MAAM,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;IACjF,eAAe,EAAE,CAAC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;IACtF,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eA+IzD"}
@@ -28,6 +28,8 @@ export default function SearchableList(props) {
28
28
  return Object.assign(Object.assign({}, changes), { inputValue: itemToString(props.selectedItem) && downshift.inputValue !== itemToString(props.selectedItem)
29
29
  ? itemToString(props.selectedItem)
30
30
  : state.inputValue });
31
+ case useCombobox.stateChangeTypes.InputKeyDownEnter:
32
+ return Object.assign(Object.assign({}, changes), { inputValue: state.inputValue });
31
33
  default:
32
34
  return changes;
33
35
  }
@@ -81,8 +83,10 @@ export default function SearchableList(props) {
81
83
  onBlur: onInputBlur(),
82
84
  })))),
83
85
  React.createElement(LoadingIndicator, { isInline: true, show: props.isLoadingList }),
84
- !isEmpty(downshift.inputValue) && !props.isLoadingList && (React.createElement("button", { className: "pf-c-button pf-m-plain pf-c-select__toggle-clear", onClick: clearSelection(), "aria-label": "clear selection", type: "button", title: "Clear selection", disabled: props.disabled, "data-tracking-id": `${props['data-tracking-id']}-clear` },
85
- React.createElement(TimesCircleIcon, null))),
86
+ !isEmpty(downshift.inputValue) &&
87
+ !props.isLoadingList &&
88
+ (!props.isExportingPDF ? (React.createElement("button", { className: "pf-c-button pf-m-plain pf-c-select__toggle-clear", onClick: clearSelection(), "aria-label": "clear selection", type: "button", title: "Clear selection", disabled: props.disabled, "data-tracking-id": `${props['data-tracking-id']}-clear` },
89
+ React.createElement(TimesCircleIcon, null))) : null),
86
90
  !props.hideToggleButton && (React.createElement("button", Object.assign({ type: "button" }, getToggleButtonProps({
87
91
  disabled: props.disabled || props.isLoadingList,
88
92
  className: 'pf-c-button pf-c-select__toggle-button pf-m-plain',
@@ -42,7 +42,7 @@
42
42
 
43
43
  .downshift .downshift-menu.open {
44
44
  visibility: visible;
45
- z-index: 200;
45
+ z-index: 89;
46
46
  }
47
47
 
48
48
  .downshift .downshift-menu {
@@ -1 +1 @@
1
- {"version":3,"file":"dropdownUtils.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/dropdownUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,+BAA+B,4CAgC3C,CAAC"}
1
+ {"version":3,"file":"dropdownUtils.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/dropdownUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,+BAA+B,4CAoC3C,CAAC"}
@@ -12,6 +12,7 @@ export const multiSelectDropdownStateReducer = (state, actionAndChanges) => {
12
12
  case useSelect.stateChangeTypes.ItemClick:
13
13
  return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
14
14
  case useCombobox.stateChangeTypes.InputKeyDownEnter:
15
+ return Object.assign(Object.assign({}, changes), { inputValue: state.inputValue });
15
16
  case useCombobox.stateChangeTypes.ItemClick:
16
17
  return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
17
18
  case useCombobox.stateChangeTypes.InputBlur:
@@ -31,6 +31,7 @@ export interface IDropdownListProps<T> extends IDClassNameProps {
31
31
  hasTwoColumns?: boolean;
32
32
  chipGroupComponent?: React.ReactNode;
33
33
  hideToggleButton?: boolean;
34
+ isExportingPDF?: boolean;
34
35
  }
35
36
  export declare type IMultiSelectOnlyProps<T> = {
36
37
  selectedItems?: Array<IOption<T>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAIrE,MAAM,WAAW,kBAAkB,CAAC,CAAC,CAAE,SAAQ,gBAAgB;IAC3D,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAClD,gBAAgB,CAAC,EA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OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,CAAC;AAEF,oBAAY,8BAA8B,CAAC,CAAC,IACtC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,eAAe,GAAG,YAAY,GAAG,aAAa,CAAC,GAC3E,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAElC,oBAAY,kBAAkB,CAAC,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,eAAe,GAAG,YAAY,GAAG,aAAa,CAAC,GAC3G,eAAe,CAAC,CAAC,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IErrorMsgInfo {
3
2
  errorType?: 'info' | 'warning' | 'error';
4
3
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundaryFallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundaryFallbackComponent.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,MAAO,SAAQ,aAAa;IAClC,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AASD,iBAAS,8BAA8B,CAAC,KAAK,EAAE,MAAM,eA4BpD;kBA5BQ,8BAA8B;;;AA+BvC,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"ErrorBoundaryFallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundaryFallbackComponent.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,MAAO,SAAQ,aAAa;IAClC,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AASD,iBAAS,8BAA8B,CAAC,KAAK,EAAE,MAAM,eA4BpD;kBA5BQ,8BAA8B;;;AA+BvC,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare function Generic403(): JSX.Element;
3
2
  //# sourceMappingURL=Generic403.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Generic403.d.ts","sourceRoot":"","sources":["../../../src/ErrorPages/Generic403.tsx"],"names":[],"mappings":";AAGA,wBAAgB,UAAU,gBAQzB"}
1
+ {"version":3,"file":"Generic403.d.ts","sourceRoot":"","sources":["../../../src/ErrorPages/Generic403.tsx"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,gBAQzB"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  buttonLabel: string;
4
3
  additionalBtnClass: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":";AAkBA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAID,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eA2OlC;kBA3OQ,YAAY;;;AA8OrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":"AAkBA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAID,iBAAS,YAAY,CAA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Contacts } from '@rh-support/utils';
23
- import { sortBy } from 'lodash';
24
23
  import differenceBy from 'lodash/differenceBy';
25
24
  import isArray from 'lodash/isArray';
26
25
  import isEmpty from 'lodash/isEmpty';
26
+ import sortBy from 'lodash/sortBy';
27
27
  import React, { useEffect, useRef, useState } from 'react';
28
28
  import { Highlighter, Menu, MenuItem, Typeahead } from 'react-bootstrap-typeahead';
29
29
  import { Trans } from 'react-i18next';
@@ -191,6 +191,6 @@ function CaseContactsSelectorExternal(props) {
191
191
  };
192
192
  return (React.createElement(Typeahead, Object.assign({}, restProps, { id: props.id || '',
193
193
  // @ts-expect-error
194
- className: props.className || '', filterBy: ['firstName', 'lastName', 'ssoUsername'], clearButton: !!props.clearButton, multiple: !!props.multiple, isLoading: contactList.isFetching || props.isUpdating, options: [...contactList.data, ...getCustomEmails()], selected: !isEmpty(props.selected) ? props.selected : [], onChange: onCustomerContactSelect, labelKey: props.multiple ? 'ssoUsername' : getHydraContactLabel, placeholder: props.placeholder || 'Search by name or username', renderMenuItemChildren: renderMenuItemChildren, onBlur: onCustomerContactSelectBlur, minLength: props.minLength || 0, disabled: isDisabled }, conditionalProps)));
194
+ className: props.className || '', filterBy: ['firstName', 'lastName', 'ssoUsername'], clearButton: !!props.clearButton, multiple: !!props.multiple, isLoading: contactList.isFetching || props.isUpdating, options: [...contactList.data, ...getCustomEmails()], selected: !isEmpty(props.selected) ? props.selected : [], onChange: onCustomerContactSelect, labelKey: props.multiple ? 'ssoUsername' : getHydraContactLabel, placeholder: props.placeholder || 'Search by name or username', renderMenuItemChildren: renderMenuItemChildren, onBlur: onCustomerContactSelectBlur, minLength: props.minLength || 0, disabled: isDisabled }, conditionalProps, { "data-tracking-id": "external-case-contact-selector" })));
195
195
  }
196
196
  export { CaseContactsSelectorExternal, renderMenuItemChildren, getHydraContactLabel };
@@ -27,6 +27,7 @@ interface IProps {
27
27
  hideLabel?: boolean;
28
28
  isSpaceAllowed?: boolean;
29
29
  inputValue?: string;
30
+ isExportingPDF?: boolean;
30
31
  }
31
32
  declare function InlineEdit(props: IProps): JSX.Element;
32
33
  declare namespace InlineEdit {
@@ -1 +1 @@
1
- {"version":3,"file":"InlineEdit.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/InlineEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAI1B,OAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAGnD,UAAU,MAAM;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,UAAU,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACxC,YAAY,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC1C,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC5C,gBAAgB,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAClC,SAAS,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAChC,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CA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AAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAsBD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,eAwKhC;kBAxKQ,UAAU;;;AA2KnB,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import './inlineEdit.css';
11
11
  import PencilAltIcon from '@patternfly/react-icons/dist/js/icons/pencil-alt-icon';
12
- import { isEmpty } from 'lodash';
12
+ import isEmpty from 'lodash/isEmpty';
13
13
  import React, { useState } from 'react';
14
14
  import { Trans } from 'react-i18next';
15
15
  const defaultProps = {
@@ -48,7 +48,7 @@ function InlineEdit(props) {
48
48
  if (!props.allowInlineEdit) {
49
49
  return null;
50
50
  }
51
- return (React.createElement("button", { className: "btn btn-link btn-app btn-edit", "aria-label": "Edit", onClick: onEditClicked },
51
+ return (React.createElement("button", { className: `btn btn-link btn-app btn-edit ${props.isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-label": "Edit", onClick: onEditClicked },
52
52
  React.createElement(PencilAltIcon, null)));
53
53
  };
54
54
  const onBlurChild = () => {
@@ -105,7 +105,7 @@ function InlineEdit(props) {
105
105
  !props.hideLabel && (React.createElement(React.Fragment, null,
106
106
  React.createElement("label", Object.assign({}, props.labelProps),
107
107
  React.createElement("span", { className: "label-edit" }, props.labelContent),
108
- props.helperContent,
108
+ React.createElement("span", { className: `${props.isExportingPDF ? 'hide-in-pdf' : ''}` }, props.helperContent),
109
109
  renderEditButton()))),
110
110
  renderSaveCancel(),
111
111
  canShowContent && !props.usePreformattedTag && (React.createElement(React.Fragment, null,
@@ -31,6 +31,7 @@ interface IProps {
31
31
  hideLabel?: boolean;
32
32
  isSpaceAllowed?: boolean;
33
33
  inputValue?: string;
34
+ isExportingPDF?: boolean;
34
35
  }
35
36
  declare function NewInlineEdit(props: IProps): JSX.Element;
36
37
  declare namespace NewInlineEdit {
@@ -1 +1 @@
1
- {"version":3,"file":"NewInlineEdit.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/NewInlineEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAI7B,OAAc,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAG9D,UAAU,MAAM;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,UAAU,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACxC,YAAY,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC1C,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC5C,gBAAgB,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,OAAO,GAAG,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,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAClC,SAAS,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAChC,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAG1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAsBD,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,eAyLnC;kBAzLQ,aAAa;;;AA4LtB,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import './newInlineEdit.css';
11
11
  import PencilAltIcon from '@patternfly/react-icons/dist/js/icons/pencil-alt-icon';
12
- import { isEmpty } from 'lodash';
12
+ import isEmpty from 'lodash/isEmpty';
13
13
  import React, { useEffect, useState } from 'react';
14
14
  import { Trans } from 'react-i18next';
15
15
  const defaultProps = {
@@ -54,7 +54,7 @@ function NewInlineEdit(props) {
54
54
  if (!props.allowInlineEdit) {
55
55
  return null;
56
56
  }
57
- return (React.createElement("button", { className: "btn btn-link btn-app btn-edit", "aria-label": "Edit", onClick: onEditClicked },
57
+ return (React.createElement("button", { className: `btn btn-link btn-app btn-edit ${props.isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-label": "Edit", onClick: onEditClicked },
58
58
  React.createElement(PencilAltIcon, null)));
59
59
  };
60
60
  const onBlurChild = () => {
@@ -112,7 +112,7 @@ function NewInlineEdit(props) {
112
112
  !props.hideLabel && (React.createElement(React.Fragment, null,
113
113
  React.createElement("label", Object.assign({}, props.labelProps),
114
114
  React.createElement("span", { className: "label-edit" }, props.labelContent),
115
- props.helperContent,
115
+ React.createElement("span", { className: `${props.isExportingPDF ? 'hide-in-pdf' : ''}` }, props.helperContent),
116
116
  !props.content && !isEditing ? renderEditButton() : null))),
117
117
  renderSaveCancel(),
118
118
  props.hideSaveCancel && isEditing && (React.createElement("span", { className: `
@@ -23,3 +23,7 @@
23
23
  .case-overview .edit-question .loading-indicator {
24
24
  margin-left: 0px;
25
25
  }
26
+
27
+ .hide-in-pdf {
28
+ display: none !important;
29
+ }
@@ -16,6 +16,10 @@
16
16
  float: right;
17
17
  }
18
18
 
19
+ .hide-in-pdf {
20
+ display: none !important;
21
+ }
22
+
19
23
  .edit-question .loading-indicator {
20
24
  margin-left: 10px;
21
25
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './languageSelector.css';
3
2
  import { IDClassNameProps } from '@rh-support/types/shared';
4
3
  interface IProps extends IDClassNameProps {
@@ -1 +1 @@
1
- {"version":3,"file":"LanguageSelector.d.ts","sourceRoot":"","sources":["../../../src/LanguageSelector/LanguageSelector.tsx"],"names":[],"mappings":";AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;CAWzB,CAAC;AAOF,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAyBtC;kBAzBQ,gBAAgB;;;AA4BzB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"LanguageSelector.d.ts","sourceRoot":"","sources":["../../../src/LanguageSelector/LanguageSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;CAWzB,CAAC;AAOF,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAyBtC;kBAzBQ,gBAAgB;;;AA4BzB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './LoadingDots.css';
3
2
  interface IProps {
4
3
  show?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/LoadingDots.tsx"],"names":[],"mappings":";AAAA,OAAO,mBAAmB,CAAC;AAK3B,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eAkBjC;kBAlBQ,WAAW;;;AAoBpB,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/LoadingDots.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAK3B,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eAkBjC;kBAlBQ,WAAW;;;AAoBpB,OAAO,EAAE,WAAW,EAAE,CAAC"}