@rh-support/components 2.1.49 → 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 (336) hide show
  1. package/lib/esm/helperFunctions/errorMessage.d.ts +1 -0
  2. package/lib/esm/helperFunctions/errorMessage.d.ts.map +1 -1
  3. package/package.json +10 -21
  4. package/lib/cjs/AlertMessage/AlertMessage.css +0 -9
  5. package/lib/cjs/AlertMessage/AlertMessage.d.ts +0 -24
  6. package/lib/cjs/AlertMessage/AlertMessage.d.ts.map +0 -1
  7. package/lib/cjs/AlertMessage/AlertMessage.js +0 -30
  8. package/lib/cjs/AlertMessage/index.d.ts +0 -2
  9. package/lib/cjs/AlertMessage/index.d.ts.map +0 -1
  10. package/lib/cjs/AlertMessage/index.js +0 -18
  11. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -7
  12. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +0 -1
  13. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +0 -57
  14. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +0 -30
  15. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +0 -1
  16. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +0 -28
  17. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -1
  18. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +0 -1
  19. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +0 -36
  20. package/lib/cjs/ConfirmationModal/index.d.ts +0 -3
  21. package/lib/cjs/ConfirmationModal/index.d.ts.map +0 -1
  22. package/lib/cjs/ConfirmationModal/index.js +0 -18
  23. package/lib/cjs/CoverSpinner/CoverSpinner.css +0 -16
  24. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -4
  25. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +0 -1
  26. package/lib/cjs/CoverSpinner/CoverSpinner.js +0 -13
  27. package/lib/cjs/CoverSpinner/index.d.ts +0 -2
  28. package/lib/cjs/CoverSpinner/index.d.ts.map +0 -1
  29. package/lib/cjs/CoverSpinner/index.js +0 -17
  30. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts +0 -15
  31. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +0 -1
  32. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +0 -62
  33. package/lib/cjs/CustomContentLoader/index.d.ts +0 -2
  34. package/lib/cjs/CustomContentLoader/index.d.ts.map +0 -1
  35. package/lib/cjs/CustomContentLoader/index.js +0 -17
  36. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -14
  37. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +0 -1
  38. package/lib/cjs/CustomTextInput/CustomTextInput.js +0 -50
  39. package/lib/cjs/CustomTextInput/index.d.ts +0 -2
  40. package/lib/cjs/CustomTextInput/index.d.ts.map +0 -1
  41. package/lib/cjs/CustomTextInput/index.js +0 -17
  42. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts +0 -6
  43. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts.map +0 -1
  44. package/lib/cjs/DropDownList/AsyncDropDownList.js +0 -10
  45. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -9
  46. package/lib/cjs/DropDownList/DropDownList.d.ts.map +0 -1
  47. package/lib/cjs/DropDownList/DropDownList.js +0 -145
  48. package/lib/cjs/DropDownList/DropdownWrapper.d.ts +0 -16
  49. package/lib/cjs/DropDownList/DropdownWrapper.d.ts.map +0 -1
  50. package/lib/cjs/DropDownList/DropdownWrapper.js +0 -25
  51. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts +0 -4
  52. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts.map +0 -1
  53. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +0 -7
  54. package/lib/cjs/DropDownList/Readme.md +0 -114
  55. package/lib/cjs/DropDownList/SearchableList.d.ts +0 -14
  56. package/lib/cjs/DropDownList/SearchableList.d.ts.map +0 -1
  57. package/lib/cjs/DropDownList/SearchableList.js +0 -104
  58. package/lib/cjs/DropDownList/SelectList.d.ts +0 -11
  59. package/lib/cjs/DropDownList/SelectList.d.ts.map +0 -1
  60. package/lib/cjs/DropDownList/SelectList.js +0 -41
  61. package/lib/cjs/DropDownList/async.d.ts +0 -9
  62. package/lib/cjs/DropDownList/async.d.ts.map +0 -1
  63. package/lib/cjs/DropDownList/async.js +0 -142
  64. package/lib/cjs/DropDownList/dropdownList.css +0 -59
  65. package/lib/cjs/DropDownList/dropdownUtils.d.ts +0 -5
  66. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +0 -1
  67. package/lib/cjs/DropDownList/dropdownUtils.js +0 -29
  68. package/lib/cjs/DropDownList/index.d.ts +0 -4
  69. package/lib/cjs/DropDownList/index.d.ts.map +0 -1
  70. package/lib/cjs/DropDownList/index.js +0 -19
  71. package/lib/cjs/DropDownList/types.d.ts +0 -54
  72. package/lib/cjs/DropDownList/types.d.ts.map +0 -1
  73. package/lib/cjs/DropDownList/types.js +0 -2
  74. package/lib/cjs/DropDownList/withMulti.d.ts +0 -5
  75. package/lib/cjs/DropDownList/withMulti.d.ts.map +0 -1
  76. package/lib/cjs/DropDownList/withMulti.js +0 -73
  77. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts +0 -37
  78. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
  79. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +0 -66
  80. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -15
  81. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +0 -1
  82. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +0 -39
  83. package/lib/cjs/ErrorBoundary/index.d.ts +0 -2
  84. package/lib/cjs/ErrorBoundary/index.d.ts.map +0 -1
  85. package/lib/cjs/ErrorBoundary/index.js +0 -17
  86. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -3
  87. package/lib/cjs/ErrorPages/Generic403.d.ts.map +0 -1
  88. package/lib/cjs/ErrorPages/Generic403.js +0 -14
  89. package/lib/cjs/ErrorPages/index.d.ts +0 -2
  90. package/lib/cjs/ErrorPages/index.d.ts.map +0 -1
  91. package/lib/cjs/ErrorPages/index.js +0 -17
  92. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -12
  93. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +0 -1
  94. package/lib/cjs/FeedbackForm/FeedbackForm.js +0 -144
  95. package/lib/cjs/FeedbackForm/index.d.ts +0 -2
  96. package/lib/cjs/FeedbackForm/index.d.ts.map +0 -1
  97. package/lib/cjs/FeedbackForm/index.js +0 -17
  98. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts +0 -30
  99. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +0 -1
  100. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +0 -227
  101. package/lib/cjs/Functional/index.d.ts +0 -2
  102. package/lib/cjs/Functional/index.d.ts.map +0 -1
  103. package/lib/cjs/Functional/index.js +0 -17
  104. package/lib/cjs/InlineEdit/InlineEdit.d.ts +0 -37
  105. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +0 -1
  106. package/lib/cjs/InlineEdit/InlineEdit.js +0 -173
  107. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +0 -41
  108. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +0 -1
  109. package/lib/cjs/InlineEdit/NewInlineEdit.js +0 -182
  110. package/lib/cjs/InlineEdit/index.d.ts +0 -3
  111. package/lib/cjs/InlineEdit/index.d.ts.map +0 -1
  112. package/lib/cjs/InlineEdit/index.js +0 -18
  113. package/lib/cjs/InlineEdit/inlineEdit.css +0 -29
  114. package/lib/cjs/InlineEdit/newInlineEdit.css +0 -44
  115. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -26
  116. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +0 -1
  117. package/lib/cjs/LanguageSelector/LanguageSelector.js +0 -65
  118. package/lib/cjs/LanguageSelector/index.d.ts +0 -2
  119. package/lib/cjs/LanguageSelector/index.d.ts.map +0 -1
  120. package/lib/cjs/LanguageSelector/index.js +0 -17
  121. package/lib/cjs/LanguageSelector/languageSelector.css +0 -5
  122. package/lib/cjs/LoadingDots/LoadingDots.css +0 -33
  123. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -13
  124. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +0 -1
  125. package/lib/cjs/LoadingDots/LoadingDots.js +0 -25
  126. package/lib/cjs/LoadingDots/index.d.ts +0 -2
  127. package/lib/cjs/LoadingDots/index.d.ts.map +0 -1
  128. package/lib/cjs/LoadingDots/index.js +0 -18
  129. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -15
  130. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +0 -1
  131. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +0 -25
  132. package/lib/cjs/LoadingIndicator/index.d.ts +0 -2
  133. package/lib/cjs/LoadingIndicator/index.d.ts.map +0 -1
  134. package/lib/cjs/LoadingIndicator/index.js +0 -17
  135. package/lib/cjs/LoadingIndicator/loadingIndicator.css +0 -79
  136. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -15
  137. package/lib/cjs/LoginModal/LoginModal.d.ts.map +0 -1
  138. package/lib/cjs/LoginModal/LoginModal.js +0 -21
  139. package/lib/cjs/LoginModal/index.d.ts +0 -2
  140. package/lib/cjs/LoginModal/index.d.ts.map +0 -1
  141. package/lib/cjs/LoginModal/index.js +0 -17
  142. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts +0 -45
  143. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts.map +0 -1
  144. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +0 -442
  145. package/lib/cjs/MarkdownEditor/index.d.ts +0 -2
  146. package/lib/cjs/MarkdownEditor/index.d.ts.map +0 -1
  147. package/lib/cjs/MarkdownEditor/index.js +0 -17
  148. package/lib/cjs/MarkdownEditor/markdownEditor.css +0 -113
  149. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts +0 -13
  150. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts.map +0 -1
  151. package/lib/cjs/MoreOrLess/MoreOrLess.js +0 -75
  152. package/lib/cjs/MoreOrLess/index.d.ts +0 -2
  153. package/lib/cjs/MoreOrLess/index.d.ts.map +0 -1
  154. package/lib/cjs/MoreOrLess/index.js +0 -17
  155. package/lib/cjs/PaginatedList/PaginatedList.d.ts +0 -18
  156. package/lib/cjs/PaginatedList/PaginatedList.d.ts.map +0 -1
  157. package/lib/cjs/PaginatedList/PaginatedList.js +0 -67
  158. package/lib/cjs/PaginatedList/index.d.ts +0 -2
  159. package/lib/cjs/PaginatedList/index.d.ts.map +0 -1
  160. package/lib/cjs/PaginatedList/index.js +0 -17
  161. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -10
  162. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +0 -1
  163. package/lib/cjs/PaginationCompact/PaginationCompact.js +0 -67
  164. package/lib/cjs/PaginationCompact/index.d.ts +0 -2
  165. package/lib/cjs/PaginationCompact/index.d.ts.map +0 -1
  166. package/lib/cjs/PaginationCompact/index.js +0 -17
  167. package/lib/cjs/PaginationCompact/paginationCompact.css +0 -5
  168. package/lib/cjs/PhoneInput/CountryData.d.ts +0 -3
  169. package/lib/cjs/PhoneInput/CountryData.d.ts.map +0 -1
  170. package/lib/cjs/PhoneInput/CountryData.js +0 -583
  171. package/lib/cjs/PhoneInput/PhoneInput.d.ts +0 -20
  172. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +0 -1
  173. package/lib/cjs/PhoneInput/PhoneInput.js +0 -293
  174. package/lib/cjs/PhoneInput/PhoneInput.scss +0 -753
  175. package/lib/cjs/PhoneInput/flags.png +0 -0
  176. package/lib/cjs/PhoneInput/index.d.ts +0 -2
  177. package/lib/cjs/PhoneInput/index.d.ts.map +0 -1
  178. package/lib/cjs/PhoneInput/index.js +0 -17
  179. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -9
  180. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +0 -1
  181. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +0 -68
  182. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts +0 -12
  183. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts.map +0 -1
  184. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +0 -39
  185. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts +0 -6
  186. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts.map +0 -1
  187. package/lib/cjs/ProgressBar/CircularProgressBar/constants.js +0 -8
  188. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts +0 -2
  189. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts.map +0 -1
  190. package/lib/cjs/ProgressBar/CircularProgressBar/index.js +0 -17
  191. package/lib/cjs/ProgressBar/CircularProgressBar/styles.css +0 -60
  192. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts +0 -32
  193. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts.map +0 -1
  194. package/lib/cjs/ProgressBar/CircularProgressBar/types.js +0 -2
  195. package/lib/cjs/ProgressBar/ProgressBar.d.ts +0 -15
  196. package/lib/cjs/ProgressBar/ProgressBar.d.ts.map +0 -1
  197. package/lib/cjs/ProgressBar/ProgressBar.js +0 -36
  198. package/lib/cjs/ProgressBar/index.d.ts +0 -3
  199. package/lib/cjs/ProgressBar/index.d.ts.map +0 -1
  200. package/lib/cjs/ProgressBar/index.js +0 -18
  201. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts +0 -15
  202. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts.map +0 -1
  203. package/lib/cjs/PromisifyModal/PromisifyModal.js +0 -43
  204. package/lib/cjs/PromisifyModal/index.d.ts +0 -2
  205. package/lib/cjs/PromisifyModal/index.d.ts.map +0 -1
  206. package/lib/cjs/PromisifyModal/index.js +0 -17
  207. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -8
  208. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +0 -1
  209. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +0 -20
  210. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -5
  211. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +0 -1
  212. package/lib/cjs/SubscriptionAbuse/const.js +0 -15
  213. package/lib/cjs/SubscriptionAbuse/index.d.ts +0 -3
  214. package/lib/cjs/SubscriptionAbuse/index.d.ts.map +0 -1
  215. package/lib/cjs/SubscriptionAbuse/index.js +0 -18
  216. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -12
  217. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +0 -1
  218. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +0 -48
  219. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -11
  220. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +0 -1
  221. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +0 -182
  222. package/lib/cjs/SupportFeedbackForm/index.d.ts +0 -3
  223. package/lib/cjs/SupportFeedbackForm/index.d.ts.map +0 -1
  224. package/lib/cjs/SupportFeedbackForm/index.js +0 -18
  225. package/lib/cjs/Table/PFTable.d.ts +0 -40
  226. package/lib/cjs/Table/PFTable.d.ts.map +0 -1
  227. package/lib/cjs/Table/PFTable.js +0 -208
  228. package/lib/cjs/Table/README.md +0 -65
  229. package/lib/cjs/Table/TableComponent.d.ts +0 -11
  230. package/lib/cjs/Table/TableComponent.d.ts.map +0 -1
  231. package/lib/cjs/Table/TableComponent.js +0 -42
  232. package/lib/cjs/Table/TablePagination.d.ts +0 -19
  233. package/lib/cjs/Table/TablePagination.d.ts.map +0 -1
  234. package/lib/cjs/Table/TablePagination.js +0 -50
  235. package/lib/cjs/Table/TableProvider.d.ts +0 -15
  236. package/lib/cjs/Table/TableProvider.d.ts.map +0 -1
  237. package/lib/cjs/Table/TableProvider.js +0 -25
  238. package/lib/cjs/Table/index.d.ts +0 -4
  239. package/lib/cjs/Table/index.d.ts.map +0 -1
  240. package/lib/cjs/Table/index.js +0 -19
  241. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -15
  242. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +0 -1
  243. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +0 -121
  244. package/lib/cjs/TermsAndConditions/index.d.ts +0 -2
  245. package/lib/cjs/TermsAndConditions/index.d.ts.map +0 -1
  246. package/lib/cjs/TermsAndConditions/index.js +0 -17
  247. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts +0 -8
  248. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts.map +0 -1
  249. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +0 -140
  250. package/lib/cjs/TextAreaAutosize/index.d.ts +0 -2
  251. package/lib/cjs/TextAreaAutosize/index.d.ts.map +0 -1
  252. package/lib/cjs/TextAreaAutosize/index.js +0 -17
  253. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts +0 -20
  254. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts.map +0 -1
  255. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +0 -60
  256. package/lib/cjs/TextAreaResizable/index.d.ts +0 -2
  257. package/lib/cjs/TextAreaResizable/index.d.ts.map +0 -1
  258. package/lib/cjs/TextAreaResizable/index.js +0 -17
  259. package/lib/cjs/ToastNotification/ToastNotification.d.ts +0 -28
  260. package/lib/cjs/ToastNotification/ToastNotification.d.ts.map +0 -1
  261. package/lib/cjs/ToastNotification/ToastNotification.js +0 -71
  262. package/lib/cjs/ToastNotification/index.d.ts +0 -2
  263. package/lib/cjs/ToastNotification/index.d.ts.map +0 -1
  264. package/lib/cjs/ToastNotification/index.js +0 -17
  265. package/lib/cjs/ToastNotification/toastNotification.css +0 -22
  266. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts +0 -14
  267. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts.map +0 -1
  268. package/lib/cjs/TopContentSearch/TopContentSearch.js +0 -143
  269. package/lib/cjs/TopContentSearch/index.d.ts +0 -2
  270. package/lib/cjs/TopContentSearch/index.d.ts.map +0 -1
  271. package/lib/cjs/TopContentSearch/index.js +0 -17
  272. package/lib/cjs/TopContentSearch/topContentSearch.scss +0 -22
  273. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts +0 -14
  274. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts.map +0 -1
  275. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +0 -80
  276. package/lib/cjs/ValueChangedIcon/index.d.ts +0 -2
  277. package/lib/cjs/ValueChangedIcon/index.d.ts.map +0 -1
  278. package/lib/cjs/ValueChangedIcon/index.js +0 -17
  279. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -12
  280. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +0 -1
  281. package/lib/cjs/helperFunctions/errorMessage.js +0 -95
  282. package/lib/cjs/helperFunctions/errorMessage.scss +0 -3
  283. package/lib/cjs/helperFunctions/index.d.ts +0 -2
  284. package/lib/cjs/helperFunctions/index.d.ts.map +0 -1
  285. package/lib/cjs/helperFunctions/index.js +0 -17
  286. package/lib/cjs/hooks/index.d.ts +0 -15
  287. package/lib/cjs/hooks/index.d.ts.map +0 -1
  288. package/lib/cjs/hooks/index.js +0 -30
  289. package/lib/cjs/hooks/useBreakpoint.d.ts +0 -12
  290. package/lib/cjs/hooks/useBreakpoint.d.ts.map +0 -1
  291. package/lib/cjs/hooks/useBreakpoint.js +0 -91
  292. package/lib/cjs/hooks/useCopyToClipboard.d.ts +0 -6
  293. package/lib/cjs/hooks/useCopyToClipboard.d.ts.map +0 -1
  294. package/lib/cjs/hooks/useCopyToClipboard.js +0 -40
  295. package/lib/cjs/hooks/useDebounce.d.ts +0 -9
  296. package/lib/cjs/hooks/useDebounce.d.ts.map +0 -1
  297. package/lib/cjs/hooks/useDebounce.js +0 -40
  298. package/lib/cjs/hooks/useFetch.d.ts +0 -20
  299. package/lib/cjs/hooks/useFetch.d.ts.map +0 -1
  300. package/lib/cjs/hooks/useFetch.js +0 -70
  301. package/lib/cjs/hooks/useForceUpdate.d.ts +0 -18
  302. package/lib/cjs/hooks/useForceUpdate.d.ts.map +0 -1
  303. package/lib/cjs/hooks/useForceUpdate.js +0 -28
  304. package/lib/cjs/hooks/useForkRef.d.ts +0 -2
  305. package/lib/cjs/hooks/useForkRef.d.ts.map +0 -1
  306. package/lib/cjs/hooks/useForkRef.js +0 -29
  307. package/lib/cjs/hooks/useIsMounted.d.ts +0 -3
  308. package/lib/cjs/hooks/useIsMounted.d.ts.map +0 -1
  309. package/lib/cjs/hooks/useIsMounted.js +0 -18
  310. package/lib/cjs/hooks/useLRUCache.d.ts +0 -8
  311. package/lib/cjs/hooks/useLRUCache.d.ts.map +0 -1
  312. package/lib/cjs/hooks/useLRUCache.js +0 -28
  313. package/lib/cjs/hooks/useLocalStorage.d.ts +0 -5
  314. package/lib/cjs/hooks/useLocalStorage.d.ts.map +0 -1
  315. package/lib/cjs/hooks/useLocalStorage.js +0 -39
  316. package/lib/cjs/hooks/useOnScreen.d.ts +0 -2
  317. package/lib/cjs/hooks/useOnScreen.d.ts.map +0 -1
  318. package/lib/cjs/hooks/useOnScreen.js +0 -18
  319. package/lib/cjs/hooks/usePolling.d.ts +0 -2
  320. package/lib/cjs/hooks/usePolling.d.ts.map +0 -1
  321. package/lib/cjs/hooks/usePolling.js +0 -19
  322. package/lib/cjs/hooks/usePrevious.d.ts +0 -2
  323. package/lib/cjs/hooks/usePrevious.d.ts.map +0 -1
  324. package/lib/cjs/hooks/usePrevious.js +0 -12
  325. package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts +0 -13
  326. package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts.map +0 -1
  327. package/lib/cjs/hooks/useSelectKeyboardNavigator.js +0 -58
  328. package/lib/cjs/hooks/useTitle.d.ts +0 -2
  329. package/lib/cjs/hooks/useTitle.d.ts.map +0 -1
  330. package/lib/cjs/hooks/useTitle.js +0 -14
  331. package/lib/cjs/hooks/useUndo.d.ts +0 -22
  332. package/lib/cjs/hooks/useUndo.d.ts.map +0 -1
  333. package/lib/cjs/hooks/useUndo.js +0 -76
  334. package/lib/cjs/index.d.ts +0 -34
  335. package/lib/cjs/index.d.ts.map +0 -1
  336. package/lib/cjs/index.js +0 -49
