@pega/cosmos-react-work 8.0.0-build.4.4 → 8.0.0-build.40.0

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 (283) hide show
  1. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +8 -4
  2. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  3. package/lib/components/AppAnnouncement/AppAnnouncement.js +6 -4
  4. package/lib/components/AppAnnouncement/AppAnnouncement.js.map +1 -1
  5. package/lib/components/Article/Article.d.ts +2 -6
  6. package/lib/components/Article/Article.d.ts.map +1 -1
  7. package/lib/components/Article/Article.js +2 -7
  8. package/lib/components/Article/Article.js.map +1 -1
  9. package/lib/components/ArticleList/AIArticleSummary.d.ts +1 -1
  10. package/lib/components/ArticleList/AIArticleSummary.d.ts.map +1 -1
  11. package/lib/components/ArticleList/ArticleBuddy.d.ts.map +1 -1
  12. package/lib/components/ArticleList/ArticleBuddy.js +6 -2
  13. package/lib/components/ArticleList/ArticleBuddy.js.map +1 -1
  14. package/lib/components/ArticleList/ArticleBuddyResponse.d.ts +3 -3
  15. package/lib/components/ArticleList/ArticleBuddyResponse.d.ts.map +1 -1
  16. package/lib/components/ArticleList/ArticleBuddyResponse.js +7 -8
  17. package/lib/components/ArticleList/ArticleBuddyResponse.js.map +1 -1
  18. package/lib/components/ArticleList/ArticleFeedback.d.ts +1 -1
  19. package/lib/components/ArticleList/ArticleFeedback.d.ts.map +1 -1
  20. package/lib/components/ArticleList/ArticleList.d.ts.map +1 -1
  21. package/lib/components/ArticleList/ArticleList.js +4 -4
  22. package/lib/components/ArticleList/ArticleList.js.map +1 -1
  23. package/lib/components/ArticleList/ArticleList.types.d.ts +9 -5
  24. package/lib/components/ArticleList/ArticleList.types.d.ts.map +1 -1
  25. package/lib/components/ArticleList/ArticleList.types.js.map +1 -1
  26. package/lib/components/ArticleList/ArticleListHeader.d.ts +1 -1
  27. package/lib/components/ArticleList/ArticleListHeader.d.ts.map +1 -1
  28. package/lib/components/ArticleList/ArticleListHeader.js +9 -6
  29. package/lib/components/ArticleList/ArticleListHeader.js.map +1 -1
  30. package/lib/components/ArticleList/ArticleSemanticSearch.d.ts.map +1 -1
  31. package/lib/components/ArticleList/ArticleSemanticSearch.js +11 -4
  32. package/lib/components/ArticleList/ArticleSemanticSearch.js.map +1 -1
  33. package/lib/components/ArticleList/ArticleSummaryHeader.js +1 -1
  34. package/lib/components/ArticleList/ArticleSummaryHeader.js.map +1 -1
  35. package/lib/components/ArticleList/ArticleTag.d.ts.map +1 -1
  36. package/lib/components/ArticleList/ArticleTag.js +3 -3
  37. package/lib/components/ArticleList/ArticleTag.js.map +1 -1
  38. package/lib/components/ArticleList/QuestionList.d.ts +1 -1
  39. package/lib/components/ArticleList/QuestionList.d.ts.map +1 -1
  40. package/lib/components/ArticleList/QuestionList.js +1 -1
  41. package/lib/components/ArticleList/QuestionList.js.map +1 -1
  42. package/lib/components/ArticleList/RelatedQuestions.d.ts +19 -0
  43. package/lib/components/ArticleList/RelatedQuestions.d.ts.map +1 -0
  44. package/lib/components/ArticleList/RelatedQuestions.js +40 -0
  45. package/lib/components/ArticleList/RelatedQuestions.js.map +1 -0
  46. package/lib/components/ArticleList/index.d.ts +1 -0
  47. package/lib/components/ArticleList/index.d.ts.map +1 -1
  48. package/lib/components/ArticleList/index.js +1 -0
  49. package/lib/components/ArticleList/index.js.map +1 -1
  50. package/lib/components/Assignments/Assignments.js +2 -2
  51. package/lib/components/Assignments/Assignments.js.map +1 -1
  52. package/lib/components/Assignments/Assignments.styles.d.ts +2 -2
  53. package/lib/components/Assignments/Assignments.styles.d.ts.map +1 -1
  54. package/lib/components/CaseHierarchy/CaseHierarchy.d.ts +6 -0
  55. package/lib/components/CaseHierarchy/CaseHierarchy.d.ts.map +1 -0
  56. package/lib/components/CaseHierarchy/CaseHierarchy.js +24 -0
  57. package/lib/components/CaseHierarchy/CaseHierarchy.js.map +1 -0
  58. package/lib/components/CaseHierarchy/CaseHierarchy.styles.d.ts +6 -0
  59. package/lib/components/CaseHierarchy/CaseHierarchy.styles.d.ts.map +1 -0
  60. package/lib/components/CaseHierarchy/CaseHierarchy.styles.js +51 -0
  61. package/lib/components/CaseHierarchy/CaseHierarchy.styles.js.map +1 -0
  62. package/lib/components/CaseHierarchy/CaseHierarchy.test-ids.d.ts +2 -0
  63. package/lib/components/CaseHierarchy/CaseHierarchy.test-ids.d.ts.map +1 -0
  64. package/lib/components/CaseHierarchy/CaseHierarchy.test-ids.js +6 -0
  65. package/lib/components/CaseHierarchy/CaseHierarchy.test-ids.js.map +1 -0
  66. package/lib/components/CaseHierarchy/CaseHierarchy.types.d.ts +23 -0
  67. package/lib/components/CaseHierarchy/CaseHierarchy.types.d.ts.map +1 -0
  68. package/lib/components/CaseHierarchy/CaseHierarchy.types.js +2 -0
  69. package/lib/components/CaseHierarchy/CaseHierarchy.types.js.map +1 -0
  70. package/lib/components/CaseHierarchy/index.d.ts +4 -0
  71. package/lib/components/CaseHierarchy/index.d.ts.map +1 -0
  72. package/lib/components/CaseHierarchy/index.js +3 -0
  73. package/lib/components/CaseHierarchy/index.js.map +1 -0
  74. package/lib/components/CasePreview/CasePreview.d.ts +3 -3
  75. package/lib/components/CasePreview/CasePreview.d.ts.map +1 -1
  76. package/lib/components/CasePreview/CasePreview.js +7 -6
  77. package/lib/components/CasePreview/CasePreview.js.map +1 -1
  78. package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts.map +1 -1
  79. package/lib/components/CaseView/CaseHeader/CaseHeader.js +4 -3
  80. package/lib/components/CaseView/CaseHeader/CaseHeader.js.map +1 -1
  81. package/lib/components/CaseView/CaseHeader/Summary.d.ts +1 -1
  82. package/lib/components/CaseView/CaseHeader/Summary.d.ts.map +1 -1
  83. package/lib/components/CaseView/CaseView.d.ts.map +1 -1
  84. package/lib/components/CaseView/CaseView.js +65 -24
  85. package/lib/components/CaseView/CaseView.js.map +1 -1
  86. package/lib/components/CaseView/CaseView.styles.d.ts +12 -8
  87. package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
  88. package/lib/components/CaseView/CaseView.styles.js +287 -110
  89. package/lib/components/CaseView/CaseView.styles.js.map +1 -1
  90. package/lib/components/CaseView/CaseView.types.d.ts +8 -2
  91. package/lib/components/CaseView/CaseView.types.d.ts.map +1 -1
  92. package/lib/components/CaseView/CaseView.types.js.map +1 -1
  93. package/lib/components/CaseView/UtilitiesSummary.d.ts +1 -0
  94. package/lib/components/CaseView/UtilitiesSummary.d.ts.map +1 -1
  95. package/lib/components/CaseView/UtilitiesSummary.js +85 -19
  96. package/lib/components/CaseView/UtilitiesSummary.js.map +1 -1
  97. package/lib/components/CaseView/UtilitySummaryItemDialog.js +1 -1
  98. package/lib/components/CaseView/UtilitySummaryItemDialog.js.map +1 -1
  99. package/lib/components/CaseView/index.d.ts +1 -1
  100. package/lib/components/CaseView/index.d.ts.map +1 -1
  101. package/lib/components/CaseView/index.js.map +1 -1
  102. package/lib/components/ConfigurableLayout/LayoutCell.d.ts +1 -1
  103. package/lib/components/ConfigurableLayout/LayoutCell.d.ts.map +1 -1
  104. package/lib/components/Confirmation/Confirmation.d.ts +3 -3
  105. package/lib/components/Confirmation/Confirmation.d.ts.map +1 -1
  106. package/lib/components/Confirmation/Confirmation.js.map +1 -1
  107. package/lib/components/Details/Details.d.ts +5 -3
  108. package/lib/components/Details/Details.d.ts.map +1 -1
  109. package/lib/components/Details/Details.js +4 -4
  110. package/lib/components/Details/Details.js.map +1 -1
  111. package/lib/components/Details/Details.styles.d.ts.map +1 -1
  112. package/lib/components/Details/Details.styles.js +17 -4
  113. package/lib/components/Details/Details.styles.js.map +1 -1
  114. package/lib/components/GenAICoach/ConversationHistory.d.ts +5 -0
  115. package/lib/components/GenAICoach/ConversationHistory.d.ts.map +1 -0
  116. package/lib/components/GenAICoach/ConversationHistory.js +73 -0
  117. package/lib/components/GenAICoach/ConversationHistory.js.map +1 -0
  118. package/lib/components/GenAICoach/GenAICoach.d.ts +1 -1
  119. package/lib/components/GenAICoach/GenAICoach.d.ts.map +1 -1
  120. package/lib/components/GenAICoach/GenAICoach.js +178 -140
  121. package/lib/components/GenAICoach/GenAICoach.js.map +1 -1
  122. package/lib/components/GenAICoach/GenAICoach.styles.d.ts +21 -10
  123. package/lib/components/GenAICoach/GenAICoach.styles.d.ts.map +1 -1
  124. package/lib/components/GenAICoach/GenAICoach.styles.js +106 -57
  125. package/lib/components/GenAICoach/GenAICoach.styles.js.map +1 -1
  126. package/lib/components/GenAICoach/GenAICoach.test-ids.d.ts +2 -1
  127. package/lib/components/GenAICoach/GenAICoach.test-ids.d.ts.map +1 -1
  128. package/lib/components/GenAICoach/GenAICoach.test-ids.js +9 -1
  129. package/lib/components/GenAICoach/GenAICoach.test-ids.js.map +1 -1
  130. package/lib/components/GenAICoach/GenAICoach.types.d.ts +49 -8
  131. package/lib/components/GenAICoach/GenAICoach.types.d.ts.map +1 -1
  132. package/lib/components/GenAICoach/GenAICoach.types.js.map +1 -1
  133. package/lib/components/GenAICoach/GenAIMessage.d.ts.map +1 -1
  134. package/lib/components/GenAICoach/GenAIMessage.js +77 -13
  135. package/lib/components/GenAICoach/GenAIMessage.js.map +1 -1
  136. package/lib/components/GenAICoach/InitialSuggestedMessage.js +1 -1
  137. package/lib/components/GenAICoach/InitialSuggestedMessage.js.map +1 -1
  138. package/lib/components/GenAICoach/index.d.ts +1 -1
  139. package/lib/components/GenAICoach/index.d.ts.map +1 -1
  140. package/lib/components/GenAICoach/index.js.map +1 -1
  141. package/lib/components/Glimpse/Glimpse.d.ts +3 -3
  142. package/lib/components/Glimpse/Glimpse.d.ts.map +1 -1
  143. package/lib/components/Glimpse/Glimpse.js.map +1 -1
  144. package/lib/components/HierarchicalAssignments/AssignmentContext.d.ts +28 -0
  145. package/lib/components/HierarchicalAssignments/AssignmentContext.d.ts.map +1 -0
  146. package/lib/components/HierarchicalAssignments/AssignmentContext.js +14 -0
  147. package/lib/components/HierarchicalAssignments/AssignmentContext.js.map +1 -0
  148. package/lib/components/HierarchicalAssignments/AssignmentDetail.d.ts +4 -1
  149. package/lib/components/HierarchicalAssignments/AssignmentDetail.d.ts.map +1 -1
  150. package/lib/components/HierarchicalAssignments/AssignmentDetail.js +2 -2
  151. package/lib/components/HierarchicalAssignments/AssignmentDetail.js.map +1 -1
  152. package/lib/components/HierarchicalAssignments/AssignmentNode.d.ts +19 -0
  153. package/lib/components/HierarchicalAssignments/AssignmentNode.d.ts.map +1 -0
  154. package/lib/components/HierarchicalAssignments/AssignmentNode.js +33 -0
  155. package/lib/components/HierarchicalAssignments/AssignmentNode.js.map +1 -0
  156. package/lib/components/HierarchicalAssignments/AssignmentTree.d.ts +15 -0
  157. package/lib/components/HierarchicalAssignments/AssignmentTree.d.ts.map +1 -0
  158. package/lib/components/HierarchicalAssignments/AssignmentTree.js +21 -0
  159. package/lib/components/HierarchicalAssignments/AssignmentTree.js.map +1 -0
  160. package/lib/components/HierarchicalAssignments/Assignments.styles.d.ts +22 -21
  161. package/lib/components/HierarchicalAssignments/Assignments.styles.d.ts.map +1 -1
  162. package/lib/components/HierarchicalAssignments/Assignments.styles.js +85 -69
  163. package/lib/components/HierarchicalAssignments/Assignments.styles.js.map +1 -1
  164. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.d.ts +1 -2
  165. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.d.ts.map +1 -1
  166. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.js +117 -9
  167. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.js.map +1 -1
  168. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.d.ts +1 -1
  169. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.d.ts.map +1 -1
  170. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.js +2 -1
  171. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.js.map +1 -1
  172. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.d.ts +12 -12
  173. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.d.ts.map +1 -1
  174. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.js.map +1 -1
  175. package/lib/components/HierarchicalAssignments/helpers.d.ts +23 -0
  176. package/lib/components/HierarchicalAssignments/helpers.d.ts.map +1 -0
  177. package/lib/components/HierarchicalAssignments/helpers.js +167 -0
  178. package/lib/components/HierarchicalAssignments/helpers.js.map +1 -0
  179. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.d.ts +18 -0
  180. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.d.ts.map +1 -0
  181. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.js +105 -0
  182. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.js.map +1 -0
  183. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.d.ts +23 -0
  184. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.d.ts.map +1 -0
  185. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.js +105 -0
  186. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.js.map +1 -0
  187. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.d.ts +23 -0
  188. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.d.ts.map +1 -0
  189. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.js +42 -0
  190. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.js.map +1 -0
  191. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts +2 -3
  192. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +1 -1
  193. package/lib/components/IntelligentGuidance/IntelligentGuidance.js +5 -2
  194. package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +1 -1
  195. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +2 -2
  196. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +1 -1
  197. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +32 -21
  198. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +1 -1
  199. package/lib/components/InteractionNotification/CountdownButton.d.ts +3 -3
  200. package/lib/components/InteractionNotification/CountdownButton.d.ts.map +1 -1
  201. package/lib/components/InteractionNotification/CountdownButton.js +1 -1
  202. package/lib/components/InteractionNotification/CountdownButton.js.map +1 -1
  203. package/lib/components/InteractionNotification/InteractionNotification.d.ts +3 -3
  204. package/lib/components/InteractionNotification/InteractionNotification.d.ts.map +1 -1
  205. package/lib/components/InteractionNotification/InteractionNotification.js +1 -1
  206. package/lib/components/InteractionNotification/InteractionNotification.js.map +1 -1
  207. package/lib/components/Predictions/Predictions.d.ts +2 -3
  208. package/lib/components/Predictions/Predictions.d.ts.map +1 -1
  209. package/lib/components/Predictions/Predictions.js +1 -0
  210. package/lib/components/Predictions/Predictions.js.map +1 -1
  211. package/lib/components/SearchResults/ActiveFilter.d.ts +1 -1
  212. package/lib/components/SearchResults/ActiveFilter.d.ts.map +1 -1
  213. package/lib/components/SearchResults/SearchResults.d.ts +2 -3
  214. package/lib/components/SearchResults/SearchResults.d.ts.map +1 -1
  215. package/lib/components/SearchResults/SearchResults.js +1 -2
  216. package/lib/components/SearchResults/SearchResults.js.map +1 -1
  217. package/lib/components/SearchResults/SearchResults.styles.d.ts +1 -1
  218. package/lib/components/SearchResults/SearchResults.styles.d.ts.map +1 -1
  219. package/lib/components/Stages/StageGlimpse.js +1 -1
  220. package/lib/components/Stages/StageGlimpse.js.map +1 -1
  221. package/lib/components/Stages/Stages.d.ts +2 -3
  222. package/lib/components/Stages/Stages.d.ts.map +1 -1
  223. package/lib/components/Stages/Stages.js +4 -1
  224. package/lib/components/Stages/Stages.js.map +1 -1
  225. package/lib/components/Stages/Stages.styles.d.ts +5 -3
  226. package/lib/components/Stages/Stages.styles.d.ts.map +1 -1
  227. package/lib/components/Stages/Stages.styles.js +6 -10
  228. package/lib/components/Stages/Stages.styles.js.map +1 -1
  229. package/lib/components/Stakeholders/StakeholderForm.d.ts +1 -1
  230. package/lib/components/Stakeholders/Stakeholders.d.ts +2 -3
  231. package/lib/components/Stakeholders/Stakeholders.d.ts.map +1 -1
  232. package/lib/components/Stakeholders/Stakeholders.js +37 -26
  233. package/lib/components/Stakeholders/Stakeholders.js.map +1 -1
  234. package/lib/components/Tags/Tags.d.ts +3 -3
  235. package/lib/components/Tags/Tags.d.ts.map +1 -1
  236. package/lib/components/Tags/Tags.js.map +1 -1
  237. package/lib/components/Tasks/TaskList.d.ts +10 -5
  238. package/lib/components/Tasks/TaskList.d.ts.map +1 -1
  239. package/lib/components/Tasks/TaskList.js +15 -7
  240. package/lib/components/Tasks/TaskList.js.map +1 -1
  241. package/lib/components/Tasks/Tasks.d.ts +6 -1
  242. package/lib/components/Tasks/Tasks.d.ts.map +1 -1
  243. package/lib/components/Tasks/Tasks.js +14 -4
  244. package/lib/components/Tasks/Tasks.js.map +1 -1
  245. package/lib/components/Timeline/Timeline.d.ts +3 -3
  246. package/lib/components/Timeline/Timeline.d.ts.map +1 -1
  247. package/lib/components/Timeline/Timeline.js +9 -2
  248. package/lib/components/Timeline/Timeline.js.map +1 -1
  249. package/lib/components/Timeline/Timeline.styles.d.ts +5 -5
  250. package/lib/components/Timeline/Timeline.styles.d.ts.map +1 -1
  251. package/lib/components/Timeline/Timeline.styles.js +10 -3
  252. package/lib/components/Timeline/Timeline.styles.js.map +1 -1
  253. package/lib/components/Timeline/Timeline.types.d.ts +11 -1
  254. package/lib/components/Timeline/Timeline.types.d.ts.map +1 -1
  255. package/lib/components/Timeline/Timeline.types.js.map +1 -1
  256. package/lib/components/Timeline/TimelineItem.d.ts +1 -2
  257. package/lib/components/Timeline/TimelineItem.d.ts.map +1 -1
  258. package/lib/components/Timeline/TimelineItem.js +10 -9
  259. package/lib/components/Timeline/TimelineItem.js.map +1 -1
  260. package/lib/components/Timeline/TimelineToolbar.d.ts +2 -3
  261. package/lib/components/Timeline/TimelineToolbar.d.ts.map +1 -1
  262. package/lib/components/Timeline/TimelineToolbar.js.map +1 -1
  263. package/lib/components/UtilitiesLayout/UtilitiesLayout.d.ts +5 -0
  264. package/lib/components/UtilitiesLayout/UtilitiesLayout.d.ts.map +1 -1
  265. package/lib/components/UtilitiesLayout/UtilitiesLayout.js +3 -3
  266. package/lib/components/UtilitiesLayout/UtilitiesLayout.js.map +1 -1
  267. package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.d.ts +0 -2
  268. package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.d.ts.map +1 -1
  269. package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.js +2 -5
  270. package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.js.map +1 -1
  271. package/lib/index.d.ts +2 -0
  272. package/lib/index.d.ts.map +1 -1
  273. package/lib/index.js +2 -0
  274. package/lib/index.js.map +1 -1
  275. package/package.json +9 -8
  276. package/lib/components/HierarchicalAssignments/AssignmentContainer.d.ts +0 -32
  277. package/lib/components/HierarchicalAssignments/AssignmentContainer.d.ts.map +0 -1
  278. package/lib/components/HierarchicalAssignments/AssignmentContainer.js +0 -46
  279. package/lib/components/HierarchicalAssignments/AssignmentContainer.js.map +0 -1
  280. package/lib/components/HierarchicalAssignments/AssignmentItem.d.ts +0 -10
  281. package/lib/components/HierarchicalAssignments/AssignmentItem.d.ts.map +0 -1
  282. package/lib/components/HierarchicalAssignments/AssignmentItem.js +0 -22
  283. package/lib/components/HierarchicalAssignments/AssignmentItem.js.map +0 -1
