@pega/cosmos-react-work 5.0.0-dev.4.6 → 5.0.0-dev.4.8

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 (329) hide show
  1. package/package.json +2 -2
  2. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +0 -23
  3. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +0 -1
  4. package/lib/components/AppAnnouncement/AppAnnouncement.js +0 -93
  5. package/lib/components/AppAnnouncement/AppAnnouncement.js.map +0 -1
  6. package/lib/components/AppAnnouncement/index.d.ts +0 -3
  7. package/lib/components/AppAnnouncement/index.d.ts.map +0 -1
  8. package/lib/components/AppAnnouncement/index.js +0 -2
  9. package/lib/components/AppAnnouncement/index.js.map +0 -1
  10. package/lib/components/Article/Article.d.ts +0 -49
  11. package/lib/components/Article/Article.d.ts.map +0 -1
  12. package/lib/components/Article/Article.js +0 -73
  13. package/lib/components/Article/Article.js.map +0 -1
  14. package/lib/components/Article/ArticleFooter.d.ts +0 -40
  15. package/lib/components/Article/ArticleFooter.d.ts.map +0 -1
  16. package/lib/components/Article/ArticleFooter.js +0 -54
  17. package/lib/components/Article/ArticleFooter.js.map +0 -1
  18. package/lib/components/Article/ArticleMeta.d.ts +0 -13
  19. package/lib/components/Article/ArticleMeta.d.ts.map +0 -1
  20. package/lib/components/Article/ArticleMeta.js +0 -24
  21. package/lib/components/Article/ArticleMeta.js.map +0 -1
  22. package/lib/components/Article/index.d.ts +0 -5
  23. package/lib/components/Article/index.d.ts.map +0 -1
  24. package/lib/components/Article/index.js +0 -3
  25. package/lib/components/Article/index.js.map +0 -1
  26. package/lib/components/ArticleList/ArticleList.d.ts +0 -6
  27. package/lib/components/ArticleList/ArticleList.d.ts.map +0 -1
  28. package/lib/components/ArticleList/ArticleList.js +0 -132
  29. package/lib/components/ArticleList/ArticleList.js.map +0 -1
  30. package/lib/components/ArticleList/ArticleList.types.d.ts +0 -87
  31. package/lib/components/ArticleList/ArticleList.types.d.ts.map +0 -1
  32. package/lib/components/ArticleList/ArticleList.types.js +0 -2
  33. package/lib/components/ArticleList/ArticleList.types.js.map +0 -1
  34. package/lib/components/ArticleList/ArticleListFilter.d.ts +0 -6
  35. package/lib/components/ArticleList/ArticleListFilter.d.ts.map +0 -1
  36. package/lib/components/ArticleList/ArticleListFilter.js +0 -61
  37. package/lib/components/ArticleList/ArticleListFilter.js.map +0 -1
  38. package/lib/components/ArticleList/ArticleListHeader.d.ts +0 -5
  39. package/lib/components/ArticleList/ArticleListHeader.d.ts.map +0 -1
  40. package/lib/components/ArticleList/ArticleListHeader.js +0 -20
  41. package/lib/components/ArticleList/ArticleListHeader.js.map +0 -1
  42. package/lib/components/ArticleList/ArticleSummary.d.ts +0 -7
  43. package/lib/components/ArticleList/ArticleSummary.d.ts.map +0 -1
  44. package/lib/components/ArticleList/ArticleSummary.js +0 -56
  45. package/lib/components/ArticleList/ArticleSummary.js.map +0 -1
  46. package/lib/components/ArticleList/index.d.ts +0 -6
  47. package/lib/components/ArticleList/index.d.ts.map +0 -1
  48. package/lib/components/ArticleList/index.js +0 -4
  49. package/lib/components/ArticleList/index.js.map +0 -1
  50. package/lib/components/Assignments/Assignments.d.ts +0 -21
  51. package/lib/components/Assignments/Assignments.d.ts.map +0 -1
  52. package/lib/components/Assignments/Assignments.js +0 -20
  53. package/lib/components/Assignments/Assignments.js.map +0 -1
  54. package/lib/components/Assignments/Assignments.styles.d.ts +0 -8
  55. package/lib/components/Assignments/Assignments.styles.d.ts.map +0 -1
  56. package/lib/components/Assignments/Assignments.styles.js +0 -41
  57. package/lib/components/Assignments/Assignments.styles.js.map +0 -1
  58. package/lib/components/Assignments/index.d.ts +0 -2
  59. package/lib/components/Assignments/index.d.ts.map +0 -1
  60. package/lib/components/Assignments/index.js +0 -2
  61. package/lib/components/Assignments/index.js.map +0 -1
  62. package/lib/components/CasePreview/CasePreview.d.ts +0 -27
  63. package/lib/components/CasePreview/CasePreview.d.ts.map +0 -1
  64. package/lib/components/CasePreview/CasePreview.js +0 -82
  65. package/lib/components/CasePreview/CasePreview.js.map +0 -1
  66. package/lib/components/CasePreview/CasePreview.test-ids.d.ts +0 -2
  67. package/lib/components/CasePreview/CasePreview.test-ids.d.ts.map +0 -1
  68. package/lib/components/CasePreview/CasePreview.test-ids.js +0 -3
  69. package/lib/components/CasePreview/CasePreview.test-ids.js.map +0 -1
  70. package/lib/components/CasePreview/index.d.ts +0 -3
  71. package/lib/components/CasePreview/index.d.ts.map +0 -1
  72. package/lib/components/CasePreview/index.js +0 -2
  73. package/lib/components/CasePreview/index.js.map +0 -1
  74. package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts +0 -4
  75. package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts.map +0 -1
  76. package/lib/components/CaseView/CaseHeader/CaseHeader.js +0 -127
  77. package/lib/components/CaseView/CaseHeader/CaseHeader.js.map +0 -1
  78. package/lib/components/CaseView/CaseHeader/Summary.d.ts +0 -6
  79. package/lib/components/CaseView/CaseHeader/Summary.d.ts.map +0 -1
  80. package/lib/components/CaseView/CaseHeader/Summary.js +0 -182
  81. package/lib/components/CaseView/CaseHeader/Summary.js.map +0 -1
  82. package/lib/components/CaseView/CaseSummary.d.ts +0 -4
  83. package/lib/components/CaseView/CaseSummary.d.ts.map +0 -1
  84. package/lib/components/CaseView/CaseSummary.js +0 -18
  85. package/lib/components/CaseView/CaseSummary.js.map +0 -1
  86. package/lib/components/CaseView/CaseSummaryFields.d.ts +0 -6
  87. package/lib/components/CaseView/CaseSummaryFields.d.ts.map +0 -1
  88. package/lib/components/CaseView/CaseSummaryFields.js +0 -18
  89. package/lib/components/CaseView/CaseSummaryFields.js.map +0 -1
  90. package/lib/components/CaseView/CaseView.context.d.ts +0 -5
  91. package/lib/components/CaseView/CaseView.context.d.ts.map +0 -1
  92. package/lib/components/CaseView/CaseView.context.js +0 -5
  93. package/lib/components/CaseView/CaseView.context.js.map +0 -1
  94. package/lib/components/CaseView/CaseView.d.ts +0 -8
  95. package/lib/components/CaseView/CaseView.d.ts.map +0 -1
  96. package/lib/components/CaseView/CaseView.js +0 -421
  97. package/lib/components/CaseView/CaseView.js.map +0 -1
  98. package/lib/components/CaseView/CaseView.styles.d.ts +0 -45
  99. package/lib/components/CaseView/CaseView.styles.d.ts.map +0 -1
  100. package/lib/components/CaseView/CaseView.styles.js +0 -559
  101. package/lib/components/CaseView/CaseView.styles.js.map +0 -1
  102. package/lib/components/CaseView/CaseView.test-ids.d.ts +0 -2
  103. package/lib/components/CaseView/CaseView.test-ids.d.ts.map +0 -1
  104. package/lib/components/CaseView/CaseView.test-ids.js +0 -18
  105. package/lib/components/CaseView/CaseView.test-ids.js.map +0 -1
  106. package/lib/components/CaseView/CaseView.types.d.ts +0 -98
  107. package/lib/components/CaseView/CaseView.types.d.ts.map +0 -1
  108. package/lib/components/CaseView/CaseView.types.js +0 -2
  109. package/lib/components/CaseView/CaseView.types.js.map +0 -1
  110. package/lib/components/CaseView/UtilitiesSummary.d.ts +0 -9
  111. package/lib/components/CaseView/UtilitiesSummary.d.ts.map +0 -1
  112. package/lib/components/CaseView/UtilitiesSummary.js +0 -53
  113. package/lib/components/CaseView/UtilitiesSummary.js.map +0 -1
  114. package/lib/components/CaseView/UtilitySummaryItemDialog.d.ts +0 -9
  115. package/lib/components/CaseView/UtilitySummaryItemDialog.d.ts.map +0 -1
  116. package/lib/components/CaseView/UtilitySummaryItemDialog.js +0 -29
  117. package/lib/components/CaseView/UtilitySummaryItemDialog.js.map +0 -1
  118. package/lib/components/CaseView/index.d.ts +0 -5
  119. package/lib/components/CaseView/index.d.ts.map +0 -1
  120. package/lib/components/CaseView/index.js +0 -4
  121. package/lib/components/CaseView/index.js.map +0 -1
  122. package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts +0 -4
  123. package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts.map +0 -1
  124. package/lib/components/ConfigurableLayout/ConfigurableLayout.js +0 -86
  125. package/lib/components/ConfigurableLayout/ConfigurableLayout.js.map +0 -1
  126. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts +0 -41
  127. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts.map +0 -1
  128. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.js +0 -2
  129. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.js.map +0 -1
  130. package/lib/components/ConfigurableLayout/LayoutCell.d.ts +0 -6
  131. package/lib/components/ConfigurableLayout/LayoutCell.d.ts.map +0 -1
  132. package/lib/components/ConfigurableLayout/LayoutCell.js +0 -64
  133. package/lib/components/ConfigurableLayout/LayoutCell.js.map +0 -1
  134. package/lib/components/ConfigurableLayout/defaults.d.ts +0 -4
  135. package/lib/components/ConfigurableLayout/defaults.d.ts.map +0 -1
  136. package/lib/components/ConfigurableLayout/defaults.js +0 -4
  137. package/lib/components/ConfigurableLayout/defaults.js.map +0 -1
  138. package/lib/components/ConfigurableLayout/index.d.ts +0 -4
  139. package/lib/components/ConfigurableLayout/index.d.ts.map +0 -1
  140. package/lib/components/ConfigurableLayout/index.js +0 -3
  141. package/lib/components/ConfigurableLayout/index.js.map +0 -1
  142. package/lib/components/ConfigurableLayout/options.d.ts +0 -10
  143. package/lib/components/ConfigurableLayout/options.d.ts.map +0 -1
  144. package/lib/components/ConfigurableLayout/options.js +0 -10
  145. package/lib/components/ConfigurableLayout/options.js.map +0 -1
  146. package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts +0 -7
  147. package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts.map +0 -1
  148. package/lib/components/ConfigurableLayout/useTrackWrappedRegions.js +0 -37
  149. package/lib/components/ConfigurableLayout/useTrackWrappedRegions.js.map +0 -1
  150. package/lib/components/Confirmation/Confirmation.d.ts +0 -19
  151. package/lib/components/Confirmation/Confirmation.d.ts.map +0 -1
  152. package/lib/components/Confirmation/Confirmation.js +0 -29
  153. package/lib/components/Confirmation/Confirmation.js.map +0 -1
  154. package/lib/components/Confirmation/index.d.ts +0 -3
  155. package/lib/components/Confirmation/index.d.ts.map +0 -1
  156. package/lib/components/Confirmation/index.js +0 -2
  157. package/lib/components/Confirmation/index.js.map +0 -1
  158. package/lib/components/Details/Details.d.ts +0 -38
  159. package/lib/components/Details/Details.d.ts.map +0 -1
  160. package/lib/components/Details/Details.js +0 -92
  161. package/lib/components/Details/Details.js.map +0 -1
  162. package/lib/components/Details/Details.styles.d.ts +0 -50
  163. package/lib/components/Details/Details.styles.d.ts.map +0 -1
  164. package/lib/components/Details/Details.styles.js +0 -204
  165. package/lib/components/Details/Details.styles.js.map +0 -1
  166. package/lib/components/Details/Details.test-ids.d.ts +0 -2
  167. package/lib/components/Details/Details.test-ids.d.ts.map +0 -1
  168. package/lib/components/Details/Details.test-ids.js +0 -9
  169. package/lib/components/Details/Details.test-ids.js.map +0 -1
  170. package/lib/components/Details/DetailsContext.d.ts +0 -9
  171. package/lib/components/Details/DetailsContext.d.ts.map +0 -1
  172. package/lib/components/Details/DetailsContext.js +0 -9
  173. package/lib/components/Details/DetailsContext.js.map +0 -1
  174. package/lib/components/Details/index.d.ts +0 -4
  175. package/lib/components/Details/index.d.ts.map +0 -1
  176. package/lib/components/Details/index.js +0 -4
  177. package/lib/components/Details/index.js.map +0 -1
  178. package/lib/components/Glimpse/Glimpse.d.ts +0 -20
  179. package/lib/components/Glimpse/Glimpse.d.ts.map +0 -1
  180. package/lib/components/Glimpse/Glimpse.js +0 -12
  181. package/lib/components/Glimpse/Glimpse.js.map +0 -1
  182. package/lib/components/Glimpse/index.d.ts +0 -3
  183. package/lib/components/Glimpse/index.d.ts.map +0 -1
  184. package/lib/components/Glimpse/index.js +0 -2
  185. package/lib/components/Glimpse/index.js.map +0 -1
  186. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts +0 -6
  187. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +0 -1
  188. package/lib/components/IntelligentGuidance/IntelligentGuidance.js +0 -83
  189. package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +0 -1
  190. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +0 -9
  191. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +0 -1
  192. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +0 -199
  193. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +0 -1
  194. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts +0 -35
  195. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts.map +0 -1
  196. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js +0 -2
  197. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js.map +0 -1
  198. package/lib/components/IntelligentGuidance/index.d.ts +0 -3
  199. package/lib/components/IntelligentGuidance/index.d.ts.map +0 -1
  200. package/lib/components/IntelligentGuidance/index.js +0 -2
  201. package/lib/components/IntelligentGuidance/index.js.map +0 -1
  202. package/lib/components/Predictions/Predictions.d.ts +0 -6
  203. package/lib/components/Predictions/Predictions.d.ts.map +0 -1
  204. package/lib/components/Predictions/Predictions.js +0 -68
  205. package/lib/components/Predictions/Predictions.js.map +0 -1
  206. package/lib/components/Predictions/Predictions.types.d.ts +0 -23
  207. package/lib/components/Predictions/Predictions.types.d.ts.map +0 -1
  208. package/lib/components/Predictions/Predictions.types.js +0 -2
  209. package/lib/components/Predictions/Predictions.types.js.map +0 -1
  210. package/lib/components/Predictions/index.d.ts +0 -3
  211. package/lib/components/Predictions/index.d.ts.map +0 -1
  212. package/lib/components/Predictions/index.js +0 -2
  213. package/lib/components/Predictions/index.js.map +0 -1
  214. package/lib/components/SearchResults/Filter.d.ts +0 -8
  215. package/lib/components/SearchResults/Filter.d.ts.map +0 -1
  216. package/lib/components/SearchResults/Filter.js +0 -45
  217. package/lib/components/SearchResults/Filter.js.map +0 -1
  218. package/lib/components/SearchResults/SearchResult.d.ts +0 -4
  219. package/lib/components/SearchResults/SearchResult.d.ts.map +0 -1
  220. package/lib/components/SearchResults/SearchResult.js +0 -27
  221. package/lib/components/SearchResults/SearchResult.js.map +0 -1
  222. package/lib/components/SearchResults/SearchResults.d.ts +0 -6
  223. package/lib/components/SearchResults/SearchResults.d.ts.map +0 -1
  224. package/lib/components/SearchResults/SearchResults.js +0 -121
  225. package/lib/components/SearchResults/SearchResults.js.map +0 -1
  226. package/lib/components/SearchResults/SearchResults.styles.d.ts +0 -11
  227. package/lib/components/SearchResults/SearchResults.styles.d.ts.map +0 -1
  228. package/lib/components/SearchResults/SearchResults.styles.js +0 -88
  229. package/lib/components/SearchResults/SearchResults.styles.js.map +0 -1
  230. package/lib/components/SearchResults/SearchResults.types.d.ts +0 -100
  231. package/lib/components/SearchResults/SearchResults.types.d.ts.map +0 -1
  232. package/lib/components/SearchResults/SearchResults.types.js +0 -2
  233. package/lib/components/SearchResults/SearchResults.types.js.map +0 -1
  234. package/lib/components/SearchResults/index.d.ts +0 -3
  235. package/lib/components/SearchResults/index.d.ts.map +0 -1
  236. package/lib/components/SearchResults/index.js +0 -2
  237. package/lib/components/SearchResults/index.js.map +0 -1
  238. package/lib/components/Stages/StageGlimpse.d.ts +0 -8
  239. package/lib/components/Stages/StageGlimpse.d.ts.map +0 -1
  240. package/lib/components/Stages/StageGlimpse.js +0 -11
  241. package/lib/components/Stages/StageGlimpse.js.map +0 -1
  242. package/lib/components/Stages/Stages.d.ts +0 -6
  243. package/lib/components/Stages/Stages.d.ts.map +0 -1
  244. package/lib/components/Stages/Stages.js +0 -107
  245. package/lib/components/Stages/Stages.js.map +0 -1
  246. package/lib/components/Stages/Stages.styles.d.ts +0 -14
  247. package/lib/components/Stages/Stages.styles.d.ts.map +0 -1
  248. package/lib/components/Stages/Stages.styles.js +0 -270
  249. package/lib/components/Stages/Stages.styles.js.map +0 -1
  250. package/lib/components/Stages/Stages.types.d.ts +0 -38
  251. package/lib/components/Stages/Stages.types.d.ts.map +0 -1
  252. package/lib/components/Stages/Stages.types.js +0 -2
  253. package/lib/components/Stages/Stages.types.js.map +0 -1
  254. package/lib/components/Stages/index.d.ts +0 -3
  255. package/lib/components/Stages/index.d.ts.map +0 -1
  256. package/lib/components/Stages/index.js +0 -2
  257. package/lib/components/Stages/index.js.map +0 -1
  258. package/lib/components/Stakeholders/StakeholderForm.d.ts +0 -7
  259. package/lib/components/Stakeholders/StakeholderForm.d.ts.map +0 -1
  260. package/lib/components/Stakeholders/StakeholderForm.js +0 -49
  261. package/lib/components/Stakeholders/StakeholderForm.js.map +0 -1
  262. package/lib/components/Stakeholders/Stakeholders.d.ts +0 -6
  263. package/lib/components/Stakeholders/Stakeholders.d.ts.map +0 -1
  264. package/lib/components/Stakeholders/Stakeholders.js +0 -220
  265. package/lib/components/Stakeholders/Stakeholders.js.map +0 -1
  266. package/lib/components/Stakeholders/Stakeholders.types.d.ts +0 -75
  267. package/lib/components/Stakeholders/Stakeholders.types.d.ts.map +0 -1
  268. package/lib/components/Stakeholders/Stakeholders.types.js +0 -2
  269. package/lib/components/Stakeholders/Stakeholders.types.js.map +0 -1
  270. package/lib/components/Stakeholders/index.d.ts +0 -3
  271. package/lib/components/Stakeholders/index.d.ts.map +0 -1
  272. package/lib/components/Stakeholders/index.js +0 -2
  273. package/lib/components/Stakeholders/index.js.map +0 -1
  274. package/lib/components/Tags/Tags.d.ts +0 -34
  275. package/lib/components/Tags/Tags.d.ts.map +0 -1
  276. package/lib/components/Tags/Tags.js +0 -230
  277. package/lib/components/Tags/Tags.js.map +0 -1
  278. package/lib/components/Tags/index.d.ts +0 -3
  279. package/lib/components/Tags/index.d.ts.map +0 -1
  280. package/lib/components/Tags/index.js +0 -2
  281. package/lib/components/Tags/index.js.map +0 -1
  282. package/lib/components/Tasks/TaskList.d.ts +0 -39
  283. package/lib/components/Tasks/TaskList.d.ts.map +0 -1
  284. package/lib/components/Tasks/TaskList.js +0 -71
  285. package/lib/components/Tasks/TaskList.js.map +0 -1
  286. package/lib/components/Tasks/Tasks.d.ts +0 -29
  287. package/lib/components/Tasks/Tasks.d.ts.map +0 -1
  288. package/lib/components/Tasks/Tasks.js +0 -52
  289. package/lib/components/Tasks/Tasks.js.map +0 -1
  290. package/lib/components/Tasks/Tasks.test-ids.d.ts +0 -4
  291. package/lib/components/Tasks/Tasks.test-ids.d.ts.map +0 -1
  292. package/lib/components/Tasks/Tasks.test-ids.js +0 -5
  293. package/lib/components/Tasks/Tasks.test-ids.js.map +0 -1
  294. package/lib/components/Tasks/index.d.ts +0 -4
  295. package/lib/components/Tasks/index.d.ts.map +0 -1
  296. package/lib/components/Tasks/index.js +0 -4
  297. package/lib/components/Tasks/index.js.map +0 -1
  298. package/lib/components/Timeline/Timeline.d.ts +0 -6
  299. package/lib/components/Timeline/Timeline.d.ts.map +0 -1
  300. package/lib/components/Timeline/Timeline.js +0 -26
  301. package/lib/components/Timeline/Timeline.js.map +0 -1
  302. package/lib/components/Timeline/Timeline.styles.d.ts +0 -21
  303. package/lib/components/Timeline/Timeline.styles.d.ts.map +0 -1
  304. package/lib/components/Timeline/Timeline.styles.js +0 -165
  305. package/lib/components/Timeline/Timeline.styles.js.map +0 -1
  306. package/lib/components/Timeline/Timeline.types.d.ts +0 -66
  307. package/lib/components/Timeline/Timeline.types.d.ts.map +0 -1
  308. package/lib/components/Timeline/Timeline.types.js +0 -2
  309. package/lib/components/Timeline/Timeline.types.js.map +0 -1
  310. package/lib/components/Timeline/TimelineItem.d.ts +0 -13
  311. package/lib/components/Timeline/TimelineItem.d.ts.map +0 -1
  312. package/lib/components/Timeline/TimelineItem.js +0 -33
  313. package/lib/components/Timeline/TimelineItem.js.map +0 -1
  314. package/lib/components/Timeline/TimelineToolbar.d.ts +0 -6
  315. package/lib/components/Timeline/TimelineToolbar.d.ts.map +0 -1
  316. package/lib/components/Timeline/TimelineToolbar.js +0 -68
  317. package/lib/components/Timeline/TimelineToolbar.js.map +0 -1
  318. package/lib/components/Timeline/index.d.ts +0 -4
  319. package/lib/components/Timeline/index.d.ts.map +0 -1
  320. package/lib/components/Timeline/index.js +0 -3
  321. package/lib/components/Timeline/index.js.map +0 -1
  322. package/lib/components/Timeline/utils.d.ts +0 -15
  323. package/lib/components/Timeline/utils.d.ts.map +0 -1
  324. package/lib/components/Timeline/utils.js +0 -75
  325. package/lib/components/Timeline/utils.js.map +0 -1
  326. package/lib/index.d.ts +0 -37
  327. package/lib/index.d.ts.map +0 -1
  328. package/lib/index.js +0 -38
  329. package/lib/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"Predictions.js","sourceRoot":"","sources":["../../../src/components/Predictions/Predictions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,UAAU,EAIV,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAEL,YAAY,EACZ,OAAO,EACP,KAAK,EAEL,eAAe,EAEf,UAAU,EAEV,WAAW,EACX,IAAI,EACJ,WAAW,EACX,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,WAAW,MAAM,gEAAgE,CAAC;AAC9F,OAAO,KAAK,eAAe,MAAM,oEAAoE,CAAC;AAItG,YAAY,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;AAE3C,8DAA8D;AAC9D,MAAM,iCAAiC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACzE,OAAO,GAAG,CAAA;qBACS,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE;GAChD,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,iCAAiC,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAElE,MAAM,eAAe,GAEjB,UAAU,CAAC,SAAS,eAAe,CACrC,EACE,KAAK,EAAE,SAAS,EAChB,QAAQ,EACR,GAAG,SAAS,EAC8E,EAC5F,GAA4B;IAE5B,MAAM,CAAC,GAAG,OAAO,E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E,KAAK,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EACzB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,GAAG,EAAE;YACd,eAAe,CAAC,OAAO,GAAG,MAAM,CAAC,uBAAuB,EAAE;gBACxD,KAAK;gBACL,QAAQ;gBACR,KAAK;aACN,CAAC,CAAC;QACL,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import {\n FC,\n forwardRef,\n FunctionComponent,\n MouseEvent,\n PropsWithoutRef,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n ForwardProps,\n registerIcon,\n useI18n,\n Modal,\n SummaryListProps,\n useModalManager,\n SummaryListItem,\n InfoDialog,\n ModalMethods,\n StyledLabel,\n Text,\n SummaryList,\n defaultThemeProp\n} from '@pega/cosmos-react-core';\nimport * as polarisIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/polaris.icon';\nimport * as informationIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/information.icon';\n\nimport PredictionsProps, { PredictionItem } from './Predictions.types';\n\nregisterIcon(polarisIcon, informationIcon);\n\n// Expand minimum width to ensure the chart is readable enough\nconst StyledPredictionExplanationDialog = styled(InfoDialog)(({ theme }) => {\n return css`\n min-width: min(${theme.base['content-width'].md}, calc(100vw - 2rem));\n `;\n});\n\nStyledPredictionExplanationDialog.defaultProps = defaultThemeProp;\n\nconst PredictionsList: FC<\n PredictionsProps & Pick<SummaryListProps, 'onViewAll' | 'name' | 'icon'> & ForwardProps\n> = forwardRef(function PredictionsList(\n {\n items: itemsProp,\n progress,\n ...restProps\n }: PropsWithoutRef<PredictionsProps & Pick<SummaryListProps, 'onViewAll' | 'name' | 'icon'>>,\n ref: PredictionsProps['ref']\n) {\n const t = useI18n();\n const [currentItemIdTarget, setCurrentItemIdTarget] = useState<\n | {\n id: PredictionItem['id'];\n target: HTMLButtonElement | HTMLAnchorElement | HTMLInputElement;\n }\n | undefined\n >();\n const currentItem = itemsProp?.find(({ id }) => id === currentItemIdTarget?.id);\n\n const items: SummaryListItem[] = useMemo(\n () =>\n (itemsProp ?? []).map(item => ({\n id: item.id,\n primary: <StyledLabel forwardedAs='span'>{item.label}</StyledLabel>,\n secondary: (\n <Text variant='h1' as='span'>\n {item.value}\n </Text>\n ),\n overflowStrategy: 'ellipsis',\n actions: item.additionalInfo\n ? [\n {\n id: item.id,\n text: t('learn_more'),\n icon: 'information',\n onClick: (\n id: string,\n e: MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLInputElement>\n ) => {\n setCurrentItemIdTarget({\n id: item.id,\n target: e.currentTarget\n });\n }\n }\n ]\n : undefined\n })),\n [itemsProp]\n );\n\n return (\n <>\n <SummaryList {...restProps} loading={progress} ref={ref} items={items} />\n {currentItemIdTarget && currentItem?.additionalInfo && (\n <StyledPredictionExplanationDialog\n heading={currentItem.label}\n target={currentItemIdTarget.target}\n onDismiss={() => {\n setCurrentItemIdTarget(undefined);\n }}\n >\n {currentItem.additionalInfo}\n </StyledPredictionExplanationDialog>\n )}\n </>\n );\n});\n\nconst PredictionsViewAllModal = ({ count, progress, ...restProps }: PredictionsProps) => {\n const t = useI18n();\n return (\n <Modal heading={t('all_predictions')} count={count} progress={progress}>\n <PredictionsList {...restProps} />\n </Modal>\n );\n};\n\nconst Predictions: FunctionComponent<PredictionsProps & ForwardProps> = forwardRef(\n function Predictions(\n { count, items, progress, ...restProps }: PropsWithoutRef<PredictionsProps>,\n ref: PredictionsProps['ref']\n ) {\n const t = useI18n();\n const { create } = useModalManager();\n const viewAllModalRef = useRef<ModalMethods<PredictionsProps>>();\n\n useEffect(() => {\n viewAllModalRef.current?.update({\n items,\n progress,\n count\n });\n }, [items, progress, count]);\n\n return (\n <PredictionsList\n {...restProps}\n ref={ref}\n name={t('predictions')}\n headingTag='h3'\n icon='polaris'\n count={count}\n items={items?.slice(0, 3)}\n progress={progress}\n onViewAll={() => {\n viewAllModalRef.current = create(PredictionsViewAllModal, {\n items,\n progress,\n count\n });\n }}\n />\n );\n }\n);\n\nexport default Predictions;\n"]}
