@pega/cosmos-react-demos 7.11.3 → 7.11.4-10

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