@pega/cosmos-react-demos 2.0.0 → 2.1.3

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 (1167) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +8 -0
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -0
  3. package/{lib → jsx}/build/AppHeader/AppHeader.stories.jsx +0 -0
  4. package/{lib → jsx}/build/AppHeader/AppHeader.stories.jsx.map +0 -0
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts +50 -0
  6. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -0
  7. package/jsx/build/AppShell/AppShell.mocks.js +503 -0
  8. package/jsx/build/AppShell/AppShell.mocks.js.map +1 -0
  9. package/jsx/build/AppShell/AppShell.stories.d.ts +12 -0
  10. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -0
  11. package/jsx/build/AppShell/AppShell.stories.jsx +194 -0
  12. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -0
  13. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +45 -0
  14. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -0
  15. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js +291 -0
  16. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -0
  17. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +9 -0
  18. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -0
  19. package/jsx/build/FlowModeller/FlowModeller.mocks.js +411 -0
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +1 -0
  21. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +12 -0
  22. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -0
  23. package/{lib → jsx}/build/FlowModeller/FlowModeller.stories.jsx +0 -0
  24. package/{lib → jsx}/build/FlowModeller/FlowModeller.stories.jsx.map +0 -0
  25. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +201 -0
  26. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
  27. package/jsx/build/LifeCycle/LifeCycle.mocks.js +1128 -0
  28. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
  29. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +11 -0
  30. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
  31. package/{lib → jsx}/build/LifeCycle/LifeCycle.stories.jsx +0 -0
  32. package/{lib → jsx}/build/LifeCycle/LifeCycle.stories.jsx.map +0 -0
  33. package/jsx/build/LifeCycle/utils.d.ts +65 -0
  34. package/jsx/build/LifeCycle/utils.d.ts.map +1 -0
  35. package/jsx/build/LifeCycle/utils.js +218 -0
  36. package/jsx/build/LifeCycle/utils.js.map +1 -0
  37. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +12 -0
  38. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -0
  39. package/{lib → jsx}/build/PageTemplates/GalleryPage.stories.jsx +0 -0
  40. package/{lib → jsx}/build/PageTemplates/GalleryPage.stories.jsx.map +0 -0
  41. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +26 -0
  42. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  43. package/{lib → jsx}/build/PageTemplates/PageTemplates.stories.jsx +0 -0
  44. package/{lib → jsx}/build/PageTemplates/PageTemplates.stories.jsx.map +0 -0
  45. package/jsx/build/Workbench/Workbench.mocks.d.ts +9 -0
  46. package/jsx/build/Workbench/Workbench.mocks.d.ts.map +1 -0
  47. package/jsx/build/Workbench/Workbench.mocks.js +67 -0
  48. package/jsx/build/Workbench/Workbench.mocks.js.map +1 -0
  49. package/jsx/build/Workbench/Workbench.stories.d.ts +10 -0
  50. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -0
  51. package/{lib → jsx}/build/Workbench/Workbench.stories.jsx +0 -0
  52. package/{lib → jsx}/build/Workbench/Workbench.stories.jsx.map +0 -0
  53. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +10 -0
  54. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -0
  55. package/{lib → jsx}/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -0
  56. package/{lib → jsx}/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -0
  57. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +6 -0
  58. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -0
  59. package/jsx/condition-builder/ConditionBuilder/props.mock.js +113 -0
  60. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -0
  61. package/jsx/core/AppShell/AppShell.mocks.d.ts +15 -0
  62. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -0
  63. package/{lib → jsx}/core/AppShell/AppShell.mocks.jsx +0 -0
  64. package/{lib → jsx}/core/AppShell/AppShell.mocks.jsx.map +0 -0
  65. package/jsx/core/AppShell/AppShell.stories.d.ts +31 -0
  66. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -0
  67. package/{lib → jsx}/core/AppShell/AppShell.stories.jsx +0 -0
  68. package/{lib → jsx}/core/AppShell/AppShell.stories.jsx.map +0 -0
  69. package/jsx/core/AppShell/AppShell.styles.d.ts +2 -0
  70. package/jsx/core/AppShell/AppShell.styles.d.ts.map +1 -0
  71. package/jsx/core/AppShell/AppShell.styles.js +5 -0
  72. package/jsx/core/AppShell/AppShell.styles.js.map +1 -0
  73. package/jsx/core/Avatar/Avatar.stories.d.ts +10 -0
  74. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -0
  75. package/jsx/core/Avatar/Avatar.stories.jsx +50 -0
  76. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -0
  77. package/jsx/core/Backdrop/Backdrop.stories.d.ts +7 -0
  78. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -0
  79. package/{lib → jsx}/core/Backdrop/Backdrop.stories.jsx +0 -0
  80. package/{lib → jsx}/core/Backdrop/Backdrop.stories.jsx.map +0 -0
  81. package/jsx/core/Badges/Alert.stories.d.ts +6 -0
  82. package/jsx/core/Badges/Alert.stories.d.ts.map +1 -0
  83. package/{lib → jsx}/core/Badges/Alert.stories.jsx +0 -0
  84. package/{lib → jsx}/core/Badges/Alert.stories.jsx.map +0 -0
  85. package/jsx/core/Badges/Count.stories.d.ts +6 -0
  86. package/jsx/core/Badges/Count.stories.d.ts.map +1 -0
  87. package/{lib → jsx}/core/Badges/Count.stories.jsx +0 -0
  88. package/{lib → jsx}/core/Badges/Count.stories.jsx.map +0 -0
  89. package/jsx/core/Badges/Selection.stories.d.ts +6 -0
  90. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -0
  91. package/{lib → jsx}/core/Badges/Selection.stories.jsx +0 -0
  92. package/{lib → jsx}/core/Badges/Selection.stories.jsx.map +0 -0
  93. package/jsx/core/Badges/Status.stories.d.ts +6 -0
  94. package/jsx/core/Badges/Status.stories.d.ts.map +1 -0
  95. package/{lib → jsx}/core/Badges/Status.stories.jsx +0 -0
  96. package/{lib → jsx}/core/Badges/Status.stories.jsx.map +0 -0
  97. package/jsx/core/Badges/Tag.stories.d.ts +6 -0
  98. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -0
  99. package/{lib → jsx}/core/Badges/Tag.stories.jsx +0 -0
  100. package/{lib → jsx}/core/Badges/Tag.stories.jsx.map +0 -0
  101. package/jsx/core/Banner/Banner.mocks.d.ts +18 -0
  102. package/jsx/core/Banner/Banner.mocks.d.ts.map +1 -0
  103. package/jsx/core/Banner/Banner.mocks.jsx +41 -0
  104. package/jsx/core/Banner/Banner.mocks.jsx.map +1 -0
  105. package/jsx/core/Banner/Banner.stories.d.ts +22 -0
  106. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -0
  107. package/jsx/core/Banner/Banner.stories.jsx +87 -0
  108. package/jsx/core/Banner/Banner.stories.jsx.map +1 -0
  109. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +6 -0
  110. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -0
  111. package/{lib → jsx}/core/Boolean/BooleanDisplay.stories.jsx +0 -0
  112. package/{lib → jsx}/core/Boolean/BooleanDisplay.stories.jsx.map +0 -0
  113. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
  114. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
  115. package/{lib → jsx}/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -0
  116. package/{lib → jsx}/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -0
  117. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
  118. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -0
  119. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +12 -0
  120. package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +1 -0
  121. package/jsx/core/Button/Button.stories.d.ts +12 -0
  122. package/jsx/core/Button/Button.stories.d.ts.map +1 -0
  123. package/jsx/core/Button/Button.stories.jsx +103 -0
  124. package/jsx/core/Button/Button.stories.jsx.map +1 -0
  125. package/jsx/core/Card/Card.stories.d.ts +8 -0
  126. package/jsx/core/Card/Card.stories.d.ts.map +1 -0
  127. package/{lib → jsx}/core/Card/Card.stories.jsx +0 -0
  128. package/{lib → jsx}/core/Card/Card.stories.jsx.map +0 -0
  129. package/jsx/core/Card/Card.styles.d.ts +2 -0
  130. package/jsx/core/Card/Card.styles.d.ts.map +1 -0
  131. package/jsx/core/Card/Card.styles.js +5 -0
  132. package/jsx/core/Card/Card.styles.js.map +1 -0
  133. package/jsx/core/Checkbox/Checkbox.stories.d.ts +7 -0
  134. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -0
  135. package/{lib → jsx}/core/Checkbox/Checkbox.stories.jsx +0 -0
  136. package/{lib → jsx}/core/Checkbox/Checkbox.stories.jsx.map +0 -0
  137. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -0
  139. package/{lib → jsx}/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -0
  140. package/{lib → jsx}/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -0
  141. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -0
  142. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -0
  143. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +9 -0
  144. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +1 -0
  145. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +8 -0
  146. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
  147. package/{lib → jsx}/core/ColorPicker/ColorPicker.stories.jsx +0 -0
  148. package/{lib → jsx}/core/ColorPicker/ColorPicker.stories.jsx.map +0 -0
  149. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +24 -0
  150. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -0
  151. package/jsx/core/ComboBox/ComboBox.mocks.js +54 -0
  152. package/jsx/core/ComboBox/ComboBox.mocks.js.map +1 -0
  153. package/jsx/core/ComboBox/ComboBox.stories.d.ts +21 -0
  154. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -0
  155. package/{lib → jsx}/core/ComboBox/ComboBox.stories.jsx +0 -0
  156. package/{lib → jsx}/core/ComboBox/ComboBox.stories.jsx.map +0 -0
  157. package/jsx/core/Configuration/Configuration.stories.d.ts +10 -0
  158. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -0
  159. package/jsx/core/Configuration/Configuration.stories.jsx +125 -0
  160. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -0
  161. package/jsx/core/Currency/Currency.stories.d.ts +11 -0
  162. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -0
  163. package/{lib → jsx}/core/Currency/Currency.stories.jsx +0 -0
  164. package/{lib → jsx}/core/Currency/Currency.stories.jsx.map +0 -0
  165. package/jsx/core/DateTime/DateTime.stories.d.ts +20 -0
  166. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -0
  167. package/{lib → jsx}/core/DateTime/DateTime.stories.jsx +0 -0
  168. package/{lib → jsx}/core/DateTime/DateTime.stories.jsx.map +0 -0
  169. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +7 -0
  170. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -0
  171. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +47 -0
  172. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -0
  173. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +7 -0
  174. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -0
  175. package/{lib → jsx}/core/DateTime/DateTimePicker.stories.jsx +0 -0
  176. package/{lib → jsx}/core/DateTime/DateTimePicker.stories.jsx.map +0 -0
  177. package/jsx/core/Drawer/Drawer.stories.d.ts +7 -0
  178. package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -0
  179. package/{lib → jsx}/core/Drawer/Drawer.stories.jsx +0 -0
  180. package/{lib → jsx}/core/Drawer/Drawer.stories.jsx.map +0 -0
  181. package/jsx/core/Drawer/Drawer.styles.d.ts +2 -0
  182. package/jsx/core/Drawer/Drawer.styles.d.ts.map +1 -0
  183. package/jsx/core/Drawer/Drawer.styles.js +11 -0
  184. package/jsx/core/Drawer/Drawer.styles.js.map +1 -0
  185. package/jsx/core/Email/EmailDisplay.stories.d.ts +6 -0
  186. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -0
  187. package/{lib → jsx}/core/Email/EmailDisplay.stories.jsx +0 -0
  188. package/{lib → jsx}/core/Email/EmailDisplay.stories.jsx.map +0 -0
  189. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +8 -0
  190. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -0
  191. package/{lib → jsx}/core/EmojiPicker/EmojiPicker.stories.jsx +0 -0
  192. package/{lib → jsx}/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -0
  193. package/jsx/core/EmptyState/EmptyState.stories.d.ts +6 -0
  194. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -0
  195. package/{lib → jsx}/core/EmptyState/EmptyState.stories.jsx +0 -0
  196. package/{lib → jsx}/core/EmptyState/EmptyState.stories.jsx.map +0 -0
  197. package/jsx/core/ErrorState/ErrorState.stories.d.ts +9 -0
  198. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -0
  199. package/{lib → jsx}/core/ErrorState/ErrorState.stories.jsx +0 -0
  200. package/{lib → jsx}/core/ErrorState/ErrorState.stories.jsx.map +0 -0
  201. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +7 -0
  202. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -0
  203. package/{lib → jsx}/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -0
  204. package/{lib → jsx}/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -0
  205. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +4 -0
  206. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -0
  207. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +17 -0
  208. package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +1 -0
  209. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +11 -0
  210. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -0
  211. package/{lib → jsx}/core/FieldGroup/FieldGroup.stories.jsx +0 -0
  212. package/{lib → jsx}/core/FieldGroup/FieldGroup.stories.jsx.map +0 -0
  213. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +21 -0
  214. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -0
  215. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +36 -0
  216. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -0
  217. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +10 -0
  218. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -0
  219. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +150 -0
  220. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -0
  221. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +10 -0
  222. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -0
  223. package/{lib → jsx}/core/FieldValueList/FieldValueList.stories.jsx +0 -0
  224. package/{lib → jsx}/core/FieldValueList/FieldValueList.stories.jsx.map +0 -0
  225. package/jsx/core/File/FileDisplay.stories.d.ts +20 -0
  226. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -0
  227. package/jsx/core/File/FileDisplay.stories.jsx +135 -0
  228. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -0
  229. package/jsx/core/File/FileInput.stories.d.ts +9 -0
  230. package/jsx/core/File/FileInput.stories.d.ts.map +1 -0
  231. package/{lib → jsx}/core/File/FileInput.stories.jsx +0 -0
  232. package/{lib → jsx}/core/File/FileInput.stories.jsx.map +0 -0
  233. package/jsx/core/Flex/Flex.styles.d.ts +10 -0
  234. package/jsx/core/Flex/Flex.styles.d.ts.map +1 -0
  235. package/jsx/core/Flex/Flex.styles.js +41 -0
  236. package/jsx/core/Flex/Flex.styles.js.map +1 -0
  237. package/jsx/core/Flex/FlexContainer.stories.d.ts +22 -0
  238. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -0
  239. package/jsx/core/Flex/FlexContainer.stories.jsx +164 -0
  240. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -0
  241. package/jsx/core/Flex/FlexItem.stories.d.ts +13 -0
  242. package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -0
  243. package/jsx/core/Flex/FlexItem.stories.jsx +71 -0
  244. package/jsx/core/Flex/FlexItem.stories.jsx.map +1 -0
  245. package/jsx/core/Form/Form.mocks.d.ts +8 -0
  246. package/jsx/core/Form/Form.mocks.d.ts.map +1 -0
  247. package/jsx/core/Form/Form.mocks.jsx +138 -0
  248. package/jsx/core/Form/Form.mocks.jsx.map +1 -0
  249. package/jsx/core/Form/Form.stories.d.ts +14 -0
  250. package/jsx/core/Form/Form.stories.d.ts.map +1 -0
  251. package/jsx/core/Form/Form.stories.jsx +62 -0
  252. package/jsx/core/Form/Form.stories.jsx.map +1 -0
  253. package/jsx/core/Grid/Grid.styles.d.ts +6 -0
  254. package/jsx/core/Grid/Grid.styles.d.ts.map +1 -0
  255. package/jsx/core/Grid/Grid.styles.js +36 -0
  256. package/jsx/core/Grid/Grid.styles.js.map +1 -0
  257. package/jsx/core/Grid/GridContainer.stories.d.ts +24 -0
  258. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -0
  259. package/jsx/core/Grid/GridContainer.stories.jsx +168 -0
  260. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -0
  261. package/jsx/core/Grid/GridItem.stories.d.ts +13 -0
  262. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -0
  263. package/jsx/core/Grid/GridItem.stories.jsx +74 -0
  264. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -0
  265. package/jsx/core/Icon/Icon.mocks.d.ts +3 -0
  266. package/jsx/core/Icon/Icon.mocks.d.ts.map +1 -0
  267. package/jsx/core/Icon/Icon.mocks.jsx +9 -0
  268. package/jsx/core/Icon/Icon.mocks.jsx.map +1 -0
  269. package/jsx/core/Icon/Icon.stories.d.ts +9 -0
  270. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -0
  271. package/jsx/core/Icon/Icon.stories.jsx +90 -0
  272. package/jsx/core/Icon/Icon.stories.jsx.map +1 -0
  273. package/jsx/core/IconPicker/IconPicker.stories.d.ts +6 -0
  274. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -0
  275. package/jsx/core/IconPicker/IconPicker.stories.jsx +38 -0
  276. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -0
  277. package/jsx/core/Image/Image.stories.d.ts +6 -0
  278. package/jsx/core/Image/Image.stories.d.ts.map +1 -0
  279. package/{lib → jsx}/core/Image/Image.stories.jsx +0 -0
  280. package/{lib → jsx}/core/Image/Image.stories.jsx.map +0 -0
  281. package/jsx/core/Input/Input.stories.d.ts +9 -0
  282. package/jsx/core/Input/Input.stories.d.ts.map +1 -0
  283. package/{lib → jsx}/core/Input/Input.stories.jsx +0 -0
  284. package/{lib → jsx}/core/Input/Input.stories.jsx.map +0 -0
  285. package/jsx/core/Label/Label.stories.d.ts +6 -0
  286. package/jsx/core/Label/Label.stories.d.ts.map +1 -0
  287. package/{lib → jsx}/core/Label/Label.stories.jsx +0 -0
  288. package/{lib → jsx}/core/Label/Label.stories.jsx.map +0 -0
  289. package/jsx/core/Lightbox/Lightbox.mocks.d.ts +15 -0
  290. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +1 -0
  291. package/jsx/core/Lightbox/Lightbox.mocks.js +59 -0
  292. package/jsx/core/Lightbox/Lightbox.mocks.js.map +1 -0
  293. package/jsx/core/Lightbox/Lightbox.stories.d.ts +10 -0
  294. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -0
  295. package/jsx/core/Lightbox/Lightbox.stories.jsx +55 -0
  296. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -0
  297. package/jsx/core/Link/Link.stories.d.ts +18 -0
  298. package/jsx/core/Link/Link.stories.d.ts.map +1 -0
  299. package/jsx/core/Link/Link.stories.jsx +49 -0
  300. package/jsx/core/Link/Link.stories.jsx.map +1 -0
  301. package/jsx/core/List/CommaSeparatedList.stories.d.ts +6 -0
  302. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -0
  303. package/jsx/core/List/CommaSeparatedList.stories.jsx +31 -0
  304. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -0
  305. package/jsx/core/List/OrderedList.stories.d.ts +10 -0
  306. package/jsx/core/List/OrderedList.stories.d.ts.map +1 -0
  307. package/jsx/core/List/OrderedList.stories.jsx +38 -0
  308. package/jsx/core/List/OrderedList.stories.jsx.map +1 -0
  309. package/jsx/core/List/UnorderedList.stories.d.ts +10 -0
  310. package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -0
  311. package/jsx/core/List/UnorderedList.stories.jsx +38 -0
  312. package/jsx/core/List/UnorderedList.stories.jsx.map +1 -0
  313. package/jsx/core/Location/Location.stories.d.ts +12 -0
  314. package/jsx/core/Location/Location.stories.d.ts.map +1 -0
  315. package/{lib → jsx}/core/Location/Location.stories.jsx +0 -0
  316. package/{lib → jsx}/core/Location/Location.stories.jsx.map +0 -0
  317. package/jsx/core/Menu/Menu.mocks.d.ts +4 -0
  318. package/jsx/core/Menu/Menu.mocks.d.ts.map +1 -0
  319. package/jsx/core/Menu/Menu.mocks.js +179 -0
  320. package/jsx/core/Menu/Menu.mocks.js.map +1 -0
  321. package/jsx/core/Menu/Menu.stories.d.ts +16 -0
  322. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -0
  323. package/jsx/core/Menu/Menu.stories.jsx +164 -0
  324. package/jsx/core/Menu/Menu.stories.jsx.map +1 -0
  325. package/jsx/core/Menu/Menu.styles.d.ts +2 -0
  326. package/jsx/core/Menu/Menu.styles.d.ts.map +1 -0
  327. package/jsx/core/Menu/Menu.styles.js +6 -0
  328. package/jsx/core/Menu/Menu.styles.js.map +1 -0
  329. package/jsx/core/MenuButton/MenuButton.stories.d.ts +15 -0
  330. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -0
  331. package/{lib → jsx}/core/MenuButton/MenuButton.stories.jsx +0 -0
  332. package/{lib → jsx}/core/MenuButton/MenuButton.stories.jsx.map +0 -0
  333. package/jsx/core/MetaList/MetaList.stories.d.ts +9 -0
  334. package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -0
  335. package/{lib → jsx}/core/MetaList/MetaList.stories.jsx +0 -0
  336. package/{lib → jsx}/core/MetaList/MetaList.stories.jsx.map +0 -0
  337. package/jsx/core/Modal/Modal.mocks.d.ts +4 -0
  338. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -0
  339. package/jsx/core/Modal/Modal.mocks.jsx +44 -0
  340. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -0
  341. package/jsx/core/Modal/Modal.stories.d.ts +20 -0
  342. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -0
  343. package/{lib → jsx}/core/Modal/Modal.stories.jsx +0 -0
  344. package/{lib → jsx}/core/Modal/Modal.stories.jsx.map +0 -0
  345. package/jsx/core/MultiStep/MultiStep.stories.d.ts +6 -0
  346. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -0
  347. package/{lib → jsx}/core/MultiStep/MultiStep.stories.jsx +0 -0
  348. package/{lib → jsx}/core/MultiStep/MultiStep.stories.jsx.map +0 -0
  349. package/jsx/core/Number/Number.stories.d.ts +13 -0
  350. package/jsx/core/Number/Number.stories.d.ts.map +1 -0
  351. package/jsx/core/Number/Number.stories.jsx +110 -0
  352. package/jsx/core/Number/Number.stories.jsx.map +1 -0
  353. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +3 -0
  354. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  355. package/jsx/core/PageTemplates/PageTemplates.mocks.js +10 -0
  356. package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +1 -0
  357. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +31 -0
  358. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  359. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +233 -0
  360. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -0
  361. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +4 -0
  362. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -0
  363. package/jsx/core/PageTemplates/PageTemplates.styles.js +31 -0
  364. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -0
  365. package/jsx/core/Pagination/Pagination.stories.d.ts +6 -0
  366. package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -0
  367. package/{lib → jsx}/core/Pagination/Pagination.stories.jsx +0 -0
  368. package/{lib → jsx}/core/Pagination/Pagination.stories.jsx.map +0 -0
  369. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +6 -0
  370. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -0
  371. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx +15 -0
  372. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -0
  373. package/jsx/core/Phone/Phone.stories.d.ts +7 -0
  374. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -0
  375. package/{lib → jsx}/core/Phone/Phone.stories.jsx +0 -0
  376. package/{lib → jsx}/core/Phone/Phone.stories.jsx.map +0 -0
  377. package/jsx/core/Popover/Popover.stories.d.ts +7 -0
  378. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -0
  379. package/jsx/core/Popover/Popover.stories.jsx +182 -0
  380. package/jsx/core/Popover/Popover.stories.jsx.map +1 -0
  381. package/jsx/core/Progress/Progress.stories.d.ts +7 -0
  382. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -0
  383. package/{lib → jsx}/core/Progress/Progress.stories.jsx +0 -0
  384. package/{lib → jsx}/core/Progress/Progress.stories.jsx.map +0 -0
  385. package/jsx/core/Progress/Progress.styles.d.ts +2 -0
  386. package/jsx/core/Progress/Progress.styles.d.ts.map +1 -0
  387. package/jsx/core/Progress/Progress.styles.js +13 -0
  388. package/jsx/core/Progress/Progress.styles.js.map +1 -0
  389. package/jsx/core/RadioButton/RadioButton.stories.d.ts +7 -0
  390. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -0
  391. package/{lib → jsx}/core/RadioButton/RadioButton.stories.jsx +0 -0
  392. package/{lib → jsx}/core/RadioButton/RadioButton.stories.jsx.map +0 -0
  393. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -0
  394. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
  395. package/{lib → jsx}/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -0
  396. package/{lib → jsx}/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -0
  397. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +4 -0
  398. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -0
  399. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +9 -0
  400. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +1 -0
  401. package/jsx/core/Rating/Rating.stories.d.ts +9 -0
  402. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -0
  403. package/jsx/core/Rating/Rating.stories.jsx +21 -0
  404. package/jsx/core/Rating/Rating.stories.jsx.map +1 -0
  405. package/jsx/core/SearchInput/SearchInput.stories.d.ts +6 -0
  406. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -0
  407. package/{lib → jsx}/core/SearchInput/SearchInput.stories.jsx +0 -0
  408. package/{lib → jsx}/core/SearchInput/SearchInput.stories.jsx.map +0 -0
  409. package/jsx/core/Select/Select.stories.d.ts +9 -0
  410. package/jsx/core/Select/Select.stories.d.ts.map +1 -0
  411. package/{lib → jsx}/core/Select/Select.stories.jsx +0 -0
  412. package/{lib → jsx}/core/Select/Select.stories.jsx.map +0 -0
  413. package/jsx/core/Sentiment/Sentiment.stories.d.ts +14 -0
  414. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -0
  415. package/jsx/core/Sentiment/Sentiment.stories.jsx +39 -0
  416. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -0
  417. package/jsx/core/Slider/Slider.stories.d.ts +11 -0
  418. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -0
  419. package/{lib → jsx}/core/Slider/Slider.stories.jsx +0 -0
  420. package/{lib → jsx}/core/Slider/Slider.stories.jsx.map +0 -0
  421. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +11 -0
  422. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -0
  423. package/{lib → jsx}/core/SummaryItem/SummaryItem.stories.jsx +0 -0
  424. package/{lib → jsx}/core/SummaryItem/SummaryItem.stories.jsx.map +0 -0
  425. package/jsx/core/SummaryList/SummaryList.mocks.d.ts +32 -0
  426. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -0
  427. package/{lib → jsx}/core/SummaryList/SummaryList.mocks.jsx +0 -0
  428. package/{lib → jsx}/core/SummaryList/SummaryList.mocks.jsx.map +0 -0
  429. package/jsx/core/SummaryList/SummaryList.stories.d.ts +13 -0
  430. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -0
  431. package/jsx/core/SummaryList/SummaryList.stories.jsx +131 -0
  432. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -0
  433. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  434. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -0
  435. package/{lib → jsx}/core/Switch/Switch.stories.jsx +0 -0
  436. package/{lib → jsx}/core/Switch/Switch.stories.jsx.map +0 -0
  437. package/jsx/core/Switch/Switch.styles.d.ts +2 -0
  438. package/jsx/core/Switch/Switch.styles.d.ts.map +1 -0
  439. package/jsx/core/Switch/Switch.styles.js +13 -0
  440. package/jsx/core/Switch/Switch.styles.js.map +1 -0
  441. package/jsx/core/Table/Table.mocks.d.ts +19 -0
  442. package/jsx/core/Table/Table.mocks.d.ts.map +1 -0
  443. package/{lib → jsx}/core/Table/Table.mocks.jsx +0 -0
  444. package/{lib → jsx}/core/Table/Table.mocks.jsx.map +0 -0
  445. package/jsx/core/Table/Table.stories.d.ts +14 -0
  446. package/jsx/core/Table/Table.stories.d.ts.map +1 -0
  447. package/{lib → jsx}/core/Table/Table.stories.jsx +0 -0
  448. package/{lib → jsx}/core/Table/Table.stories.jsx.map +0 -0
  449. package/jsx/core/Table/Table.styles.d.ts +4 -0
  450. package/jsx/core/Table/Table.styles.d.ts.map +1 -0
  451. package/jsx/core/Table/Table.styles.js +9 -0
  452. package/jsx/core/Table/Table.styles.js.map +1 -0
  453. package/jsx/core/Tabs/Tabs.stories.d.ts +7 -0
  454. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -0
  455. package/{lib → jsx}/core/Tabs/Tabs.stories.jsx +0 -0
  456. package/{lib → jsx}/core/Tabs/Tabs.stories.jsx.map +0 -0
  457. package/jsx/core/Text/Text.stories.d.ts +6 -0
  458. package/jsx/core/Text/Text.stories.d.ts.map +1 -0
  459. package/{lib → jsx}/core/Text/Text.stories.jsx +0 -0
  460. package/{lib → jsx}/core/Text/Text.stories.jsx.map +0 -0
  461. package/jsx/core/TextArea/TextArea.stories.d.ts +6 -0
  462. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -0
  463. package/{lib → jsx}/core/TextArea/TextArea.stories.jsx +0 -0
  464. package/{lib → jsx}/core/TextArea/TextArea.stories.jsx.map +0 -0
  465. package/jsx/core/Toaster/Toaster.stories.d.ts +6 -0
  466. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -0
  467. package/jsx/core/Toaster/Toaster.stories.jsx +22 -0
  468. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -0
  469. package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -0
  470. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -0
  471. package/{lib → jsx}/core/Tooltip/Tooltip.stories.jsx +0 -0
  472. package/{lib → jsx}/core/Tooltip/Tooltip.stories.jsx.map +0 -0
  473. package/jsx/core/Tree/Tree.mocks.d.ts +2 -0
  474. package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -0
  475. package/jsx/core/Tree/Tree.mocks.js +20 -0
  476. package/jsx/core/Tree/Tree.mocks.js.map +1 -0
  477. package/jsx/core/Tree/Tree.stories.d.ts +8 -0
  478. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -0
  479. package/{lib → jsx}/core/Tree/Tree.stories.jsx +0 -0
  480. package/{lib → jsx}/core/Tree/Tree.stories.jsx.map +0 -0
  481. package/jsx/core/Tree/Tree.styles.d.ts +3 -0
  482. package/jsx/core/Tree/Tree.styles.d.ts.map +1 -0
  483. package/jsx/core/Tree/Tree.styles.js +10 -0
  484. package/jsx/core/Tree/Tree.styles.js.map +1 -0
  485. package/jsx/core/URL/URL.stories.d.ts +6 -0
  486. package/jsx/core/URL/URL.stories.d.ts.map +1 -0
  487. package/{lib → jsx}/core/URL/URL.stories.jsx +0 -0
  488. package/{lib → jsx}/core/URL/URL.stories.jsx.map +0 -0
  489. package/jsx/cs/Article/Article.mocks.d.ts +14 -0
  490. package/jsx/cs/Article/Article.mocks.d.ts.map +1 -0
  491. package/jsx/cs/Article/Article.mocks.js +14 -0
  492. package/jsx/cs/Article/Article.mocks.js.map +1 -0
  493. package/jsx/cs/Article/Article.stories.d.ts +15 -0
  494. package/jsx/cs/Article/Article.stories.d.ts.map +1 -0
  495. package/{lib → jsx}/cs/Article/Article.stories.jsx +0 -0
  496. package/{lib → jsx}/cs/Article/Article.stories.jsx.map +0 -0
  497. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts +21 -0
  498. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -0
  499. package/jsx/cs/ArticleList/ArticleList.mocks.js +102 -0
  500. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -0
  501. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +16 -0
  502. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -0
  503. package/{lib → jsx}/cs/ArticleList/ArticleList.stories.jsx +0 -0
  504. package/{lib → jsx}/cs/ArticleList/ArticleList.stories.jsx.map +0 -0
  505. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +45 -0
  506. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -0
  507. package/{lib → jsx}/cs/CSCaseView/CSAppShell.stories.jsx +0 -0
  508. package/{lib → jsx}/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -0
  509. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +57 -0
  510. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -0
  511. package/jsx/cs/CSCaseView/CSCaseView.mocks.js +224 -0
  512. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +1 -0
  513. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +16 -0
  514. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -0
  515. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +110 -0
  516. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -0
  517. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +13 -0
  518. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -0
  519. package/{lib → jsx}/cs/CallControlPanel/CallControlPanel.stories.jsx +0 -0
  520. package/{lib → jsx}/cs/CallControlPanel/CallControlPanel.stories.jsx.map +0 -0
  521. package/jsx/cs/DialPad/DialPad.stories.d.ts +9 -0
  522. package/jsx/cs/DialPad/DialPad.stories.d.ts.map +1 -0
  523. package/{lib → jsx}/cs/DialPad/DialPad.stories.jsx +0 -0
  524. package/{lib → jsx}/cs/DialPad/DialPad.stories.jsx.map +0 -0
  525. package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts +11 -0
  526. package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +1 -0
  527. package/jsx/cs/DialPad/DialPadKeyboardData.mock.js +20 -0
  528. package/jsx/cs/DialPad/DialPadKeyboardData.mock.js.map +1 -0
  529. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +13 -0
  530. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -0
  531. package/{lib → jsx}/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -0
  532. package/{lib → jsx}/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -0
  533. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -0
  534. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -0
  535. package/{lib → jsx}/cs/InteractionNotification/InteractionNotification.stories.jsx +0 -0
  536. package/{lib → jsx}/cs/InteractionNotification/InteractionNotification.stories.jsx.map +0 -0
  537. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +14 -0
  538. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -0
  539. package/{lib → jsx}/cs/InteractionTimer/InteractionTimer.stories.jsx +0 -0
  540. package/{lib → jsx}/cs/InteractionTimer/InteractionTimer.stories.jsx.map +0 -0
  541. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +13 -0
  542. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -0
  543. package/jsx/cs/TaskManager/TaskManager.mocks.js +140 -0
  544. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -0
  545. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -0
  546. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -0
  547. package/{lib → jsx}/cs/TaskManager/TaskManager.stories.jsx +0 -0
  548. package/{lib → jsx}/cs/TaskManager/TaskManager.stories.jsx.map +0 -0
  549. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +11 -0
  550. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -0
  551. package/{lib → jsx}/dnd/DragDropList/DragDropList.stories.jsx +0 -0
  552. package/{lib → jsx}/dnd/DragDropList/DragDropList.stories.jsx.map +0 -0
  553. package/jsx/rte/Editor/Editor.stories.d.ts +11 -0
  554. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -0
  555. package/jsx/rte/Editor/Editor.stories.jsx +119 -0
  556. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -0
  557. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +3 -0
  558. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +1 -0
  559. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -0
  560. package/{lib → jsx}/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -0
  561. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +10 -0
  562. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -0
  563. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +145 -0
  564. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -0
  565. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +8 -0
  566. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -0
  567. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +79 -0
  568. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -0
  569. package/jsx/social/Chat/Chat.mocks.d.ts +385 -0
  570. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -0
  571. package/jsx/social/Chat/Chat.mocks.js +648 -0
  572. package/jsx/social/Chat/Chat.mocks.js.map +1 -0
  573. package/jsx/social/Chat/Chat.stories.d.ts +34 -0
  574. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -0
  575. package/jsx/social/Chat/Chat.stories.jsx +490 -0
  576. package/jsx/social/Chat/Chat.stories.jsx.map +1 -0
  577. package/jsx/social/Chat/RepeatingView.stories.d.ts +20 -0
  578. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -0
  579. package/{lib → jsx}/social/Chat/RepeatingView.stories.jsx +0 -0
  580. package/{lib → jsx}/social/Chat/RepeatingView.stories.jsx.map +0 -0
  581. package/jsx/social/Email/Email.mocks.d.ts +87 -0
  582. package/jsx/social/Email/Email.mocks.d.ts.map +1 -0
  583. package/{lib → jsx}/social/Email/Email.mocks.jsx +0 -0
  584. package/{lib → jsx}/social/Email/Email.mocks.jsx.map +0 -0
  585. package/jsx/social/Email/Email.stories.d.ts +28 -0
  586. package/jsx/social/Email/Email.stories.d.ts.map +1 -0
  587. package/{lib → jsx}/social/Email/Email.stories.jsx +0 -0
  588. package/{lib → jsx}/social/Email/Email.stories.jsx.map +0 -0
  589. package/jsx/social/Feed/Feed.mocks.d.ts +52 -0
  590. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -0
  591. package/{lib → jsx}/social/Feed/Feed.mocks.jsx +0 -0
  592. package/{lib → jsx}/social/Feed/Feed.mocks.jsx.map +0 -0
  593. package/jsx/social/Feed/Feed.stories.d.ts +15 -0
  594. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -0
  595. package/{lib → jsx}/social/Feed/Feed.stories.jsx +0 -0
  596. package/{lib → jsx}/social/Feed/Feed.stories.jsx.map +0 -0
  597. package/jsx/social/Feed/FeedNewPost.stories.d.ts +17 -0
  598. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -0
  599. package/jsx/social/Feed/FeedNewPost.stories.jsx +80 -0
  600. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -0
  601. package/jsx/social/Feed/FeedPost.stories.d.ts +9 -0
  602. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -0
  603. package/jsx/social/Feed/FeedPost.stories.jsx +248 -0
  604. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -0
  605. package/jsx/social/Feed/FeedReply.stories.d.ts +16 -0
  606. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -0
  607. package/{lib → jsx}/social/Feed/FeedReply.stories.jsx +0 -0
  608. package/{lib → jsx}/social/Feed/FeedReply.stories.jsx.map +0 -0
  609. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +15 -0
  610. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -0
  611. package/{lib → jsx}/social/Feed/FeedReplyInput.stories.jsx +0 -0
  612. package/{lib → jsx}/social/Feed/FeedReplyInput.stories.jsx.map +0 -0
  613. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +6 -0
  614. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -0
  615. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +29 -0
  616. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -0
  617. package/jsx/work/CaseView/Attachments.mocks.d.ts +3 -0
  618. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -0
  619. package/{lib → jsx}/work/CaseView/Attachments.mocks.jsx +0 -0
  620. package/{lib → jsx}/work/CaseView/Attachments.mocks.jsx.map +0 -0
  621. package/jsx/work/CaseView/CaseView.mocks.d.ts +11 -0
  622. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -0
  623. package/{lib → jsx}/work/CaseView/CaseView.mocks.jsx +0 -0
  624. package/{lib → jsx}/work/CaseView/CaseView.mocks.jsx.map +0 -0
  625. package/jsx/work/CaseView/CaseView.stories.d.ts +34 -0
  626. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -0
  627. package/{lib → jsx}/work/CaseView/CaseView.stories.jsx +0 -0
  628. package/{lib → jsx}/work/CaseView/CaseView.stories.jsx.map +0 -0
  629. package/jsx/work/CaseView/Details.mocks.d.ts +3 -0
  630. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -0
  631. package/{lib → jsx}/work/CaseView/Details.mocks.jsx +0 -0
  632. package/{lib → jsx}/work/CaseView/Details.mocks.jsx.map +0 -0
  633. package/jsx/work/CaseView/FileService.mock.d.ts +28 -0
  634. package/jsx/work/CaseView/FileService.mock.d.ts.map +1 -0
  635. package/jsx/work/CaseView/FileService.mock.jsx +143 -0
  636. package/jsx/work/CaseView/FileService.mock.jsx.map +1 -0
  637. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +11 -0
  638. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -0
  639. package/{lib → jsx}/work/CaseView/MobileCaseView.stories.jsx +0 -0
  640. package/{lib → jsx}/work/CaseView/MobileCaseView.stories.jsx.map +0 -0
  641. package/jsx/work/CaseView/Pulse.mocks.d.ts +6 -0
  642. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -0
  643. package/{lib → jsx}/work/CaseView/Pulse.mocks.jsx +0 -0
  644. package/{lib → jsx}/work/CaseView/Pulse.mocks.jsx.map +0 -0
  645. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +10 -0
  646. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -0
  647. package/{lib → jsx}/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -0
  648. package/{lib → jsx}/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -0
  649. package/jsx/work/Confirmation/Confirmation.stories.d.ts +9 -0
  650. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -0
  651. package/jsx/work/Confirmation/Confirmation.stories.jsx +28 -0
  652. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -0
  653. package/jsx/work/Confirmation/Confirmation.styles.d.ts +2 -0
  654. package/jsx/work/Confirmation/Confirmation.styles.d.ts.map +1 -0
  655. package/jsx/work/Confirmation/Confirmation.styles.js +7 -0
  656. package/jsx/work/Confirmation/Confirmation.styles.js.map +1 -0
  657. package/jsx/work/Details/Details.stories.d.ts +5 -0
  658. package/jsx/work/Details/Details.stories.d.ts.map +1 -0
  659. package/{lib → jsx}/work/Details/Details.stories.jsx +0 -0
  660. package/{lib → jsx}/work/Details/Details.stories.jsx.map +0 -0
  661. package/jsx/work/Glimpse/Glimpse.stories.d.ts +10 -0
  662. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -0
  663. package/{lib → jsx}/work/Glimpse/Glimpse.stories.jsx +0 -0
  664. package/{lib → jsx}/work/Glimpse/Glimpse.stories.jsx.map +0 -0
  665. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +8 -0
  666. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -0
  667. package/{lib → jsx}/work/SearchResults/SearchResults.mocks.jsx +0 -0
  668. package/{lib → jsx}/work/SearchResults/SearchResults.mocks.jsx.map +0 -0
  669. package/jsx/work/SearchResults/SearchResults.stories.d.ts +8 -0
  670. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -0
  671. package/jsx/work/SearchResults/SearchResults.stories.jsx +199 -0
  672. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -0
  673. package/jsx/work/SearchResults/SearchResults.styles.d.ts +5 -0
  674. package/jsx/work/SearchResults/SearchResults.styles.d.ts.map +1 -0
  675. package/jsx/work/SearchResults/SearchResults.styles.js +12 -0
  676. package/jsx/work/SearchResults/SearchResults.styles.js.map +1 -0
  677. package/jsx/work/Stages/Stages.stories.d.ts +11 -0
  678. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -0
  679. package/{lib → jsx}/work/Stages/Stages.stories.jsx +0 -0
  680. package/{lib → jsx}/work/Stages/Stages.stories.jsx.map +0 -0
  681. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +17 -0
  682. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -0
  683. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +32 -0
  684. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -0
  685. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +6 -0
  686. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -0
  687. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +90 -0
  688. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -0
  689. package/jsx/work/Tags/Tags.mocks.d.ts +3 -0
  690. package/jsx/work/Tags/Tags.mocks.d.ts.map +1 -0
  691. package/jsx/work/Tags/Tags.mocks.js +76 -0
  692. package/jsx/work/Tags/Tags.mocks.js.map +1 -0
  693. package/jsx/work/Tags/Tags.stories.d.ts +10 -0
  694. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -0
  695. package/{lib → jsx}/work/Tags/Tags.stories.jsx +0 -0
  696. package/{lib → jsx}/work/Tags/Tags.stories.jsx.map +0 -0
  697. package/jsx/work/Tasks/TaskList.stories.d.ts +5 -0
  698. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -0
  699. package/{lib → jsx}/work/Tasks/TaskList.stories.jsx +0 -0
  700. package/{lib → jsx}/work/Tasks/TaskList.stories.jsx.map +0 -0
  701. package/jsx/work/Tasks/Tasks.stories.d.ts +9 -0
  702. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -0
  703. package/{lib → jsx}/work/Tasks/Tasks.stories.jsx +0 -0
  704. package/{lib → jsx}/work/Tasks/Tasks.stories.jsx.map +0 -0
  705. package/jsx/work/Timeline/Timeline.mocks.d.ts +3 -0
  706. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -0
  707. package/{lib → jsx}/work/Timeline/Timeline.mocks.jsx +0 -0
  708. package/{lib → jsx}/work/Timeline/Timeline.mocks.jsx.map +0 -0
  709. package/jsx/work/Timeline/Timeline.stories.d.ts +7 -0
  710. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -0
  711. package/jsx/work/Timeline/Timeline.stories.jsx +43 -0
  712. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -0
  713. package/lib/build/AppHeader/AppHeader.stories.js +66 -0
  714. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -0
  715. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  716. package/lib/build/AppShell/AppShell.stories.js +192 -0
  717. package/lib/build/AppShell/AppShell.stories.js.map +1 -0
  718. package/lib/build/FlowModeller/AddNodeUtils.mocks.js +1 -1
  719. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  720. package/lib/build/FlowModeller/FlowModeller.stories.js +197 -0
  721. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -0
  722. package/lib/build/LifeCycle/LifeCycle.stories.js +511 -0
  723. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -0
  724. package/lib/build/PageTemplates/GalleryPage.stories.js +127 -0
  725. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -0
  726. package/lib/build/PageTemplates/PageTemplates.stories.js +388 -0
  727. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -0
  728. package/lib/build/Workbench/Workbench.stories.js +114 -0
  729. package/lib/build/Workbench/Workbench.stories.js.map +1 -0
  730. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +166 -0
  731. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -0
  732. package/lib/core/AppShell/AppShell.mocks.js +142 -0
  733. package/lib/core/AppShell/AppShell.mocks.js.map +1 -0
  734. package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
  735. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  736. package/lib/core/AppShell/AppShell.stories.js +191 -0
  737. package/lib/core/AppShell/AppShell.stories.js.map +1 -0
  738. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  739. package/lib/core/Avatar/Avatar.stories.js +51 -0
  740. package/lib/core/Avatar/Avatar.stories.js.map +1 -0
  741. package/lib/core/Backdrop/Backdrop.stories.js +26 -0
  742. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -0
  743. package/lib/core/Badges/Alert.stories.js +16 -0
  744. package/lib/core/Badges/Alert.stories.js.map +1 -0
  745. package/lib/core/Badges/Count.stories.js +21 -0
  746. package/lib/core/Badges/Count.stories.js.map +1 -0
  747. package/lib/core/Badges/Selection.stories.js +10 -0
  748. package/lib/core/Badges/Selection.stories.js.map +1 -0
  749. package/lib/core/Badges/Status.stories.js +19 -0
  750. package/lib/core/Badges/Status.stories.js.map +1 -0
  751. package/lib/core/Badges/Tag.stories.js +10 -0
  752. package/lib/core/Badges/Tag.stories.js.map +1 -0
  753. package/lib/core/Banner/Banner.mocks.d.ts +18 -0
  754. package/lib/core/Banner/Banner.mocks.d.ts.map +1 -0
  755. package/lib/core/Banner/Banner.mocks.js +36 -0
  756. package/lib/core/Banner/Banner.mocks.js.map +1 -0
  757. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  758. package/lib/core/Banner/Banner.stories.js +81 -0
  759. package/lib/core/Banner/Banner.stories.js.map +1 -0
  760. package/lib/core/Boolean/BooleanDisplay.stories.js +20 -0
  761. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -0
  762. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +28 -0
  763. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
  764. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  765. package/lib/core/Button/Button.stories.js +64 -0
  766. package/lib/core/Button/Button.stories.js.map +1 -0
  767. package/lib/core/Card/Card.stories.js +32 -0
  768. package/lib/core/Card/Card.stories.js.map +1 -0
  769. package/lib/core/Checkbox/Checkbox.stories.js +29 -0
  770. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -0
  771. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +32 -0
  772. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -0
  773. package/lib/core/ColorPicker/ColorPicker.stories.js +76 -0
  774. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -0
  775. package/lib/core/ComboBox/ComboBox.stories.d.ts +10 -0
  776. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  777. package/lib/core/ComboBox/ComboBox.stories.js +376 -0
  778. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -0
  779. package/lib/core/Configuration/Configuration.stories.js +75 -0
  780. package/lib/core/Configuration/Configuration.stories.js.map +1 -0
  781. package/lib/core/Currency/Currency.stories.js +66 -0
  782. package/lib/core/Currency/Currency.stories.js.map +1 -0
  783. package/lib/core/DateTime/DateTime.stories.js +128 -0
  784. package/lib/core/DateTime/DateTime.stories.js.map +1 -0
  785. package/lib/core/DateTime/DateTimeDisplay.stories.js +48 -0
  786. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -0
  787. package/lib/core/DateTime/DateTimePicker.stories.js +35 -0
  788. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -0
  789. package/lib/core/Drawer/Drawer.stories.js +71 -0
  790. package/lib/core/Drawer/Drawer.stories.js.map +1 -0
  791. package/lib/core/Email/EmailDisplay.stories.js +20 -0
  792. package/lib/core/Email/EmailDisplay.stories.js.map +1 -0
  793. package/lib/core/EmojiPicker/EmojiPicker.stories.js +42 -0
  794. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -0
  795. package/lib/core/EmptyState/EmptyState.stories.js +19 -0
  796. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -0
  797. package/lib/core/ErrorState/ErrorState.stories.js +21 -0
  798. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -0
  799. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +28 -0
  800. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -0
  801. package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -1
  802. package/lib/core/ExpandCollapse/ExpandCollapse.styles.js +5 -0
  803. package/lib/core/ExpandCollapse/ExpandCollapse.styles.js.map +1 -1
  804. package/lib/core/FieldGroup/FieldGroup.stories.js +22 -0
  805. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -0
  806. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +21 -0
  807. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -0
  808. package/lib/core/FieldGroup/FieldGroupList.mocks.js +38 -0
  809. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -0
  810. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  811. package/lib/core/FieldGroup/FieldGroupList.stories.js +106 -0
  812. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -0
  813. package/lib/core/FieldValueList/FieldValueList.stories.js +51 -0
  814. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -0
  815. package/lib/core/File/FileDisplay.stories.d.ts +8 -1
  816. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  817. package/lib/core/File/FileDisplay.stories.js +126 -0
  818. package/lib/core/File/FileDisplay.stories.js.map +1 -0
  819. package/lib/core/File/FileInput.stories.js +78 -0
  820. package/lib/core/File/FileInput.stories.js.map +1 -0
  821. package/lib/core/Flex/Flex.styles.d.ts +2 -2
  822. package/lib/core/Flex/Flex.styles.d.ts.map +1 -1
  823. package/lib/core/Flex/Flex.styles.js +17 -17
  824. package/lib/core/Flex/Flex.styles.js.map +1 -1
  825. package/lib/core/Flex/FlexContainer.stories.d.ts +2 -0
  826. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  827. package/lib/core/Flex/FlexContainer.stories.js +82 -0
  828. package/lib/core/Flex/FlexContainer.stories.js.map +1 -0
  829. package/lib/core/Flex/FlexItem.stories.js +41 -0
  830. package/lib/core/Flex/FlexItem.stories.js.map +1 -0
  831. package/lib/core/Form/Form.mocks.d.ts +8 -0
  832. package/lib/core/Form/Form.mocks.d.ts.map +1 -0
  833. package/lib/core/Form/Form.mocks.js +97 -0
  834. package/lib/core/Form/Form.mocks.js.map +1 -0
  835. package/lib/core/Form/Form.stories.d.ts +0 -7
  836. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  837. package/lib/core/Form/Form.stories.js +52 -0
  838. package/lib/core/Form/Form.stories.js.map +1 -0
  839. package/lib/core/Grid/Grid.styles.d.ts +2 -2
  840. package/lib/core/Grid/Grid.styles.d.ts.map +1 -1
  841. package/lib/core/Grid/Grid.styles.js +4 -4
  842. package/lib/core/Grid/Grid.styles.js.map +1 -1
  843. package/lib/core/Grid/GridContainer.stories.d.ts +6 -5
  844. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  845. package/lib/core/Grid/GridContainer.stories.js +115 -0
  846. package/lib/core/Grid/GridContainer.stories.js.map +1 -0
  847. package/lib/core/Grid/GridItem.stories.d.ts +2 -2
  848. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  849. package/lib/core/Grid/GridItem.stories.js +36 -0
  850. package/lib/core/Grid/GridItem.stories.js.map +1 -0
  851. package/lib/core/Icon/Icon.mocks.d.ts +3 -0
  852. package/lib/core/Icon/Icon.mocks.d.ts.map +1 -0
  853. package/lib/core/Icon/Icon.mocks.js +10 -0
  854. package/lib/core/Icon/Icon.mocks.js.map +1 -0
  855. package/lib/core/Icon/Icon.stories.d.ts +1 -0
  856. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  857. package/lib/core/Icon/Icon.stories.js +82 -0
  858. package/lib/core/Icon/Icon.stories.js.map +1 -0
  859. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  860. package/lib/core/IconPicker/IconPicker.stories.js +39 -0
  861. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -0
  862. package/lib/core/Image/Image.stories.js +10 -0
  863. package/lib/core/Image/Image.stories.js.map +1 -0
  864. package/lib/core/Input/Input.stories.js +45 -0
  865. package/lib/core/Input/Input.stories.js.map +1 -0
  866. package/lib/core/Label/Label.stories.js +16 -0
  867. package/lib/core/Label/Label.stories.js.map +1 -0
  868. package/lib/core/Lightbox/Lightbox.mocks.d.ts +15 -0
  869. package/lib/core/Lightbox/Lightbox.mocks.d.ts.map +1 -0
  870. package/lib/core/Lightbox/Lightbox.mocks.js +67 -0
  871. package/lib/core/Lightbox/Lightbox.mocks.js.map +1 -0
  872. package/lib/core/Lightbox/Lightbox.stories.d.ts +7 -6
  873. package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  874. package/lib/core/Lightbox/Lightbox.stories.js +51 -0
  875. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -0
  876. package/lib/core/Link/Link.stories.d.ts +11 -1
  877. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  878. package/lib/core/Link/Link.stories.js +30 -0
  879. package/lib/core/Link/Link.stories.js.map +1 -0
  880. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  881. package/lib/core/List/CommaSeparatedList.stories.js +32 -0
  882. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -0
  883. package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
  884. package/lib/core/List/OrderedList.stories.js +39 -0
  885. package/lib/core/List/OrderedList.stories.js.map +1 -0
  886. package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
  887. package/lib/core/List/UnorderedList.stories.js +39 -0
  888. package/lib/core/List/UnorderedList.stories.js.map +1 -0
  889. package/lib/core/Location/Location.stories.js +123 -0
  890. package/lib/core/Location/Location.stories.js.map +1 -0
  891. package/lib/core/Menu/Menu.stories.d.ts +0 -1
  892. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  893. package/lib/core/Menu/Menu.stories.js +148 -0
  894. package/lib/core/Menu/Menu.stories.js.map +1 -0
  895. package/lib/core/MenuButton/MenuButton.stories.js +185 -0
  896. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -0
  897. package/lib/core/MetaList/MetaList.stories.js +20 -0
  898. package/lib/core/MetaList/MetaList.stories.js.map +1 -0
  899. package/lib/core/Modal/Modal.mocks.js +36 -0
  900. package/lib/core/Modal/Modal.mocks.js.map +1 -0
  901. package/lib/core/Modal/Modal.stories.js +232 -0
  902. package/lib/core/Modal/Modal.stories.js.map +1 -0
  903. package/lib/core/MultiStep/MultiStep.stories.js +36 -0
  904. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -0
  905. package/lib/core/Number/Number.stories.js +111 -0
  906. package/lib/core/Number/Number.stories.js.map +1 -0
  907. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -2
  908. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  909. package/lib/core/PageTemplates/PageTemplates.stories.js +226 -0
  910. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -0
  911. package/lib/core/Pagination/Pagination.stories.js +20 -0
  912. package/lib/core/Pagination/Pagination.stories.js.map +1 -0
  913. package/lib/core/Paragraph/ParagraphDisplay.stories.js +16 -0
  914. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -0
  915. package/lib/core/Phone/Phone.stories.js +43 -0
  916. package/lib/core/Phone/Phone.stories.js.map +1 -0
  917. package/lib/core/Popover/Popover.stories.d.ts +1 -2
  918. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  919. package/lib/core/Popover/Popover.stories.js +95 -0
  920. package/lib/core/Popover/Popover.stories.js.map +1 -0
  921. package/lib/core/Progress/Progress.stories.js +64 -0
  922. package/lib/core/Progress/Progress.stories.js.map +1 -0
  923. package/lib/core/RadioButton/RadioButton.stories.js +27 -0
  924. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -0
  925. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +34 -0
  926. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -0
  927. package/lib/core/Rating/Rating.stories.d.ts +4 -1
  928. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  929. package/lib/core/Rating/Rating.stories.js +22 -0
  930. package/lib/core/Rating/Rating.stories.js.map +1 -0
  931. package/lib/core/SearchInput/SearchInput.stories.js +16 -0
  932. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -0
  933. package/lib/core/Select/Select.stories.js +38 -0
  934. package/lib/core/Select/Select.stories.js.map +1 -0
  935. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  936. package/lib/core/Sentiment/Sentiment.stories.js +40 -0
  937. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -0
  938. package/lib/core/Slider/Slider.stories.js +59 -0
  939. package/lib/core/Slider/Slider.stories.js.map +1 -0
  940. package/lib/core/SummaryItem/SummaryItem.stories.js +32 -0
  941. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -0
  942. package/lib/core/SummaryList/SummaryList.mocks.js +34 -0
  943. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -0
  944. package/lib/core/SummaryList/SummaryList.stories.js +126 -0
  945. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -0
  946. package/lib/core/Switch/Switch.stories.js +25 -0
  947. package/lib/core/Switch/Switch.stories.js.map +1 -0
  948. package/lib/core/Table/Table.mocks.js +30 -0
  949. package/lib/core/Table/Table.mocks.js.map +1 -0
  950. package/lib/core/Table/Table.stories.js +54 -0
  951. package/lib/core/Table/Table.stories.js.map +1 -0
  952. package/lib/core/Tabs/Tabs.stories.js +42 -0
  953. package/lib/core/Tabs/Tabs.stories.js.map +1 -0
  954. package/lib/core/Text/Text.stories.js +21 -0
  955. package/lib/core/Text/Text.stories.js.map +1 -0
  956. package/lib/core/TextArea/TextArea.stories.js +44 -0
  957. package/lib/core/TextArea/TextArea.stories.js.map +1 -0
  958. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  959. package/lib/core/Toaster/Toaster.stories.js +30 -0
  960. package/lib/core/Toaster/Toaster.stories.js.map +1 -0
  961. package/lib/core/Tooltip/Tooltip.stories.js +11 -0
  962. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -0
  963. package/lib/core/Tree/Tree.mocks.js +2 -0
  964. package/lib/core/Tree/Tree.mocks.js.map +1 -1
  965. package/lib/core/Tree/Tree.stories.js +85 -0
  966. package/lib/core/Tree/Tree.stories.js.map +1 -0
  967. package/lib/core/URL/URL.stories.js +18 -0
  968. package/lib/core/URL/URL.stories.js.map +1 -0
  969. package/lib/cs/Article/Article.stories.js +85 -0
  970. package/lib/cs/Article/Article.stories.js.map +1 -0
  971. package/lib/cs/ArticleList/ArticleList.stories.js +83 -0
  972. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -0
  973. package/lib/cs/CSCaseView/CSAppShell.stories.js +240 -0
  974. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -0
  975. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +193 -0
  976. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -0
  977. package/lib/cs/DialPad/DialPad.stories.js +17 -0
  978. package/lib/cs/DialPad/DialPad.stories.js.map +1 -0
  979. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +335 -0
  980. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -0
  981. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +31 -0
  982. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -0
  983. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +86 -0
  984. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -0
  985. package/lib/cs/TaskManager/TaskManager.stories.js +299 -0
  986. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -0
  987. package/lib/dnd/DragDropList/DragDropList.stories.js +113 -0
  988. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -0
  989. package/lib/rte/Editor/Editor.stories.d.ts +11 -0
  990. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -0
  991. package/lib/rte/Editor/Editor.stories.js +100 -0
  992. package/lib/rte/Editor/Editor.stories.js.map +1 -0
  993. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +36 -0
  994. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -0
  995. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +114 -0
  996. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -0
  997. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +1 -0
  998. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  999. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +66 -0
  1000. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -0
  1001. package/lib/social/Chat/Chat.stories.d.ts +51 -22
  1002. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1003. package/lib/social/Chat/Chat.stories.js +435 -0
  1004. package/lib/social/Chat/Chat.stories.js.map +1 -0
  1005. package/lib/social/Chat/RepeatingView.stories.js +89 -0
  1006. package/lib/social/Chat/RepeatingView.stories.js.map +1 -0
  1007. package/lib/social/Email/Email.mocks.js +350 -0
  1008. package/lib/social/Email/Email.mocks.js.map +1 -0
  1009. package/lib/social/Email/Email.stories.js +845 -0
  1010. package/lib/social/Email/Email.stories.js.map +1 -0
  1011. package/lib/social/Feed/Feed.mocks.js +307 -0
  1012. package/lib/social/Feed/Feed.mocks.js.map +1 -0
  1013. package/lib/social/Feed/Feed.stories.js +145 -0
  1014. package/lib/social/Feed/Feed.stories.js.map +1 -0
  1015. package/lib/social/Feed/FeedNewPost.stories.js +82 -0
  1016. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -0
  1017. package/lib/social/Feed/FeedPost.stories.js +239 -0
  1018. package/lib/social/Feed/FeedPost.stories.js.map +1 -0
  1019. package/lib/social/Feed/FeedReply.stories.js +95 -0
  1020. package/lib/social/Feed/FeedReply.stories.js.map +1 -0
  1021. package/lib/social/Feed/FeedReplyInput.stories.js +60 -0
  1022. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -0
  1023. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  1024. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +30 -0
  1025. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -0
  1026. package/lib/work/CaseView/Attachments.mocks.js +373 -0
  1027. package/lib/work/CaseView/Attachments.mocks.js.map +1 -0
  1028. package/lib/work/CaseView/CaseView.mocks.js +116 -0
  1029. package/lib/work/CaseView/CaseView.mocks.js.map +1 -0
  1030. package/lib/work/CaseView/CaseView.stories.js +276 -0
  1031. package/lib/work/CaseView/CaseView.stories.js.map +1 -0
  1032. package/lib/work/CaseView/Details.mocks.js +7 -0
  1033. package/lib/work/CaseView/Details.mocks.js.map +1 -0
  1034. package/lib/work/CaseView/FileService.mock.d.ts.map +1 -1
  1035. package/lib/work/CaseView/FileService.mock.js +162 -0
  1036. package/lib/work/CaseView/FileService.mock.js.map +1 -0
  1037. package/lib/work/CaseView/MobileCaseView.stories.js +28 -0
  1038. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -0
  1039. package/lib/work/CaseView/Pulse.mocks.js +25 -0
  1040. package/lib/work/CaseView/Pulse.mocks.js.map +1 -0
  1041. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +194 -0
  1042. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -0
  1043. package/lib/work/Confirmation/Confirmation.stories.d.ts +1 -1
  1044. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1045. package/lib/work/Confirmation/Confirmation.stories.js +26 -0
  1046. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -0
  1047. package/lib/work/Confirmation/Confirmation.styles.d.ts +2 -0
  1048. package/lib/work/Confirmation/Confirmation.styles.d.ts.map +1 -0
  1049. package/lib/work/Confirmation/Confirmation.styles.js +7 -0
  1050. package/lib/work/Confirmation/Confirmation.styles.js.map +1 -0
  1051. package/lib/work/Details/Details.stories.js +62 -0
  1052. package/lib/work/Details/Details.stories.js.map +1 -0
  1053. package/lib/work/Glimpse/Glimpse.stories.js +40 -0
  1054. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -0
  1055. package/lib/work/SearchResults/SearchResults.mocks.js +97 -0
  1056. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -0
  1057. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1058. package/lib/work/SearchResults/SearchResults.stories.js +192 -0
  1059. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -0
  1060. package/lib/work/SearchResults/SearchResults.styles.d.ts +5 -0
  1061. package/lib/work/SearchResults/SearchResults.styles.d.ts.map +1 -0
  1062. package/lib/work/SearchResults/SearchResults.styles.js +12 -0
  1063. package/lib/work/SearchResults/SearchResults.styles.js.map +1 -0
  1064. package/lib/work/Stages/Stages.stories.js +64 -0
  1065. package/lib/work/Stages/Stages.stories.js.map +1 -0
  1066. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts +22 -0
  1067. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -0
  1068. package/lib/work/Stakeholders/Stakeholders.mocks.js +36 -0
  1069. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -0
  1070. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -5
  1071. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1072. package/lib/work/Stakeholders/Stakeholders.stories.js +111 -0
  1073. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -0
  1074. package/lib/work/Tags/Tags.stories.js +62 -0
  1075. package/lib/work/Tags/Tags.stories.js.map +1 -0
  1076. package/lib/work/Tasks/TaskList.stories.js +18 -0
  1077. package/lib/work/Tasks/TaskList.stories.js.map +1 -0
  1078. package/lib/work/Tasks/Tasks.stories.js +80 -0
  1079. package/lib/work/Tasks/Tasks.stories.js.map +1 -0
  1080. package/lib/work/Timeline/Timeline.mocks.js +117 -0
  1081. package/lib/work/Timeline/Timeline.mocks.js.map +1 -0
  1082. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1083. package/lib/work/Timeline/Timeline.stories.js +44 -0
  1084. package/lib/work/Timeline/Timeline.stories.js.map +1 -0
  1085. package/package.json +13 -11
  1086. package/lib/build/AppShell/AppShell.stories.jsx +0 -194
  1087. package/lib/build/AppShell/AppShell.stories.jsx.map +0 -1
  1088. package/lib/core/Avatar/Avatar.stories.jsx +0 -50
  1089. package/lib/core/Avatar/Avatar.stories.jsx.map +0 -1
  1090. package/lib/core/Banner/Banner.stories.jsx +0 -125
  1091. package/lib/core/Banner/Banner.stories.jsx.map +0 -1
  1092. package/lib/core/Button/Button.stories.jsx +0 -103
  1093. package/lib/core/Button/Button.stories.jsx.map +0 -1
  1094. package/lib/core/Configuration/Configuration.stories.jsx +0 -125
  1095. package/lib/core/Configuration/Configuration.stories.jsx.map +0 -1
  1096. package/lib/core/DateTime/DateTimeDisplay.stories.jsx +0 -46
  1097. package/lib/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -1
  1098. package/lib/core/FieldGroup/FieldGroupList.stories.jsx +0 -183
  1099. package/lib/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -1
  1100. package/lib/core/File/FileDisplay.stories.jsx +0 -100
  1101. package/lib/core/File/FileDisplay.stories.jsx.map +0 -1
  1102. package/lib/core/Flex/FlexContainer.stories.jsx +0 -151
  1103. package/lib/core/Flex/FlexContainer.stories.jsx.map +0 -1
  1104. package/lib/core/Flex/FlexItem.stories.jsx +0 -71
  1105. package/lib/core/Flex/FlexItem.stories.jsx.map +0 -1
  1106. package/lib/core/Form/Form.stories.jsx +0 -196
  1107. package/lib/core/Form/Form.stories.jsx.map +0 -1
  1108. package/lib/core/Grid/GridContainer.stories.jsx +0 -161
  1109. package/lib/core/Grid/GridContainer.stories.jsx.map +0 -1
  1110. package/lib/core/Grid/GridItem.stories.jsx +0 -74
  1111. package/lib/core/Grid/GridItem.stories.jsx.map +0 -1
  1112. package/lib/core/Icon/Icon.stories.jsx +0 -84
  1113. package/lib/core/Icon/Icon.stories.jsx.map +0 -1
  1114. package/lib/core/IconPicker/IconPicker.stories.jsx +0 -39
  1115. package/lib/core/IconPicker/IconPicker.stories.jsx.map +0 -1
  1116. package/lib/core/Lightbox/Lightbox.stories.jsx +0 -106
  1117. package/lib/core/Lightbox/Lightbox.stories.jsx.map +0 -1
  1118. package/lib/core/Link/Link.stories.jsx +0 -32
  1119. package/lib/core/Link/Link.stories.jsx.map +0 -1
  1120. package/lib/core/List/CommaSeparatedList.stories.jsx +0 -33
  1121. package/lib/core/List/CommaSeparatedList.stories.jsx.map +0 -1
  1122. package/lib/core/List/OrderedList.stories.jsx +0 -38
  1123. package/lib/core/List/OrderedList.stories.jsx.map +0 -1
  1124. package/lib/core/List/UnorderedList.stories.jsx +0 -38
  1125. package/lib/core/List/UnorderedList.stories.jsx.map +0 -1
  1126. package/lib/core/Menu/Menu.stories.jsx +0 -166
  1127. package/lib/core/Menu/Menu.stories.jsx.map +0 -1
  1128. package/lib/core/Modal/Modal.mocks.jsx +0 -44
  1129. package/lib/core/Modal/Modal.mocks.jsx.map +0 -1
  1130. package/lib/core/Number/Number.stories.jsx +0 -110
  1131. package/lib/core/Number/Number.stories.jsx.map +0 -1
  1132. package/lib/core/PageTemplates/PageTemplates.stories.jsx +0 -233
  1133. package/lib/core/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  1134. package/lib/core/Paragraph/ParagraphDisplay.stories.jsx +0 -12
  1135. package/lib/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -1
  1136. package/lib/core/Popover/Popover.stories.jsx +0 -184
  1137. package/lib/core/Popover/Popover.stories.jsx.map +0 -1
  1138. package/lib/core/Rating/Rating.stories.jsx +0 -21
  1139. package/lib/core/Rating/Rating.stories.jsx.map +0 -1
  1140. package/lib/core/Sentiment/Sentiment.stories.jsx +0 -39
  1141. package/lib/core/Sentiment/Sentiment.stories.jsx.map +0 -1
  1142. package/lib/core/SummaryList/SummaryList.stories.jsx +0 -131
  1143. package/lib/core/SummaryList/SummaryList.stories.jsx.map +0 -1
  1144. package/lib/core/Toaster/Toaster.stories.jsx +0 -17
  1145. package/lib/core/Toaster/Toaster.stories.jsx.map +0 -1
  1146. package/lib/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -145
  1147. package/lib/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -1
  1148. package/lib/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -62
  1149. package/lib/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
  1150. package/lib/social/Chat/Chat.stories.jsx +0 -537
  1151. package/lib/social/Chat/Chat.stories.jsx.map +0 -1
  1152. package/lib/social/Feed/FeedNewPost.stories.jsx +0 -80
  1153. package/lib/social/Feed/FeedNewPost.stories.jsx.map +0 -1
  1154. package/lib/social/Feed/FeedPost.stories.jsx +0 -248
  1155. package/lib/social/Feed/FeedPost.stories.jsx.map +0 -1
  1156. package/lib/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -30
  1157. package/lib/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -1
  1158. package/lib/work/CaseView/FileService.mock.jsx +0 -139
  1159. package/lib/work/CaseView/FileService.mock.jsx.map +0 -1
  1160. package/lib/work/Confirmation/Confirmation.stories.jsx +0 -17
  1161. package/lib/work/Confirmation/Confirmation.stories.jsx.map +0 -1
  1162. package/lib/work/SearchResults/SearchResults.stories.jsx +0 -205
  1163. package/lib/work/SearchResults/SearchResults.stories.jsx.map +0 -1
  1164. package/lib/work/Stakeholders/Stakeholders.stories.jsx +0 -118
  1165. package/lib/work/Stakeholders/Stakeholders.stories.jsx.map +0 -1
  1166. package/lib/work/Timeline/Timeline.stories.jsx +0 -43
  1167. package/lib/work/Timeline/Timeline.stories.jsx.map +0 -1