@@ -1,6 +1,5 @@
1
1
  import type { DefaultTheme } from 'styled-components';
2
2
  import type { AppShellContextValue } from '@pega/cosmos-react-core/lib/components/AppShell/AppShellContext';
3
- export declare const StyledCaseSummaryFields: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
4
3
  export declare const StyledSummaryPrimaryList: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").FieldValueListProps & import("@pega/cosmos-react-core").ForwardProps> & {
5
4
  getTestIds: (testIdProp?: import("@pega/cosmos-react-core").TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord<readonly []>;
6
5
  }, DefaultTheme, {
@@ -9,6 +8,7 @@ export declare const StyledSummaryPrimaryList: import("styled-components").Style
9
8
  export declare const StyledSummarySecondaryList: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").FieldValueListProps & import("@pega/cosmos-react-core").ForwardProps> & {
10
9
  getTestIds: (testIdProp?: import("@pega/cosmos-react-core").TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord<readonly []>;
11
10
  }, DefaultTheme, {}, never>;
11
+ export declare const StyledCaseSummaryFields: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
12
12
  export declare const StyledSummaryTabContent: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").CardContentProps & import("@pega/cosmos-react-core").ForwardProps>, DefaultTheme, {}, never>;
13
13
  export declare const StyledCaseHeader: import("styled-components").StyledComponent<"header", DefaultTheme, {}, never>;
14
14
  export declare const StyledFollowIconWrap: import("styled-components").StyledComponent<"label", DefaultTheme, {}, never>;
@@ -17,7 +17,7 @@ export declare const StyledHeaderActions: import("styled-components").StyledComp
17
17
  offsetEnd: boolean;
18
18
  }, never>;
