@pega/cosmos-react-demos 2.0.0 → 2.1.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 (965) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +8 -0
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -0
  3. package/{lib → jsx}/build/AppHeader/AppHeader.stories.jsx +0 -0
  4. package/{lib → jsx}/build/AppHeader/AppHeader.stories.jsx.map +0 -0
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts +50 -0
  6. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -0
  7. package/jsx/build/AppShell/AppShell.mocks.js +503 -0
  8. package/jsx/build/AppShell/AppShell.mocks.js.map +1 -0
  9. package/jsx/build/AppShell/AppShell.stories.d.ts +12 -0
  10. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -0
  11. package/{lib → jsx}/build/AppShell/AppShell.stories.jsx +0 -0
  12. package/{lib → jsx}/build/AppShell/AppShell.stories.jsx.map +0 -0
  13. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +45 -0
  14. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -0
  15. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js +291 -0
  16. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -0
  17. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +9 -0
  18. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -0
  19. package/jsx/build/FlowModeller/FlowModeller.mocks.js +411 -0
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +1 -0
  21. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +12 -0
  22. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -0
  23. package/{lib → jsx}/build/FlowModeller/FlowModeller.stories.jsx +0 -0
  24. package/{lib → jsx}/build/FlowModeller/FlowModeller.stories.jsx.map +0 -0
  25. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +201 -0
  26. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
  27. package/jsx/build/LifeCycle/LifeCycle.mocks.js +1128 -0
  28. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
  29. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +11 -0
  30. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
  31. package/{lib → jsx}/build/LifeCycle/LifeCycle.stories.jsx +0 -0
  32. package/{lib → jsx}/build/LifeCycle/LifeCycle.stories.jsx.map +0 -0
  33. package/jsx/build/LifeCycle/utils.d.ts +65 -0
  34. package/jsx/build/LifeCycle/utils.d.ts.map +1 -0
  35. package/jsx/build/LifeCycle/utils.js +218 -0
  36. package/jsx/build/LifeCycle/utils.js.map +1 -0
  37. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +12 -0
  38. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -0
  39. package/{lib → jsx}/build/PageTemplates/GalleryPage.stories.jsx +0 -0
  40. package/{lib → jsx}/build/PageTemplates/GalleryPage.stories.jsx.map +0 -0
  41. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +26 -0
  42. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  43. package/{lib → jsx}/build/PageTemplates/PageTemplates.stories.jsx +0 -0
  44. package/{lib → jsx}/build/PageTemplates/PageTemplates.stories.jsx.map +0 -0
  45. package/jsx/build/Workbench/Workbench.mocks.d.ts +9 -0
  46. package/jsx/build/Workbench/Workbench.mocks.d.ts.map +1 -0
  47. package/jsx/build/Workbench/Workbench.mocks.js +67 -0
  48. package/jsx/build/Workbench/Workbench.mocks.js.map +1 -0
  49. package/jsx/build/Workbench/Workbench.stories.d.ts +10 -0
  50. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -0
  51. package/{lib → jsx}/build/Workbench/Workbench.stories.jsx +0 -0
  52. package/{lib → jsx}/build/Workbench/Workbench.stories.jsx.map +0 -0
  53. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +10 -0
  54. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -0
  55. package/{lib → jsx}/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -0
  56. package/{lib → jsx}/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -0
  57. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +6 -0
  58. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -0
  59. package/jsx/condition-builder/ConditionBuilder/props.mock.js +113 -0
  60. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -0
  61. package/jsx/core/AppShell/AppShell.mocks.d.ts +15 -0
  62. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -0
  63. package/{lib → jsx}/core/AppShell/AppShell.mocks.jsx +0 -0
  64. package/{lib → jsx}/core/AppShell/AppShell.mocks.jsx.map +0 -0
  65. package/jsx/core/AppShell/AppShell.stories.d.ts +31 -0
  66. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -0
  67. package/{lib → jsx}/core/AppShell/AppShell.stories.jsx +0 -0
  68. package/{lib → jsx}/core/AppShell/AppShell.stories.jsx.map +0 -0
  69. package/jsx/core/AppShell/AppShell.styles.d.ts +2 -0
  70. package/jsx/core/AppShell/AppShell.styles.d.ts.map +1 -0
  71. package/jsx/core/AppShell/AppShell.styles.js +5 -0
  72. package/jsx/core/AppShell/AppShell.styles.js.map +1 -0
  73. package/jsx/core/Avatar/Avatar.stories.d.ts +10 -0
  74. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -0
  75. package/{lib → jsx}/core/Avatar/Avatar.stories.jsx +0 -0
  76. package/{lib → jsx}/core/Avatar/Avatar.stories.jsx.map +0 -0
  77. package/jsx/core/Backdrop/Backdrop.stories.d.ts +7 -0
  78. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -0
  79. package/{lib → jsx}/core/Backdrop/Backdrop.stories.jsx +0 -0
  80. package/{lib → jsx}/core/Backdrop/Backdrop.stories.jsx.map +0 -0
  81. package/jsx/core/Badges/Alert.stories.d.ts +6 -0
  82. package/jsx/core/Badges/Alert.stories.d.ts.map +1 -0
  83. package/{lib → jsx}/core/Badges/Alert.stories.jsx +0 -0
  84. package/{lib → jsx}/core/Badges/Alert.stories.jsx.map +0 -0
  85. package/jsx/core/Badges/Count.stories.d.ts +6 -0
  86. package/jsx/core/Badges/Count.stories.d.ts.map +1 -0
  87. package/{lib → jsx}/core/Badges/Count.stories.jsx +0 -0
  88. package/{lib → jsx}/core/Badges/Count.stories.jsx.map +0 -0
  89. package/jsx/core/Badges/Selection.stories.d.ts +6 -0
  90. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -0
  91. package/{lib → jsx}/core/Badges/Selection.stories.jsx +0 -0
  92. package/{lib → jsx}/core/Badges/Selection.stories.jsx.map +0 -0
  93. package/jsx/core/Badges/Status.stories.d.ts +6 -0
  94. package/jsx/core/Badges/Status.stories.d.ts.map +1 -0
  95. package/{lib → jsx}/core/Badges/Status.stories.jsx +0 -0
  96. package/{lib → jsx}/core/Badges/Status.stories.jsx.map +0 -0
  97. package/jsx/core/Badges/Tag.stories.d.ts +6 -0
  98. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -0
  99. package/{lib → jsx}/core/Badges/Tag.stories.jsx +0 -0
  100. package/{lib → jsx}/core/Badges/Tag.stories.jsx.map +0 -0
  101. package/jsx/core/Banner/Banner.stories.d.ts +22 -0
  102. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -0
  103. package/{lib → jsx}/core/Banner/Banner.stories.jsx +0 -0
  104. package/{lib → jsx}/core/Banner/Banner.stories.jsx.map +0 -0
  105. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +6 -0
  106. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -0
  107. package/{lib → jsx}/core/Boolean/BooleanDisplay.stories.jsx +0 -0
  108. package/{lib → jsx}/core/Boolean/BooleanDisplay.stories.jsx.map +0 -0
  109. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
  110. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
  111. package/{lib → jsx}/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -0
  112. package/{lib → jsx}/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -0
  113. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
  114. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -0
  115. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +12 -0
  116. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +1 -0
  117. package/jsx/core/Button/Button.stories.d.ts +12 -0
  118. package/jsx/core/Button/Button.stories.d.ts.map +1 -0
  119. package/{lib → jsx}/core/Button/Button.stories.jsx +0 -0
  120. package/{lib → jsx}/core/Button/Button.stories.jsx.map +0 -0
  121. package/jsx/core/Card/Card.stories.d.ts +8 -0
  122. package/jsx/core/Card/Card.stories.d.ts.map +1 -0
  123. package/{lib → jsx}/core/Card/Card.stories.jsx +0 -0
  124. package/{lib → jsx}/core/Card/Card.stories.jsx.map +0 -0
  125. package/jsx/core/Card/Card.styles.d.ts +2 -0
  126. package/jsx/core/Card/Card.styles.d.ts.map +1 -0
  127. package/jsx/core/Card/Card.styles.js +5 -0
  128. package/jsx/core/Card/Card.styles.js.map +1 -0
  129. package/jsx/core/Checkbox/Checkbox.stories.d.ts +7 -0
  130. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -0
  131. package/{lib → jsx}/core/Checkbox/Checkbox.stories.jsx +0 -0
  132. package/{lib → jsx}/core/Checkbox/Checkbox.stories.jsx.map +0 -0
  133. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
  134. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -0
  135. package/{lib → jsx}/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -0
  136. package/{lib → jsx}/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -0
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -0
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -0
  139. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +9 -0
  140. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +1 -0
  141. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +8 -0
  142. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
  143. package/{lib → jsx}/core/ColorPicker/ColorPicker.stories.jsx +0 -0
  144. package/{lib → jsx}/core/ColorPicker/ColorPicker.stories.jsx.map +0 -0
  145. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +24 -0
  146. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -0
  147. package/jsx/core/ComboBox/ComboBox.mocks.js +54 -0
  148. package/jsx/core/ComboBox/ComboBox.mocks.js.map +1 -0
  149. package/jsx/core/ComboBox/ComboBox.stories.d.ts +21 -0
  150. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -0
  151. package/{lib → jsx}/core/ComboBox/ComboBox.stories.jsx +0 -0
  152. package/{lib → jsx}/core/ComboBox/ComboBox.stories.jsx.map +0 -0
  153. package/jsx/core/Configuration/Configuration.stories.d.ts +10 -0
  154. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -0
  155. package/{lib → jsx}/core/Configuration/Configuration.stories.jsx +0 -0
  156. package/{lib → jsx}/core/Configuration/Configuration.stories.jsx.map +0 -0
  157. package/jsx/core/Currency/Currency.stories.d.ts +11 -0
  158. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -0
  159. package/{lib → jsx}/core/Currency/Currency.stories.jsx +0 -0
  160. package/{lib → jsx}/core/Currency/Currency.stories.jsx.map +0 -0
  161. package/jsx/core/DateTime/DateTime.stories.d.ts +20 -0
  162. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -0
  163. package/{lib → jsx}/core/DateTime/DateTime.stories.jsx +0 -0
  164. package/{lib → jsx}/core/DateTime/DateTime.stories.jsx.map +0 -0
  165. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +7 -0
  166. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -0
  167. package/{lib → jsx}/core/DateTime/DateTimeDisplay.stories.jsx +0 -0
  168. package/{lib → jsx}/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -0
  169. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +7 -0
  170. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -0
  171. package/{lib → jsx}/core/DateTime/DateTimePicker.stories.jsx +0 -0
  172. package/{lib → jsx}/core/DateTime/DateTimePicker.stories.jsx.map +0 -0
  173. package/jsx/core/Drawer/Drawer.stories.d.ts +7 -0
  174. package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -0
  175. package/{lib → jsx}/core/Drawer/Drawer.stories.jsx +0 -0
  176. package/{lib → jsx}/core/Drawer/Drawer.stories.jsx.map +0 -0
  177. package/jsx/core/Drawer/Drawer.styles.d.ts +2 -0
  178. package/jsx/core/Drawer/Drawer.styles.d.ts.map +1 -0
  179. package/jsx/core/Drawer/Drawer.styles.js +11 -0
  180. package/jsx/core/Drawer/Drawer.styles.js.map +1 -0
  181. package/jsx/core/Email/EmailDisplay.stories.d.ts +6 -0
  182. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -0
  183. package/{lib → jsx}/core/Email/EmailDisplay.stories.jsx +0 -0
  184. package/{lib → jsx}/core/Email/EmailDisplay.stories.jsx.map +0 -0
  185. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +8 -0
  186. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -0
  187. package/{lib → jsx}/core/EmojiPicker/EmojiPicker.stories.jsx +0 -0
  188. package/{lib → jsx}/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -0
  189. package/jsx/core/EmptyState/EmptyState.stories.d.ts +6 -0
  190. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -0
  191. package/{lib → jsx}/core/EmptyState/EmptyState.stories.jsx +0 -0
  192. package/{lib → jsx}/core/EmptyState/EmptyState.stories.jsx.map +0 -0
  193. package/jsx/core/ErrorState/ErrorState.stories.d.ts +9 -0
  194. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -0
  195. package/{lib → jsx}/core/ErrorState/ErrorState.stories.jsx +0 -0
  196. package/{lib → jsx}/core/ErrorState/ErrorState.stories.jsx.map +0 -0
  197. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +7 -0
  198. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -0
  199. package/{lib → jsx}/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -0
  200. package/{lib → jsx}/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -0
  201. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +4 -0
  202. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -0
  203. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +12 -0
  204. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +1 -0
  205. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +11 -0
  206. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -0
  207. package/{lib → jsx}/core/FieldGroup/FieldGroup.stories.jsx +0 -0
  208. package/{lib → jsx}/core/FieldGroup/FieldGroup.stories.jsx.map +0 -0
  209. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +10 -0
  210. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -0
  211. package/{lib → jsx}/core/FieldGroup/FieldGroupList.stories.jsx +0 -0
  212. package/{lib → jsx}/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -0
  213. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +10 -0
  214. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -0
  215. package/{lib → jsx}/core/FieldValueList/FieldValueList.stories.jsx +0 -0
  216. package/{lib → jsx}/core/FieldValueList/FieldValueList.stories.jsx.map +0 -0
  217. package/jsx/core/File/FileDisplay.stories.d.ts +13 -0
  218. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -0
  219. package/{lib → jsx}/core/File/FileDisplay.stories.jsx +0 -0
  220. package/{lib → jsx}/core/File/FileDisplay.stories.jsx.map +0 -0
  221. package/jsx/core/File/FileInput.stories.d.ts +9 -0
  222. package/jsx/core/File/FileInput.stories.d.ts.map +1 -0
  223. package/{lib → jsx}/core/File/FileInput.stories.jsx +0 -0
  224. package/{lib → jsx}/core/File/FileInput.stories.jsx.map +0 -0
  225. package/jsx/core/Flex/Flex.styles.d.ts +10 -0
  226. package/jsx/core/Flex/Flex.styles.d.ts.map +1 -0
  227. package/jsx/core/Flex/Flex.styles.js +41 -0
  228. package/jsx/core/Flex/Flex.styles.js.map +1 -0
  229. package/jsx/core/Flex/FlexContainer.stories.d.ts +20 -0
  230. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -0
  231. package/{lib → jsx}/core/Flex/FlexContainer.stories.jsx +0 -0
  232. package/{lib → jsx}/core/Flex/FlexContainer.stories.jsx.map +0 -0
  233. package/jsx/core/Flex/FlexItem.stories.d.ts +13 -0
  234. package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -0
  235. package/{lib → jsx}/core/Flex/FlexItem.stories.jsx +0 -0
  236. package/{lib → jsx}/core/Flex/FlexItem.stories.jsx.map +0 -0
  237. package/jsx/core/Form/Form.stories.d.ts +21 -0
  238. package/jsx/core/Form/Form.stories.d.ts.map +1 -0
  239. package/{lib → jsx}/core/Form/Form.stories.jsx +0 -0
  240. package/{lib → jsx}/core/Form/Form.stories.jsx.map +0 -0
  241. package/jsx/core/Grid/Grid.styles.d.ts +6 -0
  242. package/jsx/core/Grid/Grid.styles.d.ts.map +1 -0
  243. package/jsx/core/Grid/Grid.styles.js +36 -0
  244. package/jsx/core/Grid/Grid.styles.js.map +1 -0
  245. package/jsx/core/Grid/GridContainer.stories.d.ts +23 -0
  246. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -0
  247. package/{lib → jsx}/core/Grid/GridContainer.stories.jsx +0 -0
  248. package/{lib → jsx}/core/Grid/GridContainer.stories.jsx.map +0 -0
  249. package/jsx/core/Grid/GridItem.stories.d.ts +13 -0
  250. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -0
  251. package/{lib → jsx}/core/Grid/GridItem.stories.jsx +0 -0
  252. package/{lib → jsx}/core/Grid/GridItem.stories.jsx.map +0 -0
  253. package/jsx/core/Icon/Icon.stories.d.ts +8 -0
  254. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -0
  255. package/{lib → jsx}/core/Icon/Icon.stories.jsx +0 -0
  256. package/{lib → jsx}/core/Icon/Icon.stories.jsx.map +0 -0
  257. package/jsx/core/IconPicker/IconPicker.stories.d.ts +6 -0
  258. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -0
  259. package/{lib → jsx}/core/IconPicker/IconPicker.stories.jsx +0 -0
  260. package/{lib → jsx}/core/IconPicker/IconPicker.stories.jsx.map +0 -0
  261. package/jsx/core/Image/Image.stories.d.ts +6 -0
  262. package/jsx/core/Image/Image.stories.d.ts.map +1 -0
  263. package/{lib → jsx}/core/Image/Image.stories.jsx +0 -0
  264. package/{lib → jsx}/core/Image/Image.stories.jsx.map +0 -0
  265. package/jsx/core/Input/Input.stories.d.ts +9 -0
  266. package/jsx/core/Input/Input.stories.d.ts.map +1 -0
  267. package/{lib → jsx}/core/Input/Input.stories.jsx +0 -0
  268. package/{lib → jsx}/core/Input/Input.stories.jsx.map +0 -0
  269. package/jsx/core/Label/Label.stories.d.ts +6 -0
  270. package/jsx/core/Label/Label.stories.d.ts.map +1 -0
  271. package/{lib → jsx}/core/Label/Label.stories.jsx +0 -0
  272. package/{lib → jsx}/core/Label/Label.stories.jsx.map +0 -0
  273. package/jsx/core/Lightbox/Lightbox.stories.d.ts +9 -0
  274. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -0
  275. package/{lib → jsx}/core/Lightbox/Lightbox.stories.jsx +0 -0
  276. package/{lib → jsx}/core/Lightbox/Lightbox.stories.jsx.map +0 -0
  277. package/jsx/core/Link/Link.stories.d.ts +8 -0
  278. package/jsx/core/Link/Link.stories.d.ts.map +1 -0
  279. package/{lib → jsx}/core/Link/Link.stories.jsx +0 -0
  280. package/{lib → jsx}/core/Link/Link.stories.jsx.map +0 -0
  281. package/jsx/core/List/CommaSeparatedList.stories.d.ts +6 -0
  282. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -0
  283. package/{lib → jsx}/core/List/CommaSeparatedList.stories.jsx +0 -0
  284. package/{lib → jsx}/core/List/CommaSeparatedList.stories.jsx.map +0 -0
  285. package/jsx/core/List/OrderedList.stories.d.ts +10 -0
  286. package/jsx/core/List/OrderedList.stories.d.ts.map +1 -0
  287. package/{lib → jsx}/core/List/OrderedList.stories.jsx +0 -0
  288. package/{lib → jsx}/core/List/OrderedList.stories.jsx.map +0 -0
  289. package/jsx/core/List/UnorderedList.stories.d.ts +10 -0
  290. package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -0
  291. package/{lib → jsx}/core/List/UnorderedList.stories.jsx +0 -0
  292. package/{lib → jsx}/core/List/UnorderedList.stories.jsx.map +0 -0
  293. package/jsx/core/Location/Location.stories.d.ts +12 -0
  294. package/jsx/core/Location/Location.stories.d.ts.map +1 -0
  295. package/{lib → jsx}/core/Location/Location.stories.jsx +0 -0
  296. package/{lib → jsx}/core/Location/Location.stories.jsx.map +0 -0
  297. package/jsx/core/Menu/Menu.mocks.d.ts +4 -0
  298. package/jsx/core/Menu/Menu.mocks.d.ts.map +1 -0
  299. package/jsx/core/Menu/Menu.mocks.js +179 -0
  300. package/jsx/core/Menu/Menu.mocks.js.map +1 -0
  301. package/jsx/core/Menu/Menu.stories.d.ts +17 -0
  302. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -0
  303. package/{lib → jsx}/core/Menu/Menu.stories.jsx +0 -0
  304. package/{lib → jsx}/core/Menu/Menu.stories.jsx.map +0 -0
  305. package/jsx/core/Menu/Menu.styles.d.ts +2 -0
  306. package/jsx/core/Menu/Menu.styles.d.ts.map +1 -0
  307. package/jsx/core/Menu/Menu.styles.js +6 -0
  308. package/jsx/core/Menu/Menu.styles.js.map +1 -0
  309. package/jsx/core/MenuButton/MenuButton.stories.d.ts +15 -0
  310. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -0
  311. package/{lib → jsx}/core/MenuButton/MenuButton.stories.jsx +0 -0
  312. package/{lib → jsx}/core/MenuButton/MenuButton.stories.jsx.map +0 -0
  313. package/jsx/core/MetaList/MetaList.stories.d.ts +9 -0
  314. package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -0
  315. package/{lib → jsx}/core/MetaList/MetaList.stories.jsx +0 -0
  316. package/{lib → jsx}/core/MetaList/MetaList.stories.jsx.map +0 -0
  317. package/jsx/core/Modal/Modal.mocks.d.ts +4 -0
  318. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -0
  319. package/{lib → jsx}/core/Modal/Modal.mocks.jsx +0 -0
  320. package/{lib → jsx}/core/Modal/Modal.mocks.jsx.map +0 -0
  321. package/jsx/core/Modal/Modal.stories.d.ts +20 -0
  322. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -0
  323. package/{lib → jsx}/core/Modal/Modal.stories.jsx +0 -0
  324. package/{lib → jsx}/core/Modal/Modal.stories.jsx.map +0 -0
  325. package/jsx/core/MultiStep/MultiStep.stories.d.ts +6 -0
  326. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -0
  327. package/{lib → jsx}/core/MultiStep/MultiStep.stories.jsx +0 -0
  328. package/{lib → jsx}/core/MultiStep/MultiStep.stories.jsx.map +0 -0
  329. package/jsx/core/Number/Number.stories.d.ts +13 -0
  330. package/jsx/core/Number/Number.stories.d.ts.map +1 -0
  331. package/{lib → jsx}/core/Number/Number.stories.jsx +0 -0
  332. package/{lib → jsx}/core/Number/Number.stories.jsx.map +0 -0
  333. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +3 -0
  334. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  335. package/jsx/core/PageTemplates/PageTemplates.mocks.js +10 -0
  336. package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +1 -0
  337. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +28 -0
  338. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  339. package/{lib → jsx}/core/PageTemplates/PageTemplates.stories.jsx +0 -0
  340. package/{lib → jsx}/core/PageTemplates/PageTemplates.stories.jsx.map +0 -0
  341. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +4 -0
  342. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -0
  343. package/jsx/core/PageTemplates/PageTemplates.styles.js +31 -0
  344. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -0
  345. package/jsx/core/Pagination/Pagination.stories.d.ts +6 -0
  346. package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -0
  347. package/{lib → jsx}/core/Pagination/Pagination.stories.jsx +0 -0
  348. package/{lib → jsx}/core/Pagination/Pagination.stories.jsx.map +0 -0
  349. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +6 -0
  350. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -0
  351. package/{lib → jsx}/core/Paragraph/ParagraphDisplay.stories.jsx +0 -0
  352. package/{lib → jsx}/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -0
  353. package/jsx/core/Phone/Phone.stories.d.ts +7 -0
  354. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -0
  355. package/{lib → jsx}/core/Phone/Phone.stories.jsx +0 -0
  356. package/{lib → jsx}/core/Phone/Phone.stories.jsx.map +0 -0
  357. package/jsx/core/Popover/Popover.stories.d.ts +8 -0
  358. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -0
  359. package/{lib → jsx}/core/Popover/Popover.stories.jsx +0 -0
  360. package/{lib → jsx}/core/Popover/Popover.stories.jsx.map +0 -0
  361. package/jsx/core/Progress/Progress.stories.d.ts +7 -0
  362. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -0
  363. package/{lib → jsx}/core/Progress/Progress.stories.jsx +0 -0
  364. package/{lib → jsx}/core/Progress/Progress.stories.jsx.map +0 -0
  365. package/jsx/core/Progress/Progress.styles.d.ts +2 -0
  366. package/jsx/core/Progress/Progress.styles.d.ts.map +1 -0
  367. package/jsx/core/Progress/Progress.styles.js +13 -0
  368. package/jsx/core/Progress/Progress.styles.js.map +1 -0
  369. package/jsx/core/RadioButton/RadioButton.stories.d.ts +7 -0
  370. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -0
  371. package/{lib → jsx}/core/RadioButton/RadioButton.stories.jsx +0 -0
  372. package/{lib → jsx}/core/RadioButton/RadioButton.stories.jsx.map +0 -0
  373. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -0
  374. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
  375. package/{lib → jsx}/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -0
  376. package/{lib → jsx}/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -0
  377. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +4 -0
  378. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -0
  379. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +9 -0
  380. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +1 -0
  381. package/jsx/core/Rating/Rating.stories.d.ts +6 -0
  382. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -0
  383. package/{lib → jsx}/core/Rating/Rating.stories.jsx +0 -0
  384. package/{lib → jsx}/core/Rating/Rating.stories.jsx.map +0 -0
  385. package/jsx/core/SearchInput/SearchInput.stories.d.ts +6 -0
  386. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -0
  387. package/{lib → jsx}/core/SearchInput/SearchInput.stories.jsx +0 -0
  388. package/{lib → jsx}/core/SearchInput/SearchInput.stories.jsx.map +0 -0
  389. package/jsx/core/Select/Select.stories.d.ts +9 -0
  390. package/jsx/core/Select/Select.stories.d.ts.map +1 -0
  391. package/{lib → jsx}/core/Select/Select.stories.jsx +0 -0
  392. package/{lib → jsx}/core/Select/Select.stories.jsx.map +0 -0
  393. package/jsx/core/Sentiment/Sentiment.stories.d.ts +14 -0
  394. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -0
  395. package/{lib → jsx}/core/Sentiment/Sentiment.stories.jsx +0 -0
  396. package/{lib → jsx}/core/Sentiment/Sentiment.stories.jsx.map +0 -0
  397. package/jsx/core/Slider/Slider.stories.d.ts +11 -0
  398. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -0
  399. package/{lib → jsx}/core/Slider/Slider.stories.jsx +0 -0
  400. package/{lib → jsx}/core/Slider/Slider.stories.jsx.map +0 -0
  401. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +11 -0
  402. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -0
  403. package/{lib → jsx}/core/SummaryItem/SummaryItem.stories.jsx +0 -0
  404. package/{lib → jsx}/core/SummaryItem/SummaryItem.stories.jsx.map +0 -0
  405. package/jsx/core/SummaryList/SummaryList.mocks.d.ts +32 -0
  406. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -0
  407. package/{lib → jsx}/core/SummaryList/SummaryList.mocks.jsx +0 -0
  408. package/{lib → jsx}/core/SummaryList/SummaryList.mocks.jsx.map +0 -0
  409. package/jsx/core/SummaryList/SummaryList.stories.d.ts +13 -0
  410. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -0
  411. package/{lib → jsx}/core/SummaryList/SummaryList.stories.jsx +0 -0
  412. package/{lib → jsx}/core/SummaryList/SummaryList.stories.jsx.map +0 -0
  413. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  414. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -0
  415. package/{lib → jsx}/core/Switch/Switch.stories.jsx +0 -0
  416. package/{lib → jsx}/core/Switch/Switch.stories.jsx.map +0 -0
  417. package/jsx/core/Switch/Switch.styles.d.ts +2 -0
  418. package/jsx/core/Switch/Switch.styles.d.ts.map +1 -0
  419. package/jsx/core/Switch/Switch.styles.js +13 -0
  420. package/jsx/core/Switch/Switch.styles.js.map +1 -0
  421. package/jsx/core/Table/Table.mocks.d.ts +19 -0
  422. package/jsx/core/Table/Table.mocks.d.ts.map +1 -0
  423. package/{lib → jsx}/core/Table/Table.mocks.jsx +0 -0
  424. package/{lib → jsx}/core/Table/Table.mocks.jsx.map +0 -0
  425. package/jsx/core/Table/Table.stories.d.ts +14 -0
  426. package/jsx/core/Table/Table.stories.d.ts.map +1 -0
  427. package/{lib → jsx}/core/Table/Table.stories.jsx +0 -0
  428. package/{lib → jsx}/core/Table/Table.stories.jsx.map +0 -0
  429. package/jsx/core/Table/Table.styles.d.ts +4 -0
  430. package/jsx/core/Table/Table.styles.d.ts.map +1 -0
  431. package/jsx/core/Table/Table.styles.js +9 -0
  432. package/jsx/core/Table/Table.styles.js.map +1 -0
  433. package/jsx/core/Tabs/Tabs.stories.d.ts +7 -0
  434. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -0
  435. package/{lib → jsx}/core/Tabs/Tabs.stories.jsx +0 -0
  436. package/{lib → jsx}/core/Tabs/Tabs.stories.jsx.map +0 -0
  437. package/jsx/core/Text/Text.stories.d.ts +6 -0
  438. package/jsx/core/Text/Text.stories.d.ts.map +1 -0
  439. package/{lib → jsx}/core/Text/Text.stories.jsx +0 -0
  440. package/{lib → jsx}/core/Text/Text.stories.jsx.map +0 -0
  441. package/jsx/core/TextArea/TextArea.stories.d.ts +6 -0
  442. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -0
  443. package/{lib → jsx}/core/TextArea/TextArea.stories.jsx +0 -0
  444. package/{lib → jsx}/core/TextArea/TextArea.stories.jsx.map +0 -0
  445. package/jsx/core/Toaster/Toaster.stories.d.ts +6 -0
  446. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -0
  447. package/{lib → jsx}/core/Toaster/Toaster.stories.jsx +0 -0
  448. package/{lib → jsx}/core/Toaster/Toaster.stories.jsx.map +0 -0
  449. package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -0
  450. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -0
  451. package/{lib → jsx}/core/Tooltip/Tooltip.stories.jsx +0 -0
  452. package/{lib → jsx}/core/Tooltip/Tooltip.stories.jsx.map +0 -0
  453. package/jsx/core/Tree/Tree.mocks.d.ts +2 -0
  454. package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -0
  455. package/jsx/core/Tree/Tree.mocks.js +20 -0
  456. package/jsx/core/Tree/Tree.mocks.js.map +1 -0
  457. package/jsx/core/Tree/Tree.stories.d.ts +8 -0
  458. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -0
  459. package/{lib → jsx}/core/Tree/Tree.stories.jsx +0 -0
  460. package/{lib → jsx}/core/Tree/Tree.stories.jsx.map +0 -0
  461. package/jsx/core/Tree/Tree.styles.d.ts +3 -0
  462. package/jsx/core/Tree/Tree.styles.d.ts.map +1 -0
  463. package/jsx/core/Tree/Tree.styles.js +10 -0
  464. package/jsx/core/Tree/Tree.styles.js.map +1 -0
  465. package/jsx/core/URL/URL.stories.d.ts +6 -0
  466. package/jsx/core/URL/URL.stories.d.ts.map +1 -0
  467. package/{lib → jsx}/core/URL/URL.stories.jsx +0 -0
  468. package/{lib → jsx}/core/URL/URL.stories.jsx.map +0 -0
  469. package/jsx/cs/Article/Article.mocks.d.ts +14 -0
  470. package/jsx/cs/Article/Article.mocks.d.ts.map +1 -0
  471. package/jsx/cs/Article/Article.mocks.js +14 -0
  472. package/jsx/cs/Article/Article.mocks.js.map +1 -0
  473. package/jsx/cs/Article/Article.stories.d.ts +15 -0
  474. package/jsx/cs/Article/Article.stories.d.ts.map +1 -0
  475. package/{lib → jsx}/cs/Article/Article.stories.jsx +0 -0
  476. package/{lib → jsx}/cs/Article/Article.stories.jsx.map +0 -0
  477. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts +21 -0
  478. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -0
  479. package/jsx/cs/ArticleList/ArticleList.mocks.js +102 -0
  480. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -0
  481. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +16 -0
  482. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -0
  483. package/{lib → jsx}/cs/ArticleList/ArticleList.stories.jsx +0 -0
  484. package/{lib → jsx}/cs/ArticleList/ArticleList.stories.jsx.map +0 -0
  485. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +45 -0
  486. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -0
  487. package/{lib → jsx}/cs/CSCaseView/CSAppShell.stories.jsx +0 -0
  488. package/{lib → jsx}/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -0
  489. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +57 -0
  490. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -0
  491. package/jsx/cs/CSCaseView/CSCaseView.mocks.js +224 -0
  492. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +1 -0
  493. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +16 -0
  494. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -0
  495. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +110 -0
  496. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -0
  497. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +13 -0
  498. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -0
  499. package/{lib → jsx}/cs/CallControlPanel/CallControlPanel.stories.jsx +0 -0
  500. package/{lib → jsx}/cs/CallControlPanel/CallControlPanel.stories.jsx.map +0 -0
  501. package/jsx/cs/DialPad/DialPad.stories.d.ts +9 -0
  502. package/jsx/cs/DialPad/DialPad.stories.d.ts.map +1 -0
  503. package/{lib → jsx}/cs/DialPad/DialPad.stories.jsx +0 -0
  504. package/{lib → jsx}/cs/DialPad/DialPad.stories.jsx.map +0 -0
  505. package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts +11 -0
  506. package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +1 -0
  507. package/jsx/cs/DialPad/DialPadKeyboardData.mock.js +20 -0
  508. package/jsx/cs/DialPad/DialPadKeyboardData.mock.js.map +1 -0
  509. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +13 -0
  510. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -0
  511. package/{lib → jsx}/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -0
  512. package/{lib → jsx}/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -0
  513. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -0
  514. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -0
  515. package/{lib → jsx}/cs/InteractionNotification/InteractionNotification.stories.jsx +0 -0
  516. package/{lib → jsx}/cs/InteractionNotification/InteractionNotification.stories.jsx.map +0 -0
  517. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +14 -0
  518. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -0
  519. package/{lib → jsx}/cs/InteractionTimer/InteractionTimer.stories.jsx +0 -0
  520. package/{lib → jsx}/cs/InteractionTimer/InteractionTimer.stories.jsx.map +0 -0
  521. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +13 -0
  522. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -0
  523. package/jsx/cs/TaskManager/TaskManager.mocks.js +140 -0
  524. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -0
  525. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -0
  526. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -0
  527. package/{lib → jsx}/cs/TaskManager/TaskManager.stories.jsx +0 -0
  528. package/{lib → jsx}/cs/TaskManager/TaskManager.stories.jsx.map +0 -0
  529. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +11 -0
  530. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -0
  531. package/{lib → jsx}/dnd/DragDropList/DragDropList.stories.jsx +0 -0
  532. package/{lib → jsx}/dnd/DragDropList/DragDropList.stories.jsx.map +0 -0
  533. package/jsx/rte/Editor/Editor.stories.d.ts +11 -0
  534. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -0
  535. package/jsx/rte/Editor/Editor.stories.jsx +121 -0
  536. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -0
  537. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +3 -0
  538. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +1 -0
  539. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -0
  540. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -0
  541. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +10 -0
  542. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -0
  543. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -0
  544. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -0
  545. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +7 -0
  546. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -0
  547. package/{lib → jsx}/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -0
  548. package/{lib → jsx}/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -0
  549. package/jsx/social/Chat/Chat.mocks.d.ts +385 -0
  550. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -0
  551. package/jsx/social/Chat/Chat.mocks.js +648 -0
  552. package/jsx/social/Chat/Chat.mocks.js.map +1 -0
  553. package/jsx/social/Chat/Chat.stories.d.ts +25 -0
  554. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -0
  555. package/{lib → jsx}/social/Chat/Chat.stories.jsx +0 -0
  556. package/{lib → jsx}/social/Chat/Chat.stories.jsx.map +0 -0
  557. package/jsx/social/Chat/RepeatingView.stories.d.ts +20 -0
  558. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -0
  559. package/{lib → jsx}/social/Chat/RepeatingView.stories.jsx +0 -0
  560. package/{lib → jsx}/social/Chat/RepeatingView.stories.jsx.map +0 -0
  561. package/jsx/social/Email/Email.mocks.d.ts +87 -0
  562. package/jsx/social/Email/Email.mocks.d.ts.map +1 -0
  563. package/{lib → jsx}/social/Email/Email.mocks.jsx +0 -0
  564. package/{lib → jsx}/social/Email/Email.mocks.jsx.map +0 -0
  565. package/jsx/social/Email/Email.stories.d.ts +28 -0
  566. package/jsx/social/Email/Email.stories.d.ts.map +1 -0
  567. package/{lib → jsx}/social/Email/Email.stories.jsx +0 -0
  568. package/{lib → jsx}/social/Email/Email.stories.jsx.map +0 -0
  569. package/jsx/social/Feed/Feed.mocks.d.ts +52 -0
  570. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -0
  571. package/{lib → jsx}/social/Feed/Feed.mocks.jsx +0 -0
  572. package/{lib → jsx}/social/Feed/Feed.mocks.jsx.map +0 -0
  573. package/jsx/social/Feed/Feed.stories.d.ts +15 -0
  574. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -0
  575. package/{lib → jsx}/social/Feed/Feed.stories.jsx +0 -0
  576. package/{lib → jsx}/social/Feed/Feed.stories.jsx.map +0 -0
  577. package/jsx/social/Feed/FeedNewPost.stories.d.ts +17 -0
  578. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -0
  579. package/{lib → jsx}/social/Feed/FeedNewPost.stories.jsx +0 -0
  580. package/{lib → jsx}/social/Feed/FeedNewPost.stories.jsx.map +0 -0
  581. package/jsx/social/Feed/FeedPost.stories.d.ts +9 -0
  582. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -0
  583. package/{lib → jsx}/social/Feed/FeedPost.stories.jsx +0 -0
  584. package/{lib → jsx}/social/Feed/FeedPost.stories.jsx.map +0 -0
  585. package/jsx/social/Feed/FeedReply.stories.d.ts +16 -0
  586. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -0
  587. package/{lib → jsx}/social/Feed/FeedReply.stories.jsx +0 -0
  588. package/{lib → jsx}/social/Feed/FeedReply.stories.jsx.map +0 -0
  589. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +15 -0
  590. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -0
  591. package/{lib → jsx}/social/Feed/FeedReplyInput.stories.jsx +0 -0
  592. package/{lib → jsx}/social/Feed/FeedReplyInput.stories.jsx.map +0 -0
  593. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +6 -0
  594. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -0
  595. package/{lib → jsx}/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -0
  596. package/{lib → jsx}/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -0
  597. package/jsx/work/CaseView/Attachments.mocks.d.ts +3 -0
  598. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -0
  599. package/{lib → jsx}/work/CaseView/Attachments.mocks.jsx +0 -0
  600. package/{lib → jsx}/work/CaseView/Attachments.mocks.jsx.map +0 -0
  601. package/jsx/work/CaseView/CaseView.mocks.d.ts +11 -0
  602. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -0
  603. package/{lib → jsx}/work/CaseView/CaseView.mocks.jsx +0 -0
  604. package/{lib → jsx}/work/CaseView/CaseView.mocks.jsx.map +0 -0
  605. package/jsx/work/CaseView/CaseView.stories.d.ts +34 -0
  606. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -0
  607. package/{lib → jsx}/work/CaseView/CaseView.stories.jsx +0 -0
  608. package/{lib → jsx}/work/CaseView/CaseView.stories.jsx.map +0 -0
  609. package/jsx/work/CaseView/Details.mocks.d.ts +3 -0
  610. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -0
  611. package/{lib → jsx}/work/CaseView/Details.mocks.jsx +0 -0
  612. package/{lib → jsx}/work/CaseView/Details.mocks.jsx.map +0 -0
  613. package/jsx/work/CaseView/FileService.mock.d.ts +28 -0
  614. package/jsx/work/CaseView/FileService.mock.d.ts.map +1 -0
  615. package/{lib → jsx}/work/CaseView/FileService.mock.jsx +0 -0
  616. package/{lib → jsx}/work/CaseView/FileService.mock.jsx.map +0 -0
  617. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +11 -0
  618. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -0
  619. package/{lib → jsx}/work/CaseView/MobileCaseView.stories.jsx +0 -0
  620. package/{lib → jsx}/work/CaseView/MobileCaseView.stories.jsx.map +0 -0
  621. package/jsx/work/CaseView/Pulse.mocks.d.ts +6 -0
  622. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -0
  623. package/{lib → jsx}/work/CaseView/Pulse.mocks.jsx +0 -0
  624. package/{lib → jsx}/work/CaseView/Pulse.mocks.jsx.map +0 -0
  625. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +10 -0
  626. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -0
  627. package/{lib → jsx}/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -0
  628. package/{lib → jsx}/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -0
  629. package/jsx/work/Confirmation/Confirmation.stories.d.ts +9 -0
  630. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -0
  631. package/{lib → jsx}/work/Confirmation/Confirmation.stories.jsx +0 -0
  632. package/{lib → jsx}/work/Confirmation/Confirmation.stories.jsx.map +0 -0
  633. package/jsx/work/Details/Details.stories.d.ts +5 -0
  634. package/jsx/work/Details/Details.stories.d.ts.map +1 -0
  635. package/{lib → jsx}/work/Details/Details.stories.jsx +0 -0
  636. package/{lib → jsx}/work/Details/Details.stories.jsx.map +0 -0
  637. package/jsx/work/Glimpse/Glimpse.stories.d.ts +10 -0
  638. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -0
  639. package/{lib → jsx}/work/Glimpse/Glimpse.stories.jsx +0 -0
  640. package/{lib → jsx}/work/Glimpse/Glimpse.stories.jsx.map +0 -0
  641. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +8 -0
  642. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -0
  643. package/{lib → jsx}/work/SearchResults/SearchResults.mocks.jsx +0 -0
  644. package/{lib → jsx}/work/SearchResults/SearchResults.mocks.jsx.map +0 -0
  645. package/jsx/work/SearchResults/SearchResults.stories.d.ts +8 -0
  646. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -0
  647. package/{lib → jsx}/work/SearchResults/SearchResults.stories.jsx +0 -0
  648. package/{lib → jsx}/work/SearchResults/SearchResults.stories.jsx.map +0 -0
  649. package/jsx/work/Stages/Stages.stories.d.ts +11 -0
  650. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -0
  651. package/{lib → jsx}/work/Stages/Stages.stories.jsx +0 -0
  652. package/{lib → jsx}/work/Stages/Stages.stories.jsx.map +0 -0
  653. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +9 -0
  654. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -0
  655. package/{lib → jsx}/work/Stakeholders/Stakeholders.stories.jsx +0 -0
  656. package/{lib → jsx}/work/Stakeholders/Stakeholders.stories.jsx.map +0 -0
  657. package/jsx/work/Tags/Tags.mocks.d.ts +3 -0
  658. package/jsx/work/Tags/Tags.mocks.d.ts.map +1 -0
  659. package/jsx/work/Tags/Tags.mocks.js +76 -0
  660. package/jsx/work/Tags/Tags.mocks.js.map +1 -0
  661. package/jsx/work/Tags/Tags.stories.d.ts +10 -0
  662. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -0
  663. package/{lib → jsx}/work/Tags/Tags.stories.jsx +0 -0
  664. package/{lib → jsx}/work/Tags/Tags.stories.jsx.map +0 -0
  665. package/jsx/work/Tasks/TaskList.stories.d.ts +5 -0
  666. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -0
  667. package/{lib → jsx}/work/Tasks/TaskList.stories.jsx +0 -0
  668. package/{lib → jsx}/work/Tasks/TaskList.stories.jsx.map +0 -0
  669. package/jsx/work/Tasks/Tasks.stories.d.ts +9 -0
  670. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -0
  671. package/{lib → jsx}/work/Tasks/Tasks.stories.jsx +0 -0
  672. package/{lib → jsx}/work/Tasks/Tasks.stories.jsx.map +0 -0
  673. package/jsx/work/Timeline/Timeline.mocks.d.ts +3 -0
  674. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -0
  675. package/{lib → jsx}/work/Timeline/Timeline.mocks.jsx +0 -0
  676. package/{lib → jsx}/work/Timeline/Timeline.mocks.jsx.map +0 -0
  677. package/jsx/work/Timeline/Timeline.stories.d.ts +7 -0
  678. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -0
  679. package/{lib → jsx}/work/Timeline/Timeline.stories.jsx +0 -0
  680. package/{lib → jsx}/work/Timeline/Timeline.stories.jsx.map +0 -0
  681. package/lib/build/AppHeader/AppHeader.stories.js +66 -0
  682. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -0
  683. package/lib/build/AppShell/AppShell.stories.js +192 -0
  684. package/lib/build/AppShell/AppShell.stories.js.map +1 -0
  685. package/lib/build/FlowModeller/AddNodeUtils.mocks.js +1 -1
  686. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  687. package/lib/build/FlowModeller/FlowModeller.stories.js +197 -0
  688. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -0
  689. package/lib/build/LifeCycle/LifeCycle.stories.js +511 -0
  690. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -0
  691. package/lib/build/PageTemplates/GalleryPage.stories.js +127 -0
  692. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -0
  693. package/lib/build/PageTemplates/PageTemplates.stories.js +388 -0
  694. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -0
  695. package/lib/build/Workbench/Workbench.stories.js +114 -0
  696. package/lib/build/Workbench/Workbench.stories.js.map +1 -0
  697. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +166 -0
  698. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -0
  699. package/lib/core/AppShell/AppShell.mocks.js +142 -0
  700. package/lib/core/AppShell/AppShell.mocks.js.map +1 -0
  701. package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
  702. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  703. package/lib/core/AppShell/AppShell.stories.js +191 -0
  704. package/lib/core/AppShell/AppShell.stories.js.map +1 -0
  705. package/lib/core/Avatar/Avatar.stories.js +51 -0
  706. package/lib/core/Avatar/Avatar.stories.js.map +1 -0
  707. package/lib/core/Backdrop/Backdrop.stories.js +26 -0
  708. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -0
  709. package/lib/core/Badges/Alert.stories.js +16 -0
  710. package/lib/core/Badges/Alert.stories.js.map +1 -0
  711. package/lib/core/Badges/Count.stories.js +21 -0
  712. package/lib/core/Badges/Count.stories.js.map +1 -0
  713. package/lib/core/Badges/Selection.stories.js +10 -0
  714. package/lib/core/Badges/Selection.stories.js.map +1 -0
  715. package/lib/core/Badges/Status.stories.js +19 -0
  716. package/lib/core/Badges/Status.stories.js.map +1 -0
  717. package/lib/core/Badges/Tag.stories.js +10 -0
  718. package/lib/core/Badges/Tag.stories.js.map +1 -0
  719. package/lib/core/Banner/Banner.stories.js +110 -0
  720. package/lib/core/Banner/Banner.stories.js.map +1 -0
  721. package/lib/core/Boolean/BooleanDisplay.stories.js +20 -0
  722. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -0
  723. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +28 -0
  724. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
  725. package/lib/core/Button/Button.stories.js +64 -0
  726. package/lib/core/Button/Button.stories.js.map +1 -0
  727. package/lib/core/Card/Card.stories.js +32 -0
  728. package/lib/core/Card/Card.stories.js.map +1 -0
  729. package/lib/core/Checkbox/Checkbox.stories.js +29 -0
  730. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -0
  731. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +32 -0
  732. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -0
  733. package/lib/core/ColorPicker/ColorPicker.stories.js +76 -0
  734. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -0
  735. package/lib/core/ComboBox/ComboBox.stories.d.ts +10 -0
  736. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  737. package/lib/core/ComboBox/ComboBox.stories.js +376 -0
  738. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -0
  739. package/lib/core/Configuration/Configuration.stories.js +75 -0
  740. package/lib/core/Configuration/Configuration.stories.js.map +1 -0
  741. package/lib/core/Currency/Currency.stories.js +66 -0
  742. package/lib/core/Currency/Currency.stories.js.map +1 -0
  743. package/lib/core/DateTime/DateTime.stories.js +128 -0
  744. package/lib/core/DateTime/DateTime.stories.js.map +1 -0
  745. package/lib/core/DateTime/DateTimeDisplay.stories.js +47 -0
  746. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -0
  747. package/lib/core/DateTime/DateTimePicker.stories.js +35 -0
  748. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -0
  749. package/lib/core/Drawer/Drawer.stories.js +71 -0
  750. package/lib/core/Drawer/Drawer.stories.js.map +1 -0
  751. package/lib/core/Email/EmailDisplay.stories.js +20 -0
  752. package/lib/core/Email/EmailDisplay.stories.js.map +1 -0
  753. package/lib/core/EmojiPicker/EmojiPicker.stories.js +42 -0
  754. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -0
  755. package/lib/core/EmptyState/EmptyState.stories.js +19 -0
  756. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -0
  757. package/lib/core/ErrorState/ErrorState.stories.js +21 -0
  758. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -0
  759. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +28 -0
  760. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -0
  761. package/lib/core/FieldGroup/FieldGroup.stories.js +22 -0
  762. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -0
  763. package/lib/core/FieldGroup/FieldGroupList.stories.js +140 -0
  764. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -0
  765. package/lib/core/FieldValueList/FieldValueList.stories.js +51 -0
  766. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -0
  767. package/lib/core/File/FileDisplay.stories.js +96 -0
  768. package/lib/core/File/FileDisplay.stories.js.map +1 -0
  769. package/lib/core/File/FileInput.stories.js +78 -0
  770. package/lib/core/File/FileInput.stories.js.map +1 -0
  771. package/lib/core/Flex/FlexContainer.stories.js +79 -0
  772. package/lib/core/Flex/FlexContainer.stories.js.map +1 -0
  773. package/lib/core/Flex/FlexItem.stories.js +41 -0
  774. package/lib/core/Flex/FlexItem.stories.js.map +1 -0
  775. package/lib/core/Form/Form.stories.js +144 -0
  776. package/lib/core/Form/Form.stories.js.map +1 -0
  777. package/lib/core/Grid/GridContainer.stories.js +112 -0
  778. package/lib/core/Grid/GridContainer.stories.js.map +1 -0
  779. package/lib/core/Grid/GridItem.stories.js +36 -0
  780. package/lib/core/Grid/GridItem.stories.js.map +1 -0
  781. package/lib/core/Icon/Icon.stories.js +76 -0
  782. package/lib/core/Icon/Icon.stories.js.map +1 -0
  783. package/lib/core/IconPicker/IconPicker.stories.js +40 -0
  784. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -0
  785. package/lib/core/Image/Image.stories.js +10 -0
  786. package/lib/core/Image/Image.stories.js.map +1 -0
  787. package/lib/core/Input/Input.stories.js +45 -0
  788. package/lib/core/Input/Input.stories.js.map +1 -0
  789. package/lib/core/Label/Label.stories.js +16 -0
  790. package/lib/core/Label/Label.stories.js.map +1 -0
  791. package/lib/core/Lightbox/Lightbox.stories.js +110 -0
  792. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -0
  793. package/lib/core/Link/Link.stories.js +27 -0
  794. package/lib/core/Link/Link.stories.js.map +1 -0
  795. package/lib/core/List/CommaSeparatedList.stories.js +32 -0
  796. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -0
  797. package/lib/core/List/OrderedList.stories.js +39 -0
  798. package/lib/core/List/OrderedList.stories.js.map +1 -0
  799. package/lib/core/List/UnorderedList.stories.js +39 -0
  800. package/lib/core/List/UnorderedList.stories.js.map +1 -0
  801. package/lib/core/Location/Location.stories.js +123 -0
  802. package/lib/core/Location/Location.stories.js.map +1 -0
  803. package/lib/core/Menu/Menu.stories.js +150 -0
  804. package/lib/core/Menu/Menu.stories.js.map +1 -0
  805. package/lib/core/MenuButton/MenuButton.stories.js +185 -0
  806. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -0
  807. package/lib/core/MetaList/MetaList.stories.js +20 -0
  808. package/lib/core/MetaList/MetaList.stories.js.map +1 -0
  809. package/lib/core/Modal/Modal.mocks.js +36 -0
  810. package/lib/core/Modal/Modal.mocks.js.map +1 -0
  811. package/lib/core/Modal/Modal.stories.js +232 -0
  812. package/lib/core/Modal/Modal.stories.js.map +1 -0
  813. package/lib/core/MultiStep/MultiStep.stories.js +36 -0
  814. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -0
  815. package/lib/core/Number/Number.stories.js +111 -0
  816. package/lib/core/Number/Number.stories.js.map +1 -0
  817. package/lib/core/PageTemplates/PageTemplates.stories.js +226 -0
  818. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -0
  819. package/lib/core/Pagination/Pagination.stories.js +20 -0
  820. package/lib/core/Pagination/Pagination.stories.js.map +1 -0
  821. package/lib/core/Paragraph/ParagraphDisplay.stories.js +13 -0
  822. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -0
  823. package/lib/core/Phone/Phone.stories.js +43 -0
  824. package/lib/core/Phone/Phone.stories.js.map +1 -0
  825. package/lib/core/Popover/Popover.stories.js +96 -0
  826. package/lib/core/Popover/Popover.stories.js.map +1 -0
  827. package/lib/core/Progress/Progress.stories.js +64 -0
  828. package/lib/core/Progress/Progress.stories.js.map +1 -0
  829. package/lib/core/RadioButton/RadioButton.stories.js +27 -0
  830. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -0
  831. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +34 -0
  832. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -0
  833. package/lib/core/Rating/Rating.stories.js +22 -0
  834. package/lib/core/Rating/Rating.stories.js.map +1 -0
  835. package/lib/core/SearchInput/SearchInput.stories.js +16 -0
  836. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -0
  837. package/lib/core/Select/Select.stories.js +38 -0
  838. package/lib/core/Select/Select.stories.js.map +1 -0
  839. package/lib/core/Sentiment/Sentiment.stories.js +40 -0
  840. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -0
  841. package/lib/core/Slider/Slider.stories.js +59 -0
  842. package/lib/core/Slider/Slider.stories.js.map +1 -0
  843. package/lib/core/SummaryItem/SummaryItem.stories.js +32 -0
  844. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -0
  845. package/lib/core/SummaryList/SummaryList.mocks.js +34 -0
  846. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -0
  847. package/lib/core/SummaryList/SummaryList.stories.js +126 -0
  848. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -0
  849. package/lib/core/Switch/Switch.stories.js +25 -0
  850. package/lib/core/Switch/Switch.stories.js.map +1 -0
  851. package/lib/core/Table/Table.mocks.js +30 -0
  852. package/lib/core/Table/Table.mocks.js.map +1 -0
  853. package/lib/core/Table/Table.stories.js +54 -0
  854. package/lib/core/Table/Table.stories.js.map +1 -0
  855. package/lib/core/Tabs/Tabs.stories.js +42 -0
  856. package/lib/core/Tabs/Tabs.stories.js.map +1 -0
  857. package/lib/core/Text/Text.stories.js +21 -0
  858. package/lib/core/Text/Text.stories.js.map +1 -0
  859. package/lib/core/TextArea/TextArea.stories.js +44 -0
  860. package/lib/core/TextArea/TextArea.stories.js.map +1 -0
  861. package/lib/core/Toaster/Toaster.stories.js +25 -0
  862. package/lib/core/Toaster/Toaster.stories.js.map +1 -0
  863. package/lib/core/Tooltip/Tooltip.stories.js +11 -0
  864. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -0
  865. package/lib/core/Tree/Tree.mocks.js +2 -0
  866. package/lib/core/Tree/Tree.mocks.js.map +1 -1
  867. package/lib/core/Tree/Tree.stories.js +85 -0
  868. package/lib/core/Tree/Tree.stories.js.map +1 -0
  869. package/lib/core/URL/URL.stories.js +18 -0
  870. package/lib/core/URL/URL.stories.js.map +1 -0
  871. package/lib/cs/Article/Article.stories.js +85 -0
  872. package/lib/cs/Article/Article.stories.js.map +1 -0
  873. package/lib/cs/ArticleList/ArticleList.stories.js +83 -0
  874. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -0
  875. package/lib/cs/CSCaseView/CSAppShell.stories.js +240 -0
  876. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -0
  877. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +193 -0
  878. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -0
  879. package/lib/cs/DialPad/DialPad.stories.js +17 -0
  880. package/lib/cs/DialPad/DialPad.stories.js.map +1 -0
  881. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +335 -0
  882. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -0
  883. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +31 -0
  884. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -0
  885. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +86 -0
  886. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -0
  887. package/lib/cs/TaskManager/TaskManager.stories.js +299 -0
  888. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -0
  889. package/lib/dnd/DragDropList/DragDropList.stories.js +113 -0
  890. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -0
  891. package/lib/rte/Editor/Editor.stories.d.ts +11 -0
  892. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -0
  893. package/lib/rte/Editor/Editor.stories.js +102 -0
  894. package/lib/rte/Editor/Editor.stories.js.map +1 -0
  895. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +36 -0
  896. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -0
  897. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +114 -0
  898. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -0
  899. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +53 -0
  900. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -0
  901. package/lib/social/Chat/Chat.stories.d.ts +18 -0
  902. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  903. package/lib/social/Chat/Chat.stories.js +491 -0
  904. package/lib/social/Chat/Chat.stories.js.map +1 -0
  905. package/lib/social/Chat/RepeatingView.stories.js +89 -0
  906. package/lib/social/Chat/RepeatingView.stories.js.map +1 -0
  907. package/lib/social/Email/Email.mocks.js +350 -0
  908. package/lib/social/Email/Email.mocks.js.map +1 -0
  909. package/lib/social/Email/Email.stories.js +845 -0
  910. package/lib/social/Email/Email.stories.js.map +1 -0
  911. package/lib/social/Feed/Feed.mocks.js +307 -0
  912. package/lib/social/Feed/Feed.mocks.js.map +1 -0
  913. package/lib/social/Feed/Feed.stories.js +145 -0
  914. package/lib/social/Feed/Feed.stories.js.map +1 -0
  915. package/lib/social/Feed/FeedNewPost.stories.js +82 -0
  916. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -0
  917. package/lib/social/Feed/FeedPost.stories.js +239 -0
  918. package/lib/social/Feed/FeedPost.stories.js.map +1 -0
  919. package/lib/social/Feed/FeedReply.stories.js +95 -0
  920. package/lib/social/Feed/FeedReply.stories.js.map +1 -0
  921. package/lib/social/Feed/FeedReplyInput.stories.js +60 -0
  922. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -0
  923. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +31 -0
  924. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -0
  925. package/lib/work/CaseView/Attachments.mocks.js +373 -0
  926. package/lib/work/CaseView/Attachments.mocks.js.map +1 -0
  927. package/lib/work/CaseView/CaseView.mocks.js +116 -0
  928. package/lib/work/CaseView/CaseView.mocks.js.map +1 -0
  929. package/lib/work/CaseView/CaseView.stories.js +276 -0
  930. package/lib/work/CaseView/CaseView.stories.js.map +1 -0
  931. package/lib/work/CaseView/Details.mocks.js +7 -0
  932. package/lib/work/CaseView/Details.mocks.js.map +1 -0
  933. package/lib/work/CaseView/FileService.mock.js +158 -0
  934. package/lib/work/CaseView/FileService.mock.js.map +1 -0
  935. package/lib/work/CaseView/MobileCaseView.stories.js +28 -0
  936. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -0
  937. package/lib/work/CaseView/Pulse.mocks.js +25 -0
  938. package/lib/work/CaseView/Pulse.mocks.js.map +1 -0
  939. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +194 -0
  940. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -0
  941. package/lib/work/Confirmation/Confirmation.stories.js +18 -0
  942. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -0
  943. package/lib/work/Details/Details.stories.js +62 -0
  944. package/lib/work/Details/Details.stories.js.map +1 -0
  945. package/lib/work/Glimpse/Glimpse.stories.js +40 -0
  946. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -0
  947. package/lib/work/SearchResults/SearchResults.mocks.js +97 -0
  948. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -0
  949. package/lib/work/SearchResults/SearchResults.stories.js +198 -0
  950. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -0
  951. package/lib/work/Stages/Stages.stories.js +64 -0
  952. package/lib/work/Stages/Stages.stories.js.map +1 -0
  953. package/lib/work/Stakeholders/Stakeholders.stories.js +142 -0
  954. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -0
  955. package/lib/work/Tags/Tags.stories.js +62 -0
  956. package/lib/work/Tags/Tags.stories.js.map +1 -0
  957. package/lib/work/Tasks/TaskList.stories.js +18 -0
  958. package/lib/work/Tasks/TaskList.stories.js.map +1 -0
  959. package/lib/work/Tasks/Tasks.stories.js +80 -0
  960. package/lib/work/Tasks/Tasks.stories.js.map +1 -0
  961. package/lib/work/Timeline/Timeline.mocks.js +117 -0
  962. package/lib/work/Timeline/Timeline.mocks.js.map +1 -0
  963. package/lib/work/Timeline/Timeline.stories.js +44 -0
  964. package/lib/work/Timeline/Timeline.stories.js.map +1 -0
  965. package/package.json +13 -11
