@pega/cosmos-react-demos 2.1.4 → 3.0.0-dev.10.0

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 (1161) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +2 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx +52 -14
  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 +4 -3
  10. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  11. package/jsx/build/AppShell/AppShell.stories.jsx +65 -57
  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/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  22. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  23. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +110 -28
  24. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  25. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  26. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  27. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +159 -154
  28. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  29. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  30. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  31. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  32. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  33. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +3 -0
  34. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -0
  35. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +45 -0
  36. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -0
  37. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +5 -0
  38. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -0
  39. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +45 -0
  40. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -0
  41. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  42. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  43. package/jsx/build/LifeCycle/LifeCycle.mocks.js +107 -19
  44. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  45. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  46. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  47. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +163 -61
  48. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  49. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  50. package/jsx/build/LifeCycle/utils.js +5 -4
  51. package/jsx/build/LifeCycle/utils.js.map +1 -1
  52. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  53. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  54. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +335 -0
  55. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  56. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  57. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  58. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +169 -0
  59. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  60. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  61. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  62. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  63. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  64. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  65. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  66. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
  67. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  68. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  69. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
  70. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  71. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  72. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  73. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
  74. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  75. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  76. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  77. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +99 -277
  78. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  79. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  80. package/jsx/build/Workbench/Workbench.stories.jsx +14 -27
  81. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  82. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  83. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  84. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  85. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  86. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  87. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  88. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +59 -56
  89. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  90. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  91. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  92. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  93. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  94. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  95. package/jsx/condition-builder/ConditionBuilder/props.mock.js +17 -2
  96. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  97. package/jsx/core/AppShell/AppShell.stories.d.ts +6 -0
  98. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  99. package/jsx/core/AppShell/AppShell.stories.jsx +28 -2
  100. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  101. package/jsx/core/Avatar/Avatar.stories.d.ts +5 -0
  102. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  103. package/jsx/core/Avatar/Avatar.stories.jsx +32 -5
  104. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  105. package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
  106. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
  107. package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
  108. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
  109. package/jsx/core/Badges/Selection.stories.d.ts +2 -3
  110. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  111. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  112. package/jsx/core/Badges/Status.stories.d.ts +5 -0
  113. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  114. package/jsx/core/Badges/Status.stories.jsx +25 -1
  115. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  116. package/jsx/core/Badges/Tag.stories.d.ts +2 -3
  117. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  118. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  119. package/jsx/core/Banner/Banner.stories.d.ts +12 -19
  120. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  121. package/jsx/core/Banner/Banner.stories.jsx +24 -3
  122. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  123. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  124. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  125. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  126. package/jsx/core/Button/Button.stories.d.ts +10 -3
  127. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  128. package/jsx/core/Button/Button.stories.jsx +36 -7
  129. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  130. package/jsx/core/Card/Card.stories.d.ts +6 -2
  131. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  132. package/jsx/core/Card/Card.stories.jsx +30 -1
  133. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  134. package/jsx/core/Checkbox/Checkbox.stories.d.ts +12 -0
  135. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  136. package/jsx/core/Checkbox/Checkbox.stories.jsx +54 -1
  137. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  138. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  139. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  140. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  141. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  142. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  143. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
  144. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  145. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  146. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  147. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  148. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  149. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  150. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  151. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  152. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  153. package/jsx/core/Configuration/Configuration.stories.d.ts +19 -3
  154. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  155. package/jsx/core/Configuration/Configuration.stories.jsx +96 -21
  156. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  157. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  158. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  159. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  160. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  161. package/jsx/core/CreditCard/CreditCard.stories.d.ts +11 -0
  162. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  163. package/jsx/core/CreditCard/CreditCard.stories.jsx +45 -0
  164. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  165. package/jsx/core/Currency/Currency.stories.d.ts +7 -4
  166. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  167. package/jsx/core/Currency/Currency.stories.jsx +30 -12
  168. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  169. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  170. package/jsx/core/DateTime/DateTime.stories.jsx +2 -1
  171. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  172. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  173. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  174. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  175. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  176. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  177. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  178. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  179. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  180. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  181. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  182. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  183. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  184. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  185. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  186. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  187. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  188. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  189. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  190. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  191. package/jsx/core/File/FileInput.stories.jsx +1 -1
  192. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  193. package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
  194. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  195. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  196. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  197. package/jsx/core/Form/Form.mocks.jsx +2 -2
  198. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  199. package/jsx/core/Form/Form.stories.d.ts +10 -0
  200. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  201. package/jsx/core/Form/Form.stories.jsx +42 -2
  202. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  203. package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
  204. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  205. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  206. package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
  207. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  208. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  209. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  210. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  211. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  212. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  213. package/jsx/core/Icon/Icon.stories.d.ts +5 -6
  214. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  215. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  216. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  217. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  218. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  219. package/jsx/core/Icon/Icon.styles.js +25 -0
  220. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  221. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  222. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  223. package/jsx/core/Image/Image.stories.d.ts +2 -3
  224. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  225. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  226. package/jsx/core/Input/Input.stories.d.ts +9 -0
  227. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  228. package/jsx/core/Input/Input.stories.jsx +40 -1
  229. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  230. package/jsx/core/Label/Label.stories.d.ts +4 -0
  231. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  232. package/jsx/core/Label/Label.stories.jsx +18 -1
  233. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  234. package/jsx/core/Link/Link.stories.d.ts +1 -11
  235. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  236. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  237. package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
  238. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  239. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  240. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  241. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  242. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  243. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  244. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  245. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  246. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +87 -0
  247. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  248. package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
  249. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  250. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  251. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  252. package/jsx/core/Modal/Modal.mocks.jsx +3 -3
  253. package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
  254. package/jsx/core/Modal/Modal.stories.d.ts +10 -5
  255. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  256. package/jsx/core/Modal/Modal.stories.jsx +34 -43
  257. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  258. package/jsx/core/MultiStep/MultiStep.stories.d.ts +2 -3
  259. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  260. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +1 -1
  261. package/jsx/core/Number/Number.stories.d.ts +10 -6
  262. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  263. package/jsx/core/Number/Number.stories.jsx +38 -19
  264. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  265. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  266. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  267. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +85 -31
  268. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  269. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  270. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  271. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  272. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  273. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  274. package/jsx/core/Phone/Phone.stories.jsx +3 -1
  275. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  276. package/jsx/core/Popover/Popover.stories.d.ts +1 -1
  277. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  278. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  279. package/jsx/core/Progress/Progress.stories.d.ts +4 -0
  280. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  281. package/jsx/core/Progress/Progress.stories.jsx +22 -1
  282. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  283. package/jsx/core/RadioButton/RadioButton.stories.d.ts +12 -0
  284. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  285. package/jsx/core/RadioButton/RadioButton.stories.jsx +53 -1
  286. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  287. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  288. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  289. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  290. package/jsx/core/Rating/Rating.stories.d.ts +4 -0
  291. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  292. package/jsx/core/Rating/Rating.stories.jsx +18 -1
  293. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  294. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  295. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  296. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  297. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  298. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -0
  299. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  300. package/jsx/core/SearchInput/SearchInput.stories.jsx +30 -1
  301. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  302. package/jsx/core/Select/Select.stories.d.ts +8 -0
  303. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  304. package/jsx/core/Select/Select.stories.jsx +35 -1
  305. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  306. package/jsx/core/Sentiment/Sentiment.stories.d.ts +6 -0
  307. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  308. package/jsx/core/Sentiment/Sentiment.stories.jsx +32 -1
  309. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  310. package/jsx/core/Slider/Slider.stories.d.ts +4 -3
  311. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  312. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  313. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  314. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  315. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  316. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  317. package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
  318. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  319. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  320. package/jsx/core/Switch/Switch.stories.d.ts +7 -0
  321. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  322. package/jsx/core/Switch/Switch.stories.jsx +34 -1
  323. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  324. package/jsx/core/Table/Table.mocks.d.ts +6 -0
  325. package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
  326. package/jsx/core/Table/Table.mocks.jsx +134 -0
  327. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  328. package/jsx/core/Table/Table.stories.d.ts +25 -0
  329. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  330. package/jsx/core/Table/Table.stories.jsx +120 -1
  331. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  332. package/jsx/core/Tabs/Tabs.stories.d.ts +10 -2
  333. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  334. package/jsx/core/Tabs/Tabs.stories.jsx +39 -1
  335. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  336. package/jsx/core/Text/Text.stories.d.ts +19 -0
  337. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  338. package/jsx/core/Text/Text.stories.jsx +112 -1
  339. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  340. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -0
  341. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  342. package/jsx/core/TextArea/TextArea.stories.jsx +22 -1
  343. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  344. package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
  345. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  346. package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
  347. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  348. package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -6
  349. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  350. package/jsx/core/Tooltip/Tooltip.stories.jsx +28 -1
  351. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  352. package/jsx/core/Tree/Tree.stories.d.ts +1 -2
  353. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  354. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  355. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  356. package/jsx/cs/Article/Article.stories.d.ts +4 -13
  357. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  358. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  359. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  360. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  361. package/jsx/cs/ArticleList/ArticleList.stories.jsx +2 -1
  362. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  363. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  364. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  365. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +15 -42
  366. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  367. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  368. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  369. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSCaseView.mocks.jsx} +30 -1
  370. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +1 -0
  371. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  372. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  373. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +20 -5
  374. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  375. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  376. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  377. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +23 -21
  378. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  379. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  380. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  381. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  382. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  383. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  384. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  385. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  386. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  387. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  388. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  389. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
  390. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  391. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +7 -2
  392. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  393. package/jsx/cs/TaskManager/TaskManager.mocks.js +12 -10
  394. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  395. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +12 -6
  396. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  397. package/jsx/cs/TaskManager/TaskManager.stories.jsx +164 -136
  398. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  399. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  400. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  401. package/jsx/cs/TaskManager/TaskManager.styles.js +8 -0
  402. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  403. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  404. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  405. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  406. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  407. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  408. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  409. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  410. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  411. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  412. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  413. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  414. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  415. package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
  416. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  417. package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
  418. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  419. package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
  420. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  421. package/jsx/rte/Editor/Editor.stories.jsx +3 -21
  422. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  423. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  424. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  425. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  426. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  427. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  428. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  429. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +18 -1
  430. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  431. package/jsx/social/Chat/Chat.stories.d.ts +6 -7
  432. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  433. package/jsx/social/Chat/Chat.stories.jsx +7 -5
  434. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  435. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  436. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  437. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  438. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  439. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  440. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  441. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  442. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  443. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  444. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  445. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  446. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  447. package/jsx/social/Email/Email.mocks.d.ts +173 -4
  448. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  449. package/jsx/social/Email/Email.mocks.jsx +420 -3
  450. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  451. package/jsx/social/Email/Email.stories.d.ts +19 -25
  452. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  453. package/jsx/social/Email/Email.stories.jsx +163 -426
  454. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  455. package/jsx/social/Email/Email.styles.d.ts +4 -0
  456. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  457. package/jsx/social/Email/Email.styles.js +14 -0
  458. package/jsx/social/Email/Email.styles.js.map +1 -0
  459. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  460. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  461. package/jsx/social/Feed/Feed.stories.d.ts +6 -11
  462. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  463. package/jsx/social/Feed/Feed.stories.jsx +24 -19
  464. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  465. package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
  466. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  467. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  468. package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
  469. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  470. package/jsx/social/Feed/FeedPost.stories.jsx +30 -20
  471. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  472. package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
  473. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  474. package/jsx/social/Feed/FeedReply.stories.jsx +21 -16
  475. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  476. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  477. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  478. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  479. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  480. package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
  481. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  482. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
  483. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  484. package/jsx/work/CaseView/CaseView.stories.jsx +7 -7
  485. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  486. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  487. package/jsx/work/CaseView/Details.mocks.jsx +1 -1
  488. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  489. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  490. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  491. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  492. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  493. package/jsx/work/CaseView/Pulse.mocks.jsx +1 -1
  494. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  495. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  496. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  497. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  498. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  499. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  500. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  501. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -175
  502. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  503. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  504. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  505. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  506. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  507. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  508. package/jsx/work/Confirmation/Confirmation.stories.jsx +3 -3
  509. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  510. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  511. package/jsx/work/Details/Details.stories.jsx +21 -16
  512. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  513. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  514. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  515. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  516. package/jsx/work/SearchResults/SearchResults.stories.jsx +1 -1
  517. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  518. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  519. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
  520. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  521. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  522. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  523. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  524. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  525. package/jsx/work/Tasks/Tasks.stories.jsx +1 -1
  526. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  527. package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
  528. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  529. package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
  530. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  531. package/lib/build/AppHeader/AppHeader.stories.d.ts +2 -1
  532. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  533. package/lib/build/AppHeader/AppHeader.stories.js +53 -15
  534. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  535. package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
  536. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  537. package/lib/build/AppShell/AppShell.mocks.js +32 -0
  538. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  539. package/lib/build/AppShell/AppShell.stories.d.ts +4 -3
  540. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  541. package/lib/build/AppShell/AppShell.stories.js +67 -57
  542. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  543. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  544. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  545. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
  546. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  547. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
  548. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  549. package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
  550. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
  551. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  552. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  553. package/lib/build/FlowModeller/FlowModeller.mocks.js +81 -27
  554. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  555. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
  556. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  557. package/lib/build/FlowModeller/FlowModeller.stories.js +147 -138
  558. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  559. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  560. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  561. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  562. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  563. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +3 -0
  564. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -0
  565. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +45 -0
  566. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -0
  567. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +5 -0
  568. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -0
  569. package/lib/build/ItemLibrary/LibraryPicker.stories.js +40 -0
  570. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -0
  571. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  572. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  573. package/lib/build/LifeCycle/LifeCycle.mocks.js +107 -19
  574. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  575. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
  576. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  577. package/lib/build/LifeCycle/LifeCycle.stories.js +167 -79
  578. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  579. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  580. package/lib/build/LifeCycle/utils.js +5 -4
  581. package/lib/build/LifeCycle/utils.js.map +1 -1
  582. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +46 -0
  583. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  584. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +308 -0
  585. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  586. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
  587. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  588. package/lib/build/ObjectSelect/ObjectSelect.stories.js +151 -0
  589. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  590. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  591. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  592. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  593. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  594. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
  595. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  596. package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
  597. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  598. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  599. package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
  600. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  601. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
  602. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  603. package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
  604. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  605. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
  606. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  607. package/lib/build/PageTemplates/PageTemplates.stories.js +115 -253
  608. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  609. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  610. package/lib/build/Workbench/Workbench.stories.js +26 -39
  611. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  612. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  613. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  614. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  615. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  616. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  617. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  618. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +59 -57
  619. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  620. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  621. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  622. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  623. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  624. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  625. package/lib/condition-builder/ConditionBuilder/props.mock.js +17 -2
  626. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  627. package/lib/core/AppShell/AppShell.mocks.js +5 -5
  628. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  629. package/lib/core/AppShell/AppShell.stories.d.ts +6 -0
  630. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  631. package/lib/core/AppShell/AppShell.stories.js +33 -9
  632. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  633. package/lib/core/Avatar/Avatar.stories.d.ts +5 -0
  634. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  635. package/lib/core/Avatar/Avatar.stories.js +34 -9
  636. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  637. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  638. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  639. package/lib/core/Badges/Alert.stories.js +1 -1
  640. package/lib/core/Badges/Alert.stories.js.map +1 -1
  641. package/lib/core/Badges/Count.stories.js +1 -1
  642. package/lib/core/Badges/Count.stories.js.map +1 -1
  643. package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
  644. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
  645. package/lib/core/Badges/Keyboard.stories.js +16 -0
  646. package/lib/core/Badges/Keyboard.stories.js.map +1 -0
  647. package/lib/core/Badges/Selection.stories.d.ts +2 -3
  648. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  649. package/lib/core/Badges/Selection.stories.js +1 -1
  650. package/lib/core/Badges/Selection.stories.js.map +1 -1
  651. package/lib/core/Badges/Status.stories.d.ts +5 -0
  652. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  653. package/lib/core/Badges/Status.stories.js +24 -2
  654. package/lib/core/Badges/Status.stories.js.map +1 -1
  655. package/lib/core/Badges/Tag.stories.d.ts +2 -3
  656. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  657. package/lib/core/Badges/Tag.stories.js +1 -1
  658. package/lib/core/Badges/Tag.stories.js.map +1 -1
  659. package/lib/core/Banner/Banner.mocks.js +1 -1
  660. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  661. package/lib/core/Banner/Banner.stories.d.ts +12 -19
  662. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  663. package/lib/core/Banner/Banner.stories.js +30 -13
  664. package/lib/core/Banner/Banner.stories.js.map +1 -1
  665. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  666. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  667. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
  668. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  669. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  670. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  671. package/lib/core/Button/Button.stories.d.ts +10 -3
  672. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  673. package/lib/core/Button/Button.stories.js +35 -8
  674. package/lib/core/Button/Button.stories.js.map +1 -1
  675. package/lib/core/Card/Card.stories.d.ts +6 -2
  676. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  677. package/lib/core/Card/Card.stories.js +22 -4
  678. package/lib/core/Card/Card.stories.js.map +1 -1
  679. package/lib/core/Checkbox/Checkbox.stories.d.ts +12 -0
  680. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  681. package/lib/core/Checkbox/Checkbox.stories.js +54 -3
  682. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  683. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
  684. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  685. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +3 -3
  686. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  687. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
  688. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  689. package/lib/core/ColorPicker/ColorPicker.stories.js +7 -15
  690. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  691. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  692. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  693. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  694. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  695. package/lib/core/ComboBox/ComboBox.stories.js +6 -6
  696. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  697. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  698. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  699. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  700. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  701. package/lib/core/Configuration/Configuration.stories.d.ts +19 -3
  702. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  703. package/lib/core/Configuration/Configuration.stories.js +71 -24
  704. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  705. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  706. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  707. package/lib/core/Configuration/Configuration.styles.js +12 -0
  708. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  709. package/lib/core/CreditCard/CreditCard.stories.d.ts +11 -0
  710. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  711. package/lib/core/CreditCard/CreditCard.stories.js +46 -0
  712. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  713. package/lib/core/Currency/Currency.stories.d.ts +7 -4
  714. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  715. package/lib/core/Currency/Currency.stories.js +32 -14
  716. package/lib/core/Currency/Currency.stories.js.map +1 -1
  717. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  718. package/lib/core/DateTime/DateTime.stories.js +12 -10
  719. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  720. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  721. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  722. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  723. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  724. package/lib/core/Drawer/Drawer.stories.js +4 -4
  725. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  726. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  727. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  728. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  729. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  730. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  731. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  732. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  733. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  734. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  735. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  736. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
  737. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  738. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  739. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  740. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  741. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  742. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  743. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  744. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  745. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  746. package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
  747. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  748. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
  749. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  750. package/lib/core/FieldValueList/FieldValueList.stories.js +4 -4
  751. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  752. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  753. package/lib/core/File/FileDisplay.stories.js +25 -37
  754. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  755. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  756. package/lib/core/File/FileInput.stories.js +3 -3
  757. package/lib/core/File/FileInput.stories.js.map +1 -1
  758. package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
  759. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  760. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  761. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  762. package/lib/core/Flex/FlexItem.stories.js +3 -3
  763. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  764. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  765. package/lib/core/Form/Form.mocks.js +5 -5
  766. package/lib/core/Form/Form.mocks.js.map +1 -1
  767. package/lib/core/Form/Form.stories.d.ts +10 -0
  768. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  769. package/lib/core/Form/Form.stories.js +47 -9
  770. package/lib/core/Form/Form.stories.js.map +1 -1
  771. package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
  772. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  773. package/lib/core/Grid/GridContainer.stories.js +9 -9
  774. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  775. package/lib/core/Grid/GridItem.stories.d.ts +1 -2
  776. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  777. package/lib/core/Grid/GridItem.stories.js +3 -3
  778. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  779. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  780. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  781. package/lib/core/HTML/HTML.stories.js +14 -0
  782. package/lib/core/HTML/HTML.stories.js.map +1 -0
  783. package/lib/core/Icon/Icon.mocks.js +1 -1
  784. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  785. package/lib/core/Icon/Icon.stories.d.ts +5 -6
  786. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  787. package/lib/core/Icon/Icon.stories.js +12 -35
  788. package/lib/core/Icon/Icon.stories.js.map +1 -1
  789. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  790. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  791. package/lib/core/Icon/Icon.styles.js +25 -0
  792. package/lib/core/Icon/Icon.styles.js.map +1 -0
  793. package/lib/core/IconPicker/IconPicker.stories.js +2 -2
  794. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  795. package/lib/core/Image/Image.stories.d.ts +2 -3
  796. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  797. package/lib/core/Image/Image.stories.js +1 -1
  798. package/lib/core/Image/Image.stories.js.map +1 -1
  799. package/lib/core/Input/Input.stories.d.ts +9 -0
  800. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  801. package/lib/core/Input/Input.stories.js +39 -2
  802. package/lib/core/Input/Input.stories.js.map +1 -1
  803. package/lib/core/Label/Label.stories.d.ts +4 -0
  804. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  805. package/lib/core/Label/Label.stories.js +17 -2
  806. package/lib/core/Label/Label.stories.js.map +1 -1
  807. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  808. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  809. package/lib/core/Link/Link.stories.d.ts +1 -11
  810. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  811. package/lib/core/Link/Link.stories.js +3 -3
  812. package/lib/core/Link/Link.stories.js.map +1 -1
  813. package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
  814. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  815. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  816. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  817. package/lib/core/List/OrderedList.stories.js +1 -1
  818. package/lib/core/List/OrderedList.stories.js.map +1 -1
  819. package/lib/core/List/UnorderedList.stories.js +1 -1
  820. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  821. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  822. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  823. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  824. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  825. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
  826. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  827. package/lib/core/ListToolbar/ListToolbar.stories.js +79 -0
  828. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  829. package/lib/core/Location/Location.stories.js +4 -4
  830. package/lib/core/Location/Location.stories.js.map +1 -1
  831. package/lib/core/Menu/Menu.stories.js +5 -5
  832. package/lib/core/Menu/Menu.stories.js.map +1 -1
  833. package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
  834. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  835. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  836. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  837. package/lib/core/MetaList/MetaList.stories.js +3 -3
  838. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  839. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  840. package/lib/core/Modal/Modal.mocks.js +11 -11
  841. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  842. package/lib/core/Modal/Modal.stories.d.ts +10 -5
  843. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  844. package/lib/core/Modal/Modal.stories.js +40 -35
  845. package/lib/core/Modal/Modal.stories.js.map +1 -1
  846. package/lib/core/MultiStep/MultiStep.stories.d.ts +2 -3
  847. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
  848. package/lib/core/MultiStep/MultiStep.stories.js +3 -3
  849. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -1
  850. package/lib/core/Number/Number.stories.d.ts +10 -6
  851. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  852. package/lib/core/Number/Number.stories.js +41 -22
  853. package/lib/core/Number/Number.stories.js.map +1 -1
  854. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
  855. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  856. package/lib/core/PageTemplates/PageTemplates.stories.js +88 -42
  857. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  858. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  859. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  860. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  861. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  862. package/lib/core/Pagination/Pagination.stories.js +1 -1
  863. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  864. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  865. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  866. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  867. package/lib/core/Phone/Phone.stories.js +4 -2
  868. package/lib/core/Phone/Phone.stories.js.map +1 -1
  869. package/lib/core/Popover/Popover.stories.d.ts +1 -1
  870. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  871. package/lib/core/Popover/Popover.stories.js +2 -2
  872. package/lib/core/Popover/Popover.stories.js.map +1 -1
  873. package/lib/core/Progress/Progress.stories.d.ts +4 -0
  874. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  875. package/lib/core/Progress/Progress.stories.js +20 -3
  876. package/lib/core/Progress/Progress.stories.js.map +1 -1
  877. package/lib/core/RadioButton/RadioButton.stories.d.ts +12 -0
  878. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  879. package/lib/core/RadioButton/RadioButton.stories.js +53 -3
  880. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  881. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
  882. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  883. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +3 -3
  884. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  885. package/lib/core/Rating/Rating.stories.d.ts +4 -0
  886. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  887. package/lib/core/Rating/Rating.stories.js +17 -2
  888. package/lib/core/Rating/Rating.stories.js.map +1 -1
  889. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  890. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  891. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  892. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  893. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -0
  894. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  895. package/lib/core/SearchInput/SearchInput.stories.js +30 -1
  896. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  897. package/lib/core/Select/Select.stories.d.ts +8 -0
  898. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  899. package/lib/core/Select/Select.stories.js +29 -2
  900. package/lib/core/Select/Select.stories.js.map +1 -1
  901. package/lib/core/Sentiment/Sentiment.stories.d.ts +6 -0
  902. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  903. package/lib/core/Sentiment/Sentiment.stories.js +30 -3
  904. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  905. package/lib/core/Slider/Slider.stories.d.ts +4 -3
  906. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  907. package/lib/core/Slider/Slider.stories.js +2 -2
  908. package/lib/core/Slider/Slider.stories.js.map +1 -1
  909. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  910. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  911. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  912. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  913. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  914. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  915. package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
  916. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  917. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  918. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  919. package/lib/core/Switch/Switch.stories.d.ts +7 -0
  920. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  921. package/lib/core/Switch/Switch.stories.js +34 -3
  922. package/lib/core/Switch/Switch.stories.js.map +1 -1
  923. package/lib/core/Table/Table.mocks.d.ts +6 -0
  924. package/lib/core/Table/Table.mocks.d.ts.map +1 -1
  925. package/lib/core/Table/Table.mocks.js +135 -1
  926. package/lib/core/Table/Table.mocks.js.map +1 -1
  927. package/lib/core/Table/Table.stories.d.ts +25 -0
  928. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  929. package/lib/core/Table/Table.stories.js +118 -6
  930. package/lib/core/Table/Table.stories.js.map +1 -1
  931. package/lib/core/Tabs/Tabs.stories.d.ts +10 -2
  932. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  933. package/lib/core/Tabs/Tabs.stories.js +32 -3
  934. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  935. package/lib/core/Text/Text.stories.d.ts +19 -0
  936. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  937. package/lib/core/Text/Text.stories.js +103 -3
  938. package/lib/core/Text/Text.stories.js.map +1 -1
  939. package/lib/core/TextArea/TextArea.stories.d.ts +5 -0
  940. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  941. package/lib/core/TextArea/TextArea.stories.js +21 -2
  942. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  943. package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
  944. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  945. package/lib/core/Toaster/Toaster.stories.js +15 -19
  946. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  947. package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -6
  948. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  949. package/lib/core/Tooltip/Tooltip.stories.js +21 -2
  950. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  951. package/lib/core/Tree/Tree.stories.d.ts +1 -2
  952. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  953. package/lib/core/Tree/Tree.stories.js +5 -5
  954. package/lib/core/Tree/Tree.stories.js.map +1 -1
  955. package/lib/core/URL/URL.stories.js +1 -1
  956. package/lib/core/URL/URL.stories.js.map +1 -1
  957. package/lib/cs/Article/Article.stories.d.ts +4 -13
  958. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  959. package/lib/cs/Article/Article.stories.js +9 -9
  960. package/lib/cs/Article/Article.stories.js.map +1 -1
  961. package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
  962. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  963. package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
  964. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  965. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
  966. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  967. package/lib/cs/CSCaseView/CSAppShell.stories.js +24 -37
  968. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  969. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  970. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  971. package/lib/cs/CSCaseView/CSCaseView.mocks.js +16 -0
  972. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -1
  973. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
  974. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  975. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +22 -7
  976. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  977. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  978. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  979. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
  980. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  981. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +38 -36
  982. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  983. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  984. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  985. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  986. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  987. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  988. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  989. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  990. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  991. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
  992. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  993. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
  994. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  995. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +7 -2
  996. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  997. package/lib/cs/TaskManager/TaskManager.mocks.js +12 -10
  998. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  999. package/lib/cs/TaskManager/TaskManager.stories.d.ts +12 -6
  1000. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  1001. package/lib/cs/TaskManager/TaskManager.stories.js +143 -124
  1002. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1003. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  1004. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  1005. package/lib/cs/TaskManager/TaskManager.styles.js +8 -0
  1006. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  1007. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  1008. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  1009. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  1010. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  1011. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  1012. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1013. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  1014. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1015. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  1016. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  1017. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  1018. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  1019. package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
  1020. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  1021. package/lib/rte/Editor/Editor.mocks.js +26 -0
  1022. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  1023. package/lib/rte/Editor/Editor.stories.d.ts +7 -8
  1024. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1025. package/lib/rte/Editor/Editor.stories.js +8 -28
  1026. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1027. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  1028. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  1029. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  1030. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1031. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +5 -5
  1032. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1033. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
  1034. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1035. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
  1036. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1037. package/lib/social/Chat/Chat.stories.d.ts +6 -7
  1038. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1039. package/lib/social/Chat/Chat.stories.js +31 -31
  1040. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1041. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  1042. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  1043. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  1044. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  1045. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  1046. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  1047. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  1048. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  1049. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  1050. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  1051. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  1052. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  1053. package/lib/social/Email/Email.mocks.d.ts +173 -4
  1054. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1055. package/lib/social/Email/Email.mocks.js +420 -3
  1056. package/lib/social/Email/Email.mocks.js.map +1 -1
  1057. package/lib/social/Email/Email.stories.d.ts +19 -25
  1058. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1059. package/lib/social/Email/Email.stories.js +155 -448
  1060. package/lib/social/Email/Email.stories.js.map +1 -1
  1061. package/lib/social/Email/Email.styles.d.ts +4 -0
  1062. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  1063. package/lib/social/Email/Email.styles.js +14 -0
  1064. package/lib/social/Email/Email.styles.js.map +1 -0
  1065. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1066. package/lib/social/Feed/Feed.mocks.js +40 -40
  1067. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1068. package/lib/social/Feed/Feed.stories.d.ts +6 -11
  1069. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1070. package/lib/social/Feed/Feed.stories.js +30 -25
  1071. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1072. package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
  1073. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  1074. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  1075. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  1076. package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
  1077. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  1078. package/lib/social/Feed/FeedPost.stories.js +37 -27
  1079. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  1080. package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
  1081. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  1082. package/lib/social/Feed/FeedReply.stories.js +25 -20
  1083. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  1084. package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
  1085. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  1086. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  1087. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  1088. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +1 -1
  1089. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1090. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  1091. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1092. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1093. package/lib/work/CaseView/CaseView.mocks.js +8 -8
  1094. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1095. package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
  1096. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1097. package/lib/work/CaseView/CaseView.stories.js +28 -28
  1098. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1099. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  1100. package/lib/work/CaseView/Details.mocks.js +2 -2
  1101. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1102. package/lib/work/CaseView/FileService.mock.js +1 -1
  1103. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1104. package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
  1105. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  1106. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  1107. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  1108. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1109. package/lib/work/CaseView/Pulse.mocks.js +3 -3
  1110. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1111. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  1112. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  1113. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  1114. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  1115. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
  1116. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1117. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -175
  1118. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1119. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  1120. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  1121. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  1122. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  1123. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1124. package/lib/work/Confirmation/Confirmation.stories.js +4 -4
  1125. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1126. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1127. package/lib/work/Details/Details.stories.js +56 -53
  1128. package/lib/work/Details/Details.stories.js.map +1 -1
  1129. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1130. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  1131. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1132. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  1133. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  1134. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1135. package/lib/work/SearchResults/SearchResults.stories.js +12 -12
  1136. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1137. package/lib/work/Stages/Stages.stories.js +2 -2
  1138. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1139. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1140. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -4
  1141. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1142. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
  1143. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1144. package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
  1145. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1146. package/lib/work/Tags/Tags.stories.js +1 -1
  1147. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1148. package/lib/work/Tasks/TaskList.stories.js +3 -3
  1149. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1150. package/lib/work/Tasks/Tasks.stories.js +11 -11
  1151. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1152. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  1153. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1154. package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
  1155. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1156. package/lib/work/Timeline/Timeline.stories.js +24 -3
  1157. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1158. package/package.json +22 -18
  1159. package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
  1160. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  1161. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