19
19
  export declare const StyledCaseHeaderText: import("styled-components").StyledComponent<"hgroup", DefaultTheme, {}, never>;
20
- export declare const StyledCaseHeaderPromotedAction: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ButtonProps & import("@pega/cosmos-react-core").ForwardProps>, DefaultTheme, {}, never>;
20
+ export declare const StyledCaseHeaderPromotedAction: import("styled-components").StyledComponent<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core").ButtonProps>, DefaultTheme, {}, never>;
21
21
  export declare const StyledHeaderSummaryBlock: import("styled-components").StyledComponent<"div", DefaultTheme, {
22
22
  hasItems: boolean;
23
23
  }, never>;
@@ -29,22 +29,26 @@ export declare const StyledHeaderSummaryValue: import("styled-components").Style
29
29
  }, never>;
30
30
  export declare const StyledCaseSummaryInfo: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
31
31
  export declare const StyledCaseSummaryContainer: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
32
- export declare const StyledExpandCollapseButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ButtonProps & import("@pega/cosmos-react-core").ForwardProps>, DefaultTheme, {}, never>;
33
- export declare const StyledExpandCollapseSummaryButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ButtonProps & import("@pega/cosmos-react-core").ForwardProps>, DefaultTheme, {}, never>;
32
+ export declare const StyledExpandCollapseButton: import("styled-components").StyledComponent<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core").ButtonProps>, DefaultTheme, {}, never>;
33
+ export declare const StyledExpandCollapseSummaryButton: import("styled-components").StyledComponent<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core").ButtonProps>, DefaultTheme, {}, never>;
34
34
  export declare const StyledCaseSummary: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
