@pega/cosmos-react-demos 6.6.0 → 6.6.2

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 (893) hide show
  1. package/package.json +7 -7
  2. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +0 -3
  3. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +0 -1
  4. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +0 -15
  5. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +0 -1
  6. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +0 -19
  7. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +0 -1
  8. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -297
  9. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -1
  10. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +0 -5
  11. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +0 -1
  12. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +0 -15
  13. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +0 -1
  14. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +0 -6
  15. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +0 -1
  16. package/jsx/condition-builder/ConditionBuilder/props.mock.js +0 -229
  17. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +0 -1
  18. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +0 -10
  19. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +0 -1
  20. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +0 -40
  21. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +0 -1
  22. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +0 -4
  23. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +0 -1
  24. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +0 -233
  25. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +0 -1
  26. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +0 -8
  27. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +0 -1
  28. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +0 -31
  29. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +0 -1
  30. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -9
  31. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +0 -1
  32. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +0 -35
  33. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +0 -1
  34. package/jsx/core/AIButton/AIButton.mocks.d.ts +0 -22
  35. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +0 -1
  36. package/jsx/core/AIButton/AIButton.mocks.js +0 -136
  37. package/jsx/core/AIButton/AIButton.mocks.js.map +0 -1
  38. package/jsx/core/AIButton/AIButton.stories.d.ts +0 -23
  39. package/jsx/core/AIButton/AIButton.stories.d.ts.map +0 -1
  40. package/jsx/core/AIButton/AIButton.stories.jsx +0 -306
  41. package/jsx/core/AIButton/AIButton.stories.jsx.map +0 -1
  42. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +0 -9
  43. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +0 -1
  44. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +0 -25
  45. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +0 -1
  46. package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -15
  47. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +0 -1
  48. package/jsx/core/AppShell/AppShell.mocks.jsx +0 -132
  49. package/jsx/core/AppShell/AppShell.mocks.jsx.map +0 -1
  50. package/jsx/core/AppShell/AppShell.stories.d.ts +0 -39
  51. package/jsx/core/AppShell/AppShell.stories.d.ts.map +0 -1
  52. package/jsx/core/AppShell/AppShell.stories.jsx +0 -266
  53. package/jsx/core/AppShell/AppShell.stories.jsx.map +0 -1
  54. package/jsx/core/AppShell/AppShell.styles.d.ts +0 -2
  55. package/jsx/core/AppShell/AppShell.styles.d.ts.map +0 -1
  56. package/jsx/core/AppShell/AppShell.styles.js +0 -5
  57. package/jsx/core/AppShell/AppShell.styles.js.map +0 -1
  58. package/jsx/core/Avatar/Avatar.stories.d.ts +0 -15
  59. package/jsx/core/Avatar/Avatar.stories.d.ts.map +0 -1
  60. package/jsx/core/Avatar/Avatar.stories.jsx +0 -75
  61. package/jsx/core/Avatar/Avatar.stories.jsx.map +0 -1
  62. package/jsx/core/Backdrop/Backdrop.stories.d.ts +0 -7
  63. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +0 -1
  64. package/jsx/core/Backdrop/Backdrop.stories.jsx +0 -43
  65. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +0 -1
  66. package/jsx/core/Badges/Alert.stories.d.ts +0 -6
  67. package/jsx/core/Badges/Alert.stories.d.ts.map +0 -1
  68. package/jsx/core/Badges/Alert.stories.jsx +0 -15
  69. package/jsx/core/Badges/Alert.stories.jsx.map +0 -1
  70. package/jsx/core/Badges/Count.stories.d.ts +0 -6
  71. package/jsx/core/Badges/Count.stories.d.ts.map +0 -1
  72. package/jsx/core/Badges/Count.stories.jsx +0 -20
  73. package/jsx/core/Badges/Count.stories.jsx.map +0 -1
  74. package/jsx/core/Badges/Keyboard.stories.d.ts +0 -6
  75. package/jsx/core/Badges/Keyboard.stories.d.ts.map +0 -1
  76. package/jsx/core/Badges/Keyboard.stories.jsx +0 -17
  77. package/jsx/core/Badges/Keyboard.stories.jsx.map +0 -1
  78. package/jsx/core/Badges/Selection.stories.d.ts +0 -5
  79. package/jsx/core/Badges/Selection.stories.d.ts.map +0 -1
  80. package/jsx/core/Badges/Selection.stories.jsx +0 -9
  81. package/jsx/core/Badges/Selection.stories.jsx.map +0 -1
  82. package/jsx/core/Badges/Status.stories.d.ts +0 -11
  83. package/jsx/core/Badges/Status.stories.d.ts.map +0 -1
  84. package/jsx/core/Badges/Status.stories.jsx +0 -43
  85. package/jsx/core/Badges/Status.stories.jsx.map +0 -1
  86. package/jsx/core/Badges/Tag.stories.d.ts +0 -5
  87. package/jsx/core/Badges/Tag.stories.d.ts.map +0 -1
  88. package/jsx/core/Badges/Tag.stories.jsx +0 -9
  89. package/jsx/core/Badges/Tag.stories.jsx.map +0 -1
  90. package/jsx/core/Banner/Banner.mocks.d.ts +0 -18
  91. package/jsx/core/Banner/Banner.mocks.d.ts.map +0 -1
  92. package/jsx/core/Banner/Banner.mocks.jsx +0 -41
  93. package/jsx/core/Banner/Banner.mocks.jsx.map +0 -1
  94. package/jsx/core/Banner/Banner.stories.d.ts +0 -18
  95. package/jsx/core/Banner/Banner.stories.d.ts.map +0 -1
  96. package/jsx/core/Banner/Banner.stories.jsx +0 -156
  97. package/jsx/core/Banner/Banner.stories.jsx.map +0 -1
  98. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +0 -6
  99. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +0 -1
  100. package/jsx/core/Boolean/BooleanDisplay.stories.jsx +0 -19
  101. package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +0 -1
  102. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +0 -2
  103. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +0 -1
  104. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +0 -8
  105. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +0 -1
  106. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
  107. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
  108. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -69
  109. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -1
  110. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
  111. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
  112. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +0 -12
  113. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +0 -1
  114. package/jsx/core/Button/Button.stories.d.ts +0 -18
  115. package/jsx/core/Button/Button.stories.d.ts.map +0 -1
  116. package/jsx/core/Button/Button.stories.jsx +0 -119
  117. package/jsx/core/Button/Button.stories.jsx.map +0 -1
  118. package/jsx/core/Card/Card.stories.d.ts +0 -12
  119. package/jsx/core/Card/Card.stories.d.ts.map +0 -1
  120. package/jsx/core/Card/Card.stories.jsx +0 -85
  121. package/jsx/core/Card/Card.stories.jsx.map +0 -1
  122. package/jsx/core/Card/Card.styles.d.ts +0 -2
  123. package/jsx/core/Card/Card.styles.d.ts.map +0 -1
  124. package/jsx/core/Card/Card.styles.js +0 -5
  125. package/jsx/core/Card/Card.styles.js.map +0 -1
  126. package/jsx/core/Checkbox/Checkbox.stories.d.ts +0 -23
  127. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +0 -1
  128. package/jsx/core/Checkbox/Checkbox.stories.jsx +0 -100
  129. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +0 -1
  130. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -11
  131. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
  132. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -99
  133. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -1
  134. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -4
  135. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +0 -1
  136. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +0 -9
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +0 -1
  138. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +0 -10
  139. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
  140. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +0 -89
  141. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +0 -1
  142. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +0 -4
  143. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +0 -1
  144. package/jsx/core/ColorPicker/ColorPicker.styles.js +0 -11
  145. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +0 -1
  146. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -26
  147. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +0 -1
  148. package/jsx/core/ComboBox/ComboBox.mocks.jsx +0 -58
  149. package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +0 -1
  150. package/jsx/core/ComboBox/ComboBox.stories.d.ts +0 -24
  151. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
  152. package/jsx/core/ComboBox/ComboBox.stories.jsx +0 -369
  153. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +0 -1
  154. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +0 -8
  155. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +0 -1
  156. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +0 -8
  157. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +0 -1
  158. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +0 -9
  159. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +0 -1
  160. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +0 -52
  161. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +0 -1
  162. package/jsx/core/Configuration/Configuration.mocks.d.ts +0 -7
  163. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +0 -1
  164. package/jsx/core/Configuration/Configuration.mocks.jsx +0 -9
  165. package/jsx/core/Configuration/Configuration.mocks.jsx.map +0 -1
  166. package/jsx/core/Configuration/Configuration.stories.d.ts +0 -25
  167. package/jsx/core/Configuration/Configuration.stories.d.ts.map +0 -1
  168. package/jsx/core/Configuration/Configuration.stories.jsx +0 -196
  169. package/jsx/core/Configuration/Configuration.stories.jsx.map +0 -1
  170. package/jsx/core/Configuration/Configuration.styles.d.ts +0 -6
  171. package/jsx/core/Configuration/Configuration.styles.d.ts.map +0 -1
  172. package/jsx/core/Configuration/Configuration.styles.js +0 -12
  173. package/jsx/core/Configuration/Configuration.styles.js.map +0 -1
  174. package/jsx/core/CreditCard/CreditCard.stories.d.ts +0 -14
  175. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +0 -1
  176. package/jsx/core/CreditCard/CreditCard.stories.jsx +0 -50
  177. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +0 -1
  178. package/jsx/core/Currency/Currency.stories.d.ts +0 -19
  179. package/jsx/core/Currency/Currency.stories.d.ts.map +0 -1
  180. package/jsx/core/Currency/Currency.stories.jsx +0 -105
  181. package/jsx/core/Currency/Currency.stories.jsx.map +0 -1
  182. package/jsx/core/DangerButton/DangerButton.stories.d.ts +0 -6
  183. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +0 -1
  184. package/jsx/core/DangerButton/DangerButton.stories.jsx +0 -17
  185. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +0 -1
  186. package/jsx/core/DateTime/DateTime.stories.d.ts +0 -51
  187. package/jsx/core/DateTime/DateTime.stories.d.ts.map +0 -1
  188. package/jsx/core/DateTime/DateTime.stories.jsx +0 -291
  189. package/jsx/core/DateTime/DateTime.stories.jsx.map +0 -1
  190. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +0 -7
  191. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +0 -1
  192. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +0 -54
  193. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -1
  194. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +0 -7
  195. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +0 -1
  196. package/jsx/core/DateTime/DateTimePicker.stories.jsx +0 -34
  197. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +0 -1
  198. package/jsx/core/Dialog/Dialog.stories.d.ts +0 -7
  199. package/jsx/core/Dialog/Dialog.stories.d.ts.map +0 -1
  200. package/jsx/core/Dialog/Dialog.stories.jsx +0 -15
  201. package/jsx/core/Dialog/Dialog.stories.jsx.map +0 -1
  202. package/jsx/core/Dialog/FormDialog.mocks.d.ts +0 -27
  203. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +0 -1
  204. package/jsx/core/Dialog/FormDialog.mocks.jsx +0 -194
  205. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +0 -1
  206. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +0 -4
  207. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +0 -1
  208. package/jsx/core/Dialog/InfoDialog.mocks.jsx +0 -64
  209. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +0 -1
  210. package/jsx/core/Drawer/Drawer.stories.d.ts +0 -7
  211. package/jsx/core/Drawer/Drawer.stories.d.ts.map +0 -1
  212. package/jsx/core/Drawer/Drawer.stories.jsx +0 -98
  213. package/jsx/core/Drawer/Drawer.stories.jsx.map +0 -1
  214. package/jsx/core/Drawer/Drawer.styles.d.ts +0 -2
  215. package/jsx/core/Drawer/Drawer.styles.d.ts.map +0 -1
  216. package/jsx/core/Drawer/Drawer.styles.js +0 -11
  217. package/jsx/core/Drawer/Drawer.styles.js.map +0 -1
  218. package/jsx/core/Email/EmailDisplay.stories.d.ts +0 -6
  219. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +0 -1
  220. package/jsx/core/Email/EmailDisplay.stories.jsx +0 -19
  221. package/jsx/core/Email/EmailDisplay.stories.jsx.map +0 -1
  222. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +0 -8
  223. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +0 -1
  224. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +0 -53
  225. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -1
  226. package/jsx/core/EmptyState/EmptyState.stories.d.ts +0 -6
  227. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +0 -1
  228. package/jsx/core/EmptyState/EmptyState.stories.jsx +0 -18
  229. package/jsx/core/EmptyState/EmptyState.stories.jsx.map +0 -1
  230. package/jsx/core/ErrorState/ErrorState.stories.d.ts +0 -9
  231. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +0 -1
  232. package/jsx/core/ErrorState/ErrorState.stories.jsx +0 -20
  233. package/jsx/core/ErrorState/ErrorState.stories.jsx.map +0 -1
  234. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -7
  235. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +0 -1
  236. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -73
  237. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -1
  238. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +0 -4
  239. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +0 -1
  240. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +0 -17
  241. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +0 -1
  242. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +0 -20
  243. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +0 -1
  244. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +0 -93
  245. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +0 -1
  246. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -25
  247. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +0 -1
  248. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +0 -109
  249. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +0 -1
  250. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +0 -12
  251. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
  252. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +0 -134
  253. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -1
  254. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -20
  255. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +0 -1
  256. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx +0 -54
  257. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx.map +0 -1
  258. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +0 -11
  259. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +0 -1
  260. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +0 -37
  261. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +0 -1
  262. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +0 -2
  263. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +0 -1
  264. package/jsx/core/FieldValueList/FieldValueList.styles.js +0 -8
  265. package/jsx/core/FieldValueList/FieldValueList.styles.js.map +0 -1
  266. package/jsx/core/File/FileDisplay.stories.d.ts +0 -20
  267. package/jsx/core/File/FileDisplay.stories.d.ts.map +0 -1
  268. package/jsx/core/File/FileDisplay.stories.jsx +0 -140
  269. package/jsx/core/File/FileDisplay.stories.jsx.map +0 -1
  270. package/jsx/core/File/FileInput.stories.d.ts +0 -10
  271. package/jsx/core/File/FileInput.stories.d.ts.map +0 -1
  272. package/jsx/core/File/FileInput.stories.jsx +0 -103
  273. package/jsx/core/File/FileInput.stories.jsx.map +0 -1
  274. package/jsx/core/File/FileService.mock.d.ts +0 -28
  275. package/jsx/core/File/FileService.mock.d.ts.map +0 -1
  276. package/jsx/core/File/FileService.mock.jsx +0 -139
  277. package/jsx/core/File/FileService.mock.jsx.map +0 -1
  278. package/jsx/core/File/MockFileInput.d.ts +0 -6
  279. package/jsx/core/File/MockFileInput.d.ts.map +0 -1
  280. package/jsx/core/File/MockFileInput.jsx +0 -24
  281. package/jsx/core/File/MockFileInput.jsx.map +0 -1
  282. package/jsx/core/Flex/Flex.styles.d.ts +0 -10
  283. package/jsx/core/Flex/Flex.styles.d.ts.map +0 -1
  284. package/jsx/core/Flex/Flex.styles.js +0 -41
  285. package/jsx/core/Flex/Flex.styles.js.map +0 -1
  286. package/jsx/core/Flex/FlexContainer.stories.d.ts +0 -21
  287. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +0 -1
  288. package/jsx/core/Flex/FlexContainer.stories.jsx +0 -164
  289. package/jsx/core/Flex/FlexContainer.stories.jsx.map +0 -1
  290. package/jsx/core/Flex/FlexItem.stories.d.ts +0 -13
  291. package/jsx/core/Flex/FlexItem.stories.d.ts.map +0 -1
  292. package/jsx/core/Flex/FlexItem.stories.jsx +0 -71
  293. package/jsx/core/Flex/FlexItem.stories.jsx.map +0 -1
  294. package/jsx/core/Form/Form.mocks.d.ts +0 -14
  295. package/jsx/core/Form/Form.mocks.d.ts.map +0 -1
  296. package/jsx/core/Form/Form.mocks.jsx +0 -265
  297. package/jsx/core/Form/Form.mocks.jsx.map +0 -1
  298. package/jsx/core/Form/Form.stories.d.ts +0 -25
  299. package/jsx/core/Form/Form.stories.d.ts.map +0 -1
  300. package/jsx/core/Form/Form.stories.jsx +0 -106
  301. package/jsx/core/Form/Form.stories.jsx.map +0 -1
  302. package/jsx/core/Grid/Grid.styles.d.ts +0 -6
  303. package/jsx/core/Grid/Grid.styles.d.ts.map +0 -1
  304. package/jsx/core/Grid/Grid.styles.js +0 -36
  305. package/jsx/core/Grid/Grid.styles.js.map +0 -1
  306. package/jsx/core/Grid/GridContainer.stories.d.ts +0 -23
  307. package/jsx/core/Grid/GridContainer.stories.d.ts.map +0 -1
  308. package/jsx/core/Grid/GridContainer.stories.jsx +0 -168
  309. package/jsx/core/Grid/GridContainer.stories.jsx.map +0 -1
  310. package/jsx/core/Grid/GridItem.stories.d.ts +0 -12
  311. package/jsx/core/Grid/GridItem.stories.d.ts.map +0 -1
  312. package/jsx/core/Grid/GridItem.stories.jsx +0 -74
  313. package/jsx/core/Grid/GridItem.stories.jsx.map +0 -1
  314. package/jsx/core/HTML/HTML.stories.d.ts +0 -6
  315. package/jsx/core/HTML/HTML.stories.d.ts.map +0 -1
  316. package/jsx/core/HTML/HTML.stories.jsx +0 -13
  317. package/jsx/core/HTML/HTML.stories.jsx.map +0 -1
  318. package/jsx/core/Icon/Icon.mocks.d.ts +0 -26
  319. package/jsx/core/Icon/Icon.mocks.d.ts.map +0 -1
  320. package/jsx/core/Icon/Icon.mocks.jsx +0 -32
  321. package/jsx/core/Icon/Icon.mocks.jsx.map +0 -1
  322. package/jsx/core/Icon/Icon.stories.d.ts +0 -21
  323. package/jsx/core/Icon/Icon.stories.d.ts.map +0 -1
  324. package/jsx/core/Icon/Icon.stories.jsx +0 -112
  325. package/jsx/core/Icon/Icon.stories.jsx.map +0 -1
  326. package/jsx/core/Icon/Icon.styles.d.ts +0 -4
  327. package/jsx/core/Icon/Icon.styles.d.ts.map +0 -1
  328. package/jsx/core/Icon/Icon.styles.js +0 -25
  329. package/jsx/core/Icon/Icon.styles.js.map +0 -1
  330. package/jsx/core/IconPicker/IconPicker.stories.d.ts +0 -6
  331. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
  332. package/jsx/core/IconPicker/IconPicker.stories.jsx +0 -35
  333. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +0 -1
  334. package/jsx/core/Image/Image.stories.d.ts +0 -5
  335. package/jsx/core/Image/Image.stories.d.ts.map +0 -1
  336. package/jsx/core/Image/Image.stories.jsx +0 -9
  337. package/jsx/core/Image/Image.stories.jsx.map +0 -1
  338. package/jsx/core/Input/Input.stories.d.ts +0 -20
  339. package/jsx/core/Input/Input.stories.d.ts.map +0 -1
  340. package/jsx/core/Input/Input.stories.jsx +0 -159
  341. package/jsx/core/Input/Input.stories.jsx.map +0 -1
  342. package/jsx/core/Label/Label.stories.d.ts +0 -10
  343. package/jsx/core/Label/Label.stories.d.ts.map +0 -1
  344. package/jsx/core/Label/Label.stories.jsx +0 -33
  345. package/jsx/core/Label/Label.stories.jsx.map +0 -1
  346. package/jsx/core/Lightbox/Lightbox.mocks.d.ts +0 -22
  347. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
  348. package/jsx/core/Lightbox/Lightbox.mocks.js +0 -97
  349. package/jsx/core/Lightbox/Lightbox.mocks.js.map +0 -1
  350. package/jsx/core/Lightbox/Lightbox.stories.d.ts +0 -10
  351. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +0 -1
  352. package/jsx/core/Lightbox/Lightbox.stories.jsx +0 -70
  353. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +0 -1
  354. package/jsx/core/Link/Link.stories.d.ts +0 -13
  355. package/jsx/core/Link/Link.stories.d.ts.map +0 -1
  356. package/jsx/core/Link/Link.stories.jsx +0 -43
  357. package/jsx/core/Link/Link.stories.jsx.map +0 -1
  358. package/jsx/core/List/CommaSeparatedList.stories.d.ts +0 -6
  359. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +0 -1
  360. package/jsx/core/List/CommaSeparatedList.stories.jsx +0 -31
  361. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +0 -1
  362. package/jsx/core/List/OrderedList.stories.d.ts +0 -10
  363. package/jsx/core/List/OrderedList.stories.d.ts.map +0 -1
  364. package/jsx/core/List/OrderedList.stories.jsx +0 -38
  365. package/jsx/core/List/OrderedList.stories.jsx.map +0 -1
  366. package/jsx/core/List/UnorderedList.stories.d.ts +0 -10
  367. package/jsx/core/List/UnorderedList.stories.d.ts.map +0 -1
  368. package/jsx/core/List/UnorderedList.stories.jsx +0 -38
  369. package/jsx/core/List/UnorderedList.stories.jsx.map +0 -1
  370. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +0 -9
  371. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +0 -1
  372. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +0 -58
  373. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +0 -1
  374. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +0 -17
  375. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +0 -1
  376. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +0 -141
  377. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +0 -1
  378. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +0 -5
  379. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +0 -1
  380. package/jsx/core/LiveLog/LiveLog.mocks.jsx +0 -47
  381. package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +0 -1
  382. package/jsx/core/LiveLog/LiveLog.stories.d.ts +0 -9
  383. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +0 -1
  384. package/jsx/core/LiveLog/LiveLog.stories.jsx +0 -19
  385. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +0 -1
  386. package/jsx/core/Location/Location.stories.d.ts +0 -15
  387. package/jsx/core/Location/Location.stories.d.ts.map +0 -1
  388. package/jsx/core/Location/Location.stories.jsx +0 -142
  389. package/jsx/core/Location/Location.stories.jsx.map +0 -1
  390. package/jsx/core/Location/locationTestUtils.d.ts +0 -3
  391. package/jsx/core/Location/locationTestUtils.d.ts.map +0 -1
  392. package/jsx/core/Location/locationTestUtils.js +0 -29
  393. package/jsx/core/Location/locationTestUtils.js.map +0 -1
  394. package/jsx/core/Menu/Menu.mocks.d.ts +0 -4
  395. package/jsx/core/Menu/Menu.mocks.d.ts.map +0 -1
  396. package/jsx/core/Menu/Menu.mocks.js +0 -179
  397. package/jsx/core/Menu/Menu.mocks.js.map +0 -1
  398. package/jsx/core/Menu/Menu.stories.d.ts +0 -18
  399. package/jsx/core/Menu/Menu.stories.d.ts.map +0 -1
  400. package/jsx/core/Menu/Menu.stories.jsx +0 -196
  401. package/jsx/core/Menu/Menu.stories.jsx.map +0 -1
  402. package/jsx/core/Menu/Menu.styles.d.ts +0 -2
  403. package/jsx/core/Menu/Menu.styles.d.ts.map +0 -1
  404. package/jsx/core/Menu/Menu.styles.js +0 -6
  405. package/jsx/core/Menu/Menu.styles.js.map +0 -1
  406. package/jsx/core/MenuButton/MenuButton.stories.d.ts +0 -16
  407. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +0 -1
  408. package/jsx/core/MenuButton/MenuButton.stories.jsx +0 -188
  409. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +0 -1
  410. package/jsx/core/MetaList/MetaList.stories.d.ts +0 -9
  411. package/jsx/core/MetaList/MetaList.stories.d.ts.map +0 -1
  412. package/jsx/core/MetaList/MetaList.stories.jsx +0 -24
  413. package/jsx/core/MetaList/MetaList.stories.jsx.map +0 -1
  414. package/jsx/core/Modal/Modal.mocks.d.ts +0 -4
  415. package/jsx/core/Modal/Modal.mocks.d.ts.map +0 -1
  416. package/jsx/core/Modal/Modal.mocks.jsx +0 -44
  417. package/jsx/core/Modal/Modal.mocks.jsx.map +0 -1
  418. package/jsx/core/Modal/Modal.stories.d.ts +0 -36
  419. package/jsx/core/Modal/Modal.stories.d.ts.map +0 -1
  420. package/jsx/core/Modal/Modal.stories.jsx +0 -332
  421. package/jsx/core/Modal/Modal.stories.jsx.map +0 -1
  422. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -70
  423. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +0 -1
  424. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +0 -401
  425. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +0 -1
  426. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +0 -7
  427. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +0 -1
  428. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +0 -133
  429. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +0 -1
  430. package/jsx/core/NoValue/NoValue.stories.d.ts +0 -6
  431. package/jsx/core/NoValue/NoValue.stories.d.ts.map +0 -1
  432. package/jsx/core/NoValue/NoValue.stories.jsx +0 -30
  433. package/jsx/core/NoValue/NoValue.stories.jsx.map +0 -1
  434. package/jsx/core/Number/Number.stories.d.ts +0 -19
  435. package/jsx/core/Number/Number.stories.d.ts.map +0 -1
  436. package/jsx/core/Number/Number.stories.jsx +0 -303
  437. package/jsx/core/Number/Number.stories.jsx.map +0 -1
  438. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +0 -3
  439. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
  440. package/jsx/core/PageTemplates/PageTemplates.mocks.js +0 -10
  441. package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +0 -1
  442. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +0 -33
  443. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  444. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +0 -287
  445. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  446. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +0 -5
  447. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +0 -1
  448. package/jsx/core/PageTemplates/PageTemplates.styles.js +0 -40
  449. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +0 -1
  450. package/jsx/core/Pagination/Pagination.stories.d.ts +0 -6
  451. package/jsx/core/Pagination/Pagination.stories.d.ts.map +0 -1
  452. package/jsx/core/Pagination/Pagination.stories.jsx +0 -19
  453. package/jsx/core/Pagination/Pagination.stories.jsx.map +0 -1
  454. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +0 -6
  455. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +0 -1
  456. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx +0 -15
  457. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -1
  458. package/jsx/core/Phone/Phone.stories.d.ts +0 -13
  459. package/jsx/core/Phone/Phone.stories.d.ts.map +0 -1
  460. package/jsx/core/Phone/Phone.stories.jsx +0 -52
  461. package/jsx/core/Phone/Phone.stories.jsx.map +0 -1
  462. package/jsx/core/Popover/Popover.mocks.d.ts +0 -9
  463. package/jsx/core/Popover/Popover.mocks.d.ts.map +0 -1
  464. package/jsx/core/Popover/Popover.mocks.jsx +0 -114
  465. package/jsx/core/Popover/Popover.mocks.jsx.map +0 -1
  466. package/jsx/core/Popover/Popover.stories.d.ts +0 -13
  467. package/jsx/core/Popover/Popover.stories.d.ts.map +0 -1
  468. package/jsx/core/Popover/Popover.stories.jsx +0 -209
  469. package/jsx/core/Popover/Popover.stories.jsx.map +0 -1
  470. package/jsx/core/Progress/Progress.mocks.d.ts +0 -2
  471. package/jsx/core/Progress/Progress.mocks.d.ts.map +0 -1
  472. package/jsx/core/Progress/Progress.mocks.js +0 -2
  473. package/jsx/core/Progress/Progress.mocks.js.map +0 -1
  474. package/jsx/core/Progress/Progress.stories.d.ts +0 -16
  475. package/jsx/core/Progress/Progress.stories.d.ts.map +0 -1
  476. package/jsx/core/Progress/Progress.stories.jsx +0 -124
  477. package/jsx/core/Progress/Progress.stories.jsx.map +0 -1
  478. package/jsx/core/Progress/Progress.styles.d.ts +0 -2
  479. package/jsx/core/Progress/Progress.styles.d.ts.map +0 -1
  480. package/jsx/core/Progress/Progress.styles.js +0 -14
  481. package/jsx/core/Progress/Progress.styles.js.map +0 -1
  482. package/jsx/core/QRCode/QRCode.stories.d.ts +0 -9
  483. package/jsx/core/QRCode/QRCode.stories.d.ts.map +0 -1
  484. package/jsx/core/QRCode/QRCode.stories.jsx +0 -17
  485. package/jsx/core/QRCode/QRCode.stories.jsx.map +0 -1
  486. package/jsx/core/RadioButton/RadioButton.stories.d.ts +0 -23
  487. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +0 -1
  488. package/jsx/core/RadioButton/RadioButton.stories.jsx +0 -95
  489. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +0 -1
  490. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +0 -12
  491. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +0 -1
  492. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -101
  493. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -1
  494. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -4
  495. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +0 -1
  496. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +0 -9
  497. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +0 -1
  498. package/jsx/core/Rating/Rating.stories.d.ts +0 -13
  499. package/jsx/core/Rating/Rating.stories.d.ts.map +0 -1
  500. package/jsx/core/Rating/Rating.stories.jsx +0 -39
  501. package/jsx/core/Rating/Rating.stories.jsx.map +0 -1
  502. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +0 -12
  503. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +0 -1
  504. package/jsx/core/SearchInput/SearchInput.mocks.js +0 -25
  505. package/jsx/core/SearchInput/SearchInput.mocks.js.map +0 -1
  506. package/jsx/core/SearchInput/SearchInput.stories.d.ts +0 -7
  507. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
  508. package/jsx/core/SearchInput/SearchInput.stories.jsx +0 -44
  509. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +0 -1
  510. package/jsx/core/Select/Select.stories.d.ts +0 -18
  511. package/jsx/core/Select/Select.stories.d.ts.map +0 -1
  512. package/jsx/core/Select/Select.stories.jsx +0 -83
  513. package/jsx/core/Select/Select.stories.jsx.map +0 -1
  514. package/jsx/core/Sentiment/Sentiment.stories.d.ts +0 -20
  515. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +0 -1
  516. package/jsx/core/Sentiment/Sentiment.stories.jsx +0 -71
  517. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +0 -1
  518. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +0 -6
  519. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +0 -1
  520. package/jsx/core/SkipLinks/SkipLinks.stories.jsx +0 -29
  521. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +0 -1
  522. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +0 -2
  523. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +0 -1
  524. package/jsx/core/SkipLinks/SkipLinks.styles.js +0 -16
  525. package/jsx/core/SkipLinks/SkipLinks.styles.js.map +0 -1
  526. package/jsx/core/Slider/Slider.stories.d.ts +0 -13
  527. package/jsx/core/Slider/Slider.stories.d.ts.map +0 -1
  528. package/jsx/core/Slider/Slider.stories.jsx +0 -78
  529. package/jsx/core/Slider/Slider.stories.jsx.map +0 -1
  530. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +0 -11
  531. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +0 -1
  532. package/jsx/core/SummaryItem/SummaryItem.stories.jsx +0 -36
  533. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +0 -1
  534. package/jsx/core/SummaryList/SummaryList.mocks.d.ts +0 -20
  535. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +0 -1
  536. package/jsx/core/SummaryList/SummaryList.mocks.jsx +0 -48
  537. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +0 -1
  538. package/jsx/core/SummaryList/SummaryList.stories.d.ts +0 -13
  539. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +0 -1
  540. package/jsx/core/SummaryList/SummaryList.stories.jsx +0 -131
  541. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +0 -1
  542. package/jsx/core/SummaryList/mockUsers.d.ts +0 -16
  543. package/jsx/core/SummaryList/mockUsers.d.ts.map +0 -1
  544. package/jsx/core/SummaryList/mockUsers.js +0 -904
  545. package/jsx/core/SummaryList/mockUsers.js.map +0 -1
  546. package/jsx/core/Switch/Switch.stories.d.ts +0 -14
  547. package/jsx/core/Switch/Switch.stories.d.ts.map +0 -1
  548. package/jsx/core/Switch/Switch.stories.jsx +0 -60
  549. package/jsx/core/Switch/Switch.stories.jsx.map +0 -1
  550. package/jsx/core/Switch/Switch.styles.d.ts +0 -2
  551. package/jsx/core/Switch/Switch.styles.d.ts.map +0 -1
  552. package/jsx/core/Switch/Switch.styles.js +0 -13
  553. package/jsx/core/Switch/Switch.styles.js.map +0 -1
  554. package/jsx/core/Table/Table.mocks.d.ts +0 -25
  555. package/jsx/core/Table/Table.mocks.d.ts.map +0 -1
  556. package/jsx/core/Table/Table.mocks.jsx +0 -166
  557. package/jsx/core/Table/Table.mocks.jsx.map +0 -1
  558. package/jsx/core/Table/Table.stories.d.ts +0 -39
  559. package/jsx/core/Table/Table.stories.d.ts.map +0 -1
  560. package/jsx/core/Table/Table.stories.jsx +0 -178
  561. package/jsx/core/Table/Table.stories.jsx.map +0 -1
  562. package/jsx/core/Table/Table.styles.d.ts +0 -4
  563. package/jsx/core/Table/Table.styles.d.ts.map +0 -1
  564. package/jsx/core/Table/Table.styles.js +0 -9
  565. package/jsx/core/Table/Table.styles.js.map +0 -1
  566. package/jsx/core/Tabs/Tabs.stories.d.ts +0 -9
  567. package/jsx/core/Tabs/Tabs.stories.d.ts.map +0 -1
  568. package/jsx/core/Tabs/Tabs.stories.jsx +0 -59
  569. package/jsx/core/Tabs/Tabs.stories.jsx.map +0 -1
  570. package/jsx/core/Text/Text.stories.d.ts +0 -25
  571. package/jsx/core/Text/Text.stories.d.ts.map +0 -1
  572. package/jsx/core/Text/Text.stories.jsx +0 -134
  573. package/jsx/core/Text/Text.stories.jsx.map +0 -1
  574. package/jsx/core/TextArea/TextArea.stories.d.ts +0 -14
  575. package/jsx/core/TextArea/TextArea.stories.d.ts.map +0 -1
  576. package/jsx/core/TextArea/TextArea.stories.jsx +0 -71
  577. package/jsx/core/TextArea/TextArea.stories.jsx.map +0 -1
  578. package/jsx/core/Toaster/Toaster.stories.d.ts +0 -5
  579. package/jsx/core/Toaster/Toaster.stories.d.ts.map +0 -1
  580. package/jsx/core/Toaster/Toaster.stories.jsx +0 -27
  581. package/jsx/core/Toaster/Toaster.stories.jsx.map +0 -1
  582. package/jsx/core/Tooltip/Tooltip.stories.d.ts +0 -11
  583. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +0 -1
  584. package/jsx/core/Tooltip/Tooltip.stories.jsx +0 -66
  585. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +0 -1
  586. package/jsx/core/Tooltip/Tooltip.styles.d.ts +0 -2
  587. package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +0 -1
  588. package/jsx/core/Tooltip/Tooltip.styles.js +0 -23
  589. package/jsx/core/Tooltip/Tooltip.styles.js.map +0 -1
  590. package/jsx/core/Tree/Tree.mocks.d.ts +0 -2
  591. package/jsx/core/Tree/Tree.mocks.d.ts.map +0 -1
  592. package/jsx/core/Tree/Tree.mocks.js +0 -20
  593. package/jsx/core/Tree/Tree.mocks.js.map +0 -1
  594. package/jsx/core/Tree/Tree.stories.d.ts +0 -7
  595. package/jsx/core/Tree/Tree.stories.d.ts.map +0 -1
  596. package/jsx/core/Tree/Tree.stories.jsx +0 -95
  597. package/jsx/core/Tree/Tree.stories.jsx.map +0 -1
  598. package/jsx/core/Tree/Tree.styles.d.ts +0 -3
  599. package/jsx/core/Tree/Tree.styles.d.ts.map +0 -1
  600. package/jsx/core/Tree/Tree.styles.js +0 -10
  601. package/jsx/core/Tree/Tree.styles.js.map +0 -1
  602. package/jsx/core/URL/URL.stories.d.ts +0 -6
  603. package/jsx/core/URL/URL.stories.d.ts.map +0 -1
  604. package/jsx/core/URL/URL.stories.jsx +0 -17
  605. package/jsx/core/URL/URL.stories.jsx.map +0 -1
  606. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +0 -15
  607. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +0 -1
  608. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +0 -33
  609. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +0 -1
  610. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +0 -10
  611. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +0 -1
  612. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +0 -55
  613. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +0 -1
  614. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +0 -6
  615. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +0 -1
  616. package/jsx/dnd/DragDropList/DragDropList.styles.js +0 -32
  617. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +0 -1
  618. package/jsx/dnd/StandardDragDropList/Demo.d.ts +0 -7
  619. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +0 -1
  620. package/jsx/dnd/StandardDragDropList/Demo.jsx +0 -156
  621. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +0 -1
  622. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +0 -10
  623. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +0 -1
  624. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +0 -26
  625. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +0 -1
  626. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +0 -12
  627. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +0 -1
  628. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +0 -21
  629. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +0 -1
  630. package/jsx/dnd/StandardDragDropList/Popover.d.ts +0 -14
  631. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +0 -1
  632. package/jsx/dnd/StandardDragDropList/Popover.jsx +0 -51
  633. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +0 -1
  634. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -16
  635. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +0 -1
  636. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +0 -104
  637. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +0 -1
  638. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +0 -5
  639. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +0 -1
  640. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +0 -15
  641. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +0 -1
  642. package/jsx/dnd/StandardDragDropList/mockData.d.ts +0 -26
  643. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +0 -1
  644. package/jsx/dnd/StandardDragDropList/mockData.js +0 -77
  645. package/jsx/dnd/StandardDragDropList/mockData.js.map +0 -1
  646. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
  647. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
  648. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -103
  649. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
  650. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +0 -11
  651. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
  652. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +0 -82
  653. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +0 -1
  654. package/jsx/rte/Editor/Editor.mocks.d.ts +0 -329
  655. package/jsx/rte/Editor/Editor.mocks.d.ts.map +0 -1
  656. package/jsx/rte/Editor/Editor.mocks.jsx +0 -22
  657. package/jsx/rte/Editor/Editor.mocks.jsx.map +0 -1
  658. package/jsx/rte/Editor/Editor.stories.d.ts +0 -14
  659. package/jsx/rte/Editor/Editor.stories.d.ts.map +0 -1
  660. package/jsx/rte/Editor/Editor.stories.jsx +0 -159
  661. package/jsx/rte/Editor/Editor.stories.jsx.map +0 -1
  662. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +0 -3
  663. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +0 -1
  664. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -34
  665. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -1
  666. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +0 -7
  667. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +0 -1
  668. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -108
  669. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -1
  670. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +0 -13
  671. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +0 -1
  672. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -151
  673. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
  674. package/jsx/social/Chat/Chat.mocks.d.ts +0 -52
  675. package/jsx/social/Chat/Chat.mocks.d.ts.map +0 -1
  676. package/jsx/social/Chat/Chat.mocks.js +0 -767
  677. package/jsx/social/Chat/Chat.mocks.js.map +0 -1
  678. package/jsx/social/Chat/Chat.stories.d.ts +0 -55
  679. package/jsx/social/Chat/Chat.stories.d.ts.map +0 -1
  680. package/jsx/social/Chat/Chat.stories.jsx +0 -678
  681. package/jsx/social/Chat/Chat.stories.jsx.map +0 -1
  682. package/jsx/social/Email/Email.mocks.d.ts +0 -352
  683. package/jsx/social/Email/Email.mocks.d.ts.map +0 -1
  684. package/jsx/social/Email/Email.mocks.jsx +0 -1215
  685. package/jsx/social/Email/Email.mocks.jsx.map +0 -1
  686. package/jsx/social/Email/Email.stories.d.ts +0 -83
  687. package/jsx/social/Email/Email.stories.d.ts.map +0 -1
  688. package/jsx/social/Email/Email.stories.jsx +0 -1219
  689. package/jsx/social/Email/Email.stories.jsx.map +0 -1
  690. package/jsx/social/Email/Email.styles.d.ts +0 -3
  691. package/jsx/social/Email/Email.styles.d.ts.map +0 -1
  692. package/jsx/social/Email/Email.styles.js +0 -11
  693. package/jsx/social/Email/Email.styles.js.map +0 -1
  694. package/jsx/social/Feed/Feed.mocks.d.ts +0 -53
  695. package/jsx/social/Feed/Feed.mocks.d.ts.map +0 -1
  696. package/jsx/social/Feed/Feed.mocks.jsx +0 -412
  697. package/jsx/social/Feed/Feed.mocks.jsx.map +0 -1
  698. package/jsx/social/Feed/Feed.stories.d.ts +0 -11
  699. package/jsx/social/Feed/Feed.stories.d.ts.map +0 -1
  700. package/jsx/social/Feed/Feed.stories.jsx +0 -222
  701. package/jsx/social/Feed/Feed.stories.jsx.map +0 -1
  702. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +0 -8
  703. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +0 -1
  704. package/jsx/social/Feed/FeedNewPost.mocks.jsx +0 -29
  705. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +0 -1
  706. package/jsx/social/Feed/FeedPost.mocks.d.ts +0 -4
  707. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +0 -1
  708. package/jsx/social/Feed/FeedPost.mocks.jsx +0 -182
  709. package/jsx/social/Feed/FeedPost.mocks.jsx.map +0 -1
  710. package/jsx/social/Feed/FeedReply.mocks.d.ts +0 -13
  711. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +0 -1
  712. package/jsx/social/Feed/FeedReply.mocks.jsx +0 -83
  713. package/jsx/social/Feed/FeedReply.mocks.jsx.map +0 -1
  714. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +0 -6
  715. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +0 -1
  716. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -30
  717. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -1
  718. package/jsx/work/Article/Article.mocks.d.ts +0 -18
  719. package/jsx/work/Article/Article.mocks.d.ts.map +0 -1
  720. package/jsx/work/Article/Article.mocks.js +0 -18
  721. package/jsx/work/Article/Article.mocks.js.map +0 -1
  722. package/jsx/work/Article/Article.stories.d.ts +0 -18
  723. package/jsx/work/Article/Article.stories.d.ts.map +0 -1
  724. package/jsx/work/Article/Article.stories.jsx +0 -243
  725. package/jsx/work/Article/Article.stories.jsx.map +0 -1
  726. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts +0 -12
  727. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +0 -1
  728. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +0 -87
  729. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +0 -1
  730. package/jsx/work/ArticleList/ArticleList.mocks.d.ts +0 -222
  731. package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +0 -1
  732. package/jsx/work/ArticleList/ArticleList.mocks.js +0 -490
  733. package/jsx/work/ArticleList/ArticleList.mocks.js.map +0 -1
  734. package/jsx/work/ArticleList/ArticleList.stories.d.ts +0 -15
  735. package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +0 -1
  736. package/jsx/work/ArticleList/ArticleList.stories.jsx +0 -517
  737. package/jsx/work/ArticleList/ArticleList.stories.jsx.map +0 -1
  738. package/jsx/work/Assignments/Assignments.stories.d.ts +0 -11
  739. package/jsx/work/Assignments/Assignments.stories.d.ts.map +0 -1
  740. package/jsx/work/Assignments/Assignments.stories.jsx +0 -64
  741. package/jsx/work/Assignments/Assignments.stories.jsx.map +0 -1
  742. package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -3
  743. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +0 -1
  744. package/jsx/work/CaseView/Attachments.mocks.jsx +0 -397
  745. package/jsx/work/CaseView/Attachments.mocks.jsx.map +0 -1
  746. package/jsx/work/CaseView/CaseView.mocks.d.ts +0 -117
  747. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +0 -1
  748. package/jsx/work/CaseView/CaseView.mocks.jsx +0 -642
  749. package/jsx/work/CaseView/CaseView.mocks.jsx.map +0 -1
  750. package/jsx/work/CaseView/CaseView.stories.d.ts +0 -6
  751. package/jsx/work/CaseView/CaseView.stories.d.ts.map +0 -1
  752. package/jsx/work/CaseView/CaseView.stories.jsx +0 -57
  753. package/jsx/work/CaseView/CaseView.stories.jsx.map +0 -1
  754. package/jsx/work/CaseView/Details.mocks.d.ts +0 -3
  755. package/jsx/work/CaseView/Details.mocks.d.ts.map +0 -1
  756. package/jsx/work/CaseView/Details.mocks.jsx +0 -21
  757. package/jsx/work/CaseView/Details.mocks.jsx.map +0 -1
  758. package/jsx/work/CaseView/Pulse.mocks.d.ts +0 -7
  759. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +0 -1
  760. package/jsx/work/CaseView/Pulse.mocks.jsx +0 -35
  761. package/jsx/work/CaseView/Pulse.mocks.jsx.map +0 -1
  762. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -45
  763. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +0 -1
  764. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +0 -166
  765. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +0 -1
  766. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +0 -5
  767. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +0 -1
  768. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -24
  769. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -1
  770. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +0 -4
  771. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +0 -1
  772. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +0 -11
  773. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +0 -1
  774. package/jsx/work/Confirmation/Confirmation.stories.d.ts +0 -13
  775. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +0 -1
  776. package/jsx/work/Confirmation/Confirmation.stories.jsx +0 -39
  777. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +0 -1
  778. package/jsx/work/Confirmation/Confirmation.styles.d.ts +0 -2
  779. package/jsx/work/Confirmation/Confirmation.styles.d.ts.map +0 -1
  780. package/jsx/work/Confirmation/Confirmation.styles.js +0 -7
  781. package/jsx/work/Confirmation/Confirmation.styles.js.map +0 -1
  782. package/jsx/work/Details/Details.stories.d.ts +0 -10
  783. package/jsx/work/Details/Details.stories.d.ts.map +0 -1
  784. package/jsx/work/Details/Details.stories.jsx +0 -109
  785. package/jsx/work/Details/Details.stories.jsx.map +0 -1
  786. package/jsx/work/DetailsV2/DetailsV2.stories.d.ts +0 -10
  787. package/jsx/work/DetailsV2/DetailsV2.stories.d.ts.map +0 -1
  788. package/jsx/work/DetailsV2/DetailsV2.stories.jsx +0 -215
  789. package/jsx/work/DetailsV2/DetailsV2.stories.jsx.map +0 -1
  790. package/jsx/work/Glimpse/Glimpse.stories.d.ts +0 -5
  791. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +0 -1
  792. package/jsx/work/Glimpse/Glimpse.stories.jsx +0 -42
  793. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +0 -1
  794. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -5
  795. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +0 -1
  796. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -115
  797. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -1
  798. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts +0 -13
  799. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
  800. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx +0 -56
  801. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
  802. package/jsx/work/Predictions/Predictions.mocks.d.ts +0 -3
  803. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +0 -1
  804. package/jsx/work/Predictions/Predictions.mocks.jsx +0 -18
  805. package/jsx/work/Predictions/Predictions.mocks.jsx.map +0 -1
  806. package/jsx/work/Predictions/Predictions.stories.d.ts +0 -5
  807. package/jsx/work/Predictions/Predictions.stories.d.ts.map +0 -1
  808. package/jsx/work/Predictions/Predictions.stories.jsx +0 -53
  809. package/jsx/work/Predictions/Predictions.stories.jsx.map +0 -1
  810. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +0 -14
  811. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +0 -1
  812. package/jsx/work/SearchResults/SearchResults.mocks.jsx +0 -97
  813. package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +0 -1
  814. package/jsx/work/SearchResults/SearchResults.stories.d.ts +0 -9
  815. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +0 -1
  816. package/jsx/work/SearchResults/SearchResults.stories.jsx +0 -242
  817. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +0 -1
  818. package/jsx/work/SearchResults/SearchResults.styles.d.ts +0 -5
  819. package/jsx/work/SearchResults/SearchResults.styles.d.ts.map +0 -1
  820. package/jsx/work/SearchResults/SearchResults.styles.js +0 -12
  821. package/jsx/work/SearchResults/SearchResults.styles.js.map +0 -1
  822. package/jsx/work/Stages/Stages.mocks.d.ts +0 -14
  823. package/jsx/work/Stages/Stages.mocks.d.ts.map +0 -1
  824. package/jsx/work/Stages/Stages.mocks.jsx +0 -40
  825. package/jsx/work/Stages/Stages.mocks.jsx.map +0 -1
  826. package/jsx/work/Stages/Stages.stories.d.ts +0 -11
  827. package/jsx/work/Stages/Stages.stories.d.ts.map +0 -1
  828. package/jsx/work/Stages/Stages.stories.jsx +0 -45
  829. package/jsx/work/Stages/Stages.stories.jsx.map +0 -1
  830. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +0 -17
  831. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +0 -1
  832. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +0 -36
  833. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +0 -1
  834. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +0 -8
  835. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +0 -1
  836. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +0 -99
  837. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +0 -1
  838. package/jsx/work/Tags/Tags.mocks.d.ts +0 -3
  839. package/jsx/work/Tags/Tags.mocks.d.ts.map +0 -1
  840. package/jsx/work/Tags/Tags.mocks.js +0 -76
  841. package/jsx/work/Tags/Tags.mocks.js.map +0 -1
  842. package/jsx/work/Tags/Tags.stories.d.ts +0 -10
  843. package/jsx/work/Tags/Tags.stories.d.ts.map +0 -1
  844. package/jsx/work/Tags/Tags.stories.jsx +0 -66
  845. package/jsx/work/Tags/Tags.stories.jsx.map +0 -1
  846. package/jsx/work/Tasks/TaskList.stories.d.ts +0 -5
  847. package/jsx/work/Tasks/TaskList.stories.d.ts.map +0 -1
  848. package/jsx/work/Tasks/TaskList.stories.jsx +0 -19
  849. package/jsx/work/Tasks/TaskList.stories.jsx.map +0 -1
  850. package/jsx/work/Tasks/Tasks.mocks.d.ts +0 -22
  851. package/jsx/work/Tasks/Tasks.mocks.d.ts.map +0 -1
  852. package/jsx/work/Tasks/Tasks.mocks.js +0 -51
  853. package/jsx/work/Tasks/Tasks.mocks.js.map +0 -1
  854. package/jsx/work/Tasks/Tasks.stories.d.ts +0 -15
  855. package/jsx/work/Tasks/Tasks.stories.d.ts.map +0 -1
  856. package/jsx/work/Tasks/Tasks.stories.jsx +0 -79
  857. package/jsx/work/Tasks/Tasks.stories.jsx.map +0 -1
  858. package/jsx/work/Timeline/Timeline.mocks.d.ts +0 -3
  859. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +0 -1
  860. package/jsx/work/Timeline/Timeline.mocks.jsx +0 -144
  861. package/jsx/work/Timeline/Timeline.mocks.jsx.map +0 -1
  862. package/jsx/work/Timeline/Timeline.stories.d.ts +0 -11
  863. package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
  864. package/jsx/work/Timeline/Timeline.stories.jsx +0 -78
  865. package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
  866. package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -24
  867. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +0 -1
  868. package/jsx/wss/AppShell/AppShell.mocks.jsx +0 -64
  869. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +0 -1
  870. package/jsx/wss/AppShell/AppShell.stories.d.ts +0 -19
  871. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +0 -1
  872. package/jsx/wss/AppShell/AppShell.stories.jsx +0 -96
  873. package/jsx/wss/AppShell/AppShell.stories.jsx.map +0 -1
  874. package/jsx/wss/AppShell/AppShell.styles.d.ts +0 -2
  875. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +0 -1
  876. package/jsx/wss/AppShell/AppShell.styles.js +0 -5
  877. package/jsx/wss/AppShell/AppShell.styles.js.map +0 -1
  878. package/jsx/wss/CaseView/CaseView.mocks.d.ts +0 -13
  879. package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +0 -1
  880. package/jsx/wss/CaseView/CaseView.mocks.jsx +0 -34
  881. package/jsx/wss/CaseView/CaseView.mocks.jsx.map +0 -1
  882. package/jsx/wss/CaseView/CaseView.stories.d.ts +0 -12
  883. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +0 -1
  884. package/jsx/wss/CaseView/CaseView.stories.jsx +0 -74
  885. package/jsx/wss/CaseView/CaseView.stories.jsx.map +0 -1
  886. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +0 -15
  887. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  888. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +0 -41
  889. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  890. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +0 -11
  891. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +0 -1
  892. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +0 -28
  893. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +0 -1
