@pega/cosmos-react-build 5.0.0-dev.4.7 → 5.0.0-dev.4.9

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 (337) hide show
  1. package/package.json +4 -4
  2. package/lib/components/AppShell/AppShell.d.ts +0 -6
  3. package/lib/components/AppShell/AppShell.d.ts.map +0 -1
  4. package/lib/components/AppShell/AppShell.js +0 -58
  5. package/lib/components/AppShell/AppShell.js.map +0 -1
  6. package/lib/components/AppShell/AppShell.styles.d.ts +0 -17
  7. package/lib/components/AppShell/AppShell.styles.d.ts.map +0 -1
  8. package/lib/components/AppShell/AppShell.styles.js +0 -269
  9. package/lib/components/AppShell/AppShell.styles.js.map +0 -1
  10. package/lib/components/AppShell/AppShell.types.d.ts +0 -72
  11. package/lib/components/AppShell/AppShell.types.d.ts.map +0 -1
  12. package/lib/components/AppShell/AppShell.types.js +0 -2
  13. package/lib/components/AppShell/AppShell.types.js.map +0 -1
  14. package/lib/components/AppShell/AppShellContext.d.ts +0 -5
  15. package/lib/components/AppShell/AppShellContext.d.ts.map +0 -1
  16. package/lib/components/AppShell/AppShellContext.js +0 -8
  17. package/lib/components/AppShell/AppShellContext.js.map +0 -1
  18. package/lib/components/AppShell/Header/AppHeader.d.ts +0 -6
  19. package/lib/components/AppShell/Header/AppHeader.d.ts.map +0 -1
  20. package/lib/components/AppShell/Header/AppHeader.js +0 -73
  21. package/lib/components/AppShell/Header/AppHeader.js.map +0 -1
  22. package/lib/components/AppShell/Header/AppHeader.styles.d.ts +0 -13
  23. package/lib/components/AppShell/Header/AppHeader.styles.d.ts.map +0 -1
  24. package/lib/components/AppShell/Header/AppHeader.styles.js +0 -158
  25. package/lib/components/AppShell/Header/AppHeader.styles.js.map +0 -1
  26. package/lib/components/AppShell/Header/AppHeader.types.d.ts +0 -33
  27. package/lib/components/AppShell/Header/AppHeader.types.d.ts.map +0 -1
  28. package/lib/components/AppShell/Header/AppHeader.types.js +0 -2
  29. package/lib/components/AppShell/Header/AppHeader.types.js.map +0 -1
  30. package/lib/components/AppShell/Header/BranchButton.d.ts +0 -20
  31. package/lib/components/AppShell/Header/BranchButton.d.ts.map +0 -1
  32. package/lib/components/AppShell/Header/BranchButton.js +0 -91
  33. package/lib/components/AppShell/Header/BranchButton.js.map +0 -1
  34. package/lib/components/AppShell/NavigationList.d.ts +0 -6
  35. package/lib/components/AppShell/NavigationList.d.ts.map +0 -1
  36. package/lib/components/AppShell/NavigationList.js +0 -97
  37. package/lib/components/AppShell/NavigationList.js.map +0 -1
  38. package/lib/components/AppShell/index.d.ts +0 -5
  39. package/lib/components/AppShell/index.d.ts.map +0 -1
  40. package/lib/components/AppShell/index.js +0 -2
  41. package/lib/components/AppShell/index.js.map +0 -1
  42. package/lib/components/DynamicContentEditor/DynamicContentEditor.d.ts +0 -10
  43. package/lib/components/DynamicContentEditor/DynamicContentEditor.d.ts.map +0 -1
  44. package/lib/components/DynamicContentEditor/DynamicContentEditor.js +0 -239
  45. package/lib/components/DynamicContentEditor/DynamicContentEditor.js.map +0 -1
  46. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.d.ts +0 -23
  47. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.d.ts.map +0 -1
  48. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.js +0 -2
  49. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.js.map +0 -1
  50. package/lib/components/DynamicContentEditor/PegaCustomElement.d.ts +0 -329
  51. package/lib/components/DynamicContentEditor/PegaCustomElement.d.ts.map +0 -1
  52. package/lib/components/DynamicContentEditor/PegaCustomElement.js +0 -23
  53. package/lib/components/DynamicContentEditor/PegaCustomElement.js.map +0 -1
  54. package/lib/components/DynamicContentEditor/index.d.ts +0 -3
  55. package/lib/components/DynamicContentEditor/index.d.ts.map +0 -1
  56. package/lib/components/DynamicContentEditor/index.js +0 -2
  57. package/lib/components/DynamicContentEditor/index.js.map +0 -1
  58. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.d.ts +0 -8
  59. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.d.ts.map +0 -1
  60. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.js +0 -176
  61. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.js.map +0 -1
  62. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.d.ts +0 -10
  63. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.d.ts.map +0 -1
  64. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.js +0 -530
  65. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.js.map +0 -1
  66. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.d.ts +0 -36
  67. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.d.ts.map +0 -1
  68. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.js +0 -2
  69. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.js.map +0 -1
  70. package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.d.ts +0 -13
  71. package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.d.ts.map +0 -1
  72. package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.js +0 -51
  73. package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.js.map +0 -1
  74. package/lib/components/ExpressionBuilder/ExpressionBuilder.d.ts +0 -6
  75. package/lib/components/ExpressionBuilder/ExpressionBuilder.d.ts.map +0 -1
  76. package/lib/components/ExpressionBuilder/ExpressionBuilder.js +0 -51
  77. package/lib/components/ExpressionBuilder/ExpressionBuilder.js.map +0 -1
  78. package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.d.ts +0 -14
  79. package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.d.ts.map +0 -1
  80. package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.js +0 -81
  81. package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.js.map +0 -1
  82. package/lib/components/ExpressionBuilder/ExpressionBuilder.types.d.ts +0 -74
  83. package/lib/components/ExpressionBuilder/ExpressionBuilder.types.d.ts.map +0 -1
  84. package/lib/components/ExpressionBuilder/ExpressionBuilder.types.js +0 -2
  85. package/lib/components/ExpressionBuilder/ExpressionBuilder.types.js.map +0 -1
  86. package/lib/components/ExpressionBuilder/ExpressionBuilderContext.d.ts +0 -7
  87. package/lib/components/ExpressionBuilder/ExpressionBuilderContext.d.ts.map +0 -1
  88. package/lib/components/ExpressionBuilder/ExpressionBuilderContext.js +0 -6
  89. package/lib/components/ExpressionBuilder/ExpressionBuilderContext.js.map +0 -1
  90. package/lib/components/ExpressionBuilder/ExpressionDetails.d.ts +0 -6
  91. package/lib/components/ExpressionBuilder/ExpressionDetails.d.ts.map +0 -1
  92. package/lib/components/ExpressionBuilder/ExpressionDetails.js +0 -12
  93. package/lib/components/ExpressionBuilder/ExpressionDetails.js.map +0 -1
  94. package/lib/components/ExpressionBuilder/ExpressionItem.d.ts +0 -6
  95. package/lib/components/ExpressionBuilder/ExpressionItem.d.ts.map +0 -1
  96. package/lib/components/ExpressionBuilder/ExpressionItem.js +0 -39
  97. package/lib/components/ExpressionBuilder/ExpressionItem.js.map +0 -1
  98. package/lib/components/ExpressionBuilder/ExpressionList.d.ts +0 -6
  99. package/lib/components/ExpressionBuilder/ExpressionList.d.ts.map +0 -1
  100. package/lib/components/ExpressionBuilder/ExpressionList.js +0 -32
  101. package/lib/components/ExpressionBuilder/ExpressionList.js.map +0 -1
  102. package/lib/components/ExpressionBuilder/index.d.ts +0 -8
  103. package/lib/components/ExpressionBuilder/index.d.ts.map +0 -1
  104. package/lib/components/ExpressionBuilder/index.js +0 -6
  105. package/lib/components/ExpressionBuilder/index.js.map +0 -1
  106. package/lib/components/FlowModeller/AddNode.d.ts +0 -18
  107. package/lib/components/FlowModeller/AddNode.d.ts.map +0 -1
  108. package/lib/components/FlowModeller/AddNode.js +0 -86
  109. package/lib/components/FlowModeller/AddNode.js.map +0 -1
  110. package/lib/components/FlowModeller/Connector.d.ts +0 -7
  111. package/lib/components/FlowModeller/Connector.d.ts.map +0 -1
  112. package/lib/components/FlowModeller/Connector.js +0 -69
  113. package/lib/components/FlowModeller/Connector.js.map +0 -1
  114. package/lib/components/FlowModeller/DeletePopover.d.ts +0 -19
  115. package/lib/components/FlowModeller/DeletePopover.d.ts.map +0 -1
  116. package/lib/components/FlowModeller/DeletePopover.js +0 -136
  117. package/lib/components/FlowModeller/DeletePopover.js.map +0 -1
  118. package/lib/components/FlowModeller/FlowModeller.d.ts +0 -5
  119. package/lib/components/FlowModeller/FlowModeller.d.ts.map +0 -1
  120. package/lib/components/FlowModeller/FlowModeller.js +0 -317
  121. package/lib/components/FlowModeller/FlowModeller.js.map +0 -1
  122. package/lib/components/FlowModeller/FlowModeller.types.d.ts +0 -27
  123. package/lib/components/FlowModeller/FlowModeller.types.d.ts.map +0 -1
  124. package/lib/components/FlowModeller/FlowModeller.types.js +0 -2
  125. package/lib/components/FlowModeller/FlowModeller.types.js.map +0 -1
  126. package/lib/components/FlowModeller/FlowModellerContext.d.ts +0 -11
  127. package/lib/components/FlowModeller/FlowModellerContext.d.ts.map +0 -1
  128. package/lib/components/FlowModeller/FlowModellerContext.js +0 -8
  129. package/lib/components/FlowModeller/FlowModellerContext.js.map +0 -1
  130. package/lib/components/FlowModeller/Node/Node.types.d.ts +0 -75
  131. package/lib/components/FlowModeller/Node/Node.types.d.ts.map +0 -1
  132. package/lib/components/FlowModeller/Node/Node.types.js +0 -27
  133. package/lib/components/FlowModeller/Node/Node.types.js.map +0 -1
  134. package/lib/components/FlowModeller/Node/NodeTemplate.styles.d.ts +0 -21
  135. package/lib/components/FlowModeller/Node/NodeTemplate.styles.d.ts.map +0 -1
  136. package/lib/components/FlowModeller/Node/NodeTemplate.styles.js +0 -151
  137. package/lib/components/FlowModeller/Node/NodeTemplate.styles.js.map +0 -1
  138. package/lib/components/FlowModeller/Node/NodeTemplates.d.ts +0 -6
  139. package/lib/components/FlowModeller/Node/NodeTemplates.d.ts.map +0 -1
  140. package/lib/components/FlowModeller/Node/NodeTemplates.js +0 -70
  141. package/lib/components/FlowModeller/Node/NodeTemplates.js.map +0 -1
  142. package/lib/components/FlowModeller/Node.d.ts +0 -5
  143. package/lib/components/FlowModeller/Node.d.ts.map +0 -1
  144. package/lib/components/FlowModeller/Node.js +0 -22
  145. package/lib/components/FlowModeller/Node.js.map +0 -1
  146. package/lib/components/FlowModeller/Renderer/Renderer.d.ts +0 -5
  147. package/lib/components/FlowModeller/Renderer/Renderer.d.ts.map +0 -1
  148. package/lib/components/FlowModeller/Renderer/Renderer.js +0 -48
  149. package/lib/components/FlowModeller/Renderer/Renderer.js.map +0 -1
  150. package/lib/components/FlowModeller/Renderer/Renderer.types.d.ts +0 -18
  151. package/lib/components/FlowModeller/Renderer/Renderer.types.d.ts.map +0 -1
  152. package/lib/components/FlowModeller/Renderer/Renderer.types.js +0 -2
  153. package/lib/components/FlowModeller/Renderer/Renderer.types.js.map +0 -1
  154. package/lib/components/FlowModeller/Renderer/Utils/Graph.d.ts +0 -59
  155. package/lib/components/FlowModeller/Renderer/Utils/Graph.d.ts.map +0 -1
  156. package/lib/components/FlowModeller/Renderer/Utils/Graph.js +0 -258
  157. package/lib/components/FlowModeller/Renderer/Utils/Graph.js.map +0 -1
  158. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.d.ts +0 -36
  159. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.d.ts.map +0 -1
  160. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.js +0 -120
  161. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.js.map +0 -1
  162. package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.d.ts +0 -27
  163. package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.d.ts.map +0 -1
  164. package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.js +0 -172
  165. package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.js.map +0 -1
  166. package/lib/components/FlowModeller/Utils/addNodeUtils.d.ts +0 -17
  167. package/lib/components/FlowModeller/Utils/addNodeUtils.d.ts.map +0 -1
  168. package/lib/components/FlowModeller/Utils/addNodeUtils.js +0 -141
  169. package/lib/components/FlowModeller/Utils/addNodeUtils.js.map +0 -1
  170. package/lib/components/FlowModeller/Utils/deleteNodeUtils.d.ts +0 -30
  171. package/lib/components/FlowModeller/Utils/deleteNodeUtils.d.ts.map +0 -1
  172. package/lib/components/FlowModeller/Utils/deleteNodeUtils.js +0 -81
  173. package/lib/components/FlowModeller/Utils/deleteNodeUtils.js.map +0 -1
  174. package/lib/components/FlowModeller/helper.d.ts +0 -39
  175. package/lib/components/FlowModeller/helper.d.ts.map +0 -1
  176. package/lib/components/FlowModeller/helper.js +0 -198
  177. package/lib/components/FlowModeller/helper.js.map +0 -1
  178. package/lib/components/FlowModeller/index.d.ts +0 -20
  179. package/lib/components/FlowModeller/index.d.ts.map +0 -1
  180. package/lib/components/FlowModeller/index.js +0 -12
  181. package/lib/components/FlowModeller/index.js.map +0 -1
  182. package/lib/components/ItemLibrary/ItemLibrary.d.ts +0 -25
  183. package/lib/components/ItemLibrary/ItemLibrary.d.ts.map +0 -1
  184. package/lib/components/ItemLibrary/ItemLibrary.js +0 -62
  185. package/lib/components/ItemLibrary/ItemLibrary.js.map +0 -1
  186. package/lib/components/ItemLibrary/index.d.ts +0 -3
  187. package/lib/components/ItemLibrary/index.d.ts.map +0 -1
  188. package/lib/components/ItemLibrary/index.js +0 -3
  189. package/lib/components/ItemLibrary/index.js.map +0 -1
  190. package/lib/components/LifeCycle/Category.d.ts +0 -15
  191. package/lib/components/LifeCycle/Category.d.ts.map +0 -1
  192. package/lib/components/LifeCycle/Category.js +0 -104
  193. package/lib/components/LifeCycle/Category.js.map +0 -1
  194. package/lib/components/LifeCycle/LifeCycle.d.ts +0 -6
  195. package/lib/components/LifeCycle/LifeCycle.d.ts.map +0 -1
  196. package/lib/components/LifeCycle/LifeCycle.js +0 -77
  197. package/lib/components/LifeCycle/LifeCycle.js.map +0 -1
  198. package/lib/components/LifeCycle/LifeCycle.types.d.ts +0 -154
  199. package/lib/components/LifeCycle/LifeCycle.types.d.ts.map +0 -1
  200. package/lib/components/LifeCycle/LifeCycle.types.js +0 -79
  201. package/lib/components/LifeCycle/LifeCycle.types.js.map +0 -1
  202. package/lib/components/LifeCycle/LifeCycleContext.d.ts +0 -9
  203. package/lib/components/LifeCycle/LifeCycleContext.d.ts.map +0 -1
  204. package/lib/components/LifeCycle/LifeCycleContext.js +0 -7
  205. package/lib/components/LifeCycle/LifeCycleContext.js.map +0 -1
  206. package/lib/components/LifeCycle/LifeCycleList.d.ts +0 -30
  207. package/lib/components/LifeCycle/LifeCycleList.d.ts.map +0 -1
  208. package/lib/components/LifeCycle/LifeCycleList.js +0 -68
  209. package/lib/components/LifeCycle/LifeCycleList.js.map +0 -1
  210. package/lib/components/LifeCycle/Stage.d.ts +0 -29
  211. package/lib/components/LifeCycle/Stage.d.ts.map +0 -1
  212. package/lib/components/LifeCycle/Stage.js +0 -232
  213. package/lib/components/LifeCycle/Stage.js.map +0 -1
  214. package/lib/components/LifeCycle/Step.d.ts +0 -40
  215. package/lib/components/LifeCycle/Step.d.ts.map +0 -1
  216. package/lib/components/LifeCycle/Step.js +0 -170
  217. package/lib/components/LifeCycle/Step.js.map +0 -1
  218. package/lib/components/LifeCycle/Task.d.ts +0 -34
  219. package/lib/components/LifeCycle/Task.d.ts.map +0 -1
  220. package/lib/components/LifeCycle/Task.js +0 -158
  221. package/lib/components/LifeCycle/Task.js.map +0 -1
  222. package/lib/components/LifeCycle/index.d.ts +0 -3
  223. package/lib/components/LifeCycle/index.d.ts.map +0 -1
  224. package/lib/components/LifeCycle/index.js +0 -2
  225. package/lib/components/LifeCycle/index.js.map +0 -1
  226. package/lib/components/MobileBuildSummary/MobileBuildSummary.d.ts +0 -8
  227. package/lib/components/MobileBuildSummary/MobileBuildSummary.d.ts.map +0 -1
  228. package/lib/components/MobileBuildSummary/MobileBuildSummary.js +0 -33
  229. package/lib/components/MobileBuildSummary/MobileBuildSummary.js.map +0 -1
  230. package/lib/components/MobileBuildSummary/MobileBuildSummary.types.d.ts +0 -31
  231. package/lib/components/MobileBuildSummary/MobileBuildSummary.types.d.ts.map +0 -1
  232. package/lib/components/MobileBuildSummary/MobileBuildSummary.types.js +0 -2
  233. package/lib/components/MobileBuildSummary/MobileBuildSummary.types.js.map +0 -1
  234. package/lib/components/MobileBuildSummary/index.d.ts +0 -3
  235. package/lib/components/MobileBuildSummary/index.d.ts.map +0 -1
  236. package/lib/components/MobileBuildSummary/index.js +0 -2
  237. package/lib/components/MobileBuildSummary/index.js.map +0 -1
  238. package/lib/components/ObjectPreview/ObjectPreview.d.ts +0 -16
  239. package/lib/components/ObjectPreview/ObjectPreview.d.ts.map +0 -1
  240. package/lib/components/ObjectPreview/ObjectPreview.js +0 -25
  241. package/lib/components/ObjectPreview/ObjectPreview.js.map +0 -1
  242. package/lib/components/ObjectPreview/index.d.ts +0 -3
  243. package/lib/components/ObjectPreview/index.d.ts.map +0 -1
  244. package/lib/components/ObjectPreview/index.js +0 -3
  245. package/lib/components/ObjectPreview/index.js.map +0 -1
  246. package/lib/components/ObjectSelect/ObjectPicker.d.ts +0 -15
  247. package/lib/components/ObjectSelect/ObjectPicker.d.ts.map +0 -1
  248. package/lib/components/ObjectSelect/ObjectPicker.js +0 -40
  249. package/lib/components/ObjectSelect/ObjectPicker.js.map +0 -1
  250. package/lib/components/ObjectSelect/ObjectSelect.d.ts +0 -32
  251. package/lib/components/ObjectSelect/ObjectSelect.d.ts.map +0 -1
  252. package/lib/components/ObjectSelect/ObjectSelect.js +0 -41
  253. package/lib/components/ObjectSelect/ObjectSelect.js.map +0 -1
  254. package/lib/components/ObjectSelect/ObjectSummary.d.ts +0 -32
  255. package/lib/components/ObjectSelect/ObjectSummary.d.ts.map +0 -1
  256. package/lib/components/ObjectSelect/ObjectSummary.js +0 -81
  257. package/lib/components/ObjectSelect/ObjectSummary.js.map +0 -1
  258. package/lib/components/ObjectSelect/index.d.ts +0 -3
  259. package/lib/components/ObjectSelect/index.d.ts.map +0 -1
  260. package/lib/components/ObjectSelect/index.js +0 -2
  261. package/lib/components/ObjectSelect/index.js.map +0 -1
  262. package/lib/components/ObjectSelect/useCreateModal.d.ts +0 -32
  263. package/lib/components/ObjectSelect/useCreateModal.d.ts.map +0 -1
  264. package/lib/components/ObjectSelect/useCreateModal.js +0 -60
  265. package/lib/components/ObjectSelect/useCreateModal.js.map +0 -1
  266. package/lib/components/PageBanner/PageBanner.d.ts +0 -22
  267. package/lib/components/PageBanner/PageBanner.d.ts.map +0 -1
  268. package/lib/components/PageBanner/PageBanner.js +0 -59
  269. package/lib/components/PageBanner/PageBanner.js.map +0 -1
  270. package/lib/components/PageBanner/index.d.ts +0 -3
  271. package/lib/components/PageBanner/index.d.ts.map +0 -1
  272. package/lib/components/PageBanner/index.js +0 -2
  273. package/lib/components/PageBanner/index.js.map +0 -1
  274. package/lib/components/PageTemplates/GalleryPage.d.ts +0 -23
  275. package/lib/components/PageTemplates/GalleryPage.d.ts.map +0 -1
  276. package/lib/components/PageTemplates/GalleryPage.js +0 -47
  277. package/lib/components/PageTemplates/GalleryPage.js.map +0 -1
  278. package/lib/components/PageTemplates/PageTemplates.d.ts +0 -27
  279. package/lib/components/PageTemplates/PageTemplates.d.ts.map +0 -1
  280. package/lib/components/PageTemplates/PageTemplates.js +0 -72
  281. package/lib/components/PageTemplates/PageTemplates.js.map +0 -1
  282. package/lib/components/PageTemplates/ShowcasePage.d.ts +0 -16
  283. package/lib/components/PageTemplates/ShowcasePage.d.ts.map +0 -1
  284. package/lib/components/PageTemplates/ShowcasePage.js +0 -29
  285. package/lib/components/PageTemplates/ShowcasePage.js.map +0 -1
  286. package/lib/components/PageTemplates/index.d.ts +0 -6
  287. package/lib/components/PageTemplates/index.d.ts.map +0 -1
  288. package/lib/components/PageTemplates/index.js +0 -4
  289. package/lib/components/PageTemplates/index.js.map +0 -1
  290. package/lib/components/SummaryCard/SummaryCard.d.ts +0 -15
  291. package/lib/components/SummaryCard/SummaryCard.d.ts.map +0 -1
  292. package/lib/components/SummaryCard/SummaryCard.js +0 -27
  293. package/lib/components/SummaryCard/SummaryCard.js.map +0 -1
  294. package/lib/components/SummaryCard/index.d.ts +0 -3
  295. package/lib/components/SummaryCard/index.d.ts.map +0 -1
  296. package/lib/components/SummaryCard/index.js +0 -3
  297. package/lib/components/SummaryCard/index.js.map +0 -1
  298. package/lib/components/Workbench/ConfigurationPanel.d.ts +0 -5
  299. package/lib/components/Workbench/ConfigurationPanel.d.ts.map +0 -1
  300. package/lib/components/Workbench/ConfigurationPanel.js +0 -10
  301. package/lib/components/Workbench/ConfigurationPanel.js.map +0 -1
  302. package/lib/components/Workbench/Toolbar.d.ts +0 -10
  303. package/lib/components/Workbench/Toolbar.d.ts.map +0 -1
  304. package/lib/components/Workbench/Toolbar.js +0 -14
  305. package/lib/components/Workbench/Toolbar.js.map +0 -1
  306. package/lib/components/Workbench/UtilityPanel.d.ts +0 -7
  307. package/lib/components/Workbench/UtilityPanel.d.ts.map +0 -1
  308. package/lib/components/Workbench/UtilityPanel.js +0 -12
  309. package/lib/components/Workbench/UtilityPanel.js.map +0 -1
  310. package/lib/components/Workbench/Workbench.d.ts +0 -6
  311. package/lib/components/Workbench/Workbench.d.ts.map +0 -1
  312. package/lib/components/Workbench/Workbench.js +0 -23
  313. package/lib/components/Workbench/Workbench.js.map +0 -1
  314. package/lib/components/Workbench/Workbench.styles.d.ts +0 -10
  315. package/lib/components/Workbench/Workbench.styles.d.ts.map +0 -1
  316. package/lib/components/Workbench/Workbench.styles.js +0 -75
  317. package/lib/components/Workbench/Workbench.styles.js.map +0 -1
  318. package/lib/components/Workbench/Workbench.types.d.ts +0 -47
  319. package/lib/components/Workbench/Workbench.types.d.ts.map +0 -1
  320. package/lib/components/Workbench/Workbench.types.js +0 -2
  321. package/lib/components/Workbench/Workbench.types.js.map +0 -1
  322. package/lib/components/Workbench/index.d.ts +0 -2
  323. package/lib/components/Workbench/index.d.ts.map +0 -1
  324. package/lib/components/Workbench/index.js +0 -2
  325. package/lib/components/Workbench/index.js.map +0 -1
  326. package/lib/index.d.ts +0 -23
  327. package/lib/index.d.ts.map +0 -1
  328. package/lib/index.js +0 -24
  329. package/lib/index.js.map +0 -1
  330. package/lib/utils/index.d.ts +0 -2
  331. package/lib/utils/index.d.ts.map +0 -1
  332. package/lib/utils/index.js +0 -2
  333. package/lib/utils/index.js.map +0 -1
  334. package/lib/utils/utils.d.ts +0 -14
  335. package/lib/utils/utils.d.ts.map +0 -1
  336. package/lib/utils/utils.js +0 -13
  337. package/lib/utils/utils.js.map +0 -1
