@pega/cosmos-react-demos 3.0.0-dev.2.1 → 3.0.0-dev.21.1

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 (1423) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -75
  4. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  5. package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
  6. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  7. package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
  8. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
  9. package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
  10. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  11. package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
  12. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  13. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  14. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  15. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
  16. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  17. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
  18. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  19. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
  20. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  21. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +11 -0
  22. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  23. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +135 -0
  24. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  25. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +18 -0
  26. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
  27. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +72 -0
  28. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -0
  29. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  30. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  31. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  32. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
  33. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  34. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +186 -34
  35. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  36. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
  37. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  38. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +265 -150
  39. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  40. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  41. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  42. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  43. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  44. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  45. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  46. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  47. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  48. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  49. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  50. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  51. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  52. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  53. package/jsx/build/LifeCycle/LifeCycle.mocks.js +146 -18
  54. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  55. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  56. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  57. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
  58. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  59. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  60. package/jsx/build/LifeCycle/utils.js +5 -4
  61. package/jsx/build/LifeCycle/utils.js.map +1 -1
  62. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
  63. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  64. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +395 -0
  65. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  66. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  67. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  68. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +245 -0
  69. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  70. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  71. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  72. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  73. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  74. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  75. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  76. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
  77. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  78. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  79. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
  80. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  81. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  82. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  83. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
  84. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  85. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  86. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  87. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +96 -270
  88. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  89. package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
  90. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  91. package/jsx/build/Workbench/Workbench.stories.jsx +204 -18
  92. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  93. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  94. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  95. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
  96. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  97. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
  98. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  99. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +99 -65
  100. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  101. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  102. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  103. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  104. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  105. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  106. package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
  107. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  108. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  109. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  110. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
  111. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
  112. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  113. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  114. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +74 -0
  115. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  116. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  117. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  118. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
  119. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
  120. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  121. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  122. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  123. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  124. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
  125. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
  126. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +25 -0
  127. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -0
  128. package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
  129. package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
  130. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  131. package/jsx/core/AppShell/AppShell.stories.d.ts +2 -0
  132. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  133. package/jsx/core/AppShell/AppShell.stories.jsx +44 -7
  134. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  135. package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
  136. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
  137. package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
  138. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
  139. package/jsx/core/Badges/Selection.stories.d.ts +2 -3
  140. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  141. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  142. package/jsx/core/Badges/Tag.stories.d.ts +2 -3
  143. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  144. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  145. package/jsx/core/Banner/Banner.stories.d.ts +7 -18
  146. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  147. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  148. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  149. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  150. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  151. package/jsx/core/Button/Button.stories.d.ts +2 -3
  152. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  153. package/jsx/core/Button/Button.stories.jsx +6 -6
  154. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  155. package/jsx/core/Card/Card.stories.d.ts +1 -2
  156. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  157. package/jsx/core/Card/Card.stories.jsx +1 -1
  158. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  159. package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -2
  160. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  161. package/jsx/core/Checkbox/Checkbox.stories.jsx +27 -8
  162. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  163. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
  164. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  165. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +46 -5
  166. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  167. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
  168. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  169. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +12 -13
  170. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  171. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  172. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  173. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  174. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  175. package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
  176. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  177. package/jsx/core/ComboBox/ComboBox.stories.jsx +40 -8
  178. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  179. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  180. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  181. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
  182. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
  183. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
  184. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  185. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +54 -0
  186. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
  187. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  188. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  189. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  190. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  191. package/jsx/core/Configuration/Configuration.stories.d.ts +2 -3
  192. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  193. package/jsx/core/Configuration/Configuration.stories.jsx +2 -18
  194. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  195. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  196. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  197. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  198. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  199. package/jsx/core/CreditCard/CreditCard.stories.d.ts +14 -0
  200. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  201. package/jsx/core/CreditCard/CreditCard.stories.jsx +52 -0
  202. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  203. package/jsx/core/Currency/Currency.stories.d.ts +9 -3
  204. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  205. package/jsx/core/Currency/Currency.stories.jsx +58 -19
  206. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  207. package/jsx/core/DateTime/DateTime.stories.d.ts +39 -9
  208. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  209. package/jsx/core/DateTime/DateTime.stories.jsx +152 -17
  210. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  211. package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
  212. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
  213. package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
  214. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
  215. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  216. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  217. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  218. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  219. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  220. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  221. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  222. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  223. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  224. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  225. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  226. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  227. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +3 -0
  228. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -0
  229. package/jsx/core/FieldValueList/FieldValueList.mocks.js +9 -0
  230. package/jsx/core/FieldValueList/FieldValueList.mocks.js.map +1 -0
  231. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
  232. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  233. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +34 -2
  234. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  235. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  236. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  237. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  238. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
  239. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  240. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  241. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  242. package/jsx/core/Form/Form.mocks.jsx +4 -3
  243. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  244. package/jsx/core/Form/Form.stories.jsx +2 -2
  245. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  246. package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
  247. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  248. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  249. package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
  250. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  251. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  252. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  253. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  254. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  255. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  256. package/jsx/core/Icon/Icon.stories.d.ts +5 -6
  257. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  258. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  259. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  260. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  261. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  262. package/jsx/core/Icon/Icon.styles.js +25 -0
  263. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  264. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  265. package/jsx/core/IconPicker/IconPicker.stories.jsx +7 -10
  266. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  267. package/jsx/core/Image/Image.stories.d.ts +2 -3
  268. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  269. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  270. package/jsx/core/Input/Input.stories.d.ts +2 -0
  271. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  272. package/jsx/core/Input/Input.stories.jsx +78 -2
  273. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  274. package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
  275. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  276. package/jsx/core/Link/Link.stories.d.ts +1 -11
  277. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  278. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  279. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  280. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  281. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  282. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  283. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  284. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  285. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  286. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +10 -0
  287. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  288. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +93 -0
  289. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  290. package/jsx/core/Location/Location.stories.d.ts +4 -1
  291. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  292. package/jsx/core/Location/Location.stories.jsx +10 -3
  293. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  294. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  295. package/jsx/core/Menu/Menu.stories.jsx +4 -3
  296. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  297. package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
  298. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  299. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  300. package/jsx/core/Modal/Modal.stories.d.ts +10 -5
  301. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  302. package/jsx/core/Modal/Modal.stories.jsx +34 -43
  303. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  304. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  305. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  306. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
  307. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
  308. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
  309. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  310. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
  311. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
  312. package/jsx/core/Number/Number.stories.d.ts +11 -6
  313. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  314. package/jsx/core/Number/Number.stories.jsx +136 -34
  315. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  316. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  317. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  318. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  319. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  320. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +81 -27
  321. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  322. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  323. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  324. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  325. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  326. package/jsx/core/Phone/Phone.stories.d.ts +4 -1
  327. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  328. package/jsx/core/Phone/Phone.stories.jsx +12 -3
  329. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  330. package/jsx/core/Popover/Popover.stories.d.ts +1 -1
  331. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  332. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  333. package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -2
  334. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  335. package/jsx/core/RadioButton/RadioButton.stories.jsx +23 -6
  336. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  337. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
  338. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  339. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +46 -5
  340. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  341. package/jsx/core/Rating/Rating.stories.jsx +1 -1
  342. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  343. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  344. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  345. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  346. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  347. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
  348. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  349. package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
  350. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  351. package/jsx/core/Select/Select.stories.d.ts +1 -0
  352. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  353. package/jsx/core/Select/Select.stories.jsx +10 -3
  354. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  355. package/jsx/core/Sentiment/Sentiment.stories.jsx +4 -4
  356. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  357. package/jsx/core/Slider/Slider.stories.d.ts +4 -3
  358. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  359. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  360. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  361. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  362. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  363. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  364. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  365. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  366. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  367. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  368. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  369. package/jsx/core/Table/Table.mocks.jsx +134 -0
  370. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  371. package/jsx/core/Table/Table.stories.jsx +2 -2
  372. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  373. package/jsx/core/Tabs/Tabs.stories.d.ts +5 -2
  374. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  375. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  376. package/jsx/core/TextArea/TextArea.stories.d.ts +4 -1
  377. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  378. package/jsx/core/TextArea/TextArea.stories.jsx +10 -3
  379. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  380. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
  381. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  382. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  383. package/jsx/core/Tooltip/Tooltip.stories.d.ts +3 -7
  384. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  385. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  386. package/jsx/core/Tree/Tree.mocks.d.ts +1 -1
  387. package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
  388. package/jsx/core/Tree/Tree.stories.d.ts +1 -2
  389. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  390. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  391. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  392. package/jsx/cs/Article/Article.stories.d.ts +4 -13
  393. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  394. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  395. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  396. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  397. package/jsx/cs/ArticleList/ArticleList.stories.jsx +3 -2
  398. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  399. package/jsx/cs/CSCaseView/{CSCaseView.mocks.d.ts → CSAppShell.mocks.d.ts} +17 -1
  400. package/jsx/cs/CSCaseView/CSAppShell.mocks.d.ts.map +1 -0
  401. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSAppShell.mocks.jsx} +76 -1
  402. package/jsx/cs/CSCaseView/CSAppShell.mocks.jsx.map +1 -0
  403. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +4 -36
  404. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  405. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +21 -68
  406. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  407. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +6 -5
  408. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  409. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +138 -10
  410. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  411. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
  412. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  413. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +142 -93
  414. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  415. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  416. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  417. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +3 -3
  418. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  419. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  420. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  421. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  422. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  423. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  424. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  425. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  426. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  427. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  428. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  429. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
  430. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  431. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
  432. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  433. package/jsx/cs/TaskManager/TaskManager.mocks.js +93 -0
  434. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  435. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -6
  436. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  437. package/jsx/cs/TaskManager/TaskManager.stories.jsx +115 -48
  438. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  439. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  440. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  441. package/jsx/cs/TaskManager/TaskManager.styles.js +9 -0
  442. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  443. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  444. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  445. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  446. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  447. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  448. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  449. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  450. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  451. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  452. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  453. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  454. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  455. package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
  456. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  457. package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
  458. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
  459. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  460. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  461. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
  462. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
  463. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  464. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  465. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
  466. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
  467. package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
  468. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  469. package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
  470. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
  471. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  472. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  473. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
  474. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
  475. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  476. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  477. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
  478. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
  479. package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
  480. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  481. package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
  482. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
  483. package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
  484. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  485. package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
  486. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  487. package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
  488. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  489. package/jsx/rte/Editor/Editor.stories.jsx +3 -21
  490. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  491. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  492. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
  493. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  494. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +11 -4
  495. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  496. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  497. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  498. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +19 -2
  499. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  500. package/jsx/social/Chat/Chat.mocks.d.ts +1 -1
  501. package/jsx/social/Chat/Chat.mocks.js +0 -1
  502. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  503. package/jsx/social/Chat/Chat.stories.d.ts +6 -7
  504. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  505. package/jsx/social/Chat/Chat.stories.jsx +7 -5
  506. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  507. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  508. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  509. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  510. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  511. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  512. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  513. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  514. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  515. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  516. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  517. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  518. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  519. package/jsx/social/Email/Email.mocks.d.ts +224 -3
  520. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  521. package/jsx/social/Email/Email.mocks.jsx +948 -0
  522. package/jsx/social/Email/Email.mocks.jsx.map +1 -0
  523. package/jsx/social/Email/Email.stories.d.ts +40 -26
  524. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  525. package/jsx/social/Email/Email.stories.jsx +670 -617
  526. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  527. package/jsx/social/Email/Email.styles.d.ts +3 -0
  528. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  529. package/jsx/social/Email/Email.styles.js +11 -0
  530. package/jsx/social/Email/Email.styles.js.map +1 -0
  531. package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
  532. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  533. package/jsx/social/Feed/Feed.mocks.jsx +10 -5
  534. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  535. package/jsx/social/Feed/Feed.stories.d.ts +8 -12
  536. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  537. package/jsx/social/Feed/Feed.stories.jsx +28 -22
  538. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  539. package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
  540. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  541. package/jsx/social/Feed/FeedNewPost.stories.jsx +3 -2
  542. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  543. package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
  544. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  545. package/jsx/social/Feed/FeedPost.stories.jsx +40 -29
  546. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  547. package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
  548. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  549. package/jsx/social/Feed/FeedReply.stories.jsx +27 -22
  550. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  551. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  552. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  553. package/jsx/social/Feed/FeedReplyInput.stories.jsx +3 -2
  554. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  555. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
  556. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
  557. package/jsx/tools/Clipboard/Clipboard.mocks.jsx +82 -0
  558. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -0
  559. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +6 -0
  560. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
  561. package/jsx/tools/Clipboard/Clipboard.stories.jsx +68 -0
  562. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -0
  563. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
  564. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
  565. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +58 -0
  566. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -0
  567. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +15 -0
  568. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
  569. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +107 -0
  570. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -0
  571. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
  572. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
  573. package/jsx/tools/PreviewShell/PreviewShell.styles.js +7 -0
  574. package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
  575. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  576. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +3 -1
  577. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  578. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
  579. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  580. package/jsx/work/CaseView/CaseView.stories.jsx +11 -3
  581. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  582. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  583. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  584. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  585. package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
  586. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  587. package/jsx/work/CaseView/Pulse.mocks.jsx +2 -2
  588. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  589. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  590. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  591. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  592. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  593. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  594. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  595. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -174
  596. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  597. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  598. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  599. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  600. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  601. package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
  602. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  603. package/jsx/work/Confirmation/Confirmation.stories.jsx +12 -8
  604. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  605. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  606. package/jsx/work/Details/Details.stories.jsx +60 -64
  607. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  608. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  609. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  610. package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
  611. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  612. package/jsx/work/SearchResults/SearchResults.stories.jsx +10 -8
  613. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  614. package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
  615. package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
  616. package/jsx/work/Stages/Stages.mocks.jsx +40 -0
  617. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
  618. package/jsx/work/Stages/Stages.stories.d.ts +1 -1
  619. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  620. package/jsx/work/Stages/Stages.stories.jsx +12 -46
  621. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  622. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +1 -1
  623. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  624. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  625. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  626. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  627. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  628. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  629. package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
  630. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  631. package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
  632. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  633. package/jsx/work/Tasks/Tasks.stories.jsx +21 -11
  634. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  635. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
  636. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  637. package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
  638. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  639. package/jsx/wss/AppShell/AppShell.mocks.d.ts +24 -0
  640. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  641. package/jsx/wss/AppShell/AppShell.mocks.jsx +64 -0
  642. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
  643. package/jsx/wss/AppShell/AppShell.stories.d.ts +17 -0
  644. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  645. package/jsx/wss/AppShell/AppShell.stories.jsx +76 -0
  646. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
  647. package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
  648. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  649. package/jsx/wss/AppShell/AppShell.styles.js +5 -0
  650. package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
  651. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  652. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  653. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
  654. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
  655. package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
  656. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  657. package/lib/build/AppHeader/AppHeader.stories.js +100 -75
  658. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  659. package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
  660. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  661. package/lib/build/AppShell/AppShell.mocks.js +32 -0
  662. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  663. package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
  664. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  665. package/lib/build/AppShell/AppShell.stories.js +22 -45
  666. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  667. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  668. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  669. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  670. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  671. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  672. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  673. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  674. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  675. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +11 -0
  676. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  677. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +136 -0
  678. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  679. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +18 -0
  680. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
  681. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +66 -0
  682. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -0
  683. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  684. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  685. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  686. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
  687. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  688. package/lib/build/FlowModeller/FlowModeller.mocks.js +158 -33
  689. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  690. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
  691. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  692. package/lib/build/FlowModeller/FlowModeller.stories.js +254 -135
  693. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  694. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  695. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  696. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  697. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  698. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  699. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  700. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  701. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  702. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
  703. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  704. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
  705. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  706. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  707. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  708. package/lib/build/LifeCycle/LifeCycle.mocks.js +146 -18
  709. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  710. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  711. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  712. package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
  713. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  714. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  715. package/lib/build/LifeCycle/utils.js +5 -4
  716. package/lib/build/LifeCycle/utils.js.map +1 -1
  717. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
  718. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  719. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +368 -0
  720. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  721. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  722. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  723. package/lib/build/ObjectSelect/ObjectSelect.stories.js +229 -0
  724. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  725. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  726. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  727. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  728. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  729. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  730. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  731. package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
  732. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  733. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  734. package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
  735. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  736. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  737. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  738. package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
  739. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  740. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  741. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  742. package/lib/build/PageTemplates/PageTemplates.stories.js +113 -251
  743. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  744. package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
  745. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  746. package/lib/build/Workbench/Workbench.stories.js +210 -29
  747. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  748. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  749. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  750. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
  751. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  752. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
  753. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  754. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +78 -62
  755. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  756. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  757. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  758. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  759. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  760. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  761. package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
  762. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  763. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  764. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  765. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
  766. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
  767. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  768. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  769. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +74 -0
  770. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  771. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  772. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  773. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
  774. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
  775. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  776. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  777. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  778. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  779. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
  780. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
  781. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +16 -0
  782. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -0
  783. package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
  784. package/lib/core/AppShell/AppShell.mocks.js +10 -10
  785. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  786. package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
  787. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  788. package/lib/core/AppShell/AppShell.stories.js +52 -15
  789. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  790. package/lib/core/Avatar/Avatar.stories.js +6 -6
  791. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  792. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  793. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  794. package/lib/core/Badges/Alert.stories.js +1 -1
  795. package/lib/core/Badges/Alert.stories.js.map +1 -1
  796. package/lib/core/Badges/Count.stories.js +1 -1
  797. package/lib/core/Badges/Count.stories.js.map +1 -1
  798. package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
  799. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
  800. package/lib/core/Badges/Keyboard.stories.js +16 -0
  801. package/lib/core/Badges/Keyboard.stories.js.map +1 -0
  802. package/lib/core/Badges/Selection.stories.d.ts +2 -3
  803. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  804. package/lib/core/Badges/Selection.stories.js +1 -1
  805. package/lib/core/Badges/Selection.stories.js.map +1 -1
  806. package/lib/core/Badges/Status.stories.js +2 -2
  807. package/lib/core/Badges/Status.stories.js.map +1 -1
  808. package/lib/core/Badges/Tag.stories.d.ts +2 -3
  809. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  810. package/lib/core/Badges/Tag.stories.js +1 -1
  811. package/lib/core/Badges/Tag.stories.js.map +1 -1
  812. package/lib/core/Banner/Banner.mocks.js +1 -1
  813. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  814. package/lib/core/Banner/Banner.stories.d.ts +7 -18
  815. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  816. package/lib/core/Banner/Banner.stories.js +11 -11
  817. package/lib/core/Banner/Banner.stories.js.map +1 -1
  818. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  819. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  820. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  821. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  822. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  823. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  824. package/lib/core/Button/Button.stories.d.ts +2 -3
  825. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  826. package/lib/core/Button/Button.stories.js +8 -8
  827. package/lib/core/Button/Button.stories.js.map +1 -1
  828. package/lib/core/Card/Card.stories.d.ts +1 -2
  829. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  830. package/lib/core/Card/Card.stories.js +5 -5
  831. package/lib/core/Card/Card.stories.js.map +1 -1
  832. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -2
  833. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  834. package/lib/core/Checkbox/Checkbox.stories.js +27 -8
  835. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  836. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
  837. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  838. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +41 -5
  839. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  840. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
  841. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  842. package/lib/core/ColorPicker/ColorPicker.stories.js +17 -18
  843. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  844. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  845. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  846. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  847. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  848. package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
  849. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  850. package/lib/core/ComboBox/ComboBox.stories.js +46 -14
  851. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  852. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  853. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  854. package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
  855. package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
  856. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
  857. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  858. package/lib/core/CompositeInput/CompositeInput.stories.js +55 -0
  859. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
  860. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  861. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  862. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  863. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  864. package/lib/core/Configuration/Configuration.stories.d.ts +2 -3
  865. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  866. package/lib/core/Configuration/Configuration.stories.js +13 -25
  867. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  868. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  869. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  870. package/lib/core/Configuration/Configuration.styles.js +12 -0
  871. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  872. package/lib/core/CreditCard/CreditCard.stories.d.ts +14 -0
  873. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  874. package/lib/core/CreditCard/CreditCard.stories.js +53 -0
  875. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  876. package/lib/core/Currency/Currency.stories.d.ts +9 -3
  877. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  878. package/lib/core/Currency/Currency.stories.js +59 -20
  879. package/lib/core/Currency/Currency.stories.js.map +1 -1
  880. package/lib/core/DateTime/DateTime.stories.d.ts +39 -9
  881. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  882. package/lib/core/DateTime/DateTime.stories.js +153 -17
  883. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  884. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  885. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  886. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  887. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  888. package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
  889. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
  890. package/lib/core/Dialog/Dialog.stories.js +47 -0
  891. package/lib/core/Dialog/Dialog.stories.js.map +1 -0
  892. package/lib/core/Drawer/Drawer.stories.js +4 -4
  893. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  894. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  895. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  896. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  897. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  898. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  899. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  900. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  901. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  902. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  903. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  904. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  905. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  906. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  907. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  908. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  909. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  910. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  911. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  912. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  913. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  914. package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
  915. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  916. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +3 -0
  917. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -0
  918. package/lib/core/FieldValueList/FieldValueList.mocks.js +9 -0
  919. package/lib/core/FieldValueList/FieldValueList.mocks.js.map +1 -0
  920. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
  921. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  922. package/lib/core/FieldValueList/FieldValueList.stories.js +35 -5
  923. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  924. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  925. package/lib/core/File/FileDisplay.stories.js +25 -37
  926. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  927. package/lib/core/File/FileInput.stories.js +2 -2
  928. package/lib/core/File/FileInput.stories.js.map +1 -1
  929. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
  930. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  931. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  932. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  933. package/lib/core/Flex/FlexItem.stories.js +3 -3
  934. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  935. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  936. package/lib/core/Form/Form.mocks.js +3 -3
  937. package/lib/core/Form/Form.mocks.js.map +1 -1
  938. package/lib/core/Form/Form.stories.js +10 -10
  939. package/lib/core/Form/Form.stories.js.map +1 -1
  940. package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
  941. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  942. package/lib/core/Grid/GridContainer.stories.js +9 -9
  943. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  944. package/lib/core/Grid/GridItem.stories.d.ts +1 -2
  945. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  946. package/lib/core/Grid/GridItem.stories.js +3 -3
  947. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  948. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  949. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  950. package/lib/core/HTML/HTML.stories.js +14 -0
  951. package/lib/core/HTML/HTML.stories.js.map +1 -0
  952. package/lib/core/Icon/Icon.mocks.js +1 -1
  953. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  954. package/lib/core/Icon/Icon.stories.d.ts +5 -6
  955. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  956. package/lib/core/Icon/Icon.stories.js +12 -35
  957. package/lib/core/Icon/Icon.stories.js.map +1 -1
  958. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  959. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  960. package/lib/core/Icon/Icon.styles.js +25 -0
  961. package/lib/core/Icon/Icon.styles.js.map +1 -0
  962. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  963. package/lib/core/IconPicker/IconPicker.stories.js +8 -11
  964. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  965. package/lib/core/Image/Image.stories.d.ts +2 -3
  966. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  967. package/lib/core/Image/Image.stories.js +1 -1
  968. package/lib/core/Image/Image.stories.js.map +1 -1
  969. package/lib/core/Input/Input.stories.d.ts +2 -0
  970. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  971. package/lib/core/Input/Input.stories.js +80 -4
  972. package/lib/core/Input/Input.stories.js.map +1 -1
  973. package/lib/core/Label/Label.stories.js +2 -2
  974. package/lib/core/Label/Label.stories.js.map +1 -1
  975. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  976. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  977. package/lib/core/Link/Link.stories.d.ts +1 -11
  978. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  979. package/lib/core/Link/Link.stories.js +3 -3
  980. package/lib/core/Link/Link.stories.js.map +1 -1
  981. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  982. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  983. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  984. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  985. package/lib/core/List/OrderedList.stories.js +1 -1
  986. package/lib/core/List/OrderedList.stories.js.map +1 -1
  987. package/lib/core/List/UnorderedList.stories.js +1 -1
  988. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  989. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  990. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  991. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  992. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  993. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +10 -0
  994. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  995. package/lib/core/ListToolbar/ListToolbar.stories.js +85 -0
  996. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  997. package/lib/core/Location/Location.stories.d.ts +4 -1
  998. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  999. package/lib/core/Location/Location.stories.js +13 -6
  1000. package/lib/core/Location/Location.stories.js.map +1 -1
  1001. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  1002. package/lib/core/Menu/Menu.stories.js +7 -6
  1003. package/lib/core/Menu/Menu.stories.js.map +1 -1
  1004. package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
  1005. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  1006. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  1007. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  1008. package/lib/core/MetaList/MetaList.stories.js +3 -3
  1009. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  1010. package/lib/core/Modal/Modal.mocks.js +8 -8
  1011. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  1012. package/lib/core/Modal/Modal.stories.d.ts +10 -5
  1013. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  1014. package/lib/core/Modal/Modal.stories.js +40 -35
  1015. package/lib/core/Modal/Modal.stories.js.map +1 -1
  1016. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  1017. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  1018. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
  1019. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
  1020. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
  1021. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  1022. package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
  1023. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
  1024. package/lib/core/Number/Number.stories.d.ts +11 -6
  1025. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  1026. package/lib/core/Number/Number.stories.js +137 -35
  1027. package/lib/core/Number/Number.stories.js.map +1 -1
  1028. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  1029. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  1030. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  1031. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  1032. package/lib/core/PageTemplates/PageTemplates.stories.js +84 -38
  1033. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  1034. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  1035. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  1036. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  1037. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  1038. package/lib/core/Pagination/Pagination.stories.js +1 -1
  1039. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  1040. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  1041. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  1042. package/lib/core/Phone/Phone.stories.d.ts +4 -1
  1043. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  1044. package/lib/core/Phone/Phone.stories.js +13 -4
  1045. package/lib/core/Phone/Phone.stories.js.map +1 -1
  1046. package/lib/core/Popover/Popover.stories.d.ts +1 -1
  1047. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  1048. package/lib/core/Popover/Popover.stories.js +2 -2
  1049. package/lib/core/Popover/Popover.stories.js.map +1 -1
  1050. package/lib/core/Progress/Progress.stories.js +3 -3
  1051. package/lib/core/Progress/Progress.stories.js.map +1 -1
  1052. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -2
  1053. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  1054. package/lib/core/RadioButton/RadioButton.stories.js +23 -6
  1055. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  1056. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
  1057. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  1058. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +41 -5
  1059. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  1060. package/lib/core/Rating/Rating.stories.js +3 -3
  1061. package/lib/core/Rating/Rating.stories.js.map +1 -1
  1062. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  1063. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  1064. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  1065. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  1066. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
  1067. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  1068. package/lib/core/SearchInput/SearchInput.stories.js +29 -15
  1069. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  1070. package/lib/core/Select/Select.stories.d.ts +1 -0
  1071. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  1072. package/lib/core/Select/Select.stories.js +12 -5
  1073. package/lib/core/Select/Select.stories.js.map +1 -1
  1074. package/lib/core/Sentiment/Sentiment.stories.js +3 -3
  1075. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  1076. package/lib/core/Slider/Slider.stories.d.ts +4 -3
  1077. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  1078. package/lib/core/Slider/Slider.stories.js +2 -2
  1079. package/lib/core/Slider/Slider.stories.js.map +1 -1
  1080. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  1081. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  1082. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  1083. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  1084. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  1085. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  1086. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  1087. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  1088. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  1089. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  1090. package/lib/core/Switch/Switch.stories.js +3 -3
  1091. package/lib/core/Switch/Switch.stories.js.map +1 -1
  1092. package/lib/core/Table/Table.mocks.d.ts +6 -0
  1093. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  1094. package/lib/core/Table/Table.mocks.js +135 -1
  1095. package/lib/core/Table/Table.mocks.js.map +1 -1
  1096. package/lib/core/Table/Table.stories.js +11 -11
  1097. package/lib/core/Table/Table.stories.js.map +1 -1
  1098. package/lib/core/Tabs/Tabs.stories.d.ts +5 -2
  1099. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  1100. package/lib/core/Tabs/Tabs.stories.js +3 -3
  1101. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  1102. package/lib/core/Text/Text.stories.js +2 -2
  1103. package/lib/core/Text/Text.stories.js.map +1 -1
  1104. package/lib/core/TextArea/TextArea.stories.d.ts +4 -1
  1105. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  1106. package/lib/core/TextArea/TextArea.stories.js +11 -4
  1107. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  1108. package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
  1109. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  1110. package/lib/core/Toaster/Toaster.stories.js +2 -2
  1111. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  1112. package/lib/core/Tooltip/Tooltip.stories.d.ts +3 -7
  1113. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  1114. package/lib/core/Tooltip/Tooltip.stories.js +2 -2
  1115. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  1116. package/lib/core/Tree/Tree.mocks.d.ts +1 -1
  1117. package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
  1118. package/lib/core/Tree/Tree.stories.d.ts +1 -2
  1119. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  1120. package/lib/core/Tree/Tree.stories.js +5 -5
  1121. package/lib/core/Tree/Tree.stories.js.map +1 -1
  1122. package/lib/core/URL/URL.stories.js +1 -1
  1123. package/lib/core/URL/URL.stories.js.map +1 -1
  1124. package/lib/cs/Article/Article.stories.d.ts +4 -13
  1125. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  1126. package/lib/cs/Article/Article.stories.js +9 -9
  1127. package/lib/cs/Article/Article.stories.js.map +1 -1
  1128. package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  1129. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  1130. package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
  1131. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  1132. package/lib/cs/CSCaseView/{CSCaseView.mocks.d.ts → CSAppShell.mocks.d.ts} +17 -1
  1133. package/lib/cs/CSCaseView/CSAppShell.mocks.d.ts.map +1 -0
  1134. package/lib/cs/CSCaseView/{CSCaseView.mocks.js → CSAppShell.mocks.js} +57 -1
  1135. package/lib/cs/CSCaseView/CSAppShell.mocks.js.map +1 -0
  1136. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +4 -36
  1137. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  1138. package/lib/cs/CSCaseView/CSAppShell.stories.js +31 -61
  1139. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  1140. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +6 -5
  1141. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  1142. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +138 -10
  1143. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  1144. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
  1145. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  1146. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +143 -98
  1147. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  1148. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  1149. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  1150. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  1151. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  1152. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +18 -18
  1153. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  1154. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  1155. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  1156. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  1157. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  1158. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  1159. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  1160. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  1161. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  1162. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  1163. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  1164. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
  1165. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  1166. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
  1167. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  1168. package/lib/cs/TaskManager/TaskManager.mocks.js +93 -0
  1169. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  1170. package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -6
  1171. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  1172. package/lib/cs/TaskManager/TaskManager.stories.js +123 -56
  1173. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1174. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  1175. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  1176. package/lib/cs/TaskManager/TaskManager.styles.js +9 -0
  1177. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  1178. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  1179. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  1180. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  1181. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  1182. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  1183. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1184. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  1185. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1186. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  1187. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  1188. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  1189. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  1190. package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
  1191. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  1192. package/lib/dnd/StandardDragDropList/Demo.js +151 -0
  1193. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
  1194. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  1195. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  1196. package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
  1197. package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
  1198. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  1199. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  1200. package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
  1201. package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
  1202. package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
  1203. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  1204. package/lib/dnd/StandardDragDropList/Popover.js +33 -0
  1205. package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
  1206. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  1207. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  1208. package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
  1209. package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
  1210. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  1211. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  1212. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
  1213. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
  1214. package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
  1215. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  1216. package/lib/dnd/StandardDragDropList/mockData.js +78 -0
  1217. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
  1218. package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
  1219. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  1220. package/lib/rte/Editor/Editor.mocks.js +26 -0
  1221. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  1222. package/lib/rte/Editor/Editor.stories.d.ts +7 -8
  1223. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1224. package/lib/rte/Editor/Editor.stories.js +8 -28
  1225. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1226. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  1227. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  1228. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
  1229. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1230. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +14 -7
  1231. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1232. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  1233. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1234. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
  1235. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1236. package/lib/social/Chat/Chat.mocks.d.ts +1 -1
  1237. package/lib/social/Chat/Chat.mocks.js +0 -1
  1238. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  1239. package/lib/social/Chat/Chat.stories.d.ts +6 -7
  1240. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1241. package/lib/social/Chat/Chat.stories.js +31 -31
  1242. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1243. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  1244. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  1245. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  1246. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  1247. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  1248. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  1249. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  1250. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  1251. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  1252. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  1253. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  1254. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  1255. package/lib/social/Email/Email.mocks.d.ts +224 -3
  1256. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1257. package/lib/social/Email/Email.mocks.js +602 -1
  1258. package/lib/social/Email/Email.mocks.js.map +1 -1
  1259. package/lib/social/Email/Email.stories.d.ts +40 -26
  1260. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1261. package/lib/social/Email/Email.stories.js +666 -683
  1262. package/lib/social/Email/Email.stories.js.map +1 -1
  1263. package/lib/social/Email/Email.styles.d.ts +3 -0
  1264. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  1265. package/lib/social/Email/Email.styles.js +11 -0
  1266. package/lib/social/Email/Email.styles.js.map +1 -0
  1267. package/lib/social/Feed/Feed.mocks.d.ts +13 -18
  1268. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1269. package/lib/social/Feed/Feed.mocks.js +45 -40
  1270. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1271. package/lib/social/Feed/Feed.stories.d.ts +8 -12
  1272. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1273. package/lib/social/Feed/Feed.stories.js +34 -28
  1274. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1275. package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
  1276. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1277. package/lib/social/Feed/FeedNewPost.stories.js +5 -4
  1278. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1279. package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
  1280. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1281. package/lib/social/Feed/FeedPost.stories.js +47 -36
  1282. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1283. package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
  1284. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1285. package/lib/social/Feed/FeedReply.stories.js +31 -26
  1286. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1287. package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  1288. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1289. package/lib/social/Feed/FeedReplyInput.stories.js +5 -4
  1290. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1291. package/lib/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
  1292. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
  1293. package/lib/tools/Clipboard/Clipboard.mocks.js +80 -0
  1294. package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -0
  1295. package/lib/tools/Clipboard/Clipboard.stories.d.ts +6 -0
  1296. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
  1297. package/lib/tools/Clipboard/Clipboard.stories.js +69 -0
  1298. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -0
  1299. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
  1300. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
  1301. package/lib/tools/PreviewShell/PreviewShell.mocks.js +57 -0
  1302. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -0
  1303. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +15 -0
  1304. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
  1305. package/lib/tools/PreviewShell/PreviewShell.stories.js +108 -0
  1306. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -0
  1307. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
  1308. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
  1309. package/lib/tools/PreviewShell/PreviewShell.styles.js +7 -0
  1310. package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
  1311. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  1312. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +3 -1
  1313. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1314. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  1315. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1316. package/lib/work/CaseView/CaseView.mocks.js +7 -7
  1317. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1318. package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
  1319. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1320. package/lib/work/CaseView/CaseView.stories.js +29 -21
  1321. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1322. package/lib/work/CaseView/Details.mocks.js +1 -1
  1323. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1324. package/lib/work/CaseView/FileService.mock.js +1 -1
  1325. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1326. package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  1327. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  1328. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  1329. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  1330. package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
  1331. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1332. package/lib/work/CaseView/Pulse.mocks.js +3 -3
  1333. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1334. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  1335. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  1336. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  1337. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  1338. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  1339. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1340. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -174
  1341. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1342. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  1343. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  1344. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  1345. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  1346. package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
  1347. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1348. package/lib/work/Confirmation/Confirmation.stories.js +12 -8
  1349. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1350. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1351. package/lib/work/Details/Details.stories.js +14 -59
  1352. package/lib/work/Details/Details.stories.js.map +1 -1
  1353. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1354. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  1355. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1356. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  1357. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  1358. package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
  1359. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1360. package/lib/work/SearchResults/SearchResults.stories.js +19 -17
  1361. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1362. package/lib/work/Stages/Stages.mocks.d.ts +14 -0
  1363. package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
  1364. package/lib/work/Stages/Stages.mocks.js +39 -0
  1365. package/lib/work/Stages/Stages.mocks.js.map +1 -0
  1366. package/lib/work/Stages/Stages.stories.d.ts +1 -1
  1367. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  1368. package/lib/work/Stages/Stages.stories.js +12 -44
  1369. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1370. package/lib/work/Stakeholders/Stakeholders.mocks.js +3 -3
  1371. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1372. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  1373. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1374. package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
  1375. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1376. package/lib/work/Tags/Tags.stories.js +1 -1
  1377. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1378. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  1379. package/lib/work/Tasks/TaskList.stories.js +6 -4
  1380. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1381. package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
  1382. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  1383. package/lib/work/Tasks/Tasks.stories.js +29 -17
  1384. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1385. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  1386. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1387. package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
  1388. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1389. package/lib/work/Timeline/Timeline.stories.js +24 -3
  1390. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1391. package/lib/wss/AppShell/AppShell.mocks.d.ts +24 -0
  1392. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  1393. package/lib/wss/AppShell/AppShell.mocks.js +59 -0
  1394. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
  1395. package/lib/wss/AppShell/AppShell.stories.d.ts +17 -0
  1396. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  1397. package/lib/wss/AppShell/AppShell.stories.js +77 -0
  1398. package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
  1399. package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
  1400. package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  1401. package/lib/wss/AppShell/AppShell.styles.js +5 -0
  1402. package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
  1403. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  1404. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  1405. package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
  1406. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
  1407. package/package.json +22 -18
  1408. package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
  1409. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  1410. package/jsx/core/MultiStep/MultiStep.stories.d.ts +0 -6
  1411. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  1412. package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
  1413. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
  1414. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  1415. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
  1416. package/jsx/social/Email/Email.mocks.js +0 -348
  1417. package/jsx/social/Email/Email.mocks.js.map +0 -1
  1418. package/lib/core/MultiStep/MultiStep.stories.d.ts +0 -6
  1419. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  1420. package/lib/core/MultiStep/MultiStep.stories.js +0 -36
  1421. package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
  1422. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  1423. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { useState } from 'react';
