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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/lib/cjs/AlertMessage/AlertMessage.js +5 -5
  2. package/lib/cjs/AlertMessage/index.d.ts +0 -1
  3. package/lib/cjs/AlertMessage/index.d.ts.map +1 -1
  4. package/lib/cjs/AlertMessage/index.js +1 -1
  5. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  6. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  7. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +13 -41
  8. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +4 -2
  9. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  10. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +7 -6
  11. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -6
  12. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -1
  13. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +29 -69
  14. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -1
  15. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  16. package/lib/cjs/CoverSpinner/CoverSpinner.js +1 -1
  17. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  18. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +25 -25
  19. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -1
  20. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  21. package/lib/cjs/CustomTextInput/CustomTextInput.js +10 -21
  22. package/lib/cjs/DropDownList/AsyncDropDownList.js +5 -5
  23. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -1
  24. package/lib/cjs/DropDownList/DropDownList.d.ts.map +1 -1
  25. package/lib/cjs/DropDownList/DropDownList.js +45 -75
  26. package/lib/cjs/DropDownList/DropdownWrapper.js +7 -18
  27. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +3 -3
  28. package/lib/cjs/DropDownList/SearchableList.d.ts +1 -0
  29. package/lib/cjs/DropDownList/SearchableList.d.ts.map +1 -1
  30. package/lib/cjs/DropDownList/SearchableList.js +45 -55
  31. package/lib/cjs/DropDownList/SelectList.js +15 -26
  32. package/lib/cjs/DropDownList/async.js +28 -38
  33. package/lib/cjs/DropDownList/dropdownList.css +1 -1
  34. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +1 -1
  35. package/lib/cjs/DropDownList/dropdownUtils.js +9 -19
  36. package/lib/cjs/DropDownList/types.d.ts +1 -0
  37. package/lib/cjs/DropDownList/types.d.ts.map +1 -1
  38. package/lib/cjs/DropDownList/withMulti.js +15 -26
  39. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +18 -47
  40. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  41. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  42. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +10 -10
  43. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -1
  44. package/lib/cjs/ErrorPages/Generic403.d.ts.map +1 -1
  45. package/lib/cjs/ErrorPages/Generic403.js +2 -2
  46. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -1
  47. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  48. package/lib/cjs/FeedbackForm/FeedbackForm.js +24 -52
  49. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  50. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +81 -154
  51. package/lib/cjs/InlineEdit/InlineEdit.d.ts +1 -0
  52. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +1 -1
  53. package/lib/cjs/InlineEdit/InlineEdit.js +58 -144
  54. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +1 -0
  55. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  56. package/lib/cjs/InlineEdit/NewInlineEdit.js +62 -147
  57. package/lib/cjs/InlineEdit/inlineEdit.css +4 -0
  58. package/lib/cjs/InlineEdit/newInlineEdit.css +4 -0
  59. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -1
  60. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  61. package/lib/cjs/LanguageSelector/LanguageSelector.js +10 -26
  62. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -1
  63. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +1 -1
  64. package/lib/cjs/LoadingDots/LoadingDots.js +4 -4
  65. package/lib/cjs/LoadingDots/index.d.ts +0 -1
  66. package/lib/cjs/LoadingDots/index.d.ts.map +1 -1
  67. package/lib/cjs/LoadingDots/index.js +1 -1
  68. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  69. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  70. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +3 -3
  71. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -1
  72. package/lib/cjs/LoginModal/LoginModal.d.ts.map +1 -1
  73. package/lib/cjs/LoginModal/LoginModal.js +3 -3
  74. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +113 -165
  75. package/lib/cjs/MoreOrLess/MoreOrLess.js +20 -40
  76. package/lib/cjs/PaginatedList/PaginatedList.js +15 -31
  77. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -1
  78. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  79. package/lib/cjs/PaginationCompact/PaginationCompact.js +14 -31
  80. package/lib/cjs/PhoneInput/CountryData.d.ts +3 -0
  81. package/lib/cjs/PhoneInput/CountryData.d.ts.map +1 -0
  82. package/lib/cjs/PhoneInput/CountryData.js +583 -0
  83. package/lib/cjs/PhoneInput/PhoneInput.d.ts +19 -0
  84. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +1 -0
  85. package/lib/cjs/PhoneInput/PhoneInput.js +284 -0
  86. package/lib/cjs/PhoneInput/PhoneInput.scss +753 -0
  87. package/lib/cjs/PhoneInput/flags.png +0 -0
  88. package/lib/cjs/PhoneInput/index.d.ts +2 -0
  89. package/lib/cjs/PhoneInput/index.d.ts.map +1 -0
  90. package/lib/cjs/PhoneInput/index.js +13 -0
  91. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  92. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  93. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +14 -14
  94. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +20 -18
  95. package/lib/cjs/ProgressBar/ProgressBar.js +8 -19
  96. package/lib/cjs/PromisifyModal/PromisifyModal.js +19 -36
  97. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  98. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  99. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +5 -5
  100. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -1
  101. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +1 -1
  102. package/lib/cjs/SubscriptionAbuse/const.js +3 -3
  103. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  104. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  105. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +8 -24
  106. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  107. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  108. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +50 -120
  109. package/lib/cjs/Table/PFTable.js +52 -89
  110. package/lib/cjs/Table/Table.js +12 -29
  111. package/lib/cjs/Table/TableColumnSelector.d.ts +0 -1
  112. package/lib/cjs/Table/TableColumnSelector.d.ts.map +1 -1
  113. package/lib/cjs/Table/TableColumnSelector.js +14 -15
  114. package/lib/cjs/Table/TablePagination.d.ts +0 -1
  115. package/lib/cjs/Table/TablePagination.d.ts.map +1 -1
  116. package/lib/cjs/Table/TablePagination.js +8 -8
  117. package/lib/cjs/Table/TableProvider.js +6 -6
  118. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  119. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  120. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +46 -100
  121. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +35 -62
  122. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +12 -25
  123. package/lib/cjs/ToastNotification/ToastNotification.js +35 -70
  124. package/lib/cjs/TopContentSearch/TopContentSearch.js +48 -113
  125. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +13 -29
  126. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -1
  127. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +1 -1
  128. package/lib/cjs/helperFunctions/errorMessage.js +13 -13
  129. package/lib/cjs/hooks/useBreakpoint.js +26 -43
  130. package/lib/cjs/hooks/useCopyToClipboard.js +8 -24
  131. package/lib/cjs/hooks/useDebounce.js +13 -38
  132. package/lib/cjs/hooks/useFetch.js +47 -123
  133. package/lib/cjs/hooks/useForceUpdate.js +2 -18
  134. package/lib/cjs/hooks/useForkRef.js +3 -3
  135. package/lib/cjs/hooks/useIsMounted.js +4 -4
  136. package/lib/cjs/hooks/useLRUCache.js +11 -11
  137. package/lib/cjs/hooks/useLocalStorage.js +7 -23
  138. package/lib/cjs/hooks/useOnScreen.js +5 -24
  139. package/lib/cjs/hooks/usePolling.js +8 -30
  140. package/lib/cjs/hooks/usePrevious.js +3 -3
  141. package/lib/cjs/hooks/useTitle.js +4 -4
  142. package/lib/cjs/hooks/useUndo.js +49 -72
  143. package/lib/cjs/index.d.ts +1 -0
  144. package/lib/cjs/index.d.ts.map +1 -1
  145. package/lib/cjs/index.js +1 -0
  146. package/lib/esm/AlertMessage/AlertMessage.js +2 -2
  147. package/lib/esm/AlertMessage/index.d.ts +0 -1
  148. package/lib/esm/AlertMessage/index.d.ts.map +1 -1
  149. package/lib/esm/AlertMessage/index.js +1 -1
  150. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  151. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  152. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts +4 -2
  153. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  154. package/lib/esm/ConfirmationModal/ConfirmationDialog.js +3 -2
  155. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -6
  156. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -1
  157. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.js +19 -18
  158. package/lib/esm/CoverSpinner/CoverSpinner.d.ts +0 -1
  159. package/lib/esm/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  160. package/lib/esm/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  161. package/lib/esm/CustomContentLoader/CustomContentLoader.js +23 -23
  162. package/lib/esm/CustomTextInput/CustomTextInput.d.ts +0 -1
  163. package/lib/esm/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  164. package/lib/esm/CustomTextInput/CustomTextInput.js +1 -1
  165. package/lib/esm/DropDownList/DropDownList.d.ts +0 -1
  166. package/lib/esm/DropDownList/DropDownList.d.ts.map +1 -1
  167. package/lib/esm/DropDownList/SearchableList.d.ts +1 -0
  168. package/lib/esm/DropDownList/SearchableList.d.ts.map +1 -1
  169. package/lib/esm/DropDownList/SearchableList.js +6 -2
  170. package/lib/esm/DropDownList/dropdownList.css +1 -1
  171. package/lib/esm/DropDownList/dropdownUtils.d.ts.map +1 -1
  172. package/lib/esm/DropDownList/dropdownUtils.js +1 -0
  173. package/lib/esm/DropDownList/types.d.ts +1 -0
  174. package/lib/esm/DropDownList/types.d.ts.map +1 -1
  175. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  176. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  177. package/lib/esm/ErrorPages/Generic403.d.ts +0 -1
  178. package/lib/esm/ErrorPages/Generic403.d.ts.map +1 -1
  179. package/lib/esm/FeedbackForm/FeedbackForm.d.ts +0 -1
  180. package/lib/esm/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  181. package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  182. package/lib/esm/Functional/CaseContactsSelectorExternal.js +2 -2
  183. package/lib/esm/InlineEdit/InlineEdit.d.ts +1 -0
  184. package/lib/esm/InlineEdit/InlineEdit.d.ts.map +1 -1
  185. package/lib/esm/InlineEdit/InlineEdit.js +3 -3
  186. package/lib/esm/InlineEdit/NewInlineEdit.d.ts +1 -0
  187. package/lib/esm/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  188. package/lib/esm/InlineEdit/NewInlineEdit.js +3 -3
  189. package/lib/esm/InlineEdit/inlineEdit.css +4 -0
  190. package/lib/esm/InlineEdit/newInlineEdit.css +4 -0
  191. package/lib/esm/LanguageSelector/LanguageSelector.d.ts +0 -1
  192. package/lib/esm/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  193. package/lib/esm/LoadingDots/LoadingDots.d.ts +0 -1
  194. package/lib/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
  195. package/lib/esm/LoadingDots/LoadingDots.js +1 -1
  196. package/lib/esm/LoadingDots/index.d.ts +0 -1
  197. package/lib/esm/LoadingDots/index.d.ts.map +1 -1
  198. package/lib/esm/LoadingDots/index.js +1 -1
  199. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  200. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  201. package/lib/esm/LoginModal/LoginModal.d.ts +0 -1
  202. package/lib/esm/LoginModal/LoginModal.d.ts.map +1 -1
  203. package/lib/esm/PaginationCompact/PaginationCompact.d.ts +0 -1
  204. package/lib/esm/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  205. package/lib/esm/PhoneInput/CountryData.d.ts +3 -0
  206. package/lib/esm/PhoneInput/CountryData.d.ts.map +1 -0
  207. package/lib/esm/PhoneInput/CountryData.js +580 -0
  208. package/lib/esm/PhoneInput/PhoneInput.d.ts +19 -0
  209. package/lib/esm/PhoneInput/PhoneInput.d.ts.map +1 -0
  210. package/lib/esm/PhoneInput/PhoneInput.js +257 -0
  211. package/lib/esm/PhoneInput/PhoneInput.scss +753 -0
  212. package/lib/esm/PhoneInput/flags.png +0 -0
  213. package/lib/esm/PhoneInput/index.d.ts +2 -0
  214. package/lib/esm/PhoneInput/index.d.ts.map +1 -0
  215. package/lib/esm/PhoneInput/index.js +1 -0
  216. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  217. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  218. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  219. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  220. package/lib/esm/SubscriptionAbuse/const.d.ts +0 -1
  221. package/lib/esm/SubscriptionAbuse/const.d.ts.map +1 -1
  222. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  223. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  224. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  225. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  226. package/lib/esm/Table/TableColumnSelector.d.ts +0 -1
  227. package/lib/esm/Table/TableColumnSelector.d.ts.map +1 -1
  228. package/lib/esm/Table/TablePagination.d.ts +0 -1
  229. package/lib/esm/Table/TablePagination.d.ts.map +1 -1
  230. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  231. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  232. package/lib/esm/TextAreaResizable/TextAreaResizable.js +1 -1
  233. package/lib/esm/helperFunctions/errorMessage.d.ts +0 -1
  234. package/lib/esm/helperFunctions/errorMessage.d.ts.map +1 -1
  235. package/lib/esm/index.d.ts +1 -0
  236. package/lib/esm/index.d.ts.map +1 -1
  237. package/lib/esm/index.js +1 -0
  238. package/package.json +16 -30
  239. package/lib/cjs/AlertMessage/AlertMessage.stories.d.ts +0 -12
  240. package/lib/cjs/AlertMessage/AlertMessage.stories.d.ts.map +0 -1
  241. package/lib/cjs/AlertMessage/AlertMessage.stories.js +0 -29
  242. package/lib/cjs/DropDownList/Dropdownlist.stories.d.ts +0 -17
  243. package/lib/cjs/DropDownList/Dropdownlist.stories.d.ts.map +0 -1
  244. package/lib/cjs/DropDownList/Dropdownlist.stories.js +0 -253
  245. package/lib/cjs/LoadingDots/LoadingDots.stories.d.ts +0 -10
  246. package/lib/cjs/LoadingDots/LoadingDots.stories.d.ts.map +0 -1
  247. package/lib/cjs/LoadingDots/LoadingDots.stories.js +0 -16
  248. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
  249. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  250. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.js +0 -18
  251. package/lib/cjs/Table/PFTable.stories.d.ts +0 -20
  252. package/lib/cjs/Table/PFTable.stories.d.ts.map +0 -1
  253. package/lib/cjs/Table/PFTable.stories.js +0 -81
  254. package/lib/cjs/demo/Demo.css +0 -3
  255. package/lib/cjs/demo/Demo.d.ts +0 -13
  256. package/lib/cjs/demo/Demo.d.ts.map +0 -1
  257. package/lib/cjs/demo/Demo.js +0 -42
  258. package/lib/cjs/demo/Demo.md +0 -0
  259. package/lib/cjs/demo/Demo.scss +0 -3
  260. package/lib/cjs/demo/index.d.ts +0 -3
  261. package/lib/cjs/demo/index.d.ts.map +0 -1
  262. package/lib/cjs/demo/index.js +0 -23
  263. package/lib/esm/AlertMessage/AlertMessage.stories.d.ts +0 -12
  264. package/lib/esm/AlertMessage/AlertMessage.stories.d.ts.map +0 -1
  265. package/lib/esm/AlertMessage/AlertMessage.stories.js +0 -20
  266. package/lib/esm/DropDownList/Dropdownlist.stories.d.ts +0 -17
  267. package/lib/esm/DropDownList/Dropdownlist.stories.d.ts.map +0 -1
  268. package/lib/esm/DropDownList/Dropdownlist.stories.js +0 -156
  269. package/lib/esm/LoadingDots/LoadingDots.stories.d.ts +0 -10
  270. package/lib/esm/LoadingDots/LoadingDots.stories.d.ts.map +0 -1
  271. package/lib/esm/LoadingDots/LoadingDots.stories.js +0 -8
  272. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
  273. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  274. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.js +0 -9
  275. package/lib/esm/Table/PFTable.stories.d.ts +0 -20
  276. package/lib/esm/Table/PFTable.stories.d.ts.map +0 -1
  277. package/lib/esm/Table/PFTable.stories.js +0 -73
  278. package/lib/esm/demo/Demo.css +0 -3
  279. package/lib/esm/demo/Demo.d.ts +0 -13
  280. package/lib/esm/demo/Demo.d.ts.map +0 -1
  281. package/lib/esm/demo/Demo.js +0 -26
  282. package/lib/esm/demo/Demo.md +0 -0
  283. package/lib/esm/demo/Demo.scss +0 -3
  284. package/lib/esm/demo/index.d.ts +0 -3
  285. package/lib/esm/demo/index.d.ts.map +0 -1
  286. package/lib/esm/demo/index.js +0 -2
