@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,223 +0,0 @@
1
- import { action } from '@storybook/addon-actions';
2
- import { useState, useRef, useCallback, useEffect } from 'react';
3
- import { createUID, DateTimeDisplay, Lightbox, OneColumnPage } from '@pega/cosmos-react-core';
4
- import { AutopilotConfig, Feed, MentionButtonConfig, HashtagButtonConfig, AutopilotGlimpse } from '@pega/cosmos-react-social';
5
- import { Glimpse } from '@pega/cosmos-react-work';
6
- import { AppShellDemo } from '../../core/AppShell/AppShell.stories';
7
- import { FeedPostDemo } from './FeedPost.mocks';
8
- import { FeedNewPostDemo } from './FeedNewPost.mocks';
9
- import { caseMentions, feedPosts, getAttachment, userMentions } from './Feed.mocks';
10
- import { FeedReplyDemo } from './FeedReply.mocks';
11
- export default {
12
- title: 'Social/Feed',
13
- component: Feed
14
- };
15
- export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
16
- const [extraPosts, setExtraPosts] = useState(() => feedPosts);
17
- const [postGenerated, setPostGenerated] = useState(false);
18
- const [searchResults, setSearchResults] = useState([]);
19
- const [filters, setFilters] = useState(Array.from({ length: 10 }, (_, index) => {
20
- return {
21
- id: `filter-${index + 1}`,
22
- label: `Filter ${index + 1}`
23
- };
24
- }));
25
- const toggleFilter = (filterId) => {
26
- const updatedFilters = [...filters];
27
- const filterToUpdate = updatedFilters.find(x => x.id === filterId);
28
- if (filterToUpdate)
29
- filterToUpdate.on = !filterToUpdate.on;
30
- setFilters(updatedFilters);
31
- };
32
- const onSearch = ({ type, search, mentionType }) => {
33
- if (type === 'mention') {
34
- const availableMentions = mentionType === 'case' ? caseMentions : userMentions;
35
- const mentions = availableMentions
36
- .filter(user => {
37
- const names = user.primary.toLowerCase().split(' ');
38
- const searchWords = search.toLowerCase().split(' ');
39
- return !!searchWords.every((word) => names.find((name) => name.startsWith(word)));
40
- })
41
- .map(({ id, primary, secondary, visual, href }) => {
42
- return {
43
- id,
44
- primary,
45
- secondary: secondary !== undefined && !Array.isArray(secondary) ? [secondary] : secondary,
46
- visual,
47
- href
48
- };
49
- });
50
- setSearchResults(mentions);
51
- }
52
- else {
53
- setSearchResults(['cosmos', 'hashtag', 'pega']
54
- .filter(tag => {
55
- return tag.toLowerCase().includes(search.toLowerCase());
56
- })
57
- .map(tag => ({ id: tag, primary: tag })));
58
- }
59
- };
60
- const [loading, setLoading] = useState(false);
61
- let timeoutId;
62
- const generateNewPost = useCallback(() => {
63
- if (!loading && !postGenerated) {
64
- setLoading(true);
65
- timeoutId = setTimeout(() => {
66
- setLoading(false);
67
- setPostGenerated(true);
68
- setExtraPosts(posts => [
69
- ...posts,
70
- {
71
- id: createUID(),
72
- fullname: 'Feed Bot',
73
- icon: 'robot-solid',
74
- username: 'feed_bot',
75
- content: 'This post was loaded after the Feed was scrolled to the bottom!',
76
- attachments: [],
77
- replies: []
78
- }
79
- ]);
80
- }, 1000);
81
- }
82
- }, [loading, postGenerated]);
83
- useEffect(() => {
84
- return () => clearTimeout(timeoutId);
85
- }, []);
86
- const onAutopilotClick = ({ target, onDismiss }) => {
87
- if (target && onDismiss) {
88
- return <AutopilotGlimpse target={target} onDismiss={onDismiss} placement='right'/>;
89
- }
90
- };
91
- const onMentionClick = ({ id, type, target, closeGlimpse }) => {
92
- if (type === 'user') {
93
- const user = userMentions.find(mention => mention.id === id);
94
- if (user && target && closeGlimpse) {
95
- const { primary, secondary, visual, ...restUser } = user;
96
- return (<Glimpse {...restUser} heading={{
97
- primary,
98
- secondary: Array.isArray(secondary) ? secondary.join(', ') : secondary,
99
- visual
100
- }} target={target} onDismiss={() => {
101
- closeGlimpse();
102
- }} placement='right'/>);
103
- }
104
- }
105
- };
106
- const [showLightbox, setShowLightbox] = useState(false);
107
- const [lightboxItems, setLightboxItems] = useState([]);
108
- const defaultLBIndex = useRef(0);
109
- const mockAPIItems = useRef([]);
110
- const getLightboxItems = async (id) => {
111
- const fileURL = await getAttachment(id);
112
- const mockItem = mockAPIItems.current.find(item => item.id === id);
113
- if (mockItem) {
114
- mockItem.resolved = true;
115
- mockItem.src = fileURL;
116
- }
117
- return mockItem;
118
- };
119
- const renderLightbox = (lightboxAttachments, name) => {
120
- const idx = lightboxAttachments.findIndex(item => item.name === name);
121
- defaultLBIndex.current = idx > -1 ? idx : 0;
122
- const items = lightboxAttachments.map(item => {
123
- const mockItems = mockAPIItems.current.find(mockItem => mockItem.name === item.name);
124
- if (mockItems?.resolved)
125
- return mockItems;
126
- return {
127
- id: item.id,
128
- name: item.name,
129
- format: item.name.split('.').pop(),
130
- description: '',
131
- src: null
132
- };
133
- });
134
- setLightboxItems(items);
135
- setShowLightbox(true);
136
- };
137
- const deletePost = (index) => {
138
- setExtraPosts(posts => {
139
- const postsCopy = [...posts];
140
- postsCopy.splice(index, 1);
141
- return [...postsCopy];
142
- });
143
- };
144
- return (<>
145
- <Feed title='Pulse' userInfo={{ username: 'demo_user', fullname: 'Demo User', userStatus: 'active' }} searchTypes={['user', 'case', 'autopilot']} onDecoratorSearch={onSearch} searchResults={searchResults} autopilotInfo={{
146
- id: 'autopilot',
147
- label: 'Autopilot',
148
- meta: 'Pega GenAI™ virtual assistant',
149
- description: 'Mention Autopilot to effortlessly initiate tasks and prompt interactions.\n\nAsk about performance metrics or make a variety of requests using everyday language, and receive a swift response within seconds.'
150
- }} onAutopilotClick={onAutopilotClick} onMentionClick={onMentionClick} onMentionPreview={onMentionPreview} markdownMap={markdownMap} interactionRenderers={[MentionButtonConfig, HashtagButtonConfig, AutopilotConfig]} filters={filters} onFilterChange={toggleFilter} loadingPosts={loading} onLoadMore={generateNewPost} newPostRegion={<FeedNewPostDemo onSubmit={postEvent => {
151
- const { value, attachments, recipients, clear } = postEvent;
152
- mockAPIItems.current = [
153
- ...mockAPIItems.current,
154
- ...attachments.map(({ id, name, format, thumbnail }) => {
155
- return {
156
- id,
157
- name,
158
- format,
159
- description: name,
160
- src: thumbnail !== undefined ? thumbnail : null,
161
- metadata: [format, <DateTimeDisplay value={new Date()} variant='date'/>],
162
- resolved: false
163
- };
164
- })
165
- ];
166
- const newAttachments = attachments.map(fileItem => {
167
- const newFile = {
168
- ...fileItem,
169
- onPreview: () => renderLightbox(attachments, fileItem.name),
170
- onDownload: () => action('on download'),
171
- onEdit: () => action('on edit')
172
- };
173
- delete newFile.onDelete;
174
- return newFile;
175
- });
176
- if (value || newAttachments.length > 0) {
177
- const replies = [];
178
- const triggersAutopilot = value.match(AutopilotConfig.regexPattern);
179
- if (triggersAutopilot && triggersAutopilot.length && triggersAutopilot.length > 0) {
180
- replies.push(<FeedReplyDemo key={`autopilot-${createUID()}`} fullname='Autopilot' username='autopilot' content='This is just an automatic reply. In order to truly experience the power of the Pega GenAI™ virtual assistant, make sure to interact with Autopilot in a production environment!' postTimestamp={new Date()}/>);
181
- }
182
- setExtraPosts(posts => [
183
- {
184
- id: createUID(),
185
- fullname: 'Demo User',
186
- username: 'demo_user',
187
- userStatus: 'active',
188
- content: value,
189
- attachments: newAttachments,
190
- recipients,
191
- postType: recipients?.length ? 'private' : 'public',
192
- replies,
193
- postTimestamp: new Date()
194
- },
195
- ...posts
196
- ]);
197
- clear();
198
- }
199
- }}/>} posts={extraPosts.map((post, i) => {
200
- return <FeedPostDemo {...post} key={post.id} onDelete={() => deletePost(i)}/>;
201
- })}/>
202
- {showLightbox && (<Lightbox items={lightboxItems} defaultIndex={defaultLBIndex.current} cycle onNavigate={async (id, index) => {
203
- if (!lightboxItems[index].src) {
204
- const updatedImages = [...lightboxItems];
205
- const requestedImage = await getLightboxItems(id);
206
- if (requestedImage) {
207
- updatedImages[index] = requestedImage;
208
- setLightboxItems(updatedImages);
209
- }
210
- }
211
- }} onAfterClose={() => {
212
- setShowLightbox(false);
213
- setLightboxItems([]);
214
- }}/>)}
215
- </>);
216
- };
217
- export const FeedWithAppShell = () => {
218
- return <AppShellDemo appHeader main={<OneColumnPage title='Welcome' a={<FeedDemo />}/>}/>;
219
- };
220
- FeedWithAppShell.parameters = {
221
- layout: 'fullscreen'
222
- };
223
- //# sourceMappingURL=Feed.stories.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Feed.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAO9F,OAAO,EACL,eAAe,EACf,IAAI,EACJ,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AAOnC,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,E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CAAC,OAAO,CAAC,CACrC,KAAK,CACL,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE;gBAC9B,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE;oBAC7B,MAAM,aAAa,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;oBACzC,MAAM,cAAc,GAAG,MAAM,gBAAgB,CAAC,EAAE,CAAC,CAAC;oBAClD,IAAI,cAAc,EAAE;wBAClB,aAAa,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC;wBACtC,gBAAgB,CAAC,aAAa,CAAC,CAAC;qBACjC;iBACF;YACH,CAAC,CAAC,CACF,YAAY,CAAC,CAAC,GAAG,EAAE;gBACjB,eAAe,CAAC,KAAK,CAAC,CAAC;gBACvB,gBAAgB,CAAC,EAAE,CAAC,CAAC;YACvB,CAAC,CAAC,EACF,CACH,CACH;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAY,GAAG,EAAE;IAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,AAAD,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC;AAC9F,CAAC,CAAC;AAEF,gBAAgB,CAAC,UAAU,GAAG;IAC5B,MAAM,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\nimport { useState, useRef, useCallback, useEffect } from 'react';\n\nimport { createUID, DateTimeDisplay, Lightbox, OneColumnPage } from '@pega/cosmos-react-core';\nimport type {\n FileItemProps,\n LightboxItem,\n LightboxProps,\n MenuItemProps\n} from '@pega/cosmos-react-core';\nimport {\n AutopilotConfig,\n Feed,\n MentionButtonConfig,\n HashtagButtonConfig,\n AutopilotGlimpse\n} from '@pega/cosmos-react-social';\nimport type {\n AutopilotGlimpseProps,\n FeedProps,\n Filter,\n FeedPostProps\n} from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\nimport type { GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\n\nimport { FeedPostDemo } from './FeedPost.mocks';\nimport { FeedNewPostDemo } from './FeedNewPost.mocks';\nimport { caseMentions, feedPosts, getAttachment, userMentions } from './Feed.mocks';\nimport type { FeedPostDemoProps } from './Feed.mocks';\nimport { FeedReplyDemo } from './FeedReply.mocks';\n\nexport default {\n title: 'Social/Feed',\n component: Feed\n} as Meta;\n\ninterface FeedDemoProps {\n markdownMap?: FeedProps['markdownMap'];\n onMentionPreview?: FeedProps['onMentionPreview'];\n}\n\nexport const FeedDemo: StoryFn<FeedDemoProps> = ({\n markdownMap,\n onMentionPreview\n}: FeedDemoProps) => {\n const [extraPosts, setExtraPosts] = useState<FeedPostDemoProps[]>(() => feedPosts);\n const [postGenerated, setPostGenerated] = useState(false);\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n\n const [filters, setFilters] = useState<Filter[]>(\n Array.from({ length: 10 }, (_, index) => {\n return {\n id: `filter-${index + 1}`,\n label: `Filter ${index + 1}`\n };\n })\n );\n\n const toggleFilter = (filterId: string) => {\n const updatedFilters = [...filters];\n const filterToUpdate = updatedFilters.find(x => x.id === filterId);\n\n if (filterToUpdate) filterToUpdate.on = !filterToUpdate.on;\n\n setFilters(updatedFilters);\n };\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter(user => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual, href }) => {\n return {\n id,\n primary,\n secondary:\n secondary !== undefined && !Array.isArray(secondary) ? [secondary] : secondary,\n visual,\n href\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const [loading, setLoading] = useState(false);\n let timeoutId: ReturnType<typeof setTimeout>;\n\n const generateNewPost = useCallback(() => {\n if (!loading && !postGenerated) {\n setLoading(true);\n timeoutId = setTimeout(() => {\n setLoading(false);\n setPostGenerated(true);\n setExtraPosts(posts => [\n ...posts,\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: 'This post was loaded after the Feed was scrolled to the bottom!',\n attachments: [],\n replies: []\n }\n ]);\n }, 1000);\n }\n }, [loading, postGenerated]);\n\n useEffect(() => {\n return () => clearTimeout(timeoutId);\n }, []);\n\n const onAutopilotClick = ({\n target,\n onDismiss\n }: Partial<Pick<AutopilotGlimpseProps, 'target' | 'onDismiss'>>) => {\n if (target && onDismiss) {\n return <AutopilotGlimpse target={target} onDismiss={onDismiss} placement='right' />;\n }\n };\n\n const onMentionClick = ({\n id,\n type,\n target,\n closeGlimpse\n }: { id: string; type: string; closeGlimpse?: () => void } & Partial<\n Pick<GlimpseProps, 'target'>\n >) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user && target && closeGlimpse) {\n const { primary, secondary, visual, ...restUser } = user;\n\n return (\n <Glimpse\n {...restUser}\n heading={{\n primary,\n secondary: Array.isArray(secondary) ? secondary.join(', ') : secondary,\n visual\n }}\n target={target}\n onDismiss={() => {\n closeGlimpse();\n }}\n placement='right'\n />\n );\n }\n }\n };\n\n const [showLightbox, setShowLightbox] = useState(false);\n const [lightboxItems, setLightboxItems] = useState<LightboxProps['items']>([]);\n const defaultLBIndex = useRef(0);\n const mockAPIItems = useRef<(LightboxItem & { resolved: boolean })[]>([]);\n\n const getLightboxItems = async (id: string) => {\n // await new Promise(resolve => {\n // setTimeout(() => resolve(0), loadingTimeoutMS);\n // });\n\n const fileURL = await getAttachment(id);\n\n const mockItem = mockAPIItems.current.find(item => item.id === id);\n if (mockItem) {\n mockItem.resolved = true;\n mockItem.src = fileURL;\n }\n return mockItem;\n };\n\n const renderLightbox = (lightboxAttachments: FileItemProps[], name: string) => {\n const idx = lightboxAttachments.findIndex(item => item.name === name);\n defaultLBIndex.current = idx > -1 ? idx : 0;\n\n const items = lightboxAttachments.map<LightboxItem>(item => {\n const mockItems = mockAPIItems.current.find(mockItem => mockItem.name === item.name);\n if (mockItems?.resolved) return mockItems;\n\n return {\n id: item.id,\n name: item.name,\n format: item.name.split('.').pop(),\n description: '',\n src: null\n };\n });\n\n setLightboxItems(items);\n setShowLightbox(true);\n };\n\n const deletePost = (index: number) => {\n setExtraPosts(posts => {\n const postsCopy = [...posts];\n postsCopy.splice(index, 1);\n return [...postsCopy];\n });\n };\n\n return (\n <>\n <Feed\n title='Pulse'\n userInfo={{ username: 'demo_user', fullname: 'Demo User', userStatus: 'active' }}\n searchTypes={['user', 'case', 'autopilot']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n autopilotInfo={{\n id: 'autopilot',\n label: 'Autopilot',\n meta: 'Pega GenAI™ virtual assistant',\n description:\n 'Mention Autopilot to effortlessly initiate tasks and prompt interactions.\\n\\nAsk about performance metrics or make a variety of requests using everyday language, and receive a swift response within seconds.'\n }}\n onAutopilotClick={onAutopilotClick}\n onMentionClick={onMentionClick}\n onMentionPreview={onMentionPreview}\n markdownMap={markdownMap}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig, AutopilotConfig]}\n filters={filters}\n onFilterChange={toggleFilter}\n loadingPosts={loading}\n onLoadMore={generateNewPost}\n newPostRegion={\n <FeedNewPostDemo\n onSubmit={postEvent => {\n const { value, attachments, recipients, clear } = postEvent;\n\n mockAPIItems.current = [\n ...mockAPIItems.current,\n ...attachments.map(({ id, name, format, thumbnail }) => {\n return {\n id,\n name,\n format,\n description: name,\n src: thumbnail !== undefined ? thumbnail : null,\n metadata: [format, <DateTimeDisplay value={new Date()} variant='date' />],\n resolved: false\n };\n })\n ];\n\n const newAttachments: FileItemProps[] = attachments.map(fileItem => {\n const newFile = {\n ...fileItem,\n onPreview: () => renderLightbox(attachments, fileItem.name),\n\n onDownload: () => action('on download'),\n onEdit: () => action('on edit')\n };\n delete newFile.onDelete;\n return newFile;\n });\n\n if (value || newAttachments.length > 0) {\n const replies: FeedPostProps['replies'] = [];\n\n const triggersAutopilot = value.match(AutopilotConfig.regexPattern);\n if (triggersAutopilot && triggersAutopilot.length && triggersAutopilot.length > 0) {\n replies.push(\n <FeedReplyDemo\n key={`autopilot-${createUID()}`}\n fullname='Autopilot'\n username='autopilot'\n content='This is just an automatic reply. In order to truly experience the power of the Pega GenAI™ virtual assistant, make sure to interact with Autopilot in a production environment!'\n postTimestamp={new Date()}\n />\n );\n }\n\n setExtraPosts(posts => [\n {\n id: createUID(),\n fullname: 'Demo User',\n username: 'demo_user',\n userStatus: 'active',\n content: value,\n attachments: newAttachments,\n recipients,\n postType: recipients?.length ? 'private' : 'public',\n replies,\n postTimestamp: new Date()\n },\n ...posts\n ]);\n clear();\n }\n }}\n />\n }\n posts={extraPosts.map((post, i) => {\n return <FeedPostDemo {...post} key={post.id} onDelete={() => deletePost(i)} />;\n })}\n />\n {showLightbox && (\n <Lightbox\n items={lightboxItems}\n defaultIndex={defaultLBIndex.current}\n cycle\n onNavigate={async (id, index) => {\n if (!lightboxItems[index].src) {\n const updatedImages = [...lightboxItems];\n const requestedImage = await getLightboxItems(id);\n if (requestedImage) {\n updatedImages[index] = requestedImage;\n setLightboxItems(updatedImages);\n }\n }\n }}\n onAfterClose={() => {\n setShowLightbox(false);\n setLightboxItems([]);\n }}\n />\n )}\n </>\n );\n};\n\nexport const FeedWithAppShell: StoryFn = () => {\n return <AppShellDemo appHeader main={<OneColumnPage title='Welcome' a={<FeedDemo />} />} />;\n};\n\nFeedWithAppShell.parameters = {\n layout: 'fullscreen'\n};\n"]}
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { FeedNewPostProps } from '@pega/cosmos-react-social';
3
- interface FeedNewPostDemoProps {
4
- onSubmit?: FeedNewPostProps['onSubmit'];
5
- }
6
- export declare const FeedNewPostDemo: ({ onSubmit }: FeedNewPostDemoProps) => import("react").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=FeedNewPost.mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeedNewPost.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedNewPost.mocks.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,2BAA2B,CAAC;AAInF,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,eAAe,iBAA6B,oBAAoB,gCAqF5E,CAAC"}
@@ -1,72 +0,0 @@
1
- import { useEffect, useState } from 'react';
2
- import { action } from '@storybook/addon-actions';
3
- import { useUID, createUID } from '@pega/cosmos-react-core';
4
- import { FeedNewPost } from '@pega/cosmos-react-social';
5
- import { availableRecipients, uploadAttachment } from './Feed.mocks';
6
- export const FeedNewPostDemo = ({ onSubmit = () => { } }) => {
7
- const key = useUID();
8
- const [attachments, setAttachments] = useState([]);
9
- const [filterValue, setFilterValue] = useState('');
10
- const [itemsToRender, setItemsToRender] = useState(availableRecipients);
11
- useEffect(() => {
12
- return () => {
13
- window.localStorage.removeItem('attachments');
14
- };
15
- }, []);
16
- const onFilesAdded = async (files) => {
17
- const fileItems = files.map(file => {
18
- const fileItem = {
19
- id: createUID(),
20
- name: file.name,
21
- format: file.name.split('.').pop(),
22
- onPreview: () => action('on preview'),
23
- onDelete: () => {
24
- setAttachments(current => {
25
- return current.filter(x => x.name !== file.name);
26
- });
27
- },
28
- onCancel: () => {
29
- setAttachments(current => {
30
- return current.filter(x => x.name !== file.name);
31
- });
32
- }
33
- };
34
- if (file.type.includes('image')) {
35
- fileItem.thumbnail = URL.createObjectURL(file);
36
- }
37
- if (file.size / 1000000 > 100) {
38
- fileItem.error = 'File size cannot exceed 100MB';
39
- }
40
- uploadAttachment(fileItem.id, file, (id, progress) => {
41
- setAttachments(prev => {
42
- return prev.map(item => {
43
- if (item.id === id) {
44
- return { ...item, progress };
45
- }
46
- return item;
47
- });
48
- });
49
- });
50
- return fileItem;
51
- });
52
- setAttachments(current => [...current, ...fileItems]);
53
- };
54
- useEffect(() => {
55
- const timeout = setTimeout(() => {
56
- const newItems = availableRecipients.filter(({ primary, secondary }) => {
57
- return (primary.toLowerCase().includes(filterValue) ||
58
- secondary.find(x => x.toLowerCase().includes(filterValue)));
59
- });
60
- setItemsToRender(newItems);
61
- }, 500);
62
- return () => {
63
- clearTimeout(timeout);
64
- };
65
- }, [filterValue]);
66
- return (<FeedNewPost id={key} attachments={attachments} onFilesAdded={onFilesAdded} recipients={itemsToRender} onRecipientSearch={(newSearch) => setFilterValue(newSearch)} onSubmit={postEvent => {
67
- onSubmit?.(postEvent);
68
- setAttachments([]);
69
- postEvent.clear();
70
- }}/>);
71
- };
72
- //# sourceMappingURL=FeedNewPost.mocks.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeedNewPost.mocks.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedNewPost.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,MAAM,EAAsB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,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AAC;oBAC3C,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAC3D,CAAC;YACJ,CAAC,CAAC,CAAC;YAEH,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAC7B,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,CACL,CAAC,WAAW,CACV,EAAE,CAAC,CAAC,GAAG,CAAC,CACR,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,UAAU,CAAC,CAAC,aAAa,CAAC,CAC1B,iBAAiB,CAAC,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CACpE,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAE;YACpB,QAAQ,EAAE,CAAC,SAAS,CAAC,CAAC;YACtB,cAAc,CAAC,EAAE,CAAC,CAAC;YACnB,SAAS,CAAC,KAAK,EAAE,CAAC;QACpB,CAAC,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useEffect, useState } from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport { useUID, type FileItemProps, createUID } from '@pega/cosmos-react-core';\nimport { FeedNewPost } from '@pega/cosmos-react-social';\nimport type { FeedNewPostProps, RecipientOption } from '@pega/cosmos-react-social';\n\nimport { availableRecipients, uploadAttachment } from './Feed.mocks';\n\ninterface FeedNewPostDemoProps {\n onSubmit?: FeedNewPostProps['onSubmit'];\n}\n\nexport const FeedNewPostDemo = ({ onSubmit = () => {} }: FeedNewPostDemoProps) => {\n const key = useUID();\n const [attachments, setAttachments] = useState<FileItemProps[]>([]);\n const [filterValue, setFilterValue] = useState('');\n const [itemsToRender, setItemsToRender] = useState<RecipientOption[]>(availableRecipients);\n\n useEffect(() => {\n return () => {\n window.localStorage.removeItem('attachments');\n };\n }, []);\n\n const onFilesAdded = async (files: File[]) => {\n const fileItems: FileItemProps[] = files.map(file => {\n const fileItem: FileItemProps = {\n id: createUID(),\n name: file.name,\n format: file.name.split('.').pop(),\n onPreview: () => action('on preview'),\n onDelete: () => {\n setAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n },\n onCancel: () => {\n setAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n }\n };\n\n if (file.type.includes('image')) {\n fileItem.thumbnail = URL.createObjectURL(file);\n }\n if (file.size / 1000000 > 100) {\n fileItem.error = 'File size cannot exceed 100MB';\n }\n uploadAttachment(fileItem.id, file, (id, progress) => {\n setAttachments(prev => {\n return prev.map(item => {\n if (item.id === id) {\n return { ...item, progress };\n }\n return item;\n });\n });\n });\n return fileItem;\n });\n\n setAttachments(current => [...current, ...fileItems]);\n };\n\n useEffect(() => {\n // Synthetic delay to mimic async request\n const timeout = setTimeout(() => {\n const newItems = availableRecipients.filter(({ primary, secondary }) => {\n return (\n primary.toLowerCase().includes(filterValue) ||\n secondary.find(x => x.toLowerCase().includes(filterValue))\n );\n });\n\n setItemsToRender(newItems);\n }, 500);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [filterValue]);\n\n return (\n <FeedNewPost\n id={key}\n attachments={attachments}\n onFilesAdded={onFilesAdded}\n recipients={itemsToRender}\n onRecipientSearch={(newSearch: string) => setFilterValue(newSearch)}\n onSubmit={postEvent => {\n onSubmit?.(postEvent);\n setAttachments([]);\n postEvent.clear();\n }}\n />\n );\n};\n"]}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { FeedPostDemoProps } from './Feed.mocks';
3
- export declare const FeedPostDemo: ({ id, fullname, username, icon, content, postType, recipients, attachments: postAttachments, replies, postTimestamp, userStatus, likes: userLikes, onDelete }: FeedPostDemoProps) => import("react").JSX.Element;
4
- //# sourceMappingURL=FeedPost.mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeedPost.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedPost.mocks.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,YAAY,kKActB,iBAAiB,gCAyRnB,CAAC"}
@@ -1,192 +0,0 @@
1
- import { useCallback, useState } from 'react';
2
- import { action } from '@storybook/addon-actions';
3
- import { Avatar, createUID, useElement, useUID } from '@pega/cosmos-react-core';
4
- import { AutopilotConfig, AutopilotGlimpse, FeedPost } from '@pega/cosmos-react-social';
5
- import { Glimpse } from '@pega/cosmos-react-work';
6
- import { FeedReplyDemo } from './FeedReply.mocks';
7
- import { availableRecipients, feedUserGlimpseDetails } from './Feed.mocks';
8
- export const FeedPostDemo = ({ id, fullname, username, icon, content, postType, recipients, attachments: postAttachments, replies, postTimestamp = new Date(2022, 0, 1), userStatus, likes: userLikes, onDelete = () => { } }) => {
9
- const defaultReplies = Array.from(Array(12).keys(), index => {
10
- return (<FeedReplyDemo key={`reply-story-${index + 1}`} fullname={fullname} username={username} content={`This is reply number ${index + 1}!`}/>);
11
- });
12
- const key = useUID();
13
- const [postContent, setPostContent] = useState(content);
14
- const [likes, setLikes] = useState(userLikes ?? []);
15
- const [liked, setLiked] = useState(false);
16
- const [recipientsList, setRecipientsList] = useState([]);
17
- const [edited, setEdited] = useState(false);
18
- const [editTimestamp, setEditTimestamp] = useState(new Date());
19
- const [glimpseContent, setGlimpseContent] = useState();
20
- const [glimpseTarget, setGlimpseTarget] = useElement(null);
21
- const [extraReplies, setExtraReplies] = useState([]);
22
- const [replyAttachments, setReplyAttachments] = useState([]);
23
- const [replyCount, setReplyCount] = useState(replies ? replies.length : defaultReplies.length);
24
- const [repliesLoading, setRepliesLoading] = useState(false);
25
- const [repliesShown, setRepliesShown] = useState(3);
26
- const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);
27
- const [allRecipientsVisible, setAllRecipientsVisible] = useState(!!recipients);
28
- const onShowMoreReplies = () => {
29
- setRepliesLoading(true);
30
- setTimeout(() => {
31
- setRepliesShown(curr => {
32
- if (curr + 3 <= defaultReplies.length)
33
- return curr + 3;
34
- return defaultReplies.length;
35
- });
36
- setRepliesLoading(false);
37
- }, 1000);
38
- };
39
- const onShowLessReplies = () => {
40
- setRepliesLoading(true);
41
- setTimeout(() => {
42
- setRepliesShown(3);
43
- setRepliesLoading(false);
44
- }, 1000);
45
- };
46
- const onFilesAdded = (files) => {
47
- const fileItems = files.map(file => {
48
- const fileItem = {
49
- id: createUID(),
50
- name: file.name,
51
- format: file.name.split('.').pop(),
52
- onPreview: () => action('on preview'),
53
- onDelete: () => {
54
- setReplyAttachments(current => {
55
- return current.filter(x => x.name !== file.name);
56
- });
57
- }
58
- };
59
- if (file.type.includes('image')) {
60
- fileItem.thumbnail = URL.createObjectURL(file);
61
- }
62
- if (file.size / 1000000 > 100) {
63
- fileItem.error = 'File size cannot exceed 100MB';
64
- }
65
- return fileItem;
66
- });
67
- setReplyAttachments(current => [...current, ...fileItems]);
68
- };
69
- const getInitialLikes = () => {
70
- if (likes.length)
71
- return;
72
- setLikes(userLikes || []);
73
- };
74
- const [likesLoading, setLikesLoading] = useState(false);
75
- const generateNewLike = useCallback(() => {
76
- if (!likesLoading) {
77
- setLikesLoading(true);
78
- setTimeout(() => {
79
- setLikesLoading(false);
80
- setLikes(oldLikes => [
81
- ...oldLikes,
82
- {
83
- primary: 'Generated Like',
84
- secondary: ['This like was loaded after the onLoadMoreLikes callback was triggered'],
85
- visual: <Avatar size='l' name='Generated Like'/>,
86
- id: 'generatedLike'
87
- }
88
- ]);
89
- setAdditionalLikeAdded(true);
90
- }, 1000);
91
- }
92
- }, [likesLoading]);
93
- const getInitialRecipients = () => {
94
- if (recipientsList.length)
95
- return;
96
- setRecipientsList(recipients ||
97
- availableRecipients.slice(0, !allRecipientsVisible ? 10 : availableRecipients.length));
98
- };
99
- const [recipientsLoading, setRecipientsLoading] = useState(false);
100
- const getAllRecipients = () => {
101
- if (!recipientsLoading) {
102
- setRecipientsLoading(true);
103
- setTimeout(() => {
104
- setRecipientsLoading(false);
105
- setRecipientsList(oldRecipients => [
106
- ...oldRecipients,
107
- {
108
- primary: 'Additional Recipient',
109
- secondary: [
110
- 'This recipient was loaded after the onLoadMoreRecipients callback was triggered'
111
- ],
112
- visual: <Avatar size='l' name='Additional Recipient'/>,
113
- value: 'additionalRecipient',
114
- id: 'additionalRecipient'
115
- }
116
- ]);
117
- setAllRecipientsVisible(true);
118
- }, 1000);
119
- }
120
- };
121
- const onUserClick = ({ username: glimpseUsername }, clickEvent) => {
122
- if (clickEvent) {
123
- setGlimpseTarget(clickEvent.target);
124
- if (glimpseUsername === 'autopilot') {
125
- setGlimpseContent(<AutopilotGlimpse target={clickEvent.target} onDismiss={() => {
126
- setGlimpseTarget(null);
127
- }} placement='right'/>);
128
- }
129
- else {
130
- const userDetails = feedUserGlimpseDetails.find(x => x.username === glimpseUsername);
131
- if (userDetails) {
132
- setGlimpseContent(<Glimpse {...userDetails} target={clickEvent.target} onDismiss={() => {
133
- setGlimpseTarget(null);
134
- }} placement='right'/>);
135
- }
136
- }
137
- }
138
- };
139
- return (<>
140
- <FeedPost id={id} key={key} fullname={fullname} username={username} icon={icon} postTimestamp={postTimestamp} content={postContent} postType={postType} recipients={recipientsList} recipientsCount={recipientsList.length} attachments={postAttachments} liked={liked} userStatus={userStatus} likes={likes} likeCount={likes.length} maxContentHeight={80} onLikeClick={({ user }) => {
141
- const userLikedIndex = likes.findIndex(x => x.id === user.id);
142
- if (userLikedIndex !== -1) {
143
- setLikes(oldLikes => {
144
- const oldLikesArr = [...oldLikes];
145
- oldLikesArr.splice(userLikedIndex, 1);
146
- return oldLikesArr;
147
- });
148
- }
149
- else {
150
- setLikes(oldLikes => [user, ...oldLikes]);
151
- }
152
- setLiked(curr => !curr);
153
- }} onCommentClick={() => { }} onLikeCountInteraction={getInitialLikes} likesLoading={likesLoading} onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined} onRecipientInteraction={getInitialRecipients} recipientsLoading={recipientsLoading} onLoadMoreRecipients={!allRecipientsVisible ? getAllRecipients : undefined} onUserClick={onUserClick} menuItems={[
154
- { primary: 'Custom action', id: 'custom', onClick: () => { } },
155
- { primary: 'Delete', id: 'delete', onClick: onDelete }
156
- ]} onEditSubmit={({ value }) => {
157
- setPostContent(value);
158
- setEdited(true);
159
- setEditTimestamp(new Date());
160
- }} edited={edited} editTimestamp={editTimestamp} replies={replies
161
- ? [...replies, ...extraReplies]
162
- : [...defaultReplies.slice(-repliesShown), ...extraReplies]} replyCount={replyCount} repliesLoading={repliesLoading} onShowMoreReplies={onShowMoreReplies} onShowLessReplies={repliesShown > 3 ? onShowLessReplies : undefined} replyInput={{
163
- attachments: replyAttachments,
164
- onFilesAdded,
165
- onSubmit: replyEvent => {
166
- setReplyAttachments([]);
167
- replyEvent.attachments.forEach(file => {
168
- delete file.onDelete;
169
- file.onPreview = () => action('on preview');
170
- file.onDownload = () => action('on download');
171
- file.onEdit = () => action('on edit');
172
- });
173
- setExtraReplies(oldReplies => [
174
- ...oldReplies,
175
- <FeedReplyDemo key={`replies-${oldReplies.length}`} fullname='Demo User' username='demo_user' userStatus='active' content={replyEvent.value} attachments={replyEvent.attachments} postTimestamp={new Date()}/>
176
- ]);
177
- setReplyCount(oldReplyCount => oldReplyCount + 1);
178
- const triggersAutopilot = replyEvent.value.match(AutopilotConfig.regexPattern);
179
- if (triggersAutopilot && triggersAutopilot.length && triggersAutopilot.length > 0) {
180
- setExtraReplies(oldReplies => [
181
- ...oldReplies,
182
- <FeedReplyDemo key={`autopilot-${createUID()}`} fullname='Autopilot' username='autopilot' content='This is just an automatic reply. In order to truly experience the power of the Pega GenAI™ virtual assistant, make sure to interact with Autopilot in a production environment!' postTimestamp={new Date()}/>
183
- ]);
184
- setReplyCount(oldReplyCount => oldReplyCount + 1);
185
- }
186
- replyEvent.clear();
187
- }
188
- }}/>
189
- {glimpseTarget && glimpseContent}
190
- </>);
191
- };
192
- //# sourceMappingURL=FeedPost.mocks.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeedPost.mocks.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedPost.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEhF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAExF,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAG3E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,UAAU,EACV,WAAW,EAAE,eAAe,EAC5B,OAAO,EACP,aAAa,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,EACpC,UAAU,EACV,KAAK,EAAE,SAAS,EAChB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACD,EAAE,EAAE;IACtB,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,EAAE;QAC1D,OAAO,CACL,CAAC,aAAa,CACZ,GAAG,CAAC,CAAC,eAAe,KAAK,GAAG,CAAC,EAAE,CAAC,CAChC,QAAQ,CAAC,C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CAAC,aAAa,CAAC,EAAE,CAAC,aAAa,GAAG,CAAC,CAAC,CAAC;iBACnD;gBAED,UAAU,CAAC,KAAK,EAAE,CAAC;YACrB,CAAC;SACF,CAAC,EAEJ;MAAA,CAAC,aAAa,IAAI,cAAc,CAClC;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useCallback, useState } from 'react';\nimport type { ReactNode } from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport { Avatar, createUID, useElement, useUID } from '@pega/cosmos-react-core';\nimport type { FileItemProps, MenuItemProps } from '@pega/cosmos-react-core';\nimport { AutopilotConfig, AutopilotGlimpse, FeedPost } from '@pega/cosmos-react-social';\nimport type { FeedPostProps } from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\n\nimport { FeedReplyDemo } from './FeedReply.mocks';\nimport { availableRecipients, feedUserGlimpseDetails } from './Feed.mocks';\nimport type { FeedPostDemoProps } from './Feed.mocks';\n\nexport const FeedPostDemo = ({\n id,\n fullname,\n username,\n icon,\n content,\n postType,\n recipients,\n attachments: postAttachments,\n replies,\n postTimestamp = new Date(2022, 0, 1),\n userStatus,\n likes: userLikes,\n onDelete = () => {}\n}: FeedPostDemoProps) => {\n const defaultReplies = Array.from(Array(12).keys(), index => {\n return (\n <FeedReplyDemo\n key={`reply-story-${index + 1}`}\n fullname={fullname}\n username={username}\n content={`This is reply number ${index + 1}!`}\n />\n );\n });\n\n const key = useUID();\n const [postContent, setPostContent] = useState(content);\n\n const [likes, setLikes] = useState<MenuItemProps[]>(userLikes ?? []);\n const [liked, setLiked] = useState(false);\n const [recipientsList, setRecipientsList] = useState<MenuItemProps[]>([]);\n const [edited, setEdited] = useState(false);\n const [editTimestamp, setEditTimestamp] = useState(new Date());\n\n const [glimpseContent, setGlimpseContent] = useState<ReactNode | undefined>();\n const [glimpseTarget, setGlimpseTarget] = useElement<HTMLElement>(null);\n\n const [extraReplies, setExtraReplies] = useState<any[]>([]);\n const [replyAttachments, setReplyAttachments] = useState<FileItemProps[]>([]);\n const [replyCount, setReplyCount] = useState<number>(\n replies ? replies.length : defaultReplies.length\n );\n const [repliesLoading, setRepliesLoading] = useState(false);\n const [repliesShown, setRepliesShown] = useState(3);\n\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n const [allRecipientsVisible, setAllRecipientsVisible] = useState(!!recipients);\n\n const onShowMoreReplies = () => {\n setRepliesLoading(true);\n setTimeout(() => {\n setRepliesShown(curr => {\n if (curr + 3 <= defaultReplies.length) return curr + 3;\n return defaultReplies.length;\n });\n setRepliesLoading(false);\n }, 1000);\n };\n\n const onShowLessReplies = () => {\n setRepliesLoading(true);\n setTimeout(() => {\n setRepliesShown(3);\n setRepliesLoading(false);\n }, 1000);\n };\n\n const onFilesAdded = (files: File[]) => {\n const fileItems: FileItemProps[] = files.map(file => {\n const fileItem: FileItemProps = {\n id: createUID(),\n name: file.name,\n format: file.name.split('.').pop(),\n onPreview: () => action('on preview'),\n onDelete: () => {\n setReplyAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n }\n };\n\n if (file.type.includes('image')) {\n fileItem.thumbnail = URL.createObjectURL(file);\n }\n if (file.size / 1000000 > 100) {\n fileItem.error = 'File size cannot exceed 100MB';\n }\n return fileItem;\n });\n\n setReplyAttachments(current => [...current, ...fileItems]);\n };\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes(userLikes || []);\n };\n\n const [likesLoading, setLikesLoading] = useState(false);\n\n const generateNewLike = useCallback(() => {\n if (!likesLoading) {\n setLikesLoading(true);\n setTimeout(() => {\n setLikesLoading(false);\n setLikes(oldLikes => [\n ...oldLikes,\n {\n primary: 'Generated Like',\n secondary: ['This like was loaded after the onLoadMoreLikes callback was triggered'],\n visual: <Avatar size='l' name='Generated Like' />,\n id: 'generatedLike'\n }\n ]);\n setAdditionalLikeAdded(true);\n }, 1000);\n }\n }, [likesLoading]);\n\n const getInitialRecipients = () => {\n if (recipientsList.length) return;\n\n setRecipientsList(\n recipients ||\n availableRecipients.slice(0, !allRecipientsVisible ? 10 : availableRecipients.length)\n );\n };\n\n const [recipientsLoading, setRecipientsLoading] = useState(false);\n\n const getAllRecipients = () => {\n if (!recipientsLoading) {\n setRecipientsLoading(true);\n setTimeout(() => {\n setRecipientsLoading(false);\n setRecipientsList(oldRecipients => [\n ...oldRecipients,\n {\n primary: 'Additional Recipient',\n secondary: [\n 'This recipient was loaded after the onLoadMoreRecipients callback was triggered'\n ],\n visual: <Avatar size='l' name='Additional Recipient' />,\n value: 'additionalRecipient',\n id: 'additionalRecipient'\n }\n ]);\n setAllRecipientsVisible(true);\n }, 1000);\n }\n };\n\n const onUserClick: FeedPostProps['onUserClick'] = ({ username: glimpseUsername }, clickEvent) => {\n if (clickEvent) {\n setGlimpseTarget(clickEvent.target as HTMLElement);\n if (glimpseUsername === 'autopilot') {\n setGlimpseContent(\n <AutopilotGlimpse\n target={clickEvent.target as HTMLElement}\n onDismiss={() => {\n setGlimpseTarget(null);\n }}\n placement='right'\n />\n );\n } else {\n const userDetails = feedUserGlimpseDetails.find(x => x.username === glimpseUsername);\n if (userDetails) {\n setGlimpseContent(\n <Glimpse\n {...userDetails}\n target={clickEvent.target as HTMLElement}\n onDismiss={() => {\n setGlimpseTarget(null);\n }}\n placement='right'\n />\n );\n }\n }\n }\n };\n\n return (\n <>\n <FeedPost\n id={id}\n key={key}\n fullname={fullname}\n username={username}\n icon={icon}\n postTimestamp={postTimestamp}\n content={postContent}\n postType={postType}\n recipients={recipientsList}\n recipientsCount={recipientsList.length}\n attachments={postAttachments}\n liked={liked}\n userStatus={userStatus}\n likes={likes}\n likeCount={likes.length}\n maxContentHeight={80}\n onLikeClick={({ user }) => {\n const userLikedIndex = likes.findIndex(x => x.id === user.id);\n if (userLikedIndex !== -1) {\n setLikes(oldLikes => {\n const oldLikesArr = [...oldLikes];\n oldLikesArr.splice(userLikedIndex, 1);\n return oldLikesArr;\n });\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n }\n setLiked(curr => !curr);\n }}\n onCommentClick={() => {}}\n onLikeCountInteraction={getInitialLikes}\n likesLoading={likesLoading}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n onRecipientInteraction={getInitialRecipients}\n recipientsLoading={recipientsLoading}\n onLoadMoreRecipients={!allRecipientsVisible ? getAllRecipients : undefined}\n onUserClick={onUserClick}\n menuItems={[\n { primary: 'Custom action', id: 'custom', onClick: () => {} },\n { primary: 'Delete', id: 'delete', onClick: onDelete }\n ]}\n onEditSubmit={({ value }) => {\n setPostContent(value);\n setEdited(true);\n setEditTimestamp(new Date());\n }}\n edited={edited}\n editTimestamp={editTimestamp}\n replies={\n replies\n ? [...replies, ...extraReplies]\n : [...defaultReplies.slice(-repliesShown), ...extraReplies]\n }\n replyCount={replyCount}\n repliesLoading={repliesLoading}\n onShowMoreReplies={onShowMoreReplies}\n onShowLessReplies={repliesShown > 3 ? onShowLessReplies : undefined}\n replyInput={{\n attachments: replyAttachments,\n onFilesAdded,\n onSubmit: replyEvent => {\n setReplyAttachments([]);\n\n replyEvent.attachments.forEach(file => {\n delete file.onDelete;\n file.onPreview = () => action('on preview');\n file.onDownload = () => action('on download');\n file.onEdit = () => action('on edit');\n });\n\n setExtraReplies(oldReplies => [\n ...oldReplies,\n <FeedReplyDemo\n key={`replies-${oldReplies.length}`}\n fullname='Demo User'\n username='demo_user'\n userStatus='active'\n content={replyEvent.value}\n attachments={replyEvent.attachments}\n postTimestamp={new Date()}\n />\n ]);\n setReplyCount(oldReplyCount => oldReplyCount + 1);\n\n const triggersAutopilot = replyEvent.value.match(AutopilotConfig.regexPattern);\n\n if (triggersAutopilot && triggersAutopilot.length && triggersAutopilot.length > 0) {\n setExtraReplies(oldReplies => [\n ...oldReplies,\n <FeedReplyDemo\n key={`autopilot-${createUID()}`}\n fullname='Autopilot'\n username='autopilot'\n content='This is just an automatic reply. In order to truly experience the power of the Pega GenAI™ virtual assistant, make sure to interact with Autopilot in a production environment!'\n postTimestamp={new Date()}\n />\n ]);\n setReplyCount(oldReplyCount => oldReplyCount + 1);\n }\n\n replyEvent.clear();\n }\n }}\n />\n {glimpseTarget && glimpseContent}\n </>\n );\n};\n"]}
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import type { FeedReplyProps } from '@pega/cosmos-react-social';
3
- interface FeedReplyDemoProps {
4
- fullname: FeedReplyProps['fullname'];
5
- username: FeedReplyProps['username'];
6
- content: FeedReplyProps['content'];
7
- attachments?: FeedReplyProps['attachments'];
8
- postTimestamp?: FeedReplyProps['postTimestamp'];
9
- userStatus?: FeedReplyProps['userStatus'];
10
- }
11
- export declare const FeedReplyDemo: ({ fullname, username, content, attachments, postTimestamp, userStatus }: FeedReplyDemoProps) => import("react").JSX.Element;
12
- export {};
13
- //# sourceMappingURL=FeedReply.mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeedReply.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.mocks.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAKhE,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACrC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,aAAa,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,aAAa,4EAOvB,kBAAkB,gCAwHpB,CAAC"}