1
+ import { useState, useCallback } from 'react';
2
2
  import { Avatar, CardContent, Popover, useUID } from '@pega/cosmos-react-core';
3
3
  import { Feed, FeedReply, HashtagButtonConfig, MentionButtonConfig } from '@pega/cosmos-react-social';
4
4
  import { Glimpse } from '@pega/cosmos-react-work';
@@ -7,17 +7,17 @@ export default {
7
7
  title: 'Social/Feed/FeedReply',
8
8
  component: FeedReply
9
9
  };
10
- export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smith', content, attachments, timeElapsed: time, userStatus, renderFeed = true }) => {
10
+ export const FeedReplyDemo = ({ fullname = 'Demo User', username = 'demo_user', content, attachments, postTimestamp = new Date(2022, 0, 1), userStatus, renderFeed = true }) => {
11
11
  const defaultContent = attachments
12
12
  ? ''
13
- : 'This reply mentions @deans:Seth DeAngelo:user: and also contains a tag! #cosmos:';
13
+ : 'This reply mentions @[deans]:[Seth DeAngelo]:[user]: and also contains a tag! #cosmos:';
14
14
  const key = useUID();
15
15
  const [likes, setLikes] = useState([]);
16
16
  const [liked, setLiked] = useState(false);
17
17
  const [likeCount, setLikeCount] = useState(renderFeed ? generatedLikes.length : 0);
18
18
  const [replyContent, setReplyContent] = useState(content || defaultContent);
19
19
  const [edited, setEdited] = useState(false);
20
- const [timeElapsed, setTimeElapsed] = useState(time || '3 days ago');
20
+ const [editTimestamp, setEditTimestamp] = useState(new Date());
21
21
  const [popoverOpen, setPopoverOpen] = useState(false);
22
22
  const [popoverTarget, setPopoverTarget] = useState();
23
23
  const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);