@@ -1,23 +0,0 @@
1
- import { ReactNode, Ref } from 'react';
2
- import { BaseProps, NoChildrenProp } from '@pega/cosmos-react-core';
3
- export interface PredictionItem {
4
- /** A unique id to represent the item. */
5
- id: string;
6
- /** Label for the prediction item. */
7
- label: string;
8
- /** Value for the prediction item. */
9
- value: string;
10
- /** Additional prediction information rendered in a dialog. */
11
- additionalInfo?: ReactNode;
12
- }
13
- export default interface PredictionsProps extends BaseProps, NoChildrenProp {
14
- /** Integer representing the total count of items. */
15
- count?: number;
16
- /** An array of PredictionItem objects to render. Pass an appropriately limited length array with a desired sort order based on design system defaults or config. */
17
- items?: PredictionItem[];
18
- /** Show a progress indicator when initially fetching list data. */
19
- progress?: boolean;
20
- /** Ref for the wrapping element. */
21
- ref?: Ref<HTMLDivElement>;
22
- }
23
- //# sourceMappingURL=Predictions.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Predictions.types.d.ts","sourceRoot":"","sources":["../../../src/components/Predictions/Predictions.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,gBAAiB,SAAQ,SAAS,EAAE,cAAc;IACzE,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oKAAoK;IACpK,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Predictions.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Predictions.types.js","sourceRoot":"","sources":["../../../src/components/Predictions/Predictions.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ReactNode, Ref } from 'react';\n\nimport { BaseProps, NoChildrenProp } from '@pega/cosmos-react-core';\n\nexport interface PredictionItem {\n /** A unique id to represent the item. */\n id: string;\n /** Label for the prediction item. */\n label: string;\n /** Value for the prediction item. */\n value: string;\n /** Additional prediction information rendered in a dialog. */\n additionalInfo?: ReactNode;\n}\n\nexport default interface PredictionsProps extends BaseProps, NoChildrenProp {\n /** Integer representing the total count of items. */\n count?: number;\n /** An array of PredictionItem objects to render. Pass an appropriately limited length array with a desired sort order based on design system defaults or config. */\n items?: PredictionItem[];\n /** Show a progress indicator when initially fetching list data. */\n progress?: boolean;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n"]}
@@ -1,3 +0,0 @@
1
- export { default } from './Predictions';
2
- export type { default as PredictionsProps } from './Predictions.types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Predictions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default } from './Predictions';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Predictions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './Predictions';\nexport type { default as PredictionsProps } from './Predictions.types';\n"]}
@@ -1,8 +0,0 @@
1
- import { FilterProps, SearchResultsProps } from './SearchResults.types';
2
- interface FilterComponentProps {
3
- onFilterChange?: SearchResultsProps['onFilterChange'];
4
- onClearFilter?: SearchResultsProps['onClearFilter'];
5
- }
6
- declare const Filter: ({ onFilterChange, onClearFilter, name, expanded, ...control }: FilterProps & FilterComponentProps) => JSX.Element;
7
- export default Filter;
8
- //# sourceMappingURL=Filter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../src/components/SearchResults/Filter.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAyB,MAAM,uBAAuB,CAAC;AAK/F,UAAU,oBAAoB;IAC5B,cAAc,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACtD,aAAa,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;CACrD;AAED,QAAA,MAAM,MAAM,kEAMT,WAAW,GAAG,oBAAoB,KAAG,WA6EvC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,45 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from 'react';
3
- import { Button, Checkbox, CheckboxGroup, ExpandCollapse, Flex, Icon, registerIcon, RadioButton, RadioButtonGroup, Text, useI18n } from '@pega/cosmos-react-core';
4
- import * as caretDownIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/caret-down.icon';
5
- import { StyledFilter, StyledFilterButton } from './SearchResults.styles';
6
- registerIcon(caretDownIcon);
7
- const Filter = ({ onFilterChange, onClearFilter, name, expanded = true, ...control }) => {
8
- const t = useI18n();
9
- const [filterExpanded, setFilterExpanded] = useState(expanded);
10
- let filterControl;
11
- let filterActive = false;
12
- // eslint-disable-next-line sonarjs/no-small-switch
13
- switch (control.type) {
14
- case 'select': {
15
- const { selectType, items } = control;
16
- let SelectFilterGroup = CheckboxGroup;
17
- let SelectFilter = Checkbox;
18
- if (selectType === 'single-select') {
19
- SelectFilterGroup = RadioButtonGroup;
20
- SelectFilter = RadioButton;
21
- }
22
- filterControl = (_jsx(SelectFilterGroup, { label: name, labelHidden: true, onChange: e => {
23
- const item = items.find((x) => x.id === e.target.id);
24
- if (!item)
25
- return;
26
- const newItem = { ...item, checked: !item.checked };
27
- onFilterChange?.({
28
- name,
29
- type: control.type,
30
- value: newItem
31
- });
32
- }, children: control.items.map((filterOption) => {
33
- if (filterOption.checked)
34
- filterActive = true;
35
- return (_jsx(SelectFilter, { id: filterOption.id, name: filterOption.name, label: filterOption.label, checked: filterOption.checked }, filterOption.id));
36
- }) }));
37
- break;
38
- }
39
- default:
40
- filterControl = null;
41
- }
42
- return (_jsxs(StyledFilter, { children: [_jsxs(Flex, { container: { justify: 'between' }, children: [_jsxs(Flex, { as: StyledFilterButton, container: { gap: 1, alignItems: 'center' }, variant: 'text', onClick: () => setFilterExpanded(curr => !curr), "aria-expanded": filterExpanded, "aria-label": t(filterExpanded ? 'collapse_noun' : 'expand_noun', [name]), children: [_jsx(Icon, { name: 'caret-down' }), _jsx(Text, { variant: 'h3', as: 'span', children: name })] }), filterActive && (_jsx(Button, { variant: 'link', onClick: () => onClearFilter?.(name), children: t('clear') }))] }), _jsx(ExpandCollapse, { collapsed: !filterExpanded, children: filterControl })] }));
43
- };
44
- export default Filter;
45
- //# sourceMappingURL=Filter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../../src/components/SearchResults/Filter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,aAAa,EACb,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,IAAI,EACJ,OAAO,EACR,MAAM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I,CAAC,YACxD,CAAC,CAAC,OAAO,CAAC,GACJ,CACV,IACI,EACP,KAAC,cAAc,IAAC,SAAS,EAAE,CAAC,cAAc,YAAG,aAAa,GAAkB,IAC/D,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC","sourcesContent":["import { useState } from 'react';\n\nimport {\n Button,\n Checkbox,\n CheckboxGroup,\n ExpandCollapse,\n Flex,\n Icon,\n registerIcon,\n RadioButton,\n RadioButtonGroup,\n Text,\n useI18n\n} from '@pega/cosmos-react-core';\nimport * as caretDownIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/caret-down.icon';\n\nimport { FilterProps, SearchResultsProps, SelectFilterItemProps } from './SearchResults.types';\nimport { StyledFilter, StyledFilterButton } from './SearchResults.styles';\n\nregisterIcon(caretDownIcon);\n\ninterface FilterComponentProps {\n onFilterChange?: SearchResultsProps['onFilterChange'];\n onClearFilter?: SearchResultsProps['onClearFilter'];\n}\n\nconst Filter = ({\n onFilterChange,\n onClearFilter,\n name,\n expanded = true,\n ...control\n}: FilterProps & FilterComponentProps): JSX.Element => {\n const t = useI18n();\n const [filterExpanded, setFilterExpanded] = useState(expanded);\n\n let filterControl;\n let filterActive = false;\n // eslint-disable-next-line sonarjs/no-small-switch\n switch (control.type) {\n case 'select': {\n const { selectType, items } = control;\n let SelectFilterGroup = CheckboxGroup;\n let SelectFilter = Checkbox;\n if (selectType === 'single-select') {\n SelectFilterGroup = RadioButtonGroup;\n SelectFilter = RadioButton;\n }\n filterControl = (\n <SelectFilterGroup\n label={name}\n labelHidden\n onChange={e => {\n const item = items.find((x: SelectFilterItemProps) => x.id === e.target.id);\n if (!item) return;\n const newItem = { ...item, checked: !item.checked };\n\n onFilterChange?.({\n name,\n type: control.type,\n value: newItem\n });\n }}\n >\n {control.items.map((filterOption: SelectFilterItemProps) => {\n if (filterOption.checked) filterActive = true;\n return (\n <SelectFilter\n key={filterOption.id}\n id={filterOption.id}\n name={filterOption.name}\n label={filterOption.label}\n checked={filterOption.checked}\n />\n );\n })}\n </SelectFilterGroup>\n );\n break;\n }\n default:\n filterControl = null;\n }\n\n return (\n <StyledFilter>\n <Flex container={{ justify: 'between' }}>\n <Flex\n as={StyledFilterButton}\n container={{ gap: 1, alignItems: 'center' }}\n variant='text'\n onClick={() => setFilterExpanded(curr => !curr)}\n aria-expanded={filterExpanded}\n aria-label={t(filterExpanded ? 'collapse_noun' : 'expand_noun', [name])}\n >\n <Icon name='caret-down' />\n <Text variant='h3' as='span'>\n {name}\n </Text>\n </Flex>\n {filterActive && (\n <Button variant='link' onClick={() => onClearFilter?.(name)}>\n {t('clear')}\n </Button>\n )}\n </Flex>\n <ExpandCollapse collapsed={!filterExpanded}>{filterControl}</ExpandCollapse>\n </StyledFilter>\n );\n};\n\nexport default Filter;\n"]}
@@ -1,4 +0,0 @@
1
- import { SearchResultProps } from './SearchResults.types';
2
- declare const SearchResult: ({ title, link, description, meta, accent }: SearchResultProps) => JSX.Element;
3
- export default SearchResult;
4
- //# sourceMappingURL=SearchResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchResult.d.ts","sourceRoot":"","sources":["../../../src/components/SearchResults/SearchResult.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAyB1D,QAAA,MAAM,YAAY,+CAMf,iBAAiB,KAAG,WActB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import styled, { css } from 'styled-components';
3
- import { defaultThemeProp, Text, MetaList, Link, Flex, StyledPopover, calculateFontSize, replaceMatchWithElement, Mark } from '@pega/cosmos-react-core';
4
- const StyledSearchResult = styled.article(({ theme }) => {
5
- const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
6
- return css `
7
- h2 ${StyledPopover} {
8
- font-size: ${fontSize.s};
9
- font-weight: ${theme.base['font-weight'].normal};
10
- }
11
- padding-block-end: calc(2 * ${theme.base.spacing});
12
- border-bottom: 0.0125rem solid ${theme.base.palette['border-line']};
13
-
14
- &:last-of-type {
15
- border-bottom: none;
16
- }
17
- `;
18
- });
19
- StyledSearchResult.defaultProps = defaultThemeProp;
20
- const StyledDescription = styled(Text) `
21
- word-break: break-word;
22
- `;
23
- const SearchResult = ({ title, link, description, meta = [], accent }) => {
24
- return (_jsxs(Flex, { as: StyledSearchResult, container: { direction: 'column', gap: 1 }, children: [_jsxs(Flex, { container: { direction: 'column' }, children: [_jsx(Text, { variant: 'h2', children: _jsx(Link, { ...link, children: accent ? replaceMatchWithElement(title, accent, match => _jsx(Mark, { children: match })) : title }) }), !!meta.length && _jsx(MetaList, { items: meta })] }), description && _jsx(StyledDescription, { forwardedAs: 'p', children: description })] }));
25
- };
26
- export default SearchResult;
27
- //# sourceMappingURL=SearchResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchResult.js","sourceRoot":"","sources":["../../../src/components/SearchResults/SearchResult.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,IAAI,EACL,MAAM,yBAAyB,CAAC;AAIjC,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACtD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAEtF,OAAO,GAAG,CAAA;SACH,aAAa;mBACH,QAAQ,CAAC,CAAC;qBACR,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM;;kCAEnB,KAAK,CAAC,IAAI,CAAC,OAAO;qCACf,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;;;;;GAKnE,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAkB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEnD,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,EACpB,KAAK,EACL,IAAI,EACJ,WAAW,EACX,IAAI,GAAG,EAAE,EACT,MAAM,EACY,EAAe,EAAE;IACnC,OAAO,CACL,MAAC,IAAI,IAAC,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aACtE,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,aACtC,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,YAChB,KAAC,IAAI,OAAK,IAAI,YACX,MAAM,CAAC,CAAC,CAAC,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAC,IAAI,cAAE,KAAK,GAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,GAClF,GACF,EACN,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,GAAI,IACtC,EACN,WAAW,IAAI,KAAC,iBAAiB,IAAC,WAAW,EAAC,GAAG,YAAE,WAAW,GAAqB,IAC/E,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport {\n defaultThemeProp,\n Text,\n MetaList,\n Link,\n Flex,\n StyledPopover,\n calculateFontSize,\n replaceMatchWithElement,\n Mark\n} from '@pega/cosmos-react-core';\n\nimport { SearchResultProps } from './SearchResults.types';\n\nconst StyledSearchResult = styled.article(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n h2 ${StyledPopover} {\n font-size: ${fontSize.s};\n font-weight: ${theme.base['font-weight'].normal};\n }\n padding-block-end: calc(2 * ${theme.base.spacing});\n border-bottom: 0.0125rem solid ${theme.base.palette['border-line']};\n\n &:last-of-type {\n border-bottom: none;\n }\n `;\n});\n\nStyledSearchResult.defaultProps = defaultThemeProp;\n\nconst StyledDescription = styled(Text)`\n word-break: break-word;\n`;\n\nconst SearchResult = ({\n title,\n link,\n description,\n meta = [],\n accent\n}: SearchResultProps): JSX.Element => {\n return (\n <Flex as={StyledSearchResult} container={{ direction: 'column', gap: 1 }}>\n <Flex container={{ direction: 'column' }}>\n <Text variant='h2'>\n <Link {...link}>\n {accent ? replaceMatchWithElement(title, accent, match => <Mark>{match}</Mark>) : title}\n </Link>\n </Text>\n {!!meta.length && <MetaList items={meta} />}\n </Flex>\n {description && <StyledDescription forwardedAs='p'>{description}</StyledDescription>}\n </Flex>\n );\n};\n\nexport default SearchResult;\n"]}
@@ -1,6 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { ForwardProps } from '@pega/cosmos-react-core';
3
- import { SearchResultsProps } from './SearchResults.types';
4
- declare const SearchResults: FunctionComponent<SearchResultsProps & ForwardProps>;
5
- export default SearchResults;
6
- //# sourceMappingURL=SearchResults.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchResults.d.ts","sourceRoot":"","sources":["../../../src/components/SearchResults/SearchResults.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AAGf,OAAO,EAIL,YAAY,EAmBb,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EACL,kBAAkB,EAInB,MAAM,uBAAuB,CAAC;AA6E/B,QAAA,MAAM,aAAa,EAAE,iBAAiB,CAAC,kBAAkB,GAAG,YAAY,CAsPvE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,121 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { forwardRef, useContext, useRef, useState } from 'react';
3
- import { createPortal } from 'react-dom';
4
- import { Button, Count, Flex, Grid, Icon, registerIcon, Modal, EmptyState, SearchInput, Selectable, Text, useModalManager, useI18n, useBreakpoint, useAfterInitialEffect, SummaryItem, Avatar, useTheme, AppShellContext, Progress } from '@pega/cosmos-react-core';
5
- import * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';
6
- import * as filterOnIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter-on.icon';
7
- import SearchResult from './SearchResult';
8
- import Filter from './Filter';
9
- import { StyledModalFilterContent, StyledCountText, StyledSelectedFilters, StyledSearchResults, StyledResults, StyledFilters, StyledSearchSummaryItem } from './SearchResults.styles';
10
- registerIcon(filterIcon, filterOnIcon);
11
- const FilterModal = (props) => {
12
- const { activeFilters, count, filters, onFilterChange, onClearFilter, onClearAllFilters } = props;
13
- const t = useI18n();
14
- return (_jsx(Modal, { heading: t('filters'), autoWidth: true, children: _jsxs(Grid, { as: StyledModalFilterContent, container: { rowGap: 2 }, children: [_jsxs(Flex, { container: { gap: 1, alignItems: 'center' }, children: [_jsx(Text, { as: StyledCountText, variant: 'secondary', children: t('results_count', [count], { count }) }), onClearAllFilters && !!activeFilters.length && (_jsx(Button, { variant: 'link', onClick: onClearAllFilters, children: t('clear_all') }))] }), !!activeFilters.length && (_jsx(Flex, { as: StyledSelectedFilters, container: { gap: 1 }, children: activeFilters.map(filter => {
15
- return (_jsx(Selectable, { id: filter.id, onRemove: () => onFilterChange?.({
16
- name: filter.groupName,
17
- type: filter.type,
18
- value: filter.resetValue
19
- }), children: `${filter.groupName}: ${filter.name}` }, filter.id));
20
- }) })), _jsx("div", { children: filters.map((filter) => {
21
- return (_jsx(Filter, { onFilterChange: onFilterChange, onClearFilter: onClearFilter, ...filter }, filter.name));
22
- }) })] }) }));
23
- };
24
- const SearchResults = forwardRef(function SearchResults({ results, searchInputProps, count, filters, onFilterChange, onClearAllFilters, onClearFilter, onShowMore, loading = false, ...restProps }, ref) {
25
- const t = useI18n();
26
- const isMedium = useBreakpoint('md');
27
- const { create } = useModalManager();
28
- const { searchContainerEl } = useContext(AppShellContext);
29
- const filtersMethods = useRef();
30
- const { placeholder = t('search_placeholder_default') } = searchInputProps;
31
- const { base: { palette: { 'brand-primary': primary } } } = useTheme();
32
- const [accent, setAccent] = useState();
33
- const [submittedSearchValue, setSubmittedSearchValue] = useState(searchInputProps.value);
34
- const activeFilters = filters.flatMap(group => {
35
- if (group.type === 'select') {
36
- return group.items.flatMap(item => {
37
- if (item.checked) {
38
- return {
39
- id: item.id,
40
- name: item.name,
41
- resetValue: { ...item, checked: false },
42
- groupName: group.name,
43
- type: group.type
44
- };
45
- }
46
- return [];
47
- });
48
- }
49
- return [];
50
- });
51
- const openFiltersModal = () => {
52
- filtersMethods.current = create(FilterModal, {
53
- activeFilters,
54
- count,
55
- filters,
56
- onFilterChange,
57
- onClearFilter,
58
- onClearAllFilters
59
- });
60
- };
61
- useAfterInitialEffect(() => {
62
- if (filtersMethods.current) {
63
- filtersMethods.current.update({
64
- activeFilters,
65
- count,
66
- filters
67
- });
68
- }
69
- }, [activeFilters, count, filters]);
70
- useAfterInitialEffect(() => {
71
- if (isMedium && filtersMethods.current)
72
- filtersMethods.current.dismiss();
73
- }, [isMedium]);
74
- useAfterInitialEffect(() => {
75
- setAccent(submittedSearchValue ? new RegExp(submittedSearchValue, 'gi') : undefined);
76
- }, [submittedSearchValue]);
77
- const searchTitle = (_jsx(SummaryItem, { as: StyledSearchSummaryItem, visual: _jsx(Avatar, { icon: 'search', name: 'search', shape: 'squircle', backgroundColor: primary, color: 'white' }), primary: _jsx(Text, { variant: 'h1', children: "Search" }), actions: onClearAllFilters &&
78
- isMedium &&
79
- !!activeFilters.length && (_jsx(Button, { variant: 'link', onClick: onClearAllFilters, children: t('clear_all') })) }));
80
- const searchInput = (_jsx(SearchInput, { ...searchInputProps, onSearchSubmit: val => {
81
- searchInputProps.onSearchSubmit?.(val);
82
- setSubmittedSearchValue(val);
83
- }, placeholder: placeholder }));
84
- return (_jsxs(Grid, { ...restProps, as: StyledSearchResults, ref: ref, md: filters.length
85
- ? {
86
- container: {
87
- cols: '15rem auto'
88
- }
89
- }
90
- : undefined, sm: filters.length
91
- ? {
92
- container: {
93
- cols: 'auto',
94
- rowGap: 2
95
- }
96
- }
97
- : undefined, container: {
98
- rows: 'auto auto',
99
- cols: 'auto 1fr',
100
- areas: '"filters results"'
101
- }, children: [isMedium && !!filters.length && (_jsxs(Grid, { item: { area: 'filters', alignSelf: 'start' }, as: StyledFilters, children: [searchTitle, filters.map((filter) => {
102
- return (_jsx(Filter, { onFilterChange: onFilterChange, onClearFilter: onClearFilter, ...filter }, filter.name));
103
- })] })), _jsxs(Grid, { item: { alignSelf: 'start', area: 'results' }, container: {
104
- alignItems: 'center',
105
- rowGap: 2,
106
- rows: 'auto auto 1fr',
107
- areas: '"search" "meta" "items"'
108
- }, as: StyledResults, children: [loading && _jsx(Progress, { placement: 'local' }), searchContainerEl && isMedium ? (createPortal(searchInput, searchContainerEl)) : (_jsxs(Grid, { item: { area: 'search' }, children: [!isMedium && searchTitle, searchInput] })), _jsxs(Grid, { item: { area: 'meta' }, container: { rowGap: 1 }, children: [_jsxs(Flex, { container: { justify: 'between', alignItems: 'center' }, children: [!loading && (_jsx(Text, { as: StyledCountText, variant: 'secondary', children: submittedSearchValue !== '' || results.length > 0
109
- ? t('results_count', [count], { count })
110
- : '' })), !isMedium && !!filters.length && (_jsxs(Button, { variant: 'simple', onClick: openFiltersModal, children: [_jsx(Icon, { name: activeFilters.length > 0 ? 'filter-on' : 'filter' }), "\u00A0", t('filters'), "\u00A0", _jsx(Count, { children: activeFilters.length })] }))] }), !!activeFilters.length && (_jsx(Flex, { as: StyledSelectedFilters, container: { gap: 1, wrap: 'wrap' }, children: activeFilters.map(filter => {
111
- return (_jsx(Selectable, { id: filter.id, onRemove: () => onFilterChange?.({
112
- name: filter.groupName,
113
- type: filter.type,
114
- value: filter.resetValue
115
- }), children: `${filter.groupName}: ${filter.name}` }, filter.id));
116
- }) }))] }), _jsx(Grid, { item: { area: 'items', alignSelf: results.length ? 'start' : 'stretch' }, container: { rowGap: 2 }, children: !loading && (_jsxs(_Fragment, { children: [results.length ? (results.map((result) => {
117
- return _jsx(SearchResult, { ...result, accent: accent }, result.id);
118
- })) : (_jsx(Grid, { item: { alignSelf: 'stretch' }, children: _jsx(EmptyState, { message: submittedSearchValue === '' ? t('empty_search') : undefined }) })), onShowMore && (_jsx(Flex, { container: { justify: 'center' }, children: _jsx(Button, { variant: 'link', onClick: onShowMore, children: t('show_more') }) }))] })) })] })] }));
119
- });
120
- export default SearchResults;
121
- //# sourceMappingURL=SearchResults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchResults.js","sourceRoot":"","sources":["../../../src/components/SearchResults/SearchResults.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,UAAU,EACV,MAAM,EAIN,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EACL,MAAM,EACN,KAAK,EACL,IAAI,EAEJ,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,KAAK,EAEL,UAAU,EACV,WAAW,EACX,UAAU,EACV,IAAI,EACJ,eAAe,EACf,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,QAAQ,EACR,eAAe,EACf,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,+DAA+D,CAAC;AAC5F,OAAO,KAAK,YAAY,MAAM,kEAAkE,CAAC;AAQjG,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,a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,MAAM,CAAC,IAAI,EAAE,IAVjC,MAAM,CAAC,EAAE,CAWH,CACd,CAAC;gCACJ,CAAC,CAAC,GACG,CACR,IACI,EACP,KAAC,IAAI,IACH,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,EACxE,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,YAEvB,CAAC,OAAO,IAAI,CACX,8BACG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAChB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAyB,EAAE,EAAE;oCACxC,OAAO,KAAC,YAAY,OAAqB,MAAM,EAAE,MAAM,EAAE,MAAM,IAArC,MAAM,CAAC,EAAE,CAAgC,CAAC;gCACtE,CAAC,CAAC,CACH,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,YAClC,KAAC,UAAU,IACT,OAAO,EAAE,oBAAoB,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,GACpE,GACG,CACR,EACA,UAAU,IAAI,CACb,KAAC,IAAI,IAAC,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,YACpC,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,UAAU,YACvC,CAAC,CAAC,WAAW,CAAC,GACR,GACJ,CACR,IACA,CACJ,GACI,IACF,IACF,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import {\n forwardRef,\n useContext,\n useRef,\n FunctionComponent,\n PropsWithoutRef,\n ComponentProps,\n useState\n} from 'react';\nimport { createPortal } from 'react-dom';\n\nimport {\n Button,\n Count,\n Flex,\n ForwardProps,\n Grid,\n Icon,\n registerIcon,\n Modal,\n ModalMethods,\n EmptyState,\n SearchInput,\n Selectable,\n Text,\n useModalManager,\n useI18n,\n useBreakpoint,\n useAfterInitialEffect,\n SummaryItem,\n Avatar,\n useTheme,\n AppShellContext,\n Progress\n} from '@pega/cosmos-react-core';\nimport * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';\nimport * as filterOnIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter-on.icon';\n\nimport {\n SearchResultsProps,\n SearchResultProps,\n FilterProps,\n ActiveFilters\n} from './SearchResults.types';\nimport SearchResult from './SearchResult';\nimport Filter from './Filter';\nimport {\n StyledModalFilterContent,\n StyledCountText,\n StyledSelectedFilters,\n StyledSearchResults,\n StyledResults,\n StyledFilters,\n StyledSearchSummaryItem\n} from './SearchResults.styles';\n\nregisterIcon(filterIcon, filterOnIcon);\n\nconst FilterModal = (\n props: Pick<\n SearchResultsProps,\n 'count' | 'filters' | 'onFilterChange' | 'onClearFilter' | 'onClearAllFilters'\n > & {\n activeFilters: ActiveFilters[];\n }\n) => {\n const { activeFilters, count, filters, onFilterChange, onClearFilter, onClearAllFilters } = props;\n const t = useI18n();\n\n return (\n <Modal heading={t('filters')} autoWidth>\n <Grid as={StyledModalFilterContent} container={{ rowGap: 2 }}>\n <Flex container={{ gap: 1, alignItems: 'center' }}>\n <Text as={StyledCountText} variant='secondary'>\n {t('results_count', [count], { count })}\n </Text>\n {onClearAllFilters && !!activeFilters.length && (\n <Button variant='link' onClick={onClearAllFilters}>\n {t('clear_all')}\n </Button>\n )}\n </Flex>\n {!!activeFilters.length && (\n <Flex as={StyledSelectedFilters} container={{ gap: 1 }}>\n {activeFilters.map(filter => {\n return (\n <Selectable\n key={filter.id}\n id={filter.id}\n onRemove={() =>\n onFilterChange?.({\n name: filter.groupName,\n type: filter.type,\n value: filter.resetValue\n })\n }\n >\n {`${filter.groupName}: ${filter.name}`}\n </Selectable>\n );\n })}\n </Flex>\n )}\n <div>\n {filters.map((filter: FilterProps) => {\n return (\n <Filter\n key={filter.name}\n onFilterChange={onFilterChange}\n onClearFilter={onClearFilter}\n {...filter}\n />\n );\n })}\n </div>\n </Grid>\n </Modal>\n );\n};\n\nconst SearchResults: FunctionComponent<SearchResultsProps & ForwardProps> = forwardRef(\n function SearchResults(\n {\n results,\n searchInputProps,\n count,\n filters,\n onFilterChange,\n onClearAllFilters,\n onClearFilter,\n onShowMore,\n loading = false,\n ...restProps\n }: PropsWithoutRef<SearchResultsProps>,\n ref: SearchResultsProps['ref']\n ) {\n const t = useI18n();\n const isMedium = useBreakpoint('md');\n const { create } = useModalManager();\n const { searchContainerEl } = useContext(AppShellContext);\n const filtersMethods = useRef<ModalMethods<ComponentProps<typeof FilterModal>>>();\n const { placeholder = t('search_placeholder_default') } = searchInputProps;\n const {\n base: {\n palette: { 'brand-primary': primary }\n }\n } = useTheme();\n const [accent, setAccent] = useState<undefined | RegExp>();\n const [submittedSearchValue, setSubmittedSearchValue] = useState(searchInputProps.value);\n\n const activeFilters: ActiveFilters[] = filters.flatMap(group => {\n if (group.type === 'select') {\n return group.items.flatMap(item => {\n if (item.checked) {\n return {\n id: item.id,\n name: item.name,\n resetValue: { ...item, checked: false },\n groupName: group.name,\n type: group.type\n };\n }\n return [];\n });\n }\n return [];\n });\n\n const openFiltersModal = () => {\n filtersMethods.current = create(FilterModal, {\n activeFilters,\n count,\n filters,\n onFilterChange,\n onClearFilter,\n onClearAllFilters\n });\n };\n\n useAfterInitialEffect(() => {\n if (filtersMethods.current) {\n filtersMethods.current.update({\n activeFilters,\n count,\n filters\n });\n }\n }, [activeFilters, count, filters]);\n\n useAfterInitialEffect(() => {\n if (isMedium && filtersMethods.current) filtersMethods.current.dismiss();\n }, [isMedium]);\n\n useAfterInitialEffect(() => {\n setAccent(submittedSearchValue ? new RegExp(submittedSearchValue, 'gi') : undefined);\n }, [submittedSearchValue]);\n\n const searchTitle = (\n <SummaryItem\n as={StyledSearchSummaryItem}\n visual={\n <Avatar\n icon='search'\n name='search'\n shape='squircle'\n backgroundColor={primary}\n color='white'\n />\n }\n primary={<Text variant='h1'>Search</Text>}\n actions={\n onClearAllFilters &&\n isMedium &&\n !!activeFilters.length && (\n <Button variant='link' onClick={onClearAllFilters}>\n {t('clear_all')}\n </Button>\n )\n }\n />\n );\n const searchInput = (\n <SearchInput\n {...searchInputProps}\n onSearchSubmit={val => {\n searchInputProps.onSearchSubmit?.(val);\n setSubmittedSearchValue(val);\n }}\n placeholder={placeholder}\n />\n );\n\n return (\n <Grid\n {...restProps}\n as={StyledSearchResults}\n ref={ref}\n md={\n filters.length\n ? {\n container: {\n cols: '15rem auto'\n }\n }\n : undefined\n }\n sm={\n filters.length\n ? {\n container: {\n cols: 'auto',\n rowGap: 2\n }\n }\n : undefined\n }\n container={{\n rows: 'auto auto',\n cols: 'auto 1fr',\n areas: '\"filters results\"'\n }}\n >\n {isMedium && !!filters.length && (\n <Grid item={{ area: 'filters', alignSelf: 'start' }} as={StyledFilters}>\n {searchTitle}\n {filters.map((filter: FilterProps) => {\n return (\n <Filter\n key={filter.name}\n onFilterChange={onFilterChange}\n onClearFilter={onClearFilter}\n {...filter}\n />\n );\n })}\n </Grid>\n )}\n <Grid\n item={{ alignSelf: 'start', area: 'results' }}\n container={{\n alignItems: 'center',\n rowGap: 2,\n rows: 'auto auto 1fr',\n areas: '\"search\" \"meta\" \"items\"'\n }}\n as={StyledResults}\n >\n {loading && <Progress placement='local' />}\n {searchContainerEl && isMedium ? (\n createPortal(searchInput, searchContainerEl)\n ) : (\n <Grid item={{ area: 'search' }}>\n {!isMedium && searchTitle}\n {searchInput}\n </Grid>\n )}\n <Grid item={{ area: 'meta' }} container={{ rowGap: 1 }}>\n <Flex container={{ justify: 'between', alignItems: 'center' }}>\n {!loading && (\n <Text as={StyledCountText} variant='secondary'>\n {submittedSearchValue !== '' || results.length > 0\n ? t('results_count', [count], { count })\n : ''}\n </Text>\n )}\n {!isMedium && !!filters.length && (\n <Button variant='simple' onClick={openFiltersModal}>\n <Icon name={activeFilters.length > 0 ? 'filter-on' : 'filter'} />\n &nbsp;{t('filters')}&nbsp;\n <Count>{activeFilters.length}</Count>\n </Button>\n )}\n </Flex>\n {!!activeFilters.length && (\n <Flex as={StyledSelectedFilters} container={{ gap: 1, wrap: 'wrap' }}>\n {activeFilters.map(filter => {\n return (\n <Selectable\n key={filter.id}\n id={filter.id}\n onRemove={() =>\n onFilterChange?.({\n name: filter.groupName,\n type: filter.type,\n value: filter.resetValue\n })\n }\n >\n {`${filter.groupName}: ${filter.name}`}\n </Selectable>\n );\n })}\n </Flex>\n )}\n </Grid>\n <Grid\n item={{ area: 'items', alignSelf: results.length ? 'start' : 'stretch' }}\n container={{ rowGap: 2 }}\n >\n {!loading && (\n <>\n {results.length ? (\n results.map((result: SearchResultProps) => {\n return <SearchResult key={result.id} {...result} accent={accent} />;\n })\n ) : (\n <Grid item={{ alignSelf: 'stretch' }}>\n <EmptyState\n message={submittedSearchValue === '' ? t('empty_search') : undefined}\n />\n </Grid>\n )}\n {onShowMore && (\n <Flex container={{ justify: 'center' }}>\n <Button variant='link' onClick={onShowMore}>\n {t('show_more')}\n </Button>\n </Flex>\n )}\n </>\n )}\n </Grid>\n </Grid>\n </Grid>\n );\n }\n);\n\nexport default SearchResults;\n"]}
@@ -1,11 +0,0 @@
1
- export declare const StyledSearchResults: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
- export declare const StyledFilterTitle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
3
- export declare const StyledCountText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
4
- export declare const StyledModalFilterContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
- export declare const StyledSelectedFilters: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
- export declare const StyledFilter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
- export declare const StyledFilterButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ButtonProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
8
- export declare const StyledSearchSummaryItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
- export declare const StyledFilters: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
- export declare const StyledResults: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
- //# sourceMappingURL=SearchResults.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchResults.styles.d.ts","sourceRoot":"","sources":["../../../src/components/SearchResults/SearchResults.styles.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB,yGAE/B,CAAC;AAIF,eAAO,MAAM,iBAAiB,0GAI5B,CAAC;AAIH,eAAO,MAAM,eAAe,0GAI1B,CAAC;AAIH,eAAO,MAAM,wBAAwB,yGAWpC,CAAC;AAIF,eAAO,MAAM,qBAAqB,yGAWjC,CAAC;AAIF,eAAO,MAAM,YAAY,yGAAe,CAAC;AAIzC,eAAO,MAAM,kBAAkB,qOAsB7B,CAAC;AAIH,eAAO,MAAM,uBAAuB,yGAYnC,CAAC;AAIF,eAAO,MAAM,aAAa,yGAWxB,CAAC;AAIH,eAAO,MAAM,aAAa,yGAOxB,CAAC"}
@@ -1,88 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import { Button, calculateFontSize, defaultThemeProp, StyledIcon, StyledSearchInput, useDirection } from '@pega/cosmos-react-core';
3
- export const StyledSearchResults = styled.div `
4
- min-height: inherit;
5
- `;
6
- StyledSearchResults.defaultProps = defaultThemeProp;
7
- export const StyledFilterTitle = styled.span(({ theme: { base } }) => {
8
- return css `
9
- padding-bottom: calc(2 * ${base.spacing});
10
- `;
11
- });
12
- StyledFilterTitle.defaultProps = defaultThemeProp;
13
- export const StyledCountText = styled.span(({ theme: { base } }) => {
14
- return css `
15
- font-weight: ${base['font-weight']['semi-bold']};
16
- `;
17
- });
18
- StyledCountText.defaultProps = defaultThemeProp;
19
- export const StyledModalFilterContent = styled.div(({ theme: { base: { spacing } } }) => {
20
- return css `
21
- margin-top: calc(0.5 * ${spacing});
22
- width: calc(${spacing} * 50);
23
- `;
24
- });
25
- StyledModalFilterContent.defaultProps = defaultThemeProp;
26
- export const StyledSelectedFilters = styled.div(({ theme: { base: { spacing } } }) => {
27
- return css `
28
- overflow-x: auto;
29
- padding-bottom: calc(1 * ${spacing});
30
- `;
31
- });
32
- StyledSelectedFilters.defaultProps = defaultThemeProp;
33
- export const StyledFilter = styled.div ``;
34
- StyledFilter.defaultProps = defaultThemeProp;
35
- export const StyledFilterButton = styled(Button)(({ theme: { base } }) => {
36
- const fontSize = calculateFontSize(base['font-size'], base['font-scale']);
37
- const { rtl } = useDirection();
38
- return css `
39
- display: inline-flex;
40
- font-size: ${fontSize.xl};
41
-
42
- ${StyledIcon} {
43
- height: 1em;
44
- width: 1em;
45
- transition: transform ${base.animation.speed} ${base.animation.timing.ease};
46
- }
47
-
48
- &[aria-expanded='true'] ${StyledIcon} {
49
- transform: rotate(0);
50
- }
51
-
52
- &[aria-expanded='false'] ${StyledIcon} {
53
- transform: rotate(calc(${rtl ? '1' : '-1'} * 90deg));
54
- }
55
- `;
56
- });
57
- StyledFilterButton.defaultProps = defaultThemeProp;
58
- export const StyledSearchSummaryItem = styled.div(({ theme: { base: { spacing } } }) => css `
59
- column-gap: calc(${spacing} * 1);
60
-
61
- + ${StyledSearchInput} {
62
- margin-block-start: calc(${spacing} * 1);
63
- }
64
- `);
65
- StyledSearchSummaryItem.defaultProps = defaultThemeProp;
66
- export const StyledFilters = styled.div(({ theme }) => {
67
- return css `
68
- position: sticky;
69
- top: var(--appshell-offset, 0);
70
- max-height: calc(100vh - var(--appshell-offset, 0rem));
71
- overflow: auto;
72
- > ${StyledFilter}, ${StyledSearchSummaryItem} {
73
- border-bottom: 0.0125rem solid ${theme.base.palette['border-line']};
74
- padding: calc(${theme.base.spacing} * 2);
75
- }
76
- `;
77
- });
78
- StyledFilters.defaultProps = defaultThemeProp;
79
- export const StyledResults = styled.div(({ theme }) => {
80
- return css `
81
- background-color: ${theme.base.palette['primary-background']};
82
- padding: calc(${theme.base.spacing} * 2);
83
- position: relative;
84
- min-height: calc(100vh - var(--appshell-offset, 0rem));
85
- `;
86
- });
87
- StyledResults.defaultProps = defaultThemeProp;
88
- //# sourceMappingURL=SearchResults.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchResults.styles.js","sourceRoot":"","sources":["../../../src/components/SearchResults/SearchResults.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,YAAY,EACb,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE5C,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE;IACnE,OAAO,GAAG,CAAA;+BACmB,IAAI,CAAC,OAAO;GACxC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,iBAAiB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE;IACjE,OAAO,GAAG,CAAA;mBACO,IAAI,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC;GAChD,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEhD,MAAM,CAAC,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B,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAC/C,CAAC,EACC,KAAK,EAAE,EACL,IAAI,EAAE,EAAE,OAAO,EAAE,EAClB,EACF,EAAE,EAAE,CAAC,GAAG,CAAA;uBACY,OAAO;;QAEtB,iBAAiB;iCACQ,OAAO;;GAErC,CACF,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACpD,OAAO,GAAG,CAAA;;;;;QAKJ,YAAY,KAAK,uBAAuB;uCACT,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;sBAClD,KAAK,CAAC,IAAI,CAAC,OAAO;;GAErC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACpD,OAAO,GAAG,CAAA;wBACY,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;oBAC5C,KAAK,CAAC,IAAI,CAAC,OAAO;;;GAGnC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport {\n Button,\n calculateFontSize,\n defaultThemeProp,\n StyledIcon,\n StyledSearchInput,\n useDirection\n} from '@pega/cosmos-react-core';\n\nexport const StyledSearchResults = styled.div`\n min-height: inherit;\n`;\n\nStyledSearchResults.defaultProps = defaultThemeProp;\n\nexport const StyledFilterTitle = styled.span(({ theme: { base } }) => {\n return css`\n padding-bottom: calc(2 * ${base.spacing});\n `;\n});\n\nStyledFilterTitle.defaultProps = defaultThemeProp;\n\nexport const StyledCountText = styled.span(({ theme: { base } }) => {\n return css`\n font-weight: ${base['font-weight']['semi-bold']};\n `;\n});\n\nStyledCountText.defaultProps = defaultThemeProp;\n\nexport const StyledModalFilterContent = styled.div(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n margin-top: calc(0.5 * ${spacing});\n width: calc(${spacing} * 50);\n `;\n }\n);\n\nStyledModalFilterContent.defaultProps = defaultThemeProp;\n\nexport const StyledSelectedFilters = styled.div(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n overflow-x: auto;\n padding-bottom: calc(1 * ${spacing});\n `;\n }\n);\n\nStyledSelectedFilters.defaultProps = defaultThemeProp;\n\nexport const StyledFilter = styled.div``;\n\nStyledFilter.defaultProps = defaultThemeProp;\n\nexport const StyledFilterButton = styled(Button)(({ theme: { base } }) => {\n const fontSize = calculateFontSize(base['font-size'], base['font-scale']);\n\n const { rtl } = useDirection();\n return css`\n display: inline-flex;\n font-size: ${fontSize.xl};\n\n ${StyledIcon} {\n height: 1em;\n width: 1em;\n transition: transform ${base.animation.speed} ${base.animation.timing.ease};\n }\n\n &[aria-expanded='true'] ${StyledIcon} {\n transform: rotate(0);\n }\n\n &[aria-expanded='false'] ${StyledIcon} {\n transform: rotate(calc(${rtl ? '1' : '-1'} * 90deg));\n }\n `;\n});\n\nStyledFilterButton.defaultProps = defaultThemeProp;\n\nexport const StyledSearchSummaryItem = styled.div(\n ({\n theme: {\n base: { spacing }\n }\n }) => css`\n column-gap: calc(${spacing} * 1);\n\n + ${StyledSearchInput} {\n margin-block-start: calc(${spacing} * 1);\n }\n `\n);\n\nStyledSearchSummaryItem.defaultProps = defaultThemeProp;\n\nexport const StyledFilters = styled.div(({ theme }) => {\n return css`\n position: sticky;\n top: var(--appshell-offset, 0);\n max-height: calc(100vh - var(--appshell-offset, 0rem));\n overflow: auto;\n > ${StyledFilter}, ${StyledSearchSummaryItem} {\n border-bottom: 0.0125rem solid ${theme.base.palette['border-line']};\n padding: calc(${theme.base.spacing} * 2);\n }\n `;\n});\n\nStyledFilters.defaultProps = defaultThemeProp;\n\nexport const StyledResults = styled.div(({ theme }) => {\n return css`\n background-color: ${theme.base.palette['primary-background']};\n padding: calc(${theme.base.spacing} * 2);\n position: relative;\n min-height: calc(100vh - var(--appshell-offset, 0rem));\n `;\n});\n\nStyledResults.defaultProps = defaultThemeProp;\n"]}
@@ -1,100 +0,0 @@
1
- import { Ref } from 'react';
2
- import { LinkProps, MetaListProps, NoChildrenProp, OmitStrict, RadioCheckProps, SearchInputProps } from '@pega/cosmos-react-core';
3
- interface BaseFilterProps {
4
- /** The name of the filter. */
5
- name: string;
6
- /**
7
- * Determines if the filter will start in an expanded state.
8
- * @default true
9
- */
10
- expanded?: boolean;
11
- }
12
- export interface SelectFilterItemProps {
13
- /** The id for the filter option. */
14
- id: NonNullable<RadioCheckProps['id']>;
15
- /** The label for the filter option. */
16
- label: RadioCheckProps['label'];
17
- /** Determines if the filter option is active or not. */
18
- checked: RadioCheckProps['checked'];
19
- /** The name for the filter item that will show in the selected filters section */
20
- name: NonNullable<RadioCheckProps['name']>;
21
- }
22
- export interface SelectFilterProps extends BaseFilterProps {
23
- /** Internal prop designating this object as a select filter. */
24
- type: 'select';
25
- /** The set of options for the filter. */
26
- items: SelectFilterItemProps[];
27
- /**
28
- * Determines if the filter will render as a RadioButtonGroup or CheckboxGroup.
29
- * @default 'multi-select'
30
- */
31
- selectType?: 'single-select' | 'multi-select';
32
- }
33
- export interface ActiveSelectFilter {
34
- id: SelectFilterItemProps['id'];
35
- name: SelectFilterItemProps['name'];
36
- resetValue: SelectFilterItemProps & {
37
- checked: false;
38
- };
39
- groupName: SelectFilterProps['name'];
40
- type: SelectFilterProps['type'];
41
- }
42
- export interface TextFilterProps extends BaseFilterProps {
43
- /** Internal prop designating this object as a text filter. */
44
- type: 'text';
45
- /** The value of the filter. */
46
- value?: string;
47
- /**
48
- * Placeholder text. The default value is a locale translation of 'Search…'
49
- * @default 'Search…'
50
- */
51
- placeholder?: string;
52
- }
53
- export type FilterProps = SelectFilterProps;
54
- export type ActiveFilters = ActiveSelectFilter;
55
- export interface SearchResultProps {
56
- /** The id of the search result to be displayed. */
57
- id: string;
58
- /** The title of the search result. */
59
- title: string;
60
- /** LinkProps to be passed to . */
61
- link: OmitStrict<LinkProps, 'children' | 'variant' | 'icon'>;
62
- /** A description for the search result. */
63
- description?: string;
64
- /** A list of elements to be rendered within a MetaList categorizing the result. */
65
- meta?: MetaListProps['items'];
66
- /** Accents the search results with text that matches the regex */
67
- accent?: RegExp;
68
- }
69
- interface BaseFilterEvent {
70
- name: string;
71
- }
72
- interface SelectFilterEvent extends BaseFilterEvent {
73
- type: 'select';
74
- value: SelectFilterItemProps;
75
- }
76
- export type FilterEvent = SelectFilterEvent;
77
- export interface SearchResultsProps extends NoChildrenProp {
78
- /** A set of results to render for a given search. */
79
- results: SearchResultProps[];
80
- /** Props related to the SearchInput. */
81
- searchInputProps: SearchInputProps;
82
- /** The number of total results related to a given search. */
83
- count: number;
84
- /** A set of filters and their current states for a given search. */
85
- filters: FilterProps[];
86
- /** Callback that is fired when the value of a filter changes. */
87
- onFilterChange?: (filter: FilterEvent) => void;
88
- /** Callback that is fired when the Clear all button is clicked. */
89
- onClearAllFilters?: () => void;
90
- /** Callback that is fired when the Clear button is clicked within a filter. */
91
- onClearFilter?: (name: BaseFilterProps['name']) => void;
92
- /** Callback that will render a Show more button at the bottom of the results and is fired when that button is clicked. */
93
- onShowMore?: () => void;
94
- /** Sets a loading indicator if true */
95
- loading?: boolean;
96
- /** A ref for the wrapping element. */
97
- ref?: Ref<HTMLDivElement>;
98
- }
99
- export {};
100
- //# sourceMappingURL=SearchResults.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchResults.types.d.ts","sourceRoot":"","sources":["../../../src/components/SearchResults/SearchResults.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA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