@pega/cosmos-react-demos 4.0.0-dev.2.0 → 4.0.0-dev.20.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 (1187) hide show
  1. package/jsx/build/AppShell/AppShell.mocks.d.ts +28 -53
  2. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  3. package/jsx/build/AppShell/AppShell.mocks.jsx +260 -376
  4. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -1
  5. package/jsx/build/AppShell/AppShell.stories.d.ts +14 -11
  6. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  7. package/jsx/build/AppShell/AppShell.stories.jsx +72 -100
  8. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  9. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
  10. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
  11. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  12. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
  13. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  14. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +1 -1
  15. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  16. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +6 -5
  17. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
  18. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  19. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +17 -21
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -1
  21. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +1 -1
  22. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  23. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +125 -9
  24. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  25. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +1 -1
  26. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +1 -1
  27. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  28. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +43 -3
  29. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  30. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +1 -0
  31. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +1 -1
  32. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js +2 -1
  33. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +1 -1
  34. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +1 -1
  35. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +3 -2
  36. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  37. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +6 -6
  38. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
  39. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +1 -1
  40. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  41. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  42. package/jsx/build/PageBanner/PageBanner.stories.d.ts +15 -0
  43. package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
  44. package/jsx/build/PageBanner/PageBanner.stories.jsx +41 -0
  45. package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -0
  46. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +0 -2
  47. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -1
  48. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +1 -50
  49. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -1
  50. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +8 -4
  51. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  52. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +32 -31
  53. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  54. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +0 -1
  55. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  56. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +2 -156
  57. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -1
  58. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +1 -1
  59. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  60. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +6 -7
  61. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  62. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
  63. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
  64. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +42 -0
  65. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -0
  66. package/jsx/build/Workbench/Workbench.stories.d.ts +1 -1
  67. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +1 -1
  68. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  69. package/jsx/condition-builder/ConditionBuilder/props.mock.js +4 -2
  70. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  71. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +1 -1
  72. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  73. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +53 -1
  74. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  75. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +1 -1
  76. package/jsx/core/AIButton/AIButton.mocks.d.ts +22 -0
  77. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +1 -0
  78. package/jsx/core/AIButton/AIButton.mocks.js +136 -0
  79. package/jsx/core/AIButton/AIButton.mocks.js.map +1 -0
  80. package/jsx/core/AIButton/AIButton.stories.d.ts +23 -0
  81. package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -0
  82. package/jsx/core/AIButton/AIButton.stories.jsx +306 -0
  83. package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -0
  84. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +1 -1
  85. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  86. package/jsx/core/AppShell/AppShell.mocks.jsx +4 -19
  87. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  88. package/jsx/core/AppShell/AppShell.stories.d.ts +2 -3
  89. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  90. package/jsx/core/AppShell/AppShell.stories.jsx +58 -77
  91. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  92. package/jsx/core/Avatar/Avatar.stories.d.ts +1 -1
  93. package/jsx/core/Backdrop/Backdrop.stories.d.ts +1 -1
  94. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  95. package/jsx/core/Backdrop/Backdrop.stories.jsx +12 -12
  96. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +1 -1
  97. package/jsx/core/Badges/Alert.stories.d.ts +1 -1
  98. package/jsx/core/Badges/Count.stories.d.ts +1 -1
  99. package/jsx/core/Badges/Count.stories.jsx +1 -1
  100. package/jsx/core/Badges/Count.stories.jsx.map +1 -1
  101. package/jsx/core/Badges/Keyboard.stories.d.ts +1 -1
  102. package/jsx/core/Badges/Keyboard.stories.jsx +1 -1
  103. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -1
  104. package/jsx/core/Badges/Selection.stories.d.ts +1 -1
  105. package/jsx/core/Badges/Status.stories.d.ts +1 -1
  106. package/jsx/core/Badges/Tag.stories.d.ts +1 -1
  107. package/jsx/core/Banner/Banner.stories.d.ts +9 -5
  108. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  109. package/jsx/core/Banner/Banner.stories.jsx +109 -54
  110. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  111. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +1 -1
  112. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -3
  113. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  114. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +16 -4
  115. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  116. package/jsx/core/Button/Button.stories.d.ts +1 -2
  117. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  118. package/jsx/core/Button/Button.stories.jsx +0 -14
  119. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  120. package/jsx/core/Card/Card.stories.d.ts +1 -1
  121. package/jsx/core/Checkbox/Checkbox.stories.d.ts +1 -1
  122. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  123. package/jsx/core/Checkbox/Checkbox.stories.jsx +3 -1
  124. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  125. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +1 -1
  126. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  127. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +8 -5
  128. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  129. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -1
  130. package/jsx/core/ComboBox/ComboBox.stories.d.ts +3 -3
  131. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  132. package/jsx/core/ComboBox/ComboBox.stories.jsx +17 -9
  133. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  134. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +1 -1
  135. package/jsx/core/Configuration/Configuration.stories.d.ts +1 -1
  136. package/jsx/core/CreditCard/CreditCard.stories.d.ts +1 -1
  137. package/jsx/core/Currency/Currency.stories.d.ts +2 -2
  138. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  139. package/jsx/core/DangerButton/DangerButton.stories.d.ts +6 -0
  140. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -0
  141. package/jsx/core/DangerButton/DangerButton.stories.jsx +17 -0
  142. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +1 -0
  143. package/jsx/core/DateTime/DateTime.stories.d.ts +1 -1
  144. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  145. package/jsx/core/DateTime/DateTime.stories.jsx +11 -9
  146. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  147. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +1 -1
  148. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  149. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +5 -3
  150. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
  151. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +1 -1
  152. package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
  153. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
  154. package/jsx/core/Dialog/Dialog.stories.d.ts +3 -2
  155. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
  156. package/jsx/core/Dialog/Dialog.stories.jsx +9 -73
  157. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -1
  158. package/jsx/core/Dialog/FormDialog.mocks.d.ts +27 -0
  159. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
  160. package/jsx/core/Dialog/FormDialog.mocks.jsx +194 -0
  161. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +1 -0
  162. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +4 -0
  163. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
  164. package/jsx/core/Dialog/InfoDialog.mocks.jsx +64 -0
  165. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +1 -0
  166. package/jsx/core/Drawer/Drawer.stories.d.ts +1 -1
  167. package/jsx/core/Email/EmailDisplay.stories.d.ts +1 -1
  168. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +1 -1
  169. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  170. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +6 -5
  171. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -1
  172. package/jsx/core/EmptyState/EmptyState.stories.d.ts +1 -1
  173. package/jsx/core/ErrorState/ErrorState.stories.d.ts +1 -1
  174. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +1 -1
  175. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -1
  176. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  177. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +28 -3
  178. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  179. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
  180. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  181. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +6 -1
  182. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  183. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +2 -1
  184. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  185. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +43 -11
  186. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  187. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +1 -1
  188. package/jsx/core/File/FileDisplay.stories.d.ts +1 -1
  189. package/jsx/core/File/FileInput.stories.d.ts +1 -1
  190. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -1
  191. package/jsx/core/Flex/FlexItem.stories.d.ts +1 -1
  192. package/jsx/core/Form/Form.stories.d.ts +1 -1
  193. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  194. package/jsx/core/Form/Form.stories.jsx +2 -2
  195. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  196. package/jsx/core/Grid/GridContainer.stories.d.ts +1 -1
  197. package/jsx/core/Grid/GridItem.stories.d.ts +1 -1
  198. package/jsx/core/HTML/HTML.stories.d.ts +1 -1
  199. package/jsx/core/Icon/Icon.stories.d.ts +5 -2
  200. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  201. package/jsx/core/Icon/Icon.stories.jsx +26 -16
  202. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  203. package/jsx/core/IconPicker/IconPicker.stories.d.ts +1 -1
  204. package/jsx/core/Image/Image.stories.d.ts +1 -1
  205. package/jsx/core/Input/Input.stories.d.ts +1 -1
  206. package/jsx/core/Label/Label.stories.d.ts +1 -1
  207. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
  208. package/jsx/core/Lightbox/Lightbox.mocks.js.map +1 -1
  209. package/jsx/core/Lightbox/Lightbox.stories.d.ts +1 -1
  210. package/jsx/core/Link/Link.stories.d.ts +9 -5
  211. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  212. package/jsx/core/Link/Link.stories.jsx +13 -30
  213. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  214. package/jsx/core/List/CommaSeparatedList.stories.d.ts +1 -1
  215. package/jsx/core/List/OrderedList.stories.d.ts +1 -1
  216. package/jsx/core/List/UnorderedList.stories.d.ts +1 -1
  217. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  218. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +47 -52
  219. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -1
  220. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +2 -3
  221. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  222. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +14 -19
  223. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  224. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +5 -0
  225. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -0
  226. package/jsx/core/LiveLog/LiveLog.mocks.jsx +47 -0
  227. package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +1 -0
  228. package/jsx/core/LiveLog/LiveLog.stories.d.ts +9 -0
  229. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -0
  230. package/jsx/core/LiveLog/LiveLog.stories.jsx +19 -0
  231. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +1 -0
  232. package/jsx/core/Location/Location.stories.d.ts +1 -1
  233. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  234. package/jsx/core/Location/Location.stories.jsx +11 -7
  235. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  236. package/jsx/core/Menu/Menu.mocks.js.map +1 -1
  237. package/jsx/core/Menu/Menu.stories.d.ts +2 -1
  238. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  239. package/jsx/core/Menu/Menu.stories.jsx +33 -0
  240. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  241. package/jsx/core/MenuButton/MenuButton.stories.d.ts +3 -2
  242. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  243. package/jsx/core/MenuButton/MenuButton.stories.jsx +1 -1
  244. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  245. package/jsx/core/MetaList/MetaList.stories.d.ts +1 -1
  246. package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
  247. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  248. package/jsx/core/Modal/Modal.stories.d.ts +1 -1
  249. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  250. package/jsx/core/Modal/Modal.stories.jsx +5 -6
  251. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  252. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +36 -3
  253. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  254. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +295 -40
  255. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
  256. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +4 -2
  257. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  258. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +70 -165
  259. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
  260. package/jsx/core/NoValue/NoValue.stories.d.ts +6 -0
  261. package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -0
  262. package/jsx/core/NoValue/NoValue.stories.jsx +30 -0
  263. package/jsx/core/NoValue/NoValue.stories.jsx.map +1 -0
  264. package/jsx/core/Number/Number.stories.d.ts +2 -2
  265. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  266. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +2 -2
  267. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  268. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +2 -2
  269. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  270. package/jsx/core/Pagination/Pagination.stories.d.ts +1 -1
  271. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +1 -1
  272. package/jsx/core/Phone/Phone.stories.d.ts +1 -1
  273. package/jsx/core/Popover/Popover.mocks.d.ts +9 -0
  274. package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -0
  275. package/jsx/core/Popover/Popover.mocks.jsx +114 -0
  276. package/jsx/core/Popover/Popover.mocks.jsx.map +1 -0
  277. package/jsx/core/Popover/Popover.stories.d.ts +7 -1
  278. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  279. package/jsx/core/Popover/Popover.stories.jsx +27 -0
  280. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  281. package/jsx/core/Progress/Progress.mocks.d.ts +2 -0
  282. package/jsx/core/Progress/Progress.mocks.d.ts.map +1 -0
  283. package/jsx/core/Progress/Progress.mocks.js +2 -0
  284. package/jsx/core/Progress/Progress.mocks.js.map +1 -0
  285. package/jsx/core/Progress/Progress.stories.d.ts +4 -1
  286. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  287. package/jsx/core/Progress/Progress.stories.jsx +81 -14
  288. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  289. package/jsx/core/QRCode/QRCode.stories.d.ts +9 -0
  290. package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -0
  291. package/jsx/core/QRCode/QRCode.stories.jsx +17 -0
  292. package/jsx/core/QRCode/QRCode.stories.jsx.map +1 -0
  293. package/jsx/core/RadioButton/RadioButton.stories.d.ts +1 -1
  294. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  295. package/jsx/core/RadioButton/RadioButton.stories.jsx +3 -1
  296. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  297. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +1 -1
  298. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  299. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +9 -5
  300. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  301. package/jsx/core/Rating/Rating.stories.d.ts +1 -1
  302. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  303. package/jsx/core/Rating/Rating.stories.jsx +1 -1
  304. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  305. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -1
  306. package/jsx/core/SearchInput/SearchInput.stories.jsx +1 -1
  307. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  308. package/jsx/core/Select/Select.stories.d.ts +1 -1
  309. package/jsx/core/Sentiment/Sentiment.stories.d.ts +1 -1
  310. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +1 -1
  311. package/jsx/core/Slider/Slider.stories.d.ts +2 -2
  312. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  313. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +2 -2
  314. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  315. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  316. package/jsx/core/SummaryList/SummaryList.mocks.jsx +10 -2
  317. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +1 -1
  318. package/jsx/core/SummaryList/SummaryList.stories.d.ts +1 -1
  319. package/jsx/core/SummaryList/SummaryList.stories.jsx +2 -2
  320. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  321. package/jsx/core/SummaryList/mockUsers.d.ts.map +1 -1
  322. package/jsx/core/SummaryList/mockUsers.js.map +1 -1
  323. package/jsx/core/Switch/Switch.stories.d.ts +1 -1
  324. package/jsx/core/Table/Table.mocks.jsx +1 -1
  325. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  326. package/jsx/core/Table/Table.stories.d.ts +1 -1
  327. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  328. package/jsx/core/Tabs/Tabs.stories.d.ts +1 -7
  329. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  330. package/jsx/core/Tabs/Tabs.stories.jsx +1 -40
  331. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  332. package/jsx/core/Text/Text.stories.d.ts +1 -1
  333. package/jsx/core/TextArea/TextArea.stories.d.ts +1 -1
  334. package/jsx/core/TextArea/TextArea.stories.jsx +1 -1
  335. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  336. package/jsx/core/Toaster/Toaster.stories.d.ts +1 -1
  337. package/jsx/core/Tooltip/Tooltip.stories.d.ts +2 -1
  338. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  339. package/jsx/core/Tooltip/Tooltip.stories.jsx +21 -1
  340. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  341. package/jsx/core/Tooltip/Tooltip.styles.d.ts +2 -0
  342. package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +1 -0
  343. package/jsx/core/Tooltip/Tooltip.styles.js +23 -0
  344. package/jsx/core/Tooltip/Tooltip.styles.js.map +1 -0
  345. package/jsx/core/Tree/Tree.stories.d.ts +2 -2
  346. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  347. package/jsx/core/Tree/Tree.stories.jsx +10 -18
  348. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  349. package/jsx/core/URL/URL.stories.d.ts +1 -1
  350. package/jsx/core/URL/URL.stories.jsx +1 -1
  351. package/jsx/core/URL/URL.stories.jsx.map +1 -1
  352. package/jsx/cs/Article/Article.mocks.js +4 -4
  353. package/jsx/cs/Article/Article.mocks.js.map +1 -1
  354. package/jsx/cs/Article/Article.stories.d.ts +14 -3
  355. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  356. package/jsx/cs/Article/Article.stories.jsx +167 -92
  357. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  358. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts +129 -10
  359. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  360. package/jsx/cs/ArticleList/ArticleList.mocks.js +362 -50
  361. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  362. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +11 -3
  363. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  364. package/jsx/cs/ArticleList/ArticleList.stories.jsx +243 -92
  365. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  366. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +18 -1
  367. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  368. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +143 -10
  369. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +1 -1
  370. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +1 -1
  371. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  372. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +9 -37
  373. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
  374. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +2 -2
  375. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  376. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +1 -1
  377. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  378. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +2 -2
  379. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  380. package/jsx/cs/DialPad/DialPad.stories.d.ts +1 -1
  381. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +4 -2
  382. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  383. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +18 -4
  384. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  385. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +2 -1
  386. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  387. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +12 -5
  388. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  389. package/jsx/cs/Picker/Picker.stories.d.ts +11 -0
  390. package/jsx/cs/Picker/Picker.stories.d.ts.map +1 -0
  391. package/jsx/cs/Picker/Picker.stories.jsx +64 -0
  392. package/jsx/cs/Picker/Picker.stories.jsx.map +1 -0
  393. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +1 -1
  394. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  395. package/jsx/cs/TaskManager/TaskManager.stories.jsx +1 -1
  396. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  397. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +1 -1
  398. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  399. package/jsx/dnd/StandardDragDropList/Demo.jsx +6 -8
  400. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
  401. package/jsx/dnd/StandardDragDropList/Popover.d.ts +1 -1
  402. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  403. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +1 -1
  404. package/jsx/dnd/StandardDragDropList/mockData.d.ts +2 -2
  405. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  406. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
  407. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  408. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  409. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  410. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  411. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +11 -0
  412. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  413. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +80 -0
  414. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  415. package/jsx/rte/Editor/Editor.mocks.d.ts +41 -27
  416. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
  417. package/jsx/rte/Editor/Editor.stories.d.ts +1 -1
  418. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +1 -1
  419. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +1 -1
  420. package/jsx/social/Chat/Chat.mocks.d.ts +23 -395
  421. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
  422. package/jsx/social/Chat/Chat.mocks.js +568 -585
  423. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  424. package/jsx/social/Chat/Chat.stories.d.ts +23 -19
  425. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  426. package/jsx/social/Chat/Chat.stories.jsx +220 -301
  427. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  428. package/jsx/social/Email/Email.mocks.d.ts +50 -8
  429. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  430. package/jsx/social/Email/Email.mocks.jsx +130 -18
  431. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  432. package/jsx/social/Email/Email.stories.d.ts +11 -1
  433. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  434. package/jsx/social/Email/Email.stories.jsx +153 -35
  435. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  436. package/jsx/social/Feed/Feed.mocks.d.ts +2 -1
  437. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  438. package/jsx/social/Feed/Feed.mocks.jsx +4 -2
  439. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  440. package/jsx/social/Feed/Feed.stories.d.ts +1 -1
  441. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  442. package/jsx/social/Feed/Feed.stories.jsx +13 -5
  443. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  444. package/jsx/social/Feed/FeedNewPost.stories.d.ts +1 -1
  445. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  446. package/jsx/social/Feed/FeedNewPost.stories.jsx +2 -2
  447. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  448. package/jsx/social/Feed/FeedPost.stories.d.ts +1 -1
  449. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  450. package/jsx/social/Feed/FeedPost.stories.jsx +16 -9
  451. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  452. package/jsx/social/Feed/FeedReply.stories.d.ts +1 -1
  453. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  454. package/jsx/social/Feed/FeedReply.stories.jsx +11 -3
  455. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  456. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +1 -1
  457. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  458. package/jsx/social/Feed/FeedReplyInput.stories.jsx +2 -2
  459. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  460. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
  461. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -1
  462. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +1 -1
  463. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  464. package/jsx/tools/Clipboard/Clipboard.stories.jsx +12 -14
  465. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -1
  466. package/jsx/tools/DevTools/DevTools.stories.d.ts +1 -1
  467. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  468. package/jsx/tools/DevTools/DevTools.stories.jsx +2 -4
  469. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
  470. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +12 -1
  471. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  472. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +24 -2
  473. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -1
  474. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +5 -3
  475. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  476. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +74 -51
  477. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
  478. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +1 -2
  479. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -1
  480. package/jsx/tools/PreviewShell/PreviewShell.styles.js +1 -2
  481. package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -1
  482. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +1 -1
  483. package/jsx/work/Assignments/Assignments.stories.d.ts +11 -0
  484. package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -0
  485. package/jsx/work/Assignments/Assignments.stories.jsx +64 -0
  486. package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -0
  487. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  488. package/jsx/work/CaseView/Attachments.mocks.jsx +81 -71
  489. package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
  490. package/jsx/work/CaseView/CaseView.mocks.d.ts +39 -22
  491. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  492. package/jsx/work/CaseView/CaseView.mocks.jsx +258 -85
  493. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  494. package/jsx/work/CaseView/CaseView.stories.d.ts +3 -8
  495. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  496. package/jsx/work/CaseView/CaseView.stories.jsx +39 -11
  497. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  498. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  499. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  500. package/jsx/work/CaseView/FileService.mock.d.ts +2 -2
  501. package/jsx/work/CaseView/FileService.mock.d.ts.map +1 -1
  502. package/jsx/work/CaseView/FileService.mock.jsx +2 -6
  503. package/jsx/work/CaseView/FileService.mock.jsx.map +1 -1
  504. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +1 -1
  505. package/jsx/work/Confirmation/Confirmation.stories.d.ts +1 -1
  506. package/jsx/work/Confirmation/Confirmation.stories.jsx +1 -1
  507. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  508. package/jsx/work/Details/Details.stories.d.ts +1 -1
  509. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  510. package/jsx/work/Details/Details.stories.jsx +6 -1
  511. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  512. package/jsx/work/Glimpse/Glimpse.stories.d.ts +2 -7
  513. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  514. package/jsx/work/Glimpse/Glimpse.stories.jsx +16 -13
  515. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  516. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +1 -1
  517. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  518. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +89 -12
  519. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  520. package/jsx/work/Predictions/Predictions.mocks.d.ts +3 -0
  521. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -0
  522. package/jsx/work/Predictions/Predictions.mocks.jsx +18 -0
  523. package/jsx/work/Predictions/Predictions.mocks.jsx.map +1 -0
  524. package/jsx/work/Predictions/Predictions.stories.d.ts +5 -0
  525. package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -0
  526. package/jsx/work/Predictions/Predictions.stories.jsx +53 -0
  527. package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -0
  528. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +1 -1
  529. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  530. package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -1
  531. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  532. package/jsx/work/SearchResults/SearchResults.stories.jsx +20 -7
  533. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  534. package/jsx/work/Stages/Stages.mocks.jsx +6 -6
  535. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -1
  536. package/jsx/work/Stages/Stages.stories.d.ts +1 -1
  537. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  538. package/jsx/work/Stages/Stages.stories.jsx +22 -8
  539. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  540. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  541. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +6 -2
  542. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  543. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +1 -1
  544. package/jsx/work/Tags/Tags.stories.d.ts +1 -1
  545. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
  546. package/jsx/work/Tags/Tags.stories.jsx +6 -1
  547. package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
  548. package/jsx/work/Tasks/TaskList.stories.d.ts +1 -1
  549. package/jsx/work/Tasks/Tasks.mocks.d.ts +22 -0
  550. package/jsx/work/Tasks/Tasks.mocks.d.ts.map +1 -0
  551. package/jsx/work/Tasks/Tasks.mocks.js +51 -0
  552. package/jsx/work/Tasks/Tasks.mocks.js.map +1 -0
  553. package/jsx/work/Tasks/Tasks.stories.d.ts +6 -4
  554. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  555. package/jsx/work/Tasks/Tasks.stories.jsx +41 -73
  556. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  557. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  558. package/jsx/work/Timeline/Timeline.mocks.jsx +16 -1
  559. package/jsx/work/Timeline/Timeline.mocks.jsx.map +1 -1
  560. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -1
  561. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  562. package/jsx/work/Timeline/Timeline.stories.jsx +2 -2
  563. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  564. package/jsx/wss/AppShell/AppShell.stories.d.ts +1 -1
  565. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  566. package/jsx/wss/AppShell/AppShell.stories.jsx +18 -0
  567. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  568. package/jsx/wss/CaseView/CaseView.stories.d.ts +1 -1
  569. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  570. package/jsx/wss/CaseView/CaseView.stories.jsx +8 -2
  571. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  572. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +1 -1
  573. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +2 -2
  574. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  575. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +1 -1
  576. package/lib/build/AppShell/AppShell.mocks.d.ts +28 -53
  577. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  578. package/lib/build/AppShell/AppShell.mocks.js +260 -376
  579. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  580. package/lib/build/AppShell/AppShell.stories.d.ts +14 -11
  581. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  582. package/lib/build/AppShell/AppShell.stories.js +71 -100
  583. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  584. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
  585. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
  586. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  587. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -1
  588. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  589. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +1 -1
  590. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  591. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +6 -5
  592. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
  593. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  594. package/lib/build/FlowModeller/FlowModeller.mocks.js +1 -1
  595. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  596. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +1 -1
  597. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  598. package/lib/build/FlowModeller/FlowModeller.stories.js +119 -9
  599. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  600. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +1 -1
  601. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +1 -1
  602. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  603. package/lib/build/LifeCycle/LifeCycle.stories.js +43 -4
  604. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  605. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +1 -0
  606. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +1 -1
  607. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js +2 -1
  608. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +1 -1
  609. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +1 -1
  610. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +3 -2
  611. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  612. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +7 -7
  613. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
  614. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +1 -1
  615. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  616. package/lib/build/ObjectSelect/ObjectSelect.stories.js +2 -6
  617. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  618. package/lib/build/PageBanner/PageBanner.stories.d.ts +15 -0
  619. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
  620. package/lib/build/PageBanner/PageBanner.stories.js +42 -0
  621. package/lib/build/PageBanner/PageBanner.stories.js.map +1 -0
  622. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +0 -2
  623. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -1
  624. package/lib/build/PageTemplates/GalleryPage.mocks.js +1 -50
  625. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -1
  626. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +8 -4
  627. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  628. package/lib/build/PageTemplates/GalleryPage.stories.js +32 -31
  629. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  630. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +0 -1
  631. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  632. package/lib/build/PageTemplates/PageTemplates.mocks.js +2 -154
  633. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -1
  634. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +1 -1
  635. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  636. package/lib/build/PageTemplates/PageTemplates.stories.js +4 -8
  637. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  638. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
  639. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
  640. package/lib/build/PageTemplates/ShowcasePage.stories.js +43 -0
  641. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -0
  642. package/lib/build/Workbench/Workbench.stories.d.ts +1 -1
  643. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +1 -1
  644. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  645. package/lib/condition-builder/ConditionBuilder/props.mock.js +4 -2
  646. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  647. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +1 -1
  648. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  649. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +53 -1
  650. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  651. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +1 -1
  652. package/lib/core/AIButton/AIButton.mocks.d.ts +22 -0
  653. package/lib/core/AIButton/AIButton.mocks.d.ts.map +1 -0
  654. package/lib/core/AIButton/AIButton.mocks.js +139 -0
  655. package/lib/core/AIButton/AIButton.mocks.js.map +1 -0
  656. package/lib/core/AIButton/AIButton.stories.d.ts +23 -0
  657. package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -0
  658. package/lib/core/AIButton/AIButton.stories.js +223 -0
  659. package/lib/core/AIButton/AIButton.stories.js.map +1 -0
  660. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +1 -1
  661. package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  662. package/lib/core/AppShell/AppShell.mocks.js +4 -19
  663. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  664. package/lib/core/AppShell/AppShell.stories.d.ts +2 -3
  665. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  666. package/lib/core/AppShell/AppShell.stories.js +59 -44
  667. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  668. package/lib/core/Avatar/Avatar.stories.d.ts +1 -1
  669. package/lib/core/Backdrop/Backdrop.stories.d.ts +1 -1
  670. package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  671. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  672. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  673. package/lib/core/Badges/Alert.stories.d.ts +1 -1
  674. package/lib/core/Badges/Count.stories.d.ts +1 -1
  675. package/lib/core/Badges/Count.stories.js +1 -1
  676. package/lib/core/Badges/Count.stories.js.map +1 -1
  677. package/lib/core/Badges/Keyboard.stories.d.ts +1 -1
  678. package/lib/core/Badges/Keyboard.stories.js +1 -1
  679. package/lib/core/Badges/Keyboard.stories.js.map +1 -1
  680. package/lib/core/Badges/Selection.stories.d.ts +1 -1
  681. package/lib/core/Badges/Status.stories.d.ts +1 -1
  682. package/lib/core/Badges/Tag.stories.d.ts +1 -1
  683. package/lib/core/Banner/Banner.stories.d.ts +9 -5
  684. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  685. package/lib/core/Banner/Banner.stories.js +105 -39
  686. package/lib/core/Banner/Banner.stories.js.map +1 -1
  687. package/lib/core/Boolean/BooleanDisplay.stories.d.ts +1 -1
  688. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -3
  689. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  690. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +16 -4
  691. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  692. package/lib/core/Button/Button.stories.d.ts +1 -2
  693. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  694. package/lib/core/Button/Button.stories.js +0 -12
  695. package/lib/core/Button/Button.stories.js.map +1 -1
  696. package/lib/core/Card/Card.stories.d.ts +1 -1
  697. package/lib/core/Checkbox/Checkbox.stories.d.ts +1 -1
  698. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  699. package/lib/core/Checkbox/Checkbox.stories.js +3 -1
  700. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  701. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +1 -1
  702. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  703. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +8 -5
  704. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  705. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -1
  706. package/lib/core/ComboBox/ComboBox.stories.d.ts +3 -3
  707. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  708. package/lib/core/ComboBox/ComboBox.stories.js +17 -9
  709. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  710. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +1 -1
  711. package/lib/core/Configuration/Configuration.stories.d.ts +1 -1
  712. package/lib/core/CreditCard/CreditCard.stories.d.ts +1 -1
  713. package/lib/core/Currency/Currency.stories.d.ts +2 -2
  714. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  715. package/lib/core/DangerButton/DangerButton.stories.d.ts +6 -0
  716. package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -0
  717. package/lib/core/DangerButton/DangerButton.stories.js +18 -0
  718. package/lib/core/DangerButton/DangerButton.stories.js.map +1 -0
  719. package/lib/core/DateTime/DateTime.stories.d.ts +1 -1
  720. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  721. package/lib/core/DateTime/DateTime.stories.js +11 -10
  722. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  723. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +1 -1
  724. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  725. package/lib/core/DateTime/DateTimeDisplay.stories.js +5 -3
  726. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  727. package/lib/core/DateTime/DateTimePicker.stories.d.ts +1 -1
  728. package/lib/core/DateTime/DateTimePicker.stories.js +1 -1
  729. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  730. package/lib/core/Dialog/Dialog.stories.d.ts +3 -2
  731. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
  732. package/lib/core/Dialog/Dialog.stories.js +10 -41
  733. package/lib/core/Dialog/Dialog.stories.js.map +1 -1
  734. package/lib/core/Dialog/FormDialog.mocks.d.ts +27 -0
  735. package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
  736. package/lib/core/Dialog/FormDialog.mocks.js +188 -0
  737. package/lib/core/Dialog/FormDialog.mocks.js.map +1 -0
  738. package/lib/core/Dialog/InfoDialog.mocks.d.ts +4 -0
  739. package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
  740. package/lib/core/Dialog/InfoDialog.mocks.js +41 -0
  741. package/lib/core/Dialog/InfoDialog.mocks.js.map +1 -0
  742. package/lib/core/Drawer/Drawer.stories.d.ts +1 -1
  743. package/lib/core/Email/EmailDisplay.stories.d.ts +1 -1
  744. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +1 -1
  745. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  746. package/lib/core/EmojiPicker/EmojiPicker.stories.js +6 -5
  747. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  748. package/lib/core/EmptyState/EmptyState.stories.d.ts +1 -1
  749. package/lib/core/ErrorState/ErrorState.stories.d.ts +1 -1
  750. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +1 -1
  751. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -1
  752. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  753. package/lib/core/FieldGroup/FieldGroup.stories.js +27 -2
  754. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  755. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
  756. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  757. package/lib/core/FieldGroup/FieldGroupList.mocks.js +6 -1
  758. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  759. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +2 -1
  760. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  761. package/lib/core/FieldGroup/FieldGroupList.stories.js +43 -11
  762. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  763. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +1 -1
  764. package/lib/core/File/FileDisplay.stories.d.ts +1 -1
  765. package/lib/core/File/FileInput.stories.d.ts +1 -1
  766. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -1
  767. package/lib/core/Flex/FlexItem.stories.d.ts +1 -1
  768. package/lib/core/Form/Form.stories.d.ts +1 -1
  769. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  770. package/lib/core/Form/Form.stories.js +2 -2
  771. package/lib/core/Form/Form.stories.js.map +1 -1
  772. package/lib/core/Grid/GridContainer.stories.d.ts +1 -1
  773. package/lib/core/Grid/GridItem.stories.d.ts +1 -1
  774. package/lib/core/HTML/HTML.stories.d.ts +1 -1
  775. package/lib/core/Icon/Icon.stories.d.ts +5 -2
  776. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  777. package/lib/core/Icon/Icon.stories.js +16 -8
  778. package/lib/core/Icon/Icon.stories.js.map +1 -1
  779. package/lib/core/IconPicker/IconPicker.stories.d.ts +1 -1
  780. package/lib/core/Image/Image.stories.d.ts +1 -1
  781. package/lib/core/Input/Input.stories.d.ts +1 -1
  782. package/lib/core/Label/Label.stories.d.ts +1 -1
  783. package/lib/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
  784. package/lib/core/Lightbox/Lightbox.mocks.js +0 -8
  785. package/lib/core/Lightbox/Lightbox.mocks.js.map +1 -1
  786. package/lib/core/Lightbox/Lightbox.stories.d.ts +1 -1
  787. package/lib/core/Link/Link.stories.d.ts +9 -5
  788. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  789. package/lib/core/Link/Link.stories.js +6 -9
  790. package/lib/core/Link/Link.stories.js.map +1 -1
  791. package/lib/core/List/CommaSeparatedList.stories.d.ts +1 -1
  792. package/lib/core/List/OrderedList.stories.d.ts +1 -1
  793. package/lib/core/List/UnorderedList.stories.d.ts +1 -1
  794. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  795. package/lib/core/ListToolbar/ListToolbar.mocks.js +26 -33
  796. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -1
  797. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +2 -3
  798. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  799. package/lib/core/ListToolbar/ListToolbar.stories.js +23 -20
  800. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  801. package/lib/core/LiveLog/LiveLog.mocks.d.ts +5 -0
  802. package/lib/core/LiveLog/LiveLog.mocks.d.ts.map +1 -0
  803. package/lib/core/LiveLog/LiveLog.mocks.js +29 -0
  804. package/lib/core/LiveLog/LiveLog.mocks.js.map +1 -0
  805. package/lib/core/LiveLog/LiveLog.stories.d.ts +9 -0
  806. package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -0
  807. package/lib/core/LiveLog/LiveLog.stories.js +20 -0
  808. package/lib/core/LiveLog/LiveLog.stories.js.map +1 -0
  809. package/lib/core/Location/Location.stories.d.ts +1 -1
  810. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  811. package/lib/core/Location/Location.stories.js +11 -7
  812. package/lib/core/Location/Location.stories.js.map +1 -1
  813. package/lib/core/Menu/Menu.mocks.js.map +1 -1
  814. package/lib/core/Menu/Menu.stories.d.ts +2 -1
  815. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  816. package/lib/core/Menu/Menu.stories.js +27 -0
  817. package/lib/core/Menu/Menu.stories.js.map +1 -1
  818. package/lib/core/MenuButton/MenuButton.stories.d.ts +3 -2
  819. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  820. package/lib/core/MenuButton/MenuButton.stories.js +1 -1
  821. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  822. package/lib/core/MetaList/MetaList.stories.d.ts +1 -1
  823. package/lib/core/Modal/Modal.mocks.d.ts +1 -1
  824. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  825. package/lib/core/Modal/Modal.stories.d.ts +1 -1
  826. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  827. package/lib/core/Modal/Modal.stories.js +7 -6
  828. package/lib/core/Modal/Modal.stories.js.map +1 -1
  829. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +36 -3
  830. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  831. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +269 -31
  832. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
  833. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +4 -2
  834. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  835. package/lib/core/MultiStepForm/MultiStepForm.stories.js +65 -163
  836. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
  837. package/lib/core/NoValue/NoValue.stories.d.ts +6 -0
  838. package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -0
  839. package/lib/core/NoValue/NoValue.stories.js +29 -0
  840. package/lib/core/NoValue/NoValue.stories.js.map +1 -0
  841. package/lib/core/Number/Number.stories.d.ts +2 -2
  842. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  843. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +2 -2
  844. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  845. package/lib/core/PageTemplates/PageTemplates.stories.js +2 -2
  846. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  847. package/lib/core/Pagination/Pagination.stories.d.ts +1 -1
  848. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +1 -1
  849. package/lib/core/Phone/Phone.stories.d.ts +1 -1
  850. package/lib/core/Popover/Popover.mocks.d.ts +9 -0
  851. package/lib/core/Popover/Popover.mocks.d.ts.map +1 -0
  852. package/lib/core/Popover/Popover.mocks.js +105 -0
  853. package/lib/core/Popover/Popover.mocks.js.map +1 -0
  854. package/lib/core/Popover/Popover.stories.d.ts +7 -1
  855. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  856. package/lib/core/Popover/Popover.stories.js +27 -0
  857. package/lib/core/Popover/Popover.stories.js.map +1 -1
  858. package/lib/core/Progress/Progress.mocks.d.ts +2 -0
  859. package/lib/core/Progress/Progress.mocks.d.ts.map +1 -0
  860. package/lib/core/Progress/Progress.mocks.js +2 -0
  861. package/lib/core/Progress/Progress.mocks.js.map +1 -0
  862. package/lib/core/Progress/Progress.stories.d.ts +4 -1
  863. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  864. package/lib/core/Progress/Progress.stories.js +66 -3
  865. package/lib/core/Progress/Progress.stories.js.map +1 -1
  866. package/lib/core/QRCode/QRCode.stories.d.ts +9 -0
  867. package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -0
  868. package/lib/core/QRCode/QRCode.stories.js +18 -0
  869. package/lib/core/QRCode/QRCode.stories.js.map +1 -0
  870. package/lib/core/RadioButton/RadioButton.stories.d.ts +1 -1
  871. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  872. package/lib/core/RadioButton/RadioButton.stories.js +3 -1
  873. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  874. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +1 -1
  875. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  876. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +9 -5
  877. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  878. package/lib/core/Rating/Rating.stories.d.ts +1 -1
  879. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  880. package/lib/core/Rating/Rating.stories.js +1 -1
  881. package/lib/core/Rating/Rating.stories.js.map +1 -1
  882. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -1
  883. package/lib/core/SearchInput/SearchInput.stories.js +1 -1
  884. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  885. package/lib/core/Select/Select.stories.d.ts +1 -1
  886. package/lib/core/Sentiment/Sentiment.stories.d.ts +1 -1
  887. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +1 -1
  888. package/lib/core/Slider/Slider.stories.d.ts +2 -2
  889. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  890. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +2 -2
  891. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  892. package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  893. package/lib/core/SummaryList/SummaryList.mocks.js +11 -2
  894. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  895. package/lib/core/SummaryList/SummaryList.stories.d.ts +1 -1
  896. package/lib/core/SummaryList/SummaryList.stories.js +2 -2
  897. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  898. package/lib/core/SummaryList/mockUsers.d.ts.map +1 -1
  899. package/lib/core/SummaryList/mockUsers.js +2 -0
  900. package/lib/core/SummaryList/mockUsers.js.map +1 -1
  901. package/lib/core/Switch/Switch.stories.d.ts +1 -1
  902. package/lib/core/Table/Table.mocks.js +1 -1
  903. package/lib/core/Table/Table.mocks.js.map +1 -1
  904. package/lib/core/Table/Table.stories.d.ts +1 -1
  905. package/lib/core/Table/Table.stories.js.map +1 -1
  906. package/lib/core/Tabs/Tabs.stories.d.ts +1 -7
  907. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  908. package/lib/core/Tabs/Tabs.stories.js +1 -31
  909. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  910. package/lib/core/Text/Text.stories.d.ts +1 -1
  911. package/lib/core/TextArea/TextArea.stories.d.ts +1 -1
  912. package/lib/core/TextArea/TextArea.stories.js +1 -1
  913. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  914. package/lib/core/Toaster/Toaster.stories.d.ts +1 -1
  915. package/lib/core/Tooltip/Tooltip.stories.d.ts +2 -1
  916. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  917. package/lib/core/Tooltip/Tooltip.stories.js +9 -1
  918. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  919. package/lib/core/Tooltip/Tooltip.styles.d.ts +2 -0
  920. package/lib/core/Tooltip/Tooltip.styles.d.ts.map +1 -0
  921. package/lib/core/Tooltip/Tooltip.styles.js +23 -0
  922. package/lib/core/Tooltip/Tooltip.styles.js.map +1 -0
  923. package/lib/core/Tree/Tree.stories.d.ts +2 -2
  924. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  925. package/lib/core/Tree/Tree.stories.js +10 -20
  926. package/lib/core/Tree/Tree.stories.js.map +1 -1
  927. package/lib/core/URL/URL.stories.d.ts +1 -1
  928. package/lib/core/URL/URL.stories.js +1 -1
  929. package/lib/core/URL/URL.stories.js.map +1 -1
  930. package/lib/cs/Article/Article.mocks.js +4 -4
  931. package/lib/cs/Article/Article.mocks.js.map +1 -1
  932. package/lib/cs/Article/Article.stories.d.ts +14 -3
  933. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  934. package/lib/cs/Article/Article.stories.js +168 -53
  935. package/lib/cs/Article/Article.stories.js.map +1 -1
  936. package/lib/cs/ArticleList/ArticleList.mocks.d.ts +129 -10
  937. package/lib/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  938. package/lib/cs/ArticleList/ArticleList.mocks.js +362 -50
  939. package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  940. package/lib/cs/ArticleList/ArticleList.stories.d.ts +11 -3
  941. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  942. package/lib/cs/ArticleList/ArticleList.stories.js +245 -68
  943. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  944. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +18 -1
  945. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  946. package/lib/cs/CSAppShell/CSAppShell.mocks.js +124 -19
  947. package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +1 -1
  948. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +1 -1
  949. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  950. package/lib/cs/CSAppShell/CSAppShell.stories.js +10 -21
  951. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
  952. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +2 -2
  953. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  954. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +1 -1
  955. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  956. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +2 -2
  957. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  958. package/lib/cs/DialPad/DialPad.stories.d.ts +1 -1
  959. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +4 -2
  960. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  961. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +18 -4
  962. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  963. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +2 -1
  964. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  965. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +12 -5
  966. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  967. package/lib/cs/Picker/Picker.stories.d.ts +11 -0
  968. package/lib/cs/Picker/Picker.stories.d.ts.map +1 -0
  969. package/lib/cs/Picker/Picker.stories.js +56 -0
  970. package/lib/cs/Picker/Picker.stories.js.map +1 -0
  971. package/lib/cs/TaskManager/TaskManager.stories.d.ts +1 -1
  972. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  973. package/lib/cs/TaskManager/TaskManager.stories.js +3 -3
  974. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  975. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +1 -1
  976. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  977. package/lib/dnd/StandardDragDropList/Demo.js +1 -1
  978. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
  979. package/lib/dnd/StandardDragDropList/Popover.d.ts +1 -1
  980. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  981. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +1 -1
  982. package/lib/dnd/StandardDragDropList/mockData.d.ts +2 -2
  983. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  984. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
  985. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  986. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  987. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  988. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  989. package/lib/rte/DynamicContentEditor/FieldSelector.d.ts +14 -0
  990. package/lib/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  991. package/lib/rte/DynamicContentEditor/FieldSelector.js +81 -0
  992. package/lib/rte/DynamicContentEditor/FieldSelector.js.map +1 -0
  993. package/lib/rte/Editor/Editor.mocks.d.ts +41 -27
  994. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
  995. package/lib/rte/Editor/Editor.stories.d.ts +1 -1
  996. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +1 -1
  997. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +1 -1
  998. package/lib/social/Chat/Chat.mocks.d.ts +23 -395
  999. package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
  1000. package/lib/social/Chat/Chat.mocks.js +568 -585
  1001. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  1002. package/lib/social/Chat/Chat.stories.d.ts +25 -27
  1003. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1004. package/lib/social/Chat/Chat.stories.js +217 -247
  1005. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1006. package/lib/social/Email/Email.mocks.d.ts +50 -8
  1007. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1008. package/lib/social/Email/Email.mocks.js +131 -19
  1009. package/lib/social/Email/Email.mocks.js.map +1 -1
  1010. package/lib/social/Email/Email.stories.d.ts +11 -1
  1011. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1012. package/lib/social/Email/Email.stories.js +160 -38
  1013. package/lib/social/Email/Email.stories.js.map +1 -1
  1014. package/lib/social/Feed/Feed.mocks.d.ts +2 -1
  1015. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1016. package/lib/social/Feed/Feed.mocks.js +5 -3
  1017. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1018. package/lib/social/Feed/Feed.stories.d.ts +1 -1
  1019. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1020. package/lib/social/Feed/Feed.stories.js +13 -5
  1021. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1022. package/lib/social/Feed/FeedNewPost.stories.d.ts +1 -1
  1023. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1024. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  1025. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1026. package/lib/social/Feed/FeedPost.stories.d.ts +1 -1
  1027. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1028. package/lib/social/Feed/FeedPost.stories.js +16 -7
  1029. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1030. package/lib/social/Feed/FeedReply.stories.d.ts +1 -1
  1031. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1032. package/lib/social/Feed/FeedReply.stories.js +11 -3
  1033. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1034. package/lib/social/Feed/FeedReplyInput.stories.d.ts +1 -1
  1035. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1036. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  1037. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1038. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
  1039. package/lib/tools/Clipboard/Clipboard.mocks.js +0 -1
  1040. package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -1
  1041. package/lib/tools/Clipboard/Clipboard.stories.d.ts +1 -1
  1042. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  1043. package/lib/tools/Clipboard/Clipboard.stories.js +13 -17
  1044. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -1
  1045. package/lib/tools/DevTools/DevTools.stories.d.ts +1 -1
  1046. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  1047. package/lib/tools/DevTools/DevTools.stories.js +2 -4
  1048. package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
  1049. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +12 -1
  1050. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  1051. package/lib/tools/PreviewShell/PreviewShell.mocks.js +22 -2
  1052. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -1
  1053. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +5 -3
  1054. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  1055. package/lib/tools/PreviewShell/PreviewShell.stories.js +70 -51
  1056. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
  1057. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +1 -2
  1058. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -1
  1059. package/lib/tools/PreviewShell/PreviewShell.styles.js +1 -2
  1060. package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -1
  1061. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +1 -1
  1062. package/lib/work/Assignments/Assignments.stories.d.ts +11 -0
  1063. package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -0
  1064. package/lib/work/Assignments/Assignments.stories.js +63 -0
  1065. package/lib/work/Assignments/Assignments.stories.js.map +1 -0
  1066. package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  1067. package/lib/work/CaseView/Attachments.mocks.js +96 -80
  1068. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1069. package/lib/work/CaseView/CaseView.mocks.d.ts +39 -22
  1070. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1071. package/lib/work/CaseView/CaseView.mocks.js +241 -103
  1072. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1073. package/lib/work/CaseView/CaseView.stories.d.ts +3 -8
  1074. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1075. package/lib/work/CaseView/CaseView.stories.js +39 -11
  1076. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1077. package/lib/work/CaseView/Details.mocks.js +1 -1
  1078. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1079. package/lib/work/CaseView/FileService.mock.d.ts +2 -2
  1080. package/lib/work/CaseView/FileService.mock.d.ts.map +1 -1
  1081. package/lib/work/CaseView/FileService.mock.js +2 -6
  1082. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1083. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +1 -1
  1084. package/lib/work/Confirmation/Confirmation.stories.d.ts +1 -1
  1085. package/lib/work/Confirmation/Confirmation.stories.js +1 -1
  1086. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1087. package/lib/work/Details/Details.stories.d.ts +1 -1
  1088. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1089. package/lib/work/Details/Details.stories.js +6 -1
  1090. package/lib/work/Details/Details.stories.js.map +1 -1
  1091. package/lib/work/Glimpse/Glimpse.stories.d.ts +2 -7
  1092. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1093. package/lib/work/Glimpse/Glimpse.stories.js +12 -14
  1094. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1095. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +1 -1
  1096. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  1097. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js +89 -12
  1098. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  1099. package/lib/work/Predictions/Predictions.mocks.d.ts +3 -0
  1100. package/lib/work/Predictions/Predictions.mocks.d.ts.map +1 -0
  1101. package/lib/work/Predictions/Predictions.mocks.js +6 -0
  1102. package/lib/work/Predictions/Predictions.mocks.js.map +1 -0
  1103. package/lib/work/Predictions/Predictions.stories.d.ts +5 -0
  1104. package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -0
  1105. package/lib/work/Predictions/Predictions.stories.js +54 -0
  1106. package/lib/work/Predictions/Predictions.stories.js.map +1 -0
  1107. package/lib/work/SearchResults/SearchResults.mocks.d.ts +1 -1
  1108. package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  1109. package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -1
  1110. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1111. package/lib/work/SearchResults/SearchResults.stories.js +20 -7
  1112. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1113. package/lib/work/Stages/Stages.mocks.js +6 -6
  1114. package/lib/work/Stages/Stages.mocks.js.map +1 -1
  1115. package/lib/work/Stages/Stages.stories.d.ts +1 -1
  1116. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  1117. package/lib/work/Stages/Stages.stories.js +22 -8
  1118. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1119. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1120. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -2
  1121. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1122. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +1 -1
  1123. package/lib/work/Tags/Tags.stories.d.ts +1 -1
  1124. package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
  1125. package/lib/work/Tags/Tags.stories.js +7 -1
  1126. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1127. package/lib/work/Tasks/TaskList.stories.d.ts +1 -1
  1128. package/lib/work/Tasks/Tasks.mocks.d.ts +22 -0
  1129. package/lib/work/Tasks/Tasks.mocks.d.ts.map +1 -0
  1130. package/lib/work/Tasks/Tasks.mocks.js +51 -0
  1131. package/lib/work/Tasks/Tasks.mocks.js.map +1 -0
  1132. package/lib/work/Tasks/Tasks.stories.d.ts +6 -4
  1133. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  1134. package/lib/work/Tasks/Tasks.stories.js +40 -54
  1135. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1136. package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  1137. package/lib/work/Timeline/Timeline.mocks.js +16 -1
  1138. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1139. package/lib/work/Timeline/Timeline.stories.d.ts +1 -1
  1140. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1141. package/lib/work/Timeline/Timeline.stories.js +2 -2
  1142. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1143. package/lib/wss/AppShell/AppShell.stories.d.ts +1 -1
  1144. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  1145. package/lib/wss/AppShell/AppShell.stories.js +18 -1
  1146. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  1147. package/lib/wss/CaseView/CaseView.stories.d.ts +1 -1
  1148. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  1149. package/lib/wss/CaseView/CaseView.stories.js +5 -3
  1150. package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
  1151. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +1 -1
  1152. package/lib/wss/PageTemplates/PageTemplates.stories.js +2 -2
  1153. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
  1154. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +1 -1
  1155. package/package.json +24 -21
  1156. package/jsx/build/AppHeader/AppHeader.stories.d.ts +0 -13
  1157. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +0 -1
  1158. package/jsx/build/AppHeader/AppHeader.stories.jsx +0 -153
  1159. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +0 -1
  1160. package/jsx/social/Chat/RepeatingView.mocks.d.ts +0 -14
  1161. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
  1162. package/jsx/social/Chat/RepeatingView.mocks.js +0 -11
  1163. package/jsx/social/Chat/RepeatingView.mocks.js.map +0 -1
  1164. package/jsx/social/Chat/RepeatingView.stories.d.ts +0 -9
  1165. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +0 -1
  1166. package/jsx/social/Chat/RepeatingView.stories.jsx +0 -60
  1167. package/jsx/social/Chat/RepeatingView.stories.jsx.map +0 -1
  1168. package/jsx/social/Chat/RepeatingView.styles.d.ts +0 -2
  1169. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +0 -1
  1170. package/jsx/social/Chat/RepeatingView.styles.js +0 -22
  1171. package/jsx/social/Chat/RepeatingView.styles.js.map +0 -1
  1172. package/lib/build/AppHeader/AppHeader.stories.d.ts +0 -13
  1173. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +0 -1
  1174. package/lib/build/AppHeader/AppHeader.stories.js +0 -152
  1175. package/lib/build/AppHeader/AppHeader.stories.js.map +0 -1
  1176. package/lib/social/Chat/RepeatingView.mocks.d.ts +0 -14
  1177. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
  1178. package/lib/social/Chat/RepeatingView.mocks.js +0 -11
  1179. package/lib/social/Chat/RepeatingView.mocks.js.map +0 -1
  1180. package/lib/social/Chat/RepeatingView.stories.d.ts +0 -9
  1181. package/lib/social/Chat/RepeatingView.stories.d.ts.map +0 -1
  1182. package/lib/social/Chat/RepeatingView.stories.js +0 -59
  1183. package/lib/social/Chat/RepeatingView.stories.js.map +0 -1
  1184. package/lib/social/Chat/RepeatingView.styles.d.ts +0 -2
  1185. package/lib/social/Chat/RepeatingView.styles.d.ts.map +0 -1
  1186. package/lib/social/Chat/RepeatingView.styles.js +0 -22
  1187. package/lib/social/Chat/RepeatingView.styles.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Tasks.stories.jsx","sourceRoot":"","sources":["../../../src/work/Tasks/Tasks.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EACL,MAAM,EACN,MAAM,EACN,UAAU,EAEV,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,eAAe,EACf,WAAW,EACX,QAAQ,EACR,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,MAAM,EACN,IAAI,EACJ,eAAe,EAEf,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,EAA6B,MAAM,yBAAyB,CAAC;AAE3E,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,KAAK;CACT,CAAC;AAUV,MAAM,CAAC,MAAM,SAAS,GAA2B,CAAC,IAAqB,EAAE,EAAE;IACzE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ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EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;QAC5B,CAAC,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,IAAI,GAAG;IACf,UAAU,EAAE,OAAO;IACnB,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;IACzB,KAAK,EAAE,SAAS;IAChB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF,SAAS,CAAC,QAAQ,GAAG;IACnB,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACzC,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAClD,mBAAmB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACrD,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACtC,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAChD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useMemo, useState } from 'react';\n\nimport {\n Avatar,\n Button,\n MenuButton,\n MenuProps,\n MetaList,\n Text,\n Form,\n Input,\n TextArea,\n RadioCheckGroup,\n RadioButton,\n Checkbox,\n DateInput,\n NumberInput,\n FileInput,\n menuHelpers,\n Status,\n Link,\n DateTimeDisplay,\n StatusProps,\n EmptyState\n} from '@pega/cosmos-react-core';\nimport { Tasks, TasksProps, TaskItemProps } from '@pega/cosmos-react-work';\n\nexport default {\n title: 'Work/Tasks',\n component: Tasks\n} as Meta;\n\ninterface TasksStoryProps {\n headerText?: TasksProps['headerText'];\n showHeaderVisual?: boolean;\n showHeaderSecondary?: boolean;\n count?: TasksProps['count'];\n openableTasks?: boolean;\n}\n\nexport const TasksDemo: Story<TasksStoryProps> = (args: TasksStoryProps) => {\n const [isLimited, setIsLimited] = useState(true);\n const [hasOpenTask, setHasOpenTask] = useState(false);\n\n const DemoTaskForm = ({ onSubmit, onCancel }: { onSubmit: () => void; onCancel: () => void }) => {\n return (\n <Form\n actions={\n <>\n <Button onClick={onCancel}>Cancel</Button>\n <Button variant='primary' onClick={onSubmit}>\n Submit\n </Button>\n </>\n }\n >\n <Input label='Text field 1' required />\n <Input label='Text field 2' />\n <NumberInput onChange={() => {}} label='Number field' />\n <Checkbox label='Boolean field' required />\n <RadioCheckGroup label='Picklist options' name='picklist-1'>\n <RadioButton label='option 1' defaultChecked />\n <RadioButton label='option 2' />\n <RadioButton label='option 3' />\n </RadioCheckGroup>\n <TextArea label='Text paragraph field' required />\n <FileInput label='File field' />\n <DateInput label='Datetime field' />\n </Form>\n );\n };\n\n const [workGroups, setWorkGroups] = useState<MenuProps['items']>(() => {\n return Array.from({ length: 10 }, (_, i) => {\n return {\n id: `${i + 1}`,\n primary: `Workgroup ${i + 1}`,\n count: typeof args.count === 'number' ? args.count : Math.floor(Math.random() * 10),\n selected: i === 0,\n visual: <Avatar size='l' name={`Team ${i + 1}`} />\n };\n });\n });\n\n const activeGroup = useMemo(() => menuHelpers.getSelected(workGroups)[0], [workGroups]);\n const activeGroupTaskCount = activeGroup?.count ?? 0;\n\n const groupSelection = useMemo(() => {\n return (\n <MenuButton\n variant='text'\n text={activeGroup.primary}\n menu={{\n mode: 'single-select',\n items: workGroups,\n onItemClick: id => {\n setWorkGroups(currentWorkGroups => {\n return menuHelpers.mapTree(currentWorkGroups, group => {\n if (id === group.id || group.selected) {\n return { ...group, selected: id === group.id };\n }\n\n return group;\n });\n });\n }\n }}\n />\n );\n }, [activeGroup.primary, workGroups]);\n\n const taskArray: TaskItemProps[] = useMemo(\n () =>\n Array.from(\n { length: isLimited ? Math.min(3, activeGroupTaskCount) : activeGroupTaskCount },\n (_, i) => {\n const dueIn = 86400000 * i;\n let status: StatusProps['variant'] = 'info';\n\n if (i === 0) {\n status = 'urgent';\n } else if (i === 1) {\n status = 'warn';\n }\n\n return {\n id: `${i}`,\n name: `Task ${i + 1}`,\n processName: i % 2 ? 'Demo process' : undefined,\n meta: (\n <MetaList\n items={[\n <Status variant={status}>{status}</Status>,\n <Text variant='secondary'>\n Due <DateTimeDisplay variant='relative' value={Date.now() + dueIn} />\n </Text>,\n <Link href='#demo'>Parent case link</Link>\n ]}\n />\n ),\n onOpen:\n args.openableTasks !== false\n ? () => {\n setHasOpenTask(true);\n }\n : undefined,\n content: hasOpenTask ? (\n <DemoTaskForm\n onSubmit={() => {\n setHasOpenTask(false);\n }}\n onCancel={() => {\n setHasOpenTask(false);\n }}\n />\n ) : null\n };\n }\n ),\n [isLimited, activeGroupTaskCount, args.openableTasks, hasOpenTask]\n );\n\n return (\n <Tasks\n headerText={args.headerText || 'Tasks'}\n count={activeGroupTaskCount}\n items={taskArray}\n headerVisual={\n args.showHeaderVisual && activeGroup ? (\n <Avatar size='l' name={activeGroup.primary} />\n ) : undefined\n }\n headerSecondary={args.showHeaderSecondary ? groupSelection : undefined}\n emptyPlaceholder={<EmptyState />}\n onExpandToggle={() => {\n setIsLimited(cur => !cur);\n }}\n />\n );\n};\n\nTasksDemo.args = {\n headerText: 'Tasks',\n showHeaderVisual: true,\n showHeaderSecondary: true,\n count: undefined,\n openableTasks: true\n};\n\nTasksDemo.argTypes = {\n headerText: { control: { type: 'text' } },\n showHeaderVisual: { control: { type: 'boolean' } },\n showHeaderSecondary: { control: { type: 'boolean' } },\n count: { control: { type: 'number' } },\n openableTasks: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"Tasks.stories.jsx","sourceRoot":"","sources":["../../../src/work/Tasks/Tasks.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,eAAe,EAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,EAA6B,YAAY,IAAI,OAAO,EAAE,MAAM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E;IACtC,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC/C,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACzC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport {\n MetaList,\n Text,\n Status,\n Link,\n DateTimeDisplay,\n StatusProps\n} from '@pega/cosmos-react-core';\nimport { Tasks, TasksProps, TaskItemProps, tasksHelpers as helpers } from '@pega/cosmos-react-work';\n\nimport { AIButtonFormDemo } from '../../core/AIButton/AIButton.stories';\n\nimport viewGroups from './Tasks.mocks';\n\nexport default {\n title: 'Work/Tasks',\n component: Tasks\n} as Meta;\n\ninterface TasksStoryProps {\n name?: TasksProps['name'];\n showVisual?: boolean;\n showViewSelector?: boolean;\n enableExpand?: boolean;\n count?: TasksProps['count'];\n openableTasks?: boolean;\n search?: boolean;\n}\n\nexport const TasksDemo: Story<TasksStoryProps> = (args: TasksStoryProps) => {\n const [isLimited, setIsLimited] = useState(true);\n const [hasOpenTask, setHasOpenTask] = useState(false);\n\n const [views, setViews] = useState(viewGroups);\n\n const activeView = helpers.getSelectedView(views);\n const activeViewTaskCount = args.count ?? activeView?.count ?? 0;\n\n const taskArray: TaskItemProps[] = Array.from(\n {\n length: isLimited\n ? Math.min(3, args.count ?? activeViewTaskCount)\n : args.count ?? activeViewTaskCount\n },\n (_, i) => {\n const dueIn = 86400000 * i;\n let status: StatusProps['variant'] = 'info';\n\n if (i === 0) {\n status = 'urgent';\n } else if (i === 1) {\n status = 'warn';\n }\n\n return {\n id: `${i}`,\n name: `Task ${i + 1}`,\n processName: i % 2 ? 'Demo process' : undefined,\n meta: (\n <MetaList\n items={[\n <Status variant={status}>{status}</Status>,\n <Text variant='secondary'>\n Due <DateTimeDisplay variant='relative' value={Date.now() + dueIn} />\n </Text>,\n <Link href='#demo'>Parent case link</Link>\n ]}\n />\n ),\n onOpen:\n args.openableTasks !== false\n ? () => {\n setHasOpenTask(true);\n }\n : undefined,\n content: hasOpenTask ? (\n <AIButtonFormDemo\n onCancel={() => setHasOpenTask(false)}\n onSubmit={() => setHasOpenTask(false)}\n />\n ) : null\n };\n }\n );\n\n return (\n <Tasks\n name={args.name ?? 'Tasks'}\n count={activeViewTaskCount}\n items={taskArray}\n avatar={args.showVisual && activeView ? { name: activeView.text } : undefined}\n viewSelector={\n args.showViewSelector\n ? {\n views,\n onViewSelect: id => {\n setViews(cur => helpers.selectView(cur, id) as typeof viewGroups);\n }\n }\n : undefined\n }\n onExpandToggle={\n args.enableExpand && activeViewTaskCount > 3\n ? () => {\n setIsLimited(cur => !cur);\n }\n : undefined\n }\n search={args.search ? {} : undefined}\n />\n );\n};\n\nTasksDemo.args = {\n name: 'Assignments',\n showVisual: true,\n showViewSelector: true,\n enableExpand: true,\n openableTasks: true,\n count: undefined,\n search: false\n};\n\nTasksDemo.argTypes = {\n name: { control: { type: 'text' } },\n showVisual: { control: { type: 'boolean' } },\n showViewSelector: { control: { type: 'boolean' } },\n enableExpand: { control: { type: 'boolean' } },\n count: { control: { type: 'number' } },\n openableTasks: { control: { type: 'boolean' } },\n search: { control: { type: 'boolean' } }\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.mocks.d.ts","sourceRoot":"","sources":["../../../src/work/Timeline/Timeline.mocks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC,UAAU,CAwI9C,CAAC"}
1
+ {"version":3,"file":"Timeline.mocks.d.ts","sourceRoot":"","sources":["../../../src/work/Timeline/Timeline.mocks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC,UAAU,CAuJ9C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Link, Text } from '@pega/cosmos-react-core';
1
+ import { Link, CurrencyDisplay, Text } from '@pega/cosmos-react-core';
2
2
  export const activity = [
3
3
  {
4
4
  id: '1',
@@ -53,6 +53,11 @@ export const activity = [
53
53
  We will fulfill your request within 3 business days. You will receive your statement
54
54
  copy via mail at 23 Main St. Boston, MA.
55
55
  </Text>)
56
+ },
57
+ {
58
+ id: '33',
59
+ name: 'Current due amount',
60
+ value: <CurrencyDisplay value={1343.45} currencyISOCode='USD'/>
56
61
  }
57
62
  ]
58
63
  },
@@ -71,6 +76,11 @@ export const activity = [
71
76
  We will fulfill your request within 3 business days. You will receive your statement
72
77
  copy via mail at 23 Main St. Boston, MA.
73
78
  </Text>)
79
+ },
80
+ {
81
+ id: '43',
82
+ name: 'Current due amount',
83
+ value: <CurrencyDisplay value={121} currencyISOCode='USD'/>
74
84
  }
75
85
  ]
76
86
  },