@@ -26,20 +26,25 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
26
26
  return;
27
27
  setLikes(renderFeed ? generatedLikes : []);
28
28
  };
29
- const generateNewLike = () => {
30
- setTimeout(() => {
31
- setLikes(oldLikes => [
32
- ...oldLikes,
33
- {
34
- primary: 'Generated Like',
35
- secondary: ['This like was added after the onLoadMore callback triggered'],
36
- visual: <Avatar size='l' name='Generated Like'/>,
37
- id: 'generatedLike'
38
- }
39
- ]);
40
- setAdditionalLikeAdded(true);
41
- }, 1000);
42
- };
29
+ const [likesLoading, setLikesLoading] = useState(false);
30
+ const generateNewLike = useCallback(() => {
31
+ if (!likesLoading) {
32
+ setLikesLoading(true);
33
+ setTimeout(() => {
34
+ setLikesLoading(false);
35
+ setLikes(oldLikes => [
36
+ ...oldLikes,
37
+ {
38
+ primary: 'Generated Like',
39
+ secondary: ['This like was added after the onLoadMore callback triggered'],
40
+ visual: <Avatar size='l' name='Generated Like'/>,
41
+ id: 'generatedLike'
42
+ }
43
+ ]);
44
+ setAdditionalLikeAdded(true);
45
+ }, 1000);
46
+ }
47
+ }, [likesLoading]);
43
48
  const onMentionClick = ({ id, type }) => {
44
49
  if (type === 'user') {
45
50
  const user = userMentions.find(mention => mention.id === id);
@@ -49,7 +54,7 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
49
54
  };
50
55
  const reply = (<>
51
56
  <FeedReply id={key} key={key} info={{
52
- timeElapsed,
57
+ postTimestamp,
53
58
  content: replyContent,
54
59
  attachments,
55
60
  username,
@@ -65,8 +70,8 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
65
70
  }} maxContentHeight={40} menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => { } }]} onEditSubmit={({ value }) => {
66
71
  setReplyContent(value);
67
72
  setEdited(true);
68
- setTimeElapsed('Just now');
69
- }} edited={edited} onCommentClick={() => { }} onLikeClick={({ user }) => {
73
+ setEditTimestamp(new Date());
74
+ }} edited={edited} editTimestamp={editTimestamp} onCommentClick={() => { }} onLikeClick={({ user }) => {
70
75
  const userLikedIndex = likes.findIndex(x => x.id === user.id);
71
76
  if (userLikedIndex !== -1) {
72
77
  setLikes(oldLikes => {
@@ -81,7 +86,7 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
81
86
  setLikeCount(curr => curr + 1);
82
87
  }
83
88
  setLiked(curr => !curr);
84
- }} onLikeCountInteraction={getInitialLikes} onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined} onUserClick={(_, clickEvent) => {
89
+ }} onLikeCountInteraction={getInitialLikes} onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined} likesLoading={likesLoading} onUserClick={(_, clickEvent) => {
85
90
  if (clickEvent) {
86
91
  setPopoverTarget(clickEvent.target);
87
92
  setPopoverOpen(curr => !curr);
@@ -1 +1 @@
1
- {"version":3,"file":"FeedReply.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAmB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EACL,IAAI,EACJ,SAAS,EAET,mBAAmB,EACnB,mBAAmB,EACp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AAC,EACf,CACH,CAAC,CAAC,CAAC,CACF,KAAK,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACxC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAG,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Avatar, CardContent, Popover, SummaryListItem, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedReply,\n FeedReplyProps,\n HashtagButtonConfig,\n MentionButtonConfig\n} from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\n\nimport { generatedLikes, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedReply',\n component: FeedReply\n} as Meta;\n\nexport const FeedReplyDemo = ({\n fullname = 'Katie Smith',\n username = 'katie_smith',\n content,\n attachments,\n timeElapsed: time,\n userStatus,\n renderFeed = true\n}: {\n fullname?: FeedReplyProps['info']['fullname'];\n username?: FeedReplyProps['info']['username'];\n content?: FeedReplyProps['info']['content'];\n attachments?: FeedReplyProps['info']['attachments'];\n timeElapsed?: FeedReplyProps['info']['timeElapsed'];\n userStatus?: FeedReplyProps['info']['userStatus'];\n renderFeed?: boolean;\n}) => {\n const defaultContent = attachments\n ? ''\n : 'This reply mentions @deans:Seth DeAngelo:user: and also contains a tag! #cosmos:';\n\n const key = useUID();\n const [likes, setLikes] = useState<SummaryListItem[]>([]);\n const [liked, setLiked] = useState(false);\n const [likeCount, setLikeCount] = useState(renderFeed ? generatedLikes.length : 0);\n const [replyContent, setReplyContent] = useState(content || defaultContent);\n const [edited, setEdited] = useState(false);\n const [timeElapsed, setTimeElapsed] = useState(time || '3 days ago');\n const [popoverOpen, setPopoverOpen] = useState(false);\n const [popoverTarget, setPopoverTarget] = useState<Element>();\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes(renderFeed ? generatedLikes : []);\n };\n\n const generateNewLike = () => {\n setTimeout(() => {\n setLikes(oldLikes => [\n ...oldLikes,\n {\n primary: 'Generated Like',\n secondary: ['This like was added after the onLoadMore callback triggered'],\n visual: <Avatar size='l' name='Generated Like' />,\n id: 'generatedLike'\n }\n ]);\n setAdditionalLikeAdded(true);\n }, 1000);\n };\n\n const onMentionClick = ({ id, type }: { id: string; type: string }) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user) return <Glimpse {...user} />;\n }\n };\n\n const reply = (\n <>\n <FeedReply\n id={key}\n key={key}\n info={{\n timeElapsed,\n content: replyContent,\n attachments,\n username,\n fullname,\n fullnameLabel: `${fullname}'s Profile`,\n liked,\n userStatus\n }}\n interactionInfo={{\n likes,\n likeCount: likeCount >= 10 ? likeCount + 1 : likeCount,\n likeLabel: 'Like',\n commentLabel: 'Comment'\n }}\n maxContentHeight={40}\n menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => {} }]}\n onEditSubmit={({ value }) => {\n setReplyContent(value);\n setEdited(true);\n setTimeElapsed('Just now');\n }}\n edited={edited}\n onCommentClick={() => {}}\n onLikeClick={({ user }) => {\n const userLikedIndex = likes.findIndex(x => x.id === user.id);\n if (userLikedIndex !== -1) {\n setLikes(oldLikes => {\n const oldLikesArr = [...oldLikes];\n oldLikesArr.splice(userLikedIndex, 1);\n return oldLikesArr;\n });\n setLikeCount(curr => curr - 1);\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n setLikeCount(curr => curr + 1);\n }\n setLiked(curr => !curr);\n }}\n onLikeCountInteraction={getInitialLikes}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n onUserClick={(_, clickEvent) => {\n if (clickEvent) {\n setPopoverTarget(clickEvent.target as Element);\n setPopoverOpen(curr => !curr);\n }\n }}\n />\n {popoverTarget && (\n <Popover show={popoverOpen} target={popoverTarget} placement='bottom' portal>\n <CardContent>{fullname}</CardContent>\n </Popover>\n )}\n </>\n );\n\n return renderFeed ? (\n <Feed\n onMentionClick={onMentionClick}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[reply]}\n />\n ) : (\n reply\n );\n};\n\nexport const FeedReplyWithPresence = () => {\n return <FeedReplyDemo userStatus='active' />;\n};\n"]}
1
+ {"version":3,"file":"FeedReply.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAmB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EACL,IAAI,EACJ,SAAS,EAET,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5D,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,SAAS;CACb,CAAC;AAYV,MAAM,CAAC,MAAM,aAAa,GAA8B,CAAC,EACvD,QAAQ,GAAG,WAAW,EACtB,QAAQ,GAAG,WAAW,EACtB,OAAO,EACP,WAAW,EACX,aAAa,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,EACpC,UAAU,EACV,UAAU,GAAG,IAAI,EACE,EAAE,EAAE;IACvB,MAAM,cAAc,GAAG,WAAW;QAChC,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,wFAAwF,CAAC;IAE7F,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAoB,EAAE,CAAC,CAAC;IAC1D,MAAM,CAAC,KAAK,EAAE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CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CACpE,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;YAC7B,IAAI,UAAU,EAAE;gBACd,gBAAgB,CAAC,UAAU,CAAC,MAAiB,CAAC,CAAC;gBAC/C,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;aAC/B;QACH,CAAC,CAAC,EAEJ;MAAA,CAAC,aAAa,IAAI,CAChB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAC1E;UAAA,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAW,CACtC;QAAA,EAAE,OAAO,CAAC,CACX,CACH;IAAA,GAAG,CACJ,CAAC;IAEF,OAAO,UAAU,CAAC,CAAC,CAAC,CAClB,CAAC,IAAI,CACH,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CACjE,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAC3D,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EACf,CACH,CAAC,CAAC,CAAC,CACF,KAAK,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAU,GAAG,EAAE;IAC/C,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAG,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useCallback } from 'react';\n\nimport { Avatar, CardContent, Popover, SummaryListItem, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedReply,\n FeedReplyProps,\n HashtagButtonConfig,\n MentionButtonConfig\n} from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\n\nimport { generatedLikes, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedReply',\n component: FeedReply\n} as Meta;\n\ninterface FeedReplyDemoProps {\n fullname?: FeedReplyProps['info']['fullname'];\n username?: FeedReplyProps['info']['username'];\n content?: FeedReplyProps['info']['content'];\n attachments?: FeedReplyProps['info']['attachments'];\n postTimestamp?: FeedReplyProps['info']['postTimestamp'];\n userStatus?: FeedReplyProps['info']['userStatus'];\n renderFeed?: boolean;\n}\n\nexport const FeedReplyDemo: Story<FeedReplyDemoProps> = ({\n fullname = 'Demo User',\n username = 'demo_user',\n content,\n attachments,\n postTimestamp = new Date(2022, 0, 1),\n userStatus,\n renderFeed = true\n}: FeedReplyDemoProps) => {\n const defaultContent = attachments\n ? ''\n : 'This reply mentions @[deans]:[Seth DeAngelo]:[user]: and also contains a tag! #cosmos:';\n\n const key = useUID();\n const [likes, setLikes] = useState<SummaryListItem[]>([]);\n const [liked, setLiked] = useState(false);\n const [likeCount, setLikeCount] = useState(renderFeed ? generatedLikes.length : 0);\n const [replyContent, setReplyContent] = useState(content || defaultContent);\n const [edited, setEdited] = useState(false);\n const [editTimestamp, setEditTimestamp] = useState(new Date());\n const [popoverOpen, setPopoverOpen] = useState(false);\n const [popoverTarget, setPopoverTarget] = useState<Element>();\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes(renderFeed ? generatedLikes : []);\n };\n\n const [likesLoading, setLikesLoading] = useState(false);\n\n const generateNewLike = useCallback(() => {\n if (!likesLoading) {\n setLikesLoading(true);\n setTimeout(() => {\n setLikesLoading(false);\n setLikes(oldLikes => [\n ...oldLikes,\n {\n primary: 'Generated Like',\n secondary: ['This like was added after the onLoadMore callback triggered'],\n visual: <Avatar size='l' name='Generated Like' />,\n id: 'generatedLike'\n }\n ]);\n setAdditionalLikeAdded(true);\n }, 1000);\n }\n }, [likesLoading]);\n\n const onMentionClick = ({ id, type }: { id: string; type: string }) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user) return <Glimpse {...user} />;\n }\n };\n\n const reply = (\n <>\n <FeedReply\n id={key}\n key={key}\n info={{\n postTimestamp,\n content: replyContent,\n attachments,\n username,\n fullname,\n fullnameLabel: `${fullname}'s Profile`,\n liked,\n userStatus\n }}\n interactionInfo={{\n likes,\n likeCount: likeCount >= 10 ? likeCount + 1 : likeCount,\n likeLabel: 'Like',\n commentLabel: 'Comment'\n }}\n maxContentHeight={40}\n menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => {} }]}\n onEditSubmit={({ value }) => {\n setReplyContent(value);\n setEdited(true);\n setEditTimestamp(new Date());\n }}\n edited={edited}\n editTimestamp={editTimestamp}\n onCommentClick={() => {}}\n onLikeClick={({ user }) => {\n const userLikedIndex = likes.findIndex(x => x.id === user.id);\n if (userLikedIndex !== -1) {\n setLikes(oldLikes => {\n const oldLikesArr = [...oldLikes];\n oldLikesArr.splice(userLikedIndex, 1);\n return oldLikesArr;\n });\n setLikeCount(curr => curr - 1);\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n setLikeCount(curr => curr + 1);\n }\n setLiked(curr => !curr);\n }}\n onLikeCountInteraction={getInitialLikes}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n likesLoading={likesLoading}\n onUserClick={(_, clickEvent) => {\n if (clickEvent) {\n setPopoverTarget(clickEvent.target as Element);\n setPopoverOpen(curr => !curr);\n }\n }}\n />\n {popoverTarget && (\n <Popover show={popoverOpen} target={popoverTarget} placement='bottom' portal>\n <CardContent>{fullname}</CardContent>\n </Popover>\n )}\n </>\n );\n\n return renderFeed ? (\n <Feed\n onMentionClick={onMentionClick}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[reply]}\n />\n ) : (\n reply\n );\n};\n\nexport const FeedReplyWithPresence: Story = () => {\n return <FeedReplyDemo userStatus='active' />;\n};\n"]}
@@ -1,15 +1,10 @@
1
- /// <reference types="react" />
2
- import { Meta } from '@storybook/react';
3
- import { FeedReplyInputProps, AttachedFiles } from '@pega/cosmos-react-social';
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { FeedReplyInputProps } from '@pega/cosmos-react-social';
4
3
  declare const _default: Meta<import("@storybook/react").Args>;
5
4
  export default _default;
6
- export declare const FeedReplyInputDemo: ({ onSubmit, renderFeed }: {
7
- onSubmit?: ((event: {
8
- replyId: string;
9
- value: string;
10
- attachments: AttachedFiles[];
11
- clear: () => void;
12
- }) => void) | undefined;
13
- renderFeed?: boolean | undefined;
14
- }) => JSX.Element;
5
+ interface FeedReplyInputDemoProps {
6
+ onSubmit?: FeedReplyInputProps['onSubmit'];
7
+ renderFeed?: boolean;
8
+ }
9
+ export declare const FeedReplyInputDemo: Story<FeedReplyInputDemoProps>;
15
10
  //# sourceMappingURL=FeedReplyInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeedReplyInput.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedReplyInput.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIxC,OAAO,EAGL,mBAAmB,EACnB,aAAa,EACd,MAAM,2BAA2B,CAAC;;AAKnC,wBAGU;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;iBA2F9B,CAAC"}
1
+ {"version":3,"file":"FeedReplyInput.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedReplyInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAGL,mBAAmB,EAEpB,MAAM,2BAA2B,CAAC;;AAKnC,wBAGU;AAEV,UAAU,uBAAuB;IAC/B,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,uBAAuB,CAyF7D,CAAC"}
@@ -19,12 +19,13 @@ export const FeedReplyInputDemo = ({ onSubmit, renderFeed = true }) => {
19
19
  const searchWords = search.toLowerCase().split(' ');
20
20
  return !!searchWords.every((word) => names.find((name) => name.startsWith(word)));
21
21
  })
