@rh-support/components 2.1.48 → 2.1.50

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 (345) hide show
  1. package/lib/esm/Table/index.d.ts +0 -1
  2. package/lib/esm/Table/index.d.ts.map +1 -1
  3. package/lib/esm/Table/index.js +0 -1
  4. package/package.json +12 -23
  5. package/lib/cjs/AlertMessage/AlertMessage.css +0 -9
  6. package/lib/cjs/AlertMessage/AlertMessage.d.ts +0 -24
  7. package/lib/cjs/AlertMessage/AlertMessage.d.ts.map +0 -1
  8. package/lib/cjs/AlertMessage/AlertMessage.js +0 -30
  9. package/lib/cjs/AlertMessage/index.d.ts +0 -2
  10. package/lib/cjs/AlertMessage/index.d.ts.map +0 -1
  11. package/lib/cjs/AlertMessage/index.js +0 -18
  12. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -7
  13. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +0 -1
  14. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +0 -57
  15. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +0 -30
  16. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +0 -1
  17. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +0 -28
  18. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -1
  19. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +0 -1
  20. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +0 -36
  21. package/lib/cjs/ConfirmationModal/index.d.ts +0 -3
  22. package/lib/cjs/ConfirmationModal/index.d.ts.map +0 -1
  23. package/lib/cjs/ConfirmationModal/index.js +0 -18
  24. package/lib/cjs/CoverSpinner/CoverSpinner.css +0 -16
  25. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -4
  26. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +0 -1
  27. package/lib/cjs/CoverSpinner/CoverSpinner.js +0 -13
  28. package/lib/cjs/CoverSpinner/index.d.ts +0 -2
  29. package/lib/cjs/CoverSpinner/index.d.ts.map +0 -1
  30. package/lib/cjs/CoverSpinner/index.js +0 -17
  31. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts +0 -15
  32. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +0 -1
  33. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +0 -62
  34. package/lib/cjs/CustomContentLoader/index.d.ts +0 -2
  35. package/lib/cjs/CustomContentLoader/index.d.ts.map +0 -1
  36. package/lib/cjs/CustomContentLoader/index.js +0 -17
  37. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -14
  38. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +0 -1
  39. package/lib/cjs/CustomTextInput/CustomTextInput.js +0 -50
  40. package/lib/cjs/CustomTextInput/index.d.ts +0 -2
  41. package/lib/cjs/CustomTextInput/index.d.ts.map +0 -1
  42. package/lib/cjs/CustomTextInput/index.js +0 -17
  43. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts +0 -6
  44. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts.map +0 -1
  45. package/lib/cjs/DropDownList/AsyncDropDownList.js +0 -10
  46. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -9
  47. package/lib/cjs/DropDownList/DropDownList.d.ts.map +0 -1
  48. package/lib/cjs/DropDownList/DropDownList.js +0 -145
  49. package/lib/cjs/DropDownList/DropdownWrapper.d.ts +0 -16
  50. package/lib/cjs/DropDownList/DropdownWrapper.d.ts.map +0 -1
  51. package/lib/cjs/DropDownList/DropdownWrapper.js +0 -25
  52. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts +0 -4
  53. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts.map +0 -1
  54. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +0 -7
  55. package/lib/cjs/DropDownList/Readme.md +0 -114
  56. package/lib/cjs/DropDownList/SearchableList.d.ts +0 -14
  57. package/lib/cjs/DropDownList/SearchableList.d.ts.map +0 -1
  58. package/lib/cjs/DropDownList/SearchableList.js +0 -104
  59. package/lib/cjs/DropDownList/SelectList.d.ts +0 -11
  60. package/lib/cjs/DropDownList/SelectList.d.ts.map +0 -1
  61. package/lib/cjs/DropDownList/SelectList.js +0 -41
  62. package/lib/cjs/DropDownList/async.d.ts +0 -9
  63. package/lib/cjs/DropDownList/async.d.ts.map +0 -1
  64. package/lib/cjs/DropDownList/async.js +0 -142
  65. package/lib/cjs/DropDownList/dropdownList.css +0 -59
  66. package/lib/cjs/DropDownList/dropdownUtils.d.ts +0 -5
  67. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +0 -1
  68. package/lib/cjs/DropDownList/dropdownUtils.js +0 -29
  69. package/lib/cjs/DropDownList/index.d.ts +0 -4
  70. package/lib/cjs/DropDownList/index.d.ts.map +0 -1
  71. package/lib/cjs/DropDownList/index.js +0 -19
  72. package/lib/cjs/DropDownList/types.d.ts +0 -54
  73. package/lib/cjs/DropDownList/types.d.ts.map +0 -1
  74. package/lib/cjs/DropDownList/types.js +0 -2
  75. package/lib/cjs/DropDownList/withMulti.d.ts +0 -5
  76. package/lib/cjs/DropDownList/withMulti.d.ts.map +0 -1
  77. package/lib/cjs/DropDownList/withMulti.js +0 -73
  78. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts +0 -37
  79. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
  80. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +0 -66
  81. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -15
  82. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +0 -1
  83. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +0 -39
  84. package/lib/cjs/ErrorBoundary/index.d.ts +0 -2
  85. package/lib/cjs/ErrorBoundary/index.d.ts.map +0 -1
  86. package/lib/cjs/ErrorBoundary/index.js +0 -17
  87. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -3
  88. package/lib/cjs/ErrorPages/Generic403.d.ts.map +0 -1
  89. package/lib/cjs/ErrorPages/Generic403.js +0 -14
  90. package/lib/cjs/ErrorPages/index.d.ts +0 -2
  91. package/lib/cjs/ErrorPages/index.d.ts.map +0 -1
  92. package/lib/cjs/ErrorPages/index.js +0 -17
  93. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -12
  94. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +0 -1
  95. package/lib/cjs/FeedbackForm/FeedbackForm.js +0 -144
  96. package/lib/cjs/FeedbackForm/index.d.ts +0 -2
  97. package/lib/cjs/FeedbackForm/index.d.ts.map +0 -1
  98. package/lib/cjs/FeedbackForm/index.js +0 -17
  99. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts +0 -30
  100. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +0 -1
  101. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +0 -227
  102. package/lib/cjs/Functional/index.d.ts +0 -2
  103. package/lib/cjs/Functional/index.d.ts.map +0 -1
  104. package/lib/cjs/Functional/index.js +0 -17
  105. package/lib/cjs/InlineEdit/InlineEdit.d.ts +0 -37
  106. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +0 -1
  107. package/lib/cjs/InlineEdit/InlineEdit.js +0 -173
  108. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +0 -41
  109. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +0 -1
  110. package/lib/cjs/InlineEdit/NewInlineEdit.js +0 -182
  111. package/lib/cjs/InlineEdit/index.d.ts +0 -3
  112. package/lib/cjs/InlineEdit/index.d.ts.map +0 -1
  113. package/lib/cjs/InlineEdit/index.js +0 -18
  114. package/lib/cjs/InlineEdit/inlineEdit.css +0 -29
  115. package/lib/cjs/InlineEdit/newInlineEdit.css +0 -44
  116. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -26
  117. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +0 -1
  118. package/lib/cjs/LanguageSelector/LanguageSelector.js +0 -65
  119. package/lib/cjs/LanguageSelector/index.d.ts +0 -2
  120. package/lib/cjs/LanguageSelector/index.d.ts.map +0 -1
  121. package/lib/cjs/LanguageSelector/index.js +0 -17
  122. package/lib/cjs/LanguageSelector/languageSelector.css +0 -5
  123. package/lib/cjs/LoadingDots/LoadingDots.css +0 -33
  124. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -13
  125. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +0 -1
  126. package/lib/cjs/LoadingDots/LoadingDots.js +0 -25
  127. package/lib/cjs/LoadingDots/index.d.ts +0 -2
  128. package/lib/cjs/LoadingDots/index.d.ts.map +0 -1
  129. package/lib/cjs/LoadingDots/index.js +0 -18
  130. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -15
  131. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +0 -1
  132. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +0 -25
  133. package/lib/cjs/LoadingIndicator/index.d.ts +0 -2
  134. package/lib/cjs/LoadingIndicator/index.d.ts.map +0 -1
  135. package/lib/cjs/LoadingIndicator/index.js +0 -17
  136. package/lib/cjs/LoadingIndicator/loadingIndicator.css +0 -79
  137. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -15
  138. package/lib/cjs/LoginModal/LoginModal.d.ts.map +0 -1
  139. package/lib/cjs/LoginModal/LoginModal.js +0 -21
  140. package/lib/cjs/LoginModal/index.d.ts +0 -2
  141. package/lib/cjs/LoginModal/index.d.ts.map +0 -1
  142. package/lib/cjs/LoginModal/index.js +0 -17
  143. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts +0 -45
  144. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts.map +0 -1
  145. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +0 -442
  146. package/lib/cjs/MarkdownEditor/index.d.ts +0 -2
  147. package/lib/cjs/MarkdownEditor/index.d.ts.map +0 -1
  148. package/lib/cjs/MarkdownEditor/index.js +0 -17
  149. package/lib/cjs/MarkdownEditor/markdownEditor.css +0 -113
  150. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts +0 -13
  151. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts.map +0 -1
  152. package/lib/cjs/MoreOrLess/MoreOrLess.js +0 -75
  153. package/lib/cjs/MoreOrLess/index.d.ts +0 -2
  154. package/lib/cjs/MoreOrLess/index.d.ts.map +0 -1
  155. package/lib/cjs/MoreOrLess/index.js +0 -17
  156. package/lib/cjs/PaginatedList/PaginatedList.d.ts +0 -18
  157. package/lib/cjs/PaginatedList/PaginatedList.d.ts.map +0 -1
  158. package/lib/cjs/PaginatedList/PaginatedList.js +0 -67
  159. package/lib/cjs/PaginatedList/index.d.ts +0 -2
  160. package/lib/cjs/PaginatedList/index.d.ts.map +0 -1
  161. package/lib/cjs/PaginatedList/index.js +0 -17
  162. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -10
  163. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +0 -1
  164. package/lib/cjs/PaginationCompact/PaginationCompact.js +0 -67
  165. package/lib/cjs/PaginationCompact/index.d.ts +0 -2
  166. package/lib/cjs/PaginationCompact/index.d.ts.map +0 -1
  167. package/lib/cjs/PaginationCompact/index.js +0 -17
  168. package/lib/cjs/PaginationCompact/paginationCompact.css +0 -5
  169. package/lib/cjs/PhoneInput/CountryData.d.ts +0 -3
  170. package/lib/cjs/PhoneInput/CountryData.d.ts.map +0 -1
  171. package/lib/cjs/PhoneInput/CountryData.js +0 -583
  172. package/lib/cjs/PhoneInput/PhoneInput.d.ts +0 -20
  173. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +0 -1
  174. package/lib/cjs/PhoneInput/PhoneInput.js +0 -293
  175. package/lib/cjs/PhoneInput/PhoneInput.scss +0 -753
  176. package/lib/cjs/PhoneInput/flags.png +0 -0
  177. package/lib/cjs/PhoneInput/index.d.ts +0 -2
  178. package/lib/cjs/PhoneInput/index.d.ts.map +0 -1
  179. package/lib/cjs/PhoneInput/index.js +0 -17
  180. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -9
  181. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +0 -1
  182. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +0 -68
  183. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts +0 -12
  184. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts.map +0 -1
  185. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +0 -39
  186. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts +0 -6
  187. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts.map +0 -1
  188. package/lib/cjs/ProgressBar/CircularProgressBar/constants.js +0 -8
  189. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts +0 -2
  190. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts.map +0 -1
  191. package/lib/cjs/ProgressBar/CircularProgressBar/index.js +0 -17
  192. package/lib/cjs/ProgressBar/CircularProgressBar/styles.css +0 -60
  193. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts +0 -32
  194. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts.map +0 -1
  195. package/lib/cjs/ProgressBar/CircularProgressBar/types.js +0 -2
  196. package/lib/cjs/ProgressBar/ProgressBar.d.ts +0 -15
  197. package/lib/cjs/ProgressBar/ProgressBar.d.ts.map +0 -1
  198. package/lib/cjs/ProgressBar/ProgressBar.js +0 -36
  199. package/lib/cjs/ProgressBar/index.d.ts +0 -3
  200. package/lib/cjs/ProgressBar/index.d.ts.map +0 -1
  201. package/lib/cjs/ProgressBar/index.js +0 -18
  202. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts +0 -15
  203. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts.map +0 -1
  204. package/lib/cjs/PromisifyModal/PromisifyModal.js +0 -43
  205. package/lib/cjs/PromisifyModal/index.d.ts +0 -2
  206. package/lib/cjs/PromisifyModal/index.d.ts.map +0 -1
  207. package/lib/cjs/PromisifyModal/index.js +0 -17
  208. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -8
  209. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +0 -1
  210. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +0 -20
  211. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -5
  212. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +0 -1
  213. package/lib/cjs/SubscriptionAbuse/const.js +0 -15
  214. package/lib/cjs/SubscriptionAbuse/index.d.ts +0 -3
  215. package/lib/cjs/SubscriptionAbuse/index.d.ts.map +0 -1
  216. package/lib/cjs/SubscriptionAbuse/index.js +0 -18
  217. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -12
  218. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +0 -1
  219. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +0 -48
  220. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -11
  221. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +0 -1
  222. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +0 -182
  223. package/lib/cjs/SupportFeedbackForm/index.d.ts +0 -3
  224. package/lib/cjs/SupportFeedbackForm/index.d.ts.map +0 -1
  225. package/lib/cjs/SupportFeedbackForm/index.js +0 -18
  226. package/lib/cjs/Table/PFTable.d.ts +0 -40
  227. package/lib/cjs/Table/PFTable.d.ts.map +0 -1
  228. package/lib/cjs/Table/PFTable.js +0 -208
  229. package/lib/cjs/Table/README.md +0 -65
  230. package/lib/cjs/Table/TableColumnSelector.d.ts +0 -8
  231. package/lib/cjs/Table/TableColumnSelector.d.ts.map +0 -1
  232. package/lib/cjs/Table/TableColumnSelector.js +0 -34
  233. package/lib/cjs/Table/TableComponent.d.ts +0 -11
  234. package/lib/cjs/Table/TableComponent.d.ts.map +0 -1
  235. package/lib/cjs/Table/TableComponent.js +0 -42
  236. package/lib/cjs/Table/TablePagination.d.ts +0 -19
  237. package/lib/cjs/Table/TablePagination.d.ts.map +0 -1
  238. package/lib/cjs/Table/TablePagination.js +0 -50
  239. package/lib/cjs/Table/TableProvider.d.ts +0 -15
  240. package/lib/cjs/Table/TableProvider.d.ts.map +0 -1
  241. package/lib/cjs/Table/TableProvider.js +0 -25
  242. package/lib/cjs/Table/columnSelector.css +0 -41
  243. package/lib/cjs/Table/index.d.ts +0 -5
  244. package/lib/cjs/Table/index.d.ts.map +0 -1
  245. package/lib/cjs/Table/index.js +0 -20
  246. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -15
  247. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +0 -1
  248. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +0 -121
  249. package/lib/cjs/TermsAndConditions/index.d.ts +0 -2
  250. package/lib/cjs/TermsAndConditions/index.d.ts.map +0 -1
  251. package/lib/cjs/TermsAndConditions/index.js +0 -17
  252. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts +0 -8
  253. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts.map +0 -1
  254. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +0 -140
  255. package/lib/cjs/TextAreaAutosize/index.d.ts +0 -2
  256. package/lib/cjs/TextAreaAutosize/index.d.ts.map +0 -1
  257. package/lib/cjs/TextAreaAutosize/index.js +0 -17
  258. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts +0 -20
  259. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts.map +0 -1
  260. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +0 -60
  261. package/lib/cjs/TextAreaResizable/index.d.ts +0 -2
  262. package/lib/cjs/TextAreaResizable/index.d.ts.map +0 -1
  263. package/lib/cjs/TextAreaResizable/index.js +0 -17
  264. package/lib/cjs/ToastNotification/ToastNotification.d.ts +0 -28
  265. package/lib/cjs/ToastNotification/ToastNotification.d.ts.map +0 -1
  266. package/lib/cjs/ToastNotification/ToastNotification.js +0 -71
  267. package/lib/cjs/ToastNotification/index.d.ts +0 -2
  268. package/lib/cjs/ToastNotification/index.d.ts.map +0 -1
  269. package/lib/cjs/ToastNotification/index.js +0 -17
  270. package/lib/cjs/ToastNotification/toastNotification.css +0 -22
  271. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts +0 -14
  272. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts.map +0 -1
  273. package/lib/cjs/TopContentSearch/TopContentSearch.js +0 -143
  274. package/lib/cjs/TopContentSearch/index.d.ts +0 -2
  275. package/lib/cjs/TopContentSearch/index.d.ts.map +0 -1
  276. package/lib/cjs/TopContentSearch/index.js +0 -17
  277. package/lib/cjs/TopContentSearch/topContentSearch.scss +0 -22
  278. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts +0 -14
  279. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts.map +0 -1
  280. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +0 -80
  281. package/lib/cjs/ValueChangedIcon/index.d.ts +0 -2
  282. package/lib/cjs/ValueChangedIcon/index.d.ts.map +0 -1
  283. package/lib/cjs/ValueChangedIcon/index.js +0 -17
  284. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -13
  285. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +0 -1
  286. package/lib/cjs/helperFunctions/errorMessage.js +0 -95
  287. package/lib/cjs/helperFunctions/errorMessage.scss +0 -3
  288. package/lib/cjs/helperFunctions/index.d.ts +0 -2
  289. package/lib/cjs/helperFunctions/index.d.ts.map +0 -1
  290. package/lib/cjs/helperFunctions/index.js +0 -17
  291. package/lib/cjs/hooks/index.d.ts +0 -15
  292. package/lib/cjs/hooks/index.d.ts.map +0 -1
  293. package/lib/cjs/hooks/index.js +0 -30
  294. package/lib/cjs/hooks/useBreakpoint.d.ts +0 -12
  295. package/lib/cjs/hooks/useBreakpoint.d.ts.map +0 -1
  296. package/lib/cjs/hooks/useBreakpoint.js +0 -91
  297. package/lib/cjs/hooks/useCopyToClipboard.d.ts +0 -6
  298. package/lib/cjs/hooks/useCopyToClipboard.d.ts.map +0 -1
  299. package/lib/cjs/hooks/useCopyToClipboard.js +0 -40
  300. package/lib/cjs/hooks/useDebounce.d.ts +0 -9
  301. package/lib/cjs/hooks/useDebounce.d.ts.map +0 -1
  302. package/lib/cjs/hooks/useDebounce.js +0 -40
  303. package/lib/cjs/hooks/useFetch.d.ts +0 -20
  304. package/lib/cjs/hooks/useFetch.d.ts.map +0 -1
  305. package/lib/cjs/hooks/useFetch.js +0 -70
  306. package/lib/cjs/hooks/useForceUpdate.d.ts +0 -18
  307. package/lib/cjs/hooks/useForceUpdate.d.ts.map +0 -1
  308. package/lib/cjs/hooks/useForceUpdate.js +0 -28
  309. package/lib/cjs/hooks/useForkRef.d.ts +0 -2
  310. package/lib/cjs/hooks/useForkRef.d.ts.map +0 -1
  311. package/lib/cjs/hooks/useForkRef.js +0 -29
  312. package/lib/cjs/hooks/useIsMounted.d.ts +0 -3
  313. package/lib/cjs/hooks/useIsMounted.d.ts.map +0 -1
  314. package/lib/cjs/hooks/useIsMounted.js +0 -18
  315. package/lib/cjs/hooks/useLRUCache.d.ts +0 -8
  316. package/lib/cjs/hooks/useLRUCache.d.ts.map +0 -1
  317. package/lib/cjs/hooks/useLRUCache.js +0 -28
  318. package/lib/cjs/hooks/useLocalStorage.d.ts +0 -5
  319. package/lib/cjs/hooks/useLocalStorage.d.ts.map +0 -1
  320. package/lib/cjs/hooks/useLocalStorage.js +0 -39
  321. package/lib/cjs/hooks/useOnScreen.d.ts +0 -2
  322. package/lib/cjs/hooks/useOnScreen.d.ts.map +0 -1
  323. package/lib/cjs/hooks/useOnScreen.js +0 -18
  324. package/lib/cjs/hooks/usePolling.d.ts +0 -2
  325. package/lib/cjs/hooks/usePolling.d.ts.map +0 -1
  326. package/lib/cjs/hooks/usePolling.js +0 -19
  327. package/lib/cjs/hooks/usePrevious.d.ts +0 -2
  328. package/lib/cjs/hooks/usePrevious.d.ts.map +0 -1
  329. package/lib/cjs/hooks/usePrevious.js +0 -12
  330. package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts +0 -13
  331. package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts.map +0 -1
  332. package/lib/cjs/hooks/useSelectKeyboardNavigator.js +0 -58
  333. package/lib/cjs/hooks/useTitle.d.ts +0 -2
  334. package/lib/cjs/hooks/useTitle.d.ts.map +0 -1
  335. package/lib/cjs/hooks/useTitle.js +0 -14
  336. package/lib/cjs/hooks/useUndo.d.ts +0 -22
  337. package/lib/cjs/hooks/useUndo.d.ts.map +0 -1
  338. package/lib/cjs/hooks/useUndo.js +0 -76
  339. package/lib/cjs/index.d.ts +0 -34
  340. package/lib/cjs/index.d.ts.map +0 -1
  341. package/lib/cjs/index.js +0 -49
  342. package/lib/esm/Table/TableColumnSelector.d.ts +0 -8
  343. package/lib/esm/Table/TableColumnSelector.d.ts.map +0 -1
  344. package/lib/esm/Table/TableColumnSelector.js +0 -27
  345. package/lib/esm/Table/columnSelector.css +0 -41
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { IAsyncOnlyProps, IDropdownListBasePropsForAsync } from './types';
3
- export declare function useAsync<OptionType, DropdownPropsType extends IDropdownListBasePropsForAsync<OptionType>>(props: DropdownPropsType & IAsyncOnlyProps<OptionType>): DropdownPropsType;
4
- export declare function withAsync<DropdownPropsType extends IDropdownListBasePropsForAsync<OptionType>, OptionType>(WrappedComponent: React.ComponentType<DropdownPropsType>): {
5
- (props: DropdownPropsType & IAsyncOnlyProps<OptionType>): React.JSX.Element;
6
- displayName: string;
7
- defaultProps: {};
8
- };
9
- //# sourceMappingURL=async.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/async.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,eAAe,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAiB1E,wBAAgB,QAAQ,CAAC,UAAU,EAAE,iBAAiB,SAAS,8BAA8B,CAAC,UAAU,CAAC,EACrG,KAAK,EAAE,iBAAiB,GAAG,eAAe,CAAC,UAAU,CAAC,GACvD,iBAAiB,CA6HnB;AAED,wBAAgB,SAAS,CAAC,iBAAiB,SAAS,8BAA8B,CAAC,UAAU,CAAC,EAAE,UAAU,EACtG,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC;YAE1B,iBAAiB,GAAG,gBAAgB,UAAU,CAAC;;;EAUhF"}
@@ -1,142 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __rest = (this && this.__rest) || function (s, e) {
26
- var t = {};
27
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
- t[p] = s[p];
29
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
- t[p[i]] = s[p[i]];
33
- }
34
- return t;
35
- };
36
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.withAsync = exports.useAsync = void 0;
41
- const debounce_1 = __importDefault(require("lodash/debounce"));
42
- const react_1 = __importStar(require("react"));
43
- const hooks_1 = require("../hooks");
44
- const usePrevious_1 = require("../hooks/usePrevious");
45
- // Most of the code credit goes to
46
- // https://github.com/ericgio/react-bootstrap-typeahead/blob/master/src/behaviors/async.js
47
- const defaultProps = {
48
- delay: 200,
49
- minLength: 2,
50
- promptText: '',
51
- searchText: 'Searching...',
52
- useCache: false,
53
- };
54
- function useAsync(props) {
55
- const { delay, isLoadingList, minLength, onInputChange, onSearch, useCache, list, onInputBlur, emptyListLabel, onClearSelection, suggestedItems } = props, otherProps = __rest(props, ["delay", "isLoadingList", "minLength", "onInputChange", "onSearch", "useCache", "list", "onInputBlur", "emptyListLabel", "onClearSelection", "suggestedItems"]);
56
- const { getFromCache, setInCache, clearCache } = (0, hooks_1.useLRUCache)(25);
57
- const handleSearchDebouncedRef = (0, react_1.useRef)();
58
- const queryRef = (0, react_1.useRef)('');
59
- const forceUpdate = (0, hooks_1.useForceUpdate)();
60
- const prevProps = (0, usePrevious_1.usePrevious)(props);
61
- const handleSearch = (0, react_1.useCallback)((query) => {
62
- queryRef.current = query;
63
- if (!query || (minLength && query.length < minLength)) {
64
- return;
65
- }
66
- // Use cached results, if applicable.
67
- if (useCache && getFromCache(query)) {
68
- // Re-render the component with the cached results.
69
- forceUpdate();
70
- return;
71
- }
72
- // Perform the search.
73
- onSearch(query);
74
- },
75
- // eslint-disable-next-line react-hooks/exhaustive-deps
76
- [forceUpdate, minLength, onSearch, useCache]);
77
- // Set the debounced search function.
78
- (0, react_1.useEffect)(() => {
79
- handleSearchDebouncedRef.current = (0, debounce_1.default)(handleSearch, delay);
80
- return () => {
81
- handleSearchDebouncedRef.current && handleSearchDebouncedRef.current.cancel();
82
- };
83
- }, [delay, handleSearch]);
84
- (0, react_1.useEffect)(() => {
85
- // Ensure that we've gone from a loading to a completed state. Otherwise
86
- // an empty response could get cached if the component updates during the
87
- // request (eg: if the parent re-renders for some reason).
88
- // NOTE: There is a limitation that empty responses will not be cached.
89
- const listToCache = list.filter((item) => !item.isNotSearchable);
90
- if (!isLoadingList && useCache && queryRef.current && (listToCache || []).length > 0) {
91
- setInCache(queryRef.current, list);
92
- }
93
- // eslint-disable-next-line react-hooks/exhaustive-deps
94
- }, [list, isLoadingList, useCache]);
95
- (0, react_1.useEffect)(() => {
96
- if (prevProps && prevProps.useCache && !useCache) {
97
- clearCache();
98
- }
99
- return () => {
100
- clearCache();
101
- };
102
- // eslint-disable-next-line react-hooks/exhaustive-deps
103
- }, [useCache]);
104
- const getEmptyLabel = () => {
105
- if (!queryRef.current.length) {
106
- return props.promptText;
107
- }
108
- if (isLoadingList) {
109
- return props.searchText;
110
- }
111
- return emptyListLabel;
112
- };
113
- const handleInputBlur = (e) => {
114
- onInputBlur && onInputBlur(e);
115
- };
116
- const handleClearSelection = () => {
117
- onClearSelection && onClearSelection();
118
- queryRef.current = '';
119
- };
120
- const handleInputChange = (0, react_1.useCallback)((query) => {
121
- onInputChange && onInputChange(query);
122
- handleSearchDebouncedRef.current && handleSearchDebouncedRef.current(query);
123
- }, [onInputChange]);
124
- const cachedQuery = getFromCache(queryRef.current);
125
- return Object.assign(Object.assign({}, otherProps), { isLoadingList,
126
- minLength, onInputChange: handleInputChange, emptyListLabel: getEmptyLabel(), list: useCache && cachedQuery
127
- ? cachedQuery
128
- : !queryRef.current
129
- ? (suggestedItems || []).length > 0
130
- ? suggestedItems
131
- : list
132
- : list, onInputBlur: handleInputBlur, searchable: true, onClearSelection: handleClearSelection, isAsyncSearch: true });
133
- }
134
- exports.useAsync = useAsync;
135
- function withAsync(WrappedComponent) {
136
- const AsyncDropdown = (props) => (react_1.default.createElement(WrappedComponent, Object.assign({}, useAsync(props))));
137
- const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
138
- AsyncDropdown.displayName = `withAsync${displayName}`;
139
- AsyncDropdown.defaultProps = defaultProps;
140
- return AsyncDropdown;
141
- }
142
- exports.withAsync = withAsync;
@@ -1,59 +0,0 @@
1
- .downshift {
2
- position: relative;
3
- }
4
-
5
- .downshift input {
6
- border: none;
7
- padding: 6px;
8
- }
9
-
10
- .downshift > .pf-v5-c-select__toggle.form-invalid {
11
- border-bottom: 2px solid #c9190b;
12
- }
13
-
14
- .downshift > .pf-v5-c-select__toggle.form-invalid[disabled] {
15
- background-color: #ededed;
16
- border-color: #ededed;
17
- }
18
-
19
- .downshift .downshift-menu li[disabled] {
20
- background: #f0f0f0;
21
- cursor: not-allowed;
22
- opacity: 0.3;
23
- }
24
-
25
- .downshift .downshift-menu .downshift-item.highlighted:not(:hover) {
26
- background-color: #ededed;
27
- }
28
-
29
- .downshift .downshift-menu li.dropdown-divider {
30
- height: 0;
31
- padding: 0;
32
- overflow: hidden;
33
- border-top: 1px solid #e9ecef;
34
- }
35
-
36
- .downshift .pf-v5-c-select__placeholder-text {
37
- color: #6a6e73;
38
- }
39
-
40
- .downshift .pf-v5-c-select__menu-wrapper {
41
- display: flex;
42
- }
43
-
44
- .downshift .pf-v5-c-select__menu-wrapper:hover {
45
- background-color: rgb(240, 240, 240);
46
- }
47
-
48
- .downshift .downshift-menu.open {
49
- visibility: visible;
50
- z-index: 89;
51
- }
52
-
53
- .downshift .downshift-menu {
54
- visibility: hidden;
55
- }
56
-
57
- .hide-in-pdf {
58
- display: none !important;
59
- }
@@ -1,5 +0,0 @@
1
- import { IOption } from '@rh-support/types/shared';
2
- export declare function itemToString<T>(item: IOption<T>): string;
3
- export declare const noop: () => void;
4
- export declare const multiSelectDropdownStateReducer: (state: any, actionAndChanges: any) => any;
5
- //# sourceMappingURL=dropdownUtils.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.multiSelectDropdownStateReducer = exports.noop = exports.itemToString = void 0;
4
- const downshift_1 = require("downshift");
5
- function itemToString(item) {
6
- return item ? item.label : '';
7
- }
8
- exports.itemToString = itemToString;
9
- const noop = () => { };
10
- exports.noop = noop;
11
- const multiSelectDropdownStateReducer = (state, actionAndChanges) => {
12
- const { changes, type } = actionAndChanges;
13
- switch (type) {
14
- case downshift_1.useSelect.stateChangeTypes.MenuKeyDownSpaceButton:
15
- return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex });
16
- case downshift_1.useSelect.stateChangeTypes.MenuKeyDownEnter:
17
- case downshift_1.useSelect.stateChangeTypes.ItemClick:
18
- return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
19
- case downshift_1.useCombobox.stateChangeTypes.InputKeyDownEnter:
20
- return Object.assign(Object.assign({}, changes), { inputValue: state.inputValue });
21
- case downshift_1.useCombobox.stateChangeTypes.ItemClick:
22
- return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
23
- case downshift_1.useCombobox.stateChangeTypes.InputBlur:
24
- return Object.assign({}, changes);
25
- default:
26
- return changes;
27
- }
28
- };
29
- exports.multiSelectDropdownStateReducer = multiSelectDropdownStateReducer;
@@ -1,4 +0,0 @@
1
- export * from './DropDownList';
2
- export * from './AsyncDropDownList';
3
- export * from './MultiSelectDropdownList';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./DropDownList"), exports);
18
- __exportStar(require("./AsyncDropDownList"), exports);
19
- __exportStar(require("./MultiSelectDropdownList"), exports);
@@ -1,54 +0,0 @@
1
- /// <reference types="react" />
2
- import { IDClassNameProps, IOption } from '@rh-support/types/shared';
3
- export interface IDropdownListProps<T> extends IDClassNameProps {
4
- list: Array<IOption<T>>;
5
- selectedItem: IOption<T>;
6
- placeholder?: string;
7
- title: string;
8
- disabled?: boolean;
9
- isLoadingList?: boolean;
10
- searchable?: boolean;
11
- isInValid?: boolean;
12
- required?: boolean;
13
- name?: string;
14
- onOuterClick?: (selectedItem: IOption<T>) => void;
15
- onClearSelection?: () => void;
16
- onChange: (selection: IOption<T>) => any;
17
- onMenuToggle?: () => void;
18
- 'data-tracking-id'?: string;
19
- filterListOnMenuOpen?: boolean;
20
- onInputChange?: (query: string) => void;
21
- paginate?: boolean;
22
- maxResults?: number;
23
- onPaginate?: (resultShown: number, inputVal: string, e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
24
- emptyListLabel?: string;
25
- onInputBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
26
- paginationBtnText?: string;
27
- isAsyncSearch?: boolean;
28
- multiSelect?: boolean;
29
- isSelectedItem?: (item: IOption<T>) => boolean;
30
- label?: string | React.ReactNode;
31
- hasTwoColumns?: boolean;
32
- chipGroupComponent?: React.ReactNode;
33
- hideToggleButton?: boolean;
34
- isExportingPDF?: boolean;
35
- }
36
- export type IMultiSelectOnlyProps<T> = {
37
- selectedItems?: Array<IOption<T>>;
38
- onChange: (selectedItems: IOption<T>[]) => any;
39
- onOuterClick?: (selectedItems: IOption<T>[]) => any;
40
- };
41
- export type IDropdownListBasePropsForMultiSelect<T> = Omit<IDropdownListProps<T>, 'onChange' | 'onOuterClick' | 'multiSelect' | 'selectedItem' | 'isSelectedItem' | 'isAsyncSearch'>;
42
- export type MultiSelectDropdownProps<T> = IDropdownListBasePropsForMultiSelect<T> & IMultiSelectOnlyProps<T>;
43
- export type IAsyncOnlyProps<T> = {
44
- delay?: number;
45
- minLength?: number;
46
- onSearch: (string: any) => void;
47
- promptText?: string;
48
- searchText?: string;
49
- useCache?: boolean;
50
- suggestedItems?: Array<IOption<T>>;
51
- };
52
- export type IDropdownListBasePropsForAsync<T> = Omit<IDropdownListProps<T>, 'isAsyncSearch' | 'searchable' | 'multiSelect'> | MultiSelectDropdownProps<T>;
53
- export type AsyncDropdownProps<T> = Omit<IDropdownListProps<T>, 'isAsyncSearch' | 'searchable' | 'multiSelect'> & IAsyncOnlyProps<T>;
54
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/types.ts"],"names":[],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { IDropdownListBasePropsForMultiSelect, IMultiSelectOnlyProps } from './types';
3
- export declare function useMulti<OptionType, DropdownPropsType extends IDropdownListBasePropsForMultiSelect<OptionType>>(props: DropdownPropsType & IMultiSelectOnlyProps<OptionType>): DropdownPropsType;
4
- export declare function withMulti<DropdownPropsType extends IDropdownListBasePropsForMultiSelect<OptionType>, OptionType>(WrappedComponent: React.ComponentType<DropdownPropsType>): React.ForwardRefExoticComponent<React.PropsWithoutRef<DropdownPropsType & IMultiSelectOnlyProps<OptionType>> & React.RefAttributes<unknown>>;
5
- //# sourceMappingURL=withMulti.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withMulti.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/withMulti.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,oCAAoC,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAMtF,wBAAgB,QAAQ,CAAC,UAAU,EAAE,iBAAiB,SAAS,oCAAoC,CAAC,UAAU,CAAC,EAC3G,KAAK,EAAE,iBAAiB,GAAG,qBAAqB,CAAC,UAAU,CAAC,GAC7D,iBAAiB,CA8BnB;AAED,wBAAgB,SAAS,CAAC,iBAAiB,SAAS,oCAAoC,CAAC,UAAU,CAAC,EAAE,UAAU,EAC5G,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,gJAY3D"}
@@ -1,73 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __rest = (this && this.__rest) || function (s, e) {
26
- var t = {};
27
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
- t[p] = s[p];
29
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
- t[p[i]] = s[p[i]];
33
- }
34
- return t;
35
- };
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.withMulti = exports.useMulti = void 0;
38
- const react_1 = __importStar(require("react"));
39
- const dropdownUtils_1 = require("./dropdownUtils");
40
- const defaultProps = {
41
- selectedItems: [],
42
- };
43
- function useMulti(props) {
44
- const { selectedItems, onChange } = props, rest = __rest(props, ["selectedItems", "onChange"]);
45
- const onChangeLocal = (selectedItem) => {
46
- let newItems = (selectedItems || []).slice();
47
- const selectedItemsLabel = props.selectedItems.filter((item) => !item.isNotSelectable).map(dropdownUtils_1.itemToString);
48
- const selectedItemLabel = (0, dropdownUtils_1.itemToString)(selectedItem);
49
- if (selectedItemsLabel.includes(selectedItemLabel)) {
50
- newItems = selectedItems.filter((i) => (0, dropdownUtils_1.itemToString)(i) !== (0, dropdownUtils_1.itemToString)(selectedItem));
51
- }
52
- else {
53
- newItems.push(selectedItem);
54
- }
55
- props.onChange && props.onChange(newItems);
56
- };
57
- const onOuterClickLocal = () => {
58
- props.onOuterClick && props.onOuterClick(props.selectedItems);
59
- };
60
- const isSelectedItemLocal = (item) => {
61
- return !item.isNotSelectable && props.selectedItems.map(dropdownUtils_1.itemToString).includes((0, dropdownUtils_1.itemToString)(item));
62
- };
63
- return Object.assign(Object.assign({}, rest), { multiSelect: true, onChange: onChangeLocal, selectedItem: null, onOuterClick: onOuterClickLocal, isSelectedItem: isSelectedItemLocal });
64
- }
65
- exports.useMulti = useMulti;
66
- function withMulti(WrappedComponent) {
67
- const MultiSelectDropdown = (0, react_1.forwardRef)((props, ref) => (react_1.default.createElement(WrappedComponent, Object.assign({}, useMulti(props), { ref: ref }))));
68
- const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
69
- MultiSelectDropdown.displayName = `withMulti${displayName}`;
70
- MultiSelectDropdown.defaultProps = defaultProps;
71
- return MultiSelectDropdown;
72
- }
73
- exports.withMulti = withMulti;
@@ -1,37 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { IErrorMsgInfo } from './ErrorBoundaryFallbackComponent';
3
- interface IProps {
4
- children: React.PropsWithChildren | React.ReactNode;
5
- sentryAppName?: string;
6
- FallbackComponent?: React.ElementType;
7
- errorMsgInfo?: IErrorMsgInfo;
8
- isPageLevelError?: boolean;
9
- onError?: (error: Error, componentStack: string) => void;
10
- }
11
- interface IState {
12
- hasError: boolean;
13
- }
14
- declare global {
15
- interface Window {
16
- app: string;
17
- sessionjs: any;
18
- supportVersionInfo: {
19
- packageVersion: string;
20
- hydrajs: string;
21
- };
22
- seVersionInfo: {
23
- packageVersion: string;
24
- hydrajs: string;
25
- };
26
- }
27
- }
28
- export declare class ErrorBoundary extends Component<IProps, IState> {
29
- constructor(props: any);
30
- static getDerivedStateFromError(): {
31
- hasError: boolean;
32
- };
33
- componentDidCatch(error: Error, errorInfo: any): void;
34
- render(): React.JSX.Element;
35
- }
36
- export {};
37
- //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAkC,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjG,UAAU,MAAM;IACZ,QAAQ,EAAE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,SAAS,CAAC;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACtC,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5D;AAED,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,kBAAkB,EAAE;YAChB,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,aAAa,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL;CACJ;AAED,qBAAa,aAAc,SAAQ,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;gBAC5C,KAAK,KAAA;IAKjB,MAAM,CAAC,wBAAwB;;;IAK/B,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,KAAA;IAiBzC,MAAM;CAcT"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ErrorBoundary = void 0;
27
- const hydrajs_1 = require("@cee-eng/hydrajs");
28
- const utils_1 = require("@rh-support/utils");
29
- const react_1 = __importStar(require("react"));
30
- const ErrorBoundaryFallbackComponent_1 = require("./ErrorBoundaryFallbackComponent");
31
- class ErrorBoundary extends react_1.Component {
32
- constructor(props) {
33
- super(props);
34
- this.state = { hasError: false };
35
- }
36
- static getDerivedStateFromError() {
37
- // Update state so the next render will show the fallback UI.
38
- return { hasError: true };
39
- }
40
- componentDidCatch(error, errorInfo) {
41
- if (hydrajs_1.Env.isLocalEnv())
42
- return;
43
- const { onError } = this.props;
44
- if (typeof onError === 'function') {
45
- try {
46
- onError.call(this, error, errorInfo || '');
47
- }
48
- catch (ignoredError) { }
49
- }
50
- // log error to sentry
51
- window.sessionjs.reportProblem(error, {
52
- tags: {
53
- portal_app: window.app || this.props.sentryAppName || 'Portal Case Management',
54
- package_version: (0, utils_1.getAppVersion)(),
55
- },
56
- });
57
- }
58
- render() {
59
- const { children, FallbackComponent } = this.props;
60
- if (this.state.hasError) {
61
- return this.props.FallbackComponent ? (react_1.default.createElement(FallbackComponent, null)) : (react_1.default.createElement(ErrorBoundaryFallbackComponent_1.ErrorBoundaryFallbackComponent, Object.assign({ isPageLevelError: this.props.isPageLevelError }, this.props.errorMsgInfo)));
62
- }
63
- return react_1.default.createElement(react_1.default.Fragment, null, children || null);
64
- }
65
- }
66
- exports.ErrorBoundary = ErrorBoundary;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- export interface IErrorMsgInfo {
3
- errorType?: 'info' | 'warning' | 'error';
4
- title?: string;
5
- message?: string;
6
- }
7
- interface IProps extends IErrorMsgInfo {
8
- isPageLevelError: boolean;
9
- }
10
- declare function ErrorBoundaryFallbackComponent(props: IProps): React.JSX.Element;
11
- declare namespace ErrorBoundaryFallbackComponent {
12
- var defaultProps: IProps;
13
- }
14
- export { ErrorBoundaryFallbackComponent };
15
- //# sourceMappingURL=ErrorBoundaryFallbackComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorBoundaryFallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundaryFallbackComponent.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,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,qBA+BpD;kBA/BQ,8BAA8B;;;AAkCvC,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ErrorBoundaryFallbackComponent = void 0;
7
- const react_core_1 = require("@patternfly/react-core");
8
- const exclamation_circle_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon"));
9
- const global_danger_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_danger_color_200"));
10
- const global_info_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_info_color_200"));
11
- const global_warning_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_warning_color_200"));
12
- const react_1 = __importDefault(require("react"));
13
- const react_i18next_1 = require("react-i18next");
14
- const defaultProps = {
15
- errorType: 'error',
16
- title: 'Unexpected Error Occured',
17
- message: 'There was an unexpected error. Please try refreshing the page.',
18
- isPageLevelError: false,
19
- };
20
- function ErrorBoundaryFallbackComponent(props) {
21
- const { t } = (0, react_i18next_1.useTranslation)();
22
- const getIconColor = () => {
23
- switch (props.errorType) {
24
- case 'info':
25
- return global_info_color_200_1.default.value;
26
- case 'warning':
27
- return global_warning_color_200_1.default.value;
28
- case 'error':
29
- return global_danger_color_200_1.default.value;
30
- }
31
- };
32
- return (react_1.default.createElement("div", { className: props.isPageLevelError ? 'container' : '' },
33
- react_1.default.createElement(react_core_1.Bullseye, null,
34
- react_1.default.createElement(react_core_1.EmptyState, { variant: react_core_1.EmptyStateVariant.sm },
35
- react_1.default.createElement(react_core_1.EmptyStateHeader, { titleText: react_1.default.createElement(react_1.default.Fragment, null, t(props.title)), icon: react_1.default.createElement(react_core_1.EmptyStateIcon, { icon: exclamation_circle_icon_1.default, color: props.isPageLevelError ? getIconColor() : global_warning_color_200_1.default.value }), headingLevel: "h2" }),
36
- react_1.default.createElement(react_core_1.EmptyStateBody, null, t(props.message))))));
37
- }
38
- exports.ErrorBoundaryFallbackComponent = ErrorBoundaryFallbackComponent;
39
- ErrorBoundaryFallbackComponent.defaultProps = defaultProps;
@@ -1,2 +0,0 @@
1
- export * from './ErrorBoundary';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ErrorBoundary"), exports);
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare function Generic403(): React.JSX.Element;
3
- //# sourceMappingURL=Generic403.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Generic403.d.ts","sourceRoot":"","sources":["../../../src/ErrorPages/Generic403.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,UAAU,sBAQzB"}