@@ -96,6 +106,11 @@ export const activity = [
96
106
  We will fulfill your request within 3 business days. You will receive your statement
97
107
  copy via mail at 23 Main St. Boston, MA.
98
108
  </Text>)
109
+ },
110
+ {
111
+ id: '64',
112
+ name: 'Current due amount long label',
113
+ value: <CurrencyDisplay value={248.87} currencyISOCode='USD'/>
99
114
  }
100
115
  ]
101
116
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.mocks.jsx","sourceRoot":"","sources":["../../../src/work/Timeline/Timeline.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGrD,MAAM,CAAC,MAAM,QAAQ,GAA8B;IACjD;QACE,EAAE,EAAE,GAAG;QACP,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;QACvC,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,gBAAgB;KACvB;IACD;QACE,EAAE,EAAE,GAAG;QACP,IAAI,EAAE,IAAI,CAAC,GAAG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QACvC,KAAK,EAAE,2BAA2B;QAClC,IAAI,EAAE,gBAAgB;KACvB;IACD;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;QACvC,KAAK,EAAE,uBAAuB;QAC9B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE;KACjD;CACF,CAAC","sourcesContent":["import { Link, Text } from '@pega/cosmos-react-core';\nimport { TimelineProps } from '@pega/cosmos-react-work';\n\nexport const activity: TimelineProps['activity'] = [\n {\n id: '1',\n date: Date.UTC(2025, 2, 20, 19, 28, 22),\n title: 'Email blast: \"Buy today\"',\n icon: 'bell-off-solid'\n },\n {\n id: '2',\n date: Date.UTC(2025, 2, 20, 18, 6, 22),\n title: 'Confirm eligibility',\n icon: 'circle-stacked-mixed'\n },\n {\n id: '3',\n date: Date.UTC(2023, 2, 10, 9, 26, 22),\n title: 'Review customer bill',\n status: { variant: 'pending', children: 'Wait' }\n },\n {\n id: '4',\n date: Date.UTC(2022, 7, 10, 18, 6, 22),\n title: 'Confirm eligibility',\n icon: 'circle-stacked-mixed'\n },\n {\n id: '5',\n date: Date.UTC(2022, 6, 18, 0, 1, 22),\n title: (\n <Link href='https://www.pega.com' target='_blank'>\n Visit Pega\n </Link>\n )\n },\n {\n id: '6',\n date: Date.UTC(2021, 6, 10, 13, 20, 22),\n title: 'Update plat',\n icon: 'bulb-solid',\n status: { variant: 'success', children: 'Good' }\n },\n {\n id: '7',\n date: Date.UTC(2021, 1, 20, 13, 20, 22),\n title: 'Sent over request',\n icon: 'bulb-solid',\n status: { variant: 'success', children: 'Good' },\n content: [\n { id: '31', name: 'Date range', value: <Text>Jan 1, 2021 - May 3, 2021</Text> },\n {\n id: '32',\n name: \"What's next\",\n value: (\n <Text>\n We will fulfill your request within 3 business days. You will receive your statement\n copy via mail at 23 Main St. Boston, MA.\n </Text>\n )\n }\n ]\n },\n {\n id: '8',\n date: Date.UTC(2021, 1, 20, 13, 19, 22),\n title: 'Fulfill customer request for last month’s billing statement',\n icon: 'layers',\n status: { variant: 'pending', children: 'Wait' },\n content: [\n { id: '41', name: 'Date range', value: <Text>Jan 1, 2021 - May 3, 2021</Text> },\n {\n id: '42',\n name: \"What's next\",\n value: (\n <Text>\n We will fulfill your request within 3 business days. You will receive your statement\n copy via mail at 23 Main St. Boston, MA.\n </Text>\n )\n }\n ]\n },\n {\n id: '9',\n date: Date.UTC(2021, 1, 20, 0, 1, 22),\n title: (\n <Link href='https://community.pega.com/support' target='_blank'>\n Visit Pega support for assistance\n </Link>\n )\n },\n {\n id: '10',\n date: Date.UTC(2021, 1, 19, 13, 20, 22),\n title: 'Sent over request',\n icon: 'bulb-solid',\n status: { variant: 'success', children: 'Good' },\n content: [\n { id: '61', name: 'Date range', value: <Text>Jan 1, 2021 - May 3, 2021</Text> },\n {\n id: '62',\n name: \"What's next\",\n value: (\n <Text>\n We will fulfill your request within 3 business days. You will receive your statement\n copy via mail at 23 Main St. Boston, MA.\n </Text>\n )\n }\n ]\n },\n {\n id: '11',\n date: Date.UTC(2021, 1, 17, 36, 20, 22),\n title: 'Initial claim received',\n status: { variant: 'pending', children: 'Wait' }\n },\n {\n id: '12',\n date: Date.UTC(2020, 12, 15, 13, 19, 22),\n title: 'Balance inquiry',\n icon: 'phone-solid',\n status: { variant: 'pending', children: 'Wait' }\n },\n {\n id: '13',\n date: Date.UTC(2020, 2, 20, 19, 28, 22),\n title: 'Email blast: \"Best Offer\"',\n icon: 'bell-off-solid'\n },\n {\n id: '14',\n date: Date.UTC(2020, 1, 12, 10, 25, 48),\n title: 'Receive customer bill',\n icon: 'layers',\n status: { variant: 'success', children: 'Good' }\n }\n];\n"]}
1
+ {"version":3,"file":"Timeline.mocks.jsx","sourceRoot":"","sources":["../../../src/work/Timeline/Timeline.mocks.tsx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rencyDisplay, Text } from '@pega/cosmos-react-core';\nimport { TimelineProps } from '@pega/cosmos-react-work';\n\nexport const activity: TimelineProps['activity'] = [\n {\n id: '1',\n date: Date.UTC(2025, 2, 20, 19, 28, 22),\n title: 'Email blast: \"Buy today\"',\n icon: 'bell-off-solid'\n },\n {\n id: '2',\n date: Date.UTC(2025, 2, 20, 18, 6, 22),\n title: 'Confirm eligibility',\n icon: 'circle-stacked-mixed'\n },\n {\n id: '3',\n date: Date.UTC(2023, 2, 10, 9, 26, 22),\n title: 'Review customer bill',\n status: { variant: 'pending', children: 'Wait' }\n },\n {\n id: '4',\n date: Date.UTC(2022, 7, 10, 18, 6, 22),\n title: 'Confirm eligibility',\n icon: 'circle-stacked-mixed'\n },\n {\n id: '5',\n date: Date.UTC(2022, 6, 18, 0, 1, 22),\n title: (\n <Link href='https://www.pega.com' target='_blank'>\n Visit Pega\n </Link>\n )\n },\n {\n id: '6',\n date: Date.UTC(2021, 6, 10, 13, 20, 22),\n title: 'Update plat',\n icon: 'bulb-solid',\n status: { variant: 'success', children: 'Good' }\n },\n {\n id: '7',\n date: Date.UTC(2021, 1, 20, 13, 20, 22),\n title: 'Sent over request',\n icon: 'bulb-solid',\n status: { variant: 'success', children: 'Good' },\n content: [\n { id: '31', name: 'Date range', value: <Text>Jan 1, 2021 - May 3, 2021</Text> },\n {\n id: '32',\n name: \"What's next\",\n value: (\n <Text>\n We will fulfill your request within 3 business days. You will receive your statement\n copy via mail at 23 Main St. Boston, MA.\n </Text>\n )\n },\n {\n id: '33',\n name: 'Current due amount',\n value: <CurrencyDisplay value={1343.45} currencyISOCode='USD' />\n }\n ]\n },\n {\n id: '8',\n date: Date.UTC(2021, 1, 20, 13, 19, 22),\n title: 'Fulfill customer request for last month’s billing statement',\n icon: 'layers',\n status: { variant: 'pending', children: 'Wait' },\n content: [\n { id: '41', name: 'Date range', value: <Text>Jan 1, 2021 - May 3, 2021</Text> },\n {\n id: '42',\n name: \"What's next\",\n value: (\n <Text>\n We will fulfill your request within 3 business days. You will receive your statement\n copy via mail at 23 Main St. Boston, MA.\n </Text>\n )\n },\n {\n id: '43',\n name: 'Current due amount',\n value: <CurrencyDisplay value={121} currencyISOCode='USD' />\n }\n ]\n },\n {\n id: '9',\n date: Date.UTC(2021, 1, 20, 0, 1, 22),\n title: (\n <Link href='https://community.pega.com/support' target='_blank'>\n Visit Pega support for assistance\n </Link>\n )\n },\n {\n id: '10',\n date: Date.UTC(2021, 1, 19, 13, 20, 22),\n title: 'Sent over request',\n icon: 'bulb-solid',\n status: { variant: 'success', children: 'Good' },\n content: [\n { id: '61', name: 'Date range', value: <Text>Jan 1, 2021 - May 3, 2021</Text> },\n {\n id: '62',\n name: \"What's next\",\n value: (\n <Text>\n We will fulfill your request within 3 business days. You will receive your statement\n copy via mail at 23 Main St. Boston, MA.\n </Text>\n )\n },\n {\n id: '64',\n name: 'Current due amount long label',\n value: <CurrencyDisplay value={248.87} currencyISOCode='USD' />\n }\n ]\n },\n {\n id: '11',\n date: Date.UTC(2021, 1, 17, 36, 20, 22),\n title: 'Initial claim received',\n status: { variant: 'pending', children: 'Wait' }\n },\n {\n id: '12',\n date: Date.UTC(2020, 12, 15, 13, 19, 22),\n title: 'Balance inquiry',\n icon: 'phone-solid',\n status: { variant: 'pending', children: 'Wait' }\n },\n {\n id: '13',\n date: Date.UTC(2020, 2, 20, 19, 28, 22),\n title: 'Email blast: \"Best Offer\"',\n icon: 'bell-off-solid'\n },\n {\n id: '14',\n date: Date.UTC(2020, 1, 12, 10, 25, 48),\n title: 'Receive customer bill',\n icon: 'layers',\n status: { variant: 'success', children: 'Good' }\n }\n];\n"]}
@@ -1,7 +1,7 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import { OmitStrict } from '@pega/cosmos-react-core';
3
3
  import { TimelineProps } from '@pega/cosmos-react-work';
4
- declare const _default: Meta<import("@storybook/react").Args>;
4
+ declare const _default: Meta;
5
5
  export default _default;
6
6
  interface TimelineDemoStoryProps extends TimelineProps {
7
7
  lazyLoading?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.stories.d.ts","sourceRoot":"","sources":["../../../src/work/Timeline/Timeline.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAIL,UAAU,EAEX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAY,aAAa,EAAmB,MAAM,yBAAyB,CAAC;;AAQnF,wBAGU;AAEV,UAAU,sBAAuB,SAAQ,aAAa;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,sBAAsB,EAAE,UAAU,GAAG,aAAa,CAAC,CAiD9F,CAAC;AAiBF,eAAO,MAAM,mBAAmB,EAAE,KAyCjC,CAAC"}
1
+ {"version":3,"file":"Timeline.stories.d.ts","sourceRoot":"","sources":["../../../src/work/Timeline/Timeline.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAIL,UAAU,EAEX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAY,aAAa,EAAmB,MAAM,yBAAyB,CAAC;;AAQnF,wBAGU;AAEV,UAAU,sBAAuB,SAAQ,aAAa;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,sBAAsB,EAAE,UAAU,GAAG,aAAa,CAAC,CAiD9F,CAAC;AAiBF,eAAO,MAAM,mBAAmB,EAAE,KA0CjC,CAAC"}
@@ -58,7 +58,7 @@ export const TimelineToolbarDemo = () => {
58
58
  }, []);
59
59
  return (<Card>
60
60
  <CardHeader>
61
- <TimelineToolbar heading='Timeline Demo' search={{ onSearchSubmit, onSearchChange, value: searchValue }} count={{ total: items.length }} sort={{
61
+ <TimelineToolbar name='Timeline Demo' search={{ onSearchSubmit, onSearchChange, value: searchValue }} count={{ total: items.length }} sort={{
62
62
  selected: sortOrder,
63
63
  onItemClick: (id) => {
64
64
  setSortOrder(id);
@@ -68,7 +68,7 @@ export const TimelineToolbarDemo = () => {
68
68
  onItemClick: (id) => {
69
69
  setGroupBy(id);
70
70
  }
71
- }}/>
71
+ }} item={{ grow: 1 }}/>
72
72
  </CardHeader>
73
73
  <CardContent>
74
74
  <Timeline activity={items} currentTime={new Date()} sortOrder={sortOrder} groupBy={groupBy}/>
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.stories.jsx","sourceRoot":"","sources":["../../../src/work/Timeline/Timeline.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EACL,IAAI,EACJ,WAAW,EACX,UAAU,EAGX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAiB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAMnF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;CACZ,CAAC;AAMV,MAAM,CAAC,MAAM,YAAY,GAA0E,CACjG,IAAoE,EACpE,EAAE;IACF,MAAM,kBAAkB,GAAG,CAAC,CAAC;IAC7B,MAAM,iBAAiB,GAAG,CAAC,CAAC;IAE5B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAA4B,EAAE,CAAC,CAAC;IAElE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,C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AA,CAAC,UAAU,CACT;QAAA,CAAC,eAAe,CACd,OAAO,CAAC,eAAe,CACvB,MAAM,CAAC,CAAC,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAC/D,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAC/B,IAAI,CAAC,CAAC;YACJ,QAAQ,EAAE,SAAS;YACnB,WAAW,EAAE,CAAC,EAA8B,EAAE,EAAE;gBAC9C,YAAY,CAAC,EAAE,CAAC,CAAC;YACnB,CAAC;SACF,CAAC,CACF,KAAK,CAAC,CAAC;YACL,QAAQ,EAAE,OAAO;YACjB,WAAW,EAAE,CAAC,EAA4B,EAAE,EAAE;gBAC5C,UAAU,CAAC,EAAE,CAAC,CAAC;YACjB,CAAC;SACF,CAAC,EAEN;MAAA,EAAE,UAAU,CACZ;MAAA,CAAC,WAAW,CACV;QAAA,CAAC,QAAQ,CACP,QAAQ,CAAC,CAAC,KAAK,CAAC,CAChB,WAAW,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CACxB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,OAAO,CAAC,CAAC,OAAO,CAAC,EAErB;MAAA,EAAE,WAAW,CACf;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useCallback, useEffect, useState } from 'react';\n\nimport {\n Card,\n CardContent,\n CardHeader,\n OmitStrict,\n SearchInputProps\n} from '@pega/cosmos-react-core';\nimport { Timeline, TimelineProps, TimelineToolbar } from '@pega/cosmos-react-work';\nimport {\n TimelineGroupBy,\n TimelineSortOrder\n} from '@pega/cosmos-react-work/lib/components/Timeline/Timeline.types';\n\nimport { activity } from './Timeline.mocks';\n\nexport default {\n title: 'Work/Timeline',\n component: Timeline\n} as Meta;\n\ninterface TimelineDemoStoryProps extends TimelineProps {\n lazyLoading?: boolean;\n}\n\nexport const TimelineDemo: Story<OmitStrict<TimelineDemoStoryProps, 'activity' | 'currentTime'>> = (\n args: OmitStrict<TimelineDemoStoryProps, 'activity' | 'currentTime'>\n) => {\n const INITIAL_CHUNK_SIZE = 7;\n const APPEND_CHUNK_SIZE = 3;\n\n const [loading, setLoading] = useState(false);\n const [hasMore, setHasMore] = useState(true);\n const [items, setItems] = useState<TimelineProps['activity']>([]);\n\n useEffect(() => {\n const newItems = args.lazyLoading ? () => activity.slice(0, INITIAL_CHUNK_SIZE) : activity;\n setHasMore(newItems.length < activity.length);\n setItems(newItems);\n }, [args.lazyLoading]);\n\n const loadMore = useCallback(() => {\n if (!loading) {\n setLoading(true);\n setTimeout(() => {\n setLoading(false);\n\n setItems(prevItems => {\n const previousItemsLength = prevItems.length;\n const newItems = activity.slice(\n previousItemsLength,\n previousItemsLength + APPEND_CHUNK_SIZE\n );\n\n if (newItems.length === 0) {\n setHasMore(false);\n }\n\n return [...prevItems, ...newItems];\n });\n }, 2000);\n }\n }, [loading]);\n\n return (\n <Timeline\n activity={items}\n currentTime={new Date()}\n sortOrder={args.sortOrder}\n groupBy={args.groupBy}\n loading={loading}\n loadMore={hasMore ? loadMore : undefined}\n />\n );\n};\n\nTimelineDemo.args = {\n sortOrder: 'descending',\n groupBy: 'date',\n lazyLoading: false\n};\n\nTimelineDemo.argTypes = {\n sortOrder: { options: ['ascending', 'descending'], control: { type: 'select' } },\n groupBy: {\n options: ['date', 'monthyear', 'quarteryear', 'year', 'none'],\n control: { type: 'select' }\n },\n lazyLoading: { control: { type: 'boolean' } }\n};\n\nexport const TimelineToolbarDemo: Story = () => {\n const [sortOrder, setSortOrder] = useState<TimelineSortOrder>();\n const [groupBy, setGroupBy] = useState<TimelineGroupBy>();\n const [items, setItems] = useState<TimelineProps['activity']>(activity);\n const [searchValue, onSearchChange] = useState<SearchInputProps['value']>('');\n\n const onSearchSubmit = useCallback((value: string) => {\n setItems(activity.filter(item => JSON.stringify(item.title).includes(value)));\n }, []);\n\n return (\n <Card>\n <CardHeader>\n <TimelineToolbar\n heading='Timeline Demo'\n search={{ onSearchSubmit, onSearchChange, value: searchValue }}\n count={{ total: items.length }}\n sort={{\n selected: sortOrder,\n onItemClick: (id: TimelineProps['sortOrder']) => {\n setSortOrder(id);\n }\n }}\n group={{\n selected: groupBy,\n onItemClick: (id: TimelineProps['groupBy']) => {\n setGroupBy(id);\n }\n }}\n />\n </CardHeader>\n <CardContent>\n <Timeline\n activity={items}\n currentTime={new Date()}\n sortOrder={sortOrder}\n groupBy={groupBy}\n />\n </CardContent>\n </Card>\n );\n};\n"]}
1
+ {"version":3,"file":"Timeline.stories.jsx","sourceRoot":"","sources":["../../../src/work/Timeline/Timeline.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EACL,IAAI,EACJ,WAAW,EACX,UAAU,EAGX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAiB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAMnF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;CACZ,CAAC;AAMV,MAAM,CAAC,MAAM,YAAY,GAA0E,CACjG,IAAoE,EACpE,EAAE;IACF,MAAM,kBAAkB,GAAG,CAAC,CAAC;IAC7B,MAAM,iBAAiB,GAAG,CAAC,CAAC;IAE5B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAA4B,EAAE,CAAC,CAAC;IAElE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,QAAQ,GAAG,IAAI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,CAAC,IAAI,CACH;MAAA,CAAC,UAAU,CACT;QAAA,CAAC,eAAe,CACd,IAAI,CAAC,eAAe,CACpB,MAAM,CAAC,CAAC,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAC/D,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAC/B,IAAI,CAAC,CAAC;YACJ,QAAQ,EAAE,SAAS;YACnB,WAAW,EAAE,CAAC,EAA8B,EAAE,EAAE;gBAC9C,YAAY,CAAC,EAAE,CAAC,CAAC;YACnB,CAAC;SACF,CAAC,CACF,KAAK,CAAC,CAAC;YACL,QAAQ,EAAE,OAAO;YACjB,WAAW,EAAE,CAAC,EAA4B,EAAE,EAAE;gBAC5C,UAAU,CAAC,EAAE,CAAC,CAAC;YACjB,CAAC;SACF,CAAC,CACF,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAEtB;MAAA,EAAE,UAAU,CACZ;MAAA,CAAC,WAAW,CACV;QAAA,CAAC,QAAQ,CACP,QAAQ,CAAC,CAAC,KAAK,CAAC,CAChB,WAAW,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CACxB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,OAAO,CAAC,CAAC,OAAO,CAAC,EAErB;MAAA,EAAE,WAAW,CACf;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useCallback, useEffect, useState } from 'react';\n\nimport {\n Card,\n CardContent,\n CardHeader,\n OmitStrict,\n SearchInputProps\n} from '@pega/cosmos-react-core';\nimport { Timeline, TimelineProps, TimelineToolbar } from '@pega/cosmos-react-work';\nimport {\n TimelineGroupBy,\n TimelineSortOrder\n} from '@pega/cosmos-react-work/lib/components/Timeline/Timeline.types';\n\nimport { activity } from './Timeline.mocks';\n\nexport default {\n title: 'Work/Timeline',\n component: Timeline\n} as Meta;\n\ninterface TimelineDemoStoryProps extends TimelineProps {\n lazyLoading?: boolean;\n}\n\nexport const TimelineDemo: Story<OmitStrict<TimelineDemoStoryProps, 'activity' | 'currentTime'>> = (\n args: OmitStrict<TimelineDemoStoryProps, 'activity' | 'currentTime'>\n) => {\n const INITIAL_CHUNK_SIZE = 7;\n const APPEND_CHUNK_SIZE = 3;\n\n const [loading, setLoading] = useState(false);\n const [hasMore, setHasMore] = useState(true);\n const [items, setItems] = useState<TimelineProps['activity']>([]);\n\n useEffect(() => {\n const newItems = args.lazyLoading ? () => activity.slice(0, INITIAL_CHUNK_SIZE) : activity;\n setHasMore(newItems.length < activity.length);\n setItems(newItems);\n }, [args.lazyLoading]);\n\n const loadMore = useCallback(() => {\n if (!loading) {\n setLoading(true);\n setTimeout(() => {\n setLoading(false);\n\n setItems(prevItems => {\n const previousItemsLength = prevItems.length;\n const newItems = activity.slice(\n previousItemsLength,\n previousItemsLength + APPEND_CHUNK_SIZE\n );\n\n if (newItems.length === 0) {\n setHasMore(false);\n }\n\n return [...prevItems, ...newItems];\n });\n }, 2000);\n }\n }, [loading]);\n\n return (\n <Timeline\n activity={items}\n currentTime={new Date()}\n sortOrder={args.sortOrder}\n groupBy={args.groupBy}\n loading={loading}\n loadMore={hasMore ? loadMore : undefined}\n />\n );\n};\n\nTimelineDemo.args = {\n sortOrder: 'descending',\n groupBy: 'date',\n lazyLoading: false\n};\n\nTimelineDemo.argTypes = {\n sortOrder: { options: ['ascending', 'descending'], control: { type: 'select' } },\n groupBy: {\n options: ['date', 'monthyear', 'quarteryear', 'year', 'none'],\n control: { type: 'select' }\n },\n lazyLoading: { control: { type: 'boolean' } }\n};\n\nexport const TimelineToolbarDemo: Story = () => {\n const [sortOrder, setSortOrder] = useState<TimelineSortOrder>();\n const [groupBy, setGroupBy] = useState<TimelineGroupBy>();\n const [items, setItems] = useState<TimelineProps['activity']>(activity);\n const [searchValue, onSearchChange] = useState<SearchInputProps['value']>('');\n\n const onSearchSubmit = useCallback((value: string) => {\n setItems(activity.filter(item => JSON.stringify(item.title).includes(value)));\n }, []);\n\n return (\n <Card>\n <CardHeader>\n <TimelineToolbar\n name='Timeline Demo'\n search={{ onSearchSubmit, onSearchChange, value: searchValue }}\n count={{ total: items.length }}\n sort={{\n selected: sortOrder,\n onItemClick: (id: TimelineProps['sortOrder']) => {\n setSortOrder(id);\n }\n }}\n group={{\n selected: groupBy,\n onItemClick: (id: TimelineProps['groupBy']) => {\n setGroupBy(id);\n }\n }}\n item={{ grow: 1 }}\n />\n </CardHeader>\n <CardContent>\n <Timeline\n activity={items}\n currentTime={new Date()}\n sortOrder={sortOrder}\n groupBy={groupBy}\n />\n </CardContent>\n </Card>\n );\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import { ReactNode } from 'react';
3
3
  import { AppShellProps } from '@pega/cosmos-react-wss';
4
- declare const _default: Meta<import("@storybook/react").Args>;
4
+ declare const _default: Meta;
5
5
  export default _default;
6
6
  interface AppShellDemoProps {
7
7
  appName?: AppShellProps['appInfo']['appName'];
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.stories.d.ts","sourceRoot":"","sources":["../../../src/wss/AppShell/AppShell.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAY,aAAa,EAAoB,MAAM,wBAAwB,CAAC;;AAInF,wBAMU;AAEV,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;I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AO,CAAC;IAC/B,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAiFjD,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { useState } from 'react';
2
2
  import { AppShell } from '@pega/cosmos-react-wss';
3
+ import { Icon } from '@pega/cosmos-react-core';
3
4
  import { DefaultMainContent, notificationItems, defaultAppDemoProps } from './AppShell.mocks';
4
5
  export default {
5
6
  title: 'Web Self Service/AppShell',
@@ -19,10 +20,27 @@ export const AppShellDemo = (args) => {
19
20
  ...item
20
21
  })));
21
22
  };
23
+ const [contexts, setContexts] = useState([
24
+ {
25
+ id: '1',
26
+ primary: 'Medical',
27
+ selected: true,
28
+ visual: <Icon name='heart-pulse-solid'/>
29
+ },
30
+ {
31
+ id: '2',
32
+ primary: 'Vision',
33
+ selected: false,
34
+ visual: <Icon name='glasses-solid'/>
35
+ }
36
+ ]);
22
37
  return (<AppShell main={args.mainContent ?? <DefaultMainContent content={mainContent}/>} appInfo={{
23
38
  appName: args.appName ?? defaultAppDemoProps.appName,
24
39
  imageSrc: args.imageSrc ?? defaultAppDemoProps.imageSrc,
25
40
  onClick: () => setMainContent('Home')
41
+ }} contextSwitcher={{
42
+ contexts,
43
+ onContextClick: (id) => setContexts(cur => cur.map(ctx => ({ ...ctx, selected: id === ctx.id })))
26
44
  }} navLinks={Array.from({
27
45
  length: args.numberOfNavLinks ?? defaultAppDemoProps.numberOfNavLinks
28
46
  }).map((_, index) => {
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.stories.jsx","sourceRoot":"","sources":["../../../src/wss/AppShell/AppShell.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AAEnF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE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G,EAAE;gBACxB,sBAAsB,CAAC,CAAC,CAAC,CAAC;YAC5B,CAAC;SACF,CAAC,CACF,YAAY,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAChC,WAAW,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,EAC9B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,IAAI,GAAG,mBAAmB,CAAC;AAGxC,YAAY,CAAC,QAAQ,GAAG;IACtB,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACvC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACjD,YAAY,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAClF,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC1E,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC5C,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACpD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACvD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { ReactNode, useState } from 'react';\n\nimport { AppShell, AppShellProps, NotificationItem } from '@pega/cosmos-react-wss';\n\nimport { DefaultMainContent, notificationItems, defaultAppDemoProps } from './AppShell.mocks';\n\nexport default {\n title: 'Web Self Service/AppShell',\n component: AppShell,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface AppShellDemoProps {\n appName?: AppShellProps['appInfo']['appName'];\n imageSrc?: AppShellProps['appInfo']['imageSrc'];\n numberOfNavLinks?: number;\n navAlignment?: AppShellProps['navAlignment'];\n navPosition?: AppShellProps['navPosition'];\n operatorName?: AppShellProps['operator']['avatar']['name'];\n operatorTitle?: AppShellProps['operator']['title'];\n notificationsEmpty?: boolean;\n notificationsLoading?: boolean;\n mainContent?: ReactNode;\n}\n\nexport const AppShellDemo: Story<AppShellDemoProps> = (args: AppShellDemoProps) => {\n const [mainContent, setMainContent] = useState('Home');\n const [notifications, setNotifications] = useState<NotificationItem[]>(notificationItems);\n const [numNewNotifications, setNumNewNotifications] = useState(\n notifications.filter(x => x.unread).length\n );\n\n const handleNotificationClick = (passedId: string) => {\n setNotifications(cur =>\n cur.map(({ id, unread, ...item }) => ({\n id,\n unread: passedId === id ? false : unread,\n ...item\n }))\n );\n };\n\n return (\n <AppShell\n main={args.mainContent ?? <DefaultMainContent content={mainContent} />}\n appInfo={{\n appName: args.appName ?? defaultAppDemoProps.appName,\n imageSrc: args.imageSrc ?? defaultAppDemoProps.imageSrc,\n onClick: () => setMainContent('Home')\n }}\n navLinks={Array.from({\n length: args.numberOfNavLinks ?? defaultAppDemoProps.numberOfNavLinks\n }).map((_, index) => {\n const navName = `Navigation ${index + 1}`;\n\n return {\n id: `nav-${index + 1}`,\n text: navName,\n href: '#',\n onClick: () => setMainContent(navName),\n current: navName === mainContent\n };\n })}\n operator={{\n avatar: { name: args.operatorName ?? defaultAppDemoProps.operatorName },\n title: args.operatorTitle ?? defaultAppDemoProps.operatorTitle,\n actions: [\n { id: 'profile', primary: 'My profile', href: '#' },\n { id: 'settings', primary: 'Settings', href: '#' },\n { id: 'logOut', primary: 'Log out', href: '#' }\n ]\n }}\n notifications={{\n title: 'Notifications',\n count: numNewNotifications,\n items: args.notificationsEmpty ? [] : notifications,\n onItemClick: handleNotificationClick,\n loading: args.notificationsLoading ?? defaultAppDemoProps.notificationsLoading,\n onNotificationsOpen: () => {\n setNumNewNotifications(0);\n }\n }}\n navAlignment={args.navAlignment}\n navPosition={args.navPosition}\n />\n );\n};\n\nAppShellDemo.args = defaultAppDemoProps;\n\n// eslint-disable-next-line demo-patterns/args-match-types\nAppShellDemo.argTypes = {\n imageSrc: { control: { type: 'text' } },\n appName: { control: { type: 'text' } },\n numberOfNavLinks: { control: { type: 'number' } },\n navAlignment: { options: ['start', 'center', 'end'], control: { type: 'select' } },\n navPosition: { options: ['inline', 'below'], control: { type: 'select' } },\n operatorName: { control: { type: 'text' } },\n operatorTitle: { control: { type: 'text' } },\n notificationsEmpty: { control: { type: 'boolean' } },\n notificationsLoading: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"AppShell.stories.jsx","sourceRoot":"","sources":["../../../src/wss/AppShell/AppShell.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAwB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE9F,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAeV,MAAM,CAAC,MAAM,YAAY,GAA6B,CAAC,IAAuB,EAAE,EAAE;IAChF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAqB,iBAAiB,CAAC,CAAC;IAC1F,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,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,EAAE;IACpD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACvD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { ReactNode, useState } from 'react';\n\nimport { AppShell, AppShellProps, NotificationItem } from '@pega/cosmos-react-wss';\nimport { ContextSwitcherProps, Icon } from '@pega/cosmos-react-core';\n\nimport { DefaultMainContent, notificationItems, defaultAppDemoProps } from './AppShell.mocks';\n\nexport default {\n title: 'Web Self Service/AppShell',\n component: AppShell,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface AppShellDemoProps {\n appName?: AppShellProps['appInfo']['appName'];\n imageSrc?: AppShellProps['appInfo']['imageSrc'];\n numberOfNavLinks?: number;\n navAlignment?: AppShellProps['navAlignment'];\n navPosition?: AppShellProps['navPosition'];\n operatorName?: AppShellProps['operator']['avatar']['name'];\n operatorTitle?: AppShellProps['operator']['title'];\n notificationsEmpty?: boolean;\n notificationsLoading?: boolean;\n mainContent?: ReactNode;\n}\n\nexport const AppShellDemo: Story<AppShellDemoProps> = (args: AppShellDemoProps) => {\n const [mainContent, setMainContent] = useState('Home');\n const [notifications, setNotifications] = useState<NotificationItem[]>(notificationItems);\n const [numNewNotifications, setNumNewNotifications] = useState(\n notifications.filter(x => x.unread).length\n );\n\n const handleNotificationClick = (passedId: string) => {\n setNotifications(cur =>\n cur.map(({ id, unread, ...item }) => ({\n id,\n unread: passedId === id ? false : unread,\n ...item\n }))\n );\n };\n\n const [contexts, setContexts] = useState<ContextSwitcherProps['contexts']>([\n {\n id: '1',\n primary: 'Medical',\n selected: true,\n visual: <Icon name='heart-pulse-solid' />\n },\n {\n id: '2',\n primary: 'Vision',\n selected: false,\n visual: <Icon name='glasses-solid' />\n }\n ]);\n\n return (\n <AppShell\n main={args.mainContent ?? <DefaultMainContent content={mainContent} />}\n appInfo={{\n appName: args.appName ?? defaultAppDemoProps.appName,\n imageSrc: args.imageSrc ?? defaultAppDemoProps.imageSrc,\n onClick: () => setMainContent('Home')\n }}\n contextSwitcher={{\n contexts,\n onContextClick: (id: string) =>\n setContexts(cur => cur!.map(ctx => ({ ...ctx, selected: id === ctx.id })))\n }}\n navLinks={Array.from({\n length: args.numberOfNavLinks ?? defaultAppDemoProps.numberOfNavLinks\n }).map((_, index) => {\n const navName = `Navigation ${index + 1}`;\n\n return {\n id: `nav-${index + 1}`,\n text: navName,\n href: '#',\n onClick: () => setMainContent(navName),\n current: navName === mainContent\n };\n })}\n operator={{\n avatar: { name: args.operatorName ?? defaultAppDemoProps.operatorName },\n title: args.operatorTitle ?? defaultAppDemoProps.operatorTitle,\n actions: [\n { id: 'profile', primary: 'My profile', href: '#' },\n { id: 'settings', primary: 'Settings', href: '#' },\n { id: 'logOut', primary: 'Log out', href: '#' }\n ]\n }}\n notifications={{\n title: 'Notifications',\n count: numNewNotifications,\n items: args.notificationsEmpty ? [] : notifications,\n onItemClick: handleNotificationClick,\n loading: args.notificationsLoading ?? defaultAppDemoProps.notificationsLoading,\n onNotificationsOpen: () => {\n setNumNewNotifications(0);\n }\n }}\n navAlignment={args.navAlignment}\n navPosition={args.navPosition}\n />\n );\n};\n\nAppShellDemo.args = defaultAppDemoProps;\n\nAppShellDemo.argTypes = {\n imageSrc: { control: { type: 'text' } },\n appName: { control: { type: 'text' } },\n numberOfNavLinks: { control: { type: 'number' } },\n navAlignment: { options: ['start', 'center', 'end'], control: { type: 'select' } },\n navPosition: { options: ['inline', 'below'], control: { type: 'select' } },\n operatorName: { control: { type: 'text' } },\n operatorTitle: { control: { type: 'text' } },\n notificationsEmpty: { control: { type: 'boolean' } },\n notificationsLoading: { control: { type: 'boolean' } }\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
2
+ declare const _default: Meta;
3
3
  export default _default;
4
4
  interface CaseViewDemoProps {
5
5
  showStagesRegion?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CaseView.stories.d.ts","sourceRoot":"","sources":["../../../src/wss/CaseView/CaseView.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAe/C,wBAMU;AAEV,UAAU,iBAAiB;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CA4EjD,CAAC"}
1
+ {"version":3,"file":"CaseView.stories.d.ts","sourceRoot":"","sources":["../../../src/wss/CaseView/CaseView.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAoB/C,wBAMU;AAEV,UAAU,iBAAiB;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAqFjD,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { useState } from 'react';
2
2
  import { AppShell, CaseView } from '@pega/cosmos-react-wss';
3
- import { CaseSummaryFields, Stages } from '@pega/cosmos-react-work';
3
+ import { Stages } from '@pega/cosmos-react-work';
4
+ import { Grid } from '@pega/cosmos-react-core';
5
+ import { StyledSummaryPrimaryList, StyledSummarySecondaryList } from '@pega/cosmos-react-work/lib/components/CaseView/CaseView.styles';
4
6
  import { AttachmentsMock } from '../../work/CaseView/Attachments.mocks';
5
7
  import { FeedPostDemo } from '../../social/Feed/FeedPost.stories';
6
8
  import { casePreviewPrimaryFields, casePreviewSecondaryFields } from '../../work/CaseView/CaseView.mocks';
@@ -27,7 +29,11 @@ export const CaseViewDemo = (args) => {
27
29
  : undefined} summary={args.showSummaryRegion
28
30
  ? {
29
31
  label: 'Summary',
30
- content: (<CaseSummaryFields primaryFields={casePreviewPrimaryFields} secondaryFields={casePreviewSecondaryFields}/>)
32
+ content: (<Grid container={{ rowGap: 2, pad: [1.5, 2] }}>
33
+ <StyledSummaryPrimaryList variant='stacked' fields={casePreviewPrimaryFields} aria-label='Primary summary fields'/>
34
+
35
+ <StyledSummarySecondaryList variant='inline' fields={casePreviewSecondaryFields} aria-label='Secondary summary fields'/>
36
+ </Grid>)
31
37
  }
32
38
  : undefined} feed={args.showPulseRegion ? { label: 'Feed', content: <FeedPostDemo /> } : undefined} utility={args.showUtilitiesRegion
33
39
  ? { label: 'Utility', content: <AttachmentsMock /> }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseView.stories.jsx","sourceRoot":"","sources":["../../../src/wss/CaseView/CaseView.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,M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EACF,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,IAAI,GAAG;IAClB,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;IACzB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;CACtB,CAAC;AAEF,YAAY,CAAC,QAAQ,GAAG;IACtB,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAClD,mBAAmB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACrD,iBAAiB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACnD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAClD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { AppShell, CaseView } from '@pega/cosmos-react-wss';\nimport { CaseSummaryFields, Stages } from '@pega/cosmos-react-work';\n\nimport { AttachmentsMock } from '../../work/CaseView/Attachments.mocks';\nimport { FeedPostDemo } from '../../social/Feed/FeedPost.stories';\nimport {\n casePreviewPrimaryFields,\n casePreviewSecondaryFields\n} from '../../work/CaseView/CaseView.mocks';\nimport { TasksDemo } from '../../work/Tasks/Tasks.stories';\nimport { defaultAppDemoProps } from '../AppShell/AppShell.mocks';\n\nexport default {\n title: 'Web Self Service/CaseView',\n component: CaseView,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface CaseViewDemoProps {\n showStagesRegion?: boolean;\n showUtilitiesRegion?: boolean;\n showSummaryRegion?: boolean;\n showTasksRegion?: boolean;\n showPulseRegion?: boolean;\n}\n\nexport const CaseViewDemo: Story<CaseViewDemoProps> = (args: CaseViewDemoProps) => {\n const [, setMainContent] = useState('Home');\n\n return (\n <AppShell\n caseId='1234'\n main={\n <CaseView\n heading='I have an issue that is impacting my work and I need help'\n actions={[{ id: '1', text: 'Some text' }]}\n tasks={{ label: 'Tasks', content: <TasksDemo /> }}\n stages={\n args.showStagesRegion\n ? {\n label: 'Stages',\n content: (\n <Stages\n stages={[\n { name: 'Create', id: '1', completed: true },\n { name: 'Troubleshoot', id: '2', completed: false },\n { name: 'Resolve', id: '3', completed: false }\n ]}\n current=''\n />\n )\n }\n : undefined\n }\n summary={\n args.showSummaryRegion\n ? {\n label: 'Summary',\n content: (\n <CaseSummaryFields\n primaryFields={casePreviewPrimaryFields}\n secondaryFields={casePreviewSecondaryFields}\n />\n )\n }\n : undefined\n }\n feed={args.showPulseRegion ? { label: 'Feed', content: <FeedPostDemo /> } : undefined}\n utility={\n args.showUtilitiesRegion\n ? { label: 'Utility', content: <AttachmentsMock /> }\n : undefined\n }\n />\n }\n appInfo={{\n appName: 'App name',\n imageSrc: 'https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg'\n }}\n navLinks={Array.from({\n length: defaultAppDemoProps.numberOfNavLinks\n }).map((_, index) => {\n const navName = `Navigation ${index + 1}`;\n\n return {\n id: `nav-${index + 1}`,\n text: navName,\n href: '#',\n onClick: () => setMainContent(navName)\n };\n })}\n operator={{\n avatar: { name: 'hello' },\n title: 'title',\n actions: [\n { id: 'profile', primary: 'My profile', href: '#' },\n { id: 'settings', primary: 'Settings', href: '#' },\n { id: 'logOut', primary: 'Log out', href: '#' }\n ]\n }}\n />\n );\n};\n\nCaseViewDemo.args = {\n showStagesRegion: true,\n showUtilitiesRegion: true,\n showSummaryRegion: true,\n showPulseRegion: true\n};\n\nCaseViewDemo.argTypes = {\n showStagesRegion: { control: { type: 'boolean' } },\n showUtilitiesRegion: { control: { type: 'boolean' } },\n showSummaryRegion: { control: { type: 'boolean' } },\n showPulseRegion: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"CaseView.stories.jsx","sourceRoot":"","sources":["../../../src/wss/CaseView/CaseView.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MA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EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACrD,iBAAiB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACnD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAClD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { AppShell, CaseView } from '@pega/cosmos-react-wss';\nimport { Stages } from '@pega/cosmos-react-work';\nimport { Grid } from '@pega/cosmos-react-core';\nimport {\n StyledSummaryPrimaryList,\n StyledSummarySecondaryList\n} from '@pega/cosmos-react-work/lib/components/CaseView/CaseView.styles';\n\nimport { AttachmentsMock } from '../../work/CaseView/Attachments.mocks';\nimport { FeedPostDemo } from '../../social/Feed/FeedPost.stories';\nimport {\n casePreviewPrimaryFields,\n casePreviewSecondaryFields\n} from '../../work/CaseView/CaseView.mocks';\nimport { TasksDemo } from '../../work/Tasks/Tasks.stories';\nimport { defaultAppDemoProps } from '../AppShell/AppShell.mocks';\n\nexport default {\n title: 'Web Self Service/CaseView',\n component: CaseView,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface CaseViewDemoProps {\n showStagesRegion?: boolean;\n showUtilitiesRegion?: boolean;\n showSummaryRegion?: boolean;\n showTasksRegion?: boolean;\n showPulseRegion?: boolean;\n}\n\nexport const CaseViewDemo: Story<CaseViewDemoProps> = (args: CaseViewDemoProps) => {\n const [, setMainContent] = useState('Home');\n\n return (\n <AppShell\n caseId='1234'\n main={\n <CaseView\n heading='I have an issue that is impacting my work and I need help'\n actions={[{ id: '1', text: 'Some text' }]}\n tasks={{ label: 'Tasks', content: <TasksDemo /> }}\n stages={\n args.showStagesRegion\n ? {\n label: 'Stages',\n content: (\n <Stages\n stages={[\n { name: 'Create', id: '1', completed: true },\n { name: 'Troubleshoot', id: '2', completed: false },\n { name: 'Resolve', id: '3', completed: false }\n ]}\n current=''\n />\n )\n }\n : undefined\n }\n summary={\n args.showSummaryRegion\n ? {\n label: 'Summary',\n content: (\n <Grid container={{ rowGap: 2, pad: [1.5, 2] }}>\n <StyledSummaryPrimaryList\n variant='stacked'\n fields={casePreviewPrimaryFields}\n aria-label='Primary summary fields'\n />\n\n <StyledSummarySecondaryList\n variant='inline'\n fields={casePreviewSecondaryFields}\n aria-label='Secondary summary fields'\n />\n </Grid>\n )\n }\n : undefined\n }\n feed={args.showPulseRegion ? { label: 'Feed', content: <FeedPostDemo /> } : undefined}\n utility={\n args.showUtilitiesRegion\n ? { label: 'Utility', content: <AttachmentsMock /> }\n : undefined\n }\n />\n }\n appInfo={{\n appName: 'App name',\n imageSrc: 'https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg'\n }}\n navLinks={Array.from({\n length: defaultAppDemoProps.numberOfNavLinks\n }).map((_, index) => {\n const navName = `Navigation ${index + 1}`;\n\n return {\n id: `nav-${index + 1}`,\n text: navName,\n href: '#',\n onClick: () => setMainContent(navName)\n };\n })}\n operator={{\n avatar: { name: 'hello' },\n title: 'title',\n actions: [\n { id: 'profile', primary: 'My profile', href: '#' },\n { id: 'settings', primary: 'Settings', href: '#' },\n { id: 'logOut', primary: 'Log out', href: '#' }\n ]\n }}\n />\n );\n};\n\nCaseViewDemo.args = {\n showStagesRegion: true,\n showUtilitiesRegion: true,\n showSummaryRegion: true,\n showPulseRegion: true\n};\n\nCaseViewDemo.argTypes = {\n showStagesRegion: { control: { type: 'boolean' } },\n showUtilitiesRegion: { control: { type: 'boolean' } },\n showSummaryRegion: { control: { type: 'boolean' } },\n showPulseRegion: { control: { type: 'boolean' } }\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
2
+ declare const _default: Meta;
3
3
  export default _default;
4
4
  interface BannerPageStoryProps {
5
5
  title: string;
@@ -41,8 +41,8 @@ BannerPageDemo.argTypes = {
41
41
  bannerVariant: { options: ['light', 'dark'], control: { type: 'select' } },
42
42
  backgroundColor: { control: { type: 'color' } },
43
43
  backgroundImage: { control: { type: 'text' } },
44
- tintImage: { control: { type: 'boolean', defaultValue: true } },
45
- oneColumn: { control: { type: 'boolean', defaultValue: false } },
44
+ tintImage: { control: { type: 'boolean' } },
45
+ oneColumn: { control: { type: 'boolean' } },
46
46
  variant: { options: ['two-column', 'narrow-wide', 'wide-narrow'], control: { type: 'select' } }
47
47
  };
48
48
  //# sourceMappingURL=PageTemplates.stories.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageTemplates.stories.jsx","sourceRoot":"","sources":["../../../src/wss/PageTemplates/PageTemplates.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,eAAe;IACb,KAAK,EAAE,iCAAiC;IACxC,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAaV,MAAM,CAAC,MAAM,cAAc,GAAgC,CAAC,IAA0B,EAAE,EAAE;IACxF,OAAO,CACL,CAAC,YAAY,CACX,WAAW,CAAC,CACV,CAAC,UAAU,CACT,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CACjD,CAAC,CAAC,CACA,CAAC,GAAG,CACF;cAAA,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CACxB;;cACF,EAAE,IAAI,CACR;YAAA,EAAE,GAAG,CAAC,CACP,CACD,CAAC,CAAC,CACA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAChB,CAAC,GAAG,CACF;gBAAA,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CACxB;;gBACF,E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Y,EAAE,KAAK,EAAE,EAAE;IAChE,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAChG,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { BannerPage } from '@pega/cosmos-react-wss';\nimport { Text } from '@pega/cosmos-react-core';\n\nimport { AppShellDemo } from '../AppShell/AppShell.stories';\n\nexport default {\n title: 'Web Self Service/Page Templates',\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface BannerPageStoryProps {\n title: string;\n message: string;\n bannerVariant: 'light' | 'dark';\n backgroundColor?: string;\n backgroundImage?: string;\n tintImage?: boolean;\n oneColumn?: boolean;\n variant?: 'two-column' | 'narrow-wide' | 'wide-narrow';\n}\n\nexport const BannerPageDemo: Story<BannerPageStoryProps> = (args: BannerPageStoryProps) => {\n return (\n <AppShellDemo\n mainContent={\n <BannerPage\n variant={args.variant ? args.variant : undefined}\n a={\n <div>\n <Text variant='h2' as='h2'>\n Section A\n </Text>\n </div>\n }\n b={\n !args.oneColumn ? (\n <div>\n <Text variant='h2' as='h2'>\n Section B\n </Text>\n </div>\n ) : undefined\n }\n banner={{\n variant: args.bannerVariant,\n backgroundColor: args.backgroundColor,\n title: args.title,\n message: args.message,\n backgroundImage: args.backgroundImage,\n tintImage: args.tintImage\n }}\n />\n }\n />\n );\n};\n\nBannerPageDemo.args = {\n title: 'Banner page demo',\n message: 'Welcome to the banner page demo, nice to see you. Did you get your haircut?',\n bannerVariant: 'light',\n backgroundColor: '#3eb489',\n backgroundImage:\n 'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/moraine-lake-and-the-valley-of-the-ten-peaks-in-the-royalty-free-image-1571062944.jpg',\n tintImage: true,\n oneColumn: false,\n variant: undefined\n};\n\nBannerPageDemo.argTypes = {\n title: { control: { type: 'text' } },\n message: { control: { type: 'text' } },\n bannerVariant: { options: ['light', 'dark'], control: { type: 'select' } },\n backgroundColor: { control: { type: 'color' } },\n backgroundImage: { control: { type: 'text' } },\n tintImage: { control: { type: 'boolean', defaultValue: true } },\n oneColumn: { control: { type: 'boolean', defaultValue: false } },\n variant: { options: ['two-column', 'narrow-wide', 'wide-narrow'], control: { type: 'select' } }\n};\n"]}
1
+ {"version":3,"file":"PageTemplates.stories.jsx","sourceRoot":"","sources":["../../../src/wss/PageTemplates/PageTemplates.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,eAAe;IACb,KAAK,EAAE,iCAAiC;IACxC,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAaV,MAAM,CAAC,MAAM,cAAc,GAAgC,CAAC,IAA0B,EAAE,EAAE;IACxF,OAAO,CACL,CAAC,YAAY,CACX,WAAW,CAAC,CACV,CAAC,UAAU,CACT,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CACjD,CAAC,CAAC,CACA,CAAC,GAAG,CACF;cAAA,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CACxB;;cACF,EAAE,IAAI,CACR;YAAA,EAAE,GAAG,CAAC,CACP,CACD,CAAC,CAAC,CACA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAChB,CAAC,GAAG,CACF;gBAAA,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CACxB;;gBACF,EAAE,IAAI,CACR;cAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,SAAS,CACd,CACD,MAAM,CAAC,CAAC;gBACN,O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AE,EAAE;CAChG,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { BannerPage } from '@pega/cosmos-react-wss';\nimport { Text } from '@pega/cosmos-react-core';\n\nimport { AppShellDemo } from '../AppShell/AppShell.stories';\n\nexport default {\n title: 'Web Self Service/Page Templates',\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface BannerPageStoryProps {\n title: string;\n message: string;\n bannerVariant: 'light' | 'dark';\n backgroundColor?: string;\n backgroundImage?: string;\n tintImage?: boolean;\n oneColumn?: boolean;\n variant?: 'two-column' | 'narrow-wide' | 'wide-narrow';\n}\n\nexport const BannerPageDemo: Story<BannerPageStoryProps> = (args: BannerPageStoryProps) => {\n return (\n <AppShellDemo\n mainContent={\n <BannerPage\n variant={args.variant ? args.variant : undefined}\n a={\n <div>\n <Text variant='h2' as='h2'>\n Section A\n </Text>\n </div>\n }\n b={\n !args.oneColumn ? (\n <div>\n <Text variant='h2' as='h2'>\n Section B\n </Text>\n </div>\n ) : undefined\n }\n banner={{\n variant: args.bannerVariant,\n backgroundColor: args.backgroundColor,\n title: args.title,\n message: args.message,\n backgroundImage: args.backgroundImage,\n tintImage: args.tintImage\n }}\n />\n }\n />\n );\n};\n\nBannerPageDemo.args = {\n title: 'Banner page demo',\n message: 'Welcome to the banner page demo, nice to see you. Did you get your haircut?',\n bannerVariant: 'light',\n backgroundColor: '#3eb489',\n backgroundImage:\n 'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/moraine-lake-and-the-valley-of-the-ten-peaks-in-the-royalty-free-image-1571062944.jpg',\n tintImage: true,\n oneColumn: false,\n variant: undefined\n};\n\nBannerPageDemo.argTypes = {\n title: { control: { type: 'text' } },\n message: { control: { type: 'text' } },\n bannerVariant: { options: ['light', 'dark'], control: { type: 'select' } },\n backgroundColor: { control: { type: 'color' } },\n backgroundImage: { control: { type: 'text' } },\n tintImage: { control: { type: 'boolean' } },\n oneColumn: { control: { type: 'boolean' } },\n variant: { options: ['two-column', 'narrow-wide', 'wide-narrow'], control: { type: 'select' } }\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
2
+ declare const _default: Meta;
3
3
  export default _default;
4
4
  interface QuickCreateDemoArgs {
5
5
  borderRadius: number;
@@ -1,69 +1,44 @@
1
1
  import { FC } from 'react';
2
+ import { NavProps } from '@pega/cosmos-react-build';
2
3
  export interface TabbedPageStoryProps {
3
- pageContent: PageContentProps;
4
+ pageContent: {
5
+ title: string;
6
+ breadcrumbsPath: string;
7
+ tabs: string[];
8
+ };
4
9
  showBreadcrumbs: boolean;
5
10
  }
11
+ export interface ShowcasePageStoryProps {
12
+ title: string;
13
+ description: string;
14
+ actionLabel: string;
15
+ imageSrc: string;
16
+ }
6
17
  export interface PageContentProps {
7
18
  id: string;
8
- data: {
9
- pageTitle: string;
10
- breadcrumbsPath: string;
11
- tabs: string[];
12
- };
19
+ data: (TabbedPageStoryProps['pageContent'] & {
20
+ template: 'tabbed';
21
+ }) | (ShowcasePageStoryProps & {
22
+ template: 'showcase';
23
+ });
13
24
  }
14
25
  export declare const getPath: (args: TabbedPageStoryProps) => {
15
26
  id: string;
16
27
  primary: string;
17
28
  href: string | undefined;
18
29
  }[] | undefined;
19
- export declare const appExplorerMenuList: {
20
- id: string;
21
- label: string;
22
- nodes: ({
23
- id: string;
24
- label: string;
25
- nodes?: undefined;
26
- } | {
27
- id: string;
28
- label: string;
29
- nodes: {
30
- id: string;
31
- label: string;
32
- }[];
33
- })[];
34
- }[];
35
- export declare const branchesMenuList: {
36
- icon: string;
37
- id: string;
38
- label: string;
39
- }[];
40
- export declare const contents: {
41
- id: string;
42
- data: {
43
- pageTitle: string;
44
- breadcrumbsPath: string;
45
- tabs: string[];
30
+ export declare const defaultNavItems: NavProps['items'];
31
+ export declare const contents: PageContentProps[];
32
+ export declare const TabbedPageComp: FC<TabbedPageStoryProps>;
33
+ export declare const ShowcasePageComp: FC<ShowcasePageStoryProps>;
34
+ export declare const operatorData: {
35
+ avatar: {
36
+ name: string;
46
37
  };
47
- }[];
48
- export declare const recordMenuList: {
49
- id: string;
50
- label: string;
51
- nodes: {
38
+ actions: {
39
+ primary: string;
52
40
  id: string;
53
- label: string;
54
41
  }[];
55
- }[];
56
- export declare const treeList: ({
57
- id: string;
58
- label: string;
59
- nodes?: undefined;
60
- } | {
61
- id: string;
62
- label: string;
63
- nodes: {
64
- id: string;
65
- label: string;
66
- }[];
67
- })[];
68
- export declare const TabbedPageComp: FC<TabbedPageStoryProps>;
42
+ name: string;
43
+ };
69
44
  //# sourceMappingURL=AppShell.mocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,MAAM,EAAE,CAAC;KAChB,CAAC;CACH;AAED,eAAO,MAAM,OAAO,SAAU,oBAAoB;;;;eAqBjD,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;GA2D/B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;GAqB5B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;GAkSpB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;GAiC1B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;IA+FpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,oBAAoB,CAwBnD,CAAC"}
1
+ {"version":3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