22
- .map(({ id, primary, secondary, visual }) => {
22
+ .map(({ id, primary, secondary, visual, href }) => {
23
23
  return {
24
24
  id,
25
25
  primary,
26
26
  secondary,
27
- visual
27
+ visual,
28
+ href
28
29
  };
29
30
  });
30
31
  setSearchResults(mentions);
@@ -1 +1 @@
1
- {"version":3,"file":"FeedReplyInput.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReplyInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAiB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,IAAI,EACJ,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE1D,eAAe;IACb,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,cAAc;CAClB,CAAC;AAEV,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,QAAQ,EACR,UAAU,GAAG,IAAI,EAIlB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IACxE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IAEpE,MAAM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,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAC3D,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,EACpB,CACH,CAAC,CAAC,CAAC,CACF,UAAU,CACX,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { MenuItemProps, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedReplyInput,\n FeedReplyInputProps,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { caseMentions, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedReplyInput',\n component: FeedReplyInput\n} as Meta;\n\nexport const FeedReplyInputDemo = ({\n onSubmit,\n renderFeed = true\n}: {\n onSubmit?: FeedReplyInputProps['onSubmit'];\n renderFeed?: boolean;\n}) => {\n const key = useUID();\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n const [attachments, setAttachments] = useState<AttachedFiles[]>([]);\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual }) => {\n return {\n id,\n primary,\n secondary,\n visual\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const onFilesAdded = (files: AttachedFiles[]) => {\n files.forEach(file => {\n if (file.type.split('/')[0] === 'image') file.thumbnail = URL.createObjectURL(file);\n\n file.onDelete = () => {\n setAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n };\n });\n\n setAttachments(files);\n };\n\n const replyInput = (\n <FeedReplyInput\n id={key}\n commentLabel='Send Comment'\n attachments={attachments}\n placeholder='Add a comment'\n onFilesAdded={onFilesAdded}\n onSubmit={replyEvent => {\n onSubmit?.(replyEvent);\n setAttachments([]);\n replyEvent.clear();\n }}\n />\n );\n\n return renderFeed ? (\n <Feed\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[replyInput]}\n />\n ) : (\n replyInput\n );\n};\n"]}
1
+ {"version":3,"file":"FeedReplyInput.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReplyInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAiB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,IAAI,EACJ,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE1D,eAAe;IACb,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,cAAc;CAClB,CAAC;AAOV,MAAM,CAAC,MAAM,kBAAkB,GAAmC,CAAC,EACjE,QAAQ,EACR,UAAU,GAAG,IAAI,EACO,EAAE,EAAE;IAC5B,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IACxE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IAEpE,MAAM,QAAQ,GAAG,CAAC,EAChB,IAAI,EACJ,MAAM,EACN,WAAW,EAKZ,EAAE,EAAE;Q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AAW,EAAE,CAAC,CAC3D,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,EACpB,CACH,CAAC,CAAC,CAAC,CACF,UAAU,CACX,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { MenuItemProps, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedReplyInput,\n FeedReplyInputProps,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { caseMentions, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedReplyInput',\n component: FeedReplyInput\n} as Meta;\n\ninterface FeedReplyInputDemoProps {\n onSubmit?: FeedReplyInputProps['onSubmit'];\n renderFeed?: boolean;\n}\n\nexport const FeedReplyInputDemo: Story<FeedReplyInputDemoProps> = ({\n onSubmit,\n renderFeed = true\n}: FeedReplyInputDemoProps) => {\n const key = useUID();\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n const [attachments, setAttachments] = useState<AttachedFiles[]>([]);\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual, href }) => {\n return {\n id,\n primary,\n secondary,\n visual,\n href\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const onFilesAdded = (files: AttachedFiles[]) => {\n files.forEach(file => {\n if (file.type.split('/')[0] === 'image') file.thumbnail = URL.createObjectURL(file);\n\n file.onDelete = () => {\n setAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n };\n });\n\n setAttachments(files);\n };\n\n const replyInput = (\n <FeedReplyInput\n id={key}\n commentLabel='Send Comment'\n attachments={attachments}\n placeholder='Add a comment'\n onFilesAdded={onFilesAdded}\n onSubmit={replyEvent => {\n onSubmit?.(replyEvent);\n setAttachments([]);\n replyEvent.clear();\n }}\n />\n );\n\n return renderFeed ? (\n <Feed\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[replyInput]}\n />\n ) : (\n replyInput\n );\n};\n"]}
@@ -0,0 +1,6 @@
1
+ import { ContentProps } from '@pega/cosmos-react-tools';
2
+ import { StandardTreeProps } from '@pega/cosmos-react-core';
3
+ export declare const getDetailsData: (id: string, cb?: (id: string) => void) => ContentProps;
4
+ export declare const allNodes: StandardTreeProps['nodes'];
5
+ export declare const childNodes: StandardTreeProps['nodes'];
6
+ //# sourceMappingURL=Clipboard.mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Clipboard.mocks.d.ts","sourceRoot":"","sources":["../../../src/tools/Clipboard/Clipboard.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAyB,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGnF,eAAO,MAAM,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,KAAK,YAgDvE,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,OAAO,CAsB/C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAajD,CAAC"}
@@ -0,0 +1,82 @@
1
+ import { Actions, Button, Flex } from '@pega/cosmos-react-core';
2
+ export const getDetailsData = (id, cb) => {
3
+ const primaryData = [
4
+ { id: 'field1', name: 'pxCommitDateTime', value: '20220303T121437.913 GMT' },
5
+ { id: 'field2', name: 'pxInsName', value: 'John.smith' },
6
+ { id: 'field3', name: 'pxObjClass', value: 'Data-Preference-Operator' },
7
+ { id: 'field4', name: 'pzInsKey', value: 'DATA-PREFERENCE-OPERATOR JOHN SMITH' }
8
+ ];
9
+ const embeddedData = [
10
+ { id: 'pxDPParameters', name: 'pxDPParameters', onClick: cb },
11
+ { id: 'pyDevicePreviewSettings', name: 'pyDevicePreviewSettings', onClick: cb },
12
+ { id: 'pySourcePage', name: 'pySourcePage', onClick: cb }
13
+ ];
14
+ let data;
15
+ if (id === 'D_pzPreferenceStore') {
16
+ data = [...primaryData, ...embeddedData];
17
+ }
18
+ else
19
+ data = primaryData;
20
+ return {
21
+ primary: id,
22
+ secondary: [
23
+ { id: '1', name: 'ID', value: 'InterestRate' },
24
+ { id: '2', name: 'Rule type', value: 'Field' },
25
+ {
26
+ id: '3',
27
+ name: 'Scope',
28
+ value: 'O1XPTI-CCompass-Work-MortgageRequest'
29
+ },
30
+ { id: '4', name: 'Application', value: 'XCompass' }
31
+ ],
32
+ actions: (<Flex container>
33
+ <Button variant='secondary'>Secondary action</Button>
34
+ <Button variant='primary'>Primary action</Button>
35
+ <Actions menuAt={1} items={[
36
+ {
37
+ id: '1',
38
+ text: 'Secondary action 2'
39
+ }
40
+ ]}/>
41
+ </Flex>),
42
+ fields: data
43
+ };
44
+ };
45
+ export const allNodes = [
46
+ {
47
+ id: 'dataPage',
48
+ label: 'Data Pages',
49
+ nodes: [
50
+ {
51
+ id: 'D_pzPreferenceStore',
52
+ label: 'D_pzPreferenceStore',
53
+ nodes: []
54
+ },
55
+ {
56
+ id: 'D_creditScore',
57
+ label: 'D_Credit Score',
58
+ nodes: []
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ id: 'systemPage',
64
+ label: 'System Pages',
65
+ nodes: []
66
+ }
67
+ ];
68
+ export const childNodes = [
69
+ {
70
+ id: 'pxDPParameters',
71
+ label: 'pxDPParameters'
72
+ },
73
+ {
74
+ id: 'pyDevicePreviewSettings',
75
+ label: 'pyDevicePreviewSettings'
76
+ },
77
+ {
78
+ id: 'pySourcePage',
79
+ label: 'pySourcePage'
80
+ }
81
+ ];
82
+ //# sourceMappingURL=Clipboard.mocks.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Clipboard.mocks.jsx","sourceRoot":"","sources":["../../../src/tools/Clipboard/Clipboard.mocks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAqB,MAAM,yBAAyB,CAAC;AAGnF,MAAM,CAAC,MAAM,cAAc,GAA4D,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;IAChG,MAAM,WAAW,GAAG;QAClB,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,yBAAyB,EAAE;QAC5E,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE;QACxD,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,0BAA0B,EAAE;QACvE,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,qCAAqC,EAAE;KACjF,CAAC;IAEF,MAAM,YAAY,GAAG;QACnB,EAAE,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,EAAE;QAC7D,EAAE,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,yBAAyB,EAAE,OAAO,EAAE,EAAE,EAAE;QAC/E,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,EAAE;KAC1D,CAAC;IAEF,IAAI,IAAI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BAAgB;gBACvB,KAAK,EAAE,EAAE;aACV;SACF;KACF;IACD;QACE,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA+B;IACpD;QACE,EAAE,EAAE,gBAAgB;QACpB,KAAK,EAAE,gBAAgB;KACxB;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,KAAK,EAAE,yBAAyB;KACjC;IACD;QACE,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,cAAc;KACtB;CACF,CAAC","sourcesContent":["import { ContentProps } from '@pega/cosmos-react-tools';\nimport { Actions, Button, Flex, StandardTreeProps } from '@pega/cosmos-react-core';\n\n// cSpell:words XPTI\nexport const getDetailsData: (id: string, cb?: (id: string) => void) => ContentProps = (id, cb) => {\n const primaryData = [\n { id: 'field1', name: 'pxCommitDateTime', value: '20220303T121437.913 GMT' },\n { id: 'field2', name: 'pxInsName', value: 'John.smith' },\n { id: 'field3', name: 'pxObjClass', value: 'Data-Preference-Operator' },\n { id: 'field4', name: 'pzInsKey', value: 'DATA-PREFERENCE-OPERATOR JOHN SMITH' }\n ];\n\n const embeddedData = [\n { id: 'pxDPParameters', name: 'pxDPParameters', onClick: cb },\n { id: 'pyDevicePreviewSettings', name: 'pyDevicePreviewSettings', onClick: cb },\n { id: 'pySourcePage', name: 'pySourcePage', onClick: cb }\n ];\n\n let data;\n if (id === 'D_pzPreferenceStore') {\n data = [...primaryData, ...embeddedData];\n } else data = primaryData;\n\n return {\n primary: id,\n secondary: [\n { id: '1', name: 'ID', value: 'InterestRate' },\n { id: '2', name: 'Rule type', value: 'Field' },\n {\n id: '3',\n name: 'Scope',\n value: 'O1XPTI-CCompass-Work-MortgageRequest'\n },\n { id: '4', name: 'Application', value: 'XCompass' }\n ],\n actions: (\n <Flex container>\n <Button variant='secondary'>Secondary action</Button>\n <Button variant='primary'>Primary action</Button>\n <Actions\n menuAt={1}\n items={[\n {\n id: '1',\n text: 'Secondary action 2'\n }\n ]}\n />\n </Flex>\n ),\n fields: data\n };\n};\n\nexport const allNodes: StandardTreeProps['nodes'] = [\n {\n id: 'dataPage',\n label: 'Data Pages',\n nodes: [\n {\n id: 'D_pzPreferenceStore',\n label: 'D_pzPreferenceStore',\n nodes: []\n },\n {\n id: 'D_creditScore',\n label: 'D_Credit Score',\n nodes: []\n }\n ]\n },\n {\n id: 'systemPage',\n label: 'System Pages',\n nodes: []\n }\n];\n\nexport const childNodes: StandardTreeProps['nodes'] = [\n {\n id: 'pxDPParameters',\n label: 'pxDPParameters'\n },\n {\n id: 'pyDevicePreviewSettings',\n label: 'pyDevicePreviewSettings'\n },\n {\n id: 'pySourcePage',\n label: 'pySourcePage'\n }\n];\n"]}
@@ -0,0 +1,6 @@
1
+ import { Story, Meta } from '@storybook/react';
2
+ import { ClipboardProps } from '@pega/cosmos-react-tools';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const ClipboardViewerDemo: Story<ClipboardProps>;
6
+ //# sourceMappingURL=Clipboard.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Clipboard.stories.d.ts","sourceRoot":"","sources":["../../../src/tools/Clipboard/Clipboard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAa,cAAc,EAAgB,MAAM,0BAA0B,CAAC;;AAMnF,wBAMU;AAEV,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,cAAc,CAsErD,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { useState } from 'react';
2
+ import { Clipboard } from '@pega/cosmos-react-tools';
3
+ import { treeHelpers } from '@pega/cosmos-react-core';
4
+ import { allNodes, childNodes, getDetailsData } from './Clipboard.mocks';
5
+ export default {
6
+ title: 'Tools/Clipboard',
7
+ component: Clipboard,
8
+ parameters: {
9
+ layout: 'fullscreen'
10
+ }
11
+ };
12
+ export const ClipboardViewerDemo = () => {
13
+ const [nodes, setNodes] = useState(allNodes);
14
+ const [currentNodeId, setCurrentNodeId] = useState(allNodes[0].id);
15
+ const [pageDetails, setPageDetails] = useState();
16
+ const updatePageDetails = (id, cb) => {
17
+ setPageDetails({ primary: '', fields: [], loading: true });
18
+ setTimeout(() => {
19
+ setPageDetails(getDetailsData(id, cb));
20
+ }, 300);
21
+ };
22
+ const getMappedNodes = (tree, id) => {
23
+ return treeHelpers.mapNode(tree, id, node => {
24
+ return {
25
+ ...node,
26
+ expanded: !node.expanded,
27
+ loading: node.nodes?.length === 0
28
+ };
29
+ });
30
+ };
31
+ const updateNodeDetails = (id) => {
32
+ setCurrentNodeId(id);
33
+ setNodes(tree => treeHelpers.expandTo(getMappedNodes(tree, id), id));
34
+ updatePageDetails(id);
35
+ };
36
+ const loadChildNodes = (id) => {
37
+ setTimeout(() => {
38
+ setNodes(tree => treeHelpers.mapNode(tree, id, node => {
39
+ return {
40
+ ...node,
41
+ loading: false,
42
+ nodes: id === 'D_creditScore' || id === 'systemPage' ? undefined : childNodes
43
+ };
44
+ }));
45
+ if (id !== 'systemPage') {
46
+ updatePageDetails(id, updateNodeDetails);
47
+ }
48
+ }, 1000);
49
+ };
50
+ const onNodeClick = (nodeId) => {
51
+ setCurrentNodeId(nodeId);
52
+ if (!treeHelpers.getNode(allNodes, nodeId)?.nodes) {
53
+ updatePageDetails(nodeId);
54
+ }
55
+ else {
56
+ setNodes(tree => getMappedNodes(tree, nodeId));
57
+ return ['D_creditScore', 'D_pzPreferenceStore', 'systemPage'].includes(nodeId)
58
+ ? loadChildNodes(nodeId)
59
+ : setPageDetails(undefined);
60
+ }
61
+ };
62
+ return (<Clipboard navigation={{
63
+ nodes,
64
+ currentNodeId,
65
+ onNodeClick
66
+ }} content={pageDetails} lastUpdated='Last updated: Less than a minute ago'/>);
67
+ };
68
+ //# sourceMappingURL=Clipboard.stories.jsx.map
@@ -0,0 +1 @@
1
+ {"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,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;YAE/C,OAAO,CAAC,eAAe,EAAE,qBAAqB,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAC5E,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC;gBACxB,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;SAC/B;IACH,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,SAAS,CACR,UAAU,CAAC,CAAC;YACV,KAAK;YACL,aAAa;YACb,WAAW;SACZ,CAAC,CACF,OAAO,CAAC,CAAC,WAAW,CAAC,CACrB,WAAW,CAAC,sCAAsC,EAClD,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Story, Meta } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Clipboard, ClipboardProps, ContentProps } from '@pega/cosmos-react-tools';\nimport { treeHelpers } from '@pega/cosmos-react-core';\nimport { StandardTreeNode } from '@pega/cosmos-react-core/lib/components/Tree/StandardTree.types';\n\nimport { allNodes, childNodes, getDetailsData } from './Clipboard.mocks';\n\nexport default {\n title: 'Tools/Clipboard',\n component: Clipboard,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport const ClipboardViewerDemo: Story<ClipboardProps> = () => {\n const [nodes, setNodes] = useState(allNodes);\n const [currentNodeId, setCurrentNodeId] = useState(allNodes[0].id);\n const [pageDetails, setPageDetails] = useState<ContentProps | undefined>();\n\n const updatePageDetails = (id: string, cb?: (id: string) => void) => {\n setPageDetails({ primary: '', fields: [], loading: true });\n setTimeout(() => {\n setPageDetails(getDetailsData(id, cb));\n }, 300);\n };\n\n const getMappedNodes = (tree: StandardTreeNode[], id: string) => {\n return treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n expanded: !node.expanded,\n loading: node.nodes?.length === 0\n };\n });\n };\n\n const updateNodeDetails = (id: string) => {\n setCurrentNodeId(id);\n setNodes(tree => treeHelpers.expandTo(getMappedNodes(tree, id), id));\n updatePageDetails(id);\n };\n\n const loadChildNodes = (id: string) => {\n setTimeout(() => {\n setNodes(tree =>\n treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n loading: false,\n nodes: id === 'D_creditScore' || id === 'systemPage' ? undefined : childNodes\n };\n })\n );\n if (id !== 'systemPage') {\n updatePageDetails(id, updateNodeDetails);\n }\n }, 1000);\n };\n\n const onNodeClick = (nodeId: string) => {\n setCurrentNodeId(nodeId);\n\n if (!treeHelpers.getNode(allNodes, nodeId)?.nodes) {\n updatePageDetails(nodeId);\n } else {\n setNodes(tree => getMappedNodes(tree, nodeId));\n\n return ['D_creditScore', 'D_pzPreferenceStore', 'systemPage'].includes(nodeId)\n ? loadChildNodes(nodeId)\n : setPageDetails(undefined);\n }\n };\n\n return (\n <Clipboard\n navigation={{\n nodes,\n currentNodeId,\n onNodeClick\n }}\n content={pageDetails}\n lastUpdated='Last updated: Less than a minute ago'\n />\n );\n};\n"]}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { MenuProps } from '@pega/cosmos-react-core';
3
+ export declare const footerTabsMockContent: JSX.Element[];
4
+ export declare const footerTabsMock: {
5
+ name: string;
6
+ id: string;
7
+ }[];
8
+ export declare const footerMenuMock: MenuProps['items'];
9
+ //# sourceMappingURL=PreviewShell.mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewShell.mocks.d.ts","sourceRoot":"","sources":["../../../src/tools/PreviewShell/PreviewShell.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAOpD,eAAO,MAAM,qBAAqB,eAKjC,CAAC;AAEF,eAAO,MAAM,cAAc;;;GAG1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,CAAC,OAAO,CA2C7C,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { ClipboardViewerDemo } from '../Clipboard/Clipboard.stories';
2
+ import { EmptyStateDemo } from '../../core/EmptyState/EmptyState.stories';
3
+ import { StyledContainer } from './PreviewShell.styles';
4
+ export const footerTabsMockContent = [
5
+ <StyledContainer>
6
+ <EmptyStateDemo />
7
+ </StyledContainer>,
8
+ <ClipboardViewerDemo navigation={{ nodes: [] }}/>
9
+ ];
10
+ export const footerTabsMock = [
11
+ { name: 'Tracer', id: '0' },
12
+ { name: 'Clipboard', id: '1' }
13
+ ];
14
+ export const footerMenuMock = [
15
+ {
16
+ id: '1',
17
+ primary: 'Dock to bottom'
18
+ },
19
+ {
20
+ id: '2',
21
+ primary: 'Separate window'
22
+ },
23
+ {
24
+ id: '3',
25
+ primary: 'More tools',
26
+ items: [
27
+ {
28
+ id: '3-1',
29
+ primary: 'Network'
30
+ },
31
+ {
32
+ id: '3-2',
33
+ primary: 'Performance'
34
+ },
35
+ {
36
+ id: '3-3',
37
+ primary: 'Memory'
38
+ },
39
+ {
40
+ id: '3-4',
41
+ primary: 'Application'
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ id: '4',
47
+ primary: 'Settings'
48
+ },
49
+ {
50
+ id: '5',
51
+ primary: 'Shortcuts'
52
+ },
53
+ {
54
+ id: '6',
55
+ primary: 'Help'
56
+ }
57
+ ];
58
+ //# sourceMappingURL=PreviewShell.mocks.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewShell.mocks.jsx","sourceRoot":"","sources":["../../../src/tools/PreviewShell/PreviewShell.mocks.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,CAAC,eAAe,CACd;IAAA,CAAC,cAAc,CAAC,AAAD,EACjB;EAAA,EAAE,eAAe,CAAC;IAClB,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,EAAG;CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE;IAC3B,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,GAAG,EAAE;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAuB;IAChD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,gBAAgB;KAC1B;IACD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,iBAAiB;KAC3B;IACD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,YAAY;QACrB,KAAK,EAAE;YACL;gBACE,EAAE,EAAE,KAAK;gBACT,OAAO,EAAE,SAAS;aACnB;YACD;gBACE,EAAE,EAAE,KAAK;gBACT,OAAO,EAAE,aAAa;aACvB;YACD;gBACE,EAAE,EAAE,KAAK;gBACT,OAAO,EAAE,QAAQ;aAClB;YACD;gBACE,EAAE,EAAE,KAAK;gBACT,OAAO,EAAE,aAAa;aACvB;SACF;KACF;IACD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,UAAU;KACpB;IACD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,WAAW;KACrB;IACD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,MAAM;KAChB;CACF,CAAC","sourcesContent":["import { MenuProps } from '@pega/cosmos-react-core';\n\nimport { ClipboardViewerDemo } from '../Clipboard/Clipboard.stories';\nimport { EmptyStateDemo } from '../../core/EmptyState/EmptyState.stories';\n\nimport { StyledContainer } from './PreviewShell.styles';\n\nexport const footerTabsMockContent = [\n <StyledContainer>\n <EmptyStateDemo />\n </StyledContainer>,\n <ClipboardViewerDemo navigation={{ nodes: [] }} />\n];\n\nexport const footerTabsMock = [\n { name: 'Tracer', id: '0' },\n { name: 'Clipboard', id: '1' }\n];\n\nexport const footerMenuMock: MenuProps['items'] = [\n {\n id: '1',\n primary: 'Dock to bottom'\n },\n {\n id: '2',\n primary: 'Separate window'\n },\n {\n id: '3',\n primary: 'More tools',\n items: [\n {\n id: '3-1',\n primary: 'Network'\n },\n {\n id: '3-2',\n primary: 'Performance'\n },\n {\n id: '3-3',\n primary: 'Memory'\n },\n {\n id: '3-4',\n primary: 'Application'\n }\n ]\n },\n {\n id: '4',\n primary: 'Settings'\n },\n {\n id: '5',\n primary: 'Shortcuts'\n },\n {\n id: '6',\n primary: 'Help'\n }\n];\n"]}
@@ -0,0 +1,15 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { PreviewShellProps } from '@pega/cosmos-react-tools';
3
+ import { StatusProps } from '@pega/cosmos-react-core';
4
+ declare const _default: Meta<import("@storybook/react").Args>;
5
+ export default _default;
6
+ interface PreviewShellStoryProps extends PreviewShellProps {
7
+ appName: PreviewShellProps['header']['appName'];
8
+ statusVariant: StatusProps['variant'];
9
+ statusText: string;
10
+ operatorName: PreviewShellProps['header']['operator']['avatar']['name'];
11
+ expandFooter: PreviewShellProps['footer']['expanded'];
12
+ }
13
+ export declare const PreviewShellSkeleton: Story<PreviewShellStoryProps>;
14
+ export declare const PreviewShellDemo: Story<PreviewShellStoryProps>;
15
+ //# sourceMappingURL=PreviewShell.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewShell.stories.d.ts","sourceRoot":"","sources":["../../../src/tools/PreviewShell/PreviewShell.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAAgB,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;;AAItD,wBAMU;AAEV,UAAU,sBAAuB,SAAQ,iBAAiB;IACxD,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;IAChD,aAAa,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;IACxE,YAAY,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,sBAAsB,CAsC9D,CAAC;AAqBF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,sBAAsB,CAqC1D,CAAC"}
@@ -0,0 +1,107 @@
1
+ import { action } from '@storybook/addon-actions';
2
+ import { useState } from 'react';
3
+ import { PreviewShell } from '@pega/cosmos-react-tools';
4
+ import { footerMenuMock, footerTabsMockContent, footerTabsMock } from './PreviewShell.mocks';
5
+ export default {
6
+ title: 'Tools/PreviewShell',
7
+ component: PreviewShell,
8
+ parameters: {
9
+ layout: 'fullscreen'
10
+ }
11
+ };
12
+ export const PreviewShellSkeleton = (args) => {
13
+ const [tabContent, setTabContent] = useState('Tab 1 content');
14
+ return (<PreviewShell frameurl='' header={{
15
+ appName: args.appName,
16
+ status: {
17
+ variant: args.statusVariant,
18
+ children: args.statusText
19
+ },
20
+ operator: {
21
+ avatar: { name: args.operatorName || '' },
22
+ actions: [
23
+ { primary: 'Profile', id: 'profile' },
24
+ { primary: 'Settings', id: 'settings' },
25
+ { primary: 'My applications', id: 'apps' },
26
+ { primary: 'Help center', id: 'help' },
27
+ { primary: 'Log out', id: 'logout' }
28
+ ],
29
+ name: args.operatorName
30
+ }
31
+ }} footer={{
32
+ tabs: footerTabsMock,
33
+ tabContent,
34
+ onTabClick: (id) => {
35
+ setTabContent(`Tab ${+id + 1} content`);
36
+ },
37
+ expanded: args.expandFooter,
38
+ newTabHref: 'https://www.pega.com',
39
+ menu: { items: footerMenuMock }
40
+ }}/>);
41
+ };
42
+ PreviewShellSkeleton.args = {
43
+ appName: 'Title',
44
+ statusVariant: 'pending',
45
+ statusText: 'status',
46
+ operatorName: 'Cindy Turner',
47
+ expandFooter: true
48
+ };
49
+ PreviewShellSkeleton.argTypes = {
50
+ appName: { control: { type: 'text' } },
51
+ statusVariant: {
52
+ options: ['success', 'urgent', 'warn', 'pending', 'info'],
53
+ control: { type: 'select' }
54
+ },
55
+ statusText: { control: { type: 'text' } },
56
+ operatorName: { control: { type: 'text' } },
57
+ expandFooter: { control: { type: 'boolean' } }
58
+ };
59
+ export const PreviewShellDemo = (args) => {
60
+ const [tabContent, setTabContent] = useState(footerTabsMockContent[0]);
61
+ return (<PreviewShell frameurl={`${window.location.origin}/iframe.html?id=core-pagetemplates--tabbed-page-demo&args=&viewMode=story`} header={{
62
+ appName: args.appName,
63
+ onClick: action('Clicked application name'),
64
+ status: {
65
+ variant: args.statusVariant,
66
+ children: args.statusText
67
+ },
68
+ operator: {
69
+ avatar: { name: args.operatorName },
70
+ actions: [
71
+ { primary: 'Profile', id: 'profile' },
72
+ { primary: 'Settings', id: 'settings' },
73
+ { primary: 'My applications', id: 'apps' },
74
+ { primary: 'Help center', id: 'help' },
75
+ { primary: 'Log out', id: 'logout' }
76
+ ],
77
+ name: args.operatorName
78
+ }
79
+ }} footer={{
80
+ tabs: footerTabsMock,
81
+ tabContent,
82
+ onTabClick: (id) => {
83
+ setTabContent(footerTabsMockContent[Number(id)]);
84
+ },
85
+ expanded: args.expandFooter,
86
+ newTabHref: 'https://www.pega.com',
87
+ menu: { items: footerMenuMock }
88
+ }}/>);
89
+ };
90
+ PreviewShellDemo.args = {
91
+ appName: 'U+ Desk',
92
+ statusVariant: 'pending',
93
+ statusText: 'development',
94
+ operatorName: 'Cindy Turner',
95
+ expandFooter: false
96
+ };
97
+ PreviewShellDemo.argTypes = {
98
+ appName: { control: { type: 'text' } },
99
+ statusVariant: {
100
+ options: ['success', 'urgent', 'warn', 'pending', 'info'],
101
+ control: { type: 'select' }
102
+ },
103
+ statusText: { control: { type: 'text' } },
104
+ operatorName: { control: { type: 'text' } },
105
+ expandFooter: { control: { type: 'boolean' } }
106
+ };
107
+ //# sourceMappingURL=PreviewShell.stories.jsx.map