@@ -1,173 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.InlineEdit = void 0;
39
- require("./inlineEdit.css");
40
- const pencil_alt_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/pencil-alt-icon"));
41
- const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
42
- const react_1 = __importStar(require("react"));
43
- const react_i18next_1 = require("react-i18next");
44
- const defaultProps = {
45
- allowInlineEdit: false,
46
- formClassName: '',
47
- formId: '',
48
- dataTrackingId: '',
49
- usePreformattedTag: false,
50
- hideSaveCancel: false,
51
- saveLabel: 'Save',
52
- cancelLabel: 'Cancel',
53
- cancelOnToggle: false,
54
- loadingIndicator: '',
55
- initialIsEditing: false,
56
- collapseOnBlur: false,
57
- saveOnBlur: false,
58
- cancelOnBlur: false,
59
- saveDisabled: false,
60
- hideLabel: false,
61
- isSpaceAllowed: true,
62
- };
63
- function InlineEdit(props) {
64
- var _a;
65
- const [isEditing, setIsEditing] = (0, react_1.useState)(props.initialIsEditing);
66
- // editingTrueOnStart is a state to track if inlineEdit component is open on start, we don't want to focus
67
- // on input/textareat in this situation as we may have other form elements on page that we want to focus
68
- const [canAutoSetFocus, setCanAutoSfocus] = (0, react_1.useState)(!props.initialIsEditing);
69
- const onEditClicked = (e) => {
70
- setCanAutoSfocus(true);
71
- e.preventDefault();
72
- props.cancelOnToggle && isEditing && props.onCancel && props.onCancel();
73
- setIsEditing(!isEditing);
74
- };
75
- // To Render edit button
76
- const renderEditButton = () => {
77
- if (!props.allowInlineEdit) {
78
- return null;
79
- }
80
- return (react_1.default.createElement("button", { className: `btn btn-link btn-app btn-edit ${props.isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-label": "Edit", onClick: onEditClicked },
81
- react_1.default.createElement(pencil_alt_icon_1.default, null)));
82
- };
83
- const onBlurChild = () => {
84
- props.collapseOnBlur && setIsEditing(!isEditing);
85
- props.saveOnBlur && !props.saveDisabled && props.onSave && props.onSave();
86
- props.cancelOnBlur && props.onCancel && props.onCancel();
87
- };
88
- const onCancelClicked = () => {
89
- props.onCancel && props.onCancel();
90
- setIsEditing(false);
91
- };
92
- const onSave = () => __awaiter(this, void 0, void 0, function* () {
93
- try {
94
- props.onSave && (yield props.onSave());
95
- setIsEditing(false);
96
- }
97
- catch (e) {
98
- // we will keep the user in the editing state. so nothing to do here
99
- }
100
- });
101
- const onSaveClicked = () => __awaiter(this, void 0, void 0, function* () {
102
- if (props.saveDisabled)
103
- return;
104
- yield onSave();
105
- });
106
- // Disables button if isSpaceAllowed is False and Input has Spaces
107
- const diabledCheckForSpaceAllowed = !props.isSpaceAllowed && (0, isEmpty_1.default)((_a = props.inputValue) === null || _a === void 0 ? void 0 : _a.trim());
108
- const handleKeyDown = (e) => __awaiter(this, void 0, void 0, function* () {
109
- // Cancel on pressing esc
110
- if (props.allowInlineEdit && isEditing && e.keyCode === 27) {
111
- props.onCancel && props.onCancel();
112
- setIsEditing(false);
113
- }
114
- // Save on pressing enter
115
- else if (!props.hideSaveCancel &&
116
- props.allowInlineEdit &&
117
- isEditing &&
118
- !diabledCheckForSpaceAllowed &&
119
- !props.saveDisabled &&
120
- e.keyCode === 13) {
121
- yield onSave();
122
- }
123
- });
124
- const renderSaveCancel = () => !props.hideSaveCancel &&
125
- props.allowInlineEdit &&
126
- isEditing && (react_1.default.createElement("span", { className: `edit-actions ${props.isExportingPDF ? 'hide-in-pdf' : ''}` },
127
- props.loadingIndicator && react_1.default.createElement("span", null, props.loadingIndicator),
128
- react_1.default.createElement("button", { "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-save` : null, className: "btn btn-app btn-link", type: "button", onClick: onSaveClicked, disabled: diabledCheckForSpaceAllowed || props.saveDisabled },
129
- react_1.default.createElement(react_i18next_1.Trans, null, props.saveLabel)),
130
- react_1.default.createElement("button", { type: "button", "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-cancel` : null, className: "btn btn-app btn-link", onClick: onCancelClicked },
131
- react_1.default.createElement(react_i18next_1.Trans, null, props.cancelLabel))));
132
- const canShowContent = !isEditing && props.allowInlineEdit && props.content;
133
- return (react_1.default.createElement("div", { className: `form-group edit-question ${props.formClassName}`, id: props.formId },
134
- !props.hideLabel && (react_1.default.createElement(react_1.default.Fragment, null,
135
- react_1.default.createElement("label", Object.assign({}, props.labelProps),
136
- react_1.default.createElement("span", { className: "label-edit" }, props.labelContent),
137
- react_1.default.createElement("span", { className: `${props.isExportingPDF ? 'hide-in-pdf' : ''}` }, props.helperContent),
138
- renderEditButton()))),
139
- renderSaveCancel(),
140
- canShowContent && !props.usePreformattedTag && (react_1.default.createElement(react_1.default.Fragment, null,
141
- react_1.default.createElement("p", { id: props.inputId, style: { display: props.hideLabel ? 'inline' : 'block' } },
142
- props.content,
143
- props.hideLabel && (react_1.default.createElement(react_1.default.Fragment, null,
144
- props.helperContent,
145
- renderEditButton())),
146
- props.loadingIndicator && react_1.default.createElement("span", { className: "loading-indicator" }, props.loadingIndicator)))),
147
- canShowContent && props.usePreformattedTag && react_1.default.createElement("pre", { id: props.inputId }, props.content),
148
- react_1.default.createElement(react_1.default.Fragment, null,
149
- react_1.default.createElement("div", { onBlur: onBlurChild, onKeyDown: handleKeyDown, className: "inlineEdit-wrapper", "data-tracking-id": "inline-edit-input-wrapper" },
150
- !props.allowInlineEdit && props.children,
151
- props.allowInlineEdit &&
152
- isEditing &&
153
- react_1.default.Children.map(props.children, (child) => {
154
- if (!child)
155
- return;
156
- const canFocusChild = (child.type === 'input' || child.type === 'textarea') && canAutoSetFocus;
157
- // if input/textarea had autoFocus but focus was lost in the wrapper component
158
- const needsReFocus = !canAutoSetFocus && child.props.autoFocus;
159
- if (canFocusChild || needsReFocus) {
160
- return react_1.default.cloneElement(child, {
161
- ref: (node) => {
162
- node && node.focus();
163
- setCanAutoSfocus(false);
164
- },
165
- });
166
- }
167
- else {
168
- return child;
169
- }
170
- })))));
171
- }
172
- exports.InlineEdit = InlineEdit;
173
- InlineEdit.defaultProps = defaultProps;
@@ -1,41 +0,0 @@
1
- import './newInlineEdit.css';
2
- import React, { HTMLProps } from 'react';
3
- interface IProps {
4
- inputId?: string;
5
- children: JSX.Element | JSX.Element[];
6
- labelProps: HTMLProps<HTMLLabelElement>;
7
- labelContent: JSX.Element | JSX.Element[];
8
- helperContent?: JSX.Element | JSX.Element[];
9
- loadingIndicator: JSX.Element | string;
10
- content?: string | JSX.Element;
11
- allowInlineEdit: boolean;
12
- formClassName?: string;
13
- formId?: string;
14
- dataTrackingId?: string;
15
- usePreformattedTag: boolean;
16
- hideSaveCancel: boolean;
17
- cancelLabel: JSX.Element | string;
18
- saveLabel: JSX.Element | string;
19
- onSave: any;
20
- onCancel: any;
21
- cancelOnToggle?: boolean;
22
- charCount: number;
23
- charTotal: number;
24
- cancelToggleState?: boolean;
25
- saveToggleState?: boolean;
26
- collapseOnBlur?: boolean;
27
- saveOnBlur?: boolean;
28
- saveDisabled?: boolean;
29
- cancelOnBlur?: boolean;
30
- initialIsEditing?: boolean;
31
- hideLabel?: boolean;
32
- isSpaceAllowed?: boolean;
33
- inputValue?: string;
34
- isExportingPDF?: boolean;
35
- }
36
- declare function NewInlineEdit(props: IProps): React.JSX.Element;
37
- declare namespace NewInlineEdit {
38
- var defaultProps: Partial<IProps>;
39
- }
40
- export { NewInlineEdit };
41
- //# sourceMappingURL=NewInlineEdit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NewInlineEdit.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/NewInlineEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,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,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,qBAyLnC;kBAzLQ,aAAa;;;AA4LtB,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,182 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.NewInlineEdit = void 0;
39
- require("./newInlineEdit.css");
40
- const pencil_alt_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/pencil-alt-icon"));
41
- const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
42
- const react_1 = __importStar(require("react"));
43
- const react_i18next_1 = require("react-i18next");
44
- const defaultProps = {
45
- allowInlineEdit: false,
46
- formClassName: '',
47
- formId: '',
48
- dataTrackingId: '',
49
- usePreformattedTag: false,
50
- hideSaveCancel: false,
51
- saveLabel: 'Save',
52
- cancelLabel: 'Cancel',
53
- cancelOnToggle: false,
54
- loadingIndicator: '',
55
- initialIsEditing: false,
56
- collapseOnBlur: false,
57
- saveOnBlur: false,
58
- cancelOnBlur: false,
59
- saveDisabled: false,
60
- hideLabel: false,
61
- isSpaceAllowed: true,
62
- };
63
- function NewInlineEdit(props) {
64
- var _a;
65
- const [isEditing, setIsEditing] = (0, react_1.useState)(props.initialIsEditing);
66
- // editingTrueOnStart is a state to track if inlineEdit component is open on start, we don't want to focus
67
- // on input/textareat in this situation as we may have other form elements on page that we want to focus
68
- const [canAutoSetFocus, setCanAutoSfocus] = (0, react_1.useState)(!props.initialIsEditing);
69
- // To close InlineEdit input and show content whenever cancel is clicked
70
- (0, react_1.useEffect)(() => {
71
- if (isEditing) {
72
- setIsEditing(!isEditing);
73
- }
74
- // eslint-disable-next-line react-hooks/exhaustive-deps
75
- }, [props.cancelToggleState, props.saveToggleState]);
76
- const onEditClicked = (e) => {
77
- setCanAutoSfocus(true);
78
- e.preventDefault();
79
- props.cancelOnToggle && isEditing && props.onCancel && props.onCancel();
80
- setIsEditing(!isEditing);
81
- };
82
- const renderEditButton = () => {
83
- if (!props.allowInlineEdit) {
84
- return null;
85
- }
86
- return (react_1.default.createElement("button", { className: `btn btn-link btn-app btn-edit ${props.isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-label": "Edit", onClick: onEditClicked },
87
- react_1.default.createElement(pencil_alt_icon_1.default, null)));
88
- };
89
- const onBlurChild = () => {
90
- props.collapseOnBlur && setIsEditing(!isEditing);
91
- props.saveOnBlur && !props.saveDisabled && props.onSave && props.onSave();
92
- props.cancelOnBlur && props.onCancel && props.onCancel();
93
- };
94
- const onCancelClicked = () => {
95
- props.onCancel && props.onCancel();
96
- setIsEditing(false);
97
- };
98
- const onSave = () => __awaiter(this, void 0, void 0, function* () {
99
- try {
100
- props.onSave && (yield props.onSave());
101
- setIsEditing(false);
102
- }
103
- catch (e) {
104
- // we will keep the user in the editing state. so nothing to do here
105
- }
106
- });
107
- const onSaveClicked = () => __awaiter(this, void 0, void 0, function* () {
108
- if (props.saveDisabled)
109
- return;
110
- yield onSave();
111
- });
112
- // Disables button if isSpaceAllowed is False and Input has Spaces
113
- const diabledCheckForSpaceAllowed = !props.isSpaceAllowed && (0, isEmpty_1.default)((_a = props.inputValue) === null || _a === void 0 ? void 0 : _a.trim());
114
- const handleKeyDown = (e) => __awaiter(this, void 0, void 0, function* () {
115
- // Cancel on pressing esc
116
- if (props.allowInlineEdit && isEditing && e.keyCode === 27) {
117
- props.onCancel && props.onCancel();
118
- setIsEditing(false);
119
- }
120
- // Save on pressing enter
121
- else if (!props.hideSaveCancel &&
122
- props.allowInlineEdit &&
123
- isEditing &&
124
- !diabledCheckForSpaceAllowed &&
125
- !props.saveDisabled &&
126
- e.keyCode === 13) {
127
- yield onSave();
128
- }
129
- });
130
- const renderSaveCancel = () => !props.hideSaveCancel &&
131
- props.allowInlineEdit &&
132
- isEditing && (react_1.default.createElement("span", { className: `edit-actions ${props.isExportingPDF ? 'hide-in-pdf' : ''}` },
133
- props.loadingIndicator && react_1.default.createElement("span", null, props.loadingIndicator),
134
- react_1.default.createElement("button", { "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-save` : null, className: "btn btn-app btn-link", type: "button", onClick: onSaveClicked, disabled: diabledCheckForSpaceAllowed || props.saveDisabled },
135
- react_1.default.createElement(react_i18next_1.Trans, null, props.saveLabel)),
136
- react_1.default.createElement("button", { type: "button", "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-cancel` : null, className: "btn btn-app btn-link", onClick: onCancelClicked },
137
- react_1.default.createElement(react_i18next_1.Trans, null, props.cancelLabel))));
138
- const canShowContent = !isEditing && props.allowInlineEdit && props.content;
139
- const showCount = ` ${props.charCount} / ${props.charTotal}`;
140
- return (react_1.default.createElement("div", { className: `form-group edit-question ${props.formClassName}`, id: props.formId },
141
- !props.hideLabel && (react_1.default.createElement(react_1.default.Fragment, null,
142
- react_1.default.createElement("label", Object.assign({}, props.labelProps),
143
- react_1.default.createElement("span", { className: "label-edit" }, props.labelContent),
144
- react_1.default.createElement("span", { className: `${props.isExportingPDF ? 'hide-in-pdf' : ''}` }, props.helperContent),
145
- !props.content && !isEditing ? renderEditButton() : null))),
146
- renderSaveCancel(),
147
- props.hideSaveCancel && isEditing && (react_1.default.createElement("span", { className: `
148
- ${props.charCount > props.charTotal ? 'char-count pf-v5-u-danger-color-100' : 'char-count'}` }, props.charCount ? showCount : null)),
149
- canShowContent && !props.usePreformattedTag && (react_1.default.createElement(react_1.default.Fragment, null,
150
- react_1.default.createElement("p", { id: props.inputId, style: { display: props.hideLabel ? 'inline' : 'block' } },
151
- props.content,
152
- react_1.default.createElement(react_1.default.Fragment, null,
153
- props.helperContent,
154
- renderEditButton()),
155
- props.loadingIndicator && react_1.default.createElement("span", { className: "loading-indicator" }, props.loadingIndicator)))),
156
- canShowContent && props.usePreformattedTag && react_1.default.createElement("pre", { id: props.inputId }, props.content),
157
- react_1.default.createElement(react_1.default.Fragment, null,
158
- react_1.default.createElement("div", { onBlur: onBlurChild, onKeyDown: handleKeyDown, className: "inlineEdit-wrapper", "data-tracking-id": "inline-edit-input-wrapper" },
159
- !props.allowInlineEdit && props.children,
160
- props.allowInlineEdit &&
161
- isEditing &&
162
- react_1.default.Children.map(props.children, (child) => {
163
- if (!child)
164
- return;
165
- const canFocusChild = (child.type === 'input' || child.type === 'textarea') && canAutoSetFocus;
166
- // if input/textarea had autoFocus but focus was lost in the wrapper component
167
- const needsReFocus = !canAutoSetFocus && child.props.autoFocus;
168
- if (canFocusChild || needsReFocus) {
169
- return react_1.default.cloneElement(child, {
170
- ref: (node) => {
171
- node && node.focus();
172
- setCanAutoSfocus(false);
173
- },
174
- });
175
- }
176
- else {
177
- return child;
178
- }
179
- })))));
180
- }
181
- exports.NewInlineEdit = NewInlineEdit;
182
- NewInlineEdit.defaultProps = defaultProps;
@@ -1,3 +0,0 @@
1
- export * from './InlineEdit';
2
- export * from './NewInlineEdit';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
@@ -1,18 +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("./InlineEdit"), exports);
18
- __exportStar(require("./NewInlineEdit"), exports);
@@ -1,29 +0,0 @@
1
- .edit-question .btn-edit {
2
- padding: 0 0.5rem !important;
3
- margin-left: 0.5rem;
4
- }
5
-
6
- .edit-question .edit-actions {
7
- float: right;
8
- position: relative;
9
- top: 38px;
10
- margin-top: -34px;
11
- }
12
-
13
- .edit-question .edit-actions > * {
14
- padding: 2px 1rem !important;
15
- font-size: 13px !important;
16
- float: right;
17
- }
18
-
19
- .edit-question .loading-indicator {
20
- margin-left: 10px;
21
- }
22
-
23
- .case-overview .edit-question .loading-indicator {
24
- margin-left: 0px;
25
- }
26
-
27
- .hide-in-pdf {
28
- display: none !important;
29
- }
@@ -1,44 +0,0 @@
1
- .edit-question .btn-edit {
2
- padding: 0 0.5rem !important;
3
- margin-left: 0.5rem;
4
- }
5
-
6
- .edit-question .edit-actions {
7
- float: right;
8
- position: relative;
9
- top: 38px;
10
- margin-top: -34px;
11
- }
12
-
13
- .edit-question .edit-actions > * {
14
- padding: 2px 1rem !important;
15
- font-size: 13px !important;
16
- float: right;
17
- }
18
-
19
- .hide-in-pdf {
20
- display: none !important;
21
- }
22
-
23
- .edit-question .loading-indicator {
24
- margin-left: 10px;
25
- }
26
-
27
- .case-overview .edit-question .loading-indicator {
28
- margin-left: 0px;
29
- }
30
-
31
- /* Character Count */
32
- .char-count {
33
- float: right;
34
- position: relative;
35
- padding-right: var(--pf-v5-global--spacer--4xl);
36
- margin-right: var(--pf-v5-global--spacer--lg);
37
- font-size: 12px;
38
- }
39
-
40
- @media (max-width: 415px) {
41
- .char-count {
42
- padding-right: var(--pf-v5-global--spacer--2xl);
43
- }
44
- }
@@ -1,26 +0,0 @@
1
- import './languageSelector.css';
2
- import { IDClassNameProps } from '@rh-support/types/shared';
3
- import React from 'react';
4
- interface IProps extends IDClassNameProps {
5
- currentLanguage: string;
6
- updateLang: (lang: string) => void;
7
- showLoader: boolean;
8
- }
9
- export declare const languageConst: {
10
- en: string;
11
- ja: string;
12
- de: string;
13
- zh: string;
14
- pt: string;
15
- fr: string;
16
- ko: string;
17
- it: string;
18
- ru: string;
19
- es: string;
20
- };
21
- declare function LanguageSelector(props: IProps): React.JSX.Element;
22
- declare namespace LanguageSelector {
23
- var defaultProps: Partial<IProps>;
24
- }
25
- export { LanguageSelector };
26
- //# sourceMappingURL=LanguageSelector.d.ts.map
@@ -1 +0,0 @@
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;AAE5D,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,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,qBAyBtC;kBAzBQ,gBAAgB;;;AA4BzB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,65 +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 __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.LanguageSelector = exports.languageConst = void 0;
30
- require("./languageSelector.css");
31
- const map_1 = __importDefault(require("lodash/map"));
32
- const react_1 = __importStar(require("react"));
33
- const react_i18next_1 = require("react-i18next");
34
- const DropDownList_1 = require("../DropDownList/DropDownList");
35
- exports.languageConst = {
36
- en: 'English',
37
- ja: '日本語',
38
- de: 'Deutsch',
39
- zh: '中文 (中国)',
40
- pt: 'Português',
41
- fr: 'Français',
42
- ko: '한국어',
43
- it: 'Italiano',
44
- ru: 'Pу́сский',
45
- es: 'Español',
46
- };
47
- const defaultProps = {
48
- showLoader: false,
49
- className: '',
50
- };
51
- function LanguageSelector(props) {
52
- const [language, setLanguage] = (0, react_1.useState)({
53
- label: exports.languageConst[props.currentLanguage],
54
- value: props.currentLanguage,
55
- });
56
- const { t } = (0, react_i18next_1.useTranslation)();
57
- const handleLanguageChange = (language) => {
58
- setLanguage(language);
59
- props.updateLang(language.value);
60
- };
61
- const languageOption = () => (0, map_1.default)(exports.languageConst, (value, key) => ({ label: value, value: key }));
62
- return (react_1.default.createElement(DropDownList_1.Dropdown, { "data-tracking-id": "app-language-selector", id: "app-language-selector", title: t('Language selector'), className: "language-selector", list: languageOption(), selectedItem: language, onChange: handleLanguageChange, isLoadingList: props.showLoader }));
63
- }
64
- exports.LanguageSelector = LanguageSelector;
65
- LanguageSelector.defaultProps = defaultProps;
@@ -1,2 +0,0 @@
1
- export * from './LanguageSelector';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/LanguageSelector/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,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("./LanguageSelector"), exports);
@@ -1,5 +0,0 @@
1
- .downshift.language-selector {
2
- width: 140px;
3
- margin-left: auto;
4
- z-index: 100;
5
- }