@@ -1,232 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import styled, { css } from 'styled-components';
4
- import { readableColor } from 'polished';
5
- import { Flex, Actions, defaultThemeProp, useDirection, StyledButton, Icon, useI18n } from '@pega/cosmos-react-core';
6
- export const StyledWrapper = styled.div `
7
- overflow: hidden;
8
- `;
9
- StyledWrapper.defaultProps = defaultThemeProp;
10
- export const StyledStageButton = styled.button(({ error, theme }) => {
11
- return css `
12
- height: ${theme.components.button.height};
13
- outline: none;
14
- border: none;
15
- overflow: hidden;
16
- text-overflow: ellipsis;
17
- white-space: nowrap;
18
- text-align: start;
19
- margin-inline-start: ${theme.base.spacing};
20
-
21
- ${error &&
22
- css `
23
- margin-inline-start: 0;
24
- `}
25
-
26
- &:hover {
27
- cursor: pointer;
28
- }
29
-
30
- &:disabled {
31
- cursor: not-allowed;
32
- }
33
- `;
34
- });
35
- StyledStageButton.defaultProps = defaultThemeProp;
36
- export const StyledStageActions = styled.div `
37
- z-index: 2;
38
- `;
39
- StyledStageActions.defaultProps = defaultThemeProp;
40
- export const StyledWarnIcon = styled(Icon)(({ theme }) => {
41
- return css `
42
- margin-inline: calc(0.5 * ${theme.base.spacing});
43
-
44
- &:hover {
45
- cursor: pointer;
46
- }
47
- `;
48
- });
49
- StyledWarnIcon.defaultProps = defaultThemeProp;
50
- export const StyledStage = styled.div(({ stageInfo, theme, status, error }) => {
51
- const { visual: { bgColor, tailPointed, headPointed } } = stageInfo;
52
- const { rtl } = useDirection();
53
- const contrastColor = readableColor(bgColor);
54
- const roundedEndsStyles = css `
55
- content: '';
56
- position: absolute;
57
- display: block;
58
- width: calc(3 * ${theme.base.spacing});
59
- height: calc(3 * ${theme.base.spacing});
60
- top: calc(1 * ${theme.base.spacing});
61
- border: 0;
62
- border-inline-end: 0.0625rem solid transparent;
63
- `;
64
- return css `
65
- position: relative;
66
- padding: calc(0.5 * ${theme.base.spacing});
67
- background: ${bgColor};
68
- border: 0.0625rem solid transparent;
69
- width: 100%;
70
-
71
- &:hover {
72
- cursor: pointer;
73
- }
74
-
75
- &:focus-within {
76
- border: 0.0625rem solid ${theme.base.palette.interactive};
77
-
78
- ${headPointed &&
79
- css `
80
- &::after {
81
- border-inline-end: 0.0625rem solid ${theme.base.palette.interactive};
82
- ${rtl
83
- ? css `
84
- border-block-start: 0.0625rem solid ${theme.base.palette.interactive};
85
- `
86
- : css `
87
- border-block-end: 0.0625rem solid ${theme.base.palette.interactive};
88
- `}
89
- }
90
- `}
91
-
92
- ${tailPointed &&
93
- css `
94
- &::before {
95
- border-inline-end: 0.0625rem solid ${theme.base.palette.interactive};
96
- ${rtl
97
- ? css `
98
- border-block-end: 0.0625rem solid ${theme.base.palette.interactive};
99
- `
100
- : css `
101
- border-block-start: 0.0625rem solid ${theme.base.palette.interactive};
102
- `}
103
- }
104
- `}
105
- }
106
-
107
- ${headPointed &&
108
- css `
109
- &::after {
110
- ${roundedEndsStyles}
111
- z-index: 1;
112
- background: inherit;
113
- transform: rotateZ(-45deg) skew(-15deg, -15deg);
114
- inset-inline-end: calc(1.6 * ${theme.base.spacing} * -1);
115
- border-block-end: 0.0625rem solid transparent;
116
- ${rtl
117
- ? css `
118
- border-radius: calc(0.75 * ${theme.base['border-radius']}) 0.1rem 0.1rem 0.1rem;
119
- `
120
- : css `
121
- border-radius: 0.0625rem 0.075rem calc(0.75 * ${theme.base['border-radius']})
122
- 0.0625rem;
123
- `}
124
- }
125
- `}
126
-
127
- ${tailPointed &&
128
- css `
129
- ${!error &&
130
- css `
131
- ${StyledStageButton} {
132
- margin-inline-start: calc(1.5 * ${theme.base.spacing});
133
- }
134
- `}
135
-
136
- ${error &&
137
- css `
138
- ${StyledWarnIcon} {
139
- margin-inline-start: ${theme.base.spacing};
140
- }
141
- `}
142
-
143
- &::before {
144
- ${roundedEndsStyles}
145
- background: ${theme.base.palette['app-background']};
146
- transform: rotateZ(45deg) skew(15deg, 15deg);
147
- inset-inline-start: calc(-1.6 * ${theme.base.spacing});
148
- ${rtl
149
- ? css `
150
- border-block-end: 0.0625rem solid transparent;
151
- border-radius: 0.0625rem 1rem 0.0625rem calc(0.75 * ${theme.base['border-radius']});
152
- `
153
- : css `
154
- border-block-start: 0.0625rem solid transparent;
155
- border-radius: 0.0625rem calc(0.75 * ${theme.base['border-radius']}) 0.0625rem 1rem;
156
- `}
157
- }
158
- `}
159
-
160
- ${StyledWarnIcon} {
161
- color: ${contrastColor};
162
- }
163
-
164
- ${StyledStageActions} {
165
- & > ${StyledButton} {
166
- color: ${contrastColor};
167
- }
168
- }
169
-
170
- ${StyledStageButton} {
171
- color: ${contrastColor};
172
- ${!status &&
173
- css `
174
- background: ${bgColor};
175
- `}
176
- }
177
- `;
178
- });
179
- StyledStage.defaultProps = defaultThemeProp;
180
- const Stage = forwardRef(function Stage({ value, actions, stageInfo, onClick, id, item, error, ...restProps }, ref) {
181
- const t = useI18n();
182
- const onStageClick = (e) => {
183
- const actionParam = {
184
- value,
185
- stage: item,
186
- type: 'Stage'
187
- };
188
- onClick?.(actionParam, e);
189
- };
190
- const onActionItemClick = (actionId, e) => {
191
- const param = {
192
- stage: item
193
- };
194
- if (actions) {
195
- let actionsList = [];
196
- if (Array.isArray(actions)) {
197
- actionsList = actions;
198
- }
199
- else {
200
- actionsList = actions[item.type];
201
- }
202
- actionsList?.forEach((actionItem) => {
203
- if (actionItem.id === actionId) {
204
- actionItem.onClick?.(param, e);
205
- }
206
- });
207
- }
208
- };
209
- // Deep copy of actions object is required to provide consistent callback objects on actions
210
- const actionsClone = [];
211
- if (actions) {
212
- let actionsList = [];
213
- if (Array.isArray(actions)) {
214
- actionsList = actions;
215
- }
216
- else {
217
- actionsList = actions[item.type];
218
- }
219
- actionsList.forEach(actionItem => {
220
- const actionCloneItem = {};
221
- Object.keys(actionItem).forEach((key) => {
222
- actionCloneItem[key] = actionItem[key];
223
- });
224
- actionCloneItem.onClick = onActionItemClick;
225
- actionsClone.push(actionCloneItem);
226
- return actionItem;
227
- });
228
- }
229
- return (_jsxs(Flex, { ...restProps, container: { inline: true, alignItems: 'center' }, as: StyledStage, ref: ref, error: error, stageInfo: stageInfo, id: item.id, "aria-label": error ? t('stage_name_error', [value]) : undefined, children: [error && _jsx(StyledWarnIcon, { name: 'warn-solid' }), _jsx(Flex, { as: StyledWrapper, container: { inline: true }, item: { grow: 1 }, onClick: onStageClick, children: _jsx(StyledStageButton, { error: error, "aria-label": error ? undefined : t('stage_name', [value]), children: value }) }), _jsx(StyledStageActions, { children: actionsClone && _jsx(Actions, { items: actionsClone, menuAt: 2, iconOnly: true }) })] }));
230
- });
231
- export default Stage;
232
- //# sourceMappingURL=Stage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Stage.js","sourceRoot":"","sources":["../../../src/components/LifeCycle/Stage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAyD,MAAM,OAAO,CAAC;AAC1F,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACL,IAAI,EAGJ,OAAO,EACP,gBAAgB,EAChB,YAAY,EAEZ,YAAY,EACZ,IAAI,EACJ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,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,IAAI,CAAC,EAAE,gBACC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,aAE7D,KAAK,IAAI,KAAC,cAAc,IAAC,IAAI,EAAC,YAAY,GAAG,EAC9C,KAAC,IAAI,IACH,EAAE,EAAE,aAAa,EACjB,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EACjB,OAAO,EAAE,YAAY,YAErB,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,gBAAc,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,YACtF,KAAK,GACY,GACf,EACP,KAAC,kBAAkB,cAChB,YAAY,IAAI,KAAC,OAAO,IAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,SAAG,GAClD,IAChB,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,KAAK,CAAC","sourcesContent":["import { forwardRef, FunctionComponent, PropsWithChildren, Ref, MouseEvent } from 'react';\nimport styled, { css } from 'styled-components';\nimport { readableColor } from 'polished';\n\nimport {\n Flex,\n BaseProps,\n ForwardProps,\n Actions,\n defaultThemeProp,\n useDirection,\n Action,\n StyledButton,\n Icon,\n useI18n\n} from '@pega/cosmos-react-core';\n\nimport {\n LifeCycleAction,\n LifeCycleActionParam,\n StageInfo,\n StageItemProps,\n StageProps\n} from './LifeCycle.types';\n\nexport interface StageComponentProps extends BaseProps, StageProps {\n ref?: Ref<HTMLDivElement>;\n /** Pass text for the task. */\n value: string;\n /** unique id of the component */\n id: string;\n /** Controls the styling of the stage. */\n stageInfo: StageInfo;\n /** Full data object which can be passed to the callback */\n item: StageItemProps;\n /** The status is used to show the input error status and the info on tooltip in case of error */\n error?: string;\n}\n\nexport const StyledWrapper = styled.div`\n overflow: hidden;\n`;\n\nStyledWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledStageButton = styled.button<{\n error: string | undefined;\n}>(({ error, theme }) => {\n return css`\n height: ${theme.components.button.height};\n outline: none;\n border: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: start;\n margin-inline-start: ${theme.base.spacing};\n\n ${error &&\n css`\n margin-inline-start: 0;\n `}\n\n &:hover {\n cursor: pointer;\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n `;\n});\n\nStyledStageButton.defaultProps = defaultThemeProp;\n\nexport const StyledStageActions = styled.div`\n z-index: 2;\n`;\n\nStyledStageActions.defaultProps = defaultThemeProp;\n\nexport const StyledWarnIcon = styled(Icon)(({ theme }) => {\n return css`\n margin-inline: calc(0.5 * ${theme.base.spacing});\n\n &:hover {\n cursor: pointer;\n }\n `;\n});\n\nStyledWarnIcon.defaultProps = defaultThemeProp;\n\nexport const StyledStage = styled.div<\n Pick<StageComponentProps, 'stageInfo'> & {\n status: boolean;\n error: string;\n }\n>(({ stageInfo, theme, status, error }) => {\n const {\n visual: { bgColor, tailPointed, headPointed }\n } = stageInfo;\n\n const { rtl } = useDirection();\n const contrastColor = readableColor(bgColor);\n const roundedEndsStyles = css`\n content: '';\n position: absolute;\n display: block;\n width: calc(3 * ${theme.base.spacing});\n height: calc(3 * ${theme.base.spacing});\n top: calc(1 * ${theme.base.spacing});\n border: 0;\n border-inline-end: 0.0625rem solid transparent;\n `;\n\n return css`\n position: relative;\n padding: calc(0.5 * ${theme.base.spacing});\n background: ${bgColor};\n border: 0.0625rem solid transparent;\n width: 100%;\n\n &:hover {\n cursor: pointer;\n }\n\n &:focus-within {\n border: 0.0625rem solid ${theme.base.palette.interactive};\n\n ${headPointed &&\n css`\n &::after {\n border-inline-end: 0.0625rem solid ${theme.base.palette.interactive};\n ${rtl\n ? css`\n border-block-start: 0.0625rem solid ${theme.base.palette.interactive};\n `\n : css`\n border-block-end: 0.0625rem solid ${theme.base.palette.interactive};\n `}\n }\n `}\n\n ${tailPointed &&\n css`\n &::before {\n border-inline-end: 0.0625rem solid ${theme.base.palette.interactive};\n ${rtl\n ? css`\n border-block-end: 0.0625rem solid ${theme.base.palette.interactive};\n `\n : css`\n border-block-start: 0.0625rem solid ${theme.base.palette.interactive};\n `}\n }\n `}\n }\n\n ${headPointed &&\n css`\n &::after {\n ${roundedEndsStyles}\n z-index: 1;\n background: inherit;\n transform: rotateZ(-45deg) skew(-15deg, -15deg);\n inset-inline-end: calc(1.6 * ${theme.base.spacing} * -1);\n border-block-end: 0.0625rem solid transparent;\n ${rtl\n ? css`\n border-radius: calc(0.75 * ${theme.base['border-radius']}) 0.1rem 0.1rem 0.1rem;\n `\n : css`\n border-radius: 0.0625rem 0.075rem calc(0.75 * ${theme.base['border-radius']})\n 0.0625rem;\n `}\n }\n `}\n\n ${tailPointed &&\n css`\n ${!error &&\n css`\n ${StyledStageButton} {\n margin-inline-start: calc(1.5 * ${theme.base.spacing});\n }\n `}\n\n ${error &&\n css`\n ${StyledWarnIcon} {\n margin-inline-start: ${theme.base.spacing};\n }\n `}\n\n &::before {\n ${roundedEndsStyles}\n background: ${theme.base.palette['app-background']};\n transform: rotateZ(45deg) skew(15deg, 15deg);\n inset-inline-start: calc(-1.6 * ${theme.base.spacing});\n ${rtl\n ? css`\n border-block-end: 0.0625rem solid transparent;\n border-radius: 0.0625rem 1rem 0.0625rem calc(0.75 * ${theme.base['border-radius']});\n `\n : css`\n border-block-start: 0.0625rem solid transparent;\n border-radius: 0.0625rem calc(0.75 * ${theme.base['border-radius']}) 0.0625rem 1rem;\n `}\n }\n `}\n\n ${StyledWarnIcon} {\n color: ${contrastColor};\n }\n\n ${StyledStageActions} {\n & > ${StyledButton} {\n color: ${contrastColor};\n }\n }\n\n ${StyledStageButton} {\n color: ${contrastColor};\n ${!status &&\n css`\n background: ${bgColor};\n `}\n }\n `;\n});\n\nStyledStage.defaultProps = defaultThemeProp;\n\nconst Stage: FunctionComponent<StageComponentProps & ForwardProps> = forwardRef(function Stage(\n {\n value,\n actions,\n stageInfo,\n onClick,\n id,\n item,\n error,\n ...restProps\n }: PropsWithChildren<StageComponentProps>,\n ref: StageComponentProps['ref']\n) {\n const t = useI18n();\n\n const onStageClick = (e: MouseEvent) => {\n const actionParam: LifeCycleActionParam = {\n value,\n stage: item,\n type: 'Stage'\n };\n onClick?.(actionParam, e);\n };\n\n const onActionItemClick = (\n actionId: string,\n e: MouseEvent<HTMLInputElement | HTMLAnchorElement | HTMLButtonElement>\n ) => {\n const param: LifeCycleActionParam = {\n stage: item\n };\n\n if (actions) {\n let actionsList: LifeCycleAction[] = [];\n\n if (Array.isArray(actions)) {\n actionsList = actions;\n } else {\n actionsList = actions[item.type];\n }\n\n actionsList?.forEach((actionItem: LifeCycleAction) => {\n if (actionItem.id === actionId) {\n actionItem.onClick?.(param, e);\n }\n });\n }\n };\n\n // Deep copy of actions object is required to provide consistent callback objects on actions\n const actionsClone: Action[] = [];\n\n if (actions) {\n let actionsList: LifeCycleAction[] = [];\n if (Array.isArray(actions)) {\n actionsList = actions;\n } else {\n actionsList = actions[item.type];\n }\n\n actionsList.forEach(actionItem => {\n const actionCloneItem = {} as Action;\n Object.keys(actionItem).forEach((key: string) => {\n actionCloneItem[key] = actionItem[key];\n });\n actionCloneItem.onClick = onActionItemClick;\n actionsClone.push(actionCloneItem);\n return actionItem;\n });\n }\n\n return (\n <Flex\n {...restProps}\n container={{ inline: true, alignItems: 'center' }}\n as={StyledStage}\n ref={ref}\n error={error}\n stageInfo={stageInfo}\n id={item.id}\n aria-label={error ? t('stage_name_error', [value]) : undefined}\n >\n {error && <StyledWarnIcon name='warn-solid' />}\n <Flex\n as={StyledWrapper}\n container={{ inline: true }}\n item={{ grow: 1 }}\n onClick={onStageClick}\n >\n <StyledStageButton error={error} aria-label={error ? undefined : t('stage_name', [value])}>\n {value}\n </StyledStageButton>\n </Flex>\n <StyledStageActions>\n {actionsClone && <Actions items={actionsClone} menuAt={2} iconOnly />}\n </StyledStageActions>\n </Flex>\n );\n});\n\nexport default Stage;\n"]}
@@ -1,40 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { BaseProps, ForwardProps } from '@pega/cosmos-react-core';
3
- import { ColorName } from '../../utils';
4
- import { TaskItemProps, StepItemProps, StageItemProps, CategoryItemProps, StepProps } from './LifeCycle.types';
5
- interface StepComponentProps extends BaseProps, StepProps {
6
- /** Pass text for the step. */
7
- value: string;
8
- /** unique id of step */
9
- id: string;
10
- /** Determines the visual for icon, color and label to render.
11
- * This color is passed as a variant and accessible colors are used to display.
12
- * Icon and label are passed as normal string */
13
- visual: {
14
- imgurl: string;
15
- color: ColorName;
16
- icon: string;
17
- title: string;
18
- };
19
- /** Determines the variant and label for the badges */
20
- badge?: StepItemProps['status'];
21
- /** The status is used to show the input error status and the info on tooltip in case of error */
22
- error?: string;
23
- /** Data of the steps which can be used to send the full info back */
24
- item: StepItemProps;
25
- stageItem: StageItemProps;
26
- taskItem: TaskItemProps;
27
- categoryItem: CategoryItemProps;
28
- }
29
- export declare const StyledStepType: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<StepComponentProps, "visual">, never>;
30
- export declare const StyledStepBadge: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
31
- export declare const StyledStepWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
32
- hasFocus: boolean;
33
- selected: boolean;
34
- }, never>;
35
- export declare const StyledStep: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
36
- export declare const StyledStepButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
37
- export declare const StyledWarnIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@pega/cosmos-react-core").IconProps>, import("styled-components").DefaultTheme, {}, never>;
38
- declare const Step: FunctionComponent<StepComponentProps & ForwardProps>;
39
- export default Step;
40
- //# sourceMappingURL=Step.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../src/components/LifeCycle/Step.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,iBAAiB,EAA2C,MAAM,OAAO,CAAC;AAI7F,OAAO,EAGL,SAAS,EACT,YAAY,EAUb,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAY,SAAS,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EACL,aAAa,EACb,aAAa,EACb,cAAc,EACd,iBAAiB,EAEjB,SAAS,EACV,MAAM,mBAAmB,CAAC;AAG3B,UAAU,kBAAmB,SAAQ,SAAS,EAAE,SAAS;IACvD,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX;;oDAEgD;IAChD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,SAAS,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,sDAAsD;IACtD,KAAK,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,iGAAiG;IACjG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,cAAc,CAAC;IAC1B,QAAQ,EAAE,aAAa,CAAC;IACxB,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED,eAAO,MAAM,cAAc,yIAkB1B,CAAC;AAIF,eAAO,MAAM,eAAe,yGAa1B,CAAC;AAIH,eAAO,MAAM,iBAAiB;cAClB,OAAO;cACP,OAAO;SAuBjB,CAAC;AAIH,eAAO,MAAM,UAAU,yGAUrB,CAAC;AAYH,eAAO,MAAM,gBAAgB,4GAkB3B,CAAC;AAIH,eAAO,MAAM,cAAc,0LASzB,CAAC;AAIH,QAAA,MAAM,IAAI,EAAE,iBAAiB,CAAC,kBAAkB,GAAG,YAAY,CA6H9D,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,170 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState, useContext } from 'react';
3
- import styled, { css } from 'styled-components';
4
- import { readableColor } from 'polished';
5
- import { Flex, defaultThemeProp, Icon, Status, Actions, useI18n, Avatar, useUID, Tooltip, useElement } from '@pega/cosmos-react-core';
6
- import { colorMap } from '../../utils';
7
- import LifeCycleContext from './LifeCycleContext';
8
- export const StyledStepType = styled.div(({ visual, theme }) => {
9
- const bgColor = colorMap[visual.color];
10
- const contrastColor = readableColor(bgColor);
11
- return visual.imgurl
12
- ? css `
13
- height: 2rem;
14
- padding-inline-end: calc(0.25 * ${theme.base.spacing});
15
- `
16
- : css `
17
- background: ${bgColor};
18
- margin: calc(0.5 * ${theme.base.spacing});
19
- padding: 0 calc(0.5 * ${theme.base.spacing});
20
- color: ${contrastColor};
21
- text-align: center;
22
- border-radius: calc(0.25 * ${theme.base['border-radius']});
23
- `;
24
- });
25
- StyledStepType.defaultProps = defaultThemeProp;
26
- export const StyledStepBadge = styled.div(({ theme }) => {
27
- return css `
28
- padding: 0 calc(0.5 * ${theme.base.spacing});
29
- justify-content: flex-end;
30
- width: auto;
31
- max-width: calc(50% - ${theme.base.spacing});
32
-
33
- > span {
34
- white-space: nowrap;
35
- text-overflow: ellipsis;
36
- overflow: hidden;
37
- }
38
- `;
39
- });
40
- StyledStepBadge.defaultProps = defaultThemeProp;
41
- export const StyledStepWrapper = styled.div(({ hasFocus, theme, selected }) => {
42
- return css `
43
- width: 100%;
44
- margin: 0 0 calc(0.5 * ${theme.base.spacing});
45
- border: 0.125rem solid transparent;
46
- border-radius: calc(0.5 * ${theme.base['border-radius']});
47
-
48
- ${hasFocus &&
49
- css `
50
- box-shadow: ${theme.base.shadow.focus};
51
- `}
52
-
53
- &:hover {
54
- cursor: pointer;
55
- }
56
- ${selected &&
57
- css `
58
- &[aria-current='step'] {
59
- border-color: ${theme.base.palette.interactive};
60
- }
61
- `}
62
- `;
63
- });
64
- StyledStepWrapper.defaultProps = defaultThemeProp;
65
- export const StyledStep = styled.div(({ theme }) => {
66
- return css `
67
- background: ${theme.base.palette['secondary-background']};
68
- border: 0.125rem solid transparent;
69
- border-radius: calc(0.5 * ${theme.base['border-radius']});
70
-
71
- &:hover {
72
- cursor: pointer;
73
- }
74
- `;
75
- });
76
- StyledStep.defaultProps = defaultThemeProp;
77
- const StyledStepButtonWrapper = styled.div(({ theme }) => {
78
- return css `
79
- border-radius: calc(0.5 * ${theme.base['border-radius']});
80
- `;
81
- });
82
- StyledStepButtonWrapper.defaultProps = defaultThemeProp;
83
- export const StyledStepButton = styled.button(({ theme }) => {
84
- return css `
85
- border: none;
86
- height: ${theme.components.button.height};
87
- overflow: hidden;
88
- text-overflow: ellipsis;
89
- white-space: nowrap;
90
- text-align: start;
91
- background: ${theme.base.palette['secondary-background']};
92
-
93
- &:hover {
94
- cursor: pointer;
95
- }
96
-
97
- &:focus {
98
- outline: none;
99
- }
100
- `;
101
- });
102
- StyledStepButton.defaultProps = defaultThemeProp;
103
- export const StyledWarnIcon = styled(Icon)(({ theme }) => {
104
- return css `
105
- color: ${theme.base.palette.urgent};
106
- margin-inline: ${theme.base.spacing};
107
-
108
- &:hover {
109
- cursor: pointer;
110
- }
111
- `;
112
- });
113
- StyledWarnIcon.defaultProps = defaultThemeProp;
114
- const Step = ({ value, id, visual, actions, badge, error, categoryItem, item, stageItem, taskItem, onClick, ...restProps }) => {
115
- const t = useI18n();
116
- const { selectedItemId } = useContext(LifeCycleContext);
117
- const [stepHasFocus, setStepHasFocus] = useState(false);
118
- // Need to check the value with statusProps
119
- const onActionItemClick = (actionId, e) => {
120
- e.stopPropagation();
121
- const param = {
122
- task: taskItem,
123
- stage: stageItem,
124
- step: item,
125
- category: categoryItem
126
- };
127
- actions?.forEach(actionItem => {
128
- if (actionItem.id === actionId) {
129
- actionItem.onClick(param, e);
130
- }
131
- });
132
- };
133
- // Deep copy of actions is required to provide consistent callback objects on actions
134
- const actionsClone = [];
135
- const buttonDescriptionId = useUID();
136
- if (actions) {
137
- actions.forEach(actionItem => {
138
- const actionCloneItem = {};
139
- Object.keys(actionItem).forEach((key) => {
140
- actionCloneItem[key] = actionItem[key];
141
- });
142
- actionCloneItem.onClick = onActionItemClick;
143
- if (error)
144
- actionsClone.push(actionCloneItem);
145
- else
146
- actionsClone.push({ ...actionCloneItem, 'aria-describedby': buttonDescriptionId });
147
- return actionItem;
148
- });
149
- }
150
- const onStepClick = (e) => {
151
- e.stopPropagation();
152
- const actionParam = {
153
- value,
154
- step: item,
155
- task: taskItem,
156
- category: categoryItem,
157
- stage: stageItem,
158
- type: 'Step'
159
- };
160
- onClick?.(actionParam, e);
161
- };
162
- const [stepLabelEl, setStepLabelEl] = useElement(null);
163
- return (_jsxs(Flex, { as: StyledStepWrapper, id: `${id}-stepWrapper`, container: { inline: true, alignItems: 'center' }, "aria-current": selectedItemId === id ? 'step' : undefined, hasFocus: stepHasFocus && selectedItemId !== id, selected: selectedItemId === id, children: [error && _jsx(StyledWarnIcon, { name: 'warn-solid' }), _jsxs(Flex, { as: StyledStep, container: { inline: true }, id: id, item: { grow: 1 }, onClick: onStepClick, children: [_jsxs(StyledStepType, { visual: visual, children: [visual.imgurl.length > 0 && (_jsx(Avatar, { name: visual.title, imageSrc: visual?.imgurl, shape: 'squircle', size: 'm' })), !visual.imgurl && _jsx(Icon, { name: visual.icon })] }), _jsxs(Flex, { as: StyledStepButtonWrapper, item: { grow: 1 }, container: { inline: true, alignItems: 'center', justify: 'between' }, id: buttonDescriptionId, children: [_jsxs(StyledStepButton, { ...restProps, onFocus: () => {
164
- setStepHasFocus(true);
165
- }, onBlur: () => {
166
- setStepHasFocus(false);
167
- }, "aria-label": t(error ? 'step_name_error' : 'step_name', [value]), ref: setStepLabelEl, children: [value, _jsx(Tooltip, { smart: true, target: stepLabelEl, showDelay: 'none', hideDelay: 'none', children: value })] }), badge?.type && (_jsx(Flex, { as: StyledStepBadge, container: { inline: true, alignItems: 'center' }, children: _jsx(Status, { variant: badge?.type || 'success', children: badge?.label }) }))] }), actionsClone && _jsx(Actions, { items: actionsClone, menuAt: 2, iconOnly: true })] })] }));
168
- };
169
- export default Step;
170
- //# sourceMappingURL=Step.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Step.js","sourceRoot":"","sources":["../../../src/components/LifeCycle/Step.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAkD,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACL,IAAI,EACJ,gBAAgB,EAGhB,IAAI,EACJ,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EAEN,MAAM,EACN,OAAO,EACP,UAAU,EACX,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAa,MAAM,aAAa,CAAC;AAUlD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AA2BlD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CACtC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpB,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAC7C,OAAO,MAAM,CAAC,MAAM;QAClB,CAAC,CAAC,GAAG,CAAA;;4CAEiC,KAAK,CAAC,IAAI,CAAC,OAAO;SACrD;QACH,CAAC,CAAC,GAAG,CAAA;wBACa,OAAO;+BACA,KAAK,CAAC,IAAI,CAAC,OAAO;kCACf,KAAK,CAAC,IAAI,CAAC,OAAO;mBACjC,aAAa;;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AuB,EAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EACjB,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,EACrE,EAAE,EAAE,mBAAmB,aAEvB,MAAC,gBAAgB,OACX,SAAS,EACb,OAAO,EAAE,GAAG,EAAE;oCACZ,eAAe,CAAC,IAAI,CAAC,CAAC;gCACxB,CAAC,EACD,MAAM,EAAE,GAAG,EAAE;oCACX,eAAe,CAAC,KAAK,CAAC,CAAC;gCACzB,CAAC,gBACW,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,EAC/D,GAAG,EAAE,cAAc,aAElB,KAAK,EACN,KAAC,OAAO,IAAC,KAAK,QAAC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,YAClE,KAAK,GACE,IACO,EAClB,KAAK,EAAE,IAAI,IAAI,CACd,KAAC,IAAI,IAAC,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,YAC1E,KAAC,MAAM,IAAC,OAAO,EAAE,KAAK,EAAE,IAAI,IAAI,SAAS,YAAG,KAAK,EAAE,KAAK,GAAU,GAC7D,CACR,IACI,EACN,YAAY,IAAI,KAAC,OAAO,IAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,SAAG,IAChE,IACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC","sourcesContent":["import { useState, FunctionComponent, PropsWithoutRef, MouseEvent, useContext } from 'react';\nimport styled, { css } from 'styled-components';\nimport { readableColor } from 'polished';\n\nimport {\n Flex,\n defaultThemeProp,\n BaseProps,\n ForwardProps,\n Icon,\n Status,\n Actions,\n useI18n,\n Avatar,\n Action,\n useUID,\n Tooltip,\n useElement\n} from '@pega/cosmos-react-core';\n\nimport { colorMap, ColorName } from '../../utils';\n\nimport {\n TaskItemProps,\n StepItemProps,\n StageItemProps,\n CategoryItemProps,\n LifeCycleActionParam,\n StepProps\n} from './LifeCycle.types';\nimport LifeCycleContext from './LifeCycleContext';\n\ninterface StepComponentProps extends BaseProps, StepProps {\n /** Pass text for the step. */\n value: string;\n /** unique id of step */\n id: string;\n /** Determines the visual for icon, color and label to render.\n * This color is passed as a variant and accessible colors are used to display.\n * Icon and label are passed as normal string */\n visual: {\n imgurl: string;\n color: ColorName;\n icon: string;\n title: string;\n };\n /** Determines the variant and label for the badges */\n badge?: StepItemProps['status'];\n /** The status is used to show the input error status and the info on tooltip in case of error */\n error?: string;\n /** Data of the steps which can be used to send the full info back */\n item: StepItemProps;\n stageItem: StageItemProps;\n taskItem: TaskItemProps;\n categoryItem: CategoryItemProps;\n}\n\nexport const StyledStepType = styled.div<Pick<StepComponentProps, 'visual'>>(\n ({ visual, theme }) => {\n const bgColor = colorMap[visual.color];\n const contrastColor = readableColor(bgColor);\n return visual.imgurl\n ? css`\n height: 2rem;\n padding-inline-end: calc(0.25 * ${theme.base.spacing});\n `\n : css`\n background: ${bgColor};\n margin: calc(0.5 * ${theme.base.spacing});\n padding: 0 calc(0.5 * ${theme.base.spacing});\n color: ${contrastColor};\n text-align: center;\n border-radius: calc(0.25 * ${theme.base['border-radius']});\n `;\n }\n);\n\nStyledStepType.defaultProps = defaultThemeProp;\n\nexport const StyledStepBadge = styled.div(({ theme }) => {\n return css`\n padding: 0 calc(0.5 * ${theme.base.spacing});\n justify-content: flex-end;\n width: auto;\n max-width: calc(50% - ${theme.base.spacing});\n\n > span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n `;\n});\n\nStyledStepBadge.defaultProps = defaultThemeProp;\n\nexport const StyledStepWrapper = styled.div<{\n hasFocus: boolean;\n selected: boolean;\n}>(({ hasFocus, theme, selected }) => {\n return css`\n width: 100%;\n margin: 0 0 calc(0.5 * ${theme.base.spacing});\n border: 0.125rem solid transparent;\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n\n ${hasFocus &&\n css`\n box-shadow: ${theme.base.shadow.focus};\n `}\n\n &:hover {\n cursor: pointer;\n }\n ${selected &&\n css`\n &[aria-current='step'] {\n border-color: ${theme.base.palette.interactive};\n }\n `}\n `;\n});\n\nStyledStepWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledStep = styled.div(({ theme }) => {\n return css`\n background: ${theme.base.palette['secondary-background']};\n border: 0.125rem solid transparent;\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n\n &:hover {\n cursor: pointer;\n }\n `;\n});\n\nStyledStep.defaultProps = defaultThemeProp;\n\nconst StyledStepButtonWrapper = styled.div<{ error: string }>(({ theme }) => {\n return css`\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n `;\n});\n\nStyledStepButtonWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledStepButton = styled.button(({ theme }) => {\n return css`\n border: none;\n height: ${theme.components.button.height};\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: start;\n background: ${theme.base.palette['secondary-background']};\n\n &:hover {\n cursor: pointer;\n }\n\n &:focus {\n outline: none;\n }\n `;\n});\n\nStyledStepButton.defaultProps = defaultThemeProp;\n\nexport const StyledWarnIcon = styled(Icon)(({ theme }) => {\n return css`\n color: ${theme.base.palette.urgent};\n margin-inline: ${theme.base.spacing};\n\n &:hover {\n cursor: pointer;\n }\n `;\n});\n\nStyledWarnIcon.defaultProps = defaultThemeProp;\n\nconst Step: FunctionComponent<StepComponentProps & ForwardProps> = ({\n value,\n id,\n visual,\n actions,\n badge,\n error,\n categoryItem,\n item,\n stageItem,\n taskItem,\n onClick,\n ...restProps\n}: PropsWithoutRef<StepComponentProps>) => {\n const t = useI18n();\n const { selectedItemId } = useContext(LifeCycleContext);\n const [stepHasFocus, setStepHasFocus] = useState(false);\n\n // Need to check the value with statusProps\n\n const onActionItemClick = (\n actionId: string,\n e: MouseEvent<HTMLInputElement | HTMLAnchorElement | HTMLButtonElement>\n ) => {\n e.stopPropagation();\n const param: LifeCycleActionParam = {\n task: taskItem,\n stage: stageItem,\n step: item,\n category: categoryItem\n };\n actions?.forEach(actionItem => {\n if (actionItem.id === actionId) {\n actionItem.onClick(param, e);\n }\n });\n };\n // Deep copy of actions is required to provide consistent callback objects on actions\n const actionsClone: Action[] = [];\n const buttonDescriptionId: string = useUID();\n\n if (actions) {\n actions.forEach(actionItem => {\n const actionCloneItem = {} as Action;\n Object.keys(actionItem).forEach((key: string) => {\n actionCloneItem[key] = actionItem[key];\n });\n actionCloneItem.onClick = onActionItemClick;\n if (error) actionsClone.push(actionCloneItem);\n else actionsClone.push({ ...actionCloneItem, 'aria-describedby': buttonDescriptionId });\n return actionItem;\n });\n }\n\n const onStepClick = (e: MouseEvent) => {\n e.stopPropagation();\n const actionParam: LifeCycleActionParam = {\n value,\n step: item,\n task: taskItem,\n category: categoryItem,\n stage: stageItem,\n type: 'Step'\n };\n onClick?.(actionParam, e);\n };\n\n const [stepLabelEl, setStepLabelEl] = useElement<HTMLSpanElement>(null);\n\n return (\n <Flex\n as={StyledStepWrapper}\n id={`${id}-stepWrapper`}\n container={{ inline: true, alignItems: 'center' }}\n aria-current={selectedItemId === id ? 'step' : undefined}\n hasFocus={stepHasFocus && selectedItemId !== id}\n selected={selectedItemId === id}\n >\n {error && <StyledWarnIcon name='warn-solid' />}\n <Flex\n as={StyledStep}\n container={{ inline: true }}\n id={id}\n item={{ grow: 1 }}\n onClick={onStepClick}\n >\n <StyledStepType visual={visual}>\n {visual.imgurl.length > 0 && (\n <Avatar name={visual.title} imageSrc={visual?.imgurl} shape='squircle' size='m' />\n )}\n {!visual.imgurl && <Icon name={visual.icon} />}\n </StyledStepType>\n\n <Flex\n as={StyledStepButtonWrapper}\n item={{ grow: 1 }}\n container={{ inline: true, alignItems: 'center', justify: 'between' }}\n id={buttonDescriptionId}\n >\n <StyledStepButton\n {...restProps}\n onFocus={() => {\n setStepHasFocus(true);\n }}\n onBlur={() => {\n setStepHasFocus(false);\n }}\n aria-label={t(error ? 'step_name_error' : 'step_name', [value])}\n ref={setStepLabelEl}\n >\n {value}\n <Tooltip smart target={stepLabelEl} showDelay='none' hideDelay='none'>\n {value}\n </Tooltip>\n </StyledStepButton>\n {badge?.type && (\n <Flex as={StyledStepBadge} container={{ inline: true, alignItems: 'center' }}>\n <Status variant={badge?.type || 'success'}>{badge?.label}</Status>\n </Flex>\n )}\n </Flex>\n {actionsClone && <Actions items={actionsClone} menuAt={2} iconOnly />}\n </Flex>\n </Flex>\n );\n};\n\nexport default Step;\n"]}
@@ -1,34 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { BaseProps, ForwardProps } from '@pega/cosmos-react-core';
3
- import { TaskItemProps, StageItemProps, CategoryItemProps, StepProps, TaskProps } from './LifeCycle.types';
4
- interface TaskComponentProps extends BaseProps, TaskProps {
5
- /** Pass text for the task. */
6
- value: string;
7
- /** support for an Avatar, Icon, or other supporting visual. */
8
- visual: {
9
- imgurl: string;
10
- };
11
- /** Pass task data */
12
- item: TaskItemProps;
13
- /** The status is used to show the input error status and the info on tooltip in case of error */
14
- error?: string;
15
- /** Step Props */
16
- step?: StepProps;
17
- /** Stage data to pass it as callback */
18
- stageItem: StageItemProps;
19
- /** Category data to pass it as callback */
20
- categoryItem: CategoryItemProps;
21
- /** unique id of task */
22
- id: string;
23
- }
24
- export declare const StyledTaskList: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
25
- export declare const StyledCardHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {}, never>;
26
- export declare const StyledCardContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
27
- export declare const StyledTaskButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
28
- export declare const StyledTask: import("styled-components").StyledComponent<"article", import("styled-components").DefaultTheme, {
29
- hasFocus: boolean;
30
- }, never>;
31
- export declare const StyledWarnIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@pega/cosmos-react-core").IconProps>, import("styled-components").DefaultTheme, {}, never>;
32
- declare const Task: FunctionComponent<TaskComponentProps & ForwardProps>;
33
- export default Task;
34
- //# sourceMappingURL=Task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../../src/components/LifeCycle/Task.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAGf,OAAO,EAGL,SAAS,EACT,YAAY,EAUb,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EACL,aAAa,EACb,cAAc,EAEd,iBAAiB,EAEjB,SAAS,EACT,SAAS,EACV,MAAM,mBAAmB,CAAC;AAG3B,UAAU,kBAAmB,SAAQ,SAAS,EAAE,SAAS;IACvD,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,qBAAqB;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,iGAAiG;IACjG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wCAAwC;IACxC,SAAS,EAAE,cAAc,CAAC;IAC1B,2CAA2C;IAC3C,YAAY,EAAE,iBAAiB,CAAC;IAChC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,cAAc,wGASzB,CAAC;AAIH,eAAO,MAAM,gBAAgB,4GAK3B,CAAC;AAIH,eAAO,MAAM,iBAAiB,yGAI5B,CAAC;AAEH,eAAO,MAAM,gBAAgB,4GAkB3B,CAAC;AAIH,eAAO,MAAM,UAAU;cAA8B,OAAO;SAoB1D,CAAC;AAIH,eAAO,MAAM,cAAc,0LASzB,CAAC;AAIH,QAAA,MAAM,IAAI,EAAE,iBAAiB,CAAC,kBAAkB,GAAG,YAAY,CAwK9D,CAAC;AAEF,eAAe,IAAI,CAAC"}