@pega/cosmos-react-demos 6.6.0 → 6.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (893) hide show
  1. package/package.json +7 -7
  2. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +0 -3
  3. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +0 -1
  4. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +0 -15
  5. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +0 -1
  6. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +0 -19
  7. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +0 -1
  8. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -297
  9. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -1
  10. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +0 -5
  11. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +0 -1
  12. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +0 -15
  13. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +0 -1
  14. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +0 -6
  15. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +0 -1
  16. package/jsx/condition-builder/ConditionBuilder/props.mock.js +0 -229
  17. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +0 -1
  18. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +0 -10
  19. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +0 -1
  20. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +0 -40
  21. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +0 -1
  22. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +0 -4
  23. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +0 -1
  24. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +0 -233
  25. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +0 -1
  26. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +0 -8
  27. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +0 -1
  28. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +0 -31
  29. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +0 -1
  30. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -9
  31. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +0 -1
  32. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +0 -35
  33. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +0 -1
  34. package/jsx/core/AIButton/AIButton.mocks.d.ts +0 -22
  35. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +0 -1
  36. package/jsx/core/AIButton/AIButton.mocks.js +0 -136
  37. package/jsx/core/AIButton/AIButton.mocks.js.map +0 -1
  38. package/jsx/core/AIButton/AIButton.stories.d.ts +0 -23
  39. package/jsx/core/AIButton/AIButton.stories.d.ts.map +0 -1
  40. package/jsx/core/AIButton/AIButton.stories.jsx +0 -306
  41. package/jsx/core/AIButton/AIButton.stories.jsx.map +0 -1
  42. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +0 -9
  43. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +0 -1
  44. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +0 -25
  45. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +0 -1
  46. package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -15
  47. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +0 -1
  48. package/jsx/core/AppShell/AppShell.mocks.jsx +0 -132
  49. package/jsx/core/AppShell/AppShell.mocks.jsx.map +0 -1
  50. package/jsx/core/AppShell/AppShell.stories.d.ts +0 -39
  51. package/jsx/core/AppShell/AppShell.stories.d.ts.map +0 -1
  52. package/jsx/core/AppShell/AppShell.stories.jsx +0 -266
  53. package/jsx/core/AppShell/AppShell.stories.jsx.map +0 -1
  54. package/jsx/core/AppShell/AppShell.styles.d.ts +0 -2
  55. package/jsx/core/AppShell/AppShell.styles.d.ts.map +0 -1
  56. package/jsx/core/AppShell/AppShell.styles.js +0 -5
  57. package/jsx/core/AppShell/AppShell.styles.js.map +0 -1
  58. package/jsx/core/Avatar/Avatar.stories.d.ts +0 -15
  59. package/jsx/core/Avatar/Avatar.stories.d.ts.map +0 -1
  60. package/jsx/core/Avatar/Avatar.stories.jsx +0 -75
  61. package/jsx/core/Avatar/Avatar.stories.jsx.map +0 -1
  62. package/jsx/core/Backdrop/Backdrop.stories.d.ts +0 -7
  63. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +0 -1
  64. package/jsx/core/Backdrop/Backdrop.stories.jsx +0 -43
  65. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +0 -1
  66. package/jsx/core/Badges/Alert.stories.d.ts +0 -6
  67. package/jsx/core/Badges/Alert.stories.d.ts.map +0 -1
  68. package/jsx/core/Badges/Alert.stories.jsx +0 -15
  69. package/jsx/core/Badges/Alert.stories.jsx.map +0 -1
  70. package/jsx/core/Badges/Count.stories.d.ts +0 -6
  71. package/jsx/core/Badges/Count.stories.d.ts.map +0 -1
  72. package/jsx/core/Badges/Count.stories.jsx +0 -20
  73. package/jsx/core/Badges/Count.stories.jsx.map +0 -1
  74. package/jsx/core/Badges/Keyboard.stories.d.ts +0 -6
  75. package/jsx/core/Badges/Keyboard.stories.d.ts.map +0 -1
  76. package/jsx/core/Badges/Keyboard.stories.jsx +0 -17
  77. package/jsx/core/Badges/Keyboard.stories.jsx.map +0 -1
  78. package/jsx/core/Badges/Selection.stories.d.ts +0 -5
  79. package/jsx/core/Badges/Selection.stories.d.ts.map +0 -1
  80. package/jsx/core/Badges/Selection.stories.jsx +0 -9
  81. package/jsx/core/Badges/Selection.stories.jsx.map +0 -1
  82. package/jsx/core/Badges/Status.stories.d.ts +0 -11
  83. package/jsx/core/Badges/Status.stories.d.ts.map +0 -1
  84. package/jsx/core/Badges/Status.stories.jsx +0 -43
  85. package/jsx/core/Badges/Status.stories.jsx.map +0 -1
  86. package/jsx/core/Badges/Tag.stories.d.ts +0 -5
  87. package/jsx/core/Badges/Tag.stories.d.ts.map +0 -1
  88. package/jsx/core/Badges/Tag.stories.jsx +0 -9
  89. package/jsx/core/Badges/Tag.stories.jsx.map +0 -1
  90. package/jsx/core/Banner/Banner.mocks.d.ts +0 -18
  91. package/jsx/core/Banner/Banner.mocks.d.ts.map +0 -1
  92. package/jsx/core/Banner/Banner.mocks.jsx +0 -41
  93. package/jsx/core/Banner/Banner.mocks.jsx.map +0 -1
  94. package/jsx/core/Banner/Banner.stories.d.ts +0 -18
  95. package/jsx/core/Banner/Banner.stories.d.ts.map +0 -1
  96. package/jsx/core/Banner/Banner.stories.jsx +0 -156
  97. package/jsx/core/Banner/Banner.stories.jsx.map +0 -1
  98. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +0 -6
  99. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +0 -1
  100. package/jsx/core/Boolean/BooleanDisplay.stories.jsx +0 -19
  101. package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +0 -1
  102. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +0 -2
  103. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +0 -1
  104. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +0 -8
  105. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +0 -1
  106. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
  107. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
  108. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -69
  109. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -1
  110. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
  111. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
  112. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +0 -12
  113. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +0 -1
  114. package/jsx/core/Button/Button.stories.d.ts +0 -18
  115. package/jsx/core/Button/Button.stories.d.ts.map +0 -1
  116. package/jsx/core/Button/Button.stories.jsx +0 -119
  117. package/jsx/core/Button/Button.stories.jsx.map +0 -1
  118. package/jsx/core/Card/Card.stories.d.ts +0 -12
  119. package/jsx/core/Card/Card.stories.d.ts.map +0 -1
  120. package/jsx/core/Card/Card.stories.jsx +0 -85
  121. package/jsx/core/Card/Card.stories.jsx.map +0 -1
  122. package/jsx/core/Card/Card.styles.d.ts +0 -2
  123. package/jsx/core/Card/Card.styles.d.ts.map +0 -1
  124. package/jsx/core/Card/Card.styles.js +0 -5
  125. package/jsx/core/Card/Card.styles.js.map +0 -1
  126. package/jsx/core/Checkbox/Checkbox.stories.d.ts +0 -23
  127. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +0 -1
  128. package/jsx/core/Checkbox/Checkbox.stories.jsx +0 -100
  129. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +0 -1
  130. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -11
  131. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
  132. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -99
  133. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -1
  134. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -4
  135. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +0 -1
  136. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +0 -9
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +0 -1
  138. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +0 -10
  139. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
  140. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +0 -89
  141. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +0 -1
  142. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +0 -4
  143. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +0 -1
  144. package/jsx/core/ColorPicker/ColorPicker.styles.js +0 -11
  145. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +0 -1
  146. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -26
  147. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +0 -1
  148. package/jsx/core/ComboBox/ComboBox.mocks.jsx +0 -58
  149. package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +0 -1
  150. package/jsx/core/ComboBox/ComboBox.stories.d.ts +0 -24
  151. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
  152. package/jsx/core/ComboBox/ComboBox.stories.jsx +0 -369
  153. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +0 -1
  154. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +0 -8
  155. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +0 -1
  156. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +0 -8
  157. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +0 -1
  158. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +0 -9
  159. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +0 -1
  160. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +0 -52
  161. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +0 -1
  162. package/jsx/core/Configuration/Configuration.mocks.d.ts +0 -7
  163. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +0 -1
  164. package/jsx/core/Configuration/Configuration.mocks.jsx +0 -9
  165. package/jsx/core/Configuration/Configuration.mocks.jsx.map +0 -1
  166. package/jsx/core/Configuration/Configuration.stories.d.ts +0 -25
  167. package/jsx/core/Configuration/Configuration.stories.d.ts.map +0 -1
  168. package/jsx/core/Configuration/Configuration.stories.jsx +0 -196
  169. package/jsx/core/Configuration/Configuration.stories.jsx.map +0 -1
  170. package/jsx/core/Configuration/Configuration.styles.d.ts +0 -6
  171. package/jsx/core/Configuration/Configuration.styles.d.ts.map +0 -1
  172. package/jsx/core/Configuration/Configuration.styles.js +0 -12
  173. package/jsx/core/Configuration/Configuration.styles.js.map +0 -1
  174. package/jsx/core/CreditCard/CreditCard.stories.d.ts +0 -14
  175. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +0 -1
  176. package/jsx/core/CreditCard/CreditCard.stories.jsx +0 -50
  177. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +0 -1
  178. package/jsx/core/Currency/Currency.stories.d.ts +0 -19
  179. package/jsx/core/Currency/Currency.stories.d.ts.map +0 -1
  180. package/jsx/core/Currency/Currency.stories.jsx +0 -105
  181. package/jsx/core/Currency/Currency.stories.jsx.map +0 -1
  182. package/jsx/core/DangerButton/DangerButton.stories.d.ts +0 -6
  183. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +0 -1
  184. package/jsx/core/DangerButton/DangerButton.stories.jsx +0 -17
  185. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +0 -1
  186. package/jsx/core/DateTime/DateTime.stories.d.ts +0 -51
  187. package/jsx/core/DateTime/DateTime.stories.d.ts.map +0 -1
  188. package/jsx/core/DateTime/DateTime.stories.jsx +0 -291
  189. package/jsx/core/DateTime/DateTime.stories.jsx.map +0 -1
  190. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +0 -7
  191. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +0 -1
  192. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +0 -54
  193. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -1
  194. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +0 -7
  195. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +0 -1
  196. package/jsx/core/DateTime/DateTimePicker.stories.jsx +0 -34
  197. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +0 -1
  198. package/jsx/core/Dialog/Dialog.stories.d.ts +0 -7
  199. package/jsx/core/Dialog/Dialog.stories.d.ts.map +0 -1
  200. package/jsx/core/Dialog/Dialog.stories.jsx +0 -15
  201. package/jsx/core/Dialog/Dialog.stories.jsx.map +0 -1
  202. package/jsx/core/Dialog/FormDialog.mocks.d.ts +0 -27
  203. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +0 -1
  204. package/jsx/core/Dialog/FormDialog.mocks.jsx +0 -194
  205. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +0 -1
  206. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +0 -4
  207. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +0 -1
  208. package/jsx/core/Dialog/InfoDialog.mocks.jsx +0 -64
  209. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +0 -1
  210. package/jsx/core/Drawer/Drawer.stories.d.ts +0 -7
  211. package/jsx/core/Drawer/Drawer.stories.d.ts.map +0 -1
  212. package/jsx/core/Drawer/Drawer.stories.jsx +0 -98
  213. package/jsx/core/Drawer/Drawer.stories.jsx.map +0 -1
  214. package/jsx/core/Drawer/Drawer.styles.d.ts +0 -2
  215. package/jsx/core/Drawer/Drawer.styles.d.ts.map +0 -1
  216. package/jsx/core/Drawer/Drawer.styles.js +0 -11
  217. package/jsx/core/Drawer/Drawer.styles.js.map +0 -1
  218. package/jsx/core/Email/EmailDisplay.stories.d.ts +0 -6
  219. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +0 -1
  220. package/jsx/core/Email/EmailDisplay.stories.jsx +0 -19
  221. package/jsx/core/Email/EmailDisplay.stories.jsx.map +0 -1
  222. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +0 -8
  223. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +0 -1
  224. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +0 -53
  225. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -1
  226. package/jsx/core/EmptyState/EmptyState.stories.d.ts +0 -6
  227. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +0 -1
  228. package/jsx/core/EmptyState/EmptyState.stories.jsx +0 -18
  229. package/jsx/core/EmptyState/EmptyState.stories.jsx.map +0 -1
  230. package/jsx/core/ErrorState/ErrorState.stories.d.ts +0 -9
  231. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +0 -1
  232. package/jsx/core/ErrorState/ErrorState.stories.jsx +0 -20
  233. package/jsx/core/ErrorState/ErrorState.stories.jsx.map +0 -1
  234. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -7
  235. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +0 -1
  236. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -73
  237. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -1
  238. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +0 -4
  239. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +0 -1
  240. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +0 -17
  241. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +0 -1
  242. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +0 -20
  243. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +0 -1
  244. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +0 -93
  245. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +0 -1
  246. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -25
  247. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +0 -1
  248. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +0 -109
  249. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +0 -1
  250. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +0 -12
  251. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
  252. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +0 -134
  253. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -1
  254. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -20
  255. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +0 -1
  256. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx +0 -54
  257. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx.map +0 -1
  258. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +0 -11
  259. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +0 -1
  260. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +0 -37
  261. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +0 -1
  262. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +0 -2
  263. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +0 -1
  264. package/jsx/core/FieldValueList/FieldValueList.styles.js +0 -8
  265. package/jsx/core/FieldValueList/FieldValueList.styles.js.map +0 -1
  266. package/jsx/core/File/FileDisplay.stories.d.ts +0 -20
  267. package/jsx/core/File/FileDisplay.stories.d.ts.map +0 -1
  268. package/jsx/core/File/FileDisplay.stories.jsx +0 -140
  269. package/jsx/core/File/FileDisplay.stories.jsx.map +0 -1
  270. package/jsx/core/File/FileInput.stories.d.ts +0 -10
  271. package/jsx/core/File/FileInput.stories.d.ts.map +0 -1
  272. package/jsx/core/File/FileInput.stories.jsx +0 -103
  273. package/jsx/core/File/FileInput.stories.jsx.map +0 -1
  274. package/jsx/core/File/FileService.mock.d.ts +0 -28
  275. package/jsx/core/File/FileService.mock.d.ts.map +0 -1
  276. package/jsx/core/File/FileService.mock.jsx +0 -139
  277. package/jsx/core/File/FileService.mock.jsx.map +0 -1
  278. package/jsx/core/File/MockFileInput.d.ts +0 -6
  279. package/jsx/core/File/MockFileInput.d.ts.map +0 -1
  280. package/jsx/core/File/MockFileInput.jsx +0 -24
  281. package/jsx/core/File/MockFileInput.jsx.map +0 -1
  282. package/jsx/core/Flex/Flex.styles.d.ts +0 -10
  283. package/jsx/core/Flex/Flex.styles.d.ts.map +0 -1
  284. package/jsx/core/Flex/Flex.styles.js +0 -41
  285. package/jsx/core/Flex/Flex.styles.js.map +0 -1
  286. package/jsx/core/Flex/FlexContainer.stories.d.ts +0 -21
  287. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +0 -1
  288. package/jsx/core/Flex/FlexContainer.stories.jsx +0 -164
  289. package/jsx/core/Flex/FlexContainer.stories.jsx.map +0 -1
  290. package/jsx/core/Flex/FlexItem.stories.d.ts +0 -13
  291. package/jsx/core/Flex/FlexItem.stories.d.ts.map +0 -1
  292. package/jsx/core/Flex/FlexItem.stories.jsx +0 -71
  293. package/jsx/core/Flex/FlexItem.stories.jsx.map +0 -1
  294. package/jsx/core/Form/Form.mocks.d.ts +0 -14
  295. package/jsx/core/Form/Form.mocks.d.ts.map +0 -1
  296. package/jsx/core/Form/Form.mocks.jsx +0 -265
  297. package/jsx/core/Form/Form.mocks.jsx.map +0 -1
  298. package/jsx/core/Form/Form.stories.d.ts +0 -25
  299. package/jsx/core/Form/Form.stories.d.ts.map +0 -1
  300. package/jsx/core/Form/Form.stories.jsx +0 -106
  301. package/jsx/core/Form/Form.stories.jsx.map +0 -1
  302. package/jsx/core/Grid/Grid.styles.d.ts +0 -6
  303. package/jsx/core/Grid/Grid.styles.d.ts.map +0 -1
  304. package/jsx/core/Grid/Grid.styles.js +0 -36
  305. package/jsx/core/Grid/Grid.styles.js.map +0 -1
  306. package/jsx/core/Grid/GridContainer.stories.d.ts +0 -23
  307. package/jsx/core/Grid/GridContainer.stories.d.ts.map +0 -1
  308. package/jsx/core/Grid/GridContainer.stories.jsx +0 -168
  309. package/jsx/core/Grid/GridContainer.stories.jsx.map +0 -1
  310. package/jsx/core/Grid/GridItem.stories.d.ts +0 -12
  311. package/jsx/core/Grid/GridItem.stories.d.ts.map +0 -1
  312. package/jsx/core/Grid/GridItem.stories.jsx +0 -74
  313. package/jsx/core/Grid/GridItem.stories.jsx.map +0 -1
  314. package/jsx/core/HTML/HTML.stories.d.ts +0 -6
  315. package/jsx/core/HTML/HTML.stories.d.ts.map +0 -1
  316. package/jsx/core/HTML/HTML.stories.jsx +0 -13
  317. package/jsx/core/HTML/HTML.stories.jsx.map +0 -1
  318. package/jsx/core/Icon/Icon.mocks.d.ts +0 -26
  319. package/jsx/core/Icon/Icon.mocks.d.ts.map +0 -1
  320. package/jsx/core/Icon/Icon.mocks.jsx +0 -32
  321. package/jsx/core/Icon/Icon.mocks.jsx.map +0 -1
  322. package/jsx/core/Icon/Icon.stories.d.ts +0 -21
  323. package/jsx/core/Icon/Icon.stories.d.ts.map +0 -1
  324. package/jsx/core/Icon/Icon.stories.jsx +0 -112
  325. package/jsx/core/Icon/Icon.stories.jsx.map +0 -1
  326. package/jsx/core/Icon/Icon.styles.d.ts +0 -4
  327. package/jsx/core/Icon/Icon.styles.d.ts.map +0 -1
  328. package/jsx/core/Icon/Icon.styles.js +0 -25
  329. package/jsx/core/Icon/Icon.styles.js.map +0 -1
  330. package/jsx/core/IconPicker/IconPicker.stories.d.ts +0 -6
  331. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
  332. package/jsx/core/IconPicker/IconPicker.stories.jsx +0 -35
  333. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +0 -1
  334. package/jsx/core/Image/Image.stories.d.ts +0 -5
  335. package/jsx/core/Image/Image.stories.d.ts.map +0 -1
  336. package/jsx/core/Image/Image.stories.jsx +0 -9
  337. package/jsx/core/Image/Image.stories.jsx.map +0 -1
  338. package/jsx/core/Input/Input.stories.d.ts +0 -20
  339. package/jsx/core/Input/Input.stories.d.ts.map +0 -1
  340. package/jsx/core/Input/Input.stories.jsx +0 -159
  341. package/jsx/core/Input/Input.stories.jsx.map +0 -1
  342. package/jsx/core/Label/Label.stories.d.ts +0 -10
  343. package/jsx/core/Label/Label.stories.d.ts.map +0 -1
  344. package/jsx/core/Label/Label.stories.jsx +0 -33
  345. package/jsx/core/Label/Label.stories.jsx.map +0 -1
  346. package/jsx/core/Lightbox/Lightbox.mocks.d.ts +0 -22
  347. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
  348. package/jsx/core/Lightbox/Lightbox.mocks.js +0 -97
  349. package/jsx/core/Lightbox/Lightbox.mocks.js.map +0 -1
  350. package/jsx/core/Lightbox/Lightbox.stories.d.ts +0 -10
  351. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +0 -1
  352. package/jsx/core/Lightbox/Lightbox.stories.jsx +0 -70
  353. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +0 -1
  354. package/jsx/core/Link/Link.stories.d.ts +0 -13
  355. package/jsx/core/Link/Link.stories.d.ts.map +0 -1
  356. package/jsx/core/Link/Link.stories.jsx +0 -43
  357. package/jsx/core/Link/Link.stories.jsx.map +0 -1
  358. package/jsx/core/List/CommaSeparatedList.stories.d.ts +0 -6
  359. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +0 -1
  360. package/jsx/core/List/CommaSeparatedList.stories.jsx +0 -31
  361. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +0 -1
  362. package/jsx/core/List/OrderedList.stories.d.ts +0 -10
  363. package/jsx/core/List/OrderedList.stories.d.ts.map +0 -1
  364. package/jsx/core/List/OrderedList.stories.jsx +0 -38
  365. package/jsx/core/List/OrderedList.stories.jsx.map +0 -1
  366. package/jsx/core/List/UnorderedList.stories.d.ts +0 -10
  367. package/jsx/core/List/UnorderedList.stories.d.ts.map +0 -1
  368. package/jsx/core/List/UnorderedList.stories.jsx +0 -38
  369. package/jsx/core/List/UnorderedList.stories.jsx.map +0 -1
  370. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +0 -9
  371. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +0 -1
  372. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +0 -58
  373. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +0 -1
  374. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +0 -17
  375. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +0 -1
  376. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +0 -141
  377. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +0 -1
  378. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +0 -5
  379. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +0 -1
  380. package/jsx/core/LiveLog/LiveLog.mocks.jsx +0 -47
  381. package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +0 -1
  382. package/jsx/core/LiveLog/LiveLog.stories.d.ts +0 -9
  383. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +0 -1
  384. package/jsx/core/LiveLog/LiveLog.stories.jsx +0 -19
  385. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +0 -1
  386. package/jsx/core/Location/Location.stories.d.ts +0 -15
  387. package/jsx/core/Location/Location.stories.d.ts.map +0 -1
  388. package/jsx/core/Location/Location.stories.jsx +0 -142
  389. package/jsx/core/Location/Location.stories.jsx.map +0 -1
  390. package/jsx/core/Location/locationTestUtils.d.ts +0 -3
  391. package/jsx/core/Location/locationTestUtils.d.ts.map +0 -1
  392. package/jsx/core/Location/locationTestUtils.js +0 -29
  393. package/jsx/core/Location/locationTestUtils.js.map +0 -1
  394. package/jsx/core/Menu/Menu.mocks.d.ts +0 -4
  395. package/jsx/core/Menu/Menu.mocks.d.ts.map +0 -1
  396. package/jsx/core/Menu/Menu.mocks.js +0 -179
  397. package/jsx/core/Menu/Menu.mocks.js.map +0 -1
  398. package/jsx/core/Menu/Menu.stories.d.ts +0 -18
  399. package/jsx/core/Menu/Menu.stories.d.ts.map +0 -1
  400. package/jsx/core/Menu/Menu.stories.jsx +0 -196
  401. package/jsx/core/Menu/Menu.stories.jsx.map +0 -1
  402. package/jsx/core/Menu/Menu.styles.d.ts +0 -2
  403. package/jsx/core/Menu/Menu.styles.d.ts.map +0 -1
  404. package/jsx/core/Menu/Menu.styles.js +0 -6
  405. package/jsx/core/Menu/Menu.styles.js.map +0 -1
  406. package/jsx/core/MenuButton/MenuButton.stories.d.ts +0 -16
  407. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +0 -1
  408. package/jsx/core/MenuButton/MenuButton.stories.jsx +0 -188
  409. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +0 -1
  410. package/jsx/core/MetaList/MetaList.stories.d.ts +0 -9
  411. package/jsx/core/MetaList/MetaList.stories.d.ts.map +0 -1
  412. package/jsx/core/MetaList/MetaList.stories.jsx +0 -24
  413. package/jsx/core/MetaList/MetaList.stories.jsx.map +0 -1
  414. package/jsx/core/Modal/Modal.mocks.d.ts +0 -4
  415. package/jsx/core/Modal/Modal.mocks.d.ts.map +0 -1
  416. package/jsx/core/Modal/Modal.mocks.jsx +0 -44
  417. package/jsx/core/Modal/Modal.mocks.jsx.map +0 -1
  418. package/jsx/core/Modal/Modal.stories.d.ts +0 -36
  419. package/jsx/core/Modal/Modal.stories.d.ts.map +0 -1
  420. package/jsx/core/Modal/Modal.stories.jsx +0 -332
  421. package/jsx/core/Modal/Modal.stories.jsx.map +0 -1
  422. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -70
  423. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +0 -1
  424. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +0 -401
  425. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +0 -1
  426. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +0 -7
  427. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +0 -1
  428. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +0 -133
  429. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +0 -1
  430. package/jsx/core/NoValue/NoValue.stories.d.ts +0 -6
  431. package/jsx/core/NoValue/NoValue.stories.d.ts.map +0 -1
  432. package/jsx/core/NoValue/NoValue.stories.jsx +0 -30
  433. package/jsx/core/NoValue/NoValue.stories.jsx.map +0 -1
  434. package/jsx/core/Number/Number.stories.d.ts +0 -19
  435. package/jsx/core/Number/Number.stories.d.ts.map +0 -1
  436. package/jsx/core/Number/Number.stories.jsx +0 -303
  437. package/jsx/core/Number/Number.stories.jsx.map +0 -1
  438. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +0 -3
  439. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
  440. package/jsx/core/PageTemplates/PageTemplates.mocks.js +0 -10
  441. package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +0 -1
  442. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +0 -33
  443. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  444. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +0 -287
  445. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  446. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +0 -5
  447. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +0 -1
  448. package/jsx/core/PageTemplates/PageTemplates.styles.js +0 -40
  449. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +0 -1
  450. package/jsx/core/Pagination/Pagination.stories.d.ts +0 -6
  451. package/jsx/core/Pagination/Pagination.stories.d.ts.map +0 -1
  452. package/jsx/core/Pagination/Pagination.stories.jsx +0 -19
  453. package/jsx/core/Pagination/Pagination.stories.jsx.map +0 -1
  454. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +0 -6
  455. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +0 -1
  456. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx +0 -15
  457. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -1
  458. package/jsx/core/Phone/Phone.stories.d.ts +0 -13
  459. package/jsx/core/Phone/Phone.stories.d.ts.map +0 -1
  460. package/jsx/core/Phone/Phone.stories.jsx +0 -52
  461. package/jsx/core/Phone/Phone.stories.jsx.map +0 -1
  462. package/jsx/core/Popover/Popover.mocks.d.ts +0 -9
  463. package/jsx/core/Popover/Popover.mocks.d.ts.map +0 -1
  464. package/jsx/core/Popover/Popover.mocks.jsx +0 -114
  465. package/jsx/core/Popover/Popover.mocks.jsx.map +0 -1
  466. package/jsx/core/Popover/Popover.stories.d.ts +0 -13
  467. package/jsx/core/Popover/Popover.stories.d.ts.map +0 -1
  468. package/jsx/core/Popover/Popover.stories.jsx +0 -209
  469. package/jsx/core/Popover/Popover.stories.jsx.map +0 -1
  470. package/jsx/core/Progress/Progress.mocks.d.ts +0 -2
  471. package/jsx/core/Progress/Progress.mocks.d.ts.map +0 -1
  472. package/jsx/core/Progress/Progress.mocks.js +0 -2
  473. package/jsx/core/Progress/Progress.mocks.js.map +0 -1
  474. package/jsx/core/Progress/Progress.stories.d.ts +0 -16
  475. package/jsx/core/Progress/Progress.stories.d.ts.map +0 -1
  476. package/jsx/core/Progress/Progress.stories.jsx +0 -124
  477. package/jsx/core/Progress/Progress.stories.jsx.map +0 -1
  478. package/jsx/core/Progress/Progress.styles.d.ts +0 -2
  479. package/jsx/core/Progress/Progress.styles.d.ts.map +0 -1
  480. package/jsx/core/Progress/Progress.styles.js +0 -14
  481. package/jsx/core/Progress/Progress.styles.js.map +0 -1
  482. package/jsx/core/QRCode/QRCode.stories.d.ts +0 -9
  483. package/jsx/core/QRCode/QRCode.stories.d.ts.map +0 -1
  484. package/jsx/core/QRCode/QRCode.stories.jsx +0 -17
  485. package/jsx/core/QRCode/QRCode.stories.jsx.map +0 -1
  486. package/jsx/core/RadioButton/RadioButton.stories.d.ts +0 -23
  487. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +0 -1
  488. package/jsx/core/RadioButton/RadioButton.stories.jsx +0 -95
  489. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +0 -1
  490. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +0 -12
  491. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +0 -1
  492. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -101
  493. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -1
  494. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -4
  495. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +0 -1
  496. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +0 -9
  497. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +0 -1
  498. package/jsx/core/Rating/Rating.stories.d.ts +0 -13
  499. package/jsx/core/Rating/Rating.stories.d.ts.map +0 -1
  500. package/jsx/core/Rating/Rating.stories.jsx +0 -39
  501. package/jsx/core/Rating/Rating.stories.jsx.map +0 -1
  502. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +0 -12
  503. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +0 -1
  504. package/jsx/core/SearchInput/SearchInput.mocks.js +0 -25
  505. package/jsx/core/SearchInput/SearchInput.mocks.js.map +0 -1
  506. package/jsx/core/SearchInput/SearchInput.stories.d.ts +0 -7
  507. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
  508. package/jsx/core/SearchInput/SearchInput.stories.jsx +0 -44
  509. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +0 -1
  510. package/jsx/core/Select/Select.stories.d.ts +0 -18
  511. package/jsx/core/Select/Select.stories.d.ts.map +0 -1
  512. package/jsx/core/Select/Select.stories.jsx +0 -83
  513. package/jsx/core/Select/Select.stories.jsx.map +0 -1
  514. package/jsx/core/Sentiment/Sentiment.stories.d.ts +0 -20
  515. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +0 -1
  516. package/jsx/core/Sentiment/Sentiment.stories.jsx +0 -71
  517. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +0 -1
  518. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +0 -6
  519. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +0 -1
  520. package/jsx/core/SkipLinks/SkipLinks.stories.jsx +0 -29
  521. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +0 -1
  522. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +0 -2
  523. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +0 -1
  524. package/jsx/core/SkipLinks/SkipLinks.styles.js +0 -16
  525. package/jsx/core/SkipLinks/SkipLinks.styles.js.map +0 -1
  526. package/jsx/core/Slider/Slider.stories.d.ts +0 -13
  527. package/jsx/core/Slider/Slider.stories.d.ts.map +0 -1
  528. package/jsx/core/Slider/Slider.stories.jsx +0 -78
  529. package/jsx/core/Slider/Slider.stories.jsx.map +0 -1
  530. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +0 -11
  531. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +0 -1
  532. package/jsx/core/SummaryItem/SummaryItem.stories.jsx +0 -36
  533. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +0 -1
  534. package/jsx/core/SummaryList/SummaryList.mocks.d.ts +0 -20
  535. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +0 -1
  536. package/jsx/core/SummaryList/SummaryList.mocks.jsx +0 -48
  537. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +0 -1
  538. package/jsx/core/SummaryList/SummaryList.stories.d.ts +0 -13
  539. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +0 -1
  540. package/jsx/core/SummaryList/SummaryList.stories.jsx +0 -131
  541. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +0 -1
  542. package/jsx/core/SummaryList/mockUsers.d.ts +0 -16
  543. package/jsx/core/SummaryList/mockUsers.d.ts.map +0 -1
  544. package/jsx/core/SummaryList/mockUsers.js +0 -904
  545. package/jsx/core/SummaryList/mockUsers.js.map +0 -1
  546. package/jsx/core/Switch/Switch.stories.d.ts +0 -14
  547. package/jsx/core/Switch/Switch.stories.d.ts.map +0 -1
  548. package/jsx/core/Switch/Switch.stories.jsx +0 -60
  549. package/jsx/core/Switch/Switch.stories.jsx.map +0 -1
  550. package/jsx/core/Switch/Switch.styles.d.ts +0 -2
  551. package/jsx/core/Switch/Switch.styles.d.ts.map +0 -1
  552. package/jsx/core/Switch/Switch.styles.js +0 -13
  553. package/jsx/core/Switch/Switch.styles.js.map +0 -1
  554. package/jsx/core/Table/Table.mocks.d.ts +0 -25
  555. package/jsx/core/Table/Table.mocks.d.ts.map +0 -1
  556. package/jsx/core/Table/Table.mocks.jsx +0 -166
  557. package/jsx/core/Table/Table.mocks.jsx.map +0 -1
  558. package/jsx/core/Table/Table.stories.d.ts +0 -39
  559. package/jsx/core/Table/Table.stories.d.ts.map +0 -1
  560. package/jsx/core/Table/Table.stories.jsx +0 -178
  561. package/jsx/core/Table/Table.stories.jsx.map +0 -1
  562. package/jsx/core/Table/Table.styles.d.ts +0 -4
  563. package/jsx/core/Table/Table.styles.d.ts.map +0 -1
  564. package/jsx/core/Table/Table.styles.js +0 -9
  565. package/jsx/core/Table/Table.styles.js.map +0 -1
  566. package/jsx/core/Tabs/Tabs.stories.d.ts +0 -9
  567. package/jsx/core/Tabs/Tabs.stories.d.ts.map +0 -1
  568. package/jsx/core/Tabs/Tabs.stories.jsx +0 -59
  569. package/jsx/core/Tabs/Tabs.stories.jsx.map +0 -1
  570. package/jsx/core/Text/Text.stories.d.ts +0 -25
  571. package/jsx/core/Text/Text.stories.d.ts.map +0 -1
  572. package/jsx/core/Text/Text.stories.jsx +0 -134
  573. package/jsx/core/Text/Text.stories.jsx.map +0 -1
  574. package/jsx/core/TextArea/TextArea.stories.d.ts +0 -14
  575. package/jsx/core/TextArea/TextArea.stories.d.ts.map +0 -1
  576. package/jsx/core/TextArea/TextArea.stories.jsx +0 -71
  577. package/jsx/core/TextArea/TextArea.stories.jsx.map +0 -1
  578. package/jsx/core/Toaster/Toaster.stories.d.ts +0 -5
  579. package/jsx/core/Toaster/Toaster.stories.d.ts.map +0 -1
  580. package/jsx/core/Toaster/Toaster.stories.jsx +0 -27
  581. package/jsx/core/Toaster/Toaster.stories.jsx.map +0 -1
  582. package/jsx/core/Tooltip/Tooltip.stories.d.ts +0 -11
  583. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +0 -1
  584. package/jsx/core/Tooltip/Tooltip.stories.jsx +0 -66
  585. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +0 -1
  586. package/jsx/core/Tooltip/Tooltip.styles.d.ts +0 -2
  587. package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +0 -1
  588. package/jsx/core/Tooltip/Tooltip.styles.js +0 -23
  589. package/jsx/core/Tooltip/Tooltip.styles.js.map +0 -1
  590. package/jsx/core/Tree/Tree.mocks.d.ts +0 -2
  591. package/jsx/core/Tree/Tree.mocks.d.ts.map +0 -1
  592. package/jsx/core/Tree/Tree.mocks.js +0 -20
  593. package/jsx/core/Tree/Tree.mocks.js.map +0 -1
  594. package/jsx/core/Tree/Tree.stories.d.ts +0 -7
  595. package/jsx/core/Tree/Tree.stories.d.ts.map +0 -1
  596. package/jsx/core/Tree/Tree.stories.jsx +0 -95
  597. package/jsx/core/Tree/Tree.stories.jsx.map +0 -1
  598. package/jsx/core/Tree/Tree.styles.d.ts +0 -3
  599. package/jsx/core/Tree/Tree.styles.d.ts.map +0 -1
  600. package/jsx/core/Tree/Tree.styles.js +0 -10
  601. package/jsx/core/Tree/Tree.styles.js.map +0 -1
  602. package/jsx/core/URL/URL.stories.d.ts +0 -6
  603. package/jsx/core/URL/URL.stories.d.ts.map +0 -1
  604. package/jsx/core/URL/URL.stories.jsx +0 -17
  605. package/jsx/core/URL/URL.stories.jsx.map +0 -1
  606. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +0 -15
  607. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +0 -1
  608. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +0 -33
  609. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +0 -1
  610. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +0 -10
  611. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +0 -1
  612. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +0 -55
  613. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +0 -1
  614. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +0 -6
  615. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +0 -1
  616. package/jsx/dnd/DragDropList/DragDropList.styles.js +0 -32
  617. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +0 -1
  618. package/jsx/dnd/StandardDragDropList/Demo.d.ts +0 -7
  619. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +0 -1
  620. package/jsx/dnd/StandardDragDropList/Demo.jsx +0 -156
  621. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +0 -1
  622. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +0 -10
  623. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +0 -1
  624. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +0 -26
  625. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +0 -1
  626. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +0 -12
  627. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +0 -1
  628. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +0 -21
  629. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +0 -1
  630. package/jsx/dnd/StandardDragDropList/Popover.d.ts +0 -14
  631. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +0 -1
  632. package/jsx/dnd/StandardDragDropList/Popover.jsx +0 -51
  633. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +0 -1
  634. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -16
  635. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +0 -1
  636. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +0 -104
  637. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +0 -1
  638. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +0 -5
  639. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +0 -1
  640. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +0 -15
  641. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +0 -1
  642. package/jsx/dnd/StandardDragDropList/mockData.d.ts +0 -26
  643. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +0 -1
  644. package/jsx/dnd/StandardDragDropList/mockData.js +0 -77
  645. package/jsx/dnd/StandardDragDropList/mockData.js.map +0 -1
  646. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
  647. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
  648. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -103
  649. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
  650. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +0 -11
  651. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
  652. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +0 -82
  653. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +0 -1
  654. package/jsx/rte/Editor/Editor.mocks.d.ts +0 -329
  655. package/jsx/rte/Editor/Editor.mocks.d.ts.map +0 -1
  656. package/jsx/rte/Editor/Editor.mocks.jsx +0 -22
  657. package/jsx/rte/Editor/Editor.mocks.jsx.map +0 -1
  658. package/jsx/rte/Editor/Editor.stories.d.ts +0 -14
  659. package/jsx/rte/Editor/Editor.stories.d.ts.map +0 -1
  660. package/jsx/rte/Editor/Editor.stories.jsx +0 -159
  661. package/jsx/rte/Editor/Editor.stories.jsx.map +0 -1
  662. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +0 -3
  663. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +0 -1
  664. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -34
  665. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -1
  666. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +0 -7
  667. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +0 -1
  668. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -108
  669. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -1
  670. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +0 -13
  671. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +0 -1
  672. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -151
  673. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
  674. package/jsx/social/Chat/Chat.mocks.d.ts +0 -52
  675. package/jsx/social/Chat/Chat.mocks.d.ts.map +0 -1
  676. package/jsx/social/Chat/Chat.mocks.js +0 -767
  677. package/jsx/social/Chat/Chat.mocks.js.map +0 -1
  678. package/jsx/social/Chat/Chat.stories.d.ts +0 -55
  679. package/jsx/social/Chat/Chat.stories.d.ts.map +0 -1
  680. package/jsx/social/Chat/Chat.stories.jsx +0 -678
  681. package/jsx/social/Chat/Chat.stories.jsx.map +0 -1
  682. package/jsx/social/Email/Email.mocks.d.ts +0 -352
  683. package/jsx/social/Email/Email.mocks.d.ts.map +0 -1
  684. package/jsx/social/Email/Email.mocks.jsx +0 -1215
  685. package/jsx/social/Email/Email.mocks.jsx.map +0 -1
  686. package/jsx/social/Email/Email.stories.d.ts +0 -83
  687. package/jsx/social/Email/Email.stories.d.ts.map +0 -1
  688. package/jsx/social/Email/Email.stories.jsx +0 -1219
  689. package/jsx/social/Email/Email.stories.jsx.map +0 -1
  690. package/jsx/social/Email/Email.styles.d.ts +0 -3
  691. package/jsx/social/Email/Email.styles.d.ts.map +0 -1
  692. package/jsx/social/Email/Email.styles.js +0 -11
  693. package/jsx/social/Email/Email.styles.js.map +0 -1
  694. package/jsx/social/Feed/Feed.mocks.d.ts +0 -53
  695. package/jsx/social/Feed/Feed.mocks.d.ts.map +0 -1
  696. package/jsx/social/Feed/Feed.mocks.jsx +0 -412
  697. package/jsx/social/Feed/Feed.mocks.jsx.map +0 -1
  698. package/jsx/social/Feed/Feed.stories.d.ts +0 -11
  699. package/jsx/social/Feed/Feed.stories.d.ts.map +0 -1
  700. package/jsx/social/Feed/Feed.stories.jsx +0 -222
  701. package/jsx/social/Feed/Feed.stories.jsx.map +0 -1
  702. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +0 -8
  703. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +0 -1
  704. package/jsx/social/Feed/FeedNewPost.mocks.jsx +0 -29
  705. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +0 -1
  706. package/jsx/social/Feed/FeedPost.mocks.d.ts +0 -4
  707. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +0 -1
  708. package/jsx/social/Feed/FeedPost.mocks.jsx +0 -182
  709. package/jsx/social/Feed/FeedPost.mocks.jsx.map +0 -1
  710. package/jsx/social/Feed/FeedReply.mocks.d.ts +0 -13
  711. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +0 -1
  712. package/jsx/social/Feed/FeedReply.mocks.jsx +0 -83
  713. package/jsx/social/Feed/FeedReply.mocks.jsx.map +0 -1
  714. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +0 -6
  715. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +0 -1
  716. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -30
  717. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -1
  718. package/jsx/work/Article/Article.mocks.d.ts +0 -18
  719. package/jsx/work/Article/Article.mocks.d.ts.map +0 -1
  720. package/jsx/work/Article/Article.mocks.js +0 -18
  721. package/jsx/work/Article/Article.mocks.js.map +0 -1
  722. package/jsx/work/Article/Article.stories.d.ts +0 -18
  723. package/jsx/work/Article/Article.stories.d.ts.map +0 -1
  724. package/jsx/work/Article/Article.stories.jsx +0 -243
  725. package/jsx/work/Article/Article.stories.jsx.map +0 -1
  726. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts +0 -12
  727. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +0 -1
  728. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +0 -87
  729. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +0 -1
  730. package/jsx/work/ArticleList/ArticleList.mocks.d.ts +0 -222
  731. package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +0 -1
  732. package/jsx/work/ArticleList/ArticleList.mocks.js +0 -490
  733. package/jsx/work/ArticleList/ArticleList.mocks.js.map +0 -1
  734. package/jsx/work/ArticleList/ArticleList.stories.d.ts +0 -15
  735. package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +0 -1
  736. package/jsx/work/ArticleList/ArticleList.stories.jsx +0 -517
  737. package/jsx/work/ArticleList/ArticleList.stories.jsx.map +0 -1
  738. package/jsx/work/Assignments/Assignments.stories.d.ts +0 -11
  739. package/jsx/work/Assignments/Assignments.stories.d.ts.map +0 -1
  740. package/jsx/work/Assignments/Assignments.stories.jsx +0 -64
  741. package/jsx/work/Assignments/Assignments.stories.jsx.map +0 -1
  742. package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -3
  743. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +0 -1
  744. package/jsx/work/CaseView/Attachments.mocks.jsx +0 -397
  745. package/jsx/work/CaseView/Attachments.mocks.jsx.map +0 -1
  746. package/jsx/work/CaseView/CaseView.mocks.d.ts +0 -117
  747. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +0 -1
  748. package/jsx/work/CaseView/CaseView.mocks.jsx +0 -642
  749. package/jsx/work/CaseView/CaseView.mocks.jsx.map +0 -1
  750. package/jsx/work/CaseView/CaseView.stories.d.ts +0 -6
  751. package/jsx/work/CaseView/CaseView.stories.d.ts.map +0 -1
  752. package/jsx/work/CaseView/CaseView.stories.jsx +0 -57
  753. package/jsx/work/CaseView/CaseView.stories.jsx.map +0 -1
  754. package/jsx/work/CaseView/Details.mocks.d.ts +0 -3
  755. package/jsx/work/CaseView/Details.mocks.d.ts.map +0 -1
  756. package/jsx/work/CaseView/Details.mocks.jsx +0 -21
  757. package/jsx/work/CaseView/Details.mocks.jsx.map +0 -1
  758. package/jsx/work/CaseView/Pulse.mocks.d.ts +0 -7
  759. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +0 -1
  760. package/jsx/work/CaseView/Pulse.mocks.jsx +0 -35
  761. package/jsx/work/CaseView/Pulse.mocks.jsx.map +0 -1
  762. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -45
  763. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +0 -1
  764. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +0 -166
  765. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +0 -1
  766. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +0 -5
  767. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +0 -1
  768. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -24
  769. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -1
  770. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +0 -4
  771. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +0 -1
  772. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +0 -11
  773. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +0 -1
  774. package/jsx/work/Confirmation/Confirmation.stories.d.ts +0 -13
  775. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +0 -1
  776. package/jsx/work/Confirmation/Confirmation.stories.jsx +0 -39
  777. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +0 -1
  778. package/jsx/work/Confirmation/Confirmation.styles.d.ts +0 -2
  779. package/jsx/work/Confirmation/Confirmation.styles.d.ts.map +0 -1
  780. package/jsx/work/Confirmation/Confirmation.styles.js +0 -7
  781. package/jsx/work/Confirmation/Confirmation.styles.js.map +0 -1
  782. package/jsx/work/Details/Details.stories.d.ts +0 -10
  783. package/jsx/work/Details/Details.stories.d.ts.map +0 -1
  784. package/jsx/work/Details/Details.stories.jsx +0 -109
  785. package/jsx/work/Details/Details.stories.jsx.map +0 -1
  786. package/jsx/work/DetailsV2/DetailsV2.stories.d.ts +0 -10
  787. package/jsx/work/DetailsV2/DetailsV2.stories.d.ts.map +0 -1
  788. package/jsx/work/DetailsV2/DetailsV2.stories.jsx +0 -215
  789. package/jsx/work/DetailsV2/DetailsV2.stories.jsx.map +0 -1
  790. package/jsx/work/Glimpse/Glimpse.stories.d.ts +0 -5
  791. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +0 -1
  792. package/jsx/work/Glimpse/Glimpse.stories.jsx +0 -42
  793. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +0 -1
  794. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -5
  795. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +0 -1
  796. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -115
  797. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -1
  798. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts +0 -13
  799. package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
  800. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx +0 -56
  801. package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
  802. package/jsx/work/Predictions/Predictions.mocks.d.ts +0 -3
  803. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +0 -1
  804. package/jsx/work/Predictions/Predictions.mocks.jsx +0 -18
  805. package/jsx/work/Predictions/Predictions.mocks.jsx.map +0 -1
  806. package/jsx/work/Predictions/Predictions.stories.d.ts +0 -5
  807. package/jsx/work/Predictions/Predictions.stories.d.ts.map +0 -1
  808. package/jsx/work/Predictions/Predictions.stories.jsx +0 -53
  809. package/jsx/work/Predictions/Predictions.stories.jsx.map +0 -1
  810. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +0 -14
  811. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +0 -1
  812. package/jsx/work/SearchResults/SearchResults.mocks.jsx +0 -97
  813. package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +0 -1
  814. package/jsx/work/SearchResults/SearchResults.stories.d.ts +0 -9
  815. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +0 -1
  816. package/jsx/work/SearchResults/SearchResults.stories.jsx +0 -242
  817. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +0 -1
  818. package/jsx/work/SearchResults/SearchResults.styles.d.ts +0 -5
  819. package/jsx/work/SearchResults/SearchResults.styles.d.ts.map +0 -1
  820. package/jsx/work/SearchResults/SearchResults.styles.js +0 -12
  821. package/jsx/work/SearchResults/SearchResults.styles.js.map +0 -1
  822. package/jsx/work/Stages/Stages.mocks.d.ts +0 -14
  823. package/jsx/work/Stages/Stages.mocks.d.ts.map +0 -1
  824. package/jsx/work/Stages/Stages.mocks.jsx +0 -40
  825. package/jsx/work/Stages/Stages.mocks.jsx.map +0 -1
  826. package/jsx/work/Stages/Stages.stories.d.ts +0 -11
  827. package/jsx/work/Stages/Stages.stories.d.ts.map +0 -1
  828. package/jsx/work/Stages/Stages.stories.jsx +0 -45
  829. package/jsx/work/Stages/Stages.stories.jsx.map +0 -1
  830. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +0 -17
  831. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +0 -1
  832. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +0 -36
  833. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +0 -1
  834. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +0 -8
  835. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +0 -1
  836. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +0 -99
  837. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +0 -1
  838. package/jsx/work/Tags/Tags.mocks.d.ts +0 -3
  839. package/jsx/work/Tags/Tags.mocks.d.ts.map +0 -1
  840. package/jsx/work/Tags/Tags.mocks.js +0 -76
  841. package/jsx/work/Tags/Tags.mocks.js.map +0 -1
  842. package/jsx/work/Tags/Tags.stories.d.ts +0 -10
  843. package/jsx/work/Tags/Tags.stories.d.ts.map +0 -1
  844. package/jsx/work/Tags/Tags.stories.jsx +0 -66
  845. package/jsx/work/Tags/Tags.stories.jsx.map +0 -1
  846. package/jsx/work/Tasks/TaskList.stories.d.ts +0 -5
  847. package/jsx/work/Tasks/TaskList.stories.d.ts.map +0 -1
  848. package/jsx/work/Tasks/TaskList.stories.jsx +0 -19
  849. package/jsx/work/Tasks/TaskList.stories.jsx.map +0 -1
  850. package/jsx/work/Tasks/Tasks.mocks.d.ts +0 -22
  851. package/jsx/work/Tasks/Tasks.mocks.d.ts.map +0 -1
  852. package/jsx/work/Tasks/Tasks.mocks.js +0 -51
  853. package/jsx/work/Tasks/Tasks.mocks.js.map +0 -1
  854. package/jsx/work/Tasks/Tasks.stories.d.ts +0 -15
  855. package/jsx/work/Tasks/Tasks.stories.d.ts.map +0 -1
  856. package/jsx/work/Tasks/Tasks.stories.jsx +0 -79
  857. package/jsx/work/Tasks/Tasks.stories.jsx.map +0 -1
  858. package/jsx/work/Timeline/Timeline.mocks.d.ts +0 -3
  859. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +0 -1
  860. package/jsx/work/Timeline/Timeline.mocks.jsx +0 -144
  861. package/jsx/work/Timeline/Timeline.mocks.jsx.map +0 -1
  862. package/jsx/work/Timeline/Timeline.stories.d.ts +0 -11
  863. package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
  864. package/jsx/work/Timeline/Timeline.stories.jsx +0 -78
  865. package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
  866. package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -24
  867. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +0 -1
  868. package/jsx/wss/AppShell/AppShell.mocks.jsx +0 -64
  869. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +0 -1
  870. package/jsx/wss/AppShell/AppShell.stories.d.ts +0 -19
  871. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +0 -1
  872. package/jsx/wss/AppShell/AppShell.stories.jsx +0 -96
  873. package/jsx/wss/AppShell/AppShell.stories.jsx.map +0 -1
  874. package/jsx/wss/AppShell/AppShell.styles.d.ts +0 -2
  875. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +0 -1
  876. package/jsx/wss/AppShell/AppShell.styles.js +0 -5
  877. package/jsx/wss/AppShell/AppShell.styles.js.map +0 -1
  878. package/jsx/wss/CaseView/CaseView.mocks.d.ts +0 -13
  879. package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +0 -1
  880. package/jsx/wss/CaseView/CaseView.mocks.jsx +0 -34
  881. package/jsx/wss/CaseView/CaseView.mocks.jsx.map +0 -1
  882. package/jsx/wss/CaseView/CaseView.stories.d.ts +0 -12
  883. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +0 -1
  884. package/jsx/wss/CaseView/CaseView.stories.jsx +0 -74
  885. package/jsx/wss/CaseView/CaseView.stories.jsx.map +0 -1
  886. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +0 -15
  887. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  888. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +0 -41
  889. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  890. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +0 -11
  891. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +0 -1
  892. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +0 -28
  893. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +0 -1