@@ -1,1219 +0,0 @@
1
- import { useState, useRef, useCallback, useEffect, createRef } from 'react';
2
- import { action } from '@storybook/addon-actions';
3
- import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, Flex, Button, menuHelpers, CardHeader, Text, SummaryList, Grid, FieldValueList, StyledLabel, Modal, useModalManager, useModalContext, useToaster, Banner } from '@pega/cosmos-react-core';
4
- import * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';
5
- import { Email as EmailComponent, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList, EmailManager, EmailCaseView } from '@pega/cosmos-react-social';
6
- import { AppShellDemo } from '../../core/AppShell/AppShell.stories';
7
- import { bccParticipants, ccParticipants, emailBodyContent, participants, toParticipants, emailAttachments, EntityListMockData, viewAnalysisEmailHeaderMock, topicListMock, generateEmailConversationParticipants, templates, handleExternalEntry, emailDemoActions, LaunchAction, baseComposerProps, sentiment, emailSummaryItems, mockEmails, mockSuggestedReplies, forwardedContent, getCompositeId, emptyFieldErrorMessage, fieldValidation, emailWorklistItemsMock, contextMenuItemsMock, highlightedEntitiesMock, mockUploadImage, mailDeliverySystemEmail, supportTeamEmail, bodyData, emailAccounts, getTemplate } from './Email.mocks';
8
- import { StyledEmailCardContent } from './Email.styles';
9
- registerIcon(filterIcon);
10
- export default {
11
- title: 'Social/Email',
12
- component: EmailComponent
13
- };
14
- export const Email = (args) => {
15
- const contextMenuHandle = useRef(null);
16
- const timeout = useRef(null);
17
- const handleRightClick = (id, e) => {
18
- action('onContextMenu')(id, e);
19
- if (contextMenuHandle.current && args.enableContextMenu) {
20
- const { setItems, setOpen, setLoading } = contextMenuHandle.current;
21
- e.preventDefault();
22
- setLoading(true);
23
- setItems([]);
24
- setOpen(true);
25
- if (timeout.current) {
26
- clearTimeout(timeout.current);
27
- }
28
- timeout.current = window.setTimeout(() => {
29
- setItems(contextMenuItemsMock);
30
- setLoading(false);
31
- }, 1000);
32
- }
33
- };
34
- useEffect(() => {
35
- return () => {
36
- if (timeout.current) {
37
- window.clearTimeout(timeout.current);
38
- }
39
- };
40
- }, []);
41
- return (<Card>
42
- <StyledEmailCardContent>
43
- <EmailComponent id={createUID()} timeStamp='2021-01-05T09:12' from={mockEmails['Laura Stevens']} cc={[mockEmails['Adam Gillchrist'], mockEmails['John Paul']]} bcc={[mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']]} to={[mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']]} body={args.body ||
44
- '<div style="font-size: 0.95em;">Hi,<p>I am one of the customer of Indian Overseas Bank, <b><i>Nagercoil</i></b> branch, with code <b><a href="https://www.pega.com" target="_blank"><i>3967</i></a></b>. I have a saving bank account here. My account number is <i>6785420965476</i> with an account balance of ₹97,398.57.</p><p>I have been given a debit cum ATM card from this bank and the same has been lost when I was traveling from Nagercoil to Trichy by Bus on Jan 04, 2021. I remember that my ATM card number was 1920 6746 8653 1256.</p><p>I hereby request you to block my debit card immediately to prevent misuse of the same by some others. Also I request you to send me an new debit card to my address, 22-6-14/A(99M5+RR), Gandhi Road, Hyderabad, as early as possible.<p><br/><p style="font-weight: bold; color: #0fa4ad">Regards,<br/>Laura Stevens</p><img style="width: 100px; margin-left: -8px;" loading="lazy" alt="Pega logo" src="https://www.pega.com/sites/default/files/media/images/2021-10/pega-logo-vertical-positive-rgb-01.png" /></div>'} forwardedContent={args.forwardedContent} entityHighlightMapping={args.enableEntityHighlighting
45
- ? args.entityHighlightMapping || highlightedEntitiesMock
46
- : undefined} subject={args.subject || 'I lost my debit card'} banner={args.showEmailBanner
47
- ? {
48
- messages: [
49
- {
50
- label: 'Address not found.',
51
- description: '550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
52
- }
53
- ]
54
- }
55
- : undefined} onReply={args.onReply || (args.showDraft ? undefined : action('On reply'))} onReplyAll={args.onReplyAll || (args.showDraft ? undefined : action('On reply all'))} onForward={args.onForward || (args.showDraft ? undefined : action('On forward'))} onEditDraft={args.onEditDraft || (args.showDraft ? action('On forward') : undefined)} onDeleteDraft={args.onDeleteDraft || (args.showDraft ? action('On forward') : undefined)} onSuggestionClick={args.onSuggestionClick || action('On Suggested reply clicked')} sentiment={{
56
- variant: 'neutral'
57
- }} status={args.showDraft ? 'draft' : undefined} suggestions={mockSuggestedReplies} contextMenu={args.contextMenu ||
58
- (args.enableContextMenu
59
- ? {
60
- onItemClick: (selectedValue) => {
61
- action('onItemClick')(selectedValue);
62
- contextMenuHandle.current?.setOpen(false);
63
- },
64
- onContextMenu: handleRightClick,
65
- handle: contextMenuHandle
66
- }
67
- : undefined)} attachments={[
68
- {
69
- id: 'attachment_0',
70
- value: 'https://pega.com/media/document.doc',
71
- displayText: 'Policy document'
72
- },
73
- {
74
- id: 'attachment_1',
75
- value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
76
- displayText: 'E-Ticket'
77
- }
78
- ].map(attachment => {
79
- return {
80
- ...attachment,
81
- onDownload: action('On attachment download')
82
- };
83
- })}/>
84
- </StyledEmailCardContent>
85
- </Card>);
86
- };
87
- Email.args = {
88
- enableEntityHighlighting: false,
89
- enableContextMenu: false,
90
- forwardedContent,
91
- showEmailBanner: false,
92
- showDraft: false
93
- };
94
- Email.argTypes = {
95
- enableEntityHighlighting: { control: { type: 'boolean' } },
96
- enableContextMenu: { control: { type: 'boolean' } },
97
- forwardedContent: { control: { type: 'text' } },
98
- showEmailBanner: { control: { type: 'boolean' } },
99
- showDraft: { control: { type: 'boolean' } }
100
- };
101
- export const Composer = (args) => {
102
- const enableSaveAsDraft = args.enableSaveAsDraft !== undefined ? args.enableSaveAsDraft : true;
103
- const enableResponseTypeToggle = args.enableResponseTypeToggle !== undefined ? args.enableResponseTypeToggle : true;
104
- const [composerProgress, setComposerProgress] = useState(false);
105
- const composerHandle = useRef(null);
106
- const [data, setData] = useState({
107
- to: { value: toParticipants },
108
- cc: { value: [] },
109
- bcc: { value: [] },
110
- subject: { value: 'Request: Pause service' },
111
- bodyContent: {
112
- defaultValue: bodyData
113
- },
114
- responseType: 'reply',
115
- selectedTemplateId: '',
116
- attachments: emailAttachments,
117
- bodyContentCurrentValue: ''
118
- });
119
- const handleOnChange = (field, value, isProgramatic) => {
120
- if (field === 'bodyContent') {
121
- setData(prev => ({
122
- ...prev,
123
- bodyContentCurrentValue: value,
124
- bodyContent: {
125
- defaultValue: value
126
- }
127
- }));
128
- }
129
- if (['responseType', 'attachments', 'selectedTemplateId'].includes(field)) {
130
- setData(prev => ({
131
- ...prev,
132
- [field]: value
133
- }));
134
- }
135
- else {
136
- setData(prev => {
137
- return {
138
- ...prev,
139
- [field]: { error: undefined, value }
140
- };
141
- });
142
- }
143
- action('onChange')(field, value, isProgramatic);
144
- };
145
- useEffect(() => {
146
- if (data.responseType === 'reply') {
147
- setData(prev => {
148
- return {
149
- ...prev,
150
- to: {
151
- ...prev.to,
152
- value: [toParticipants[0]]
153
- },
154
- cc: {
155
- ...prev.cc,
156
- value: []
157
- },
158
- bcc: {
159
- ...prev.bcc,
160
- value: []
161
- }
162
- };
163
- });
164
- }
165
- else if (data.responseType === 'replyAll') {
166
- setData(prev => {
167
- return {
168
- ...prev,
169
- to: {
170
- ...prev.to,
171
- value: toParticipants
172
- },
173
- cc: {
174
- ...prev.cc,
175
- value: ccParticipants
176
- },
177
- bcc: {
178
- ...prev.bcc,
179
- value: bccParticipants
180
- }
181
- };
182
- });
183
- }
184
- else if (data.responseType === 'forward') {
185
- setData(prev => {
186
- return {
187
- ...prev,
188
- to: {
189
- ...prev.to,
190
- value: []
191
- },
192
- cc: {
193
- ...prev.cc,
194
- value: []
195
- },
196
- bcc: {
197
- ...prev.bcc,
198
- value: []
199
- }
200
- };
201
- });
202
- }
203
- }, [data.responseType]);
204
- const onTemplateChange = (templateId) => {
205
- const selectedTemplate = getTemplate(templateId);
206
- setComposerProgress({ message: 'Loading template...' });
207
- setTimeout(() => {
208
- setComposerProgress(false);
209
- composerHandle.current?.replaceBodyContent(selectedTemplate?.content || '');
210
- composerHandle.current?.setCursorLocationToStart?.();
211
- }, 1000);
212
- };
213
- useEffect(() => {
214
- if (data.selectedTemplateId)
215
- onTemplateChange(data.selectedTemplateId);
216
- }, [data.selectedTemplateId]);
217
- const handleOnSend = () => {
218
- setData(prev => {
219
- return {
220
- ...prev,
221
- to: {
222
- value: prev.to?.value || [],
223
- error: data?.to?.value.length === 0 ? emptyFieldErrorMessage : fieldValidation(data?.to?.value)
224
- },
225
- cc: {
226
- value: prev.cc?.value || [],
227
- error: data.cc === undefined ? undefined : fieldValidation(data.cc.value)
228
- },
229
- bcc: {
230
- value: prev.bcc?.value || [],
231
- error: data.bcc === undefined ? undefined : fieldValidation(data.bcc.value)
232
- },
233
- subject: {
234
- ...prev.subject,
235
- error: data.subject?.value === '' ? emptyFieldErrorMessage : undefined
236
- },
237
- bodyContent: {
238
- ...prev.bodyContent,
239
- error: data.bodyContentCurrentValue === '' ? emptyFieldErrorMessage : undefined
240
- }
241
- };
242
- });
243
- };
244
- const onImageAdded = (image, id) => {
245
- action('On Image added');
246
- setComposerProgress({ message: 'Uploading image' });
247
- mockUploadImage(image)
248
- .then(({ src, alt }) => {
249
- composerHandle.current?.updateImage({ src, alt }, id);
250
- setComposerProgress(false);
251
- })
252
- .catch(() => {
253
- setComposerProgress(false);
254
- });
255
- };
256
- const pushContentToBody = () => {
257
- if (args.bodyContentToReplace)
258
- composerHandle.current?.replaceBodyContent(args.bodyContentToReplace);
259
- };
260
- const onEditorInit = () => {
261
- action('onEditorInit')();
262
- };
263
- return (<>
264
- <EmailComposer handle={composerHandle} progress={composerProgress} onSave={args.onSave || (enableSaveAsDraft ? action('On save') : undefined)} onSend={args.onSend || handleOnSend} onCancel={args.onCancel || action('On cancel')} externalValidator={handleExternalEntry} participants={participants} onChange={args.onChange || handleOnChange} data={args.data || {
265
- ...data,
266
- responseType: enableResponseTypeToggle ? data.responseType : undefined
267
- }} templates={templates} onImageAdded={onImageAdded} onEditorInit={onEditorInit}/>
268
- <Button onClick={pushContentToBody}>Replace body content</Button>
269
- </>);
270
- };
271
- Composer.args = {
272
- enableResponseTypeToggle: true,
273
- enableSaveAsDraft: true,
274
- bodyContentToReplace: 'Hello Eula,<br>Welcome to the world of <b>Awesome product</b>.<br><br>We appreciate your interest in this our <i>Awesome product</i>.<br><br>Please carefully read through the <a href="pega.com">user manual</a> carefully before operating this product.<br>For any queries you can always reach out to us through any of the contact details mentioned on <a href="https://www.pega.com/contact-us">our website</a>.<br><br> Regards,<br>Customer Support<br><span style="font-weight:bold">Awesome Product</span>'
275
- };
276
- Composer.argTypes = {
277
- enableResponseTypeToggle: {
278
- control: 'boolean'
279
- },
280
- enableSaveAsDraft: {
281
- control: { type: 'boolean' }
282
- },
283
- bodyContentToReplace: {
284
- control: { type: 'text' }
285
- }
286
- };
287
- export const OutboundEmail = (args) => {
288
- const { enableResponseTypeToggle = true, enableSaveAsDraft = true } = args;
289
- const [composerProgress, setComposerProgress] = useState(false);
290
- const composerHandle = useRef(null);
291
- const [data, setData] = useState({
292
- to: { value: [] },
293
- cc: { value: [] },
294
- bcc: { value: [] },
295
- subject: { value: '' },
296
- selectedTemplateId: '',
297
- bodyContent: {
298
- defaultValue: bodyData
299
- },
300
- bodyContentCurrentValue: ''
301
- });
302
- const handleOnChange = (field, value) => {
303
- if (field === 'bodyContent') {
304
- setData(prev => ({
305
- ...prev,
306
- bodyContentCurrentValue: value
307
- }));
308
- }
309
- else if (['attachments', 'selectedTemplateId'].includes(field)) {
310
- setData(prev => ({
311
- ...prev,
312
- [field]: value
313
- }));
314
- }
315
- else {
316
- setData(prev => {
317
- return {
318
- ...prev,
319
- [field]: { error: undefined, value }
320
- };
321
- });
322
- }
323
- action('onChange')(field, value);
324
- };
325
- const onTemplateChange = (templateId) => {
326
- const selectedTemplate = getTemplate(templateId);
327
- setComposerProgress({ message: 'Loading template...' });
328
- setTimeout(() => {
329
- setComposerProgress(false);
330
- composerHandle.current?.replaceBodyContent(selectedTemplate?.content || '');
331
- composerHandle.current?.setCursorLocationToStart?.();
332
- }, 1000);
333
- };
334
- useEffect(() => {
335
- if (data.selectedTemplateId)
336
- onTemplateChange(data.selectedTemplateId);
337
- }, [data.selectedTemplateId]);
338
- const handleOnSend = () => {
339
- setData(prev => {
340
- return {
341
- ...prev,
342
- emailAccount: {
343
- value: prev.emailAccount?.value || '',
344
- error: data.emailAccount?.value ? undefined : emptyFieldErrorMessage
345
- },
346
- to: {
347
- value: prev.to?.value || [],
348
- error: data?.to?.value.length === 0 ? emptyFieldErrorMessage : fieldValidation(data?.to?.value)
349
- },
350
- cc: {
351
- value: prev.cc?.value || [],
352
- error: data.cc === undefined ? undefined : fieldValidation(data.cc.value)
353
- },
354
- bcc: {
355
- value: prev.bcc?.value || [],
356
- error: data.bcc === undefined ? undefined : fieldValidation(data.bcc.value)
357
- },
358
- subject: {
359
- ...prev.subject,
360
- error: data.subject?.value === '' ? emptyFieldErrorMessage : undefined
361
- },
362
- bodyContent: {
363
- ...prev.bodyContent,
364
- error: data.bodyContentCurrentValue === '' ? emptyFieldErrorMessage : undefined
365
- }
366
- };
367
- });
368
- };
369
- const onImageAdded = (image, id) => {
370
- action('On Image added');
371
- setComposerProgress({ message: 'Uploading image' });
372
- mockUploadImage(image)
373
- .then(({ src, alt }) => {
374
- composerHandle.current?.updateImage({ src, alt }, id);
375
- setComposerProgress(false);
376
- })
377
- .catch(() => {
378
- setComposerProgress(false);
379
- });
380
- };
381
- const onEditorInit = () => {
382
- action('onEditorInit')();
383
- };
384
- return (<EmailComposer handle={composerHandle} progress={composerProgress} onSave={args.onSave || (enableSaveAsDraft ? action('On save') : undefined)} onSend={args.onSend || handleOnSend} onCancel={args.onCancel || action('On cancel')} externalValidator={handleExternalEntry} participants={participants} senderAccounts={emailAccounts} onChange={args.onChange || handleOnChange} data={args.data || {
385
- ...data,
386
- responseType: enableResponseTypeToggle ? data.responseType : undefined
387
- }} templates={templates} onImageAdded={onImageAdded} onEditorInit={onEditorInit}/>);
388
- };
389
- OutboundEmail.args = {
390
- enableResponseTypeToggle: false,
391
- enableSaveAsDraft: false
392
- };
393
- OutboundEmail.argTypes = {
394
- enableResponseTypeToggle: {
395
- control: 'boolean'
396
- },
397
- enableSaveAsDraft: {
398
- control: { type: 'boolean' }
399
- }
400
- };
401
- export const Conversation = (args) => {
402
- const emailArr = [
403
- {
404
- id: 'item_0',
405
- timeStamp: '2021-01-05T09:12',
406
- from: mockEmails['Laura Stevens'],
407
- cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
408
- bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
409
- to: [mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']],
410
- body: '<div> Hi, <br /> <br /> <div>Sure.. Here is your E-Ticket !! </div> <br /><br /> Regards, <br /> Laura Stevens </div>',
411
- unRead: true,
412
- onReply: action('On reply'),
413
- onForward: action('On forward'),
414
- onSuggestionClick: action('On Suggested reply clicked'),
415
- suggestions: mockSuggestedReplies
416
- },
417
- {
418
- id: 'item_1',
419
- timeStamp: '2021-01-02T03:12',
420
- from: mockEmails['Sara Davis'],
421
- cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
422
- bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
423
- to: [mockEmails['Laura Stevens'], mockEmails['John Brown'], mockEmails['Joe Stevens']],
424
- body: '<div> Hi, <br /> <br /> <div>I’m still at the airport, I need help now!! </div> <br /><br /> Regards, <br /> Sara Davis </div>',
425
- onReply: action('On reply'),
426
- onForward: action('On forward'),
427
- onSuggestionClick: action('On Suggested reply clicked')
428
- }
429
- ];
430
- return (<EmailConversation participants={generateEmailConversationParticipants(emailArr)} from={generateEmailConversationParticipants(emailArr, ['from'])[0]} to={generateEmailConversationParticipants(emailArr, ['to'])} id={createUID()} timeStamp={emailArr[0].timeStamp} unReadEmailCount={args.unReadEmailCount !== undefined
431
- ? args.unReadEmailCount
432
- : emailArr.filter(item => item.unRead).length} emails={args.emails || emailArr} isForwarded={args.isForwarded || false} isCollapsed={args.isCollapsed || false} undelivered={args.undelivered || false} drafts={args.drafts || false}/>);
433
- };
434
- export const EmailShellDemo = (args) => {
435
- const { create } = useModalManager();
436
- const { push } = useToaster();
437
- const actions = ['Transfer', 'End conversation'].map(name => ({
438
- primary: name,
439
- id: name,
440
- onClick: action(`Clicked ${name}`)
441
- }));
442
- const [composersData, setComposersData] = useState({});
443
- const [conversationEmails, setConversationEmails] = useState([]);
444
- const handleResponseTypeChange = (uid, responseType) => {
445
- if (responseType === 'reply') {
446
- setComposersData(prev => {
447
- return {
448
- ...prev,
449
- [uid]: {
450
- ...prev[uid],
451
- data: {
452
- ...prev[uid].data,
453
- to: {
454
- ...prev[uid].data.to,
455
- value: [toParticipants[0]]
456
- },
457
- cc: {
458
- ...prev[uid].data.cc,
459
- value: []
460
- },
461
- bcc: {
462
- ...prev[uid].data.bcc,
463
- value: []
464
- }
465
- }
466
- }
467
- };
468
- });
469
- }
470
- else if (responseType === 'replyAll') {
471
- setComposersData(prev => {
472
- return {
473
- ...prev,
474
- [uid]: {
475
- ...prev[uid],
476
- data: {
477
- ...prev[uid].data,
478
- to: {
479
- ...prev[uid].data.to,
480
- value: toParticipants
481
- },
482
- cc: {
483
- ...prev[uid].data.cc,
484
- value: ccParticipants
485
- },
486
- bcc: {
487
- ...prev[uid].data.bcc,
488
- value: bccParticipants
489
- }
490
- }
491
- }
492
- };
493
- });
494
- }
495
- };
496
- const handleTemplateChange = (uid, templateId) => {
497
- const selectedTemplate = getTemplate(templateId);
498
- setComposersData(prev => {
499
- return {
500
- ...prev,
501
- [uid]: {
502
- ...prev[uid],
503
- progress: { message: 'Loading template...' }
504
- }
505
- };
506
- });
507
- setTimeout(() => {
508
- setComposersData(prev => {
509
- return {
510
- ...prev,
511
- [uid]: {
512
- ...prev[uid],
513
- progress: false
514
- }
515
- };
516
- });
517
- let currentData = {};
518
- setComposersData(prev => {
519
- currentData = prev;
520
- return prev;
521
- });
522
- if (currentData) {
523
- currentData[uid]?.handle?.current?.replaceBodyContent(selectedTemplate?.content || '');
524
- }
525
- }, 1000);
526
- };
527
- const handleChange = (uid, field, value) => {
528
- setComposersData(prevData => {
529
- if (field === 'bodyContent' && typeof value === 'string') {
530
- return {
531
- ...prevData,
532
- [uid]: {
533
- ...prevData[uid],
534
- bodyContentCurrentValue: value
535
- }
536
- };
537
- }
538
- return {
539
- ...prevData,
540
- [uid]: {
541
- ...prevData[uid],
542
- data: {
543
- ...prevData[uid].data,
544
- [field]: ['responseType', 'attachments', 'selectedTemplateId'].includes(field)
545
- ? value
546
- : {
547
- error: undefined,
548
- value
549
- }
550
- }
551
- }
552
- };
553
- });
554
- if (field === 'responseType' && typeof value === 'string') {
555
- handleResponseTypeChange(uid, value);
556
- }
557
- else if (field === 'selectedTemplateId' && typeof value === 'string') {
558
- handleTemplateChange(uid, value);
559
- }
560
- };
561
- const MyModal = ({ currentID }) => {
562
- const { dismiss } = useModalContext();
563
- return (<Modal heading='Discard unsaved changes?' actions={<>
564
- <Button onClick={dismiss}>Go back</Button>
565
- <div>
566
- <Button onClick={() => {
567
- dismiss();
568
- setComposersData(prev => {
569
- return {
570
- ...prev,
571
- [currentID]: {
572
- ...prev[currentID],
573
- progress: true
574
- }
575
- };
576
- });
577
- setTimeout(() => {
578
- setComposersData(prev => {
579
- const newComposersData = { ...prev };
580
- delete newComposersData[currentID];
581
- return newComposersData;
582
- });
583
- push({ content: 'Draft Saved' });
584
- }, 1000);
585
- }}>
586
- Save & close
587
- </Button>
588
- <Button variant='primary' onClick={() => {
589
- dismiss();
590
- setComposersData(prev => {
591
- const newComposersData = { ...prev };
592
- delete newComposersData[currentID];
593
- return newComposersData;
594
- });
595
- }}>
596
- Discard
597
- </Button>
598
- </div>
599
- </>}>
600
- <Text variant='primary'>
601
- You have unsaved changes. You can discard them or go back to keep working.
602
- </Text>
603
- </Modal>);
604
- };
605
- const handleCancel = (uid) => {
606
- create(MyModal, { currentID: uid }, { alert: true });
607
- };
608
- const handleSend = (uid) => {
609
- action('Send')();
610
- setComposersData(prev => {
611
- return {
612
- ...prev,
613
- [uid]: {
614
- ...prev[uid],
615
- progress: true
616
- }
617
- };
618
- });
619
- setTimeout(() => {
620
- setComposersData(prev => {
621
- const newComposersData = { ...prev };
622
- delete newComposersData[uid];
623
- return newComposersData;
624
- });
625
- push({ content: 'Email Send' });
626
- }, 1000);
627
- };
628
- const handleSave = (uid) => {
629
- action('Save')();
630
- setComposersData(prev => {
631
- return {
632
- ...prev,
633
- [uid]: {
634
- ...prev[uid],
635
- progress: true
636
- }
637
- };
638
- });
639
- setTimeout(() => {
640
- setComposersData(prev => {
641
- const newComposersData = { ...prev };
642
- delete newComposersData[uid];
643
- return newComposersData;
644
- });
645
- push({ content: 'Draft Saved' });
646
- }, 1000);
647
- };
648
- const createOrActivateComposer = (id, launchAction, composerProps) => {
649
- const uid = getCompositeId(id, launchAction);
650
- if (composersData[uid]) {
651
- composersData[uid].handle?.current?.activate();
652
- }
653
- else {
654
- setComposersData(prev => {
655
- const composerHandle = createRef();
656
- return {
657
- ...prev,
658
- [uid]: {
659
- ...composerProps,
660
- bodyContentCurrentValue: composerProps.data.bodyContent.defaultValue,
661
- handle: composerHandle,
662
- onChange: (field, value) => handleChange(uid, field, value),
663
- onCancel: () => handleCancel(uid),
664
- onSend: () => handleSend(uid),
665
- onSave: () => handleSave(uid)
666
- }
667
- };
668
- });
669
- }
670
- };
671
- const emailsData = [
672
- {
673
- id: 'item0',
674
- timeStamp: '2021-01-05T09:12',
675
- from: participants[0],
676
- to: participants.slice(0, 2),
677
- body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Laura Stevens </div>',
678
- unRead: true,
679
- subject: 'Pause service',
680
- suggestions: args.hideSuggestions ? undefined : mockSuggestedReplies,
681
- attachments: [
682
- {
683
- id: 'item_1_0',
684
- value: 'https://pega.com/media/document.doc',
685
- displayText: 'Policy document'
686
- },
687
- {
688
- id: 'item_1_1',
689
- value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
690
- displayText: 'E-Ticket'
691
- }
692
- ].map(attachment => {
693
- return {
694
- ...attachment,
695
- onDownload: action('On attachment download')
696
- };
697
- })
698
- },
699
- {
700
- id: 'item1',
701
- timeStamp: '2021-01-02T03:12',
702
- from: participants[3],
703
- to: participants.slice(2, 4),
704
- body: emailBodyContent,
705
- unRead: true,
706
- subject: 'Pause service'
707
- }
708
- ].map(emailData => {
709
- const emailActionItems = emailDemoActions(emailData.id, emailData.subject, createOrActivateComposer, false, emailData.body);
710
- return {
711
- ...emailData,
712
- onReply: (id) => {
713
- createOrActivateComposer(id, LaunchAction.REPLY, {
714
- ...baseComposerProps,
715
- data: {
716
- ...baseComposerProps.data,
717
- responseType: 'reply',
718
- subject: { value: `Re-${emailData.subject}` || '' }
719
- },
720
- externalValidator: handleExternalEntry
721
- });
722
- },
723
- onForward: id => {
724
- createOrActivateComposer(id, LaunchAction.FORWARD, {
725
- ...baseComposerProps,
726
- data: {
727
- ...baseComposerProps.data,
728
- responseType: 'forward',
729
- subject: { value: `Fw-${emailData.subject}` || '' }
730
- },
731
- externalValidator: handleExternalEntry
732
- });
733
- },
734
- onSuggestionClick: (id, suggestionId) => {
735
- const suggestion = emailData.suggestions?.find(item => item.id === suggestionId);
736
- createOrActivateComposer(id, LaunchAction.SUGGESTION, {
737
- ...baseComposerProps,
738
- data: {
739
- ...baseComposerProps.data,
740
- responseType: 'reply',
741
- subject: { value: suggestion?.title || '' },
742
- bodyContent: { defaultValue: suggestion ? suggestion.content : '' },
743
- selectedTemplateId: suggestionId
744
- },
745
- externalValidator: handleExternalEntry
746
- });
747
- },
748
- actions: emailActionItems,
749
- tags: args.hideSuggestions
750
- ? undefined
751
- : {
752
- items: ['Pause service', 'Lost or stolen'],
753
- label: 'Associated service cases',
754
- onRemove: action('On Associated service case remove'),
755
- dismissable: true
756
- }
757
- };
758
- });
759
- const DeleteDraft = ({ currentID }) => {
760
- const { dismiss } = useModalContext();
761
- return (<Modal heading='Delete draft?' actions={<>
762
- <Button onClick={dismiss}>Go back</Button>
763
-
764
- <Button variant='primary' onClick={() => {
765
- dismiss();
766
- setConversationEmails(prev => {
767
- const newEmailConversation = [];
768
- prev.forEach(arr => {
769
- const newArr = arr.filter(index => index.id !== currentID);
770
- if (newArr.length !== 0)
771
- newEmailConversation.push(newArr);
772
- });
773
- return newEmailConversation;
774
- });
775
- }}>
776
- Delete
777
- </Button>
778
- </>}>
779
- <Text>Are you sure that you want to permanently delete the selected message?</Text>
780
- </Modal>);
781
- };
782
- const deleteEmail = (id) => {
783
- create(DeleteDraft, { currentID: id }, { alert: true });
784
- };
785
- useEffect(() => {
786
- setConversationEmails([
787
- [
788
- {
789
- ...emailsData[1],
790
- id: 'item0',
791
- from: mailDeliverySystemEmail,
792
- to: [supportTeamEmail],
793
- body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
794
- banner: {
795
- messages: [
796
- {
797
- label: 'Address not found.',
798
- description: '550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
799
- }
800
- ]
801
- },
802
- onReply: undefined,
803
- onForward: undefined
804
- },
805
- { ...emailsData[1], unRead: false }
806
- ],
807
- [
808
- {
809
- ...emailsData[0],
810
- id: 'item2',
811
- status: 'draft',
812
- onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
813
- ...baseComposerProps,
814
- data: {
815
- ...baseComposerProps.data,
816
- responseType: 'reply',
817
- subject: { value: `Re-${emailsData[0].subject}` || '' },
818
- bodyContent: { defaultValue: emailsData[0].body || '' }
819
- }
820
- }),
821
- onDeleteDraft: (id) => deleteEmail(id),
822
- onReply: undefined,
823
- onForward: undefined,
824
- suggestions: undefined,
825
- unRead: false,
826
- timeStamp: '2021-01-03T17:15',
827
- from: mockEmails['Hugh Phillips'],
828
- to: [mockEmails['Mystery Rey'], ...emailsData[0].to],
829
- cc: [mockEmails['Adam Gillchrist']],
830
- bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
831
- body: '<div>Hi, <br /> <br /><div>Sure, Our executive will come and check your connection in 24hrs. </div> <br />Regards, <br />Hugh Phillips </div>'
832
- },
833
- {
834
- ...emailsData[1],
835
- id: 'item3',
836
- status: 'draft',
837
- onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
838
- ...baseComposerProps,
839
- data: {
840
- ...baseComposerProps.data,
841
- responseType: 'reply',
842
- subject: { value: `Re-${emailsData[0].subject}` || '' },
843
- bodyContent: { defaultValue: emailsData[0].body || '' }
844
- }
845
- }),
846
- onDeleteDraft: (id) => deleteEmail(id),
847
- onReply: undefined,
848
- onForward: undefined,
849
- suggestions: undefined,
850
- unRead: false,
851
- timeStamp: '2021-01-02T14:16',
852
- from: mockEmails['Mystery Rey'],
853
- to: [mockEmails['Hugh Phillips']],
854
- body: '<div>Hi, <br /> <br /><div>Can you fix my internet connection. </div> <br /> <br />Regards, <br />Rey Mystery </div>'
855
- }
856
- ],
857
- [
858
- {
859
- ...emailsData[0],
860
- id: 'item4',
861
- unRead: true,
862
- timeStamp: '2020-12-05T18:18',
863
- from: mockEmails['Laura Stevens'],
864
- to: [mockEmails['Sara Davis']],
865
- body: '<div>Hi, <br /> <br /><div>Sure, Our executive will call you shortly. </div> <br /> <br />Regards, <br />Laura Stevens </div>',
866
- sentiment: {
867
- variant: 'positive'
868
- }
869
- },
870
- {
871
- ...emailsData[1],
872
- id: 'item5',
873
- unRead: true,
874
- timeStamp: '2021-01-04T08:30',
875
- from: mockEmails['Sara Davis'],
876
- to: [mockEmails['Laura Stevens']],
877
- body: '<div>Hi, <br /> <br /><div>Can you show please explain your new mobile plans. </div> <br /> <br />Regards, <br />Sara Davis </div>'
878
- }
879
- ]
880
- ]);
881
- }, []);
882
- const emailConversations = conversationEmails.map((emails, i) => {
883
- return {
884
- from: i === 0 ? emails[1].from : generateEmailConversationParticipants(emails, ['from'])[0],
885
- to: i === 0 ? emails[1].to : emails[0].to,
886
- id: `item_${i}`,
887
- timeStamp: emails[0].timeStamp,
888
- unReadEmailCount: emails.filter(item => item.unRead).length,
889
- emails,
890
- sentiment: emails[0].sentiment,
891
- isForwarded: i !== 2,
892
- isCollapsed: i !== 0,
893
- drafts: i === 1,
894
- undelivered: i === 0
895
- };
896
- });
897
- const singleEmailConversation = [
898
- {
899
- from: generateEmailConversationParticipants(emailsData, ['from'])[0],
900
- to: generateEmailConversationParticipants(emailsData, ['to']),
901
- id: 'item_0',
902
- timeStamp: new Date(emailsData[0].timeStamp),
903
- unReadEmailCount: 1,
904
- emails: [
905
- {
906
- ...emailsData[1],
907
- id: 'item0',
908
- from: mailDeliverySystemEmail,
909
- to: [supportTeamEmail],
910
- body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
911
- banner: {
912
- messages: [
913
- {
914
- label: 'Address not found.',
915
- description: '550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
916
- }
917
- ]
918
- },
919
- onReply: undefined,
920
- onForward: undefined
921
- },
922
- { ...emailsData[1], unRead: false }
923
- ]
924
- }
925
- ];
926
- return (<>
927
- <EmailShell headerProps={args.headerProps ||
928
- (args.showHeader
929
- ? {
930
- actions: (<Flex container={{
931
- alignItems: 'center',
932
- gap: 0
933
- }}>
934
- <Button variant='simple' icon>
935
- <Icon name='filter'/>
936
- </Button>
937
- <MenuButton variant='simple' text='More actions' icon='more' iconOnly portal menu={{ items: actions }}/>
938
- </Flex>),
939
- subject: 'Pause service'
940
- }
941
- : undefined)} autoCollapse={args.autoCollapse} conversations={args.conversations ||
942
- (args.singleConversation ? singleEmailConversation : emailConversations)}/>
943
- <>
944
- {Object.keys(composersData).map(guid => {
945
- return <EmailComposer key={guid} {...composersData[guid]}/>;
946
- })}
947
- </>
948
- </>);
949
- };
950
- EmailShellDemo.args = {
951
- autoCollapse: true,
952
- hideSuggestions: false,
953
- singleConversation: false,
954
- showHeader: true
955
- };
956
- EmailShellDemo.argTypes = {
957
- autoCollapse: { control: { type: 'boolean' } },
958
- hideSuggestions: { control: { type: 'boolean' } },
959
- singleConversation: { control: { type: 'boolean' } },
960
- showHeader: { control: { type: 'boolean' } }
961
- };
962
- export const EntityListDemo = (args) => {
963
- const itemCounter = useRef(3);
964
- const timeout = useRef(null);
965
- const contextMenuHandle = useRef(null);
966
- const headerProps = {
967
- icon: 'list-number',
968
- text: 'Entities'
969
- };
970
- const handleRightClick = (e) => {
971
- action('onContextMenu')(e);
972
- if (contextMenuHandle.current && args.enableContextMenu) {
973
- itemCounter.current += 1;
974
- const { setItems, setOpen, setLoading } = contextMenuHandle.current;
975
- e.preventDefault();
976
- setLoading(true);
977
- setItems([]);
978
- setOpen(true);
979
- if (timeout.current) {
980
- window.clearTimeout(timeout.current);
981
- }
982
- timeout.current = window.setTimeout(() => {
983
- setItems(contextMenuItemsMock);
984
- setLoading(false);
985
- }, 1000);
986
- }
987
- };
988
- useEffect(() => {
989
- return () => {
990
- if (timeout.current) {
991
- window.clearTimeout(timeout.current);
992
- }
993
- };
994
- }, []);
995
- return (<EntityList header={headerProps} content={args.content || EntityListMockData} contextMenu={{
996
- onItemClick: action('onItemClick'),
997
- onContextMenu: args.onContextMenu || handleRightClick,
998
- handle: contextMenuHandle
999
- }}/>);
1000
- };
1001
- EntityListDemo.args = {
1002
- enableContextMenu: true
1003
- };
1004
- EntityListDemo.argTypes = {
1005
- enableContextMenu: { control: { type: 'boolean' } }
1006
- };
1007
- export const EmailSummaryItemDemo = (args) => {
1008
- return (<EmailSummaryItem id={createUID()} activeParticipants={[
1009
- {
1010
- shortName: 'Robert',
1011
- fullName: 'Robert Downer',
1012
- emailAddress: 'robert.downey@example.com'
1013
- },
1014
- {
1015
- shortName: 'Nathan',
1016
- fullName: 'Nathan Swanson',
1017
- emailAddress: 'nathan.swanson@example.com'
1018
- }
1019
- ]} message='I have a quick question on traveling to India. How do I reach Hyderabad?' timeStamp={new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24))} topic='Missing Luggage' sentiment={sentiment} urgency={10} unreadEmailCount={args.unreadEmailCount} active={args.isActive} onSelect={(id) => {
1020
- action('onSelect')(id);
1021
- }}/>);
1022
- };
1023
- EmailSummaryItemDemo.args = {
1024
- unreadEmailCount: 0,
1025
- isActive: false
1026
- };
1027
- EmailSummaryItemDemo.argTypes = {
1028
- unreadEmailCount: { control: { type: 'number' } },
1029
- isActive: { control: { type: 'boolean' } }
1030
- };
1031
- export const EmailSummaryListDemo = (args) => {
1032
- const INITIAL_CHUNK_SIZE = 9;
1033
- const APPEND_CHUNK_SIZE = 1;
1034
- const [allEmailItems, setAllEmailItems] = useState(args.items || emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
1035
- useEffect(() => {
1036
- if (args.items)
1037
- setAllEmailItems(args.items);
1038
- }, [args.items]);
1039
- const [categories, setCategories] = useState(emailWorklistItemsMock);
1040
- const [currentItemId, setCurrentItemId] = useState(emailSummaryItems[0].id);
1041
- const handleItemClick = (id) => {
1042
- const index = allEmailItems.findIndex(emailItem => {
1043
- return emailItem.id === id;
1044
- });
1045
- const newEmailItems = [...allEmailItems];
1046
- newEmailItems.splice(index, 1, { ...allEmailItems[index], unreadEmailCount: 0 });
1047
- setAllEmailItems(newEmailItems);
1048
- setCurrentItemId(id);
1049
- };
1050
- const onCategoryClick = (id) => {
1051
- setCategories(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));
1052
- };
1053
- const [loading, setLoading] = useState(false);
1054
- const [hasMore, setHasMore] = useState(true);
1055
- const loadMore = useCallback(() => {
1056
- if (!loading) {
1057
- setLoading(true);
1058
- setTimeout(() => {
1059
- setLoading(false);
1060
- setAllEmailItems(prevItems => {
1061
- const previousItemsLength = prevItems.length;
1062
- const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
1063
- if (newItems.length === 0) {
1064
- setHasMore(false);
1065
- }
1066
- return [...prevItems, ...newItems];
1067
- });
1068
- }, 1500);
1069
- }
1070
- }, [loading]);
1071
- return (<EmailSummaryList count={args.count
1072
- ? args.count
1073
- : {
1074
- total: emailSummaryItems.length,
1075
- unread: allEmailItems.reduce((result, email) => email.unreadEmailCount ? result + email.unreadEmailCount : result, 0)
1076
- }} categories={categories} searchQuery={args.searchQuery} items={args.items || allEmailItems} onItemClick={args.onItemClick || handleItemClick} onCategoryClick={onCategoryClick} onLoadMore={args.onLoadMore || (hasMore ? loadMore : undefined)} loading={args.loading || loading} emptyMessage='No emails.' currentItemId={args.currentItemId || currentItemId}/>);
1077
- };
1078
- EmailSummaryListDemo.args = {
1079
- searchQuery: ''
1080
- };
1081
- EmailSummaryListDemo.argTypes = {
1082
- searchQuery: { control: { type: 'text' } }
1083
- };
1084
- export const EmailCaseViewDemo = (args) => {
1085
- const content = <EmailShellDemo />;
1086
- const utilities = (<Grid container={{ rowGap: 2 }}>
1087
- <EntityListDemo />
1088
- <Card>
1089
- <CardHeader container={{ alignItems: 'center', gap: 1 }}>
1090
- <Icon name='document-doc'/>
1091
- <Text variant='h3'>Email header</Text>
1092
- </CardHeader>
1093
- <CardContent>
1094
- <FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
1095
- </CardContent>
1096
- </Card>
1097
- <SummaryList name='Topics' icon='headline' items={topicListMock.map(items => ({
1098
- ...items,
1099
- primary: <StyledLabel>{items.primary}</StyledLabel>,
1100
- secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
1101
- <Text variant='primary'>{items.secondary.indicator}</Text>
1102
- <StyledLabel>{items.secondary.value}</StyledLabel>
1103
- </Flex>)
1104
- }))} noItemsText='No items'/>
1105
- </Grid>);
1106
- return (<AppShellDemo appHeader main={<EmailCaseView header={args.showHeader
1107
- ? {
1108
- icon: 'mail',
1109
- title: 'ET-5432'
1110
- }
1111
- : undefined} banners={args.showBanners && (<Banner variant='urgent' messages={['Your email could not be delivered due to poor network connection.']}/>)} content={content} utilities={!args.noUtilityView && utilities} utilitiesSummaryItems={!args.noUtilityView
1112
- ? [
1113
- { iconName: 'list-number', count: 7, name: 'Entities' },
1114
- { iconName: 'document-doc', count: 1, name: 'Email header' },
1115
- { iconName: 'headline', count: 4, name: 'Topics' }
1116
- ]
1117
- : undefined} defaultUtilitiesExpanded/>}/>);
1118
- };
1119
- EmailCaseViewDemo.args = {
1120
- showBanners: false,
1121
- noUtilityView: false,
1122
- showHeader: true
1123
- };
1124
- EmailCaseViewDemo.argTypes = {
1125
- showBanners: { control: { type: 'boolean' } },
1126
- noUtilityView: { control: { type: 'boolean' } },
1127
- showHeader: { control: { type: 'boolean' } }
1128
- };
1129
- EmailCaseViewDemo.parameters = {
1130
- layout: 'fullscreen'
1131
- };
1132
- export const EmailManagerAppShell = (args) => {
1133
- const INITIAL_CHUNK_SIZE = 9;
1134
- const APPEND_CHUNK_SIZE = 1;
1135
- const [emailList, setEmailList] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
1136
- const [loading, setLoading] = useState(false);
1137
- const [hasMore, setHasMore] = useState(true);
1138
- const [currentItemId, setCurrentItemId] = useState(emailSummaryItems[0].id);
1139
- const handleEmailItemClick = (id) => {
1140
- const index = emailList.findIndex(emailItem => {
1141
- return emailItem.id === id;
1142
- });
1143
- const newEmailList = [...emailList];
1144
- newEmailList.splice(index, 1, { ...emailList[index], unreadEmailCount: 0 });
1145
- setEmailList(newEmailList);
1146
- setCurrentItemId(id);
1147
- };
1148
- const onLoadMore = useCallback(() => {
1149
- if (!loading) {
1150
- setLoading(true);
1151
- setTimeout(() => {
1152
- setLoading(false);
1153
- setEmailList(prevItems => {
1154
- const previousItemsLength = prevItems.length;
1155
- const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
1156
- if (newItems.length === 0) {
1157
- setHasMore(false);
1158
- }
1159
- return [...prevItems, ...newItems];
1160
- });
1161
- }, 1500);
1162
- }
1163
- }, [loading]);
1164
- const utilities = (<Grid container={{ rowGap: 2 }}>
1165
- <EntityListDemo />
1166
- <Card>
1167
- <CardHeader container={{ alignItems: 'center', gap: 1 }}>
1168
- <Icon name='document-doc'/>
1169
- <Text variant='h3'>Email header</Text>
1170
- </CardHeader>
1171
- <CardContent>
1172
- <FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
1173
- </CardContent>
1174
- </Card>
1175
- <SummaryList name='Topics' icon='headline' items={topicListMock.map(items => ({
1176
- ...items,
1177
- primary: <StyledLabel>{items.primary}</StyledLabel>,
1178
- secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
1179
- <Text variant='primary'>{items.secondary.indicator}</Text>
1180
- <StyledLabel>{items.secondary.value}</StyledLabel>
1181
- </Flex>)
1182
- }))} noItemsText='No items'/>
1183
- </Grid>);
1184
- const content = <EmailShellDemo showHeader={false}/>;
1185
- return (<AppShellDemo appHeader main={<EmailManager header={args.showHeader
1186
- ? {
1187
- icon: 'mail',
1188
- title: 'Inbox'
1189
- }
1190
- : undefined} list={<EmailSummaryListDemo onItemClick={handleEmailItemClick} items={emailList} onLoadMore={hasMore ? onLoadMore : undefined} loading={loading} currentItemId={currentItemId} searchQuery={args.searchQuery}/>} emailCaseDetails={!args.showEmptyView && (<EmailCaseView banners={args.showCaseViewBanners && (<Banner variant='urgent' messages={[
1191
- 'Your email could not be delivered due to poor network connection.'
1192
- ]}/>)} content={content} utilities={args.showUtilities && utilities} utilitiesSummaryItems={args.showUtilities
1193
- ? [
1194
- { iconName: 'list-number', count: 7, name: 'Entities' },
1195
- { iconName: 'document-doc', count: 1, name: 'Email header' },
1196
- { iconName: 'headline', count: 4, name: 'Topics' }
1197
- ]
1198
- : undefined} defaultUtilitiesExpanded={false}/>)}/>}/>);
1199
- };
1200
- EmailManagerAppShell.args = {
1201
- enableContextMenu: true,
1202
- showEmptyView: false,
1203
- showHeader: true,
1204
- showCaseViewBanners: false,
1205
- showUtilities: true,
1206
- searchQuery: ''
1207
- };
1208
- EmailManagerAppShell.argTypes = {
1209
- enableContextMenu: { control: { type: 'boolean' } },
1210
- showEmptyView: { control: { type: 'boolean' } },
1211
- showHeader: { control: { type: 'boolean' } },
1212
- showCaseViewBanners: { control: { type: 'boolean' } },
1213
- showUtilities: { control: { type: 'boolean' } },
1214
- searchQuery: { control: { type: 'text' } }
1215
- };
1216
- EmailManagerAppShell.parameters = {
1217
- layout: 'fullscreen'
1218
- };
1219
- //# sourceMappingURL=Email.stories.jsx.map