@@ -0,0 +1,491 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
3
+ import { action } from '@storybook/addon-actions';
4
+ import { radios, array, boolean, text, number, optionsKnob, button } from '@storybook/addon-knobs';
5
+ import { Button, Icon, registerIcon, Text, MenuButton, Flex, Popover, Link, Status, EmojiContext, createUID, useOuterEvent, TextArea, Select, Option, Menu, useElement, FieldValueList } from '@pega/cosmos-react-core';
6
+ import * as arrowMicroDownIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/arrow-micro-down.icon';
7
+ import * as replyIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/reply.icon';
8
+ import * as replyAllIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/reply-all.icon';
9
+ import * as forwardIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/forward.icon';
10
+ import { Chat, ChatHeader, ChatBody, ChatComposer, ChatTranscript, Message, MessageList as MessageListComp, NewMessageSeparatorId, SuggestedReplyPicker, SystemMessage, TranscriptMessage, TypeIndicator } from '@pega/cosmos-react-social';
11
+ import { ChatMockData } from './Chat.mocks';
12
+ registerIcon(forwardIcon, replyIcon, replyAllIcon, arrowMicroDownIcon);
13
+ export default {
14
+ title: 'Social/Chat',
15
+ component: Chat
16
+ };
17
+ const Channels = {
18
+ label: 'Channel',
19
+ options: {
20
+ LiveChat: {
21
+ title: 'Live chat',
22
+ icon: 'chat-solid'
23
+ },
24
+ Twitter: {
25
+ title: 'Twitter chat',
26
+ icon: 'twitter'
27
+ },
28
+ Facebook: {
29
+ title: 'Facebook messenger',
30
+ icon: 'facebook'
31
+ }
32
+ }
33
+ };
34
+ /** *********************** ChatHeader component - START *********************** */
35
+ export const chatHeader = () => {
36
+ const actionsConfig = (_jsxs(Flex, { children: [_jsx(Button, { variant: 'simple', "aria-label": 'Show transcripts', children: _jsxs(Flex, { container: {
37
+ gap: 1,
38
+ alignItems: 'center'
39
+ }, children: [_jsx(Icon, { name: 'chats' }, void 0), _jsx(Text, { children: "Transcripts" }, void 0)] }, void 0) }, void 0), _jsx(Button, { variant: 'simple', icon: true, "aria-label": 'chat info', children: _jsx(Icon, { name: 'information' }, void 0) }, void 0)] }, void 0));
40
+ return (_jsx(ChatHeader, { title: 'Live Chat', icon: 'chat-solid', "aria-label": 'Chat header', actions: actionsConfig }, void 0));
41
+ };
42
+ /** ***************************** ChatHeader component - END ******************* */
43
+ /** **************************** MessageList component - START ************************* */
44
+ export const MessageList = () => {
45
+ const messages = ChatMockData.chatMessages;
46
+ const [unReadMessageCount, setUnReadMessagesCount] = useState(1);
47
+ return (_jsx(Flex, { container: true, style: { height: '80vh' }, children: _jsx(MessageListComp, { tabIndex: 0, messages: messages, unReadMessageCount: unReadMessageCount, onScrollToButtonClick: () => {
48
+ setUnReadMessagesCount(0);
49
+ } }, void 0) }, void 0));
50
+ };
51
+ /** **************************** MessageList component - END **************************** */
52
+ /** ***************************** Message component - START ********************** */
53
+ export const messageComponent = () => {
54
+ /** Storybook knobs are used here to simulate the behavior of variant and direction prop in real time - start */
55
+ const MessageVariantPropValues = {
56
+ sender: 'sender',
57
+ receiver: 'receiver',
58
+ other: 'other'
59
+ };
60
+ const MessageDirectionPropValues = {
61
+ in: 'in',
62
+ out: 'out'
63
+ };
64
+ const variantProp = radios('Variant', MessageVariantPropValues, 'receiver');
65
+ const directionProp = radios('Direction', MessageDirectionPropValues, 'in');
66
+ /** Storybook knobs are used here to simulate the behavior of variant and direction prop in real time - end */
67
+ const attachments = [
68
+ {
69
+ id: '2499167340',
70
+ name: 'Location',
71
+ icon: 'document',
72
+ meta: 'PNG 0.1 MB',
73
+ thumbnail: 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'
74
+ },
75
+ {
76
+ id: '2499167341',
77
+ name: 'FAQ with detailed terms and conditions of the policy',
78
+ icon: 'document-pdf',
79
+ meta: 'PDF 0.7 MB'
80
+ }
81
+ ];
82
+ const pagePushLinks = [
83
+ {
84
+ id: '2499167349',
85
+ href: 'https://collaborate.pega.com/',
86
+ thumbnail: 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',
87
+ title: 'Ask the expert'
88
+ }
89
+ ];
90
+ return (_jsxs(_Fragment, { children: [_jsx(Message, { type: 'message', attachments: attachments, avatarInfo: { name: 'John Brown' }, status: 'Opened', timeStamp: '1:44 PM', message: 'Hi, Welcome to u-plus. How can I help you ?', variant: variantProp, direction: directionProp }, void 0), _jsx("br", {}, void 0), _jsx(Message, { type: 'message', message: 'Hi, Welcome to u-plus. How can I help you ?', avatarInfo: { name: 'John Brown' }, pagePushLinks: pagePushLinks, variant: variantProp, direction: directionProp }, void 0), _jsx("br", {}, void 0), _jsx(Message, { type: 'message', message: 'Hi, Welcome to u-plus. How can I help you ?', avatarInfo: { name: 'John Brown' }, variant: variantProp, direction: directionProp }, void 0)] }, void 0));
91
+ };
92
+ /** ***************************** Message component - END *********************** */
93
+ /** **************************** SystemMessage component - START ***************** */
94
+ export const systemMessage = () => (_jsx(SystemMessage, { message: 'John Brown has joined', timeStamp: '10:00 AM' }, void 0));
95
+ /** ***************************** SystemMessage component - END ******************** */
96
+ /** ***************************** TypeIndicator component - START ****************** */
97
+ export const typeIndicator = () => {
98
+ /** storybook knobs are used here to simulate the behavior of message prop in real time */
99
+ const TypeIndicatorMessageProp = text('message', '');
100
+ return _jsx(TypeIndicator, { avatarInfo: { name: 'John Brown' }, message: TypeIndicatorMessageProp }, void 0);
101
+ };
102
+ /** *************************** TypeIndicator component - END *********************** */
103
+ /** ************************** ChatTranscripts component - START ********************* */
104
+ export const chatTranscripts = () => {
105
+ return ChatMockData.transcripts.map((transcript) => {
106
+ return (_jsx(ChatTranscript, { tabIndex: 0, title: transcript.title, transcript: transcript.data }, transcript.id));
107
+ });
108
+ };
109
+ /** **************************** ChatTranscripts component - END ************************ */
110
+ /** *************************** TranscriptMessage component - START ****************** */
111
+ export const transcriptMessage = () => (_jsx(TranscriptMessage, { timeStamp: '01:20 PM', variant: 'bot', message: 'Hello\u2026 This is bot. How can I help you? Please select your category.' }, void 0));
112
+ /** *************************** TranscriptMessage component - END ******************** */
113
+ /** *************************** SuggestedReplyPicker component - START ****************** */
114
+ export const suggestedReplyPickerComponent = () => {
115
+ const suggestedReplies = [
116
+ {
117
+ id: createUID(),
118
+ message: 'Hello, Good morning Sara. How can I help you today',
119
+ confidence: 95
120
+ },
121
+ {
122
+ id: createUID(),
123
+ message: 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',
124
+ confidence: 75
125
+ }
126
+ ];
127
+ return (_jsx(SuggestedReplyPicker, { replies: suggestedReplies, onSelect: suggestedReply => {
128
+ action(`Suggested reply picked ${suggestedReply.message}`)();
129
+ }, onDismiss: action('Suggested reply dismissed') }, void 0));
130
+ };
131
+ /** *************************** SuggestedReplyPicker component - END ****************** */
132
+ /** ******************************* ChatComposer component - START ************************ */
133
+ export const chatComposer = () => (_jsxs(ChatComposer, { maxAttachments: number('Max Attachments', 2), attachments: ChatMockData.defaultAttachments, maxLength: 256, placeholder: 'Type here to send message', onSend: () => { }, children: [_jsx(MenuButton, { text: 'Phrases', menu: { items: [] } }, void 0), _jsx(MenuButton, { text: 'Page Push', menu: { items: [] } }, void 0)] }, void 0));
134
+ /** *********************************** ChatComposer component - END ********************** */
135
+ /** *********************************** Standard Chat component - START ******************** */
136
+ const allParticipants = ChatMockData.participants;
137
+ const chatParticipants = Object.keys(allParticipants).reduce((obj, key) => {
138
+ if (!allParticipants[key].avatarInfo) {
139
+ return obj;
140
+ }
141
+ const name = allParticipants[key].avatarInfo.name;
142
+ obj[name] = name;
143
+ return obj;
144
+ }, {});
145
+ const channelOptions = Object.keys(Channels.options).reduce((obj, key) => {
146
+ obj[key] = key;
147
+ return obj;
148
+ }, {});
149
+ export const StandardChat = ({ chatWidth = '30rem' }) => {
150
+ const ChatMockDataClone = useMemo(() => {
151
+ return JSON.parse(JSON.stringify(ChatMockData));
152
+ }, [ChatMockData]);
153
+ const { participants, chatMessages: mockChatMessagesJson, transcripts, defaultAttachments, suggestedReplies } = ChatMockDataClone;
154
+ const conversationRatingMessage = {
155
+ id: createUID(),
156
+ variant: 'receiver',
157
+ direction: 'in',
158
+ type: 'message',
159
+ message: (_jsxs(Flex, { container: {
160
+ direction: 'column',
161
+ gap: 1
162
+ }, children: [_jsx(TextArea, { placeholder: 'Please comment\u2026', label: 'Please comment on our service performance and how we can better serve you. Thank you for your time.' }, void 0), _jsxs(Select, { label: 'Is the problem resolved?', children: [_jsx(Option, { children: "Yes" }, void 0), _jsx(Option, { children: "No" }, void 0)] }, void 0), _jsx(Flex, { container: {
163
+ justify: 'center'
164
+ }, children: _jsx(Button, { variant: 'primary', children: "Submit" }, void 0) }, void 0)] }, void 0))
165
+ };
166
+ const mockChatMessages = useMemo(() => {
167
+ return [
168
+ ...mockChatMessagesJson.map(message => {
169
+ const { messagePrivacy, ...restMessageData } = message;
170
+ if (messagePrivacy) {
171
+ restMessageData.messageHeader = {
172
+ content: _jsx("span", { children: messagePrivacy }, void 0),
173
+ meta: _jsx(Link, { href: '/', children: "I-12345" }, void 0)
174
+ };
175
+ }
176
+ return restMessageData;
177
+ }),
178
+ conversationRatingMessage
179
+ ];
180
+ }, []);
181
+ const conversationRef = useRef(null);
182
+ const timers = useRef([]);
183
+ useEffect(() => {
184
+ return () => {
185
+ timers.current.forEach(clearTimeout);
186
+ };
187
+ }, []);
188
+ const selectedChannel = radios(Channels.label, channelOptions, Object.keys(channelOptions)[0]);
189
+ const actions = array('Actions', ['Transfer', 'End chat']).map(name => ({
190
+ primary: name,
191
+ id: name,
192
+ onClick: action(`Clicked ${name}`)
193
+ }));
194
+ const [showSuggestedReplies, setShowSuggestedReplies] = useState(true);
195
+ const disableChat = boolean('Disable chat', false);
196
+ const simulateConversation = boolean('Simulate conversation', false);
197
+ const placeHolder = text('Placeholder', 'Enter message');
198
+ const defaultMessage = text('Default message', 'Greetings! Hope you are having a great time, Please reach out to us for any help, Thanks!');
199
+ const maxLength = number('Max characters', 280);
200
+ const typers = optionsKnob('Participants typing', chatParticipants, '', {
201
+ display: 'multi-select'
202
+ });
203
+ const [showTranscripts, setShowTranscripts] = useState(false);
204
+ const [attachments, setAttachments] = useState(defaultAttachments);
205
+ const [unreadMessagesCount, setUnreadMessagesCount] = useState(0);
206
+ const [chatMessages, setChatMessages] = useState(simulateConversation ? mockChatMessages.slice(0, 0) : mockChatMessages);
207
+ const onDeleteAttachment = useCallback((name) => {
208
+ setAttachments(prevAttachments => prevAttachments.filter(item => item.name !== name));
209
+ }, [setAttachments]);
210
+ useEffect(() => {
211
+ setAttachments(defaultAttachments.map((item) => {
212
+ return {
213
+ ...item,
214
+ onDelete: onDeleteAttachment
215
+ };
216
+ }));
217
+ }, [defaultAttachments]);
218
+ const appendMessage = (message) => {
219
+ const incrementUnreadMessageCount = conversationRef.current?.isScrolledToLatest();
220
+ setChatMessages(prevChatMessages => {
221
+ const newMockMessage = {
222
+ ...message
223
+ };
224
+ newMockMessage.id = `m-${message.id ? message.id : prevChatMessages.length}`;
225
+ if (!incrementUnreadMessageCount &&
226
+ prevChatMessages.filter(({ id }) => id === NewMessageSeparatorId).length === 0) {
227
+ return [
228
+ ...prevChatMessages,
229
+ {
230
+ id: NewMessageSeparatorId,
231
+ type: 'system',
232
+ message: 'New messages',
233
+ variant: 'primary'
234
+ },
235
+ newMockMessage
236
+ ];
237
+ }
238
+ return [...prevChatMessages, newMockMessage];
239
+ });
240
+ if (!incrementUnreadMessageCount) {
241
+ setUnreadMessagesCount(prevCount => prevCount + 1);
242
+ }
243
+ };
244
+ useEffect(() => {
245
+ if (simulateConversation) {
246
+ const timeOutId = setTimeout(() => {
247
+ if (mockChatMessages.length) {
248
+ appendMessage(mockChatMessages.shift());
249
+ }
250
+ }, 1500);
251
+ return () => {
252
+ clearTimeout(timeOutId);
253
+ };
254
+ }
255
+ }, [chatMessages, simulateConversation]);
256
+ const customerMessage = text('Customer message', '');
257
+ button('Send customer message', () => {
258
+ appendMessage({
259
+ type: 'message',
260
+ ...participants.receiver,
261
+ message: customerMessage,
262
+ timeStamp: '1:45 PM'
263
+ });
264
+ return false;
265
+ });
266
+ const managerMessage = text('Manager message', '');
267
+ button('Send manager message', () => {
268
+ appendMessage({
269
+ type: 'message',
270
+ ...participants.other,
271
+ message: managerMessage,
272
+ timeStamp: '1:45 PM'
273
+ });
274
+ return false;
275
+ });
276
+ const typingIndicators = typers
277
+ .toString()
278
+ .split(',')
279
+ .filter(person => person !== '')
280
+ .map(name => {
281
+ let message = '';
282
+ if (name === participants.receiver.avatarInfo.name) {
283
+ message = customerMessage;
284
+ }
285
+ else if (name === participants.other.avatarInfo.name) {
286
+ message = managerMessage;
287
+ }
288
+ return {
289
+ id: name,
290
+ type: 'typing',
291
+ avatarInfo: {
292
+ name
293
+ },
294
+ message,
295
+ ariaLabel: `${name} is typing`
296
+ };
297
+ });
298
+ const [openPopover, setOpenPopover] = useState(false);
299
+ const [popoverRef, setPopoverRef] = useElement();
300
+ const [buttonRef, setButtonRef] = useElement();
301
+ const additionalInfo = {
302
+ title: 'Additional info',
303
+ options: {
304
+ LiveChat: [
305
+ {
306
+ id: '1',
307
+ name: 'Session status',
308
+ value: _jsx(Status, { variant: 'urgent', children: "UNAUTHENTICATED" }, void 0)
309
+ },
310
+ {
311
+ id: '2',
312
+ name: 'Profile name',
313
+ value: 'Sara Davis'
314
+ }
315
+ ],
316
+ Twitter: [
317
+ {
318
+ id: '1',
319
+ name: 'Session status',
320
+ value: _jsx(Status, { variant: 'urgent', children: "UNAUTHENTICATED" }, void 0)
321
+ },
322
+ {
323
+ id: '2',
324
+ name: 'Twitter handle',
325
+ value: '@Connor'
326
+ },
327
+ {
328
+ id: '3',
329
+ name: 'Followers',
330
+ value: '13,556'
331
+ }
332
+ ],
333
+ Facebook: [
334
+ {
335
+ id: '1',
336
+ name: 'Session status',
337
+ value: _jsx(Status, { variant: 'urgent', children: "UNAUTHENTICATED" }, void 0)
338
+ },
339
+ {
340
+ id: '2',
341
+ name: 'Profile name',
342
+ value: 'Sara Davis'
343
+ }
344
+ ]
345
+ }
346
+ };
347
+ useOuterEvent('mousedown', [popoverRef, buttonRef], () => {
348
+ if (openPopover)
349
+ setOpenPopover(false);
350
+ });
351
+ const header = (_jsx(ChatHeader, { title: Channels.options[selectedChannel].title, icon: Channels.options[selectedChannel].icon, "aria-label": 'Chat header', actions: _jsxs(Flex, { children: [_jsx(Button, { variant: 'simple', onClick: () => setShowTranscripts(!showTranscripts), "aria-label": 'Show transcripts', children: _jsxs(Flex, { container: {
352
+ gap: 1,
353
+ alignItems: 'center'
354
+ }, children: [_jsx(Icon, { name: 'chats' }, void 0), _jsx(Text, { children: "Transcripts" }, void 0)] }, void 0) }, void 0), _jsx(Button, { variant: 'simple', icon: true, "aria-label": 'chat info', ref: setButtonRef, onClick: () => setOpenPopover(current => !current), children: _jsx(Icon, { name: 'information' }, void 0) }, void 0), _jsx(Popover, { show: openPopover, target: buttonRef, ref: setPopoverRef, arrow: true, placement: 'bottom-end', children: _jsxs(Flex, { container: { direction: 'column', gap: 1, pad: 2 }, children: [_jsx(Text, { variant: 'h4', children: additionalInfo.title }, void 0), _jsx(FieldValueList, { variant: 'inline', fields: additionalInfo.options[selectedChannel] }, void 0)] }, void 0) }, void 0), _jsx(MenuButton, { text: 'More actions', icon: 'more', iconOnly: true, variant: 'simple', portal: true, menu: { items: actions } }, void 0)] }, void 0) }, void 0));
355
+ const [showEarlierTranscripts, setShowEarlierTranscripts] = useState(false);
356
+ const transcriptsContainerRef = useRef(null);
357
+ useOuterEvent('mousedown', [transcriptsContainerRef], () => {
358
+ setShowTranscripts(false);
359
+ });
360
+ const utilityComp = useMemo(() => {
361
+ return showTranscripts ? (_jsxs("div", { ref: transcriptsContainerRef, children: [!showEarlierTranscripts && (_jsx(Flex, { container: {
362
+ direction: 'column',
363
+ alignItems: 'center',
364
+ gap: 1
365
+ }, children: _jsx(Button, { icon: true, "aria-label": 'Show earlier transcripts', variant: 'secondary', onClick: () => {
366
+ setShowEarlierTranscripts(!showEarlierTranscripts);
367
+ }, children: _jsx(Icon, { name: 'caret-up' }, void 0) }, void 0) }, void 0)), transcripts
368
+ .sort((transcript) => transcript.earlierTranscripts)
369
+ .filter((transcript) => showEarlierTranscripts ? true : !transcript.earlierTranscripts)
370
+ .map((transcript) => {
371
+ const transcriptData = transcript.data.map((message) => {
372
+ if (message.messagePrivacy) {
373
+ message.transcriptHeader = {
374
+ content: _jsx(Status, { variant: 'warn', children: message.messagePrivacy.privacy }, void 0),
375
+ meta: _jsx(Link, { href: '/', children: "I-12345" }, void 0)
376
+ };
377
+ }
378
+ return message;
379
+ });
380
+ return (_jsx(ChatTranscript, { tabIndex: 0, title: transcript.title, transcript: transcriptData }, transcript.id));
381
+ })] }, void 0)) : undefined;
382
+ }, [showTranscripts, setShowTranscripts, showEarlierTranscripts, setShowEarlierTranscripts]);
383
+ const showChatBanner = boolean('Show banner', true);
384
+ const chatBanner = {
385
+ id: 'warning',
386
+ messages: ['This is a public interaction and any responses will be public and visible'],
387
+ heading: 'Warning',
388
+ variant: 'warning'
389
+ };
390
+ const body = (_jsx(ChatBody, { children: _jsx(MessageListComp, { unReadMessageCount: unreadMessagesCount, onScrollToButtonClick: () => {
391
+ const newRandomMessageId = Math.random().toString(36).substr(2, 9);
392
+ setChatMessages(prevChatMessages => prevChatMessages.map(message => {
393
+ if (message.id === NewMessageSeparatorId) {
394
+ message.id = newRandomMessageId;
395
+ }
396
+ return message;
397
+ }));
398
+ const timeOutId = window.setTimeout(() => {
399
+ setChatMessages(prevChatMessages => prevChatMessages.filter(({ id }) => id !== newRandomMessageId));
400
+ timers.current = timers.current.filter(id => id !== timeOutId);
401
+ }, 5000);
402
+ timers.current.push(timeOutId);
403
+ setUnreadMessagesCount(0);
404
+ }, tabIndex: 0, ref: conversationRef, messages: [...chatMessages, ...typingIndicators] }, void 0) }, void 0));
405
+ const chatComposerImperativeHandleRef = useRef(null);
406
+ const phrase = text('Phrase', 'How can I help you?');
407
+ button('Push prase at start', () => {
408
+ if (chatComposerImperativeHandleRef.current) {
409
+ chatComposerImperativeHandleRef.current.appendToMessage(phrase, 'start');
410
+ }
411
+ return false;
412
+ });
413
+ button('Push prase at end', () => {
414
+ if (chatComposerImperativeHandleRef.current) {
415
+ chatComposerImperativeHandleRef.current.appendToMessage(phrase, 'end');
416
+ }
417
+ return false;
418
+ });
419
+ button('Push prase at cursor', () => {
420
+ if (chatComposerImperativeHandleRef.current) {
421
+ chatComposerImperativeHandleRef.current.appendToMessage(phrase, 'cursor');
422
+ }
423
+ return false;
424
+ });
425
+ const [mountPopover, setMountPopover] = useState(false);
426
+ const specialKeysConfig = {
427
+ keys: ['//'],
428
+ onSpecialKey: (e, key) => {
429
+ action(`Event is ${e}`)();
430
+ action(`Typed special key is ${key}`)();
431
+ if (chatComposerImperativeHandleRef.current) {
432
+ setMountPopover(!mountPopover);
433
+ }
434
+ }
435
+ };
436
+ const insertPhrasesMessage = (message) => {
437
+ if (chatComposerImperativeHandleRef.current) {
438
+ chatComposerImperativeHandleRef.current.appendToMessage(message, 'specialKey');
439
+ setMountPopover(false);
440
+ }
441
+ };
442
+ useOuterEvent('mousedown', [chatComposerImperativeHandleRef?.current?.chatComposerRef?.current], () => {
443
+ setMountPopover(false);
444
+ });
445
+ const footer = (_jsxs(ChatComposer, { ref: chatComposerImperativeHandleRef, maxAttachments: number('Max Attachments', attachments.length), attachments: attachments, specialKeysConfig: specialKeysConfig, showEmoji: true, disabled: disableChat, onAddAttachment: () => {
446
+ setAttachments([
447
+ ...attachments,
448
+ {
449
+ id: `${attachments.length} statement.pdf`,
450
+ name: `${attachments.length} statement.pdf`,
451
+ onDelete: onDeleteAttachment
452
+ }
453
+ ]);
454
+ }, maxLength: maxLength, placeholder: placeHolder, defaultMessage: defaultMessage, onSend: message => {
455
+ action(`onAppendMessage: ${message}`)();
456
+ appendMessage({
457
+ ...participants.sender,
458
+ type: 'message',
459
+ message,
460
+ timeStamp: '1:45 PM'
461
+ });
462
+ }, children: [_jsx(MenuButton, { text: 'Phrases', actions: [], disabled: disableChat }, void 0), _jsx(MenuButton, { text: 'Page push', actions: [], disabled: disableChat }, void 0), _jsx(Popover, { show: mountPopover, target: chatComposerImperativeHandleRef?.current?.textAreaRef?.current, placement: 'top-start', children: _jsx(Menu, { scrollAt: 20, items: ChatMockData.phrasesDisplayNames.map((name, idx) => ({
463
+ primary: name,
464
+ id: idx.toString(),
465
+ onClick: () => insertPhrasesMessage(ChatMockData.phrasesMessages[idx])
466
+ })) }, void 0) }, void 0)] }, void 0));
467
+ button('Toggle suggested replies', () => {
468
+ setShowSuggestedReplies(show => !show);
469
+ return false;
470
+ });
471
+ const suggestedReplyPicker = suggestedReplies.length > 0 && showSuggestedReplies ? (_jsx(SuggestedReplyPicker, { replies: suggestedReplies, onSelect: (suggestedReply) => {
472
+ chatComposerImperativeHandleRef.current?.appendToMessage(suggestedReply.message, 'cursor');
473
+ setShowSuggestedReplies(false);
474
+ }, onDismiss: () => {
475
+ setShowSuggestedReplies(false);
476
+ } }, void 0)) : undefined;
477
+ const fetchGoogleSprite = () => {
478
+ return 'https://unpkg.com/emoji-datasource-google@5.0.1/img/google/sheets-256/64.png';
479
+ };
480
+ return (_jsx(EmojiContext.Provider, { value: { set: 'google', spriteSrcResolver: fetchGoogleSprite }, children: _jsx(Flex, { container: {
481
+ justify: 'center'
482
+ }, style: {
483
+ height: 'calc(100vh)',
484
+ width: chatWidth,
485
+ margin: 'auto'
486
+ }, children: _jsx(Chat, { utility: utilityComp, header: header, banner: showChatBanner ? chatBanner : undefined, body: body, footer: footer, suggestedReplyPicker: suggestedReplyPicker }, void 0) }, void 0) }, void 0));
487
+ };
488
+ StandardChat.parameters = {
489
+ layout: 'fullscreen'
490
+ };
491
+ //# sourceMappingURL=Chat.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chat.stories.js","sourceRoot":"","sources":["../../../src/social/Chat/Chat.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,EACR,MAAM,EACN,SAAS,EACT,WAAW,EACX,OA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,iBAAiB,GAAG,GAAG,EAAE;QAC7B,OAAO,8EAA8E,CAAC;IACxF,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YACnF,KAAC,IAAI,IACH,SAAS,EAAE;gBACT,OAAO,EAAE,QAAQ;aAClB,EACD,KAAK,EAAE;gBACL,MAAM,EAAE,aAAa;gBACrB,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,MAAM;aACf,YAED,KAAC,IAAI,IACH,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAC/C,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,oBAAoB,WAC1C,WACG,WACe,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,UAAU,GAAG;IACxB,MAAM,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import {\n useState,\n useRef,\n useEffect,\n useCallback,\n useMemo,\n ReactElement,\n SyntheticEvent\n} from 'react';\nimport { action } from '@storybook/addon-actions';\nimport { radios, array, boolean, text, number, optionsKnob, button } from '@storybook/addon-knobs';\n\nimport {\n Button,\n Icon,\n registerIcon,\n Text,\n MenuButton,\n Flex,\n Popover,\n Link,\n Status,\n EmojiContext,\n BannerProps,\n createUID,\n useOuterEvent,\n TextArea,\n Select,\n Option,\n Menu,\n useElement,\n FieldValueList\n} from '@pega/cosmos-react-core';\nimport * as arrowMicroDownIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/arrow-micro-down.icon';\nimport * as replyIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/reply.icon';\nimport * as replyAllIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/reply-all.icon';\nimport * as forwardIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/forward.icon';\nimport {\n Chat,\n ChatProps,\n ChatHeader,\n ChatBody,\n ChatComposer,\n ChatTranscript,\n Message,\n MessageList as MessageListComp,\n MessageProps,\n MessageListItemProps,\n MessageListImperativeHandleProps,\n NewMessageSeparatorId,\n AttachmentItemProps,\n ChatComposerImperativeHandleProps,\n SuggestedReply,\n SuggestedReplyPicker,\n SystemMessage,\n TranscriptMessage,\n TypeIndicator\n} from '@pega/cosmos-react-social';\n\nimport { ChatMockData } from './Chat.mocks';\n\nregisterIcon(forwardIcon, replyIcon, replyAllIcon, arrowMicroDownIcon);\n\nexport default {\n title: 'Social/Chat',\n component: Chat\n};\n\nconst Channels: {\n label: string;\n options: any;\n} = {\n label: 'Channel',\n options: {\n LiveChat: {\n title: 'Live chat',\n icon: 'chat-solid'\n },\n Twitter: {\n title: 'Twitter chat',\n icon: 'twitter'\n },\n Facebook: {\n title: 'Facebook messenger',\n icon: 'facebook'\n }\n }\n};\n\n/** *********************** ChatHeader component - START *********************** */\nexport const chatHeader = () => {\n const actionsConfig = (\n <Flex>\n <Button variant='simple' aria-label='Show transcripts'>\n <Flex\n container={{\n gap: 1,\n alignItems: 'center'\n }}\n >\n <Icon name='chats' />\n <Text>Transcripts</Text>\n </Flex>\n </Button>\n <Button variant='simple' icon aria-label='chat info'>\n <Icon name='information' />\n </Button>\n </Flex>\n );\n\n return (\n <ChatHeader\n title='Live Chat'\n icon='chat-solid'\n aria-label='Chat header'\n actions={actionsConfig}\n />\n );\n};\n/** ***************************** ChatHeader component - END ******************* */\n\n/** **************************** MessageList component - START ************************* */\nexport const MessageList = () => {\n const messages: any[] = ChatMockData.chatMessages;\n\n const [unReadMessageCount, setUnReadMessagesCount] = useState(1);\n\n return (\n <Flex container style={{ height: '80vh' }}>\n <MessageListComp\n tabIndex={0}\n messages={messages}\n unReadMessageCount={unReadMessageCount}\n onScrollToButtonClick={() => {\n setUnReadMessagesCount(0);\n }}\n />\n </Flex>\n );\n};\n/** **************************** MessageList component - END **************************** */\n\n/** ***************************** Message component - START ********************** */\nexport const messageComponent = () => {\n /** Storybook knobs are used here to simulate the behavior of variant and direction prop in real time - start */\n const MessageVariantPropValues: Record<string, MessageProps['variant']> = {\n sender: 'sender',\n receiver: 'receiver',\n other: 'other'\n };\n const MessageDirectionPropValues: Record<string, MessageProps['direction']> = {\n in: 'in',\n out: 'out'\n };\n\n const variantProp = radios<MessageProps['variant']>(\n 'Variant',\n MessageVariantPropValues,\n 'receiver'\n );\n const directionProp = radios<MessageProps['direction']>(\n 'Direction',\n MessageDirectionPropValues,\n 'in'\n );\n /** Storybook knobs are used here to simulate the behavior of variant and direction prop in real time - end */\n const attachments = [\n {\n id: '2499167340',\n name: 'Location',\n icon: 'document',\n meta: 'PNG 0.1 MB',\n thumbnail: 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n },\n {\n id: '2499167341',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-pdf',\n meta: 'PDF 0.7 MB'\n }\n ];\n const pagePushLinks = [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ];\n return (\n <>\n {/* Message with attachments */}\n <Message\n type='message'\n attachments={attachments}\n avatarInfo={{ name: 'John Brown' }}\n status='Opened'\n timeStamp='1:44 PM'\n message='Hi, Welcome to u-plus. How can I help you ?'\n variant={variantProp}\n direction={directionProp}\n />\n <br />\n {/* Message with page push links */}\n <Message\n type='message'\n message='Hi, Welcome to u-plus. How can I help you ?'\n avatarInfo={{ name: 'John Brown' }}\n pagePushLinks={pagePushLinks}\n variant={variantProp}\n direction={directionProp}\n />\n <br />\n {/* Normal message with plain text */}\n <Message\n type='message'\n message='Hi, Welcome to u-plus. How can I help you ?'\n avatarInfo={{ name: 'John Brown' }}\n variant={variantProp}\n direction={directionProp}\n />\n </>\n );\n};\n/** ***************************** Message component - END *********************** */\n\n/** **************************** SystemMessage component - START ***************** */\nexport const systemMessage = () => (\n <SystemMessage message='John Brown has joined' timeStamp='10:00 AM' />\n);\n/** ***************************** SystemMessage component - END ******************** */\n\n/** ***************************** TypeIndicator component - START ****************** */\nexport const typeIndicator = () => {\n /** storybook knobs are used here to simulate the behavior of message prop in real time */\n const TypeIndicatorMessageProp = text('message', '');\n return <TypeIndicator avatarInfo={{ name: 'John Brown' }} message={TypeIndicatorMessageProp} />;\n};\n/** *************************** TypeIndicator component - END *********************** */\n\n/** ************************** ChatTranscripts component - START ********************* */\nexport const chatTranscripts = () => {\n return ChatMockData.transcripts.map((transcript: any) => {\n return (\n <ChatTranscript\n tabIndex={0}\n title={transcript.title}\n key={transcript.id}\n transcript={transcript.data}\n />\n );\n });\n};\n/** **************************** ChatTranscripts component - END ************************ */\n\n/** *************************** TranscriptMessage component - START ****************** */\nexport const transcriptMessage = () => (\n <TranscriptMessage\n timeStamp='01:20 PM'\n variant='bot'\n message='Hello… This is bot. How can I help you? Please select your category.'\n />\n);\n/** *************************** TranscriptMessage component - END ******************** */\n\n/** *************************** SuggestedReplyPicker component - START ****************** */\n\nexport const suggestedReplyPickerComponent = () => {\n const suggestedReplies: SuggestedReply[] = [\n {\n id: createUID(),\n message: 'Hello, Good morning Sara. How can I help you today',\n confidence: 95\n },\n {\n id: createUID(),\n message:\n 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',\n confidence: 75\n }\n ];\n return (\n <SuggestedReplyPicker\n replies={suggestedReplies}\n onSelect={suggestedReply => {\n action(`Suggested reply picked ${suggestedReply.message}`)();\n }}\n onDismiss={action('Suggested reply dismissed')}\n />\n );\n};\n\n/** *************************** SuggestedReplyPicker component - END ****************** */\n\n/** ******************************* ChatComposer component - START ************************ */\nexport const chatComposer = () => (\n <ChatComposer\n maxAttachments={number('Max Attachments', 2)}\n attachments={ChatMockData.defaultAttachments}\n maxLength={256}\n placeholder='Type here to send message'\n onSend={() => {}}\n >\n <MenuButton text='Phrases' menu={{ items: [] }} />\n <MenuButton text='Page Push' menu={{ items: [] }} />\n </ChatComposer>\n);\n/** *********************************** ChatComposer component - END ********************** */\n\n/** *********************************** Standard Chat component - START ******************** */\nconst allParticipants: any = ChatMockData.participants;\nconst chatParticipants = Object.keys(allParticipants).reduce((obj: any, key: string) => {\n if (!allParticipants[key].avatarInfo) {\n return obj;\n }\n const name = allParticipants[key].avatarInfo.name;\n obj[name] = name;\n return obj;\n}, {});\n\nconst channelOptions = Object.keys(Channels.options).reduce((obj: any, key) => {\n obj[key] = key;\n return obj;\n}, {});\n\nexport const StandardChat = ({ chatWidth = '30rem' }: { chatWidth: string }) => {\n const ChatMockDataClone: any = useMemo(() => {\n return JSON.parse(JSON.stringify(ChatMockData));\n }, [ChatMockData]);\n const {\n participants,\n chatMessages: mockChatMessagesJson,\n transcripts,\n defaultAttachments,\n suggestedReplies\n }: {\n participants: any;\n chatMessages: any[];\n transcripts: [];\n defaultAttachments: any[];\n suggestedReplies: SuggestedReply[];\n } = ChatMockDataClone;\n\n const conversationRatingMessage: MessageListItemProps = {\n id: createUID(),\n variant: 'receiver',\n direction: 'in',\n type: 'message',\n message: (\n <Flex\n container={{\n direction: 'column',\n gap: 1\n }}\n >\n <TextArea\n placeholder='Please comment…'\n label='Please comment on our service performance and how we can better serve you. Thank you for your time.'\n />\n <Select label='Is the problem resolved?'>\n <Option>Yes</Option>\n <Option>No</Option>\n </Select>\n <Flex\n container={{\n justify: 'center'\n }}\n >\n <Button variant='primary'>Submit</Button>\n </Flex>\n </Flex>\n )\n };\n\n const mockChatMessages = useMemo(() => {\n return [\n ...mockChatMessagesJson.map(message => {\n const { messagePrivacy, ...restMessageData } = message;\n if (messagePrivacy) {\n restMessageData.messageHeader = {\n content: <span>{messagePrivacy}</span>,\n meta: <Link href='/'>I-12345</Link>\n };\n }\n return restMessageData;\n }),\n conversationRatingMessage\n ];\n }, []);\n\n const conversationRef = useRef<MessageListImperativeHandleProps>(null);\n const timers = useRef<number[]>([]);\n\n useEffect(() => {\n return () => {\n timers.current.forEach(clearTimeout);\n };\n }, []);\n\n const selectedChannel = radios(Channels.label, channelOptions, Object.keys(channelOptions)[0]);\n const actions = array('Actions', ['Transfer', 'End chat']).map(name => ({\n primary: name,\n id: name,\n onClick: action(`Clicked ${name}`)\n }));\n const [showSuggestedReplies, setShowSuggestedReplies] = useState(true);\n const disableChat = boolean('Disable chat', false);\n const simulateConversation = boolean('Simulate conversation', false);\n const placeHolder = text('Placeholder', 'Enter message');\n const defaultMessage = text(\n 'Default message',\n 'Greetings! Hope you are having a great time, Please reach out to us for any help, Thanks!'\n );\n const maxLength = number('Max characters', 280);\n const typers = optionsKnob('Participants typing', chatParticipants, '', {\n display: 'multi-select'\n });\n\n const [showTranscripts, setShowTranscripts] = useState(false);\n const [attachments, setAttachments] = useState<AttachmentItemProps[]>(defaultAttachments);\n const [unreadMessagesCount, setUnreadMessagesCount] = useState(0);\n const [chatMessages, setChatMessages] = useState<any[]>(\n simulateConversation ? mockChatMessages.slice(0, 0) : mockChatMessages\n );\n\n const onDeleteAttachment = useCallback(\n (name: string) => {\n setAttachments(prevAttachments => prevAttachments.filter(item => item.name !== name));\n },\n [setAttachments]\n );\n\n useEffect(() => {\n setAttachments(\n defaultAttachments.map((item: any) => {\n return {\n ...item,\n onDelete: onDeleteAttachment\n };\n })\n );\n }, [defaultAttachments]);\n\n const appendMessage = (message: any) => {\n const incrementUnreadMessageCount = conversationRef.current?.isScrolledToLatest();\n setChatMessages(prevChatMessages => {\n const newMockMessage: any = {\n ...message\n };\n newMockMessage.id = `m-${message.id ? message.id : prevChatMessages.length}`;\n if (\n !incrementUnreadMessageCount &&\n prevChatMessages.filter(({ id }) => id === NewMessageSeparatorId).length === 0\n ) {\n return [\n ...prevChatMessages,\n {\n id: NewMessageSeparatorId,\n type: 'system',\n message: 'New messages',\n variant: 'primary'\n },\n newMockMessage\n ];\n }\n return [...prevChatMessages, newMockMessage];\n });\n if (!incrementUnreadMessageCount) {\n setUnreadMessagesCount(prevCount => prevCount + 1);\n }\n };\n\n useEffect(() => {\n if (simulateConversation) {\n const timeOutId = setTimeout(() => {\n if (mockChatMessages.length) {\n appendMessage(mockChatMessages.shift());\n }\n }, 1500);\n return () => {\n clearTimeout(timeOutId);\n };\n }\n }, [chatMessages, simulateConversation]);\n\n const customerMessage = text('Customer message', '');\n button('Send customer message', () => {\n appendMessage({\n type: 'message',\n ...participants.receiver,\n message: customerMessage,\n timeStamp: '1:45 PM'\n });\n return false;\n });\n\n const managerMessage = text('Manager message', '');\n button('Send manager message', () => {\n appendMessage({\n type: 'message',\n ...participants.other,\n message: managerMessage,\n timeStamp: '1:45 PM'\n });\n return false;\n });\n\n const typingIndicators = typers\n .toString()\n .split(',')\n .filter(person => person !== '')\n .map(name => {\n let message = '';\n if (name === participants.receiver.avatarInfo.name) {\n message = customerMessage;\n } else if (name === participants.other.avatarInfo.name) {\n message = managerMessage;\n }\n return {\n id: name,\n type: 'typing',\n avatarInfo: {\n name\n },\n message,\n ariaLabel: `${name} is typing`\n };\n });\n\n const [openPopover, setOpenPopover] = useState(false);\n const [popoverRef, setPopoverRef] = useElement<HTMLElement>();\n const [buttonRef, setButtonRef] = useElement<HTMLElement>();\n const additionalInfo: {\n title: string;\n options: any;\n } = {\n title: 'Additional info',\n options: {\n LiveChat: [\n {\n id: '1',\n name: 'Session status',\n value: <Status variant='urgent'>UNAUTHENTICATED</Status>\n },\n {\n id: '2',\n name: 'Profile name',\n value: 'Sara Davis'\n }\n ],\n Twitter: [\n {\n id: '1',\n name: 'Session status',\n value: <Status variant='urgent'>UNAUTHENTICATED</Status>\n },\n {\n id: '2',\n name: 'Twitter handle',\n value: '@Connor'\n },\n {\n id: '3',\n name: 'Followers',\n value: '13,556'\n }\n ],\n Facebook: [\n {\n id: '1',\n name: 'Session status',\n value: <Status variant='urgent'>UNAUTHENTICATED</Status>\n },\n {\n id: '2',\n name: 'Profile name',\n value: 'Sara Davis'\n }\n ]\n }\n };\n useOuterEvent('mousedown', [popoverRef, buttonRef], () => {\n if (openPopover) setOpenPopover(false);\n });\n\n const header = (\n <ChatHeader\n title={Channels.options[selectedChannel].title}\n icon={Channels.options[selectedChannel].icon}\n aria-label='Chat header'\n actions={\n <Flex>\n <Button\n variant='simple'\n onClick={() => setShowTranscripts(!showTranscripts)}\n aria-label='Show transcripts'\n >\n <Flex\n container={{\n gap: 1,\n alignItems: 'center'\n }}\n >\n <Icon name='chats' />\n <Text>Transcripts</Text>\n </Flex>\n </Button>\n <Button\n variant='simple'\n icon\n aria-label='chat info'\n ref={setButtonRef}\n onClick={() => setOpenPopover(current => !current)}\n >\n <Icon name='information' />\n </Button>\n <Popover\n show={openPopover}\n target={buttonRef}\n ref={setPopoverRef}\n arrow\n placement='bottom-end'\n >\n <Flex container={{ direction: 'column', gap: 1, pad: 2 }}>\n <Text variant='h4'>{additionalInfo.title}</Text>\n <FieldValueList variant='inline' fields={additionalInfo.options[selectedChannel]} />\n </Flex>\n </Popover>\n <MenuButton\n text='More actions'\n icon='more'\n iconOnly\n variant='simple'\n portal\n menu={{ items: actions }}\n />\n </Flex>\n }\n />\n );\n\n const [showEarlierTranscripts, setShowEarlierTranscripts] = useState(false);\n\n const transcriptsContainerRef = useRef<HTMLDivElement>(null);\n\n useOuterEvent('mousedown', [transcriptsContainerRef], () => {\n setShowTranscripts(false);\n });\n\n const utilityComp = useMemo<ChatProps['utility'] | undefined>(() => {\n return showTranscripts ? (\n <div ref={transcriptsContainerRef}>\n {!showEarlierTranscripts && (\n <Flex\n container={{\n direction: 'column',\n alignItems: 'center',\n gap: 1\n }}\n >\n <Button\n icon\n aria-label='Show earlier transcripts'\n variant='secondary'\n onClick={() => {\n setShowEarlierTranscripts(!showEarlierTranscripts);\n }}\n >\n <Icon name='caret-up' />\n </Button>\n </Flex>\n )}\n {transcripts\n .sort((transcript: any) => transcript.earlierTranscripts)\n .filter((transcript: any) =>\n showEarlierTranscripts ? true : !transcript.earlierTranscripts\n )\n .map((transcript: any) => {\n const transcriptData: any = transcript.data.map(\n (message: {\n messagePrivacy: { privacy: string };\n transcriptHeader: { content: ReactElement; meta: JSX.Element };\n }) => {\n if (message.messagePrivacy) {\n message.transcriptHeader = {\n content: <Status variant='warn'>{message.messagePrivacy.privacy}</Status>,\n meta: <Link href='/'>I-12345</Link>\n };\n }\n return message;\n }\n );\n\n return (\n <ChatTranscript\n tabIndex={0}\n title={transcript.title}\n key={transcript.id}\n transcript={transcriptData}\n />\n );\n })}\n </div>\n ) : undefined;\n }, [showTranscripts, setShowTranscripts, showEarlierTranscripts, setShowEarlierTranscripts]);\n\n const showChatBanner = boolean('Show banner', true);\n\n const chatBanner: BannerProps = {\n id: 'warning',\n messages: ['This is a public interaction and any responses will be public and visible'],\n heading: 'Warning',\n variant: 'warning'\n };\n const body = (\n <ChatBody>\n <MessageListComp\n unReadMessageCount={unreadMessagesCount}\n onScrollToButtonClick={() => {\n const newRandomMessageId = Math.random().toString(36).substr(2, 9);\n setChatMessages(prevChatMessages =>\n prevChatMessages.map(message => {\n if (message.id === NewMessageSeparatorId) {\n message.id = newRandomMessageId;\n }\n return message;\n })\n );\n const timeOutId: number = window.setTimeout(() => {\n setChatMessages(prevChatMessages =>\n prevChatMessages.filter(({ id }) => id !== newRandomMessageId)\n );\n timers.current = timers.current.filter(id => id !== timeOutId);\n }, 5000);\n timers.current.push(timeOutId);\n setUnreadMessagesCount(0);\n }}\n tabIndex={0}\n ref={conversationRef}\n messages={[...chatMessages, ...typingIndicators]}\n />\n </ChatBody>\n );\n\n const chatComposerImperativeHandleRef = useRef<ChatComposerImperativeHandleProps>(null);\n const phrase = text('Phrase', 'How can I help you?');\n button('Push prase at start', () => {\n if (chatComposerImperativeHandleRef.current) {\n chatComposerImperativeHandleRef.current.appendToMessage(phrase, 'start');\n }\n return false;\n });\n button('Push prase at end', () => {\n if (chatComposerImperativeHandleRef.current) {\n chatComposerImperativeHandleRef.current.appendToMessage(phrase, 'end');\n }\n return false;\n });\n button('Push prase at cursor', () => {\n if (chatComposerImperativeHandleRef.current) {\n chatComposerImperativeHandleRef.current.appendToMessage(phrase, 'cursor');\n }\n return false;\n });\n\n const [mountPopover, setMountPopover] = useState(false);\n const specialKeysConfig = {\n keys: ['//'],\n onSpecialKey: (e: SyntheticEvent<HTMLTextAreaElement>, key: string) => {\n action(`Event is ${e}`)();\n action(`Typed special key is ${key}`)();\n if (chatComposerImperativeHandleRef.current) {\n setMountPopover(!mountPopover);\n }\n }\n };\n\n const insertPhrasesMessage = (message: string) => {\n if (chatComposerImperativeHandleRef.current) {\n chatComposerImperativeHandleRef.current.appendToMessage(message, 'specialKey');\n setMountPopover(false);\n }\n };\n\n useOuterEvent(\n 'mousedown',\n [chatComposerImperativeHandleRef?.current?.chatComposerRef?.current as Element],\n () => {\n setMountPopover(false);\n }\n );\n\n const footer = (\n <ChatComposer\n ref={chatComposerImperativeHandleRef}\n maxAttachments={number('Max Attachments', attachments.length)}\n attachments={attachments}\n specialKeysConfig={specialKeysConfig}\n showEmoji\n disabled={disableChat}\n onAddAttachment={() => {\n setAttachments([\n ...attachments,\n {\n id: `${attachments.length} statement.pdf`,\n name: `${attachments.length} statement.pdf`,\n onDelete: onDeleteAttachment\n }\n ]);\n }}\n maxLength={maxLength}\n placeholder={placeHolder}\n defaultMessage={defaultMessage}\n onSend={message => {\n action(`onAppendMessage: ${message}`)();\n appendMessage({\n ...participants.sender,\n type: 'message',\n message,\n timeStamp: '1:45 PM'\n });\n }}\n >\n <MenuButton text='Phrases' actions={[]} disabled={disableChat} />\n <MenuButton text='Page push' actions={[]} disabled={disableChat} />\n <Popover\n show={mountPopover}\n target={chatComposerImperativeHandleRef?.current?.textAreaRef?.current as Element}\n placement='top-start'\n >\n <Menu\n scrollAt={20}\n items={ChatMockData.phrasesDisplayNames.map((name, idx) => ({\n primary: name,\n id: idx.toString(),\n onClick: () => insertPhrasesMessage(ChatMockData.phrasesMessages[idx])\n }))}\n />\n </Popover>\n </ChatComposer>\n );\n\n button('Toggle suggested replies', () => {\n setShowSuggestedReplies(show => !show);\n return false;\n });\n\n const suggestedReplyPicker =\n suggestedReplies.length > 0 && showSuggestedReplies ? (\n <SuggestedReplyPicker\n replies={suggestedReplies}\n onSelect={(suggestedReply: SuggestedReply) => {\n chatComposerImperativeHandleRef.current?.appendToMessage(\n suggestedReply.message,\n 'cursor'\n );\n setShowSuggestedReplies(false);\n }}\n onDismiss={() => {\n setShowSuggestedReplies(false);\n }}\n />\n ) : undefined;\n const fetchGoogleSprite = () => {\n return 'https://unpkg.com/emoji-datasource-google@5.0.1/img/google/sheets-256/64.png';\n };\n\n return (\n <EmojiContext.Provider value={{ set: 'google', spriteSrcResolver: fetchGoogleSprite }}>\n <Flex\n container={{\n justify: 'center'\n }}\n style={{\n height: 'calc(100vh)',\n width: chatWidth,\n margin: 'auto'\n }}\n >\n <Chat\n utility={utilityComp}\n header={header}\n banner={showChatBanner ? chatBanner : undefined}\n body={body}\n footer={footer}\n suggestedReplyPicker={suggestedReplyPicker}\n />\n </Flex>\n </EmojiContext.Provider>\n );\n};\n\nStandardChat.parameters = {\n layout: 'fullscreen'\n};\n\n/** *************************** Standard Chat component - END ************************ */\n"]}