@@ -1,83 +0,0 @@
1
- import { useState, useCallback } from 'react';
2
- import { Avatar, useElement, useUID } from '@pega/cosmos-react-core';
3
- import { AutopilotGlimpse, FeedReply } from '@pega/cosmos-react-social';
4
- import { Glimpse } from '@pega/cosmos-react-work';
5
- import { feedUserGlimpseDetails } from './Feed.mocks';
6
- export const FeedReplyDemo = ({ fullname, username, content, attachments, postTimestamp = new Date(2022, 0, 1), userStatus }) => {
7
- const key = useUID();
8
- const [likes, setLikes] = useState([]);
9
- const [liked, setLiked] = useState(false);
10
- const [likeCount, setLikeCount] = useState(0);
11
- const [replyContent, setReplyContent] = useState(content);
12
- const [edited, setEdited] = useState(false);
13
- const [editTimestamp, setEditTimestamp] = useState(new Date());
14
- const [glimpseContent, setGlimpseContent] = useState();
15
- const [glimpseTarget, setGlimpseTarget] = useElement(null);
16
- const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);
17
- const getInitialLikes = () => {
18
- if (likes.length)
19
- return;
20
- setLikes([]);
21
- };
22
- const [likesLoading, setLikesLoading] = useState(false);
23
- const generateNewLike = useCallback(() => {
24
- if (!likesLoading) {
25
- setLikesLoading(true);
26
- setTimeout(() => {
27
- setLikesLoading(false);
28
- setLikes(oldLikes => [
29
- ...oldLikes,
30
- {
31
- primary: 'Generated Like',
32
- secondary: ['This like was added after the onLoadMore callback triggered'],
33
- visual: <Avatar size='l' name='Generated Like'/>,
34
- id: 'generatedLike'
35
- }
36
- ]);
37
- setAdditionalLikeAdded(true);
38
- }, 1000);
39
- }
40
- }, [likesLoading]);
41
- const onUserClick = ({ username: glimpseUsername }, clickEvent) => {
42
- if (clickEvent) {
43
- setGlimpseTarget(clickEvent.target);
44
- if (glimpseUsername === 'autopilot') {
45
- setGlimpseContent(<AutopilotGlimpse target={clickEvent.target} onDismiss={() => {
46
- setGlimpseTarget(null);
47
- }} placement='right'/>);
48
- }
49
- else {
50
- const userDetails = feedUserGlimpseDetails.find(x => x.username === glimpseUsername);
51
- if (userDetails) {
52
- setGlimpseContent(<Glimpse {...userDetails} target={clickEvent.target} onDismiss={() => {
53
- setGlimpseTarget(null);
54
- }} placement='right'/>);
55
- }
56
- }
57
- }
58
- };
59
- return (<>
60
- <FeedReply id={key} key={key} postTimestamp={postTimestamp} content={replyContent} attachments={attachments} username={username} fullname={fullname} liked={liked} userStatus={userStatus} likes={likes} likeCount={likeCount >= 10 ? likeCount + 1 : likeCount} maxContentHeight={40} menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => { } }]} onEditSubmit={({ value }) => {
61
- setReplyContent(value);
62
- setEdited(true);
63
- setEditTimestamp(new Date());
64
- }} edited={edited} editTimestamp={editTimestamp} onCommentClick={() => { }} onLikeClick={({ user }) => {
65
- const userLikedIndex = likes.findIndex(x => x.id === user.id);
66
- if (userLikedIndex !== -1) {
67
- setLikes(oldLikes => {
68
- const oldLikesArr = [...oldLikes];
69
- oldLikesArr.splice(userLikedIndex, 1);
70
- return oldLikesArr;
71
- });
72
- setLikeCount(curr => curr - 1);
73
- }
74
- else {
75
- setLikes(oldLikes => [user, ...oldLikes]);
76
- setLikeCount(curr => curr + 1);
77
- }
78
- setLiked(curr => !curr);
79
- }} onLikeCountInteraction={getInitialLikes} onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined} likesLoading={likesLoading} onUserClick={onUserClick}/>
80
- {glimpseTarget && glimpseContent}
81
- </>);
82
- };
83
- //# sourceMappingURL=FeedReply.mocks.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeedReply.mocks.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAWtD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,aAAa,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,EACpC,UAAU,EACS,EAAE,EAAE;IACvB,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC1D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,CAAC,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C,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC,CAAC,CACF,sBAAsB,CAAC,CAAC,eAAe,CAAC,CACxC,eAAe,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CACpE,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,EAE3B;MAAA,CAAC,aAAa,IAAI,cAAc,CAClC;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, useCallback } from 'react';\nimport type { ReactNode } from 'react';\n\nimport { Avatar, useElement, useUID } from '@pega/cosmos-react-core';\nimport type { MenuItemProps } from '@pega/cosmos-react-core';\nimport { AutopilotGlimpse, FeedReply } from '@pega/cosmos-react-social';\nimport type { FeedReplyProps } from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\n\nimport { feedUserGlimpseDetails } from './Feed.mocks';\n\ninterface FeedReplyDemoProps {\n fullname: FeedReplyProps['fullname'];\n username: FeedReplyProps['username'];\n content: FeedReplyProps['content'];\n attachments?: FeedReplyProps['attachments'];\n postTimestamp?: FeedReplyProps['postTimestamp'];\n userStatus?: FeedReplyProps['userStatus'];\n}\n\nexport const FeedReplyDemo = ({\n fullname,\n username,\n content,\n attachments,\n postTimestamp = new Date(2022, 0, 1),\n userStatus\n}: FeedReplyDemoProps) => {\n const key = useUID();\n const [likes, setLikes] = useState<MenuItemProps[]>([]);\n const [liked, setLiked] = useState(false);\n const [likeCount, setLikeCount] = useState(0);\n const [replyContent, setReplyContent] = useState(content);\n const [edited, setEdited] = useState(false);\n const [editTimestamp, setEditTimestamp] = useState(new Date());\n const [glimpseContent, setGlimpseContent] = useState<ReactNode | undefined>();\n const [glimpseTarget, setGlimpseTarget] = useElement<HTMLElement>(null);\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes([]);\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 added after the onLoadMore callback 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 onUserClick: FeedReplyProps['onUserClick'] = (\n { username: glimpseUsername },\n clickEvent\n ) => {\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 <FeedReply\n id={key}\n key={key}\n postTimestamp={postTimestamp}\n content={replyContent}\n attachments={attachments}\n username={username}\n fullname={fullname}\n liked={liked}\n userStatus={userStatus}\n likes={likes}\n likeCount={likeCount >= 10 ? likeCount + 1 : likeCount}\n maxContentHeight={40}\n menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => {} }]}\n onEditSubmit={({ value }) => {\n setReplyContent(value);\n setEdited(true);\n setEditTimestamp(new Date());\n }}\n edited={edited}\n editTimestamp={editTimestamp}\n onCommentClick={() => {}}\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 setLikeCount(curr => curr - 1);\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n setLikeCount(curr => curr + 1);\n }\n setLiked(curr => !curr);\n }}\n onLikeCountInteraction={getInitialLikes}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n likesLoading={likesLoading}\n onUserClick={onUserClick}\n />\n {glimpseTarget && glimpseContent}\n </>\n );\n};\n"]}
@@ -1,6 +0,0 @@
1
- import type { StoryFn } from '@storybook/react';
2
- import type { AppAnnouncementProps } from '@pega/cosmos-react-work';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
- export default _default;
5
- export declare const AppAnnouncementDemo: StoryFn<AppAnnouncementProps>;
6
- //# sourceMappingURL=AppAnnouncement.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppAnnouncement.stories.d.ts","sourceRoot":"","sources":["../../../src/work/AppAnnouncement/AppAnnouncement.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;;AAEpE,wBAGU;AAEV,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,oBAAoB,CAoB7D,CAAC"}
@@ -1,30 +0,0 @@
1
- import { useToaster } from '@pega/cosmos-react-core';
2
- import { AppAnnouncement } from '@pega/cosmos-react-work';
3
- export default {
4
- title: 'Work/AppAnnouncement',
5
- component: AppAnnouncement
6
- };
7
- export const AppAnnouncementDemo = (args) => {
8
- const { push } = useToaster();
9
- const details = [
10
- 'New React based UI rendering',
11
- 'Streamlined components for all business needs',
12
- 'Other improvements'
13
- ];
14
- return (<AppAnnouncement heading={args.heading} description={args.description} details={details} whatsNewLink={args.whatsNewLink} whatsNewText={args.whatsNewText} image={args.image} onDismiss={() => push({ content: 'Dismissed AppAnnouncement' })}/>);
15
- };
16
- AppAnnouncementDemo.args = {
17
- heading: 'Pega Constellation Design System',
18
- description: 'We have launched a brand new experience to accelerate your workflow!',
19
- whatsNewLink: 'https://www.pega.com',
20
- whatsNewText: "See what's new",
21
- image: 'https://www.pega.com/sites/default/files/styles/2560/public/media/images/2019-01/pega-logo_0.png'
22
- };
23
- AppAnnouncementDemo.argTypes = {
24
- heading: { control: { type: 'text' } },
25
- description: { control: { type: 'text' } },
26
- whatsNewLink: { control: { type: 'text' } },
27
- whatsNewText: { control: { type: 'text' } },
28
- image: { control: { type: 'text' } }
29
- };
30
- //# sourceMappingURL=AppAnnouncement.stories.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppAnnouncement.stories.jsx","sourceRoot":"","sources":["../../../src/work/AppAnnouncement/AppAnnouncement.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,eAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,eAAe;CACnB,CAAC;AAEV,MAAM,CAAC,MAAM,mBAAmB,GAAkC,CAAC,IAA0B,EAAE,EAAE;IAC/F,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,CAAC;IAE9B,MAAM,OAAO,GAAG;QACd,8BAA8B;QAC9B,+CAA+C;QAC/C,oBAAoB;KACrB,CAAC;IAEF,OAAO,CACL,CAAC,eAAe,CACd,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CACtB,WAAW,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAC9B,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,YAAY,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAChC,YAAY,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAChC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAClB,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC,CAAC,EAChE,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,IAAI,GAAG;IACzB,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,sEAAsE;IACnF,YAAY,EAAE,sBAAsB;IACpC,YAAY,EAAE,gBAAgB;IAC9B,KAAK,EACH,kGAAkG;CACrG,CAAC;AAEF,mBAAmB,CAAC,QAAQ,GAAG;IAC7B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACrC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { useToaster } from '@pega/cosmos-react-core';\nimport { AppAnnouncement } from '@pega/cosmos-react-work';\nimport type { AppAnnouncementProps } from '@pega/cosmos-react-work';\n\nexport default {\n title: 'Work/AppAnnouncement',\n component: AppAnnouncement\n} as Meta;\n\nexport const AppAnnouncementDemo: StoryFn<AppAnnouncementProps> = (args: AppAnnouncementProps) => {\n const { push } = useToaster();\n\n const details = [\n 'New React based UI rendering',\n 'Streamlined components for all business needs',\n 'Other improvements'\n ];\n\n return (\n <AppAnnouncement\n heading={args.heading}\n description={args.description}\n details={details}\n whatsNewLink={args.whatsNewLink}\n whatsNewText={args.whatsNewText}\n image={args.image}\n onDismiss={() => push({ content: 'Dismissed AppAnnouncement' })}\n />\n );\n};\n\nAppAnnouncementDemo.args = {\n heading: 'Pega Constellation Design System',\n description: 'We have launched a brand new experience to accelerate your workflow!',\n whatsNewLink: 'https://www.pega.com',\n whatsNewText: \"See what's new\",\n image:\n 'https://www.pega.com/sites/default/files/styles/2560/public/media/images/2019-01/pega-logo_0.png'\n};\n\nAppAnnouncementDemo.argTypes = {\n heading: { control: { type: 'text' } },\n description: { control: { type: 'text' } },\n whatsNewLink: { control: { type: 'text' } },\n whatsNewText: { control: { type: 'text' } },\n image: { control: { type: 'text' } }\n};\n"]}
@@ -1,18 +0,0 @@
1
- export declare const ArticleMockData: {
2
- fullArticleContent: {
3
- articleId: string;
4
- header: string;
5
- abstract: string;
6
- content: string;
7
- meta: {
8
- category: string;
9
- publishedDate: string;
10
- };
11
- feedback: {
12
- likes: number;
13
- disLikes: number;
14
- reaction: undefined;
15
- };
16
- };
17
- };
18
- //# sourceMappingURL=Article.mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Article.mocks.d.ts","sourceRoot":"","sources":["../../../src/work/Article/Article.mocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAkB3B,CAAC"}
@@ -1,18 +0,0 @@
1
- export const ArticleMockData = {
2
- fullArticleContent: {
3
- articleId: '1',
4
- header: 'How to change monthly billing cycle',
5
- abstract: 'How to change monthly billing cycle. This will give you clear guidelines to change billing cycle',
6
- content: "<p>Changing your monthly billing cycle can help you better manage your monthly bills and when you pay them. U+Comm offers 3 main billing cycles with due dates falling on the 1st, 15th, or the 28th of each month. This provides our customers with flexibility when choosing a billing cycle and corresponding due date that matches your personal finance planning.If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p><div>Find more details from this article <a data-article-id='5' href='#'>How to sell a product</a></div><div>Find some suggestions from this article <a data-article-id='8' href='#'>How to convince a customer</a></div><div><b>Before you change your billing cycle, be aware that:</b> </div><ul><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li></ul><p>If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p>",
7
- meta: {
8
- category: 'Banking and Retail',
9
- publishedDate: '2023-04-06'
10
- },
11
- feedback: {
12
- likes: 312,
13
- disLikes: 42,
14
- reaction: undefined
15
- }
16
- }
17
- };
18
- //# sourceMappingURL=Article.mocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Article.mocks.js","sourceRoot":"","sources":["../../../src/work/Article/Article.mocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,kBAAkB,EAAE;QAClB,SAAS,EAAE,GAAG;QACd,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EACN,kGAAkG;QACpG,OAAO,EACL,k9EAAk9E;QACp9E,IAAI,EAAE;YACJ,QAAQ,EAAE,oBAAoB;YAC9B,aAAa,EAAE,YAAY;SAC5B;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,SAAS;SACpB;KACF;CACF,CAAC","sourcesContent":["export const ArticleMockData = {\n fullArticleContent: {\n articleId: '1',\n header: 'How to change monthly billing cycle',\n abstract:\n 'How to change monthly billing cycle. This will give you clear guidelines to change billing cycle',\n content:\n \"<p>Changing your monthly billing cycle can help you better manage your monthly bills and when you pay them. U+Comm offers 3 main billing cycles with due dates falling on the 1st, 15th, or the 28th of each month. This provides our customers with flexibility when choosing a billing cycle and corresponding due date that matches your personal finance planning.If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p><div>Find more details from this article <a data-article-id='5' href='#'>How to sell a product</a></div><div>Find some suggestions from this article <a data-article-id='8' href='#'>How to convince a customer</a></div><div><b>Before you change your billing cycle, be aware that:</b> </div><ul><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li></ul><p>If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p>\",\n meta: {\n category: 'Banking and Retail',\n publishedDate: '2023-04-06'\n },\n feedback: {\n likes: 312,\n disLikes: 42,\n reaction: undefined\n }\n }\n};\n"]}
@@ -1,18 +0,0 @@
1
- import type { StoryFn } from '@storybook/react';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
- export default _default;
4
- export interface ArticleDemoProps {
5
- showHeader: boolean;
6
- backButtonText: string;
7
- showPrimaryActions: boolean;
8
- showSecondaryActions: boolean;
9
- showFooter: boolean;
10
- enableFeedback: boolean;
11
- showTags: boolean;
12
- showRelatedLinks: boolean;
13
- showMoreLikeThis: boolean;
14
- showAttachments: boolean;
15
- }
16
- export declare const ArticleStory: StoryFn<ArticleDemoProps>;
17
- export declare const ArticleRatingDemo: StoryFn;
18
- //# sourceMappingURL=Article.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Article.stories.d.ts","sourceRoot":"","sources":["../../../src/work/Article/Article.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAatD,wBAOU;AAEV,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,gBAAgB,CAyMlD,CAAC;AA4BF,eAAO,MAAM,iBAAiB,EAAE,OA8C/B,CAAC"}
@@ -1,243 +0,0 @@
1
- import { useEffect, useState } from 'react';
2
- import { action } from '@storybook/addon-actions';
3
- import { registerIcon, createUID, HTML, Flex } from '@pega/cosmos-react-core';
4
- import * as openIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/open.icon';
5
- import * as starIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/star.icon';
6
- import * as caretLeftIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/caret-left.icon';
7
- import { Article, ArticleFooter, ArticleRating } from '@pega/cosmos-react-work';
8
- import { ArticleMockData } from './Article.mocks';
9
- registerIcon(openIcon, starIcon, caretLeftIcon);
10
- export default {
11
- title: 'Work/Article',
12
- component: Article,
13
- subcomponents: { ArticleFooter },
14
- parameters: {
15
- layout: 'fullscreen'
16
- }
17
- };
18
- export const ArticleStory = (args) => {
19
- const [loading, setLoading] = useState(true);
20
- const [likeCount, setLikeCount] = useState(ArticleMockData.fullArticleContent.feedback.likes);
21
- const [dislikeCount, setDislikeCount] = useState(ArticleMockData.fullArticleContent.feedback.disLikes);
22
- const [reaction, setReaction] = useState(ArticleMockData.fullArticleContent.feedback.reaction);
23
- const onBackToArticlesClick = (event) => {
24
- event.preventDefault();
25
- };
26
- useEffect(() => {
27
- setTimeout(() => {
28
- setLoading(false);
29
- }, 2000);
30
- }, []);
31
- const onReaction = (id, reactionParam) => {
32
- action('onReaction')(id);
33
- if (reactionParam === 'liked') {
34
- setReaction('liked');
35
- setLikeCount(prev => prev + 1);
36
- if (reaction === 'disliked') {
37
- setDislikeCount(prev => prev - 1);
38
- }
39
- return;
40
- }
41
- if (reactionParam === 'disliked') {
42
- setReaction('disliked');
43
- setDislikeCount(prev => prev + 1);
44
- if (reaction === 'liked') {
45
- setLikeCount(prev => prev - 1);
46
- }
47
- }
48
- if (reactionParam === undefined) {
49
- if (reaction === 'liked') {
50
- setLikeCount(prev => prev - 1);
51
- }
52
- else {
53
- setDislikeCount(prev => prev - 1);
54
- }
55
- setReaction(undefined);
56
- }
57
- };
58
- return (<div style={{
59
- maxWidth: '25rem'
60
- }}>
61
- <Article articleId={ArticleMockData.fullArticleContent.articleId} header={args.showHeader
62
- ? {
63
- title: 'Knowledge articles',
64
- icon: 'book-open'
65
- }
66
- : undefined} backNavigation={{
67
- title: args.backButtonText,
68
- onClick: onBackToArticlesClick
69
- }} primaryActions={args.showPrimaryActions
70
- ? [
71
- {
72
- icon: 'star',
73
- label: 'Follow',
74
- id: createUID(),
75
- onClick: id => {
76
- action('Follow')(id);
77
- }
78
- },
79
- {
80
- icon: 'open',
81
- label: 'Open',
82
- id: createUID(),
83
- onClick: id => {
84
- action('Open')(id);
85
- }
86
- }
87
- ]
88
- : undefined} secondaryActions={args.showSecondaryActions
89
- ? [
90
- {
91
- text: 'Send in email',
92
- id: 'action1',
93
- onClick: action('Action')
94
- },
95
- {
96
- text: 'Send in chat',
97
- id: 'action2',
98
- onClick: action('Action')
99
- }
100
- ]
101
- : undefined} content={<HTML content={ArticleMockData.fullArticleContent.content}/>} title={ArticleMockData.fullArticleContent.header} meta={{
102
- category: ArticleMockData.fullArticleContent.meta.category,
103
- publishedDate: ArticleMockData.fullArticleContent.meta.publishedDate
104
- }} feedback={{
105
- likes: (likeCount * 100) / (likeCount + dislikeCount),
106
- dislikes: (dislikeCount * 100) / (likeCount + dislikeCount),
107
- reaction,
108
- onReaction
109
- }} footer={args.showFooter
110
- ? {
111
- feedback: args.enableFeedback
112
- ? {
113
- onReaction,
114
- showThanksMessage: !!reaction,
115
- reaction
116
- }
117
- : undefined,
118
- tags: args.showTags
119
- ? {
120
- list: [
121
- {
122
- id: 'Retail banking',
123
- tagName: '#Retail_banking'
124
- },
125
- {
126
- id: 'Billing',
127
- tagName: '#Billing'
128
- },
129
- {
130
- id: '223444',
131
- tagName: '#CSR_Skills'
132
- },
133
- {
134
- id: '223446',
135
- tagName: '#Premium_Customers'
136
- },
137
- {
138
- id: '223447',
139
- tagName: '#Rare_Customers'
140
- },
141
- {
142
- id: '223448',
143
- tagName: '#Finance_Customers'
144
- }
145
- ],
146
- onTagClick: action('Tag clicked')
147
- }
148
- : undefined,
149
- relatedLinks: args.showRelatedLinks
150
- ? [
151
- { title: 'Retail banking for beginners', href: 'https://pega.com' },
152
- { title: 'How to handle premium customers', href: 'https://pega.com' }
153
- ]
154
- : undefined,
155
- relatedArticles: args.showMoreLikeThis
156
- ? [
157
- {
158
- title: 'What are the implications of change in billing cycle',
159
- onClick: action('Related article'),
160
- id: createUID()
161
- },
162
- {
163
- title: 'What is the best billing cycle for premium customers',
164
- onClick: action('Related article'),
165
- id: createUID()
166
- },
167
- {
168
- title: 'How to enable automatic bill payment',
169
- onClick: action('Related article'),
170
- id: createUID()
171
- }
172
- ]
173
- : undefined,
174
- attachments: args.showAttachments
175
- ? [
176
- { name: 'Billing cycle FAQ.doc', onDownload: action('On Download') },
177
- { name: 'Training video.mp4', onDownload: action('On Download') },
178
- { name: 'Terms and conditions.pdf', onDownload: action('On Download') }
179
- ]
180
- : undefined
181
- }
182
- : undefined} loading={loading}/>
183
- </div>);
184
- };
185
- ArticleStory.args = {
186
- showHeader: true,
187
- backButtonText: 'Back to all articles',
188
- showPrimaryActions: true,
189
- showSecondaryActions: true,
190
- showFooter: true,
191
- enableFeedback: true,
192
- showTags: true,
193
- showRelatedLinks: true,
194
- showMoreLikeThis: true,
195
- showAttachments: true
196
- };
197
- ArticleStory.argTypes = {
198
- showHeader: { control: { type: 'boolean' } },
199
- backButtonText: { control: { type: 'text' } },
200
- showPrimaryActions: { control: { type: 'boolean' } },
201
- showSecondaryActions: { control: { type: 'boolean' } },
202
- showFooter: { control: { type: 'boolean' } },
203
- enableFeedback: { control: { type: 'boolean' } },
204
- showTags: { control: { type: 'boolean' } },
205
- showRelatedLinks: { control: { type: 'boolean' } },
206
- showMoreLikeThis: { control: { type: 'boolean' } },
207
- showAttachments: { control: { type: 'boolean' } }
208
- };
209
- export const ArticleRatingDemo = () => {
210
- const [likeCount, setLikeCount] = useState(5);
211
- const [dislikeCount, setDislikeCount] = useState(2);
212
- const [reaction, setReaction] = useState();
213
- const onReaction = reactionParam => {
214
- if (reactionParam === 'liked') {
215
- setReaction('liked');
216
- setLikeCount(prev => prev + 1);
217
- if (reaction === 'disliked') {
218
- setDislikeCount(prev => prev - 1);
219
- }
220
- return;
221
- }
222
- if (reactionParam === 'disliked') {
223
- setReaction('disliked');
224
- setDislikeCount(prev => prev + 1);
225
- if (reaction === 'liked') {
226
- setLikeCount(prev => prev - 1);
227
- }
228
- }
229
- if (reactionParam === undefined) {
230
- if (reaction === 'liked') {
231
- setLikeCount(prev => prev - 1);
232
- }
233
- else {
234
- setDislikeCount(prev => prev - 1);
235
- }
236
- setReaction(undefined);
237
- }
238
- };
239
- return (<Flex container={{ pad: [1, 1] }}>
240
- <ArticleRating likes={(likeCount * 100) / (likeCount + dislikeCount)} dislikes={(dislikeCount * 100) / (likeCount + dislikeCount)} onReaction={onReaction} reaction={reaction}/>
241
- </Flex>);
242
- };
243
- //# sourceMappingURL=Article.stories.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Article.stories.jsx","sourceRoot":"","sources":["../../../src/work/Article/Article.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AACxF,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AACxF,OAAO,KAAK,aAAa,MAAM,mEAAmE,CAAC;AACnG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGhF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEhD,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;IAClB,aAAa,EAAE,EAAE,aAAa,EAAE;IAChC,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAeV,MAAM,CAAC,MAAM,YAAY,GAA8B,CAAC,IAAsB,EAAE,EAAE;IAChF,MAAM,CAAC,OAAO,EAAE,UAAU,CA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C;iBAAM;gBACL,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;aACnC;YACD,WAAW,CAAC,SAAS,CAAC,CAAC;SACxB;IACH,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAC/B;MAAA,CAAC,aAAa,CACZ,KAAK,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC,SAAS,GAAG,YAAY,CAAC,CAAC,CACtD,QAAQ,CAAC,CAAC,CAAC,YAAY,GAAG,GAAG,CAAC,GAAG,CAAC,SAAS,GAAG,YAAY,CAAC,CAAC,CAC5D,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAEvB;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useEffect, useState } from 'react';\nimport type { MouseEvent } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { registerIcon, createUID, HTML, Flex } from '@pega/cosmos-react-core';\nimport * as openIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/open.icon';\nimport * as starIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/star.icon';\nimport * as caretLeftIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/caret-left.icon';\nimport { Article, ArticleFooter, ArticleRating } from '@pega/cosmos-react-work';\nimport type { ArticleProps, ArticleRatingProps } from '@pega/cosmos-react-work';\n\nimport { ArticleMockData } from './Article.mocks';\n\nregisterIcon(openIcon, starIcon, caretLeftIcon);\n\nexport default {\n title: 'Work/Article',\n component: Article,\n subcomponents: { ArticleFooter },\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport interface ArticleDemoProps {\n showHeader: boolean;\n backButtonText: string;\n showPrimaryActions: boolean;\n showSecondaryActions: boolean;\n showFooter: boolean;\n enableFeedback: boolean;\n showTags: boolean;\n showRelatedLinks: boolean;\n showMoreLikeThis: boolean;\n showAttachments: boolean;\n}\n\nexport const ArticleStory: StoryFn<ArticleDemoProps> = (args: ArticleDemoProps) => {\n const [loading, setLoading] = useState<boolean>(true);\n\n const [likeCount, setLikeCount] = useState(ArticleMockData.fullArticleContent.feedback.likes);\n const [dislikeCount, setDislikeCount] = useState(\n ArticleMockData.fullArticleContent.feedback.disLikes\n );\n const [reaction, setReaction] = useState<ArticleRatingProps['reaction']>(\n ArticleMockData.fullArticleContent.feedback.reaction\n );\n\n const onBackToArticlesClick = (event: MouseEvent) => {\n event.preventDefault();\n };\n\n useEffect(() => {\n setTimeout(() => {\n setLoading(false);\n }, 2000);\n }, []);\n\n const onReaction: Required<ArticleProps>['feedback']['onReaction'] = (id, reactionParam) => {\n action('onReaction')(id);\n if (reactionParam === 'liked') {\n setReaction('liked');\n setLikeCount(prev => prev + 1);\n\n if (reaction === 'disliked') {\n setDislikeCount(prev => prev - 1);\n }\n return;\n }\n\n if (reactionParam === 'disliked') {\n setReaction('disliked');\n setDislikeCount(prev => prev + 1);\n if (reaction === 'liked') {\n setLikeCount(prev => prev - 1);\n }\n }\n\n if (reactionParam === undefined) {\n if (reaction === 'liked') {\n setLikeCount(prev => prev - 1);\n } else {\n setDislikeCount(prev => prev - 1);\n }\n setReaction(undefined);\n }\n };\n\n return (\n <div\n style={{\n maxWidth: '25rem'\n }}\n >\n <Article\n articleId={ArticleMockData.fullArticleContent.articleId}\n header={\n args.showHeader\n ? {\n title: 'Knowledge articles',\n icon: 'book-open'\n }\n : undefined\n }\n backNavigation={{\n title: args.backButtonText,\n onClick: onBackToArticlesClick\n }}\n primaryActions={\n args.showPrimaryActions\n ? [\n {\n icon: 'star',\n label: 'Follow',\n id: createUID(),\n onClick: id => {\n action('Follow')(id);\n }\n },\n {\n icon: 'open',\n label: 'Open',\n id: createUID(),\n onClick: id => {\n action('Open')(id);\n }\n }\n ]\n : undefined\n }\n secondaryActions={\n args.showSecondaryActions\n ? [\n {\n text: 'Send in email',\n id: 'action1',\n onClick: action('Action')\n },\n {\n text: 'Send in chat',\n id: 'action2',\n onClick: action('Action')\n }\n ]\n : undefined\n }\n content={<HTML content={ArticleMockData.fullArticleContent.content} />}\n title={ArticleMockData.fullArticleContent.header}\n meta={{\n category: ArticleMockData.fullArticleContent.meta.category,\n publishedDate: ArticleMockData.fullArticleContent.meta.publishedDate\n }}\n feedback={{\n likes: (likeCount * 100) / (likeCount + dislikeCount),\n dislikes: (dislikeCount * 100) / (likeCount + dislikeCount),\n reaction,\n onReaction\n }}\n footer={\n args.showFooter\n ? {\n feedback: args.enableFeedback\n ? {\n onReaction,\n showThanksMessage: !!reaction,\n reaction\n }\n : undefined,\n tags: args.showTags\n ? {\n list: [\n {\n id: 'Retail banking',\n tagName: '#Retail_banking'\n },\n {\n id: 'Billing',\n tagName: '#Billing'\n },\n {\n id: '223444',\n tagName: '#CSR_Skills'\n },\n {\n id: '223446',\n tagName: '#Premium_Customers'\n },\n {\n id: '223447',\n tagName: '#Rare_Customers'\n },\n {\n id: '223448',\n tagName: '#Finance_Customers'\n }\n ],\n onTagClick: action('Tag clicked')\n }\n : undefined,\n relatedLinks: args.showRelatedLinks\n ? [\n { title: 'Retail banking for beginners', href: 'https://pega.com' },\n { title: 'How to handle premium customers', href: 'https://pega.com' }\n ]\n : undefined,\n relatedArticles: args.showMoreLikeThis\n ? [\n {\n title: 'What are the implications of change in billing cycle',\n onClick: action('Related article'),\n id: createUID()\n },\n {\n title: 'What is the best billing cycle for premium customers',\n onClick: action('Related article'),\n id: createUID()\n },\n {\n title: 'How to enable automatic bill payment',\n onClick: action('Related article'),\n id: createUID()\n }\n ]\n : undefined,\n attachments: args.showAttachments\n ? [\n { name: 'Billing cycle FAQ.doc', onDownload: action('On Download') },\n { name: 'Training video.mp4', onDownload: action('On Download') },\n { name: 'Terms and conditions.pdf', onDownload: action('On Download') }\n ]\n : undefined\n }\n : undefined\n }\n loading={loading}\n />\n </div>\n );\n};\n\nArticleStory.args = {\n showHeader: true,\n backButtonText: 'Back to all articles',\n showPrimaryActions: true,\n showSecondaryActions: true,\n showFooter: true,\n enableFeedback: true,\n showTags: true,\n showRelatedLinks: true,\n showMoreLikeThis: true,\n showAttachments: true\n};\n\nArticleStory.argTypes = {\n showHeader: { control: { type: 'boolean' } },\n backButtonText: { control: { type: 'text' } },\n showPrimaryActions: { control: { type: 'boolean' } },\n showSecondaryActions: { control: { type: 'boolean' } },\n showFooter: { control: { type: 'boolean' } },\n enableFeedback: { control: { type: 'boolean' } },\n showTags: { control: { type: 'boolean' } },\n showRelatedLinks: { control: { type: 'boolean' } },\n showMoreLikeThis: { control: { type: 'boolean' } },\n showAttachments: { control: { type: 'boolean' } }\n};\n\nexport const ArticleRatingDemo: StoryFn = () => {\n const [likeCount, setLikeCount] = useState(5);\n const [dislikeCount, setDislikeCount] = useState(2);\n const [reaction, setReaction] = useState<ArticleRatingProps['reaction']>();\n\n const onReaction: ArticleRatingProps['onReaction'] = reactionParam => {\n if (reactionParam === 'liked') {\n // no reaction\n // already disliked and liking now\n setReaction('liked');\n setLikeCount(prev => prev + 1);\n if (reaction === 'disliked') {\n setDislikeCount(prev => prev - 1);\n }\n return;\n }\n\n if (reactionParam === 'disliked') {\n // Dislike clicked\n setReaction('disliked');\n setDislikeCount(prev => prev + 1);\n if (reaction === 'liked') {\n setLikeCount(prev => prev - 1);\n }\n }\n\n if (reactionParam === undefined) {\n if (reaction === 'liked') {\n setLikeCount(prev => prev - 1);\n } else {\n setDislikeCount(prev => prev - 1);\n }\n setReaction(undefined);\n }\n };\n\n return (\n <Flex container={{ pad: [1, 1] }}>\n <ArticleRating\n likes={(likeCount * 100) / (likeCount + dislikeCount)}\n dislikes={(dislikeCount * 100) / (likeCount + dislikeCount)}\n onReaction={onReaction}\n reaction={reaction}\n />\n </Flex>\n );\n};\n"]}
@@ -1,12 +0,0 @@
1
- import type { StoryFn } from '@storybook/react';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
- export default _default;
4
- interface ArticleBuddyDemoProps {
5
- showDisclaimer: boolean;
6
- showReferences: boolean;
7
- showActions: boolean;
8
- showError: boolean;
9
- showFeedback: boolean;
10
- }
11
- export declare const ArticleBuddyDemo: StoryFn<ArticleBuddyDemoProps>;
12
- //# sourceMappingURL=ArticleBuddy.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArticleBuddy.stories.d.ts","sourceRoot":"","sources":["../../../src/work/ArticleList/ArticleBuddy.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAYtD,wBAGU;AAEV,UAAU,qBAAqB;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB;AAOD,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,qBAAqB,CA0F3D,CAAC"}
@@ -1,87 +0,0 @@
1
- import { useState } from 'react';
2
- import { action } from '@storybook/addon-actions';
3
- import { HTML, Card } from '@pega/cosmos-react-core';
4
- import { ArticleBuddy } from '@pega/cosmos-react-work';
5
- import { ArticleBuddyMockData } from './ArticleList.mocks';
6
- export default {
7
- title: 'Work/ArticleList',
8
- component: ArticleBuddy
9
- };
10
- export const ArticleBuddyDemo = (args) => {
11
- const [searchVal, setSearchVal] = useState('');
12
- const [commentVal, setCommentVal] = useState('');
13
- const [loading, setLoading] = useState(false);
14
- const [searchResult, setSearchResult] = useState();
15
- const [reaction, setReaction] = useState(undefined);
16
- const updateBuddyArticles = (mockBuddyArticle) => {
17
- const actionItems = [
18
- { id: '1', text: 'Share' },
19
- { id: '2', text: 'Copy' }
20
- ];
21
- return {
22
- title: mockBuddyArticle.title,
23
- content: mockBuddyArticle.content,
24
- references: mockBuddyArticle.references,
25
- disclaimer: mockBuddyArticle.disclaimer,
26
- actions: actionItems
27
- };
28
- };
29
- const fetchSearchResult = () => {
30
- return new Promise(resolve => {
31
- setTimeout(() => {
32
- resolve({
33
- data: updateBuddyArticles(ArticleBuddyMockData)
34
- });
35
- }, 1000);
36
- });
37
- };
38
- const getResults = async () => {
39
- setLoading(true);
40
- const res = await fetchSearchResult();
41
- setSearchResult(res.data);
42
- setLoading(false);
43
- };
44
- const queryParams = {
45
- placeholder: 'Ask your question here...',
46
- value: searchVal,
47
- onChange: (e) => setSearchVal(e.target.value)
48
- };
49
- const commentParams = {
50
- placeholder: 'How can I improve...',
51
- value: commentVal,
52
- onChange: (e) => setCommentVal(e.target.value)
53
- };
54
- const onReaction = (feedback) => {
55
- setReaction(feedback);
56
- };
57
- const feedbackProps = {
58
- comment: commentParams,
59
- reaction,
60
- onReaction,
61
- onSubmit: (response) => {
62
- action('onClick')(`Response sent ${response.reaction} ${response.comment}`);
63
- setCommentVal('');
64
- setReaction(undefined);
65
- }
66
- };
67
- return (<Card>
68
- <ArticleBuddy query={queryParams} onSubmit={getResults} onClear={() => {
69
- setSearchVal('');
70
- }} title={searchResult?.title} actions={args.showActions ? searchResult?.actions : []} content={!args.showError && searchResult?.content ? (<HTML content={ArticleBuddyMockData.content}/>) : undefined} disclaimer={args.showDisclaimer ? ArticleBuddyMockData.disclaimer : undefined} references={args.showReferences ? searchResult?.references : undefined} feedback={args.showFeedback ? feedbackProps : undefined} loading={loading} error={args.showError}/>
71
- </Card>);
72
- };
73
- ArticleBuddyDemo.args = {
74
- showDisclaimer: true,
75
- showActions: true,
76
- showReferences: true,
77
- showError: false,
78
- showFeedback: true
79
- };
80
- ArticleBuddyDemo.argTypes = {
81
- showDisclaimer: { control: { type: 'boolean' } },
82
- showActions: { control: { type: 'boolean' } },
83
- showReferences: { control: { type: 'boolean' } },
84
- showError: { control: { type: 'boolean' } },
85
- showFeedback: { control: { type: 'boolean' } }
86
- };
87
- //# sourceMappingURL=ArticleBuddy.stories.jsx.map