35
35
  export declare const StyledWorkArea: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
36
- export declare const StyledUtilitiesHeading: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").TextProps & import("@pega/cosmos-react-core").ForwardProps>, DefaultTheme, {}, never>;
37
- export declare const StyledExpandCollapseUtilitiesButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ButtonProps & import("@pega/cosmos-react-core").ForwardProps>, DefaultTheme, {}, never>;
36
+ export declare const StyledUtilitiesHeading: import("styled-components").StyledComponent<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core").TextProps>, DefaultTheme, {}, never>;
37
+ export declare const StyledExpandCollapseUtilitiesButton: import("styled-components").StyledComponent<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core").ButtonProps>, DefaultTheme, {}, never>;
38
38
  export declare const StyledUtilities: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
39
39
  export declare const StyledSummary: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
40
40
  export declare const StyledCaseDrawer: import("styled-components").StyledComponent<"div", DefaultTheme, {
41
41
  previewActive?: AppShellContextValue["previewActive"];
42
42
  }, never>;
43
43
  export declare const StyledCaseDrawerContent: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
44
- export declare const StyledPersistentUtility: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
44
+ export declare const StyledPersistentUtility: import("styled-components").StyledComponent<"div", DefaultTheme, {
45
+ persistentUtilityExpanded?: boolean;
46
+ }, never>;
47
+ export declare const StyledPersistentContainer: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
48
+ export declare const StyledPersistentContent: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
45
49
  export declare const ScrollStick: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
46
50
  export declare const StyledCaseView: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
47
- export declare const StyledUtilitiesHeader: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").TextProps & import("@pega/cosmos-react-core").ForwardProps>, DefaultTheme, {}, never>;
51
+ export declare const StyledUtilitiesHeader: import("styled-components").StyledComponent<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core").TextProps>, DefaultTheme, {}, never>;
48
52
  export declare const StyledCoachButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<import("@pega/cosmos-react-core").AIButtonProps> & import("react").RefAttributes<HTMLButtonElement>>, DefaultTheme, {}, never>;