@@ -0,0 +1,2 @@
1
+ export * from './PhoneInput';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./PhoneInput"), exports);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './styles.css';
3
2
  import { CircularProgressbarDefaultProps, CircularProgressbarProps } from './types';
4
3
  declare function CircularProgressbar(props: CircularProgressbarProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"CircularProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/ProgressBar/CircularProgressBar/CircularProgressBar.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,CAAC;AAMtB,OAAO,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AA8BpF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eA6E3D;kBA7EQ,mBAAmB;;;AAiF5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"CircularProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/ProgressBar/CircularProgressBar/CircularProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAMtB,OAAO,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AA8BpF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eA6E3D;kBA7EQ,mBAAmB;;;AAiF5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -5,11 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CircularProgressbar = void 0;
7
7
  require("./styles.css");
8
- var react_1 = __importDefault(require("react"));
9
- var constants_1 = require("./constants");
10
- var Path_1 = __importDefault(require("./Path"));
8
+ const react_1 = __importDefault(require("react"));
9
+ const constants_1 = require("./constants");
10
+ const Path_1 = __importDefault(require("./Path"));
11
11
  // Credits https://github.com/kevinsqi/react-circular-progressbar
12
- var defaultProps = {
12
+ const defaultProps = {
13
13
  background: false,
14
14
  backgroundPadding: 0,
15
15
  circleRatio: 1,
@@ -35,33 +35,33 @@ var defaultProps = {
35
35
  text: '',
36
36
  };
37
37
  function CircularProgressbar(props) {
38
- var getBackgroundPadding = function () {
38
+ const getBackgroundPadding = () => {
39
39
  if (!props.background) {
40
40
  // Don't add padding if not displaying background
41
41
  return 0;
42
42
  }
43
43
  return props.backgroundPadding;
44
44
  };
45
- var getPathRadius = function () {
45
+ const getPathRadius = () => {
46
46
  // The radius of the path is defined to be in the middle, so in order for the path to
47
47
  // fit perfectly inside the 100x100 viewBox, need to subtract half the strokeWidth
48
48
  return constants_1.VIEWBOX_HEIGHT_HALF - props.strokeWidth / 2 - getBackgroundPadding();
49
49
  };
50
50
  // Ratio of path length to trail length, as a value between 0 and 1
51
- var getPathRatio = function () {
52
- var value = props.value, minValue = props.minValue, maxValue = props.maxValue;
53
- var boundedValue = Math.min(Math.max(value, minValue), maxValue);
51
+ const getPathRatio = () => {
52
+ const { value, minValue, maxValue } = props;
53
+ const boundedValue = Math.min(Math.max(value, minValue), maxValue);
54
54
  return (boundedValue - minValue) / (maxValue - minValue);
55
55
  };
56
- var circleRatio = props.circleRatio, className = props.className, classes = props.classes, counterClockwise = props.counterClockwise, styles = props.styles, strokeWidth = props.strokeWidth, text = props.text;
57
- var pathRadius = getPathRadius();
58
- var pathRatio = getPathRatio();
56
+ const { circleRatio, className, classes, counterClockwise, styles, strokeWidth, text } = props;
57
+ const pathRadius = getPathRadius();
58
+ const pathRatio = getPathRatio();
59
59
  return (react_1.default.createElement("div", { role: "progressbar", "aria-valuenow": props.value, "aria-valuemin": props.minValue, "aria-valuemax": props.maxValue },
60
- react_1.default.createElement("svg", { className: classes.root + " " + className, style: styles.root, viewBox: "0 0 " + constants_1.VIEWBOX_WIDTH + " " + constants_1.VIEWBOX_HEIGHT, "data-test-id": "CircularProgressbar" },
60
+ react_1.default.createElement("svg", { className: `${classes.root} ${className}`, style: styles.root, viewBox: `0 0 ${constants_1.VIEWBOX_WIDTH} ${constants_1.VIEWBOX_HEIGHT}`, "data-test-id": "CircularProgressbar" },
61
61
  props.background ? (react_1.default.createElement("circle", { className: classes.background, style: styles.background, cx: constants_1.VIEWBOX_CENTER_X, cy: constants_1.VIEWBOX_CENTER_Y, r: constants_1.VIEWBOX_HEIGHT_HALF })) : null,
62
62
  react_1.default.createElement(Path_1.default, { className: classes.trail, counterClockwise: counterClockwise, dashRatio: circleRatio, pathRadius: pathRadius, strokeWidth: strokeWidth, style: styles.trail }),
63
63
  react_1.default.createElement(Path_1.default, { className: classes.path, counterClockwise: counterClockwise, dashRatio: pathRatio * circleRatio, pathRadius: pathRadius, strokeWidth: strokeWidth, style: styles.path },
64
- react_1.default.createElement("title", null, props.title || props.value + "%")),
64
+ react_1.default.createElement("title", null, props.title || `${props.value}%`)),
65
65
  text ? (react_1.default.createElement("text", { className: classes.text, style: styles.text, x: constants_1.VIEWBOX_CENTER_X, y: constants_1.VIEWBOX_CENTER_Y }, text)) : null)));
66
66
  }
67
67
  exports.CircularProgressbar = CircularProgressbar;
@@ -3,35 +3,37 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var constants_1 = require("./constants");
8
- function Path(_a) {
9
- var className = _a.className, counterClockwise = _a.counterClockwise, dashRatio = _a.dashRatio, pathRadius = _a.pathRadius, strokeWidth = _a.strokeWidth, style = _a.style, children = _a.children;
10
- return (react_1.default.createElement("path", { className: className, style: Object.assign({}, style, getDashStyle({ pathRadius: pathRadius, dashRatio: dashRatio, counterClockwise: counterClockwise })), d: getPathDescription({
11
- pathRadius: pathRadius,
12
- counterClockwise: counterClockwise,
6
+ const react_1 = __importDefault(require("react"));
7
+ const constants_1 = require("./constants");
8
+ function Path({ className, counterClockwise, dashRatio, pathRadius, strokeWidth, style, children, }) {
9
+ return (react_1.default.createElement("path", { className: className, style: Object.assign({}, style, getDashStyle({ pathRadius, dashRatio, counterClockwise })), d: getPathDescription({
10
+ pathRadius,
11
+ counterClockwise,
13
12
  }), strokeWidth: strokeWidth, fillOpacity: 0 }, children ? children : null));
14
13
  }
15
14
  // SVG path description specifies how the path should be drawn
16
- function getPathDescription(_a) {
17
- var pathRadius = _a.pathRadius, counterClockwise = _a.counterClockwise;
18
- var radius = pathRadius;
19
- var rotation = counterClockwise ? 1 : 0;
15
+ function getPathDescription({ pathRadius, counterClockwise }) {
16
+ const radius = pathRadius;
17
+ const rotation = counterClockwise ? 1 : 0;
20
18
  // Move to center of canvas
21
19
  // Relative move to top canvas
22
20
  // Relative arc to bottom of canvas
23
21
  // Relative arc to top of canvas
24
- return "\n M " + constants_1.VIEWBOX_CENTER_X + "," + constants_1.VIEWBOX_CENTER_Y + "\n m 0,-" + radius + "\n a " + radius + "," + radius + " " + rotation + " 1 1 0," + 2 * radius + "\n a " + radius + "," + radius + " " + rotation + " 1 1 0,-" + 2 * radius + "\n ";
22
+ return `
23
+ M ${constants_1.VIEWBOX_CENTER_X},${constants_1.VIEWBOX_CENTER_Y}
24
+ m 0,-${radius}
25
+ a ${radius},${radius} ${rotation} 1 1 0,${2 * radius}
26
+ a ${radius},${radius} ${rotation} 1 1 0,-${2 * radius}
27
+ `;
25
28
  }
26
- function getDashStyle(_a) {
27
- var counterClockwise = _a.counterClockwise, dashRatio = _a.dashRatio, pathRadius = _a.pathRadius;
28
- var diameter = Math.PI * 2 * pathRadius;
29
- var gapLength = (1 - dashRatio) * diameter;
29
+ function getDashStyle({ counterClockwise, dashRatio, pathRadius, }) {
30
+ const diameter = Math.PI * 2 * pathRadius;
31
+ const gapLength = (1 - dashRatio) * diameter;
30
32
  return {
31
33
  // Have dash be full diameter, and gap be full diameter
32
- strokeDasharray: diameter + "px " + diameter + "px",
34
+ strokeDasharray: `${diameter}px ${diameter}px`,
33
35
  // Shift dash backward by gapLength, so gap starts appearing at correct distance
34
- strokeDashoffset: (counterClockwise ? -gapLength : gapLength) + "px",
36
+ strokeDashoffset: `${counterClockwise ? -gapLength : gapLength}px`,
35
37
  };
36
38
  }
37
39
  exports.default = Path;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __rest = (this && this.__rest) || function (s, e) {
14
3
  var t = {};
15
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -26,22 +15,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
15
  };
27
16
  Object.defineProperty(exports, "__esModule", { value: true });
28
17
  exports.ProgressBar = void 0;
29
- var react_1 = __importDefault(require("react"));
30
- var defaultProps = {
18
+ const react_1 = __importDefault(require("react"));
19
+ const defaultProps = {
31
20
  progressBarClassName: '',
32
21
  show: true,
33
22
  className: '',
34
23
  };
35
24
  function ProgressBar(props) {
36
- var valueMin = props.valueMin, valueMax = props.valueMax, valueNow = props.valueNow, progressBarClassName = props.progressBarClassName, progressBarLabel = props.progressBarLabel, show = props.show, className = props.className, restProps = __rest(props, ["valueMin", "valueMax", "valueNow", "progressBarClassName", "progressBarLabel", "show", "className"]);
25
+ const { valueMin, valueMax, valueNow, progressBarClassName, progressBarLabel, show, className } = props, restProps = __rest(props, ["valueMin", "valueMax", "valueNow", "progressBarClassName", "progressBarLabel", "show", "className"]);
37
26
  if (!show) {
38
27
  return null;
39
28
  }
40
- var valueNowInPercent = valueMax > valueMin ? ((valueNow - valueMin) / (valueMax - valueMin)) * 100 : NaN;
41
- var widthInPercent = valueNowInPercent > 100 ? 100 : valueNowInPercent < 0 || isNaN(valueNowInPercent) ? 0 : valueNowInPercent;
42
- return (react_1.default.createElement("div", __assign({ className: className + " progress" }, restProps),
43
- react_1.default.createElement("div", { role: "progressbar", className: "progress-bar " + progressBarClassName, "aria-valuenow": valueNow, "aria-valuemin": valueMin, "aria-valuemax": valueMax, style: { width: widthInPercent + "%" } },
44
- react_1.default.createElement("span", { className: "" + (progressBarLabel ? '' : 'sr-only') }, progressBarLabel ? progressBarLabel : valueNowInPercent + "% complete"))));
29
+ const valueNowInPercent = valueMax > valueMin ? ((valueNow - valueMin) / (valueMax - valueMin)) * 100 : NaN;
30
+ const widthInPercent = valueNowInPercent > 100 ? 100 : valueNowInPercent < 0 || isNaN(valueNowInPercent) ? 0 : valueNowInPercent;
31
+ return (react_1.default.createElement("div", Object.assign({ className: `${className} progress` }, restProps),
32
+ react_1.default.createElement("div", { role: "progressbar", className: `progress-bar ${progressBarClassName}`, "aria-valuenow": valueNow, "aria-valuemin": valueMin, "aria-valuemax": valueMax, style: { width: `${widthInPercent}%` } },
33
+ react_1.default.createElement("span", { className: `${progressBarLabel ? '' : 'sr-only'}` }, progressBarLabel ? progressBarLabel : `${valueNowInPercent}% complete`))));
45
34
  }
46
35
  exports.ProgressBar = ProgressBar;
47
36
  ProgressBar.defaultProps = defaultProps;
@@ -1,54 +1,37 @@
1
1
  "use strict";
2
2
  // Original source
3
3
  // https://github.com/prezly/react-promise-modal/
4
- var __assign = (this && this.__assign) || function () {
5
- __assign = Object.assign || function(t) {
6
- for (var s, i = 1, n = arguments.length; i < n; i++) {
7
- s = arguments[i];
8
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
9
- t[p] = s[p];
10
- }
11
- return t;
12
- };
13
- return __assign.apply(this, arguments);
14
- };
15
4
  Object.defineProperty(exports, "__esModule", { value: true });
16
5
  exports.PromisifyModal = void 0;
17
- var react_dom_1 = require("react-dom");
18
- var DEFAULT_DESTRUCTION_DELAY = 300;
19
- var DEFAULT_OPTIONS = {
6
+ const react_dom_1 = require("react-dom");
7
+ const DEFAULT_DESTRUCTION_DELAY = 300;
8
+ const DEFAULT_OPTIONS = {
20
9
  destructionDelay: DEFAULT_DESTRUCTION_DELAY,
21
10
  };
22
- var noop = function () { };
23
- function PromisifyModal(renderModal, options) {
24
- if (options === void 0) { options = {}; }
25
- var destructionDelay = __assign(__assign({}, DEFAULT_OPTIONS), options).destructionDelay;
26
- var container = document.createElement('div');
11
+ const noop = () => { };
12
+ function PromisifyModal(renderModal, options = {}) {
13
+ const { destructionDelay } = Object.assign(Object.assign({}, DEFAULT_OPTIONS), options);
14
+ const container = document.createElement('div');
27
15
  document.body.appendChild(container);
28
- function displayModal(_a) {
29
- var onSubmit = _a.onSubmit, onDismiss = _a.onDismiss;
30
- react_dom_1.render(renderModal({ onSubmit: onSubmit, onDismiss: onDismiss, show: true }), container);
16
+ function displayModal({ onSubmit, onDismiss }) {
17
+ react_dom_1.render(renderModal({ onSubmit, onDismiss, show: true }), container);
31
18
  }
32
- function hideModal(_a, callback) {
33
- var onSubmit = _a.onSubmit, onDismiss = _a.onDismiss;
34
- react_dom_1.render(renderModal({ onSubmit: onSubmit, onDismiss: onDismiss, show: false }), container, callback);
19
+ function hideModal({ onSubmit, onDismiss }, callback) {
20
+ react_dom_1.render(renderModal({ onSubmit, onDismiss, show: false }), container, callback);
35
21
  }
36
22
  function destroyModal() {
37
23
  react_dom_1.unmountComponentAtNode(container);
38
24
  document.body.removeChild(container);
39
25
  }
40
- var confirmation = new Promise(function (resolve) {
41
- var onSubmit = function (value) {
42
- if (value === void 0) { value = true; }
43
- return resolve(value);
44
- };
45
- var onDismiss = function () { return resolve(undefined); };
46
- displayModal({ onSubmit: onSubmit, onDismiss: onDismiss });
26
+ const confirmation = new Promise((resolve) => {
27
+ const onSubmit = (value = true) => resolve(value);
28
+ const onDismiss = () => resolve(undefined);
29
+ displayModal({ onSubmit, onDismiss });
47
30
  });
48
- return confirmation.then(function (result) {
49
- var onSubmit = noop;
50
- var onDismiss = noop;
51
- hideModal({ onSubmit: onSubmit, onDismiss: onDismiss }, function () {
31
+ return confirmation.then((result) => {
32
+ const onSubmit = noop;
33
+ const onDismiss = noop;
34
+ hideModal({ onSubmit, onDismiss }, () => {
52
35
  setTimeout(destroyModal, destructionDelay);
53
36
  });
54
37
  return result;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  isOpen: boolean;
4
3
  onConfirm: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"SubscriptionAbuseModal.d.ts","sourceRoot":"","sources":["../../../src/SubscriptionAbuse/SubscriptionAbuseModal.tsx"],"names":[],"mappings":";AAMA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,eA0BnD"}
1
+ {"version":3,"file":"SubscriptionAbuseModal.d.ts","sourceRoot":"","sources":["../../../src/SubscriptionAbuse/SubscriptionAbuseModal.tsx"],"names":[],"mappings":"AAMA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,eA0BnD"}
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SubscriptionAbuseModal = void 0;
7
- var react_core_1 = require("@patternfly/react-core");
8
- var react_1 = __importDefault(require("react"));
9
- var react_i18next_1 = require("react-i18next");
10
- var const_1 = require("./const");
7
+ const react_core_1 = require("@patternfly/react-core");
8
+ const react_1 = __importDefault(require("react"));
9
+ const react_i18next_1 = require("react-i18next");
10
+ const const_1 = require("./const");
11
11
  function SubscriptionAbuseModal(props) {
12
- var t = react_i18next_1.useTranslation().t;
12
+ const { t } = react_i18next_1.useTranslation();
13
13
  return (react_1.default.createElement(react_core_1.Modal, { id: "subscription-abuse-confirmation", title: t(const_1.SubscriptionAbuseModalTitle), isOpen: props.isOpen, variant: react_core_1.ModalVariant.small, onClose: props.onConfirm, actions: [
14
14
  react_1.default.createElement(react_core_1.Button, { key: "confirm", variant: react_core_1.ButtonVariant.primary, onClick: props.onConfirm, "data-tracking-id": "subscription-abuse-close-cases-confirm" },
15
15
  react_1.default.createElement(react_i18next_1.Trans, null, "I understand")),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SubscriptionAbuseModalTitle = "Please address your account issues";
3
2
  declare const SubscriptionAbuseModalText: JSX.Element;
4
3
  export { SubscriptionAbuseModalTitle, SubscriptionAbuseModalText };
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/SubscriptionAbuse/const.tsx"],"names":[],"mappings":";AAEA,QAAA,MAAM,2BAA2B,uCAAuC,CAAC;AACzE,QAAA,MAAM,0BAA0B,aAS/B,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,CAAC"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/SubscriptionAbuse/const.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,2BAA2B,uCAAuC,CAAC;AACzE,QAAA,MAAM,0BAA0B,aAS/B,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,CAAC"}
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SubscriptionAbuseModalText = exports.SubscriptionAbuseModalTitle = void 0;
7
- var react_1 = __importDefault(require("react"));
8
- var SubscriptionAbuseModalTitle = 'Please address your account issues';
7
+ const react_1 = __importDefault(require("react"));
8
+ const SubscriptionAbuseModalTitle = 'Please address your account issues';
9
9
  exports.SubscriptionAbuseModalTitle = SubscriptionAbuseModalTitle;
10
- var SubscriptionAbuseModalText = (react_1.default.createElement(react_1.default.Fragment, null,
10
+ const SubscriptionAbuseModalText = (react_1.default.createElement(react_1.default.Fragment, null,
11
11
  "A support case cannot be opened or modified for this account at this time. Please contact your Sales Account Manager for more information. If you do not know who your Account Manager is please visit",
12
12
  ' ',
13
13
  react_1.default.createElement("a", { href: "https://www.redhat.com/contact", target: "_blank", rel: "noopener noreferrer" }, "www.redhat.com/contact"),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  buttonLabel: string;
4
3
  additionalBtnClass: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SupportFeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackForm.tsx"],"names":[],"mappings":";AAMA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAQD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAuBzC;kBAvBQ,mBAAmB;;;AA0B5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"SupportFeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackForm.tsx"],"names":[],"mappings":"AAMA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAQD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAuBzC;kBAvBQ,mBAAmB;;;AA0B5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -18,41 +18,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
21
- var __read = (this && this.__read) || function (o, n) {
22
- var m = typeof Symbol === "function" && o[Symbol.iterator];
23
- if (!m) return o;
24
- var i = m.call(o), r, ar = [], e;
25
- try {
26
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
27
- }
28
- catch (error) { e = { error: error }; }
29
- finally {
30
- try {
31
- if (r && !r.done && (m = i["return"])) m.call(i);
32
- }
33
- finally { if (e) throw e.error; }
34
- }
35
- return ar;
36
- };
37
21
  Object.defineProperty(exports, "__esModule", { value: true });
38
22
  exports.SupportFeedbackForm = void 0;
39
- var react_core_1 = require("@patternfly/react-core");
40
- var react_1 = __importStar(require("react"));
41
- var react_i18next_1 = require("react-i18next");
42
- var SupportFeedbackModal_1 = require("./SupportFeedbackModal");
43
- var defaultProps = {
23
+ const react_core_1 = require("@patternfly/react-core");
24
+ const react_1 = __importStar(require("react"));
25
+ const react_i18next_1 = require("react-i18next");
26
+ const SupportFeedbackModal_1 = require("./SupportFeedbackModal");
27
+ const defaultProps = {
44
28
  buttonLabel: 'Provide feedback',
45
29
  additionalBtnClass: '',
46
30
  isInline: false,
47
31
  };
48
32
  function SupportFeedbackForm(props) {
49
- var _a = __read(react_1.useState(false), 2), isModalOpen = _a[0], toggleModal = _a[1];
33
+ const [isModalOpen, toggleModal] = react_1.useState(false);
50
34
  // Function for Toggling the Modal when Provide feedback button is clicked
51
- var handleModalToggle = function () {
35
+ const handleModalToggle = () => {
52
36
  toggleModal(!isModalOpen);
53
37
  };
54
38
  return (react_1.default.createElement(react_1.default.Fragment, null,
55
- react_1.default.createElement(react_core_1.Button, { key: "confirm", onClick: handleModalToggle, className: "" + props.additionalBtnClass, "data-tracking-id": "app-feedback-trigger", variant: "link", isInline: props.isInline ? true : null },
39
+ react_1.default.createElement(react_core_1.Button, { key: "confirm", onClick: handleModalToggle, className: `${props.additionalBtnClass}`, "data-tracking-id": "app-feedback-trigger", variant: "link", isInline: props.isInline ? true : null },
56
40
  react_1.default.createElement(react_i18next_1.Trans, null, props.isInline ? props.buttonLabel.toLowerCase() : props.buttonLabel)),
57
41
  react_1.default.createElement(SupportFeedbackModal_1.SupportFeedbackModal, { isModalOpen: isModalOpen, onClose: handleModalToggle })));
58
42
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  isModalOpen: boolean;
4
3
  onClose: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":";AAuBA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,eAuN1C;kBAvNQ,oBAAoB;;;AA0N7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":"AAuBA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,eAuN1C;kBAvNQ,oBAAoB;;;AA0N7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}