@@ -0,0 +1,299 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useRef, useState } from 'react';
3
+ import { action } from '@storybook/addon-actions';
4
+ import { array, number, boolean } from '@storybook/addon-knobs';
5
+ import { Button, createUID, DateInput, DateTimeInput, Form, Grid, Input, MenuButton, Text, TimeInput } from '@pega/cosmos-react-core';
6
+ import { Timeline } from '@pega/cosmos-react-work';
7
+ import { TaskManager, TaskView } from '@pega/cosmos-react-cs';
8
+ import { activity } from '@pega/cosmos-react-demos/lib/work/Timeline/Timeline.mocks';
9
+ import { TaskPickerMockData } from './TaskManager.mocks';
10
+ export default {
11
+ title: 'Customer Service/TaskManager',
12
+ component: TaskManager
13
+ };
14
+ const WRAP_UP_TASK_ID = createUID();
15
+ const TaskPickerData = TaskPickerMockData;
16
+ export const TaskManagerDemo = () => {
17
+ const [serviceTasks, setServiceTasks] = useState([]);
18
+ const [isWrapUpTabVisible, setIsWrapUpTabVisible] = useState(false);
19
+ const formActionsElemRef = useRef(null);
20
+ const taskManagerRef = useRef(null);
21
+ const [activeTaskId, setActiveTaskId] = useState(undefined);
22
+ const addTaskButtonRef = useRef(null);
23
+ useEffect(() => {
24
+ if (formActionsElemRef.current) {
25
+ formActionsElemRef.current.focus();
26
+ formActionsElemRef.current.scrollIntoView(false);
27
+ }
28
+ else if (addTaskButtonRef.current) {
29
+ addTaskButtonRef.current.scrollIntoView(false);
30
+ }
31
+ }, [activeTaskId]);
32
+ const switchTab = (taskList, taskId) => {
33
+ const taskIndex = taskList.findIndex(task => {
34
+ return task.id === taskId;
35
+ });
36
+ let nextTaskId = '';
37
+ if (taskIndex >= 0 && taskIndex < taskList.length - 1) {
38
+ nextTaskId = taskList[taskIndex + 1].id;
39
+ setActiveTaskId(nextTaskId);
40
+ }
41
+ else if (taskIndex === taskList.length - 1 && taskList.length > 1) {
42
+ setActiveTaskId(taskList[0].id);
43
+ }
44
+ else
45
+ setActiveTaskId(undefined);
46
+ };
47
+ const performTaskAction = (taskId, taskAction) => {
48
+ if (taskId === WRAP_UP_TASK_ID) {
49
+ if (taskAction === 'cancel') {
50
+ setServiceTasks(prevTasks => {
51
+ return prevTasks
52
+ .filter(task => task.variant !== 'queued')
53
+ .map(task => {
54
+ if (task.variant !== 'resolved') {
55
+ return {
56
+ ...task,
57
+ variant: 'cancelled',
58
+ status: {
59
+ variant: 'urgent',
60
+ text: 'Resolve Rejected'
61
+ }
62
+ };
63
+ }
64
+ return task;
65
+ });
66
+ });
67
+ setActiveTaskId(undefined);
68
+ }
69
+ else if (taskAction === 'submit') {
70
+ setServiceTasks(prevTasks => {
71
+ return prevTasks
72
+ .filter(task => task.variant !== 'queued')
73
+ .map(task => {
74
+ if (task.variant !== 'cancelled') {
75
+ return {
76
+ ...task,
77
+ variant: 'resolved',
78
+ status: {
79
+ variant: 'info',
80
+ text: 'Resolve Completed'
81
+ }
82
+ };
83
+ }
84
+ return task;
85
+ });
86
+ });
87
+ setActiveTaskId(undefined);
88
+ }
89
+ else if (taskAction === 'launch') {
90
+ setActiveTaskId(WRAP_UP_TASK_ID);
91
+ setIsWrapUpTabVisible(true);
92
+ }
93
+ }
94
+ else if (taskAction === 'launch') {
95
+ setActiveTaskId(taskId);
96
+ setServiceTasks(prevTasks => {
97
+ return prevTasks.map(task => {
98
+ if (task.id === taskId) {
99
+ const variant = task.variant === 'queued' ? 'in-progress' : task.variant;
100
+ return {
101
+ ...task,
102
+ icon: 'clipboard',
103
+ variant,
104
+ status: {
105
+ variant: (variant === 'in-progress'
106
+ ? 'pending'
107
+ : task.status?.variant) || 'info',
108
+ text: (variant === 'in-progress' ? 'In progress' : task.status?.text) || ''
109
+ }
110
+ };
111
+ }
112
+ return task;
113
+ });
114
+ });
115
+ }
116
+ else if (taskAction === 'cancel') {
117
+ switchTab(serviceTasks, taskId);
118
+ const taskIndex = serviceTasks.findIndex(task => {
119
+ return task.id === taskId;
120
+ });
121
+ const nextTaskId = taskIndex >= 0 && taskIndex < serviceTasks.length - 1 && serviceTasks[taskIndex + 1].id;
122
+ setServiceTasks(prevTasks => {
123
+ return prevTasks.map(task => {
124
+ if (task.id === taskId && task.variant !== 'resolved' && task.variant !== 'cancelled') {
125
+ return {
126
+ ...task,
127
+ icon: 'check',
128
+ variant: 'cancelled',
129
+ status: {
130
+ variant: 'urgent',
131
+ text: 'Resolve Rejected'
132
+ }
133
+ };
134
+ }
135
+ if (task.id === nextTaskId &&
136
+ task.variant !== 'resolved' &&
137
+ task.variant !== 'cancelled') {
138
+ const variant = task.variant === 'queued' ? 'in-progress' : task.variant;
139
+ return {
140
+ ...task,
141
+ icon: 'clipboard',
142
+ variant,
143
+ status: {
144
+ variant: 'pending',
145
+ text: 'In Progress'
146
+ }
147
+ };
148
+ }
149
+ return task;
150
+ });
151
+ });
152
+ }
153
+ else if (taskAction === 'submit') {
154
+ switchTab(serviceTasks, taskId);
155
+ const taskIndex = serviceTasks.findIndex(task => {
156
+ return task.id === taskId;
157
+ });
158
+ const nextTaskId = taskIndex >= 0 && taskIndex < serviceTasks.length - 1 && serviceTasks[taskIndex + 1].id;
159
+ setServiceTasks(prevTasks => {
160
+ return prevTasks.map(task => {
161
+ if (task.id === taskId && task.variant !== 'resolved' && task.variant !== 'cancelled') {
162
+ return {
163
+ ...task,
164
+ icon: 'check',
165
+ variant: 'resolved',
166
+ status: {
167
+ variant: 'info',
168
+ text: 'Resolve Completed'
169
+ }
170
+ };
171
+ }
172
+ if (task.id === nextTaskId &&
173
+ task.variant !== 'resolved' &&
174
+ task.variant !== 'cancelled') {
175
+ const variant = task.variant === 'queued' ? 'in-progress' : task.variant;
176
+ return {
177
+ ...task,
178
+ icon: 'clipboard',
179
+ variant,
180
+ status: {
181
+ variant: 'pending',
182
+ text: 'In Progress'
183
+ }
184
+ };
185
+ }
186
+ return task;
187
+ });
188
+ });
189
+ }
190
+ else if (taskAction === 'dismiss') {
191
+ setServiceTasks(prevTasks => {
192
+ return prevTasks.filter(task => task.id !== taskId);
193
+ });
194
+ }
195
+ };
196
+ const renderTasks = (selections) => {
197
+ const newTasks = selections.map((selection, i) => {
198
+ const taskId = createUID();
199
+ if (i === 0) {
200
+ return {
201
+ id: taskId,
202
+ icon: 'nothing',
203
+ name: selection.primary,
204
+ variant: 'in-progress',
205
+ status: {
206
+ variant: 'pending',
207
+ text: 'In Progress'
208
+ }
209
+ };
210
+ }
211
+ return {
212
+ id: taskId,
213
+ icon: 'clipboard',
214
+ name: selection.primary,
215
+ variant: 'queued',
216
+ status: {
217
+ variant: 'success',
218
+ text: 'Queued'
219
+ }
220
+ };
221
+ });
222
+ setServiceTasks(prevTasks => {
223
+ return [...newTasks, ...prevTasks];
224
+ });
225
+ if (newTasks.length > 0) {
226
+ performTaskAction(newTasks[0].id, 'launch');
227
+ }
228
+ };
229
+ const taskName = serviceTasks.find(task => task.id === activeTaskId)?.name ?? '';
230
+ /* Preparing form fields from added task */
231
+ const taskFields = TaskPickerData.tasks
232
+ .flatMap(task => task.items ?? [])
233
+ .find(({ primary }) => primary === taskName)?.fields ?? [];
234
+ const formElements = taskFields.map((field, i) => {
235
+ const lowerFieldName = field.toLocaleLowerCase();
236
+ if (lowerFieldName.includes('date') && lowerFieldName.includes('time')) {
237
+ /* eslint-disable react/no-array-index-key */
238
+ return _jsx(DateTimeInput, { label: field }, i);
239
+ }
240
+ if (lowerFieldName.includes('date')) {
241
+ return _jsx(DateInput, { label: field }, i);
242
+ }
243
+ if (lowerFieldName.includes('time')) {
244
+ return _jsx(TimeInput, { label: field }, i);
245
+ }
246
+ return _jsx(Input, { label: field }, i);
247
+ /* eslint-enable react/no-array-index-key */
248
+ });
249
+ const formFields = formElements.length <= 3 ? (_jsx(_Fragment, { children: formElements }, void 0)) : (_jsx(Grid, { container: {
250
+ cols: 'repeat(2, 1fr)',
251
+ colGap: number('colGap', 2),
252
+ rowGap: number('rowGap', 2)
253
+ }, children: formElements }, void 0));
254
+ const serviceTasksEmpty = boolean('Tasks empty', false);
255
+ return (_jsx(TaskManager, { ref: taskManagerRef, tasks: serviceTasksEmpty
256
+ ? []
257
+ : serviceTasks.map(task => {
258
+ if (task.id === activeTaskId) {
259
+ return {
260
+ ...task,
261
+ active: true
262
+ };
263
+ }
264
+ return task;
265
+ }), emptyText: 'No tasks added', banner: {
266
+ icon: 'headset',
267
+ content: 'Hi Ms. Ventura, I see that you are interested in changing your monthly due date, is that correct ?'
268
+ }, onTaskLaunch: (id) => {
269
+ performTaskAction(id, 'launch');
270
+ }, onTaskDismiss: (id) => {
271
+ performTaskAction(id, 'dismiss');
272
+ }, addTask: {
273
+ items: TaskPickerMockData.tasks,
274
+ onAdd: renderTasks
275
+ }, wrapUp: {
276
+ onWrapUp: () => {
277
+ performTaskAction(WRAP_UP_TASK_ID, 'launch');
278
+ },
279
+ active: activeTaskId === WRAP_UP_TASK_ID,
280
+ showTab: isWrapUpTabVisible
281
+ }, main: _jsx(TaskView, { header: _jsx(Text, { variant: 'h2', children: activeTaskId === WRAP_UP_TASK_ID
282
+ ? 'Wrap up'
283
+ : serviceTasks.find(task => task.id === activeTaskId)?.name }, void 0), actions: _jsx(MenuButton, { ref: formActionsElemRef, menu: {
284
+ items: array('actions', [
285
+ 'Option Number 1',
286
+ 'Option Number 2',
287
+ 'Option Number 3'
288
+ ]).map(name => ({
289
+ primary: name,
290
+ id: name,
291
+ onClick: action(`Clicked ${name}`)
292
+ }))
293
+ }, text: 'Actions' }, void 0), children: _jsx(Form, { id: 'forming', actions: _jsxs(_Fragment, { children: [_jsx(Button, { name: 'Cancel', onClick: () => {
294
+ performTaskAction(activeTaskId, 'cancel');
295
+ }, children: "Cancel" }, void 0), _jsx("div", { children: _jsx(Button, { name: 'Submit', variant: 'primary', onClick: () => {
296
+ performTaskAction(activeTaskId, 'submit');
297
+ }, children: "Submit" }, void 0) }, void 0)] }, void 0), children: _jsx(Grid, { container: { rowGap: 2 }, children: activeTaskId === WRAP_UP_TASK_ID ? (_jsx(Timeline, { activity: activity, currentTime: new Date() }, void 0)) : (formFields) }, void 0) }, void 0) }, void 0) }, void 0));
298
+ };
299
+ //# sourceMappingURL=TaskManager.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskManager.stories.js","sourceRoot":"","sources":["../../../src/cs/TaskManager/TaskManager.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,aAAa,EACb,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,UAAU,EAGV,IAAI,EACJ,SAAS,EACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAa,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,QAAQ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AAI,EAAE,WAAI,CAC1D,CAAC,CAAC,CAAC,CACF,UAAU,CACX,WACI,WACF,WACE,WAEb,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport { array, number, boolean } from '@storybook/addon-knobs';\n\nimport {\n Button,\n createUID,\n DateInput,\n DateTimeInput,\n Form,\n Grid,\n Input,\n MenuButton,\n MenuItemProps,\n StatusProps,\n Text,\n TimeInput\n} from '@pega/cosmos-react-core';\nimport { Timeline } from '@pega/cosmos-react-work';\nimport { TaskManager, TaskView, TaskProps } from '@pega/cosmos-react-cs';\nimport { activity } from '@pega/cosmos-react-demos/lib/work/Timeline/Timeline.mocks';\n\nimport { TaskPickerMockData } from './TaskManager.mocks';\n\nexport default {\n title: 'Customer Service/TaskManager',\n component: TaskManager\n};\n\nconst WRAP_UP_TASK_ID = createUID();\n\ntype TaskActions = 'cancel' | 'launch' | 'dismiss' | 'submit';\n\nconst TaskPickerData = TaskPickerMockData;\n\nexport const TaskManagerDemo = () => {\n const [serviceTasks, setServiceTasks] = useState<TaskProps[]>([]);\n const [isWrapUpTabVisible, setIsWrapUpTabVisible] = useState<boolean>(false);\n\n const formActionsElemRef = useRef<HTMLButtonElement>(null);\n const taskManagerRef = useRef<HTMLDivElement>(null);\n const [activeTaskId, setActiveTaskId] = useState<string | undefined>(undefined);\n const addTaskButtonRef = useRef<HTMLButtonElement>(null);\n\n useEffect(() => {\n if (formActionsElemRef.current) {\n formActionsElemRef.current.focus();\n formActionsElemRef.current.scrollIntoView(false);\n } else if (addTaskButtonRef.current) {\n addTaskButtonRef.current.scrollIntoView(false);\n }\n }, [activeTaskId]);\n\n const switchTab = (taskList: TaskProps[], taskId?: TaskProps['id']) => {\n const taskIndex = taskList.findIndex(task => {\n return task.id === taskId;\n });\n let nextTaskId = '';\n if (taskIndex >= 0 && taskIndex < taskList.length - 1) {\n nextTaskId = taskList[taskIndex + 1].id;\n setActiveTaskId(nextTaskId);\n } else if (taskIndex === taskList.length - 1 && taskList.length > 1) {\n setActiveTaskId(taskList[0].id);\n } else setActiveTaskId(undefined);\n };\n\n const performTaskAction = (taskId: string | undefined, taskAction: TaskActions) => {\n if (taskId === WRAP_UP_TASK_ID) {\n if (taskAction === 'cancel') {\n setServiceTasks(prevTasks => {\n return prevTasks\n .filter(task => task.variant !== 'queued')\n .map(task => {\n if (task.variant !== 'resolved') {\n return {\n ...task,\n variant: 'cancelled',\n status: {\n variant: 'urgent' as StatusProps['variant'],\n text: 'Resolve Rejected'\n }\n };\n }\n return task;\n });\n });\n setActiveTaskId(undefined);\n } else if (taskAction === 'submit') {\n setServiceTasks(prevTasks => {\n return prevTasks\n .filter(task => task.variant !== 'queued')\n .map(task => {\n if (task.variant !== 'cancelled') {\n return {\n ...task,\n variant: 'resolved',\n status: {\n variant: 'info' as StatusProps['variant'],\n text: 'Resolve Completed'\n }\n };\n }\n return task;\n });\n });\n setActiveTaskId(undefined);\n } else if (taskAction === 'launch') {\n setActiveTaskId(WRAP_UP_TASK_ID);\n setIsWrapUpTabVisible(true);\n }\n } else if (taskAction === 'launch') {\n setActiveTaskId(taskId);\n setServiceTasks(prevTasks => {\n return prevTasks.map(task => {\n if (task.id === taskId) {\n const variant = task.variant === 'queued' ? 'in-progress' : task.variant;\n return {\n ...task,\n icon: 'clipboard',\n variant,\n status: {\n variant:\n (variant === 'in-progress'\n ? ('pending' as StatusProps['variant'])\n : task.status?.variant) || ('info' as StatusProps['variant']),\n text: (variant === 'in-progress' ? 'In progress' : task.status?.text) || ''\n }\n };\n }\n return task;\n });\n });\n } else if (taskAction === 'cancel') {\n switchTab(serviceTasks, taskId);\n const taskIndex = serviceTasks.findIndex(task => {\n return task.id === taskId;\n });\n const nextTaskId =\n taskIndex >= 0 && taskIndex < serviceTasks.length - 1 && serviceTasks[taskIndex + 1].id;\n setServiceTasks(prevTasks => {\n return prevTasks.map(task => {\n if (task.id === taskId && task.variant !== 'resolved' && task.variant !== 'cancelled') {\n return {\n ...task,\n icon: 'check',\n variant: 'cancelled',\n status: {\n variant: 'urgent' as StatusProps['variant'],\n text: 'Resolve Rejected'\n }\n };\n }\n if (\n task.id === nextTaskId &&\n task.variant !== 'resolved' &&\n task.variant !== 'cancelled'\n ) {\n const variant = task.variant === 'queued' ? 'in-progress' : task.variant;\n return {\n ...task,\n icon: 'clipboard',\n variant,\n status: {\n variant: 'pending' as StatusProps['variant'],\n text: 'In Progress'\n }\n };\n }\n\n return task;\n });\n });\n } else if (taskAction === 'submit') {\n switchTab(serviceTasks, taskId);\n const taskIndex = serviceTasks.findIndex(task => {\n return task.id === taskId;\n });\n const nextTaskId =\n taskIndex >= 0 && taskIndex < serviceTasks.length - 1 && serviceTasks[taskIndex + 1].id;\n setServiceTasks(prevTasks => {\n return prevTasks.map(task => {\n if (task.id === taskId && task.variant !== 'resolved' && task.variant !== 'cancelled') {\n return {\n ...task,\n icon: 'check',\n variant: 'resolved',\n status: {\n variant: 'info' as StatusProps['variant'],\n text: 'Resolve Completed'\n }\n };\n }\n if (\n task.id === nextTaskId &&\n task.variant !== 'resolved' &&\n task.variant !== 'cancelled'\n ) {\n const variant = task.variant === 'queued' ? 'in-progress' : task.variant;\n return {\n ...task,\n icon: 'clipboard',\n variant,\n status: {\n variant: 'pending' as StatusProps['variant'],\n text: 'In Progress'\n }\n };\n }\n\n return task;\n });\n });\n } else if (taskAction === 'dismiss') {\n setServiceTasks(prevTasks => {\n return prevTasks.filter(task => task.id !== taskId);\n });\n }\n };\n\n const renderTasks = (selections: MenuItemProps[]) => {\n const newTasks = selections.map((selection, i) => {\n const taskId = createUID();\n if (i === 0) {\n return {\n id: taskId,\n icon: 'nothing',\n name: selection.primary,\n variant: 'in-progress' as TaskProps['variant'],\n status: {\n variant: 'pending' as StatusProps['variant'],\n text: 'In Progress'\n }\n };\n }\n return {\n id: taskId,\n icon: 'clipboard',\n name: selection.primary,\n variant: 'queued' as TaskProps['variant'],\n status: {\n variant: 'success' as StatusProps['variant'],\n text: 'Queued'\n }\n };\n });\n setServiceTasks(prevTasks => {\n return [...newTasks, ...prevTasks];\n });\n if (newTasks.length > 0) {\n performTaskAction(newTasks[0].id, 'launch');\n }\n };\n const taskName = serviceTasks.find(task => task.id === activeTaskId)?.name ?? '';\n\n /* Preparing form fields from added task */\n\n const taskFields =\n TaskPickerData.tasks\n .flatMap(task => task.items ?? [])\n .find(({ primary }) => primary === taskName)?.fields ?? [];\n\n const formElements = taskFields.map((field, i) => {\n const lowerFieldName = field.toLocaleLowerCase();\n if (lowerFieldName.includes('date') && lowerFieldName.includes('time')) {\n /* eslint-disable react/no-array-index-key */\n return <DateTimeInput label={field} key={i} />;\n }\n if (lowerFieldName.includes('date')) {\n return <DateInput label={field} key={i} />;\n }\n if (lowerFieldName.includes('time')) {\n return <TimeInput label={field} key={i} />;\n }\n return <Input label={field} key={i} />;\n /* eslint-enable react/no-array-index-key */\n });\n\n const formFields =\n formElements.length <= 3 ? (\n <>{formElements}</>\n ) : (\n <Grid\n container={{\n cols: 'repeat(2, 1fr)',\n colGap: number('colGap', 2),\n rowGap: number('rowGap', 2)\n }}\n >\n {formElements}\n </Grid>\n );\n\n const serviceTasksEmpty = boolean('Tasks empty', false);\n return (\n <TaskManager\n ref={taskManagerRef}\n tasks={\n serviceTasksEmpty\n ? []\n : serviceTasks.map(task => {\n if (task.id === activeTaskId) {\n return {\n ...task,\n active: true\n };\n }\n return task;\n })\n }\n emptyText='No tasks added'\n banner={{\n icon: 'headset',\n content:\n 'Hi Ms. Ventura, I see that you are interested in changing your monthly due date, is that correct ?'\n }}\n onTaskLaunch={(id: string) => {\n performTaskAction(id, 'launch');\n }}\n onTaskDismiss={(id: string) => {\n performTaskAction(id, 'dismiss');\n }}\n addTask={{\n items: TaskPickerMockData.tasks,\n onAdd: renderTasks\n }}\n wrapUp={{\n onWrapUp: () => {\n performTaskAction(WRAP_UP_TASK_ID, 'launch');\n },\n active: activeTaskId === WRAP_UP_TASK_ID,\n showTab: isWrapUpTabVisible\n }}\n main={\n <TaskView\n header={\n <Text variant='h2'>\n {activeTaskId === WRAP_UP_TASK_ID\n ? 'Wrap up'\n : serviceTasks.find(task => task.id === activeTaskId)?.name}\n </Text>\n }\n actions={\n <MenuButton\n ref={formActionsElemRef}\n menu={{\n items: array('actions', [\n 'Option Number 1',\n 'Option Number 2',\n 'Option Number 3'\n ]).map(name => ({\n primary: name,\n id: name,\n onClick: action(`Clicked ${name}`)\n }))\n }}\n text='Actions'\n />\n }\n >\n <Form\n id='forming'\n actions={\n <>\n <Button\n name='Cancel'\n onClick={() => {\n performTaskAction(activeTaskId, 'cancel');\n }}\n >\n Cancel\n </Button>\n <div>\n <Button\n name='Submit'\n variant='primary'\n onClick={() => {\n performTaskAction(activeTaskId, 'submit');\n }}\n >\n Submit\n </Button>\n </div>\n </>\n }\n >\n <Grid container={{ rowGap: 2 }}>\n {activeTaskId === WRAP_UP_TASK_ID ? (\n <Timeline activity={activity} currentTime={new Date()} />\n ) : (\n formFields\n )}\n </Grid>\n </Form>\n </TaskView>\n }\n />\n );\n};\n"]}
@@ -0,0 +1,113 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useCallback, useState } from 'react';
3
+ import { action } from '@storybook/addon-actions';
4
+ import { optionsKnob } from '@storybook/addon-knobs';
5
+ import styled from 'styled-components';
6
+ import { Button, Flex, createUID } from '@pega/cosmos-react-core';
7
+ import { DragDropManager, DragDropList } from '@pega/cosmos-react-dnd';
8
+ export default {
9
+ title: 'DnD/DragDropList',
10
+ component: DragDropList,
11
+ parameters: {
12
+ layout: 'fullscreen'
13
+ }
14
+ };
15
+ // Helper function to create demo arrays
16
+ const createMockDataArray = (length, type, listId) => {
17
+ return Array.from({ length }, (_, i) => {
18
+ const id = `${i}`;
19
+ return {
20
+ type,
21
+ id: createUID(),
22
+ data: {
23
+ content: `Item ${listId}:${id}`,
24
+ color: `hsl(${(i * 360) / length}deg, 100%, 66%)`
25
+ }
26
+ };
27
+ });
28
+ };
29
+ // styled demo list component
30
+ const StyledEmptyItem = styled.li `
31
+ display: grid;
32
+ padding: 1rem;
33
+ gap: 1rem;
34
+ `;
35
+ // Demo component used to render list items
36
+ const EmptyItem = () => {
37
+ return _jsx(StyledEmptyItem, { children: "No Items" }, void 0);
38
+ };
39
+ // styled demo list component
40
+ const StyledDemoDragDropList = styled.ul `
41
+ list-style: none;
42
+ position: relative;
43
+ display: flex;
44
+ flex-direction: column;
45
+ flex-grow: 1;
46
+ padding: 0.5rem;
47
+ `;
48
+ // styled demo list item component
49
+ const StyledDemoDragDropListItem = styled.li `
50
+ border: 0.0625rem dashed gray;
51
+ margin: 0.5rem;
52
+ padding: 0.5rem;
53
+ background: white;
54
+ cursor: ${({ useDragHandle }) => (useDragHandle ? 'auto' : 'move')};
55
+ transition: transform 0.3s;
56
+
57
+ .handle {
58
+ background: pink;
59
+ width: 1rem;
60
+ height: 1rem;
61
+ display: inline-block;
62
+ margin-right: 0.0625rem;
63
+ cursor: move;
64
+ }
65
+ `;
66
+ // Demo component used to render list items
67
+ const DemoListItem = ({ id, type, dragRef, data, isDragging, ...restProps }) => {
68
+ return (_jsx(StyledDemoDragDropListItem, { ref: dragRef, style: {
69
+ opacity: isDragging ? '0.5' : undefined,
70
+ backgroundColor: data?.color ?? 'white'
71
+ }, ...restProps, children: data?.content }, void 0));
72
+ };
73
+ const pullModes = {
74
+ remove: 'remove',
75
+ clone: 'clone'
76
+ };
77
+ const pushModes = {
78
+ insert: 'insert',
79
+ prepend: 'prepend',
80
+ append: 'append',
81
+ sort: 'sort'
82
+ };
83
+ const sort = (a, b) => {
84
+ return a.data.content.localeCompare(b.data.content);
85
+ };
86
+ const itemType = Symbol('');
87
+ const mockDataArrayA = createMockDataArray(10, itemType, 'A');
88
+ const mockDataArrayB = createMockDataArray(4, itemType, 'B');
89
+ // -----------------------------------------------------------------------------
90
+ // DragDropList
91
+ // -----------------------------------------------------------------------------
92
+ export const DragDropListDemo = () => {
93
+ const pullMode = optionsKnob('Pull Mode', pullModes, 'remove', { display: 'inline-radio' });
94
+ const pushMode = optionsKnob('Push Mode', pushModes, 'insert', { display: 'inline-radio' });
95
+ const [arrayA, setArrayA] = useState(mockDataArrayA);
96
+ const [arrayB, setArrayB] = useState(mockDataArrayB);
97
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: useCallback(() => {
98
+ setArrayA(items => {
99
+ return [...items, ...createMockDataArray(1, itemType, 'A-new')];
100
+ });
101
+ }, []), children: "Add to List A" }, void 0), _jsx(Button, { onClick: useCallback(() => {
102
+ setArrayB(items => {
103
+ return [...items, ...createMockDataArray(1, itemType, 'B-new')];
104
+ });
105
+ }, []), children: "Add to List B" }, void 0), _jsx(DragDropManager, { children: _jsxs(Flex, { container: true, style: { minHeight: '100vh' }, children: [_jsx(DragDropList, { as: StyledDemoDragDropList, id: 'list1', accept: itemType, pullMode: pullMode, pushMode: pushMode === 'sort' ? sort : pushMode, items: arrayA, itemRenderer: DemoListItem, emptyRenderer: EmptyItem, onChange: newArray => {
106
+ setArrayA(newArray);
107
+ action('List A changed')(newArray);
108
+ }, style: { background: 'palegreen' } }, void 0), _jsx(DragDropList, { as: StyledDemoDragDropList, id: 'list2', accept: itemType, pullMode: pullMode, pushMode: pushMode === 'sort' ? sort : pushMode, items: arrayB, itemRenderer: DemoListItem, emptyRenderer: EmptyItem, onChange: newArray => {
109
+ setArrayB(newArray);
110
+ action('List B changed')(newArray);
111
+ }, style: { background: 'lightblue' } }, void 0)] }, void 0) }, void 0)] }, void 0));
112
+ };
113
+ //# sourceMappingURL=DragDropList.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragDropList.stories.js","sourceRoot":"","sources":["../../../src/dnd/DragDropList/DragDropList.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AA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C,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,SAAS,EACxB,QAAQ,EAAE,QAAQ,CAAC,EAAE;gCACnB,SAAS,CAAC,QAAQ,CAAC,CAAC;gCACpB,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;4BACrC,CAAC,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,WAClC,EAEF,KAAC,YAAY,IACX,EAAE,EAAE,sBAAsB,EAC1B,EAAE,EAAC,OAAO,EACV,MAAM,EAAE,QAAQ,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAC/C,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,SAAS,EACxB,QAAQ,EAAE,QAAQ,CAAC,EAAE;gCACnB,SAAS,CAAC,QAAQ,CAAC,CAAC;gCACpB,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;4BACrC,CAAC,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,WAClC,YACG,WACS,YACjB,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useCallback, useState } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport { optionsKnob } from '@storybook/addon-knobs';\nimport styled from 'styled-components';\n\nimport { Button, Flex, createUID } from '@pega/cosmos-react-core';\nimport {\n DragDropManager,\n DraggableItem,\n DraggableProps,\n DragDropList,\n ItemRendererProps\n} from '@pega/cosmos-react-dnd';\n\nexport default {\n title: 'DnD/DragDropList',\n component: DragDropList,\n parameters: {\n layout: 'fullscreen'\n }\n};\n\ninterface ItemData {\n content: string;\n color: string;\n}\n\n// Helper function to create demo arrays\nconst createMockDataArray = (\n length: number,\n type: DraggableProps['type'],\n listId: string\n): DraggableItem<ItemData>[] => {\n return Array.from({ length }, (_, i) => {\n const id = `${i}`;\n return {\n type,\n id: createUID(),\n data: {\n content: `Item ${listId}:${id}`,\n color: `hsl(${(i * 360) / length}deg, 100%, 66%)`\n }\n };\n });\n};\n\n// styled demo list component\nconst StyledEmptyItem = styled.li`\n display: grid;\n padding: 1rem;\n gap: 1rem;\n`;\n\n// Demo component used to render list items\nconst EmptyItem = () => {\n return <StyledEmptyItem>No Items</StyledEmptyItem>;\n};\n\n// styled demo list component\nconst StyledDemoDragDropList = styled.ul`\n list-style: none;\n position: relative;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n padding: 0.5rem;\n`;\n\n// styled demo list item component\nconst StyledDemoDragDropListItem = styled.li<{ [key: string]: any }>`\n border: 0.0625rem dashed gray;\n margin: 0.5rem;\n padding: 0.5rem;\n background: white;\n cursor: ${({ useDragHandle }) => (useDragHandle ? 'auto' : 'move')};\n transition: transform 0.3s;\n\n .handle {\n background: pink;\n width: 1rem;\n height: 1rem;\n display: inline-block;\n margin-right: 0.0625rem;\n cursor: move;\n }\n`;\n\n// Demo component used to render list items\nconst DemoListItem = ({\n id,\n type,\n dragRef,\n data,\n isDragging,\n ...restProps\n}: ItemRendererProps<ItemData>) => {\n return (\n <StyledDemoDragDropListItem\n ref={dragRef}\n style={{\n opacity: isDragging ? '0.5' : undefined,\n backgroundColor: data?.color ?? 'white'\n }}\n {...restProps}\n >\n {data?.content}\n </StyledDemoDragDropListItem>\n );\n};\n\nconst pullModes = {\n remove: 'remove',\n clone: 'clone'\n} as const;\n\nconst pushModes = {\n insert: 'insert',\n prepend: 'prepend',\n append: 'append',\n sort: 'sort'\n} as const;\n\nconst sort = (a: DraggableItem<ItemData>, b: DraggableItem<ItemData>): number => {\n return a.data!.content.localeCompare(b.data!.content);\n};\n\nconst itemType = Symbol('');\nconst mockDataArrayA = createMockDataArray(10, itemType, 'A');\nconst mockDataArrayB = createMockDataArray(4, itemType, 'B');\n\n// -----------------------------------------------------------------------------\n// DragDropList\n// -----------------------------------------------------------------------------\nexport const DragDropListDemo = () => {\n const pullMode = optionsKnob('Pull Mode', pullModes, 'remove', { display: 'inline-radio' });\n const pushMode = optionsKnob('Push Mode', pushModes, 'insert', { display: 'inline-radio' });\n\n const [arrayA, setArrayA] = useState(mockDataArrayA);\n const [arrayB, setArrayB] = useState(mockDataArrayB);\n\n return (\n <>\n <Button\n onClick={useCallback(() => {\n setArrayA(items => {\n return [...items, ...createMockDataArray(1, itemType, 'A-new')];\n });\n }, [])}\n >\n Add to List A\n </Button>\n <Button\n onClick={useCallback(() => {\n setArrayB(items => {\n return [...items, ...createMockDataArray(1, itemType, 'B-new')];\n });\n }, [])}\n >\n Add to List B\n </Button>\n <DragDropManager>\n <Flex container style={{ minHeight: '100vh' }}>\n <DragDropList\n as={StyledDemoDragDropList}\n id='list1'\n accept={itemType}\n pullMode={pullMode}\n pushMode={pushMode === 'sort' ? sort : pushMode}\n items={arrayA}\n itemRenderer={DemoListItem}\n emptyRenderer={EmptyItem}\n onChange={newArray => {\n setArrayA(newArray);\n action('List A changed')(newArray);\n }}\n style={{ background: 'palegreen' }}\n />\n\n <DragDropList\n as={StyledDemoDragDropList}\n id='list2'\n accept={itemType}\n pullMode={pullMode}\n pushMode={pushMode === 'sort' ? sort : pushMode}\n items={arrayB}\n itemRenderer={DemoListItem}\n emptyRenderer={EmptyItem}\n onChange={newArray => {\n setArrayB(newArray);\n action('List B changed')(newArray);\n }}\n style={{ background: 'lightblue' }}\n />\n </Flex>\n </DragDropManager>\n </>\n );\n};\n"]}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Meta } from '@storybook/react';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const EditorDemo: () => JSX.Element;
6
+ export declare const EmptyEditorDemo: () => JSX.Element;
7
+ export declare const ReadonlyFormField: () => JSX.Element;
8
+ export declare const CustomComponentDemo: () => JSX.Element;
9
+ export declare const RichTextEditorWithLogs: () => JSX.Element;
10
+ export declare const RichTextEditorHtmlParsingDemo: () => JSX.Element;
11
+ //# sourceMappingURL=Editor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Editor.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/Editor/Editor.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;;AAiBxC,wBAGU;AAIV,eAAO,MAAM,UAAU,mBAmBtB,CAAC;AAEF,eAAO,MAAM,eAAe,mBAmB3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBAc7B,CAAC;AA4BF,eAAO,MAAM,mBAAmB,mBA6B/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,mBAkClC,CAAC;AAEF,eAAO,MAAM,6BAA6B,mBA8BzC,CAAC"}
@@ -0,0 +1,100 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState, useRef } from 'react';
3
+ import ReactDOM from 'react-dom';
4
+ import { action } from '@storybook/addon-actions';
5
+ import { Button, Card, CardContent, CardFooter, Flex, Text, TextArea } from '@pega/cosmos-react-core';
6
+ import { Editor } from '@pega/cosmos-react-rte';
7
+ export default {
8
+ title: 'RTE/Editor',
9
+ component: Editor
10
+ };
11
+ const label = 'Form field label';
12
+ export const EditorDemo = () => {
13
+ const editorRef = useRef(null);
14
+ const onImageAdded = (image, id) => {
15
+ const src = URL.createObjectURL(image);
16
+ editorRef.current?.appendImage({ src, alt: image.name }, id);
17
+ };
18
+ return (_jsx(Editor, { ref: editorRef, label: label, toolbar: ['inline-styling', 'lists', 'indentation', 'images', 'links'], onFocus: action('Editor focused'), onBlur: action('Editor blurred'), onImageAdded: onImageAdded, defaultValue: '<body><p>Hi mom <a href="https://google.com">link</a></p></body>' }, void 0));
19
+ };
20
+ export const EmptyEditorDemo = () => {
21
+ const editorRef = useRef(null);
22
+ const onImageAdded = (image, id) => {
23
+ const src = URL.createObjectURL(image);
24
+ editorRef.current?.appendImage({ src, alt: image.name }, id);
25
+ };
26
+ return (_jsx(Editor, { ref: editorRef, label: label, toolbar: ['inline-styling', 'lists', 'indentation', 'images', 'links'], onImageAdded: onImageAdded, onFocus: action('Editor has focus'), onBlur: action('Editor has blurred'), placeholder: 'Type some stuff in here' }, void 0));
27
+ };
28
+ export const ReadonlyFormField = () => {
29
+ return (_jsx(Editor, { label: label, readOnly: true, defaultValue: `<article class="main-page-content" lang="en-US"><h1>HTML: HyperText Markup Language</h1><div><p><strong>HTML</strong> (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (<a href="/en-US/docs/Web/CSS">CSS</a>) or functionality/behavior (<a href="/en-US/docs/Web/JavaScript">JavaScript</a>).</p>
30
+ <p>"Hypertext" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.</p>
31
+ <p>HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as <a href="/en-US/docs/Web/HTML/Element/head"><code>&lt;head&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/title"><code>&lt;title&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/body"><code>&lt;body&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/header"><code>&lt;header&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/footer"><code>&lt;footer&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/article"><code>&lt;article&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/section"><code>&lt;section&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/p"><code>&lt;p&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/div"><code>&lt;div&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/span"><code>&lt;span&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/img"><code>&lt;img&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/aside"><code>&lt;aside&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/audio"><code>&lt;audio&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/canvas"><code>&lt;canvas&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/datalist"><code>&lt;datalist&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/details"><code>&lt;details&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/embed"><code>&lt;embed&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/nav"><code>&lt;nav&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/output"><code>&lt;output&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/progress"><code>&lt;progress&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/video"><code>&lt;video&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/ul"><code>&lt;ul&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/ol"><code>&lt;ol&gt;</code></a>, <a href="/en-US/docs/Web/HTML/Element/li"><code>&lt;li&gt;</code></a> and many others.</p>
32
+ <p>An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by "<code>&lt;</code>" and "<code>&gt;</code>".&nbsp; The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <code>&lt;title&gt;</code> tag can be written as <code>&lt;Title&gt;</code>, <code>&lt;TITLE&gt;</code>, or in any other way.</p>
33
+
34
+ <div id="on-github" class="on-github"><h3>Found a problem with this page?</h3><ul><li><a href="https://github.com/mdn/content/edit/main/files/en-us/web/html/index.md" title="You're going to need to sign in to GitHub first (Opens in a new tab)" target="_blank" rel="noopener noreferrer">Edit on <b>GitHub</b></a></li><li><a href="https://github.com/mdn/content/blob/main/files/en-us/web/html/index.md" title="Folder: en-us/web/html (Opens in a new tab)" target="_blank" rel="noopener noreferrer">Source on <b>GitHub</b></a></li><li><a href="https://github.com/mdn/content/issues/new?body=MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A%0A%23%23%23%23+What+information+was+incorrect%2C+unhelpful%2C+or+incomplete%3F%0A%0A%0A%23%23%23%23+Specific+section+or+headline%3F%0A%0A%0A%23%23%23%23+What+did+you+expect+to+see%3F%0A%0A%0A%23%23%23%23+Did+you+test+this%3F+If+so%2C+how%3F%0A%0A%0A%3C%21--+Do+not+make+changes+below+this+line+--%3E%0A%3Cdetails%3E%0A%3Csummary%3EMDN+Content+page+report+details%3C%2Fsummary%3E%0A%0A*+Folder%3A+%60en-us%2Fweb%2Fhtml%60%0A*+MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A*+GitHub+URL%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fblob%2Fmain%2Ffiles%2Fen-us%2Fweb%2Fhtml%2Findex.md%0A*+Last+commit%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fcommit%2F775662998e66813a612e3ff27e02f2ada867bc17%0A*+Document+last+modified%3A+2021-10-03T00%3A01%3A51.000Z%0A%0A%3C%2Fdetails%3E&amp;title=Issue+with+%22HTML%3A+HyperText+Markup+Language%22%3A+%28short+summary+here+please%29&amp;labels=needs-triage%2CContent%3AHTML" title="This will take you to https://github.com/mdn/content to file a new issue" target="_blank" rel="noopener noreferrer">Report a problem with this content on <b>GitHub</b></a></li><li>Want to fix the problem yourself? See <a href="https://github.com/mdn/content/blob/main/README.md" target="_blank" rel="noopener noreferrer">our Contribution guide</a>.</li></ul></div>
35
+ ` }, void 0));
36
+ };
37
+ const PegaCustom = ({ children }) => {
38
+ return (_jsx("p", { style: { color: 'blue', textTransform: 'uppercase' },
39
+ // eslint-disable-next-line react/no-danger
40
+ dangerouslySetInnerHTML: { __html: children } }, void 0));
41
+ };
42
+ class PegaCustomElement extends HTMLElement {
43
+ removeElements() {
44
+ while (this.firstChild) {
45
+ this.removeChild(this.firstChild);
46
+ }
47
+ }
48
+ connectedCallback() {
49
+ const inner = this.innerHTML;
50
+ this.removeElements();
51
+ const mountPoint = document.createElement('span');
52
+ this.appendChild(mountPoint);
53
+ ReactDOM.render(_jsx(PegaCustom, { children: inner }, void 0), mountPoint);
54
+ }
55
+ }
56
+ export const CustomComponentDemo = () => {
57
+ const editorRef = useRef(null);
58
+ const [editor, setEditor] = useState({});
59
+ const onCustomAction = () => {
60
+ editor.insertContent('<pega-custom>Inserted from toolbar</pega-custom>');
61
+ };
62
+ return (_jsx(Editor, { ref: editorRef, label: label, toolbar: ['inline-styling', 'lists', 'indentation', 'links', 'images'], defaultValue: '<body><p>Hi mom <a href="https://google.com">link</a></p><pega-custom>Hello from custom element.</pega-custom><p>hi</p></body>', customComponents: [{ customElement: PegaCustomElement, name: 'pega-custom' }], customActions: [
63
+ {
64
+ icon: 'pega',
65
+ text: 'Insert a custom element',
66
+ onMouseDown: () => {
67
+ onCustomAction();
68
+ }
69
+ }
70
+ ], onInit: initializedEditor => {
71
+ setEditor(initializedEditor);
72
+ } }, void 0));
73
+ };
74
+ export const RichTextEditorWithLogs = () => {
75
+ const editorRef = useRef(null);
76
+ const [content, setContent] = useState();
77
+ const onImageAdded = (image, id) => {
78
+ const src = URL.createObjectURL(image);
79
+ editorRef.current?.appendImage({ src, alt: image.name }, id);
80
+ };
81
+ const showContent = (type) => {
82
+ if (type === 'html')
83
+ setContent(editorRef.current?.getHtml());
84
+ else if (type === 'plain_text')
85
+ setContent(editorRef.current?.getPlainText());
86
+ else if (type === 'rich_text')
87
+ setContent(editorRef.current?.getRichText());
88
+ };
89
+ return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsx(Editor, { ref: editorRef, toolbar: ['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation'], onImageAdded: onImageAdded, label: 'Rich text editor with logs', info: 'Click on the buttons below to show the different formatted outputs of the RTE' }, void 0), _jsxs(Flex, { container: { gap: 1 }, children: [_jsx(Button, { onClick: () => showContent('html'), children: "Show HTML" }, void 0), _jsx(Button, { onClick: () => showContent('plain_text'), children: "Show plain text" }, void 0), _jsx(Button, { onClick: () => showContent('rich_text'), children: "Show rich text" }, void 0)] }, void 0), _jsx(Text, { children: content }, void 0)] }, void 0));
90
+ };
91
+ export const RichTextEditorHtmlParsingDemo = () => {
92
+ const [html, setHtml] = useState('<p>Hello world!</p>');
93
+ const rteRef = useRef(null);
94
+ const onImageAdded = (image, id) => {
95
+ const src = URL.createObjectURL(image);
96
+ rteRef.current?.appendImage({ src, alt: image.name }, id);
97
+ };
98
+ return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsxs(Card, { children: [_jsx(CardContent, { children: _jsx(TextArea, { value: html, onChange: e => setHtml(e.target.value) }, void 0) }, void 0), _jsx(CardFooter, { children: _jsx(Button, { onClick: () => rteRef.current?.insertHtml(html.trim(), true), children: "Overwrite RTE with new HTML" }, void 0) }, void 0)] }, void 0), _jsx(Editor, { defaultValue: html, onImageAdded: onImageAdded, ref: rteRef, label: label, toolbar: ['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation'] }, void 0)] }, void 0));
99
+ };
100
+ //# sourceMappingURL=Editor.stories.js.map