3
  import { action } from '@storybook/addon-actions';
4
- import { Text, treeHelpers, TabbedPage as TabbedPageComp } from '@pega/cosmos-react-core';
4
+ import { treeHelpers } from '@pega/cosmos-react-core';
5
5
  import { AppShell } from '@pega/cosmos-react-build';
6
- import { appExplorerMenuList, branchesMenuList, contents, recordMenuList, treeList } from './AppShell.mocks';
6
+ import { appExplorerMenuList, branchesMenuList, contents, recordMenuList, treeList, TabbedPageComp } from './AppShell.mocks';
7
7
  export default {
8
8
  title: 'Build/AppShell',
9
9
  component: AppShell,
@@ -11,45 +11,12 @@ export default {
11
11
  layout: 'fullscreen'
12
12
  }
13
13
  };
14
- const getPath = (args) => {
15
- const { showBreadcrumbs, pageContent: { data: { pageTitle, breadcrumbsPath } } } = args;
16
- if (showBreadcrumbs) {
17
- const path = pageTitle === 'Overview' ? 'Home' : breadcrumbsPath;
18
- return path
19
- ? path.split(',').map((crumb, i) => {
20
- // FIXME: https://stackoverflow.com/questions/63616486/property-replaceall-does-not-exist-on-type-string
21
- return {
22
- id: crumb,
23
- primary: crumb,
24
- href: i < 3 ? `#${crumb.replace(/\s/g, '-')}` : undefined
25
- };
26
- })
27
- : [];
28
- }
29
- };
30
- const TabbedPage = (args) => {
31
- const [currentTabId, setCurrentTabId] = useState('1');
32
- const [content, setContent] = useState('Tab 1 content');
33
- const { pageContent, showBreadcrumbs } = args;
34
- return (_jsx(TabbedPageComp, { a: _jsx(Text, { variant: 'h1', as: 'div', children: content }, void 0), path: getPath({ showBreadcrumbs, pageContent }), title: pageContent.data.pageTitle, tabs: {
35
- tabs: pageContent.data.tabs.map((name, i) => {
36
- const id = `${i + 1}`;
37
- return { id, name };
38
- }),
39
- type: 'horizontal',
40
- currentTabId,
41
- onTabClick: id => {
42
- setCurrentTabId(id);
43
- setContent(`Tab ${id} content`);
44
- }
45
- } }, void 0));
46
- };
47
14
  export const AppShellDemo = (args) => {
48
15
  const [currentNodeId, setCurrentNodeId] = useState('60');
49
16
  const [allNodes, setAllNodes] = useState(treeHelpers.expandTo(appExplorerMenuList, currentNodeId));
50
17
  const [currentDrawer, setCurrentDrawer] = useState('explorer');
51
18
  const [currentUtil, setCurrentUtil] = useState('explorer');
52
- const [pageContent, setPageContent] = useState(contents[0]);
19
+ const [pageContent, setPageContent] = useState(contents[19]);
53
20
  const onNodeClick = (nodeId, activeDrawerId) => {
54
21
  const clickedNode = treeHelpers.getNode(allNodes, nodeId);
55
22
  if (!clickedNode?.nodes) {
@@ -67,27 +34,61 @@ export const AppShellDemo = (args) => {
67
34
  };
68
35
  const appHeader = {
69
36
  brand: {
70
- name: 'AppStudioX'
37
+ name: 'AppStudioX',
38
+ visual: {
39
+ icon: 'pegasus'
40
+ }
71
41
  },
72
42
  utils: {
73
43
  avatar: { name: 'Alan' },
74
44
  search: {
75
45
  placeholder: 'Search anything, anywhere…'
76
46
  },
77
- branchName: 'test',
78
- actions: [
79
- {
80
- primary: 'Switch branch',
81
- id: 'switchbranch',
82
- onClick: () => action('Clicked switchbranch')()
83
- },
84
- {
85
- primary: 'Create branch',
86
- id: 'createbranch',
87
- onClick: () => action('Clicked createbranch')()
47
+ branch: {
48
+ text: args.text,
49
+ variant: args.variant,
50
+ count: args.count,
51
+ compact: args.compact,
52
+ items: [
53
+ {
54
+ primary: 'Commit to branch',
55
+ id: 'commitToBranch',
56
+ onClick: action('Clicked commitToBranch')
57
+ },
58
+ {
59
+ primary: 'Merge branch',
60
+ id: 'mergeBranch',
61
+ onClick: action('Clicked mergeBranch')
62
+ },
63
+ {
64
+ primary: 'View branch',
65
+ id: 'viewBranch',
66
+ onClick: action('Clicked viewBranch')
67
+ },
68
+ {
69
+ primary: 'Switch branch',
70
+ id: 'switchBranch',
71
+ onClick: action('Clicked switchBranch')
72
+ },
73
+ {
74
+ primary: 'Add branch',
75
+ id: 'addBranch',
76
+ onClick: action('Clicked addBranch')
77
+ },
78
+ {
79
+ primary: 'View all branches',
80
+ id: 'viewAllBranches',
81
+ onClick: action('Clicked viewAllBranches')
82
+ }
83
+ ]
84
+ },
85
+ action: args.showPreview
86
+ ? {
87
+ id: 'preview',
88
+ text: 'Preview',
89
+ onClick: args.onPreviewClick
88
90
  }
89
- ],
90
- onPreviewClick: args.showPreview ? args.onPreviewClick : undefined
91
+ : undefined
91
92
  },
92
93
  links: [
93
94
  {
@@ -117,14 +118,14 @@ export const AppShellDemo = (args) => {
117
118
  }
118
119
  ]
119
120
  };
120
- return (_jsx(_Fragment, { children: _jsx(AppShell, { main: _jsx(TabbedPage, { ...{ ...args, pageContent } }, void 0), appHeader: appHeader, hideNav: args.hideNavigation, appInfo: {
121
+ return (_jsx(_Fragment, { children: _jsx(AppShell, { main: _jsx(TabbedPageComp, { ...{ ...args, pageContent } }), appHeader: appHeader, hideNav: args.hideNavigation, appInfo: {
121
122
  text: 'U+ Desk',
122
123
  visual: {
123
- icon: {
124
- name: 'phone-in-solid',
125
- bgColor: '#0ac7c8'
126
- }
127
- }
124
+ icon: 'phone-in-solid',
125
+ backgroundColor: '#0ac7c8',
126
+ color: '#fff'
127
+ },
128
+ meta: ['1.0.0']
128
129
  }, navigation: {
129
130
  nodes: allNodes,
130
131
  currentNodeId,
@@ -175,17 +176,26 @@ export const AppShellDemo = (args) => {
175
176
  }
176
177
  },
177
178
  devMode: true
178
- } }, void 0) }, void 0));
179
+ } }) }));
179
180
  };
180
181
  AppShellDemo.args = {
181
182
  hideNavigation: false,
182
183
  showBreadcrumbs: true,
184
+ variant: undefined,
185
+ text: 'Alpha branch',
186
+ count: null,
187
+ compact: false,
183
188
  showPreview: true,
189
+ // eslint-disable-next-line demo-patterns/literal-args
184
190
  onPreviewClick: action('Clicked preview button')
185
191
  };
186
192
  AppShellDemo.argTypes = {
187
193
  hideNavigation: { control: { type: 'boolean' } },
188
194
  showBreadcrumbs: { control: { type: 'boolean' } },
195
+ variant: { options: ['success', 'urgent'], control: { type: 'radio' } },
196
+ text: { control: { type: 'text' } },
197
+ count: { control: { type: 'number' } },
198
+ compact: { control: { type: 'boolean' } },
189
199
  showPreview: { control: { type: 'boolean' } },
190
200
  onPreviewClick: { table: { disable: true } }
191
201
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.stories.js","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACL,IAAI,EAEJ,WAAW,EACX,UAAU,IAAI,cAAc,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,QAAQ,EACT,MAAM,kBAAkB,CAAC;AAE1B,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAkBV,MAAM,OAAO,GAAG,CACd,IAAqF,EACrF,EAAE;IACF,MAAM,EACJ,eAAe,EACf,WAAW,EAAE,EACX,IAAI,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,EACrC,EACF,GAAG,IAAI,CAAC;IAET,IAAI,eAAe,EAAE;QACnB,MAAM,IAAI,GAAG,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC;QACjE,OAAO,IAAI;YACT,CAAC,CAAC,IAAI,CAAC,KAAK,CAA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Aa,CAAC;4BACrD,CAAC,CAAC,cAAc,CAAC;wBACnB,WAAW,CAAC,UAAU,CAAC,CAAC;qBACzB;gBACH,CAAC;gBACD,aAAa,EAAE,WAAW;gBAC1B,KAAK,EAAE;oBACL;wBACE,KAAK,EAAE,cAAc;wBACrB,EAAE,EAAE,UAAU;qBACf;oBACD;wBACE,KAAK,EAAE,UAAU;wBACjB,EAAE,EAAE,UAAU;qBACf;oBACD;wBACE,KAAK,EAAE,SAAS;wBAChB,EAAE,EAAE,SAAS;qBACd;iBACF;gBACD,MAAM,EAAE;oBACN,aAAa,EAAE,GAAG,EAAE;wBAClB,gBAAgB,CAAC,EAAE,CAAC,CAAC;wBACrB,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;oBACxF,CAAC;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,WACD,WACD,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,IAAI,GAAG;IAClB,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,IAAI;IACrB,WAAW,EAAE,IAAI;IACjB,cAAc,EAAE,MAAM,CAAC,wBAAwB,CAAC;CACjD,CAAC;AAEF,YAAY,CAAC,QAAQ,GAAG;IACtB,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAChD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACjD,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAC7C,CAAC","sourcesContent":["import { useState, MouseEvent } from 'react';\nimport { Meta, Story } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\n\nimport {\n Text,\n StandardTreeProps,\n treeHelpers,\n TabbedPage as TabbedPageComp\n} from '@pega/cosmos-react-core';\nimport { AppShell } from '@pega/cosmos-react-build';\n\nimport {\n appExplorerMenuList,\n branchesMenuList,\n contents,\n recordMenuList,\n treeList\n} from './AppShell.mocks';\n\nexport default {\n title: 'Build/AppShell',\n component: AppShell,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport interface AppShellStoryProps {\n hideNavigation: boolean;\n showBreadcrumbs: boolean;\n showPreview: boolean;\n onPreviewClick: (e: MouseEvent<HTMLButtonElement>) => void;\n}\n\ninterface PageContentProps {\n id: string;\n data: {\n pageTitle: string;\n breadcrumbsPath: string;\n tabs: string[];\n };\n}\n\nconst getPath = (\n args: Pick<AppShellStoryProps, 'showBreadcrumbs'> & { pageContent: PageContentProps }\n) => {\n const {\n showBreadcrumbs,\n pageContent: {\n data: { pageTitle, breadcrumbsPath }\n }\n } = args;\n\n if (showBreadcrumbs) {\n const path = pageTitle === 'Overview' ? 'Home' : breadcrumbsPath;\n return path\n ? path.split(',').map((crumb: string, i) => {\n // FIXME: https://stackoverflow.com/questions/63616486/property-replaceall-does-not-exist-on-type-string\n return {\n id: crumb,\n primary: crumb,\n href: i < 3 ? `#${(crumb as any).replace(/\\s/g, '-')}` : undefined\n };\n })\n : [];\n }\n};\n\nconst TabbedPage: Story<AppShellStoryProps & { pageContent: PageContentProps }> = (\n args: AppShellStoryProps & { pageContent: PageContentProps }\n) => {\n const [currentTabId, setCurrentTabId] = useState('1');\n const [content, setContent] = useState('Tab 1 content');\n const { pageContent, showBreadcrumbs } = args;\n\n return (\n <TabbedPageComp\n a={\n <Text variant='h1' as='div'>\n {content}\n </Text>\n }\n path={getPath({ showBreadcrumbs, pageContent })}\n title={pageContent.data.pageTitle}\n tabs={{\n tabs: pageContent.data.tabs.map((name, i) => {\n const id = `${i + 1}`;\n return { id, name };\n }),\n type: 'horizontal',\n currentTabId,\n onTabClick: id => {\n setCurrentTabId(id);\n setContent(`Tab ${id} content`);\n }\n }}\n />\n );\n};\n\nexport const AppShellDemo: Story<AppShellStoryProps> = (args: AppShellStoryProps) => {\n const [currentNodeId, setCurrentNodeId] = useState<string>('60');\n const [allNodes, setAllNodes] = useState<StandardTreeProps['nodes']>(\n treeHelpers.expandTo(appExplorerMenuList, currentNodeId)\n );\n const [currentDrawer, setCurrentDrawer] = useState('explorer');\n const [currentUtil, setCurrentUtil] = useState('explorer');\n const [pageContent, setPageContent] = useState<PageContentProps>(contents[0]);\n\n const onNodeClick = (nodeId: string, activeDrawerId: string) => {\n const clickedNode = treeHelpers.getNode(allNodes, nodeId);\n\n if (!clickedNode?.nodes) {\n setCurrentUtil(activeDrawerId);\n setCurrentNodeId(nodeId);\n setPageContent(contents.find(content => content.id === clickedNode?.id)!);\n return;\n }\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, nodeId, node => {\n return {\n ...node,\n expanded: !node.expanded\n };\n })\n );\n };\n\n const appHeader = {\n brand: {\n name: 'AppStudioX'\n },\n utils: {\n avatar: { name: 'Alan' },\n search: {\n placeholder: 'Search anything, anywhere…'\n },\n branchName: 'test',\n actions: [\n {\n primary: 'Switch branch',\n id: 'switchbranch',\n onClick: () => action('Clicked switchbranch')()\n },\n {\n primary: 'Create branch',\n id: 'createbranch',\n onClick: () => action('Clicked createbranch')()\n }\n ],\n onPreviewClick: args.showPreview ? args.onPreviewClick : undefined\n },\n links: [\n {\n id: '1',\n name: 'Applications',\n onClick: () => action('Clicked Applications')()\n },\n {\n id: '2',\n name: 'Shared resources',\n onClick: () => action('Clicked Shared resources')()\n },\n {\n id: '3',\n name: 'Teams',\n onClick: () => action('Clicked Teams')()\n },\n {\n id: '4',\n name: 'AI & Analytics',\n onClick: () => action('Clicked AI & Analytics')()\n },\n {\n id: '5',\n name: 'Deploy',\n onClick: () => action('Clicked Deploy')()\n }\n ]\n };\n\n return (\n <>\n <AppShell\n main={<TabbedPage {...{ ...args, pageContent }} />}\n appHeader={appHeader}\n hideNav={args.hideNavigation}\n appInfo={{\n text: 'U+ Desk',\n visual: {\n icon: {\n name: 'phone-in-solid',\n bgColor: '#0ac7c8'\n }\n }\n }}\n navigation={{\n nodes: allNodes,\n currentNodeId,\n onNodeClick: id => {\n onNodeClick(id, currentDrawer);\n }\n }}\n utils={{\n onItemClick: id => {\n setCurrentDrawer(id);\n if (id === 'explorer') {\n const appExploreTree = currentNodeId\n ? treeHelpers.expandTo(appExplorerMenuList, currentNodeId)\n : appExplorerMenuList;\n setAllNodes(appExploreTree);\n }\n\n if (id === 'branches') {\n const branchTree = currentNodeId\n ? treeHelpers.expandTo(branchesMenuList, currentNodeId)\n : branchesMenuList;\n setAllNodes(branchTree);\n }\n\n if (id === 'records') {\n const recordTree = currentNodeId\n ? treeHelpers.expandTo(recordMenuList, currentNodeId)\n : recordMenuList;\n setAllNodes(recordTree);\n }\n },\n currentItemId: currentUtil,\n items: [\n {\n label: 'App Explorer',\n id: 'explorer'\n },\n {\n label: 'Branches',\n id: 'branches'\n },\n {\n label: 'Records',\n id: 'records'\n }\n ],\n drawer: {\n onBeforeClose: () => {\n setCurrentDrawer('');\n setAllNodes(currentNodeId ? treeHelpers.expandTo(treeList, currentNodeId) : treeList);\n }\n },\n devMode: true\n }}\n />\n </>\n );\n};\n\nAppShellDemo.args = {\n hideNavigation: false,\n showBreadcrumbs: true,\n showPreview: true,\n onPreviewClick: action('Clicked preview button')\n};\n\nAppShellDemo.argTypes = {\n hideNavigation: { control: { type: 'boolean' } },\n showBreadcrumbs: { control: { type: 'boolean' } },\n showPreview: { control: { type: 'boolean' } },\n onPreviewClick: { table: { disable: true } }\n};\n"]}
1
+ {"version":3,"file":"AppShell.stories.js","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAA6B,WAAW,EAAE,MAAM,yB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,EAAE;CAC7C,CAAC","sourcesContent":["import { useState } from 'react';\nimport { Meta, Story } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\n\nimport { Action, StandardTreeProps, treeHelpers } from '@pega/cosmos-react-core';\nimport { AppShell, BranchButtonProps } from '@pega/cosmos-react-build';\n\nimport {\n appExplorerMenuList,\n branchesMenuList,\n contents,\n PageContentProps,\n recordMenuList,\n treeList,\n TabbedPageComp\n} from './AppShell.mocks';\n\nexport default {\n title: 'Build/AppShell',\n component: AppShell,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport interface AppShellStoryProps extends BranchButtonProps {\n hideNavigation: boolean;\n showBreadcrumbs: boolean;\n showPreview: boolean;\n onPreviewClick: Action['onClick'];\n}\n\nexport const AppShellDemo: Story<AppShellStoryProps> = (args: AppShellStoryProps) => {\n const [currentNodeId, setCurrentNodeId] = useState<string>('60');\n const [allNodes, setAllNodes] = useState<StandardTreeProps['nodes']>(\n treeHelpers.expandTo(appExplorerMenuList, currentNodeId)\n );\n const [currentDrawer, setCurrentDrawer] = useState('explorer');\n const [currentUtil, setCurrentUtil] = useState('explorer');\n const [pageContent, setPageContent] = useState<PageContentProps>(contents[19]);\n\n const onNodeClick = (nodeId: string, activeDrawerId: string) => {\n const clickedNode = treeHelpers.getNode(allNodes, nodeId);\n\n if (!clickedNode?.nodes) {\n setCurrentUtil(activeDrawerId);\n setCurrentNodeId(nodeId);\n setPageContent(contents.find(content => content.id === clickedNode?.id)!);\n return;\n }\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, nodeId, node => {\n return {\n ...node,\n expanded: !node.expanded\n };\n })\n );\n };\n\n const appHeader = {\n brand: {\n name: 'AppStudioX',\n visual: {\n icon: 'pegasus'\n }\n },\n utils: {\n avatar: { name: 'Alan' },\n search: {\n placeholder: 'Search anything, anywhere…'\n },\n branch: {\n text: args.text,\n variant: args.variant,\n count: args.count,\n compact: args.compact,\n items: [\n {\n primary: 'Commit to branch',\n id: 'commitToBranch',\n onClick: action('Clicked commitToBranch')\n },\n {\n primary: 'Merge branch',\n id: 'mergeBranch',\n onClick: action('Clicked mergeBranch')\n },\n {\n primary: 'View branch',\n id: 'viewBranch',\n onClick: action('Clicked viewBranch')\n },\n {\n primary: 'Switch branch',\n id: 'switchBranch',\n onClick: action('Clicked switchBranch')\n },\n {\n primary: 'Add branch',\n id: 'addBranch',\n onClick: action('Clicked addBranch')\n },\n {\n primary: 'View all branches',\n id: 'viewAllBranches',\n onClick: action('Clicked viewAllBranches')\n }\n ]\n },\n action: args.showPreview\n ? {\n id: 'preview',\n text: 'Preview',\n onClick: args.onPreviewClick\n }\n : undefined\n },\n links: [\n {\n id: '1',\n name: 'Applications',\n onClick: () => action('Clicked Applications')()\n },\n {\n id: '2',\n name: 'Shared resources',\n onClick: () => action('Clicked Shared resources')()\n },\n {\n id: '3',\n name: 'Teams',\n onClick: () => action('Clicked Teams')()\n },\n {\n id: '4',\n name: 'AI & Analytics',\n onClick: () => action('Clicked AI & Analytics')()\n },\n {\n id: '5',\n name: 'Deploy',\n onClick: () => action('Clicked Deploy')()\n }\n ]\n };\n\n return (\n <>\n <AppShell\n main={<TabbedPageComp {...{ ...args, pageContent }} />}\n appHeader={appHeader}\n hideNav={args.hideNavigation}\n appInfo={{\n text: 'U+ Desk',\n visual: {\n icon: 'phone-in-solid',\n backgroundColor: '#0ac7c8',\n color: '#fff'\n },\n meta: ['1.0.0']\n }}\n navigation={{\n nodes: allNodes,\n currentNodeId,\n onNodeClick: id => {\n onNodeClick(id, currentDrawer);\n }\n }}\n utils={{\n onItemClick: id => {\n setCurrentDrawer(id);\n if (id === 'explorer') {\n const appExploreTree = currentNodeId\n ? treeHelpers.expandTo(appExplorerMenuList, currentNodeId)\n : appExplorerMenuList;\n setAllNodes(appExploreTree);\n }\n\n if (id === 'branches') {\n const branchTree = currentNodeId\n ? treeHelpers.expandTo(branchesMenuList, currentNodeId)\n : branchesMenuList;\n setAllNodes(branchTree);\n }\n\n if (id === 'records') {\n const recordTree = currentNodeId\n ? treeHelpers.expandTo(recordMenuList, currentNodeId)\n : recordMenuList;\n setAllNodes(recordTree);\n }\n },\n currentItemId: currentUtil,\n items: [\n {\n label: 'App Explorer',\n id: 'explorer'\n },\n {\n label: 'Branches',\n id: 'branches'\n },\n {\n label: 'Records',\n id: 'records'\n }\n ],\n drawer: {\n onBeforeClose: () => {\n setCurrentDrawer('');\n setAllNodes(currentNodeId ? treeHelpers.expandTo(treeList, currentNodeId) : treeList);\n }\n },\n devMode: true\n }}\n />\n </>\n );\n};\n\nAppShellDemo.args = {\n hideNavigation: false,\n showBreadcrumbs: true,\n variant: undefined,\n text: 'Alpha branch',\n count: null,\n compact: false,\n showPreview: true,\n // eslint-disable-next-line demo-patterns/literal-args\n onPreviewClick: action('Clicked preview button')\n};\n\nAppShellDemo.argTypes = {\n hideNavigation: { control: { type: 'boolean' } },\n showBreadcrumbs: { control: { type: 'boolean' } },\n variant: { options: ['success', 'urgent'], control: { type: 'radio' } },\n text: { control: { type: 'text' } },\n count: { control: { type: 'number' } },\n compact: { control: { type: 'boolean' } },\n showPreview: { control: { type: 'boolean' } },\n onPreviewClick: { table: { disable: true } }\n};\n"]}
@@ -0,0 +1,8 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { DynamicContentEditorProps } from '@pega/cosmos-react-build';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export interface DynamicContentEditorStoryProps extends DynamicContentEditorProps {
6
+ }
7
+ export declare const DynamicContentEditorDemo: Story<DynamicContentEditorStoryProps>;
8
+ //# sourceMappingURL=DynamicContentEditor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicContentEditor.stories.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicContentEditor/DynamicContentEditor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAgB/C,OAAO,EAEL,yBAAyB,EAE1B,MAAM,0BAA0B,CAAC;;AAIlC,wBAGU;AAEV,MAAM,WAAW,8BAA+B,SAAQ,yBAAyB;CAAG;AAEpF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,8BAA8B,CAkI1E,CAAC"}
@@ -0,0 +1,85 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useRef, useState, useCallback } from 'react';
3
+ import { action } from '@storybook/addon-actions';
4
+ import { Button, Card, CardContent, CardFooter, Flex, TextArea, useAutoResize, useConsolidatedRef, useI18n } from '@pega/cosmos-react-core';
5
+ import { DynamicContentEditor } from '@pega/cosmos-react-build';
6
+ import FieldSelector from './FieldSelector';
7
+ export default {
8
+ title: 'Build/DynamicContentEditor',
9
+ component: DynamicContentEditor
10
+ };
11
+ export const DynamicContentEditorDemo = (args) => {
12
+ const [html, setHtml] = useState('<p>Hi <pega-reference role="button" contenteditable="false" data-rule-type="field" data-rule-id="CustomerName">CustomerName</pega-reference><p>please check this <a href="https://google.com">link</a></p></p>');
13
+ const rteRef = useRef(null);
14
+ const fieldItems = [
15
+ {
16
+ id: 'CustomerName',
17
+ primary: 'CustomerName',
18
+ items: [
19
+ {
20
+ id: '1-2',
21
+ primary: 'Locale'
22
+ },
23
+ {
24
+ id: '1-1',
25
+ primary: 'Response Type',
26
+ items: [
27
+ {
28
+ id: 'group-1-1-b',
29
+ label: 'B',
30
+ items: [{ id: '1-1-1', primary: 'Reply to' }]
31
+ },
32
+ { id: '1-1-4', primary: 'Forward to' }
33
+ ]
34
+ }
35
+ ]
36
+ },
37
+ { id: 'Address', primary: 'Address' },
38
+ { id: 'Locality', primary: 'Locality' },
39
+ { id: 'Country', primary: 'Country' },
40
+ { id: 'Region', primary: 'Region' },
41
+ { id: 'Occupation', primary: 'Occupation' },
42
+ { id: 'City', primary: 'City' },
43
+ { id: 'Colony', primary: 'Colony' },
44
+ { id: 'Lastname', primary: 'Lastname' },
45
+ { id: 'Preference', primary: 'Preference' },
46
+ { id: 'Currency', primary: 'Currency' },
47
+ { id: 'Iconname', primary: 'Iconname' }
48
+ ];
49
+ const onImageAdded = (image, id) => {
50
+ const src = URL.createObjectURL(image);
51
+ rteRef.current?.appendImage({ src, alt: image.name }, id);
52
+ };
53
+ const [textAreaRef, resizeTextArea] = useAutoResize(undefined, 100);
54
+ const ref = useRef(null);
55
+ const consolidatedRef = useConsolidatedRef(textAreaRef, ref);
56
+ const handleShowHtml = () => {
57
+ resizeTextArea();
58
+ setHtml(rteRef.current?.getHtml() || '');
59
+ };
60
+ const t = useI18n();
61
+ const [selectedField, setSelectedField] = useState({
62
+ id: '',
63
+ text: ''
64
+ });
65
+ const updateSelection = (selectedItem) => {
66
+ setSelectedField(selectedItem);
67
+ };
68
+ const onSubmit = useCallback((insertField) => {
69
+ insertField(selectedField);
70
+ }, [selectedField]);
71
+ const dynamicContentPicker = (_jsx(Flex, { container: {
72
+ gap: 2,
73
+ direction: 'column'
74
+ }, children: _jsx(FieldSelector, { itemList: [
75
+ { id: 'CustomerName', text: 'CustomerName' },
76
+ { id: 'Address', text: 'Address' },
77
+ { id: 'Locality', text: 'Locality' },
78
+ { id: 'Country', text: 'Country' },
79
+ { id: 'Region', text: 'Region' },
80
+ { id: 'Occupation', text: 'Occupation' }
81
+ ], label: 'Field', updateSelection: updateSelection, placeholder: t('select'), defaultSelection: selectedField }, selectedField?.id) }));
82
+ const onActiveFieldChange = (field) => setSelectedField(field);
83
+ return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsxs(Card, { children: [_jsx(CardContent, { children: _jsx(TextArea, { value: html, onChange: e => setHtml(e.target.value), autoResize: true, ref: consolidatedRef }) }), _jsx(CardFooter, { children: _jsx(Button, { onClick: () => rteRef.current?.insertHtml(html.trim(), true), children: "Overwrite RTE with new HTML" }) })] }), _jsx(DynamicContentEditor, { defaultValue: args.defaultValue || html, onImageAdded: onImageAdded, ref: rteRef, label: 'Dynamic content editor', toolbar: ['inline-styling', 'lists', 'indentation', 'links', 'images'], form: args.form || { onSubmit, dynamicContentPicker }, onActiveFieldChange: args.onActiveFieldChange || onActiveFieldChange, fieldItems: args.fieldItems || fieldItems, onBlur: action('Editor onBlur') }), _jsx(Flex, { container: { gap: 1 }, children: _jsx(Button, { onClick: () => handleShowHtml(), children: "Show HTML" }) })] }));
84
+ };
85
+ //# sourceMappingURL=DynamicContentEditor.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicContentEditor.stories.js","sourceRoot":"","sources":["../../../src/build/DynamicContentEditor/DynamicContentEditor.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,OAAO,EACR,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,oBAAoB,EAGrB,MAAM,0BAA0B,CAAC;AAElC,OAAO,aAAqC,MAAM,iBAAiB,CAAC;AAEpE,eAAe;IACb,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,oBAAoB;CACxB,CAAC;AAIV,MAAM,CAAC,MAAM,wBAAwB,GAA0C,CAC7E,IAAoC,EACpC,EAAE;IACF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAC9B,gNAAgN,CACjN,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,CAAc,IAAI,CAAC,CAAC;IAEzC,MAAM,UAAU,GAA4C;QAC1D;YACE,EAAE,EAAE,cAAc;YAClB,OAAO,EAAE,cAAc;YACvB,KAAK,EAAE;gBACL;oBACE,EAAE,EAAE,KAAK;oBACT,OAAO,EAAE,QAAQ;iBAClB;gBACD;oBACE,EAAE,EAAE,KAAK;oBACT,OAAO,EAAE,eAAe;oBACxB,KAAK,EA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AC/B,EACF,KAAC,IAAI,IAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,YACzB,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE,0BAAoB,GACtD,IACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useRef, useState, useCallback } from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport {\n Button,\n Card,\n CardContent,\n CardFooter,\n Flex,\n TextArea,\n useAutoResize,\n useConsolidatedRef,\n useI18n\n} from '@pega/cosmos-react-core';\nimport { EditorState } from '@pega/cosmos-react-rte';\nimport {\n DynamicContentEditor,\n DynamicContentEditorProps,\n ItemType\n} from '@pega/cosmos-react-build';\n\nimport FieldSelector, { FieldSelectorProps } from './FieldSelector';\n\nexport default {\n title: 'Build/DynamicContentEditor',\n component: DynamicContentEditor\n} as Meta;\n\nexport interface DynamicContentEditorStoryProps extends DynamicContentEditorProps {}\n\nexport const DynamicContentEditorDemo: Story<DynamicContentEditorStoryProps> = (\n args: DynamicContentEditorStoryProps\n) => {\n const [html, setHtml] = useState(\n '<p>Hi <pega-reference role=\"button\" contenteditable=\"false\" data-rule-type=\"field\" data-rule-id=\"CustomerName\">CustomerName</pega-reference><p>please check this <a href=\"https://google.com\">link</a></p></p>'\n );\n const rteRef = useRef<EditorState>(null);\n\n const fieldItems: DynamicContentEditorProps['fieldItems'] = [\n {\n id: 'CustomerName',\n primary: 'CustomerName',\n items: [\n {\n id: '1-2',\n primary: 'Locale'\n },\n {\n id: '1-1',\n primary: 'Response Type',\n items: [\n {\n id: 'group-1-1-b',\n label: 'B',\n items: [{ id: '1-1-1', primary: 'Reply to' }]\n },\n { id: '1-1-4', primary: 'Forward to' }\n ]\n }\n ]\n },\n { id: 'Address', primary: 'Address' },\n { id: 'Locality', primary: 'Locality' },\n { id: 'Country', primary: 'Country' },\n { id: 'Region', primary: 'Region' },\n { id: 'Occupation', primary: 'Occupation' },\n { id: 'City', primary: 'City' },\n { id: 'Colony', primary: 'Colony' },\n { id: 'Lastname', primary: 'Lastname' },\n { id: 'Preference', primary: 'Preference' },\n { id: 'Currency', primary: 'Currency' },\n { id: 'Iconname', primary: 'Iconname' }\n ];\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n rteRef.current?.appendImage({ src, alt: image.name }, id);\n };\n const [textAreaRef, resizeTextArea] = useAutoResize<HTMLTextAreaElement>(undefined, 100);\n const ref = useRef(null);\n const consolidatedRef = useConsolidatedRef(textAreaRef, ref);\n const handleShowHtml = () => {\n resizeTextArea();\n setHtml(rteRef.current?.getHtml() || '');\n };\n const t = useI18n();\n const [selectedField, setSelectedField] = useState<ItemType>({\n id: '',\n text: ''\n });\n\n const updateSelection: FieldSelectorProps['updateSelection'] = (selectedItem: ItemType) => {\n setSelectedField(selectedItem);\n };\n const onSubmit = useCallback(\n (insertField: (selectedField: ItemType) => void) => {\n insertField(selectedField);\n },\n [selectedField]\n );\n\n const dynamicContentPicker = (\n <Flex\n container={{\n gap: 2,\n direction: 'column'\n }}\n >\n <FieldSelector\n itemList={[\n { id: 'CustomerName', text: 'CustomerName' },\n { id: 'Address', text: 'Address' },\n { id: 'Locality', text: 'Locality' },\n { id: 'Country', text: 'Country' },\n { id: 'Region', text: 'Region' },\n { id: 'Occupation', text: 'Occupation' }\n ]}\n key={selectedField?.id}\n label='Field'\n updateSelection={updateSelection}\n placeholder={t('select')}\n defaultSelection={selectedField}\n />\n </Flex>\n );\n const onActiveFieldChange = (field: ItemType) => setSelectedField(field);\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Card>\n <CardContent>\n <TextArea\n value={html}\n onChange={e => setHtml(e.target.value)}\n autoResize\n ref={consolidatedRef}\n />\n </CardContent>\n <CardFooter>\n <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>\n Overwrite RTE with new HTML\n </Button>\n </CardFooter>\n </Card>\n <DynamicContentEditor\n defaultValue={args.defaultValue || html}\n onImageAdded={onImageAdded}\n ref={rteRef}\n label='Dynamic content editor'\n toolbar={['inline-styling', 'lists', 'indentation', 'links', 'images']}\n form={args.form || { onSubmit, dynamicContentPicker }}\n onActiveFieldChange={args.onActiveFieldChange || onActiveFieldChange}\n fieldItems={args.fieldItems || fieldItems}\n onBlur={action('Editor onBlur')}\n />\n <Flex container={{ gap: 1 }}>\n <Button onClick={() => handleShowHtml()}>Show HTML</Button>\n </Flex>\n </Flex>\n );\n};\n"]}
@@ -0,0 +1,14 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ComboBoxProps, NoChildrenProp } from '@pega/cosmos-react-core';
3
+ import { ItemType } from '@pega/cosmos-react-build/lib/components/DynamicContentEditor/DynamicContentEditor.types';
4
+ export interface FieldSelectorProps extends NoChildrenProp {
5
+ /** Array of values for the combobox options. */
6
+ itemList: ItemType[];
7
+ /** Return selected item */
8
+ updateSelection: (selectedItem: ItemType, label: ComboBoxProps['label']) => void;
9
+ /** Default selected item */
10
+ defaultSelection?: ItemType;
11
+ }
12
+ declare const FieldSelector: FunctionComponent<FieldSelectorProps & Pick<ComboBoxProps, 'label' | 'mode' | 'required' | 'placeholder'>>;
13
+ export default FieldSelector;
14
+ //# sourceMappingURL=FieldSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldSelector.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicContentEditor/FieldSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,iBAAiB,EAAkC,MAAM,OAAO,CAAC;AAEvF,OAAO,EAEL,aAAa,EAGb,cAAc,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,yFAAyF,CAAC;AAEnH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,gDAAgD;IAChD,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,2BAA2B;IAC3B,eAAe,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACjF,4BAA4B;IAC5B,gBAAgB,CAAC,EAAE,QAAQ,CAAC;CAC7B;AAED,QAAA,MAAM,aAAa,EAAE,iBAAiB,CACpC,kBAAkB,GAAG,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC,CAiGxF,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo, useState, useCallback } from 'react';
3
+ import { ComboBox, createStringMatcher, useI18n } from '@pega/cosmos-react-core';
4
+ const FieldSelector = ({ itemList, label, mode = 'single-select', required = false, updateSelection, placeholder, defaultSelection }) => {
5
+ const t = useI18n();
6
+ const [filterValue, setFilterValue] = useState('');
7
+ const [items, setItems] = useState(() => {
8
+ return itemList.map(item => {
9
+ return {
10
+ id: item.id,
11
+ primary: item.text,
12
+ selected: defaultSelection ? defaultSelection.id === item.id : false
13
+ };
14
+ });
15
+ });
16
+ const filterRegex = createStringMatcher(filterValue, 'contains');
17
+ const itemsToRender = useMemo(() => {
18
+ return filterRegex ? items.filter(({ primary }) => filterRegex.test(primary)) : items;
19
+ }, [filterValue, items]);
20
+ const clearSelection = () => {
21
+ setItems(curr => {
22
+ return curr?.map(item => {
23
+ return {
24
+ ...item,
25
+ selected: false
26
+ };
27
+ });
28
+ });
29
+ };
30
+ const selectItem = useCallback((id) => {
31
+ setFilterValue('');
32
+ setItems(curr => curr?.map(item => {
33
+ if (item.id === id) {
34
+ return {
35
+ ...item,
36
+ selected: true
37
+ };
38
+ }
39
+ return { ...item, selected: false };
40
+ }));
41
+ const selectedItem = items?.find(item => item.id === id);
42
+ if (selectedItem?.id)
43
+ updateSelection({
44
+ id: selectedItem.id,
45
+ text: selectedItem.primary
46
+ }, label);
47
+ }, [filterValue, items]);
48
+ const selected = useMemo(() => {
49
+ return items?.find(item => item.selected);
50
+ }, [items]);
51
+ const comboBoxProps = {
52
+ label,
53
+ placeholder,
54
+ mode,
55
+ value: filterValue,
56
+ selected: selected
57
+ ? {
58
+ items: {
59
+ id: selected.id,
60
+ text: selected.primary
61
+ }
62
+ }
63
+ : undefined,
64
+ onChange: (e) => {
65
+ if (e.target.value)
66
+ clearSelection();
67
+ setFilterValue(e.target.value);
68
+ },
69
+ onBlur: () => setFilterValue(''),
70
+ menu: {
71
+ items: itemsToRender,
72
+ accent: filterRegex,
73
+ onItemClick: selectItem,
74
+ emptyText: t('no_items')
75
+ },
76
+ required
77
+ };
78
+ return _jsx(ComboBox, { ...comboBoxProps });
79
+ };
80
+ export default FieldSelector;
81
+ //# sourceMappingURL=FieldSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldSelector.js","sourceRoot":"","sources":["../../../src/build/DynamicContentEditor/FieldSelector.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEvF,OAAO,EACL,QAAQ,EAER,mBAAmB,EAGnB,OAAO,EACR,MAAM,yBAAyB,CAAC;AAYjC,MAAM,aAAa,GAEf,CAAC,EACH,QAAQ,EACR,KAAK,EACL,IAAI,GAAG,eAAe,EACtB,QAAQ,GAAG,KAAK,EAChB,eAAe,EACf,WAAW,EACX,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE;QACtC,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YACzB,OAAO;gBACL,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,OAAO,EAAE,IAAI,CAAC,IAAI;gBAClB,QAAQ,EAAE,gBAAgB,C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back } from 'react';\n\nimport {\n ComboBox,\n ComboBoxProps,\n createStringMatcher,\n MenuItemProps,\n NoChildrenProp,\n useI18n\n} from '@pega/cosmos-react-core';\nimport { ItemType } from '@pega/cosmos-react-build/lib/components/DynamicContentEditor/DynamicContentEditor.types';\n\nexport interface FieldSelectorProps extends NoChildrenProp {\n /** Array of values for the combobox options. */\n itemList: ItemType[];\n /** Return selected item */\n updateSelection: (selectedItem: ItemType, label: ComboBoxProps['label']) => void;\n /** Default selected item */\n defaultSelection?: ItemType;\n}\n\nconst FieldSelector: FunctionComponent<\n FieldSelectorProps & Pick<ComboBoxProps, 'label' | 'mode' | 'required' | 'placeholder'>\n> = ({\n itemList,\n label,\n mode = 'single-select',\n required = false,\n updateSelection,\n placeholder,\n defaultSelection\n}) => {\n const t = useI18n();\n\n const [filterValue, setFilterValue] = useState('');\n const [items, setItems] = useState(() => {\n return itemList.map(item => {\n return {\n id: item.id,\n primary: item.text,\n selected: defaultSelection ? defaultSelection.id === item.id : false\n };\n });\n });\n\n const filterRegex = createStringMatcher(filterValue, 'contains');\n const itemsToRender = useMemo(() => {\n return filterRegex ? items.filter(({ primary }) => filterRegex.test(primary)) : items;\n }, [filterValue, items]);\n\n const clearSelection = () => {\n setItems(curr => {\n return curr?.map(item => {\n return {\n ...item,\n selected: false\n };\n });\n });\n };\n\n const selectItem = useCallback(\n (id: MenuItemProps['id']) => {\n setFilterValue('');\n setItems(curr =>\n curr?.map(item => {\n if (item.id === id) {\n return {\n ...item,\n selected: true\n };\n }\n return { ...item, selected: false };\n })\n );\n const selectedItem = items?.find(item => item.id === id);\n if (selectedItem?.id)\n updateSelection(\n {\n id: selectedItem.id,\n text: selectedItem.primary\n },\n label\n );\n },\n [filterValue, items]\n );\n\n const selected = useMemo(() => {\n return items?.find(item => item.selected);\n }, [items]);\n\n const comboBoxProps: ComboBoxProps = {\n label,\n placeholder,\n mode,\n value: filterValue,\n selected: selected\n ? {\n items: {\n id: selected.id,\n text: selected.primary\n }\n }\n : undefined,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n if (e.target.value) clearSelection();\n setFilterValue(e.target.value);\n },\n onBlur: () => setFilterValue(''),\n menu: {\n items: itemsToRender,\n accent: filterRegex,\n onItemClick: selectItem,\n emptyText: t('no_items')\n },\n required\n };\n return <ComboBox {...comboBoxProps} />;\n};\n\nexport default FieldSelector;\n"]}
@@ -1,9 +1,26 @@
1
- import { Action } from '@pega/cosmos-react-core';
2
- import { ConnectorProps, NodeProps, NodeLibraryItem } from '@pega/cosmos-react-build';
1
+ import { FC } from 'react';
2
+ import { Action, ForwardProps } from '@pega/cosmos-react-core';
3
+ import { NodeProps, ConnectorProps, NodeLibraryItem, DeleteNodeOutcome, GraphData } from '@pega/cosmos-react-build';
4
+ interface DecisionTableProps {
5
+ updatedData: GraphData<NodeProps, ConnectorProps>;
6
+ connectors: ConnectorProps[];
7
+ node: NodeProps;
8
+ onDeleteRow: (data: GraphData<NodeProps, ConnectorProps>, deleteItems?: DeleteNodeOutcome['deletes'], e?: MouseEvent) => void;
9
+ onAddRow: (data: GraphData<NodeProps, ConnectorProps>) => void;
10
+ }
11
+ interface DeletePopoverProps {
12
+ targetId: string | null;
13
+ showPopover: boolean;
14
+ onCancel: () => void;
15
+ onDelete: () => void;
16
+ }
17
+ export declare const DecisionTable: FC<DecisionTableProps & ForwardProps>;
18
+ export declare const DeletePopover: FC<DeletePopoverProps & ForwardProps>;
3
19
  export declare const exampleCRMNodesData: NodeProps[];
4
20
  export declare const exampleCRMConnectorsData: ConnectorProps[];
5
21
  export declare const emptyNodesData: NodeProps[];
6
22
  export declare const emptyConnectorsData: ConnectorProps[];
7
23
  export declare const nodeActions: Action[];
8
24
  export declare const nodeLibrary: NodeLibraryItem[];
25
+ export {};
9
26
  //# sourceMappingURL=FlowModeller.mocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowModeller.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/FlowModeller/FlowModeller.mocks.ts"],"names":[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