49
53
  export declare const StyledUtilitiesWrapper: import("styled-components").StyledComponent<"div", DefaultTheme, {
50
54
  genAIHeight: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"CaseView.styles.d.ts","sourceRoot":"","sources":["../../../src/components/CaseView/CaseView.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA8BtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iEAAiE,CAAC;AAa5G,eAAO,MAAM,uBAAuB,6EAAe,CAAC;AAIpD,eAAO,MAAM,wBAAwB;2BAe3B,CAAC,oEAAkC,yBAAa;;cAd9C,OAAO;SAqBjB,CAAC;AAIH,eAAO,MAAM,0BAA0B;2BAX7B,CAAC;2BAiBT,CAAC;AAEH,eAAO,MAAM,uBAAuB,8MAelC,CAAC;AAIH,eAAO,MAAM,gBAAgB,gFAmB3B,CAAC;AAIH,eAAO,MAAM,oBAAoB,+EAShC,CAAC;AAIF,eAAO,MAAM,gBAAgB,2EAAa,CAAC;AAI3C,eAAO,MAAM,mBAAmB;eAA2B,OAAO;SAWhE,CAAC;AAIH,eAAO,MAAM,oBAAoB,gFAgD/B,CAAC;AAIH,eAAO,MAAM,8BAA8B,yMAqCzC,CAAC;AAIH,eAAO,MAAM,wBAAwB;cAA0B,OAAO;SAqBpE,CAAC;AAmCH,eAAO,MAAM,mBAAmB,4EA0C9B,CAAC;AAIH,eAAO,MAAM,wBAAwB;WAK5B,OAAO;eACH,OAAO;WACX,YAAY;SAmCnB,CAAC;AAIH,eAAO,MAAM,qBAAqB,6EAYhC,CAAC;AAIH,eAAO,MAAM,0BAA0B,6EAIrC,CAAC;AAIH,eAAO,MAAM,0BAA0B,yMASrC,CAAC;AAIH,eAAO,MAAM,iCAAiC,yMAgC5C,CAAC;AAIH,eAAO,MAAM,iBAAiB,6EAY5B,CAAC;AAEH,eAAO,MAAM,cAAc,6EAwDzB,CAAC;AAIH,eAAO,MAAM,sBAAsB,uMAAiB,CAAC;AAErD,eAAO,MAAM,mCAAmC,yMAO9C,CAAC;AAIH,eAAO,MAAM,eAAe,6EA8B1B,CAAC;AAIH,eAAO,MAAM,aAAa,6EAyBxB,CAAC;AAIH,eAAO,MAAM,gBAAgB;oBACX,oBAAoB,CAAC,eAAe,CAAC;SAwBrD,CAAC;AAIH,eAAO,MAAM,uBAAuB,6EAOlC,CAAC;AAIH,eAAO,MAAM,uBAAuB,6EAUlC,CAAC;AAIH,eAAO,MAAM,WAAW,6EAGvB,CAAC;AAEF,eAAO,MAAM,cAAc,6EAiBzB,CAAC;AAIH,eAAO,MAAM,qBAAqB,uMAMjC,CAAC;AAIF,eAAO,MAAM,iBAAiB,sPAoB5B,CAAC;AAIH,eAAO,MAAM,sBAAsB;iBACpB,MAAM,GAAG,SAAS;SAO/B,CAAC"}
1
+ {"version":3,"file":"CaseView.styles.d.ts","sourceRoot":"","sources":["../../../src/components/CaseView/CaseView.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAmCtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iEAAiE,CAAC;AAuB5G,eAAO,MAAM,wBAAwB;2BAPK,CAAC,oEAEnB,yBAAa;;cAMzB,OAAO;SAqBjB,CAAC;AAIH,eAAO,MAAM,0BAA0B;2BAjCG,CAAC;2BAuCzC,CAAC;AAEH,eAAO,MAAM,uBAAuB,6EAqBlC,CAAC;AAIH,eAAO,MAAM,uBAAuB,8MAelC,CAAC;AAIH,eAAO,MAAM,gBAAgB,gFA0C3B,CAAC;AAIH,eAAO,MAAM,oBAAoB,+EAShC,CAAC;AAIF,eAAO,MAAM,gBAAgB,2EAAa,CAAC;AAI3C,eAAO,MAAM,mBAAmB;eAA2B,OAAO;SAehE,CAAC;AAIH,eAAO,MAAM,oBAAoB,gFAyD/B,CAAC;AAIH,eAAO,MAAM,8BAA8B,wLA6CzC,CAAC;AAIH,eAAO,MAAM,wBAAwB;cAA0B,OAAO;SAqBpE,CAAC;AAmCH,eAAO,MAAM,mBAAmB,4EAgD9B,CAAC;AAIH,eAAO,MAAM,wBAAwB;WAK5B,OAAO;eACH,OAAO;WACX,YAAY;SAmCnB,CAAC;AAIH,eAAO,MAAM,qBAAqB,6EAYhC,CAAC;AAIH,eAAO,MAAM,0BAA0B,6EAgBrC,CAAC;AAIH,eAAO,MAAM,0BAA0B,wLAQrC,CAAC;AAIH,eAAO,MAAM,iCAAiC,wLAgC5C,CAAC;AAIH,eAAO,MAAM,iBAAiB,6EAkD7B,CAAC;AAIF,eAAO,MAAM,cAAc,6EA0H1B,CAAC;AAIF,eAAO,MAAM,sBAAsB,sLAAiB,CAAC;AAErD,eAAO,MAAM,mCAAmC,wLAO9C,CAAC;AAIH,eAAO,MAAM,eAAe,6EA8B1B,CAAC;AAIH,eAAO,MAAM,aAAa,6EAqDzB,CAAC;AAIF,eAAO,MAAM,gBAAgB;oBACX,oBAAoB,CAAC,eAAe,CAAC;SAwBrD,CAAC;AAIH,eAAO,MAAM,uBAAuB,6EAgBnC,CAAC;AAIF,eAAO,MAAM,uBAAuB;gCAA4C,OAAO;SAYtF,CAAC;AAIF,eAAO,MAAM,yBAAyB,6EAErC,CAAC;AAEF,eAAO,MAAM,uBAAuB,6EAIlC,CAAC;AAIH,eAAO,MAAM,WAAW,6EAGvB,CAAC;AAEF,eAAO,MAAM,cAAc,6EAkF1B,CAAC;AAIF,eAAO,MAAM,qBAAqB,sLAMjC,CAAC;AAIF,eAAO,MAAM,iBAAiB,sPAoB5B,CAAC;AAIH,eAAO,MAAM,sBAAsB;iBACpB,MAAM,GAAG,SAAS;SAO/B,CAAC"}
@@ -1,18 +1,22 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { getContrast, hideVisually, meetsContrastGuidelines, rgba, transparentize } from 'polished';
3
3
  import { useContext } from 'react';
4
- import { Button, calculateFontSize, CardContent, defaultThemeProp, StyledBreadcrumbs, StyledButtonLink, StyledFieldValue, StyledStackedFieldValue, StyledIcon, StyledLabel, StyledPopover, StyledText, StyledTooltip, tryCatch, FieldValueList, StyledLink, readableHue, StyledCard, Text, readableColor, AppShellContext, AIButton } from '@pega/cosmos-react-core';
4
+ import { Button, calculateFontSize, CardContent, defaultThemeProp, StyledBreadcrumbs, StyledButtonLink, StyledFieldValue, StyledStackedFieldValue, StyledIcon, StyledLabel, StyledPopover, StyledText, StyledTooltip, tryCatch, FieldValueList, StyledLink, readableHue, StyledCard, Text, readableColor, AppShellContext, AIButton, StyledButton, calculateForegroundColor, calculateBackgroundAndContrastColor, isSolidColor, StyledSummaryListItem } from '@pega/cosmos-react-core';
5
5
  import { StyledMenu } from '@pega/cosmos-react-core/lib/components/Menu/Menu.styles';
6
6
  import { oneColumnDetailsColumnWidth } from '@pega/cosmos-react-work/lib/components/Details/Details.styles';
7
7
  import { headerHeight } from '@pega/cosmos-react-core/lib/components/AppShell/AppShell.styles';
8
+ import { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';
9
+ import { StyledAllTabsWrapper, StyledTabs, StylesAllTabsButtonWrapper } from '@pega/cosmos-react-core/lib/components/Tabs/Tabs.styles';
10
+ import { StyledMenuButton } from '@pega/cosmos-react-core/lib/components/MenuButton/MenuButton';
11
+ import { StyledTab } from '@pega/cosmos-react-core/lib/components/Tabs/Tab';
8
12
  import { StyledStage, StyledStageContainer, StyledStages } from '../Stages/Stages.styles';
9
13
  import { StyledAssignments } from '../Assignments/Assignments.styles';
14
+ import { StyledAssignments as StyledHierarchicalAssignments } from '../HierarchicalAssignments/Assignments.styles';
10
15
  import { StyledGenAICoachContainer } from '../GenAICoach/GenAICoach.styles';
16
+ import { StyledTaskList } from '../Tasks/TaskList';
11
17
  import { useCaseViewContext } from './CaseView.context';
12
18
  const labelWidth = '16ch';
13
19
  const inlineEndButtonOffset = '0.375rem';
14
- export const StyledCaseSummaryFields = styled.div ``;
15
- StyledCaseSummaryFields.defaultProps = defaultThemeProp;
16
20
  export const StyledSummaryPrimaryList = styled(FieldValueList)(({ theme, wrapped }) => {
17
21
  const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
18
22
  return css `
@@ -41,6 +45,20 @@ export const StyledSummarySecondaryList = styled(FieldValueList)(() => {
41
45
  }
42
46
  `;
43
47
  });
48
+ export const StyledCaseSummaryFields = styled.div(({ theme }) => {
49
+ const { components: { 'field-value-list': { inline: { detached } } } } = theme;
50
+ return (detached &&
51
+ css `
52
+ ${StyledSummaryPrimaryList} {
53
+ padding: 0 calc(${theme.components.card.padding} * 2);
54
+ }
55
+ ${StyledSummarySecondaryList} {
56
+ padding: calc(${theme.components.card.padding} * 2);
57
+ border-block: 0.0625rem solid ${theme.base.palette['border-line']};
58
+ }
59
+ `);
60
+ });
61
+ StyledCaseSummaryFields.defaultProps = defaultThemeProp;
44
62
  export const StyledSummaryTabContent = styled(CardContent)(({ theme }) => {
45
63
  const { base: { spacing } } = theme;
46
64
  return css `
@@ -57,21 +75,34 @@ export const StyledSummaryTabContent = styled(CardContent)(({ theme }) => {
57
75
  });
58
76
  StyledSummaryTabContent.defaultProps = defaultThemeProp;
59
77
  export const StyledCaseHeader = styled.header(({ theme }) => {
60
- const color = tryCatch(() => readableColor(theme.base.palette['brand-primary']));
78
+ const { components: { 'case-view': { header: { 'foreground-color': caseHeaderForegroundColor, background }, summary: { detached: summaryDetached }, utilities: { detached: utilitiesDetached } } }, base: { 'border-radius': borderRadius, spacing, shadow, 'z-index': zIndex, palette } } = theme;
79
+ const foregroundColor = calculateForegroundColor(background, caseHeaderForegroundColor);
80
+ const { aboveSM, aboveMD, persistentUtility, aboveXL, summaryExpanded, isPreview } = useCaseViewContext();
81
+ const shouldRenderMobileTabs = !aboveMD || (persistentUtility && !aboveXL) || !summaryExpanded;
82
+ const caseHeaderBorderRadius = shouldRenderMobileTabs
83
+ ? `0 0 ${utilitiesDetached ? borderRadius : 0} ${borderRadius}`
84
+ : `${borderRadius} ${borderRadius} 0 0`;
61
85
  return css `
62
- background-color: ${theme.base.palette['brand-primary']};
63
- color: ${color};
64
- padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});
86
+ background: ${background};
87
+ color: ${foregroundColor};
88
+ padding: ${spacing} calc(2 * ${spacing});
65
89
  position: relative;
66
90
 
91
+ ${summaryDetached &&
92
+ !isPreview &&
93
+ aboveSM &&
94
+ css `
95
+ border-radius: ${caseHeaderBorderRadius};
96
+ `}
97
+
67
98
  h1:focus-visible {
68
99
  outline: transparent;
69
- box-shadow: ${theme.base.shadow.focus};
100
+ box-shadow: ${shadow.focus};
70
101
  }
71
102
 
72
103
  ${StyledMenu} {
73
- color: ${theme.base.palette['foreground-color']};
74
- z-index: ${theme.base['z-index'].popover + 1};
104
+ color: ${palette['foreground-color']};
105
+ z-index: ${zIndex.popover + 1};
75
106
  }
76
107
  `;
77
108
  });
@@ -99,15 +130,20 @@ export const StyledHeaderActions = styled.div(({ offsetEnd, theme }) => {
99
130
  css `
100
131
  padding-inline-end: ${inlineEndButtonOffset};
101
132
  `};
133
+
134
+ ${StyledButton} {
135
+ margin-inline-start: 0;
136
+ }
102
137
  `;
103
138
  });
104
139
  StyledHeaderActions.defaultProps = defaultThemeProp;
105
140
  export const StyledCaseHeaderText = styled.hgroup(({ theme }) => {
106
- const color = readableColor(theme.base.palette['brand-primary']);
107
- const transparentColor = tryCatch(() => transparentize(0.1, color));
141
+ const { components: { 'case-view': { header: { 'foreground-color': foregroundColor, background: caseHeaderBackground } } } } = theme;
142
+ /* If the foreground-color is auto, we calculate the text color and transparentColor based on the background color. */
143
+ const color = calculateForegroundColor(caseHeaderBackground, foregroundColor);
108
144
  const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
109
145
  const idStyle = css `
110
- color: ${transparentColor};
146
+ color: ${color};
111
147
  font-size: ${fontSize.s};
112
148
  font-weight: normal;
113
149
  `;
@@ -151,17 +187,21 @@ export const StyledCaseHeaderText = styled.hgroup(({ theme }) => {
151
187
  });
152
188
  StyledCaseHeaderText.defaultProps = defaultThemeProp;
153
189
  export const StyledCaseHeaderPromotedAction = styled(Button)(({ theme }) => {
154
- const { base: { palette: { 'brand-primary': primary, interactive } } } = theme;
155
- const interactiveUsable = getContrast(primary, interactive) >= 4.5;
156
- const color = interactiveUsable ? interactive : readableColor(primary);
190
+ const { base: { palette: { interactive } }, components: { 'case-view': { header: { background, 'foreground-color': foregroundColor } } } } = theme;
191
+ /* If foreground color is auto, we calculate the text color based on the background color. */
192
+ const textColor = calculateForegroundColor(background, foregroundColor);
193
+ const isGradientBackground = !isSolidColor(background);
194
+ const backgroundColor = isGradientBackground ? readableColor(textColor) : background;
195
+ const interactiveUsable = getContrast(backgroundColor, interactive) >= 4.5;
196
+ const color = !isGradientBackground && interactiveUsable ? interactive : textColor;
157
197
  let hoverBackground = rgba(color, 0.15);
158
- if (interactiveUsable) {
159
- hoverBackground = readableHue(hoverBackground, color);
198
+ if (!isGradientBackground && interactiveUsable) {
199
+ hoverBackground = readableHue(interactive, color);
160
200
  }
161
201
  return css `
162
- --button-background-color: ${primary};
202
+ --button-background-color: ${backgroundColor};
163
203
  color: ${color};
164
- background-color: ${primary};
204
+ background-color: transparent;
165
205
  border-color: ${color};
166
206
 
167
207
  @media (hover: hover) {
@@ -224,17 +264,18 @@ const popoverColorReset = (theme) => {
224
264
  `;
225
265
  };
226
266
  export const StyledHeaderSummary = styled.dl(({ theme }) => {
227
- const { base: { palette: { 'brand-primary': primary, interactive } } } = theme;
228
- const interactiveUsable = meetsContrastGuidelines(primary, interactive).AA;
229
- const color = readableColor(primary);
230
- const transparentColor = tryCatch(() => transparentize(0.1, color));
267
+ const { base: { palette: { interactive } }, components: { 'case-view': { header: { 'foreground-color': foregroundColor, background } } } } = theme;
268
+ /* If the foreground-color is auto, we calculate the text color and transparentColor based on the background color. */
269
+ const color = calculateForegroundColor(background, foregroundColor);
270
+ const { backgroundColor } = calculateBackgroundAndContrastColor(background, foregroundColor);
271
+ const interactiveUsable = meetsContrastGuidelines(backgroundColor, interactive).AA;
231
272
  return css `
232
273
  max-width: 100%;
233
274
  min-width: 0;
234
275
 
235
276
  > ${StyledStackedFieldValue} {
236
277
  > ${StyledLabel} {
237
- color: ${transparentColor};
278
+ color: ${color};
238
279
  white-space: nowrap;
239
280
  }
240
281
 
@@ -301,15 +342,20 @@ export const StyledCaseSummaryInfo = styled.div(() => {
301
342
  });
302
343
  StyledCaseSummaryInfo.defaultProps = defaultThemeProp;
303
344
  export const StyledCaseSummaryContainer = styled.div(({ theme }) => {
345
+ const { components: { 'field-value-list': { inline: { detached } } } } = theme;
304
346
  return css `
305
347
  padding: calc(1.5 * ${theme.base.spacing}) calc(${theme.components.card.padding} * 2);
348
+
349
+ ${detached &&
350
+ css `
351
+ padding: calc(1.5 * ${theme.base.spacing}) 0;
352
+ `}
306
353
  `;
307
354
  });
308
355
  StyledCaseSummaryContainer.defaultProps = defaultThemeProp;
309
356
  export const StyledExpandCollapseButton = styled(Button)(() => {
310
357
  return css `
311
358
  border: none;
312
-
313
359
  ${StyledIcon} {
314
360
  width: 1.5rem;
315
361
  height: 1.5rem;
@@ -350,72 +396,137 @@ export const StyledExpandCollapseSummaryButton = styled(StyledExpandCollapseButt
350
396
  `;
351
397
  });
352
398
  StyledExpandCollapseSummaryButton.defaultProps = defaultThemeProp;
353
- export const StyledCaseSummary = styled.div(() => {
399
+ export const StyledCaseSummary = styled.div(({ theme: { base: { palette: { 'primary-background': primaryBackground }, 'border-radius': borderRadius, 'hit-area': { 'mouse-min': mouseMin, 'finger-min': fingerMin } }, components: { 'case-view': { summary: { detached } }, tabs: { detached: tabsDetached } } } }) => {
354
400
  const { summaryExpanded, aboveMD } = useCaseViewContext();
355
401
  return css `
356
- position: relative;
357
- height: 100%;
358
- ${aboveMD &&
402
+ background-color: ${primaryBackground};
403
+ position: relative;
404
+ height: 100%;
405
+ ${aboveMD &&
359
406
  summaryExpanded &&
360
407
  css `
361
- width: 25rem;
362
- `}
363
- `;
408
+ width: 25rem;
409
+ `}
410
+
411
+ ${detached &&
412
+ css `
413
+ border-radius: ${borderRadius};
414
+ --border-radius: calc(${borderRadius} * 0.5);
415
+ `}
416
+
417
+ ${tabsDetached &&
418
+ css `
419
+ & ${StyledTabs} {
420
+ &[aria-orientation='vertical'] {
421
+ & ${StyledTab} {
422
+ height: ${mouseMin};
423
+
424
+ @media (pointer: coarse) {
425
+ height: ${fingerMin};
426
+ }
427
+ }
428
+ }
429
+ }
430
+ `}
431
+ `;
364
432
  });
365
- export const StyledWorkArea = styled.div(({ theme }) => {
433
+ StyledCaseSummary.defaultProps = defaultThemeProp;
434
+ export const StyledWorkArea = styled.div(({ theme: { base: { palette: { 'border-line': borderLine, 'secondary-background': secondaryBackground }, spacing, 'border-radius': borderRadius }, components: { 'case-view': { assignments: { detached: assignmentDetached, background: assignmentBackground, 'foreground-color': assignmentForegroundColor } }, tabs: { detached: tabsDetached }, card: { background, 'foreground-color': foregroundColor, 'border-radius': cardBorderRadius } } } }) => {
435
+ const { backgroundColor } = calculateBackgroundAndContrastColor(background, foregroundColor);
436
+ const foregroundColorForAssignment = calculateForegroundColor(assignmentBackground, assignmentForegroundColor);
366
437
  const { summaryExpanded, aboveMD, intelligentGuidance } = useCaseViewContext();
367
438
  let pbeRem = 0;
368
439
  if (intelligentGuidance) {
369
440
  pbeRem = aboveMD && !summaryExpanded ? 4 : 6;
370
441
  }
371
442
  return css `
372
- grid-area: work-area;
373
- padding: calc(2 * ${theme.base.spacing});
443
+ grid-area: work-area;
444
+ padding: calc(2 * ${spacing});
374
445
 
375
- ${aboveMD &&
446
+ ${aboveMD &&
376
447
  css `
377
- padding: calc(2 * ${theme.base.spacing}) 0;
448
+ padding: calc(2 * ${spacing}) 0;
378
449
 
379
- /* This is required to make scrollStick work. */
380
- height: max-content;
450
+ /* This is required to make scrollStick work. */
451
+ height: max-content;
381
452
 
382
- ${!summaryExpanded &&
453
+ ${!summaryExpanded &&
383
454
  css `
384
- margin-inline-start: calc(2 * ${theme.base.spacing});
455
+ margin-inline-start: calc(2 * ${spacing});
456
+ `}
385
457
  `}
386
- `}
387
458
 
388
- /* Order of style here is necessary for overriding styles above. */
459
+ /* Order of style here is necessary for overriding styles above. */
389
460
  ${pbeRem > 0 &&
390
461
  css `
391
- /* Accounts for collapsed intelligentGuidance bubble covering work area content when fully scrolled. */
392
- padding-block-end: ${pbeRem}rem;
393
- `}
462
+ /* Accounts for collapsed intelligentGuidance bubble covering work area content when fully scrolled. */
463
+ padding-block-end: ${pbeRem}rem;
464
+ `}
394
465
 
395
- &:has(${StyledAssignments}) {
396
- ${StyledStages} {
397
- border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
466
+ &:has(${StyledAssignments}),
467
+ &:has(${StyledHierarchicalAssignments}) {
468
+ ${StyledStages} {
469
+ border-block-end: 0.0625rem solid ${borderLine};
398
470
 
399
- &,
400
- ${StyledStageContainer}:first-of-type > ${StyledStage} {
401
- border-end-start-radius: 0;
402
- }
471
+ &,
472
+ ${StyledStageContainer}:first-of-type > ${StyledStage} {
473
+ border-end-start-radius: 0;
474
+ }
403
475
 
404
- &,
405
- ${StyledStageContainer}:last-of-type > ${StyledStage} {
406
- border-end-end-radius: 0;
476
+ &,
477
+ ${StyledStageContainer}:last-of-type > ${StyledStage} {
478
+ border-end-end-radius: 0;
479
+ }
407
480
  }
408
481
  }
409
- }
410
482
 
411
- &:has(${StyledStages}) {
412
- ${StyledCard}${StyledAssignments} {
413
- margin-block-start: calc(-2 * ${theme.base.spacing});
414
- border-start-start-radius: 0;
415
- border-start-end-radius: 0;
483
+ ${tabsDetached &&
484
+ css `
485
+ ${StyledAllTabsWrapper} {
486
+ background-color: ${secondaryBackground};
487
+ border-start-start-radius: ${cardBorderRadius};
488
+ border-start-end-radius: ${cardBorderRadius};
489
+
490
+ ${StyledTabs} {
491
+ border-radius: unset;
492
+ border-start-end-radius: inherit;
493
+ }
494
+
495
+ ${StylesAllTabsButtonWrapper}, ${StyledMenuButton} {
496
+ border-start-start-radius: inherit;
497
+ }
498
+ }
499
+ `}
500
+
501
+ &:has(${StyledStages}) {
502
+ ${StyledCard}${StyledAssignments},
503
+ ${StyledCard}${StyledHierarchicalAssignments} {
504
+ margin-block-start: calc(-2 * ${spacing});
505
+ border-start-start-radius: 0;
506
+ border-start-end-radius: 0;
507
+ }
508
+
509
+ &:has(${StyledCard}${StyledAssignments} > ${StyledCardHeader}),
510
+ &:has(${StyledCard}${StyledHierarchicalAssignments} > ${StyledCardHeader}) {
511
+ ${StyledCard}${StyledAssignments},
512
+ ${StyledCard}${StyledHierarchicalAssignments} {
513
+ background: ${assignmentBackground};
514
+ color: ${foregroundColorForAssignment};
515
+ ${assignmentDetached &&
516
+ css `
517
+ ${StyledTaskList} {
518
+ background-color: ${backgroundColor};
519
+ border: solid 0.0625rem ${borderLine};
520
+ border-radius: calc(--border-radius, ${borderRadius});
521
+ ${StyledSummaryListItem} {
522
+ padding: calc(${spacing} / 2) ${spacing};
523
+ }
524
+ }
525
+ `}
526
+ }
527
+ }
416
528
  }
417
- }
418
- `;
529
+ `;
419
530
  });
420
531
  StyledWorkArea.defaultProps = defaultThemeProp;
421
532
  export const StyledUtilitiesHeading = styled(Text) ``;
@@ -458,30 +569,45 @@ export const StyledUtilities = styled.div(({ theme }) => {
458
569
  `;
459
570
  });
460
571
  StyledUtilities.defaultProps = defaultThemeProp;
461
- export const StyledSummary = styled.div(({ theme }) => {
462
- const { summaryExpanded, aboveMD } = useCaseViewContext();
572
+ export const StyledSummary = styled.div(({ theme: { base: { spacing, breakpoints, 'z-index': zIndex }, components: { 'case-view': { summary: { detached: summaryDetached }, utilities: { detached: utilitiesDetached } } } } }) => {
573
+ const { aboveSM, aboveMD, persistentUtility, aboveXL, summaryExpanded, isPreview } = useCaseViewContext();
574
+ const shouldRenderMobileTabs = !aboveMD || (persistentUtility && !aboveXL) || !summaryExpanded;
463
575
  return css `
464
- top: ${summaryExpanded ? 'var(--top-offset)' : 'var(--appshell-offset, 0)'};
465
- width: 100%;
466
- background-color: ${theme.base.palette['primary-background']};
467
- z-index: ${theme.base['z-index'].popover};
576
+ top: ${summaryExpanded ? 'var(--top-offset)' : 'var(--appshell-offset, 0)'};
577
+ width: 100%;
578
+ z-index: ${zIndex.popover};
468
579
 
469
- ${aboveMD &&
580
+ ${aboveMD &&
470
581
  summaryExpanded &&
471
582
  css `
472
- height: var(--case-view-height);
473
- `}
583
+ height: var(--case-view-height);
584
+ `}
585
+
586
+ ${summaryDetached &&
587
+ aboveSM &&
588
+ css `
589
+ padding: calc(2 * ${spacing});
590
+ padding-inline-end: ${utilitiesDetached && shouldRenderMobileTabs
591
+ ? `calc(2 * ${spacing})`
592
+ : 0};
593
+ padding-block: ${shouldRenderMobileTabs ? 0 : `calc(2 * ${spacing})`};
594
+ `}
474
595
 
475
- ${aboveMD
596
+ ${isPreview &&
597
+ css `
598
+ padding: 0;
599
+ `}
600
+
601
+ ${aboveMD
476
602
  ? css `
477
- position: sticky;
478
- `
479
- : css `
480
- @media (min-height: ${theme.base.breakpoints.sm}) {
481
603
  position: sticky;
482
- }
483
- `}
484
- `;
604
+ `
605
+ : css `
606
+ @media (min-height: ${breakpoints.sm}) {
607
+ position: sticky;
608
+ }
609
+ `}
610
+ `;
485
611
  });
486
612
  StyledSummary.defaultProps = defaultThemeProp;
487
613
  export const StyledCaseDrawer = styled.div(({ previewActive, theme }) => {
@@ -509,47 +635,98 @@ export const StyledCaseDrawer = styled.div(({ previewActive, theme }) => {
509
635
  `;
510
636
  });
511
637
  StyledCaseDrawer.defaultProps = defaultThemeProp;
512
- export const StyledCaseDrawerContent = styled.div(({ theme }) => {
638
+ export const StyledCaseDrawerContent = styled.div(({ theme: { base: { palette: { 'app-background': appBackground }, spacing } } }) => {
513
639
  return css `
514
- background-color: ${theme.base.palette['app-background']};
515
- padding: calc(2 * ${theme.base.spacing});
516
- height: 100%;
517
- overflow: auto;
518
- `;
640
+ background: ${appBackground};
641
+ padding: calc(2 * ${spacing});
642
+ height: 100%;
643
+ overflow: auto;
644
+ `;
519
645
  });
520
646
  StyledCaseDrawerContent.defaultProps = defaultThemeProp;
521
- export const StyledPersistentUtility = styled.div(({ theme }) => {
647
+ export const StyledPersistentUtility = styled.div(({ theme, persistentUtilityExpanded }) => {
522
648
  return css `
523
- width: ${theme.base['content-width'].md};
524
- overflow: auto;
525
- position: sticky;
526
- z-index: 1;
527
- height: var(--case-view-height);
528
- top: var(--top-offset);
529
- padding-block: calc(2 * ${theme.base.spacing});
530
- `;
649
+ width: ${persistentUtilityExpanded ? '100%' : theme.base['content-width'].md};
650
+ overflow: auto;
651
+ position: sticky;
652
+ z-index: 1;
653
+ height: var(--case-view-height);
654
+ inset-block-start: var(--top-offset);
655
+ padding-block: calc(2 * ${theme.base.spacing});
656
+ `;
531
657
  });
532
658
  StyledPersistentUtility.defaultProps = defaultThemeProp;
659
+ export const StyledPersistentContainer = styled.div `
660
+ height: 100%;
661
+ `;
662
+ export const StyledPersistentContent = styled.div(({ theme }) => {
663
+ return css `
664
+ height: calc (100% - calc(4 * ${theme.base.spacing}));
665
+ `;
666
+ });
667
+ StyledPersistentContent.defaultProps = defaultThemeProp;
533
668
  export const ScrollStick = styled.div `
534
669
  position: sticky;
535
670
  top: 0;
536
671
  `;
537
- export const StyledCaseView = styled.div(({ theme }) => {
538
- const { aboveMD } = useCaseViewContext();
672
+ export const StyledCaseView = styled.div(({ theme: { base: { palette: { 'app-background': appBackground }, spacing, 'border-radius': borderRadius }, components: { 'case-view': { utilities: { detached: utilitiesDetached, background: utilitiesBackground, 'foreground-color': utilitiesForegroundColor }, summary: { detached: summaryDetached } } } } }) => {
673
+ const utilitiesForegroundComputed = calculateForegroundColor(utilitiesBackground, utilitiesForegroundColor);
674
+ const { aboveSM, aboveMD, isPreview } = useCaseViewContext();
539
675
  return css `
540
- --top-offset: calc(var(--appshell-offset, 0rem) + var(--summary-height));
541
- --case-view-height: calc(100vh - var(--top-offset));
542
- position: relative;
543
- min-height: var(--case-view-height);
544
- background-color: ${theme.base.palette['app-background']};
676
+ --top-offset: calc(var(--appshell-offset, 0rem) + var(--summary-height));
677
+ --case-view-height: calc(100vh - var(--top-offset));
678
+ position: relative;
679
+ min-height: var(--case-view-height);
680
+ background: ${appBackground};
545
681
 
546
- ${aboveMD &&
682
+ ${aboveMD &&
547
683
  css `
548
- ${StyledUtilities}:last-child {
549
- margin-inline-end: calc(2 * ${theme.base.spacing});
550
- }
551
- `}
552
- `;
684
+ ${StyledUtilities}:last-child {
685
+ margin-inline-end: calc(2 * ${spacing});
686
+ background: ${utilitiesBackground};
687
+ color: ${utilitiesForegroundComputed};
688
+
689
+ ${!utilitiesDetached &&
690
+ css `
691
+ margin-inline-end: 0;
692
+ padding: calc(2 * ${spacing});
693
+ padding-inline-end: 0;
694
+ border-radius: ${borderRadius} 0 0 ${borderRadius};
695
+
696
+ ${StyledCard},
697
+ ${StyledGenAICoachContainer} {
698
+ border-top-right-radius: 0;
699
+ border-bottom-right-radius: 0;
700
+ }
701
+
702
+ ${StyledGenAICoachContainer} {
703
+ inset-inline-end: 0;
704
+ }
705
+ `}
706
+ }
707
+ `}
708
+
709
+ ${aboveSM &&
710
+ summaryDetached &&
711
+ !isPreview &&
712
+ css `
713
+ &:not(:has(${StyledUtilities})) {
714
+ ${StyledSummary} {
715
+ padding-inline-end: calc(2 * ${spacing});
716
+ }
717
+ ${StyledCaseHeader} {
718
+ border-end-end-radius: ${borderRadius};
719
+ }
720
+ }
721
+ `}
722
+
723
+ ${!aboveMD &&
724
+ css `
725
+ ${StyledGenAICoachContainer} {
726
+ height: 42.5rem;
727
+ }
728
+ `}
729
+ `;
553
730
  });
554
731
  StyledCaseView.defaultProps = defaultThemeProp;
555
732
  export const StyledUtilitiesHeader = styled(Text) `